Files
plugins/packages/page-usage-tree/assets/icon.svg
T
CHENZUDE 808f7a184d page-usage-tree 0.1.0: usage as provider → account → model (CHENZUDE, #575)
New page plugin @magpie-community/page-usage-tree 0.1.0 by CHENZUDE: magpie's usage as a provider -> account -> model tree, served by a small server that reads the gateway's /v1/magpie/usage and /usage/requests.

The last round (f9e0907) gives the model row's calls cell the calls-cell class, so CALLS values sit under their right-aligned header, adds a test for it, and comments why the server's retry budget is 16 x 100ms.

What was run at f9e09079 (mote, macOS, sandbox HOME):
- In the package: node --test 50 pass; bun test 47 tests, 0 fail.
- f9e09079 merged onto main 8765cf8f: bun scripts/check.mjs ok; whole-repo bun test 6149 pass, 20 skip, 0 fail.
- Playwright against a fake gateway: CALLS header and value right edges 616/616 (1280px), 423/423 (900), 341/341 (760, 621) in Chromium and WebKit. Chromium 1280-620px, WebKit 900/760, both engines at 420px in en and zh: no clipped cell, no sideways scroll, no <select>, no page errors.
- Broken by hand: the old `model.errors ? "bad" : ""` puts values at 544 and 273 and turns "model calls sit under the right-aligned calls header" red (27 pass, 1 fail).

Not tried: a real magpie with real accounts, the desktop app, Windows and Linux.
2026-11-05 17:11:25 +08:00

13 lines
678 B
XML

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" width="128" height="128" fill="none">
<rect width="128" height="128" rx="28" fill="#3a3f4b"/>
<g stroke="#e9e7f2" stroke-width="9.6" stroke-linecap="round" stroke-linejoin="round">
<rect x="42.4" y="13.6" width="43.2" height="26.4" rx="10.4"/>
<path d="M64 40v16"/>
<path d="M30.4 82.4V72.8a10.4 10.4 0 0 1 10.4-10.4h46.4a10.4 10.4 0 0 1 10.4 10.4v9.6"/>
<rect x="14.4" y="82.4" width="30.4" height="22.4" rx="9.6"/>
<rect x="48.8" y="82.4" width="30.4" height="22.4" rx="9.6"/>
<rect x="83.2" y="82.4" width="30.4" height="22.4" rx="9.6"/>
<path d="M18.4 114.4h91.2"/>
</g>
</svg>