Files
plugins/packages/zcode/package.json
T
yetone a96714544e zcode 0.1.67: ZCode 3.18's enc:v2 sign-in is named as unreadable, not as signed out (#1196)
hupeak (#1196): ZCode 3.18 writes credentials.json's values as
"enc:v2:os:<…>:<…>". decrypt reads enc:v1 alone, so the jwt read as
null and the card said "this sign-in has no ZCode session: sign in
again", which signing in again can't fix: ZCode writes enc:v2 again.
The new form looks bound to the system's own key store (the "os"
part); this change doesn't try to read it.

- A ZCode app sign-in that finds values in an enc: form other than v1
  fails with "ZCode 3.18 keeps its sign-in in a new form this plugin
  can't read yet: add the account with a Z.ai or BigModel sign-in",
  instead of "ZCode isn't signed in on this computer".
- An account signed in "as ZCode" before has the same words on its
  card's gift line. A browser sign-in, or enc:v1, keeps the old words.

Run (mote, HOME=$(mktemp -d)):
- bun test packages/zcode: 272 pass, 0 fail.
- bun scripts/check.mjs zcode: ok.

Broken by hand: origin/main's index.mjs (with giftSignIn exported) and
the new test: 1 fail, the sign-in says "ZCode isn't signed in on this
computer".

Not tried: ZCode 3.18 itself (not installed here); the stored values
are the shape the reporter showed. Reading enc:v2 is not done; #1196
stays open for it.
2026-11-16 11:27:21 +08:00

21 lines
783 B
JSON

{
"name": "@magpie-community/opencode-zcode-auth",
"version": "0.1.67",
"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
}
}