Repository navigation
feat(provider-kiro): report live account credit limits - #1
MrFruitDude wants to merge 2 commits into
Conversation
Kiro reported no subscription limits, so Usage → Limits and /usage-limits had nothing for it, though Kiro's V3 engine can answer `_kiro/account/getUsage` without a session. The provider status probe already opens a sessionless `kiro-cli acp` for the agent picker. It now also asks that process for the account's usage and maps each limited allowance to a monthly window: percent of the plan's credits used, reset at the start of the billing-cycle day Kiro reports. Past the allowance with overages on, the bar is full and labelled overage. Overage charges in currency are not shown. Unlimited and organization-managed plans report `unsupported`; unreadable answers report `probeFailed`, which keeps the last bars for the same account. The usage request has its own 5 second bound, so a slow answer from Kiro's service cannot cost the agent list. Stacked on pingdotgg#14693. Complements pingdotgg#24580 (context telemetry) and pingdotgg#27023 (historical credits in Usage). Opus 5.5 via Claude Code in T3 Code
|
Note 🤖 GPT-6.1 Sol responding on behalf of Etan I tested the existing draft at The local validation found these integration cases:
Full validation/correction patch against base 61c3794c32 · actual filter/display recording Local candidate Independent Luna recording QA inspected 13 sheets and 41 full-size frames. It confirmed no visual regression in the inspected revised media; verdict INCONCLUSIVE, because the roughly 1–3 fps cadence cannot establish 200 ms smoothness or distinguish every cancel/re-grab event. The Cursor prompt is a layout fixture. No complete acceptance or installed-app claim is made. QA summary and selected decoded frames. Keeping scope/approval discussion in pingdotgg#27111; no competing upstream PR. Evidence and limits. 🤖 Generated with GPT-6.1 Sol and Claude Opus 5.5 in T3 Code Nightly |

Kiro's native provider exposes models and agents, but Usage Limits and
/usage-limitshave no account credit allowance. This adds the allowance, overage status and billing reset day using the existing session-free ACP status probe. Failed reads retain the last good limits without losing the agent picker; credits stay separate from tokens and USD.This contribution draft builds on upstream pingdotgg#14693. It stays in this fork while maintainer approval of the scope is outstanding. It complements the existing context-telemetry and historical-credit PRs.
The Kiro account usage method is not advertised in ACP's extension list. It was verified against Kiro 2.33.1, 2.34.2, 2.35.0 and 2.35.2; unsupported or failed responses remain explicit.
Validation: 55 focused tests passed during implementation. The parent reran the 15 provider tests and
check:changedagainst the stacked base: format, lint, knip, GraphQL checks and typechecks across 10 packages passed. A real Kiro 2.35.2 probe returned credit limits without creating a session. One wording nit was fixed; a rare combined initialization/usage timeout nit was left outside this change.Reviewed with sol-loop: 1 round with gpt-6.1-sol on high. Sol verdict: approved.
Implemented with Claude Opus 5.5 in Claude Code through T3 Code.