Commit Graph
115 Commits
Author SHA1 Message Date
yetone c0c625ac7d antigravity 0.2.1: serves again for whoever has it; magpie gives it to nobody new
The owner (11-15): "正在使用的继续正常,加个提示,新用户不让下载".
0.2.0 answered every request with a 410. 0.2.1 restores the plugin as
0.1.18 had it (git checkout df7d7ae0 -- packages/antigravity), so a user
who has it keeps working. It stays out of registry.json, and magpie's
plugin.Add turns it away for anyone who doesn't have it listed, with a
line on the Providers page telling its users that Google suspends accounts
it sees used this way and pointing to agy-cli. The READMEs say so.

Run on mote at this tree, HOME a temp dir: bun scripts/check.mjs all, and
bun test packages/antigravity packages/agy-cli scripts: 195 pass, 0 fail.
2026-11-16 02:43:44 +08:00
cyanask 001a1f9fbf company-guard 0.4.3: reversible company-name masking middleware (#903)
New middleware package @magpie-community/middleware-company-guard 0.4.3 (ported by @cyanask from cyanask/magpie-company-guard): masks company names in requests with stable per-session aliases, restores them in replies (Responses, Chat Completions, Anthropic Messages, Gemini; streaming and tool arguments), keeps local receipts, and lets a Codex session be approved explicitly. macOS only ("os": ["darwin"]). The receipt page listens on 127.0.0.1:3469 only; nothing goes to an outside host.

Review fixes since 07587b9: default port 3478 (atomcode's) -> 3469, unused in the repo; the three local keys are generated on first run into <config>/magpie/company-guard/keys.json (0600, O_NOFOLLOW, owner-checked) and written into this plugin's own plugins.json entry, so install works with no setup; 27 tests.

Run at 7a147166 on mica: node --test 27 pass, bun test 27 pass; esbuild 0.25.12 rebuild of dist/company-guard.middleware.js is byte-identical (sha256 b2faf535...); merged with origin/main, scripts/check.mjs ok, bun test scripts 24 pass. Broken by hand: onEvent returning the event unrestored -> the four split-chunk tests red; initializeOptions without publishKeys -> five install tests red.
Not tried: a real magpie install end to end. The package is not on npm yet, so it is served from the dist branch until its first npm publish.
2026-11-14 11:18:13 +08:00
MuLiu_SaMa 418d81d896 agent-meowcode 0.1.0: MeowCode as a magpie agent (#1107)
Adds MeowCode (https://github.com/MuLiuSaMa/MeowCode) to the Agents page. magpie writes %APPDATA%\MeowCode\agent\magpie.json, an overlay MeowCode 1.3.0+ reads at start-up and never writes; the user's own providers and keys are untouched. The row's notice says it needs MeowCode 1.3.0 or later.

By @MuLiuSaMa (#1107).

Reviewed at 4593caec:
- MeowCode's reader, desktop/magpie-overlay.cjs, is the same blob (59e0c926) at 3d47a099 and at the v1.3.0 release tag; it reads every field this package writes, keeps only magpie/ ids with loopback baseUrls, and treats {} as no overlay.
- WSL, HOME=$(mktemp -d), merged onto main c95e20a3: bun test in packages/meowcode 5 pass; bun scripts/check.mjs meowcode ok.
- Not tried: a real MeowCode install (Windows only); the author's screenshots cover the real run.
2026-11-14 01:45:20 +08:00
zhangyandzy1233 a410afe0d9 zycode 0.1.0: zycode as a magpie agent through a reversible agent.toml (#1104)
Adds `@magpie-community/agent-zycode` 0.1.0: zycode (`zypi`, the VS Code extension, the ACP agent) on magpie's Agents page. magpie writes the model, gateway URL and key to `~/.pi-python/local.env`. A host part (`bridge.mjs`) copies them into the `[model]` table of `agent.toml` as text, and puts the file back byte for byte on disconnect, keeping any edits the user made meanwhile.

Reviewed at 618771e7c9269c8248599f05cd86eb18e00c358f:
- WSL Ubuntu 24.04, Bun 1.4.2: `bun test` in packages/zycode 20 pass; `bun scripts/check.mjs zycode` exit 0.
- Broken by hand: disconnect leaving agent.toml as is (`const back = current`) turns 9 of 20 red.
- No network and no child processes; local files only, temp-and-rename, symlinks refused.
- Real run by the author (Ubuntu VM, zypi 0.9.1, magpie v0.1.4069): only the four [model] lines changed; one turn answered through magpie (Usage shows zycode, 4 calls); after disconnect, agent.toml and local.env have identical sha256.

Not tried: Windows, macOS, the VS Code extension's frozen agent binary.

Co-authored-by: zy1233 <zy1233@users.noreply.github.com>
2026-11-13 23:17:06 +08:00
Akiiwaandakiiwa-games c4e9c1099e agentcompass 0.2.0: route on AgentCompass v0.6.0 (#1083)
agentcompass routes on the AgentCompass v0.6.0 engine: four capability
categories, quota-economy seat ordering and data gates. With no caller
profile, a request keeps the model the client asked for. External
scoring stays off unless allowExternalScorer and a scorer base URL are
both set. The reference ships in the package. This supersedes #791.

Run at 52a98632, merged onto main, on WSL (Ubuntu 24.04) with
HOME=$(mktemp -d):
- npm test in packages/agentcompass: 140 pass, 0 fail
- bun scripts/check.mjs agentcompass: ok
- Read the diff for new I/O: src/ has no fetch outside the opt-in
  scorer, and no spawn, env read or disk access.
- The docs' scorer example was checked against scorerOptionsOf and
  resolveClassifier.

Not tried: a real Magpie gateway routing live traffic through it.

Co-authored-by: akiiwa-games <akiiwa-games@users.noreply.github.com>
2026-11-13 17:14:25 +08:00
yetone 84d7072a4e Revert "comate 0.1.0: 文心快码 (Baidu Comate) provider plugin"
This reverts commit 9523f472.

A Comate plugin already exists and is listed in magpie's unofficial
plugins: github:PengJunchen/magpie-comate-auth (0.5.12, provider id
`comate`), with native Comate tool calls, task reuse across turns,
images, license paste and the local Comate sign-in, run by its author
on macOS. 0.1.0 here was never run against a real account, carries
tools as JSON text and takes no images, under the same provider id.
Listing it beside the other one gives users the weaker of the two, so
it comes out. It never reached npm (a new package can't be created by
trusted publishing); only the dist branch had it.

Run: git revert only; registry.json still parses
(python3 -c json.load).
2026-11-13 16:25:05 +08:00
yetone 9523f472b2 comate 0.1.0: 文心快码 (Baidu Comate) provider plugin
A request from X (@vfrpn). Read from the Comate VS Code extension
BaiduComate.comate 4.14.1 (its bundled Comate CLI, @comate/zulu 1.7.16):
unpacked into its own folder and read, never run.

- Sign-in: the CLI's own flow. A fresh clientId opens
  comate.baidu.com/zh/login?track=COMATE_CLI, /api/client/generate/token
  is polled every 2s for 3 minutes, and /api/client/key turns the token
  into the account's license, the credential. A license copied from
  comate.baidu.com/user can be pasted instead (checked at
  /api/key/valid/<license>).
- Models: the account's list from POST /api/v2/api/models/available, as
  the CLI reads it; "auto" alone when it can't be read.
- Chat: one Comate agent turn per request (conversation, task, execute
  SSE) as a custom agent in the client's own shape (isProjectAgent,
  agentPrompt, no server tools). ANSWER deltas and reasoning go out as
  content and reasoning_content, TOKEN_USAGE as usage. code 401 is a 401,
  code 429 / QUOTA_EXCEED / DOWNGRADE a 429. Tools ride as JSON text, as
  in catpaw; images are refused with 400.
- Usage: Comate has no quota a license can read outside Baidu's network,
  so the card says only whether the license holds.

Run (mica, mote was at load 41; sandbox HOME): bun test packages/comate,
22 pass; bun scripts/check.mjs, exit 0 (registry.json and comate ok).

Broken by hand: dropping the login-name header, the code 401 mapping
and the trim of the answer's leading newlines turned 5 tests red; put
back, 22 pass.

Not tried: anything against a real Comate account (none here). Unknown
until one runs: whether the server takes agentPrompt for a top-level
custom agent with no tools of its own, whether conversation and task
need more fields, whether thinkingEnabled / effort / contextWindow are
accepted, the real model ids and the limit frames' shape. The README
says so.
2026-11-13 16:07:44 +08:00
SivanColaandSivanCola 8768126af3 deepzora 0.1.0: Deepzora as a magpie agent through a reversible TOML bridge (#1043)
Adds @magpie-community/agent-deepzora: Deepzora on magpie's Agents page, through a reversible bridge that adds a magpie-agent provider to ~/.deepzora/config.toml and the key to ~/.deepzora/.env, and puts both back on disconnect. The package is reasonix-desktop's bridge with Deepzora's names; vendor.mjs is byte for byte the merged reasonix-desktop copy (sha256 46e08060…).

Run at the reviewed head 858f09aa, on a separate test Mac, Bun 1.4.2 and Node 22.22.0, temp HOME:
- bun test packages/deepzora: 12 pass; node --test: 12 pass
- bun scripts/check.mjs: ok; npm pack --dry-run: 13 files, 57.0 kB
- a probe over the bridge in temp dirs (corrupt and half-written TOML, user edits across a switch and a disconnect, pre-existing keys in four forms, CRLF, read-only dir, 0-byte config): each as expected
- full root bun test at 858f09aa: 8482 pass, 20 skip, 0 fail

Broken by hand: 17 breaks, 13 red. Four stay green (an edited credential on switch, a half-written control file read as disconnect, no provider_access cleanup, no lock), the same gaps reasonix-desktop's tests have; listed in the review.

Not tried: a real Deepzora binary or session, acceptance.mjs and resident-acceptance.mjs, Windows (Deepzora uses %APPDATA%\deepzora there; the descriptor has no per-OS paths), a Deepzora Desktop settings save while connected.

The first npm publish of @magpie-community/agent-deepzora is the maintainer's.

Co-authored-by: SivanCola <SivanCola@users.noreply.github.com>
2026-11-12 16:27:26 +08:00
ming_jiang 4b0aef5327 amp-usage: Amp usage page with background collection; day-card 0.3.1 (#1000)
Adds packages/amp-usage (@magpie-community/page-amp-usage 0.1.0). It is a magpie page that reads Amp's local thread files and the gateway's usage.jsonl and shows per-day usage. The service listens on loopback only and requires a per-start service token on every API call. The page that carries the token is served only to a navigation (Sec-Fetch-Mode). The gateway log is read incrementally from a saved offset, whole lines only, and is re-indexed on rotation. The UI words are in ui/words.js (en, zh).

Also bumps packages/day-card to 0.3.1.

Round 3 (13c1f33) adds three things:
- a test that bytes before the gateway-log offset are never re-read;
- ui.test.mjs, which checks that every error code the server can return has words in each language, and that an unknown code falls back;
- words.js, moved out of app.js, served at /words.js and included in the pack.

What ran, at 13c1f33 merged with main 14187408, on mica:
- amp-usage `node --test`: 47/47.
- `bun test packages/amp-usage packages/day-card`: 65 pass, 0 fail.
- `bun scripts/check.mjs`, all packages: ok.
- `npm pack --dry-run`: amp-usage 0.1.0 has 19 files including ui/words.js; day-card 0.3.1 has 17 files.
- Root `bun test` with a temp HOME: 8362 pass, 0 fail (8382 tests, 590 files).
- Render smoke in Chromium and WebKit at 1200 and 420px, en and zh: words.js loads, both languages show their own words, no page errors, no horizontal overflow.

Broken by hand, each run with node and bun:
- collector.mjs:102 made to re-read the whole file every scan: the new offset test goes red.
- `const cut = buf.length`, so a partial line is taken: red.
- Raw error codes shown instead of their words (`w.err[code] || code`): red.
- A zh string deleted: red.

Not tried:
- A real Amp account or the real `amp` CLI.
- Changing the auto-refresh default from 300 to 60 fails no test. The author left it untested and round 2 called it optional.

Rounds 1 and 2 also ran the 1M-line log probe (rss steady at about 363MB, scans of 70 to 114ms after the first), the bad-record and paging probes, and the full render matrix including dark mode.
2026-11-11 21:43:59 +08:00
sj1547139223 7ebab07c2a gumloop 0.1.0: API key sign-in, account models and credit estimates (#967)
Gumloop as a provider for magpie and OpenCode: API key + user ID sign-in, the
account's own model list (bare catalog ids mapped back to provider routes, per
account), streaming and tool calls, a missing system prompt supplied for Muse
and MiniMax M3.1 Flash, and a locally calibrated credit estimate (an estimate,
not an invoice). The ledger is written only under magpie's config directory
(kept in memory in OpenCode), a failed read is unknown and never written over,
and updates go through a filesystem ticket lock (bakery) across plugin hosts.
Only a 403 that names the key reads as an expired sign-in, and only Gumloop's
assumed 403 credit_limit_exceeded reads as out of credits. The last change
checks lock contention at least once after a stall, so an uncontended update
that took more than 250 ms to publish its ticket is no longer dropped.

Ran, at the reviewed head 2173d784 (WSL magpie-desktop, Bun 1.4.2, fresh
HOME; Windows 11, Bun 1.4.2, fresh HOME and USERPROFILE):
- bun test packages/gumloop: 87 pass, 0 fail (3x WSL, 2x Windows); the
  200-charge overlap test 10x WSL and 5x Windows green; check.mjs exit 0.
- Merged with origin/main 017cd73e: package 87 pass, check.mjs exit 0, root
  bun test 8294 pass, 0 fail.
- A 300 ms stall injected before the contention loop in production (no test
  hook): the three charge tests stay green; with the loop back to `while`
  they all go red (the charge is dropped).

Broken by hand, one at a time, each restored and touched:
- loop back to `while`: 3 red, the new stall test among them;
- no staleness check, no ticket-0 wait, no ledger .tmp cleanup, a 2000 ms
  wait, ENOENT counted as stale: each red, as in the earlier reviews;
- the old hook-only deadline reset put back together with `while`: the new
  test stays green (the hook hid the bug), so the reset must stay out;
- retryFs back to the shared deadline: green (a Windows sharing error after
  a stall; not reproducible on Linux).

Not tried: Gumloop's real API, a real magpie or OpenCode session with the
plugin. The npm first publish of the new package is the owner's.

Co-authored-by: sj1547139223 <146150939+sj1547139223@users.noreply.github.com>
2026-11-11 19:25:00 +08:00
August 557511d73f openai-decisions: OpenAI Decisions as a System One provider (#762)
New package @magpie-community/opencode-openai-decisions-auth (provider
openai-decisions, model gpt-6-luna) by genglintong: answers magpie's
System One (base /systemone through its fetch) with OpenAI's
POST /v1/decisions, converting choice/score/noul to choice/score/predicate
and back with probabilities, confidence and usage. Sign-in is a plain
OpenAI API key from the host's getAuth, read again per request.

The six points of the 11-05 review, checked at 613fc413a:
1. credentials.mjs, the saved-key reader and the keyless method are gone;
   no read of providers.json, APPDATA or ~/.config/magpie anywhere.
2. A per-question {"type":"refusal"} is left out of answers; the others
   and usage are kept (all refused gives answers {}). magpie's own
   Decisions translation reads a missing answer as a refusal too.
3. Omitted, null or blank instructions get a non-empty default.
4. Registry entry on one line; merges cleanly with origin/main 9204c079.
5. Renamed; package.json magpie.icon and registry icon are an SVG data URI.
6. No test writes to disk; comments in English; the only repo link left is
   this one (NOTICE, for the opencode2.mjs bridge, byte-identical to
   scripts/opencode2.mjs at main).

Run at 613fc413a and at its merge with origin/main 9204c079, off the Mac:
- WSL magpie-desktop, fresh HOME: bun test packages/openai-decisions 23
  pass 0 fail; bun scripts/check.mjs 56/56 (merged tree 57/57);
  node 22.23.4 --test test/*.test.mjs 23/23 on the merged tree; full
  bun test of the merged tree: 8111 pass, 19 skip, 0 fail.
- Windows xiaomi-gpu, fresh HOME and USERPROFILE, Bun 1.4.2: 23 pass 0
  fail, check.mjs 56/56.
- Broken by hand, each red then restored: refusal thrown again (3 red),
  blank instructions passed through (1 red), key captured at load instead
  of per request (1 red), redirect:"error" dropped (1 red), URL check
  dropped (1 red).
- Tests reach no network (fetch injected or globalThis.fetch stubbed).
  npm pack --dry-run lists the 10 files; every runtime import is in files.

Not tried: a real OpenAI Decisions call (no credentials used), Windows or
Linux in a real magpie.
2026-11-11 14:27:27 +08:00
1sh1ro 7153e59d78 page-model-quota 0.1.0: the tokens each model has left, across accounts (#932)
A page that shows how many tokens each model has left across your accounts. It is estimated from magpie's quota windows (/v1/magpie/quotas) and past usage rounds: the median tokens per percent over the rounds that can be used, or one round, or "sparse". The report carries no prose. The page words everything in English or Chinese. The service binds only to loopback, checks the Host, refuses a foreign Origin, wants a per-run key for Origin null, serves index.html to navigations only, and writes nothing under HOME. page-model-quota 0.1.0.

Run at the reviewed head dd8d44164d505088efeb07d80784128134aad213, on the Windows box (mote's sshd was refusing connections):
- node --test test/*.test.mjs: 14 pass. bun test: 14 pass. bun scripts/check.mjs: exit 0. It merges cleanly with main 86d3febf.
- Broken by hand: taking the space out of " (from past rounds)" again turns i18n.test red (13 of 14).

At a5d9a8c5, on mote and in WSL (from the review): the Host, Origin, key and navigate-only checks each went red when broken. Wrong Hosts got 403, Origin null without a key got 401, traversal got 404, and a restart rotated the key. The page rendered in Chromium and WebKit at 1200px and 420px, with no Chinese in English. Since then, only the English note's space, an unused usableRounds, the English gateway error and template-literal coverage in the i18n test have changed.

Not tried: in a real magpie window with real quota windows.
2026-11-11 10:49:01 +08:00
webkuborandwebkubor 186b642f5a page-harnessweight 0.4.0: weigh each agent harness behind the gateway (#922)
A page plugin that compares the agent harnesses behind magpie's gateway by agent: input tokens, cache hits, failures, latency and estimated tool-definition size. A local service on 127.0.0.1:3496 reads magpie's usage ledger, and a read-only gateway hook writes tool counts, sizes and names to <config>/harnessweight/tools.jsonl.

Since the review at e0a0ae97 (7c6cd626a, then main merged in):
- Port 3492 -> 3496 (window-warmup has 3492; 3496 is used by no other package).
- Config dir: input.directory, then a cwd probe, then an absolute XDG_CONFIG_HOME, then ~/.config/magpie. A relative XDG is ignored.
- tools.jsonl is append-only. Past 8 MiB it is renamed to tools.jsonl.1. Age is checked at most hourly. Appends from two hosts are serialized by a cross-process lock that is skipped after 100 ms.
- MAGPIE_ADDR is honoured; the UI has English and Chinese (zh-TW and ja read English); preview PNGs dropped; /%E0 returns 400.

Run at 961b20e63c7e00e1dcca723bc2aa1d302f5dd9a3, in WSL (magpie-desktop, Node 22.23.4):
- node --test test/*.test.mjs in the package: 60 pass, 0 fail.
- bun scripts/check.mjs: clean (registry.json ok; the package has hooks, so check skips it).
- Probes against createHandler:
  - Origin null without the token: 403. With the token: 200.
  - A foreign Origin, a loopback Origin on another port, a file:// Origin, a rebound Host and a localhost Host on another port: all 403.
  - The index HTML carries the token and no ACAO.
  - ..%2f: 400. /%E0: 400.
- Rollover with 40-tool rows (1306 B each), 9.5 MiB written: the file peaked at 8,388,590 B (cap 8,388,608) with one rename to .1. Append p50 was 1.35 ms, p99 9.2 ms and max 24 ms.
- Portable dir: the hook's cwd probe and the service's input.directory gave the same tools.jsonl.
- Broken by hand:
  - Size rotation turned off: two rollover tests went red.
  - The Host check removed: the service test "other hosts, other origins and path traversal are refused" went red.

Co-authored-by: webkubor <29485642+webkubor@users.noreply.github.com>
2026-11-10 17:37:33 +08:00
yetone e35aa928ad antigravity 0.1.0: Antigravity with a Google account, ported from magpie's built-in
Signs in with Google (Antigravity's client, PKCE, loopback) or imports a
refresh token / account-manager export, sets up the Code Assist project
(loadCodeAssist, onboardUser on the default tier), lists the account's
models with level variants, and sends every request through
v1internal:streamGenerateContent in the app's envelope, with the
built-in's request shaping (system-prompt cloak, tool ids and results,
schema flattening, Claude and Gemini rules), its error mapping (turned-away
429 -> 400 unapproved channel, 404 model, refused refresh -> 401 expired)
and its usage windows and pools.

A stream's last chunk is an empty text part; sent back in the next turn,
Claude refuses it ("text: Field required"). Both the whole-reply reader and
the request shaper drop it.

Run:
- bun test packages/antigravity on mote: 78 pass, 0 fail.
- bun scripts/check.mjs antigravity: registry.json ok, antigravity ok.
- Real account (the built-in's saved Google account, read only, sandbox
  HOME): model list; stream and generateContent on gemini-3.8-flash; the
  effort header picking -low; claude-sonnet-4-6, claude-opus-4-6-thinking,
  gpt-oss-120b-medium all answer; a Claude Code system prompt to Gemini
  answers 200 (cloak); an unknown model 404; usage gives plan, model
  windows and the Gemini and Claude & GPT 7-day pools; a tool call round
  trip on Claude Sonnet, Opus thinking, Gemini and GPT-OSS.
- Broken by hand: without the empty-text drop the new shape test and the
  generateContent test go red, and the real Claude round trip answered 400.

Not carried over (README): the 6h rest of a turned-away account, Google
Search grounding and image models, countTokens (404, magpie estimates),
sending the system prompt uncloaked, multi-account import, models.dev
names. Not tried: the browser sign-in end to end (the import path was).
2026-11-10 17:30:21 +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
yetone 042e8517b4 doubao-work 0.1.3: Windows too (WANGY1ER on X)
WANGY1ER asked on X for Windows: the plugin said "macOS only", because
binary() knew only /Applications/Doubao.app. Doubao's Windows app is the
same Chromium 147 fork with the same chat page (doubao://doubao-chat/chat),
so the plugin drives it the same way.

- binary(): %LOCALAPPDATA%\Doubao\Application\app\Doubao.exe, the per-user
  install's own exe (Application\Doubao.exe beside it is a launcher).
- dataDir(): %LOCALAPPDATA%\magpie-doubao-work.
- copies() is empty on Windows: Chromium keeps one copy per profile there,
  so the user's own Doubao keeps running and the plugin's copy opens
  beside it, in a second window. No "quit Doubao first" on Windows.
- Linux stays unsupported: Doubao has no Linux build. Its download page's
  platform list is ios, android, mac, OpenHarmony, windows. The sign-in
  says so.

Run:
- bun test packages/doubao-work: 29 pass on mote (temp HOME, as CI),
  win-run (Windows 11) and wsl-run (Ubuntu 24.04). bun scripts/check.mjs ok.
- Live on xiaomi-gpu (Windows 11, Doubao 2.34.6 / Chromium 147), with the
  owner's own Doubao running in the console session: the plugin's App
  started app\Doubao.exe from its own profile beside it, its DevTools port
  answered with doubao://doubao-chat/chat, owns() took it, and each step
  of an ask ran in the real page: NEW_TASK "", CLOUD "" (mode 云电脑),
  自动 and 豆包 2.1 Lite picked, 豆包 2.1 Pro "upgrade", fill wrote three
  lines into tiptap. The owner's copy was untouched throughout.

Broken by hand:
- binary() without its win32 line: "the app is found on macOS and
  Windows" is red on mote and Windows.
- copies() without its win32 line: "on Windows a running copy never
  blocks" is red on mote.

Not tried: a signed-in request on Windows. That Doubao has no account
signed in (its cookie jar is empty), so Enter was not sent; signed-in
STATE relies on data-testid=sidebar_bottom as on macOS.
2026-11-10 09:35:45 +08:00
yetone 801a311480 free-tokens: say it reads AIHOT when the plugin host starts, not on open (0.1.1)
The host part's server() runs each time magpie starts the plugin host
(magpie opening, a plugin installed or changed), not each time the page
is opened. The READMEs and index.js said "on open"; the review of #885
asked for this wording and the merged text still had the old one.

Run: bun scripts/check.mjs free-tokens ok, bun test packages/free-tokens
62 pass (mote). Text only; no behaviour change.
2026-11-10 09:28:58 +08:00
Mingchen Yuandsljdxde 7262e70c6c free-tokens: AIHOT Token 羊毛 page (#885)
New page plugin: AIHOT's Token 羊毛 (free model allowances), sorted into "ready" / "plugin to set up" / "no plugin" against the user's own magpie plugins. Only the vendors in src/allowlist.js are shown; anything else (relays included) is dropped before it reaches the page.

AIHOT's written approval (2026-11-10) is quoted on the PR: free, no ads or sponsors, each user reads it once on their own computer, no proxy, mirror or redistribution, credited in the footer.

Run at 07da91b0 (on mote):
- bun test packages/free-tokens: 62 pass. bun scripts/check.mjs free-tokens: ok.
- The page served with magpie's page CSP in a sandbox="allow-scripts" frame, Chromium and WebKit: tiles 1/2/1 for a fixture of MiniMax (signed in, checked in today), ZCode (installed, not signed in), Zed (not installed), DeepSeek (no plugin) and an unlisted relay (dropped); install popover gives @magpie-community/opencode-zed-auth, login popover "magpie plugin login zcode"; a title holding <img onerror> is shown as text; brand icons load; no dialog.
- Every mapped package checked: 8 on npm, 5 on the dist branch, and each pid is the package's provider id.
- Broken by hand: checkin null guard removed, title unescaped, Zed's npm name unscoped; each turns a test red.

Not tried: a real magpie window with the plugin installed, and the live aihot.news route (no network in the run).

Co-authored-by: sljdxde <sljdxde@users.noreply.github.com>
2026-11-10 09:28:19 +08:00
SpecStream c0329b2c0c specstream 0.1.0: web search and extract tools, and a web search API entry (#866)
SpecStream's Search API and Extract API as tools for every agent, and as a web search entry in Settings > Models > Web search.

Reviewed at 2ae405947ab71dab6f9557a4191a860bd92a2ddf. Run on mote: bun test packages/specstream (9 pass), bun scripts/check.mjs, bun test scripts (22 pass). Both endpoints, called for real without a key, answer 401 {"error":{"code":"missing_api_key",...}}, which unwrap() raises with its status, so a refused key rests in the rotation.

Not tried: a call with a real key.
2026-11-10 04:37:22 +08:00
netube e689973203 agent: add nanobot with model, Library MCP and workspace skills (#908)
Adds the nanobot agent adapter (packages/nanobot): magpie's model, Library MCP servers and workspace skills written into ~/.nanobot/config.json through a journaled, owner-tracked bridge, and restored on disconnect.

fc46523d resolves symlinked parent directories (macOS /var, dotfile-managed ~/.nanobot or ~/.config) while still refusing a symlinked final file, and keeps the preset on host exit; only a disconnect restores.

Run at fc46523d: `bun test` in packages/nanobot, 60 pass / 0 fail on mote (macOS, default TMPDIR under the /var link, which failed 18 of 22 at c6f8f639) and on the magpie-desktop WSL distro (Ubuntu 24.04). Not tried: a real nanobot binary driven through magpie.
2026-11-10 03:26:10 +08:00
yetone e035ea40bb notify 0.1.3: a push when a subscription account is signed out
shannnnnks on X: with several Codex accounts behind magpie's gateway, one
is now and then signed out; they want notify to push it.

magpie v0.1.3443 calls a hooks file's onSignIn once when an account in
use must be signed in again (Codex revoked or refused, Claude, Copilot or
plugin sign-in lapsed, ...), and when a Claude sign-in ends within days.
notify pushes "⚠️ Codex account x signed out / Sign in again in magpie."
(zh with lang "zh") to the same channels. On by default (accounts: true);
one push per account and state per accountCooldownMinutes (60). Webhook
event: {kind: "signed-out"|"ending", provider, account, endsAt?}. ntfy
takes the message's tag, "warning" here. README, registry summary.

Run on mote: bun test packages/notify, 65 pass (7 new: default push, zh,
Claude ending days, accounts false, cooldown, unknown states, webhook
event); bun scripts/check.mjs ok. The new tests can't import onSignIn
from the old notify.hooks.mjs, so they fail there.
Not tried: a real push from a real revoked account.
2026-11-10 01:45:30 +08:00
Qin Huijian f9124bc831 empty-reply 0.1.0: a reply with reasoning but no text ends early, so the agent retries (#900)
Adds packages/empty-reply (0.1.0): a reply made of reasoning alone, with
end_turn (Anthropic) or response.completed (Responses), loses its end
events so Claude Code and Codex retry; a whole reply becomes an error
body or status "failed". max_tokens, refusal and incomplete are kept.
A stopgap for yetone/magpie#3358 until the gateway checks this itself.

Reviewed at 900 head: bun test packages/empty-reply 17 pass,
bun scripts/check.mjs all packages ok, bun test scripts 22 pass (mote,
Bun 1.4.2). Read every case in cases.json against the Anthropic and
Responses stream shapes. The author ran Claude Code 2.1.319 and
codex-cli 0.167.0 against a reasoning-only Chat upstream (ordered and
rotate). Not run by the reviewer in a live gateway.
2026-11-09 23:51:33 +08:00
yetone cbb58f654a day-card 0.1.0: a day of your usage drawn as a card, copied or saved as a PNG
A new page plugin, @magpie-community/page-day-card, for JungleyYeh on X,
who asked for a "daily AI statement".

- It shows a chosen day (today by default, others from a date menu): its
  tokens, cost, calls and errors, then each agent with its models and
  icons. Below them come the streak, the average active day and the last
  two weeks.
- Copy puts the card on the clipboard as an image; Save writes it as a
  PNG.
- The design is quiet, with no gradients and no coloured accents, in
  light and dark. It speaks en, zh, zh-TW, ja and de.
- It asks for one read, usage:day, and needs magpie 0.1.3427 (623e797fd)
  for that read and for magpie.image.copy/save.

What was run (mote):
- bun test packages/day-card: 11 pass, 0 fail. Before engines.magpie
  was set, the guard test was red on the placeholder.
- bun scripts/check.mjs: exit 0.
- Real use: the page in magpie's real GUI server with a sandbox HOME
  holding a copy of real usage, in Chromium and WebKit, light and dark,
  en/zh/zh-TW/ja/de, at 420 and 1100 px, with an earlier day picked and
  Copy pressed. No page errors (magpie 623e797fd's body has the rest).
2026-11-09 23:23:24 +08:00
mikidarenandmikidaren 5d172c46c7 rhino9-ai 0.3.2: Magpie-Rhino, Magpie in Rhino 9's AI panel (#868)
Adds packages/rhino9-ai (0.3.2), an agent descriptor for the Magpie-Rhino companion: Rhino 9's AI panel gets a Magpie entry that uses magpie's models, custom groups and routing strategies through Rhino MCP. Windows only.

Reviewed across four rounds. The last round, at b02996c6, covered the descriptor, the registry entry, OnLoad's folder and the companion at v0.3.2. Since then, 0422f2a1 changes only docs: the Agents table row uses the folder name, and the package README describes the remembered execution mode.

Read for this head: the companion's v0.3.2..v0.3.3 diff (123ea20, d5a36af).
- The new PanelPreferences keeps a single AutoExecute bool in ~/.config/rhino9-magpie/panel-preferences.json, written through temp-and-rename. It defaults to off.
- A preferences file that can't be read leaves confirmation on.
- confirm_design_basis and the scale dialog still ask whatever this setting is.
- v0.3.3 was published by github-actions[bot] from run 42614204457 at d5a36af, and that run passed.

Run (mote) at 0422f2a1: `bun test packages/rhino9-ai` 5 pass, 0 fail; `bun scripts/check.mjs rhino9-ai` ok. The last full `bun test` (7566 pass) was at b02996c6. Only Markdown changed since.
Not tried: Rhino 9 itself (not on the test machines).

Co-authored-by: mikidaren <mikidaren@users.noreply.github.com>
2026-11-09 20:39:24 +08:00
yetone c1ed1b511e doubao-work 0.1.0: 豆包工作 as a provider, by driving the Doubao desktop app
Doubao Work runs its agent loop in ByteDance's cloud and has no API. This
plugin uses the desktop app the way a person does and gives the reply back
as an OpenAI chat completion:

- cdp.mjs (knows nothing about Doubao): starts a Chromium-based app from a
  profile of its own with DevTools on a port it picked and saved, reuses it
  while it runs, never kills anything; Page evaluates and presses keys.
- doubao.mjs: per request a new 工作任务, switched to 云电脑 (Doubao's agent
  never touches this computer), the model picked (Pro needs a paid plan:
  403), the whole request written into tiptap one paragraph a line, Enter,
  and the reply read from the message's content_blocks_v2 (markdown, and
  thinking as reasoning_content) until is_finish. One request at a time.
- prompt.mjs / openai.mjs: system prompt, tools and turns flattened into one
  message; tools asked for as <tool_call>{json}</tool_call> and given back
  as tool_calls; SSE that holds text from the first call (or a tail that
  may start one), and that throws a failure before the reply begins so it
  goes back as an HTTP error.
- Sign-in waits for the account in the separate Doubao window.

Run:
- bun test packages/doubao-work on mote: 24 pass.
- Full suite on mote the way CI runs it (HOME=$(mktemp -d) bun test):
  6936 pass, 20 skip, 0 fail. bun scripts/check.mjs: doubao-work ok.
- Broken by hand: sleep without its aborted check; "an abort between two
  polls stops the ask too" goes red (runs to the 180s idle timeout), green
  with it. Found by the first run: an abort landing between polls was lost.
- Live, the loader against a signed-in Doubao 147 on macOS: auto plain
  answer 200 in 3.9s; doubao-2.1-lite streamed Bash tool call (first byte
  3.6s, total 4.8s); tool result follow-up answered "412 lines"; Pro gave
  403 doubao_upgrade; a 300-word story streamed as 20 content deltas with
  its ```python fence kept; a client abort ended the stream and the next
  request answered 200.

Not tried: through magpie's plugin host and a real agent (Claude Code
sized requests); Windows and Linux (unsupported, sign-in says so). A
stopped request stops being read but Doubao finishes its task (README).
2026-11-09 06:05:35 +08:00
lingandLingwcy 31080df37d agents: add the Eta agent plugin (#845)
Adds the Eta agent plugin (@magpie-community/agent-eta 0.1.0): eta.agent.js descriptor, registry entry and README row.

Run at 43320fbb on mote in a temp HOME: bun test ./packages/eta 5 pass; bun scripts/check.mjs eta ok; npm pack --dry-run 5 files; repo-root bun test 6623 pass / 21 fail, the same 21 as main 7d84184c. Broken by hand: allowing https gateways and removing the registry entry each turn one test red.

Co-authored-by: Lingwcy <Lingwcy@users.noreply.github.com>
2026-11-08 02:57:52 +08:00
gitxmandgitxm 0f0c4ec68f agy-cli: Antigravity on the local agy CLI over ACP (#785)
New package `@magpie-community/opencode-agy-cli-auth` (provider `agy-cli`, `packages/agy-cli`). It serves Antigravity models through the user's installed `agy` CLI over ACP (`agy acp`) and uses agy's own Google sign-in. The plugin reads and writes no Google tokens.

The bridge is gitxm's. On top of it, after review:

- **ACP identity.** The client names itself (`opencode-agy-cli-auth` and its package version) instead of `zed`.
- **Catalog.**
  - Only what agy offers this client is listed: Gemini until a session says more, then the session's model option and `availableModels`.
  - Requests are still routed by everything `agy models` lists.
- **Prompt.** agy keeps its own system prompt by default. The minimal agent is opt-in with `AGY_BRIDGE_MINIMAL_AGENT=1`, and the README says what turning it on sends upstream.
- **Version check.** agy older than 1.4.12 is refused at the handshake. 1.4.12 is the oldest version the `nc` MCP bridge was checked on, and the README documents the bridge.
- **Auto-update.**
  - `AGY_CLI_DISABLE_AUTO_UPDATE` defaults to `true` only for the plugin's own agy processes.
  - A value the user set is passed on as written.
- **Docs.** The READMEs and the registry summary say how this differs from antigravity-acp (#87).
- **Tests.** The author's tests came over under `test/` with a fake agy (an ACP stdio server). Each suite runs in its own `bun test`, and a `mock.module` preload stands in for `node:child_process`.
- **Cleanup.** A duplicate, unreachable image branch in validateBody is gone.

Run at ae5eafb0 on mote (macOS) with HOME=$(mktemp -d):

- `bun test packages/agy-cli`: 7 pass. Per suite:
  - platform 14, compat 9, usage 20;
  - catalog 15, usage-settlement 18, repeat-batch 14;
  - smoke ALL OK (301 checks).
- `bun scripts/check.mjs`: all ok.
- Repo-wide `bun test`: 6792 pass, 0 fail (6812 tests, 492 files).

Broken by hand, and each went red:

- clientInfo set back to zed;
- the version check turned off;
- routing limited to the listed models;
- auto-update forced to true;
- the minimal agent on by default.

Not tried: a real agy, since mote has none, or a real Antigravity account.

Co-authored-by: gitxm <21175063+gitxm@users.noreply.github.com>
2026-11-07 20:14:45 +08:00
Purfeather 5ed1ac6d3d minimax-design 0.1.0: MiniMax Design as an agent, Windows only (Purfeather, #799)
Adds MiniMax Design (packages/minimax-design, @magpie-community/agent-minimax-design 0.1.0) as a magpie agent.

Its one switch writes a single custom-model entry, `config.customModels.user-custom-magpie`, into Design's `%APPDATA%\@hilo\desktop\hub-config.json`. The entry points at magpie's local /v1 with the gateway key and magpie's model list. Reasoning levels are filtered to the ones Design knows (low to max). Disconnecting removes the whole entry and leaves the user's other custom models alone. The agent is Windows only: its paths lean on $APPDATA and $LOCALAPPDATA, so it is never detected on macOS or Linux, and the agent's notice says so.

Also in this change:
- a README Agents row;
- a registry entry;
- COMPATIBILITY.md.

Verified by the author with real use: Windows 11, MiniMax Design 3.0.17, magpie 0.1.3238. Connect writes the entry, Design's model menu shows Magpie, and requests reach the gateway, attributed to minimax-design. Disconnect removes only the entry, and its preview lists it (magpie 0d70f335e, v0.1.3200).

Run at the reviewed head 8e09f13c on a separate macOS machine, with a throwaway HOME (Bun 1.4.2):
- bun test packages/minimax-design: 7 pass, 0 fail.
- bun scripts/check.mjs minimax-design: ok.
- Repo-wide bun test: 6791 pass, 20 skip, 1 fail. The one failure is gcp-ai's ADC consent test (plugin.test.mjs:422), red only under a concurrent full suite. It is green 6 of 6 alone, and the package isn't touched here.

Not tried: a real Design install on the reviewer's side, and macOS/Linux (unsupported).
2026-11-07 19:57:01 +08:00
我是一条没有名字的区 e7004d9354 inkstone 0.1.0: Intern InkStone (书生·端砚) Token Plan, browser sign-in, credit card and ink-* key chat (#775)
New package @magpie-community/opencode-inkstone-auth 0.1.0 for Intern
InkStone (书生·端砚, Shanghai AI Lab) Token Plan, provider id
`intern-inkstone`. Community package by yunwang2442-creator.

What it does:
- Browser sign-in (Edge/Chrome, its own profile under
  $XDG_CONFIG_HOME or ~/.config/magpie/inkstone-browser, or
  %LOCALAPPDATA%\magpie\inkstone-browser). The login window has no
  debugging port. A headless CDP read takes the uaa-token cookie, and the
  same read renews it silently later.
- Usage card: ink-credit balance, 5-hour and 7-day windows, credit packs.
- Chat: a pasted ink-* API key, or one the sign-in creates, named
  ink-<host4>-<acct4>-<rand4> (18 of the console's 20 characters). An
  idempotency clash (-15109) retries with a fresh name, up to three times.
  Pruning is on by default. It only touches this machine's and account's
  prefix, keeps the newest two and the key this sign-in created, and never
  deletes manual keys or keys of unknown age.
- Closing on Unix: SIGTERM, then SIGKILL only after a 15s grace. Leftover
  browsers are matched by --user-data-dir=<escaped profile>, and Windows
  uses .Contains().
- The login wait comes from an injected waitForLogin in tests. No env
  hook is left in production code.
- Hosts: discovery.intern-ai.org.cn, discovery-api.intern-ai.org.cn,
  127.0.0.1 (CDP).

Outside the package: scripts/opencode2.mjs lets a prompt with
`required: false` stay optional (`p.required !== false`). Every package's
copy is synced byte for byte, so all 39 copies in the merged tree are blob
afe074cb. No other package sets `required: false` on a prompt, so this
changes nothing for them. Also a root README row and a registry entry.

Review at 36412a15, on mote, HOME=$(mktemp -d), Bun 1.4.2:
- bun test packages/inkstone: 68 pass, 0 fail in Asia/Shanghai, UTC,
  America/Los_Angeles and Pacific/Kiritimati.
- bun scripts/check.mjs inkstone and bun scripts/check.mjs: ok.
- bun test (repo), on 36412a15 merged with origin/main e7cb9dc5:
  6743 pass, 20 skip, 0 fail. main has since moved by cline 0.1.14 and
  zcode 0.1.55 only, and none of the adapter copies changed.
- Broken by hand, each red: no protectName protection; prune_keys default
  off; no post-sign-in prune; no SIGTERM on close; the -15109 retry keeping
  its name.

Not tried: a real InkStone account sign-in on macOS, Linux or Windows (no
account here); a live chat request; magpie end to end with the plugin.
2026-11-07 15:07:06 +08:00
mdwsk88 107ab442b8 registry: magpie-search-mix is listed under its package name; zh summary says 混合搜索 (#809)
Lists the community Search Mix plugin under its npm package name,
magpie-search-mix, in registry.json and the README table, so the Plugins
page names it as a community plugin (#724). The zh summary now opens with
混合搜索. The en summary is unchanged.

npm (--prefer-online): magpie-search-mix latest is 0.1.2 (2026-11-07),
magpie.name "magpie-search-mix". 0.1.1 -> 0.1.2 renames the display and
search API name and adds a README section; no new code, endpoints or
dependencies.

Run at merged head 16fe7e9c (origin/main 090b46ba + 331c51cb) on mote,
Bun 1.4.2, HOME=$(mktemp -d): `bun scripts/check.mjs` exit 0, all ok;
`bun test scripts/` 22 pass, 0 fail.
2026-11-07 13:15:16 +08:00
Alexhang1314520 090b46ba4f agent-nowledge-mem 0.1.0: pick Nowledge Mem's Default, AI Now and Background models in magpie (#821)
Adds packages/nowledge-mem-agent (@magpie-community/agent-nowledge-mem
0.1.0), a kind: agent registry entry and a row in the README's Agents table.
Picking a magpie model for the "Nowledge Mem / AI Now" agent points
Nowledge's Default, AI Now and Background purposes at one native
`magpie:nowledge-agent` provider instance; disconnecting restores what the
user had. Distinct from packages/nowledge-mem (gateway recall/capture).

The descriptor (nowledge-mem.agent.js) records the selection; a
dependency-free Bun main syncs it through Nowledge's /remote-llm/* routes
with a journal, manual-edit detection, a restore phase, a pid lock and 0600
atomic writes. Remote backends need HTTPS with a key, redirects are
refused, and unchanged remote polls back off to 30s.

Reviewed head d3b6e3937b371dea24839fe602818c4e6aa4d03d, merged onto
origin/main 049295f5 (clean). Run on mote (macOS) and WSL2 Ubuntu 24.04,
Bun 1.4.2, HOME=$(mktemp -d) each run:
- bun test packages/nowledge-mem-agent: 28 pass, 0 fail (both machines)
- bun scripts/check.mjs nowledge-mem-agent: ok (it skips agent hooks)
- bun scripts/check.mjs: exit 0
- repo-root bun test: 6608 pass, 20 skip, 0 fail (479 files)

Broken by hand, one at a time, each red on the named test:
redirect: 'error'; the quiet-period return; the remote backoff skip;
!referenced before provider removal; defaultRestored before turning
Remote off; the native provider_type check; the per-purpose shape check;
the sandbox's XDG containment; the sandbox's agent-home deletes; the
sandbox's HOME check (its two halves together; each alone is covered by
the other).

Not tried by the reviewer: a real Nowledge Mem app or nmem (the author
reports a contract run on Nowledge 0.10.115), the opt-in smoke and
contract scripts, the runtime inside magpie's plugin host, Windows.
2026-11-07 12:45:50 +08:00
Mañjūṣaka 081c67acaa output-strategy 0.2.0: composable output-style middleware (#814)
Adds @magpie-community/middleware-output-strategy 0.2.0. It is middleware only. It appends composable output-style instructions before the model call, and has a small selection page.
- Codex `instructions` stay byte-identical. The styles go into a `developer` input item at input[0].
- An existing marker means the body was already applied, and it passes unchanged, so the prompt cache holds across turns.
- It writes nothing to disk and has no hooks or telemetry.
- PROVENANCE credits OmniRoute v3.8.52.

Run at 9b47678ba (mote, Bun 1.4.2, HOME=$(mktemp -d)):
- package bun test: 49 pass, 0 fail;
- repo bun test: 6555 pass, 0 fail;
- scripts/check.mjs output-strategy: ok;
- magpie's moejs engine at origin/main 8e350155b: the Claude Code system field is identical over four turns, and the Codex input prefix is stable;
- 12 guards broken by hand, each one red.
- PR CI (test, on-npm): green.

Not tried: real accounts, Codex over websocket, Windows, Linux.
2026-11-07 08:07:11 +08:00
mdwsk88 0daaf15b6e registry: list magpie-search-mix, a web search API that mixes several (#803)
Lists magpie-search-mix (mdwsk88/magpie-search-mix, npm magpie-search-mix@0.1.0) in registry.json and the README's Web search
APIs table: a search API that asks two of Tavily, Brave, Exa, Firecrawl, You.com, DeepSeek, Doubao Search, Yuanbao Search and
SearXNG at once and gives their pages in turn, deduplicated. kind tools, community true, as @guotree/magpie-websearch.

Reviewed: every line of the npm 0.1.0 package, byte-identical to the repo at 8d535f3. No server of the author's, no
dependencies or install scripts; each key goes only to its own vendor's API or the base URL the user gives, redirects not
followed; logs off by default and never hold the query or a key. Not a relay or reseller.

Run on a macOS box with HOME=$(mktemp -d), at 97f34721 merged on main f58fa9d9:
- bun test: 6489 pass, 0 fail; bun scripts/check.mjs: 48 ok; registryProblems(registry.json): none.
- package's own bun test: 69 pass, 0 fail; red when redirects are followed, a key is left unmasked, the query is not hidden,
  one source is accepted, dedup or key rests are removed.
- real: keyless You.com gave 3 pages in 1.8 s; with a bogus Tavily key beside it, Tavily was turned away (key masked) and
  You.com's pages came back.
Not tried: the keyed vendors, and inside magpie's GUI.
2026-11-06 23:24:03 +08:00
Joey Shao 367e879cab mclaw 0.5.2: China Mobile Cloud's MClaw agent (ai.yun.139.com), with a browser sign-in (#746)
New package @magpie-community/opencode-mclaw-auth 0.5.2 (joey-41): China
Mobile Cloud's MClaw agent (ai.yun.139.com) as a provider. A browser
sign-in in a dedicated Chrome profile per sign-in harvests the yun.139.com
ticket and fetches the llm key and the model multipliers by itself; the
models come from the account's own lists; the usage card reads the
aitokens pool and, through the vip SSO chain (toSourceId 001005), the
records' own endTime as the reset; the ticket is renewed headless from the
account's own profile, and a ticket for another phone number is refused.
Every host is China Mobile's own. registry.json and the README table list
it.

Reviewed at 905e2a6b, 7ed7d0aa and 7304ac15 (0.5.2, edcd9549 plus a
merge of main). The last review's two must-fixes are in the code:
magpie's cancel (callback(undefined, { signal }) and authorize's signal
both call harvesting.abort(); startBrowserHarvest records an abort while
Chrome is still starting and closes it once open), and a failed,
cancelled or timed-out sign-in deletes its signin-* profile dir after
releasing the lock. Re-signing an account leaving its old dir behind is
in the package README as a known limit.

Run at 7304ac15 (origin/main 10a61c2e already in it), sandbox HOME:
- mote, Bun 1.4.2: bun test in packages/mclaw 30 pass, 0 fail;
  bun scripts/check.mjs mclaw and bun scripts/check.mjs (all) ok.
- WSL Ubuntu 24.04, Bun 1.4.2: whole-repo bun test (see the PR).
- The real startBrowserHarvest with Chrome for Testing on mote, aborted
  before Chrome was up and 4s after: both reject "登录已取消", no Chrome
  left on the profile, no signin-* dir left.
- Review test: authorize and callback given separate signals, as
  magpie's host does, only the callback's aborted: closed and released.
  With callback's listener taken out it goes red (5s timeout).
Not tried: a real MClaw sign-in (no account here). The package's own
magpie-style test hands both calls one signal, so it stays green
without callback's listener; that is the only gap seen.
npm: the name is new, so trusted publishing can't create it; magpie
serves it from the dist branch until an owner publishes its first
version.
2026-11-06 10:35:49 +08:00
yetone 76ea55d3eb think-tags 0.1.2: strip also takes a leading <thinking> or <thought> block, each ended by its own close tag (#777)
strip matched only <think>, so a model that opens its reply with
<thinking>…</thinking> (or <thought>…</thought>) kept that block in the
agent's history through this middleware, while magpie's own gateway
reads all three since e1d4dca96 (yetone/magpie#5106). The three tags
are now one map, as magpie's thoughtTags: a block at the start of the
text only, ended by its own close tag outside Markdown code, so a
</think> inside a <thinking> block is the thinking's words. A stream
holds back a lead that may still become any of the three (<think is
the start of both <think> and <thinking>). to_content still writes
<think>. The package, root README and registry summaries name the three
tags.

Run (mote, Bun 1.4.2, sandbox HOME): bun test packages/think-tags 37
pass, 0 fail; bun scripts/check.mjs ok; whole-repo bun test 6205 pass, 0 fail at origin/main 10a61c2e.
Broken by hand: the map back to <think> alone, 12 fail; the close tag
fixed to </think>, 11 fail; the stream's wait only for a <think> lead,
3 fail (split <thought> and one character a delta).
Not tried: a live model that sends <thinking>. npm: 0.1.1 never
published (plugins#180), so 0.1.2 may not either.
2026-11-06 10:35:33 +08:00
guotree 2b7eb23d77 registry: magpie-websearch lists its 19 search APIs (#766)
README and registry summary for @guotree/magpie-websearch 0.6.0 (19 search APIs).

Checked at 5683f306: the published 0.6.0 tarball (npm, read only, nothing run) has one provider module for each of the 19 names listed (plus two shared moonshot/zhipu helpers), matching its package description. Docs-only diff (README row + registry en/zh summaries); CI test and on-npm green.
2026-11-05 22:36:55 +08:00
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
LEOLI 8765cf8f9c atomcode 0.3.0: AtomGit CodingPlan provider plugin (LILEOO, #716)
Adds packages/atomcode (@magpie-community/opencode-atomcode-auth 0.3.0), an AtomGit CodingPlan provider: browser OAuth and AtomCode CLI sign-in (~/.atomcode/auth.toml), signed requests to AtomGit's own gateway, per-account models and quota, daily claim, a loopback-only diagnostics page, and OpenCode 1.x/2.x entries. Registry and README entries added. By LILEOO.

Reviewed at c57b099fff4689c0198c1c6414f04b27614b4092. The last blocking point (an inline TOML comment on a known line went into the uid and was written back) is fixed: values end at an unquoted #, quoted/escaped/literal strings keep their #, and a rewritten line keeps its comment.

Run on a separate test machine (Bun 1.4.2, sandbox HOME):
- PR head merged onto origin/main 24da52b8: bun scripts/check.mjs exit 0 (atomcode ok); whole-repo bun test 6103 pass, 0 fail. origin/main alone: 5942 pass, 0 fail.
- packages/atomcode at the head: bun test 161 pass; node --test test/*.test.mjs 161 pass.
- The new auth-file test against 55ff272's auth-file.mjs: red (1 fail), green at the head.
- Probe: the review's file (id = "123456" # c) parses to uid 123456 and renders back as id = "123456" # c; also #c with no space, CRLF with a tab before #, "1#2", and a literal-string id all round-trip to the same uid. At 55ff272 each gave a uid with the comment in it.

Not tried: a real AtomGit account. A [user] header with a trailing comment is refused ("no user id"), not corrupted; the CLI never writes one. First npm version needs an owner publish; until then magpie installs it from the dist branch.
2026-11-05 16:54:02 +08:00
Vlad Shulcz ba442a62a5 registry: list @vshulcz/magpie-deja, deja-vu's project-scoped gateway recall hook (#611)
Lists @vshulcz/magpie-deja (deja-vu's gateway recall hook) as a middleware
entry in registry.json and the README's gateway hooks table, after
OpenViking. The summary (en, zh) says recall is scoped to the request's
ctx.cwd, secret patterns are scrubbed, the recalled excerpt goes with the
request to the model provider, and the model is asked to end a helped reply
with a one-line "déjà vu: … — reusing it." note.

Contributed by @vshulcz (#611).

What was run at the reviewed head 1dca7a2853bc, merged onto main a90b7aa4:
- Linux (magpie-desktop, Bun 1.4.2): `bun scripts/check.mjs` exit 0;
  `bun test scripts/` 22 pass, 0 fail; registry.json parses, 83 entries,
  deja-vu right after @openviking/magpie-plugin; the icon URL answers 200
  image/svg+xml.
- The package npm serves now, @vshulcz/magpie-deja 0.23.5 (the registry
  lists no version, so this is what users get): deja.hooks.mjs is
  byte-identical to 0.23.3, reviewed in #611; only README, version,
  funding and the @vshulcz/deja-vu ^0.23.5 range changed. The linux-amd64
  binary (sha256 86502a9d…) is the one in GitHub release v0.23.5's
  tarball, whose sha256 matches checksums.txt. At v0.23.5 the network
  code (embed client, update look) is not on the hook-prompt path: embed
  is used only by search/MCP with a sidecar the user made, and the
  release look skips hook-* commands.
- In a sandbox HOME on Linux, `bun add --ignore-scripts
  @vshulcz/magpie-deja@0.23.5`, two fake Claude Code transcripts in two
  projects, `deja index`, then onRequest under `unshare -rn` (no network):
  local origin with projA's cwd recalled projA only (projB's canary
  absent), projB likewise; a same-named folder elsewhere came back empty;
  remote, gateway-key and no-cwd were skipped with the body unchanged.
  The sk-…, password= and AKIA… strings in the transcript did not reach
  the request. The closing "déjà vu: … — reusing it." line is there, as
  the summary says. deja wrote only under ~/.cache/deja.

Not tried: a real magpie gateway with a real agent session; Windows and
macOS binaries of 0.23.5.
2026-11-05 12:45:40 +08:00
yetone 74cdf0de97 pig 0.1.1: the Agents row picks the model PiG starts on (str_)
str_ on Discord: PiG's row only listed models, where Pi's picks the one it
starts on. PiG keeps that in ~/.pig/agent/settings.json as
defaultProvider and defaultModel (PiG's settings reference and
startup_model.go). The descriptor now says `startup: {config:
settings.json, model: "defaultModel", keys: {defaultProvider: "magpie"}}`,
which magpie v0.1.3008 (1fd02d33c) reads: the row gets a model picker,
both keys are kept aside and put back on disconnect. An older magpie
ignores startup and keeps 0.1.0's connect-only row. The READMEs say so,
and that an enabledModels scope leaving the model out starts PiG on the
scope's first model.

Run (mote): bun test pig.test.mjs (11 pass; the new startup test checks
connect writes the provider defaultProvider names), bun scripts/check.mjs
ok. Real PiG 0.5.3 (darwin-arm64 release, SHA256SUMS checked) in a
sandbox HOME with this connect's models.json and the startup keys,
against a fake OpenAI server: `pig -p` sent model deepseek/flash; with
enabledModels ["magpie/deepseek/pro"] it sent deepseek/pro.

Not tried: PiG on Windows or Linux, a real magpie gateway in front of it.
2026-11-05 10:47:30 +08:00
yetone 1ad712d963 registry: a package that declares magpie.agent is listed as an agent, with a main or without (#737)
An agent that needs a runtime (miaocell's magpie-agent-deva) keeps its moejs agent file and adds a Bun module as main, as agent-kimi-desktop and agent-reasonix-desktop do. The README's agent convention now says so, and that such a package is kind "agent" in registry.json. check.mjs fails a registry entry whose package declares magpie.agent but whose kind is not "agent" (agentKindProblems in scripts/registry.mjs). magpie's side is v0.1.2995 (ed7aeb052): the GitHub list and the Installed row read the declaration, not the main.

Run: bun test scripts/check.test.mjs, 17 pass (the new test also checks the repo's real kimi-desktop, reasonix-desktop and aider packages); bun scripts/check.mjs exit 0. Broken by hand: agent-kimi-desktop's kind removed from registry.json made check.mjs fail with '@magpie-community/agent-kimi-desktop declares magpie.agent, but its entry's kind is null, not "agent"'; restored. No package version changes, so nothing publishes.
2026-11-05 03:55:16 +08:00
我是一条没有名字的区 6a0d9e5b7a sensenova 0.2.0: browser sign-in, plan-filtered models and credit-pool isolation (#730)
sensenova 0.2.0 (yunwang2442-creator): a browser sign-in that captures the console's
OAuth redirect in a one-off Chromium and reuses or creates a `magpie-<host>-<account>-*`
Token Plan API key; the password sign-in kept as a headless fallback; models filtered
to the account's plan; the Flash-Lite pool kept apart from the general pool. Credentials
are sealed with DPAPI on Windows and stored as plaintext elsewhere, as 0.1.3 stored them.
When DPAPI fails, the value is stored as plaintext and the reason is logged.

Reviewed at d57f4a8b (every line of the diff vs main, every new or changed test).

Run at d57f4a8b:
- mote (macOS, Bun 1.4.2, sandbox HOME): `bun test packages/sensenova`: 57 pass, 0 fail;
  `bun test` (whole repo): 5863 pass, 0 fail; `bun scripts/check.mjs`: ok.
- xiaomi-gpu (Windows 11, Bun 1.4.2) via win-run: `bun test packages/sensenova`: 57 pass, 0 fail.
  DPAPI is refused on that box, so this run took the real plaintext fallback.
- A 0.1.3-shaped record ({type:oauth, access, refresh, expires, accountId, uid, apiKey},
  all plaintext, no tokenHost) against a local fake with separate password and browser
  token paths: the refresh went to the password token endpoint only; then the loader
  served sk-legacy, usage read the pools and models listed the plan's model.
- Refresh failures: 400 invalid_grant gives dead + signIn expired, so the host stops.
  500, 503 HTML and an unreachable server give dead:false, so the host retries after
  RENEW_RETRY (30s). A dpapi: value that can't be unsealed gives signIn expired.

Broken by hand (each change in its own copy; each one turned the named test red):
- seal throws off Windows: 5 red, the 0.1.3 upgrade test among them
- seal throws when DPAPI refuses on Windows: 2 red
- seal throws when DPAPI can't load: 1 red
- pruning scoped to every magpie- key: "never touches another saved account's key"
- no activeSuffix protection: "the key in use is never pruned"
- the pre-prune at the 20-key limit put back: "a full account ... is a key_limit error"
- reuse from any magpie- key: "reuse picks this account's newest working key"
- refresh never dead: "a refresh token the platform has revoked says the sign-in is gone"
- create_key off when unset (the old optionOn): "create_key defaults on outside magpie"
- dedicated pool's grant left out: "several granted pools add up"

Not covered by a test: sending a 0.1.3 record (no tokenHost) to the browser token
endpoint keeps every test green, because the fake serves both token endpoints at
/oauth2/token. The code sends it to the password endpoint, as the run above shows.
HOST_TAG (os.hostname) has no test; checked by reading.

Not tried: a real sign-in (no SenseNova account here, no credentials entered). The
author reports real browser, password, refresh and 0.1.3-upgrade runs on Windows 10
and WSL2 Ubuntu (Node 24) on the PR.
2026-11-05 02:45:52 +08:00
caikn 0daf0c7421 sap-aicore 0.3.0: a new provider for SAP AI Core's GPT Responses and Claude Messages deployments (caikn, #651)
A new provider package, @magpie-community/opencode-sap-aicore-auth 0.3.0
(packages/sap-aicore). It signs in from a local SAP AI Core client-secret
credential file, discovers the account's running GPT (Responses) and Claude
(Messages, Bedrock) deployments per resource group, and sends requests only to
https://*.authentication.*.hana.ondemand.com (token) and
https://api.ai.*.hana.ondemand.com (inference). Image input is gated per model
on the catalog's inputTypes. Also: the root README row, a registry.json entry,
.DS_Store in .gitignore, and scripts/check.mjs accepts an empty static model
list for a package whose provider.models hook is a function with the same id
(npm and the loader are still required).

Reviewed at head b44b3e1b68889c2a12bcaa37ad5d546a398bdde0, with main 9bba5fed
merged in locally, on a Mac mini (macOS, Bun 1.4.2), no real SAP account:
- bun test packages/sap-aicore scripts: 351 pass, 0 fail.
- bun scripts/check.mjs: every package ok, sap-aicore included.
- The two tests that reached the network at e955194 now use inputs root()
  really rejects (/oauth, /v1), and a new test stubs fetch and checks that
  /oauth/token and /v2 are accepted and the token is posted to
  <authUrl>/oauth/token once. plugin.test.js fails on any unstubbed fetch.
- Whole package under a preload that records every non-loopback fetch, connect
  and DNS lookup: 0 attempts (the preload caught a deliberate fetch to
  example.invalid, so it does record).
- Broken by hand: putting the e955194 inputs back turns the test red through
  the new guard; making root() keep the given path turns the new
  /oauth/token + /v2 test red; letting root() accept any path turns 3 URL
  tests red.
- Not tried: a real SAP AI Core account (the author's run record covers one
  GPT and one Claude turn, plain and with a tool call; no image turn).

The first version goes out through the dist branch (npm doesn't have the name).
2026-11-04 22:19:43 +08:00
guotree 9bba5fedc2 registry: list @guotree/magpie-websearch, seven web search APIs (guotree, #724)
Lists @guotree/magpie-websearch (0.3.2) in registry.json and the README's web search section, with the package's own install command under its row and the search-hook template in its own subsection. Name "magpie-websearch"; en and zh summaries say the same: keyless access for AnySearch, Keenable, Parallel and TinyFish, a key needed for Linkup, Metaso and Querit, no downgrade of a failed keyed request. Icon is a 128x128 PNG of 2,710 bytes (fetched: 200, image/png).

Package checked again at 0.3.2 (npm integrity sha512-afEV99u5...kQ==, published 10:34, unchanged since the 11:14 review): only vendor endpoints (api.anysearch.com, api.keenable.ai, api.linkup.so, metaso.cn, api.parallel.ai / mcp.parallel.ai, api.querit.ai, api.search.tinyfish.ai / agent.tinyfish.ai) or the user's own Base URL; each key goes only to its vendor; only the query and search options are sent; no fs, child_process, telemetry or runtime code from strings; no install scripts, no dependencies.

Run at 6ceefcaf8 on the test Mac: bun scripts/check.mjs ok; bun test scripts/ 19 pass, 0 fail. The package's own tests (101 pass) and the keyless searches were run at the earlier review against the same tarball.

Not tried: a search through the gateway by an agent end to end. Left for the author: the package's own package.json magpie.icon still points at the 541 KB assets/icon.png, which an installed plugin's row can use.
2026-11-04 20:35:08 +08:00
SivanCola 075cd237e2 reasonix-desktop 0.1.0: Reasonix 1.x in Discover → Agents (#700)
Adds Reasonix 1.x (Desktop and CLI) to Plugins → Discover → Agents as
`@magpie-community/agent-reasonix-desktop`, agent id `reasonix-desktop`,
separate from magpie's built-in `reasonix` adapter (Studio 2.x and native
1.39). A JSON agent descriptor plus a Bun-host companion (the kimi-desktop
pattern) adds one `magpie-agent` provider to Reasonix's global config.toml
and keeps only the assigned gateway key in its .env, with a journal, a
lock and byte-exact restore on disconnect.

Review commit on the branch: the registry entry's icon was `reasonix`, a
mask name with no icons/reasonix.svg, so Discover would show the generic
mark; it is `reasonix-color` now.

Run at the reviewed head 6cb328f090d8b66e6cf590a69aa4e7b18144c684 (mote):
- packages/reasonix-desktop `bun test`: 12 pass, 0 fail.
- acceptance.mjs with a real Reasonix 1.38.10 (npm) and a magpie built
  from origin/main 4ca55c6b6, sandbox HOME: magpie installs and discovers
  the plugin and bridges the selected model; unchanged Reasonix sends its
  selected model and assigned key to the local API; disconnect restores
  the original selection and credentials.
- resident-acceptance.mjs (a running `magpie serve` follows the switch):
  passed.
- vendor.mjs rebuilt from its pinned sources: byte-identical.
- CI run 41773750085 on 6cb328f0: success.
Not tried: Reasonix Desktop's GUI app itself (the CLI reads the same
config files), Windows and Linux.
2026-11-04 12:38:13 +08:00
yetone 3ec42d48d1 README: the search hook, a template for a web search API from a plugin 2026-11-04 08:19:53 +08:00
Akiiwa d951674164 agentcompass 0.1.0: intent, capability and quota routing as a gateway middleware (#670)
New package @magpie-community/gateway-agentcompass 0.1.0 (akiiwa-games, #670): a gateway middleware that profiles a request and routes `agentcompass` / `agentcompass/*` to a model and effort within the user's own candidateModels. Only `model` and the effort field change; nothing is added to the prompt; no network unless the user sets allowExternalScorer: true plus a URL.

Reviewed at head 3bdea54 (rebased on 7ea6119), after three review rounds.

Run on mote (macOS), at 3bdea54:
- `bun scripts/check.mjs agentcompass`: ok.
- packages/agentcompass `node --test test/router.test.mjs`: 33 pass, 0 fail.
- Every network test passes a mock fetch; the one that doesn't (9.5) replaces globalThis.fetch with a thrower.

Broken by hand, each turned a test red:
- carrier deletes in middleware.js removed: 9.3 and 9.6 red.
- the 400 reject for a virtual model with no candidates replaced by `return undefined`: 9.2 red.
- MAX_NOISE_STRIP_CHARS / MAX_USER_TURN_CHARS set to 1e12: 9.9 red.
- an unclaimed request that carries the key made to return a mutated body: 9.6 red.

Read: the carrier is no longer read from the body (useRouteCarrier, carrierFromBody and the profile branch are gone); DEFAULT_GATEWAY_CANDIDATES is gone; no process.env, no default URL, quotas.json only from an explicit path.

Not tried: the plugin in magpie's real moejs runtime at this head (the review of 9d22371 did that; the changes since are the ones above), and a real gateway with real accounts. Leftover header comments in scorer-live.js, quota.js, catalog.js and allocator.js still say `magpie.hooks`; harmless, to tidy in a later version.
2026-11-04 04:09:20 +08:00
sakisakisa 1d2edbbf2e aelios: link the Aelios-project organization after the transfer (#674)
Points the Aelios links at github.com/Aelios-project/Aelios, where the repository was transferred. github.com/wusaki0723/Aelios now redirects there, and the PR's author is wusaki0723. The README row, the package README and the hook's opening comment are updated, and the prerequisite commit link moves from the sakisakisa-design fork to the canonical repository. Commit a57269c and PR #102 both exist there. Only links change: no code, version or configuration.

Run at the reviewed head 45f0fa3, on mote with a sandbox HOME: bun test in packages/aelios, 178 pass, 0 fail. gh api confirmed the transfer redirect, a57269c in Aelios-project/Aelios, and PR #102 (merged) there.

No version bump. The README on npm updates with the next release.
2026-11-03 19:44:05 +08:00
yetone d0e3d76b1f README: window-warmup's row says it reads magpie's providers.json and model cache
The row said "none (its service calls magpie's gateway)", but src/magpie-files.ts
reads providers.json (keys as sha256 fingerprints, key names, accountModels) and
the models cache. README only, no version bump.
2026-11-03 15:43:19 +08:00
YangHonghang 1ab8238ade window-warmup 0.1.0: a page that sends a short message after a quota window resets, daily or every few hours (#661)
Adds packages/window-warmup (@magpie-community/page-window-warmup 0.1.0), by YangHonghang:
a page plugin whose host part runs a service on 127.0.0.1:3492 and, on a schedule
(after a quota window resets, daily at a set time, or every N hours), sends "hi"
with max_tokens 16 through magpie's gateway to a provider/account/model the user picks.
The registry entry moves from the author's own npm package magpie-window-warmup to this one.
The package README opens with the zh/en warning that sends spend real quota and that some
vendors (Claude subscriptions especially) may treat scheduled requests as unusual use.

Reviewed at 07a0b217adb2a111f839c984cbc955c5bb45b68d:
- Outside packages/window-warmup only README.md and registry.json change; no workflow and no other package.
- The service binds 127.0.0.1, checks Host (DNS rebinding) and Origin (null or itself),
  needs a per-process 32-byte token on /api/*, and serves the index with a nonce CSP.
- It reaches only MAGPIE_ADDR (default 127.0.0.1:3425). providers.json is read for sha256
  key fingerprints only; no spawn, eval or outside hosts.
- A window task sends at most once per resetsAt (or once per hour when idle); daily/every
  tasks catch up only the latest missed point, once.

Run on mote (bun 1.4.2):
- HOME=$(mktemp -d) bun test at the repo root: 5142 pass, 15 skip, 0 fail.
- scripts/check.mjs ok.
- packages/window-warmup bun test: 242 pass (dist.test rebuilds dist byte for byte).
- browser.test.ts with Playwright 1.62.0: chromium and webkit pass. Bun ignores NODE_PATH,
  so it needs node_modules/playwright linked and PLAYWRIGHT_BROWSERS_PATH set under a temp HOME;
  without them it skips.
Not tried: a real send through a live magpie gateway, and tsc --noEmit (no typescript on mote).
2026-11-03 15:43:10 +08:00