provider: the Qoder mover's min is 0.2.56, which signs in to a Lingma 1.0 dedicated domain (Milktea)
Milktea (Discord) couldn't sign in to their Qoder CN IDE enterprise dedicated domain (企业专属域). Their domain answers 404 at /algo/api/v1/version, which makes it a Lingma 1.0 one, and 0.2.53 refused those. In plugins a16adb3, @magpie-community/opencode-qoder-auth 0.2.56: - signs in with the account Qoder CN IDE already holds on this computer (SharedClientCache's cache/id and cache/user, the shapes from Milktea's gist); - chats on the domain itself, as the IDE's worker signs it; - uses the IDE's three models, falling through when one gets "Model not exist"; - reads the IDE's renewed token again when it is near its end or gets a 105. Raising min makes keepMovedCurrent update every moved Qoder user. npm view --prefer-online @magpie-community/opencode-qoder-auth version returned 0.2.56 before this commit. Run at this head (mote): gofmt -l internal/provider is clean. GOOS=linux and GOOS=windows go vet ./internal/provider pass. go test -tags nogui ./internal/provider: ok (104.6s). In the plugin, packages/qoder bun test: 375 pass, and the 11 new Lingma tests are red on 0.2.55. Broken by hand (in the plugin): keeping Cosy-Scene and Cosy-Business-*, or reading past an error said in an OK frame, turns 2 of the 11 red. Not tried: - A real Lingma dedicated domain or a real Qoder CN IDE cache. No such account is at hand, so Milktea is asked to try it. - A move with this min in a sandbox (only the min changed).
This commit is contained in:
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user