Files
plugins/packages/cloudflare-workers-ai/package.json
T
yetone b6a996478f cloudflare-workers-ai 0.0.6: provider.models keeps the fell-back mark of a list kept after a failed read
discovery.forDisplay marks the kept list, but the (Paid) renaming rebuilt it with Object.fromEntries and lost the mark.

Archivemylife on X (agy-cli): "配置后报存提示成功,再打开还是全部都启用".
The same class as agy-cli 0.1.61: a list that isn't the account's own,
handed back as if it were, makes magpie relist on it and drop the models
the user picked that aren't in it. Marked with
Symbol.for("magpie.fellBack"), magpie's plugin host keeps the last good
list (keepListed) and the picks.

Run (mote-run, HOME=mktemp -d): node --test 24 pass on this change: all pass.
Red on the old code with the new test: "provider.models after a failed read keeps the fell-back mark" fails.
Not tried: a real account.

Plugins root bun test (HOME=mktemp -d) at this head, rebased on 13a6f4c2,
on Linux (wsl-run, magpie-desktop), covering the five commits above
and agy-cli 0.1.61: 8775 pass, 0 fail.
2026-11-15 14:10:25 +08:00

46 lines
1.0 KiB
JSON

{
"name": "@magpie-community/opencode-cloudflare-workers-ai-auth",
"version": "0.0.6",
"private": false,
"type": "module",
"main": "./opencode.mjs",
"exports": { ".": "./opencode2.mjs" },
"description": "Cloudflare Workers AI provider plugin for Magpie with template URL and auto model discovery from models.dev",
"keywords": [
"opencode",
"opencode-plugin",
"magpie",
"cloudflare",
"workers-ai",
"provider",
"template"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/magpie-community/plugins.git",
"directory": "packages/cloudflare-workers-ai"
},
"files": [
"index.mjs",
"opencode.mjs",
"opencode2.mjs",
"src/",
"README.md",
"README.zh-CN.md",
"README.ja.md",
"LICENSE"
],
"scripts": {
"test": "node --test",
"check": "node --check index.mjs && node --test"
},
"engines": {
"node": ">=20"
},
"magpie": {
"maxConcurrency": 3,
"icon": "https://www.cloudflare.com/favicon.ico"
}
}