Files
plugins/packages/qoder/package.json
T
yetone 202ec68ffd qoder 0.2.44: a spent plan beside add-on credits left is no account used up (#454)
chansee97's Qoder CN trial had its plan's 300 credits spent and 245 of
1,100 add-on credits used, and Routing read the account as 0% left: each
pool was a window of its own, and routing counts the tightest. Qoder spends
the pools one after another before an account stops (docs.qoder.com/Credits:
soonest to expire first, the plan's before add-on on the same day; teams:
then the organisation's shared add-on credits), and its own envelope's
totalUsagePercentage counts them as one. So when more than one of the plan,
add-on and shared pools holds credits in the same unit, "Total credits" is
what they hold together (545 / 1400 here, 61% left) and the one routing
counts, and each pool is shown beside it set aside, as CodeArts' buckets
are under its total. One pool alone is shown as before. Dedicated packages
are left as they were (no word from Qoder on their order).

Run: bun test in packages/qoder (298 pass) and scripts/check.mjs, on mote.
Broken by hand: the new tests against origin/main's index.mjs, red (#454's
reads 0% left; the rotated-token test's windows differ).
Read-only real read of the owner's Qoder account's /sash/api/v2/me/usage:
plan total 0, add-on 7 / 600, which stays one window, unchanged.
Not tried: a real account with both a plan and add-on credits (the owner's
has no plan credits); the fields are the ones that read returns.
2026-10-28 10:29:31 +08:00

13 lines
633 B
JSON

{
"name": "@magpie-community/opencode-qoder-auth",
"version": "0.2.44",
"description": "Qoder and QwenWork (千问办公) subscriptions in OpenCode and magpie: qoder.com, qoder.cn, gateway.qwenwork.cn and the enterprise flagship (VPC)",
"type": "module",
"main": "./index.mjs",
"exports": "./index.mjs",
"files": ["index.mjs", "README.md", "LICENSE-CLIProxyAPI"],
"keywords": ["opencode", "opencode-plugin", "magpie", "qoder", "qoder-cn", "qwenwork", "千问办公"],
"license": "MIT",
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/qoder" }
}