sun1090's account has no GLM Coding Plan, only ZCode's Start Plan, whose buckets serve GLM-5.3 (3,000,000) and GLM-5.3-Flash (5,000,000). magpie's usage card counted GLM-5.3, but the model list had GLM-5.3-Flash, GLM-5.2 and GLM-5-Turbo (the Start Plan's providerId in ZCode's provider config, revisions 23 and 30, which leaves GLM-5.3 out) plus GLM-5.3-Trial and GLM-5.3-Flash-Trial, so GLM-5.3 itself was missing. ZCode 3.14.3 (host/index.js, resolveZaiStartPlanBalanceModelIds and the start-plan overlay's builtinModelIds) lists a Start Plan account's models as the balance's bucket capabilities, by their own names. A gift-only account's requests all go to zcode.z.ai's Start Plan anyway, so the plugin now also lists each gift model under its own name for such an account. The -Trial entries stay, so a model a user already picked keeps working; a coding plan account's gift is still reached only through its -Trial entries. A gift model's context, output and efforts now also come from the coding plan's config and the fallback table, so GLM-5.3(-Trial) on a Start Plan account gets low/high/max rather than no efforts. gift.test.mjs: "a gift-only account lists its gift's models by their own names" fails on 0.1.13 (GLM-5.3 undefined); it also checks every model the card counts is listed and that GLM-5.3 goes to zcode.z.ai. "a coding plan account's gift stays on its trial entries alone" guards the dual route. HOME=$(mktemp -d) bun test packages/zcode (75 pass) and bun scripts/check.mjs zcode pass. Not tried with a real Start Plan account.
17 lines
636 B
JSON
17 lines
636 B
JSON
{
|
|
"name": "@magpie-community/opencode-zcode-auth",
|
|
"version": "0.1.14",
|
|
"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"
|
|
}
|
|
}
|