Commit Graph
2 Commits
Author SHA1 Message Date
法助 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
orinsid 545ed66e74 page-usage-board: a usage dashboard page (#844)
Adds @magpie-community/page-usage-board: a usage dashboard page with its
own zero-dependency local service (quota cards with expiry tiers, TTFT,
7x24 heatmap, optional remote attribution).

Reviewed at 8ca2562: the author's 80137b0 plus a maintainer merge of main
(registry entry re-appended after upstream's newer packages).
Since the 6b2625d review: [::1] in MAGPIE_ADDR stays IPv6 loopback (only
0.0.0.0/[::] map to 127.0.0.1), the config-dir test compares real paths
so it passes on macOS, and the registry-block test tolerates CRLF.

Run on mote at 8ca2562: packages/page-usage-board `bun test` 36 pass,
`node --test test/*.test.mjs` 36 pass; `bun scripts/check.mjs` all ok.
Not tried this round: the page in a live magpie window.
2026-11-10 10:36:04 +08:00