0bd00f0c72f828bfb540db033c62fc09ebdd9173
829
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
0bd00f0c72 |
window-warmup 0.1.2: effort-variant caches keep their public models, and Report a problem carries anonymized diagnostics (YangHonghang, #726)
window-warmup 0.1.2 (@magpie-community/page-window-warmup).
- Candidates are now the model cache, /v1/models and the chosen list together
(deduplicated by full id), so a cache that stores effort variants
(antigravity's gemini-3.8-flash-high/-low/-tiered) no longer leaves an
account with no models; layer 3 still keeps only public ids.
- A "Report a problem" link at the foot of the page: GET /api/diagnostics
(read-only, no model request, works for fatal and read-only instances)
builds an anonymized report (accounts and keys as acct-N / key-N, task and
card names left out, free text scrubbed of emails, key-shaped strings,
Bearer tokens, URL secrets and home user names, saveError included), and a
two-step copy puts an issue link and the report on the clipboard inside
magpie's sandboxed frame.
Reviewed at head bf66c2b7302c66395833bb3e93054a55901d77c1, with main
|
||
|
|
0daf0c7421 |
sap-aicore 0.3.0: a new provider for SAP AI Core's GPT Responses and Claude Messages deployments (caikn, #651)
A new provider package, @magpie-community/opencode-sap-aicore-auth 0.3.0
(packages/sap-aicore). It signs in from a local SAP AI Core client-secret
credential file, discovers the account's running GPT (Responses) and Claude
(Messages, Bedrock) deployments per resource group, and sends requests only to
https://*.authentication.*.hana.ondemand.com (token) and
https://api.ai.*.hana.ondemand.com (inference). Image input is gated per model
on the catalog's inputTypes. Also: the root README row, a registry.json entry,
.DS_Store in .gitignore, and scripts/check.mjs accepts an empty static model
list for a package whose provider.models hook is a function with the same id
(npm and the loader are still required).
Reviewed at head b44b3e1b68889c2a12bcaa37ad5d546a398bdde0, with main
|
||
|
|
9bba5fedc2 |
registry: list @guotree/magpie-websearch, seven web search APIs (guotree, #724)
Lists @guotree/magpie-websearch (0.3.2) in registry.json and the README's web search section, with the package's own install command under its row and the search-hook template in its own subsection. Name "magpie-websearch"; en and zh summaries say the same: keyless access for AnySearch, Keenable, Parallel and TinyFish, a key needed for Linkup, Metaso and Querit, no downgrade of a failed keyed request. Icon is a 128x128 PNG of 2,710 bytes (fetched: 200, image/png). Package checked again at 0.3.2 (npm integrity sha512-afEV99u5...kQ==, published 10:34, unchanged since the 11:14 review): only vendor endpoints (api.anysearch.com, api.keenable.ai, api.linkup.so, metaso.cn, api.parallel.ai / mcp.parallel.ai, api.querit.ai, api.search.tinyfish.ai / agent.tinyfish.ai) or the user's own Base URL; each key goes only to its vendor; only the query and search options are sent; no fs, child_process, telemetry or runtime code from strings; no install scripts, no dependencies. Run at 6ceefcaf8 on the test Mac: bun scripts/check.mjs ok; bun test scripts/ 19 pass, 0 fail. The package's own tests (101 pass) and the keyless searches were run at the earlier review against the same tarball. Not tried: a search through the gateway by an agent end to end. Left for the author: the package's own package.json magpie.icon still points at the 541 KB assets/icon.png, which an installed plugin's row can use. |
||
|
|
16769b21dc |
joycode 0.2.7: an empty or unterminated Responses stream is an error, not a silent success (liangmouse, #720)
JoyCode's Responses SSE is checked one event at a time, never buffered whole:
- a JoyCode FAILED_RESPONSE envelope (code non-zero) becomes a Responses
"error" event that keeps its code, message and cause; anything after it
is dropped;
- a response.completed with no output seen and none in its output list
becomes error empty_response (an unreadable completed frame too);
- EOF with no completed, incomplete, failed or error event becomes error
incomplete_response;
- text, refusals, tool and *_call items, reasoning with a summary or
encrypted content, and explicit incomplete/failed pass byte for byte,
CRLF included. A completed with no [DONE] after it passes as it came.
magpie's gateway reads a Responses "error" event as a failed turn and owns
the retries; the plugin sends no request of its own. Tests that called
t.mock.method(fetch) several times in one test leaked the mock under Bun
(copilot's tests got "Body already used"); each fixture is its own test now.
Run at the reviewed head 7b74d0c (main
|
||
|
|
d677c436d3 |
trae 0.2.29: a 9074 with no client here is claimed once more as client-less tools send it (#709, #722)
With no Trae CN client on the machine, Trae CN answers the plugin's check-in claim 9074 every day (#722: jiabaoyu, never once taken; #709: two accounts on a headless box). The same accounts check in through tools that also have no client: providers-hub daily (#722), wild-work (#709). #709 first put this down to account-level rate limiting cleared by wild-work's 8s retry, but its reporter's own log then showed every wild-work claim taken first time (~100ms, no 9074 since 09-19), so the retry never ran and waiting is not the difference. What the working tools share and the plugin doesn't: body {}, x-user-region: CN, a 15-digit id, no Electron UA / 0.1.69, none of the IDE's device headers. providers-hub sends luckymiaow/trae-mate's request (MIT): those headers and an id made from the uid alone, never registered at a sign-in. Now an account no client here is signed in as gets one more claim, at once, after a 9074, in trae-mate's request as it is (clientShapeHeaders; its device, market user and session ids from the uid). Once: a second 9074 is the day's answer; no other code is claimed again; an account that rode its own client's device is not; an account with no uid is not. The first claim is unchanged, so an account it already works for sends nothing new. Which single field Trae CN wants is still #709's bisect. Run (mote, bun): packages/trae bun test, 239 pass 0 fail; bun scripts/check.mjs, every package ok. Broken by hand: the old index.mjs under the new tests, 5 red (the claimed-once-more, two-claims-never-three, and three message/device tests); the guard widened to any non-zero code, "only a 9074 is claimed again" and the 9095 test red. The golden ids for uid u-1 were worked out with a separate Python port of trae-mate's device_map.rs. Not tried: a real Trae CN account (no account used); whether the whole request or one field of it is what Trae CN takes. |
||
|
|
ebdd4fd247 |
history-trim 0.1.1: declare compressToolResults and preserveSystemPrompt, two regression cases (manjughosa, #681)
Declares history-trim's existing compressToolResults (true) and
preserveSystemPrompt (false) options in the package manifest, matching what
history-trim.middleware.js does when they are absent, and adds two
regression cases: a long surrogate-only tool result in the turn being sent
stays whole, and a repeated message is dropped even when its keys are in a
different order. No middleware runtime change. Version 0.1.0 -> 0.1.1 so
the new manifest is packed onto dist.
Run at the reviewed head 06c179d (and merged onto main
|
||
|
|
d9a6c45c64 |
minimax: the China-site test reads 401 as a word, not inside the fake's port
region.test.mjs checked the account card's error with
not.toMatch(/refused|401/). The error names the fake's address,
127.0.0.1:<random port>, so any port with 401 in it (40199 on CI, the
publish run for
|
||
|
|
aaacefdea8 |
gcp-ai 0.1.6: release #723
Ships
|
||
|
|
a4fbe854be |
gcp-ai: a sign-in without an email stops with a clear error, and a 0.1.1 staging dir is not an account (NGshiyu, #723)
Follow-up to #606's post-merge notes ( |
||
|
|
f9b7a1ab24 |
astudio 0.1.4: check-in sends the desktop's clientType and studioVersion, and reads a pending daily reward popup as done (jinyue806, #721)
The account requests to agent.xfyun.cn/xingchen-studio now carry the desktop client's identity headers, clientType and studioVersion. Without clientType the server refuses client-popups/pending with 11001001. The values are AStudio's own: the 3.5.5 desktop bundle (AStudio-3.5.5-arm64.dmg, sha512 matching the vendor's client/releases/latest, apps/desktop/dist-electron/main.js and apps/server/dist/index.mjs, packages/shared/src/astronStudioHttp.ts) sends "21" on win32, "22" on darwin, and studioVersion = its package version (3.5.5). auth.checkin, after a balance read that shows no rise, reads client-popups/pending (GET only, as the desktop's listPendingAstronClientPopups does; it never calls client-popups/complete, so the desktop's own notice is left alone). A DAILY_REWARD_DIALOG there is the server's record of a grant not yet shown: the check-in reports done, with payload.points as credit only when it is a positive number. No popup still reports inactive (#658). A refused popup read reports failed. astudio 0.1.3 -> 0.1.4 (jinyue806). Run at 6d2919dce on mote (mote-run): packages/astudio node --test, 38/38 pass; bun scripts/check.mjs astudio: registry.json and astudio ok. Broken by hand: without the clientType header, the identity test fails; with the popup branch disabled, the two popup done tests fail (3 red). The new tests use fake fetches only. Not tried: a real AStudio account (the author's live run is in the PR). Linux sends clientType 21 where the desktop sends none (it ships for mac and Windows only). studioVersion is fixed at 3.5.5; the desktop sends its own version. Whether a DAILY_REWARD_DIALOG left pending past its day (desktop closed before showing it) would read as done the next day was not checked; the desktop completes it as soon as it shows. |
||
|
|
d4eeba4493 |
fovea 0.2.2: a new middleware, old history to head and tail on a cache-stable boundary (webkubor, #640)
A new gateway middleware, @magpie-community/middleware-fovea 0.2.2 (webkubor, #640): old tool output and text in a long history are cut to head and tail, with the boundary only on multiples of `cut_step` (24) so the cut prefix stays byte-identical between turns and the prompt cache holds. The leading user items before the first answer (Codex's AGENTS.md, environment_context and the task; Claude Code's first message) stay whole. `saccade` ("off" by default) drops the old context on a new topic, judged against that same task. Old images become a text note that keeps their `cache_control`. Ships an evidence page (Plugins > Fovea evidence) that computes a paste-in A/B in the frame, with no network.
What was run, at the reviewed head b9883cf206814fdc01950a00d413a36856de4e11, on mote (macOS, Bun 1.4.2, sandbox HOME):
- `bun test packages/fovea`: 33 pass, 0 fail. The two new Codex saccade cases fail with 0357f1c's middleware (and pass at the head).
- `bun scripts/check.mjs fovea` and `bun scripts/check.mjs`: pass. `page/measure.js` is byte-identical to a fresh `bun build.mjs`.
- `npm pack --dry-run`: 18 files, 131.8 kB unpacked; no brand/, no live-benchmark.mjs.
- The head merged onto origin/main
|
||
|
|
82b254f2dc |
registry: list magpie-plugin-codar 0.1.1 (Codar 科搭) (#715)
Lists magpie-plugin-codar (Codar 科搭, SpeedAI's own desktop app and points plan) in registry.json. The package lives on npm, outside packages/.
Reviewed at head 4cc4116d. The package is magpie-plugin-codar@0.1.1, the npm tarball, and its code files are byte for byte the same as MisonL/magpie-plugin-codar tag v0.1.1 (a9d8c461).
Run on mote:
- The npm 0.1.1 tarball unpacked into packages/codar-probe, then `bun scripts/check.mjs`. Every in-repo package and registry.json pass. codar-probe has only the OpenCode 2.x line (plugins#657), which the first review didn't hold against the PR. The two blockers from that review are gone: main no longer exports testables, and auth.loader is present.
- `node --test` at the author's v0.1.1 tag: 188 of 188. The tarball alone fails 1 of 188, a style test that wants CONTRIBUTING.md, which isn't shipped.
- `node --test` and `bun test` in the tarball: 187 pass. The failure is the same style test.
- Exercised the loader: exports are only CodarPlugin and default. A stored key gives `{apiKey}`; no auth or an unusable key gives `{}`.
- 0.1.0 to 0.1.1: a sorted-line diff of index.mjs plus internal.mjs against the old index.mjs shows a pure move plus the loader.
Not tried: no Codar account, so chat, check-in and points weren't run against the real service.
|
||
|
|
3e24e22837 |
window-warmup 0.1.1: models hidden by a routing group are sent, not called missing (#712)
A model a routing group keeps out of /v1/models (Group.Unlists, which magpie still serves) was taken for gone: the page's model list was disabled and tasks failed with "模型 X 已不在 Magpie 的模型列表里" without sending. window-warmup now also reads each provider's chosen models (providers.json "models") and counts a model as present when it is in /v1/models or chosen: in the catalog (fetchCatalog/accountsOf), the auto-model pick and a fixed model's send check. A model known only from chosen has no effort metadata, so it goes without reasoning_effort. A model in neither is still refused. Two gateway-unreachable tests now check the error is passed through rather than its exact wording, which varies with Bun's socket timing. Review: window-warmup lives in this repo since #661 (packages/window-warmup) and is published to the dist branch, not npm. 0.1.1 is free (main and dist have 0.1.0). Not mover-backed. No new host, credential, dependency or workflow change; providers.json was already read and only its "models" list is added (no key text). magpie's Group.Unlists doc confirms "a request naming one is still served". dist/plugin.js matches a rebuild of src (dist.test.ts, run on Bun 1.4.2). Run at 8f10bc07 on mote (Bun 1.4.2, HOME a temp dir as CI): bun test packages/window-warmup 246 pass 1 skip (browser smoke) 0 fail; bun scripts/check.mjs exit 0. PR CI green. Broken by hand: layer 3 without chosen, candidates without chosen, the fixed model check without chosen, the auto pick needing /v1/models, and entryOf dropping "models" each turn their new test red. fetchCatalog not passing chosen is caught only by the dist byte check, not by a behaviour test. Not tried: a real magpie with an unlisting group (the author ran it on a Docker magpie with zcode GLM-5.3). A switched-off provider's chosen models also count as present now, so its old tasks send and get the gateway's error instead of the local one. |
||
|
|
0ef2261681 |
minimax 0.2.2: the plan's windows and name from the console's own replies, within magpie's 20s (#705)
The usage card reads a plan's windows from the console's own token_plan/remains_percent (used and total per window, so a 150% week shows as "126 / 150 %"), with coding_plan/remains as the fallback (its share multiplied by weekly_boost_permille when that is over 1000). A general window at status 3 shows Unlimited; video windows show the console's counts. The plan is named by the console's current_subscribe_title, else by its tier: Plus, Max and Ultra as "Token Plan <tier>", the rest "M Plan <tier>". Time: magpie gives usage 20s. remains_percent and the title are asked together, each with a 5s timeout, and the fallback has 10s, so planQuota takes at most 15s, as 0.2.1 could. This answers the earlier review (30,030 ms with both console endpoints stalled). Review: both new paths are on the same host (site.platform) with the same bearer token and X-Group-Id coding_plan/remains already got; no new dependency or workflow change. 0.2.2 is free (main 0.2.1, npm 0.2.1, dist up to 0.2.1). Not mover-backed. Run at f383c5ea on mote (Bun 1.4.2): bun test packages/minimax 128 pass 0 fail; bun scripts/check.mjs exit 0. PR CI green. Broken by hand (usage.test.mjs): console timeout at 15s, or no timeout on remains_percent, turns the stall test red (15,001 ms); asking the title after the windows turns it red (10,006 ms); ignoring the console's used figure turns the two console-reply tests red. Not tried: MiniMax's real endpoints (no account here); the author ran one China-site account with a 150% week. |
||
|
|
fec25163ab |
joycode 0.2.6: verified 900k context for GPT-6.1 Sol and GLM-5.3 (#711)
GPT-6.1 Sol and GLM-5.3 join the measured-cap list from #707: when the
account's catalogue offers a larger extJson.contextWindowByPlatform["JoyCode
Desktop"] (1,000,000 for both), limit.context becomes the smaller of that and
900,000, floored to 100k. Only those exact ids: GLM-5.3-jcloud, GLM-5.3-agent
and GPT-6.1 Sol-preview stay at the catalogue's maxTotalTokens. Output limits,
missing or malformed metadata and the static fallback are unchanged. The caps
come from the author's real probes on 2026-11-04 (Sol ok at 900,064 input and
refused with context_length_exceeded near 1,000k; GLM-5.3 ok at 900,074 and
refused with code 1261 near 1,000k), so 900k is a verified tier, not a maximum.
Review: no new host, credential, dependency or workflow change; the diff is
the two map entries, tests, README/CHANGELOG and the version. 0.2.6 is free
(main 0.2.5, dist has up to 0.2.5; joycode is published to dist, not npm).
Head 69227598 is on current main (
|
||
|
|
2955532344 |
joycode 0.2.5: verified Astra and DeepSeek context windows from the account catalogue (#707)
GPT-6 Astra and DeepSeek-V4.1-Flash take a larger limit.context when the account's own catalogue offers one in extJson.contextWindowByPlatform["JoyCode Desktop"]: the smaller of that and a measured cap (900,000 / 1,000,000), floored to 100k, never below the catalogue's maxTotalTokens. Output limits, other models, malformed or missing metadata and the static fallback are unchanged. The caps come from the author's real probes (Astra ok at 921,497 input, context_length_exceeded near 922k; DeepSeek ok at 1,000,073, its error names 1,048,576). Claude-Opus-5-hq stays at 200k (its 900k probe was refused). Review: no new host, credential, dependency or workflow change; version 0.2.5 is free (main 0.2.4, dist has up to 0.2.4). Run at bdfb41d8 on mote: packages/joycode bun test 76 pass 0 fail; bun scripts/check.mjs ok. Broken by hand: context back to the catalogue's maxTotalTokens turns the two new context tests red (2 fail). Not tried: no JoyCode account here, so the catalogue's contextWindowByPlatform field and the probes were not re-run by the reviewer. |
||
|
|
aa44cc3edb |
zed 0.1.17: an Anthropic thinking.display Zed has no variant for is left out (#708)
gogoing1024 (#708): claude-sonnet-5-5 from Claude Code at max effort was answered 400 "Zed: failed to parse Anthropic request: unknown variant `updates`, expected `omitted` or `summarized`". Claude Code asks its newest models for thinking.display "updates"; Zed's cloud parses display into an enum with only omitted and summarized. providerRequest now sends "highlights" as summarized (the thinking still shown) and leaves any other value beyond omitted/summarized out, the same rule magpie's gateway applies to relays (withDisplay in internal/gateway/anthropic_shapes.go). Adaptive and budgeted thinking alike; summarized and omitted go as written. Run at this head (mote, via mote-run): - bun test in packages/zed: 71 pass, 0 fail (11 files) - bun scripts/check.mjs: exit 0 Broken by hand: thinking-display.test.mjs against the old index.mjs, 3 of 5 red (updates, highlights, budgeted updates). Not tried: a real Zed account; the fix is from the reporter's 400 text and the request shape Claude Code writes. |
||
|
|
1a342edfae |
devin 0.1.36: another model's reasoning goes back as its thinking (#703)
kamikakushi (#703): swe-2 is conditioned on the assistant turns before it having thinking (ChatMessagePrompt field 11). The plugin sent field 11 only beside a signature (#665), and no builder handed it a non-Claude model's reasoning, so swe-2 stopped emitting delta_thinking on a tool loop's later turns (the reporter's A/B against swe-2-high: no field 11, 0 bytes of thinking; field 11 without 12, thinking on 5 of 5 runs). Each claim checked against index.mjs at 0.1.35: build() read only content and tool_calls, v2Chat() dropped reasoning parts, encodeMsg() gated 11 on the signature. - encodeMsg: field 11 whenever the thinking has text; 12 and 18 only with a signature, as before. - build (chat completions): reasoning_content (or reasoning, as some clients name it) goes on the assistant prompt as unsigned thinking, to a model that isn't Claude. joinSplitCalls keeps both halves'. - v2Chat (OpenCode 2): reasoning parts become reasoning_content, which build then handles. - buildMessages (/v1/messages, the sibling the issue doesn't name): a non-Claude model's thinking block goes back as its text alone, never with its signature. - Claude: unchanged. A chat completion still sends Claude no thinking (no field for a signature there), and Messages sends only signed thinking with its signature and type, as #665 did: Anthropic refuses a thinking block without a valid signature, so unsigned text never goes to Claude on any path. Not done: the issue's optional made-up thought for a history turn whose client sent no reasoning (Pi's openai-completions default). Nothing is written into the model's history that it didn't say. Run (mote, bun 1.4.2, HOME a temp dir): packages/devin 208 pass, 0 fail; repo root bun test 5411 pass, 0 fail, 19 skip; bun scripts/check.mjs ok. Broke it by hand: - index.mjs from origin/main: 7 red (the 6 new non-Claude tests and the updated "another model's goes without a signature"); the Claude tests pass both ways. - only encodeMsg's old gate put back: the same 7 red. - build's Claude gate removed: "Claude gets no unsigned thinking from a chat completion", "a chat completion's request is the same as before" and the v2 Claude check red. Not tried: a real Devin account; frames are built from the proto's field numbers, and swe-2's behaviour rests on the reporter's A/B. |
||
|
|
73c56ec3c7 |
catpaw 0.2.0: tools over the flattened prompt, parsed back into tool_calls, one forced retry (#697)
catpaw 0.2.0 (gcdong, #697): the conversation protocol takes one flattened
text prompt, so a request with tools was refused with 400. Tools now ride as
an injected instruction and the reply is parsed back into OpenAI tool_calls:
only a reply that is wholly the call JSON (bare object or one fenced block)
counts, unknown names and calls missing a required arg are dropped, a
drifted name case is matched back. A forced tool_choice (required / named)
gets one retry with the failed reply in the prompt; streaming holds the
whole reply in that case, otherwise only a JSON-shaped head is held and
prose streams live. Tool results ride as text. Images are still refused.
The keep-alive interval is cleared wherever the stream closes.
Run at the reviewed head f72226f2, on mote:
- bun test packages/catpaw: 53 pass.
- Squashed onto origin/main
|
||
|
|
54633128a1 |
zen-free 0.1.26: a tool named run_code goes as exec_program (#704)
alonewolfsy-web (#704): DeepSeek Harness desktop 0.2.1-rc.5 gets 429 FreeUsageLimitError on every main request through Zen's free tier. DSH's main request offers one tool, run_code, and the reporter's one-variable bisection against the inference endpoint shows Zen refuses any declared name containing "run_code", in any case, the underscore needed (run_code_v2, host_run_code, RUN_CODE, Run_Code refused; exec_program, code_run, runCode, run-code served; description and schema not read). The existing word rule (REFUSED_WORD, /terminal/i -> console, #624) becomes a list, REFUSED_WORDS, and run_code -> exec_program is its second entry. The served word takes the found word's case (EXEC_PROGRAM, Exec_Program, exec_program), so terminal's renames are unchanged. Everything else is the existing path: renameRefused renames the tool, the agent's past calls and tool_choice; nameGuard brings a call of exec_program back as run_code, streamed or not, in chat, responses and messages; an agent's own exec_program keeps its name and DSH's goes as exec_program_2 (the existing collision loop). README says so. Run (mote, bun 1.4.2): packages/zen-free bun test 222 pass, 0 fail; bun scripts/check.mjs rc=0. Broke it by hand: provider.mjs from origin/main under the new tests -> the 6 new #704 tests fail (3 protocols x client stream on/off), each with the call coming back as exec_program, not run_code. Real use: one sandbox-HOME run on mote with the public key against the real Zen endpoint (big-pickle, beam-free, flint-40b-free). Every request was 429 FreeUsageLimitError, the controls too (tools named Bash and code_run), so that network's allowance was spent and the run tells nothing about run_code either way. Not verified live; the reporter's bisection is what the rule rests on. |
||
|
|
abefa04ff9 |
orcaterm: refresh-token test holds one expiry for its tokens (#675)
refresh-token.test.mjs (
|
||
|
|
f6fdf8fee1 |
joycode 0.2.4: plan expiry, and one retry when gray access is denied (#701)
joycode 0.2.4 (kasisama): - usage: the plan's expiry from the IDE's expireText (end of that day, China time) as `until`, with each pool's runsOutAt/runsOut; the package row decides, otherwise the earliest pool. - a gray-access denial is retried once with the identity read again. - gateway failures are read from a clone of the reply (64KB at most); a JSON reply over 8MB answers 502 response_too_large. - an empty catalogue keeps the built-in models, which are text-only. The first head (f16034b2) turned the repo suite red: usage.test.mjs called t.mock.method(globalThis, 'fetch') several times in one test, Bun 1.4 restored the wrong function, and the next file (joycode/login.test) and ~450 tests after it kept hitting the mock. b1f06b75 installs the mock once per test; nothing outside usage.test.mjs changed. Run at the reviewed head b1f06b7501bddb4f035eee069bf44d89f02e5349 (mote): - whole repo `bun test`: 5374 pass, 19 skip, 0 fail (401 files). - at f16034b2: the same run had its first red in joycode/login.test.mjs right after usage.test.mjs, an AssertionError from usage.test.mjs's mock (the leak above). - CI run 41772835368 on b1f06b75: success. Not tried: a real JoyCode account (none here); the gray-denial retry and expiry phrases are checked against the tests' fixtures only. |
||
|
|
075cd237e2 |
reasonix-desktop 0.1.0: Reasonix 1.x in Discover → Agents (#700)
Adds Reasonix 1.x (Desktop and CLI) to Plugins → Discover → Agents as `@magpie-community/agent-reasonix-desktop`, agent id `reasonix-desktop`, separate from magpie's built-in `reasonix` adapter (Studio 2.x and native 1.39). A JSON agent descriptor plus a Bun-host companion (the kimi-desktop pattern) adds one `magpie-agent` provider to Reasonix's global config.toml and keeps only the assigned gateway key in its .env, with a journal, a lock and byte-exact restore on disconnect. Review commit on the branch: the registry entry's icon was `reasonix`, a mask name with no icons/reasonix.svg, so Discover would show the generic mark; it is `reasonix-color` now. Run at the reviewed head 6cb328f090d8b66e6cf590a69aa4e7b18144c684 (mote): - packages/reasonix-desktop `bun test`: 12 pass, 0 fail. - acceptance.mjs with a real Reasonix 1.38.10 (npm) and a magpie built from origin/main 4ca55c6b6, sandbox HOME: magpie installs and discovers the plugin and bridges the selected model; unchanged Reasonix sends its selected model and assigned key to the local API; disconnect restores the original selection and credentials. - resident-acceptance.mjs (a running `magpie serve` follows the switch): passed. - vendor.mjs rebuilt from its pinned sources: byte-identical. - CI run 41773750085 on 6cb328f0: success. Not tried: Reasonix Desktop's GUI app itself (the CLI reads the same config files), Windows and Linux. |
||
|
|
db307844e7 |
orcaterm 0.1.6: keep the WeChat sign-in's refresh token and renew from it (#675)
orinsid's desktop-client logs (#675, 11-04) show OrcaTerm 1.6.8 renewing from a long-lived oauth_refresh_token_v2 on a 110-minute schedule, while the plugin dropped the exchange's refresh token (`refresh: r.accessToken`) and renewed from the two-hour access token, which OrcaTerm answers SESSION_EXPIRED for 30 minutes into an idle sign-in. OrcaTerm's own bundle (orcaterm.cloud.tencent.com/terminal, orcaterm_components/orcaterm_app, fetched 11-04) settles the protocol: - the WeChat exchange sends {code, state, client: "desktop"} from the desktop client, and reads data.refreshToken from the reply; - the client keeps a refresh token only when it matches /^<uuid>\.\d{1,6}\.[A-Za-z0-9_-]{43}$/ and its uuid is the access token's jti (persistLoginRefreshToken); - OAuthRefreshToken sends {refreshToken} when it has one, else {accessToken}. The plugin now does the same: the exchange sends client "desktop", a matching refresh token is the sign-in's `refresh`, renewal sends it (an access token past its expiry no longer stops a renewal that has one), and a reply's RefreshToken replaces it, else it is kept. A sign-in from before 0.1.6 has the access token in `refresh` and renews as before until the next scan. Run (mote): packages/orcaterm `bun test`, 121 pass / 0 fail, including the new refresh-token.test.mjs (6 tests). Broken by hand: dropped client "desktop", sent {accessToken} always and saved `refresh: r.accessToken` again: 4 of the 6 new tests went red (the two that stay green check a mismatched token isn't kept and the pre-0.1.6 path). Not tried: a real WeChat sign-in. No OrcaTerm account here, so whether the reply to client "desktop" carries refreshToken for this flow, and whether renewal rotates it, is from the vendor's bundle, not a capture. If the reply has none, the sign-in falls back to the 0.1.5 behaviour. |
||
|
|
ef673b2b59 |
trae 0.2.28: a model's rate comes from display_contact_config (#690)
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. |
||
|
|
270b228a96 |
agent-console 1.2.0: Preview tab, chat links, file chips, font size/width settings, live magpie theme (#582)
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. |
||
|
|
1a763307bf |
registry: providers-hub adds MonkeyCode and MonkeyCode intl (#688)
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). |
||
|
|
5f78bb0089 |
codearts 0.3.5: OfficeAce models carry their cost coefficient as rate (#689)
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). |
||
|
|
0ca5ef59aa |
sensenova 0.1.3: the grants' expiry back beside the figure
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.
|
||
|
|
f7e87877e0 |
qoder 0.2.61: publishes 1a99e2c's business.model_key (#692, #638)
0.2.60 went to npm from |
||
|
|
1a99e2c48b |
qoder 0.2.60: the business record names the model (plugins#692, #638)
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. |
||
|
|
c1a625d0d5 |
qoder 0.2.60: a 429 with no quota in it shows Qoder's status, code and own reply (QwenWork flash through dsh: "All models failed")
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. |
||
|
|
1865969e1f |
zen-free 0.1.25: ZCode 3.17.2 workflow tool pairs go under other names (#693)
Version bump for #694 (merged). 0.1.24 was never visible on npm (latest 0.1.23). Run: PR tests on mote at the reviewed head, see #694 merge body. |
||
|
|
c108621718 |
sensenova 0.1.2: grant balance as a figure, expiry on until (#695)
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.
|
||
|
|
bf2dbd28f0 |
zen-free: ZCode 3.17.2 workflow tool pairs go under other names (#694)
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). |
||
|
|
3ec42d48d1 | README: the search hook, a template for a web search API from a plugin | ||
|
|
f1421352d2 |
chat: the epub reader test retries a slow browser start instead of one 15s race (#684)
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. |
||
|
|
3b249dedac |
registry: providers-hub lists Loomy (WeChat QR sign-in) at 0.10.0 (#687)
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. |
||
|
|
f9f4bd2663 |
registry: providers-hub adds AutoClaw (international and China) (#652)
Lists magpie-providers-hub's AutoClaw (international and China) channels in the registry.
Reviewed at a34421247e27c812f0bbae0da1de78b15afbd2ca, merged onto origin/main
|
||
|
|
1820255222 |
codearts 0.3.4: kimi-k3.1-pro takes medium (#683)
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. |
||
|
|
fae4bc2e13 |
codearts: tell the host the reasoning levels, and honour the caller's (#680)
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.
|
||
|
|
016a869062 |
orcaterm 0.1.5: a refused renewal doesn't sign out a token that still has life (#675)
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
|
||
|
|
d951674164 |
agentcompass 0.1.0: intent, capability and quota routing as a gateway middleware (#670)
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
|
||
|
|
36a017ac9e |
zcode 0.1.49: a free-first refusal no longer answers the -Trial entry a local "quota exhausted" 429; free first gets a switch in magpie's provider editor
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. |
||
|
|
97e9c23804 |
zcode 0.1.48: publish #682's 3.17.2 prompt texts (jinpy666) with 0.1.47's wire model spelling
|
||
|
|
75cd0de91c |
catpaw 0.1.4: live models carry the client's multiplier and free badge
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.
|
||
|
|
7e3713233f |
zcode 0.1.47: the Start Plan's prompt texts are ZCode 3.17.2's
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 (
|
||
|
|
6a75bbd43c |
zcode 0.1.47: a gift model goes out under ZCode's registry spelling, and a rested model says why
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.
|
||
|
|
5d679712f0 |
catpaw 0.1.3: models the vendor adds appear without a release (LongCat 2.5)
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.
|
||
|
|
7ea611975a |
tabbit: Tabbit (web.tabbit.com) as a provider, with live catalog, check-in and cycle usage (#673)
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.
|