From e9dd8e83ace4e07b605e39b0d3fb50b5150bdeb0 Mon Sep 17 00:00:00 2001 From: yetone Date: Wed, 28 Oct 2026 13:26:17 +0800 Subject: [PATCH] provider: Devin's mover min is 0.1.25, a typed anyOf goes to its Gemini models in a shape they take (plugins#458) Kimi Code's Read (line_offset: anyOf of two integers) made every devin/gemini-4-argon request 400. The gateway's geminiToolTypes writes the type the branches agree on beside an untyped anyOf, and Devin's Gemini models refuse {type, anyOf} below a tool's root. The plugin's geminiSchema now merges such an anyOf or sends it as a oneOf (magpie-community/plugins 2c30818). npm view --prefer-online shows 0.1.25. Run (mote): go build -tags nogui ./..., go vet ./internal/provider, go test -run "Mover|Moved|Migrat|Min" ./internal/provider: ok. gofmt -l clean. The plugin change was checked against a real Devin account (gemini-4-argon: the typed shapes 400 on 0.1.24, all 17 probe shapes 200 on 0.1.25). Not run: full suite. Not changed: geminiToolTypes itself still writes a type beside an anyOf; Devin's plugin is the only server seen refusing it. --- 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 b0188a46c..f4b44b969 100644 --- a/internal/provider/migrate_side.go +++ b/internal/provider/migrate_side.go @@ -17,7 +17,7 @@ import ( func init() { movers["devin"] = &mover{ pkg: "@magpie-community/opencode-devin-auth", - min: "0.1.24", // the CLI's sign-in keeps its "cli" mark as the string OpenCode stores, so OpenCode 1 keeps the account (plugins #396); 0.1.23: a reply with only usage or metadata is refused before the stream starts, not passed on as an empty success (plugins #297); 0.1.22: organisations under one email are kept apart, each with its own quota (plugins #296); 0.1.21: a chat request past 8 KiB goes as a gzipped Connect frame, as the devin CLI sends it, where an uncompressed large one could be refused 413 (plugins #275); 0.1.20: a tool result's images go to Devin on the tool message that answers the call, as the built-in sent them; 0.1.19: Devin answers in JSON when the request asks for it (response_format into the instructions, as the built-in); 0.1.18: a tool whose parameters have a root anyOf, oneOf or allOf goes as a plain object (#1196), a branch that is a union itself folded too (#1271); a turn's parallel calls split over two assistant messages keep their results (#1275); a temperature or top_p of 0 goes as 1e-6, which Devin takes (plugins #50); a call id with ":" or "#" goes to the agent as one Claude Code takes, and back to Devin as it was (#1304); a week used up, its share left out of GetUserStatus, is 100% and holds the account until its reset (面条); SWE-2, which Devin's quota doesn't count (its Free cost tier), is left out of the day and week and listed free, so a used-up quota no longer holds it (太陽と向日葵); a tool schema with a list type, an array with no items, or properties or an enum with no type goes to a Gemini model in a shape it takes, not "There is an issue with this request" (7eleven); each model carries the price Devin lists for it, and SWE-2 stays free beside the -lightning variants Devin now files under it (太陽と向日葵, Usage showed no cost) + min: "0.1.25", // an anyOf beside a type below a tool's root (what the gateway writes for a Gemini model) goes to Devin's Gemini models merged or as a oneOf, so Kimi Code's Read no longer 400s (plugins #458); 0.1.24: the CLI's sign-in keeps its "cli" mark as the string OpenCode stores, so OpenCode 1 keeps the account (plugins #396); 0.1.23: a reply with only usage or metadata is refused before the stream starts, not passed on as an empty success (plugins #297); 0.1.22: organisations under one email are kept apart, each with its own quota (plugins #296); 0.1.21: a chat request past 8 KiB goes as a gzipped Connect frame, as the devin CLI sends it, where an uncompressed large one could be refused 413 (plugins #275); 0.1.20: a tool result's images go to Devin on the tool message that answers the call, as the built-in sent them; 0.1.19: Devin answers in JSON when the request asks for it (response_format into the instructions, as the built-in); 0.1.18: a tool whose parameters have a root anyOf, oneOf or allOf goes as a plain object (#1196), a branch that is a union itself folded too (#1271); a turn's parallel calls split over two assistant messages keep their results (#1275); a temperature or top_p of 0 goes as 1e-6, which Devin takes (plugins #50); a call id with ":" or "#" goes to the agent as one Claude Code takes, and back to Devin as it was (#1304); a week used up, its share left out of GetUserStatus, is 100% and holds the account until its reset (面条); SWE-2, which Devin's quota doesn't count (its Free cost tier), is left out of the day and week and listed free, so a used-up quota no longer holds it (太陽と向日葵); a tool schema with a list type, an array with no items, or properties or an enum with no type goes to a Gemini model in a shape it takes, not "There is an issue with this request" (7eleven); each model carries the price Devin lists for it, and SWE-2 stays free beside the -lightning variants Devin now files under it (太陽と向日葵, Usage showed no cost) agents: []string{"devin"}, out: func() ([]Moving, error) { var out []Moving