A user typed keys made under several OpenCode accounts into Zen Free's key field and expected several accounts. The method's authorize() always returns key "public", and magpie's host stores result.key over the typed key (host.js save), so every such sign-in is the same shared credential and the typed key is dropped. The label and README now say so and point own keys to magpie's built-in OpenCode Zen provider (several keys, rotation and failover). Run: bun test in packages/zen-free, 174 pass 0 fail. Read host.js apiKey/save on magpie 63be47717 to confirm the stored key is "public". Not tried: a sign-in through magpie's GUI with the new label.
14 lines
683 B
JSON
14 lines
683 B
JSON
{
|
|
"name": "@magpie-community/opencode-zen-free-auth",
|
|
"version": "0.1.10",
|
|
"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 }
|
|
}
|