Files
stringkeandyetone 0ae116db1a kiro 0.1.41: a month used up with trial credits left goes on on credits, so magpie spends the other accounts' plan credits first (#1352)
Kiro spends an account's plan credits first, then its trial credits
(kiro.dev/docs/billing: "Kiro uses your plan credits first, then your trial
credits"; trial credits last 12 months, plan credits end at the month's
reset). A month (or, with overage on, the overage) used up while a bonus has
credits left now says `credits: true` beside `aside: true`, so magpie asks
that account after the provider's accounts with plan credits left; an older
magpie routes it as before. A bonus Kiro marks EXHAUSTED is shown at 100%.
Identity Center per-region windows never carry `credits`.

Review follow-up (d947cdc): only an ACTIVE bonus counts as credits left (an
EXHAUSTED one whose count still said 499.5 / 500 made the account go on on
credits Kiro won't spend), and a bonus left that lapses before the month's
reset keeps the month set aside only, so that bonus isn't asked last and
lost.

Run at the reviewed head d947cdc48: HOME=$(mktemp -d) bun test in
packages/kiro on mote, 225 pass, 0 fail; bun scripts/check.mjs kiro ok; PR
CI (test, bumped, on-npm) green. Broken by hand: with the ACTIVE and lapse
checks removed, the new usage test goes red (13 pass, 1 fail).

Co-authored-by: yetone <yetoneful@gmail.com>
2026-11-19 16:43:12 +08:00

13 lines
536 B
JSON

{
"name": "@magpie-community/opencode-kiro-auth",
"version": "0.1.41",
"description": "Kiro subscriptions (Free, Pro, Pro+, Power) in OpenCode and magpie",
"type": "module",
"main": "./opencode.mjs",
"exports": { ".": "./opencode2.mjs" },
"files": ["index.mjs", "opencode.mjs", "opencode2.mjs", "README.md"],
"keywords": ["opencode", "opencode-plugin", "magpie", "kiro"],
"license": "MIT",
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/kiro" }
}