3632d53be71f4270871ca08fd5c4e7dbd69fb4b5
1109
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
3632d53be7 |
day-card 0.3.2: an app's picture icon prints in greys, not as a black block
ZacharyZhang on X: Cindy's logo printed as a black rounded square. Its icon is a full-colour illustration on a rounded tile with clear corners. drawIcon took anything under 80% solid and without a light ground for a mark and filled its shape with the ink, so the whole tile went black. mlx-serve (a jellyfish on a dark tile) and mothx (a glyph on a pink disc) did the same. Now an icon that fills its own box (a square, rounded or not, or a disc: at least 75% of its bounding box, and the box at least 40% of the icon) is a tile. A tile with no light ground prints in greys from its own darkest tone (3rd percentile) to its lightest (97th), ink to paper; a tile of one flat tone still takes the old near-white threshold. Marks and pictures on a light ground print as before. Run: a harness drew 18 icons (magpie's PNG agent icons, several colour SVG logos and the bundled Amp mark) with the old and new drawIcon at 18px x3 in Chromium and WebKit (Playwright 1.62.0, wsl-run on magpie-desktop), no page errors. Changed: cindy, mlx-serve, mothx now show their picture; atomcode is a grey tile instead of a black one. Every other icon is the same as before. bun test packages/day-card: 18 pass, 0 fail. Not tried: the real magpie app's webviews; crush's pixel heart still prints as a ragged silhouette, as before. |
||
|
|
2b7da486ac |
antigravity-cloak 0.1.5: say what a 429 with quota left means, and how to find the words (#1031)
nullburn's DeepSeek Harness requests kept getting Antigravity's "Resource has been exhausted" with ~99% of the 5-hour window left, while the title request on the same model went through. Replays traced it to a prompt that a separate DSH plugin injects, not to DSH, magpie or this middleware. The README said nothing about telling this refusal from real quota, or how to find what is matched. The README (en, zh) now has "When the 429 comes back anyway": quota left plus other requests on the model going through means the prompt is refused; replay with parts of the system prompt taken out, half at a time; then add a phrase to extraWords or change the text at its source. It says the middleware doesn't hide arbitrary prompts, as the reporter asked. Run (mica, HOME=$(mktemp -d)): bun test packages/antigravity-cloak 16 pass; bun scripts/check.mjs exit 0. Docs and version only, no code. Reported-by: nullburn |
||
|
|
acf9b5fd03 |
antigravity 0.1.7: DeepSeek Harness's @-path paragraph goes reworded (#1028)
DSH desktop puts a paragraph on @ paths ("Tokens prefixed with @ are paths the user explicitly referenced…") in every system prompt. xueyinmei-dot replayed a recorded DSH request against gemini-4-argon: with the paragraph word for word, most answers came in ~3s at ~300 tok/s with no thinking and ended after one shallow step; with only that paragraph removed, or reworded, the request was answered normally (20 of 20 replays with the rewording, and a 12-step real DSH session).
shape() now sends that exact paragraph as their rewording, which says the same thing, after the zero-width breaks. Any other text, including a prompt that only mentions @ paths, goes as written. The match is the whole paragraph, so another app's prompt is not touched.
Run on mica (Bun 1.4.2, temp HOME): bun test packages/antigravity 95 pass 0 fail; bun scripts/check.mjs exit 0.
Broken by hand: outgoing() without reword() turns the new test red (shape.test.mjs 21 pass 1 fail).
Not tried: a real Antigravity account (the rewording's effect rests on the reporter's replays). magpie's built-in Antigravity path (internal/gateway/codeassist.go) gets the same rewording in its own commit.
Reported-by: xueyinmei-dot
|
||
|
|
ae6a435ca8 |
registry: DaFeiYu desktop pet guide page (#1035)
Lists magpie-dafeiyu 0.1.5, a guide page for the DaFeiYu desktop pet. The page uses only the window.magpie bridge (theme, language, ready), makes no requests and declares no permissions; the pet itself is a separate app the user downloads. Run at 7c74886b: npm pack magpie-dafeiyu@0.1.5 and every file read (no BOM, permissions [], dev dependencies not shipped); bun scripts/check.mjs on mica exit 0. Not tried: the page inside a real magpie window. |
||
|
|
b6741cc159 |
nowledge-mem: the layout test stops Chrome at a bound and says what it wrote (#972)
The test waited for Chrome to print the DOM and exit, with nothing bounding the launch. On CI it takes 5 to 13s (0.4s in WSL), and a few times it ran into the 30s test timeout with no word on why. Now the results are read as soon as Chrome prints them and Chrome's whole process group (setsid) is stopped then. A launch that prints nothing in 25s is stopped, and the test fails with Chrome's stderr instead of a bare timeout. The cause of the slow CI launches is still unknown; the next red will carry it. Run in WSL magpie-desktop (Playwright Chromium 1234 as chromium, Bun 1.4.2, temp HOME): 5 of 5 pass at about 450ms. Broken by hand: a fake chromium that only sleeps fails at 25.0s with "Chrome gave no results within 25000ms; stderr: starting", and its sleeps are gone afterwards. Not tried: google-chrome on an ubuntu runner, other than through CI. |
||
|
|
b64dfb91cb |
agy-cli 0.1.23: thinking is not counted twice on the SQLite path (#1032)
measuredUsage summed field 3 (output) and field 9 (thinking) of SQLite gen_metadata, but field 3 already carries the thinking, so the SQLite path billed thinking twice. Each step now counts max(output, thinking), as promptUsage does since #1023. Run at b3873f84 on mica (Bun, temp HOME): bun test packages/agy-cli 14 pass 0 fail; bun scripts/check.mjs exit 0. Broken by hand: putting back item.output + item.thinking turns 4 tests red, including the PR's new one. Not tried: a real Antigravity CLI session. |
||
|
|
4e3a786814 |
codearts 0.3.14: a CodeArts Agent sign-in is kept (#998)
Signing in with "Sign in from CodeArts Agent" said ok, but the account was never stored. A host keeps an OAuth sign-in only when the result has a `refresh` field (OpenCode's CLI and magpie's host.js both test `"refresh" in result`), and the IDE method's success had none. It now has `refresh: ""`. This sign-in has no refresh token: it is renewed by reading the IDE's state file again, and every reader of the refresh token (firstOf) already skips an empty string. The IDE sign-in test now checks the field is there and empty. Ran on mica (Bun, HOME=$(mktemp -d)): bun test packages/codearts 203 pass 0 fail; bun scripts/check.mjs exit 0. Broken by hand: without the refresh line, "signing in from the CodeArts Agent: checked with its station…" goes red (202 pass, 1 fail). Not tried: a real CodeArts Agent sign-in (no account here). Reported-by: AyakaChen1 <AyakaChen1@users.noreply.github.com> |
||
|
|
b829a5541e |
agy-cli 0.1.22: thinking is not counted twice in billed output (#1023)
ACP's outputTokens already includes the thinking tokens, so `completion_tokens` is outputTokens again, not output + thinking. The totalTokens shape check compares against input + output (and input + cache + output), without thinking. Evidence (klarkxy, agy 1.5.4): for single-turn Flash and Carbon prompts, ACP's totalTokens equals input + output exactly (2322 + 4728 = 7050, 2316 + 9390 = 11706). Output minus thinking is 67 and 68 tokens, which matches the visible replies. The store's gen_metadata output (field 3) equals ACP's outputTokens, with thinking (field 9) below it. 0.1.19 sent 9389 and 18712, double-counting. Run at a0898318 merged onto origin/main (1199adda), on mica with a temp HOME: bun test packages/agy-cli gave 14 pass, 0 fail, and scripts/check.mjs exited 0. CI's test and on-npm jobs pass. Earlier, at d18f2346, putting `output + thinking` back by hand turned five tests red. Not tried: a live agy session here. Co-authored-by: klarkxy <klarkxy@users.noreply.github.com> |
||
|
|
92c20ffef6 |
Eight auth hooks declare rotating refresh tokens (#1027)
Eight auth hooks declare `rotating: true`: cline, codearts (and OfficeAce), factory, minimax, nous, qoder, sensenova, workbuddy. Each package's own code says the vendor refuses a spent refresh token. magpie then stops carrying these sign-ins to another computer through Sync, a backup or a Restore (internal/provider/signins_carry.go). Trae was dropped: its refresh keeps the old token when the answer has none, and there is no evidence it rotates. Each package's patch version is bumped (cline 0.1.15, codearts 0.3.13, factory 0.1.46, minimax 0.2.9, nous 0.1.3, qoder 0.2.66, sensenova 0.2.3, workbuddy 0.2.30). Each was checked against npm, or against origin/dist for the dist-only packages, before the merge. Fixes #884. Run at cc2f9199 (a fast-forward of origin/main), on mica with a temp HOME: bun test over the eight packages gave 1588 pass, 0 fail, and scripts/check.mjs exited 0. CI's test and on-npm jobs pass. At 45c8fdb4, mote gave 1834 pass with Trae included. Not tried: a real refresh against each vendor. Co-authored-by: yetihan <yetihan@users.noreply.github.com> |
||
|
|
401b549fb3 |
amp-usage 0.1.1: the Windows window is this computer, not a remote browser (#1025)
On Windows magpie's window is http://wails.localhost (WebView2). page/boot.js counted only localhost, 127.0.0.1 and an empty host as this computer, so the Windows window got the "remote browser" message (#1024). It now counts *.localhost, ::1 and 127.* too, the same rule as chat, fingerprint, kimi-desktop, page-model-quota and window-warmup. magpie.service still wins. What was run at 84a6a812739b96191e9d63805cd408e0abef717a (mote, macOS): - boot.js in a node vm with a mocked location and magpie bridge, new and old side by side. wails.localhost, WAILS.LOCALHOST, 127.0.0.2 and [::1]: old shows the remote message, new opens http://127.0.0.1:3497/. localhost, 127.0.0.1 and an empty host open it in both. 192.168.1.5, evil.com and localhost.evil.com show the remote message in both. A magpie.service is used in both. - packages/amp-usage: node --test test/*.test.mjs, 48 pass, 0 fail. bun scripts/check.mjs amp-usage passed. Not tried: a real magpie window on Windows. No test of boot.js in the package yet. Co-authored-by: overstarry <overstarry@users.noreply.github.com> |
||
|
|
97fdba8ca6 |
minimax 0.2.8: native Magpie image, video and web search (#1008)
MiniMax Code accounts now serve magpie's image, video and web search natively: /v1/images/generations and /v1/images/edits through generate_image, video through submit_video_generation, and search through the connector's web tools.
- Edits: magpie's multipart body (model, prompt, n, size, quality, image / image[] parts) is parsed, and each image goes through the live catalog's upload_temp_url signed-form flow. A mask part is refused with a 400 (generate_image takes no mask). A video frame sent as data: is uploaded the same way, and https refs pass through.
- A 401 is renewed per tool call, and only that call is sent again, so a 401 on get_asset_url never runs a paid generate_image twice.
- Upload hosts are https only. A video download drops content-encoding and content-length (fetch already decoded it).
- Envelope refusals carry a status: 1002, 1039, 1041, 1045, 2045, 2056 and 2062 are 429; 1008 and 2053 are 402 (MiniMax's published error codes, not confirmed for the MiniMax Code agent API).
- 0.2.8, since 0.2.7 (#1014) is on npm. native.mjs is in files.
What was run at c020d32e51f9b28e29528ea59d38bc167baf8624 (temp HOME, fake fetch only, no real MiniMax calls):
- mote (macOS): bun test packages/minimax, 193 pass, 0 fail. bun scripts/check.mjs exit 0.
- WSL Ubuntu 24.04: 193 pass, 0 fail.
- Broken by hand, one at a time, each turned a test red: no per-call 401 renewal (2), mask accepted (1), http upload host accepted (1), no envelope status (2), content-encoding kept (1). Earlier rounds broke multipart parsing, the status in toolHttpError and mediaRef's schemes, each red too.
- Merges cleanly onto main
|
||
|
|
234e073c60 |
nowledge-mem test: headless Chrome no longer hangs on its component updater (#972)
The "narrow settings footer" test spawns Chrome with --dump-dom. Chrome 151
(Chrome for Testing, and the runner's stable) intermittently never exits:
its SODA on-demand component update and the component updater/breakpad
start-up stall, so the process outlived the test's 30s and was killed.
This failed the publish run 43122260448 (page-chat 0.1.14) and
|
||
|
|
1492d9c3be |
workbuddy 0.2.29: a routed-over refusal pins the free window (#1022)
A WorkBuddy AI 429 that magpie routed past to another member was never in the usage ledger, so the free window's estimate never learned the vendor's reset (#910). The plugin now reads magpie's routing trace (routing/YYYY-MM-DD.jsonl and .jsonl.gz, three days, both files when a day has both) for WorkBuddy 429 tries and pins the window at the reset they name.
- A gateway rest pins the window only when rest.by is "resets" (the vendor named it). cooldown, backoff, quota, window and retry-after leave it alone.
- The rest key's account (lowercased by magpie's restKey) is compared case-insensitively. order[].who's spelling is kept, and a who/key conflict drops the try.
- The parse cache is one entry per path, provider and model, with the file's fingerprint inside it. Paths outside the current three days are dropped.
- Lines without "status":429 are skipped before JSON.parse.
What was run at b48fd3fcc494a708aba65e47643738dfd6a34e80 (temp HOME, fake data only, nothing reached WorkBuddy):
- mote (macOS): bun test packages/workbuddy, 360 pass, 0 fail, under TZ=UTC, Asia/Shanghai, America/Los_Angeles, Pacific/Pago_Pago and Pacific/Kiritimati. bun scripts/check.mjs passes.
- Windows 11 (xiaomi-gpu): 360 pass, 0 fail.
- Broken by hand, one at a time, each turned at least one test red: any rest kind pins (1), exact-case account match (2), no stale-path drop (1), fingerprint back in the cache key (1), no who/key conflict check (1), no provider prefix check (1).
- Merges cleanly onto main
|
||
|
|
201bd27706 |
chat 0.1.14: the model picker is clamped to the room above the composer (qiwiview on X)
positionPop sized the menu from the button's top, but the menu sits above the composer, so with many models it ran out of the page frame's top and the first models couldn't be scrolled to. It now measures from the composer's top, has no 220px floor, and opens downward when that has more room. Run: new pop-clamp.gui.mjs (60 models, heights 320/420/600/900, chromium and webkit) on mote: 8 ok. On the old app.js: 8 FAIL, menu top -45 to -50. Not tried: the live magpie window; bun check. |
||
|
|
52e31c4a1f |
agy-cli 0.1.21: text that names a notice tag it never closes is routed by who wrote it, not refused (PolarizingLight on X)
A tool turn answered with text beside the result that merely mentions a
notice tag it does not close ("<system-reminder", "<channel") threw "text
beside a live tool_result; send it after the tool response completes". In
a long Codex thread (ChatGPT desktop) that text comes from a developer
message magpie wraps in <system-reminder> whose own text quotes a reminder
tag (the wrapper then leaves a stray close tag), a hook's context, or the
user typing the tag. Now: a wrapped developer or system message is a
notice (broken up with cloak), a user's text steers and is replayed whole,
other roles ride as a notice. A notice that opens and is cut short
("<system-update>not a complete...") is still turned away.
Not found: a real failing request. magpie's logs on this Mac hold none, and
Codex's rollouts here hold no tag of this kind after a tool output, so the
exact bytes the reporter's thread carries are inferred, not seen.
Run: test/compat.mjs (new case red on 0.1.20, green now), agy-cli.test.mjs
whole on mote (12 pass). Broken by hand: old index.mjs makes the new case
fail. Not tried: a real ChatGPT desktop thread against agy-cli.
|
||
|
|
01eaa6dda4 |
agy-cli 0.1.20: each step's usage from agy's own store, and 1.5.1+ inputTokens read as uncached (#983)
agy 1.5.1+ reports ACP `inputTokens` as uncached prompt tokens only; `promptUsage()` tells the exclusive shape from the inclusive one by `totalTokens`, so cache reads are no longer clipped and the learned cache ratio no longer pins to 1.0. Each HTTP step of a multi-step tool loop is settled from agy's own per-call rows in `conversations/<id>.db` (`gen_metadata` on 1.5.1+, `steps` type 15 on 1.4.x-1.5.0) when they reconcile with ACP's total; same-generation tool continuations settle at 0, a cancelled or fallen-back turn stops trusting the store, and a clipped cold-start replay bounds its fallback estimate. The reader (`step-usage.mjs`) never opens a store read-write. Under Bun it opens with `SQLITE_OPEN_READONLY | SQLITE_OPEN_URI` (Bun's SQLite on Linux and Windows parses `file:` URIs only with that flag), finalizes statements and waits on no busy timeout. A checkpointed WAL store with no `-wal`/`-shm` is read through `?immutable=1` and gains no side files; if `-wal` appears during that read it is read again live. Store paths are resolved to absolute first, and Windows `\\?\` and UNC paths get their own `file:` form. On an uncheckpointed store the only file a reader touches is SQLite's `-shm` WAL index. Reviewed head 9054f47295d51d6f83f8585dd550312ebff8448a (base dba24067; merges cleanly onto main |
||
|
|
7c44d02796 |
zcode 0.1.60: an unreachable plan key or a full plan is a wall, sent once (#1020)
takomitkm saw one GLM-5.3-Flash-Trial request tried 8 times over ~389s, each failing with "ZCode's Z.ai coding plan key: ECONNRESET: The socket connection was closed unexpectedly". That text is not the replay: it is located(), ZCode 3.16's key-location read of the coding plan key (api_keys/copy/<id>), which runs first in serve(), before any gift or plan choice. Its failure was thrown, magpie read the throw as a 502 and asked again (same-one retries, then patience rounds), and the read had no timeout, so one hung read held the request for minutes. It also told the user to sign in again for what was the network. - located(): the key read is bounded (20s). A read that never reached Z.ai (ECONNRESET, refused, a timeout, a name that didn't resolve) uses the last key read for that location when there is one; with none, it is a 429 wall answer (error.code user_model_rate_limited, one of magpie's wallCodes, yetone/magpie@067e4c484): sent once, rested as a rate limit, the next account asked. An answer that refused the read (401, 500) is said as before, sign-in hint included. - free first's replayOnPlan(): a coding plan whose last usage read (codingUsage, teamUsage) counted a window full with its reset ahead is not sent to; the replay answers the same wall. The mark is dropped by a read with room, at the reset, or 30 minutes after the read. A replay that can't reach the plan answers the wall too; a caller's abort stays an abort. The gift-first fallback is unchanged. - The wall's words stay off magpie's quota and credit words, so it rests a minute, not a quota's rest. Tests: packages/zcode/wall.test.mjs (new, 12), built on the reporter's literal error text; no network (fetch is a fake). Run: - packages/zcode bun test on wsl-run (magpie-desktop): 255 pass 0 fail. - Full suite: `HOME=$(mktemp -d) bun test` on wsl-run (magpie-desktop), since mote's and mica's suite locks were queued for hours: 8407 pass, 0 fail, 19 skip, 593 files. `bun scripts/check.mjs`: exit 0, 59 ok (zcode among them). - Broken by hand (wall.test.mjs on wsl-run), each red, then green restored: serve's catch off (2 red), the full-plan check off (1), the replay's catch rethrowing (1), the read's timeout removed (1), the last key unused (1), the old "sign in again" message (2). Not changed: a socket error on the plain coding plan path (no free first) still throws, and magpie still retries any thrown plugin error as a 502 eight times; filed on yetone/magpie (yetone/magpie#6208). Not tried: a real Z.ai account whose key read drops, or a real full plan; magpie's classification of the wall body was read from origin/main's walled()/failure(), not run. Reported-by: takomitkm Refs #1020 |
||
|
|
51f24a363a |
workbuddy 0.2.28: list an enterprise's custom: models (#1015)
An enterprise account's own models ("custom:<name>|<name>", modelType
"enterprise") come in /v3/config's models but not in the cli agent's
list. WorkBuddy's CLI (bundled in WorkBuddy 5.5.6, AgentManager.
computeModels) appends every config model whose id starts with
"custom:" to the agent's list itself, after the agent's own ones.
liveModels read only the agent's list, so the models were missing
entirely, and a forced chat to them worked. They are now appended in
the config's order with their context, output, images, price and
efforts, and the id goes to WorkBuddy as given, "|" and all. They stay
on chat (nativeOf matches only a bare claude- id), where the reporter's
chat was served. Both sites share liveModels; nothing else enumerates
the config. The CLI also appends models tagged "custom" or "chat":
those in a desktop's cached config are its local models with their own
url and apiKey, so they stay out.
PR #1016 (yetihan) joined the two spellings instead (an agent-listed
custom:x|x against a bare detail id x); the issue's literal entry,
run against d2e21b7b, lists neither model (expected 2, got 0).
Run (mica, HOME=$(mktemp -d), at a181b898, this change on edc6dbcd;
the rebase onto
|
||
|
|
934e6b3312 |
antigravity 0.1.6: gemini-4's rejected call (400 INVALID_ARGUMENT after the model ran) is asked again, up to twice (shzutbi1 on X)
Gemini 4 now and then builds a call Google's validator rejects; the same request passes on a resend. A 400 INVALID_ARGUMENT that took 3s or more, or an error chunk in the stream before any non-thinking part, is sent again for gemini-4 models only. Thinking-only chunks are held back until the first answer part, so a retry never repeats thinking to the client; once an answer has begun the stream goes through as it is (a reply can't be taken back). A fast 400 and other models are returned as before. Run: bun test in packages/antigravity on mica, 78 pass. Broken by hand: RETRY_BAD_CALL=0 turns 4 new tests red. Not tried: a real Antigravity account (the 400 is intermittent). Cost: thinking shows once the first answer part (or the end) arrives, not live. |
||
|
|
5efe4e73c3 |
antigravity 0.1.5: sessionId from the host's session header, past injected preambles (#1017)
sessionOf took the first text of the first user message only, so every
Codex thread (and anything else opening with AGENTS.md or
<environment_context>) sent Antigravity one constant sessionId. It now
hashes the x-magpie-session header magpie's gateway sends plugins
(sessionOf: X-Magpie-Session, else the agent's own session header), with
x-magpie-subagent (Claude Code's agent id) and the first real prompt
added when a subagent is named. With no header it hashes the first user
text that isn't an injected preamble (AGENTS.md, environment_context,
permissions instructions, system-reminder, and the rest of
INJECTED_USER_TEXT). A synthetic magpie-<24hex> id is ignored. A
chat.headers hook passes OpenCode's sessionID on as x-magpie-session.
The header never goes upstream: the plugin builds its own request
headers, and host.js's unsaid strips it too. Version 0.1.5 (dist has
0.1.4).
Run at 7709ff67 on mica (mote was at load 24), temp HOME:
bun test packages/antigravity: 88 pass, 0 fail. bun scripts/check.mjs:
exit 0. Merges cleanly with origin/main
|
||
|
|
edc6dbcd6e |
gumloop 0.1.1: two hosts' charges are never lost (#1011)
Cause: the bakery lock's wait for a peer is bounded at LOCK_WAIT_MS (250ms). When it ran out, Store.change returned undefined and the charge's callback never ran: the chat succeeded and its charge was dropped. Two hosts charging back to back on a busy runner (a GC or scheduling stall in the holder, or many contenders) hit that, which is the 199 of 200 in publish run 43040437938. An unreadable ledger dropped the change the same way. Mutual exclusion itself held: an instrumented copy logged one lock timeout per missing charge and no unexplained loss. Fix: Store.update. A change whose lock wait runs out, or whose read fails, hasn't run, so it is kept in memory (capped at 1000) and runs once, in order, the next time the store holds the lock and can read the ledger: on its next update, from an unref'd retry timer (25ms doubling to 5s, each waiting 25ms), or from the exit hook, which waits up to 2s. A failed read still never writes. A throwing callback still leaves the disk as it was. change, anchor and setPrices go through it. charge and the credit refusal date their record when the call ended, not when a kept change runs. The crash-phase tests' instrumented module goes to a file: as a data: URL on the command line it passed Windows' 32K limit. Tests: the live-owner, leftover-record and choosing tests now hold that the waiting changes land (they asserted the drop). New: a Node and a Bun host that exits while its charge waits for a busy peer still writes it. Ran (worktree at |
||
|
|
2b87fad98d |
minimax 0.2.7: opt-in compactTools lists only the four dispatcher tools (#1014)
Adds the plugin option `compactTools` (default false, declared in package.json `magpie.options`). Only an explicit `true` leaves the sixteen named Matrix tools out of the tools plugin's advertised list; `list_tools`, `tool_schema`, `call_tool` and `web_search` stay, built by the same code, with descriptions and schemas unchanged. `call_tool` still checks arguments against the live catalog. This is option A as decided on #1005; option B (rewritten descriptions) is not in it. Run at the reviewed head a2d18183, on mote with a temp HOME: - bun test packages/minimax: 165 pass, 0 fail - bun scripts/check.mjs: exit 0 - Advertised list (name, description, args) hashed with MiniMaxCodeToolsPlugin at origin/main |
||
|
|
dba24067c2 |
output-strategy 0.2.3: remove the panel byline; keep attribution in the README (#1009)
Removes the "by" byline from the Output Strategy panel (index.html, i18n.js, style.css); the attribution stays in the README. Bumps the package to 0.2.3 so dist packs it (0.2.2 is already packed and is never packed again).
Run at the reviewed head 121f571f (on mote, temp HOME):
- `git diff 0d03f7bf 121f571f`: only package.json 0.2.2 -> 0.2.3 and the matching version assertion in test/page.test.mjs. Everything else was reviewed at 0d03f7bf.
- packages/output-strategy `bun test`: 59 pass, 0 fail. `bun scripts/check.mjs`: ok.
- Root `bun test` (suite lock) on origin/main
|
||
|
|
46f5e1ae7b |
registry: Amp Usage shows its icon in the store (#1013)
Gives Amp Usage's registry entry an `icon`, so the store card shows the package's own icon instead of the generic page one. It points at packages/amp-usage/page/icon.svg in this repo on main, the same way Window Warmup and 书生·端砚 do, so only this repo's maintainers can change what it serves.
Run at the reviewed head 8a8049fd (on mote, temp HOME):
- `bun scripts/check.mjs`: ok. `bun test scripts`: 22 pass, 0 fail. packages/amp-usage `node --test`: 47 pass, 0 fail.
- The URL answers 200, image/svg+xml, 3391 bytes, the same bytes as the file on main (added in #1000). The SVG has no script or external reference.
- Rendered the SVG as <img> at 20, 32 and 64px in Playwright 1.62 Chromium and WebKit: decodes, no page errors, the Amp wordmark reads at 20px.
- Root `bun test` (suite lock) on origin/main
|
||
|
|
24a327eeb1 |
codearts: test an IDE write-ahead log rewritten in one clock tick (#1012)
Test only. Adds a codearts regression for #1007's fix ( |
||
|
|
a69931eccb |
amp-usage: test the auto-refresh default (#1006)
Adds a test for the amp-usage page's auto-refresh default (300s), which #1000 left untested. The test runs ui/app.js on a small stand-in for the browser. With nothing kept and the last scan 4 minutes old, the page only polls /api/status. At 6 minutes it also calls /api/refresh. Test-only, no release.
Run at the reviewed head 78a0e830, merged with origin/main
|
||
|
|
029c628ff8 |
codearts 0.3.12: an IDE rewrite in the same mtime tick is read again (#1007)
Cause: ideReader kept the last read of CodeArts Agent's state.vscdb
under a stamp of size:mtimeMs:ino (plus -wal/-journal size and mtime).
An in-place SQLite write keeps the inode and page count, so two writes
within one tick of the file system's clock left the stamp unchanged and
the old credential came back. The test's rewriteIde hit exactly that:
two rewrites a few ms apart, each with mtime Date.now()+5000, so when
both landed in one millisecond the renewal test saw IDEAK2's cached read
and said "hasn't renewed" instead of "another account" (~1 run in 3).
Fix:
- ideReader stamps the inode plus a sha1 of the bytes of the database,
its -wal and its -journal, read in 1MB pieces (no copy, no SQLite
open; it runs only on an IDE sign-in's renewal). A file that can't be
read, or is past IDE_DB_MAX_BYTES, gives no stamp, so it is read again
rather than taken as unchanged.
- rewriteIde gives each rewrite a strictly later mtime (>= 1s after the
previous one).
- New test: the file rewritten at a fixed mtime with the same size and
inode is read again; a removed file is not the last read.
Ran (mote, Bun 1.4.2, HOME=$(mktemp -d), at
|
||
|
|
1e5b1c8317 |
codearts 0.3.11: OfficeAce routes by its total credit, not each bucket (#986)
An OfficeAce account is now routed by one 总积分 window: the total of every unexpired plan bucket (`skus[].quotas`) and activity bonus (`bonus_skus`). Each bucket stays visible as an `aside` detail, so a spent daily check-in bonus (每日签到有礼 0 / 100) no longer pauses an account with thousands of credits left elsewhere (#981). What changed (packages/codearts, 0.3.10 -> 0.3.11) - fetchOfficeAceUsage sums unexpired buckets into 总积分 (amount, limit, two-decimal rounding; sub-half-cent totals keep their raw value). Every per-bucket window is `aside`. - 总积分's `runsOutAt` is the soonest expiry among unexpired buckets that still hold credit, and `runsOut` is what those buckets hold on that Beijing day (soonestLapse, shared with #982), never more than the total's remainder. Trial and spent buckets never choose the expiry. - Overspent buckets are capped at their own total; an empty or unparseable `expired_time` is no expiry instead of Invalid Date. - When every bucket has expired, a used-up 总积分 (0 / total, used 100) stays so the account is paused, not routed without a limit. - README (en, zh) says the same. Rebased onto |
||
|
|
4b0aef5327 |
amp-usage: Amp usage page with background collection; day-card 0.3.1 (#1000)
Adds packages/amp-usage (@magpie-community/page-amp-usage 0.1.0). It is a magpie page that reads Amp's local thread files and the gateway's usage.jsonl and shows per-day usage. The service listens on loopback only and requires a per-start service token on every API call. The page that carries the token is served only to a navigation (Sec-Fetch-Mode). The gateway log is read incrementally from a saved offset, whole lines only, and is re-indexed on rotation. The UI words are in ui/words.js (en, zh).
Also bumps packages/day-card to 0.3.1.
Round 3 (13c1f33) adds three things:
- a test that bytes before the gateway-log offset are never re-read;
- ui.test.mjs, which checks that every error code the server can return has words in each language, and that an unknown code falls back;
- words.js, moved out of app.js, served at /words.js and included in the pack.
What ran, at 13c1f33 merged with main
|
||
|
|
1418740837 |
registry: magpie-search-mix's summary fits its card (#1002)
magpie's plugin card shows two lines of a summary (plugins.css .pm-sum, -webkit-line-clamp: 2). magpie-search-mix's summary ran to about four, so the card cut it in the list of APIs. This entry's summary (en and zh) now says what the package does and why in one short sentence. Only `summary` changes; package and name stay as #809 left them.
The author, mdwsk88, is the package's owner: npm's only maintainer and author of magpie-search-mix, and its repository is github.com/mdwsk88/magpie-search-mix. npm's 0.2.0 carries the same text in `magpie.summary` (mdwsk88/magpie-search-mix#6, merged). The text matches the package README: it asks two sources at once (`width` 2 by default), and the README names DeepSeek with Tavily or You.com as a pair it tested.
What ran, at f1cc119b merged with origin/main
|
||
|
|
806a3f7aed |
inkstone: the cookie overwrite test freezes its clock (#997) (#1003)
The cookie-probe test "a new row, or an overwritten one, is this sign-in" read Date.now() twice, once for the inserted row's last_update_utc and once for the UPDATE. When both calls landed in the same millisecond the value didn't change, rowKey matched the baseline, and the test went red (#997). The test now freezes Date.now() while it builds the profile and takes the baseline, writes the overwritten row's last_update_utc one second later, and checks that the unchanged row is not taken as a new sign-in. Date.now is put back in finally. Test-only: lib/cookieProbe.mjs is unchanged.
What ran, at eda11c37 merged with origin/main
|
||
|
|
dea9e4e3b3 |
codearts 0.3.10: the international station and signing in from the CodeArts Agent (#998)
What changed - Stations. A STATIONS table (mainland, international) is now where the signing fence comes from: SIGNED_HOSTS is every station's API hosts (https, default port, exact name), and each credential is signed only for its own station's hosts. An international credential reaches only snap-access.ap-southeast-1.myhuaweicloud.com and a mainland one never reaches it. Console hosts are never signed. The plugin's mainland snap URLs (and a config `api` on the mainland snap host) are rewritten to the credential's station at the fetch choke points. A lookalike host is not rewritten, and is refused. - International usage. When `package.is_token_package` is true, statistics/plugin's usageTokenChatMessages is a "Tokens" window: usage_token_num of package_token_amount (e.g. "131 / 5.0M"), resetting at end_date, span start_date to end_date. The plan is package_name_en there (package_name_cn on the mainland). The international station has no opengw, credit batches or daily check-in in the issue's probes, so none of them is asked there; check-in answers "inactive". The loader's baseURL is the station's /api/v2. - Sign in from the CodeArts Agent on this machine. A second method, offered only while the IDE's state.vscdb exists (macOS ~/Library/Application Support, Windows %APPDATA%, Linux $XDG_CONFIG_HOME or ~/.config, then codearts-agent/User/globalStorage/state.vscdb; MAGPIE_CODEARTS_IDE_STATE overrides). Key huaweicloud.codearts-snap, userInfoKey.originData, as in the issue. The file (and its -wal/-journal) is copied to a temp folder and only the copy is opened; its statement is finalized before the close so Windows can remove the copy. A missing, unreadable, half-written or incomplete file, or an unknown stationType, is "unknown": no method, or a failed sign-in saying why, never with a secret. The credential is checked once against current/user on its station. It has no refresh token, so it is renewed by reading the IDE's file again, never through STS; until the IDE has renewed it (or when the IDE is on another account or station) a renewal fails for now only, and the sign-in is kept. The account is the IDE's domainId. - README (en and zh) documents both. The browser method keeps index 0. What ran (this tree; the root suite at base |
||
|
|
b4916d4143 |
window-warmup tests: put XDG_CONFIG_HOME and XDG_CACHE_HOME back after each file (#996, #1001)
window-warmup's tests no longer leave XDG_CONFIG_HOME and XDG_CACHE_HOME set for every later file of the root `bun test` (#996). What changed (test files only; no runtime code, no version bump, no dist rebuild): - tests/fake-gateway.ts no longer sets the two XDG variables on import. Its `--serve` demo calls the new pinMagpieDirs() first, so the demo still runs with the temporary dirs. - tests/test-env.ts: pinMagpieDirsForTest() records the inherited values, pins both to $TMPDIR/window-warmup-test-magpie-{config,cache}, and returns a restore that puts back each inherited value, or deletes one that wasn't set. - browser, diagnostics, gateway, scheduler and server tests pin at load and restore in afterAll (in a finally after their own cleanup). diagnostics' own override is put back before the file's pin is. - Every test file that imports fake-gateway.ts, or reaches magpieDirs()' defaults through startService/Scheduler, pins its own; magpie-files and store tests pass env explicitly. Run at the reviewed head c13d2844 (its parent is origin/main |
||
|
|
740e1af252 |
tests: grok's nocli puts PATH back when its file ends, so gumloop's Node children find node on CI
publish.yml has been red on main since
|
||
|
|
d45eb69f23 |
devin 0.1.39: an unreadable identity keeps its own slot (#993, #931)
An unreadable Devin identity no longer falls back to the shared name "Devin". `success` now names such an account `Devin · <12 hex>`, a SHA-256 of the API server and session token. The host de-duplicates plugin accounts by `metadata.email` (magpie `internal/plugin/host.js` `settle`/`whoOf`), so two different unreadable sign-ins used to replace each other's credential. Now each one keeps its own slot. Signing in again with the same key on the same server gives the same name, so it lands in the same slot. When `usage`'s `syncOrg` later reads the account, it renames the slot to the real email in place, as before. Fixes #931.
Ran (mica, bun 1.4.2, HOME=$(mktemp -d), PR head 14fa75a5 merged with origin/main
|
||
|
|
445f4143de |
Revert "agy-cli 0.1.19: tools with large schemas are shortened so agy keeps them in the model's function list (#989, klarkxy on X)"
This reverts commit
|
||
|
|
8e6c75b1e3 |
agy-cli 0.1.19: tools with large schemas are shortened so agy keeps them in the model's function list (#989, klarkxy on X)
agy lazy-loads MCP tools (McpToolConfig.EnableLazyLoad and a call_mcp_tool tool are in the 1.5.5 binary): a tool with a large declaration never reaches the model's function list and nothing says so. The reporter saw tools of about 691 tokens and up missing (bash, grep), 561 and below present. The exact cut-off is not in the binary. tool-budget.mjs fits each tool under 2000 characters (about 500 tokens; env AGY_BRIDGE_TOOL_BUDGET, 0 = off). Order of loss: default/examples/title, nested descriptions to 90 chars, the tool's description, nested descriptions, and last the largest optional parameters (never required ones). Each changed tool is logged on stderr as agy_bridge_tool_shrunk, with what was lost and stillOver when it cannot fit. Run (mica, HOME=$(mktemp -d)): bun test packages/agy-cli 14 pass, scripts/check.mjs ok. Broken by hand: without the fitTools call in the request path the smoke check goes red (5201 chars). Not tried: a real agy 1.5.x with Gemini 4 Carbon, so the 2000-character budget rests on the reporter's numbers. |
||
|
|
7ebab07c2a |
gumloop 0.1.0: API key sign-in, account models and credit estimates (#967)
Gumloop as a provider for magpie and OpenCode: API key + user ID sign-in, the
account's own model list (bare catalog ids mapped back to provider routes, per
account), streaming and tool calls, a missing system prompt supplied for Muse
and MiniMax M3.1 Flash, and a locally calibrated credit estimate (an estimate,
not an invoice). The ledger is written only under magpie's config directory
(kept in memory in OpenCode), a failed read is unknown and never written over,
and updates go through a filesystem ticket lock (bakery) across plugin hosts.
Only a 403 that names the key reads as an expired sign-in, and only Gumloop's
assumed 403 credit_limit_exceeded reads as out of credits. The last change
checks lock contention at least once after a stall, so an uncontended update
that took more than 250 ms to publish its ticket is no longer dropped.
Ran, at the reviewed head 2173d784 (WSL magpie-desktop, Bun 1.4.2, fresh
HOME; Windows 11, Bun 1.4.2, fresh HOME and USERPROFILE):
- bun test packages/gumloop: 87 pass, 0 fail (3x WSL, 2x Windows); the
200-charge overlap test 10x WSL and 5x Windows green; check.mjs exit 0.
- Merged with origin/main
|
||
|
|
5341ac1e70 |
agy-cli 0.1.19: every client tool is listed always loaded, so agy no longer hides large ones from the model (#989)
agy loads an MCP tool on demand, outside the model's function list,
unless the server's tools/list marks it with
_meta {"antigravity/alwaysLoad": true} (agy's changelog, 1.3.5; the key is
in the 1.5.5 binary next to SplitEnabledToolsByEagerLazy and
McpServerSpec.force_all_tools_eager). The bridge's agent has tools: [],
so the model had no working way to load them: on klarkxy's 72-tool
catalog, tools from ~691 tokens up (bash, grep, task, ask_user) were
never offered while read, glob and write were. listTools now adds the
key to every tool it hands agy; the stored catalog and its signature
are unchanged.
Ran: wsl-run (magpie-desktop) with HOME=$(mktemp -d): bun test
packages/agy-cli (13 pass), bun scripts/check.mjs (ok), root bun test
(8207 pass, 19 skip, 0 fail) at base 017cd73e; after the rebase onto
|
||
|
|
02fe223d4d |
astudio: Spark points count only the Spark models, so 0 of them no longer stops the account (#990)
AStudio has two pools: 通用积分 (general) and 星火积分 (Spark). Both
windows were sent as balances with aside: false and no model scope, and
magpie reads a balance window at <= 0 as used up for every model it
counts (allowanceOf on magpie main). So a Spark balance of 0 marked the
whole account used=100, and pace/smart never picked it, though
DeepSeek-V4-Flash and the other non-Spark models bill general points.
Change: the 星火积分 window now carries `models`, the Spark-series ids,
so magpie judges only those models on it (Limit.applies). Spark-series
means a catalog id starting with spark- (BOOTSTRAP's spark-x2.6,
spark-x2.6-4b, spark-x2.5, and the README's table): taken from the
account's live catalog (usage's provider.models) and, for ids that
catalog doesn't list, from BOOTSTRAP. A model the catalog marks free
(Spark-X2.6-Lite, 限免) is left out, since it spends no points; with no
model left the window is shown only (aside: true) rather than sent
unscoped. 通用积分 stays unscoped and still stops the account at 0.
Version 0.2.2.
Ran (wsl-run, magpie-desktop, HOME=$(mktemp -d)):
- bun test packages/astudio: 82 pass, 0 fail
- bun scripts/check.mjs: ok
- root bun test at base
|
||
|
|
017cd73e87 |
catpaw: tests put back the fetch they found, and the rewrite keeps a Request's method, headers and body (#877, #988)
Fixes #877 (catpaw half). Test-only; no version bump. Change: catpaw's index.test.mjs saves the fetch it found and puts it back in afterAll (in a finally, so a failed server stop still restores it). Its URL-rewriting wrapper now builds `new Request(patched, input)` when handed a Request, so the method, headers and body survive the rewrite; init still applies on top. fake.mjs records each model-types request's method, an x-test-marker header and body, and a new test sends a POST Request through the wrapper and checks all three reach the fake. Kiro: its test files (usage, builderid, accounts, apikey, ...) already save and restore globalThis.fetch on main, unchanged since f379bf90; the per-file sweep below finds no kiro file leaving fetch changed. Ran (WSL magpie-desktop, Bun 1.4.2, HOME=$(mktemp -d)), at edecd806 and at edecd806 merged onto origin/main |
||
|
|
c00c4b9f6c |
agy-cli: usage timeout tests wait on the children, not a duration (#950)
Cause: "simulated Windows timeouts kill the whole tree" ran fetchUsage
with a 600ms timeout that covers both children. On a loaded machine the
fake agy's start (bun startup plus its browser-guard spawnSync) can use
most of it, so the timeout fired before the report child had logged, or
before it was even spawned, and logs[1] was undefined
("undefined is not an object (evaluating 'logs[1].pid')"). The same
budget made its sibling "version/report hangs time out" read a log the
killed version child never wrote (ENOENT). After the kill, a fixed 20ms
(and 50ms in both descendant tests) stood in for the kernel and event
loop reaping a SIGKILLed child.
Fix, test-only:
- timedOut() records each spawned child's pid itself and doubles the
timeout (600ms up to 38.4s) until the timeout lands while the child
under test runs; the taskkill assertions use the spawned report pid.
- The "gone" checks poll: waitForPidExit with a 15s bound over the
spawned pids and every pid the fixture logged (the agy under cmd.exe
on Windows); waitForNotRunning polls ps for the two descendant tests.
- agy-cli.test.mjs runs each suite with bun's --timeout 120000: bun's
5s per-test default was the next fixed wait these tests hit under the
injected delay.
- The fake agy takes TEST_START_DELAY_MS to reproduce a slow start.
Injected: TEST_START_DELAY_MS=400 on the old test (WSL magpie-desktop)
-> the #950 test red with the logs[1].pid TypeError; =900 -> it and the
hang test red with ENOENT. With this change: 20/20 at 0, 400 and 900 on
WSL, 20/20 at 0 and 900 on mote (macOS), 17/17 (3 skipped) at 0 and 900
on xiaomi-gpu (Windows).
Ran: wsl-run 'export HOME=$(mktemp -d); bun test packages/agy-cli;
bun scripts/check.mjs' -> 13 pass, 0 fail; check.mjs all ok.
Not tried: the reaping race by itself (a SIGKILLed child still listed
after 20ms) wasn't injected; it is covered by polling, not reproduced.
No source change, so no version bump.
|
||
|
|
80c9b495fc |
minimax 0.2.6: a model takes the video its config says, in magpie (#985)
configModels() and modelOf() said image or nothing: video, audio and pdf
were hard-coded false, so MiniMax-M3.1-Flash and M3 (whose model config
says modalities.input ["text","image","video"], attachment true) showed
as text and image only in magpie's /v1/models, on both sites.
Now parseModels keeps the config's modalities.input (text, image, audio,
video, pdf; unknown kinds dropped) and attachment, and the built-in list
says video for M3.1-Flash-Preview and M3. Where the plugin runs decides
what is advertised:
- magpie's host (the plugin input has `magpie`): every kind said. magpie's
gateway writes the Anthropic body and the loader's fetch sends it to
MiniMax byte for byte; the new test sends the issue's video block and
checks the upstream got the same body.
- OpenCode: @ai-sdk/anthropic builds the body and throws on a file part
that isn't an image, a PDF or text ("media type: video/mp4",
dist/index.js in 4.0.102), so video and audio stay out there and
OpenCode keeps saying the model can't read them. pdf is passed on.
Still dropping video before it reaches this plugin: magpie's gateway
(parseAnthropicRequest has no video block, and groups don't merge
Inputs): yetone/magpie#6135, the reporter's own issue.
Run at the pushed head, rebased on
|
||
|
|
4a78bec3b7 |
codearts 0.3.8: a window's runsOut is only credit its own remainder holds (#982)
usageFromStatistics took the bonus window's runsOutAt/runsOut from the soonest check-in batch while remaining/used were the whole bucket, and the total's from every non-basic batch whatever the buckets had left. So an account whose check-in was spent (bonus remaining 0) still had a total runsOut of 82.05 at tonight's midnight, and one with 2344.81 long-lived gift credits said 100 lapse in hours while the vendor's package_credit_expiring_amount was 0. magpie's routing reads a total's RunsOutAt as "what is left is lost then" (Allowance.Renewal), so these accounts were ranked ahead of ones that really lapse sooner. Now: - each bucket's lapse is its own batches' soonest, held to that bucket's package_credit_remain; an empty bucket has none; - the total's lapse is the soonest of the buckets' lapses (same Beijing day summed), never from batches of a bucket with nothing left; - the ledger fallback's batches are marked `estimated` (what was spent of a check-in isn't known): they say when, and how much is the vendor's own expiring amount, so with 0 or none said there is no lapse; the vendor's batch reads (with consumed/expired counts) are used as before; - each window carries the vendor's package_credit_expiring_amount as `expiring` when it is sent; - comments and README say the ledger keeps the date the claim names (a day on for today's check-ins); 30 days is only for a claim with none. Run (wsl-run, magpie-desktop, at this tree rebased on origin/main): bun test packages/codearts: 177 pass, 0 fail; bun scripts/check.mjs: ok. Fixtures are the issue's two accounts as filed (A: bonus 100 used, 0 left, total 82.05 left; B: 4100 / 2344.81 left, ledger grant 100 claimed 2026-11-10T16:01:04.916Z expiring 2026-11-11T16:01:03.812Z, expiring 0), clock held at 2026-11-11T10:00Z. Broken by hand: cap = Infinity in bucketLapse: the three #982 tests red (174 pass, 3 fail). cap = remain (no estimated gate): account B's test red alone (176 pass, 1 fail). Not tried: a real CodeArts account; the vendor's horizon for package_credit_expiring_amount isn't known, so vendor batch reads are not gated on it. A lagging vendor batch counter is bounded by the bucket's remainder only. Reported-by: KiMelody |
||
|
|
9ec696258d |
agy-cli 0.1.18: turned-away system lines are broken up before agy sends them, and a 429 to one is not a quota (#980)
Antigravity answers 429 "Resource has been exhausted" to a few system prompt lines whatever quota is left (Claude Code's billing line, the Claude Agent SDK, Codex's and Hermes Agent's identities, oh-my-pi's RFC 2119 line). The antigravity provider breaks them up with zero-width spaces (TURNED_AWAY / breakUp / cloak); agy-cli sent the client's system prompt to agy as written, and called the 429 an exhausted quota (rate_limit_error), so a client or routing group retried a prompt that fails every time. - cloak.mjs is a copy of antigravity's TURNED_AWAY, cloak and hint (the two-zero-width-space break-up of 11-11). Each package ships on its own, so cloak.test.mjs imports packages/antigravity's _internal and fails when the two give a different answer for any line or sample. - Every route the system text reaches agy is cloaked: the session's systemPrompt.append (session/new and session/resume), <external_system_instructions> when agy can't append, a later system or developer message in the turn or the replayed history (renderTurnMessageParts), and a system/developer notice delivered beside a tool result (extractToolResults). - What the bridge keys and hashes on is unchanged: proc.instructions, sameInstructions, instructionsIdentity, stripVolatileSystem and the session store keep the prompt as the client wrote it; cloak is applied only where the text is sent. User text is not touched. - #formatAgentError: a "code 429 ... Resource has been exhausted" with a turned-away line in the session's instructions is an invalid_request_error, "Antigravity answered 429 to this system prompt: <detail> — <hint>", with the antigravity provider's hint. Any other 429 stays rate_limit_error. - READMEs (en, zh) say so under the minimal-agent section. Run (wsl-run, magpie-desktop, HOME=$(mktemp -d), at |
||
|
|
84ee9b88cc |
sap-aicore: the token deadline test fires the exchange's deadline once fetch is entered (#984)
"token deadline bounds fetch that ignores abort" rewrote every 15000ms timer to 20ms. The credential read and the token exchange each arm their own 15000ms deadline through bounded(), so the read's deadline was cut to 20ms too. When the read took longer than that on a loaded machine, it timed out with the same "token acquisition timed out" message before fetch was ever called, and `upstream.aborted` threw on undefined. The test now keeps both timers at 15000ms, records each deadline's callback, and fires the exchange's (the second) from inside the fake fetch. It checks that two deadlines were armed and that fetch was entered before it checks the abort. The source is unchanged: a separate 15s bound on the read is intended. Run (wsl-run, magpie-desktop, Bun 1.4.2, HOME=$(mktemp -d)): - bun test packages/sap-aicore: 343 pass, 0 fail. - bun scripts/check.mjs: exit 0. Injected by hand: - A 50ms wait at the start of readCredentials' operation. The old test failed with "TypeError: undefined is not an object (evaluating 'upstream.aborted')" at 28ms, the issue's case. The new test passes with the same wait. - The exchange run without bounded() (no deadline). The new test fails. Not tried: the full root bun test run under load where it first failed. |
||
|
|
eaeca41125 |
day-card: a week, a month or all time as a receipt, with a Day/Week/Month/All switch (HeheLi29136651 on X)
usage:day takes a from (magpie with usage:day's span read); the page asks for the seven or thirty days ending on the date shown, or all, and prints the period, the days that had calls and the cost of one, in place of the streak against an average day. Arrows step a whole week or month. A magpie that answers a day and no from says to update. 0.3.0. Run: bun test packages/day-card (17 pass, the new test red before the view change). |
||
|
|
93cb4fe1c0 |
autoclaw 0.2.22: Linux overseas chat omits X-Tm; wallets decides a bare forbidden (#979)
Fixes #367.
On Linux the overseas chat leaves X-Tm out: the gateway refuses the
official "linux" value for plugin-only accounts (#367; menhouran got 200
with only X-Tm removed on x64; on arm64 only the platform values were
tried, not omission). Sign-in, refresh, wallets, check-in, CN chat and
macOS/Windows keep their headers.
An exact uncoded 403 "forbidden" (JSON or plain text) on both chat hosts
no longer reads as a dead token on its own: the wallets route decides.
It takes the token: 403 permission_error, sign-in kept. Every host
refuses it: 401, expired. Mixed or failed check: the upstream 403 goes
through with no X-Magpie-Sign-In, which magpie leaves unmarked.
signInHolds now says false only when every wallets host refused; for
sizeRefusal false and null already led to the same answer. 0.2.22.
Run at cd6da42dd (no live AutoClaw request, no credentials):
- WSL Ubuntu 24.04, Bun 1.4.2, temp HOME: bun test packages/autoclaw
117 pass 0 fail; root bun test 8189 pass 19 skip 0 fail;
bun scripts/check.mjs ok.
- Merged with origin/main
|
||
|
|
f85f9ad0b0 |
day-card 0.2.3: the receipt credits nowdex, whose share card its design follows
randyloop on X pointed out the card looks just like nowdex's share card. Its foot now has a small muted line under the magpie footer, in every language the card speaks: "Design inspired by nowdex.app" (设计灵感来自 / 設計靈感來自 / デザインは…に着想を得ています / Design inspiriert von). The README says so too. Run: bun test packages/day-card on mote (HOME=$(mktemp -d)): 16 pass; the new check is red without the credit field. Rendered the page in Playwright Chromium and WebKit with a stub bridge in en, zh, zh-TW, ja and de and looked at the PNGs: the line sits centred under the footer, inside the paper, no page errors. Not tried: the page inside the real magpie window. |
||
|
|
1ccd764e01 |
minimax 0.2.5: a chat asks for no compression, so the stream really streams (#978)
Flagwill: MiniMax answers a chat asked to compress as one gzip member
flushed at the end, so a streamed answer arrived whole. The chat request
(auth.loader's fetch, the one path every chat of both sites takes, CN and
global, streamed or not) now sets accept-encoding: identity, over any
caller value. Models, usage, check-in and the tool API keep Bun's default.
New stream.test.mjs; README "Requests"; 0.2.5 (npm and main had 0.2.4).
Run at 90fc6ff3 (Bun 1.4.2, temp HOME, WSL magpie-desktop):
- bun test packages/minimax: 151 pass 0 fail (713 expects)
- bun scripts/check.mjs: exit 0
- Windows (xiaomi-gpu, temp HOME/USERPROFILE): 151 pass 0 fail, check exit 0
- merged with origin/main
|