Files
plugins/packages/cloudflare-workers-ai/package.json
T
Guislabert dbcd4e9464 add cloudflare-workers-ai: Cloudflare Workers AI provider plugin (#326)
New community provider plugin @magpie-community/opencode-cloudflare-workers-ai-auth 0.0.1 (Guislabert): signs in to Cloudflare Workers AI with an API token and Account ID, lists the models models.dev has under cloudflare-workers-ai, marks the 8 paid-only models "(Paid)", and adds a Neurons/day quota row. registry.json gains its one entry.

Run at the reviewed head 84b3aaf (based on origin/main):
- bun scripts/check.mjs cloudflare-workers-ai: ok
- node --test in the package under a temp HOME: 12 of 12 pass
- models.dev outage repro (stubbed fetch, discoveryTTLMs 1, catalog reachable then down): the second request still goes out ("down: sent 2"). At 6e9fd73 it failed; review asked for this.
- registry.json diff against main: the one new entry only

Not tried: a real Cloudflare account; no request reached Cloudflare.
2026-10-23 07:08:14 +08:00

42 lines
907 B
JSON

{
"name": "@magpie-community/opencode-cloudflare-workers-ai-auth",
"version": "0.0.1",
"private": false,
"type": "module",
"main": "./index.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",
"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
}
}