[PR #37] [CLOSED] fix: Migrate to Q endpoints & update headers to Kiro IDE 0.8.86 #64

Closed
opened 2026-02-27 07:17:48 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jwadow/kiro-gateway/pull/37
Author: @DedInc
Created: 1/14/2026
Status: Closed

Base: mainHead: main


📝 Commits (1)

  • 34ea897 new host migration & kiro latest

📊 Changes

49 files changed (+11071 additions, -8868 deletions)

View changed files

📝 kiro/__init__.py (+6 -10)
📝 kiro/auth.py (+222 -177)
📝 kiro/cache.py (+33 -31)
📝 kiro/config.py (+57 -24)
📝 kiro/converters_anthropic.py (+89 -83)
📝 kiro/converters_core.py (+341 -286)
📝 kiro/converters_openai.py (+74 -65)
📝 kiro/debug_logger.py (+67 -63)
📝 kiro/debug_middleware.py (+18 -16)
📝 kiro/exceptions.py (+15 -12)
📝 kiro/http_client.py (+80 -66)
📝 kiro/model_resolver.py (+65 -60)
📝 kiro/models_anthropic.py (+69 -30)
📝 kiro/models_openai.py (+35 -20)
📝 kiro/parsers.py (+151 -136)
📝 kiro/routes_anthropic.py (+84 -83)
📝 kiro/routes_openai.py (+90 -71)
📝 kiro/streaming_anthropic.py (+332 -296)
📝 kiro/streaming_core.py (+128 -87)
📝 kiro/streaming_openai.py (+134 -115)

...and 29 more files

📄 Description

Summary

This PR addresses critical API changes regarding the host migration from codewhisperer to q endpoints and updates client signatures to match the latest Kiro IDE version.

Changes

  • Host Migration: Updated KIRO_API_HOST_TEMPLATE and KIRO_Q_HOST_TEMPLATE in kiro/config.py to point to q.{region}.amazonaws.com instead of the legacy codewhisperer endpoints, based on recent traffic inspection.
  • User-Agent Update: Updated headers in kiro/utils.py to mimic Kiro IDE version 0.8.86 (latest).
  • Code Quality: Applied ruff formatting and linting across the codebase. Note: This accounts for the larger number of file changes/diffs; these are purely stylistic and code quality improvements.

Reasoning

The upstream API appears to have migrated its backend services. Using the old endpoints results in reliability issues. Updating the headers ensures better compatibility. The formatting changes ensure the codebase remains clean and consistent.

CLA

I have read the CLA and I accept its terms


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jwadow/kiro-gateway/pull/37 **Author:** [@DedInc](https://github.com/DedInc) **Created:** 1/14/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`34ea897`](https://github.com/jwadow/kiro-gateway/commit/34ea897fa913aa68b82aa05102f0fd9c45fe0603) new host migration & kiro latest ### 📊 Changes **49 files changed** (+11071 additions, -8868 deletions) <details> <summary>View changed files</summary> 📝 `kiro/__init__.py` (+6 -10) 📝 `kiro/auth.py` (+222 -177) 📝 `kiro/cache.py` (+33 -31) 📝 `kiro/config.py` (+57 -24) 📝 `kiro/converters_anthropic.py` (+89 -83) 📝 `kiro/converters_core.py` (+341 -286) 📝 `kiro/converters_openai.py` (+74 -65) 📝 `kiro/debug_logger.py` (+67 -63) 📝 `kiro/debug_middleware.py` (+18 -16) 📝 `kiro/exceptions.py` (+15 -12) 📝 `kiro/http_client.py` (+80 -66) 📝 `kiro/model_resolver.py` (+65 -60) 📝 `kiro/models_anthropic.py` (+69 -30) 📝 `kiro/models_openai.py` (+35 -20) 📝 `kiro/parsers.py` (+151 -136) 📝 `kiro/routes_anthropic.py` (+84 -83) 📝 `kiro/routes_openai.py` (+90 -71) 📝 `kiro/streaming_anthropic.py` (+332 -296) 📝 `kiro/streaming_core.py` (+128 -87) 📝 `kiro/streaming_openai.py` (+134 -115) _...and 29 more files_ </details> ### 📄 Description ### Summary This PR addresses critical API changes regarding the host migration from `codewhisperer` to `q` endpoints and updates client signatures to match the latest Kiro IDE version. ### Changes - **Host Migration**: Updated `KIRO_API_HOST_TEMPLATE` and `KIRO_Q_HOST_TEMPLATE` in `kiro/config.py` to point to `q.{region}.amazonaws.com` instead of the legacy `codewhisperer` endpoints, based on recent traffic inspection. - **User-Agent Update**: Updated headers in `kiro/utils.py` to mimic Kiro IDE version `0.8.86` (latest). - **Code Quality**: Applied `ruff` formatting and linting across the codebase. **Note:** This accounts for the larger number of file changes/diffs; these are purely stylistic and code quality improvements. ### Reasoning The upstream API appears to have migrated its backend services. Using the old endpoints results in reliability issues. Updating the headers ensures better compatibility. The formatting changes ensure the codebase remains clean and consistent. ### CLA I have read the CLA and I accept its terms --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 07:17:48 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/kiro-gateway-jwadow#64
No description provided.