jzing.draw on Discord (#feedback, 2026-11-03): Qoder's 我的用量 said 套餐内 Credits 1,817 / 2,000 (剩余 183, refreshing 2026-11-22) and 资源包 2,400 / 3,400 (剩余 1,000). magpie's Routing row said a bare "剩余 15%", which matched neither pool, so it read as the two not added up. They were added up already (Total credits since 0.2.44, #454), but every window sent only a share and a display string. The Routing row shows a count only for a window with limit > 0, so it had no way to say which figure it was. Now: - every pool window and Total credits carry amount, limit and unit, so magpie says "1,183 / 5,400 credits · 22% left" on the Routing row and the Usage card, which is Qoder's 183 + 1,000. - the plan's Credits window carries resetsAt = expiresAt, Qoder's "将于 … 刷新" date (renewsOn in Qoder 0.4.3's buildUsageItemGroups). Routing still counts the pools together and sets each pool aside; that didn't change. Run (mote, bun 1.4.2): bun test packages/qoder: 382 pass, 0 fail. Broken by hand: with amount/limit/unit and resetsAt dropped from the pool windows, the new test ("the plan and the resource pack read as Qoder's own panel does…") fails. Not tried: no real Qoder account. The fixture is built from the reporter's screenshot numbers. The reporter's "15%" (85% used) isn't reproduced from those numbers: the two pools together leave 22%. It may be a reading taken later than the screenshot, or a dedicated resource package Qoder's panel didn't show (the plugin counts those). Without their reading this can't be told apart.
31 lines
773 B
JSON
31 lines
773 B
JSON
{
|
|
"name": "@magpie-community/opencode-qoder-auth",
|
|
"version": "0.2.59",
|
|
"description": "Qoder and QwenWork (千问办公) subscriptions in OpenCode and magpie: qoder.com, qoder.cn, gateway.qwenwork.cn and the enterprise flagship, VPC and dedicated domains",
|
|
"type": "module",
|
|
"main": "./opencode.mjs",
|
|
"exports": { ".": "./opencode2.mjs" },
|
|
"files": [
|
|
"index.mjs",
|
|
"opencode.mjs",
|
|
"opencode2.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"
|
|
}
|
|
}
|