Commit Graph
863 Commits
Author SHA1 Message Date
qingnian108 41e90a18d3 agent-console 1.3.3: reconnect on return, sidebar dots, permission-wait, chat icon (#760)
qingnian108's follow-up to #747 and #758, on top of 1.3.2.

- A permission request still open when its turn ends is cancelled by the
  daemon (manager and ACP session both), and an ACP request the Agent
  withdraws ($/cancel_request, through the handler's AbortSignal) closes
  as cancelled. The page waits only on cards that still show buttons, so
  a finished turn no longer leaves 等待授权 with nothing to click. The
  等待授权 pill scrolls to the waiting card.
- 添加到对话 uses a speech-bubble icon.
- Sidebar dot: blinks while running, green after a completed turn, red
  on failure, amber while waiting.
- Wrapper: every disconnect / invalid-link end state offers Reconnect;
  the last safe back URL is kept in sessionStorage (safeBack re-checked
  on read). Coming back to the page (visible / focus) probes the child
  for 4 s instead of waiting out timers pushed back while hidden.

Review (head 0c8ee32b): every changed source line read. 1.3.2's Codex
model_catalog_json change is kept (codex/provider.ts untouched, rebuilt
dist still carries it). No new network in tests, page text set through
textContent/React, no new timers in the page or daemon; the wrapper's
sessionStorage back passes the same loopback check (tested with an evil
stored value).

Run (mote, macOS), standalone copy of packages/agent-console:
- npm ci; npm run check OK.
- vitest: 65 files, 489 passed / 17 skipped.
- npm run build, then verify:build: committed app/ and daemon/dist
  identical to the rebuild.
On the PR merged onto main 5026f636: root `bun test
packages/agent-console` 6/6, `bun scripts/check.mjs` exit 0.

Not tried: scripts/e2e-v1.mjs (Playwright, scenario 28), the page with a
live Cursor/Claude/Codex, Windows/Linux.
2026-11-05 18:14:53 +08:00
yetone 5026f6362e workbuddy 0.2.24: plan and extra credits stop the account together (ferock on Discord)
An account with both the plan's credits and extra ones showed only one
of them on magpie's Routing page: the window that stops the account was
the plan's until its credits were spent, then the extra one's. So one
account read "500 / 500 credits" with its extra credits untouched and
left out, the next only its extra credits, and an account at 90% of its
plan was kept for last with all its extra credits left.

Now "Credits" and "Extra credits" are both set aside and a third window,
"Total credits" (the two together), stops the account, for the summary's
split (CreditGroups or package codes) and for extra credits only the
detail lists carry. It takes the plan's cycle and the soonest lapse of
the two (summed when they lapse together); each of the two keeps its
own lapse. magpie already says "Total credits" in every language (Qoder
uses it). magpie keeps a cap the user set on "Credits" holding (its own
commit, with the mover min).

Run (mote): bun test packages/workbuddy, 332 pass; whole repo bun test,
6159 pass 20 skip 0 fail; bun scripts/check.mjs ok.
Broken by hand: the tests against origin/main's index.mjs, 6 fail
(Total credits missing, the plan's window still stopping the account).
Not tried: a real account with both kinds; ferock's bytes weren't
seen, the fixtures are the real shapes already in the tests (China free
summary, WorkBuddy AI Pro, CreditGroups) with a plan-untouched case
added.
2026-11-05 18:06:00 +08:00
yetone 4912c6088b workbuddy 0.2.23: hide DeepSeek Harness's name, on by default
NancyTom18 on X: a WorkBuddy account used from DeepSeek Harness through
magpie was banned, and a reply said Tencent recognises dsh's built-in
prompt. A new per-site switch, "Hide DeepSeek Harness's name" (hide_dsh),
on by default and on in OpenCode, takes the name out of the system prompt,
user and assistant text and tool descriptions: dsh's opener becomes "You
are an AI agent.", the runtime context's checkout and Web GUI lines lose
the name. Tool results, paths, commands, DSH_HOME and ~/.dsh are kept.
Labels in zh, zh-TW, ja, de. README section added.

Run: bun test packages/workbuddy on mote, 332 pass 0 fail, at this tree.
hidedsh.test.mjs uses dsh 0.2.1's literal strings from
@deepseek-ai/dsh-system-prompt and dsh-harness-dev-context.
Broken by hand: with the hook as `if (false && ...)` the new file went
6 pass 4 fail (the four "name doesn't go" cases).
Not tried: a real dsh request capture, a real WorkBuddy account. Whether
this prevents a ban can't be verified.
2026-11-05 17:30:47 +08:00
yetone 7e70a23ca3 agent-console 1.3.2: Codex's picker lists model_catalog_json's models (#758)
With a custom Codex provider, listModels read only config.toml's `model`
and `[model_providers.<p>].models`, so a config whose models live in
`model_catalog_json` (as magpie writes it) showed one "Default" row
(wwenc6621, #758).

parseCodexConfig now reads `model_catalog_json` (a profile's first), and
the picker lists that file's models: slug as the id, display_name as the
label, supported_reasoning_levels/default_reasoning_level as the levels.
Entries whose visibility isn't "list" are left out, as Codex's own picker
does. The path is resolved as Codex's AbsolutePathBuf does it (checked in
openai/codex codex-rs/utils/absolute-path): "~" and "~/..." are home, a
relative path is taken from config.toml's folder. Codex doesn't expand
environment variables; a leading $HOME / ${HOME}, as in the reporter's
config, is expanded here too. The configured model stays the default;
`models = [...]` entries missing from the catalog are kept after it. A
missing or unparsable catalog logs a warning and keeps the old list.

Run (mote, macOS):
- vitest: 62 files, 466 passed / 17 skipped; `npm run check` OK.
- `npm run build`, then `verify:build`: committed dist identical.
- root `bun test packages/agent-console` 6/6; `bun scripts/check.mjs` OK.
- A real magpie-written catalog (33 entries, 31 listed): 31 rows with
  display names and levels.
Broken by hand: the new test file against main's provider.ts: 4 of 5
tests red (the reporter's config gives only the one model); the fifth,
missing/broken catalog, passes on both by design.
Not tried: the console UI itself with a live Codex, and Windows/Linux.
2026-11-05 17:20:20 +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
我是一条没有名字的区andyunwang2442-creator 29a36b1ecf sensenova 0.2.1: localized labels for the provider options (#738)
The two provider options (`create_key`, `prune_old_keys`) carry `labels`, `descriptions` and `confirms` in zh, zh-TW, ja and de, which magpie's host passes through (`optionsOf` → `inLanguages`) and the GUI picks by locale (`optionWords`). The English `prune_old_keys` description now also says a key whose creation time can't be read is never deleted, as `pruneKeys` does, so all five languages say the same thing. Version 0.2.1.

Run at 77a164b25 on mote (macOS, Bun 1.4.2):
- `bun test packages/sensenova`: 57 pass, 0 fail. `bun scripts/check.mjs`: exit 0.
- A probe loading `SenseNovaAuthPlugin` and passing every option string through host.js's caps (label 60, description/confirm 300): all 20 localized strings come through whole (longest: de prune description, 257).
- No `{{` in the file. Each translation read against the English.

Co-authored-by: yunwang2442-creator <yunwang2442-creator@users.noreply.github.com>
2026-11-05 17:11:03 +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
yetone 24da52b8ca minimax 0.2.3: a China-site account call agent.minimaxi.com can't be reached goes once to agent.minimax.cn (#757)
youyo.p_10001 (Discord #feedback, Windows 11, magpie 0.1.2993): every
China-site account call to agent.minimaxi.com (usage, check-in, account,
membership) failed in magpie's plugin host with "unable to get issuer
certificate" for ~16h, while chats on agent.minimax.cn worked. They
checked that agent.minimax.cn serves the same account API with the same
tokens and answers.

accountCall now sends a call to site.agent once more to the site's
agentFallback (China: https://agent.minimax.cn) only when the fetch got
no HTTP answer: a TLS error, a refused/reset connection, a name that
didn't resolve. A 401/403, any other status, a statusInfo/base_resp error,
a redirect to another site (OtherSite) and a timeout or abort are the
answer and are never sent twice. Both attempts share the one 15s
deadline. When both hosts fail, the error names both hosts and why. The
international site has no fallback.

Tests (fallback.test.mjs): agent.minimaxi.com is played by a TLS server
serving a leaf issued by an intermediate the client never saw
(testdata/leaf.pem, generated for the test), so its fetch fails as the
reporter's did; agent.minimax.cn by the fake. The usage card and the
check-in claim go through the fallback; a 401, 404, 502, base_resp error
and a 307 to another site are not sent to the fallback; both hosts
failing names both; the global site doesn't fall back.

Run:
- mote (Bun 1.4.2): HOME=$(mktemp -d) bun test at the repo root: 5942
  pass, 19 skip, 0 fail. bun scripts/check.mjs: registry.json and minimax
  ok.
- xiaomi-gpu Windows 11 (win-run, Bun 1.4.2): fallback.test.mjs 9/9.
- Broken by hand on mote: no fallback at all -> card, check-in and
  both-fail tests red; falling back on any non-ok status -> 401/404/502
  red; falling back on OtherSite and on a body error -> redirect and
  business-error red.

Not tried: no MiniMax China-site tokens here, so no real call to
agent.minimax.cn's account API; that it answers the same is the
reporter's check. The reporter's own Bun 1.4.4 was not run.
2026-11-05 16:41:17 +08:00
yetone 36fc59a79a workbuddy 0.2.22: extra credits only the detail lists have keep the account going once the plan's are spent (ferock)
ferock on Discord (2026-11-05, WorkBuddy China): extra credits weren't
counted, so once an account's base credits were used up magpie moved to
another account, though WorkBuddy would go on serving it on the extra
ones. The card read "17.37 / 500" and "500 / 500" on the plan's window.

Since 0.2.17 extra credits that only the paid/free detail lists carry
(the summary lists the plan's base alone, a China-site free account's
shape) were an "Extra credits" window that was always set aside, so the
plan's window was the one that stopped the account, at 100% with the
extra ones left. The summary's own split (usageOf) already flips that:
WorkBuddy serves the account while any credits are left. Now the
detail-list window follows the same rule: once the plan's credits are
spent with extra ones left, "Credits" is set aside and "Extra credits"
stops the account, carrying the soonest lapse (runsOutAt/runsOut) since
routing reads no window set aside. Both spent, the plan's stops it again.
README says so.

Run at this head on mote (HOME under mktemp): bun test packages/workbuddy
322 pass 0 fail; whole repo bun test 5933 pass, 19 skip, 0 fail;
bun scripts/check.mjs ok.
Broken by hand: the new usage test against the old index.mjs fails (1 fail,
Credits not aside / Extra credits aside).

Not tried: ferock's own bytes, or any real account with extra credits.
The desktop's China sign-in on this Mac is refused (401) by the billing
meter, and I didn't renew it (that would spend the app's refresh token).
The fixture is CN_FREE's real shapes (2026-10-26) with the plan spent.
Whether ferock's extras are a kind the summary lists (already split since
0.2.11) or only the detail lists carry isn't known; this fixes the latter.
2026-11-05 16:12:59 +08:00
yetone 549e41d89e fovea 0.2.4: a state marker counts only at the head of an assistant's text (#756)
state_marker was found by its text anywhere: any item's string content
or any part's text. A Chat tool result or a user message that read a
file or log containing the marker stayed whole on every turn, and lifted
the task message's protection. carriesState now takes the marker only
where the agent writes its state block: an assistant message (Chat,
Anthropic, or a Responses message item) whose string content, or a
text/output_text part, starts with the marker. Tool results, user text,
nested tool_result parts, function_call_output and a marker in the
middle of a text count for nothing. page/measure.js rebuilt (build.mjs's
transform), README option row and CHANGELOG updated. Ships the 8e4105dd
docs fix too.

Run on mote (Bun 1.4.2, temp HOME), at bf959aa60e plus this change:
- bun test packages/fovea: 45 pass, 0 fail (10 new tests).
- bun test (whole repo): 5932 pass, 19 skip, 0 fail. bun scripts/check.mjs ok.
- Old code (origin/main's middleware) with the new tests: 6 fail -
  Chat tool result (string and text part), user string, user text block,
  mid-text assistant, Responses user input_text. The Anthropic
  tool_result (string, nested part) and function_call_output cases pass
  on the old code too: it read only top-level content/text, so those
  were not forgeable; the tests keep them that way.
- Broken by hand: role/type check removed, 4 fail; startsWith replaced
  by includes, 1 fail (mid-text).

Not tried: a live gateway request, magpie's moejs run of cases.json.
Users who put the marker somewhere other than the start of an assistant
text lose the exemption; fovea is not on npm and the option is off by
default.
2026-11-05 15:23:47 +08:00
Akiiwa bf959aa60e agentcompass 0.1.2: sync AgentCompass v0.3.8 scoring (floors, origin, frontier headroom, curves, work-kind inference) (#749)
Syncs Mode A's scoring with AgentCompass v0.3.8 (akiiwa-games/AgentCompass, accounts.json and scripts/allocator.py): ability floors routine 2.3 / hard 3.1, `ability_score_origin` (graded from max(floor, origin)), `critical_headroom_by_difficulty` {frontier: 0.1}, the tool_execution route floor {hard: 2.7}, the 13 effort curves and `effort_ability`/`effort_burn`, and 54bb51e's work-kind inference (COMPUTER_USE_PHRASES, CODE_FILE_RE guard, "translation of", the code-file/debug skip). `extractRequestFacts().hasComputerUse` uses the same phrases and guard, so continuity's GUI `capability_outgrown` no longer fires on bare "gui", "desktop app", "keyboard", "桌面", "键盘". Version 0.1.2.

Reviewed at head 4ff38ce1d (previous review at 4de283991; the 4ff38ce diff drops the four screenshot phrases and adds tests 8.9 to 8.12).

Checked against upstream v0.3.8 (e30836e7) by script: all 13 curves in 8.12's table and `effort_ability`/`effort_burn` equal accounts.json; COMPUTER_USE_PHRASES equals allocator.py:1088 exactly.

Run at 4ff38ce1d on mote (macOS, Bun 1.4.2, Node 22.22.0): `bun test` 40 pass 0 fail; `node --test test/router.test.mjs` 40 pass; `bun scripts/check.mjs agentcompass` exit 0. PR CI (test, on-npm) green.

Broken by hand at 4ff38ce1d, one at a time, each red:
- origin = floor -> 8.9
- CODE_FILE_RE guard off in inferKindFromObjective -> 8.10
- bare "keyboard"/"mouse" in COMPUTER_USE_PHRASES -> 8.10, 8.11
- "translation of" -> "translation" -> 8.10
- namesCode out of the translation skip -> 8.10
- hasComputerUse without the guard, or on GUI_WORDS -> 8.10, 8.11
- "take a screenshot" or "截屏操作" put back -> 8.10
- opus xhigh ability, carbon medium burn, effort_ability.xhigh, effort_burn.max changed -> 8.12
- criticalHeadroom ignoring the table -> 8.7; abilityFloor ignoring the route -> 8.8

Not tried: real routing traffic through a live magpie gateway.
2026-11-05 15:15:28 +08:00
yetone 8e4105dd3d fovea: docs say a cut result is kept by the length guard, not the marker
#755 removed cut()'s "[fovea:" sniff, but the file header (and its copy
in page/measure.js) and the README still said content carrying the
marker is left alone, and the README still counted 31 tests. Comment
and README only; no code or version change.

Run on mote (Bun 1.4.2, temp HOME): bun test packages/fovea, 35 pass,
0 fail, including the measure.js freshness test.
2026-11-05 15:13:35 +08:00
Howie 1e9f14248e fovea 0.2.3: a forged marker no longer exempts old content from cutting (#755)
cut() skipped any text containing "[fovea:" as already cut. That string
can come from a tool result, a file read or a user message, so such a
block stayed whole forever. The sniff is removed; the existing
head + tail + 80 length guard keeps a cut result from being cut again,
since the marker adds at most 44 chars plus the count's digits.
cut() is the one place the cut marker was read, and every route goes through
it: Chat role:"tool" (string and text parts), Anthropic tool_result
(string and nested text parts) and text blocks, Responses
function_call_output / custom_tool_call_output and message parts, and
user/assistant text. Saccade mode compares against the exact NOTE line
only, so it was not affected.

Reviewed head c41cae5cb43770158173369f18acda4e572fdc9e (evanmaranzano),
run on mote (Bun 1.4.2, HOME a temp dir):
- bun test packages/fovea: 35 pass, 0 fail, 128 expects.
- bun scripts/check.mjs: ok.
- A review-only property check, 12000 requests over Chat, Anthropic and
  Responses shapes (string and nested-part tool results, text blocks),
  random head/tail options and lengths, a forged "[fovea: ...]" at a
  random offset, emoji at the end: 0 second-pass differences, 0 forged
  blocks over the bound left whole.
- Broken by hand: putting the includes("[fovea:") line back in
  fovea.middleware.js and page/measure.js turns the new case and the new
  test red (33 pass, 2 fail) and the property check reports 38492
  forged blocks left whole.

Not changed here: state_marker (opt-in, default "") is still found in any
item's text, a Chat tool result's included: #756. Not tried:
magpie's moejs run of cases.json, and a live gateway request.
2026-11-05 15:12:57 +08:00
YangHonghang ba4b7b0545 window-warmup 0.1.3: a task's editor opens under its own row, and the footer link no longer restyles the editor's buttons (#752)
renderList used to append the task editor after every row, so opening a task that wasn't the last one, or starting a new task while saved ones were listed, put the editor at the bottom of the list. Now the editor follows the row it opened: under the clicked task, or under the new row at the top. The footer's 反馈问题 button had reused the `.link` class, so its 11.5px faint rule restyled the editor's 立即发送一次 and 重试 buttons. The footer now has its own `.foot-link`. window-warmup goes 0.1.2 -> 0.1.3.

The browser smoke test (Chromium and WebKit) checks three things. Opening the first of two saved tasks puts the editor right under that row and not last in the list. Clicking 新建任务 then puts it right under the new top row, with one editor and not last. 立即发送一次 computes to 12px while the footer computes to 11.5px.

Run at the reviewed head b5787fee (on mote, macOS, Bun 1.4.2, Playwright 1.62.0 Chromium + WebKit):
- package `bun test`: 265 pass, 0 fail, browser smoke included in both engines. The browser file ran again on its own: 6 pass, 0 fail.
- `tsc --noEmit` (typescript 5.9.3, @types/bun 1.4.4): exit 0.
- `bun scripts/build.ts` rebuilds `dist/` byte for byte.
- `bun scripts/check.mjs`: window-warmup passes.
- repo root `HOME=$(mktemp -d) bun test`: 5926 tests, 0 fail. Browser tests skip at the root because bun test doesn't read NODE_PATH.
- merges cleanly onto main f2dc68c1. PR CI (test, on-npm) green.

Broken by hand, rebuilt into dist/, browser file run again each time:
- Only the new-task branch put back (editor appended after the loop): red in both engines. The wait for the editor under the top row times out after 15s.
- Footer back on `.link` in index.html and style.css: red in both engines, with run 11.5px instead of 12px.
- The whole old renderList: red in both engines, with editorIsLast true and prevIsOpenRow false.
- Head restored: green in both engines.

Not tried: the page inside a real magpie window.
2026-11-05 14:56:39 +08:00
Gavin Wang f2dc68c17e cursor 0.2.41: new input past a parent awaiting results gets a retained Run that takes no reservation (#706)
cursor 0.2.41 (ooboqoo): new input past a parent that is awaiting results gets a retained Run that takes no reservation, so those turns stop falling back to "owner busy" and then "historical native calls" rebuilds. When a later Run of the conversation starts, a parent waiting on results owes its step at once, bounded before that start, and the later Run collects it. The collection waits until owedAt, because Cursor adds a step to a Run's one event as the step ends. If the parent's own results resume it, an uncollected count is withdrawn, and a collected one comes off its final, so the event is billed once.

Reviewed at 74a1d8b23 merged onto main 20b89389, on Linux (WSL2 Ubuntu 24.04, Bun 1.4.2):
- `bun scripts/check.mjs` OK.
- `bun test packages/cursor` three times: 400/1 once, under load, from native-http1's 100 ms writeWait test. That test isn't touched here and is filed as #754. The other two runs were 401/0. Main ran 394/0 twice.
- `native-e2e` + `native-session` + `native-http1` three times: 182/0 each. native-http1 alone five times: green.
- Broken by hand:
  - The selector filter in `create` dropped: the admission test red.
  - No handover: 5 red.
  - No hold: 1 red.
  - No withdraw: 1 red.
  - No final subtraction: 1 red.
  - Restored: 177/0.
- Real account: the author's runs are in the PR. 398 requests at a0f9363, with no owner busy. 144 requests at 74a1d8b, where all 15 handed-over parents were collected once.
2026-11-05 14:02:34 +08:00
qingnian108 2c4e76dbba agent-console 1.3.1: 全部自动同意 (Auto-approve all), split out of #727 (#747)
Auto-approve all (全部自动同意) ships in agent-console 1.3.1, split out of #727 (qingnian108).

The mode is off by default. In it, Codex runs with its sandbox off and Claude Code skips its checks. Cursor, OpenCode and dsh requests are answered allow-once by the console, never allow_always or acceptForSession. Each auto answer is saved with `auto: true` before the Agent goes on, and a banner shows while the mode is on. Plan confirmations and questions still ask. A 1.2 默认 of 全部放行 is not silently upgraded to real auto-approve. Pi keeps the `default` mode id ("Pi never asks"), so switching Agents before the first message never carries auto-approve into an Agent the user didn't pick.

Reviewed at 7e55c87ca merged onto main 20b89389:
- Linux (WSL2 Ubuntu 24.04): root `bun test packages/agent-console` 6/6; `bun scripts/check.mjs` OK; `npm run check` OK; vitest 461 passed / 17 skipped; `verify:build` 5/5 identical.
- Windows 11 (Edge): `e2e:v1` 29/29.
- Linux e2e stops at scenario 5 (steer timeout). It does the same on main 1.3.0, so it was filed as #753.
- Broken by hand:
  - Pi's modeMap back to bypassPermissions: 2 tests red.
  - The keeps line shown for every Agent: 1 test red.
  - Pi's label branch removed: 1 test red.
- An earlier round at 049449612 on macOS checked the daemon behaviour with probes. This version is published from the dist branch; the package isn't on npm.
2026-11-05 14:02:29 +08:00
Akiiwa 20b893893f agentcompass 0.1.1: the decision provider registers again (#742)
With `enableDecisionProvider: true` the plugin now gives a keyless `auth` hook for provider `agentcompass` beside its config entry. magpie's host lists, signs in and serves only a provider an auth hook names, and posts System One to `<loader baseURL>/systemone` through the loader's fetch. 0.1.0 had the config entry only, so with the option on there was no Classifier option, `magpie plugin login agentcompass` failed, and `/v1/systemone` returned 404 (akiiwa-games/magpie-agentcompass-router#1). The loader's fetch answers `/systemone` only and gives 404 for every other path. With the option off nothing is registered. Mode A is unchanged. The README gives the model names for each install source and the order: option, restart, login. Version 0.1.1.

The capability-curve sync from the first push was taken out to go in its own PR. The README's CR bytes went with it.

What was run at b3cbc52dd (WSL magpie-desktop, Bun 1.4.2, Node 22):
- `bun test` in packages/agentcompass: 34 pass. `node --test test/router.test.mjs`: 34/34.
- `bun scripts/check.mjs`: every package and registry.json pass.
- Broken by hand: 0.1.0's src/index.js with this head's tests fails 4 and 4d ("magpie plugin list must show the agentcompass provider").
- The diff since review 496773a47: allocator.js, catalog.js and profiler-core.js are byte-equal to origin/main; index.js and package.json are byte-equal to the reviewed 496773a47; `grep -c $'\r' README.md` gives 0.
- A real magpie (origin/main 1826c4bd9, `go build -tags gtk3`) in a sandbox HOME/XDG on port 3511, using plugin add <dir>, options, login, list, serve, then POST /v1/systemone:
  - 0.1.0 with the option on: "no plugin signs in to agentcompass", then 404 "magpie has no Jev provider".
  - 0.1.1 with the option off: no provider and a 404.
  - 0.1.1 with the option on: "signed in to AgentCompass", then "agentcompass (AgentCompass, 1 models) signed in", then a 200 with work_kind debug_review.
- PR CI: test and on-npm pass.

Not tried: the market (npm) install, since the package is not on npm yet. A Routing Group in the GUI.
2026-11-05 12:46:58 +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 a90b7aa41d workbuddy 0.2.21: the sign-in page opens at the desktop's version, so 企业微信 shows (shenyebuwu)
shenyebuwu (Discord #general) signs in to WorkBuddy with 企业微信 (WeCom),
and the plugin's sign-in page offered no WeCom entry.

The plugin opened www.workbuddy.cn/login with version=2.0.0. WorkBuddy
desktop opens the same /v2/plugin/auth/state page with version set to its
own app version (openAuthUrl: version = CLIENT_INFO_PLUGIN_VERSION, which
the desktop sets to the app's version; read from WorkBuddy.app's app.asar).
The login page's signin-callback chunk shows WeCom to platform workbuddy
only at version >= "5.8.0" (Le/tn, Jt="5.8.0"), so 2.0.0 hid it. The page
now opens with site.app (5.9.3, the version the requests already carry),
for both builds, as the desktop does.

Run (mote, bun 1.4.2, HOME=$(mktemp -d)): packages/workbuddy bun test,
321 pass 0 fail; bun scripts/check.mjs workbuddy ok.
Broken by hand: version put back to "2.0.0", wecom.test.mjs 3 of 3 red.
Real page (Playwright Chromium on mote, a fresh state from
copilot.tencent.com): version=2.0.0 lists 微信 手机号 SSO QQ 邮箱;
version=5.9.3 lists 企业微信 too.
Not tried: a real WeCom sign-in to the end (no WeCom account, no
credentials entered); the WorkBuddy AI page with WeCom (its gate is the
China platform's only).
2026-11-05 12:24:27 +08:00
yetone c96d04bb6b zcode 0.1.51: a gift-only account lists only the models its balance names (young02036)
young02036 on Discord: two ZCode accounts in magpie, one with no GLM
Coding Plan whose Start Plan holds glm-5.3-flash, one subscribed whose
gift shows as GLM-5.3-Flash-Trial. Picking per account the models each
can use worked; left to the plugin's lists, requests failed while the
ZCode app on the same accounts worked.

A gift-only account listed every model the Start Plan's provider config
names (GLM-5.3-Flash, GLM-5.2, GLM-5-Turbo), whatever its balance held,
so magpie's routing took it to serve models it has no bucket for. ZCode
3.17.2 offers such an account the balance's models alone
(resolveStartPlanBalanceAvailability / resolveZaiStartPlanBalanceModelIds).
The models hook now keeps, for a gift-only account, the config models
its balance names (plus the gift names the config lacks and the -Trial
entries, as before). A balance naming no model, or one that can't be
read, leaves the config's list as it was. Coding plan accounts are
unchanged.

Run (mote, bun 1.4.2, isolated HOME): bun test packages/zcode, 200 pass;
bun scripts/check.mjs zcode ok. The new gift.test.mjs case was red on the
old code (GLM-5-Turbo and GLM-5.2 listed) and green after.
Not tried: a real ZCode account (none available); whether the reported
3012 came from such a request is not proven.
2026-11-05 11:30:10 +08:00
qingnian108 5703c9f18a agent-console 1.3: reviewed features from #727 and timeline polish (#733)
This carries #727's reviewed part forward, without auto-approve (that comes as its own PR). Permission behaviour is the same as 1.2.

- Windows Git Bash detection, never the WSL System32 bash. It can be overridden in Settings and is passed per spawn only.
- GBK / system code page decoding of raw process output.
- Folded tool steps that don't wrap at ~600px.
- Select-to-quote, and copy/edit under the user bubble.
- Instant send with the echo replacing the bubble in place, and retry when a send fails.
- `/app` heals itself after sleep/wake. `frame-ancestors` is limited to loopback and Magpie's window.
- Grayscale timeline polish: one-line tool rows, a task-list pill, a reply footer and code blocks.
- Test fixes:
  - The `initializing` push is awaited.
  - `afterEach` waits for the thread store's writes.
  - `runtimeInfo().starting` is exposed, and the steer test waits on it.
  - "idle recycling" waits for closed.

Run on mote (macOS) at 65ab7c94:
- `npm ci`, `npm run check` and `build` are ok; `verify:build` gives 5/5 OK.
- Full `vitest run` x5: 4 green (427 passed). One red, "send while running → queued", is a race that is on main too.
  - Cause: `setStatus(idle)` runs before `queue.shift()`.
  - A 300ms pause injected there makes it red 3/3 on main and on this head.
  - Filed on #585 with the cause and the repro.
- Focused send-latency + manager runs: 12/12. `e2e:v1`: 25/25, with no pageerror or console error.
- Broken by hand:
  - With the old steer wait and the mock send held 400ms, the test is red 3/3; the new wait passes 3/3.
  - With `recycleIdle` made a no-op, "idle recycling" goes red.
- Playwright render:
  - Chromium and WebKit × zh/en × light/dark × 1280/420.
  - No gradients, no coloured left borders, no `<select>`, no page errors.
  - At 420 the page scrolls sideways (scrollWidth 480), the same as main.

Not tried: Windows (Git Bash detection, GBK decoding) and a real agent, rather than the mock.
2026-11-05 11:08:38 +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 13371a3e52 trae 0.2.30: a Trae CN check-in goes on a 15-digit device id (#709)
sept13-yu's bisect on #709 (2026-11-05): with the plugin's own headers
and body ({"req_source":1}), the same token and account, seconds apart,
only x-device-id changed, the account's own 16-digit id got 9074 and a
15-digit one (a random, never-registered one too) was taken. Three
accounts, two machines on two ISPs, magpie's headers and wild-work's
alike: 16 refused every time, 15 taken every time. Every account signed
in since 0.2.16 has a 16-digit id and ugDevice sent it as it was, so
every client-less account's first claim got 9074. 0.2.29's second claim
uses trae-mate's 15-digit uid-derived id, which is likely why it lands.

ugDevice (only used for the ug pages, status and claim, of a trae-cn
account no local client is signed in as) now keeps an id that is
already 15 digits and otherwise makes a 15-digit one from the account's
own device id and uid: the same derivation it used for pre-0.2.16
19-digit ids, now modulo 9e14 with a 1e14 floor, so the first digit is
never 0 (shapeDevice can start with 0, which as a number is 14 digits).
Stable per account, changes only with a new sign-in, never another
account's.

Left alone, and why:
- newDevice stays 16 digits. That id is registered at sign-in, sent on
  every chat request and bound into the renewed JWT; nothing measured
  says chat or renewal want 15, and the bisect showed registration
  doesn't matter for the claim.
- An account whose local Trae CN client is signed in as it keeps the
  client's own device (the bisect didn't touch that path).
- Trae Global: no check-in, 19 digits as before.
- 0.2.29's one extra claim in clientShapeHeaders after a 9074 stays as
  the fallback: the bisect never sent that request with a 16-digit id,
  so "nothing but the id matters in it" isn't measured. It costs one
  claim on a 9074 day only.

Run (mote, bun): packages/trae bun test, 240 pass 0 fail; bun
scripts/check.mjs, 44 packages ok.
Broken by hand: the old index.mjs under the new tests on mote, 11 red,
among them the new "signed in since 0.2.16 (16 digits) checks in on a
15-digit id" test and the request-header tests. Golden ids
(166487253502651, 245914665436526) worked out by a separate Python port
of the derivation, which also reproduces the old 2866487253502651.
Not tried: a real Trae CN account check-in (no account here); whether
the chat or renewal care about the id length.
2026-11-05 10:13:03 +08:00
yetone 73362966e7 agent-office: 0.3.2, with a guard that the hook keeps only local requests
Bumps agent-office to 0.3.2 so #740 (SVG chevrons) and #741 (the
remote switch and its empty-office line) reach users, and notes both
in the changelog with the asset stamps they fixed (stale since 0.3.0).

Adds a guard to "the host part writes what it reads": with no remote
option set, a gateway-key request leaves ctx.state.office null, adds
no session and counts as dropped. Before this nothing failed when the
hook's track() defaulted remote on.

Run on mote: HOME=<scratch> bun test packages/agent-office, 183 pass;
bun scripts/check.mjs agent-office ok; stamp-page.mjs --check ok.
Broken by hand: office.hooks.mjs remote default `!== false` turns
the new guard red (1 fail), restored green.
Not tried: the page in a real magpie window, a real remote agent.
2026-11-05 09:45:19 +08:00
Zhaoji Wang 5150142eb2 agent-office: a Settings switch for agents from other computers and gateway keys (#741)
agent-office: a Settings switch, "Include agents from other computers
and gateway keys", sets options.remote, so the gateway hook keeps
requests that are not local. It is off by default (package default
remote:false, the page reads opts.remote === true, the hook
opts?.remote === true). While it is off the hook counts the non-local
requests it drops (capped at 9999) into the snapshot, and an empty
office says they were ignored and where the switch is, in all nine
languages. Adapted by frederick-wang from QingJ01/magpie-agent-office#5.
Merged onto #740 with the page stamps taken again (a7a5bce6).

Run at the reviewed head a7a5bce6, on mote:
- HOME=<scratch> bun test packages/agent-office: 183 pass, 0 fail,
  34 more times (20 of them four at a time, load ~30). The first run
  of this head had 2 fails whose names were lost to tail; not seen
  again in the 34.
- stamp-page.mjs --check: 0 (every ?v= checked against sha256);
  bun scripts/check.mjs agent-office: 0.
- Broken by hand: dropping the dropped++ turns 2 tests red. Turning
  remote on by default in the hook's track() turned nothing red; a
  guard test follows in the version bump.
- Playwright 1.62.0, Chromium and WebKit, light and dark, stub bridge,
  live.js with dropped:2 and no sessions: the empty state gives the
  hint; ticking the switch hides it, options.set receives remote:true
  after the 2.5s save, and a reload with those options shows the box
  ticked and no hint.

Not tried: a real remote agent or gateway key through a real magpie.
2026-11-05 09:42:49 +08:00
Zhaoji Wang 845fcfea4e agent-office: draw the Settings and picker chevrons as SVG (#740)
agent-office: the Settings button's chevron is an inline SVG that turns
over while the menu is open, and the Language, Scene and Quality pickers
draw the same chevron (appearance: none) in light and dark. .btn is
inline-flex so the chevron sits on the label's centre line, and an empty
Today token count no longer leaves a gap. Adapted by frederick-wang from
QingJ01/magpie-agent-office#4. Also re-stamps the page's asset
fingerprints, which were stale on main for model.js, scene.js,
scene3d.js and app.js since 0.3.0.

Run at the reviewed head 625619bb, on mote:
- HOME=<scratch> bun test packages/agent-office: 182 pass, 0 fail
  (main 1ad712d9: 181 pass).
- bun packages/agent-office/scripts/stamp-page.mjs --check: 0
  (main: 1, "stamps are stale"); every ?v= checked against sha256 of
  its file.
- bun scripts/check.mjs agent-office: 0.
- Playwright 1.62.0, Chromium and WebKit, light and dark, 1200x760 @2x,
  page served from the PR's files with a stub bridge: no page errors;
  chevron centre 95.58px vs label 95.59px in both engines (main's
  glyph: +1.0px Chromium, +1.1px WebKit); open menu turns it 180deg;
  Today padding 16/16; every .btn still 36.3px tall. Screenshots looked
  at, light and dark.

Not tried: inside the real magpie window (WKWebView/WebView2/WebKitGTK).
The three pickers are still native <select> elements (restyled, not
replaced); that is filed separately.
2026-11-05 09:38:34 +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
yetone 5112465ca1 gcp-ai 0.2.1: Gemini's history rules before Vertex, no 400 "Requests ending with a model turn" (#734)
The loader's fetch now hardens a generateContent/streamGenerateContent
body the way magpie's gateway builds Gemini contents (codeassist.go):
- contents ending with the model's turn get a user turn after it
  ("Continue.", or the summary ask when the system prompt is an agent's
  compaction prompt);
- contents opening with the model's turn get Gemini CLI's
  "[Continuing from previous AI thoughts...]" user turn before it;
- a user turn holding a functionResponse beside the user's text is split,
  the responses (and their images) first, the text in a turn of its own.
A body that needs none of it goes byte for byte; countTokens and the
model list are not read. lib/history.mjs, test/history.test.mjs.

Note: magpie's gateway already builds a plugin's @ai-sdk/google request
through buildCodeAssistSent, so those rules reach this plugin from magpie
too (yetone/magpie test TestPluginGeminiNeverAskedEndingWithModel, red
with the gateway's guard removed). This covers a body that reaches the
plugin without them: OpenCode's own @ai-sdk/google, or a magpie path that
skips the build. The reporter's exact request body is not in the issue,
so the tests use #734's conversation shape (Codex compaction after the
model's reply) and #1533's (tool output + compaction prompt in one turn).

Run on mote (mote-run): node --test test/history.test.mjs 5/5; the
package's npm run check + node --test test/*.test.mjs 105 tests, 91 pass,
0 fail (14 skipped, Windows-only); bun scripts/check.mjs exit 0.
Broken by hand: the fetch without hardenRequest fails the end-to-end
test (Vertex fake answers 400 "ending with a model turn").
Not tried: a real Vertex account (none in a sandbox here).
2026-11-05 01:45:46 +08:00
yetone 8fcc592e8b zcode: say what the feed's seq is, ZCode's count of its requests, not a page (#676)
#676 (XinOrigin) suggests scanning marketing/touch at seq 0..8 each
round. ZCode 3.17.2's client (zai-org/ZCode@a9fe401) sends seq as a
per-process counter from 0, one GET per refresh
(marketingTouchService.ts, bootRequestSeq), and its doc says the
number is only for the server's logs and does not change what is
delivered (docs/marketing-touch-client.md, "启动请求序号 seq"). The
plugin already sends it that way. Nine GETs a round per account would
be the tighter polling #503 asks us not to do, so the comment says
why it is one ask.

Comment only: no version bump, nothing run.
2026-11-05 01:44:15 +08:00
yishu 00642d4c6b kimi-work 0.1.17: Work's fast output speed, as K3.1 Pro Fast and a Fast switch (#728)
Kimi Work's "High" output speed is a speedOption of a model in the signed-in Work menu. A model whose option has `speedValue: "fast"` and `available: true` gets a `-fast` row ("K3.1 Pro Fast") and magpie's Fast switch (`service_tier: priority`). A request on either goes out with `X-Kimi-Model-Speed: fast`, the header Kimi's own desktop client sends. The menu is now read with the membership sign-in magpie renews, and the unsigned menu never offers fast. A `-fast` suffix comes off only ids the plugin listed itself.

Header checked against the vendor's client. Kimi 3.2.24 macOS was downloaded from kimi.com's own download link, a Developer ID build from Beijing Moonshot Technology (2J9472RW75); dmg sha256 e40df5954aacdfe69f5e56f9d679ef86a7d25f9134769ffe1b7ea382c77ca8fd. In its app.asar:
- `out/renderer/assets/common-DLYgMFK1.js` builds request headers with `x&&(a[uy]=x),t&&(a[fy]=t)`, where `uy="X-Kimi-Context-Length"` and `fy=c(2634)`.
- Decoded with a decoder of our own (the string table is read as data and rotated to the bundle's checksum; no vendor function was run): `c(2634)="X-Kimi-Model-Speed"`.
- The value comes from `DM`: the chosen speedOption's `speedValue` (`c(1967)`), from options the account can select (`"select"`).
- `kimi-agent-Dw2t9ioO.js` passes it as `modelSpeedHeaderValue` into `llmRequestHeaders`, and the daimon bundle carries `llmRequestHeaders` into the turn.
- No wire capture: not taken by the author or by the review.

Run at 69adea99 on a macOS box:
- `bun test packages/kimi-work`: 103 pass, 0 fail.
- `bun scripts/check.mjs kimi-work`: ok.

Broken by hand, each red:
- header value "fast" changed to "high": 1 fail;
- `available===true` dropped: 4 fail;
- header name changed: 1 fail.
The six breaks from the earlier round, at 45dd499 (code unchanged since, comments only), were each red too.

Not tried: a real request from this review's side (no Kimi Work account here), a lower-tier account's menu, and what a fast request costs.
2026-11-05 01:42:35 +08:00
yetone 3920b745d9 zed 0.1.18: name each request's thread and prompt, as Zed's editor does (#731)
Zed's editor sends CompletionBody with thread_id (the agent thread's id,
a UUID made once per thread) and prompt_id (a new UUID per message the
user sends, kept through the tool calls answering it): zed
crates/cloud_llm_client/src/cloud_llm_client.rs CompletionBody,
crates/language_models_cloud (the Google path sends both),
crates/agent/src/thread.rs advance_prompt_id. The plugin, and the
retired built-in before it, sent neither, so to Zed's cloud every
request was a thread of its own. Yezike-yyy's Gemini 4 Argon
conversation read cache_read 0 on 11 requests of 180k-230k input tokens,
where Zed's docs say Argon bills implicit cache hits.

- a chat.headers hook names a Zed request's session in
  x-magpie-zed-session; the loader's fetch now keeps a Request's
  headers, and complete() reads the header and sends it no further.
- thread_id is a UUID hashed (per-process salt) from the account and the
  session, else the first user message; prompt_id from the thread and
  the count of user messages with text (tool results don't count), on
  all four APIs (Messages, Responses, chat completions, Gemini).
- usage mapping was checked and is right: magpie reads Gemini's
  cachedContentTokenCount through the plugin's passthrough.

Run (mote, bun 1.4.2): packages/zed `bun test` 78 pass 0 fail;
`bun run check` at the repo root, exit 0.
Broken by hand: the new thread-id.test.mjs against the old index.mjs,
7 of 7 red; the loader dropping a Request's headers, its test red;
tool-result turns counted as prompts, the Gemini test red.
Not tried: no Zed account, so no real request; whether Zed's cloud uses
thread_id or prompt_id for Gemini's implicit cache is not known (its
server is closed source). The reporter is asked to retest.
2026-11-05 00:52:08 +08:00
Yaka 4c7f1c15e7 gcp-ai 0.2.0: cache access tokens per account, probe the endpoint in the background (Yaka88, #725)
gcp-ai caches an authorized_user ADC's access token per account until 60 s before it expires (refreshed at Google's OAuth token endpoint, one in-flight refresh shared; gcloud mode still asks gcloud every time), retries a model call once with a fresh token on a 401, and probes the endpoint in the background: only a 401 that stands after one refresh holds later requests, for 60 s. README: the install name, token caching, and a source line. Version 0.2.0.

Reviewed three rounds (e78a89a4, e1f83cad, 3959a795). Run at 3959a795 on mote (macOS, Node 22.22.0, Bun 1.4.2, sandbox HOME):
- packages/gcp-ai `node --test test/*.test.mjs`: 100 tests, 86 pass, 0 fail, 14 skipped (no Chrome there; Windows/Linux only). `bun test packages/gcp-ai`: 86 pass, 14 skip, 0 fail. `bun scripts/check.mjs gcp-ai`: ok.
- Broken by hand at this head: dropping the probe's invalidate and second read turns 6 tests red (the stale-token test among them); dropping only the invalidate turns the stale-token test red. Earlier rounds broke the 401 retry, the cache invalidation, the expires_in rule, the account in the token key, the 401-only probe verdict and the in-flight sharing; each went red.
- The direct refresh (refresh token to https://oauth2.googleapis.com/token only) was cleared by the maintainer on the PR.

Not tried: a real Google account (none on the test machines). #713 rebases onto this.
2026-11-04 23:14:22 +08:00
kongbai01203andkongbai01203 81df338116 zcode 0.1.50: a claim's code 1004 is ineligible, read again in half an hour (kongbai01203, #729)
A claim ZCode answers with code 1004 (HTTP 400, a plan the account is not offered at that moment) is read as ineligible, naming the plan, and asked again half an hour out as an inactive is, instead of failed. Captcha (3007) is unchanged: still "claim it in the ZCode app", never solved. Version 0.1.50 (maintainer bump on the PR branch).

Run at 6837f27e on mote (macOS, Bun 1.4.2, sandbox HOME):
- packages/zcode `bun test`: 199 pass, 0 fail. `bun scripts/check.mjs zcode`: ok.
- Broken by hand: dropping the 1004 branch in claimOne turns 3 checkin tests red; dropping the recheck `until` on an ineligible turns 2 red.
- magpie's host accepts "ineligible" with an until and asks again at it (host.js checkinOutcomes, plugin_checkin.go ValidUntil).

Not tried: a real 1004. The owner's one ZCode account answered 3007 (captcha) for zcode-v3-start-plan-1029 and zcode-v3-start-plan-gb-1104 under both 3.16.3's and 3.17.2's header, so the fixture's message text is the author's, from their six accounts on 11-04.

Co-authored-by: kongbai01203 <kongbai01203@users.noreply.github.com>
2026-11-04 23:14:06 +08:00
YangHonghang 0bd00f0c72 window-warmup 0.1.2: effort-variant caches keep their public models, and Report a problem carries anonymized diagnostics (YangHonghang, #726)
window-warmup 0.1.2 (@magpie-community/page-window-warmup).

- Candidates are now the model cache, /v1/models and the chosen list together
  (deduplicated by full id), so a cache that stores effort variants
  (antigravity's gemini-3.8-flash-high/-low/-tiered) no longer leaves an
  account with no models; layer 3 still keeps only public ids.
- A "Report a problem" link at the foot of the page: GET /api/diagnostics
  (read-only, no model request, works for fatal and read-only instances)
  builds an anonymized report (accounts and keys as acct-N / key-N, task and
  card names left out, free text scrubbed of emails, key-shaped strings,
  Bearer tokens, URL secrets and home user names, saveError included), and a
  two-step copy puts an issue link and the report on the clipboard inside
  magpie's sandboxed frame.

Reviewed at head bf66c2b7302c66395833bb3e93054a55901d77c1, with main 9bba5fed
merged in locally, on a Mac mini (macOS, Bun 1.4.2):
- bun test in packages/window-warmup: 259 pass, 1 skip (browser smoke without
  Playwright), 0 fail; the diagnostics file runs in milliseconds now, with no
  wait on a connect timeout.
- tests/browser.test.ts with Playwright 1.62.0: 4 pass in Chromium and
  WebKit, the sandboxed two-step copy included.
- tsc --noEmit ok; dist/ rebuilt with scripts/build.ts is byte-identical to
  the committed one; bun scripts/check.mjs ok for every package.
- Broken by hand, one at a time: exporting saveError without scrub turns the
  new EACCES /home/alice case red; baseView passing every host turns the
  baseView test red; an unsettled /v1/models fetch turns the unreachable
  gateway test red; dropping the home-directory rule turns both privacy
  tests red.
- Left as is: the header comment in src/diagnostics.ts still says 几十 KB,
  and the unreachable-gateway test connects to a port it has just freed,
  which another listener could take in between.
2026-11-04 22:20:07 +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
liangmouse 16769b21dc joycode 0.2.7: an empty or unterminated Responses stream is an error, not a silent success (liangmouse, #720)
JoyCode's Responses SSE is checked one event at a time, never buffered whole:

- a JoyCode FAILED_RESPONSE envelope (code non-zero) becomes a Responses
  "error" event that keeps its code, message and cause; anything after it
  is dropped;
- a response.completed with no output seen and none in its output list
  becomes error empty_response (an unreadable completed frame too);
- EOF with no completed, incomplete, failed or error event becomes error
  incomplete_response;
- text, refusals, tool and *_call items, reasoning with a summary or
  encrypted content, and explicit incomplete/failed pass byte for byte,
  CRLF included. A completed with no [DONE] after it passes as it came.

magpie's gateway reads a Responses "error" event as a failed turn and owns
the retries; the plugin sends no request of its own. Tests that called
t.mock.method(fetch) several times in one test leaked the mock under Bun
(copilot's tests got "Body already used"); each fixture is its own test now.

Run at the reviewed head 7b74d0c (main d9a6c45 plus this PR, Bun 1.4.4
38afee6c8, CI's version):
- Linux (WSL magpie-desktop), fresh HOME: bun test 5501 pass, 18 skip,
  0 fail; bun scripts/check.mjs ok.
- macOS (mote): bun test packages/joycode 94/94; node --test
  packages/joycode/*.test.mjs 100/100; joycode chat + copilot in one Bun
  process 104 pass, 0 fail (53bf359 alone: 4 fails, "Body already used").
- Broken by hand: index.mjs back to 0.2.6 with the new tests, the 4
  behaviour tests go red; payload.response without ?. , the malformed
  completed test goes red (Bun and Node).
- Probes through loader.fetch: completed without [DONE] or a trailing
  blank line, completed then [DONE], and a double-wrapped full stream pass
  untouched; [DONE] alone, a comment alone, created + [DONE] and a delta
  cut mid-line each end in one incomplete_response.

Not tried: a real JoyCode account (the author ran GPT-6 Astra through
magpie 0.1.2392).
2026-11-04 19:18:48 +08:00
yetone d677c436d3 trae 0.2.29: a 9074 with no client here is claimed once more as client-less tools send it (#709, #722)
With no Trae CN client on the machine, Trae CN answers the plugin's
check-in claim 9074 every day (#722: jiabaoyu, never once taken; #709:
two accounts on a headless box). The same accounts check in through
tools that also have no client: providers-hub daily (#722), wild-work
(#709). #709 first put this down to account-level rate limiting cleared
by wild-work's 8s retry, but its reporter's own log then showed every
wild-work claim taken first time (~100ms, no 9074 since 09-19), so the
retry never ran and waiting is not the difference. What the working
tools share and the plugin doesn't: body {}, x-user-region: CN, a
15-digit id, no Electron UA / 0.1.69, none of the IDE's device headers.
providers-hub sends luckymiaow/trae-mate's request (MIT): those headers
and an id made from the uid alone, never registered at a sign-in.

Now an account no client here is signed in as gets one more claim, at
once, after a 9074, in trae-mate's request as it is (clientShapeHeaders;
its device, market user and session ids from the uid). Once: a second
9074 is the day's answer; no other code is claimed again; an account
that rode its own client's device is not; an account with no uid is
not. The first claim is unchanged, so an account it already works for
sends nothing new. Which single field Trae CN wants is still #709's
bisect.

Run (mote, bun): packages/trae bun test, 239 pass 0 fail; bun
scripts/check.mjs, every package ok.
Broken by hand: the old index.mjs under the new tests, 5 red (the
claimed-once-more, two-claims-never-three, and three message/device
tests); the guard widened to any non-zero code, "only a 9074 is claimed
again" and the 9095 test red. The golden ids for uid u-1 were worked out
with a separate Python port of trae-mate's device_map.rs.
Not tried: a real Trae CN account (no account used); whether the whole
request or one field of it is what Trae CN takes.
2026-11-04 19:09:13 +08:00
Mañjūṣaka ebdd4fd247 history-trim 0.1.1: declare compressToolResults and preserveSystemPrompt, two regression cases (manjughosa, #681)
Declares history-trim's existing compressToolResults (true) and
preserveSystemPrompt (false) options in the package manifest, matching what
history-trim.middleware.js does when they are absent, and adds two
regression cases: a long surrogate-only tool result in the turn being sent
stays whole, and a repeated message is dropped even when its keys are in a
different order. No middleware runtime change. Version 0.1.0 -> 0.1.1 so
the new manifest is packed onto dist.

Run at the reviewed head 06c179d (and merged onto main d9a6c45), on mote:
- bun test packages/history-trim: 23 pass, 0 fail
- bun scripts/check.mjs: exit 0; bun test scripts/: 0 fail
Broken by hand: turning off the `index >= currentTurnStart` guard in
cutToolResults fails the new surrogate case (and "the turn being sent is
never cut"); dropping .sort() in canonical() fails the key-order case.
Not tried: a real request through a magpie gateway with the middleware on.
2026-11-04 19:08:41 +08:00
yetone d9a6c45c64 minimax: the China-site test reads 401 as a word, not inside the fake's port
region.test.mjs checked the account card's error with
not.toMatch(/refused|401/). The error names the fake's address,
127.0.0.1:<random port>, so any port with 401 in it (40199 on CI, the
publish run for aaacefde) turned the test red and held back that publish.
It now matches /refused|\b401\b/, which still catches an "HTTP 401".

Run (Bun 1.4.4 38afee6c8, mote): with the fake forced to port 40199, the
old assertion is red (1 fail, the 40199 message) and the new one green;
bun test packages/minimax 128 pass, 0 fail at the random port.
No other negative status-code match in packages/ (grepped not.toMatch /
doesNotMatch with a 3-digit pattern).
2026-11-04 18:49:47 +08:00
yetone aaacefdea8 gcp-ai 0.1.6: release #723
Ships a4fbe854 (#723): a userinfo reply with no email stops sign-in with
the clear "could not be confirmed" error, and a 0.1.1 adc-pending-XXXXXX
staging dir is not read as an account.

Run: the version bump only. a4fbe854's tree was run before its merge
(Linux full bun test 5483 pass, 0 fail on Bun 1.4.4; gcp-ai on macOS
70 pass with Bun and Node; both fixes broken by hand go red).
2026-11-04 18:44:07 +08:00
拾瑜 a4fbe854be gcp-ai: a sign-in without an email stops with a clear error, and a 0.1.1 staging dir is not an account (NGshiyu, #723)
Follow-up to #606's post-merge notes (c78f965):

- startLogin: a userinfo reply with a sub but no (or an invalid) email, or
  an empty one, now stops with "The Google account email and subject could
  not be confirmed after consent; no new account was recorded" instead of a
  TypeError from googleIdentity?.account.toLowerCase().
- knownAccounts skips a leftover 0.1.1 staging dir (adc-pending- plus
  mkdtemp's six alphanumerics, no "-"), so it is never read as an account;
  an address starting with pending- (adc-pending-user-example-com) is still
  found for the same-sub check.
- README: staging is .adc-pending-*, and only googleSubject and accountId
  are saved at sign-in; consoleAccount, consoleSubject and
  credentialAccount are read when an older record has them.

Not done: the six PNGs under test/evidence stay. The PR description says
they were removed, but the commit doesn't delete them; removing them at the
tip wouldn't shrink a clone, since history keeps them.

Run at the reviewed head fa173ba (main f9b7a1a plus this PR, Bun 1.4.4
38afee6c8, CI's version):
- Linux (WSL magpie-desktop), fresh HOME: bun test 5483 pass, 18 skip,
  0 fail across 406 files; bun scripts/check.mjs ok; no bun/node process
  left behind.
- macOS (mote): bun test packages/gcp-ai 70 pass, 14 skip, 0 fail; node
  --test packages/gcp-ai/test/*.test.mjs 70 pass, 0 fail.
- Broken by hand: without the LEGACY_PENDING_ADC skip, the pending- test
  goes red; with .account.toLowerCase() back, the missing-email test goes
  red (Bun and Node both).
- Bun 1.4.4's and Node's mkdtemp(".../adc-pending-") names all match
  /^adc-pending-[0-9A-Za-z]{6}$/ (200 each).

Not tried: a real Google sign-in.
2026-11-04 18:43:51 +08:00
Pursuit806 f9b7a1ab24 astudio 0.1.4: check-in sends the desktop's clientType and studioVersion, and reads a pending daily reward popup as done (jinyue806, #721)
The account requests to agent.xfyun.cn/xingchen-studio now carry the
desktop client's identity headers, clientType and studioVersion. Without
clientType the server refuses client-popups/pending with 11001001. The
values are AStudio's own: the 3.5.5 desktop bundle
(AStudio-3.5.5-arm64.dmg, sha512 matching the vendor's
client/releases/latest, apps/desktop/dist-electron/main.js and
apps/server/dist/index.mjs, packages/shared/src/astronStudioHttp.ts)
sends "21" on win32, "22" on darwin, and studioVersion = its package
version (3.5.5).

auth.checkin, after a balance read that shows no rise, reads
client-popups/pending (GET only, as the desktop's
listPendingAstronClientPopups does; it never calls client-popups/complete,
so the desktop's own notice is left alone). A DAILY_REWARD_DIALOG there is
the server's record of a grant not yet shown: the check-in reports done,
with payload.points as credit only when it is a positive number. No
popup still reports inactive (#658). A refused popup read reports failed.
astudio 0.1.3 -> 0.1.4 (jinyue806).

Run at 6d2919dce on mote (mote-run): packages/astudio node --test, 38/38
pass; bun scripts/check.mjs astudio: registry.json and astudio ok.
Broken by hand: without the clientType header, the identity test fails;
with the popup branch disabled, the two popup done tests fail (3 red).
The new tests use fake fetches only.

Not tried: a real AStudio account (the author's live run is in the PR).
Linux sends clientType 21 where the desktop sends none (it ships for
mac and Windows only). studioVersion is fixed at 3.5.5; the desktop
sends its own version. Whether a DAILY_REWARD_DIALOG left pending
past its day (desktop closed before showing it) would read as done the
next day was not checked; the desktop completes it as soon as it shows.
2026-11-04 17:42:23 +08:00
webkubor d4eeba4493 fovea 0.2.2: a new middleware, old history to head and tail on a cache-stable boundary (webkubor, #640)
A new gateway middleware, @magpie-community/middleware-fovea 0.2.2 (webkubor, #640): old tool output and text in a long history are cut to head and tail, with the boundary only on multiples of `cut_step` (24) so the cut prefix stays byte-identical between turns and the prompt cache holds. The leading user items before the first answer (Codex's AGENTS.md, environment_context and the task; Claude Code's first message) stay whole. `saccade` ("off" by default) drops the old context on a new topic, judged against that same task. Old images become a text note that keeps their `cache_control`. Ships an evidence page (Plugins > Fovea evidence) that computes a paste-in A/B in the frame, with no network.

What was run, at the reviewed head b9883cf206814fdc01950a00d413a36856de4e11, on mote (macOS, Bun 1.4.2, sandbox HOME):
- `bun test packages/fovea`: 33 pass, 0 fail. The two new Codex saccade cases fail with 0357f1c's middleware (and pass at the head).
- `bun scripts/check.mjs fovea` and `bun scripts/check.mjs`: pass. `page/measure.js` is byte-identical to a fresh `bun build.mjs`.
- `npm pack --dry-run`: 18 files, 131.8 kB unpacked; no brand/, no live-benchmark.mjs.
- The head merged onto origin/main 82b254f2 (registry.json auto-merged): `bun scripts/check.mjs` passes and `HOME=$(mktemp -d) bun test` (the whole repo, as pr.yml runs it): 5477 pass, 0 fail.
- A probe calling onRequest turn after turn. Codex-shaped Responses (instructions, developer permissions item, AGENTS.md, environment_context, the task as input_text, then reasoning with encrypted_content, function_call and function_call_output, 60 turns) and Claude Code-shaped Messages (system with cache_control, a first message with system-reminder, task and an image with cache_control, then thinking + signature, text, tool_use and a 6400-char tool_result with emoji, 70 turns). `instructions`, `system`, `tools`, every reasoning, function_call and assistant item, ids, counts and the cache_control count are unchanged; the four leading Codex items reach upstream byte-identical; no lone surrogate. The shared prefix breaks once per cut_step (Codex 6 of 60 turns, Messages 5 of 70; 0 without fovea), with `saccade: "auto"` too. With auto, a same-task follow-up on Codex ("scheduler retry timing assertion still fails in internal/sched, fix it") and on Messages collapses nothing; a new topic collapses from that turn on (one extra prefix break). Bodies went 16.1 MB to 9.4 MB (Codex) and 26.1 MB to 13.9 MB (Messages) over the run.
- Text the middleware adds upstream is only `[fovea: N chars of old tool output omitted]` and `[fovea: prior topic not carried]`: neither names magpie, a vendor or a limit. Codex's instructions are never touched.

Not tried: a live vendor request with real cache-hit numbers (the evidence is the byte-level prefix). pr.yml's runs were waiting on approval for a first-time contributor, so the CI record is the merged-tree run above. A new topic that shares a common word such as "the" with the task stays below the 0.08 overlap bar only when it has enough words; with saccade off by default that is a tuning note, not a blocker. @magpie-community/middleware-fovea is new to npm, so its first version needs an owner (trusted publishing can't create a package); magpie serves it from the dist branch meanwhile.
2026-11-04 16:56:37 +08:00
MisonL 82b254f2dc registry: list magpie-plugin-codar 0.1.1 (Codar 科搭) (#715)
Lists magpie-plugin-codar (Codar 科搭, SpeedAI's own desktop app and points plan) in registry.json. The package lives on npm, outside packages/.

Reviewed at head 4cc4116d. The package is magpie-plugin-codar@0.1.1, the npm tarball, and its code files are byte for byte the same as MisonL/magpie-plugin-codar tag v0.1.1 (a9d8c461).

Run on mote:
- The npm 0.1.1 tarball unpacked into packages/codar-probe, then `bun scripts/check.mjs`. Every in-repo package and registry.json pass. codar-probe has only the OpenCode 2.x line (plugins#657), which the first review didn't hold against the PR. The two blockers from that review are gone: main no longer exports testables, and auth.loader is present.
- `node --test` at the author's v0.1.1 tag: 188 of 188. The tarball alone fails 1 of 188, a style test that wants CONTRIBUTING.md, which isn't shipped.
- `node --test` and `bun test` in the tarball: 187 pass. The failure is the same style test.
- Exercised the loader: exports are only CodarPlugin and default. A stored key gives `{apiKey}`; no auth or an unusable key gives `{}`.
- 0.1.0 to 0.1.1: a sorted-line diff of index.mjs plus internal.mjs against the old index.mjs shows a pure move plus the loader.

Not tried: no Codar account, so chat, check-in and points weren't run against the real service.
2026-11-04 16:31:56 +08:00
YangHonghang 3e24e22837 window-warmup 0.1.1: models hidden by a routing group are sent, not called missing (#712)
A model a routing group keeps out of /v1/models (Group.Unlists, which magpie
still serves) was taken for gone: the page's model list was disabled and
tasks failed with "模型 X 已不在 Magpie 的模型列表里" without sending.
window-warmup now also reads each provider's chosen models (providers.json
"models") and counts a model as present when it is in /v1/models or chosen:
in the catalog (fetchCatalog/accountsOf), the auto-model pick and a fixed
model's send check. A model known only from chosen has no effort metadata, so
it goes without reasoning_effort. A model in neither is still refused.
Two gateway-unreachable tests now check the error is passed through rather
than its exact wording, which varies with Bun's socket timing.

Review: window-warmup lives in this repo since #661
(packages/window-warmup) and is published to the dist branch, not npm. 0.1.1
is free (main and dist have 0.1.0). Not mover-backed. No new host,
credential, dependency or workflow change; providers.json was already read
and only its "models" list is added (no key text). magpie's Group.Unlists
doc confirms "a request naming one is still served". dist/plugin.js matches
a rebuild of src (dist.test.ts, run on Bun 1.4.2).

Run at 8f10bc07 on mote (Bun 1.4.2, HOME a temp dir as CI): bun test
packages/window-warmup 246 pass 1 skip (browser smoke) 0 fail;
bun scripts/check.mjs exit 0. PR CI green.
Broken by hand: layer 3 without chosen, candidates without chosen, the fixed
model check without chosen, the auto pick needing /v1/models, and entryOf
dropping "models" each turn their new test red. fetchCatalog not passing
chosen is caught only by the dist byte check, not by a behaviour test.

Not tried: a real magpie with an unlisting group (the author ran it on a
Docker magpie with zcode GLM-5.3). A switched-off provider's chosen models
also count as present now, so its old tasks send and get the gateway's
error instead of the local one.
2026-11-04 15:24:16 +08:00
yishu 0ef2261681 minimax 0.2.2: the plan's windows and name from the console's own replies, within magpie's 20s (#705)
The usage card reads a plan's windows from the console's own
token_plan/remains_percent (used and total per window, so a 150% week shows
as "126 / 150 %"), with coding_plan/remains as the fallback (its share
multiplied by weekly_boost_permille when that is over 1000). A general window
at status 3 shows Unlimited; video windows show the console's counts. The plan
is named by the console's current_subscribe_title, else by its tier: Plus,
Max and Ultra as "Token Plan <tier>", the rest "M Plan <tier>".

Time: magpie gives usage 20s. remains_percent and the title are asked
together, each with a 5s timeout, and the fallback has 10s, so planQuota takes
at most 15s, as 0.2.1 could. This answers the earlier review (30,030 ms with
both console endpoints stalled).

Review: both new paths are on the same host (site.platform) with the same
bearer token and X-Group-Id coding_plan/remains already got; no new
dependency or workflow change. 0.2.2 is free (main 0.2.1, npm 0.2.1, dist up
to 0.2.1). Not mover-backed.

Run at f383c5ea on mote (Bun 1.4.2): bun test packages/minimax 128 pass 0
fail; bun scripts/check.mjs exit 0. PR CI green.
Broken by hand (usage.test.mjs): console timeout at 15s, or no timeout on
remains_percent, turns the stall test red (15,001 ms); asking the title after
the windows turns it red (10,006 ms); ignoring the console's used figure turns
the two console-reply tests red.

Not tried: MiniMax's real endpoints (no account here); the author ran one
China-site account with a 150% week.
2026-11-04 15:23:55 +08:00
liangmouse fec25163ab joycode 0.2.6: verified 900k context for GPT-6.1 Sol and GLM-5.3 (#711)
GPT-6.1 Sol and GLM-5.3 join the measured-cap list from #707: when the
account's catalogue offers a larger extJson.contextWindowByPlatform["JoyCode
Desktop"] (1,000,000 for both), limit.context becomes the smaller of that and
900,000, floored to 100k. Only those exact ids: GLM-5.3-jcloud, GLM-5.3-agent
and GPT-6.1 Sol-preview stay at the catalogue's maxTotalTokens. Output limits,
missing or malformed metadata and the static fallback are unchanged. The caps
come from the author's real probes on 2026-11-04 (Sol ok at 900,064 input and
refused with context_length_exceeded near 1,000k; GLM-5.3 ok at 900,074 and
refused with code 1261 near 1,000k), so 900k is a verified tier, not a maximum.

Review: no new host, credential, dependency or workflow change; the diff is
the two map entries, tests, README/CHANGELOG and the version. 0.2.6 is free
(main 0.2.5, dist has up to 0.2.5; joycode is published to dist, not npm).
Head 69227598 is on current main (29555323).

Run at 69227598 on mote (Bun 1.4.2, Node 22): node --test
packages/joycode/*.test.mjs 82 pass 0 fail; bun scripts/check.mjs joycode
and bun scripts/check.mjs (all) exit 0. PR CI green.
Broken by hand: dropping the Sol entry, dropping the GLM-5.3 entry, and
matching ids by prefix instead of exactly each turn the exact-ids test red
(1 fail each).

Not tried: no JoyCode account here, so the probes were not re-run by the
reviewer.
2026-11-04 15:21:20 +08:00
liangmouse 2955532344 joycode 0.2.5: verified Astra and DeepSeek context windows from the account catalogue (#707)
GPT-6 Astra and DeepSeek-V4.1-Flash take a larger limit.context when the
account's own catalogue offers one in
extJson.contextWindowByPlatform["JoyCode Desktop"]: the smaller of that and a
measured cap (900,000 / 1,000,000), floored to 100k, never below the
catalogue's maxTotalTokens. Output limits, other models, malformed or missing
metadata and the static fallback are unchanged. The caps come from the
author's real probes (Astra ok at 921,497 input, context_length_exceeded near
922k; DeepSeek ok at 1,000,073, its error names 1,048,576). Claude-Opus-5-hq
stays at 200k (its 900k probe was refused).

Review: no new host, credential, dependency or workflow change; version 0.2.5
is free (main 0.2.4, dist has up to 0.2.4).

Run at bdfb41d8 on mote: packages/joycode bun test 76 pass 0 fail;
bun scripts/check.mjs ok. Broken by hand: context back to the catalogue's
maxTotalTokens turns the two new context tests red (2 fail).

Not tried: no JoyCode account here, so the catalogue's
contextWindowByPlatform field and the probes were not re-run by the reviewer.
2026-11-04 14:48:43 +08:00