017a7ee3b2d60a3f48c12cd7970745c6fa3ee0bf
778
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
017a7ee3b2 |
zcode 0.1.45: the daily claim reads the feed as the current client does (#678)
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. |
||
|
|
0b8cc01937 |
codearts 0.3.2: a dated model keeps the name CodeArts gives it (#677)
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. |
||
|
|
1dfdec29dc |
orcaterm 0.1.4: renew the WeChat token 90 minutes before it expires (#675)
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. |
||
|
|
1ed2f5544e |
minimax 0.2.1: a tool with no account named takes magpie's default account
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. |
||
|
|
4f3eddc256 |
cursor 0.2.40: a new user turn whose old native calls are all answered gets a retained Run (#672)
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. |
||
|
|
1d2edbbf2e |
aelios: link the Aelios-project organization after the transfer (#674)
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. |
||
|
|
95f37f46fa |
minimax 0.2.0: MiniMax web search and Matrix media tools (#671)
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. |
||
|
|
add66fc954 |
gcp-ai: the usage-options test asks no gcloud before the options are read (#667)
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. |
||
|
|
48a5f21835 |
gcp-ai 0.1.5: credits read per Chrome profile, per project's billing account and in yen, and a translated Console says so (kidchen94, #667)
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. |
||
|
|
067f4503ce | minimax 0.1.9: MiniMax's redirect to its other site is named, and a site without the membership API shows its credits (#666) | ||
|
|
d119f4f789 |
minimax: a site without the membership API shows its credits and no plan (#666)
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. |
||
|
|
0e072cdf09 |
minimax: a redirect to MiniMax's other site says so, not that the sign-in was refused (#666)
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. |
||
|
|
023631774e |
cursor 0.2.39: release the catalog's Claude listing (jiaohanying, #634)
|
||
|
|
b8ec827579 |
cursor: the Claude Cursor hides from an account is listed once per context size (jiaohanying, #634)
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 |
||
|
|
a064cf15e1 |
devin 0.1.35: Claude's thinking keeps its signature and goes back with it (#665)
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
|
||
|
|
311d62867c |
workbuddy 0.2.20: extra credits only the detail lists have say when they lapse on the window routing reads (Kayphoon)
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. |
||
|
|
1984cf65dd |
qoder 0.2.59: usage carries each pool's count and the plan's refresh, as Qoder's own panel shows them (jzing.draw)
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. |
||
|
|
4586f8623b |
gcp-ai 0.1.4: a sign-in waiting on a lock its holder just let go takes it, instead of failing with ENOENT (#650)
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. |
||
|
|
d0e3d76b1f |
README: window-warmup's row says it reads magpie's providers.json and model cache
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. |
||
|
|
1ab8238ade |
window-warmup 0.1.0: a page that sends a short message after a quota window resets, daily or every few hours (#661)
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). |
||
|
|
81c7db0869 |
agnes-code: the README's link to the agnes package is relative to its own folder
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. |
||
|
|
a48f39692a |
astudio 0.1.3, agnes-code 0.1.2: the desktop sign-in links the official site and waits instead of showing a key box (#658)
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). |
||
|
|
33bb5fb2ef |
workbuddy 0.2.19: the China build's windows are named after their model and say they are estimates (#663)
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). |
||
|
|
17e5ef7457 |
all: load on OpenCode 2.x through a default {id, setup} (#657)
nbczw8750 (#657): trae 0.2.26 on OpenCode 2.2.5 fails with "Plugin must export a default definition with an id and an effect or setup function. (cause: SchemaError(Missing key at ["default"]))". 2.x imports a package's exports["."] (a plugin dir and an npm install alike) and has no V1 path at all, so every package here that serves models failed the same way, not only trae. Every one of the 32 model packages now has: - opencode2.mjs, exports["."]: a copy of scripts/opencode2.mjs, an adapter that runs the package's V1 plugins inside 2.x's promise API. Config providers become 2.x providers (package pinned so the aisdk sdk hook runs), V1 auth methods become integration methods (oauth auto/code with forms; api without authorize as a key method), V1 credentials are kept in metadata.v1, the loader's baseURL, apiKey, headers and fetch are applied through the sdk hook, an auth.set renewal is stored per credential, and credential.switched /updated reload the account's own model list. - opencode.mjs, main: re-exports the V1 plugin functions only. OpenCode 1.x and magpie's host.js take main. On 1.x, trae 0.2.26's main exported a non-plugin (_internal) and 1.19.5 refused it ("Plugin export is not a function"); the new main fixes that too. - both files in "files"; patch version bumped. devin already had 2.x and is unchanged. scripts/check.mjs fails a model package whose 2.x entry has no default {id, setup}, whose opencode2.mjs differs from the canonical one, whose entry is missing from files, or whose main exports a non-plugin. Run at this head (mote): - HOME=$(mktemp -d) bun test, as CI runs it: 4900 pass, 0 fail (4914 tests, 374 files). A first run set globalThis.fetch for the whole process from opencode2.test and failed 528 tests in other packages; the block is now set and put back around that file's tests. - bun scripts/check.mjs: every package passes. With the network blocked cloudflare-workers-ai fails on its fetched catalog, the same on origin/main. - Real OpenCode 2.2.5 (npm opencode-ai), sandbox HOME, packed trae 0.2.27: loads with no error; /api/integration lists trae-cn "Trae CN" and trae-global "Trae Global" with their browser sign-ins; `auth login` starts the trae.cn authorization and waits (cancelled there); with a fake credential POSTed to /api/credential, `opencode models` lists trae-cn's six models. - Real 2.2.5 with a fake V1 key plugin through the same adapter against a local fake server: `auth login` with a key, `models`, `opencode run` reached /real/v1/chat/completions with the loader's "Bearer loader-sk-fake" and header, and printed the fake's reply; with @ai-sdk/anthropic it reached /real/v1/messages with x-api-key from the loader. This run found the key method missing after 2.x's second integration transform (a once-only flag outside the transform); fixed, and opencode2.test checks a rebuild. - Real OpenCode 1.19.5, sandbox HOME, trae 0.2.27: `opencode models` lists trae-cn and trae-global models; 0.2.26 failed there. Broken by hand (scratch copy, bun test scripts/ and check.mjs): - trae's exports back to "./index.mjs": the trae 2.x test fails (default.id undefined), check fails trae with "OpenCode 2.x: ./index.mjs has no default {id, setup} (plugins#657)". - zed's opencode2.mjs changed: the copies test fails, check fails zed "differs from scripts/opencode2.mjs". - the key flag back outside the transform: the 1.x plugin test fails on the rebuilt sign-ins (key missing). Not tried: a real sign-in with a real account on 2.x; Windows (the reporter's OS); chat.headers, chat.params, usage and tool hooks, which the adapter doesn't carry to 2.x; the tools/pages packages (calc, goanyapi, layerfs, search1api, aelios, agent-console, chat, fingerprint, nowledge-mem, kimi-desktop), which still load only on 1.x. |
||
|
|
da94c2768a |
workbuddy 0.2.17: extra credits only the detail lists have are their own window
jiabubu on Discord (magpie 0.1.2774, workbuddy 0.2.16, a China-site free account): magpie's card read "Free plan · 0 / 500" and nothing else, with no Extra credits row. 0.2.16 splits the credits only by the resource summary (CreditGroups, else its Packages). WorkBuddy's own usage panel (5.5.6, buildCreditGroups) groups the packages of the paid and free detail lists, so extra credits only those lists carry were nowhere in magpie. The usage hook now adds, when the summary has the plan's credits alone, an "Extra credits" window from the detail lists' packages that: - are an extra kind as the client's resolveCreditGroup has it (bonus 028/037, top-ups 009/038/036, rewards 007/029/030; on WorkBuddy AI also 008 and 006; the China build puts gift 006 in no group); - the summary doesn't list (never counted twice); - haven't ended, and have a total (a slice package counts the day's slice). It is set aside, and says the soonest-lapsing credits (runsOutAt/runsOut). The plan's window still stops the account. Lists that can't be read, or a summary that already splits, keep the card as it was. Run at this head on mote: `HOME=$(mktemp -d) bun test` 4892 pass, 14 skip, 0 fail; `bun scripts/check.mjs` ok. Broken by hand: not adding the window turns the new test red (1 fail). Not tried: a real account with extra credits; the China meter answered 401 for the account I could read. The fixtures are CN_FREE's shapes with a total, not jiabubu's own bytes (not seen). |
||
|
|
e08e420581 |
check: accept quota-only providers without model transport (#654)
scripts/check.mjs accepts a provider that declares auth.usage, an empty
model map and no npm or api (a quota-only provider). Its loader is still
required, and a provider with models, npm or api is still checked as
before. Tests in scripts/check.test.mjs cover the accepted case, the three
incomplete configurations and a missing loader. (sunny0826, split out of
#653 as asked there.)
Run at the reviewed head bc57c1362e, rebased on main
|
||
|
|
d40a074828 |
qoder 0.2.57: QwenWork's gateway calls name the client, and a biz account refreshes for its team (tnt1223)
tnt1223 (Discord) signed in to QwenWork. Test models and the model list
both failed: "QwenWork models: HTTP 403: {"code":"403","message":"User
identity could not be verified"}". No QwenWork account was at hand, so
the case wasn't reproduced. These are the differences from QwenWorkCN.app
1.2.1 (its out/main/main.js) that the code shows:
- openApiJsonRequest puts User-Agent qoderwork/1.2.1, a fresh
X-Request-Id and getQwenWorkClientHeaders (X-QwenWork-Version,
-Release-Version 1.2.1-26092107, -Build 26092107, -Platform, -Arch,
-Channel stable) on every gateway call. These cover the device poll,
the account-context, wallets and the device token's refresh. The
plugin sent none of them. It now sends them on the QwenWork sites
(site.clientHeaders), in openapi() and in usage's read.
- refreshDeviceToken asks for {target:"biz", team_id} when the account
is a biz one (getIdentityFromUser: is_biz with an org and a team, read
through normalizeAccountContext), and for "c" otherwise. It adds
client_id and redirect_uri when the client signs in with that pair.
The plugin always asked for "c", which turned a biz account's token
personal on its first refresh. The sign-in now records identity and
teamId (accountIdentity), and deviceRefreshBody asks as the client
does. An enterprise-domain account sends no redirect_uri, since its
sign-in has none (siteOf).
- The 403 on the model list now adds that the sign-in's identity wasn't
recognised, and to sign in again. Other 403s read as before.
Qoder and Qoder CN are unchanged. A test checks that a Qoder call
carries no X-QwenWork-* or User-Agent, and that the refresh body is the
token alone.
Run on mote (bun 1.4.2):
- packages/qoder bun test: 381 pass, 0 fail.
- bun scripts/check.mjs: all packages ok.
Broken by hand in a copy, with the client headers dropped, the refresh
always "c", the identity not recorded, the enterprise redirect_uri kept
and the hint removed: 4 of the new tests failed.
Not tried:
- A real QwenWork account, personal or biz, so it isn't known that
these were the cause of the 403.
- The chat's Cosy-* signing. The official app signs it through its CLI's
wasm (sign-request), and that wasm also has Cosy-Organization-Id,
Cosy-Organization-Tags and Cosy-Data-Policy, which the plugin doesn't
send. Which account fields fill them wasn't read out of the wasm.
|
||
|
|
a16adb3025 |
qoder 0.2.56: Qoder CN signs in to a Lingma 1.0 dedicated domain with Qoder CN IDE's account (Milktea)
Milktea (Discord) said the plugin still can't sign in to their Qoder CN
IDE enterprise dedicated domain (企业专属域). Their domain answers 404 at
/algo/api/v1/version, so Qoder IDE 1.38.0 counts it as Lingma 1.0
(dedicated_lingma; the IDE then logs "use extension 127 login" and leaves
the sign-in to its language server). 0.2.53 refused such a domain.
Milktea measured these on that host (their gist):
- /device/selectAccounts and /api/v1/jobToken/exchange answer 404.
- A console PAT or the console's cookies get 105 "Login timeout" at /algo.
- /algo/api/v3/user/* answers "Request discarded".
What works is the session the IDE's worker keeps:
- <cosyHome>/cache/id holds the machine id (or <cosyHome>/id).
- <cosyHome>/cache/user is base64(AES-128-CBC(JSON)), with key = IV =
the id's first 16 chars. The JSON has uid, organization_id, email,
security_oauth_token (pt-), refresh_token and expire_time.
What changed:
- The dedicated method's 404 branch now reads that cache (lingmaSignIn).
The account it saves has lingma: true, the domain, the IDE's token and
its machine id, and is named <email> (<domain>). With no cache, or a
lapsed one, the sign-in says so and lists the folders it looked in.
- cosyHome comes from the CN IDE's main.js: <userDataPath>/SharedClientCache.
That is ~/Library/Application Support/QoderCN on macOS, %APPDATA%\QoderCN
on Windows and $XDG_CONFIG_HOME (~/.config)/QoderCN on Linux. The gist's
Linux-only folders, ~/.lingma and QODERCN_COSY_HOME are read too.
- Every call goes to the domain itself (lingmaSite). The chat is signed
as the gist captured the worker signing it: Cosy-ClientType 0, version
2.5.18, no Cosy-Scene or Cosy-Business-*, the assistant scene, and
model_config format dashscope.
- The models are the IDE's own keys: qmodel_latest, dashscope_qmodel and
q36fmodel, all modelSelector.item.* names in the CN IDE's workbench. The
domain's own list names keys its chat refuses. A "Model not exist" said
in the stream falls through to the next key.
- Renewal reads the cache again; the worker renews its own token ("CN 1.0
refresh" in its strings). This happens near the token's end, in
auth.refresh, and once after a 105. With nothing newer, the account
gets a 401 marked expired that says to open Qoder CN IDE.
- Usage reads nothing, and the check-in is inactive.
- events: a frame with no choices that holds an error, or a code and a
message, is now the turn's failure. Before, it was read past, which gave
an empty answer. This is the only change outside the Lingma path.
- README: a section on Lingma 1.0 domains.
Run (mote, bun 1.4.2): packages/qoder `bun test`, 375 pass, 0 fail. The new
lingma.test.mjs has 11 tests, with fixtures in the gist's literal shapes.
fetch is stubbed and HOME is a sandbox. On 0.2.55 all 11 are red. `bun
scripts/check.mjs` passes. dedicated.test.mjs lost its "Lingma is refused"
test, which lingma.test.mjs now covers.
Broken by hand: with Cosy-Scene and Cosy-Business-* kept, and with the
events error frame off, 2 of the 11 went red (the chat's headers, and the
fall-through on an error said in an OK frame).
Not tried:
- Any real Lingma dedicated domain or real Qoder CN IDE cache. Milktea's
gist was run against one; this code wasn't.
- The cache's AES key, the SSE wrapper, the version 2.5.18 and the
missing headers come from the gist's capture, not from the IDE's code.
- Whether the cached account belongs to the domain entered isn't checked
(the cache doesn't name a domain).
- The Remote-SSH layout (<machineId>/SharedClientCache).
|
||
|
|
52fff4d7d7 |
workbuddy 0.2.16: Extra credits are every kind but the plan's base, as WorkBuddy's own panel and CreditGroups say (Jiabubu)
Jiabubu (Discord, magpie 0.1.2738, Windows): a WorkBuddy account's quota
line under Routing → Accounts and keys showed the plan's Credits only;
extra credits (gifted, promo, bought) were neither shown nor counted
apart. magpie shows every window the plugin sends, so the gap was here.
Read from the vendor, not guessed:
- WorkBuddy AI 5.9.4.42593613 (its update feed today, read, never run):
the usage panel's buildCreditGroups/resolveCreditGroup put packages in
four kinds. planBase: proMon, proMonPlus, proYear, youth, advanced,
flagship, buddyOneVip (043), freeMonIntl, the Pro trials, and freeMon
on the China build. planBonus: bonus28, bonusIntl. addon: 009, 038,
036. benefit: activity, bonus29/30, and gift and freeMon on WorkBuddy
AI.
- The real summary (/billing/meter/get-user-resource-summary, the
owner's WorkBuddy AI free account, 2026-11-03) now carries CreditGroups
with the same four Kinds: plan_base "Plan Base Credits", plan_bonus,
addon "Top-up Credits", benefit "Platform Reward Credits".
0.2.11 called the plan's bonus (bonus28, 037) the plan's, from the
client's onlyRefreshCodes, so a Pro account's 1000 bonus credits were
summed into "Credits" and no "Extra credits" window was sent (the real
Pro summary in the tests, LIVE_SUMMARY, read "89.2 / 2000" in one
window). Now:
- with CreditGroups, "Credits" is plan_base and "Extra credits" the sum
of every other kind (an unknown Kind too);
- without them, the codes split as the client's panel does: PLAN_CODES
is its planBase list (028 and 037 out, buddyOneVip 043 in); 043 is
asked for in the paid list too, as the client's list has it;
- the prepaid balance window, the aside rule and runsOutOf are as they
were.
Run on mote at this tree: HOME=$(mktemp -d) bun test (whole repo):
4872 pass, 14 skip, 0 fail; bun scripts/check.mjs ok; packages/workbuddy
316 pass. usageOf on the real WorkBuddy AI summary: one window,
"0.19 / 100", as the account has only plan_base.
Broken by hand: origin/main's index.mjs: 3 usage tests fail (the new
one, the akic404 split, the unreadable-list card). CreditGroups ignored
(code split only): the new test fails ("150 / 1800").
Not tried: Jiabubu's own summary, and any real account with extra
credits: the owner's WorkBuddy AI account has plan_base only, and the
China account's token was refused (401) by the meter, so whether
copilot.tencent.com sends CreditGroups is not seen; without them the
code split applies. Two windows rather than four: the bonus, top-ups and
rewards are one "Extra credits" window.
|
||
|
|
85a6fd5485 |
chat 0.1.11: attachments reach the model, saves serialized, tool history by round (#645)
By ninondev (#645). Squashed at the reviewed head 764fbfc. Changes in packages/chat, 0.1.10 -> 0.1.11: - Attachments reach the model: - A .md, .markdown or .txt file, or any text/* file, is sent as UTF-8 text in a 【文档:name】 block. Bad bytes are an error, not mojibake. - An image's data URL gets its real MIME type, even when the browser said application/octet-stream or gave no type. - Send waits for every upload still in progress, not only the books. - A failed upload is dropped with a toast. It no longer goes in as a local copy that skipped the size caps. - Conversation saves: - Writes are serialized per conversation id. Once a delete has gone through, any write still queued is skipped. - A new conversation gets its id on the client up front. A save that finishes after the user has switched conversations no longer takes over the open one. - Opening one conversation and then another quickly no longer shows the first. - Tool history: - The server sends a "round" event each turn of the tool loop, and the history is replayed round by round. - Tool-call ids are unique across rounds (call_<round>_<i>). - Each tool result is capped at 60000 chars, the same in the stream and in the history. - A stop is checked before each tool call and after the MCP read. - A connection-error card is not replayed to the model. - epub-reader.test.mjs launches Chromium with --use-mock-keychain. Run at 764fbfc on mote (macOS), each with HOME=$(mktemp -d): - `bun test` (whole repo): 4857 pass, 14 skip, 0 fail, across 370 files. - `bun test packages/chat`: 68 pass, 1 skip, 0 fail. - `bun scripts/check.mjs`: exits 0. - The epub browser test with EPUB_TEST_BROWSER set to Playwright's Chromium: 2 of 2 pass. - A review-only end-to-end run (not committed) in Playwright Chromium and WebKit 1.62, at a 1100px width, with the real chat server and a fake gateway: - It attaches scene.md (no MIME type) and photo.png (application/octet-stream), types a question and sends. - It checks that the gateway got the markdown text, an image/png data URL and the typed text. - It reloads, reopens the conversation from the sidebar and asks a follow-up. The history still has the markdown and the image, and there is exactly one saved conversation. - All checks pass in both engines. With origin/main's packages/chat the same run fails 8 checks: the markdown and the image never reach the gateway. Broken by hand: - Without the per-round tool-call id dedupe, "tool history preserves round order ... repeated IDs" goes red. - With only the first throwIfAborted removed, the stop tests stay green, because the second check covers it. Read for harm: no new hosts, no credential or keychain access, no dependencies. Not tried: a real model or real MCP servers behind magpie's gateway. |
||
|
|
036fb6ed43 |
zcode 0.1.43: a block page holds zcode.z.ai off three minutes, for every account (#649, frank6com)
frank6com's 405 ("the provider's network firewall blocked requests from
this IP") is Aliyun's edge firewall in front of zcode.z.ai answering
POST /api/v1/zcode-plan/anthropic/v1/messages (the Start Plan) with its
405 HTML page. It is the address, not the method nor the account: ZCode's
own app got the same 405. Two Start Plan accounts and three sessions with
subagents (up to 6 requests at once from one IP), and every request after
the block went on knocking on the firewall, from both accounts, since the
gateway falls back but rests nothing for an edge block.
Now a block page sets a process-wide hold (edge.until, EDGE_HOLD three
minutes): while it lasts, a Start Plan request and a picked -Trial entry
are answered here with the same 405, permission_error and
provider.BlockedHint word for word, plus until when, so magpie's
EdgeBlocked and retryable still send the request to the group's next
provider. Free first leaves the gift and keeps a dual account on its
coding plan (api.z.ai, another host). A 3012 or a bare 405 is the
account's and holds nothing. The first request after the hold asks again.
Run, at this head, on mote:
- packages/zcode: bun test, 189 pass, 0 fail.
- bun scripts/check.mjs zcode: ok.
- Broken by hand: without the line that sets the hold, both new tests
are red (65 pass, 2 fail in start + dual); without !edgeHeld() in free
first, the dual test is red (66 pass, 1 fail).
Not tried: a real zcode.z.ai request. Reproducing needs the address
blocked, and asking until it is would block the owner's network. The page
the tests use is the one plugins#425 recorded.
|
||
|
|
58adeadfac |
qoder 0.2.55: a request whose max_tokens is 1024 or less does not think at the default (#643)
The same default as WorkBuddy's #643 (itspig): qoderBody's effortFor thought at the model's default effort when no effort was asked, so a title asked at a small max_tokens could spend it on reasoning. A request that names no effort and a max_tokens (or max_completion_tokens) of 1024 or less is now asked as "none": thinking off, or the lowest level for a model that always thinks. An asked effort, and a larger or unnamed budget, are unchanged. Run, at this head, on mote: - packages/qoder: bun test, 365 pass, 0 fail; small-budget.test.mjs new. - bun scripts/check.mjs qoder: ok. - Broken by hand (the SMALL_BUDGET line in effortFor removed): small-budget.test.mjs is red, 1 pass, 1 fail. Not tried: a real Qoder account. Qoder answers 401 to the owner's account (plugins#181), and no Qoder report showed a small budget spent on thinking; the change follows WorkBuddy's measured case. Other siblings checked: trae, devin, commandcode, loomy and kiro send only an effort the client asked or leave the server's default; none add one. |
||
|
|
d51bd50cf6 |
workbuddy 0.2.15: no default effort for a chat whose max_tokens is 1024 or less (#643, itspig)
itspig's change (the commit before) skips the default reasoning_effort at max_tokens 256 or less. This raises the bound to 1024, as SMALL_BUDGET, and reads max_completion_tokens too. Anthropic's API takes no thinking under a 1024-token budget, so a /v1/messages request magpie translates with max_tokens 1024 or less can't have asked for thinking, and the gateway sends it with no effort, the same as OpenCode's default variant. 256 left 512 and 1024 asks thinking at the default. Run, at this head, on mote: - packages/workbuddy: bun test, 315 pass, 0 fail. - bun scripts/check.mjs workbuddy: ok. - Broken by hand (the SMALL_BUDGET line removed): the new test is red, 8 pass, 1 fail. Real, on the owner's workbuddy-ai account (www.workbuddy.ai, sandbox HOME, no token renewal), deepseek-v4.1-flash-sg, default effort high: - main, max_tokens 64, no effort: finish "length", 64 reasoning tokens, empty content (#643's pattern). This head: "stop", 0 reasoning, the title answered. - main, max_tokens 1024: 76 reasoning tokens. This head: 0, answered. - This head, max_tokens 2048: 65 reasoning tokens (the default still goes). - An explicit "high" at 64 still ends "length"; "low" answers. An effort the client names goes as it came. Not tried: the China site (copilot.tencent.com), deepseek-v4-pro (11102 on the AI site), kimi-k3.1-pro (11158, not for free users). |
||
|
|
8d8b108e67 |
fix(workbuddy): omit default reasoning effort when max_tokens <= 256
When a chat does not explicitly name reasoning_effort, withDefaultEffort injects the model's default reasoning effort (e.g. 'high'). However, for lightweight tasks specifying small output limits (e.g. max_tokens <= 256 like title generation or short classification), forcing a high reasoning effort consumes the entire completion token budget on reasoning alone, producing 0 text tokens before hitting finish_reason=length. Skip default reasoning effort injection when max_tokens <= 256 while preserving explicit client-specified efforts and normal-sized chats. Issue #643, PR #644. |
||
|
|
38ef050204 |
commandcode 0.1.22: Beam is sent each earlier reply's reasoning back (EDwinpzy)
Reflection's Beam (reflection/beam:free) answered a fresh one-turn chat and turned the second turn away with 400 "Missing required parameter: 'messages[N].reasoning_content'", a reply another model made included; it took the request once each earlier assistant message had something there (EDwinpzy on magpie's Discord, magpie 0.1.2717, through /v1/chat/completions and /v1/responses alike). The Provider API's list says nothing of it (Beam's entry is id, name, context_length and supported_endpoints, read 2026-11-03), so: - a model matching reflection/beam has reasoning_content on every assistant message: its own when it has some, the thinking sent back as reasoning (moved, not duplicated), else "." (a blank one, which magpie sends tool turns with, is replaced too: whitespace may read as missing); - any other model the Provider API refuses with a 400 asking for reasoning_content is asked once more with it filled, and is filled from then on (in-process). Other models' requests go as they came. Run at this head (mote, bun 1.4.2): bun test in packages/commandcode, HOME=$(mktemp -d) as pr.yml does: 101 pass, 0 fail. bun scripts/check.mjs commandcode: ok. Broken by hand: reasoning-back.test.mjs against the old index.mjs: 4 of 7 fail (both of the reporter's two-turn shapes, the reasoning/blank case and the learned model get 400); the three "goes as it came" pass. Not tried: a real Beam request. The one Command Code key on this machine answers 401, so the placeholder "." and the refusal's JSON around the reporter's words are not checked against Beam itself. Go's /alpha/generate path is unchanged and not tried with Beam. |
||
|
|
fa46c0764f |
agent-office 0.3.1: README says eleven scenes
0.3.0 (#637) added five scenes, but the README still said six. It now says eleven in the English image caption, in the zh 3D feature line (which lists the five new scenes too) and in the file list's scene3d.js line. The patch bump puts the README into the dist tarball. No code changed. Run at this commit on mote (Bun 1.4.2): bun test in packages/agent-office 181 pass, 0 fail; bun scripts/check.mjs agent-office ok. |
||
|
|
87561b3fc3 |
agent-office 0.3.0: library, cyberlab, greenhouse, arctic and rainy night scenes (#637)
Adds five scenes to agent-office: library, cyberlab, greenhouse, arctic and rainy night. Each has themed 3D decorations and an ISO/2D canvas palette, and its name is in all 9 languages. Bumps the package to 0.3.0, and the registry summary now says eleven scenes in en and zh. The six existing scenes keep their ISO/2D palette: `scene2.theme` is set only for the five new ids. By kongtou20070406. Run at the reviewed head 8986d2f on macOS (mote, Bun 1.4.2, Playwright 1.62.0): - `bun test` in packages/agent-office: 180 pass, 1 fail. The fail is jump.test.mjs's host-restart jumpRequest test: herdr.log was never written at load ~70. It passes 6 of 6 alone at this head and 3 of 3 on main |
||
|
|
eea8c9bcf0 |
workbuddy 0.2.14: the free model's ledger estimate is shown, not routed on (#641, XiaoFeiyu9)
XiaoFeiyu9's China account (paid credits, deepseek-v4.1-flash at x0.11)
read 99% of the free model's window in routing: 187,701,367 of the 1.9e8
soft cap, from 937 answered calls and no 429, while the credits meter had
2,457 credits left. The window is this machine's ledger summed against a
cap measured on two other accounts; neither is the vendor's word for this
account, yet the card was a routing window and would have stopped the
model at 190M.
Now the summed card is set aside (aside: true): magpie shows it beside the
account and never counts it as the allowance (allowanceOf skips aside
windows). Only a refusal's card (refused: true, used 100, the vendor's
reset) stops the model. Nothing is lost by waiting for the refusal:
magpie's gateway already reads WorkBuddy's 429 reset ("将在 … 重置",
"reset at …") and its "switch to the other models" (resetsWhen,
otherModels in internal/gateway/routing.go) and rests this model alone, on
this account alone, until that time. Both builds, as both read the sum
the same way.
The China cap goes from the soft 1.9e8 to the measured 2e8 (#625's
refusals at 200,389,043 and 200,485,923). The 5% headroom only existed so
routing would stop before the vendor; with the sum aside it would only
make the card read high. The reporter's sum now reads 187.7M / 200M.
Run at this head (
|
||
|
|
fa144e4c9e |
qoder 0.2.54: a request's model_config is built as Qoder's client builds it, not sent as the listing entry (#638, square-235)
square-235 (plugins#638): on Qoder CN, magpie's DeepSeek-Flash (dfmodel)
calls show in QoderCN's billing as "Auto", charged at Auto's rate, while
Kimi-K3.1-Pro (kmodel_latest) calls are billed as themselves. Their
screenshots show magpie asking qoder-cn/dfmodel, and the billing rows at
those times saying Auto.
The model id did map: X-Model-Key and model_config.key were dfmodel. What
differed from Qoder's own client was model_config. The plugin sent the
model's listing entry whole. Qoder's client (CN CLI @qodercn-ai/qoderclicn
1.1.81 Pcu, desktop 0.4.3 nzc, the qoder-agent-sdk worker) sends a trimmed
object: key, display_name, model "" (or outer_provider), format, is_vl,
is_reasoning (false when thinking is off), api_key "", url "", source,
max_input_tokens (2e5 when missing). dfmodel's entry carries a
minimal_version (on qoder.com {"cli":"0.1.25","jb_plugin":"0.15.0",
"ide":"0.3.0"}; in the CN listing {"vsc":"999.999.999"}) and kmodel_latest's
on qoder.com has none, which matches the one billed wrong. Likely cause,
not confirmed: no Qoder CN account was used.
- modelConfig(m, thinking) builds the client's object, and qoderBody sends
it in place of m.config.
- The class: a model whose entry has no key, or key auto/default, or a key
other than the one asked for, is refused. ask answers 400 with the
reason and sends nothing. The worker reads a missing key as "auto". A
model id the listing doesn't have was already a 400 before any send.
- README: the Models section says what model_config carries now.
Not changed: the worker also sends chat_context.extra.modelConfig {key,
is_reasoning}; the plugin still doesn't. X-Model-Key/X-Model-Source stay.
Run (mote, bun 1.4.2), at this tree: packages/qoder `bun test`, 363 pass,
0 fail, with the new model-config.test.mjs (8 tests built from the real
testdata/listing.json and cn-listing-free-view.json bytes; the CN listing
is a free account's, so its entries are turned on in the test and nothing
else is changed). `bun scripts/check.mjs` passes.
Broken by hand: with model_config back to m.config, 6 of the 8 went red
(the four dfmodel/kmodel_latest shape tests on qoder and qoder-cn,
is_reasoning off, the key refusal). With the key guard removed, the
refusal test went red.
Not tried: a real Qoder CN chat with dfmodel, and whether the billing row
now says DeepSeek-Flash. The upstream SSE "model" is "auto" for every
model (seen on a real qoder.com kmodel_latest call), so it can't tell.
QwenWork and QwenWork Enterprise get the same model_config and were not
tried.
|
||
|
|
48d0cecaf8 |
zed 0.1.15: only compact_20260112 reaches Zed in context_management (nllay, #636)
Zed's cloud parses an Anthropic request's context_management into its own enum (zed crates/anthropic), which has one variant, compact_20260112, and needs edits. Claude Code's clear_thinking_20251015 was answered 400 "unknown variant ..., expected `compact_20260112`". nllay's patch dropped that edit. The follow-up keeps only compaction edits, since any other type (clear_tool_uses_20250919) fails the same way. context_management is left out when no edit remains, and a non-list edits or a null entry no longer throws. zed 0.1.15. Run at the reviewed head 79aab88 on mote (Bun 1.4.2), packages/zed: bun test, 66 pass 0 fail. The new context-edits.test.mjs is red without the change: 2 pass 3 fail with 74caff5's index.mjs, 1 pass 4 fail with main's. Not tried: a real Zed account (nllay reports a 200 through magpie for the clear-thinking case). |
||
|
|
32d58dd511 |
respire-memory 0.3.15: every --parent must be shown first, --clear-parent is refused (#633)
Sync of risense-ai/respire-magpie v0.3.15 (2c5a237c). memory-tools.mjs is byte-identical to upstream at that commit.
- `--clear-parent` joins the forbidden memory options.
- Every `--parent` (both `--parent ID` and `--parent=ID`) must be a full id that was shown first, on remember and update alike; a non-trivial remember still needs one.
Run at 79b99037 on mote (Bun 1.4.2, Node 22): `node scripts/check.mjs` in the package (isolated temp HOME, detached worker, archive checks) passed; `bun test packages/respire-memory` 1 pass; `bun scripts/check.mjs respire-memory` passed.
Broken by hand: with 0.3.14's memory-tools.mjs the new placement checks fail ("Missing expected rejection").
Not tried: a real Respire install against a live model.
PR #633 by @luodaoyi.
|
||
|
|
b820704803 |
zcode 0.1.42: a plain GLM model spends a live ZCode gift first, by default (sgfvdsg86265 on X)
The request (X, 2117210897471169009): when the account has gift quota for a GLM model, which ZCode hands out every weekend, spend that first. freeFirst (#505) already does it, but only when it was turned on, so a gift lapsed unused behind an agent that asks for the plain model. It is now on unless the plugin's options or the provider's say `"freeFirst": false`, which are still honoured as they are. Every way the gift can fail (spent, a model it doesn't serve, no ZCode session, a refusal's minute of rest) still falls back to the coding plan, as before. A team seat's plain model spends the personal gift first too. The tests that are about the plan and the -Trial picks now build the plugin with freeFirst off, as they assumed it was. Run on mote: HOME=$(mktemp -d) bun test in packages/zcode, 187 pass; bun scripts/check.mjs zcode ok. Broken by hand: with the default back to off, "free first is on when nothing sets it" and "free first is on by default for a team seat" fail; the rest pass. Not tried: a real account with a claimed gift. The owner's account has only an unclaimed one, which wasn't claimed for this. |
||
|
|
731277004a |
qoder 0.2.53: Qoder CN signs in to an enterprise dedicated domain (企业版专属域)
Milktea (Discord) has a Qoder CN enterprise dedicated domain on <corp>.rdc.aliyuncs.com. Qoder IDE signs in to it through 「企业版专属域登录」 once the domain is set in its settings. The VPC method takes only <instance>.vpc.qoder.com.cn, so it refused the domain. The new method, "Sign in with Qoder CN Enterprise dedicated domain (企业版专属域)", takes any https host. It follows Qoder IDE 1.38.0's workbench (config.general.dedicatedUrl, _loginDedicatedWithProbe): - It asks GET <domain>/algo/api/v1/version. A 404 is a Lingma 1.0 dedicated domain. Its sign-in is cosy's login/generateUrl with a qoder-cn-ide:// callback, which this plugin doesn't serve, so it is refused with what it is. Any other status is Qoder CN 2.0. If nothing answers, the domain is refused (the IDE falls back to Lingma there). - For 2.0, the domain's origin serves /device/selectAccounts, with the IDE's client id f5a7f67c-… and no redirect_uri. The poll, user info, tokens and usage go to <label>-openapi.<rest>, and models and chat to <label>-gateway.<rest>. These hosts follow the IDE's RNc/TNc/JL0 rule, which keeps the origin for an IP or a dotless host. - Inferred: the IDE's language server picks the chat host, and its rule wasn't read. The account chats on the gateway host if that host answers at sign-in. If not, it chats on the domain itself, which answered on /algo. The pick is kept as dedicatedApi. The domain is kept on the account as `dedicated` (and `vpc`, for its name suffix). siteOf routes it before the VPC rule. A kept domain that isn't one is asked to sign in again, never sent to the public hosts. Run (mote, bun 1.4.2): packages/qoder `bun test`, 355 pass, 0 fail (dedicated.test.mjs 10, vpc.test.mjs 17 unchanged). `bun scripts/check.mjs` passes. Broken by hand: with siteOf's dedicated branch off, the 404 check off, and the origin fallback off, 4 of the 10 dedicated tests went red (Lingma refusal, gateway chat, origin fallback, renewal). Not tried: any real dedicated account, either kind. The fixtures come from the IDE's code, and the reply shapes are the VPC ones (#312). The Lingma 1.0 path is not implemented. |
||
|
|
bcd60af045 |
registry: Window Warmup's summaries carry the words people search it by (#629)
Window Warmup's zh and en summaries now start with its own name (and its old one, Scheduled Messages / 定时消息) and carry keep-alive, usage window, rate limit and quota words, so the plugin page's substring search finds it by its Chinese name. Text only; what it does, what it costs and its security note are unchanged. By YangHonghang (#629). Run at 43ce164 on mote (bun 1.4.2, temp HOME): bun scripts/check.mjs exit 0; bun test scripts 9 pass, 0 fail. Not tried: searching in magpie's real Plugins page. |
||
|
|
75a1937e23 |
chat: rank MCP tools using the typed question (#631)
chat: an attached EPUB's text no longer decides which MCP tools are picked (#623) The page sends the typed text as userText beside the message that has the book in it, and the server ranks MCP tools on userText when it is there, on content otherwise. The gateway still gets the whole book; userText is never sent to it. page-chat 0.1.10. By ninondev (#631). Run at cb07bd6 on mote (bun 1.4.2, temp HOME): packages/chat bun test 35 pass, 1 skip, 0 fail; scripts/check.mjs chat ok. Broken by hand: origin/main's server.mjs, then origin/main's app.js, each alone: the new test goes red (34 pass, 1 fail). Not tried: the real page in magpie's window with a real EPUB and MCP server. |
||
|
|
0793242b6b |
zen-free 0.1.23: DSH's tools Zen refuses by name go under other names (#632)
jdld-ybd saw every DSH call to a Zen free model answered 429 FreeUsageLimitError while other agents through the same magpie, plugin and address were served, and a plain request on the same model was served too: the refusal is in DSH's own request body, as #624's was. A real 80-tool DSH request was bisected against Zen on 2026-10-30 (Ebony-Vinyl/dsh-our-free-model#709): DSH's subagent_fork on its own, and its read_image offered beside working_directory, each got 429 at once; the same names with only description or parameters changed still got 429; the whole request with just those two names changed was served. DSH 0.2.1 offers all three by default (and terminal_*, which 0.1.22 already sends as console_*). The #624 pair becomes one table of names Zen refuses together: subagent_fork goes as conversation_delegate, and working_directory as workspace_directory when read_image is offered too (the names that request was served under), in past calls and tool_choice too, on Chat, Responses and Messages; a call of one comes back under DSH's name. read_image or working_directory alone keeps its name. Run at this head on mote (bun 1.4.2, HOME=$(mktemp -d)): - packages/zen-free bun test: 212 pass, 0 fail. - whole repo bun test: 4795 pass, 14 skip, 0 fail. - bun scripts/check.mjs zen-free: ok. Broken by hand: - origin/main's provider.mjs: the three per-protocol #632 tests red. - working_directory renamed without read_image: "read_image or working_directory alone goes as named" red. Not tried: a request to the real Zen or with DSH. Every probe from this network, a plain request without tools included, is answered 429 FreeUsageLimitError today (the address's allowance is spent until 00:00 UTC), so the gate rests on that bisection, not on one of ours. |
||
|
|
3167531336 |
workbuddy 0.2.13: the free window's ledger read is linear in its rows, not their square
xmoon76 (Discord #feedback, 2026-11-02): with WorkBuddy on, the plugin host (magpie-bun run host-*.js) sat at 99% CPU, every session stalled, restarting magpie didn't help, and turning WorkBuddy off did. The cause: readLedgerTail called pinned(chain) after every row of the account it kept, and pinned walks the whole chain, so a chain with no edge in it (no readable refusal, no day-wide gap: an account a server spends on the free model all day) cost the square of its rows. Measured on mote (bun 1.4.2), a call a minute: 2,000 rows 187 ms, 4,000 771 ms, 8,000 3.1 s, 16,000 10.5 s. That ran on the host's one thread at every usage read, and the ledger changes with every call so the parse cache never held: a month of such use (~43,000 rows) is minutes per read. It reaches the China build since 0.2.12 read its window too, and WorkBuddy AI before that. pinning() now answers row by row in constant time what pinned answered for the rows read so far: the rows only grow at their oldest end and pinned was asked only while it said 0, so the one new thing a row brings is the first (newest) readable refusal or a gap between it and the oldest answered row before it. pinned stays as it was. Run at this head on mote (bun 1.4.2, HOME=$(mktemp -d)): - packages/workbuddy bun test: 313 pass, 0 fail. - whole repo bun test: 4793 pass, 14 skip, 0 fail. - bun scripts/check.mjs workbuddy: ok. - The same ledger after: 16,000 rows 14 ms, 64,000 45 ms, same window. On Linux (wsl-run, magpie-desktop): packages/workbuddy 313 pass, 0 fail; 16,000 rows 28 ms, 64,000 69 ms. Broken by hand: - the old per-row pinned(chain) put back: "a busy account's ledger is read in time linear in its rows" red, 18,009,000 Date.parse calls for 12,000 lines (bound 48,000). - pinning answering a gap with the newer row: "pinning answers as pinned does, row by row" and "a gap of a day or more pins the chain too" red. - pinning keeping the oldest refusal instead of the newest: the row-by-row test red. Not tried: the reporter's own ledger or a Docker install; their magpie and plugin versions are unknown, so that this was their spin is the best fit (it persists over restarts, stops with WorkBuddy off, and is CPU on the host's thread), not a confirmed one. |
||
|
|
f12daf6f9b |
workbuddy 0.2.12: the China build reports the free model's window too (#625)
The China build (copilot.tencent.com) now reports the free model's daily token window too, the open half of #288 (kunghim). kunghim measured it on 2026-11-02: two Free-plan accounts were refused at 200,389,043 and 200,485,923 tokens (in + cache_read + out), resetting 24h after the window opened, the same per-account window as WorkBuddy AI's at about twice its 1e8. Each build has its own window (FREE_WINDOW_CN on workbuddy rows, FREE_WINDOW_AI on workbuddy-ai rows), so one phone number signed in to both never sums the builds; the parse cache is keyed by build. windowReset reads the China refusal's "将在 … UTC+8 重置". The China card stops at a soft cap of 1.9e8, 5% short of the measured one; a refusal in force still reads it full. Reviewed at c7e4a19ef9aeb192e909fff9fcdb71d06b79e116, run on mote (bun 1.4.2, HOME=$(mktemp -d)): - packages/workbuddy bun test: 311 pass, 0 fail. - whole repo bun test: 4747 pass, 12 skip, 0 fail. - bun scripts/check.mjs workbuddy: ok. - Broken by hand: the PR's tests against main's index.mjs, 7 red (the China counting, the builds kept apart, the Chinese reset, the cache key, the usage card). Not tried: a real China-build account through magpie (the measurement is kunghim's). |
||
|
|
1080b81c7d |
zen-free 0.1.22: tool names Zen refuses go under other names (#624)
alonewolfsy-web bisected a real Claude Code desktop request that Zen's free tier answered 429 FreeUsageLimitError while 0.1.21 had added the environment block and core tools: a tool name with "terminal" in it (an MCP server's terminal tools), and ReportFindings offered beside ScheduleWakeup, as Claude Code desktop does, each got 429 at once; the same request with those tools renamed was served (their patch, 40+ real requests). Either of the pair alone was served. Such tools now go to Zen under other names of the same words (mcp__ide__terminal_run as mcp__ide__console_run, RunTerminal as RunConsole, ReportFindings and ScheduleWakeup as findings_report and wakeup_schedule, with _2 when the agent has that name), in the agent's past calls and tool_choice too, on Chat, Responses and Messages. A call of one comes back under the agent's own name (toolPolicy.renamed, read first by nameGuard). A request without them is sent as before, and one of the pair alone keeps its name. Run at this head on mote (bun 1.4.2, HOME=$(mktemp -d)): - packages/zen-free bun test: 208 pass, 0 fail. - whole repo bun test: 4785 pass, 14 skip, 0 fail. - bun scripts/check.mjs zen-free: ok. Broken by hand: - origin/main's provider.mjs: the three per-protocol #624 tests red. - origin/main's tool-response.mjs (no renamed lookup): the same three red. - the pair renamed even alone: "a request without a refused name" red. Not tried: a request to the real Zen. Every probe from this network was answered 429 FreeUsageLimitError today, a plain control without tools included (the address's free allowance is spent until 00:00 UTC), so the gate itself rests on the reporter's bisection. Not tried with Claude Code desktop. |
||
|
|
4c801e5756 |
devin 0.1.34: keepalive pings timed from when the request was sent; magpie's session header keys them (#626, #620)
#626 (zelong77): keptAfter scheduled the first ping 285 s after the
reply's stop event, and run() scheduled each next one 285 s after the
ping before had come back. Devin renews its cache when it takes a
request, so a 33-47 s Fable reply or a 10-20 s ping put the next ping
past the 5 minutes. In zelong77's usage.jsonl every ping 315.9 s or more
after its request was sent missed and wrote ~500k tokens again.
- roundtrip stamps sentAt before it sends; scheduleKeepalive waits
max(0, interval - (now - sentAt)), and each ping is timed from when it
was sent. A reply or ping longer than the interval is followed at once.
- The timers object carries the clock (now), so tests hold it.
#620, after 0.1.33 (zelong77, 08:18): through magpie, check A and the
grown check B still kept separate pings. magpie hands a plugin's fetch
none of the agent's own headers, so x-claude-code-session-id never
reached keepaliveKey, and magpie's translation merges Claude Code's two
user messages into one whose history grows in the middle, which firstOf
can't follow.
- keepaliveKey reads x-magpie-session first and x-magpie-subagent beside
x-claude-code-agent-id. magpie sets both on a plugin's fetch in a
release that follows this one; the host strips them from what a plugin
sends on.
- README: the timing, and the headers.
Run on mote (Bun 1.4.2, HOME=$(mktemp -d)) at this tree, on main
|