zcode 0.1.61: a reset past its end is not counted as a card (nathan_ift_us on X)
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.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@magpie-community/opencode-zcode-auth",
|
||||
"version": "0.1.60",
|
||||
"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",
|
||||
|
||||
Reference in New Issue
Block a user