The reporter, on 0.1.7 with the public key, saw only Big Pickle, Space Bunny Free and Muse Spark 1.3 Free: the three models the plugin knows offline. Two causes: - DOCS pointed at packages/web/src/content/docs/zen.mdx, which OpenCode removed on 2026-10-12 (anomalyco/opencode#54761, "replace old Zen and Go pages with V2 console docs"). It answers 404, so every discovery since was partial. The endpoint table now lives in services/www/src/docs/content/console/models.mdx; parseProtocolDocs reads its rows as they are. - A listed model the catalog (models.opencode.ai) didn't describe and the docs didn't name was left out. When the catalog can't be read, that is every listed model but the three in bootstrapProvider, which is the reporter's list exactly. bootstrapProtocols is now a snapshot of the console docs' free rows (2026-10-15), used under whatever the docs say, and bootstrapProvider gains the catalog's metadata for Cat Jam, Step 5 Preview, LongCat 2.5 Preview, MiMo-V2.6-Flash and Nemotron 3.5 Lightning Free. Not changed, on purpose: jev-1.13-free is a SystemOne decision model (docs: endpoint /v1/systemone, no AI SDK package), which can't answer a chat, so it stays out as SystemOne models always have. exo-free is "deprecated" in the catalog and not in Zen's /models list now. Tests (no network; the fixture server): "listed free models are offered when the catalog and the docs can't be read" (catalog 503, docs 404, listing big-pickle, step-5-preview-free, cat-jam-free, jev-1.13-free, paid -> the three free chat models only) and "reads the console docs' endpoint table, and Jev stays out as SystemOne" (literal rows from the new page). Both fail on 0.1.7's models.mjs/provider.mjs (2 fail, 170 pass) and pass with the change; bun test: 172 pass. bun scripts/check.mjs ok. Real use (live Zen, public key, this checkout): discovery now lists big-pickle cat-jam-free longcat-2.5-preview-free mimo-v2.6-flash-free muse-spark-1.3-contributor-free nemotron-3.5-lightning-free space-bunny-free step-5-preview-free, not fallen back (0.1.7: the same eight with the docs 404 marking it partial). A request to cat-jam-free through the plugin's fetch streamed 200; step-5-preview-free answered Zen's own 429 "Upstream request failed: Endpoint is unavailable." twice. The reporter's catalog failure itself wasn't reproduced from here.
14 lines
682 B
JSON
14 lines
682 B
JSON
{
|
|
"name": "@magpie-community/opencode-zen-free-auth",
|
|
"version": "0.1.8",
|
|
"description": "OpenCode Zen free models through the public credential, with native streaming protocols",
|
|
"type": "module",
|
|
"main": "./index.mjs",
|
|
"files": ["index.mjs", "provider.mjs", "models.mjs", "stream.mjs", "tool-response.mjs", "README.md", "LICENSE"],
|
|
"keywords": ["opencode", "opencode-plugin", "zen", "free", "magpie"],
|
|
"license": "MIT",
|
|
"repository": { "type": "git", "url": "https://github.com/magpie-community/plugins", "directory": "packages/zen-free" },
|
|
"scripts": { "test": "bun test" },
|
|
"magpie": { "icon": "https://opencode.ai/favicon-v3.ico", "maxConcurrency": 2 }
|
|
}
|