92c20ffef6c03dfb7a0091a11ef2e96ffbb9813f
1101
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
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
|
||
|
|
ebcff86606 |
agent-agy 0.2.0: magpie's own settings file, passed with --settings
As magpie's built-in agy does since 0cc91af3d: the plugin's config is ~/.gemini/antigravity-cli/magpie-settings.json, handed to agy with --settings, and agy's own settings.json is only read (base) for the user's own model and custom models. remote-control runs plain, as agy is. Needs magpie with agentplug's base, launch.args and launch.plain. Run: bun test packages/agent-agy (4 pass, on mote), and magpie's internal/agent TestAgyPlugin against this file. |
||
|
|
9fb09a0f41 |
orcaterm 0.1.7: a tool call the model writes as text is not sent on as the answer (#969)
orcaterm 0.1.7 reads the tool call a model writes as text (DSML, <tool_call>, <function_calls>, <function=, <invoke name=) on both the streamed and non-streamed paths. The answer stops where the call begins, and the turn ends as a text_tool_call error (an error frame when streamed, a 502 when not), so magpie can retry or try another account instead of passing the call on as prose. A call shown in a code fence or in backticks is ordinary text, as in trae. A call carried only in the thinking goes through the same guard: the call is read from the extractor that cut it (answerAndCall), so prose before it no longer hides it. An `ask` envelope reaches the client as its question with its options under it, one per line, whether it is complete JSON, hand-written with a bare line break, cut short by the stream, or appended after prose. Reviewed at 39b4ef653e89e2b3e8c2d1b803563089ba4e3e2b, every line changed since 7a49ed7c. Merge-tested with origin/main |
||
|
|
2f8e65a131 |
devin 0.1.38: a slow model list doesn't hold up quota usage (#977)
yetihan's change (fixes #976). usage() asks GetCliModelConfigs in the background (freeIDs/configsFor with wait=false), so a slow or timed-out model list no longer holds back the day and week windows that GetUserStatus already returned. Free models (notModels) are added, or the "Free models" row says why the list couldn't be read, on a later usage once the ask has settled. Other callers keep wait=true. The asks are shared through c.asking, failures back off for RETRY (60s), and the ask's own try/catch means a background failure never rejects. Reviewed at 3920118d53e7c144d9e7d54bfe6dca6069611575. Run (WSL magpie-desktop, Bun 1.4.2, fresh HOME): - bun test packages/devin: 209 pass, 0 fail; bun scripts/check.mjs: exit 0 - the same after merging origin/main into the head: 209 pass, check exit 0 - Windows (xiaomi-gpu, fresh HOME/USERPROFILE): bun test packages/devin, 209 tests, 0 fail, 9 skip - probe (not committed): 10 usages with a list that never answers make 1 GetCliModelConfigs fetch; a fetch that throws makes 1 fetch in 10 usages, the row names the error, and there is no unhandledRejection Broken by hand: restoring the blocking freeIDs/configsFor calls makes "a slow model list doesn't hold up quota usage" fail at 1017ms ("usage waited for GetCliModelConfigs"), and the edited "logged once" test hangs to its 5s timeout. Restored, both are green. Version: npm had 0.1.37 and origin/main's package.json had 0.1.37, so the bump to 0.1.38 is right. Known: a usage read on a cold host (a fresh `magpie quota refresh` process) returns the windows without notModels until the list has been read once. "with no word from Devin..." now passes without its 503 being read. Not tried: a real Devin account; Devin's API wasn't contacted. |
||
|
|
3b314dad1c |
day-card 0.2.2: a "No background" choice first, and the card fits one screen (volare18467257 on X)
volare18467257: add a no-background option first in the list, and let the card scale, since it didn't fit one screen. - Background now starts with "No background": the paper alone on nothing, a transparent PNG with no margin (the margin slider is hidden for it), swatched as a chequerboard. Named in all five languages. The default stays teal. - The card on the page is sized to the room under the toolbar (B.fit: width up to 760, no taller than the window, never below 160), on resize and when the toolbar or status line changes height. The bitmap copied or saved is unchanged. Run: bun test packages/day-card in wsl-run, 16 of 16 green; scripts/check exit 0. A Playwright harness (not committed) with a stub bridge in Chromium and WebKit: at 1000x600 the card is 403px wide and ends at 568 of 600, with no page scroll; at 1000x900 it is 650 wide, ends at 867; picking No background gives a 880x1130 bitmap (no margin) and hides the margin slider, no page errors. Broken by hand: with backgrounds.js from main the new test is red. Not tried: magpie's own window on Windows/Linux; the transparent PNG pasted into an app. |
||
|
|
4ecf633125 |
tagged: keep each listed plugin's README on dist (readmes/), so magpie's Discover page reads it from usemagpie.ai, not npm (River_WLan on X)
Run: node scripts/tagged.mjs on wsl against the real GitHub into an empty folder: 369 plugins, 369 README files (5.5MB); a second run into the same folder read none again and kept 369. Not tried: the workflow itself on Actions (dispatched after the push). |
||
|
|
fcde82d39f |
history-trim 0.1.2: trim trailing whitespace in linear time (#975)
history-trim 0.1.2. The whitespace step trimmed trailing spaces with /[ \t]+$/gm, which takes quadratic time on a long run of spaces followed by a word: 1.2 s at 40,000 spaces on Node 22. A one-pass scan replaces it. It runs after the blank-line fold, as before, and trims before every line end that `$` sees under /m (\n, \r, U+2028, U+2029 and the end of the text). The output is the same as main's. Four cases.json regressions are added: CRLF, whitespace-only lines, U+2028, and a long run of spaces before a word. What was run at 0ad27d87, merged with origin/main: - `bun test packages/history-trim` (27 pass) and `bun scripts/check.mjs` (ok), on WSL Ubuntu 24.04 and on Windows 11, each with a fresh HOME (and USERPROFILE on Windows). - main's onRequest against the PR's, on 500,000 random strings over space, tab, \n, \r, U+2028, U+2029, U+0085, \v, \f, U+00A0, U+3000, U+FEFF, U+2000 and U+200A: 0 differ, on Node 22 and Bun. - Timing at 40,000 spaces + "a": main 1,223 ms, PR 0.28 ms; 1,000,000 spaces: 7 ms (Node 22, mote). - Broken by hand: treating only LF as a line end turns the CRLF and U+2028 cases red. Trimming before the fold turns the whitespace-only-lines case red. |
||
|
|
1e060e6163 |
page-usage-tree 0.1.1: refresh warning only on a real failure, hit rate and model-detail fixes (#960)
page-usage-tree 0.1.1 (CHENZUDE): - A failed refresh is kept on the cache entry the page reads, so "Refresh failed; showing the previous data" shows when a refresh threw (on 0.1.0 it was written to an entry already replaced and never shown). Only a loader that threw counts: an older disk cache marked stale does not, and a retry from a failed entry stays failed until a loader succeeds. The page takes the server's X-Usage-Tree-Refresh on every answer, quiet follow-ups included, so the warning clears once the gateway recovers. - Hit rate uses magpie's hitPct rounding (0.9996 shows 99.96%, not 100%). - A failed per-account model-detail read keeps the account totals and says model details are incomplete (zh, en). Disk cache v8. - Not in the PR body: a /bridge.js shim served by the service (talks only to parent: hello, options.get/set, theme and visibility), request timeout 10s -> 30s, narrow breakpoint 620px -> 700px, model split on narrow screens, "permissions": [] added (same as absent), zh warnings joined with ";". Run at the reviewed head 74363201570d9f69866ac0e4afff7a2b898e6dab: - WSL (magpie-desktop), fresh HOME: bun test packages/page-usage-tree 62 pass 1 skip (parity needs a live magpie); node --test 68 pass 1 skip; bun scripts/check.mjs ok. - Windows (xiaomi-gpu), fresh HOME and USERPROFILE: bun test packages/page-usage-tree exit 0; bun scripts/check.mjs ok. CI green. - Playwright 1.62 Chromium and WebKit on WSL, sandbox server with fake data, 1280 and 420px, en and zh: a first open from a stale disk cache never shows the refresh warning; a failed manual refresh shows it, it stays while the gateway is down, and clears on the quiet follow-ups after recovery while the model-detail warning stays; no page errors, no horizontal scroll. The same probe on e3da32bed fails 3 checks (false warning on open, warning never clears, zh joined by a space). - Broken by hand: counting data.stale as failed, a retry entry forgetting the failure, and a quiet load never clearing each turn a test red. Not covered by a test: dropping warningStateChanged (render also runs renderWarnings) and the zh join between two data warnings. - Host/Origin/token handling on /api/tree unchanged from main; /bridge.js is static and behind the Host check. dist had only 0.1.0. |
||
|
|
a3bfe680d4 |
output-strategy 0.2.2: panel attribution, conversation guidance and save-state fix (#831)
output-strategy 0.2.2. The panel says the plugin is unofficial and maintained by manjughosa (README, page, registry summary). The page tells the user that saving does not rewrite an existing conversation. Unsaved changes are now counted against the saved styles, so ticking a style and unticking it again leaves the panel clean. The README says the `[Output Strategy]` marker is honoured only in system/developer instructions.
The package.json author stays "manjughosa (https://github.com/manjughosa)", as main has it. From the previous reviewed head 8cb337ef to 6110057c, that line is the only change.
What was run at 6110057c, merged with origin/main
|