customer-package-reset/list can still flag a reset available after its expireTime has passed; the vendor's page lists such a reset among the expired. resetsOf counted on the flag alone, so an account that owns no usable reset showed "2 resets" with a stale end (11/8). A reset whose end has passed is now skipped; one with no end still counts. Shape read from the vendor's own usage page chunk (bigmodel.cn ResetQuotaCard: fiveHourResets/weekResets, available === true, expireTime, recordId, grantType) and the captured list in usage.test.mjs. Run: bun test packages/zcode on mote with a temp HOME, 256 pass. The new test is red on the old index.mjs (19 pass, 1 fail). The older fixtures' fixed 2026 dates are moved to 2027 (they were past by now). Not tried: nathan_ift_us's real list (no access to the account), so the cause is inferred from the date, not seen on the wire.
21 lines
783 B
JSON
21 lines
783 B
JSON
{
|
|
"name": "@magpie-community/opencode-zcode-auth",
|
|
"version": "0.1.61",
|
|
"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
|
|
}
|
|
}
|