provider: Command Code's mover min is 0.1.20, the month in credits (plugins#556)

opencode-commandcode-auth 0.1.20 (npm view --prefer-online: 0.1.20,
plugins 622f950): a Go, GOAT or Pro account's Credits window says the
month in credits, the usage-value units Command Code counts those plans
in ("0.20 / 70.00 credits"; GOAT's 70 credits are its "up to $100"),
with bought and free credits said beside it, and a Provider account,
pay as you go, shows its balance instead of a $15 month. Raising the
min makes keepMovedCurrent update every moved Command Code user.

Run (mote, at this tree on 1e15a7a3b): go test -timeout 45m ./internal/provider:
ok (158.7s). gofmt -l: clean.

Not tried: a live Command Code account (both keys here are answered 401).
This commit is contained in:
yetone
2026-10-31 17:23:56 +08:00
parent 1e15a7a3b9
commit bb5e68ceac
+1 -1
View File
@@ -139,7 +139,7 @@ func init() {
movers[CommandCodePlanID] = &mover{
pkg: "@magpie-community/opencode-commandcode-auth",
min: "0.1.19", // 0.1.19: a key Command Code refuses (a 401 or 403 that /alpha/whoami confirms) marks the account signed out, on a usage read and on a request's answer, so it is passed over and its row offers Sign in again, and a clean usage read takes the mark off (blue12345655 on Discord); 0.1.18: Jev (typesafe/jev), Command Code's decision model, which its model list doesn't name, is listed and marked as one, and its questions go to /provider/v1/systemone as command-code 1.88.2 asks them, so it can be a group's classifier and answer /v1/systemone (joeliu96872540 on X); 0.1.17: a plan account's Credits window goes second, after its 5 hours, so the account line and the menu bar, which show two windows, show the dollars left (01huadalang on Discord); 0.1.16: the Go catalog goes with the CLI's own User-Agent and /alpha/generate with the working folder's slug, as command-code 1.88.0 sends them, not "magpie" (plugins #352); 0.1.15: DeepSeek V4 Pro, V4 Flash, V4 Flash Vision, V4.1 Flash and V4.1 Flash Fast offer an off level, sent to the Provider API as reasoning_effort "off" (plugins #334); 0.1.14: a Zero Data Retention switch (or CMD_ZDR=1) sends x-cmd-zdr: 1 on the Provider API and /alpha/generate, as the CLI does (plugins #246); 0.1.13: the Credits window resets at the plan's period end (#2454); the models the built-in counted free are marked free; max_tokens capped at 200,000 as the built-in; 0.1.12: each plan lists only the models its plan may use, as the CLI's table has it, so a Go account no longer lists GOAT's (plugins 49e9d89, 01huadalang on Discord); 0.1.11: a streamed Go reply the upstream cuts off after it has said something ends cut short with a note, not a lost turn (plugins #91); 0.1.10: a Go request says the agent's folder and git repository as magpie tells them, not the home's (plugins #86); 0.1.9: a Go key the Provider API refuses is taken as Go's and asked at /alpha/generate (#969); a failure's status and its sign-in mark as the built-in's; a Go account lists Go's models; a model the plugin doesn't know takes pictures as models.dev says
min: "0.1.20", // 0.1.20: a Go, GOAT or Pro account's Credits window says the month in credits, the usage-value units Command Code counts those plans in ("0.20 / 70.00 credits", GOAT's 70 being its "up to $100"), not as dollars, with bought and free credits said beside it; a Provider account, pay as you go, shows its balance, not a $15 month (plugins #556, NeuroPaw); 0.1.19: a key Command Code refuses (a 401 or 403 that /alpha/whoami confirms) marks the account signed out, on a usage read and on a request's answer, so it is passed over and its row offers Sign in again, and a clean usage read takes the mark off (blue12345655 on Discord); 0.1.18: Jev (typesafe/jev), Command Code's decision model, which its model list doesn't name, is listed and marked as one, and its questions go to /provider/v1/systemone as command-code 1.88.2 asks them, so it can be a group's classifier and answer /v1/systemone (joeliu96872540 on X); 0.1.17: a plan account's Credits window goes second, after its 5 hours, so the account line and the menu bar, which show two windows, show the dollars left (01huadalang on Discord); 0.1.16: the Go catalog goes with the CLI's own User-Agent and /alpha/generate with the working folder's slug, as command-code 1.88.0 sends them, not "magpie" (plugins #352); 0.1.15: DeepSeek V4 Pro, V4 Flash, V4 Flash Vision, V4.1 Flash and V4.1 Flash Fast offer an off level, sent to the Provider API as reasoning_effort "off" (plugins #334); 0.1.14: a Zero Data Retention switch (or CMD_ZDR=1) sends x-cmd-zdr: 1 on the Provider API and /alpha/generate, as the CLI does (plugins #246); 0.1.13: the Credits window resets at the plan's period end (#2454); the models the built-in counted free are marked free; max_tokens capped at 200,000 as the built-in; 0.1.12: each plan lists only the models its plan may use, as the CLI's table has it, so a Go account no longer lists GOAT's (plugins 49e9d89, 01huadalang on Discord); 0.1.11: a streamed Go reply the upstream cuts off after it has said something ends cut short with a note, not a lost turn (plugins #91); 0.1.10: a Go request says the agent's folder and git repository as magpie tells them, not the home's (plugins #86); 0.1.9: a Go key the Provider API refuses is taken as Go's and asked at /alpha/generate (#969); a failure's status and its sign-in mark as the built-in's; a Go account lists Go's models; a model the plugin doesn't know takes pictures as models.dev says
agents: []string{CommandCodePlanID},
out: func() ([]Moving, error) {
var out []Moving