commandcode 0.1.24: a Go, GOAT or Pro Credits window tells its count in credits, so magpie adds accounts up
chen2652 on magpie's Discord (v0.1.3361): three Command Code Go accounts, folded together on the Routing page, showed no summed credits. The Credits window of a units plan said only its share and a display string, so magpie's mergeQuotas could only take the mean of the shares, and only for cards on one plan. It now carries amount (the credits used, as the display rounds them), limit (the month's pool) and unit "credits", so magpie adds them up: "16.40 / 30 credits". Bought and free credits (dollars at model cost) left the display's "+ $X extra" for the account's balance, a row of its own under the windows on magpie's Usage card. With a limit set, magpie's GUI and TUI say the count from amount and limit, not the display, so the extra would have been lost from the card otherwise. Not changed: Max, Ultra and Teams Pro, whose Credits pool is dollars, keep display and share only (magpie would print "$" as a unit after the numbers). Run: bun test in packages/commandcode on mote (100 pass, 1 skip, as before), bun scripts/check.mjs (all ok). The test expectations for the units plans' Credits window now include amount, limit and unit, and GOAT's bought credits are the balance.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@magpie-community/opencode-commandcode-auth",
|
||||
"version": "0.1.23",
|
||||
"version": "0.1.24",
|
||||
"description": "Command Code plans (Pro, GOAT, Max, Ultra, Go, Teams) in OpenCode and magpie",
|
||||
"type": "module",
|
||||
"main": "./opencode.mjs",
|
||||
|
||||
Reference in New Issue
Block a user