fix(mitm): update Kiro API endpoint to runtime.us-east-1.kiro.dev
Kiro IDE changed its API endpoint from q.us-east-1.amazonaws.com to runtime.us-east-1.kiro.dev. Old domains kept as fallback. - mitm/config.js: add new hosts to TARGET_HOSTS + getToolForHost() - cliTools.js: update mitmDomain to new endpoint - mitmToolHosts.js: prepend new domain (keep legacy for compat) - dataDir.js: on Windows ignore Unix-style DATA_DIR paths Co-authored-by: joutvhu <joutvhu@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -18,6 +18,8 @@ const TARGET_HOSTS = [
|
||||
"cloudcode-pa.googleapis.com",
|
||||
"api.individual.githubcopilot.com",
|
||||
"q.us-east-1.amazonaws.com",
|
||||
"codewhisperer.us-east-1.amazonaws.com",
|
||||
"runtime.us-east-1.kiro.dev",
|
||||
"api2.cursor.sh",
|
||||
];
|
||||
|
||||
@@ -79,7 +81,7 @@ function getToolForHost(host) {
|
||||
const h = (host || "").split(":")[0];
|
||||
if (h === "api.individual.githubcopilot.com") return "copilot";
|
||||
if (h === "daily-cloudcode-pa.googleapis.com" || h === "cloudcode-pa.googleapis.com") return "antigravity";
|
||||
if (h === "q.us-east-1.amazonaws.com") return "kiro";
|
||||
if (h === "q.us-east-1.amazonaws.com" || h === "codewhisperer.us-east-1.amazonaws.com" || h === "runtime.us-east-1.kiro.dev") return "kiro";
|
||||
if (h === "api2.cursor.sh") return "cursor";
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user