trae: the credits a pack loses at its end show as runsOut (#718)
A finite pack's credits are gone at its end_time whether or not another pack follows, so the Credits window now carries runsOutAt (the soonest live pack's end, as 0.2.37 reads it) and runsOut (what the packs ending at that instant have left). magpie's routing already takes runsOutAt before resetsAt and sorts by what lapses; WorkBuddy's plugin does the same. Test built from gcq909893267's account B packs on #718: the 11-18 sign-in reward with 4.1456 used gives 95.85 lapsing then, two rewards ending at one second add up, and past both the monthly 500 lapses. Run: on mote, packages/trae bun test 268 pass, check.mjs trae ok. With index.mjs back at 0.2.37 four tests fail (the new one and the three whose windows now carry runsOut). Not tried: a live Trae account (the reporter's numbers are the fixture).
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@magpie-community/opencode-trae-auth",
|
||||
"version": "0.2.37",
|
||||
"version": "0.2.38",
|
||||
"description": "OpenCode provider plugins for Trae: Trae CN (trae.cn) and Trae Global (trae.ai), free tier included, with Trae's own browser sign-in",
|
||||
"type": "module",
|
||||
"main": "./opencode.mjs",
|
||||
|
||||
Reference in New Issue
Block a user