Files
plugins/packages/zcode/package.json
T
Lucentio-HuangandLucentio-Huang 3f37b858db zcode 0.1.63: the app's China sign-in keeps its identity, and the active provider's profile names the account (#1135)
ZCode's app sign-in reads oauth:active_provider and includes zai_cn, so
a China-channel account keeps its name and user id, follows renewal for
the same user, and stays on its own session when the app switches to
another user with the same display name. Unreadable active_provider
falls back to the old order with zai_cn added.

Reviewed at 5d6e923e3. Run (mica, sandbox HOME): bun test packages/zcode
260 pass; scripts/check.mjs zcode ok. Broken by hand: main's index.mjs
with this PR's tests fails 3 of own.test.mjs (China identity, active
zai_cn, active bigmodel).

Co-authored-by: Lucentio-Huang <Lucentio-Huang@users.noreply.github.com>
2026-11-14 17:02:35 +08:00

21 lines
783 B
JSON

{
"name": "@magpie-community/opencode-zcode-auth",
"version": "0.1.63",
"description": "OpenCode provider plugin: signs in to Z.ai's or BigModel's (智谱) GLM Coding Plan as ZCode does, including team seats and ZCode's Start Plan, and claims its gift plans daily",
"type": "module",
"main": "./opencode.mjs",
"exports": { ".": "./opencode2.mjs" },
"files": ["index.mjs", "opencode.mjs", "opencode2.mjs", "prompt.mjs", "README.md"],
"keywords": ["opencode", "opencode-plugin", "magpie", "zcode", "z.ai", "bigmodel", "glm", "coding-plan"],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/magpie-community/plugins.git",
"directory": "packages/zcode"
},
"magpie": {
"maxConcurrency": 3,
"maxAccounts": 2
}
}