diff --git a/README.md b/README.md index c8cd51f..777e36a 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/packages/astudio/README.md b/packages/astudio/README.md index d6cf391..a457b67 100644 --- a/packages/astudio/README.md +++ b/packages/astudio/README.md @@ -2,6 +2,25 @@ 把 **AStudio(科大讯飞 Astron Studio 桌面端)** 的账号额度接入 [magpie](https://usemagpie.ai/) 与 [OpenCode](https://opencode.ai/):复用桌面端登录态,直连云端模型网关(OpenAI Responses 协议),agent 以 `astudio/` 使用它的模型;支持每日登录积分自动签到与积分余额显示。 +## 与 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. + ## 登录什么 两种方式(登录时二选一): diff --git a/packages/astudio/package.json b/packages/astudio/package.json index 44bf747..d4f1b53 100644 --- a/packages/astudio/package.json +++ b/packages/astudio/package.json @@ -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", diff --git a/registry.json b/registry.json index 7cef064..81734c6 100644 --- a/registry.json +++ b/registry.json @@ -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。" } } ]