README: one channel, one entry unless the new one names its difference (#614, Gyl1219)

The market section of the root README now says how duplicates are
judged: by channel, not by package shape. A channel listed in an
aggregate package's `providers` array counts as listed. A new standalone
package for a listed channel names its differences (sign-in, endpoint,
abilities, what it can do the existing entry can't) in the PR, its README
and its registry summary, or it isn't merged.

AStudio keeps both entries. From reading both packages' code:
- astudio (0.1.0 -> 0.1.1, README only): reads the AStudio desktop's
  session (ASTUDIO_HOME, Windows registry, ~/.acode) or a pasted
  modelBearerToken; calls /model-gateway/v1/responses; check-in touches
  the session and records the balance delta, claiming nothing.
- magpie-providers-hub 0.5.2 (npm, Gyl1219's repo) hub-astudio: a local
  login page (SMS code, password or WeChat QR, with geetest); calls
  /model-gateway/v1/chat/completions; check-in completes the
  client-popups daily reward and new-user dialogs.
Both read the same account's agent.xfyun.cn points/balance, so one
account has one daily points pool. The astudio README gets a table of
this; both registry summaries (en, zh) say it. The hub's own README lives
in Gyl1219/magpie-providers-hub and is not changed here.

Run on mote at this tree, HOME=$(mktemp -d), Bun 1.4.2:
- bun scripts/check.mjs: ✓ registry.json (the #612 validation), every
  package ✓, exit 0.
- bun test: 4709 pass, 0 fail, 12 skip (4721 tests, 363 files).
Not tried: a real AStudio sign-in on either package (no code changed).
This commit is contained in:
yetone
2026-11-02 06:34:39 +08:00
parent eaca1cf4f1
commit 236071c300
4 changed files with 41 additions and 4 deletions
+18
View File
@@ -350,6 +350,24 @@ it can't. To list a plugin, add an entry with its npm `package`, a
magpie has, or none) and a `summary` in English and Chinese (`{"en": …, "zh": …}`), and open a pull
request.
### One channel already listed
Duplicates are judged by channel, not by the shape of the package. A
channel is the vendor service a provider id signs in to, so `astudio` and
`hub-astudio` are one channel. A channel counts as listed when any entry
has it, including an aggregate package that names it in its `providers`
array.
A new standalone package for a listed channel says how it differs from
the entry already there: how it signs in, which endpoint it calls, what it
supports, and what it can do that the existing entry can't. That goes in
three places: the pull request, the package's README and its registry
`summary` (en and zh), so a user can tell which one to install. A package
that can't name a difference is not merged. Two entries for one channel
that are both kept say in their READMEs and summaries what they share,
such as one account's credit pool
([#614](https://github.com/magpie-community/plugins/issues/614)).
## Publishing
A version bump pushed to `main` ships itself, two ways
+19
View File
@@ -2,6 +2,25 @@
把 **AStudio(科大讯飞 Astron Studio 桌面端)** 的账号额度接入 [magpie](https://usemagpie.ai/) 与 [OpenCode](https://opencode.ai/):复用桌面端登录态,直连云端模型网关(OpenAI Responses 协议),agent 以 `astudio/<model>` 使用它的模型;支持每日登录积分自动签到与积分余额显示。
## 与 Providers Hub 的 `hub-astudio` 的区别
AStudio 在 registry 里有两个入口,都保留([#614](https://github.com/magpie-community/plugins/issues/614)):
| | 本包(`astudio`) | [magpie-providers-hub](https://www.npmjs.com/package/magpie-providers-hub)(`hub-astudio`) |
| --- | --- | --- |
| 登录 | 读取本机 AStudio 桌面端的登录态,或粘贴 `modelBearerToken`;不需要再输手机号或密码 | 本机打开一个登录页:手机验证码、账号密码或微信扫码(含极验验证),不依赖桌面端 |
| 适合 | 装了 AStudio 桌面端的用户(数据目录按 `ASTUDIO_HOME`、Windows 注册表、`~/.acode` 查找;其他情况粘贴凭据) | 任何平台,没装桌面端也行 |
| 模型端点 | `…/model-gateway/v1/responses`(OpenAI Responses,与桌面端一致) | `…/model-gateway/v1/chat/completions` |
| 每日积分 | 做一次会话活跃,按前后余额差记录,不调用领取接口 | 调用 `client-popups` 领取每日奖励和新人礼包弹窗 |
两者用同一个 AStudio 账号时,读的是同一个 `points/balance`,模型调用也扣同一份积分:**每日登录积分是一个池子,装两个不会多一份。** 同一账号两边都登录只会重复显示同一笔余额。
English: two entries serve AStudio. This one reuses the AStudio desktop's
sign-in (or a pasted `modelBearerToken`) and calls the Responses endpoint;
Providers Hub's `hub-astudio` signs in on a local page (SMS code, password
or WeChat QR) and calls chat/completions. On one account both draw on the
same daily points balance.
## 登录什么
两种方式(登录时二选一):
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@magpie-community/opencode-astudio-auth",
"version": "0.1.0",
"version": "0.1.1",
"description": "AStudio (iFLYTEK Astron Studio) desktop sign-in as an OpenCode/magpie provider: Responses model gateway with live model catalog",
"type": "module",
"main": "./index.mjs",
+3 -3
View File
@@ -162,8 +162,8 @@
],
"community": true,
"summary": {
"en": "Third-party Magpie adapter for dsh-providers-hub (by JetLi): five providers, each a separate channel you can sign in to, meter and switch off on its own — AStudio (iFlytek), Accio (Alibaba), LobsterAI (Youdao), MagiCrew (letsmagic.cn / magicrew.ai). Channels that already exist in the registry are not shipped. Runs without DSH.",
"zh": "dsh-providers-hub(作者 JetLi)的第三方适配:五条供应商(每渠道一条,可各自登录/看额度/单独关闭)——AStudio(讯飞)、Accio(阿里)、LobsterAI(有道)、超级麦吉/MagiCrew(letsmagic.cn / magicrew.ai)。与社区 registry 已有插件重叠的渠道不随包提供。不依赖 DSH 运行。"
"en": "Third-party Magpie adapter for dsh-providers-hub (by JetLi): five providers, each a separate channel you can sign in to, meter and switch off on its own — AStudio (iFlytek), Accio (Alibaba), LobsterAI (Youdao), MagiCrew (letsmagic.cn / magicrew.ai). Channels that already exist in the registry are not shipped. Runs without DSH. Its AStudio signs in on a local page (SMS, password or WeChat QR, no desktop app needed) and calls chat/completions; the standalone AStudio plugin (astudio) reuses the desktop sign-in and calls Responses. On one account both share the same daily points pool.",
"zh": "dsh-providers-hub(作者 JetLi)的第三方适配:五条供应商(每渠道一条,可各自登录/看额度/单独关闭)——AStudio(讯飞)、Accio(阿里)、LobsterAI(有道)、超级麦吉/MagiCrew(letsmagic.cn / magicrew.ai)。与社区 registry 已有插件重叠的渠道不随包提供。不依赖 DSH 运行。其中 AStudio 在本地登录页用短信、密码或微信扫码登录(不需要桌面端),走 chat/completions;独立的 AStudio 插件(astudio)复用桌面端登录态,走 Responses。同一账号两边共用一个每日积分池。"
}
},
{
@@ -177,7 +177,7 @@
}
},
{ "package": "@magpie-community/opencode-astudio-auth", "name": "AStudio", "providers": ["astudio"], "community": true,
"summary": { "en": "Unofficial AStudio (iFLYTEK Astron Studio desktop): reuse the desktop sign-in to serve its Responses model gateway, with the live model catalog, daily login-points check-in and points balance. Desktop discovery runs on Windows (registry lookup), with a paste-token fallback.", "zh": "非官方 AStudio(科大讯飞 Astron Studio 桌面端):复用桌面端登录态接入其模型网关,含实时模型目录、每日登录积分签到与积分余额。桌面端发现仅 Windows(注册表定位),另有粘贴凭据方式。" } },
"summary": { "en": "Unofficial AStudio (iFLYTEK Astron Studio desktop): reuse the desktop sign-in to serve its Responses model gateway, with the live model catalog, daily login-points check-in and points balance. Desktop discovery runs on Windows (registry lookup), with a paste-token fallback. Differs from Providers Hub's hub-astudio, which signs in on a local page (SMS, password or WeChat QR) and calls chat/completions; on one account both share the same daily points pool.", "zh": "非官方 AStudio(科大讯飞 Astron Studio 桌面端):复用桌面端登录态接入其模型网关,含实时模型目录、每日登录积分签到与积分余额。桌面端发现仅 Windows(注册表定位),另有粘贴凭据方式。与 Providers Hub 的 hub-astudio 不同:那边在本地登录页用短信、密码或微信扫码登录,走 chat/completions;同一账号两边共用一个每日积分池。" } },
{ "package": "@magpie-community/opencode-agnes-code-auth", "name": "Agnes Code", "providers": ["agnes-code"], "community": true,
"summary": { "en": "Unofficial Agnes Code desktop: reuse the desktop sign-in for its OpenAI-compatible gateway, with the live model catalog, daily credit check-in and points balance. Desktop decryption is Windows-only; a paste-token method covers the rest.", "zh": "非官方 Agnes Code 桌面端:复用桌面端登录态接入其 OpenAI 兼容网关,含实时模型目录、每日积分签到与余额显示。桌面端解密仅限 Windows,其余平台用粘贴 accessToken。" } }
]