From 5b267fbd8effc72364678482dfc8310b98f79192 Mon Sep 17 00:00:00 2001 From: yetone Date: Mon, 19 Oct 2026 18:39:35 +0800 Subject: [PATCH] provider: moved Command Code accounts take plugin 0.1.14, which can ask for Zero Data Retention (plugins #246) Raises the commandcode-plan mover's min from 0.1.13 to 0.1.14 so keepMovedCurrent updates every moved user. 0.1.14 (plugins 5f101a5) adds a "Zero Data Retention" switch (auth.options), off by default, and honours CMD_ZDR=1. While it is on, the Provider API and Go's /alpha/generate requests carry x-cmd-zdr: 1, as the CLI sends it. A model with no ZDR upstream reaches the agent as Command Code refused it: a 422 cmd_zdr_no_providers on the Provider API, a 400 typed cmd_zdr_no_providers on /alpha/generate. 0.1.14 is on npm: npm view --prefer-online @magpie-community/opencode-commandcode-auth version says 0.1.14. The publish run 39237235562 published it. That run is red only for middleware-think-tags's trusted publisher (plugins #180). Run: gofmt -l internal/provider (clean); go vet ./internal/provider/ on darwin, GOOS=linux and GOOS=windows (ok); go test -timeout 45m ./internal/provider/ (ok, 431s). The full suite was not run: only the mover's min string changed. Not tried: the switch in a running magpie's editor. --- internal/provider/migrate_side.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/provider/migrate_side.go b/internal/provider/migrate_side.go index b79353b07..d27fe164d 100644 --- a/internal/provider/migrate_side.go +++ b/internal/provider/migrate_side.go @@ -139,7 +139,7 @@ func init() { movers[CommandCodePlanID] = &mover{ pkg: "@magpie-community/opencode-commandcode-auth", - min: "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.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