58adeadfaceec40aff1b4cd7e91e6fc32936497a
747
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
58adeadfac |
qoder 0.2.55: a request whose max_tokens is 1024 or less does not think at the default (#643)
The same default as WorkBuddy's #643 (itspig): qoderBody's effortFor thought at the model's default effort when no effort was asked, so a title asked at a small max_tokens could spend it on reasoning. A request that names no effort and a max_tokens (or max_completion_tokens) of 1024 or less is now asked as "none": thinking off, or the lowest level for a model that always thinks. An asked effort, and a larger or unnamed budget, are unchanged. Run, at this head, on mote: - packages/qoder: bun test, 365 pass, 0 fail; small-budget.test.mjs new. - bun scripts/check.mjs qoder: ok. - Broken by hand (the SMALL_BUDGET line in effortFor removed): small-budget.test.mjs is red, 1 pass, 1 fail. Not tried: a real Qoder account. Qoder answers 401 to the owner's account (plugins#181), and no Qoder report showed a small budget spent on thinking; the change follows WorkBuddy's measured case. Other siblings checked: trae, devin, commandcode, loomy and kiro send only an effort the client asked or leave the server's default; none add one. |
||
|
|
d51bd50cf6 |
workbuddy 0.2.15: no default effort for a chat whose max_tokens is 1024 or less (#643, itspig)
itspig's change (the commit before) skips the default reasoning_effort at max_tokens 256 or less. This raises the bound to 1024, as SMALL_BUDGET, and reads max_completion_tokens too. Anthropic's API takes no thinking under a 1024-token budget, so a /v1/messages request magpie translates with max_tokens 1024 or less can't have asked for thinking, and the gateway sends it with no effort, the same as OpenCode's default variant. 256 left 512 and 1024 asks thinking at the default. Run, at this head, on mote: - packages/workbuddy: bun test, 315 pass, 0 fail. - bun scripts/check.mjs workbuddy: ok. - Broken by hand (the SMALL_BUDGET line removed): the new test is red, 8 pass, 1 fail. Real, on the owner's workbuddy-ai account (www.workbuddy.ai, sandbox HOME, no token renewal), deepseek-v4.1-flash-sg, default effort high: - main, max_tokens 64, no effort: finish "length", 64 reasoning tokens, empty content (#643's pattern). This head: "stop", 0 reasoning, the title answered. - main, max_tokens 1024: 76 reasoning tokens. This head: 0, answered. - This head, max_tokens 2048: 65 reasoning tokens (the default still goes). - An explicit "high" at 64 still ends "length"; "low" answers. An effort the client names goes as it came. Not tried: the China site (copilot.tencent.com), deepseek-v4-pro (11102 on the AI site), kimi-k3.1-pro (11158, not for free users). |
||
|
|
8d8b108e67 |
fix(workbuddy): omit default reasoning effort when max_tokens <= 256
When a chat does not explicitly name reasoning_effort, withDefaultEffort injects the model's default reasoning effort (e.g. 'high'). However, for lightweight tasks specifying small output limits (e.g. max_tokens <= 256 like title generation or short classification), forcing a high reasoning effort consumes the entire completion token budget on reasoning alone, producing 0 text tokens before hitting finish_reason=length. Skip default reasoning effort injection when max_tokens <= 256 while preserving explicit client-specified efforts and normal-sized chats. Issue #643, PR #644. |
||
|
|
38ef050204 |
commandcode 0.1.22: Beam is sent each earlier reply's reasoning back (EDwinpzy)
Reflection's Beam (reflection/beam:free) answered a fresh one-turn chat and turned the second turn away with 400 "Missing required parameter: 'messages[N].reasoning_content'", a reply another model made included; it took the request once each earlier assistant message had something there (EDwinpzy on magpie's Discord, magpie 0.1.2717, through /v1/chat/completions and /v1/responses alike). The Provider API's list says nothing of it (Beam's entry is id, name, context_length and supported_endpoints, read 2026-11-03), so: - a model matching reflection/beam has reasoning_content on every assistant message: its own when it has some, the thinking sent back as reasoning (moved, not duplicated), else "." (a blank one, which magpie sends tool turns with, is replaced too: whitespace may read as missing); - any other model the Provider API refuses with a 400 asking for reasoning_content is asked once more with it filled, and is filled from then on (in-process). Other models' requests go as they came. Run at this head (mote, bun 1.4.2): bun test in packages/commandcode, HOME=$(mktemp -d) as pr.yml does: 101 pass, 0 fail. bun scripts/check.mjs commandcode: ok. Broken by hand: reasoning-back.test.mjs against the old index.mjs: 4 of 7 fail (both of the reporter's two-turn shapes, the reasoning/blank case and the learned model get 400); the three "goes as it came" pass. Not tried: a real Beam request. The one Command Code key on this machine answers 401, so the placeholder "." and the refusal's JSON around the reporter's words are not checked against Beam itself. Go's /alpha/generate path is unchanged and not tried with Beam. |
||
|
|
fa46c0764f |
agent-office 0.3.1: README says eleven scenes
0.3.0 (#637) added five scenes, but the README still said six. It now says eleven in the English image caption, in the zh 3D feature line (which lists the five new scenes too) and in the file list's scene3d.js line. The patch bump puts the README into the dist tarball. No code changed. Run at this commit on mote (Bun 1.4.2): bun test in packages/agent-office 181 pass, 0 fail; bun scripts/check.mjs agent-office ok. |
||
|
|
87561b3fc3 |
agent-office 0.3.0: library, cyberlab, greenhouse, arctic and rainy night scenes (#637)
Adds five scenes to agent-office: library, cyberlab, greenhouse, arctic and rainy night. Each has themed 3D decorations and an ISO/2D canvas palette, and its name is in all 9 languages. Bumps the package to 0.3.0, and the registry summary now says eleven scenes in en and zh. The six existing scenes keep their ISO/2D palette: `scene2.theme` is set only for the five new ids. By kongtou20070406. Run at the reviewed head 8986d2f on macOS (mote, Bun 1.4.2, Playwright 1.62.0): - `bun test` in packages/agent-office: 180 pass, 1 fail. The fail is jump.test.mjs's host-restart jumpRequest test: herdr.log was never written at load ~70. It passes 6 of 6 alone at this head and 3 of 3 on main |
||
|
|
eea8c9bcf0 |
workbuddy 0.2.14: the free model's ledger estimate is shown, not routed on (#641, XiaoFeiyu9)
XiaoFeiyu9's China account (paid credits, deepseek-v4.1-flash at x0.11)
read 99% of the free model's window in routing: 187,701,367 of the 1.9e8
soft cap, from 937 answered calls and no 429, while the credits meter had
2,457 credits left. The window is this machine's ledger summed against a
cap measured on two other accounts; neither is the vendor's word for this
account, yet the card was a routing window and would have stopped the
model at 190M.
Now the summed card is set aside (aside: true): magpie shows it beside the
account and never counts it as the allowance (allowanceOf skips aside
windows). Only a refusal's card (refused: true, used 100, the vendor's
reset) stops the model. Nothing is lost by waiting for the refusal:
magpie's gateway already reads WorkBuddy's 429 reset ("将在 … 重置",
"reset at …") and its "switch to the other models" (resetsWhen,
otherModels in internal/gateway/routing.go) and rests this model alone, on
this account alone, until that time. Both builds, as both read the sum
the same way.
The China cap goes from the soft 1.9e8 to the measured 2e8 (#625's
refusals at 200,389,043 and 200,485,923). The 5% headroom only existed so
routing would stop before the vendor; with the sum aside it would only
make the card read high. The reporter's sum now reads 187.7M / 200M.
Run at this head (
|
||
|
|
fa144e4c9e |
qoder 0.2.54: a request's model_config is built as Qoder's client builds it, not sent as the listing entry (#638, square-235)
square-235 (plugins#638): on Qoder CN, magpie's DeepSeek-Flash (dfmodel)
calls show in QoderCN's billing as "Auto", charged at Auto's rate, while
Kimi-K3.1-Pro (kmodel_latest) calls are billed as themselves. Their
screenshots show magpie asking qoder-cn/dfmodel, and the billing rows at
those times saying Auto.
The model id did map: X-Model-Key and model_config.key were dfmodel. What
differed from Qoder's own client was model_config. The plugin sent the
model's listing entry whole. Qoder's client (CN CLI @qodercn-ai/qoderclicn
1.1.81 Pcu, desktop 0.4.3 nzc, the qoder-agent-sdk worker) sends a trimmed
object: key, display_name, model "" (or outer_provider), format, is_vl,
is_reasoning (false when thinking is off), api_key "", url "", source,
max_input_tokens (2e5 when missing). dfmodel's entry carries a
minimal_version (on qoder.com {"cli":"0.1.25","jb_plugin":"0.15.0",
"ide":"0.3.0"}; in the CN listing {"vsc":"999.999.999"}) and kmodel_latest's
on qoder.com has none, which matches the one billed wrong. Likely cause,
not confirmed: no Qoder CN account was used.
- modelConfig(m, thinking) builds the client's object, and qoderBody sends
it in place of m.config.
- The class: a model whose entry has no key, or key auto/default, or a key
other than the one asked for, is refused. ask answers 400 with the
reason and sends nothing. The worker reads a missing key as "auto". A
model id the listing doesn't have was already a 400 before any send.
- README: the Models section says what model_config carries now.
Not changed: the worker also sends chat_context.extra.modelConfig {key,
is_reasoning}; the plugin still doesn't. X-Model-Key/X-Model-Source stay.
Run (mote, bun 1.4.2), at this tree: packages/qoder `bun test`, 363 pass,
0 fail, with the new model-config.test.mjs (8 tests built from the real
testdata/listing.json and cn-listing-free-view.json bytes; the CN listing
is a free account's, so its entries are turned on in the test and nothing
else is changed). `bun scripts/check.mjs` passes.
Broken by hand: with model_config back to m.config, 6 of the 8 went red
(the four dfmodel/kmodel_latest shape tests on qoder and qoder-cn,
is_reasoning off, the key refusal). With the key guard removed, the
refusal test went red.
Not tried: a real Qoder CN chat with dfmodel, and whether the billing row
now says DeepSeek-Flash. The upstream SSE "model" is "auto" for every
model (seen on a real qoder.com kmodel_latest call), so it can't tell.
QwenWork and QwenWork Enterprise get the same model_config and were not
tried.
|
||
|
|
48d0cecaf8 |
zed 0.1.15: only compact_20260112 reaches Zed in context_management (nllay, #636)
Zed's cloud parses an Anthropic request's context_management into its own enum (zed crates/anthropic), which has one variant, compact_20260112, and needs edits. Claude Code's clear_thinking_20251015 was answered 400 "unknown variant ..., expected `compact_20260112`". nllay's patch dropped that edit. The follow-up keeps only compaction edits, since any other type (clear_tool_uses_20250919) fails the same way. context_management is left out when no edit remains, and a non-list edits or a null entry no longer throws. zed 0.1.15. Run at the reviewed head 79aab88 on mote (Bun 1.4.2), packages/zed: bun test, 66 pass 0 fail. The new context-edits.test.mjs is red without the change: 2 pass 3 fail with 74caff5's index.mjs, 1 pass 4 fail with main's. Not tried: a real Zed account (nllay reports a 200 through magpie for the clear-thinking case). |
||
|
|
32d58dd511 |
respire-memory 0.3.15: every --parent must be shown first, --clear-parent is refused (#633)
Sync of risense-ai/respire-magpie v0.3.15 (2c5a237c). memory-tools.mjs is byte-identical to upstream at that commit.
- `--clear-parent` joins the forbidden memory options.
- Every `--parent` (both `--parent ID` and `--parent=ID`) must be a full id that was shown first, on remember and update alike; a non-trivial remember still needs one.
Run at 79b99037 on mote (Bun 1.4.2, Node 22): `node scripts/check.mjs` in the package (isolated temp HOME, detached worker, archive checks) passed; `bun test packages/respire-memory` 1 pass; `bun scripts/check.mjs respire-memory` passed.
Broken by hand: with 0.3.14's memory-tools.mjs the new placement checks fail ("Missing expected rejection").
Not tried: a real Respire install against a live model.
PR #633 by @luodaoyi.
|
||
|
|
b820704803 |
zcode 0.1.42: a plain GLM model spends a live ZCode gift first, by default (sgfvdsg86265 on X)
The request (X, 2117210897471169009): when the account has gift quota for a GLM model, which ZCode hands out every weekend, spend that first. freeFirst (#505) already does it, but only when it was turned on, so a gift lapsed unused behind an agent that asks for the plain model. It is now on unless the plugin's options or the provider's say `"freeFirst": false`, which are still honoured as they are. Every way the gift can fail (spent, a model it doesn't serve, no ZCode session, a refusal's minute of rest) still falls back to the coding plan, as before. A team seat's plain model spends the personal gift first too. The tests that are about the plan and the -Trial picks now build the plugin with freeFirst off, as they assumed it was. Run on mote: HOME=$(mktemp -d) bun test in packages/zcode, 187 pass; bun scripts/check.mjs zcode ok. Broken by hand: with the default back to off, "free first is on when nothing sets it" and "free first is on by default for a team seat" fail; the rest pass. Not tried: a real account with a claimed gift. The owner's account has only an unclaimed one, which wasn't claimed for this. |
||
|
|
731277004a |
qoder 0.2.53: Qoder CN signs in to an enterprise dedicated domain (企业版专属域)
Milktea (Discord) has a Qoder CN enterprise dedicated domain on <corp>.rdc.aliyuncs.com. Qoder IDE signs in to it through 「企业版专属域登录」 once the domain is set in its settings. The VPC method takes only <instance>.vpc.qoder.com.cn, so it refused the domain. The new method, "Sign in with Qoder CN Enterprise dedicated domain (企业版专属域)", takes any https host. It follows Qoder IDE 1.38.0's workbench (config.general.dedicatedUrl, _loginDedicatedWithProbe): - It asks GET <domain>/algo/api/v1/version. A 404 is a Lingma 1.0 dedicated domain. Its sign-in is cosy's login/generateUrl with a qoder-cn-ide:// callback, which this plugin doesn't serve, so it is refused with what it is. Any other status is Qoder CN 2.0. If nothing answers, the domain is refused (the IDE falls back to Lingma there). - For 2.0, the domain's origin serves /device/selectAccounts, with the IDE's client id f5a7f67c-… and no redirect_uri. The poll, user info, tokens and usage go to <label>-openapi.<rest>, and models and chat to <label>-gateway.<rest>. These hosts follow the IDE's RNc/TNc/JL0 rule, which keeps the origin for an IP or a dotless host. - Inferred: the IDE's language server picks the chat host, and its rule wasn't read. The account chats on the gateway host if that host answers at sign-in. If not, it chats on the domain itself, which answered on /algo. The pick is kept as dedicatedApi. The domain is kept on the account as `dedicated` (and `vpc`, for its name suffix). siteOf routes it before the VPC rule. A kept domain that isn't one is asked to sign in again, never sent to the public hosts. Run (mote, bun 1.4.2): packages/qoder `bun test`, 355 pass, 0 fail (dedicated.test.mjs 10, vpc.test.mjs 17 unchanged). `bun scripts/check.mjs` passes. Broken by hand: with siteOf's dedicated branch off, the 404 check off, and the origin fallback off, 4 of the 10 dedicated tests went red (Lingma refusal, gateway chat, origin fallback, renewal). Not tried: any real dedicated account, either kind. The fixtures come from the IDE's code, and the reply shapes are the VPC ones (#312). The Lingma 1.0 path is not implemented. |
||
|
|
bcd60af045 |
registry: Window Warmup's summaries carry the words people search it by (#629)
Window Warmup's zh and en summaries now start with its own name (and its old one, Scheduled Messages / 定时消息) and carry keep-alive, usage window, rate limit and quota words, so the plugin page's substring search finds it by its Chinese name. Text only; what it does, what it costs and its security note are unchanged. By YangHonghang (#629). Run at 43ce164 on mote (bun 1.4.2, temp HOME): bun scripts/check.mjs exit 0; bun test scripts 9 pass, 0 fail. Not tried: searching in magpie's real Plugins page. |
||
|
|
75a1937e23 |
chat: rank MCP tools using the typed question (#631)
chat: an attached EPUB's text no longer decides which MCP tools are picked (#623) The page sends the typed text as userText beside the message that has the book in it, and the server ranks MCP tools on userText when it is there, on content otherwise. The gateway still gets the whole book; userText is never sent to it. page-chat 0.1.10. By ninondev (#631). Run at cb07bd6 on mote (bun 1.4.2, temp HOME): packages/chat bun test 35 pass, 1 skip, 0 fail; scripts/check.mjs chat ok. Broken by hand: origin/main's server.mjs, then origin/main's app.js, each alone: the new test goes red (34 pass, 1 fail). Not tried: the real page in magpie's window with a real EPUB and MCP server. |
||
|
|
0793242b6b |
zen-free 0.1.23: DSH's tools Zen refuses by name go under other names (#632)
jdld-ybd saw every DSH call to a Zen free model answered 429 FreeUsageLimitError while other agents through the same magpie, plugin and address were served, and a plain request on the same model was served too: the refusal is in DSH's own request body, as #624's was. A real 80-tool DSH request was bisected against Zen on 2026-10-30 (Ebony-Vinyl/dsh-our-free-model#709): DSH's subagent_fork on its own, and its read_image offered beside working_directory, each got 429 at once; the same names with only description or parameters changed still got 429; the whole request with just those two names changed was served. DSH 0.2.1 offers all three by default (and terminal_*, which 0.1.22 already sends as console_*). The #624 pair becomes one table of names Zen refuses together: subagent_fork goes as conversation_delegate, and working_directory as workspace_directory when read_image is offered too (the names that request was served under), in past calls and tool_choice too, on Chat, Responses and Messages; a call of one comes back under DSH's name. read_image or working_directory alone keeps its name. Run at this head on mote (bun 1.4.2, HOME=$(mktemp -d)): - packages/zen-free bun test: 212 pass, 0 fail. - whole repo bun test: 4795 pass, 14 skip, 0 fail. - bun scripts/check.mjs zen-free: ok. Broken by hand: - origin/main's provider.mjs: the three per-protocol #632 tests red. - working_directory renamed without read_image: "read_image or working_directory alone goes as named" red. Not tried: a request to the real Zen or with DSH. Every probe from this network, a plain request without tools included, is answered 429 FreeUsageLimitError today (the address's allowance is spent until 00:00 UTC), so the gate rests on that bisection, not on one of ours. |
||
|
|
3167531336 |
workbuddy 0.2.13: the free window's ledger read is linear in its rows, not their square
xmoon76 (Discord #feedback, 2026-11-02): with WorkBuddy on, the plugin host (magpie-bun run host-*.js) sat at 99% CPU, every session stalled, restarting magpie didn't help, and turning WorkBuddy off did. The cause: readLedgerTail called pinned(chain) after every row of the account it kept, and pinned walks the whole chain, so a chain with no edge in it (no readable refusal, no day-wide gap: an account a server spends on the free model all day) cost the square of its rows. Measured on mote (bun 1.4.2), a call a minute: 2,000 rows 187 ms, 4,000 771 ms, 8,000 3.1 s, 16,000 10.5 s. That ran on the host's one thread at every usage read, and the ledger changes with every call so the parse cache never held: a month of such use (~43,000 rows) is minutes per read. It reaches the China build since 0.2.12 read its window too, and WorkBuddy AI before that. pinning() now answers row by row in constant time what pinned answered for the rows read so far: the rows only grow at their oldest end and pinned was asked only while it said 0, so the one new thing a row brings is the first (newest) readable refusal or a gap between it and the oldest answered row before it. pinned stays as it was. Run at this head on mote (bun 1.4.2, HOME=$(mktemp -d)): - packages/workbuddy bun test: 313 pass, 0 fail. - whole repo bun test: 4793 pass, 14 skip, 0 fail. - bun scripts/check.mjs workbuddy: ok. - The same ledger after: 16,000 rows 14 ms, 64,000 45 ms, same window. On Linux (wsl-run, magpie-desktop): packages/workbuddy 313 pass, 0 fail; 16,000 rows 28 ms, 64,000 69 ms. Broken by hand: - the old per-row pinned(chain) put back: "a busy account's ledger is read in time linear in its rows" red, 18,009,000 Date.parse calls for 12,000 lines (bound 48,000). - pinning answering a gap with the newer row: "pinning answers as pinned does, row by row" and "a gap of a day or more pins the chain too" red. - pinning keeping the oldest refusal instead of the newest: the row-by-row test red. Not tried: the reporter's own ledger or a Docker install; their magpie and plugin versions are unknown, so that this was their spin is the best fit (it persists over restarts, stops with WorkBuddy off, and is CPU on the host's thread), not a confirmed one. |
||
|
|
f12daf6f9b |
workbuddy 0.2.12: the China build reports the free model's window too (#625)
The China build (copilot.tencent.com) now reports the free model's daily token window too, the open half of #288 (kunghim). kunghim measured it on 2026-11-02: two Free-plan accounts were refused at 200,389,043 and 200,485,923 tokens (in + cache_read + out), resetting 24h after the window opened, the same per-account window as WorkBuddy AI's at about twice its 1e8. Each build has its own window (FREE_WINDOW_CN on workbuddy rows, FREE_WINDOW_AI on workbuddy-ai rows), so one phone number signed in to both never sums the builds; the parse cache is keyed by build. windowReset reads the China refusal's "将在 … UTC+8 重置". The China card stops at a soft cap of 1.9e8, 5% short of the measured one; a refusal in force still reads it full. Reviewed at c7e4a19ef9aeb192e909fff9fcdb71d06b79e116, run on mote (bun 1.4.2, HOME=$(mktemp -d)): - packages/workbuddy bun test: 311 pass, 0 fail. - whole repo bun test: 4747 pass, 12 skip, 0 fail. - bun scripts/check.mjs workbuddy: ok. - Broken by hand: the PR's tests against main's index.mjs, 7 red (the China counting, the builds kept apart, the Chinese reset, the cache key, the usage card). Not tried: a real China-build account through magpie (the measurement is kunghim's). |
||
|
|
1080b81c7d |
zen-free 0.1.22: tool names Zen refuses go under other names (#624)
alonewolfsy-web bisected a real Claude Code desktop request that Zen's free tier answered 429 FreeUsageLimitError while 0.1.21 had added the environment block and core tools: a tool name with "terminal" in it (an MCP server's terminal tools), and ReportFindings offered beside ScheduleWakeup, as Claude Code desktop does, each got 429 at once; the same request with those tools renamed was served (their patch, 40+ real requests). Either of the pair alone was served. Such tools now go to Zen under other names of the same words (mcp__ide__terminal_run as mcp__ide__console_run, RunTerminal as RunConsole, ReportFindings and ScheduleWakeup as findings_report and wakeup_schedule, with _2 when the agent has that name), in the agent's past calls and tool_choice too, on Chat, Responses and Messages. A call of one comes back under the agent's own name (toolPolicy.renamed, read first by nameGuard). A request without them is sent as before, and one of the pair alone keeps its name. Run at this head on mote (bun 1.4.2, HOME=$(mktemp -d)): - packages/zen-free bun test: 208 pass, 0 fail. - whole repo bun test: 4785 pass, 14 skip, 0 fail. - bun scripts/check.mjs zen-free: ok. Broken by hand: - origin/main's provider.mjs: the three per-protocol #624 tests red. - origin/main's tool-response.mjs (no renamed lookup): the same three red. - the pair renamed even alone: "a request without a refused name" red. Not tried: a request to the real Zen. Every probe from this network was answered 429 FreeUsageLimitError today, a plain control without tools included (the address's free allowance is spent until 00:00 UTC), so the gate itself rests on the reporter's bisection. Not tried with Claude Code desktop. |
||
|
|
4c801e5756 |
devin 0.1.34: keepalive pings timed from when the request was sent; magpie's session header keys them (#626, #620)
#626 (zelong77): keptAfter scheduled the first ping 285 s after the
reply's stop event, and run() scheduled each next one 285 s after the
ping before had come back. Devin renews its cache when it takes a
request, so a 33-47 s Fable reply or a 10-20 s ping put the next ping
past the 5 minutes. In zelong77's usage.jsonl every ping 315.9 s or more
after its request was sent missed and wrote ~500k tokens again.
- roundtrip stamps sentAt before it sends; scheduleKeepalive waits
max(0, interval - (now - sentAt)), and each ping is timed from when it
was sent. A reply or ping longer than the interval is followed at once.
- The timers object carries the clock (now), so tests hold it.
#620, after 0.1.33 (zelong77, 08:18): through magpie, check A and the
grown check B still kept separate pings. magpie hands a plugin's fetch
none of the agent's own headers, so x-claude-code-session-id never
reached keepaliveKey, and magpie's translation merges Claude Code's two
user messages into one whose history grows in the middle, which firstOf
can't follow.
- keepaliveKey reads x-magpie-session first and x-magpie-subagent beside
x-claude-code-agent-id. magpie sets both on a plugin's fetch in a
release that follows this one; the host strips them from what a plugin
sends on.
- README: the timing, and the headers.
Run on mote (Bun 1.4.2, HOME=$(mktemp -d)) at this tree, on main
|
||
|
|
63cd0e4bf9 |
chat: send an EPUB's text with chat messages (#621, ninondev)
Chat (page-chat 0.1.8 -> 0.1.9) can send an EPUB's text with a message. The book is read in the page (chat/epub-reader.js: its own ZIP reader with size, CRC and encryption checks, DecompressionStream inflate, chapters parsed inert in spine order, no external resource loaded, no script run), never uploaded. Each request to the gateway inlines the text once in the user message that carried it, between 【电子书:name】 and 【电子书结束】; the same book again is a note, a failed read is a note and a toast. Send waits while a book is read, and switching chats drops a book still being read. Image-only user messages now stay in history. Run at 1cb1ecb400fe31bbc1f58463af09af757374d27e: - CI (pr.yml, ubuntu): HOME=$(mktemp -d) bun test and bun scripts/check.mjs green; the spawned-Chrome reader test ran and passed there (10.5s). - mote: packages/chat bun test 34 pass; the reader test's own Chrome spawn gets no page load over ssh on macOS (and in WSL), so its fixtures were run again through Playwright 1.62 Chromium and WebKit: 2 pass, 21 expects, each engine. - End to end on mote, Chromium and WebKit, 420px: startServer with a sandbox config and HOME, a fake gateway, the real page; attached Project Gutenberg's Alice (132,120 chars) and 紅樓夢 (876,576 chars) EPUBs, sent, then followed up. Each gateway request carried the book once, before the question, with no base64 or EPUB data; the follow-up carried user,assistant,user with the book once. The page made no request outside its own service. Not changed: the MCP tool pick still scores the last message, which on a book's first message is the whole book (filed as #623). |
||
|
|
3944e53b8c |
registry: list Window Warmup (窗口预热) page plugin (#622, YangHonghang)
Lists magpie-window-warmup, YangHonghang's own page plugin published from his own repo (no community flag, search only, like PinK and WispTerm). It keeps subscription windows warm: on a window, daily or every-N-hours trigger it sends a fixed "hi" (max_tokens 16) through magpie's local gateway with the chosen account pinned.
Checked at c328ac6159554630eb4e8d350072cf8ea7a9bb55, against npm magpie-window-warmup@0.3.6 (sha512-NmLEUwVj..., the tarball reviewed):
- The package: no dependencies or install scripts, readable bundle; a rebuild from github.com/YangHonghang/magpie-window-warmup 29ad1e6 is byte-identical to the committed dist and to npm's. Its own tsc --noEmit and bun test (236 pass) on mote.
- Loaded as the plugin host does (import default, server({}, {port})) in a sandbox HOME with a fake gateway: every /api route needs its per-process token, a foreign Host or Origin gets 403, traversal 404; a task and run-now sent only the "hi" body to the gateway. It reads providers.json only to fingerprint keys (10 hex of sha256); no key appeared in gateway traffic or its own state.
- The page has no permissions and only navigates to its 127.0.0.1 service.
- CI (pr.yml): bun test and bun scripts/check.mjs green.
|
||
|
|
b48f2e754f |
agnes: add the international Agnes AI provider with browser sign-in, usage and balance (#619)
Adds @magpie-community/opencode-agnes-auth 0.1.0 (provider `agnes`): Agnes AI's international API platform (apihub.agnes-ai.com for models, platform-backend.agnes-ai.com for keys and usage). Agnes trains and serves its own agnes-* models, so it is a vendor, not a relay, and a different channel from `agnes-code` (the Agnes Code desktop's gateway). Sign-in: a private Chromium profile read over loopback CDP (plan, personal or enterprise key), or an API key plus an optional console token. Usage: a plan key shows Token Plan and Agent Plan windows; a personal or enterprise key shows the balance only. By CasonMo (#619). Since the first review (9242396): the callback's /user/self result no longer shadows the Chrome session (6ca6f68 broke every browser sign-in); a page exception from CDP is reported instead of timing out, but only once the same exception has lasted 4s, since Chrome raises SecurityError on localStorage while the page is still loading; the platform gets x-user-language en-US; browser sign-ins aren't told to paste a token. Reviewed head 8a30c65ee88ab432ed7f63f86b81c18d0db3680c, merged onto origin/main |
||
|
|
581ca13db6 |
devin 0.1.33: a permission check whose history grew replaces its keepalive pings (#620)
zelong77 found that Claude Code Auto's permission check left several
keepalive tasks running for one check. keepaliveKey hashed the first user
message, and the check sends the whole history in that message, so every
check got a new key. stopKeepalive(newKey) never stopped the old task,
and each reply started another one.
- The key is now the session, the Claude Code agent id and a hash of the
instructions and the tools' names. The first user message is left out
when the agent names a session. The lead, its permission check and a
subagent still get keys of their own, because their instructions,
tools or agent id differ.
- When a request names no session, the first message still tells two
conversations apart. A first message that grew from one seen before
(blocks appended, or text added to the last block) maps to the earlier
key (firstOf). firstOf keeps only hashes, of 256 conversations at most.
- README: what a conversation is.
Run on mote (Bun 1.4.2, HOME=$(mktemp -d)) at this tree, on main
|
||
|
|
2595d48900 |
registry: Qoder's listing names Qoder 中国版 (qoder.cn) as a subscription of its own
小武 on Discord read the Qoder plugin as international only ("Qoder 只支持国际版
请添加 Qoder中国版"). The plugin has served qoder-cn since 0.2.0, but its
listing said only "国际版或 Qoder CN", so a search for 中国版 on magpie's
Plugins page (which matches the summary) found nothing. The summary now
says the two sites are separate subscriptions and names qoder.cn and its
Alibaba Cloud / phone sign-in, in en and zh.
No plugin code changed, so no version bump.
Run: bun scripts/check.mjs (✓ registry.json) and bun test
scripts/check.test.mjs (9 pass), on mote.
|
||
|
|
53d4813743 |
copilot 0.1.1: a refused token exchange marks the sign-in, a quota read GitHub answers clears it (#618)
jinpy666 found idle Copilot slots saying "sign-in has expired — sign in again" while their OAuth token still traded at /copilot_internal/v2/token. Two things in the plugin kept the mark wrong: - The loader's token exchange threw a plain "Token refresh failed: N" for every failure, so a refresh GitHub really refused (401) never told magpie the sign-in was gone. It now carries signIn "expired" on a 401 only; 403, 429 and 5xx carry nothing, as before. - Every quota read said signIn "kept", so a read GitHub answered with the OAuth token never cleared a mark. It now says "renewed" on any 200 with a JSON object (readable quota or not). A 401 still says "expired"; every other failure still "kept". Accounts marked before this are cleared on their next quota read. magpie's side (a bare 401 on a stored access token with a refresh token makes the token due instead of marking the account) ships in magpie itself. Run (mote, bun 1.4.2, at this commit): `bun test` in packages/copilot, 42 pass; `bun scripts/check.mjs copilot` ok. Broken by hand: with index.mjs and usage.mjs back at 0.1.0 the two new tests fail (the exchange's 401 has no signIn; the 200 read says kept). Not tried: a real Copilot account, a real 401 from the exchange. |
||
|
|
c4d84633b5 |
junie 0.1.0: Junie CLI agent, a /v1/models seed and launch defaults (#610, est7)
Adds @magpie-community/agent-junie 0.1.0 (est7): Junie CLI on magpie's Agents page, plus an explicit seed.mjs that writes one Junie model profile per /v1/models entry and sets settings.json's modelForLaunch to magpie's selected model. Registry entry sits with the other agents; README agents table row added.
The three changes asked for at 12df8a6 are in 75a8c4b: repository.url is magpie-community/plugins, the README installs from the Plugins tab / `magpie plugin add` and gives seed.mjs's installed path (XDG_CONFIG_HOME aware), and the registry entry moved to the agents. seed.mjs, junie.agent.js and the tests are unchanged since that review.
Reviewed at 75a8c4b, merged locally onto main
|
||
|
|
486a68a54f |
workbuddy 0.2.11: the plan's credits and the gifted ones are two windows, the plan's with its own cycle (akic404)
akic404 on Discord: "workbuddy 积分总量可否分离套餐内的总量和赠送的总量?… 现在这样那个匀速用量线实际没意义的,因为算上那些已用过的赠送积分,每月第一天就 看起来用了一大半了". usageOf summed CycleTotalCapacity/CycleUsedCapacity over every package of the resource summary into one "Credits" window, so gifted and activity packages' credits used long ago counted against the plan's month; the real China-site free account in usage.test.mjs (CN_FREE_SUMMARY, 2026-10-26) read 282 / 3400 with its 500 plan credits untouched. What tells them apart is the package code. WorkBuddy's client (5.9.x, app.asar, its COMMODITY_CODES and the onlyRefreshCodes / onlyExpireCodes lists its usage panel uses) refreshes proMon, proMonPlus, proYear, youth, advanced, flagship, bonus28, freeMonIntl, proTrialMon, proTrialYear, bonusIntl, and freeMon on the China build only; gift (006), activity (007, 赠送积分), bonus29/30 and the credit packs only lapse. The summary carries PackageCode and SubscriptionPackageCode (no CapacityType or name), so the split is by code: PLAN_CODES, plus the subscription the summary names. - "Credits" is the plan's packages, with cycleOf's reset and span as before, so its pace line is the plan's cycle. "Extra credits" is the rest, used / total. A summary with only one kind (or codes the client names nothing for, as the older fixtures) keeps the one summed "Credits" window, as before. The prepaid balance window is unchanged. - Only one window stops the account, as WorkBuddy serves it while any credits are left: "Extra credits" is aside, until the plan's are spent with extra ones left, then "Credits" is aside. Both spent: the plan's stops it at 100%, as the summed window did. - runsOutOf over every package stays on the window that stops the account (routing reads none set aside, cdredfox's spend-first); the aside window gets runsOutOf over its own packages. So the plan window can say a gifted package's soonest lapse while it is the one routing reads. - Enterprise accounts (no packages, enterprise meter) are unchanged. WorkBuddy AI goes through the same code with site.ai: freeMon (008) is extra there, as its client says. Run on mote at this tree: HOME=$(mktemp -d) bun test (whole repo): 4730 tests, 0 fail, 12 skip; bun scripts/check.mjs: registry.json and workbuddy ok. packages/workbuddy alone: 305 pass. Broken by hand: usage.test.mjs against origin/main's index.mjs: 3 fail (the new two, "282 / 3400" for "0 / 500", and the unreadable-lists test that now expects the split). The gating rule replaced by "extra is always aside": the akic404 test fails. Not tried: a real account. No account here has gifted and plan packages at once with credits used, and akic404's own summary wasn't seen; the split follows the client's code lists, not their bytes. magpie's GUI has no translation for "Extra credits" (it shows in English, as "Prepaid credits" does). |
||
|
|
3f615ea9ef |
cursor 0.2.37: a step with under 10 minutes of a retained Run's lifetime left starts fresh, and a deadline cut says to retry (#616)
yetone/magpie#4419 (Okxdd123; ggbdpq traced the cause and wrote the repro): a Pi turn on cursor/grok-4.7@500k kept one native Run across 12 tool steps. The 13th went on in that Run with 494 s of its 15-minute lifetime left, the answer was still streaming at the deadline, and the Run failed mid-answer with "native Run lifetime expired". The 200 was long sent, so the agent read only those words, and Pi doesn't retry on any of them, so the turn ended although asking again goes on. - native-session.mjs: a retained Run takes a tool batch's results only with more than continueReserve (10 minutes, new in NATIVE_LIMITS; at most two thirds of the lifetime) left. With less, the owner is retired and the step goes on a fresh Run from the supplied history, as #157 did for the last minute. 60 s didn't cover a long answer. - The deadline's error now says "native Run lifetime expired: the Run timed out; retry your request" (LIFETIME_EXPIRED). "timed out" is in Pi's _isRetryableError list and in magpie's passingSaid; "retry your request" is in passingSaid, so magpie's gateway adds nothing more. For Claude Code and Codex, magpie translates the error as api_error / server_error, as before. - README: the 10-minute reserve and the wording. Tests (native-e2e.test.mjs), no network and no real waiting: Date.now moved so a continuation has 494 s (the reporter's case) or 599 s left -> rebuilt on a fresh Run, no result written to the old one; 660 s left -> same Run. A retained continuation streams half an answer, the deadline is brought in with expireIn(0), and the SSE's one error starts "native Run lifetime expired" and matches Pi's retry regex and magpie's passingSaid (both copied into the test). Broken by hand: the old reserve (min(60 s, lifetime/10)) turns the 494 s and 599 s cases red; the old wording turns the mid-answer case red (3 fail, 135 pass in native-e2e). Run (mote, HOME=$(mktemp -d), as CI): bun test at the repo root, 4716 pass, 0 fail; bun scripts/check.mjs, exit 0. packages/cursor alone: 384 pass, 0 fail. Not tried: a real Cursor account reaching the 15-minute deadline; a real Pi, Claude Code or Codex reading the new wording (Pi's regex is the one in pi-coding-agent's agent-session.js as installed locally, not necessarily Pi 1.4.0's). |
||
|
|
529929fd93 |
fingerprint 0.2.2: an account named 北冥 pins its samples, and the job file names the account (#615)
StockRabbit (#615): with the WorkBuddy account 北冥 picked, every sample failed with "Header 'X-Magpie-Account' has invalid value", since fetch refuses a header value that isn't ASCII. The saved job also didn't say which account it ran on. - gateway.ts: accountHeader() sends printable ASCII as it is and any other name percent-encoded; magpie v0.1.2658 (ad53a23dc) decodes it. The account list now names an account by its alias or user, not by the provider's display name. - detector.ts: a target's account resolves to the account's id (by id or a unique name for that model's provider), and the job keeps config.account / config.accountName and results[].target.account / accountName. Jobs written before 0.2.2 have neither and load unchanged. - web: the result card names the account. - integration.md: the header's encoding and a Job files section. Run (mote, sandbox HOME): bun install --frozen-lockfile, bun run typecheck, bun test (36 pass, 0 fail), bun run build, bun scripts/check.mjs (exit 0). tests/account.test.ts runs the server against a fake gateway whose quotas list 北冥: an 0.2.1 job loads unchanged, a run pinned to 北冥 reaches the gateway as %E5%8C%97%E5%86%A5 on every request, and the job file names 北冥. The page on mote in Chromium and WebKit at 420px against the same fake gateway: the picker shows "北冥 · workbuddy", 12 requests carry the encoded header, the card says 北冥. Broken by hand: accountHeader returning the raw name turns account.test red (no request reaches the gateway pinned). Not tried: a real WorkBuddy account, Windows, the page in a language other than English. |
||
|
|
236071c300 |
README: one channel, one entry unless the new one names its difference (#614, Gyl1219)
The market section of the root README now says how duplicates are judged: by channel, not by package shape. A channel listed in an aggregate package's `providers` array counts as listed. A new standalone package for a listed channel names its differences (sign-in, endpoint, abilities, what it can do the existing entry can't) in the PR, its README and its registry summary, or it isn't merged. AStudio keeps both entries. From reading both packages' code: - astudio (0.1.0 -> 0.1.1, README only): reads the AStudio desktop's session (ASTUDIO_HOME, Windows registry, ~/.acode) or a pasted modelBearerToken; calls /model-gateway/v1/responses; check-in touches the session and records the balance delta, claiming nothing. - magpie-providers-hub 0.5.2 (npm, Gyl1219's repo) hub-astudio: a local login page (SMS code, password or WeChat QR, with geetest); calls /model-gateway/v1/chat/completions; check-in completes the client-popups daily reward and new-user dialogs. Both read the same account's agent.xfyun.cn points/balance, so one account has one daily points pool. The astudio README gets a table of this; both registry summaries (en, zh) say it. The hub's own README lives in Gyl1219/magpie-providers-hub and is not changed here. Run on mote at this tree, HOME=$(mktemp -d), Bun 1.4.2: - bun scripts/check.mjs: ✓ registry.json (the #612 validation), every package ✓, exit 0. - bun test: 4709 pass, 0 fail, 12 skip (4721 tests, 363 files). Not tried: a real AStudio sign-in on either package (no code changed). |
||
|
|
eaca1cf4f1 |
check: parse registry.json and hold each entry to what magpie reads (#612)
bun scripts/check.mjs exited 0 on a registry.json that wasn't JSON, or
had an entry with a bogus kind, so a listing PR could break the Plugins
page's list and pass CI. check.mjs now checks registry.json first
(scripts/registry.mjs) and fails on:
- text that isn't JSON, isn't an object, or is over 1 MiB (what magpie
fetches); version not 1; plugins not a non-empty list;
- an entry whose package isn't a name magpie's pkgName pattern
(internal/plugin/store.go) matches, or over npm's 214 characters
(magpie drops such an entry); the same package listed twice;
- no name, no summary.en or summary.zh;
- a kind other than middleware, hooks, agent, tools or page (plugins.js's
kindOf; a provider has none), which would list it as a provider;
- a value of the wrong type for community, providers, replaces or
summary: market.go unmarshals the whole file into typed fields, so one
such value loses every listing; an icon with a scheme other than https
or data:image; a field magpie doesn't read (a typo like "kinds").
All 72 current entries pass, the 5 without community included (magpie
skips them; kept as they are).
Run on mote, HOME=$(mktemp -d), bun 1.4.2:
- bun test: 4709 pass, 12 skip, 0 fail (363 files).
- bun scripts/check.mjs: exit 0, ✓ registry.json.
Broken by hand on mote: "{" appended to registry.json -> exit 1, "not
JSON"; every "kind": "middleware" made "bogus" -> exit 1, each entry
named. registryProblems stubbed to return [] -> the three #612 tests go
red.
Open listing PRs (#611, #610) merged onto this commit pass the check;
#582 doesn't touch registry.json.
|
||
|
|
8f0280a96f |
registry: list OpenViking's memory gateway plugin (#604, yufeng201)
Lists OpenViking's memory gateway plugin, @openviking/magpie-plugin (maintained in volcengine/OpenViking), in registry.json and the README's Gateway hooks table, by yufeng201. Per review it sits after respire-memory in both lists; that reorder and a merge of main were pushed to the branch by the maintainer.
Package checked earlier (npm 0.1.0, integrity sha512-5cnu8bzg…AnQ== unchanged today): every line of the tarball was read. Its only network target is the user's OpenViking baseUrl from ~/.openviking/ovcli.conf, with redirect "error". It has no telemetry, no install scripts and no obfuscated code, and capture is off by default. Loaded in a temp HOME with no config: onRequest passes through and reports unavailable, the 5 tools register, status says unconfigured, and it makes 0 network calls. The icon URL answers 200.
At eb18bca (main
|
||
|
|
5b370f3e62 |
nowledge-mem 0.1.5: one Settings dialog for every option on released hosts (#588, SadWood)
The Nowledge Mem page's dialog now sets every option the hook reads, on Magpie's released bridge (options.get/set only), by SadWood. - One Settings dialog: connection, key (an empty field keeps the saved key; Remove saved key / Undo), API key variable, recall and remote recall, Context Bundle, apps without memory, capture and remote capture, the human-dialogue filter (a switch, Cindy only with it on, tool results only with it off) and the advanced numbers. Remote HTTP needs the Advanced exception. - A × beside a field that holds an explicit value returns it to the default. Saving re-reads the options, writes only edited fields, and refuses (keeping the draft) when one of them, or a gate's remote grant or the endpoint behind a newly allowed HTTP exception, changed elsewhere. - page/validate.js is shared by the page and resolveOptions, so both refuse the same values. - The footer wraps at narrow widths (German Save was cut off at 380px). - No native select. Every language has every key; the English fallback loop is gone. Reviewed at 75a09d19e, run merged onto main |
||
|
|
24cd0b9123 |
cursor 0.2.36: a stateless step whose calls came hands them over when no count follows (#550)
Windsland52's fifth wire trace (2026-10-31 19:44, cursor-grok-4.6-xhigh,
stateless, why "historical native calls"): thinking, text, then two MCP
calls 43 ms apart (partial, started, exec each), no tool count (update
27), no checkpoint, and 24 heartbeats until quiet ended the Run at 240 s.
The stateless decode only ends a step on the count, a checkpoint or EOF,
so it waited out quiet; the retry of the same turn stays stateless, so a
native stall cost two 4-minute waits. Cursor's own client never waits on
toolRequestsListed (
|
||
|
|
04f3608d49 |
sensenova 0.1.0: SenseNova Token Plan provider plugin (#577, yihheng)
A new provider plugin, @magpie-community/opencode-sensenova-auth 0.1.0, for the SenseNova (SenseTime 日日新) Token Plan, provider id `sensenova-token-plan`. - Sign-in: a console sign-in (OIDC + PKCE). The password is sealed to JWE under the platform's JWKS key and is not stored. - Quota: the account's credit pools (5h/7d windows, expiring grants) from pool-usage. - Chat: with an optional pasted API key, it serves the plan's chat models at token.sensenova.cn/v1. The list is filtered per account to models the plan covers. - Also adds a registry.json entry and a root README row. Hosts: - platform.sensenova.cn gets the access JWT. - iam.sensecoreapi.cn gets the sealed password. - signin.sensecore.cn gets the refresh token and the code. - token.sensenova.cn gets the API key. There are no dependencies and no install scripts. Run at head 3804ab46ae6c6c16d393e5dc08d6ae81c63da668 on mote (macOS 27.2, Bun 1.4.2), with a fresh HOME: - `bun test packages/sensenova`: 43 pass, 0 fail. - `bun scripts/check.mjs sensenova` passed. - Full `bun test`: 4455 pass, 9 skip, 0 fail. - Broken by hand: I removed each of the two `redirect: "manual"` lines that the last review found untested (IAM login, code exchange). Each time, its new 307 test went red (42/1). The earlier reviews' reverts went red at 0aa00b5 and 10984cf. Not tried: a real sign-in, quota read or chat. There is no SenseNova account. Unauthenticated probes of the real hosts (in the last review) match the walk's shape. This is the first version, not on npm yet, so the dist branch serves it until it is published. |
||
|
|
cc7f4327e5 |
notify 0.1.2: a Gotify channel (#593, UnspokenSpell)
notify 0.1.2 adds a Gotify channel (UnspokenSpell): POST <server>/message with X-Gotify-Key, title and message; priority only when the channel sets it (an explicit 0 stays 0), so the application's own default applies otherwise; extras when set. Needs server and token. post() also reads Gotify's errorDescription on failure. Gotify is listed in the package README (with priority's fallback and extras), the root README and the registry summary.
Answers the 11-01 review at f2f5806: priority no longer defaults to 5, the sibling channel lists name Gotify, extras is documented and tested, errorDescription is read.
Run at the reviewed head f84a6a7 on mote:
- bun test packages/notify: 58 pass, 0 fail
- full bun test with HOME=$(mktemp -d): 4551 pass, 9 skip, 0 fail
- Broken by hand, each red then restored: priority back to `?? 5` (1 fail), errorDescription dropped (1 fail)
- A real Gotify server (3.1.1, 127.0.0.1, app with defaultPriority 2) through channels.mjs send(): no priority -> stored with priority 2; priority 0 -> stored 0; wrong token -> {ok:false,status:401,error:"you need to provide a valid access token or user credentials to access this api"}
Not tried: Gotify behind a reverse proxy at this head (tried at f2f5806, unchanged path code).
|
||
|
|
980aece49c |
respire-memory 0.3.14: an update backs up the old body, encrypted, before it overwrites (#596)
Syncs respire-memory with upstream v0.3.14 (risense-ai/respire-magpie f921268). Before an update overwrites a memory, the worker now saves the old body as an encrypted backup (AES-256-GCM, written to a temp file and renamed over) under the state dir's backups/. The update fails closed if the show receipt is invalid or the backup can't be written. Backups are pruned after seven days once the queue drains. The per-turn rules text drops "immediately read the engine's complete policy after the first recall". Store's encryption moved into encryptRecord/decryptRecord/writeFileAtomic, with no change to the format. No new host, dependency or install script.
By luodaoyi (#596), reviewed at 264a905.
Run on the Mac mini with Bun 1.4.2, node 22 and HOME=$(mktemp -d), on 264a905 merged with main
|
||
|
|
17525a70fd |
devin 0.1.32: a system notice mid-conversation keeps its place and cache mark (#599)
buildMessages now sends a role:"system" notice partway through a conversation as a user prompt that keeps its cache mark and its place. Before, the notice was lost or merged away. A notice that arrives while tool calls are still waiting for results is held until those results are answered, so it never comes between a call and its result. A notice after an interrupted call goes after the missing-result placeholder. An empty notice is skipped.
By leosocy (#599), reviewed at 647039a.
Run on the Mac mini with Bun 1.4.2 and HOME=$(mktemp -d), on 647039a merged with main
|
||
|
|
c78f965f8d |
gcp-ai 0.1.2: accounts follow the Google subject, so a renamed email keeps its sign-in (#606)
An account is now identified by its Google subject (OIDC `sub`), not its email. When the email on a Google account changes, its saved ADC and Console credit cache stay matched to that account, and usage shows the current email. A sign-in for another subject that uses the same email gets a key of its own (email#hash). A new sign-in is staged in a `.adc-pending-` dir, and a lock across every managed ADC checks the subject is not registered already. Console identity is read from the page's own JSON (`extractConsoleIdentity`). No new host: userinfo was already called before.
By NGshiyu (#606), reviewed at b344aa1.
Run on the Mac mini with Bun 1.4.2, node 22 and HOME=$(mktemp -d), on b344aa1 merged with main
|
||
|
|
684e4757ad |
astudio, agnes-code 0.1.0: AStudio and Agnes Code desktop provider plugins (#595, jinyue806)
Adds two unofficial provider packages by jinyue806: - packages/astudio (@magpie-community/opencode-astudio-auth 0.1.0, provider `astudio`): iFLYTEK AStudio (Astron Studio) desktop's saved session or a pasted model token; OpenAI Responses at astronstudio-api-volces-prod.xf-yun.com, live catalog, points balance and an observed daily-login check-in from agent.xfyun.cn. - packages/agnes-code (@magpie-community/opencode-agnes-code-auth 0.1.0, provider `agnes-code`): Agnes Code desktop's safeStorage session (Windows, DPAPI via PowerShell) or a pasted JWT; chat completions at api-agnes-code.agnes-ai.com, live catalog, credits balance from api.agnes-ai.com. - README rows and two registry.json entries. Answers the 11-01 review at 36dd528: tests added with injected fetch/fs/DPAPI, registry kept in its style, folders renamed, README ids fixed, paste methods store their inputs, check-in says inactive (not done) when nothing was observed, usage keeps signIn expired, injected homedir honoured, platform checked before any read on Agnes. Run at the reviewed head 9aaff0d on mote: - node --test: astudio 24 pass, agnes-code 17 pass - bun scripts/check.mjs astudio / agnes-code: ok - full bun test with HOME=$(mktemp -d): 4548 pass, 9 skip, 0 fail - Broken by hand, each red then restored: fallback paths ignoring homedir (1 fail), usage swallowing expired (1 fail), Agnes check-in back to "done" (1 fail) - Unauthenticated probe of each host: model-manager 401, Agnes /v1/models and credits-balance 401 "Login expired", agent.xfyun.cn 200 with code 80000 (all map to signIn expired in the code) Hosts: only the vendors' own (xf-yun.com, xfyun.cn, agnes-ai.com). No dependencies, no install scripts. Not tried: a real AStudio or Agnes Code account (no install on our machines), the Windows registry and DPAPI paths on a real Windows desktop. Not on npm yet: served from the dist branch until first published by hand. |
||
|
|
1a05a77431 |
powercontext 0.2.1: the README and page say capture feeds Memory/Topic, not Experience (#607)
pluoki (on X) found that magpie's capture never gives PowerContext's
scheduled Experience anything to incubate. That holds: persist writes
every conversation as content Sources (POST v1/sources/content, metadata
origin "magpie", event "conversation_completed"), and nothing else.
Checked against oceanbase/powercontext at 5032075:
- builtin/artifacts/experience/incubation.py skips every Source whose
metadata kind isn't "task-outcome" (TASK_OUTCOME_SOURCE_KIND);
docs/en/docs/workflows/create-and-review-experience.md: "Ordinary prompt
Sources are ignored", and incubation creates candidates for review only.
- http/_generated/operations.py: RECORD_TASK_OUTCOME is POST
/v1/work/outcomes/record, operation_id record_task_outcome, and
server/mcp.py exposes it as an MCP tool.
This ships option (a) of the issue only. The README gets a section
"Capture feeds Memory and Topic Memory, not Experience" saying so, that
task-outcome Sources come from the agent through PowerContext's
record_task_outcome MCP tool at a real completion boundary, and why the
plugin does not derive one from a chat turn; Memory tools names it too.
The page's visible capture disclosure ("What is sent") says the same in
en, zh, zh-TW, ja and de. No behaviour changes. Option (b), an opt-in
that records host-derived outcomes on a real boundary, is not done.
Run (mote, at this tree on origin/main
|
||
|
|
debc0f7b53 |
nowledge-mem 0.1.4: a tailnet HTTP server from the page, and recallRemote/captureRemote opt-ins (#608)
pluoki (on X) runs Mem on a Mac Studio reached over Tailscale. Two limits:
- page/settings.js validUrl() refused any http: URL to a non-loopback host
whatever allowInsecureHttp said, while mem.mjs honoured it, so
http://mac-studio.tailnet.ts.net:14242 could only be set by hand in
Options JSON and the page's Save and Test refused it. The dialog now has
an "Allow HTTP to another machine" switch (Mem service section, same
switch-field component as the others; help text: only on a network you
trust, e.g. Tailscale) that reads and writes allowInsecureHttp, and
validUrl follows it exactly as mem.mjs does; Test checks the saved
option. Turning it off removes the option. All five languages (en, zh,
zh-TW, ja, de) get the new strings; urlHelp and invalidUrl name the
switch.
- The hook took only origin local / magpie-key. recallRemote and
captureRemote (default false, typed booleans, in package.json's options
and the README) let remote and gateway-key requests in, each on its own,
as powercontext's do: captureRemote saves the conversation but recalls
nothing, and neither turns capture on. Unlike powercontext's, a missing
or unknown origin stays out even with both on. powercontext's page has
no switches for these, so this page doesn't either; its "What is sent"
text names the options. Sticky blocks were already keyed by origin.
Run (mote, at this tree on origin/main
|
||
|
|
53e38206ba |
loomy 0.1.2: the loader serves /images/generations, so the three image models draw (#609)
The loader's fetch answered every path but /chat/completions with
404 "only chat completions are served", so doubao-seedream-5-lite,
qwen-image-3.0-pro and Hy-Image-3.5-preview, which /api/v1/models lists
with output_modalities ["image"] and magpie offers in its image picker,
could not draw (lakegan measured 404 with no ep in usage.jsonl).
A request to .../images/generations now goes to
{modelBase}/images/generations with the session in token and
Authorization, Content-Type application/json;charset=utf-8 and
Accept: application/json (not text/event-stream), the body as magpie
wrote it, and the upstream's JSON comes back as it is. 401/403 say the
sign-in has lapsed (401), as the chat path does; another error keeps its
status with the upstream's text. The chat path is unchanged.
/images/edits is not served: magpie's gateway sends a plugin's edit as
multipart (internal/gateway/draw.go drawImages), and what Loomy's gateway
takes for an edit hasn't been measured. It still answers 404, now
"only chat completions and image generations are served".
The fake gateway answers /api/v1/images/generations with the reporter's
literal 200 body. Tests: a draw is sent with the session and JSON accept
and passes the body and reply through, a Request object's body too,
401/403 become 401, a 400 keeps its status, chat streams after a draw,
and embeddings and /images/edits still 404.
Run (mote, at this tree on
|
||
|
|
8db0a0576a |
catpaw 0.1.1: round and turn send source CatX / mode CATX_APP; the gateway turned CatPawCLI off (#605)
Reported by 1007cordon-ux in #605: every chat with 0.1.0 failed at the round step with "妙手 round 失败:HTTP 200 code=400 msg=source 不存在或未启用: CatPawCLI". The 10-09 capture the package was built from was the CatPaw CLI's (source CatPawCLI, mode CLI, m-appkey com.sankuai.mcopilot.cli); the gateway no longer serves that source. The reporter changed both bodies to source CatX / mode CATX_APP, kept the headers, and got a normal completion from catpaw/glm-5.3-flashx through a real gateway request. That is the combination the package README documented from the start, and the same author's magpie-catpaw-auth 0.2.3 on npm sends it with these same headers. - index.mjs: one frozen BODY_IDENTITY ({source: "CatX", mode: "CATX_APP"}) spread into both the round and the turn body, so they can't differ. Headers unchanged (m-appkey com.sankuai.mcopilot.cli, x-agent-version 1.2.0-beta.6, axios UA). - fake.mjs: answers a disabled source (CatPawCLI) with HTTP 200 {code: 400, msg: "source 不存在或未启用: <source>"}, the body behind the report, and refuses a turn whose source/mode differ from its round's. - testdata/issue-605.json holds the reporter's line verbatim; a test checks that the fake's refusal, put through the plugin's round error format, is that line byte for byte. - README: the protocol note says why the body isn't the capture's. Not confirmed: whether the official CatX desktop app sends a different m-appkey or x-agent-version. No official client is on npm, and the CatPaw sites offer no download without signing in, so the headers stay the captured CLI's (the reporter's verified combination). Run on mote at this tree (mote-run -C the worktree): - bun test packages/catpaw: 28 pass, 0 fail - HOME=$(mktemp -d) bun test (root): 4550 pass, 9 skip, 0 fail, 352 files - bun scripts/check.mjs: exit 0 (catpaw ✓) Broken by hand, then restored: - BODY_IDENTITY back to CatPawCLI/CLI: 9 fail, each chat error the reporter's exact text ("妙手 round 失败:HTTP 200 code=400 msg=source 不存在或未启用: CatPawCLI"). - only the turn body back to CatPawCLI/CLI: 5 fail. Not tried: a real CatPaw account (none available); the fix rests on the reporter's real request. |
||
|
|
25a50db0fa |
zcode: the check-in recheck's notes no longer name reset cards as feed plans
Reset cards are customer-package-reset, read for usage and spent on ZCode's own page; they never come through the plan feed that #600's half-hour recheck reads. The README and the RECHECK comment named one, which the PR's own body says is out of scope. Wording only. Run at this tree on the Mac mini (Bun 1.4.2, HOME=$(mktemp -d)): `bun test` in packages/zcode, 184 pass, 0 fail. |
||
|
|
081c4cb8f0 |
zcode 0.1.41: a nothing-to-claim check-in asks again in half an hour (#600)
A plan feed answer of nothing to claim (`inactive`) now carries an `until` half an hour out, so magpie's check-in loop asks again during the day and a gift plan dropped into the feed after the day's first ask (the 19:00 Beijing weekend plan) is claimed before it expires. captcha, claimed, done and failed answers still stand for the day. Bumps the package to 0.1.41. By Pr1p. Run at c655b088ef0eba6e130b78c867e429b6c39ac09c on the Mac mini (Bun 1.4.2, temp HOME): - `bun test` in packages/zcode: 184 pass, 0 fail. - `bun scripts/check.mjs zcode`: ok, exit 0. - Broken by hand: putting `until` on the captcha answer turns "an inactive says until half an hour out…" red (1 fail); removing it from inactive turns 3 tests red. - package.json changes only the version (0.1.40 to 0.1.41). Not tried: a real ZCode account over a day. The README and the RECHECK comment still name "a reset card" among what arrives in the plan feed; reset cards are customer-package-reset and are not claimed here. That wording is fixed in a follow-up commit. |
||
|
|
3618bf9f22 |
zed 0.1.14: a Gemini model's effort variants are keyed lowercase, and its thinking level reaches Zed uppercase (#215)
Zed's cloud parses a Google request with its own serde enums (zed
crates/google_ai): ThinkingLevel is rename_all UPPERCASE (MINIMAL, LOW,
MEDIUM, HIGH) and FunctionCallingMode rename_all lowercase (auto, any,
none). A thinking budget reached it as thinkingLevel "low" and was
answered 400 "failed to parse Google AI request: unknown variant `low`,
expected one of `MINIMAL`, `LOW`, `MEDIUM`, `HIGH`" (iron-water, #215).
- The gemini wire in providerRequest() now goes through geminiEnums(),
from ump45nose's #587: the thinking level is uppercased (an empty one
left out) and the tool-calling mode lowercased, as 0.1.13 already did,
with VALIDATED, which Zed has no variant for, asked as auto.
- Zed's /models now lists a Gemini model's supported_effort_levels
uppercase (LOW/MEDIUM/HIGH; Yezike-yyy's Student-plan list on #215), so
the variants were keyed LOW and carried thinkingLevel "LOW". magpie's pi
profile, which maps efforts by key, matched none of them, and
@ai-sdk/google (thinkingLevel z.enum minimal/low/medium/high) refuses
an uppercase level. effortsOf() now lowercases the values whatever case
/models writes, once each, so a variant keeps the AI SDK's lowercase
spelling (the owner's review on #587) and only the wire is uppercase.
This covers every vendor's efforts, not only Google's.
- _internal exports model() so the test checks provider.models' variants.
Tests: gemini-enums.test.mjs builds its model list from the
supported_effort_levels Yezike-yyy pasted on #215, byte for byte, and its
fake /completions refuses both enums with Zed's error text.
Run on mote at
|
||
|
|
f4e2ac36fe |
zed 0.1.13: a Gemini request's tool-calling mode goes to Zed's cloud in lowercase (magpie#4657)
Zed's cloud reads toolConfig.functionCallingConfig.mode with lowercase variants only (auto, any, none). The Gemini API's proto enums, which the AI SDK's @ai-sdk/google and magpie's Code Assist envelope both write (AUTO, ANY, NONE), were answered 400 "failed to parse Google AI request: unknown variant `AUTO`, expected one of `auto`, `any`, `none`", so every Gemini turn that declared a tool failed while plain chat and a model test worked (atticuskk on magpie#4657). providerRequest's gemini case now lowercases the mode; nothing else in the request moves. ggbdpq (gua2100) found the cause and proposed the fix on magpie's side (a body fitter for the zed account). It is made here instead, where the request is fitted to Zed's cloud: the plugin is what knows Zed's wire, and OpenCode users of this plugin, whose @ai-sdk/google writes AUTO too, are covered the same way. Run (mote): cd packages/zed && bun test: 54 pass, 0 fail; bun scripts/check.mjs zed: ok. Broken by hand: the lowercase line off -> gemini-tool-mode.test.mjs red (3 fail, 400 for AUTO, ANY, NONE). Not tried: a live request to cloud.zed.dev (no Zed account here). Co-authored-by: ggbdpq <ggbdpq@gmail.com> |
||
|
|
464acbc2fc |
kiro: the README no longer lists usage under Not included
The plugin has read usage (auth.usage, Get-Usage-Limits) since 0.1.17, and #602 added a "Usage in magpie" section right above the stale line. README only, no version bump: it ships with the next kiro release. Nothing to run. |
||
|
|
605381174d |
kiro 0.1.25: bonus credits show on the Usage card, each with when it lapses (#602)
kiro 0.1.25: bonus credits (bonuses in Get-Usage-Limits) show on the Usage card as windows of their own, aside, with when they lapse; a month used up while a bonus has credits left is set aside too, since Kiro spends plan credits first.
Reviewed head fc9eb1e on main
|