Commit Graph
496 Commits
Author SHA1 Message Date
yetone c2fd48782b Put back what 1f05c311d took out of main by mistake
1f05c311d was committed with its worktree's older tree on top of a
fresh origin/main (git reset --soft), so beside the memory fix it
undid every file 610ae1f54..c1312ac15 changed (45 files: key balance,
import links, project subagents, uninstall, site, LESSONS.md and
more). This commit restores each of them to c1312ac15 byte for byte;
the tree is now c1312ac15 plus the memory fix alone
(git diff --stat c1312ac15 HEAD: the 4 files of the fix).
2026-11-13 12:18:23 +08:00
yetone 1f05c311d9 library: an open memory holds still while the Memory tab polls (Nietzsche_Li on X)
"资源库-记忆中,被展开的记忆的表单会定时抖动". While search by meaning
still has memories to read (read < of, which can last up to a minute
between memembed.Keep's reads) or a learn-from-conversations run goes,
the Memory tab reads its row again every 2s, and each read drew the
whole page anew. The open editor was a new .lib-detail each time and
played its content-in entrance (opacity .5, 2px slide) every 2s.

- semWatch/distWatch draw nothing when the read changed nothing, and
  redraw only their own row (redrawRow) when it did; the whole tab only
  when the memories changed.
- render() marks a .lib-detail open before it (same data-detail) as kept,
  so it doesn't replay its entrance. This covers every render of an
  open editor in the Library: memories, instruction sets and agents'
  files (the siblings; no other Library tab polls into render()).
- A new memory's text no longer takes the focus back on every render.

Run (mote): library-memory-steady.test.cjs, all 5 languages, 980/420,
chromium + webkit: green 4 of 4 whole-file runs after the last change
(webkit alone 2 of 2 before it). Broken by hand: the same test against
origin/main's client.js and library.css: 22 of 22 red ("the editor
played its entrance again"). One webkit de 420 red was the test's own
first row click intercepted by the header at 420px while the page
settled; the test now opens rows with a DOM click.
Also run, both engines, every language, 980/420: library-memory, library-memory-select, library-memory-suggest, memory-icon, library-instr-busy, library-instr-sets, library-linked-set, library-follow-server: all green. No Go code changed, so no go test or vet.
Not tried: the real app on a real memory store mid-read.
2026-11-13 12:17:43 +08:00
yetone 5e51e241c2 site: a release's attestations are asked of GitHub once, not once a file (ArcticLampyrid on X)
wrangler tail of the 04:05 run: "API rate limit exceeded for 172.71.158.37",
so v0.1.3982, v0.1.3981 and v0.1.3978 got no attestations.jsonl. The worker
has no GITHUB_TOKEN secret, and unsigned the API allows 60 requests an hour
to an IP the worker shares with other workers; asking once per file (15 a
release, every five minutes until whole) spent that fast. Release CI signs
every file in one statement, so the cron now reads the subjects of the
bundles it got and asks only for a file none of them names: one request a
release. A GITHUB_TOKEN secret (read-only, public repos) would lift the
shared limit; that is the owner's to add.

Checked on the real v0.1.3979 bundle from R2: subjects() lists all 17 files,
the CLI's digest among them.
Run (mote): node --test site/*.test.mjs 120/120.
New test: one statement signing every file is asked for once.
Broken by hand: not adding the subjects to the covered set turns it red.
2026-11-13 12:10:01 +08:00
yetone c5adcbaab5 site: llms-full.txt carries the ccswitch:// import line
889758605 added a line to docs/import.html without regenerating
llms-full.txt, so worker.test's "llms-full.txt is current" was red on main.
Regenerated with node llms-full.mjs. Run (mote): node --test site/*.test.mjs 119/119.
2026-11-13 11:53:34 +08:00
yetone 728f3de407 site: a release the feed named for one run still gets its attestations on R2 (ArcticLampyrid on X)
52830b077 asked for a release's bundles only while the feeds named it, and
only after its files were copied inside the run's budget. Tags came minutes
apart today: v0.1.3978 was the newest for the 03:40 run alone, which copied
its 15 files, and by 03:45 v0.1.3979 had replaced it, so v0.1.3978's files
are on R2 with no attestations.jsonl beside them. After pruning, the cron
now also fills in the bundles of every tag it keeps (the four newest the
feeds don't name), from the files and hashes R2 holds of it. A tag that
never had files on R2 (v0.1.3977, newest for under a minute) is served by
GitHub, bundles included, as before.

Seen live: wrangler tail of the 03:45 run copied v0.1.3979/attestations.jsonl,
and usemagpie.ai/files/v0.1.3979/attestations.jsonl answers 200.

Run (mote): node --test site/files.test.mjs 10/10; site/*.test.mjs 118/119,
the red is worker.test's "llms-full.txt is current", stale since 889758605
on origin/main, regenerated in the next commit.
New test: a kept release the feeds no longer name gets its bundles.
Broken by hand: the kept-tags loop emptied turns it red.
2026-11-13 11:53:34 +08:00
yetone 889758605f import: open CC Switch's ccswitch:// provider links (coder_shaun on X)
A relay's one-click ccswitch://v1/import?resource=provider&app=…&name=…
&endpoint=…&apiKey=… link now opens magpie's own import confirmation. The
format is read from CC Switch's source (src-tauri/src/deeplink/parser.rs and
provider.rs at 3c76d3b): host v1, path /import, resource=provider only,
app, name, endpoint, apiKey, apiFormat, model/haiku/sonnet/opusModel,
homepage, iconUrl, and the base64 config (claude env, codex auth + config.toml
provider table, gemini env) filling what the URL leaves out. The link is
translated into a magpie://import's parameters and goes through the same
checks (https only, key shape, id rules, balance host) and the same
confirmation; usage scripts, configUrl, enabled and notes are never taken, a
codex env_key is refused.

Registration, so as not to take CC Switch's links: Linux writes a separate
magpie-ccswitch.desktop and sets the default only when `xdg-mime query
default` is empty or already it; Windows writes HKCU ccswitch only when
HKCR has no live handler of another program; uninstall and install.sh remove
them only while they are ours. macOS declares the scheme in Info.plist
(static), so with CC Switch installed too the system picks.

Run: provider, gui (macOS mote; Linux gtk3 on WSL for the scheme tests),
uninstall, cli, update packages; vet darwin, windows, linux nogui. The test
parses CC Switch's own 11 provider examples (testdata/ccswitch_links.txt,
copied from its repo) and refuses the other resources. Broken by hand: claude's
default endpoint kind (4 reds) and the Linux "another app has it" check
(TestRegisterSchemeLeavesCCSwitchItsLinks red).
Not tried: Windows registry (vet only), a real CC Switch installed beside
magpie, a browser click on a real relay's button.

Rebased on 610ae1f54 and run again there (mica): provider, gui, uninstall,
cli, update ok; GUI import-link-balance, import-link-gemini,
import-collision, import-opencode 80/80 in chromium and webkit; vet darwin,
linux nogui, windows ok; gofmt clean. Reviewed against CC Switch db7a0e7
(no deeplink change since 3c76d3b). Broken by hand again: the config's key
no longer filling an empty apiKey (TestCCSwitchOwnExamples, 3 reds).
Pushed on 48afb27b0, which adds only the library plugins GUI files
(client.js, library.css, library-plugins.test.cjs) to that base.
Not tried either: macOS with CC Switch installed too, where Launch Services
picks which app opens ccswitch:// links.
2026-11-13 11:46:50 +08:00
yetone 52830b077b site: the build attestations are kept on R2 beside the release files (ArcticLampyrid on X)
The SLSA attestations live behind GitHub's API only, so with GitHub down
they could not be fetched while the mirrored files could. The five-minute
cron now also asks api.github.com/.../attestations/sha256:<digest> for every
file of a release from v0.1.3891 on and, once every file has one, writes
<tag>/attestations.jsonl to R2 (a Sigstore bundle per line, deduped), served
at usemagpie.ai/files/<tag>/attestations.jsonl. It is written only whole, so
a file with no attestation yet is asked again next run, and it is pruned
with its tag. `gh attestation verify <file> -R yetone/magpie-releases
--bundle attestations.jsonl` checks a download with it. It is not a release
asset: the GitHub release keeps its 17 assets and release CI is unchanged.
start (en, zh, ja), llms-full.txt and reference.md say where it is and how to
verify. The updater does not read it yet.

Run (mote): node --test site/*.test.mjs 118/118; gofmt n/a.
New tests: bundles land once and only whole; pre-0.1.3891 release not asked.
Broken by hand: ATTESTED set to 9.9.9 turns the bundles test red.
Not tried yet: the real cron run and the file on R2 (after deploy), the
updater reading it from R2, gh --bundle on a real downloaded file.
2026-11-13 11:23:30 +08:00
yetone e6eaf4d69c site: a mirrors page in en, zh and ja
/docs/mirrors says how magpie downloads from China: the Plugins page's
Mirrors in China switch (npm at registry.npmmirror.com, Bun at
npmmirror's binary mirror, the plugin list at jsDelivr, bun add pointed
at npmmirror unless a registry is set), --proxy and --mirror for the
installer and magpie update, magpie update mirror and Settings' Download
source, the MAGPIE_MIRRORS fallback with MAGPIE_NPM_REGISTRY and
MAGPIE_GITHUB_MIRROR, and what is checked: update files against
usemagpie.ai's SHA-256, Bun's zip and npm integrity, credentialed
requests never mirrored. Every claim is from docs/reference.md (Mirrors,
the install and update section), internal/source/source.go and
internal/cli/update_cli.go, with the labels' zh and ja from i18n.js.
Linked from each language's troubleshooting page; in the sitemap,
llms.txt and llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: a download through the mirrors from China for this page; it
names only what magpie's reference and source say.
2026-11-13 10:15:28 +08:00
yetone 1f4f1874b5 site: a sync page in en, zh and ja
/docs/sync says how magpie keeps computers in sync: what the sealed file
holds (providers and keys, settings, profiles, agents' models, the
library, npm and git plugins, gateway keys) and what it doesn't
(subscriptions' sign-ins), WebDAV (坚果云, Nextcloud, Synology), S3
(R2, B2, MinIO, path-style, OSS without conditional writes) and private
GitHub repos, every 3 minutes with merged conditional writes, Kept on
this computer and Follow the others, and the one-off magpie backup and
restore with AES-256-GCM and PBKDF2-SHA256. Every claim is from
docs/reference.md (Moving to another machine, Keeping machines in sync),
with the labels' zh and ja from i18n.js and the commands checked in
internal/cli/main.go. Linked from each language's start page; in the
sitemap, llms.txt and llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: a real WebDAV, S3 or GitHub sync for this page; it names
only what magpie's reference says.
2026-11-13 09:40:15 +08:00
yetone dbb2e5dd29 site: an OpenCode Go and ClinePass page in en, zh and ja
/docs/coding-plans says how magpie serves the two monthly plans for
open coding models in any agent: OpenCode Go's three endpoints as Go's
docs give them, each model sent on the protocol Go serves it on as
OpenCode does (no more "Model does not support this protocol"), old
addresses moved, and its 5-hour, 7-day and monthly windows on Quota;
ClinePass at api.cline.bot with the plan's and Cline's free models from
the list Cline's clients use, the free ones apart from the plan's quota
and asked with the desktop app's headers. Every claim is from
internal/provider (presets.go, opencode_endpoints.go, planquota.go,
cline.go, models.go), with the labels' zh and ja from i18n.js. Linked
from each language's opencode-models page; in the sitemap, llms.txt and
llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: a real OpenCode Go or ClinePass key for this page; it names
only what magpie's source says.
2026-11-13 09:06:26 +08:00
yetone 1e2ce24631 site: a free models page in en, zh and ja
/docs/free-models says how magpie serves free models: OpenCode Zen's
-free models and big-pickle with no key, asked for as OpenCode asks;
Kilo Gateway's :free models with no key, anonymous by IP at 200 requests
an hour, a key for the rest; the free mark in pickers (PricedFree: that
provider's $0 price on every count, not a maker's free tier or a plan's
list, a price the user set wins); free models first in a routing group;
and a deprecated model leaving the lists until answered or a week.
Every claim is from internal/provider (presets.go, kilo.go, models.go)
and docs/reference.md, with the label's zh and ja from i18n.js. Linked
from each language's nvidia page; in the sitemap, llms.txt and
llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: a real OpenCode Zen or Kilo request for this page; it names
only what magpie's source says.
2026-11-13 08:32:42 +08:00
yetone 390dd407b9 site: a Fireworks and Fireworks Nexus page in en, zh and ja
/docs/fireworks says how magpie serves Fireworks AI and Fireworks
Nexus: the fireworks preset on Chat Completions at
api.fireworks.ai/inference/v1 with models.dev's fireworks-ai list, the
agents' other APIs translated; the fireworks-nexus preset with keys from
nexus.fireworks.ai on Chat, Responses and Messages, auto as its list
since Pro and Team refuse an open model with a 403, Enterprise models
typed in, and Claude and GPT through the x-anthropic-api-key and
x-openai-api-key headers the editor offers (HeaderHints) or set with
magpie provider set header.<Name>=. Every claim is from
internal/provider/presets.go and docs/reference.md, with the labels' zh
and ja from i18n.js. Linked from each language's groq page; in the
sitemap, llms.txt and llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: a real Fireworks or Nexus key for this page; it names only
what magpie's source says.
2026-11-13 07:58:54 +08:00
yetone f28787b396 site: an API relay page in en, zh and ja
/docs/relay says how magpie serves an API relay as a provider: the
relay presets (AiHubMix, PipeLLM, 302.AI, CherryIN, 鱼鱼连线 and its
three lines) and a custom one by url=, anthropic= and responses=; a
Claude model sent on Messages when the relay has an Anthropic address,
since relays drop cache_control on Chat (MessagesFirst, OnMessages,
#997); magpie model price for a relay's real prices and the renamed
model's price; magpie model wire, context and output; and
refresh-every and auto-include for the list. Every claim is from
docs/reference.md and internal/provider/presets.go and provider.go,
with the label's zh and ja from i18n.js. Linked from each language's
openrouter page; in the sitemap, llms.txt and llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: a real relay key for this page; it names only what magpie's
source and reference say.
2026-11-13 07:25:59 +08:00
yetone e9e63c6d77 site: an NVIDIA NIM page in en, zh and ja
/docs/nvidia says how magpie's nvidia preset serves NVIDIA NIM with one
build.nvidia.com key: Chat Completions alone at
integrate.api.nvidia.com/v1, since NIM's /v1/responses answers for few
models (#197), with Claude Code's and Codex's requests translated;
nvidia/<model> ids; the free badge for models NIM prices at 0, scoped to
NIM (PricedFree, catalog.go); imported per-key copies folded into one
provider (FoldCopies, fold.go); OpenCode's nvidia provider imported as
the preset; and that magpie doesn't say how a NIM key bills
(unsaidPresets). Every claim is from internal/provider and
internal/catalog, with the labels' zh and ja from i18n.js. Linked from
each language's modelscope page; in the sitemap, llms.txt and
llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: a real NVIDIA NIM key for this page; it names only what
magpie's source says.
2026-11-13 06:52:49 +08:00
yetone aa3fe0c79b site: a Vercel AI Gateway page in en, zh and ja
/docs/vercel says how magpie's vercel preset serves Vercel's AI Gateway
with one key: Chat Completions and Responses at ai-gateway.vercel.sh/v1
and Anthropic Messages at its root, maker/model ids, a Claude model sent
on Messages whatever the agent spoke so cache_control holds
(MessagesFirst, OnMessages, #997), and the model list sorted by Vercel's
own row types: chat models with context_window, image, video,
embedding, reranking, speech and transcription models to their APIs,
evaluation models, realtime voices and -batch ids left out. Every claim
is from internal/provider/presets.go and provider.go and
internal/catalog/live.go, with the label's zh and ja from i18n.js.
Linked from each language's openrouter page; in the sitemap, llms.txt
and llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: a real Vercel AI Gateway key for this page; it names only
what magpie's source says.
2026-11-13 06:19:05 +08:00
yetone 7583ed65ce site: a Groq page in en, zh and ja
/docs/groq says how magpie's groq preset serves Groq with one key:
adding it, Chat Completions and Responses both at api.groq.com/openai/v1,
imports from OpenCode and other apps made the preset, Claude Code
translated to Chat because Groq's Chat reports its cache
(ResponsesTellsCache), Groq's list taken as a host's and no maker's
(Hosts), a 429 naming the model resting that model alone (modelNamed),
"reduce the length of the messages" read as an overflow the agent
compacts on (tooLongRe), an "unsupported" field asked again without
(refusesField), and Whisper and playai-tts through /v1/audio. Every
claim is from internal/provider/presets.go, provider.go, models.go,
importapps.go and import_opencode.go, internal/gateway/gateway.go,
docs/reference.md and docs/subsystems/gateway-routing.md, with the
label's zh and ja from i18n.js. Linked from each language's mistral
page; in the sitemap, llms.txt and llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: a real Groq key for this page; it names only what magpie's
source and docs say.
2026-11-13 05:45:27 +08:00
yetone 0fa15db1ca site: an Azure OpenAI page in en, zh and ja
/docs/azure says how magpie's azure preset serves the user's own Azure
resource: the endpoint and key from the portal (the editor's Endpoint,
or provider add azure <key> url=…), every address form AzureBase takes
moved onto the v1 API under /openai/v1 with no api-version, the key in
api-key and never a Bearer, deployments' names as the model ids and
what to type when no list comes back, an API Management gateway's URLs
kept, headers with ${sessionId}, imports made the azure preset,
content_filter read as a policy refusal (#248), Codex's bare reasoning
items left out unless store is true (#1008), and the Decisions API at
/openai/v1/decisions. Every claim is from internal/provider/azure.go
and presets.go, internal/gateway/fallback.go (policyRefusal),
internal/cli/providers_cli.go, docs/subsystems/gateway-routing.md and
providers-accounts.md, with the labels' zh and ja from i18n.js. Linked
from each language's openai page; in the sitemap, llms.txt and
llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: a real Azure resource for this page; it names only what
magpie's source and docs say.
2026-11-13 05:12:01 +08:00
yetone 2d2333cfa1 site: an Amazon Bedrock page in en, zh and ja
/docs/bedrock says how magpie's bedrock and bedrock-mantle presets serve
Claude, OpenAI's GPT models and other makers' models with one Bedrock API
key and no SigV4: adding it, region= (CLI and the editor's Region), the
runtime's given list (global. profiles for Claude and GPT, in-region ids
for the rest, geography profiles typed in), the API picked per model,
Mantle's own model list, in-region ids and two OpenAI prefixes,
Claude Code's CLAUDE_CODE_USE_BEDROCK taken out and put back, and the
anthropic-beta 400 asked again without the betas. Every claim is from
internal/provider/presets.go and provider.go, internal/cli/providers_cli.go
(applyPairs' region=), docs/subsystems/providers-accounts.md,
gateway-routing.md and agent-wiring.md, with the label's zh and ja from
i18n.js. Linked from each language's anthropic page; in the sitemap,
llms.txt and llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: a real Bedrock key for this page; it names only what magpie's
source and docs say.
2026-11-13 04:36:55 +08:00
yetone 1729e1193a site: a Google Vertex AI page in en, zh and ja
/docs/vertex says how magpie's google-vertex preset serves Gemini, partner
models (DeepSeek, GLM, gpt-oss) and Claude from the user's own Google Cloud
project with no API key: turning on aiplatform.googleapis.com, gcloud
application-default login or a key file, project=, location=,
credentials= and impersonate= (with the GUI fields' labels), the models
each location lists and typing in others, Model Garden and testing a
partner or Claude model on its own, Claude on Messages API as with
CLAUDE_CODE_USE_VERTEX, the Priority/Flex PayGo headers, and the errors
reference.md lists. Every claim is from docs/reference.md (Google Vertex
AI) and the CLI usage, with the labels' zh and ja from i18n.js. Linked
from each language's gemini page; in the sitemap, llms.txt and
llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: a real Vertex AI project for this page; it names only what
magpie's docs and source say.
2026-11-13 04:02:44 +08:00
yetone f0571d7da5 site: a usage page in en, zh and ja
/docs/usage says what magpie records of each request and where to read
it: the Usage and Requests pages, magpie usage (today, 7d, 30d, all,
--last, --days, --csv, --account), the Sessions page and magpie sessions
(--days, --model, --folder, --json, and session reading allowed per
agent, none until then), where a price comes from (the user's own, the
provider's catalogue, models.dev) and magpie model price for a relay's
real one (four numbers, a fifth for a 1-hour cache write), calls with no
price ("{n} unpriced", never counted as free), magpie statusline for
Claude Code, and GET /v1/magpie/usage and /usage/requests with a held
key's cut. Every claim is from the CLI usage in internal/cli/main.go,
docs/reference.md (What a model costs, the status line),
docs/subsystems/gateway-sessions.md and app.js, with the labels' zh and
ja from i18n.js. Linked from each language's quota page; in the
sitemap, llms.txt and llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: magpie usage or magpie sessions against real data for this
page; it names only what magpie's source and docs say.
2026-11-13 03:27:16 +08:00
yetone 9c33839dee site: an images page in en, zh and ja
/docs/images says how a model that can't see images gets screenshots
anyway (the Image recognition model describes each image once, cached,
up to 4 at a time, in every turn and tool result; Automatic, a picked
model, Off), the /mcp/magpie/vision server's analyze_image (URL, data
URL or a local path up to 20 MB; a gateway key from another computer),
the Magpie Image tool (generate_image, generate_video,
generation_result; generated-images and generated-videos, never written
over; a call answers within 20 s with an id), /v1/images/generations
and edits, and Image generation timeout (1 to 60 min, 5 by default).
Every claim is from internal/gateway/vision.go, vision_mcp.go,
internal/imagemcp/imagemcp.go, docs/subsystems/gateway-routing.md and
renderImages in app.js, with the labels' zh and ja from i18n.js. Linked
from each language's web search page; in the sitemap, llms.txt and
llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: describing or drawing a real image for this page; it names
only what magpie's source says.
2026-11-13 02:52:16 +08:00
yetone f8a00a3bee site: a quota page in en, zh and ja
/docs/quota says how to see what is left of every subscription, plan
and key: magpie quota and --json (lastServedAt, last), refresh (a Claude
account read by running /usage), GET /v1/magpie/quotas and its history
endpoint, reachable from another machine only while shared on the local
network, the magpie-quota skill, alert by percent and --balance, quota
wait with its exit codes and the until-loop for a stopped Codex job,
history kept 45 days, and a Codex account's reset, auto-reset and
credits. Every claim is from quotaUsage in internal/cli/quota_cli.go and
docs/subsystems/library.md, with the Usage and Library labels' zh and ja
from i18n.js. Linked from each language's routing groups page; in the
sitemap, llms.txt and llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: running magpie quota against real accounts for this page; it
names only what magpie's source says.
2026-11-13 02:16:14 +08:00
yetone 625f3db114 site: a routing groups page in en, zh and ja
/docs/routing-groups covers both levels of magpie's routing: several
accounts or keys on one provider (the editor's Routing and Stays, shown
once a second one is on, and what one rate limited with quota left does:
Keeps its place or Goes to the back), and routing groups across
providers (auto-found groups, members, nested groups, patterns, By
weight and Manual, rules, reasoning per member or by a classifier).
Each routing and Stays choice is worded from app.js's ROUTINGS and
STAYS and routing/client.js's options, with their zh and ja from
i18n.js and plugins/routing/i18n.js; the CLI lines and templates are
from groupUsage in internal/cli/groups_cli.go. Linked from each
language's subscriptions page; in the sitemap, llms.txt and
llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: making a group or rotating real accounts for this page; it
names only what magpie's source says.
2026-11-13 01:42:34 +08:00
yetone 0f0f391e67 site: a web search page in en, zh and ja
/docs/web-search says how magpie gives web search to models that can't
search (DeepSeek, GLM, Qwen) when Claude Code's WebSearch or Codex's
web_search reaches them: Settings › Models › Web search, Search first
with, a provider that searches for other models (one magpie picks gives
way to the next, up to three; one you pick to If it fails, then the
Search APIs only when it can't serve at all), the providers that search
for their own models first, provider search turned off, the Search APIs
and magpie search's CLI (keys in turn, pick=order, url=, count, mix),
Models that search by themselves, and the MCP server at
/mcp/magpie/web-search with web_search and web_fetch. Facts from
internal/cli/search_cli.go, docs/subsystems/gateway-routing.md and
gui-shell.md, with the GUI's labels and their zh and ja from app.js and
i18n.js. Linked from each language's DeepSeek page; in the sitemap,
llms.txt and llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: a search through a real searcher or Search API for this page;
it names only what magpie's source and docs say.
2026-11-13 01:07:39 +08:00
yetone ad623e303b site: an agent drift troubleshooting page in en, zh and ja
/docs/agent-drift says what the Agents page means when it marks an
agent off magpie, one section per kind magpie reports: its config was
changed (unwired), a magpie model was replaced by the agent's own
(replaced: Apply again, or Keep current settings), it was used without
reaching the gateway (bypassed: quit and reopen it), nothing answers at
an address off loopback (unreachable: WSL's firewall rule, mirrored
networking, Share on local network, a portproxy, Use {url}), and Codex's
proxy not passing requests on (proxied: a DIRECT rule, NO_PROXY,
Windows' proxy exceptions). It also covers what isn't flagged (a move
between magpie models, a hand-written magpie provider) and Disconnect
from magpie. Each claim is from internal/agent/applied.go, reach.go and
codex_proxy.go, with the GUI's labels and their zh and ja from app.js
and i18n.js. Linked from each language's troubleshooting page (WSL
section); in the sitemap, llms.txt and llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: making an agent drift by hand for this page; it names only
what magpie's source says.
2026-11-13 00:31:02 +08:00
yetone bbce1fc1ab update: the updater checks a download's GitHub build attestation too (ArcticLampyrid on X)
Release CI attests every file (SLSA provenance through Sigstore, v0.1.3891
on). The updater now fetches the bundle for a file's signed SHA-256 from
api.github.com/repos/yetone/magpie-releases/attestations/sha256:<digest>
before it downloads the file, and verifies it with sigstore-go against the
Sigstore trusted root embedded in the binary (attest_root.json, public
good instance): certificate chain, certificate timestamp, Rekor entry,
issuer token.actions.githubusercontent.com, subject release.yml of
yetone/magpie-releases on main or a v* tag, source repository
yetone/magpie-releases, and the digest among the statement's subjects. It is
in addition to the ed25519 check over SHA256SUMS, which still runs first
and still works offline and from the R2 mirror; the attestation is asked
about the digest that signed list gives, so both speak of the same bytes.

When the attestation can't be had (a failed read means "unknown", but an
outage of GitHub must not take updates away):
- a bundle that is there and fails (signature, identity, digest, a chain
  outside the trusted root), GitHub answering 404, or an empty list: the
  file is refused. GitHub was asked and says these bytes weren't built by
  that workflow.
- GitHub unreachable, rate limited (60/hour anonymously), 5xx, a body that
  isn't JSON, or Settings' update source set to the site alone (which never
  goes to GitHub): the update goes on, since the ed25519 check has held, and
  the log says the file went unattested and why. Someone who can only drop
  the API call downgrades an update to the ed25519 check, never below it.
- releases before 0.1.3891 and a MAGPIE_UPDATE_FEED of your own are not
  asked.
The bundle checks itself, so the API call goes through source.Do and may use
a mirror.

Cost: go.mod gains sigstore-go v1.1.4 and its tree (go.sum +350 lines).
The embedded root has to be renewed (gh attestation trusted-root, first
line) when Sigstore rotates its keys; docs/reference.md says so. Until then
a chain under a new key fails as "not attested" and is refused: a known
cost, in the doc.

Run (mote, sandbox HOME via testenv): go test ./internal/update (ok),
site node tests (112 of 114; docker-tags and the sponsors README test fail
because mote-run -C site cannot see ../README.md, unrelated), gofmt -l
empty, go vet darwin, GOOS=linux -tags nogui and GOOS=windows on
internal/update, go build ./... on all three. Fixture: the real answer
api.github.com gave for v0.1.3925's SHA256SUMS (testdata/attest), verified
offline; the whole run reaches no network.
New tests: TestAttestationOfARealBundleHolds, ...OfAnotherDigestRefused,
...TamperedRefused, ...EditedPayloadRefused, ...WrongIdentityRefused (repo,
workflow, ref, source repo, issuer each), ...NoneListedRefused,
...UnknownGoesOnAndSaysSo (403, 429, 502, HTML, nothing listening),
...OnlyWhereItIsOwed, TestVerifyMarksAttestedReleases,
TestDownloadRefusedWithoutAttestation.
Broken by hand: identity check swapped for WithoutIdentitiesUnsafe turns
WrongIdentityRefused red on all five cases; the attestedFile call removed
from download turns DownloadRefusedWithoutAttestation red (the file was
fetched). The first full run of the package, before TestMain pointed the
attestation API at a closed port, had TestSourceSiteAndAutomaticUseTheSite
reach the real GitHub with a made-up digest and be refused: now closed.
Not tried: a real update end to end (needs a release newer than the
running binary; the unit path covers download), Windows box, the
GUI, full suite (starts after the tag).
Docs: docs/reference.md, start.html (en, zh, ja) and llms-full.txt say what
the app checks now.
2026-11-13 00:01:01 +08:00
yetone 248240025b site: a Kiro Crew docs page in en, zh and ja
/docs/kirocrew says how magpie puts Kiro Crew on its models. Kiro Crew
has no model provider of its own; its models are its ACP harness's, so
magpie sets agent.acp_backend (and member_acp_backend for a harness
that can dispatch) in config.json in $KIROCREW_HOME or ~/.kiro/crew.
The harness is Codex, Claude Code, OpenCode, Pi or Goose connected to
magpie. The page covers which harness it keeps or picks, why deepseek
isn't offered, and the npm adapters Codex, Claude Code and Pi need,
looked for where Kiro Crew looks and never installed. It also covers
config.local.json winning and left alone, new sessions taking the
change, and switching off putting the keys back and disconnecting a
harness agent only when connecting Kiro Crew connected it. Each claim
is from internal/agent/kirocrew.go. Linked from each language's
JetBrains Copilot page; in the sitemap, llms.txt and llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: Kiro Crew itself with magpie for this page; it names only
what magpie's source says.
2026-11-12 23:54:14 +08:00
yetone f76a850c21 site: a JetBrains Copilot docs page in en, zh and ja
/docs/copilot-jetbrains says how magpie puts its models in GitHub
Copilot Chat in JetBrains IDEs and Android Studio. It covers Bring Your
Own Key's custom endpoint written into the Copilot language server's
byok.json, with the file's path on each system and its three keys as
the server saves them. The page also covers the restart the IDE needs,
the plans that have BYOK (Free, Pro, Pro+; Business and Enterprise by
policy), and the key kept in plain text in that file. It covers tool
calling turned on for agent mode, the 128K default window, Xcode's and
Eclipse's Copilot reading the same file, hidden models kept hidden, and
the three keys deleted on switching off. Each claim is from
internal/agent/copilotjetbrains.go. Linked from each language's
OpenMausBot page and to the Copilot page; in the sitemap, llms.txt and
llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: a JetBrains IDE itself with magpie for this page; it names
only what magpie's source says.
2026-11-12 23:20:17 +08:00
yetone 74881f4d6a site: an OpenMausBot docs page in en, zh and ja
/docs/openmausbot says how magpie sets up OpenMausBot: config.json in
$OMB_DATA_DIR or ~/.openmausbot, and why its Claude bots need an engine
of magpie's own (Claude Code runs isolated, with only the sign-in keys
of ~/.claude/settings.json). The page covers the magpie engine, shaped
like OpenMausBot's Claude endpoint: claudeAgent, access custom, its own
configDir, requireApiKey, every magpie model in endpointModels, and the
gateway and key in the environment. It also covers routing owned by the
engine, the default fleet written beside it when the file has none,
refusing a change while OpenMausBot runs with the list rewritten after
it writes over it, what stays the user's, and switching off. Each claim
is from internal/agent/openmausbot.go. Linked from each language's
Mistral Vibe page; in the sitemap, llms.txt and llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: OpenMausBot itself with magpie for this page; it names only
what magpie's source says.
2026-11-12 22:46:23 +08:00
yetone 477bbb7a15 usage: GET /v1/magpie/usage/requests?cursor= reads requests as changes, with stable ids (rdsaltbo on X, #6060)
A program keeping a ledger of its own (a WakaToken plugin) can now read the
requests incrementally: cursor=start or cursor=now, then each next_cursor.
Rows carry a stable content-derived id (same after a restart), origin, and
original_ids (request_id, response_id, client_response_id, message_id,
session_id, native_session_id), each only when the source gave it. A call
read late, a corrected row (same id, higher seq) and a native row replaced by
the gateway's (deleted, with seq) all come through a persisted journal
(usage-feed.jsonl, appended and synced before answering). Cursors magpie
cannot resume from are refused: 400 cursor_invalid / cursor_filter_changed,
410 cursor_expired / cursor_reset. A held key sees only its own rows and
tombstones. Without cursor, offset/limit mode is unchanged.

Also: Record.MessageID (not persisted) from the agent file's message id, and
usageapi's row decoration moved into a namer shared by both modes.
Docs: reference.md, integrating.md, gateway-routing.md, gateway-sessions.md,
site remote.html (en/zh/ja), llms-full.txt.

Run (mote, this tree): go vet darwin, GOOS=windows, GOOS=linux -tags nogui on
usage, usageapi, gateway (gui on darwin); go test -count=1 for
internal/usage, usageapi, gui, gateway: all ok. New tests: resume gets exactly
the new rows, ids and cursors survive a restart, correction keeps the id,
gateway takeover retires the native row, refused cursors, expiry, now cursor,
identical records, and the feed over the gateway (held key, 401 without key,
offset mode). Broken by hand: an unconditional memo made the new-rows test
red (fixed to memo only the next page).
Not tried: real Claude Code/Codex session files, a huge (700k+) history,
Windows run of the tests, GUI browser suites (no GUI file touched).
2026-11-12 22:40:15 +08:00
yetone b6043b8be3 site: a Mistral Vibe docs page in en, zh and ja
/docs/mistral-vibe says how magpie sets up Mistral Vibe (the vibe
CLI): config.toml in $VIBE_HOME or ~/.vibe, magpie's [[providers]]
entry at the gateway's /v1 and one [[models]] entry per catalog model
aliased magpie/<provider>/<model> for /model and active_model; the key
as an Authorization header in extra_headers, since Vibe reads keys only
from the environment or keyring, and nothing written to the environment
or ~/.vibe/.env; thinking levels and the 128K default; the user's other
keys kept and Avibe's vibe not taken for it; and active_model put back
on switching off. Each claim is from internal/agent/vibe.go. Linked
from each language's Pencil page and to the Mistral page; in the
sitemap, llms.txt and llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: Mistral Vibe itself with magpie for this page; it names only
what magpie's source says.
2026-11-12 22:11:19 +08:00
yetone e2afa3931a site: a Pencil docs page in en, zh and ja
/docs/pencil says how magpie sets up Pencil (pen.dev): a magpie
provider in Pi's format in ~/.pencil/models.json, on OpenAI Completions
at the gateway's /v1 for every model, under magpie's key for Pencil;
the fields each model carries (Pi's 128K and 16K defaults, zero cost,
no per-model api or baseUrl); the restart Pencil needs and the model
picked in its agent composer; how magpie finds it; the user's other
providers and their own keys kept; and switching off. Each claim is
from internal/agent/pencil.go and theirsKept in sync.go. Linked from
each language's WorkBuddy page; in the sitemap, llms.txt and
llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: Pencil itself with magpie for this page; it names only what
magpie's source says.
2026-11-12 21:37:44 +08:00
yetone e5ee114115 site: a WorkBuddy docs page in en, zh and ja
/docs/workbuddy says how magpie sets up Tencent's WorkBuddy: magpie's
models in ~/.workbuddy/models.json (or $WORKBUDDY_CONFIG_DIR), either
file shape, an entry's fields at /v1/chat/completions under magpie's key,
the custom-local:<id> picker per task and the restart WorkBuddy 5.6 can
need; the extra 200K context size and maxOutputTokens; what stays the
user's after WorkBuddy's own rewrite (models turned off, a NAS magpie,
typed reply limits, a default effort); WorkBuddy AI in ~/.workbuddy-ai,
WSL; and switching off. Each claim is from internal/agent/workbuddy.go.
Linked from each language's VS Code page; in the sitemap, llms.txt and
llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: WorkBuddy itself with magpie for this page; it names only
what magpie's source says.
2026-11-12 21:04:20 +08:00
yetone 5d23ae8607 site: a VS Code docs page in en, zh and ja
/docs/vscode says how magpie sets up VS Code's own Chat (GitHub
Copilot Chat): the Custom Endpoint provider since Stable 1.122, with no
GitHub sign-in or Copilot plan; magpie's customendpoint group in
chatLanguageModels.json, each model at /v1/chat/completions with tool
calling on and magpie's token in requestHeaders, since an apiKey is read
from secret storage alone; chat.defaultModel for a new chat; every
profile, Insiders and portable builds; VSCodium's Marketplace Copilot
Chat 0.48.1 and its OpenAI Compatible provider (x-api-key, personal
Copilot plan, the product.json and chat.disableAIFeatures setup); what
picking VS Code's own model and switching off each do. Each claim is
from internal/agent/vscode.go. Linked from each language's Claude
Science page; in the sitemap, llms.txt and llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: VS Code itself with magpie for this page; it names only
what magpie's source says.
2026-11-12 20:29:16 +08:00
yetone e9250203ae site: a Claude Science docs page in en, zh and ja
/docs/claude-science says how magpie connects Claude Science,
Anthropic's research app: it restarts the claude-science daemon (stop,
then serve --detached --no-browser on its port) with ANTHROPIC_BASE_URL
set to the gateway, and sets no variable for the user and writes no
file; the hand-run command (ScienceLaunch); https or loopback http only;
where the program is found; the Claude sign-in it still needs, which the
gateway never passes on, and the X-Anthropic-Surface: operon header;
claude-magpie-<number> aliases in its model menu; the keeper (restarts,
the window's own daemon, service managers, three retakes an hour); WSL
through wsl.exe with a socat relay under NAT; switching back. Each claim
is from internal/agent/claudescience.go, claudescience_wsl.go and
internal/gateway/science.go. Linked from each language's mu page; in
the sitemap, llms.txt and llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: Claude Science itself with magpie for this page; it names
only what magpie's source says.
2026-11-12 19:55:20 +08:00
yetone ab98228cc1 redact: Cloudflare's tokens and keys are masked by default (eiyuuzaki2333 on X)
Formats from Cloudflare's docs (fundamentals/api/get-started/token-formats
and /ca-keys): the scannable prefixes cfut_ (user token), cfat_ (account
token), cfk_ (Global API Key) and cfoat_ (Wrangler OAuth), each 40
characters and a checksum; an Origin CA key, which always starts v1.0-
(two alphanumeric runs split by a hyphen); a tunnel token, base64 of
{"a":..,"t":..,"s":..} so it starts eyJhIjoi (the docs show only that
head). The X-Auth-Key and X-Auth-User-Service-Key headers are masked
whatever the value looks like. The unprefixed older token (40 letters) and
Global Key (37-45 hex), and an R2 Secret Access Key (64 hex), have no
shape and were already masked under their names (CLOUDFLARE_API_TOKEN,
AWS_SECRET_ACCESS_KEY); the test pins that. An R2 Access Key ID is an id
and goes as written by design (TestIDsGoAsWritten), so it is not masked.
The checksum's length and alphabet aren't documented, so the prefixed rule
takes 40 or more of [A-Za-z0-9_-]. The origin CA hex split is not in the
docs; the rule takes alphanumerics.

Docs: the masking page (en, zh, ja) and llms-full.txt list them.

Run (mica, mote was loaded): go test -count=1 ./internal/redact ok;
gofmt; go vet darwin, linux nogui, windows. The new tests were red on the
old code for every prefixed, Origin CA, tunnel and X-Auth-Key case, and
keep SHA-1/SHA-256/MD5 hex, a base62 string, v1.0-beta, a bare prefix, an
R2 id and a JWT header unmasked.
Not tried: a real Cloudflare token (fake values in the documented shapes);
the full suite and GUI suite (no GUI file touched).
2026-11-12 19:31:43 +08:00
yetone 96f8726ed1 docs: how to verify a download's GitHub Actions attestation (ArcticLampyrid on X)
README (en, zh) and the start page's FAQ (en, zh, ja) give
'gh attestation verify <file> -R yetone/magpie-releases', say it holds from
v0.1.3891 and names the magpie-releases repo, not the source commit, and say
the updater keeps its own ed25519 check (offline, R2 mirror). Not adding
in-app Sigstore verification: it needs a TUF-fetched trust root and a bundle
per file, which breaks offline and mirror updates.

The workflow change is yetone/magpie-releases 9213fbd. Run: site/*.test.mjs
on mote (llms-full.txt regenerated, worker.test.mjs green). Not tried: the
attestation itself until v0.1.3891's run.
2026-11-12 19:30:45 +08:00
yetone f6c882ad77 site: a mu docs page in en, zh and ja
/docs/mu says how magpie sets up mu (qybaihe/mu, npm's mu-agent and
the mu desktop app), which is Pi with a judgment kernel: Pi's
settings.json (defaultProvider, defaultModel, defaultThinkingLevel) and
models.json (the provider magpie) in ~/.mu/agent; that this counts as
mu setup done; its own magpie-mu key, since its requests say pi/; the
folder variables (MU_AGENT_DIR and three more), ~/.kyrn as its old
name, and maildir-utils' mu not taken for it; mu.json and MU_JUDGE left
alone; switching back. Each claim is from internal/agent/mu.go and
piLikeKeyed in internal/agent/agents.go. Linked from each language's
Mister Morph page; in the sitemap, llms.txt and llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: mu itself with magpie for this page; it names only what
magpie's source says.
2026-11-12 19:21:10 +08:00
yetone c1d9391120 site: a Mister Morph docs page in en, zh and ja
/docs/mister-morph says how magpie sets up Mister Morph (morph): found
by ~/.morph, not the command; the llm keys it takes over in
~/.morph/config.yaml or $MISTER_MORPH_CONFIG (inference_provider
openai_response_compatible, the gateway's /v1, magpie's key, the
catalog id) and the mistermorph User-Agent in llm.headers; llm.provider
left to morph; context_window_tokens, since morph knows windows only
from its own list; reasoning_effort's levels; llm.profiles and
llm.routes left alone; switching back to the saved keys. Each claim is
from internal/agent/morph.go. Linked from each language's Grok App
page; in the sitemap, llms.txt and llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: Mister Morph itself with magpie for this page; it names
only what magpie's source says.
2026-11-12 18:46:53 +08:00
yetone 32412db655 site: a Grok App docs page in en, zh and ja
/docs/grok-app says how magpie sets up Grok App (RongleCat/grok-app):
the [model.magpie] channel in agent-home/config.toml under the App's
data folder, written as the App writes one, with magpie's own key, chat
completions and app_models carrying each model's context window, images
and efforts; why magpie never sets [models] default (the App would drop
its own sign-in) and Use in the App's Settings › Account is what
switches; the one-time put-back of a route an older magpie set; the
effort the picker starts on; where the data folder is found on each
system; disconnecting, which touches the route only while it names
magpie. Each claim is from internal/agent/grokapp.go. Linked from each
language's fx page; in the sitemap, llms.txt and llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: Grok App itself with magpie for this page; it names only
what magpie's source says.
2026-11-12 18:14:00 +08:00
yetone 727e236378 gateway: a management API for providers, accounts and gateway keys, for a key set to manage (ljayic on X)
ljayic asked for a complete, stable management API so nothing needs a
hand-edited file. /v1/magpie/admin/ now serves the app's own /api handlers
(providers and their keys and accounts, OAuth sign-in start/poll/cancel,
gateway keys, account groups) to a gateway key set with
`magpie gateway-key admin <id> local|any`. Routes and actions not in
gui/admin.go's adminRoutes are 404, so a provider's saved key, a gateway
key's secret, sign-in export and actions on this computer's apps are not
served; "admin-key" is not served either, so the API can't raise its own
caller. Sign-in returns the vendor's page and code, opens nothing, takes no
password.

Guard (gateway/admin.go), in order: any Origin or Sec-Fetch-Site/-Mode is
403 with or without a key (Origin null, foreign, listed, *.localhost, an
app scheme); no key 401; a key without Key.Admin 403; from loopback the Host
must be ownHost (a rebound page's GET has no Origin); from the network the
key must be "any"; a proxied request counts as remote. Key.Admin is dropped
(adminOf) for a read-only, Browser, issued, expiring or default key, and
setting read-only clears it. The route is in readOnlyRefused and keySlotFree.

Docs: docs/reference.md "Management API", gateway-routing.md, and the
remote page in en, zh and ja. Routing Groups, sign-in export and a GUI
switch for the level are left to #6307.

Run (mica, the worktree before the rebase onto 9 newer commits): go vet of
access, cli, gateway, gui (darwin), GOOS=windows vet of the same four,
GOOS=linux -tags nogui vet of access, cli, gateway; gofmt -l empty;
go test -count=1 -timeout 45m ./internal/access ./internal/cli
./internal/gateway ./internal/gui: all ok but TestKeySlotEveryRoute, which
named the new route and is fixed here, then it and the read-only, admin and
guard tests pass again. After the rebase the same tests ran again.
Broken by hand, each red in TestAdminAPIGuards: browser check off (a
browser case served), Admin check off (a key without it served), Host check
off (a rebound name served), the "any" requirement off (a local-only key
from the network served, and a proxied request).
Tests: TestAdminAPIGuards (no key, unknown key, non-admin, read-only,
local/any, x-api-key, 8 browser headers x 3 callers, rebound Host, proxy,
no handler), TestAdminKey (access: levels, read-only, Browser, issued),
TestGatewayKeyCLIAdmin, TestAdminAPIGatewayKeys / Providers (a canary key
is never told) / SignIn, TestAdminRoutesEveryAPIRoute.
Not tried: a real sign-in against a vendor through the API, a request from
a second computer on the LAN, the GUI suite (no page or app.js changed), a
Linux/Windows run of the new tests.
2026-11-12 17:47:11 +08:00
yetone 3f743d2cd7 site: an fx docs page in en, zh and ja
/docs/fx says how magpie sets up Vercel Labs' fx (fx.sh, not the JSON
viewer): found by ~/.fx, not the command; provider and models.magpie in
~/.fx/settings.json, with providers.magpie on openai-chat-completions at
the gateway's /v1 with auth none; no effort, as fx sends none to a
provider of the user's own; model_metadata capped at fx's 256 with the
model in use first, and no output limit that isn't below the context
window; reviewer_model and an omit tool_choice_mode kept, auth written
whole; the restart notice; switching back to the provider fx talks to
without magpie, Vercel's AI Gateway when unset. Each claim is from
internal/agent/fx.go. Linked from each language's Aside page; in the
sitemap, llms.txt and llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: fx itself with magpie for this page; it names only what
magpie's source says.
2026-11-12 17:40:14 +08:00
yetone ffe0dc49a3 site: an Aside docs page in en, zh and ja
/docs/aside says how magpie sets up Aside: providers.magpie in Pi's
format in each account's ~/.aside/u/<id>/models.json, with magpie's own
key for Aside, and why an entry with no key or another key is left
alone; the default model, thinking level, the fast, standard, deep and
visual modelCategories and imageGenerationModel set through Aside itself
(aside repl), then read back; which account is set up (picked in
magpie, else currentAccountId in accounts.json, else u0); switching back
to the saved value of each setting magpie changed. Each claim is from
internal/agent/aside.go, aside_account.go and aside_native.go. Linked
from each language's Ante page; in the sitemap, llms.txt and
llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: Aside itself with magpie for this page; it names only what
magpie's source says.
2026-11-12 17:06:11 +08:00
yetone c4f7ba9d3a update: only a release whose SHA256SUMS carries the release key's signature is installed (danny0dong on X)
The updater took a file and its SHA-256 from the same feed answer, so
whoever could change /api/latest could swap both; only the Mac app also
checked its signing team. Now release CI (yetone/magpie-releases) signs
"magpie release <version>\n" + SHA256SUMS with an ed25519 key held as that
repo's UPDATE_SIGNING_KEY secret and publishes SHA256SUMS.sig (release
assets: 16 -> 17). The site worker carries the list and signature in the
feed; internal/update/signed.go checks them against the public key built
into the binary, takes each file's hash from the signed list and refuses a
missing or bad signature or a feed hash that differs. Versions from
0.1.3862 require it; older ones and binaries older than the key update as
before. MAGPIE_UPDATE_FEED lifts the requirement for local test servers.
mirror-release waits for 17 assets; docs/reference.md and code-standards
say 17 and describe the transition.

Run: go test internal/update, internal/cli, internal/gui -run Update|WhatsNew
(ok); node --test site/*.test.mjs (116 ok); gofmt; go vet darwin, linux
nogui, windows on internal/update. Broken by hand: signature check skipped
(tamper and other-key tests red), feed-hash comparison skipped (swapped
hash and feed tests red), worker not attaching signed (worker test red).
The embedded key is checked against a sample signed by the real key with
openssl, as CI does. Signing script run against a throwaway key.
Not tried: a real signed release before this tag; install.sh does not
verify the signature.
2026-11-12 16:43:23 +08:00
yetone a5c3ea1aca site: an Ante docs page in en, zh and ja
/docs/ante says how magpie sets up Ante (antigma.ai): the magpie entry
in ~/.ante/catalog.json ($ANTE_HOME) at the gateway's /v1 on the
OpenAiCompatible wire style, with magpie's models in preferred_models;
why it has no auth block, and the user's own auth, http_headers and
extra_body kept in it; why support_vision is left alone and a routing
group gets no efforts; why provider and model in settings.json are set
too, since Ante's shipped providers come first in auto-detection; the
once-per-process read and the lenient parse; switching back to the saved
pair, with a choice made in Ante since left standing. Each claim is from
internal/agent/ante.go. Linked from each language's omp page; in the
sitemap, llms.txt and llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
115 pass, 0 fail.
Not tried: Ante itself with magpie for this page; it names only what
magpie's source says.
2026-11-12 16:31:18 +08:00
yetone 4121bebea6 site: an omp docs page in en, zh and ja
/docs/omp says how magpie sets up omp (oh-my-pi, a fork of Pi): each
role's model under modelRoles in ~/.omp/agent/config.yml as
magpie/<provider>/<model> with an optional :level (default, task, smol,
slow, plan, vision, advisor, commit, tiny, memory, and what each falls to
when unset); the keyless magpie provider in models.yml with each model's
window, cap, input, levels and cost (without which omp counts 0); max
only from omp 16.4.0; image models for the image role from 18.7.0; why
magpie/** joins an enabledModels list; each model on its native API;
profiles as omp#<name> and WSL; switching back from the stash, and the
provider kept while anything is on magpie. Each claim is from
internal/agent/omp.go and omp_scope.go. Linked from each language's
StepCode page; in the sitemap, llms.txt and llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
115 pass, 0 fail.
Not tried: omp itself with magpie for this page; it names only what
magpie's source says.
2026-11-12 15:58:35 +08:00
yetone f38ef9821b site: a StepCode docs page in en, zh and ja
/docs/stepcode says how magpie sets up StepCode (StepFun's step
command): defaultProvider and defaultModel in ~/.stepcode/config.toml
(or the folder above an absolute STEP_CODING_AGENT_DIR, renamed by
STEPCODE_CONFIG_DIR), written with the rest of the file kept;
providers.magpie in models.json (JSONC, Pi's provider format,
openai-completions), checked to be objects before a write; why magpie
appends its pick to an enabledModels scope and removes only what it
appended, and a renamed provider's entries moving with it; switching
back from the saved original provider, model, scope and providers.magpie
text, with files magpie made removed. Each claim is from
internal/agent/stepcode.go. Linked from each language's Avibe page; in
the sitemap, llms.txt and llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
115 pass, 0 fail.
Not tried: StepCode itself with magpie for this page; it names only what
magpie's source says.
2026-11-12 15:24:53 +08:00
yetone 2cf09b1940 site: an Avibe docs page in en, zh and ja
/docs/avibe says how magpie sets up Avibe (avibe-bot/avibe, the avibe-os
package and vibe CLI): magpie as one Model Hub source, serving Vibey and
the Claude Code, Codex and OpenCode it runs; the home ($AVIBE_HOME,
~/.avibe, ~/.vibe_remote before 3.0) and model_hub.sources; why a source
is added through Avibe's internal API (dispatch.sock, or endpoint.json's
port and token on Windows) and only while Avibe runs; the create_source
payload; the stashed id, a hand-added source at the gateway counted as
magpie's, and a moved gateway's source made again; why openai_chat
rather than Responses; the model list from /v1/models and the refresh on
a change; removing it, confirmed with what Avibe listed. Each claim is
from internal/agent/avibe.go. Linked from each language's MothX page; in
the sitemap, llms.txt and llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
115 pass, 0 fail.
Not tried: Avibe itself with magpie for this page; it names only what
magpie's source says.
2026-11-12 14:50:52 +08:00
yetone 9892f68fef site: a MothX docs page in en, zh and ja
/docs/mothx says how magpie sets up MothX (oschina/mothx, formerly
vibecoding): settings.json in $MOTHX_DIR, %APPDATA%\mothx on Windows or
~/.mothx; defaultProvider and defaultModel set to magpie's, and
providers.magpie with the gateway's /v1 on openai-chat, magpie's key,
thinkingFormat openai and one entry per model (reasoning, input, window,
reply cap, cost); headers or an httpProxy the user added kept, and a
thinkingFormat already there; defaultThinkingLevel and the levels
offered; why thinkingFormat openai (MothX otherwise guesses the vendor
from the id); MothX in a WSL distro; restarting, with the notice for a
running mothx or vibecoding; switching back, the file put back byte for
byte when it says the same as before. Each claim is from
internal/agent/mothx.go. Linked from each language's PenguinHarness page;
in the sitemap, llms.txt and llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
115 pass, 0 fail.
Not tried: MothX itself with magpie for this page; it names only what
magpie's source says.
2026-11-12 14:17:46 +08:00
yetone 613e177b6b site: a PenguinHarness docs page in en, zh and ja
/docs/penguin says how magpie sets up PenguinHarness
(Prism-Shadow/penguin-harness, the penguin CLI and desktop app):
.project_config.toml under $PENGUIN_HOME or ~/.penguin/data, in the
Project $PENGUIN_PROJECT_ID or default_project; default_model set to
magpie's pair, [providers.magpie] with the gateway's /v1, the
openai-responses client (reasoning.effort carried) and magpie's key, and
one [[models]] entry per model with name, window, reply cap, vision and
price; entries written before the default and taken out after it; a file
magpie makes kept 0600; Penguin in a WSL distro; no restart, since the
server reads the file again on an mtime change; switching back to the
stashed default when Penguin still has it, a magpie vision_model taken
out, and a file magpie made removed once empty. Each claim is from
internal/agent/penguin.go. Linked from each language's Paimon page; in
the sitemap, llms.txt and llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
115 pass, 0 fail.
Not tried: PenguinHarness itself with magpie for this page; it names only
what magpie's source says.
2026-11-12 13:44:22 +08:00