cli: magpie --help lists plugin move|migrate and move-back|unmigrate (记得把整套迁移逻辑做得丝滑优雅精致优美简单方便易用) — the commands existed but only magpie plugin help named them, and without their other names. go build -tags nogui passes.

This commit is contained in:
yetone
2026-10-01 11:15:24 +08:00
parent 77c2ad12fa
commit f9e5c8dfe6
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -77,6 +77,8 @@ const usage = `magpie — one place to pick every agent's model
magpie accounts project <gemini|antigravity> <email> <project> the Google Cloud project a Google account's requests go to
magpie plugin [add <package>|rm|update|on|off|login <provider>|logout <provider>]
OpenCode provider plugins: subscriptions signed in to, and served, through a plugin
magpie plugin move|migrate <subscription> run a built-in subscription's accounts on its community plugin
magpie plugin move-back|unmigrate <subscription> go back to the built-in, with its accounts
magpie serve run the gateway alone (the app runs it too)
magpie mcp image the image and video generation MCP server an agent is given from the library (stdio)
+2 -2
View File
@@ -22,8 +22,8 @@ const pluginUsage = `usage: magpie plugin [list] [--json]
magpie plugin on|off <name> turn one on or off
magpie plugin login <provider> [<method>] sign in to a provider a plugin adds
magpie plugin logout <provider> forget the sign-in
magpie plugin move <subscription> run a built-in subscription's accounts on its community plugin
magpie plugin move-back <subscription> go back to the built-in`
magpie plugin move|migrate <subscription> run a built-in subscription's accounts on its community plugin
magpie plugin move-back|unmigrate <subscription> go back to the built-in, with its accounts`
// pluginCmd: `magpie plugin …` — OpenCode's provider plugins, which sign in
// to a subscription and carry its requests (internal/plugin).