wakkana on Discord reported WorkBuddy accounts of one name collapsing into one. WorkBuddy's plugin already keeps a uid, which magpie's plugin host tells same-name accounts apart by. ZCode names an account by email, else by its name, and gave no uid, so two ZCode accounts with no email and one name were one account in the host. Both sign-ins (browser and the ZCode app's) now give uid: user_id. The app's entry also follows ZCode only while ZCode is signed in to the same user id, not another account of that name. Run: HOME=<scratch> TMPDIR=<scratch> bun test in packages/zcode, 112 pass. Both new tests (own.test.mjs, team.test.mjs) fail with index.mjs from HEAD (uid undefined). bun scripts/check.mjs green. Not tried: a real ZCode sign-in; whether ZCode's poll user carries user_id is read from who(), which already reads it.
17 lines
636 B
JSON
17 lines
636 B
JSON
{
|
|
"name": "@magpie-community/opencode-zcode-auth",
|
|
"version": "0.1.29",
|
|
"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"
|
|
}
|
|
}
|