Files
plugins/packages/cline/package.json
T
yetone 7a74416a4d cline 0.1.10: pinUpstream pins glm-5.3-flash through OpenRouter's provider.only (sdytman on Discord)
The plugin's side of magpie d2c434b5a. Cline sends glm-5.3-flash through
OpenRouter directly, not Vercel's AI Gateway, and OpenRouter ignores
providerOptions.gateway.only, so pinned() gave it ["zai"] where nothing
reads it. OpenRouter reads a top-level provider.only with its own slug,
"z-ai" for Z.AI. MAKERS is now magpie's clineMakers table: glm-5.3-flash
by exact name -> provider.only ["z-ai"]; deepseek* -> providerOptions
["deepseek"] (deepseek-v4.1-flash and -1017 go through Vercel); glm* ->
providerOptions ["zai"] (glm-5.3-flashx, glm-5.3 stay there). pinned()
returns {upstream, openRouter} or null. pinBody appends the field at the
body's end so the cached prefix is unchanged, and leaves a body naming
provider or providerOptions itself as sent.

Tests: "pinBody pins glm-5.3-flash by OpenRouter's provider.only" and the
loader test now sending glm-5.3-flash; both red on the old index.mjs
(providerOptions zai, no provider), green with the change. Not tried with
a real ClinePass request: no account here.

Run on origin/main 6fd976a: TMPDIR=<scratch> HOME=<scratch>/home bun test
(whole repo) 1919 pass 0 fail across 173 files; bun scripts/check.mjs ok.
2026-10-21 01:52:44 +08:00

13 lines
550 B
JSON

{
"name": "@magpie-community/opencode-cline-auth",
"version": "0.1.10",
"description": "Cline (cline.bot) on your own account — usage billing, ClinePass and the free models — in OpenCode and magpie",
"type": "module",
"main": "./index.mjs",
"exports": "./index.mjs",
"files": ["index.mjs", "README.md"],
"keywords": ["opencode", "opencode-plugin", "magpie", "cline", "clinepass"],
"license": "MIT",
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/cline" }
}