From 47cda88fbe83401b5cd26d22d6952e59186d67bb Mon Sep 17 00:00:00 2001 From: MYCF711 <1451895195@qq.com> Date: Wed, 28 Oct 2026 00:59:44 +0800 Subject: [PATCH] registry: add OfficeAce (officeace-auth) (#399) Adds the OfficeAce entry (officeace-auth, provider officeace, community: true) to registry.json. Reviewed at 5c61f65965d15f6abf09e2f8bcc91b7d07df670e. The 10-27 review blocked it on src/self-register.mjs in officeace-auth 0.1.8, which rewrote magpie's ~/.cache/magpie/plugin-market.json on every load. officeace-auth 0.1.9 (npm, 2026-10-27T16:24Z) removes it. What was run: - npm pack officeace-auth@0.1.9 and @0.1.8, diffed the trees: 0.1.9 drops src/self-register.mjs and its call, the `directory` argument and REGISTRY_ENTRY; adds CHANGELOG.md and publish-npm.mjs (an author-side publish helper, imported by nothing, no install scripts, no dependencies). - grep over index.mjs and src/: no fs writes, child_process, eval or HOME/cache paths. Hosts: auth.huaweicloud.com, sts.cn-north-4.myhuaweicloud.com, agentarts.cn-southwest-2.myhuaweicloud.com, officeace.cn-southwest-2.huaweicloud-agentarts.com, api.modelarts-maas.com. - Load probe in a sandbox HOME with a seeded plugin-market.json in ~/.cache/magpie and ~/Library/Caches/magpie, fetch stubbed to fail: 0.1.9 leaves every file's mtime unchanged and makes no request at load; the same probe on 0.1.8 changes the cache file (the probe sees the write). - Merged with origin/main c20fa33: bun scripts/check.mjs exit 0; full bun test (HOME under TMPDIR) 2902 pass, 3 skip, 0 fail. magpie does not auto-update a package outside @magpie-community (plugin.Official), so an install takes the npm latest at that time. Not tried: a real Huawei Cloud sign-in. --- registry.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/registry.json b/registry.json index 493c626..bfc73d2 100644 --- a/registry.json +++ b/registry.json @@ -83,6 +83,8 @@ "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/agent-kimi-desktop", "name": "Kimi", "kind": "agent", "community": true, "summary": {"en": "Kimi desktop Work on Magpie's Agents page: select a model from Magpie, then disconnect to restore the original service. Not Kimi Code CLI.", "zh": "把普通 Kimi 桌面版 Work 接入 Magpie Agent 页,使用已配置的模型;断开恢复原连接。不是 Kimi Code CLI。"}}, { "package": "@magpie-community/opencode-cloudflare-workers-ai-auth", "name": "Cloudflare Workers AI", "providers": ["cloudflare-workers-ai"], "community": true, - "summary": { "en": "Cloudflare Workers AI with your API token (Workers AI:Edit): 28+ models discovered live from models.dev, the 8 paid-only models flagged, and a Neurons/day allowance row in magpie quota.", "zh": "用你的 Cloudflare API Token(Workers AI:Edit 权限)登录 Workers AI:28+ 模型经 models.dev 实时发现,付费专属模型自动标注,magpie quota 显示每日 Neurons 免费额度。" } } + "summary": { "en": "Cloudflare Workers AI with your API token (Workers AI:Edit): 28+ models discovered live from models.dev, the 8 paid-only models flagged, and a Neurons/day allowance row in magpie quota.", "zh": "用你的 Cloudflare API Token(Workers AI:Edit 权限)登录 Workers AI:28+ 模型经 models.dev 实时发现,付费专属模型自动标注,magpie quota 显示每日 Neurons 免费额度。" } }, + { "package": "officeace-auth", "name": "OfficeAce", "providers": ["officeace"], "community": true, + "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):浏览器登录华为云账号,实时模型及其积分倍率、分桶积分用量,以及每日签到。" } } ] }