Files
法助 3d691e6e15 page-usage-board 0.1.1: WorkBuddy token estimates no longer set credit expiry (#1050)
WorkBuddy's daily `tokens (est.)` window is a token-rate allowance with an
estimated cap, set beside the credits meter (packages/workbuddy README). On
the quota wall it was picked as the card's soonest-expiring row and drove
the expiry sort, so a WorkBuddy card read as credits lapsing today. Now
quotaWins() drops that window for WorkBuddy providers (workbuddy,
workbuddy-ai) before soonWin, the total fallback and the sort. Every other
provider keeps every window.

Run at the reviewed head 628b6baa, in a Linux VM (Ubuntu 24.04, Node 22,
Bun 1.4.2, temp HOME):
- node --test in packages/page-usage-board: 37 pass, 0 fail.
- bun scripts/check.mjs page-usage-board: ok.
- git merge-tree against origin/main: clean.
Broken by hand: quotaWins returning every window turns the new test red
(1 fail), restored after.
Not tried: the page in a real magpie window with a WorkBuddy account; no
macOS or Windows run.

Co-authored-by: fazhu4 <166514093+fazhu4@users.noreply.github.com>
2026-11-12 19:28:13 +08:00
..