A Trae model's rate (and the rate before a discount) now comes from its
list entry's display_contact_config: consumption_rate when enabled, the
member discount's consumption_rate when that discount is enabled, and an
off-peak activity's after/before price by its time_windows in its own
time zone, computed when the list is read. A field that throws (an
unknown time_zone) costs that model its rate only; the rest of the live
list stays. Fixtures are the reporter's literal display_contact_config
strings from batch_get_detail_param.
Run at the reviewed head f47880ff on mote:
- bun test packages/trae: 234 pass, 0 fail.
- Broken by hand: making traeRateOf's outer catch rethrow turns "a broken
time zone costs that model its rate only, not the list" red (1 fail).
- Real samples probed under TZ=UTC and TZ=America/Los_Angeles: deepseek
0.06/was 0.12 at 08:59, 12:30, 18:00 weekdays and all weekend
(Asia/Shanghai), 0.12 at 09:00 and 14:00; glm-5.3 0.58/was 0.78; a
Bogus/Zone entry gives 0.12; missing, bad JSON, null and arrays give
nothing.
Not tried: a real Trae account through magpie. The rate is computed when
the host reads the list, so it can lag a window edge until the next read.
agent-console 1.2.0 by qingnian108 (#582): Preview tab, chat links, file chips, font size/width settings, live magpie theme.
Reviewed and run at c459773107caa20f7063d12b2133c230f91c066c (mote, macOS, Node 22, sandbox HOME):
- npm ci --workspaces=false; npm run check ok; npm test: 48 files, 339 passed, 17 skipped; npm run verify:build 5/5 OK; bun scripts/check.mjs agent-console ok.
- Only test/v1/ws.test.ts changed since the last reviewed head 66d1070 (the new "preview.open returns host from previewHost()" test, through registerMethods).
- Broke by hand: methods.ts `return { ...r, host: previewHost() }` -> `return r;` turns that test red (1 of 5); restored, green. Changing previewHost's body alone stays green, as the test compares to previewHost(); fix582.test.ts covers its values.
- Earlier reviews' findings (per-listener key host, nonce/canary, gateway port + identity check, mentions path, Darwin major from the daemon) were checked in the earlier rounds. The proxy listens on 127.0.0.1 only and answers only the keyed Host.
- Not run: preview-attack.mjs browser half at this head, Windows box.
Registry: providers-hub lists hub-monkeycode and hub-monkeycode-intl (8 -> 10), pointing at magpie-providers-hub@0.11.0.
Reviewed head fbad6c4f. MonkeyCode is a coding platform with its own membership tiers, credits, sign-in and check-in at monkeycode-ai.com / .net, not a relay station.
Read src/monkeycode.mjs and src/monkeycode-bridge.mjs from `npm pack magpie-providers-hub@0.11.0`: hosts are only proxy.monkeycode-ai.{com,net} (gateway; the key and HMAC signature go there only) and monkeycode-ai.{com,net} (session cookie for balance/check-in/key exchange); the CDP read is on 127.0.0.1 of a throw-away Chromium profile, the login page on a random 127.0.0.1 port; no fs writes, no env reads, no logging of credentials. npm latest is 0.11.0 and exports HubMonkeycodePlugin and HubMonkeycodeIntlPlugin; PROVIDER_IDS equals the registry's ten.
Run on mote: package tests (node --test with tests/setup.mjs sentinel) 198 tests, 197 pass, 1 skipped, 0 fail; bun scripts/check.mjs registry ok on the PR head.
Not tried: a real MonkeyCode sign-in or request. The package.json description still says seven providers (not a registry matter).
OfficeAce models carry the billable list's cost_coefficient as `rate` (only when it is a finite number; the static signed-out table has none and stays without). package.json 0.3.4 -> 0.3.5.
Reviewed head 171e93c6. Read every changed line. The rates table is the existing /v1/model-token-rates read (fixture has the vendor's trailing-newline model_name); a missing or non-numeric coefficient was never in the table, so such a model gets no rate rather than 0. No conflict with #677 (names untouched; -0930 and -1017 stay separate ids with separate rates).
Run on mote: bun test packages/codearts 169 pass / 0 fail; bun scripts/check.mjs codearts and registry ok. Broke it by hand (dropped the rate spread in officeAceLiveModels): the models-are-the-billable-list test went red, 168 pass / 1 fail.
Not tried: a real OfficeAce account. Note: a coefficient of "" or false would read as 0 in the existing table parse (not changed here).
sensenova 0.1.3: the grants' expiry goes back beside the figure ("175,089.31 积分 · 11-04 到期", full date once the year differs, UTC). `until`/`renew` are no longer sent, so the card head's plan-term slot is the plan's alone again (#695 had put the credits' expiry there). The PR's zen-free 0.1.24 -> 0.1.25 bump is already on main, so it merges to nothing.
Run at reviewed head 952dd27: `bun test packages/sensenova` (46 pass) and `bun scripts/check.mjs sensenova` / `zen-free` on mote via mote-run; CI test + on-npm green. Broke it by hand (dropped the date from the balance string): the 3 grant tests went red. Not tried: against a real SenseNova account.
0.2.60 went to npm from c1a625d (the 429 message), pushed a minute before
1a99e2c with the same version, so 1a99e2c's change had no version of its own.
Version bump only; the change and its tests are in 1a99e2c (388 pass, six new
tests red on the old code, run on mote). Not tried on a real account.
Qoder and Qoder CN booked every call as Auto whatever model_config named
(chansee97, #692; square-235 on #638 after 0.2.54's model_config change did
not help). The reference PR shuishuipingan/qoder2api-hub#119 says the
official CLI's business block carries model_key. Checked in the client
itself: @qoder-ai/qodercli 1.1.82 (npm pack, read only) builds the record
in qoder-worker-runtime (v3 -> snn, then {..., model_key: <chosen model>})
and keeps it for the prompt. Qoder.app 0.4.3 and QwenWorkCN.app 1.0.46 on
this Mac build theirs without it, so QwenWork's site says
businessModelKey: false and is unchanged.
qoderBody now adds business.model_key = the call's model key for qoder and
qoder-cn.
Run (mote): bun test packages/qoder, 388 pass. With the old index.mjs put
back, the 6 new tests fail (business.model_key missing). bun scripts/check.mjs
qoder.
Not tried: a real Qoder or Qoder CN account, so the billing change is not
confirmed; the attribution claim rests on the client's code and the PR's
capture.
sherlock (Discord): the same QwenWork account works in ZCode, and dsh's
auto-review failed with "QwenWork: usage limit reached: All models failed".
"All models failed" is Qoder's own message: nothing in the plugin or magpie
builds it. The plugin only put "usage limit reached:" before it, which hid
the status, code and reply it came with. The failure now ends with
"(Qoder replied HTTP 429, code N: <reply>)" for a 429 or quota-worded reply
with no quota code; quota codes keep their short words.
The cause of the 429 itself is NOT found. dsh's reviewer sends a system
prompt, one user message, temperature 0, no tools and no max_tokens (read
from dsh-experimental-auto-review); the plugin sends no temperature and
32000 max_tokens for it. Nothing in qoderBody differs in a way known to
fail. This release makes the next report carry Qoder's reply.
Run on mote (bun): packages/qoder bun test 385 pass, 0 fail (raw-429.test.mjs
new); bun scripts/check.mjs qoder ok. Broken by hand (old failure()): 2 of the
3 new tests fail. Not tried: a real QwenWork account.
Reviewed every line at d87f250899fc69bd1dd5d44eecfb3101d265eac2.
Grant balance becomes "12,733.76 积分" (en-US separators, max 2 decimals, same as app.js countFormat), the expiry goes to until (RFC3339) with renew "off", which planTerm renders as "Expires {date}" localized (i18n has it in zh/ja). Several pools add; earliest expiry wins. No grant (0 or absent) returns windows only, no balance/until. quotaOfPlugin parses Until/Renew as RFC3339 and the plan head shows when plan or until is set.
Run on mote at that head: bun test packages/sensenova: 45 pass, 0 fail (3 usage tests cover single, summed, no-expiry; the existing no-grant test covers none).
Not tried: a real SenseNova account with several granted pools; whether grant_balance is per pool (summed) or account-wide repeated per pool is taken from the PR (testdata has only "0" grants). Package is served from the dist branch (not on npm yet), version is already 0.1.2.
Reviewed every line at 4619beb34bdfc3a2d16ee067a12e10f064501e6c.
Adds two REFUSED_TOGETHER pairs (CreateWorkflow+GetWorkflowRun, AmendWorkflow+FillWorkflowHole) for ZCode 3.17.2. The rename and the way back reuse the existing renameRefused / nameGuard paths unchanged, so tools, past calls and tool_choice are renamed and replies (streamed or not) come back under ZCode's names in chat, responses and messages.
Run on mote at that head (node --test packages/zen-free/*.test.mjs, node 22): 212 of 216 pass. The 4 reds (3 "sends OpenCode's own headers" tests and keyless.test.mjs) fail the same on origin/main in a worktree (208 of 212; node 22 adds accept-language/sec-fetch-mode headers), so they are not from this PR.
Broke it by hand: provider.mjs from origin/main with the PR's tests -> the 3 new per-protocol round-trip tests fail (index.test 55-57); the lone-name test passes both ways, as it should.
Not tried: a real ZCode request against Zen (the reporter's bisection is taken from the PR).
Version bump follows on main (0.1.25).
Cause: the test raced one cold browser launch against a fixed 15s timer.
A passing CI run takes 1.3-1.5s (runs 41710048801, 41709930999, 41689486507);
run 41718344236 took 16.6s, so a cold runner start, not the reader, failed the
test and blocked every package's publish.
Now each try gets its own profile and 10s (7x a normal run); a try that posts
nothing is killed and replaced, up to 3 tries, with the test timeout at 60s. A
browser that exits by itself still fails at once. The test only; no package
file changes, so no version bump (chat's "files" omit tests).
Run on mote (bun 1.4.2, Playwright's Chromium 1234):
- Injected a wrapper browser that sleeps 25s on its first launch: the old test
fails "browser timed out" at 15.06s, the new one passes in 11.7s.
- Normal launch: new test passes in 2.0s.
- Whole suite: 5349 pass, 19 skip, 0 fail (the browser test skips without a
browser in PATH; it was run separately as above). bun scripts/check.mjs ok.
Not tried: GitHub's runner itself; CI's run is the check.
Reviewed head 8408dab, a fast-forward of origin/main.
- npm: latest is 0.10.0; 0.9.3 and 0.10.0 are not deprecated.
- 0.10.0 vs 0.9.2: Loomy files, README, package.json, plus src/icons.mjs (13 data:image/png URIs, no code) and a one-line icon spread in aggregate.mjs, both from 0.9.3. loomy.mjs and loomy.test.mjs are byte-identical to the reviewed 0.8.0. index.mjs is unchanged. No install scripts; page/snapshot.js is the empty template.
- On mote, with no network: importing 0.10.0's index.mjs lists 8 function exports (HubAStudio, HubAccio, HubLobsterAI, HubMagicrew, HubMagicrewIntl, HubAutoclaw, HubAutoclawCn, HubLoomy), matching the registry entry's 8 providers.
- On mote through a logging proxy (loopback not proxied), npm test on 0.10.0: 176 tests, 175 pass, 0 fail, 1 skipped; the proxy log is empty and there were no dns or tls connections out.
- Hosts in loomy.mjs are the ones the previous review listed; nothing new. No fs or child_process.
- PR body and registry summaries (en, zh): the paste-session claim is gone; hosts, login method, files (none) and ACCESS_KEY_SECRET source are stated.
- PR head merged on origin/main: bun scripts/check.mjs on mote exits 0.
- Not tried: a real WeChat QR sign-in or real iFlytek requests.
Lists magpie-providers-hub's AutoClaw (international and China) channels in the registry.
Reviewed at a34421247e27c812f0bbae0da1de78b15afbd2ca, merged onto origin/main 1820255: bun scripts/check.mjs passes on mote.
npm magpie-providers-hub 0.9.1 (latest) unpacked: seven function exports matching the registry's providers, no Loomy, 111-byte empty snapshot, no install scripts, network hosts identical to 0.7.3. 0.7.0/0.7.1/0.8.0 deprecated.
Package tests on mote with outbound network blocked (unreachable proxy plus connection logger, and sandbox-exec): 159 pass, 0 fail, 1 skipped, no non-loopback connection.
Not changed: the package's README still lists ten providers (asked the author to fix).
Adds medium to kimi-k3.1-pro's reasoning levels, which #680 left out; version 0.3.3 -> 0.3.4.
Reviewed at 52ca4946b7d61f5c10c0394d0813a0fe4f58ceca: a one-line table change plus the version bump.
Run at that head on mote: bun test packages/codearts, 169 pass, 0 fail.
Not tried: a live CodeArts request at medium; the 405-character reasoning figure is the author's measurement.
Tells the host a CodeArts model's reasoning levels (model row `variants`, per model, measured 2026-11-04 by Gyl1219) and honours the level a caller names: passed on as is with no injected `thinking: enabled`, a level the model does not take is dropped, none/off/disabled send `thinking: {type: "disabled"}`. Version 0.3.2 -> 0.3.3, README updated.
Run at the reviewed head 95acc1e3 on mote (Mac mini): `bun scripts/check.mjs codearts` exit 0; `bun test packages/codearts` 169 pass / 0 fail. Broken by hand, each one turned a test red: the drop-unknown-level branch made unconditional, the `spoken === ""` condition removed from `injected`, the `thinking: disabled` assignment removed, `variants` left off the model row, a caller's own variants overwritten. Tests use the injected fetch, none reach the network.
Not tried: a real CodeArts account (I took the author's 2026-11-04 measurements on trust). Open question left on the PR: kimi-k3.1-pro is declared without `medium` though the author's table shows it answered.
orinsid's idle run (0.1.4, magpie v0.1.2861): the token was issued with a
2h life, the host's first background renewal at +30min got SESSION_EXPIRED
from OAuthRefreshToken, and auth.refresh threw signIn "expired" on any
message matching /expired/, so the account was marked signed out with 90
minutes of token left. That token drives the chat by itself until its own
exp, and magpie's contract is that a failed renewal not marked "expired"
is kept and tried again.
Now a renewal refused as expired fails without `signIn` while the token's
exp (JWT claim or the stored expires) is more than a minute away; once the
token has expired too, it still marks the account.
Not changed, and not known: why upstream answers SESSION_EXPIRED 30
minutes into a 2h token. The renewal sends only {accessToken} with no
cookie, while OrcaTerm's product calls send ot_session (and the server
sets an ot_sid session cookie); an idle server-side session timeout is
the likely cause. Neither can be checked without a real account, so this
only stops the false sign-out; the session may still lapse while idle.
Run: bun test in packages/orcaterm (115 pass); the new "still has life"
test is red on 0.1.4's index.mjs and green here. Not tried: a real
OrcaTerm account, a real idle run.
Reported-by: orinsid
New package @magpie-community/gateway-agentcompass 0.1.0 (akiiwa-games, #670): a gateway middleware that profiles a request and routes `agentcompass` / `agentcompass/*` to a model and effort within the user's own candidateModels. Only `model` and the effort field change; nothing is added to the prompt; no network unless the user sets allowExternalScorer: true plus a URL.
Reviewed at head 3bdea54 (rebased on 7ea6119), after three review rounds.
Run on mote (macOS), at 3bdea54:
- `bun scripts/check.mjs agentcompass`: ok.
- packages/agentcompass `node --test test/router.test.mjs`: 33 pass, 0 fail.
- Every network test passes a mock fetch; the one that doesn't (9.5) replaces globalThis.fetch with a thrower.
Broken by hand, each turned a test red:
- carrier deletes in middleware.js removed: 9.3 and 9.6 red.
- the 400 reject for a virtual model with no candidates replaced by `return undefined`: 9.2 red.
- MAX_NOISE_STRIP_CHARS / MAX_USER_TURN_CHARS set to 1e12: 9.9 red.
- an unclaimed request that carries the key made to return a mutated body: 9.6 red.
Read: the carrier is no longer read from the body (useRouteCarrier, carrierFromBody and the profile branch are gone); DEFAULT_GATEWAY_CANDIDATES is gone; no process.env, no default URL, quotas.json only from an explicit path.
Not tried: the plugin in magpie's real moejs runtime at this head (the review of 9d22371 did that; the changes since are the ones above), and a real gateway with real accounts. Leftover header comments in scorer-live.js, quota.js, catalog.js and allocator.js still say `magpie.hooks`; harmless, to tidy in a later version.
Can4ry_ on X (11-04): testing GLM-5.3-Flash-Trial in magpie answered
"429 · ZCode's limited quota for glm-5.3-flash is exhausted or temporarily
unavailable" while ZCode's own app was served, glm-5.3-flash kept using
the Coding Plan after the Start Plan opened at 23:00, and there was no
freeFirst setting under the ZCode provider.
Cause: free first's plain GLM-5.3-Flash request goes to the gift first.
When zcode.z.ai turned it away with 405/3012 (risk control, or 0.1.46/0.1.47's
3.14.3 prompt texts), restModel rested glm-5.3-flash in `blocked`, the same
map a -Trial entry's quota check reads. So for the next minute the Trial
entry answered a local 429 that called the quota exhausted, without asking
ZCode, and every plain request in that minute went to the plan. The
suffix it added, "ZCode answered 429", was wrong too, and it pushed the
spent words off the end of the message, so magpie's zcodeSpentWords
didn't match and the gateway rested the whole account.
Change:
- A free-first refusal that is not a quota answer rests the model in a
new `sidelined` map, read by free first only. A quota answer still rests
it in `blocked`, which the -Trial entry obeys too.
- The local 429 keeps "ZCode's limited quota for X is exhausted or
temporarily unavailable" last; why it rests now goes in front.
- auth.options declares a "Free quota first" switch (free_first, on by
default, zh/zh-TW/ja/de words), read through input.magpie.options. Off
keeps the plain models on the plan. A JSON freeFirst: false still turns
it off; an absent key (an older magpie, OpenCode) leaves the JSON's word.
- README says where the switch is and what a refusal rests now.
Run: bun test packages/zcode on mote under a temp HOME, 197 pass, 0 fail.
bun scripts/check.mjs on mote, exit 0.
Broken by hand: the new dual tests against HEAD's index.mjs (the old
code), 4 fail. "a free-first refusal leaves the -Trial entry asking
ZCode" fails with 429 for 200, the reported case. The others are the
spent words test (no match), the switch test, and the block-page test,
whose second plain request went to the gift again.
Not tried: a real account. The owner's account has no live Start Plan to
be refused or spent. Not tried: magpie's editor showing the switch. That
comes from host.js optionsOf and app.js pluginOptionsField, unchanged.
7e37132 landed #682 under 0.1.47, which 6a75bbd had already published, so
npm kept 0.1.47 without the texts. 0.1.48 carries both. Why: since 11-03
zcode.z.ai answers dressed Start Plan requests with 405/3012 while the
app works on the same accounts (#348); #682 found 3.14.3 texts in the
body under a 3.17.2 header. Run: bun test packages/zcode on mote, 194
pass, 0 fail (before the version-only change). Not tried: a real account.
Reported by star21321321124 (Discord, 0.1.3): LongCat-2.5 showed no
multiplier and no free mark, while the table's LongCat-2.0 is named
"(限时免费)", so users may think it costs credits.
The desktop client (2026.1016.0032, renderer index chunk) draws each
model-types row as: name = description || extendedInfo.shortName ||
modelTypeName; badges = extendedInfo.marketingCopy split on commas;
multiplier = extendedInfo.rateMultiplier + "x". The plugin now reads those:
a live model is named with its badges ("LongCat-2.5 (限时免费)"), carries
magpie's existing `rate` (multiplier) and `free` (marketingCopy says 免费,
or a rate of 0), and a table model gets the list's rate/free unless the
user's config already set one. Ids are unchanged; a missing or unparsable
multiplier shows nothing, not 0.
Run: bun test packages/catpaw on mote (37 pass), bun run check ok. Broke
rateMultiplier parsing by hand: 3 tests red. Not tried: a real CatPaw
account; the fixture's extendedInfo values (string "0"/"1.5", marketingCopy
"限时免费") follow the client code, not a captured reply.
zcode.z.ai turns every dressed Start Plan (gift) request away again
with 405 "request has been blocked due to unusual activity", code 3012,
since the evening of 11-03: every account with a live gift, while the
ZCode app's own gift requests go through on the same machine and the
same accounts (five gift-holding accounts probed, all 405 through the
plugin, the four without a gift taking the plugin's own 400). The plan
path (api.z.ai, open.bigmodel.cn) is unaffected — only the dressed
requests to zcode.z.ai are refused, so it is the dressing, not the
accounts and not the address.
0.1.46 raised APP_VERSION to 3.17.2 (8fc12a3), and 0.1.45 had already
read the marketing feed as 3.17.2 (#678), but the body a Start Plan
request carries was still ZCode 3.14.3's prompt texts (901fd87e, from
magpie's zcode_prompt.json, 10-02). The vendor's risk control now
compares the body against the current client's, and a request that says
3.17.2 in its headers while its three system blocks are three versions
old is turned away as unusual activity.
Following 3.17.2's source (a9fe401, apps/zcode-cli/packages/core/src/
context/), the dressed request now says what the 3.17.2 client says.
system[0] is "You are ZCode, an interactive agent" (sections/cli-prefix.ts;
was "... interactive coding agent"). system[1] is the identity section
(sections/identity.ts: "You are an agent working with the user toward
their goals, using your own judgment along the way.", # Harness bullets
one space in, the mid-conversation-system wording) joined with "\n\n" to
the desktop context (sections/desktop.ts, its new Interactive views
part and the no-directory branch, the plugin knowing of no Gen UI
output directory). system[2], after its "\n\n" boundary, joins the
unheaded dynamic sections (dynamic-sections.ts): the code-style,
pronouns and action-caution paragraphs, the slash-skill guidance when
the request has a Skill tool (buildSessionGuidanceSection's gate, the
tool table being the request's own), the environment (env-info.ts,
bullets one space in, the invoked line's trailing space, the
untrusted-downloads note, git as true/false; the agent's shell is still
unknown to the plugin and left out, as #86 left it), the model line as
its own section ("You are powered by the model named ...",
buildModelSection), and context management — then the agent's own
system text, as before. The day goes into its <system-reminder> turn
alone, 3.14.3's currentDate intro and outro being gone from 3.17.2's
meta-user context (docs/design/v2/loop/system-prompt-contract.md,
meta-user-context.md). The three-block shape is untouched (#343), as
are the headers (the @ai-sdk/anthropic version is 3.0.81 in 3.17.2's
lockfile too) and metadata.user_id.
The texts were checked byte for byte by importing 3.17.2's own section
builders (bun, a stub for @zcode/shared) and comparing their content
strings: cliPrefix 7779642ea44a4696, identity aac4ba4cc7b555b3, desktop
86e0396775d5ed0e, dynamic behavior 7d843753f3adae93, session guidance
6596a0131800c779, context management 406a0480d88086cd (start.test.mjs
pins them). Live on the reporter's machine, after the texts: every
gift-holding account's -Trial request answers 200 again (five accounts,
405 on all before), the coding plan's account's plain request routes
onto its gift (free first) and answers 200, and through magpie's
gateway zcode/GLM-5.3-Flash serves as the gift's glm-5.3-flash, 200.
bun test (192 pass) and bun run check pass.
A -Trial request took the model name from the bucket's capabilities,
lowercased ("glm-5.3-flash"), and sent that. ZCode 3.17.2 sends its registry
id ("GLM-5.3-Flash"): normalizeOfficialGlmModelId's spelling, which its own
docs say is not rewritten on requests. The plugin now sends the registry
spelling for the models ZCode knows (wireModel), for trial entries and the
free-first plain model alike; unknown names go as the bucket wrote them.
A 429 from the gift also rests that model for a minute, and the local
refusal in that minute read the same as a spent bucket. It now says ZCode
answered 429 to the last request and the model is not asked again for a
minute.
Not changed: X-Device-Mid. 3.17.2's docs say it goes on config GETs, not on
the model transport, and start.test.mjs holds that.
Run at this head: bun test packages/zcode on mote, 193 pass. Undoing
wireModel turns 7 tests red. Not tried: a real account (none here); the
cause of the reports (429 and 405 on glm-5.3-flash-trial, 11-03) is not
proven, the model spelling is the one request difference found in the
3.17.2 source.
star21321321124 (Discord, magpie v0.1.2862, catpaw 0.1.0/0.1.1): the vendor
added LongCat 2.5 and the plugin did not list it. The plugin's model list
was a hard-coded copy of an old proxy's table (9 models, each with its
modelType number). The desktop client keeps no such table: its main process
POSTs /api/agent/maas/model-types with {tenant: "CatDesk", scene:
"CATX_APP", env: "EXTERNAL"} on the gateway, caches the list 5 minutes, and
sends a model's modelTypeId as the round/turn body's modelType (read from
the 2026.1016.0032 client's dist-electron/main and catpawEnv chunks; items
carry modelTypeId, modelTypeName, provider, supportImage).
- index.mjs: provider.models reads that list with the account's own token
(desktop file or the stored web/paste token, as usage does) and adds what
the table lacks; a listed model whose type the table has keeps the
table's id and name, any other gets its modelTypeName lower-cased
(LongCat-2.5 -> longcat-2.5). Negative ids / USER_CUSTOM (the user's own
models) are left out. A chat on a table model costs no request; a chat on
any other id looks it up in the list and sends that modelType; an id in
neither is still a 400 naming what is known. A failed read leaves the
table. The headers are the plugin's gatewayHeaders, unchanged.
- fake.mjs: the list endpoint. 7 new tests: the request body, the extra
model offered, custom model left out, modelType sent on a chat, no
request for a table model, one read per 5 minutes, a failed read.
- README, version 0.1.3.
Run on mote at this tree: bun test packages/catpaw 35 pass 0 fail; bun
scripts/check.mjs exit 0; HOME=$(mktemp -d) bun test (root) 5303 pass, 19
skip, 0 fail.
Broken by hand, then restored: the lookup of an unlisted id returning null:
3 fail; provider.models ignoring the list: 2 fail.
Not tried: a real CatPaw account (none here), so the real response is
untested; the shape comes from the client's code. The id of LongCat 2.5
is whatever the vendor's modelTypeName is; if it differs from "LongCat-2.5"
the id will differ from longcat-2.5. Not the lists of the Windows client.
Adds @magpie-community/opencode-tabbit-auth 0.1.0 (packages/tabbit) and its
registry.json entry. Tabbit (web.tabbit.com) becomes a provider:
- A live model catalog.
- Turns run as room -> run -> SSE join. Each turn has its own stream
timeout (TABBIT_STREAM_TIMEOUT_MS, default 300 s), and the 30 s request
timeout no longer covers join.
- A run is stopped through /proxy/v0/chat/stop/ when the client aborts or
the stream times out.
- A cut turn ends as an error event (streaming) or a 502, never as a
"stop" finish, and its room is not reused.
- Rooms are keyed by account and session, with a 30 min TTL and a cap of 256.
- 400/401/403/404/429 pass through with retry-after.
- The daily desktop_pet check-in is free.
- Cycle usage.
- macOS desktop sign-in reads the Tabbit Browser cookie store from a temp
copy that is removed in a finally. Windows and Linux paste the token.
Run at 5be6e90 on mote (macOS):
- bun test: 58 pass. node --test tests/*.test.mjs: 58 pass.
bun scripts/check.mjs: ok.
- Broken by hand, and each change turned its test red:
- no rmSync of the cookie copy;
- 429 not passed through;
- room keyed by session only;
- stop sent on an already-aborted signal;
- no abort listener on the request;
- streaming truncation ignored;
- the old truncation rule;
- totalTimeout back on join;
- no wake of a quiet reader;
- onTimeout not called;
- no room pruning.
- Probes against a local SSE server:
- A 35 s turn gives 200 under Bun (streaming and non-streaming) and under
Node.
- A silent stream with TABBIT_STREAM_TIMEOUT_MS=3000 ends at 3 s under
Bun and Node (an error event, or a 502 non-streaming), and the server
sees the stop at 3 s.
- tabbit-* temp dirs in TMPDIR: the same count before and after the bun and
node runs.
Not tried: a real Tabbit account.
Three changes, each matching the client's source at zai-org/ZCode@a9fe401
(v3.17.2):
- Every call goes out as 3.17.2: the sign-in, the Start Plan balance,
the config, the requests, and (as in #678) the feed and the claim.
ZCode gates by the version. #678 found the feed answers empty to 3.16.3,
and the balance "judges capability by the real app_version"
(zaiStartPlanBilling.ts). MARKETING_VERSION folds into APP_VERSION.
- A sign-in whose only Start Plan starts later is taken, not refused with
"has ended or was never started". ZCode's
resolveStartPlanBalanceAvailability counts such a plan ("pending") as
the account's. startPlan takes it only when the sign-in asks
(coming); requests and the card are unchanged, and the card already
names its start.
- X-Client-Language on the feed is zh-CN or en-US only, as
marketingTouchService's localeSchema sends it. Before, it was the
computer's locale as it was (zh-Hans-CN, en-GB, ...).
Run at this tree on mote:
- bun test packages/zcode: 191 pass, 0 fail.
- bun scripts/check.mjs: clean.
Broken by hand:
- APP_VERSION back to 3.16.3: 7 red, among them the two new sign-in tests
through their balance app_version check.
- The sign-in without coming: those 2 red.
- The old locale: the language test red.
Not tried: a live sign-in, balance or feed. No ZCode account was in a
sandbox. Whether the balance answered sliyrainbow's account with no plan
under 3.16.3 or with one that starts later is not known; this fix
covers both.
Reported by jinpy666 (#676) and sliyrainbow (Discord).
The marketing feed (touch) and the claim now go out under ZCode 3.17.2's
version header. jinpy666 found that under the pinned 3.16.3 the feed
answers empty, while under 3.17.2 the day's banner shows, and checked it
against the live API. The check-in no longer reads /billing/preview,
which the v3.17 client doesn't poll (docs/marketing-touch-client.md in
zai-org/ZCode@a9fe401).
Reviewed at f805d97 and run there on mote:
- bun test packages/zcode: 187 pass, 0 fail.
- bun scripts/check.mjs: clean.
- Broken by hand: with MARKETING_VERSION set back to 3.16.3, 4 tests go
red (the touch and claim version pins, and the card's feed read).
Not tried here: a live feed or claim. No ZCode account was in a
sandbox, so the live run is jinpy666's (10 accounts: 7 captcha, 3
inactive).
Reported by jinpy666 (#676), who wrote the fix.
errorcode7 (#677): /v1/model/builtin lists deepseek-v4.1-flash and
deepseek-v4.1-flash-1017 side by side, two models with their own
description and off-peak rate (0.09x vs 0.12x). The ids were already kept
apart, but normalizeModelId cut "-1017" off the display name, so both rows
read "DeepSeek-V4.1-Flash".
parseModelInfo now takes the vendor's model_name as written (trimmed), and
falls back to prettify(id), not the date-stripped id. A model only the
agent lists gets the same. normalizeModelId stays for the CONTEXT_WINDOWS
lookup and the vision check only. This is the codearts plugin alone: magpie
does not fold 4-digit suffixes (catalog/samemodel.go only takes YYYYMMDD
or YYMMDD), so no other vendor changes.
Run on mote (Bun 1.4.2), at this head:
- packages/codearts: bun test, 166 pass / 0 fail
- bun scripts/check.mjs: ok
Red on the old code: the new tests against origin/main's index.mjs,
163 pass / 3 fail (the two #677 tests and the updated dated-id test).
Not tried: a real CodeArts account's model list.
orinsid measured that OrcaTerm drops the OAuth session together with an
expired 2h access token: OAuthRefreshToken then answers SESSION_EXPIRED
for good. The plugin declared no auth.refreshLead, so magpie's host
renewed only when the account was used in the token's last 5 minutes,
and an account idle past that had to scan again. auth.refreshLead is now
90 minutes (what orinsid's local patch ran for 40+ hours with no expiry):
any request or usage read in the last 90 minutes renews it.
Not changed: magpie's host renews only when something uses the account
(host.js fresh(): loader, models, usage, checkin). An account nothing
touches for the whole two hours still expires; that is the host's to fix.
Run at this head, on mote: packages/orcaterm bun test, 113 pass 0 fail
(11 files, renew.test.mjs new); bun scripts/check.mjs exit 0.
Broken by hand: refreshLead commented out, renew.test.mjs goes 2 fail
1 pass (the hourly-use case and the lead-as-said case).
Not tried: a real WeChat sign-in left idle across an expiry.
0.2.0's tools took the first site key in plugin-auth.json's file order.
magpie's host (accountsOf) takes the bare site id first, else the first
site#... key by name. Once a removed sign-in is made again, the bare key
sits last in the file, so a tool spent a different account from the one
magpie uses by default. The tools now pick the same way the host does.
Run on mote (sandbox HOME) at this tree: bun test in packages/minimax,
123 pass, 0 fail; bun scripts/check.mjs, minimax ok. Broken by hand:
with file order back, the default-selection test goes red (1 fail).
Not tried: a real MiniMax account.
A new user turn whose earlier native calls (call_cursor_…) all have tool
results now gets a retained Run of its own, with those calls imported as
history the way the stateless path imports them. Any call still pending, a
request ending in tool results with no live owner, or a tool attachment last
still falls back as before; the owner-busy check is unchanged. Nothing is
submitted to an old exec: a user message last has no trailing handles.
By ooboqoo (#672).
Run at the reviewed head 5b4dcf1 on mote:
- packages/cursor `bun test`: 394 pass, 0 fail
- `bun scripts/check.mjs`: ok
Broken by hand: with origin/main's native-session.mjs and the PR's tests,
"terminal old handles do not wedge a new user turn" and the new admission
test both fail (2 fail, 168 pass in those two files).
Not tried: a real Cursor account (the author reports ~270 requests over a
day, all 200 or client-cancelled 499); Cursor dashboard usage or caching.
Points the Aelios links at github.com/Aelios-project/Aelios, where the repository was transferred. github.com/wusaki0723/Aelios now redirects there, and the PR's author is wusaki0723. The README row, the package README and the hook's opening comment are updated, and the prerequisite commit link moves from the sakisakisa-design fork to the canonical repository. Commit a57269c and PR #102 both exist there. Only links change: no code, version or configuration.
Run at the reviewed head 45f0fa3, on mote with a sandbox HOME: bun test in packages/aelios, 178 pass, 0 fail. gh api confirmed the transfer redirect, a57269c in Aelios-project/Aelios, and PR #102 (merged) there.
No version bump. The README on npm updates with the next release.
Adds MiniMax Code's account tools to the minimax plugin, as a Magpie-only `exports["./server"]` entry (magpie.mjs):
- `web_search`, MiniMax's own search, at /mavis/api/v1/mcp/web_search;
- the Matrix connector tools: image, video, speech, music, media understanding, image search and enhancement, and asset URLs, plus `list_tools`, `tool_schema` and `call_tool` limited to connector__matrix__*. The schemas are bundled in matrix-tools.json, and each call is routed through the account's live catalog.
- Tool requests reuse the chat sign-in's refresh logic per stored account key, and go through siteFetch: a cross-host redirect (Akamai's 307 to the other site) is an OtherSite hint and spends no refresh (#666).
- With no `account` named, a tool uses the site's first stored account. An explicitly named account never falls back to another one.
- No `web_fetch`: magpie's search MCP already serves one that refuses private addresses.
- Tool descriptions don't name magpie (tested).
- Version 0.2.0. The OpenCode entries still export only the two chat plugins.
Run at the reviewed head e776afc, on mote (macOS, sandbox HOME):
- `bun test` in packages/minimax: 123 pass, 0 fail, 12 files.
- `bun scripts/check.mjs`: ok (minimax ✓).
- Broken by hand: with `send` back on plain fetch, "tool redirects to another host stop before a 401 or token rotation" goes red (1 fail), and green again when restored.
- The first review's probe (307 to another host, 401 there) spent 3 refreshes over 3 calls at 2467992. The new test covers the same case: 0 refreshes and 0 requests reaching the other host.
- Checked against magpie's plugin host (internal/plugin/host.js): ./server is tried first, `directory` is magpie's config dir, and auth.set with a `minimax-code#…` id writes that key.
Not tried: a real MiniMax account (search, generation, billing), and a real mainland-China network against the Global site.
48a5f21's "the usage hook takes the billing, currency and profile maps"
test signed in with an accountId, so each of its usage calls first asked
gcloud for a token. On the publish run's ubuntu runner that took past
bun's 5s per-test limit, the test job went red, and gcp-ai 0.1.5 was
not published. The test now has no account, so nothing is asked before
the options are read and refused; it checks the same errors.
Run at this head on mote: `HOME=$(mktemp -d) bun test` (as publish.yml
runs it): 5195 pass, 0 fail, the test in 1.14ms. node --test
packages/gcp-ai/test/*.test.mjs: 84 tests, 81 pass, 3 skipped, 0 fail.
bun scripts/check.mjs: ok.
Not tried: the ubuntu runner itself; the first publish run on it will
show it.
kidchen94 reported four ways the credits refresh failed on one machine:
Chrome's last-used profile decided whose session a read used, a page
Chrome translated could not be parsed, a JPY billing account timed out
on the wait for a "$" row, and an ambiguous billing account could only be
fixed with the machine-wide VERTEX_BILLING_ACCOUNT.
- Chrome profile: profileDirectories (Google account -> profile
directory), profileDirectory and VERTEX_CHROME_PROFILE_DIRECTORY pass
--profile-directory to every Chrome the plugin opens: reads, the
kept browser and the sign-in window. The name is checked (no path
separators, no "."/"..", no leading "-"), and a kept browser is never
handed to a read pinned to another directory.
- Billing account: billingAccounts maps a project to its billing
account, ahead of the row's billingAccount and the environment. The
discovery error names the project, the accounts the Console showed and
the option to set.
- Currency: billingCurrencies names a billing account's currency (USD,
JPY). Yen is read with no minor unit and shown as "¥8500 JPY". A ¥ is
never taken for yen on its own, since the Console writes yuan the same
way: a ¥ table read as USD names the setting at once. Amounts need
strict comma grouping. The row wait is any cell with a digit, not "$".
- Translation: a page Chrome marked translated (translated-ltr/rtl on
<html>) and a table with non-English column names each give an error
that says so and how to turn translation off, not a timeout or
"session may be expired".
- Cache: the profile directory and the currency map join the cache key
only when set, so existing caches are kept.
- fetch_credits.mjs takes --profile-directory and --currency.
Run at this head on mote (macOS, Node 22, Chrome for Testing 1234):
node --test test/*.test.mjs: 84 tests, 81 pass, 3 skipped (the
Linux/Windows-only ones, as on origin/main's 76), 0 fail.
bun scripts/check.mjs: ok.
Broken by hand: the new tests against origin/main's lib/ and index.mjs.
The JPY and translated browser tests fail with the reporter's symptom
(21s and 41s, "Credits table was not found or is empty; the session may
be expired"), the billing test with "set VERTEX_BILLING_ACCOUNT
explicitly", the profile test with "Chrome used Default, not Profile 1",
and plugin.test.mjs fails to load (billingCurrenciesOf is new).
Not tried: a real Console (a JPY billing account, a page Chrome
translated, a real multi-profile Chrome); the fixtures are tables
served from the test. Not run on Windows or Linux. Chrome's own
translate preference is not written; translation is detected, not
prevented. Currencies other than USD and JPY are refused, not
converted.
hetingyi's side note on #666: on agent.minimax.io both
/matrix/api/v1/user/get_user_extra_info and
/matrix/api/v1/commerce/get_membership_info answer 404 "404 page not
found", even through a proxy. membership() fell back from the first to
the second and threw the second's "membership: HTTP 404", so the
international account's whole usage card was that error, its credits
ledger never shown.
Both answering 404 is now "no membership API here": no plan is said
(not Free, which nothing read), and the card goes on with the credits
ledger as before. Any other failure of either call is still the card's
error, and a refused sign-in still throws.
Run at this commit on mote: bun test packages/minimax 88 pass, 0 fail.
The new usage test (the reporter's 404 body) is red against
origin/main's index.mjs.
Not tried: a real global account; whether such an account's M Plan
lives elsewhere on the international site is unknown.
hetingyi (#666): from a mainland-China network, Akamai answers every
agent.minimax.io request with 307 Location: https://agent.minimaxi.com/...
(X-From: ak). fetch followed it, the China site turned the international
token away, and MiniMax Code (Global) read as "account: the sign-in was
refused (HTTP 401)" on the credits card and the check-in. The chat path
was worse: its 401 forced a refresh (a refresh token spent) and sent the
chat again, to the same redirect, on every request.
- siteFetch: every request to a site's hosts (account API, check-in,
credit ledger, M Plan, models, chats, OAuth device code, poll and
refresh) goes with redirect "manual". A redirect on the same host is
followed as fetch would (up to five; 301/302/303 turn a POST into a
GET; a 307/308 resends only a string body). One to another host is an
OtherSite error: "<what>: agent.minimax.io sent the request on to
agent.minimaxi.com (HTTP 307), which doesn't take MiniMax Code
(Global)'s sign-in. MiniMax does that for a network in mainland China;
set a proxy outside mainland China for MiniMax Code (Global)."
- It is never an AccountRefused: the card's sign-in stays "kept", the
check-in's 401 retry isn't taken, and a chat answers 502 api_error with
the message (X-Magpie-Sign-In kept), with no refresh and no second send.
- The China site gets the same handling with a neutral hint, since
nothing says which networks it sends elsewhere.
- README: the international site needs a network outside mainland China.
Run at this commit on mote: bun test packages/minimax 87 pass, 0 fail.
region.test.mjs (the reporter's 307s: status, Location, X-From, an
_abck cookie) against origin/main's index.mjs: the card, check-in, chat,
models and refresh tests red; the same-host redirect test passes on
both.
Not tried: a real mainland-China egress or a real global account; the
fixtures are the reporter's table. A proxy injected by magpie's plugin
host passes init through (host.js spreads it), so redirect "manual"
reaches Bun's fetch, checked by reading host.js only.
b8ec827 (#634, jiaohanying) lists the Claude Cursor hides from an
account once per context size. Its branch said 0.2.38, which main's
17e5ef7 had already published, so the package goes out as 0.2.39.
Run at b8ec827's tree with this version (mote, Bun, temp HOME): bun test
packages/cursor 393 pass; whole bun test 5199 tests, 0 fail; bun
scripts/check.mjs ok.
By jiaohanying (#634).
An account Cursor blocks Claude for has no Claude in the picker
(AvailableModels), only in the usable list, so those models were listed
as usableOnly fallback entries: a 200K window assumed, no sizes.
AvailableModels with scope 3 (the full catalog) is now asked alongside
the other two (8s; a failure leaves the list as before). The live
Anthropic models the picker lacks (not isHidden, not Auto, not chat-only
or Tab-only, with a variant the account has an id for) are listed as the
picker's models are: once per context size (claude-opus-5-5@300k, @1m),
thinking a parameter, the efforts the account is served, 1m in Max Mode.
A catalog variant without a legacySlug gets the one of the model's ids
that says its effort, thinking and fast; none or several, it is not
offered. Only the parameters the model defines are sent: the catalog's
Opus 4.7 to 5.5 variants carry cyber=false, which the picker's don't and
cursor-agent never sends. A saved sized id (claude-opus-4-8-thinking@1m)
now runs at its size. With no effort asked a catalog model goes at
Cursor's default variant (Opus 5 and 4.8: high), as the picker's do.
The version is bumped in the next commit: main's 17e5ef7 already took
0.2.38.
Run at the reviewed head f4cb8ed449ee63dfb92fa37509a171ee43de3280 (mote,
Bun, temp HOME):
- bun test packages/cursor: 393 pass, 0 fail. bun scripts/check.mjs: ok.
- Squashed onto origin/main a064cf1 with the version at 0.2.39: bun test
packages/cursor 393 pass; whole bun test 5199 tests, 0 fail (15 skip);
check.mjs ok.
Broken by hand:
- c588c65's withSlugs (no parameter filter): the cyber test fails
(Expected false, Received true); the other 8 pass.
- main's index.mjs under the new catalog.test.mjs: 7 of 9 fail.
The author ran a real Run on a blocked account at low effort:
claude-opus-5-5@300k went as claude-opus-5-5-low [context=300k,
effort=low, fast=false], @1m as the same id in Max Mode [context=1m].
Not tried by the reviewer: a real Cursor account (none available for
this review), and a long conversation at 300K or 1m. Every account now
makes the scope 3 request too, so a slow catalog can hold the list up to
8s, as GetUsableModels can.
Vigilans (#665): GetChatMessage's reply carries the thinking's signature
in delta_signature (10) and its type in delta_signature_type (21), and
ChatMessagePrompt takes the thinking back in thinking (11), signature
(12) and signature_type (18). The plugin read only delta_thinking (9),
so /v1/messages answered thinking blocks with signature "", and the
next request left the assistant's thinking out. Field numbers checked
against devin2api's all-protos.proto (GetChatMessageResponse,
ExaChatPb_ChatMessagePrompt) at e8547b6d.
- events() yields {signature} for field 10 and {signatureType} for 21.
- Messages, whole: the signature goes on the last thinking block. Stream:
a signature_delta in the open thinking block, before its stop, as
Anthropic streams it. Only when the request's model is Claude; another
model's thinking stays unsigned, as before.
- The type is kept by signature (the last 512) since a Messages block has
no field for it; one not kept goes back as "anthropic", what Devin says
for Claude.
- buildMessages, to a Claude model: a signed thinking block goes back
on the assistant prompt after it (its text, or the calls' prompt);
a second one before any prompt gets an empty prompt of its own, and
one after the text with calls following goes on the calls' prompt.
Unsigned thinking, thinking to a model that isn't Claude, and a turn
that only thought send nothing, as before.
- The chat completion and Messages streams read past events they send
nothing for: a pull that enqueues nothing isn't pulled again in Bun,
and the Messages stream hung on one (seen in the new tests before the
loop).
Not changed: chat completions (and OpenCode 2's language model, which
goes through them) have no field for a signature, so they carry the
thinking text only, as before. thinking_redacted (reply 11, prompt 13)
isn't read or sent.
Run at this head on mote:
- bun test packages/devin (HOME a temp dir): 199 pass, 0 fail.
- repo root bun test: 5175 pass, 0 fail (15 skip); bun scripts/check.mjs ok.
- thinking-signature.test.mjs on origin/main 311d628: the six tests of
the signature (read, whole, stream, replay, two thinking blocks, type)
red; the four "as before" tests pass.
Not tried: a real Devin account (none in a sandbox); frames are built
from the proto's field numbers, not captured bytes.
Kayphoon on Discord asked that routing spend the WorkBuddy CN account
whose extra-credit packs expire first, before they lapse. magpie's smart
routing already does that (Allowance.Renewal, Lapse and Pace read a
window's runsOutAt/runsOut), and the plugin already put the soonest lapse
of the summary's packages on the window that stops the account. But
extra credits that only the detail lists have (listedExtra, the China
free-account shape from jiabubu's report, 0.2.17) said their lapse only
on their own "Extra credits" window, which is set aside, and routing
reads no window set aside. So for those accounts routing knew no expiry
at all.
Now the soonest of them to lapse is also put on the Credits window, when
it is sooner than what that window already says (summed when the same).
Per-pack expiry isn't sent: routing only orders accounts by the soonest
lapse and how much lapses then, so a list would change no choice.
Run at this head (mote, HOME under TMPDIR): bun test packages/workbuddy,
318 pass 0 fail; bun scripts/check.mjs ok.
Broken by hand: the same usage.test.mjs with the old index.mjs fails the
jiabubu-shape test at the new assertion (Credits has no runsOutAt).
Not tried: a real WorkBuddy CN account with expiring packs; the fixture
is CN_FREE's shapes, not Kayphoon's bytes.
jzing.draw on Discord (#feedback, 2026-11-03): Qoder's 我的用量 said
套餐内 Credits 1,817 / 2,000 (剩余 183, refreshing 2026-11-22) and
资源包 2,400 / 3,400 (剩余 1,000). magpie's Routing row said a bare
"剩余 15%", which matched neither pool, so it read as the two not added up.
They were added up already (Total credits since 0.2.44, #454), but every
window sent only a share and a display string. The Routing row shows a
count only for a window with limit > 0, so it had no way to say which
figure it was. Now:
- every pool window and Total credits carry amount, limit and unit, so
magpie says "1,183 / 5,400 credits · 22% left" on the Routing row and
the Usage card, which is Qoder's 183 + 1,000.
- the plan's Credits window carries resetsAt = expiresAt, Qoder's
"将于 … 刷新" date (renewsOn in Qoder 0.4.3's buildUsageItemGroups).
Routing still counts the pools together and sets each pool aside; that
didn't change.
Run (mote, bun 1.4.2): bun test packages/qoder: 382 pass, 0 fail.
Broken by hand: with amount/limit/unit and resetsAt dropped from the
pool windows, the new test ("the plan and the resource pack read as
Qoder's own panel does…") fails.
Not tried: no real Qoder account. The fixture is built from the
reporter's screenshot numbers. The reporter's "15%" (85% used) isn't
reproduced from those numbers: the two pools together leave 22%. It may
be a reading taken later than the screenshot, or a dedicated resource
package Qoder's panel didn't show (the plugin counts those). Without
their reading this can't be told apart.
take() opened the lock with "wx", got EEXIST, then stat'ed it in abandoned().
When the holder released between the two, stat threw ENOENT and the second
concurrent sign-in failed with it (TestConcurrentSignIns on CI). abandoned()
now returns null for a lock that is gone, and take() opens again without
removing anything, since the path may already be a new holder's.
Run on mote (bun 1.4.2, node 22), HOME=$(mktemp -d):
- packages/gcp-ai node --test: 66 pass, 0 fail; under bun test 66 pass, 10 skip.
- Broken by hand (ENOENT catch removed): the new lock test goes red.
- The concurrent sign-ins test 30 times: 30 green.
- Full bun test 5164 pass, 15 skip, 0 fail; scripts/check.mjs ok.
Not tried: the original race itself is timing-bound and was not reproduced
on demand; the unit test covers the gone-lock path directly.
The row said "none (its service calls magpie's gateway)", but src/magpie-files.ts
reads providers.json (keys as sha256 fingerprints, key names, accountModels) and
the models cache. README only, no version bump.
Adds packages/window-warmup (@magpie-community/page-window-warmup 0.1.0), by YangHonghang:
a page plugin whose host part runs a service on 127.0.0.1:3492 and, on a schedule
(after a quota window resets, daily at a set time, or every N hours), sends "hi"
with max_tokens 16 through magpie's gateway to a provider/account/model the user picks.
The registry entry moves from the author's own npm package magpie-window-warmup to this one.
The package README opens with the zh/en warning that sends spend real quota and that some
vendors (Claude subscriptions especially) may treat scheduled requests as unusual use.
Reviewed at 07a0b217adb2a111f839c984cbc955c5bb45b68d:
- Outside packages/window-warmup only README.md and registry.json change; no workflow and no other package.
- The service binds 127.0.0.1, checks Host (DNS rebinding) and Origin (null or itself),
needs a per-process 32-byte token on /api/*, and serves the index with a nonce CSP.
- It reaches only MAGPIE_ADDR (default 127.0.0.1:3425). providers.json is read for sha256
key fingerprints only; no spawn, eval or outside hosts.
- A window task sends at most once per resetsAt (or once per hour when idle); daily/every
tasks catch up only the latest missed point, once.
Run on mote (bun 1.4.2):
- HOME=$(mktemp -d) bun test at the repo root: 5142 pass, 15 skip, 0 fail.
- scripts/check.mjs ok.
- packages/window-warmup bun test: 242 pass (dist.test rebuilds dist byte for byte).
- browser.test.ts with Playwright 1.62.0: chromium and webkit pass. Bun ignores NODE_PATH,
so it needs node_modules/playwright linked and PLAYWRIGHT_BROWSERS_PATH set under a temp HOME;
without them it skips.
Not tried: a real send through a live magpie gateway, and tsc --noEmit (no typescript on mote).
packages/agnes-code/README.md linked [agnes](packages/agnes), which from
that folder points at packages/agnes-code/packages/agnes. Now ../agnes.
README only; no version bump.
The desktop sign-in of astudio and agnes-code is now an oauth method, so
magpie shows no empty key box. When the desktop session is on disk it
finishes at once; when it isn't, it links the official site and polls
every 2s for up to 5 minutes, ending on cancel (the host's signal).
Missing, unreadable (with the reason, read errors other than ENOENT
kept), expired and banned are told apart; banned and non-Windows
agnes-code throw so the host shows the reason. agnes-code decrypts the
DPAPI master key once per sign-in (re-decrypted if the session frame no
longer opens with it) and kills a PowerShell stuck past 15s. agnes-code's
README and registry summary say how it differs from the `agnes` entry.
By jinyue806. Reviewed at 3a6bb97 (base 17e5ef7; main since then only
changed packages/workbuddy).
Run at 3a6bb97:
- mote, bun 1.4.2, HOME=$(mktemp -d) bun test: 4921 pass, 0 fail
(374 files); bun scripts/check.mjs ok; node --test on both packages
62 pass.
- xiaomi-gpu (Windows 11, node 22): node --test on both packages 62 pass.
- Raw bytes of astudio/index.test.mjs: 0 single-backslash "D:\a", 22
"D:\\astudio".
- magpie's plugin host (host.js from magpie origin/main e41ef6288,
run by bun on mote, sandbox HOME): astudio authorize with nothing on
disk gave the official URL and method auto; writing a session file 3s
into the callback finished it in 4.0s and saved key + metadata to
auth.json; with the file present the url was empty; banned came back
as the error message; an aborted callback was dropped; agnes-code on
macOS came back with "仅支持 Windows" and no poll.
- Broken by hand: dropping the master-key cache's set reds "decrypted
once per sign-in"; dropping the banned throw reds "refuses banned
accounts".
Not tried: a real DPAPI decrypt (Protect over ssh is "Access is
denied", no interactive logon there), real AStudio or Agnes Code
desktops. Left for a follow-up the author offered: a DPAPI failure
itself is not remembered, so each 2s poll can spawn PowerShell again
(bounded by the 5-minute wait).
By kunghim (#663). Squashed at the reviewed head 42b01b3 (the PR's f2a1233,
origin/main merged in, and the review's 0.2.19 bump: #657 had already
published 0.2.18).
workbuddy 0.2.17 -> 0.2.19:
- The China build's token window is no longer called "Free model tokens":
there deepseek-v4.1-flash is charged x0.11 credits (testdata/config-561.json,
copilot.tencent.com's /v3/config; WorkBuddy AI's is x0.00). Its card is
named "deepseek-v4.1-flash tokens (est.)", its text reads "151.5M / ~200M",
and its unit is empty (the name says tokens).
- The China windows are a table, CN_ESTIMATED_WINDOWS, one entry per
measured model ({provider, model, aliases, cap, name, short, unit}).
freeWindowOf, ofAccount and freeWindowRows take the model from the entry;
the parse-cache key carries the model too.
- WorkBuddy AI's card is unchanged (Free model tokens, 1e8, "tokens").
- Both stay set aside (shown, not routed on); a refusal still pins the card
full. Routing in magpie reads the card's models/aside/refused, not its name.
- README: the China windows section; the review fixed one line that said the
numbers carry "tokens (est.)" (only the name does).
Run at 42b01b3 on mote (macOS, bun 1.4.2), HOME=$(mktemp -d):
- bun test (whole repo): 4900 pass, 14 skip, 0 fail (4914 tests, 374 files).
- bun scripts/check.mjs: exit 0, 41 packages + registry ok.
- packages/workbuddy bun test: 318 pass, 0 fail (node --test n/a: the
package's tests use bun:test).
- magpie's real host.js (origin/main) under bun, sandbox HOME, the package
loaded from this tree, a usage.jsonl with one row per build and a
preloaded fake for WorkBuddy's meter (network otherwise blocked): init
provides workbuddy and workbuddy-ai; usage for workbuddy gives
"deepseek-v4.1-flash tokens (est.)" 151,500,000 / 2e8, unit "", display
"151.5M / ~200M", aside, models [deepseek-v4.1-flash, -sg]; workbuddy-ai
gives "Free model tokens" 30,000,000 / 1e8, unit "tokens", "30.0M / 100M".
Broken by hand: the card's name back to "Free model tokens": "the China
build counts its own rows against 200M" and the ledger usage test go red.
Not tried: a real China-build account; another CN model's window (none is
measured). With several CN windows the one-entry parse cache would re-read
the ledger per window each poll (one entry today).