From 63ad2b7c76ef57a02d3ca025a760a9d610ae5b74 Mon Sep 17 00:00:00 2001 From: yetone Date: Wed, 14 Oct 2026 15:50:26 +0800 Subject: [PATCH] provider: a moved ZCode updates to plugin 0.1.18, which reads ZCode 3.15's plan key from config.json (#2130) Plugin zcode 0.1.18 (magpie-community/plugins 5c0aebc, on npm) gives moved users the built-in's 1d8e83a79 fix. ZCode 3.15 keeps the GLM Coding Plan key only in config.json's provider options.apiKey, so a valid plan read as "no plan, Start Plan ended". keepMovedCurrent now updates every moved ZCode user to it. Run: npm view @magpie-community/opencode-zcode-auth@0.1.18 resolves; gofmt -l; go vet for darwin, linux (nogui) and windows; go test ./internal/provider/ -run 'Move|Migrat|Plugin|ZCode' passes. --- internal/provider/migrate_zcode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/provider/migrate_zcode.go b/internal/provider/migrate_zcode.go index c16ae3d0d..dc2f70952 100644 --- a/internal/provider/migrate_zcode.go +++ b/internal/provider/migrate_zcode.go @@ -21,7 +21,7 @@ import ( func init() { movers["zcode"] = &mover{ pkg: "@magpie-community/opencode-zcode-auth", - min: "0.1.17", // the ZCode app's sign-in reads credentials.json from the folder ZCode's data was moved to in its settings (数据存储路径, dataBaseDir in the home folder's setting.json), as the built-in does since 41972b25f (flower on Discord); 0.1.16's ZCode app's sign-in follows ZCode only while it is signed in to the same account, so an entry added for one account never sends with another's credentials after ZCode switched (LingYi_Stu on X); 0.1.15's Start Plan request says the agent's folder and git repository as magpie tells them, never magpie's own folder, and leaves out what it doesn't know (plugins #86); 0.1.14's gift-only account lists its gift's models by their own names, as ZCode does, so a Start Plan GLM-5.3 bucket's model is listed as GLM-5.3, not only GLM-5.3-Trial (#1261, plugins aca7c59); 0.1.13's claim line has one fixed name, which the GUI translates, so it no longer shares the "ZCode Trust Build" bucket window's name (plugins #43); 0.1.12's counted window carries its amount and limit, so the card's count follows used/left (#659, plugins #35); 0.1.11's gift plan ZCode holds but hasn't granted is named on the card, to claim in the ZCode app (plugins #30, #1001); 0.1.10's gift-only buckets and 0.1.9's trial entries (plugins #21) kept + min: "0.1.18", // the ZCode app's sign-in reads ZCode 3.15's GLM Coding Plan key from config.json (provider["builtin:*-coding-plan"].options.apiKey), so a valid plan no longer reads as "no plan", as the built-in does since 1d8e83a79 (#2130); 0.1.17: the ZCode app's sign-in reads credentials.json from the folder ZCode's data was moved to in its settings (数据存储路径, dataBaseDir in the home folder's setting.json), as the built-in does since 41972b25f (flower on Discord); 0.1.16's ZCode app's sign-in follows ZCode only while it is signed in to the same account, so an entry added for one account never sends with another's credentials after ZCode switched (LingYi_Stu on X); 0.1.15's Start Plan request says the agent's folder and git repository as magpie tells them, never magpie's own folder, and leaves out what it doesn't know (plugins #86); 0.1.14's gift-only account lists its gift's models by their own names, as ZCode does, so a Start Plan GLM-5.3 bucket's model is listed as GLM-5.3, not only GLM-5.3-Trial (#1261, plugins aca7c59); 0.1.13's claim line has one fixed name, which the GUI translates, so it no longer shares the "ZCode Trust Build" bucket window's name (plugins #43); 0.1.12's counted window carries its amount and limit, so the card's count follows used/left (#659, plugins #35); 0.1.11's gift plan ZCode holds but hasn't granted is named on the card, to claim in the ZCode app (plugins #30, #1001); 0.1.10's gift-only buckets and 0.1.9's trial entries (plugins #21) kept agents: []string{"zcode"}, // the built-in never served GLM-5.3 to a Start Plan account, so // its pick is no loss when the plugin doesn't list it (the plugin