provider: Kiro's mover min is 0.1.15, so a Kiro API key is used as kiro-cli uses it (Hollowhere on Discord)

Hollowhere (magpie 0.1.1319, kiro-cli 2.33.1) signed in to Kiro with an
API key: /v1/models listed kiro/auto alone, and every request failed with
"Kiro didn't take the API key: 400 Bad Request", while kiro-cli served the
same key. The Kiro plugin asked GetProfile in us-east-1 only and stopped
at its 400. Plugin 0.1.15 (magpie-community/plugins 2039678) asks it in
us-east-1 then eu-central-1 as kiro-cli does, goes on in us-east-1 when
none answers, lists the key's models with the control plane's
ListAvailableModels, reads its credits with GetUsageLimits, and names no
profile in its calls, as traced from kiro-cli 2.32.0 with a made-up key
against a local recorder. keepMovedCurrent brings every moved user's
plugin up to it.

npm view @magpie-community/opencode-kiro-auth version --prefer-online:
0.1.15 at the time of this change.

Run at 240f3eb4c (origin/main) plus this change: gofmt -l
internal/provider (clean); go vet ./... (darwin), GOOS=linux go vet
-tags nogui ./..., GOOS=windows go vet ./... (all clean);
go test -timeout 45m ./internal/provider/... ok (145.7s).

Not tried: no real Kiro API key was tried, here or in the plugin; no
real move of a Kiro account onto 0.1.15.
This commit is contained in:
yetone
2026-10-22 20:09:44 +08:00
parent 240f3eb4c5
commit 802fb6e61a
+1 -1
View File
@@ -21,7 +21,7 @@ import (
func init() {
movers["kiro"] = &mover{
pkg: "@magpie-community/opencode-kiro-auth",
min: "0.1.14", // each account is named by its email and the way it was signed in to, "email (Google)", "email (GitHub)", not "email (slot)" (plugins#309); 0.1.13: two sign-ins of one email through different login providers (Google, GitHub, Builder ID) stay two accounts (plugins#309); 0.1.12: a request for JSON output (output_config.format) answers in JSON, its schema in the system prompt as the built-in; 0.1.11: a thinking model offers xhigh as its own level (50k), so Claude Code's xhigh isn't routed as max (plugins#120); 0.1.10: the caller's prompt-cache marks reach Kiro as cachePoints (plugins#110)
min: "0.1.15", // an API key is used as kiro-cli uses it: GetProfile in us-east-1 then eu-central-1, and with no profile found the key goes on in us-east-1; its models are the control plane's ListAvailableModels and no profile is named in its calls (Hollowhere: Auto alone, every request "Kiro didn't take the API key: 400"); 0.1.14: each account is named by its email and the way it was signed in to, "email (Google)", "email (GitHub)", not "email (slot)" (plugins#309); 0.1.13: two sign-ins of one email through different login providers (Google, GitHub, Builder ID) stay two accounts (plugins#309); 0.1.12: a request for JSON output (output_config.format) answers in JSON, its schema in the system prompt as the built-in; 0.1.11: a thinking model offers xhigh as its own level (50k), so Claude Code's xhigh isn't routed as max (plugins#120); 0.1.10: the caller's prompt-cache marks reach Kiro as cachePoints (plugins#110)
agents: []string{"kiro"},
out: func() ([]Moving, error) {
var out []Moving