provider.models read the "as ZCode" sign-in without located(). ZCode 3.16 keeps only where the coding plan key is (project-key-location:v1, #410), so the state had no key, plansOf took it for a Start Plan sign-in, and the list was account:zai-start-plan's: GLM-5.3 left out and delisted, while requests and usage (which call located) worked. models() now reads the key first, as the request path does. A key that can't be read throws, so magpie keeps the list it had instead of being told the Start Plan's. Reported, with the cause and this fix, by dinghao-8. Run (TMPDIR/HOME sandboxed, Bun 1.4.2): - bun test in packages/zcode: 135 pass, 0 fail; bun scripts/check.mjs exit 0. - Broken by hand: the new own.test.mjs case against main's index.mjs fails with exactly the reporter's list, [GLM-5.3-Flash, GLM-5.2, GLM-5-Turbo]. - npm had 0.1.32; this is 0.1.33. Not tried: a real ZCode 3.16 account (reading ZCode's credentials needs the Keychain secret); the reporter ran the same one-line patch end to end against BigModel.
20 lines
679 B
JSON
20 lines
679 B
JSON
{
|
|
"name": "@magpie-community/opencode-zcode-auth",
|
|
"version": "0.1.33",
|
|
"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",
|
|
"type": "module",
|
|
"main": "./index.mjs",
|
|
"exports": "./index.mjs",
|
|
"files": ["index.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
|
|
}
|
|
}
|