Add Kiro subscription provider#2026
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2026 +/- ##
==========================================
+ Coverage 99.41% 99.44% +0.03%
==========================================
Files 186 187 +1
Lines 17333 17452 +119
Branches 6874 6919 +45
==========================================
+ Hits 17232 17356 +124
+ Misses 99 94 -5
Partials 2 2
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Bundle ReportChanges will increase total bundle size by 4.83kB (0.23%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: manifest-frontend-esmAssets Changed:
Files in
Files in
|
50666f0 to
88f2a2e
Compare
There was a problem hiding this comment.
2 issues found across 36 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
9174c0f to
85209d3
Compare
85209d3 to
0e2b471
Compare
Summary
Validation
npm --workspace manifest-shared run buildnpm test --workspace=manifest-backend -- --runInBand routing/oauth/kiro-cli-token.spec.ts routing/oauth/kiro-oauth.service.spec.ts routing/kiro-oauth.controller.spec.ts routing/proxy/__tests__/proxy-fallback.service.spec.ts routing/proxy/__tests__/proxy.service.spec.ts routing/proxy/__tests__/provider-client.spec.ts routing/proxy/__tests__/provider-endpoints.spec.ts routing/proxy/__tests__/kiro-adapter.spec.ts model-discovery/model-discovery.service.spec.ts model-discovery/provider-model-fetcher.service.spec.ts common/constants/providers.spec.ts common/utils/provider-inference.spec.tsnpm --workspace manifest-backend run buildnpm --workspace manifest-frontend run buildnpm test --workspace=manifest-frontend -- providers.test.ts ProviderIcon.test.tsxgit diff --check HEADNotes: frontend build still reports the existing large Playground chunk warning. Backend Jest still prints the existing open-handle warning after passing.
Summary by cubic
Adds Kiro as a subscription-only provider using local Kiro CLI OAuth (cli_oauth). Discovers models from AWS and proxies chats to Kiro’s JSON event-stream with OpenAI-compatible SSE/JSON responses.
New Features
POST /api/v1/oauth/kiro/cli-connectendpoint and a CLI OAuth connect UI with copyablekiro-cli login --use-device-flowcommand and Kiro icon.AmazonCodeWhispererService.ListAvailableModelswith pagination, infer context windows, and registerkiro/*models; provider inference updated.AmazonCodeWhispererStreamingService.GenerateAssistantResponse, parses JSON event-stream frames (incl. errors/reasoning), and streams SSE or returns JSON; provider endpoint set tohttps://q.us-east-1.amazonaws.comwithx-amz-target.Migration
kiro-cli login --use-device-flow.KIRO_CLI_BINorKIRO_CLI_TOKEN_CACHEto customize CLI path/cache.Written for commit 0e2b471. Summary will update on new commits. Review in cubic