dec921767ef2e2c42f46c04280de48a909fb6f1c
585
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
dec921767e |
commandcode 0.1.18: Jev (typesafe/jev), Command Code's decision model, can be picked in magpie
joeliu96872540 on X: magpie couldn't get Command Code's typesafe/jev.
Command Code's /provider/v1/models (94 models) doesn't list it; the CLI
(command-code 1.88.2, read from its bundle, not run) knows it as
SYSTEM_ONE_MODELS ["typesafe/jev"], asked at POST /provider/v1/systemone
with {model, state, questions} and buildCommandAuthHeaders, answered with
{model, answers, usage}. That is magpie's System One shape.
- config sets decide: true on the provider and adds Jev to its models,
marked decides (magpie's plugin decision API, yetone/magpie#1514).
- provider.models adds Jev, marked, to every plan's list (Go's, the live
one, the default standing in); Command Code decides which plans may ask.
- fetch sends a /systemone question as the CLI does: its headers
(User-Agent cli, x-command-code-version 1.88.2, project slug, session,
Bearer key, x-cmd-zdr when ZDR is on), not the chat's x-api-key, with
Jev's other names (jev, jev-latest, typesafe-ai/jev) sent as
typesafe/jev. The answer goes back as it came; a refusal through
failure(), the account kept; a Go plan's "no API access" keeps the key
as Go's.
- The plan-list tests that count chat models leave Jev out (talking()).
Run: bun test in packages/commandcode on mote: 72 pass, 1 skip (as
before), 0 fail; bun scripts/check.mjs all green. Broken by hand (the
/systemone branch, decide and withJev turned off): 6 of jev.test.mjs's 8
go red; the ZDR and Go-refusal cases pass either way, as the generic
Provider API path does the same for them.
Not tried: a real Command Code account (none in a sandbox HOME), so no
real /systemone answer has been seen, nor which plans Command Code lets
ask Jev.
|
||
|
|
644038d95a |
trae 0.2.25: a 9074 or 9095 says which device the check-in went on (#436)
moxuanchen (plugins#436, Windows 11, TRAE CN 3.4.4, plugin 0.2.24):
account A checked in (100 credits), account B got 9074. Learning why
took running clientDevice by hand: both of that machine's profiles
(Trae CN, TRAE SOLO CN) were signed in as A with one device, so B's
claim went on magpie's own device for it.
The 9074 and 9095 messages now end with the device the claim went on:
this machine's client's, signed in as the account, or magpie's own,
with how many client profiles were found and that none is the
account's. A client device another account's profile also has is named
as shared. No uid or device id is in the message. clientDevice now reads
through clientProfiles; its answers are unchanged.
Not done: explicit profile dirs or --user-data-dir discovery. Whether
TRAE CN keeps a separate, registered device in such a dir is unverified,
and the issue asks the reporter for that first.
Run at this tree (rebased onto ea9201d; nothing under packages/trae changed):
- mote-run, HOME=$(mktemp -d): packages/trae bun test 227 pass 0 fail;
whole repo bun test 3184 pass 0 fail at the rebased head; bun scripts/check.mjs ok.
`node scripts/check.mjs` fails with ERR_INVALID_ARG_TYPE here and on
main
|
||
|
|
ea9201df1f |
mail-watch 0.1.0: mail session ends, failed turns and refusals through your own SMTP (#457)
mail-watch 0.1.0: a hooks plugin that mails a rendered event (per event or as a digest) when a session ends, a turn fails, or a request is refused, through the user's own SMTP server. The digest's due time is kept in the state file (digestAt/digestHours), so a restart neither resets nor fires it early; the timer step is capped at 2^31-1 ms and an early wake re-arms for the rest instead of sending. Run at the reviewed head 8415dd9eb (sandbox HOME): - mote: packages/mail-watch `bun test` 44 pass, 0 fail, three times; whole repo `bun test` 2982 pass, 8 skip, 0 fail; `bun scripts/check.mjs` exit 0; e2e.smoke.mjs against a local SMTP sink: onRequest returns undefined, onResponse returns without awaiting the mail, the mail arrives with the rendered event and subject. - Linux (WSL2 Ubuntu 24.04): packages/mail-watch `bun test` 44 pass, 0 fail. - Broken by hand, each red: no step cap (2 red: monthly digest, early wake), no due-time-ahead check (early wake), no persisted due time (restart test), no prune, raw guard, no shrink (1 red each). Making the persist write unconditional stayed green, as expected (a cost fix only). - CI at this head: test and on-npm green. Not tried: a real SMTP provider (Gmail, Fastmail); the smoke test uses a local sink. |
||
|
|
b08a6c1bce |
workbuddy 0.1.46: WorkBuddy AI's chats carry its current 5.9.3 client's headers
Two Discord users report WorkBuddy AI accounts answering 403 11140
("account restricted due to unusual activity"). While looking into it,
the plugin was found sending WorkBuddy AI's chats as a client one release
behind: WorkBuddy/5.8.4 workbuddy-ai/5.8.4 CLI/2.161.0, X-IDE-Version
5.8.4, no X-Agent-Runtime. Not shown to be the cause of the restrictions
(no real account was used); it is a header that no longer matches the
official client.
Read (never run) on 2026-10-29, unauthenticated:
- www.workbuddy.ai/v2/update?platform=workbuddy-darwin-arm64 answers
5.9.3.42398134 for every version asked from 5.3.0 to 5.8.4.41366630
(the desktop's resolveUpdateClientTypePrefix maps workbuddy-ai to
"workbuddy"), download.codebuddy.ai, last-modified 2026-10-27.
- That zip, range-read: "WorkBuddy AI.app" CFBundleShortVersionString
5.9.3, bundle id com.workbuddy.workbuddy-ai, cli/package.json
@genie/agent-cli 2.165.0, cli/product.json productName WorkBuddy AI,
platform workbuddy-ai, Electron Framework 37.10.3.
- Every file under app.asar.unpacked/cli has the China 5.9.3 zip's CRC
but product.json and sandbox-config.json, so the CLI's headers
(UserAgentHttpInterceptor, axiosToFetchAdapter, X-Stainless-*, gzip)
are the China build's.
- Its app.asar puts agentRuntime `local-agent` in the prompt meta, as
the China build's does, so X-Agent-Runtime: local-agent goes on
WorkBuddy AI too.
Now WorkBuddy AI sends WorkBuddy/5.9.3 workbuddy-ai/5.9.3 CLI/2.165.0,
X-IDE-Version 5.9.3 and X-Agent-Runtime local-agent; the China build is
unchanged.
Run (on mote, HOME=$(mktemp -d) bun test in packages/workbuddy): 207 pass,
0 fail. bun scripts/check.mjs: exit 0.
Broken by hand: conversation.test.mjs on origin/main's index.mjs (0.1.45):
2 of 13 red (the WorkBuddy AI User-Agent, and the per-build header test).
Not tried: a real WorkBuddy AI chat with the new headers. Still not sent:
X-Device-Token (Tencent's native device SDK). No text added names magpie
or WorkBuddy's limits.
|
||
|
|
4a46212f89 |
page-chat 0.1.2: opened from another machine, the page reaches its service through magpie web
aigcfree (Discord DM) runs `magpie web --addr 0.0.0.0:3430` on an Ubuntu
server behind nginx, and opens it from a Windows PC. The chat tab showed
"127.0.0.1 refused to connect": boot.js sent the frame to 127.0.0.1, the
viewer's own PC. 0.1.1 (
|
||
|
|
8a9680b4cb | page-chat 0.1.1: opened from another machine (magpie web on a server), the launcher explains the SSH tunnel instead of navigating to a refused 127.0.0.1 | ||
|
|
1f56706556 |
zen-free 0.1.18: the environment block names a real directory, since Zen refuses "Working directory: unknown"
shanmao_10826 on magpie's #help, 10-29: every free model (deepseek-v4.1-
flash-free and others) answers 429 "Free usage limit reached. Free
models work in OpenCode", while OpenCode itself on the same machine works.
Cause, found against opencode.ai from the Linux box (xiaomi-gpu WSL) on
2026-10-29, deepseek-v4.1-flash-free, one request each, minutes apart,
same IP, only the system prompt and stub-tool text changed:
- the plugin's own request through loader.fetch (0.1.17): 429
FreeUsageLimitError, the reporter's message;
- "You are opencode." + <env> Working directory: /tmp/x: 200;
- the plugin's exact block "<env>\n Working directory: unknown\n</env>"
(alone, or after a prompt, either tool description): 429;
- the same block with /tmp/x for "unknown": 200;
- the plugin's stub description "Not available. Never call this tool."
with a path in the block: 200.
So Zen now refuses the literal placeholder 0.1.15 to 0.1.17 added, the
plugin's fingerprint, as it refused the plugin's old User-Agent on 10-26.
Headers were diffed against OpenCode v2.2.0 (packages/core/src/session/
model-request.ts, app.ts useragent, plugin/provider/opencode.ts): the
same set the plugin sends; nothing new on the request since 2.0.25. Zen's
server code is no longer public (packages/console's handler went on
10-11), so this was found by bisecting real requests.
Fix: the block added is OpenCode 2.2.0's own (instructions/builtins.ts:
the intro line, Working directory, Workspace root folder, Is directory a
git repo, Platform; not its line about OpenCode's temp folder), with the
directory the agent's own prompt or first user message names (Codex's
<cwd>, a "Working directory:" line, Kimi's "The current working directory
is `...`"; absolute paths only), or the user's home folder when none is
named. A prompt that already has a block goes as it is, as before.
Run:
- Real, through the fixed plugin's loader.fetch from the same IP right
after the 429s: deepseek-v4.1-flash-free with no prompt 200, with an
agent prompt naming its directory 200, glm-5.3-flash-free 200.
- New test (the block names the stated or home directory, never a
placeholder; Codex/Kimi/Windows/Anthropic cases): red on origin/main's
provider.mjs (1 fail of 44 in index.test.mjs), green with it.
- HOME=$(mktemp -d) bun test in packages/zen-free: 201 pass, 0 fail.
- HOME=$(mktemp -d) bun test at the repo root: 3131 pass, 1 fail, the
fail is layerfs "item 3: an import skips secret-shaped files", red the
same at origin/main
|
||
|
|
cc3f000c6d |
qoder 0.2.48: a job token Qoder refuses as Login expired is renewed once and asked again (#474)
ahang39 (plugins#474): international Qoder answered dfmodel with 403 "Login expired" in bursts of ~16 requests over 2-5 minutes, about every 24h, shown by magpie as 401 "the sign-in lapsed". The report's times put the burst's start where magpie's renewal came due (saved end less the 10-minute lead) and its end where the renewed pair was saved: Qoder refused a job token the plugin still had as minutes from its end, and nothing asked again with a renewed one. Why Qoder ended it early isn't proven from the report. - A chat's 401/403 now marks the failure lapsed. ask re-reads the saved sign-in under the refresh lock: a pair renewed meanwhile (another request, magpie's auth.refresh, another process) is used with no refresh; else the refresh token is spent once, the pair saved, and the request sent once more. A burst shares one refresh. A token this process renewed under 5 minutes ago that is refused too isn't renewed again, so a refusal not about the token's end doesn't churn refresh tokens; the 401 is said as before. - A refreshed job token's end is read as an exchanged PAT's was: expire_time / expires_at (a date, or an epoch in s or ms) first, then expires_in, then a day. An end already past is ignored. Run (mote, mote-run, HOME=$(mktemp -d), --timeout 60000; mote at load 20-28): - packages/qoder: 320 pass, 0 fail. - whole repo: 3129 pass, 1 fail: commandcode "a plan saved stands in for a subscription slow to read" (16.8s against its 3s bar), passes alone 13/13, filed as #475. - bun scripts/check.mjs: ok. - lapsed.test.mjs on the old index.mjs: 8 of 9 red. The 9th (magpie's own renewal begun during the refusal) was rewritten after that run and not run against the old code again. Not tried: a real international Qoder account at the moment its token is refused; the fake Qoder (refusal body {"message":"Login expired"}, single-use refresh tokens) is built from the report's words only. |
||
|
|
50e99c2524 |
trae: the token_usage TRAE CN's own client got keeps its cache read (#455)
chansee97's capture of TRAE CN's llm_utils_chat answer, byte for byte:
an id line and no space after any colon (id:30 / event:token_usage /
data:{...cache_read_input_tokens:4096...}). The plugin already reads it:
cache_read_input_tokens 4096 of prompt_tokens 4122 goes on to magpie,
streamed and not. No change to the plugin, so no version bump.
Run (mote, bun 1.4.2, sandbox HOME): bun test cache.test.mjs, 6 pass.
Broken by hand: an "event:" line with no space read as unknown makes both
new cases red (2 fail); the four older cases, built with a space, stay
green, so this is the only test of the no-space form.
Not tried: a real Trae CN account (none here).
|
||
|
|
526c7853c3 |
page-chat 0.1.0: Magic_zero's chat page, with tests, a registry entry and check.mjs for a page's host part
Lists Magic_zero's (Magiczerowxy) magpie-chat as @magpie-community/page-chat:
a chat page in magpie's window over magpie's own gateway, models, MCP
servers, instructions and skills. Not a provider or a relay: it signs in
to nothing and every request goes through magpie's gateway.
- chat.test.mjs starts the service on a free port against a fake
gateway in a temp config folder: no token (Origin null and none), a
wrong token, another Origin and a rebound Host are refused and nothing
reaches the gateway; with the token a chat streams with the caller key;
the icon redirect has a Location; boot.js makes no request; app.js
sends the token.
- scripts/check.mjs takes the OpenCode v1 default export {id, server}
as magpie's host does, and doesn't start a page's server (it would bind
a port and write config); layerfs's tools are still checked.
- package.json declares the port option (3477) both parts read; boot.js's
comment says so instead of a fallback to 3478 that never existed.
- README in the repo's style with credit, what the service reads and
sends, who can use it, and the changes from the original.
- registry.json entry and a row in the Pages table.
Run on mote (bun 1.4.2) at this tree:
- cd packages/chat && HOME=$(mktemp -d) bun test: 11 pass.
- HOME=$(mktemp -d) bun test (whole repo): 3119 pass, 0 fail, 3127
tests across 261 files; bun scripts/check.mjs: exit 0, chat and
layerfs ok.
Broken by hand: with the token check off, "a page without the token
can't chat" went red; with the Host check off, "a DNS-rebound Host is
refused" went red.
Not tried: the page in a real magpie window (sandboxed frame navigation
and the host calling server()).
Co-authored-by: Magiczerowxy <magiczerowxy@users.noreply.github.com>
|
||
|
|
bdf3bf8405 |
page-chat: a token and a Host check guard the local service; port option honoured
The service on 127.0.0.1:3477 answered Origin: null (any site's sandboxed iframe or a data: page) with ACAO null, and had no Host check, so a hostile page could POST /api/chat on the user's magpie gateway key, read and rewrite conversations and settings, and drive MCP tools; a DNS-rebound page could read conversations with a plain GET. - Every /api/ route except ping, fonts.css and icon/* now needs a per-process token (x-magpie-chat-token, timing-safe compare). The token is put in index.html as a meta tag, and index.html goes out without CORS, so only a page that navigated to the service can read it. app.js sends it on every call and reloads once when the service restarted. - The Host must be 127.0.0.1:<port> or localhost:<port>, checked first. - index.mjs starts the service when the host calls server(), not on import, and passes the plugin option's port, which page/boot.js already read; before, a port set in the options moved the page and not the service. - Port 0 binds a free port (tests); the actual port is used for the Host and Origin lists. - /api/icon's remote icon answered 302 without a Location; it has one. - /api/bootstrap reports the package version instead of "0.1.0". - package.json: 0.1.0 in magpie-community/plugins, author credit, start runs serve.mjs. Co-authored-by: Magiczerowxy <magiczerowxy@users.noreply.github.com> |
||
|
|
4193f7410c |
chat: Magic_zero's magpie-chat page, as published at Magiczerowxy/magpie-chat 15de02d
The files its package.json ships, unchanged, from https://github.com/Magiczerowxy/magpie-chat at 15de02d (0.1.18). The vendored KaTeX is katex@0.16.11's dist, byte for byte (checked against npm's tarball). Not published from this commit: the next ones close the local service to other pages and fit it to the repo. Co-authored-by: Magiczerowxy <magiczerowxy@users.noreply.github.com> |
||
|
|
f968917875 |
qoder 0.2.47: every model a site ships says whether it takes images (#470)
Every model a site ships now sets attachment and modalities.input either way, so a text-only model (QwenWork's three, Qoder CN's Lite) no longer falls back to models.dev's vote by bare model id. Run at 20043420a48079429896d861b33f2140261cf1df, on mote: HOME=$(mktemp -d) bun test in packages/qoder, 311 pass, 0 fail. Broken by hand (attachment: true for every model): config-capabilities.test.mjs goes 0 pass / 2 fail. Checked: QWORK_FALLBACK_LISTING marks all three QwenWork models is_vl: false, so text-only matches the vendor's listing. A signed-in account's own listing (is_vl) still takes over from the shipped list. Not tried: a real Qoder CN account's Lite with an image. |
||
|
|
744e1e26f3 |
autoclaw 0.2.12: the overseas chat sends the official 2.0.3 fingerprint, and X-Tm "linux" on Linux as the official client does (#367)
menhouran captured the official AutoClaw 2.0.3 Linux chat request and
corrected the report behind 0.2.7: the official client sends X-Tm "linux",
not "linux-x64". The overseas gateway refuses "linux" only beside a
non-official fingerprint (X-Channel AutoClaw4, X-Version 1.18.1, no
X-Auth-*); "linux-x64" got through only because it isn't the one value
checked.
Read from the official client itself: AutoClaw-2.0.3-x64.AppImage from
autoclaw.z.ai's Linux download (sha512 matches latest-linux.yml),
resources/app/dist/main.cjs, extracted with 7zz and never run.
createZworkManagedRequestHeaders and createZworkManagedModelRequestResolvers
build the chat headers:
- X-Tm from managedPlatform(): darwin mac, win32 win, else process.platform
as is (Linux is "linux" on x64 and arm64);
- X-Auth-Sign = md5("100003&<seconds>&<appKey>"), the same identity and
signature the plugin already sends on its sign-in/wallet paths;
- X-Channel official, X-Version app.getVersion() (2.0.3), X-Lang the
product language (en in the reporter's capture), X-Product autoclaw,
X-Client-Type pc, x_trace_id autoclaw-desktop;
- X-Request-Id = X-Trace-Id = a randomUUID per attempt; X-Session-Id the
session's UUID; X-Authorization Bearer, no Authorization;
- the request goes through the OpenAI SDK 6.26.0 in Electron 42.6.1
(Node v24.18.0), which adds User-Agent "OpenAI/JS 6.26.0" and
X-Stainless-* (OS/Arch through the SDK's own normalizers).
The overseas chat now sends that set. X-Session-Id is a UUID derived from
the conversation's first non-system message, so it stays the same across a
conversation's turns as the official one does. The caller's own
X-Stainless-* headers are dropped. bizHeaders (sign-in, refresh, wallet,
check-in) keep AutoClaw4/1.18.1 and send X-Tm "linux" again, as before
0.2.7, when they worked on Linux. README says what is sent and that
linux-x64 was a bypass.
Not changed: the overseas chat path keeps /v1/chat/completions, which the
reporter verified; the official client posts to .../autoclaw/chat/completions.
X-Stainless-Timeout is 600, the SDK default when no per-request timeout is
passed; whether zwork passes one wasn't traced to the end.
Run: HOME=$(mktemp -d) bun test in packages/autoclaw on mote, 46 pass;
bun scripts/check.mjs autoclaw ok; the same suite on Linux (wsl-run,
magpie-desktop) 46 pass. The new tests on origin/main's index.mjs: 4 fail
(the three #367 tests and the UA check in the 406 test).
Not tried: a real overseas account (none here), on Linux or anywhere; the
reporter is asked to confirm on #367.
|
||
|
|
dd260b4a3a |
trae: #434's "max" is the app's 1M-window Max switch, not a level (comments)
hbw169 (#434) on trae 0.2.23, TRAE CN: magpie model efforts prints "low high xhigh" for deepseek-v4.1-flash and deepseek-v4.1-flash-max. Their screenshot of the TRAE CN app's DeepSeek V4.1 Flash card shows 思考强度 轻 / 高 / 极高 only (light / high / extra_high, the plugin's low / high / xhigh), and a separate 更大上下文 (Max) switch: "1M window, more credits". That switch is the plugin's deepseek-v4.1-flash-max model (maxModel, the list's __max entry with context_window_tokens.max), which the reporter already has. So the plugin offers exactly what the app does. Magpie's side passes a plugin model's variants through unchanged (internal/provider/plugins.go: c.Efforts = m.Variants; provider.Levels holds max), so it doesn't narrow anything either. 0.2.23's comments said the app offers DeepSeek V4.1 Flash max as a level. That was wrong; they now say what the screenshot shows. No code change, no version bump: LEVELS keeps medium/max for a list that names them. Run: packages/trae, HOME=$(mktemp -d) bun test on mote: 221 pass, 0 fail. Broken by hand: nothing; comment-only. Not tried: a real TRAE CN account's model list; the read rests on the reporter's screenshot and the client binary's field names (reasoning_effort_config, reasoning_effort_options, default_reasoning_effort, context_window_tokens), not a captured list. |
||
|
|
f653369a77 |
joycode 0.2.0: route models by adapterType to Chat, Responses and Messages (#464)
joycode 0.2.0 (liangmouse). Each JoyCode model is routed by the `extJson.adapterType` in its catalogue entry:
- missing/other → Chat Completions (`@ai-sdk/openai-compatible`, `chat_completions`)
- `openai-response` → Responses (`@ai-sdk/openai`, `responses_completions`)
- `anthropic` → Anthropic Messages (`@ai-sdk/anthropic`, `anthropic_completions`)
The routing matches JoyCoder.joycoder-fe 3.8.71's `buildApiHandler`. Other changes:
- Anthropic `/messages/count_tokens` gets a local 404 and nothing goes upstream, so magpie's `unsupportedCount` uses its local estimate.
- All three protocols send `language: UNKNOWN`, as JoyCode's own handlers do.
- Non-streaming JSON for Anthropic and Responses counts as success.
- `flatten` applies to chat only.
- JoyCode's extra SSE layer (`data: event:` / `data: data:`) is removed line by line as the stream arrives. Standard SSE passes through unchanged.
Reviewed and run at f1ccb2ab59b0570295264317f270b266c7a585da (on mote, macOS, Bun 1.4.2, HOME a temp dir):
- `bun test packages/joycode`: 42 pass. `node --test packages/joycode/*.test.mjs`: 42 pass. `bun scripts/check.mjs joycode`: ok.
- Broken by hand, one at a time, each went red:
- count_tokens guard off → the count_tokens test;
- Anthropic normalizer off → the Anthropic double-wrapped test;
- Responses normalizer off → the Responses double-wrapped test;
- `language` dropped → 2 tests.
- Official SDKs (`@anthropic-ai/sdk` 1.3.0, `openai` 7.45.1) read JoyCode-framed streams through the plugin's fetch, served locally and cut into 7-byte chunks:
- `messages.stream` got the full event sequence, text "OK", `end_turn`;
- `responses.create({stream})` got 9 events ending in `response.completed`, text "OK".
- The same bytes without the plugin: "request ended without sending any chunks" from Anthropic and "malformed server-sent event JSON" from OpenAI.
- Upstream functionIds seen were `anthropic_completions` and `responses_completions`.
Real account: the author's run is in the PR thread and the CHANGELOG (`provider test` GPT-6 Astra 200 in 3.0s, Claude-Opus-5-hq 200 in 7.3s). Not tried here: no JoyCode account.
|
||
|
|
880cd9319c |
workbuddy 0.1.45: only a chat completion goes gzipped; magpie's drawings go as plain JSON
iwinux on Discord (2026-10-28 ~22:30 UTC+8, magpie v0.1.1812): the Magpie
Image MCP through WorkBuddy AI failed from the minute 0.1.43 was published
(14:30Z) with
400 Bad Request: Unmarshal create image params failed with error:
invalid character '\x1f' looking for beginning of value (11101)
0.1.43 (
|
||
|
|
9dbde4573c |
devin: OpenCode 2 support, a default export with setup (#397)
devin 0.1.25: the plugin loads in OpenCode 2 (a default export with setup), beside OpenCode 1. Also: v2Usage leaves the uncached count undefined when prompt_tokens is missing, instead of NaN. Run at the reviewed head 6b151dba3c7cc1056026629bf2e4e4c8e312a6d0, on mote: - HOME=$(mktemp -d) bun test packages/devin: 125 pass, 0 fail - bun scripts/check.mjs: ok - HOME=$(mktemp -d) bun test: 2920 pass, 8 skip, 0 fail - Broken by hand: with 1ed15ef's noCache line back, "v2Usage takes cached tokens out of the uncached count" goes red (NaN), green once restored. Not tried: a real Devin chat in OpenCode 2 (no Devin account here). |
||
|
|
719de026e7 |
cursor 0.2.30: an Enterprise account's overall allowance from usage-summary (#391)
Fixes yetone/magpie#3288. An Enterprise account's GetCurrentPeriodUsage has no planUsage, so its card was empty. usage() now reads the website's /api/usage-summary with the same dashboard session the Grok Bot read builds, and shows an Enterprise window (amount/limit in USD, reset at the cycle's end) when the summary is Enterprise with overall enabled and used/limit real numbers. It is aside while team on-demand is unlimited or a measured budget has room, and a measured on-demand budget gets its own window. Anything else leaves the card empty, as before. Version 0.2.30. The reviewer pushed 9435f59 on top of e2f03a0: main merged in (the only conflict was the version line; main took 0.2.27 to 0.2.29 meanwhile), version 0.2.30. Run at 9435f59f0f0e4902e37f8634eebe8e41127cc9b1, on mote (mote-run, HOME=$(mktemp -d)): - bun test packages/cursor: 328 pass, 0 fail (19 files). bun scripts/check.mjs cursor: ok. - Full bun test: 3063 pass, 8 skip, 0 fail (257 files). - Broken by hand on usage.test.mjs, each red then restored: the old Number() reads of overall.used/limit (the can't-be-read test; null/""/false/[] read as 0 again), no room check on the on-demand budget (the 50000 and 60000 of 50000 cases), the summary read off (10 tests). - npm pack 0.2.30 and imported the packed index.mjs (CursorAuthPlugin, _internal). npm has 0.2.29. Not tried: a real Enterprise account (none here); the summary's shape rests on the author's account. Still unanswered from the review: whether an Enterprise seat's summary carries a personal on-demand cap (individualUsage.onDemand); a ms-string billingCycleEnd gives no resetsAt. #372 touches the same `if (!u)` branch and now has to rebase onto this. |
||
|
|
f02894d3a0 |
autoclaw 0.2.11: the points balance is a prepaid wallet window, and spend rides on local balance deltas (#445)
AutoClaw has no points ledger upstream (wallets.v2 is a balance only), so usage() now reports the balance as a prepaid wallet window, {name: "积分余额", balance, unit: "积分"} (magpie >= v0.1.1790, #3950), which routing reads as what is left; an empty wallet counts as used up. A display-only "本轮消耗" window (aside) is worked out from local balance deltas: any rise, from 0 too, opens a new cycle, and the Beijing day keeps its spent/gained sums. The ledger is keyed by signinAccountKey (#254), lives in $XDG_CONFIG_HOME/magpie/autoclaw-usage.json (temp file + rename, 30-day expiry), and a null/""/non-numeric total_balance is unknown and never recorded. The unsigned fallback reward reads 200 (was 400). Version 0.2.11, on top of main's 0.2.10 (#466,
|
||
|
|
4115073df3 |
zen-free 0.1.17: deepseek-v4.1-flash-free's context floor is the measured 258,624 (#448)
deepseek-v4.1-flash-free's context is raised to the measured floor 258,624 (a 200 with upstream usage in 576 + cache_read 258,048 on 2026-10-26) whenever Zen's catalog reports less or nothing; a larger catalog value (262,144, 1,000,000) passes through. Output stays 32,000. Upstream data issue: anomalyco/models.dev#11768. Version 0.1.17.
Run at 4ff44683d6e326a2baaafa5fb12216b4298d0858, and merged onto main
|
||
|
|
95fa76126d |
workbuddy 0.1.44: a huge chat's ids are hashed in pieces, and it is read once on every path (#461)
0.1.42 brought jihuayu's 45 MiB repro from 7 parses a request to 2, and
0.1.43 keeps that: one full parse and one full stringify a request. What
was left of the peak was attendChat: the conversation and turn ids were
made from template strings holding the whole user message (`first:${sig}`,
`u1:${sig}`, `${conv}|${turn}`, then `${SALT}|kind|${key}`), each a fresh
45 MB string, ~160 MiB of peak a request. The keys are now lists of
pieces fed to one sha256 each, whole (Bun hashes a one-byte string in
place; 1 MiB slices cost a copy and were worse), with a high surrogate
split between pieces held for the next one, so every id is the hash of
the same string as before.
Also read once on paths the repro doesn't take:
- "Free models only" parsed the body again for its model; it reads the
chat prepared already parsed.
- A model known to want a reply after tools (11153) had the body parsed
and stringified again on every request; the reply goes into the one
parsed chat before the one stringify.
- The prepared result no longer holds the parsed tree past the send.
Every byte WorkBuddy sees is unchanged: sent.test.mjs runs 12 chats
(OpenCode tools, default effort, developer turn, after-tools refusal and
known, system refusal and known, both, Messages, bytes, not JSON),
switch off and on, and holds the gunzipped body's sha256, url, encoding
and which requests share an id to testdata/sent-0.1.43.json, made by
running the same harness on npm's 0.1.43 index.mjs (sha 9213db6d...).
Run on mote (Bun 1.4.2), the issue's benchmark.mjs as written but for
the import, 45.3 MiB body, 4 requests, concurrency 1, /usr/bin/time -l,
3 runs each:
direct (no plugin) 336 MiB
0.1.41 981-1117 MiB, 28 parses (1087.5 MiB), 24 stringifies
0.1.43 717-760 MiB, 8 parses (181.3 MiB), 20 stringifies
0.1.44 583 MiB all 3 runs, same counts, ~370-420 ms wall
(0.1.43 ~400-530 ms)
One request: direct 134, 0.1.41 569, 0.1.43 390, 0.1.44 275 MiB (with
id derivation stubbed out entirely: 229).
- HOME=$(mktemp -d) bun test in packages/workbuddy at this head:
201 pass, 0 fail. bun scripts/check.mjs workbuddy: ok.
- Broken by hand, each red: free-only parsing again -> the free-only
parse-count test; reply after tools put in by re-parsing -> the
after-tools parse-count test; no surrogate hold -> the idFor pieces
test; the reply put in before the system move -> sent.test.mjs.
gzip was measured too: Buffer.from before gzipSync made no difference
to the peak, so it is unchanged.
Not tried: a live WorkBuddy request; the reporter's Linux and Bun
1.4.4 (mote has 1.4.2); concurrency 4; a huge body that isn't ASCII
(Bun keeps it two-byte, so hashing it may copy); a huge Messages body
(its own path, not changed here).
|
||
|
|
25488a7c8f |
opencodereview 0.1.0: Open Code Review (ocr) as an agent plugin (#463)
New agent plugin @magpie-community/agent-opencodereview 0.1.0 (imyelo): Open Code Review (Alibaba's `ocr` CLI) on magpie's Agents page. connect writes `provider: "magpie"` and one `custom_providers.magpie` object (gateway base url, protocol anthropic, magpie's key for ocr) into ~/.opencodereview/config.json; magpie writes `model`. Registered in registry.json and the README's Agents table.
Reviewed at 3ea944df15c566aabf2235a147da868ea1e64f02.
Run at that sha (on mote, macOS arm64, Bun 1.4.2):
- `HOME=$(mktemp -d) bun test packages/opencodereview`: 8 pass. `bun scripts/check.mjs opencodereview`: ok (it skips agent packages). Full `bun test`: 0 fail, both at the sha and merged with main
|
||
|
|
d8cfee3bba |
autoclaw 0.2.10: WorkBuddy's "powered by GLM-x" opening line and "You are CodeBuddy Code" are rewritten, not a 406 (#466)
larrylinli (plugins#466, Windows, magpie 0.1.1844, autoclaw 0.2.9, autoclaw-cn/zaicoding_glm-5.3) had every first WorkBuddy 5.9.3 request fail with 406 in 0 / out 0. WorkBuddy renders a custom GLM model into the system prompt's opening line, "This conversation is powered by GLM-5.3 · AutoClaw 国内 (Zhipu)", which is ZCode's opening-line wording. The reporter bisected the real 163,730-byte request against the CN gateway: "This conversation is powered by GLM-<version>" is a 406 in any case and anywhere, while a bare "GLM", "ChatGLM-5.3", "The conversation ..." and "powered by the GLM-5.3 model" are 200; the whole request replayed with only that line rewritten is a 200. A second string, "You are CodeBuddy Code" (WorkBuddy's CLI template), is also a 406 in their probes; "You are CodeBuddy" passes. So the request content is refused, not the account or the model: a small request on the same account and channel 0.4s earlier was a 200. FLAGGED gets both, with the rewrites the reporter found answered: - "This conversation is powered by GLM-<v>" -> "... by the GLM-<v> model" (the version stops before a sentence's closing period); - "You are CodeBuddy Code" -> "You are the CodeBuddy Code CLI". Like every FLAGGED entry they apply to system and developer messages on both channels; a user message is left as written. This is not the workbuddy plugin: WorkBuddy is the client here, sending to magpie, and the provider is AutoClaw. workbuddy 0.1.43's effort and gzip change is unrelated. Run (mote): HOME=$(mktemp -d) bun test packages/autoclaw (40 pass); bun scripts/check.mjs autoclaw green. Broken by hand: HEAD's index.mjs with the new test: red (Received "This conversation is powered by GLM-5.3 · AutoClaw 国内 (Zhipu)"). Not tried: the real AutoClaw gateway (no AutoClaw account here); the 406/200 table is the reporter's. Not changed: a general shape-based fallback (#236) instead of one entry per string. |
||
|
|
68794bacfc |
trae 0.2.24: a Kimi model's tool schemas get the types Moonshot requires (code 4027) (#462)
Trae passed a request's tools to the model as they were. Moonshot (Kimi) refuses the whole request when a schema node has no type: Trae answers code 4027, "tools.function.parameters is not a valid moonshot flavored json schema … type is not defined". Claude Code's enum-only properties trigger it. For a model whose config, model_name or request model matches /kimi|moonshot/i, nativeTools now deep-clones each tool's parameters and rewrites them with kimi-work's moonshotSchema (ported). An enum or const with no type gets the type its values have, and a $ref beside a type and a type beside an anyOf are written the way Kimi takes them. Other models' tools, and schemas Kimi already accepts, go byte for byte. README note, new moonshot.test.mjs, and 0.2.23 -> 0.2.24. By edifierx666 (#462). Reviewed at 4c8dc7401f74fb44615bcb70ee0178337a017951. The only change since is 31c88fe84 (maintainer): the README's Kimi bullet moved after the native-tools bullet's continuation paragraph. The text is unchanged. Run at 31c88fe84 (macOS, via mote-run, sandbox HOME): bun test packages/trae, 221 pass, 0 fail; bun scripts/check.mjs trae passes. Run at 4c8dc7401 as well: the same 221/0, plus check. Broken by hand at 4c8dc7401, running moonshot.test.mjs: - moonshotModel always false: 4 of 6 red. - Always true: the non-Kimi test red. - structuredClone dropped: red. Edge cases run through chatBody, 18 schemas: null, mixed, object and empty enums; nullable; anyOf/oneOf; nested objects; arrays without items; untyped and self $refs; boolean schemas; properties named enum or const. glm-5's parameters are byte-identical in every case. For Kimi, enums and consts only gain a type. Not tried: a live Trae CN or Trae Global request (the author ran Trae CN live, per the PR). |
||
|
|
f4d48ac3ee |
workbuddy 0.1.43: a chat names the model's default effort as WorkBuddy's client does, and goes gzipped
troilus1011 on X: WorkBuddy's DeepSeek in OpenCode through magpie thought at low and high, never at the default. OpenCode's default variant names no reasoning_effort, and WorkBuddy doesn't think without one: measured on www.workbuddy.ai with 0.1.42, deepseek-v4.1-flash gave 0 reasoning tokens with no effort (2 of 2), 0 at none, 16/37 at low, 34/56 at high. WorkBuddy's own client (CLI 2.165.0 in WorkBuddy 5.9.3, configureThinkingSettings) sends the session's effort, else the reasoningEffort setting, else the model's reasoning.defaultEffort from /v3/config, which is "high" for this model on both builds. A chat that names no effort now gets the model's own defaultEffort when its listed levels hold it, read from the same cached /v3/config list (one read per minute; a failed read leaves the chat as it came and is not retried on every chat). An effort the client names, none included, is untouched and the list isn't read for it. Models with no reasoning config get nothing. runmiNeverstop on X: 2.89 GB up to copilot.tencent.com through magpie. WorkBuddy's client gzips a model request's body (GzipRequestProcessor, on with productFeatures.RequestBodyGzip, true in both builds' product.json and not turned off by the remote config); the plugin sent it as plain JSON. Agent chat JSON (the whole history each turn, tool schemas) compresses several-fold, so the upload was several times what the official client sends for the same turns. A chat-completions body now goes gzipped with Content-Encoding: gzip on both builds; unanswered() weighs the gzipped size against the front door's 2 MiB. Claude's Messages route goes as it came (not tried gzipped live). Run (on mote, HOME=$(mktemp -d) bun test in packages/workbuddy): 197 pass, 0 fail. bun scripts/check.mjs: exit 0. Fakes that parse the sent body gunzip it (testdata/unz.mjs); reset.test.mjs's 2 MiB bodies are random base64 so they stay over 2 MiB on the wire. Live (www.workbuddy.ai, a real account in a sandbox HOME): with 0.1.43 the default sent reasoning_effort high gzipped and thought (34 and 51 reasoning tokens), none stayed 0, low and high as before, all 200. A gzipped chat answered 200 the same as a plain one. Broken by hand: origin/main's index.mjs with the new default-effort.test.mjs: 5 of 8 red (default effort, failed-read reuse, both gzip tests, defaultEffortOf); the 3 that pass guard what must not change (named efforts, models without a default, Messages). Not tried: a live chat on the China build (copilot.tencent.com answered 401 to every token available here, its /v3/config read fine); Messages gzipped; the reporters' own OpenCode sessions end to end. |
||
|
|
08e3ba8990 |
kimi-work 0.1.14: a spent allowance's 403 goes out as a 429 (#465)
Kimi answers an account whose allowance is used up with a 403 ("You've
reached your usage limit for this billing cycle", resource_exhausted
"insufficient balance"). The plugin passed it through, magpie read a
403 as a key fault, never rested the account, and kept routing to it
while another account with quota sat idle (kongbai01203: 6+ requests in
20 minutes to the spent one after the other answered 200).
A 403 whose body says resource_exhausted, usage limit, billing cycle,
insufficient balance or quota now goes to magpie as a 429 with Kimi's
body and headers (content-encoding/length dropped, the text is
decoded), the pattern Devin's, Qoder's, Kiro's and Cline's plugins use
for a spent quota. magpie's quotaStatus counts 429 as spent and moves
on. Any other 403 stays a 403 with its body.
Run (on mote, HOME=$(mktemp -d) bun test in packages/kimi-work): 69
pass, 0 fail. bun scripts/check.mjs: exit 0.
Broken by hand: status:spent?429:403 changed to status:403; the three
new spent-allowance tests went red (66 pass, 3 fail), green again with
the fix back.
Not tried: a real spent Kimi Work account. The issue gives Kimi's words
but not the JSON around them, so the fixtures try them in an
OpenAI-style error, a Connect body and a nested Connect error. Not
checked end to end that magpie then rests the account until the cycle
resets (Kimi sends no reset time; magpie's own rest length applies).
|
||
|
|
1f015f1b1e |
qoder 0.2.46: b7bbc9d's record (it went out under a stale 0.2.43 subject)
|
||
|
|
b7bbc9dc06 |
qoder 0.2.43: the check-in says when to ask again, as the 10:00 (UTC+8) campaign opens
sdytman on Discord: Qoder's daily credits start at 10:00, can the plugin's
check-in follow it? Qoder's /me/campaigns lists each day's CLAIM_BENEFIT
campaign with startAt 10:00 and endAt 09:59 the next day, both UTC+8
("Daily reset: 10:00 (UTC+8)"), read with a real account at 09:27 CST on
10-28. Qoder.app 0.4.3 polls that list every 5 minutes and treats
startAt <= now < endAt as active; there is no next-time field. A check-in
before 10:00 met yesterday's campaign, and magpie settled for the Beijing
day, so today's campaign waited until tomorrow, or was lost.
checkin now returns until: the next campaign's opening (the later of
endAt and startAt + 1 day, or the next startAt in the gap) plus a minute,
on done, claimed and "not offered yet". All in epoch time, so the
machine's zone doesn't matter; qoder and qoder-cn share the code. magpie
asks again at until once it reads it (yetone/magpie, next release).
Run (mote): checkin-window, native-checkin and checkin tests under
TZ=UTC, Etc/GMT+8 and Asia/Shanghai, 66 pass each; HOME=$(mktemp -d)
bun test, 2938 pass 0 fail 8 skip; bun scripts/check.mjs. A real qoder
account at 09:35 CST: claimed 100, until 2026-10-28T02:01:00Z.
Broken by hand: nextOpens returning endAt only, 11 of 13 checkin-window
tests red; askAgain returning {}, 12 of 13 red.
Not tried: a real Qoder CN account (none here); the server's list in the
09:59-10:00 gap.
|
||
|
|
f2b0dacdb7 |
workbuddy 0.1.42: a chat is parsed once on its way, and goes as it came when nothing changed (#461)
jihuayu measured a 45 MiB chat going through 0.1.41's fetch: each step (withSystem, fitted, normalizeToolChoice, attend, the model, systemKey) parsed the whole body again, 6 parses a request, and normalizeToolChoice wrote it out whole even for an unchanged "auto". Bun's RSS reached 618-751 MiB for 4 serial requests where passing the body through took 270. prepared parses a request once. Each step makes its own change to that one object, in the same order (systemOn, fitTools, toolChoiceOn; unsignedOn for Messages). attend, the model and the system key read the same object, and a refused system prompt moves on it (systemAsUserOn). The body is written out once, only when a step changed it. The parsed chat is let go before the request is sent. A body a step throws on goes through the steps one by one, as before. The string-level helpers stay as wrappers. What was run, on this tree: - mote, the reporter's benchmark (no network, fetch stubbed, 4 x 45.3 MiB, peak RSS sampled every 5ms): 0.1.41 7 parses/request, 1087.5 MiB parsed, peak RSS 1096 / 979 MiB. This change: 2 parses/request (the request and the stub's SSE reply), 181.3 MiB parsed, peak 682 / 680 MiB. The bodies sent have the same SHA-256 in both. - HOME=$(mktemp -d) bun test packages/workbuddy on mote: 189 pass, 0 fail. bun scripts/check.mjs workbuddy: ok. - oneparse.test.mjs (new): 17 chat shapes, invalid JSON and bytes come out the same as the steps one by one made them, with the same tool names; an unchanged chat goes byte for byte; the loader parses a 2 MiB chat once. Broken by hand: every request sent through the step-by-step fallback, the loader test FAILs (5 parses, want 1). An unchanged "auto" counted as a change, the byte-for-byte test FAILs. - Real account (WorkBuddy AI, free-only on, sandbox HOME, this Mac): deepseek-v4.1-flash, a 373-byte chat and a 205,595-byte chat with a developer message, max_completion_tokens and a dotted tool name, through 0.1.41 and this change: 200 "OK" on all four; no sign-in refreshed. npm has 0.1.41, so 0.1.42 is free. Reported-by: jihuayu |
||
|
|
8f81a8aeb8 |
cursor 0.2.29: a native Run over HTTP/1.1 sends its history's blobs 16 at a time
ysm119 on Discord: Cursor models 30 s+ to first token, 1-4 min a turn.
0.2.28 (
|
||
|
|
c00f40eb01 |
raccoon 0.1.4: read the desktop auth.json in the client profile on macOS and Windows (#459, wky114)
Current Raccoon desktop builds keep the session in a client profile, not in ~/.box-agent, so desktop sign-in answered "not detected" while the app was signed in (wky114). Raccoon desktop 1.1.3's app.asar (clientProfile.ts) puts it at <profile>/agent/config/auth.json, the profile being ~/Library/Application Support/office-raccoon on macOS and %USERPROFILE%\.office-raccoon on Windows. The plugin now reads the Windows profile, the appData profile, then ~/.box-agent, first file found wins; the RACCOON_BOX_AGENT_CONFIG_DIR / BOX_AGENT_CONFIG_DIR overrides still come first. Labels and the not-found error no longer name one path. Review fixup (cb46111): the PR had only ~/.office-raccoon, which is the Windows layout, and its test was red at f55d949 (Bun reads homedir() once, so setting HOME did nothing). desktopAuthCandidates takes home/platform/env and the tests pass them per OS. Version 0.1.4. Run at cb46111: bun test in packages/raccoon on mote (38 pass) and on Windows (38 pass); whole repo bun test on mote (2999 pass, 8 skip); bun scripts/check.mjs ok. Broken by hand: without the appData profile both desktop tests are red. Not tried: a real signed-in Raccoon desktop. Co-authored-by: wky114 <38514103+wky114@users.noreply.github.com> |
||
|
|
944610f8c8 |
cursor: each test file mints sign-in tokens of its own
The publish run for
|
||
|
|
d9c858c3c0 |
cursor 0.2.28: a Run over HTTP/1.1 sends its BidiAppends 16 at a time, as cursor-agent does
Over HTTP/1.1 (where HTTP/2 can't open a Run) each client message goes up as a BidiAppend. openH1 sent them strictly one at a time, so a new Run's history (one blob a message, which Cursor asks for all at once) cost a round trip to api2.cursor.sh per message before the model could start: hundreds of round trips for a long conversation. cursor-agent 2026.10.01 (startAppendingInputs) keeps up to 16 appends in flight, numbered by seqno (`m.length>=16&&await Promise.race(m)`). openH1 now keeps up to atOnce (H1.atOnce, 16) appends on their way, in seqno order; past that a write waits for one to finish. A native session's Run passes 1: it counts a write as done only when Cursor answered that append, so a tool result is never uncertain (the native HTTP/1 tests hold that, maxInFlight 1). Seen from ysm119's report (33-36 s to first token on claude-opus-5-5); whether he is on HTTP/1.1 is not known. Run: bun test packages/cursor (314 pass, 0 fail) and bun scripts/check.mjs cursor (ok), on mote. Broken by hand: with openH1 back to one at a time, the new http1 test is red (most in flight 1, expected > 1). With runNative not passing 1, five native-http1 tests are red (maxInFlight 3, uncertain-append and writeWait cases), so the serial contract is held there; open.test.mjs's serial openH1 tests now ask for atOnce 1 by name. Not tried: a real Cursor account over HTTP/1.1; the serial cost was not measured against Cursor itself, only counted against a fake. |
||
|
|
fc1457162c |
cursor 0.2.27: a chat request no longer waits for a model list Cursor can't give
ysm119 on Discord: claude-opus-5-5 through the plugin takes 33-36 s to its first token on every request. A chat request picks its variant from the account's model list (AvailableModels, up to 30 s) before it opens its Run. A list Cursor couldn't give was never kept, so every request asked for it again and waited for the ask to fail before its Run; a list past its 10 minutes was waited for again too, and requests at once each asked. listFor now gives the chat path the list without waiting when it needn't: a list past its keep is used while a new one is asked for in the background, requests at once share one ask (listing), and after a failed ask requests go without the list for 5 minutes (LIST_RETRY), as the first one did. Only a token with no list and no recent failure waits. provider.models still fails when Cursor can't list, so magpie keeps its list. Measured against a fake Cursor (bun 1.4.2, on mote): with AvailableModels failing after 3 s, every request's setup was 3003 ms before, re-asked each time; the plugin's own setup is ~20 ms cold, ~4 ms warm, and stream chunks reach the client 0-7 ms after the server writes them. Run: bun test packages/cursor (314 pass, 0 fail) and bun scripts/check.mjs cursor (ok), on mote. Broken by hand: on the old index.mjs all three listwait.test.mjs tests are red; with only answerOf back on usable(), the failed-list and stale- list tests are red. Not tried: a real Cursor account (its token is in the Keychain); whether ysm119's AvailableModels fails or is slow is not confirmed. |
||
|
|
2c30818458 |
devin 0.1.25: an anyOf beside a type, below a tool's root, goes to Gemini models as a merged branch or a oneOf (#458)
songyq26's Kimi Code Read tool (line_offset: anyOf of two integers) and
any Optional field made every devin/gemini-4-argon request 400 "There is
an issue with this request". The cause is a type beside the anyOf:
magpie's gateway (geminiToolTypes) writes the type the branches agree on
beside an untyped anyOf for a Gemini-named model, and Devin's Gemini
models refuse {type: T, anyOf: [...]} anywhere below the root. An untyped
anyOf, a root anyOf and a oneOf beside a type are taken, which is why the
reporter's matrix showed oneOf as OK.
geminiSchema now changes only an anyOf beside a type, at depth > 0: null
branches become nullable, one branch left of the same type (or none) is
merged into the schema, two or more go as a oneOf (into allOf if a oneOf
is already there). The recursion already reaches properties, items,
additionalProperties and anyOf/oneOf/allOf members, so each gets it.
Run:
- HOME=$(mktemp -d) bun test in packages/devin (on mote): 119 pass, 0 fail.
bun scripts/check.mjs devin passes.
- Broken by hand: with index.mjs at origin/main, 9 new tests fail
(8 fixtures incl. kimiRead from the reporter's literal line_offset, and
the unit test); the 30 others pass.
- Real account, plugin fetch to gemini-4-argon: on 0.1.24, typed anyOf in
properties / items / of objects and Kimi's line_offset with the
gateway's type 400; untyped anyOf, root anyOf and typed oneOf 200. With
this change all 17 probe shapes 200. A first try that turned every
nested anyOf into a oneOf made {nullable, oneOf} with no type, which
Devin refused, so untyped anyOf is left as it came.
Not tried: Claude / swe-2 models live (their path is unchanged);
other plugins (grok, qoder, workbuddy, kimi-work) have their own
cleaners for other vendors' rules and don't share geminiSchema.
|
||
|
|
c2eb8de4f7 |
codearts 0.2.4: every model is text only, and an image it refuses is a 400
star21321321124 (Discord, magpie 0.1.1818, codearts 0.2.3): DeepSeek V4.1
Flash through a Codex-like agent failed often with "CodeArts: The request
model is not multimodal (InferHub.001001020.406) (502: you can retry your
request)", while CodeArts' own client served it.
Cause: the plugin listed its models with capabilities.input { text: true }
and no image key, and the config hook gave no modalities. magpie's host
reads image as said only when it is a boolean (imageSaid), so every
CodeArts model was "unknown" to magpie: an agent's screenshot or a tool
result's image went upstream as sent, instead of being described by the
Vision model or left out (textOnlyBody). CodeArts then answered
InferHub.001001020.406 inside a 200, which embeddedErrorStatus counted 502,
and magpie told the agent to retry, so it asked again with the same image.
- The config hook declares attachment false and modalities text in, text
out; provider.models says input.image false (and audio, video, pdf) for
every listed model. A kind the user's own config says stands. The -vl
models were already left out of the list.
- InferHub.001001020.406 / "not multimodal" is a 400: inside a 200 (stream
and folded JSON), and with any HTTP status. foldAnswer's own error now
goes through embeddedErrorStatus too, instead of a flat 502.
Run (on mote): packages/codearts HOME=$(mktemp -d) bun test, 117 pass;
the whole repo's bun test, 2985 tests 0 fail; bun scripts/check.mjs ok.
Broken by hand: the new tests against origin/main's index.mjs go red, 3
of 3 (the 400 on every path, the text-only declaration, the status map).
Not tried: a real CodeArts account with an image (none here); the exact
body CodeArts sends is taken from the reporter's message (error_code /
error_msg shape as its other embedded errors).
|
||
|
|
0f0e966402 |
river 0.1.0: River with your API key, per-account models, efforts and live prices (#390)
packages/river (@magpie-community/opencode-river-auth 0.1.0, provider `river`):
River's OpenAI-compatible inference API with the user's API key. Models come
from GET /v1/models, limits, image input and reasoning efforts come from
docs.river.ai, and live prices come from River's public pricing endpoint
(BOOT_PRICES as the fallback). Unknown ids are text-only. A 401 or 403 marks
the sign-in expired. The usage card says "Pay as you go". It adds River's
rows to registry.json and the README.
River runs open-weight models on its own GPU fleet (river.ai). It is not a
relay of other vendors' APIs.
Run at the reviewed head 751e502, merged onto main
|
||
|
|
c0a0fd1955 |
qoder 0.2.45: a free account with no credits shows none left, not nothing
Ariel on Discord: an international free Qoder account signed in fine but showed no credits. A free account (userType personal_standard, Qoder's "Experience" plan) has a plan pool of 0 and, until it gets add-on credits, nothing else. parseUsage drops every pool whose total is 0, so such an account came out with no window at all and magpie had nothing to show. Qoder's own client (Qoder.app's buildUsageItemGroups) shows every pool present, 0/0 included, and counts the account out of credits when what the pools have left adds up to 0. Now, when no pool gives a window and the plan, add-on or shared pool reads a total of 0, the account has one "Credits" window, "0 credits left", used up. A pool that can't be read (a string total) or no pools at all still say nothing. An account with credits in any pool is shown as before (the owner's free account: plan 0, add-on 7 / 600, one Add-on window, unchanged). Same parser for qoder-cn. Run: HOME=$(mktemp -d) bun test in packages/qoder on mote (299 pass) and bun scripts/check.mjs qoder (ok). Broken by hand: the new test against origin/main's index.mjs, red (it reads no windows). Read-only real read of the owner's intl account's /sash/api/v2/me/usage for the envelope's shape (personal_standard, usageType credits, plan 0/0). Not tried: Ariel's own account; the fixture is the owner's free envelope with the add-on pool at 0 or absent, since the owner's has add-on credits. |
||
|
|
1fb8d68c99 |
registry: add Bub (agent-bub)
The plugins page lists Bub, merged in #81. Run on mote: bun scripts/check.mjs all ok, whole bun test (temp HOME) 2949 pass, 0 fail. |
||
|
|
51f179057b |
agent-bub 0.1.0: Bub as a magpie agent plugin (#81)
Adds packages/bub: Bub (bub.build) as a magpie agent plugin. It writes
~/.bub/config.yml with the model as magpie:<provider>/<model> and a
providers.magpie entry (type openai, magpie's /v1, Bub's own key), and
puts the file back when one of Bub's own models is picked or it is turned
off. Needs Bub 0.5.1 or later (bubbuild/bub#343). Plus its row in the
README's Agents table, which is now in alphabetical order.
Reviewed at 4b879fb (2026-10-11), with a real Bub 0.5.1 run against a
sandbox magpie. Since then only merges of main; the PR's own diff from the
merge base is the five files above, packages/bub unchanged since 4b879fb.
It waited only for a first npm publish, which the repo no longer requires
(README: a new plugin merges once its review is done; served from dist).
Run on mote at the merged tree (origin/main
|
||
|
|
202ec68ffd |
qoder 0.2.44: a spent plan beside add-on credits left is no account used up (#454)
chansee97's Qoder CN trial had its plan's 300 credits spent and 245 of 1,100 add-on credits used, and Routing read the account as 0% left: each pool was a window of its own, and routing counts the tightest. Qoder spends the pools one after another before an account stops (docs.qoder.com/Credits: soonest to expire first, the plan's before add-on on the same day; teams: then the organisation's shared add-on credits), and its own envelope's totalUsagePercentage counts them as one. So when more than one of the plan, add-on and shared pools holds credits in the same unit, "Total credits" is what they hold together (545 / 1400 here, 61% left) and the one routing counts, and each pool is shown beside it set aside, as CodeArts' buckets are under its total. One pool alone is shown as before. Dedicated packages are left as they were (no word from Qoder on their order). Run: bun test in packages/qoder (298 pass) and scripts/check.mjs, on mote. Broken by hand: the new tests against origin/main's index.mjs, red (#454's reads 0% left; the rotated-token test's windows differ). Read-only real read of the owner's Qoder account's /sash/api/v2/me/usage: plan total 0, add-on 7 / 600, which stays one window, unchanged. Not tried: a real account with both a plan and add-on credits (the owner's has no plan credits); the fields are the ones that read returns. |
||
|
|
e460dae2f0 |
workbuddy 0.1.41: a package with no cycle total reads as a wallet balance (#450)
A WorkBuddy package with no CycleTotalCapacity is a prepaid wallet: it is sent as a balance window ("Prepaid credits", magpie#3950), beside the share of packages that have a total. A literal "0" total stays on the old path, so a lapsed package adds nothing; an account with no packages keeps its unknown allowance (no TotalCredits fallback).
Reviewed at 5bdfa9048d66095d35af5e7955d0945db02dc3b5 over four rounds. Run on mote at that head: HOME=$(mktemp -d) bun test packages/workbuddy, 185 pass / 0 fail; bun scripts/check.mjs workbuddy ok. npm had 0.1.40, so 0.1.41 is free.
Co-authored-by: MYCF711 <MYCF711@users.noreply.github.com>
|
||
|
|
fd40b20c3b |
qoder 0.2.43: the check-in says when to ask again, as the 10:00 (UTC+8) campaign opens
sdytman on Discord: Qoder's daily credits start at 10:00, can the plugin's
check-in follow it? Qoder's /me/campaigns lists each day's CLAIM_BENEFIT
campaign with startAt 10:00 and endAt 09:59 the next day, both UTC+8
("Daily reset: 10:00 (UTC+8)"), read with a real account at 09:27 CST on
10-28. Qoder.app 0.4.3 polls that list every 5 minutes and treats
startAt <= now < endAt as active; there is no next-time field. A check-in
before 10:00 met yesterday's campaign, and magpie settled for the Beijing
day, so today's campaign waited until tomorrow, or was lost.
checkin now returns until: the next campaign's opening (the later of
endAt and startAt + 1 day, or the next startAt in the gap) plus a minute,
on done, claimed and "not offered yet". All in epoch time, so the
machine's zone doesn't matter; qoder and qoder-cn share the code. magpie
asks again at until once it reads it (yetone/magpie, next release).
Run (mote): checkin-window, native-checkin and checkin tests under
TZ=UTC, Etc/GMT+8 and Asia/Shanghai, 66 pass each; HOME=$(mktemp -d)
bun test, 2938 pass 0 fail 8 skip; bun scripts/check.mjs. A real qoder
account at 09:35 CST: claimed 100, until 2026-10-28T02:01:00Z.
Broken by hand: nextOpens returning endAt only, 11 of 13 checkin-window
tests red; askAgain returning {}, 12 of 13 red.
Not tried: a real Qoder CN account (none here); the server's list in the
09:59-10:00 gap.
|
||
|
|
ae48bf07f3 |
qoder 0.2.42: an earlier turn's thinking goes back in reasoning_content, as Qoder's client sends it
The plugin dropped an assistant turn's reasoning from its first version on, with no stated reason (uk.jent on Discord). Qoder.app's own client (qoder-agent-sdk's assistant converter) sends reasoning_content on every earlier assistant turn that had thinking, and Qoder's upstream accepts it. Now reasoning_content, reasoning or reasoning_details go back on a reply or a tool-call turn. A blank one (magpie's gateway sends " ") is none, and a turn with only thinking is still left out, as Qoder's client leaves it. Run: bun test in packages/qoder (282 pass) and bun scripts/check.mjs, on mote. Real account (intl, free plan), the plugin's loader with no renewal: DeepSeek-V4-Pro in a tool loop, its thinking before get_time naming a codeword, then asked for it: "TANGERINE-5519" with this change, and "no codeword was picked" on 0.2.41. Every probe was 200; none was refused for reasoning_content. Broken by hand: reasoning.test.mjs against 0.2.41's index.mjs, 3 of 6 red (reply, tool call, reasoning/reasoning_details). Not tried: across a user turn the models don't recall it on either version (DeepSeek, GLM-5.3 and Cantus answered "none"; their templates drop thinking before the last user message, as their own APIs do), so the gain is in tool loops. Cantus/Sonus get no reasoning_content_signature (magpie has none to give), and they ignored the thinking without refusing. Qoder CN not tried. |
||
|
|
8022ca23cf |
history-trim 0.1.0: a middleware that trims repeated and oversized history (#423)
A new middleware package, @magpie-community/middleware-history-trim 0.1.0,
ported from OmniRoute's lite engine (MIT). It makes a request's history
smaller in four steps:
- folds runs of blank lines;
- drops a system prompt whose whole text repeats an earlier one;
- drops a message equal in every field to the one before it (tool results
excepted);
- cuts a history tool result over maxToolLength at a word boundary.
None of the steps touch the turn being sent (after the last assistant), and
a request with no assistant goes on unchanged. The README states the
prompt-cache cost.
Reviewed at 8af038a60201728f00ee350f56eb35228049baa3, merged locally with
main
|
||
|
|
b2fe48ea2e |
workbuddy 0.1.40: chats carry the current desktop client's headers
WorkBuddy accounts are being restricted, and a report says WorkBuddy now checks request-header fingerprints. Diffed the plugin's chat request against each build's current desktop app, read (never run) from the update feeds on 2026-10-28: - China: WorkBuddy 5.9.3.42398134 (copilot.tencent.com/v2/update), bundled @genie/agent-cli 2.165.0. - WorkBuddy AI: 5.8.4.41366630 (www.workbuddy.ai/v2/update), CLI 2.161.0. The chat is the CLI's OpenAI client (openai 6.25.0) through axiosToFetchAdapter, with UserAgentHttpInterceptor and the desktop's CLIENT_INFO_* env (sidecar-manager getCachedBaseEnv). What differed, and now matches: - User-Agent: was WorkBuddy/5.5.6; the client sends "WorkBuddy/<app> <applicationName>/<app> CLI/<cli>": WorkBuddy/5.9.3 WorkBuddy/5.9.3 CLI/2.165.0 (China), WorkBuddy/5.8.4 workbuddy-ai/5.8.4 CLI/2.161.0 (AI). The /v3/config models call (was CLI/2.0.0 WorkBuddy/5.5.6) takes the same one, as the CLI's CloudProductProvider sends it through the same interceptor. - X-IDE-Version: was 5.5.6; now the app's version. - X-Agent-Type: main was sent on WorkBuddy AI only; the adapter sets it on every model call on both builds. - X-Agent-Runtime: local-agent, new in 5.9 (the desktop's local transport puts agentRuntime local-agent in the prompt meta); China build only, 5.8.4 has no such header. - Accept: application/json and the OpenAI SDK's X-Stainless-* (Lang js, Package-Version 6.25.0, OS/Arch of this machine, Runtime node, Runtime-Version v22.21.1 = Electron 37.10.3's Node, Retry-Count 0, Timeout 1200); the adapter strips them only in its skip-auth mode. - The desktop's own calls (billing, plugin API) send WorkBuddy/<app>; they now send the current app version instead of 5.5.6. Not matched: X-Device-Token (TuringShield native SDK, sent since at least 5.6.2), traceparent (only while server-side tracing is enabled), and transport-level differences (Bun's fetch vs axios on Node: header order, Accept-Encoding). Run: HOME=$(mktemp -d) bun test packages/workbuddy: 184 pass, 0 fail. With the old index.mjs the 4 changed tests fail (UA, IDE version, config UA, the new per-build header test). Not tried: a real account's chat or /v3/config with the new User-Agent (unauthenticated /v3/config answers the same for old and new). No text added names magpie or WorkBuddy's limits. |
||
|
|
47cda88fbe |
registry: add OfficeAce (officeace-auth) (#399)
Adds the OfficeAce entry (officeace-auth, provider officeace, community: true)
to registry.json. Reviewed at 5c61f65965d15f6abf09e2f8bcc91b7d07df670e.
The 10-27 review blocked it on src/self-register.mjs in officeace-auth 0.1.8,
which rewrote magpie's ~/.cache/magpie/plugin-market.json on every load.
officeace-auth 0.1.9 (npm, 2026-10-27T16:24Z) removes it.
What was run:
- npm pack officeace-auth@0.1.9 and @0.1.8, diffed the trees: 0.1.9 drops
src/self-register.mjs and its call, the `directory` argument and
REGISTRY_ENTRY; adds CHANGELOG.md and publish-npm.mjs (an author-side
publish helper, imported by nothing, no install scripts, no dependencies).
- grep over index.mjs and src/: no fs writes, child_process, eval or
HOME/cache paths. Hosts: auth.huaweicloud.com, sts.cn-north-4.myhuaweicloud.com,
agentarts.cn-southwest-2.myhuaweicloud.com,
officeace.cn-southwest-2.huaweicloud-agentarts.com, api.modelarts-maas.com.
- Load probe in a sandbox HOME with a seeded plugin-market.json in
~/.cache/magpie and ~/Library/Caches/magpie, fetch stubbed to fail: 0.1.9
leaves every file's mtime unchanged and makes no request at load; the same
probe on 0.1.8 changes the cache file (the probe sees the write).
- Merged with origin/main
|
||
|
|
c20fa331a0 |
trae 0.2.23: a model whose entry names max (or medium) offers it and sends it (#434)
huajii (#434): Trae's app offers DeepSeek V4.1 Flash at max, the plugin does not. Cause: LEVELS knew only light/high/extra_high, so levelsOf dropped any other option an entry's reasoning_effort_config names, and effortOf never sent it. Trae's client names five levels (its bundle's reasoning_effort.{low,medium,high,extra_high,max}, handed out per model by remote config, per dsh-connect-trae #60's read of the client bundle). An entry naming max beside the three lost it. Fix: LEVELS spells medium and max as themselves. They are offered only for a model whose entry names them, and a model that names none still sends nothing for them. Run: - packages/trae: bun test 215 pass, 0 fail. The two new tests in reasoning.test.mjs (levels/variants/chatBody with max and medium; max reaching llm_utils_chat through the loader's fetch) were red on the old LEVELS line (2 fail, max undefined), green with it. - HOME=$(mktemp -d) bun test at the repo root: 2902 pass, 3 skip, 0 fail; bun scripts/check.mjs: ok. Not tried: a real Trae account. The wire name "max" in options comes from the client's i18n keys, not a captured list; on 10-25 a live CN list named only light/high/extra_high (dsh-connect-trae #60, plugins #300). If Trae's "max" in the app is the Max mode instead, the plugin's deepseek-v4.1-flash-max model is that and is unchanged here. |
||
|
|
214530edad |
cloudflare-workers-ai: read actual Neurons and keep the quota card toggles
Workers AI usage now reads the day's actual Neurons from Cloudflare's GraphQL analytics, keeps the Used/Left toggle on the quota card, and stops the included free allowance from benching a Paid or unknown plan (`aside`). A 429 with code 3036 gets a Retry-After that runs to the next UTC midnight. Version 0.0.4; dist has 0.0.3, and npm has never had the package.
What was run, at reviewed head 38ddeb132ee6c00698952303fbc4949a84287779:
- `bun test packages/cloudflare-workers-ai` with a sandbox HOME/TMPDIR: 23/23 pass.
- `bun scripts/check.mjs`: ok.
- Merged with origin/main, the whole repo `bun test` with a sandbox HOME: 2900 pass, 3 skip, 0 fail across 245 files.
- Broke code and timing by hand:
- Removing the `!info.errors?.length` guard turns only the new partial-reply assertion red.
- A preload that moves Date.now() 700ms forward on every call fails the old (bdc302a) Retry-After test ("26820 vs ~26819"). The new bracketed test passes 3 of 3 under that preload.
- The earlier review at bdc302a covered the rest of the change. That includes nine mutations, each of which turns a test red.
Not tried:
- A real Paid account's billing and inference, as the author says too.
- A fetch call that straddles exactly 00:00:00 UTC. The Retry-After bracket would fail there, but only inside a window a few milliseconds long.
|