provider: the ZCode mover's min is 0.1.38, freeFirst spends a dual account's gift first (plugins#505)
Plugin 0.1.38 (magpie-community/plugins 5a9c776, jinpy666's #505) adds freeFirst, an option off by default (Plugins › Options, or provider.zcode.options): a plain model request on an account with a GLM Coding Plan and a live gift spends the gift first, under the name the gift lists, and any gift failure (spent, block page, 4xx/5xx, its busy cap waited out, a network throw) is replayed on the coding plan in the same request; a caller's abort stays an abort. keepMovedCurrent brings every moved ZCode user to it. Run (on mote, worktree at origin/main + this change): `go test -timeout 45m ./internal/provider/` ok; `go vet`, GOOS=linux and GOOS=windows `go vet` of ./internal/provider/ ok; gofmt -l clean. `npm view @magpie-community/opencode-zcode-auth version --prefer-online --registry=https://registry.npmjs.org/` says 0.1.38. The plugin's own review (zcode tests 173 pass, check.mjs ok, abort guard broken by hand red) is in #505. Not tried: freeFirst against a real dual account; the plugin's tests run against a fetch fake.
This commit is contained in:
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user