9router/tests/translator
thienpv 706e6513c9 feat(kiro): headless API-key auth + direct Claude/Kiro route
Adds long-lived API-key (ksk_) authentication for Kiro/AWS CodeWhisperer
and a direct claude:kiro / kiro:claude translation route that avoids the
lossy OpenAI two-hop pivot.

- translator: claude-to-kiro request + kiro-to-claude response translators,
  registered on the exact source:target pair (direct route ahead of the
  OpenAI pivot in index.js). claude-to-kiro uses shared schema constants
  (ROLE/CLAUDE_BLOCK/DEFAULT_IMAGE_MIME) per app convention.
- auth: POST /api/oauth/kiro/api-key imports + validates a key via
  ListAvailableProfiles, persists authMethod="api_key" (no refresh token).
- executor: send tokentype: API_KEY header and try *.amazonaws.com hosts
  first for api-key creds; OAuth keeps kiro.dev first.
- fix: never inject the default placeholder profileArn for api-key auth
  (CodeWhisperer 403s an ARN not owned by the key's account).
- ui: API Key method in the Kiro connect modal; surface api-key accounts
  on the Quota Tracker and provider count.
- stream: env-overridable TTFT vs stall timeouts + Kiro keepalive frame.
- tests: claude-kiro-direct + kiro-profile-arn (11 tests).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-17 10:01:30 +07:00
..
__snapshots__ Refactor 2026-06-15 18:18:04 +07:00
real Refactor 2026-06-15 18:18:04 +07:00
AGENTS.md refactor(open-sse): translator DRY + schema enums, bug fixes, dead code cleanup 2026-06-14 18:49:38 +07:00
bugs-antigravity.test.js fix(antigravity): strip optional from tool schemas before Gemini 2026-06-17 09:46:41 +07:00
bugs-claudeCode-context.test.js test(translator): add data-driven coverage, bug-exposing cases, and real provider smoke 2026-06-06 12:19:59 +07:00
bugs-codexCli-responses.test.js test(translator): add data-driven coverage, bug-exposing cases, and real provider smoke 2026-06-06 12:19:59 +07:00
bugs-gemini-cursor-commandcode.test.js test(translator): add data-driven coverage, bug-exposing cases, and real provider smoke 2026-06-06 12:19:59 +07:00
bugs-kiro.test.js feat(i18n): add endpoint exposure notice across multiple languages 2026-06-06 12:45:32 +07:00
bugs-openai-bridge.test.js test(translator): add data-driven coverage, bug-exposing cases, and real provider smoke 2026-06-06 12:19:59 +07:00
bugs-toClaude-context.test.js test(translator): add data-driven coverage, bug-exposing cases, and real provider smoke 2026-06-06 12:19:59 +07:00
claude-kiro-direct.test.js feat(kiro): headless API-key auth + direct Claude/Kiro route 2026-06-17 10:01:30 +07:00
coverage-all-models.test.js test(translator): add data-driven coverage, bug-exposing cases, and real provider smoke 2026-06-06 12:19:59 +07:00
format-roundtrip.test.js test(translator): add data-driven coverage, bug-exposing cases, and real provider smoke 2026-06-06 12:19:59 +07:00
golden-request.test.js Refactor 2026-06-15 18:18:04 +07:00
golden-response-stream.test.js refactor(open-sse): extract chunkBuilder, dedup chat.completion.chunk (B1) 2026-06-13 17:05:42 +07:00
golden-translator-concerns.test.js refactor(open-sse): translator DRY + schema enums, bug fixes, dead code cleanup 2026-06-14 18:49:38 +07:00
golden-url-header.test.js test(open-sse): add P0 golden tests (url/header, response stream, request body) 2026-06-13 16:22:00 +07:00
matrix.js test(translator): add data-driven coverage, bug-exposing cases, and real provider smoke 2026-06-06 12:19:59 +07:00
registerAll.js feat(kiro): headless API-key auth + direct Claude/Kiro route 2026-06-17 10:01:30 +07:00
thinking-unified.test.js Refactor 2026-06-15 18:18:04 +07:00