Feat : Kiro MITM

This commit is contained in:
decolua
2026-03-17 16:12:25 +07:00
parent 065761268c
commit 03ff35100d
13 changed files with 266 additions and 169 deletions
+24
View File
@@ -0,0 +1,24 @@
// All intercepted domains + URL patterns per tool
const TARGET_HOSTS = [
"daily-cloudcode-pa.googleapis.com",
"cloudcode-pa.googleapis.com",
"api.individual.githubcopilot.com",
"q.us-east-1.amazonaws.com",
];
const URL_PATTERNS = {
antigravity: [":generateContent", ":streamGenerateContent"],
copilot: ["/chat/completions", "/v1/messages", "/responses"],
kiro: ["/generateAssistantResponse"],
};
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";
return null;
}
module.exports = { TARGET_HOSTS, URL_PATTERNS, getToolForHost };