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).
35 lines
2.6 KiB
JSON
35 lines
2.6 KiB
JSON
{
|
|
"name": "@magpie-community/opencode-astudio-auth",
|
|
"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",
|
|
"files": [
|
|
"index.mjs",
|
|
"README.md",
|
|
"LICENSE"
|
|
],
|
|
"keywords": [
|
|
"opencode",
|
|
"opencode-plugin",
|
|
"magpie",
|
|
"astudio",
|
|
"astron",
|
|
"iflytek",
|
|
"xfyun"
|
|
],
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"test": "node --test"
|
|
},
|
|
"magpie": {
|
|
"icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAAC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6Fn0MXNXkJDjYfackLVPkJZKWN3EWP7HsKmAsLaXMaKHYQlWwjvricsyzc40uTg0ZOgFiw1Rw1E4LZWaLxqkHvKQ0UD+0vrSp/BrSGD35oZR/czyssIRSWB9pm7DNbnEz7dTliaQdhQZtDYbmN8Uklovv6yGrSeIwOydmXy6cuEJQXA8lJG3inC0RbCjx2Ezn6D3uuE7454KC1h7CpiZIfRr95J+LyA0N4dFBy8IJBEYp7LMCLgOArHLzJWlAEr93nYVuOh/Dzj+1bGpW5C9wDhQrOH4hJGTiH50Yv2yzIYFfVy2Fk+aBLw/JahTBLWkwmNwWEbAw9tDDxwMDjs4P6Ig0ejDp5M2Lh91+BAtYevdxE25hPW5hGWbibUtThgDt5PcyClJxAvQiEhRUOhGSeQRu6Lua5Cy8+ErXsY63INVuYQFm9iXOqw/dQnEinAcxNIXoZRcxFtpZH5J6Bj4eGwjaIq9rVfvt1gcQah55aGRyrYP1LB0xJIOY6fZ8EeH2SouZXwWR7jw22ED7IJ9x/L9muFFT+rzXocpzYkaSxKa9AHWHg8aiOvirF4C+GT3QaTibBfmD0DaRuS1JbsORZIIWlWIKPQ8ofB+xs8rNtrwCRNSFr9xYTAzJbsRZvSyHlUrOMTGrXNBh19NoyJeoCU99I3pS/TlseLVUhI5UszGt2fBVh+p7bl0ceBUuqlP0yU0iZhaSP7fPKz6TnTHyaCFcf+fz/Nkofrum+7rvvffpxGIy2rVziSMf4B2dvP/4LPzYQAAAAASUVORK5CYII=",
|
|
"maxConcurrency": 4
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/magpie-community/plugins.git",
|
|
"directory": "packages/astudio"
|
|
}
|
|
}
|