From 5b4ef414e24299409dd0febac9dfe436d448b1e8 Mon Sep 17 00:00:00 2001 From: Yuchen <275028888@qq.com> Date: Fri, 30 Oct 2026 19:45:52 +0800 Subject: [PATCH] registry: PinK agent plugin (magpie-plugin-pink) (#514) Lists PinK (magpie-plugin-pink, YuchenWell, MIT) as an Agent plugin. Only registry.json changes: one entry, unpinned, so magpie installs npm's newest version (0.1.1). Reviewed at 78185d2 (the reviewed head): - magpie-plugin-pink@0.1.1 from registry.npmjs.org: its sha512 matches dist.integrity. The dist diff against 0.1.0 is only the worker lifecycle fix (worker.mjs exits when its host's pid is gone; index.mjs refreshes launch.json before it spawns). There is no network call, no install script and no encoded code. - Harness on macOS (sandbox HOME, mock PinK folder, network refused). Connect, switch and disconnect restore the files byte for byte. The worker exits within 1 s of its host, plugin on. On 0.1.0 it was still alive after 5 s. A second host spawns a new worker. A worker stays alive under host A after a short-lived host B leaves. No stray worker is left. - The repo suite on a local merge with main 848497c: HOME=$(mktemp -d) bun test 3808 pass, 8 skip, 0 fail. check.mjs: only cloudflare-workers-ai is red, the known #519 offline. - Not tried: real PinK chat, and a run inside a real magpie app. --- registry.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/registry.json b/registry.json index e06d412..28c6a7e 100644 --- a/registry.json +++ b/registry.json @@ -111,6 +111,9 @@ "summary": { "en": "Unofficial OfficeAce (Huawei Cloud AgentArts): browser sign-in to a Huawei Cloud account, live models with their credit multipliers, credit usage by bucket, and the daily check-in.", "zh": "非官方 OfficeAce(华为云 AgentArts):浏览器登录华为云账号,实时模型及其积分倍率、分桶积分用量,以及每日签到。" } }, { "package": "@magpie-community/opencode-river-auth", "name": "River", "providers": ["river"], "community": true, "summary": { "en": "River (river.ai) pay-as-you-go inference with your API key: per-account models from /v1/models, documented reasoning efforts and live prices from River's public pricing endpoint.", "zh": "用你的 API key 接入 River (river.ai) 按量计费推理:按账号从 /v1/models 列出模型,带官方推理档位与实时价格。" } }, + { "package": "magpie-plugin-pink", "name": "PinK", "kind": "agent", + "icon": "https://raw.githubusercontent.com/YuchenWell/magpie-plugin-pink/main/assets/pink.png", + "summary": { "en": "Connect PinK to Magpie's models from the Agents page and track gateway usage and cost. Disconnecting restores the managed configuration.", "zh": "在 Agent 页面连接 PinK,使用 Magpie 中配置的模型并查看调用用量与费用;断开时恢复插件管理的配置。" } }, { "package": "@hoptoper/magpie-agent-wispterm", "name": "WispTerm", "kind": "agent", "summary": { "en": "WispTerm on magpie's Agents page: pick one of magpie's models for its Agent, switch reasoning effort with /effort, and switch it off to put its config back. Needs WispTerm 1.46.1 or later.", "zh": "把 WispTerm 加到 magpie 的 Agent 页:给它的 Agent 选 magpie 的模型,用 /effort 切换思考强度,关掉即恢复原来的配置。需要 WispTerm 1.46.1 或更新版本。" } }, { "package": "@hoptoper/magpie-agent-citebox", "name": "CiteBox", "kind": "agent",