9router/src/mitm/handlers
Jaime Botero 0d182018ab
fix: resolve Kiro IDE MITM handler bugs for AWS CodeWhisperer translation (#921)
- Request translation: add codeWhispererToMessages() to convert CodeWhisperer conversationState to OpenAI messages array
- Response format: replace pipeSSE() with pipeOpenAIasEventStream() to return AWS EventStream binary frames instead of SSE text
- Protocol headers: add required Smithy system headers (:message-type, :event-type, :content-type) to every EventStream frame
- Tool support: add extractTools() to convert CodeWhisperer toolSpecification to OpenAI tool format
- Tool arguments: add safeArgsString() to prevent '[object Object]' corruption during SSE accumulation
- Multi-turn context: add convertAssistantResponseMessage() and convertUserInputMessage() to preserve toolUses and toolResults in history
- Tool dispatch: send toolUseEvent.input as raw JSON string instead of parsed object to match Kiro's internal JSON.parse() expectation
2026-05-07 15:49:51 +07:00
..
antigravity.js Fix : Antigravity MITM 2026-04-29 17:28:38 +07:00
base.js Fix : Antigravity MITM 2026-04-29 17:28:38 +07:00
copilot.js Enhance provider models and chat handling with new thinking configurations 2026-04-13 12:04:57 +07:00
cursor.js Feat : Kiro MITM 2026-03-17 16:12:25 +07:00
kiro.js fix: resolve Kiro IDE MITM handler bugs for AWS CodeWhisperer translation (#921) 2026-05-07 15:49:51 +07:00