provider: moved Command Code users get plugin 0.1.12, whose model list follows the account's plan (01huadalang on Discord)
Command Code 0.1.12 (magpie-community/plugins 49e9d89): Command Code's model list is the same for every plan, and the plugin filtered only Go's, by the CLI 1.73.0 table, which lacked Claude Haiku 5.5. So a Go account was shown a model only GOAT and above may use, and GOAT, Pro and Provider accounts every model, those their plan refuses included. Each plan's list now leaves out what the CLI 1.79.2's table refuses it; a plan that can't be read, or an account with bought or free credits, keeps the whole list, and a refused model still reaches the agent as Command Code's MODEL_NOT_IN_PLAN. Only the mover's min string and its note change. 0.1.12 was checked on npm with npm view. Ran: gofmt -l internal/provider, go vet ./internal/provider on darwin, linux and windows, and go test ./internal/provider -run 'Mov|Migrat' (ok, 8.6s). The full suite was not run, as this is a one-string change.
This commit is contained in:
@@ -150,7 +150,7 @@ func init() {
|
||||
|
||||
movers[CommandCodePlanID] = &mover{
|
||||
pkg: "@magpie-community/opencode-commandcode-auth",
|
||||
min: "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.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
|
||||
|
||||
Reference in New Issue
Block a user