806fbff8bd80e8922a4f980cd65c38cc91b3ca3f
919
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
806fbff8bd |
sensenova 0.2.2: the reasoning tiers SenseNova's docs list per model
muran_91096 on Discord asked for max, and quoted SenseNova's docs: glm-5.3 takes low/high/max, deepseek-flash none/low/high/max, deepseek-v4-flash none/minimal/low/medium/high/xhigh/max, kimi-k3 low/medium/high/max. The plugin offered none/low/high to every model, so max was missing, and kimi-k3 and glm-5.3 were offered a "none" the docs don't list. DOC_EFFORTS holds those four; the live listing (modelOf) and the declared models (variantsOf) give exactly them. Every other model keeps the narrow common three. Anthropic's wire skips minimal and xhigh. Run (mote): bun test in packages/sensenova, 58 pass; bun scripts/check.mjs all ok. Broken by hand: without the DOC_EFFORTS lookup the new api.test case fails. Not tried: a real request at each tier (no SenseNova account here); the tiers are the vendor's docs, not measured. Reported-by: muran_91096 (Discord) |
||
|
|
c61d83d0a1 |
loomy 0.1.5: the daily wallet sends the share spent and the credits spent (#889)
magpie reads a window's `used` as the share spent (0-100) and `amount`
as what was spent of `limit`. Loomy sent the credits spent as `used` and
what was left as `amount`, so 800 spent of 5,000 read as 800%, and an
account window cap of 4 credits compared the 4,200 left with the cap:
it held a fresh account and let a spending one go past it (9won_25273
on Discord, over by more than 1,000). Now 16 and 800. A zero allowance
is 0, never NaN. The permanent wallet comes back as a balance alone, with
no total, so it stays an amount shown aside.
Run on mote at origin/main
|
||
|
|
f9124bc831 |
empty-reply 0.1.0: a reply with reasoning but no text ends early, so the agent retries (#900)
Adds packages/empty-reply (0.1.0): a reply made of reasoning alone, with end_turn (Anthropic) or response.completed (Responses), loses its end events so Claude Code and Codex retry; a whole reply becomes an error body or status "failed". max_tokens, refusal and incomplete are kept. A stopgap for yetone/magpie#3358 until the gateway checks this itself. Reviewed at 900 head: bun test packages/empty-reply 17 pass, bun scripts/check.mjs all packages ok, bun test scripts 22 pass (mote, Bun 1.4.2). Read every case in cases.json against the Anthropic and Responses stream shapes. The author ran Claude Code 2.1.319 and codex-cli 0.167.0 against a reasoning-only Chat upstream (ordered and rotate). Not run by the reviewer in a live gateway. |
||
|
|
cbb58f654a |
day-card 0.1.0: a day of your usage drawn as a card, copied or saved as a PNG
A new page plugin, @magpie-community/page-day-card, for JungleyYeh on X, who asked for a "daily AI statement". - It shows a chosen day (today by default, others from a date menu): its tokens, cost, calls and errors, then each agent with its models and icons. Below them come the streak, the average active day and the last two weeks. - Copy puts the card on the clipboard as an image; Save writes it as a PNG. - The design is quiet, with no gradients and no coloured accents, in light and dark. It speaks en, zh, zh-TW, ja and de. - It asks for one read, usage:day, and needs magpie 0.1.3427 (623e797fd) for that read and for magpie.image.copy/save. What was run (mote): - bun test packages/day-card: 11 pass, 0 fail. Before engines.magpie was set, the guard test was red on the placeholder. - bun scripts/check.mjs: exit 0. - Real use: the page in magpie's real GUI server with a sandbox HOME holding a copy of real usage, in Chromium and WebKit, light and dark, en/zh/zh-TW/ja/de, at 420 and 1100 px, with an earlier day picked and Copy pressed. No page errors (magpie 623e797fd's body has the rest). |
||
|
|
5d172c46c7 |
rhino9-ai 0.3.2: Magpie-Rhino, Magpie in Rhino 9's AI panel (#868)
Adds packages/rhino9-ai (0.3.2), an agent descriptor for the Magpie-Rhino companion: Rhino 9's AI panel gets a Magpie entry that uses magpie's models, custom groups and routing strategies through Rhino MCP. Windows only. Reviewed across four rounds. The last round, at b02996c6, covered the descriptor, the registry entry, OnLoad's folder and the companion at v0.3.2. Since then, 0422f2a1 changes only docs: the Agents table row uses the folder name, and the package README describes the remembered execution mode. Read for this head: the companion's v0.3.2..v0.3.3 diff (123ea20, d5a36af). - The new PanelPreferences keeps a single AutoExecute bool in ~/.config/rhino9-magpie/panel-preferences.json, written through temp-and-rename. It defaults to off. - A preferences file that can't be read leaves confirmation on. - confirm_design_basis and the scale dialog still ask whatever this setting is. - v0.3.3 was published by github-actions[bot] from run 42614204457 at d5a36af, and that run passed. Run (mote) at 0422f2a1: `bun test packages/rhino9-ai` 5 pass, 0 fail; `bun scripts/check.mjs rhino9-ai` ok. The last full `bun test` (7566 pass) was at b02996c6. Only Markdown changed since. Not tried: Rhino 9 itself (not on the test machines). Co-authored-by: mikidaren <mikidaren@users.noreply.github.com> |
||
|
|
eb3cb370a0 |
codearts 0.3.6: an account with no free channel is sent its plain model (#905)
gateway/config answers an account with no benefit channel with
{"error_code":"4000","error_msg":"invalid channel, group not found"}.
That was read as a failed read, so state.benefit stayed null and the
built-in fallback list sent glm-5.3-flash with maas_type: benefit. The
gateway answers that header on such an account with a 200 whose first
frame is InferHub.APIG.0101.404, mapped to 400, so magpie stopped the
group's fallback.
- gateway/config's "group not found" (any status) is now a list of no
free models; a network failure or another error still keeps the
fallback.
- InferHub.APIG.0101.404 to the benefit header sends the request again
without it and remembers the model has no benefit.
Run on mote: bun test in packages/codearts 173 pass / 0 fail;
scripts/check.mjs ok. Broken by hand: with main's index.mjs the three
new tests fail (both 4000 statuses and the 0101.404 retry).
Not tried: a real account without the free channel; the fixtures are
the reporter's bytes from #905.
Reported-by: hyperp0p
|
||
|
|
a5a63a109f |
agy-cli 0.1.3: an assistant prefill tail is continued, not refused (#904)
A request ending in a text-only assistant turn (SillyTavern prefill, "continue"/"impersonate", bot frameworks) was refused with a 400. That trailing run now stays in the tail, after the session ledger's newest entry, so the agy session is reused across prefill turns, and it is rendered as a continuation of the model's own reply. A prefill beside a live tool_result, or with no user turn before it, is still a 400. AGY_BRIDGE_PREFILL=0 brings the old refusal back. Reviewed at f7b249cec9e827b7ef49197a207180f3f7085cfe, run on mote: bun test ./agy-cli.test.mjs 8 pass / 0 fail; bun scripts/check.mjs ok. Broken by hand: with main's index.mjs and these tests, test/prefill.mjs and the smoke test fail (6 pass / 2 fail). Checked: renderTurnMessagesParts only gets the current turn's tail, never history, so a finished reply is never taken for a prefill. Not tried: a real agy account. |
||
|
|
951ac55c94 |
window-warmup: the fake gateway's reset no longer logs "error: 连接中断" (#902)
The "响应中途连接重置" test's fake gateway broke the connection with
controller.error(new Error("连接中断")) on a served ReadableStream. Bun.serve
prints such a stream error as an unhandled error (its error() callback is
never called), so every green run of the package showed "error: 连接中断"
with a stack, which read as a failing test. It was not the bun version, HOME
or a port: a 20-line probe on bun 1.4.2 printed the same for any
controller.error or throwing pull() in a served stream, with an error()
handler set and seeing nothing.
The reset is now a forced close: the fake records the request, then
server.stop(true) closes the connection before any answer, which the client
sees as ECONNRESET (the same path as before), and nothing is logged. The
truncate case keeps its half body and clean close. Test-only: no version
bump.
Run on mote (bun 1.4.2, HOME=~/runs/home-902):
- origin/main
|
||
|
|
36141e381e |
chat 0.1.12: recall tools from unspaced Chinese questions in large MCP catalogs (duhu2000, #872)
The chat page picks up to 12 tools from a large MCP catalog. It now splits unspaced Chinese into two-character terms instead of treating the whole question as one word. Terms are weighted by how rare they are in the catalog (IDF), and a tool named exactly in the question, hyphenated names included, is boosted to the top. The selection moves into lib/tool-selection.mjs with its own tests. page-chat goes to 0.1.12. Run at d10e93a62832e31ead84ddef438b615b13935e26 merged onto main |
||
|
|
588b3611cb |
kiro 0.1.35: the sign-in's ways, question and choices in magpie's languages
mahiro233 on magpie's Discord (plugin 0.1.34, magpie v0.1.3372): in a Chinese window, the account sheet's "Choose a sign-in method" and its three choices read in English. Each way, question and choice now gives its words in Chinese, Traditional Chinese, Japanese and German, as magpie's own labels, messages and hints fields beside the English (magpie reads them from its next release; OpenCode and an older magpie show the English, which is unchanged). "AWS Builder ID" stays the product's name; its hint is translated. The API key way also gives its field a "ksk_…" placeholder. The same report said there's no API key option. The plugin has had one since it began (the third way, "Kiro API key (ksk_…)", as kiro-cli uses KIRO_API_KEY), but magpie opened a moved Kiro's first way at once, and its question left no way to the others; magpie's side of the fix is in yetone/magpie. Run on mote: packages/kiro bun test with HOME under the temp dir, 171 pass 0 fail; bun run check ok (exit 0). Broken by hand: with origin/main's index.mjs, signin-words.test.mjs goes red (the first way's zh label undefined). Not tried: a real sign-in (no words on the wire changed); the full root suite. |
||
|
|
d51e9e3cad |
mclaw 0.5.3: fail at authorize when there is no browser or display (#898)
mclaw's authorize now runs a preflight before it returns opened:true. When
no Chromium browser can be found, or Linux has neither DISPLAY nor
WAYLAND_DISPLAY, it returns {type:'failed'} at once instead of claiming a
window opened and failing later in callback (source issue
joey-41/opencode-mclaw-auth#1, the same shape as inkstone #825).
requireBrowser() is now the only place that looks up the browser, and
holds its one error message. It now looks for Edge, Chromium and Brave on
macOS, Edge on Windows, and microsoft-edge and /opt/google/chrome on Linux.
MCLAW_CHROME_PATH is checked first (X_OK, or F_OK on Windows) and a bad
path gets its own error. Headless renewal still goes through requireBrowser
only, with no display check. The cancel test now uses two independent
AbortControllers (#746 follow-up). README and CHANGELOG updated, 0.5.3.
Reviewed head 40784afa76c89285cb039460f55cc0f9fb059e21, on main
|
||
|
|
89fcfb2ea6 |
autoclaw 0.2.20: a 401 for a body larger than any answered, its sign-in holding, is a 413 (#891)
The CN managed gateway answers a ~200k-token request 401 "AutoClaw 登录状态失效" while the same token gets 200 seconds before and after (hj01857655: 401 at 207k and 218k tokens, every 200 that day at most 129k). The plugin read it as expired, so magpie marked the account signed out and stopped. Now each provider remembers the largest chat body its gateway answered. A 401/403 (not quota, not ban) for a larger body has its sign-in checked on the wallets route; a sign-in that holds there turns it into 413 request_too_large with X-Magpie-Sign-In: kept, so magpie's gateway asks another member (a byte cap rests nobody) or tells the agent to compact. No threshold is guessed. A body no larger than one answered, nothing answered yet, a sign-in refused on wallets, or a check that fails stays the sign-in, as before. Same rule on the overseas path (both hosts refusing) since both providers share the fetch. Run: lockf ~/suite.lock mote-run bun test packages/autoclaw, 109 pass 0 fail. Broken by hand (sizeRefusal returns null at once), wsl-run bun test packages/autoclaw: the CN and overseas 413 tests red, 107 pass 2 fail; restored. Not run: the full bun test (left at the coordinator's call, lock queue long). Not tried: a real ~200k request on the CN gateway; the fixture is the reporter's 401 body. Reported-by: hj01857655 |
||
|
|
efd8da8064 |
tabbit 0.1.3: the international app's sign-in reads "Tabbit Safe Storage", and Keychain failures say what to do
Signing in with "Read Tabbit Browser sign-in" failed at once, with no
Keychain prompt, as "Command failed: security find-generic-password -s
Tabbit Browser Safe Storage -w" (shiqi_40904, Discord, macOS 27.2).
Cause: Tabbit ships two macOS builds, and the plugin knew only one
Keychain name. Read out of both 1.16.27 installers (Info.plist, and the
framework code that picks the name from a flag set at start-up):
- Tabbit.app (com.tabbit-ai.Tabbit, international): data folder
~/Library/Application Support/Tabbit, service "Tabbit Safe Storage",
account "Tabbit".
- Tabbit Browser.app (com.tab-browser.Tabbit, China): data folder
"Tabbit Browser", service "Tabbit Browser Safe Storage", account
"Tabbit Browser".
The plugin found the international store and asked for the China name;
security answered "item not found" (exit 44) with no prompt. The spaces
were never the problem: the name was already one argv entry, and the
message is only Node's way of printing the command.
Now:
- Each store asks its own build's item first, then the other's.
Not found moves on at once; security only prompts for an item that
exists, so a not-found never waits for a prompt.
- With both builds installed, the store that is signed in is read.
- The Keychain call is async with a 2-minute timeout (it was a 15 s
execFileSync that dropped stderr), so the user has time to answer.
- Errors say what to do: not installed or not signed in -> open Tabbit
and sign in; not in the Keychain under either name (both named);
prompt denied (128/51) -> click Allow; no answer in time; keychain
locked (36); anything else carries security's own stderr. Each
points at "Paste Tabbit token".
- The method is now "Read the Tabbit app's sign-in (macOS)"; README
lists both builds.
Run on mote (macOS, Node 22.22.0, Bun):
- node --test tests/*.test.mjs: 83 pass, 0 fail. bun test (temp HOME):
83 pass. bun scripts/check.mjs: exit 0.
- Broken by hand: safeStorageNames returning only the China name (the
old behaviour) turned 3 tests red, among them "the international
build signs in with its Tabbit Safe Storage item (the report)".
- Again after rebasing onto
|
||
|
|
ff9d3a6446 |
system-prompt 0.1.1: models matches a model's own name, and a routing group's try on it
@liucl on X (11-09): a prompt only for gemini-3.8-flash. `models` was
checked with String(body.model ?? ctx.model).startsWith(m), but an agent
wired to magpie names its model magpie's way, provider first
(google/gemini-3.8-flash, openrouter/google/gemini-3.8-flash), or names a
routing group (group/...). So "models": ["gemini-3.8-flash"] never
matched, though the README said "models whose names begin with one of
these prefixes".
A prefix now matches the whole id or the part after any "/" of it, case
aside; full-id prefixes (google/, deepseek) work as before. magpie's
middleware gets the agent's body at onRequest (ctx.model is modelOf(body),
serveAgent in internal/gateway/middleware.go), so a group request names
the group there. The member is known on each try: onProvider gets
ctx.provider {id, model} and can change that try's body
(docs/subsystems/gateway-middleware.md, triedOn). A request onRequest
didn't match is matched there against the member's model (and id/model),
so only the tries on gemini-3.8-flash get the prompt. ctx.state.given
keeps a try from adding it a second time after onRequest did.
Run on mote: packages/system-prompt bun test, 24 pass 0 fail (13 new
cases); bun scripts/check.mjs, all ok. In magpie's own engine: a
throwaway test in a detached magpie worktree at origin/main (removed, not
committed) loaded this module through internal/middleware's Begin,
Request and Tried in moejs: google/ and openrouter/google/gemini-3.8-flash
got it once, gemini-3.8-pro none, group/fast got it on the google
gemini-3.8-flash try and not on a deepseek try, no failures counted.
Broken by hand: with the old startsWith in onRequest, the 4 name cases go
red; with onProvider not exported, the 2 group-try cases; without
ctx.state.given, the "not given it twice" case.
Not tried: a real agent through a real magpie gateway and Gemini account.
Without override, an agent's own system prompt is kept and none is
added, as before; the README's example sets override.
|
||
|
|
065758f58b |
trae 0.2.33: a model whose top level is extra_high reaches max, sent as extra_high
@avalongarden6 on X (11-09, with screenshots): TRAE CN's app offers DeepSeek-V4.1-Flash, GLM-5.3 and Kimi-K3 思考强度 轻/高/极高, and 极高 is the model's maximum. magpie ranged the Trae CN member of a routing group 低–很高 (low–xhigh) while WorkBuddy, Qoder and WENMAI members ranged …–最高 (max). magpie offers a group the levels its members share (buildGroupEntries in internal/provider/group.go), so with Trae CN in it the group lost max for every member. A list entry whose top level is extra_high and that names no max of its own is now offered max beside low/high/xhigh (offered, in variantsOf), and effortOf sends max as extra_high, as it sends xhigh. magpie reads the variants' keys as the model's Efforts (internal/provider/plugins.go), so the member ranges 低–最高 (effortSpan in app.js) and a group set to max fits max to the member's own levels (fitFor, catalog.NearestEffort), finds it, and the plugin sends Trae extra_high. An entry that names Trae's own max keeps it: max is max, extra_high is xhigh. A model topping lower (light/high) is offered no max and sent none for it, as before. Trae has no mover in magpie (no trae in internal/provider/migrate*.go), so no min is raised. Run on mote: packages/trae bun test with HOME under a temp dir, 246 pass 0 fail; bun scripts/check.mjs trae ok (registry ok). Broken by hand: without effortOf's max -> extra_high line, 4 reasoning tests go red (the #434 chatBody case, the variant round trip, the new max/xhigh mapping test and the fetch-level max test); with variantsOf offering the entry's own levels only, 4 go red (the variant lists and the new test). Not tried: a real TRAE CN account (no request with extra_high from max was sent to Trae itself), nor a magpie routing group end to end; the range and the group's max are read from magpie's code, not seen in its GUI. A user who ticked a Trae model's levels by hand in magpie keeps that list, without max, until they tick it. |
||
|
|
1aab125bf1 |
kiro 0.1.34: each model shows Kiro's credit multiplier
01huadalang on Discord: "kiro 加上积分倍率消耗". Kiro's List-Available-Models gives each model rateMultiplier with rateUnit "Credit"; listModels now carries it as the model's rate, which magpie's plugin host reads (rateOf) as Model.Rate, on the account's list and on the config's model. A null, non-number, zero or negative multiplier, or a unit other than Credit, gives no rate. Values from a real Free account on 11-09 (origin KIRO_CLI and AI_EDITOR answer the same, and kiro-cli chat --list-models shows the same rate_multiplier): auto 1, claude-sonnet-4.5 1.3, claude-haiku-4.5 0.4, deepseek-3.2 0.25, minimax-m2.5 0.25, minimax-m2.1 0.15, glm-5 0.5, qwen3-coder-next 0.05. rate.test.mjs keeps sonnet's and the default model's objects as Kiro sent them. Usage is not multiplied again: the credits a request's meteringEvent reports (usage.credit) already include the rate. One prompt cost 0.005349 on haiku and 0.017385 on sonnet, 3.25x, which is 1.3/0.4. The README says so. Run on mote: packages/kiro bun test with HOME under the temp dir, 170 pass 0 fail; bun scripts/check.mjs kiro ok. Real run: listModels with kiro-cli's sign-in returned all eight rates and runtimeModel carries them. Broken by hand: without the rate in listModels both rate tests go red; without the unit check the "no rate" test goes red. Not tried: a Pro account's list (only Free); the rate in magpie's GUI. The full root suite at this head was cut off when mote dropped mid-run (connection closed by the host); it was not run to the end. |
||
|
|
c8125b92b5 |
commandcode 0.1.24: a Go, GOAT or Pro Credits window tells its count in credits, so magpie adds accounts up
chen2652 on magpie's Discord (v0.1.3361): three Command Code Go accounts, folded together on the Routing page, showed no summed credits. The Credits window of a units plan said only its share and a display string, so magpie's mergeQuotas could only take the mean of the shares, and only for cards on one plan. It now carries amount (the credits used, as the display rounds them), limit (the month's pool) and unit "credits", so magpie adds them up: "16.40 / 30 credits". Bought and free credits (dollars at model cost) left the display's "+ $X extra" for the account's balance, a row of its own under the windows on magpie's Usage card. With a limit set, magpie's GUI and TUI say the count from amount and limit, not the display, so the extra would have been lost from the card otherwise. Not changed: Max, Ultra and Teams Pro, whose Credits pool is dollars, keep display and share only (magpie would print "$" as a unit after the numbers). Run: bun test in packages/commandcode on mote (100 pass, 1 skip, as before), bun scripts/check.mjs (all ok). The test expectations for the units plans' Credits window now include amount, limit and unit, and GOAT's bought credits are the balance. |
||
|
|
d54df279c0 |
window-warmup 0.1.4: Antigravity windows are warmed right after they reset, the service token survives restarts, and a new task opens at the bottom (YangHonghang, #878)
Antigravity-style idle cards (a resetsAt that rolls with each read, or the old reset + 5h once a window has lapsed) are now read as idle and warmed right after the reset; the service token is kept in the plugin's data folder so an open page survives a host restart; a page whose token is refused reloads once (an ww-reauth=1 marker in its URL stops a reload loop and is removed after the next good request); a new task opens at the bottom of the list. Reviewed at 108d4752539b12e18f52aec7e320cf069b159792, run on macOS (mote, Bun 1.4.2, HOME and TMPDIR in the run's own folder, Playwright 1.62.0): - packages/window-warmup `bun test`: 285 pass, 0 fail, 0 skip (browser.test.ts ran in Chromium and WebKit). - `tsc --noEmit`: exit 0. `bun scripts/check.mjs window-warmup`: registry.json and window-warmup ok. dist matches a fresh build (tests/dist.test.ts). - Broken by hand, each red in scheduler/server/app tests: the 60s gap guard, the revoke branch's `resetRolls = false`, the probe wake-up's minDelay, the per-resetsAt probe cap (probedFor), the alreadyReloaded guard, and reauthURL's marker. - A review-only browser test (not committed): a sandbox="allow-scripts" frame reached through a guide page that location.replace()s to the service, then the token rotated twice. In both engines the frame reloads with ww-reauth=1, the marker is removed by replaceState after the next good request, and the second rotation reloads exactly once more. The first rotation reloaded twice (two in-flight 401s each call location.replace); it settles and does not loop. Not tried: a real Antigravity account (the author ran it 2+ days in Docker), Windows and Linux. |
||
|
|
bc5b8332ec |
kimi-desktop 0.1.6: per-role reasoning effort and context input budget (#813)
kimi-desktop 0.1.6: separate reasoning effort and an optional context input budget for the primary and secondary roles.
The change (f07e7f4a..1d14a185, since the round-6 approval):
- The settings page and API save `<role>ReasoningEffort` and `<role>ContextTokens` for each role. Only efforts and context limits the catalog publishes are offered; an unknown limit allows no custom budget.
- Inference drops Kimi's top-level `thinking`, `reasoning` and `reasoning_effort`, and sends the chosen effort, or none for the provider default. Kimi's native menu aliases no longer choose the model.
- A custom budget counts a copy of the request through magpie's `/v1/messages/count_tokens`. Over the budget gives 400 `context_length_exceeded`; a failed count gives fixed 503 `context_count_unavailable`. No generation is sent in either case. Without a budget, nothing extra is sent.
- Role-scoped worker profiles (`v2:[model, role]`) tell primary from secondary even on the same model. Older roleless profiles keep their binding and use defaults.
- 1d14a185 removes blank lines only.
Run at 1d14a1859f63fd4bb512d492d1de419ad3e6c79a on mote (macOS, Bun 1.4.2, HOME/TMPDIR/XDG in the run's own folder):
- `bun test` in packages/kimi-desktop: 626 pass, 0 fail, 29 files.
- `bun scripts/check.mjs kimi-desktop`: exit 0.
- 14 hand breaks, each red in the package suite:
- drop `applyReasoningOptions`;
- strip thinking fields only when an effort is set;
- drop the budget check, or make it `>=`;
- `useFresh` false, or without its model check;
- a legacy roleless profile treated as primary;
- a profile name without its role;
- no `registerRoles`;
- no `optionsMatch` in save;
- no `refreshLiveModelOptions`;
- count with `redirect: 'follow'`, or with no reply size limit;
- a 131072 fallback for an unknown catalog context.
- CI at the head: test and on-npm pass. The PR merges onto main f379bf90+ with no conflicts.
Not blocking, left for a follow-up:
- Each inference now reads connection.json (adapter.mjs:547) with no fallback to the live connection. An unreadable file turns every request into 502, even without a budget.
- The comment above `applyReasoningOptions` ("Preserve the legacy connection untouched…") no longer matches the always-strip policy.
|
||
|
|
e68748a78e |
opendesign 0.1.11: cap glm-5.3-flash and gemini-3.8-flash output at what amr-link takes (#827)
amr-link's /v1/models publishes context_budget 232000 for glm-5.3-flash and 264000 for gemini-3.8-flash. Its API refuses anything over 131072 and 65536 with a 400, "Open Design: The request could not be completed.", which names no field. Gitleonan measured this on 2026-11-09 with two accounts (one of them took 232000 for GLM). A client that sends no limit, such as Codex, gets the published number from magpie (forwardTranslated's askedOutput), so every turn on those models failed. modelOf now caps limit.output for those two models (CAP). It applies to the seed and to every live catalog entry. A copy an earlier version kept in the provider's config is capped too: config hands kept models back as they were. models.mjs is left alone because refresh-models.mjs writes the vendor's number back into it, and the live catalog's number overrides the seed's anyway. A catalog number under the cap is used as it is. This does not fix the red test dot through a Remote magpie. That comes from the stream glm-5.3-flash sends when it reaches max_tokens: it ends after content_block_stop with no message_delta or message_stop. magpie's test asks for 16 tokens, and the model always thinks first, so it always reaches the limit. On the issue I point to the magpie code for that path. Run (on mote): bun test packages/opendesign gives 30 pass, 0 fail. Broken by hand: with origin/main's index.mjs, the new test fails, and with the config cap removed (the modelOf cap kept), it fails on the kept gemini copy's 264000. Not tried: a real amr-link request. There's no Open Design account here, so the caps are the reporter's measurements, not ours. Reported-by: Gitleonan |
||
|
|
e2d15ba653 |
qoder 0.2.64: a model off for credits used up is a 429 quota (#880); qodercli 1.21.2's single-file runtime on Windows (#879)
#880: on an international personal_professional_trial account whose 800 credits were used up, Qoder's listing had dfmodel off, and ask() answered its own 400 `unknown or disabled model "dfmodel"`, which magpie reads as the request's fault: a routing group neither failed over nor rested the account (yetone/magpie#5726). - models() records the keys the live listing names and has off (l.off). - ask(): a known model the listing has off, on an account whose usage (/sash/api/v2/me/usage, device token rotated once as usage reads it; a PAT account's on its job token) says the pools spent in turn have no credits left, is answered 429 "usage limit reached: the account's credits are used up (800 / 800 credits), and Qoder lists "dfmodel" off for it until they refresh", before any job-token renewal. magpie's failure() reads that as failQuota (429 + usage limit, no brokeWords). - Kept as before: a model off while credits are left, or when the usage can't be read (unknown, not quota), goes to the #484 renewal and the 400; an id Qoder never served is the 400 at once with no usage read. - usage() reads the envelope through the same usageEnv helper. #879: qodercli 1.21.2 on Windows caches the helper as .qoder\.bin\runtime-info-win32-x64-<hash>.exe beside sgsdk.dll, and campaignRuntime took only the 1.1.66 folder umid-win32-<arch>-<hash>\. Both are now taken, the newest by mtime; another arch's file and a non-.exe (a .tmp) are passed over. Run (mote, load ~900): packages/qoder bun test 424 pass 0 fail; bun scripts/check.mjs qoder ok. Broken by hand: the new tests against the old index.mjs: 5 red (#879's single file found the umid folder instead; #880's 429 was 400; spentOf missing). Fixtures: #879 uses the reporter's file names (runtime-info-win32-x64-faa59bbe39db0bd1.exe, sgsdk.dll). #880's issue gives the plan, 800 credits used 100% and dfmodel off, but not the listing's or usage's bytes; their shape is the other qoder tests'. Not tried: a real out-of-credit Qoder account; Windows itself (the runtime test forces platform win32 on mote); where Qoder desktop 1.21.2 keeps its helper now that resources\umid is gone (the reporter's second point; QODER_RUNTIME_INFO still covers it); the repo-wide bun test (mote at load ~900; only packages/qoder changed). Reported-by: zane668 (#880) Reported-by: ArmedHelicopter (#879) |
||
|
|
40c9725666 |
autoclaw 0.2.19: rewrite Grok CLI's identity line for the CN gateway (#875)
Grok CLI through AutoClaw 国内 got four 406s in a row on 11-08. Its system prompt opens "You are Grok released by xAI. You are an interactive CLI tool ...", and FLAGGED had no rule for it, so the line went out as written. Grok CLI writes that line in two shapes. Its own system_prompt.txt files (grok 1.0.67, in ~/.grok/sessions on this Mac) show "You are Grok released by xAI." for a model it doesn't know, and "You are Grok 4.7 released by xAI." for one it does, in the interactive and autonomous variants alike. The reporter's suggested regex matched only the first. The new rule takes both: "You are the Grok[ 4.7] assistant released by xAI". It touches only the "released by xAI" sentence, so "You are Grok-Mini." or "You are Grok, a helpful assistant." are not changed. REFUSED_HINT now names Grok CLI. Run (on mote): bun test packages/autoclaw gives 104 pass, 0 fail. The new tests use the reporter's line byte for byte, plus the versioned and autonomous lines from Grok CLI's own files. Broken by hand: with origin/main's index.mjs and the new tests, 3 fail: the Grok rewrite test, the all-lines table and the CN loader test. Not tried: a real AutoClaw 国内 request. There's no account here, so nobody has checked that the rewritten line passes the gateway. The same pattern has passed for ZCode and Codex. Reported-by: hj01857655 |
||
|
|
f379bf907c |
doubao-work 0.1.2: say at once that an open Doubao must be quit
The owner's sign-in spun with no end. Doubao runs one copy at a time: with the user's own Doubao open, the plugin's copy (its own profile, debugging port) quits within a second of starting, so the port never opens. waitSignedIn took every error but app_missing as "not signed in yet" and started it again for five minutes, saying nothing. - App.start looks for a running copy of the binary on another profile before it starts one, and fails with app_busy. The user's copy can't be driven instead: Chromium allows debugging only off the default profile. - waitSignedIn ends on any app_* error (busy, missing, start timeout) and on abort; only a window still loading is waited for. - Sign-in and requests say: quit Doubao (⌘Q) and try again. A request gets 503. Run: bun test packages/doubao-work on mote (+ check.mjs), Linux (WSL) and Windows: 28 pass, 0 fail. With waitSignedIn's old catch put back, the new waitSignedIn test is red (60s timeout instead of app_busy). Live on this Mac, with a Doubao running from another profile: waitSignedIn threw app_busy in 92ms, nothing spawned, no profile made. That a second copy quits was tried first: Doubao with a fresh profile and port exited in ~1s, port never up. Not tried: the owner's Mac (10.0.0.175) itself. |
||
|
|
e918aa6c4b |
doubao-work 0.1.1: plain model names, text-only input
magpie shows a model as "<name> · <provider>", so "豆包工作 · 自动" read "豆包工作 · 自动 · 豆包工作" in pi. The names are now Doubao's menu names. The models gave no modalities, so magpie asked models.dev about "auto", another vendor's model, and told pi it takes images and a thinking level map. Each model now says text in, text out. Run: bun test packages/doubao-work on mote (with check.mjs), Linux (WSL) and Windows: 25 pass, 0 fail. The new assertions fail on 0.1.0's names. |
||
|
|
29ceed20c9 |
doubao-work: test the sign-in and the app start on every OS
c1ed1b51's publish run went red on ubuntu: the sign-in test read the real binary(), which is "" off macOS, so the callback said "macOS only". Its App test spawned /bin/sh, which Windows doesn't have. Both passed on mote (macOS) only. createPlugin takes appBinary (default binary()), and the sign-in test gives each case: a Mac path signs in, "" says macOS only. A new test holds binary() per platform and DOUBAO_WORK_APP. The App test uses a file it makes. Run: bun test packages/doubao-work, 25 pass on mote (temp HOME, as CI), wsl-run (Ubuntu 24.04) and win-run (Windows 11). bun scripts/check.mjs ok. |
||
|
|
c1ed1b511e |
doubao-work 0.1.0: 豆包工作 as a provider, by driving the Doubao desktop app
Doubao Work runs its agent loop in ByteDance's cloud and has no API. This
plugin uses the desktop app the way a person does and gives the reply back
as an OpenAI chat completion:
- cdp.mjs (knows nothing about Doubao): starts a Chromium-based app from a
profile of its own with DevTools on a port it picked and saved, reuses it
while it runs, never kills anything; Page evaluates and presses keys.
- doubao.mjs: per request a new 工作任务, switched to 云电脑 (Doubao's agent
never touches this computer), the model picked (Pro needs a paid plan:
403), the whole request written into tiptap one paragraph a line, Enter,
and the reply read from the message's content_blocks_v2 (markdown, and
thinking as reasoning_content) until is_finish. One request at a time.
- prompt.mjs / openai.mjs: system prompt, tools and turns flattened into one
message; tools asked for as <tool_call>{json}</tool_call> and given back
as tool_calls; SSE that holds text from the first call (or a tail that
may start one), and that throws a failure before the reply begins so it
goes back as an HTTP error.
- Sign-in waits for the account in the separate Doubao window.
Run:
- bun test packages/doubao-work on mote: 24 pass.
- Full suite on mote the way CI runs it (HOME=$(mktemp -d) bun test):
6936 pass, 20 skip, 0 fail. bun scripts/check.mjs: doubao-work ok.
- Broken by hand: sleep without its aborted check; "an abort between two
polls stops the ask too" goes red (runs to the 180s idle timeout), green
with it. Found by the first run: an abort landing between polls was lost.
- Live, the loader against a signed-in Doubao 147 on macOS: auto plain
answer 200 in 3.9s; doubao-2.1-lite streamed Bash tool call (first byte
3.6s, total 4.8s); tool result follow-up answered "412 lines"; Pro gave
403 doubao_upgrade; a 300-word story streamed as 20 content deltas with
its ```python fence kept; a client abort ended the stream and the next
request answered 200.
Not tried: through magpie's plugin host and a real agent (Claude Code
sized requests); Windows and Linux (unsupported, sign-in says so). A
stopped request stops being read but Doubao finishes its task (README).
|
||
|
|
b228cc6a68 |
sap-aicore 0.3.2: accept session metadata, forward context_management with its beta (caikn, #851)
sap-aicore 0.3.1 refused two top-level Messages fields that real agents send:
- `metadata` (omp sends `metadata.user_id` on every request): now accepted and
dropped in `bedrockBody`, the one builder both /invoke and
/invoke-with-response-stream use, so it never reaches Bedrock.
- `context_management` (omp and Claude Code with thinking on send
`{"edits":[{"type":"clear_thinking_20251015","keep":"all"}]}`), with
`anthropic_beta`: both are accepted as opaque native fields and forwarded
unchanged. When `context_management` comes without `anthropic_beta`, the body
gets `anthropic_beta:["context-management-2025-06-27"]`, which SAP/Bedrock
needs (without it SAP answers 400 "Extra inputs are not permitted"). An
explicit `anthropic_beta` (including [] or null) is sent as given. SAP judges
unknown edits and betas; its 400 surfaces once, redacted, with no retry. The
author verified the literal directive against live SAP deployments (Opus 4.8,
Opus 4.6, Sonnet 4.6, whole replies and streaming). Closes #864.
The test for #812 ("late failure does not delete a newer candidate") now waits
for the first token fetch to start instead of a 10ms sleep, and checks r1
failed, r2 succeeded and two fetches ran. Closes #812.
Version 0.3.1 -> 0.3.2 (the dist branch has 0.3.1; the package is not on npm).
Run at 76e1bfef2 (base 966cf717; origin/main
|
||
|
|
46fef953c8 |
catpaw 0.2.1: the credits' refresh time is the window's reset, so Smart routing ranks the account (#867)
The 可用积分 window was always aside with no reset, so Smart routing never
ranked catpaw accounts by it. The credit/balance response the plugin
already reads carries userPlan.nextRefreshTime, a ms epoch string
("1796054400000"), when the plan's credits refresh. It is now the
window's resetsAt; magpie's Allowance.Renewal ranks by it, soonest first.
Why resetsAt and not runsOutAt (the issue's suggestion): 重置 is the
window's renewal; runsOutAt is for credits lost apart from a reset, and
with runsOut set the GUI would say "N credits expire", which nobody has
checked. Routing ranks both the same (Renewal takes the sooner).
used stays 0 and there is no limit: the vendor gives only the balance,
and a difference of balances would be made up. The GUI's rendering of
the window is unchanged (aside is not sent to it); it now shows the
reset line. A credit of 0 is not read as used 100: catpaw has free
models that may still answer.
No reason for aside was recorded (
|
||
|
|
9b41df1507 |
kiro 0.1.33: an account in Kiro IDE's CreateResponse experiment is asked at /v1/responses, as the IDE asks it (#842, #848)
ThirdTimes (#842, #848): on one Builder ID account the plugin (0.1.32) was answered 429 USER_REQUEST_RATE_EXCEEDED on generateAssistantResponse, and Kiro IDE 1.4.121, 11s later, was answered. The IDE's log says "api=CreateResponse armSource=experiment callPath=main". The version strings the plugin sends already match the IDE (1.4.121, the update feed's latest, 2026-11-06). The difference is the call. Kiro puts accounts in a create_response_api experiment, and an account in its arm is asked at POST runtime.<region>.kiro.dev/v1/responses. The IDE's own generateAssistantResponse title call on that account was 429 too. All of this is read from the IDE's extension.js (kiro.kiro-agent, in the 1.4.121 linux tarball, which was not run): - The experiment is read as ExperimentConfigService reads it: GET /featureConfiguration?origin=AI_EDITOR&version=1.4.121 with x-amzn-kiro-profile-arn. The key is sha256hex("kiro-feature-config-key-salt-3e9b1d7a" + "create_response_api"), and the arm's value is "create_response". The result is kept 15 minutes per sign-in. A failed read is asked again after 60s and keeps the last good config, and the read has a 5s timeout. With no config the account stays on generateAssistantResponse, as the IDE's default does, so an account outside the arm is sent what 0.1.32 sent. - CreateResponse is sent with the IDE's headers: the plain IDE user agent (no aws-sdk prefix, no amz-sdk-*), x-amzn-kiro-origin AI_EDITOR, x-amzn-codewhisperer-optout, x-amzn-kiro-profile, TokenType and x-amzn-kiro-attempt "n;max=3". The body is {model, input, tools, stream, origin, profileArn, metadata kiro:agent_mode/kiro:conversation_id, reasoning}, made from the request built for generateAssistantResponse (history, tool calls and results, images as data: URLs). The system text stays at the head of the first message, as with the IDE's system_field_injection off. - The SSE reply is read into the same events the old frames gave: text, reasoning and its signature, refusals, function calls (pieces or whole), stop reason, context %, and credits. An error before any answer becomes the status generateAssistantResponse's would have, mapped through the IDE's reason table (rate_limit_exceeded is USER_REQUEST_RATE_EXCEEDED, context_length_exceeded is CONTENT_LENGTH_EXCEEDS_THRESHOLD, and so on). The 0.1.32 429 retry applies to both paths. Not done: the auxiliary path (create_response_api_auxiliary; the plugin has no auxiliary calls), the x-amzn-kiro-fallback header, documents as input_file, and reasoning items in history. Run on mote at base |
||
|
|
e7af7856e5 |
inkstone 0.1.4: strict fake /keys, refused-key cleanup test, injectable probe backoff (#841)
The fake GET /api/tokenplan/v1/keys in keys.test.mjs's serveKeys() now
behaves like the live platform: no `uaa-token` cookie gives -10002, and
any query parameter gives -15100. A new test covers the third listKeys
call site, the 401 cleanup in ensureKey: the probe refuses the new key,
and the test checks that the refused key is deleted by name (#839).
probeWithRetry takes its delays as an optional third argument, and
ensureKey passes `probeDelays` through to the probe of a key it just
created. The default delays are unchanged, so nothing outside tests
behaves differently. The new test passes [0] and doesn't wait through
the ~15s backoff. Because lib/ changed, inkstone goes to 0.1.4.
Run at the reviewed head c4ab4717, merged onto main
|
||
|
|
7e01fa8118 |
workbuddy 0.2.26: the declared list gives each model the config's reply limit
The list declared before an account's own config is read (a key whose CLI reads no config, a config WorkBuddy doesn't answer) said output 0 for every model, and magpie filled in models.dev's: 384000 for deepseek-v4.1-flash, where WorkBuddy's /v3/config says maxOutputTokens 128000. Agents were told a 384000-token reply. The declared tuples take a fifth field, the output, for every model a real config in testdata names: deepseek-v4.1-flash and deepseek-v4-pro 128000 and glm-5.3-flash 131072 on workbuddy; default-model 24000, fast-model 32000, primary-model 72000, hy3 64000, gemini-3.5-flash 65536, glm-5.2 48000 and kimi-k3 32000 on workbuddy-ai. The rest stay 0 (left to models.dev, as before). The live list already carried the config's value. Run: HOME=$(mktemp -d) bun test packages/workbuddy/ on mote, 335 pass; bun scripts/check.mjs ok. Broken by hand: with index.mjs back at 0.2.25, the new test fails (hy3 64000 expected, 0 received; deepseek-v4.1-flash 0 for 128000). Not tried: a real WorkBuddy sign-in or key; the outputs of models no saved config names (hy4-preview-f, glm-5.3, kimi-k3-1, ...). Reported-by: sayagoodbyeplz (Discord) |
||
|
|
93dacd738f |
zcode 0.1.57: the busy hold's answer arms no quota rest (#859)
A busy hold (0.1.54) armed while a Start Plan request was in flight
answers that request with the hold's own 429 from askBusy. It carries no
3008, so busy() does not claim it and spentUp counts it as a spent gift.
On a -Trial pick that rested the model in `blocked` for a minute, and
the next -Trial asks were answered locally "over its quota ... exhausted"
with quota left. Under free first it rested the model the same way
before the replay on the plan.
busyHeldAnswer now sets `x-magpie-busy-hold: 1`, and the -Trial and
free-first gift paths read it before spentUp: the hold's answer passes on
as the rate limit it is and arms no rest. Free first still replays a
held answer on the plan, through the plain >= 400 branch. The gate's
queue answer and the hold's early returns never reach those paths.
Run at the reviewed head e5858d7b merged with origin/main
|
||
|
|
5db645541a |
fingerprint 0.2.3: History expands saved runs in place, an About tab, and a launcher fallback address (#858)
KaranocaVe (#858): History expands a saved run in place (results, cancel and
export for that run, by id) instead of replacing the current run; a new About
tab links the project and lm-detector (anchors standalone, copy buttons in
magpie's frame); the desktop launcher shows the local service address after
4s if navigation stalls; integration.md documents Windows' excluded port
ranges. Version 0.2.3.
Reviewed at d272d0c14fed1c1b654f970f358fabea4b2fe210, run on mote (macOS) in
a copy of the PR tree with a temp HOME in the run folder:
- packages/fingerprint: bun install --frozen-lockfile, typecheck ok, bun test
37 pass 0 fail, bun run build. diff -r of the PR's dist against the rebuild:
identical (dist/ui, plugin.js, cli.js).
- bun scripts/check.mjs fingerprint: registry.json ok, fingerprint ok.
- Bundle: the only new URL strings are the two About links
(github.com/KaranocaVe/magpie-fingerprint, github.com/Ikaleio/lm-detector);
no new fetch/eval/Function/WebSocket/sendBeacon; CSS has only the existing
data: SVG.
- Playwright 1.62.0, Chromium and WebKit, en and zh-CN, 1100px and 380px,
standalone and inside a parent frame, with the API stubbed from the demo
server's /api/bootstrap (a running, a completed and a failed run): History
expands a row (aria-expanded true), cancel from an expanded running row sends
one cancel and the row shows Cancelled, About shows 2 anchors standalone and
2 copy buttons framed (copy shows Copied in both engines), ArrowRight/Left
wrap across the three tabs, no horizontal overflow, no request off the stub
origin. 48 screenshots checked.
- The one page error, standalone only ("Cannot destructure property 'context'"
from the vendored bridge's hello), is the same on main
|
||
|
|
03ab6d66f4 |
agy-cli 0.1.2: list what agy acp offers before the first request (#854)
Until a request had opened an ACP session, agy-cli listed Gemini only
(offeredFilter), so a user who hadn't sent a Gemini request yet saw no
Opus (chriskan666 on Discord). provider.models() now asks agy's ACP
server itself, as yulong-ge's antigravity-official-acp (#854) does:
a short `agy acp` with the plugin's own clientInfo, initialize and
session/new (no prompt), reading the session's model option and
models.availableModels into the same offered set a request's session
fills. The session is closed when agy says it can be, and the process
and its temp folder are removed.
- Only provider.models() probes; a request opens its own session.
- It runs once `agy models` has answered (agy is signed in), at most
once a minute while the offer is unknown, and not at all once known.
- models() waits for it as briefly as for the listing (500ms) and
never longer; a failed or timed-out probe (30s) keeps Gemini only.
- An agy older than 1.4.12 gets no session.
#854's own code reads session/new's availableModels, not `agy models`
(its body says `agy models`); agy-cli already parsed `agy models`, so
nothing of that parser changed.
Run at origin/main
|
||
|
|
ae51883634 |
grok 0.2.6: a stream cut before its first byte is asked again (#852)
A Responses stream from Grok that dies before its first byte (the
connection reset, nothing sent yet) is asked again, up to three times,
before the answer is returned. A retry's own answer is noted, so a 429
or 401 on a retry comes back as itself, not folded into a 200.
Once a byte has arrived, response.created and reasoning included, the
stream is passed on at once, one upstream chunk per pull, and cancelling
it cancels the upstream read. A later cut is not asked again and nothing
is written in its place: the stream ends, and magpie 0.1.3298 or newer
(yetone/magpie 29bfd5dc8) closes it as a whole response.failed with
created_at and sequence_number. The frames 0.2.6's first version wrote
had no sequence_number, and Grok Build failed the turn on them. An
upstream response.failed, error or response.incomplete is passed on
unchanged, and an end with no bytes is not asked again.
Run on mote (macOS 27), at 463afb79, each in a temp HOME:
- packages/grok `bun test`: 107 pass, 0 fail.
- `bun scripts/check.mjs grok`: ok.
- Repo-root `bun test` with HOME=$(mktemp -d): 6878 pass, 20 skip,
0 fail. A first run with HOME under /tmp had 21 reds in devin, zcode
and sap-aicore. Those tests refuse a HOME outside $TMPDIR, and
plugins main
|
||
|
|
ecab839688 |
agy-cli 0.1.1: sign in to Google from magpie, through agy's own agy acp --login
treeman_26897 (Discord #feedback, 11-08): Sign in on agy-cli opened no
browser, and asked for a field to paste the callback into.
Cause: the plugin had no sign-in of its own. Its one method only checked
whether `agy models` worked, and if not it said to run `agy` in a
terminal. magpie still showed "Finish signing in ... in your browser",
but nothing ever opened a page.
Now the method is oauth:
- Already signed in to agy (`agy models` lists models): done at once. No
page opens and no agy login starts.
- Otherwise the plugin starts `agy acp --login` (agy 1.5 and later). That
prints Google's link and reads the code from stdin. magpie opens the
link on the user's machine and shows its code field (method "code").
- The field takes the code antigravity.google/oauth-callback shows, or
that page's whole address.
- No loopback is involved, so it works with Remote magpie and in Docker.
- agy trades the code and keeps the token in its keyring. The plugin never
sees the token.
- The account is saved only once `agy models` lists models afterwards. A
wrong, empty or expired code fails, and nothing is saved. Google's
invalid_grant is worded as "turned the code away".
- The link waits 15 minutes, then agy is stopped. A new sign-in stops the
previous agy.
- agy 1.4.x has no --login. It gets "update with `agy update`, or run
`agy` in a terminal".
- The login runs with auto-update off, like the plugin's other agy
processes.
Import from a file is not added. agy keeps its credentials in the system
keyring, not in a file under ~/.gemini/antigravity-cli.
The empty account the report also describes was not reproduced on
current magpie. A failed sign-in saved nothing, in the GUI and the CLI.
This version also needs models listed before it saves anything.
Run:
- On mote (macOS, Bun 1.4.2) at this tree, `bun test` in packages/agy-cli:
7 pass / 0 fail.
- `bun scripts/check.mjs` and `bun scripts/check.mjs agy-cli`: exit 0.
- New smoke checks, with the old index.mjs put back: red, at "signed in
to agy already, the sign-in saves agy" (the old method has no callback).
- Real agy 1.5.3 on mote, sandbox HOME, current magpie `web`, through
Playwright:
- Providers > agy-cli opened Google's sign-in page, and the code field
showed.
- A bogus code gave "Sign-in didn't finish: Google turned the code
away...". /api/providers had no agy row.
- `magpie plugin login agy-cli`:
- With a bogus code, the same error.
- With real agy 1.4.12, the update message.
- Real agy 1.5.3 on Windows 11 (win-run) and on Linux (WSL2 Ubuntu 24.04,
wsl-run): authorize gave Google's link in about 2s, and a bogus code
failed with the invalid_grant wording. No agy was left running.
Not tried:
- A real Google sign-in through to models. Only bogus codes were used, and
no real account was touched.
- magpie inside a Docker container.
Reported-by: treeman_26897
|
||
|
|
d7adec8f74 |
gcp-ai: the fake gcloud in the ADC consent test exits only after its ADC write lands
The "ADC setup reads gcloud's complete consent URL ..." test's
writesThenFails fake started the ADC write on one 5ms timer (void, not
awaited) and exited on another 40ms timer. beginAdcLogin stats the ADC
file on a non-zero exit to tell "saved, then the quota probe failed"
from a failed consent, so when the write took more than ~35ms on a busy
machine the exit was read before the file existed and the test saw
"gcloud could not set up ADC". Real gcloud has written the file before
it exits, so the plugin is right and the race was the test's: the fake
now emits exit only once its write has resolved.
Run on mote (Bun 1.4.2, TMPDIR and HOME inside the run dir):
- reproduced: the write's timer moved 5ms -> 60ms on the old test: red
("gcloud could not set up ADC") every run.
- fixed, with a 100ms sleep injected into fixture.setAdc: green.
- broken by hand (the fake's exit no longer awaits the write), same
100ms injection: red. Injection removed afterwards.
- bun test packages/gcp-ai: 95 pass, 14 skip, 0 fail.
- bun scripts/check.mjs gcp-ai: ok.
- repo-root bun test: 6867 pass, 0 fail (499 files).
Only a test changed, so no version bump.
Fixes #835
|
||
|
|
966cf71764 |
kiro: a 429 throttle is waited out and tried again, as the Kiro IDE does (0.1.32)
onemezao on Discord: a "hi" answered, and the next message straight after was Kiro's 429 USER_REQUEST_RATE_EXCEEDED, while the Kiro IDE on the same Builder ID account and model (claude-haiku-5.5) took two messages in a row (plugins#842, plugins#848). The IDE gets the same throttles; it rides them out. Its chat client (kiro.kiro-agent 1.1.787, dist/extension.js) classifies a ThrottlingException with reason USER_REQUEST_RATE_EXCEEDED or CREDIT_CONSUMPTION_RATE_EXCEEDED (ClientThrottleError) or any other throttle (ServiceThrottleError) as retryErrorType THROTTLING, and its QClientRetryStrategy tries 3 times: Kiro's retryAfterMilliseconds when said, else 1s doubling (20% jitter, 20s max), counting each try in amz-sdk-request and x-amzn-kiro-attempt. It shows "Retrying in N seconds" over 2s. The plugin sent the first 429 back at once, and since 0.1.30 with Retry-After 30s, so magpie didn't retry either. Now paced() sends a chat call the same way: a 429 throttle (those three reasons, or a reasonless "too many requests"/throttling) is waited out and sent again, up to 3 tries, one invocation id, attempt=N; max=3. A wait Kiro says is over 20s isn't held: the 429 goes back with it as before. Usage limits (MONTHLY/DAILY/..., USAGE_LIMIT), model capacity and other statuses aren't retried. A cancelled request ends during the pause and isn't sent again. The last try's 429 keeps 0.1.30's words and Retry-After. The 47.3K input tokens of a "hi" are Kiro's own contextUsagePercentage times the model's window: the agent's system prompt and tools, not something the plugin adds. Run (mote, HOME and TMPDIR inside the run dir): - packages/kiro: bun test, 157 pass 0 fail. - repo root: bun test; bun scripts/check.mjs kiro. Root: 6867 pass, 0 fail, 6887 tests across 499 files; check ok. Broken by hand: paced() returning the first answer (n >= 1) turns 5 tests red (the four new throttle tests in errors.test.mjs and region.test.mjs's rate-limit case). Not tried: a real throttled Kiro account. No Builder ID account that Kiro throttles was at hand, so the retry is checked against the IDE's code and mocked answers only, not against Kiro. Reported-by: onemezao (Discord) |
||
|
|
04f1db9ea8 |
output-strategy: credit manjughosa as the author (#849)
Credits manjughosa as the author of output-strategy: an "author" field in its package.json, and "by manjughosa" / "由 manjughosa 维护。" at the end of its registry summary. No version bump: nothing under lib/ changes, and nothing published changes in a way users notice. Reviewed at 957d2981: the diff is these 4 lines. Both files parse as JSON and have no CR bytes. CI (test, on-npm) is green at this head. |
||
|
|
31080df37d |
agents: add the Eta agent plugin (#845)
Adds the Eta agent plugin (@magpie-community/agent-eta 0.1.0): eta.agent.js descriptor, registry entry and README row.
Run at 43320fbb on mote in a temp HOME: bun test ./packages/eta 5 pass; bun scripts/check.mjs eta ok; npm pack --dry-run 5 files; repo-root bun test 6623 pass / 21 fail, the same 21 as main
|
||
|
|
7d84184c32 |
tabbit 0.1.2: send a fresh unique-uuid on every call, so web.tabbit.ai's sign-in gate lets chat turns through (#837)
web.tabbit.ai answers a chat turn's runs call with 429, code 492 ("Welcome
to Tabbit Browser...") unless the request carries a unique-uuid header.
Tabbit Browser sends a fresh uuid on every API call (a net-export capture
showed four different values across runs, two joins and usage), and the
gate accepts any well-formed one. headersFor now adds
crypto.randomUUID() as unique-uuid to every request, on both sites.
Version 0.1.2; the README's international-site note describes the gate
instead of saying turns are refused (#834).
Test: tests/unique-uuid.test.mjs posts two runs on each site through a
mocked fetch and asserts a v4 uuid that differs per call. No network.
Run at 1bffccd6 merged onto main
|
||
|
|
49d4042e5b |
workbuddy 0.2.25: Hide DeepSeek Harness's name leaves the user's words and paths alone (liby233)
liby233 on Discord: in DeepSeek Harness on DeepSeek-V4.1-Flash · WorkBuddy, a user asked the model to repeat "/root/DSH/Work/OC-182.92.66.95/" word for word and got "/root/the agent harness/Work/OC-182.92.66.95/" back; another model was fine. hide_dsh (0.2.23, on by default) ran /\bDSH\b(?!_)/ and the bare "DeepSeek Harness" rule over every user and assistant text, so a path's DSH segment went to WorkBuddy rewritten. The switch's own description already promised "Paths ... stay as they are". - The bare name is taken out only where dsh wrote it: system/developer messages, Messages' system, tools' descriptions (DSH_PROSE). - User and assistant text get dsh's own lines alone (DSH_LINES: the opener, the checkout and Web GUI lines, "DSH itself"), so the runtime context dsh sends as a user message still loses the name. - Even in the system prompt, a name in a path, file name or identifier (/root/DSH/, C:\DSH\, ~/DSH, DSH.md, DSH-2, @DSH, file:DSH, "/srv/DeepSeek Harness/bin") is left: IN_PATH_BEFORE/AFTER guards. - Siblings: FLAGGED and OPENERS rewrite whole known lines (a comma), not a bare word; no other plugin has a DSH scrub (git grep). - README updated. Run on mote at this tree (mote-run): HOME=$(mktemp -d) bun test packages/workbuddy: 334 pass, 0 fail; bun scripts/check.mjs: all ok. New tests use the reporter's literal path. Broken by hand, each red: user/assistant text through DSH_PROSE again (5 fail, the reporter's case among them); IN_PATH_BEFORE as \b (the path test fails). Not tried: a real dsh request on a real WorkBuddy account. Whether the narrower hide still matters for a ban is unknown, as before. Reported-by: liby233 |
||
|
|
087c36123d |
inkstone 0.1.3: image-caps preflight, a zero-prompt browser sign-in, key calls on the session cookie (#832)
inkstone 0.1.3 (#832, yunwang2442-creator): - Image requests are prechecked before they leave: 8 images, 10MB each, 40MB in all. - A request over a cap gets a local 400 shape refusal, so magpie asks the next account and rests none. - The plan's invalid_media / media_fetch_failed / unsupported_media_type errors become the same kind of refusal. - The body rewrite strips the reasoning fields and sets image detail to auto. - A zero-prompt browser sign-in comes first, and a second browser method reuses a pasted key. - Neither browser method is offered when no Chromium-family browser is found (#825). - The /keys calls ride the session cookie, without the pagination query. Key creation retries the console's -15100 "refresh page and retry". - The #826 metadata token read is kept, and its test is back. - The fake browser is built once per user and source hash (#824), and the title wait reads only on Windows. - maxConcurrency is 4. - The doubled comment line is dropped from every opencode2.mjs copy, agy-cli's included. Reviewed at 88e66bde, on mote (macOS, Bun 1.4.2) with a temp HOME: - full bun test: 6853 pass / 0 fail; both checks exit 0 - bun scripts/check.mjs and bun scripts/check.mjs inkstone: exit 0 - 21 hand breaks: 20 red, 1 not caught (the /keys pagination test calls protocol.listKeys directly; follow-up filed) Not tried: a real InkStone account or sign-in, Windows and Linux runs. |
||
|
|
d34785ae88 |
privacy-gate 0.3.1: guide prompts name a coarse media class, never the raw media_type (#838)
privacy-gate 0.3.1 (siml1169, #838): guide mode names a fixed coarse media class (image, pdf, office, audio, video, unknown) instead of copying the part's media_type into the prompt, so no clipped or fake MIME prefix can reach the vendor. Parameters are stripped first, a candidate over 256 characters is ignored before it is normalised, and the part's kind is the fallback. Bytes are still withheld. Fixes #795. Reviewed at 2b74b6e69ecaf0d20bd9f5fd4580f673da266736 (base = main b8100001; mote, Bun 1.4.2, temp HOME): - packages/privacy-gate `bun test`: 67 pass, 0 fail - `bun scripts/check.mjs privacy-gate` and `bun scripts/check.mjs`: ok - repo root `bun test`: 6822 pass, 20 skip, 0 fail - broken by hand: main's middleware 10 red; no 256 guard, no parameter strip, no office mapping, no kind fallback each 1 red (its own case); echoing the raw candidate 9 red - CI run 42377224277 green Not tried: a real guide-mode request through magpie. |
||
|
|
1df427773b |
autoclaw 0.2.18: the README reads like a manual, and the sign-in's non-2xx guard gets its tests (#836)
autoclaw 0.2.18 (yunwang2442-creator, #836): the README is rewritten around
what a user does, with an English README.en.md shipped in `files`, and
dailySignin's non-2xx guard gets three tests. No change to index.mjs.
Reviewed at 699e545112c77938c4274368ef505017ed902e2e, merged onto main
|
||
|
|
b81000019f |
kiro 0.1.31: reasoning sent with its signature in one event keeps it; chat as the Kiro IDE
Called as the Kiro IDE (previous commit), Kiro's auto ends a reply with
one reasoningContentEvent holding both text ("...") and a signature
(".KTR~~…"). events() read the text and dropped the signature, so the
reply had a thinking block with an empty one. Both are now kept: the
signature goes on the block the text began, streamed (signature_delta)
or not. The IDE's own reader (extension.js) keeps them together too.
Version 0.1.31 carries this and the IDE identity.
Run on mote: bun test in packages/kiro (152 pass), bun scripts/check.mjs
kiro, in a temp HOME.
Broken by hand: reasoning-signature.test.mjs (the payloads of a real
reply) against the old else-if, 2 of 2 red.
Real use (same sandbox as before): auto answered 200 with the thinking
block's signature kept, a second turn carrying that block back answered
200, and the streamed reply sent the signature_delta.
Not tried: a thinking model with a budget under the new identity.
Reported-by: onemezao
|
||
|
|
1d3b537c0d |
kiro: chat calls go as the Kiro IDE 1.4.121 sends them, not as kiro-cli
onemezao on Discord (Builder ID, Kiro Pro for students, claude-haiku-5.5, pi): every request was answered 429 USER_REQUEST_RATE_EXCEEDED, and kiro-cli on the same account is too, while the Kiro IDE goes on working there. Kiro is limiting the CLI's identity on that account, not the IDE's, and the plugin called as kiro-cli: aws-sdk-rust's user agent with AmazonQ-For-CLI and a random suffix on every request, origin KIRO_CLI, and a new conversationId per request. A generateAssistantResponse call now carries what the IDE's own extension.js (Kiro 1.4.121, agent KAS 0.66.89, Electron 44 / Node 24.22.1, downloaded from prod.download.desktop.kiro.dev) sends through its KiroRuntime client: - User-Agent: the AWS SDK for JavaScript's, "aws-sdk-js/1.0.0 ua/2.1 os/<platform>#<release> lang/js md/nodejs#24.22.1 api/kiroruntime#1.0.0 m/N", then the IDE's "KiroIDE-1.4.121-<machine id>-KAS/0.66.89 acp-client/kiro-ide"; x-amz-user-agent is "aws-sdk-js/1.0.0" and that last part. The machine id is one 64-hex per install (the hash the plugin already names itself with to Kiro's auth service), never a random one per request. m/N is the SDK's feature for the endpoint the IDE names; its retry strategy has no mode, so no E. - x-amzn-kiro-client-attribution: kiro-ide; x-amzn-kiro-attempt: 1;max=3 and amz-sdk-request attempt=1; max=3 (the IDE's budget at a conversation's start); TokenType SSO_OIDC for a Builder ID or Identity Center token, as the IDE says it. - Each message's origin is AI_EDITOR. agentMode leaves the body: the IDE's client binds it to x-amzn-kiro-agent-mode, which stays. - conversationId is one per session: a UUID made from magpie's X-Magpie-Conversation (or X-Magpie-Session, or OpenCode's session header), the same on every turn; a call that names no session gets a new one, as before. The session's own name never goes to Kiro. This holds for every account and every call, not only after a 429: the IDE's identity is the one that works where the CLI's is limited, waiting for a refusal first would spend one, and one identity per account is simpler than two. Prompts are unchanged. The usage, model-list and API-key control calls keep kiro-cli's origin (unchanged here). Run on mote: bun test in packages/kiro (150 pass) and bun scripts/check.mjs kiro, and the repo's bun test (6815 pass, 20 skip, 0 fail) with bun scripts/check.mjs, each in a temp HOME. Broken by hand: ide-identity.test.mjs against the old index.mjs, 4 of 4 red; with a random suffix put back on the user agent and the Headers lookup taken out, 2 red. Real use (the owner's existing kiro-cli sign-in, a Google account, copied into a sandbox HOME, no sign-in or refresh): auto and claude-sonnet-4.5 answered 200 twice each under the new identity, one conversationId across both turns. It showed auto, called as the IDE, ending a reply with a reasoning event that carries its signature; the next commit keeps that signature. Not tried: a Builder ID account or the reporter's account (the owner's is Google; claude-haiku-5.5 is not on it, INVALID_MODEL_ID), whether this ends the reporter's 429, and the IDE's A/B user agent (AB_USER_AGENT_REFACTORING), whose control form is used here. Reported-by: onemezao |
||
|
|
0f0c4ec68f |
agy-cli: Antigravity on the local agy CLI over ACP (#785)
New package `@magpie-community/opencode-agy-cli-auth` (provider `agy-cli`, `packages/agy-cli`). It serves Antigravity models through the user's installed `agy` CLI over ACP (`agy acp`) and uses agy's own Google sign-in. The plugin reads and writes no Google tokens. The bridge is gitxm's. On top of it, after review: - **ACP identity.** The client names itself (`opencode-agy-cli-auth` and its package version) instead of `zed`. - **Catalog.** - Only what agy offers this client is listed: Gemini until a session says more, then the session's model option and `availableModels`. - Requests are still routed by everything `agy models` lists. - **Prompt.** agy keeps its own system prompt by default. The minimal agent is opt-in with `AGY_BRIDGE_MINIMAL_AGENT=1`, and the README says what turning it on sends upstream. - **Version check.** agy older than 1.4.12 is refused at the handshake. 1.4.12 is the oldest version the `nc` MCP bridge was checked on, and the README documents the bridge. - **Auto-update.** - `AGY_CLI_DISABLE_AUTO_UPDATE` defaults to `true` only for the plugin's own agy processes. - A value the user set is passed on as written. - **Docs.** The READMEs and the registry summary say how this differs from antigravity-acp (#87). - **Tests.** The author's tests came over under `test/` with a fake agy (an ACP stdio server). Each suite runs in its own `bun test`, and a `mock.module` preload stands in for `node:child_process`. - **Cleanup.** A duplicate, unreachable image branch in validateBody is gone. Run at ae5eafb0 on mote (macOS) with HOME=$(mktemp -d): - `bun test packages/agy-cli`: 7 pass. Per suite: - platform 14, compat 9, usage 20; - catalog 15, usage-settlement 18, repeat-batch 14; - smoke ALL OK (301 checks). - `bun scripts/check.mjs`: all ok. - Repo-wide `bun test`: 6792 pass, 0 fail (6812 tests, 492 files). Broken by hand, and each went red: - clientInfo set back to zed; - the version check turned off; - routing limited to the listed models; - auto-update forced to true; - the minimal agent on by default. Not tried: a real agy, since mote has none, or a real Antigravity account. Co-authored-by: gitxm <21175063+gitxm@users.noreply.github.com> |
||
|
|
50bb3f5ad2 |
tabbit 0.1.1: international accounts are served by web.tabbit.ai (#833)
Tabbit runs two sites with one API: web.tabbit.com (China) and
web.tabbit.ai (international). Each site refuses the other's tokens.
The plugin only knew .com, so every international account was refused
with 401 "invalid bearer". The reporter saw this as a lost sign-in.
The site is now picked by the account, with nothing to set:
- A desktop sign-in reads the token from whichever host's cookie has
it, web.tabbit.com or web.tabbit.ai. The host's own hash prefix
unseals it, and the site is recorded in the account's metadata.site.
- A pasted token, or an account from before this change, starts on
.com. If .com refuses it, the same request is sent once to .ai.
- If .ai accepts it, the token is remembered as .ai's for the process.
- If both sites refuse it, it stays on .com and is reported as an
expired sign-in, as before.
- If .ai can't be reached, nothing is settled.
- A 429 or 5xx settles nothing either.
- The catalog answers any token, so it settles nothing. The model list
asks usage first to learn the site, so an international account gets
.ai's catalog.
- Origin and Referer follow the site.
Not fixed here: .ai answers a chat run with 429 code 492 ("Welcome to
Tabbit Browser"), its browser sign-in gate. Sign-in, the model list,
usage and check-in work on .ai. Turns get the 429 passed through as it
is, not marked as a lost sign-in. The README says so.
Run on mote (Bun 1.4.2, Node 22, HOME=$(mktemp -d)):
- packages/tabbit: bun test 70 pass, 0 fail; node --test 70 pass, 0 fail.
- bun scripts/check.mjs tabbit: ok.
- Repo-wide bun test: 6797 pass, 20 skip, 0 fail (6817 tests, 492 files).
The new tests use the reporter's literal bodies from #833 (the 401
"invalid bearer" and the 492 gate JSON) against a stubbed fetch, so
nothing reaches the network.
- Against the old src (the new tests kept), 8 of the 9 site tests
fail on their assertions, and so do both new cookie tests ("not
signed in to web.tabbit.com"). The one that passes is the .com
regression test, as it should.
Broken by hand, each change red in exactly the test meant for it:
- (a) no learning when both sites refuse: "a token both sites refuse".
- (b) an unreachable site settles .com: "web.tabbit.ai out of reach".
- (c) no usage probe before the catalog: "an international token's
model list".
- (d) learning on any non-refused answer: "a 5xx or the catalog
settles no site".
Not tried:
- a real web.tabbit.ai or web.tabbit.com account;
- a real Tabbit Browser cookie store holding a web.tabbit.ai row (its
host_key is assumed to be web.tabbit.ai);
- getting past the 492 gate on .ai.
No magpie-side change is needed: magpie has no tabbit mover or min.
Reported-by: Beyfish
|
||
|
|
5ed1ac6d3d |
minimax-design 0.1.0: MiniMax Design as an agent, Windows only (Purfeather, #799)
Adds MiniMax Design (packages/minimax-design, @magpie-community/agent-minimax-design 0.1.0) as a magpie agent. Its one switch writes a single custom-model entry, `config.customModels.user-custom-magpie`, into Design's `%APPDATA%\@hilo\desktop\hub-config.json`. The entry points at magpie's local /v1 with the gateway key and magpie's model list. Reasoning levels are filtered to the ones Design knows (low to max). Disconnecting removes the whole entry and leaves the user's other custom models alone. The agent is Windows only: its paths lean on $APPDATA and $LOCALAPPDATA, so it is never detected on macOS or Linux, and the agent's notice says so. Also in this change: - a README Agents row; - a registry entry; - COMPATIBILITY.md. Verified by the author with real use: Windows 11, MiniMax Design 3.0.17, magpie 0.1.3238. Connect writes the entry, Design's model menu shows Magpie, and requests reach the gateway, attributed to minimax-design. Disconnect removes only the entry, and its preview lists it (magpie 0d70f335e, v0.1.3200). Run at the reviewed head 8e09f13c on a separate macOS machine, with a throwaway HOME (Bun 1.4.2): - bun test packages/minimax-design: 7 pass, 0 fail. - bun scripts/check.mjs minimax-design: ok. - Repo-wide bun test: 6791 pass, 20 skip, 1 fail. The one failure is gcp-ai's ADC consent test (plugin.test.mjs:422), red only under a concurrent full suite. It is green 6 of 6 alone, and the package isn't touched here. Not tried: a real Design install on the reviewer's side, and macOS/Linux (unsupported). |