A 429 Kiro answered before any of the reply (USER_REQUEST_RATE_EXCEEDED, "Too many requests, please wait before trying again.") reached magpie with no word of when, as the plugin built its error response from nothing. With one account magpie then asked it again after 1, 2 and 4s and on through its patience: onemezao's one small message took six asks, five of them 429. The plugin now reads the wait where Kiro's own clients read it and sends it on as Retry-After (whole seconds, rounded up): the Kiro IDE's x-amzn-kiro-ratelimit-retry-after header and the body's retryAfterMilliseconds (both ms; kiro.kiro-agent 1.1.499, decompiled in hj01857655/kiro-account-manager docs/Kiro-1.4.5/re/pfd-full.txt), the x-amz-retry-after header kiro-cli 2.35's AWS SDK honours (ms, found in the binary's strings), and HTTP's Retry-After. magpie's gateway already waits a Retry-After: past 8s it skips the quick retries and rests the account that long. With none said, nothing changes. Run (mote, HOME a temp dir): bun test packages/kiro, 127 pass; bun scripts/check.mjs, ok. Broken by hand: generate without the wait argument; the new test fails (Expected "13", Received null). Not tried: a real Kiro 429. Which of these headers Kiro sends on generateAssistantResponse's 429 is not seen; the IDE reads them on its CreateResponse path. Hammering a real account to get one was not done. Reported-by: onemezao
13 lines
536 B
JSON
13 lines
536 B
JSON
{
|
|
"name": "@magpie-community/opencode-kiro-auth",
|
|
"version": "0.1.27",
|
|
"description": "Kiro subscriptions (Free, Pro, Pro+, Power) in OpenCode and magpie",
|
|
"type": "module",
|
|
"main": "./opencode.mjs",
|
|
"exports": { ".": "./opencode2.mjs" },
|
|
"files": ["index.mjs", "opencode.mjs", "opencode2.mjs", "README.md"],
|
|
"keywords": ["opencode", "opencode-plugin", "magpie", "kiro"],
|
|
"license": "MIT",
|
|
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/kiro" }
|
|
}
|