kiro: the mover installs 0.1.28, which uses both of an Identity Center account's credit regions

kiro 0.1.28 is on registry.npmjs.org (npm view --prefer-online with a
fresh cache: 0.1.28, shasum c643deaeb9366d5b43b841db0bdf89523479bba1;
publish.yml run 42346180094's npm step printed "+
@magpie-community/opencode-kiro-auth@0.1.28", the run red only for
think-tags, plugins#180). It is e7cb9dc5 in magpie-community/plugins
(plugins#820): an IAM Identity Center organization can enable Kiro in
us-east-1 and eu-central-1, each with its own profile, month of credits
and overage cap. The plugin used the first profile only, so the account
left rotation when that region ran out while the other still had
credits. Now a used-up region rests and the request goes once to the
other, overage counts against overageCap, and the Usage card shows each
region. keepMovedCurrent brings every moved Kiro user to 0.1.28.

Run on mote at d052fec0e + this change: gofmt -l internal/provider
empty; go vet ./internal/provider for darwin, linux and windows ok;
go test -count=1 ./internal/provider ok (127s).
The plugin's own run (bun test packages/kiro, 140 pass), what was broken
by hand and the reviewer's probes are in e7cb9dc5's body.

Not tried: a real Identity Center account running out in one region,
through magpie or otherwise; the author ran real accounts enabled in one
region each.
This commit is contained in:
yetone
2026-11-07 14:22:16 +08:00
parent d052fec0e3
commit 05f6fd423b
+1 -1
View File
@@ -21,7 +21,7 @@ import (
func init() {
movers["kiro"] = &mover{
pkg: "@magpie-community/opencode-kiro-auth",
min: "0.1.27", // 0.1.27: a 429 carries the wait Kiro said (x-amzn-kiro-ratelimit-retry-after, x-amz-retry-after, retryAfterMilliseconds or Retry-After) as Retry-After, so magpie waits that long instead of asking the one account again after 1, 2 and 4s (onemezao on Discord, USER_REQUEST_RATE_EXCEEDED); 0.1.25: bonus credits (a first upgrade's 500 trial credits, a promotion's) show on the Usage card as windows of their own, shown only, with when they lapse, and a month used up while a bonus has credits left is shown only too, since Kiro spends the plan's credits first (plugins#602, GiantGKL); 0.1.24: a conversation past the model's window is a 400 "input is too long for the model's context" however Kiro says it (an exception in its event stream was a 502, a reply stopped with MODEL_CONTEXT_WINDOW_EXCEEDED was finished), so magpie asks a member with room or tells the agent to compact (ergou0954_54426 on Discord); 0.1.23: thinking is asked for only when the request's thinking is enabled or adaptive; an effort with none, or with thinking disabled (Claude Code's title requests, a turn with thinking off), is sent no budget and no adaptive fields at any level (plugins#538, zengxiaosong); 0.1.22: a model whose Kiro catalog lists effort levels with adaptive thinking is sent the level as Kiro IDE sends it (additionalModelRequestFields), so xhigh and max stay apart, and a system message ending the conversation (Claude Code's environment context) goes as a turn before the question, not into it (plugins#538, zengxiaosong); 0.1.21: the browser sign-in asks first for AWS Builder ID, IAM Identity Center (Start URL and region) or Kiro's page; the AWS ways open AWS directly, so a magpie on a server or in Docker takes one pasted callback address instead of two, and a sign-in left behind frees its port when the next starts (plugins#507, SemonCat); 0.1.20: a tool whose input_schema has no root type reaches Kiro as an object, and a client's web_search server tool runs as Kiro's own search, at most 10 a request (plugins#492, SemonCat); 0.1.19: a usage read whose sign-in Kiro refused marks the account signed out, so its rows offer Sign in again, and a clean read takes the mark off (blue12345655 on Discord); 0.1.18: an image over Kiro's 5 MiB Base64 limit (a 4.2 MB view_image PNG is 5.6 MB as Base64) is shrunk on the request, or replaced by a note, so the conversation isn't stuck on IMAGE_SIZE_EXCEEDED (plugins#428); 0.1.17: the Free trial and Credits windows carry their credits used and the limit, so the card's Left shows the credits left (plugins#408); a reply with no token counts says its cache is unknown (magpie_cache_unknown), not 0: Kiro caches but counts no tokens (zeewell on X); 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)
min: "0.1.28", // 0.1.28: an IAM Identity Center account enabled in both of its regions (us-east-1, eu-central-1) uses each region's profile, month of credits and overage cap; a region used up rests and the request goes once to the other, and the Usage card shows each region, so the account stays in rotation while either region has credits (plugins#820, caozhenyuan); 0.1.27: a 429 carries the wait Kiro said (x-amzn-kiro-ratelimit-retry-after, x-amz-retry-after, retryAfterMilliseconds or Retry-After) as Retry-After, so magpie waits that long instead of asking the one account again after 1, 2 and 4s (onemezao on Discord, USER_REQUEST_RATE_EXCEEDED); 0.1.25: bonus credits (a first upgrade's 500 trial credits, a promotion's) show on the Usage card as windows of their own, shown only, with when they lapse, and a month used up while a bonus has credits left is shown only too, since Kiro spends the plan's credits first (plugins#602, GiantGKL); 0.1.24: a conversation past the model's window is a 400 "input is too long for the model's context" however Kiro says it (an exception in its event stream was a 502, a reply stopped with MODEL_CONTEXT_WINDOW_EXCEEDED was finished), so magpie asks a member with room or tells the agent to compact (ergou0954_54426 on Discord); 0.1.23: thinking is asked for only when the request's thinking is enabled or adaptive; an effort with none, or with thinking disabled (Claude Code's title requests, a turn with thinking off), is sent no budget and no adaptive fields at any level (plugins#538, zengxiaosong); 0.1.22: a model whose Kiro catalog lists effort levels with adaptive thinking is sent the level as Kiro IDE sends it (additionalModelRequestFields), so xhigh and max stay apart, and a system message ending the conversation (Claude Code's environment context) goes as a turn before the question, not into it (plugins#538, zengxiaosong); 0.1.21: the browser sign-in asks first for AWS Builder ID, IAM Identity Center (Start URL and region) or Kiro's page; the AWS ways open AWS directly, so a magpie on a server or in Docker takes one pasted callback address instead of two, and a sign-in left behind frees its port when the next starts (plugins#507, SemonCat); 0.1.20: a tool whose input_schema has no root type reaches Kiro as an object, and a client's web_search server tool runs as Kiro's own search, at most 10 a request (plugins#492, SemonCat); 0.1.19: a usage read whose sign-in Kiro refused marks the account signed out, so its rows offer Sign in again, and a clean read takes the mark off (blue12345655 on Discord); 0.1.18: an image over Kiro's 5 MiB Base64 limit (a 4.2 MB view_image PNG is 5.6 MB as Base64) is shrunk on the request, or replaced by a note, so the conversation isn't stuck on IMAGE_SIZE_EXCEEDED (plugins#428); 0.1.17: the Free trial and Credits windows carry their credits used and the limit, so the card's Left shows the credits left (plugins#408); a reply with no token counts says its cache is unknown (magpie_cache_unknown), not 0: Kiro caches but counts no tokens (zeewell on X); 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