From 46f5e1ae7ba0748f888dab17ffe79a5f1380e844 Mon Sep 17 00:00:00 2001 From: ming_jiang Date: Wed, 11 Nov 2026 23:37:33 +0800 Subject: [PATCH] registry: Amp Usage shows its icon in the store (#1013) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Gives Amp Usage's registry entry an `icon`, so the store card shows the package's own icon instead of the generic page one. It points at packages/amp-usage/page/icon.svg in this repo on main, the same way Window Warmup and 书生·端砚 do, so only this repo's maintainers can change what it serves. Run at the reviewed head 8a8049fd (on mote, temp HOME): - `bun scripts/check.mjs`: ok. `bun test scripts`: 22 pass, 0 fail. packages/amp-usage `node --test`: 47 pass, 0 fail. - The URL answers 200, image/svg+xml, 3391 bytes, the same bytes as the file on main (added in #1000). The SVG has no script or external reference. - Rendered the SVG as at 20, 32 and 64px in Playwright 1.62 Chromium and WebKit: decodes, no page errors, the Amp wordmark reads at 20px. - Root `bun test` (suite lock) on origin/main a69931ec merged with #1009, #1012 and #1013: 8373 pass, 0 fail (8392 tests across 590 files, 361s; the rest skipped), on Linux (Ubuntu 24.04, magpie-desktop) because both Macs' suite locks were held by hours-long runs. `bun scripts/check.mjs` on that tree: ok. Not tried: the store card in a real magpie after it fetches the new registry. Co-authored-by: ming jiang --- registry.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry.json b/registry.json index 76428a5..edac56a 100644 --- a/registry.json +++ b/registry.json @@ -151,7 +151,7 @@ {"package": "@magpie-community/tools-layerfs", "name": "LayerFS", "kind": "tools", "community": true, "summary": {"en": "LayerFS workspaces for every agent: deduplicated checkpoints and branches behind stable filesystem paths, instead of a fresh copy of the tree for every agent.", "zh": "给每个 agent 的 LayerFS 工作区:稳定的文件系统路径背后是可去重的检查点与分支,而不是每个 agent 各复制一棵项目树。"}}, { "package": "@magpie-community/page-usage", "name": "Usage Glance", "kind": "page", "community": true, "summary": { "en": "A page in magpie's window with calls, errors, tokens and cost for today, 7 or 30 days, and the models behind them. Reads only your usage summary.", "zh": "在 magpie 窗口里一眼看到今天、7 天或 30 天的调用、错误、token、费用和对应模型。只读取用量汇总。" } }, - {"package": "@magpie-community/page-amp-usage", "name": "Amp Usage", "kind": "page", "community": true, "summary": {"en": "An Amp usage board: requests, tokens and cache hit rate by hour, day and model, read from your Amp account and legacy local threads. Its background service syncs that usage into Magpie requests and Day card, with duplicate checks; set sync to false to only view it.", "zh": "Amp \u7528\u91cf\u770b\u677f\uff1a\u8bf7\u6c42\u6570\u3001Token\u3001\u7f13\u5b58\u547d\u4e2d\u7387\uff0c\u6309\u5c0f\u65f6\u3001\u6309\u65e5\u548c\u6309\u6a21\u578b\u67e5\u770b\uff0c\u6570\u636e\u6765\u81ea Amp \u8d26\u53f7\u548c\u65e7\u7248\u672c\u5730\u7ebf\u7a0b\u3002\u540e\u53f0\u670d\u52a1\u628a\u8fd9\u4e9b\u7528\u91cf\u540c\u6b65\u8fdb Magpie \u8bf7\u6c42\u7edf\u8ba1\u548c\u6bcf\u65e5\u5361\u7247\uff0c\u5e26\u53bb\u91cd\u68c0\u67e5\uff1b\u628a sync \u8bbe\u4e3a false \u5219\u53ea\u67e5\u770b\u3002"}}, + {"package": "@magpie-community/page-amp-usage", "name": "Amp Usage", "kind": "page", "community": true, "icon": "https://raw.githubusercontent.com/magpie-community/plugins/main/packages/amp-usage/page/icon.svg", "summary": {"en": "An Amp usage board: requests, tokens and cache hit rate by hour, day and model, read from your Amp account and legacy local threads. Its background service syncs that usage into Magpie requests and Day card, with duplicate checks; set sync to false to only view it.", "zh": "Amp \u7528\u91cf\u770b\u677f\uff1a\u8bf7\u6c42\u6570\u3001Token\u3001\u7f13\u5b58\u547d\u4e2d\u7387\uff0c\u6309\u5c0f\u65f6\u3001\u6309\u65e5\u548c\u6309\u6a21\u578b\u67e5\u770b\uff0c\u6570\u636e\u6765\u81ea Amp \u8d26\u53f7\u548c\u65e7\u7248\u672c\u5730\u7ebf\u7a0b\u3002\u540e\u53f0\u670d\u52a1\u628a\u8fd9\u4e9b\u7528\u91cf\u540c\u6b65\u8fdb Magpie \u8bf7\u6c42\u7edf\u8ba1\u548c\u6bcf\u65e5\u5361\u7247\uff0c\u5e26\u53bb\u91cd\u68c0\u67e5\uff1b\u628a sync \u8bbe\u4e3a false \u5219\u53ea\u67e5\u770b\u3002"}}, { "package": "@magpie-community/page-day-card", "name": "Day Card", "kind": "page", "community": true, "summary": { "en": "A day of your AI usage printed as a receipt: its cost, requests and streak, the day against your average day, each agent and its models, and its tokens. Copy it as a picture or save it as a PNG. Reads only your usage by day.", "zh": "把一天的 AI 用量打印成一张小票:费用、请求数、连续使用天数、与日均的倍数、每个 Agent 和它用的模型,以及 token 用量。可复制为图片或保存为 PNG。只读取按天的用量。" } }, { "package": "@magpie-community/page-fingerprint", "name": "Fingerprint", "kind": "page", "community": true,