5efe4e73c305cfd2e94308bb35e123f15639e347
1090
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
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
|
||
|
|
18ce00e4ce |
agy-cli 0.1.17: a steer keeps the live agy session, so its prompt cache holds (ChrisJ_AI on X)
Reported by ChrisJ_AI on X: after 0.1.12, most turns show a normal cache ratio, but a steer / interrupt still reads 0% (303K input, 0% in his screenshot; agy's own session rows for the replay read 193K and 65.8K at 0% too, then 99% again). Cause: a user steer (text or an image beside a live tool_result, a rejected tool, a hook line) stopped the live agy session and replayed the round in a new session/new. A new session has no cache, so agy itself reported 0%. Now the bridge answers the pending MCP calls with the real results, cancels the step agy was starting, and sends only the steer as the next prompt of the same session (the answered tool results are not sent a second time). Falls back to the old replay when the session or history differs, tools grew, a result carries an image, a call is still unanswered, or the cancel does not settle. Run (WSL2 Ubuntu 24.04, Bun 1.4.2): bun test packages/agy-cli 11 of 11, smoke.mjs ALL OK; bun scripts/check.mjs agy-cli ok. smoke.mjs now asserts no new session/new (same convId, same init count), the steer text in the next prompt and the real result delivered to the MCP call, for the Esc, queued_command, standalone follow-up, text before/after the result, image, rejected tool, Skill and queued-suffix cases. Broken by hand: the same smoke.mjs against origin/main's index.mjs: 12 failures, all of those. Not tried: a real agy (signed out on this machine and in magpie's account store), so Google's cache after a steer is not measured; Windows (smoke is red there, #973); macOS. |
||
|
|
5fb28a1fd6 |
tagged: build the Discover list on dist every half hour, for desktops that can't reach GitHub (River_WLan on X)
scripts/tagged.mjs ports magpie's askTagged/readTagged (topic search, package.json, npm, entry file); the workflow pushes tagged.json to dist. Run once locally (wsl): 367 plugins, 253 with icons, 291 installed from github:, 0 unread. |
||
|
|
92e0417739 |
agy-cli 0.1.16: keep conversationKey stable across volatile openings (#947)
conversationKey stays stable when only agent-injected opening fields change (Claude Code's billing header, known clock lines in the system prompt or a <system-reminder>), so a continued chat keeps its agy session and its prompt cache. It hashes the whole stripped first message. A flattened, growing first message reuses the live session only when it continues the whole previous opening plus that session's reply on a line boundary, and then sends agy only the new tail. Closes #945. Reviewed head 56c845720026819781e198bada948cce9b926806 (one commit on main 9204c07; main |
||
|
|
9e07c70627 |
antigravity 0.1.4, antigravity-cloak 0.1.4: omp's first line, "RFC 2119 keywords: ...", is broken up, so its prompt is no longer turned away with a 429 (eric_li8983 on X)
eric_li8983's 429 RESOURCE_EXHAUSTED after 0.1.3 was not quota. On the owner's real Antigravity account (plenty of quota; "hi" with no system prompt gives 200 on gemini-3.8-flash, claude-sonnet-4-6, gemini-3-flash), oh-my-pi's real system prompt (captured from omp 's request to a local server, 10.5KB) got 429 on all three. Bisected by hand: the sentence "RFC 2119 keywords: MUST, REQUIRED, SHOULD, RECOMMENDED, MAY, OPTIONAL." alone gets 429; its halves, the list without the final period, or "2120" for "2119" get 200; the prompt without that line gets 200. Broken with a zero-width space after the first and second character of each word, the whole prompt gets 200 on the same three models. The line is added to antigravity's TURNED_AWAY (with its own hint when the cloak missed a reworded copy) and to antigravity-cloak's words. Run: bun test packages/antigravity packages/antigravity-cloak on magpie-desktop (wsl-run, HOME temp): 86 pass. Broken by hand (the TURNED_AWAY entry removed): the new shape test and the 429 hint test go red, 2 fail. Real account: omp's full prompt 200 on 3 models after, 429 before. Not tried: omp's own run through magpie end to end (the user's AGENTS.md and tools were not in the captured prompt); other omp prompt lines after the cloak. Real quota 429s and the credits path are unchanged. |
||
|
|
557511d73f |
openai-decisions: OpenAI Decisions as a System One provider (#762)
New package @magpie-community/opencode-openai-decisions-auth (provider
openai-decisions, model gpt-6-luna) by genglintong: answers magpie's
System One (base /systemone through its fetch) with OpenAI's
POST /v1/decisions, converting choice/score/noul to choice/score/predicate
and back with probabilities, confidence and usage. Sign-in is a plain
OpenAI API key from the host's getAuth, read again per request.
The six points of the 11-05 review, checked at 613fc413a:
1. credentials.mjs, the saved-key reader and the keyless method are gone;
no read of providers.json, APPDATA or ~/.config/magpie anywhere.
2. A per-question {"type":"refusal"} is left out of answers; the others
and usage are kept (all refused gives answers {}). magpie's own
Decisions translation reads a missing answer as a refusal too.
3. Omitted, null or blank instructions get a non-empty default.
4. Registry entry on one line; merges cleanly with origin/main
|
||
|
|
bf302fab7d |
minimax 0.2.4: generate_image takes the catalog's area, n, output_format and reference_images (#955)
hokaii6990-boop (Windows 11, magpie 0.1.3654, plugin 0.2.3, CN site):
`magpie tool minimax_generate_image --requests '{"prompt":"...","area":"2K"}'`
answered "bad arguments: arguments.requests[0].area is not an accepted
argument", while the account's catalog schema has area, and
minimax_call_tool with the same arguments generated the image.
Our first reply said execute checks against the catalog's
input_schema_json. It does, but createConnectorTools wraps every tool's
execute in checked(t.args, args) first, and a named Matrix tool's args
are the bundled matrix-tools.json copy (2026-11-03: resolution,
input_urls, a six-value aspect_ratio). So that check refused the call
before the catalog was ever read.
- A named Matrix tool's call is now checked up front only for its two
routing fields (site, account). Its own arguments are checked once, in
execute, against the catalog entry's input_schema_json, and against the
bundled copy only when the catalog gives none. A parameter MiniMax adds
later passes without a plugin release. A priced call still never goes
out with bad arguments; the catalog read now comes first.
list_tools, tool_schema and call_tool keep their up-front check.
- The refusal names whose schema it was: "(checked against the account's
catalog schema for connector__matrix__generate_image)", or the bundled
one when the catalog gave none.
- matrix-tools.json's generate_image input_schema is the reporter's
pasted `minimax_tool_schema --json` output, byte for byte after JSON
parsing (kept as testdata/generate-image-schema-955.json). It is what
agents are shown. Its description says reference_images, not
input_urls. The other 15 tools' copies are unchanged; no fresher
bytes for them.
- README says calls are checked against the live catalog.
Run:
- wsl-run (magpie-desktop, Bun 1.4.2), HOME=$(mktemp -d):
bun test packages/minimax 148 pass 0 fail; bun scripts/check.mjs exit 0.
- win-run (xiaomi-gpu Windows 11, Bun 1.4.2), HOME and USERPROFILE a
fresh temp dir: bun test packages/minimax 148 pass 0 fail;
bun scripts/check.mjs exit 0.
- Broken by hand (wsl-run, connector-tools.test.mjs):
- 0.2.3's code and bundle: 5 red, among them the area/n/output_format/
reference_images call.
- New code with 0.2.3's bundle: only the bundled-copy test red; the
area call passes, held to the catalog.
- New bundle with the old up-front check: 3 red (the catalog's
refusal message, the no-schema fallback message, and a refusal that
now reads the catalog first).
Not tried: no MiniMax Code account here, so no real generation; the
schema is the reporter's, from one CN-site account. The global site's
catalog was not seen. Codex desktop refusing area from the advertised
schema (the reporter's second path) was not reproduced; the refreshed
copy covers it for these fields. The get_asset_url /visible/ watermark
note is split out to #974.
Reported-by: hokaii6990-boop
Refs #955
|
||
|
|
9204c079ae |
zcode 0.1.59: a reply the gift answered names the -Trial entry, so Usage, sessions and the request log show free quota was spent (WJaunita45604 on X)
Free first sent the plain model to the Start Plan under the plain name, and the gift answers under that name too, so magpie named the plan's model for both routes. trialNamed rewrites the model of a gift's whole reply or event stream to GLM-5.3-Flash-Trial; a failed reply, and a free-first replay on the coding plan, keep what came. Run: bun test dual.test.mjs on wsl (61 pass); the two new gift tests fail with the rename taken out. Not tried: a real Start Plan reply (no gift balance on this account at this hour). |
||
|
|
dbd082f6d1 |
agy-cli 0.1.15: an array tool schema whose items live only on a sibling gets an items schema Gemini accepts (klarkxy #963)
Gemini refuses an array schema with no `items`. array-items.mjs infers the items from the schema around it, or adds a permissive items schema 8 levels deep, without narrowing what the client allowed; tuple `items` lists are left as they are, with a hint. Closes #962. Reviewed head c7d3e7b8 (on |
||
|
|
738fd501d7 |
agy-cli 0.1.14: tool schema patterns are turned into RE2 or dropped, so an ECMA-262 pattern no longer aborts the turn (klarkxy #946)
Tool input schemas' `pattern` and `patternProperties` keys are translated to RE2 (re2-pattern.mjs) before they reach agy; a pattern RE2 can't hold is dropped with a hint, and `additionalProperties: false` is lifted when every patternProperties key was dropped. Closes #944. Reviewed head 99093088 (on |
||
|
|
a0b1e49113 |
agy-cli 0.1.13: an image before a live tool_result counts as the user steering (klarkxy #965)
An image the user sends with no text before a live tool_result now marks the turn as steered, so it is replayed and the image stays off the MCP result. Reviewed head 7852e288 (on |
||
|
|
7869318d6a |
agy-cli 0.1.12: a tool step's estimated cache read stops at the step before it, so a new tool result is billed as input (#971 review)
0.1.11 (#971) estimated an uncalibrated first prompt's tool steps by summing every earlier settled step's whole window as the cached prefix. Each window already holds the steps before it, so the prefix was counted once per step: from the third step on, the step's whole window, the tool result just added included, came back as a cache read. In the review's probe (four Read calls, ACP reporting cachedReadTokens 0), step 4 billed 0 input and 34,456 read, and the steps claimed 56,608 cache-read tokens that ACP never reported. The prefix is now the largest earlier settled window (the step before), so each step reads that from the cache and bills what was added since. The step test that pinned the 100% clamp now checks that step 3's uncached input covers what was added after step 2, and that its read does not exceed step 2's window. Still an estimate until ACP reports. Run (WSL2 Ubuntu 24.04, Bun 1.4.2, temp HOME): bun test packages/agy-cli 8 of 8 pass; bun scripts/check.mjs agy-cli passes. Broken by hand: origin/main's index.mjs with the new test, node --test test/usage-settlement.mjs: 25 pass, 1 fail ("第三步未缓存 input 0 应覆盖 第二步之后新增的 32"). Restored, green. Not tried: Windows (main's smoke red there is #973), macOS (mote refused ssh), a real agy. |