This commit is contained in:
decolua
2026-03-30 12:21:24 +07:00
parent abbf8ec86f
commit e6299eef56
6 changed files with 241 additions and 5 deletions

View File

@@ -62,6 +62,34 @@ export const CLIENT_METADATA = {
// Internal anti-loop header
export const INTERNAL_REQUEST_HEADER = { name: "x-request-source", value: "local" };
// Prefix added to client tools when forwarding to Antigravity provider (anti-ban cloaking)
export const AG_TOOL_PREFIX = "ide_";
// AG native default tools — kept as decoys with neutral description/properties
// These names must match exactly what AG sends in the real request log
export const AG_DEFAULT_TOOLS = new Set([
"browser_subagent",
"command_status",
"find_by_name",
"generate_image",
"grep_search",
"list_dir",
"list_resources",
"multi_replace_file_content",
"notify_user",
"read_resource",
"read_terminal",
"read_url_content",
"replace_file_content",
"run_command",
"search_web",
"send_command_input",
"task_boundary",
"view_content_chunk",
"view_file",
"write_to_file"
]);
// Antigravity chat/stream headers
export const ANTIGRAVITY_HEADERS = {
"User-Agent": `antigravity/1.107.0 ${platform()}/${arch()}`