XIQI
bcfb867635
factory: adapt built-in configuration skill metadata ( #7 )
2026-10-02 22:03:31 +08:00
yetone
6fd444cf5b
qoder 0.2.1: a model is free only at a price_factor of 0 — Qwen3.8-Max, 0.5× with an off-peak discount, is no longer marked free
...
Qoder's listing (as it came on 2026-10-02) carries is_free true on Qwen3.8-Max, whose price_factor is 0.5 and whose promotion is the off-peak 60% off (错峰 4 折, rule idle_time_model_credit_discount, before_promotion_price_factor 0.5); Qoder's own app ignores is_free in the model picker and shows 0.5×. freeOf took is_free true OR a price_factor of 0, so Max came out free. Now the price decides, as Qoder's app shows it: a price_factor (priceFactor) of 0 is free — Qwen3.8-Flash, 0× with original_price_factor 0.1 struck through, stays free — any other price is not, whatever is_free says, and a 0 that lasts only while an active promotion with a price before it runs is a discount, not free. is_free is read only from a listing that gives no price at all.
usage.test.mjs's new test feeds the listing's own entries (Max, Flash, Qwen3.7-Max, Kimi-K3) and promotion shapes; it fails against 0.2.0 (Max free). The built-in (internal/qoder/models.go, ModelInfo.free) has the same is_free || price 0 rule and needs the same change on magpie's side.
2026-10-02 21:50:13 +08:00
yetone
15e66f6792
cursor 0.1.6: a conversation's Runs keep one conversation_id, so Grok's and Opus's prompt cache on Cursor sticks, and Cursor's usage no longer counts the cache twice ( #6 , the port of yetone/magpie#498's 0f415708 the plugin missed)
...
buildRun gave every Run a new random AgentRunRequest.conversation_id, so Cursor's backend sent each turn to whichever machine and the prompt cache hit only by chance (congee949: cache_read 0, 1152, 0, 0, 0, 0 over six turns of one Grok conversation). The id is now made as the built-in's cursorConversation makes it: a UUID hashed from what names the session — the request's prompt_cache_key (Codex's thread id), else the session magpie (or OpenCode) tells the new chat.headers hook, which the hook hands the loader's fetch in x-magpie-cursor-session and which goes no further — together with the conversation's first user message, so subagents under one session are conversations of their own. With nothing naming the session it stays random per Run: magpie's own "magpie-<24 hex>" session, made of the first message alone when the agent names none, is taken as none, as the built-in's nativeSessionOf does. The hook only marks requests to cursor, as every plugin's chat.headers sees every provider's.
TurnEndedUpdate.input_tokens counts the whole prompt, the cache read and written included; it was taken as the uncached input and the cache added again for prompt_tokens. Now, as cursorUsage: input = max(input_tokens - cache_read - cache_write, 0), reasoning_tokens (field 5) given as completion_tokens_details.reasoning_tokens. The prompt is guessed only when Cursor counted nothing at all, not when it was all read from the cache.
conversation.test.mjs runs the plugin against a fake Cursor (its API a stand-in fetch, the agent API an HTTP/2 server on 127.0.0.1, any other connection refused): a session's turns keep one id, another session or another first message gets its own, prompt_cache_key wins over the host's session, no session gives a new id each Run, the hook leaves other providers alone, and the issue's numbers come out counted once. All five fail against 0.1.5.
2026-10-02 21:50:13 +08:00
XIQI
6f061c5c60
factory: support Claude Code on the Anthropic Messages route ( #3 )
...
* factory: adapt Claude Code Anthropic request bodies
* factory: address Anthropic compatibility review
* factory: handle additional directories and refresh 403 guidance
2026-10-02 21:36:33 +08:00
yetone
cc57432d16
zcode: Start Plan requests go as ZCode's own, with its headers and system prompt (0.1.7) ( #5 )
...
ARNO on Discord: the plugin's Start Plan requests were answered 405 / 3012
"blocked due to unusual activity" while his own plugin (Freeflow, provider
zcode-start) worked from the same machine. zcode.z.ai serves the plan only
to what looks like ZCode's own request: a Start Plan request now carries
ZCode's headers and its body is dressed as ZCode's (three cached system
blocks, the environment section, the date reminder as the first turn, one
cache mark on the last block, metadata.user_id naming the sign-in's
device). The prompt texts are magpie's (901fd87e), each matching ARNO's
plugin's hash. Coding Plan and team requests are unchanged. The Start Plan
is advertised again.
2026-10-02 19:28:42 +08:00
yetone
8c7e31911e
qoder: Qoder CN (qoder.cn) as a second provider, qoder-cn ( #1 ) ( #4 )
...
Hosts, client id and paths read from Qoder CN's own CLI (@qodercn-ai/qoderclicn 1.1.65): sign-in on qoder.cn, accounts on openapi.qoder.com.cn, models and chat on gateway.qoder.com.cn, client id e883ade2-…; signing unchanged. The same as magpie's built-in Qoder CN. When qoder.cn refuses a job token the account chats on its device token, renewed through /api/v1/deviceToken/refresh, as the CN CLI does. cn.test.mjs (12 tests, a local server standing in for every host) covers sign-in, polling, both tokens' refresh, a chat, models, usage and qoder.com unchanged; 6 fail with the CN chat host pointed back at api3.qoder.sh or the fallback off. Version 0.2.0.
2026-10-02 18:30:00 +08:00
yetone
dbc1c301df
publish: always to registry.npmjs.org, whatever ~/.npmrc names — with npmmirror as the registry (common in China) the publish went there and was refused (ENEEDAUTH), and npm view checked the mirror for what is published
2026-10-02 16:58:50 +08:00
yetone
427947eadc
factory 0.1.5: another agent's request to /api/llm/o opens as Droid's does, and a Factory API key can be added ( yetone/magpie#506 : factory-plugin/glm-5.3-flash answered 403 "Factory refused this account the request; check that droid…" on magpie v0.1.641) — the plugin had none of the built-in's fixes after 30 Sep. As the built-in's factoryDroidBody (e413dd84, magpie v0.1.630) has it, Responses' instructions, or chat completions' first system message (text parts joined with "\n"), open with droid 0.231.0's "You are Droid, an AI software engineering agent built by Factory." and "\n" before the agent's own; with none, the line alone goes first; droid's own requests and everything on /api/llm/a go on byte for byte, and a rewritten body drops the old Content-Length. The requests say droid 0.231.0, GLM-5.3-Flash takes images, and a 403 says what the built-in's factoryExplain says (5523eb17). A Factory API key (fk-…), droid's FACTORY_API_KEY, is an "api" sign-in method as factory_key.go (bb5e8a2b) keeps one: the bearer with droid's headers, never renewed, no X-Factory-Org-Id, not mended on a 403; whoami asked once with the key gives its region/host and whose it is, kept in the key's metadata. No request was made to Factory. droid.test.mjs (the built-in's TestFactoryOpensAsDroid cases, images, key requests and usage) fails against 0.1.4; bun test and scripts/check.mjs factory pass.
2026-10-02 16:33:14 +08:00
yetone
bd5e91ee00
zcode: stop advertising ZCode's free Start Plan — zcode.z.ai serves it only to requests carrying the official ZCode client's system prompt and answers others HTTP 405 'request has been blocked due to unusual activity'; the plugin, like magpie, never rewrites prompts or poses as the official client, so the plan can't be used through it. registry.json's summary (en/zh), the root README's table, the package's description and its README now name the GLM Coding Plan and team seats only, and the package README says why the Start Plan isn't usable. Text only; no code or version change.
2026-10-01 23:11:00 +08:00
yetone
09053e36d3
devin 0.1.6: an assistant reply goes to Devin with every tool call it made ( #416 on yetone/magpie: swe-2 always answered "capacity issues" on the plugin, never on the built-in) — build() let the pending list share the reply's own calls array, so answering a call took it off the reply too, and Devin got tool results with no call that asked for them from the first tool round on. pending is now a copy, as the built-in's buildDevin keeps it; with tool history the request decodes the same as the built-in's. request.test.mjs fails against 0.1.5.
2026-10-01 20:34:49 +08:00
yetone
7b70b40c7b
zcode 0.1.6: ZCode's config out of reach, the plugin's table stands in marked Symbol.for("magpie.fellBack"), and magpie keeps the list it was told last, as the built-in keeps the one it fetched last. models.test.mjs (passes on Linux with no ZCode installed; with ZCode.app on macOS its own config is read, unmarked).
2026-10-01 17:06:07 +08:00
yetone
ea1ab932ef
commandcode 0.1.7: a list that can't be had says so — the Go table, or the defaults, handed back when Command Code's list fails is marked Symbol.for("magpie.fellBack"), and magpie keeps the list it was told last, as the built-in keeps the one it fetched last. models.test.mjs checks the mark on each failure and its absence on a list read.
2026-10-01 17:06:07 +08:00
yetone
ce298d8ad9
grok 0.1.5: a token Grok refuses before its time says the sign-in has expired, as one past its time does — magpie's move takes such an account along untried; "Grok models: 401 …" stopped every Grok account's move. models.test.mjs fails against 0.1.4.
2026-10-01 12:37:59 +08:00
yetone
466d06ce55
zcode 0.1.5: the month's MCP tool calls are set aside as 'MCP · Month', as the built-in's quota did, not counted as a window — an older plan reports that uncapped month as 100% used, which read the account as out of quota and skipped it; a limit whose whole is 0 is set aside too. The new test in usage.test.mjs fails against 0.1.4.
2026-10-01 07:04:59 +08:00
yetone
e44077a705
grok 0.1.4: grok-4.7 keeps its low/medium/high/xhigh reasoning levels when Grok's model list can't be read, as the built-in offered them — the default list carries the variants. models.test.mjs fails against 0.1.3.
2026-10-01 07:04:58 +08:00
yetone
083251d778
qoder 0.1.4: a job token refresh Qoder refuses while listing the models marks the account, as the built-in's model read through QoderCredentialOf did — the models hook throws with signIn: expired on a 401/403 refresh and falls back to the listed models on any other failure; a renewal made while listing is said renewed by the account's next usage read or answer, and the refresh errors read 'qoder job token refresh' as the built-in's did. Four new tests in usage.test.mjs fail against 0.1.3.
2026-10-01 06:53:59 +08:00
yetone
7b072d798b
zed 0.1.6: a model token Zed refuses while listing the models marks the account, as the built-in's zedLapse did there — the models hook throws with signIn: expired on the refusal (magpie 78c3229 reads it), and falls back to the listed models on any other failure as before. models.test.mjs fails without the change.
2026-10-01 06:34:07 +08:00
yetone
36f88f242c
commandcode 0.1.6: a Go account lists the models Command Code has for Go, not ten, as the built-in's cmdGoFetch does (magpie b00387f) — the Provider API's /models asked without the key, less the 30 models Go is refused (cmdGoRefused), decorated from the CLI's 57-model table (1.73.0), which stands in when the list can't be had; models.test.mjs fails without the change.
2026-10-01 06:24:20 +08:00
yetone
01aee5da28
all: a usage read says what it means for the sign-in, and a renewal clears the mark whatever follows, as the built-ins did (要保证插件跟内置的所有逻辑都要一模一样) — auth.usage returns signIn on every path: expired where the built-in's quota read marked the account (Zed's /users/me 401, Factory's and MiMo's refused renewals, Qoder's refused job refresh), renewed after a renewal, which took the mark off, kept everywhere else, so magpie no longer guesses from the words 'sign in again' (Kiro's, Devin's and ZCode's usage errors marked accounts their built-ins never did) nor clears on a clean read. A request after a renewal says renewed on any status; one without says kept, as the built-ins cleared only on renewal. Kiro, Cursor, Devin, Command Code, WorkBuddy, Grok and ZCode, whose built-ins never marked an account, say kept on every answer. New tests fail against 85d7dd0's index.mjs.
2026-10-01 04:53:29 +08:00
yetone
85d7dd0d0a
all: each plugin fails with its built-in's status and marks the sign-in as it did, through X-Magpie-Sign-In (要保证插件跟内置的所有逻辑都要一模一样) — Factory's and MiMo's refused renewals are the built-ins' 502 marked expired, not 401s; Qoder's vendor 403 is the built-in's 401 kept, its model list's failure a 400, its job refresh refused marked expired; Zed's retried 401 is a 401 kept, not a 403; Kiro's unreachable refresh a 401 kept; Cursor's expired trial a 401 kept; a vendor 401 WorkBuddy, Grok, Devin, Command Code and ZCode passed on no longer marks the account, as their built-ins never did, and Grok and MiMo no longer retry what their built-ins sent once. Messages take the built-ins' words. New tests fail against the previous index.mjs.
2026-10-01 04:47:03 +08:00
yetone
53e0db6648
zed 0.1.4: a streamed reply is held until it says something, as the built-in's relayStatus holds it, and a failure before that is answered with its status rather than a 200 carrying it — Zed's failed status keeps the status its code names (upstream_http_401 a 401, http_403 a 403, billing a 402, where magpie read the old stream's chat and Responses errors as 502s), the provider's own error event is a 502 with its message, a reply ended with nothing said is a 502 "Zed ended without an answer" and one cut short a 502; a whole reply carrying the provider's error is that error (it was a 200 with nothing in it), and a code outside 400–599 is a 502. errors.test.mjs fails without the change.
2026-10-01 03:45:58 +08:00
yetone
8efe85163c
kiro 0.1.4: an exception Kiro sends before any of the answer (a throttle, a quota, a server error) is a status, not a 200 stream holding an error event, as the built-in's relay answers it: a 429 when it reads as a quota or rate limit (magpie's quotaWords), else a 502, so magpie moves on to the next account exactly as it did; unstreamed, what was said before a later exception is the answer, as the built-in's collector gives it, where the plugin answered 502. errors.test.mjs fails without the change.
2026-10-01 03:45:12 +08:00
yetone
f62d7d1057
commandcode 0.1.4: a Go account's failure reads as the built-in's cmdFailure says it — an empty reply is its status's name as Go's http.StatusText gives it (an empty 429 "Too Many Requests", which magpie's quotaWords know), where it was "HTTP 429"; credits run out are said as "out of credits: …" unless the message is already in quotaWords' words ("Monthly limit hit" is not, "余额不足" is), where a looser test of its own kept "limit" and prefixed Chinese; an error object without a message is its JSON. errors.test.mjs fails without the change.
2026-10-01 03:44:06 +08:00
yetone
e39f4f4dc0
devin 0.1.4: errors no longer start with "Devin: ", which magpie adds (it read "Devin: Devin: usage limit reached: …"), a stream error before anything included; an error Devin gives no words for is worded as Go's status text ("Payment Required") as the built-in's devinFailure does, where it read "HTTP 402"; an empty reply is the built-in's 502 "the reply broke off: EOF". Statuses were already the built-in's (unauthenticated 401, resource_exhausted/quota/rate limit 429, too long 400, invalid_argument 400, unavailable 503); errors.test.mjs checks them
2026-10-01 03:43:41 +08:00
yetone
3d94a667f6
cursor 0.1.4: an error Cursor gives no words for is worded as magpie's built-in words it, Go's status text ("Payment Required", "Too Many Requests", "Unauthorized — sign in to Cursor again"), where it read "HTTP 402": a 402 now reads as the credit refusal it is to magpie's routing, as the built-in's did. Statuses were already the built-in's (resource_exhausted/quota/rate limit/usage limit 429 "usage limit reached: …", too long 400, invalid_argument 400, unavailable 503, permission_denied 403, other codes 502, pre-content stream errors answered with their status); errors.test.mjs checks them all
2026-10-01 03:43:39 +08:00
yetone
6ba28f67ae
registry: list magpie's community's plugins alone — the OpenCode community's weren't written against magpie's sign-ins and fell short of them; they stay a search away in magpie
2026-10-01 03:26:40 +08:00
yetone
23a580b6aa
factory 0.1.3: a refusal says what to do after an em dash ("<Factory's message> — Factory refused this account…"), as the built-in's Provider.Explain joins them, where it used ": "; an empty 403 reads "403 Forbidden", the status Go falls back to
2026-10-01 03:21:02 +08:00
yetone
b9404c8f68
commandcode 0.1.3: on every plan but Go a model the Provider API serves on Responses and not chat completions is asked on Responses (@ai-sdk/openai at /provider/v1), the first of its APIs in magpie's order (chat, Responses, Messages) as the built-in picks it, where it was asked on chat completions and refused; errors no longer start with "Command Code: ", which magpie adds
2026-10-01 03:19:57 +08:00
yetone
96b3ad276b
kiro 0.1.3: only a sign-in that is gone (a refresh Kiro refused, no refresh token, no sign-in, a refused API key) answers a request with the 401 magpie marks the account lapsed on; a refresh that timed out, failed to connect or met a 5xx is a 502; errors no longer start with "Kiro: ", which magpie adds
2026-10-01 03:17:51 +08:00
yetone
eab92c33a0
qoder 0.1.2: a chat Qoder refuses with a 403 stays a 403, only its 401 (the job token refused) is the 401 magpie marks the account lapsed on; a model the listing marks free (is_free, or a price_factor of 0, snake or camel case, as internal/qoder/models.go reads it) is marked free; errors no longer start with "Qoder: ", which magpie adds
2026-10-01 03:16:04 +08:00
yetone
aac52c9ce4
mimo 0.1.4: a chat body handed over as bytes is read, so mimo-auto is still asked as mimo-pro; a sign-in Xiaomi no longer takes answers the request with a 401 in the built-in's words (<user>: the Xiaomi MiMo sign-in has expired — sign in again) instead of a thrown fetch
2026-10-01 03:13:34 +08:00
yetone
3d3f3b7bf1
zed 0.1.3: an account reply that can't be read is the card's error, as zed.FetchMe says it (Zed: an unreadable account: <encoding/json's words>), not a plan-less card; a free account reads Free, as the built-in's row names it (zed.PlanName); a model token refused right after it was minted is a 403, not a 401 magpie would take for a lapsed sign-in; errors no longer start with "Zed: ", which magpie adds; a model Zed gives no limits has none made up (was 200000/32000)
2026-10-01 03:12:11 +08:00
yetone
0c7275a140
grok 0.1.2: a usage fetch that fails or a reply that isn't JSON is the card's error, as grok_usage.go says it (Go's Get "<url>": … with no such host / connection refused / timeout / EOF for magpie's keepLast, encoding/json's words); a status Go has no words for says "HTTP <n>"; a model list Grok couldn't give fails instead of falling back to the configured few; a request body handed over as bytes is reshaped as a string one
2026-10-01 03:07:40 +08:00
yetone
0b425bee69
workbuddy 0.1.4: every refused meter status is an error with words, Go's http.StatusText in full (a 409 was an empty error), "HTTP <n>" for one Go has none for; a refusal in WorkBuddy's own {code, msg} reads its msg before the hint, as wbExplain's; a chat body handed over as bytes is read, so it still gets WorkBuddy's system message
2026-10-01 03:05:22 +08:00
yetone
d8739bcdbc
devin 0.1.3: the card's quota windows are "1 day" and "7 days", shown only when Devin says what is left of them (one left out is no longer taken for used up); usage no longer overwrites the row's plan ("Devin Pro", as devin auth status names it) with planName's bare "Pro"; a refused key says "Devin's sign-in has expired — sign in again"; the efforts none and minimal go as given; a variant the user picked stays, as magpie's devinCollapse keeps it; only a model models.dev says takes images gets image input
2026-10-01 03:03:01 +08:00
yetone
b70f871d97
zcode 0.1.3: every card starts from the saved plan, as magpie's built-in's did — a reply with no level, a team detail that failed or an error no longer drops it; a model ZCode's config gives no context or output keeps 0, as the built-in, instead of a made-up 200K/131072
2026-10-01 02:56:05 +08:00
yetone
befd071701
cursor 0.1.3: the card names the plan as cursor-agent about does (GetPlanInfo's planName, kept an hour); only a token or session run out is a 401, as magpie marks the account lapsed on one; errors no longer start with "Cursor: ", which magpie adds; a model list Cursor couldn't give fails instead of shrinking to the configured few
2026-10-01 02:52:43 +08:00
yetone
fb82ecd4d2
mimo 0.1.3
2026-10-01 02:45:37 +08:00
yetone
d28f9dfa09
mimo 0.1.3: two accounts signing on at once each keep their own session — one renewal was shared by every account, so an account could get another's session and show its plan and allowance
2026-10-01 02:45:10 +08:00
yetone
b3a3ae0887
kiro: a lost sign-in says what magpie's built-in says — add the subscription, sign in with kiro-cli or the IDE, or save an API key; a magpie-added account's is gone and is added again
2026-10-01 01:23:23 +08:00
yetone
894a376c48
zcode: README names the ZCode app's sign-in
2026-10-01 01:21:20 +08:00
yetone
826d487839
workbuddy: the refusal of Codex's and Claude Code's prompt carries magpie's hint, and a model of no credits is marked free; zcode: sign in as the ZCode app, following its own sign-in and team switches
...
- workbuddy: 'Illegal API invocation from an unapproved channel' ends in the hint magpie's built-in added (provider.WBRefusedHint), where magpie's routing page finds it; models with credits x0.00 carry free: true
- zcode: a new sign-in, "ZCode app's sign-in", reads ~/.zcode/v2 (credentials decrypted as ZCode keeps them, setting.json's team plan) for every request, as magpie's built-in did; magpie moves ZCode's own account marked source: zcode
2026-10-01 01:21:06 +08:00
yetone
c8f4d448df
Parity with magpie's built-ins: a failed sign-in says why, CLI-backed Command Code and Devin accounts follow the CLI's key, Factory's refused renewal is a 401 in the caller's API shape
...
- every {type:"failed"} carries an error reason magpie shows
- commandcode/devin: accounts taken from the CLI are marked metadata.cli and re-read its credentials on each request, usage and models
- factory: a refused refresh answers 401 authentication_error (Anthropic shape on /llm/a/, OpenAI's elsewhere) instead of throwing; the whoami back-off is per account; 403 hints name the account to sign in again
- versions: factory/devin/commandcode/cursor/kiro/mimo/zed/zcode 0.1.2, workbuddy 0.1.3
2026-10-01 00:55:50 +08:00
yetone
bd9c0780cc
zed 0.1.1: usage shows as magpie's built-in did — plan, period, windows and what they count, balancezed
2026-09-30 23:03:11 +08:00
yetone
501bd238ed
zcode 0.1.1: usage shows as magpie's built-in did — plan, period, windows and what they count, balance, team resets
2026-09-30 23:03:10 +08:00
yetone
8c419105c0
workbuddy 0.1.2: usage shows as magpie's built-in did — plan, period, windows and what they count, balanceworkbuddy
2026-09-30 23:03:10 +08:00
yetone
4dd783a2c0
qoder 0.1.1: usage shows as magpie's built-in did — plan, period, windows and what they count, balanceqoder
2026-09-30 23:03:10 +08:00
yetone
3d1f24219a
mimo 0.1.1: usage shows as magpie's built-in did — plan, period, windows and what they count, balancemimo
2026-09-30 23:03:09 +08:00
yetone
84e5e853ee
kiro 0.1.1: usage shows as magpie's built-in did — plan, period, windows and what they count, balancekiro
2026-09-30 23:03:09 +08:00
yetone
79ab574970
grok 0.1.1: usage shows as magpie's built-in did — plan, period, windows and what they count, balancegrok
2026-09-30 23:03:09 +08:00