provider: a moved Devin gets plugin 0.1.16, where SWE-2 isn't held by a used-up quota

太陽と向日葵 on magpie's Discord: SWE-2 is free, but with the Devin
account's quota used up magpie said so and didn't route SWE-2 to it,
while a model test worked. The plugin's "1 day" and "7 days" windows
named no models, so a full window held the account for every model.
@magpie-community/opencode-devin-auth 0.1.16 (plugins cff78b3) reads
Devin's model_cost_tier from GetCliModelConfigs: SWE-2's variants are its
Free tier, the only ones of 262. It gives the day and week windows
notModels with their ids (quotaOfPlugin's idSet then leaves them out) and
lists them free: true (catalog Free, so PaidBesideFree rests only a paid
model on a quota refusal). Raising the mover's min updates moved users.

Run: gofmt -l; go vet for darwin, GOOS=linux -tags nogui and
GOOS=windows on internal/provider; go test -timeout 30m ./internal/provider
in a sandbox HOME, ok in 691s (the default 10m timed out at load average
~300, other sessions' test binaries running). npm view
@magpie-community/opencode-devin-auth@0.1.16 --registry
https://registry.npmjs.org --prefer-online returns 0.1.16. Not tried: an
account with its quota really used up, nor the moved plugin end to end
through a gateway.
This commit is contained in:
yetone
2026-10-14 17:40:07 +08:00
parent 7d4ad7c628
commit 50929661fe
+1 -1
View File
@@ -18,7 +18,7 @@ import (
func init() {
movers["devin"] = &mover{
pkg: "@magpie-community/opencode-devin-auth",
min: "0.1.14", // 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 (面条)
min: "0.1.16", // 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 (太陽と向日葵)
agents: []string{"devin"},
// a variant picked before the families were one model (swe-2-high)
// goes to Devin as it is, through the plugin too, which keeps the