@roo-code/types 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1100 -0
- package/dist/index.d.ts +1100 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +6 -7
package/dist/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/index.ts
|
|
17
|
+
var index_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(index_exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { EventEmitter } from \"events\"\nimport { Socket } from \"node:net\"\n\ntype GlobalSettings = {\n\tcurrentApiConfigName?: string | undefined\n\tlistApiConfigMeta?:\n\t\t| {\n\t\t\t\tid: string\n\t\t\t\tname: string\n\t\t\t\tapiProvider?:\n\t\t\t\t\t| (\n\t\t\t\t\t\t\t| \"anthropic\"\n\t\t\t\t\t\t\t| \"glama\"\n\t\t\t\t\t\t\t| \"openrouter\"\n\t\t\t\t\t\t\t| \"bedrock\"\n\t\t\t\t\t\t\t| \"vertex\"\n\t\t\t\t\t\t\t| \"openai\"\n\t\t\t\t\t\t\t| \"ollama\"\n\t\t\t\t\t\t\t| \"vscode-lm\"\n\t\t\t\t\t\t\t| \"lmstudio\"\n\t\t\t\t\t\t\t| \"gemini\"\n\t\t\t\t\t\t\t| \"openai-native\"\n\t\t\t\t\t\t\t| \"mistral\"\n\t\t\t\t\t\t\t| \"deepseek\"\n\t\t\t\t\t\t\t| \"unbound\"\n\t\t\t\t\t\t\t| \"requesty\"\n\t\t\t\t\t\t\t| \"human-relay\"\n\t\t\t\t\t\t\t| \"fake-ai\"\n\t\t\t\t\t\t\t| \"xai\"\n\t\t\t\t\t\t\t| \"groq\"\n\t\t\t\t\t\t\t| \"chutes\"\n\t\t\t\t\t\t\t| \"litellm\"\n\t\t\t\t\t )\n\t\t\t\t\t| undefined\n\t\t }[]\n\t\t| undefined\n\tpinnedApiConfigs?:\n\t\t| {\n\t\t\t\t[x: string]: boolean\n\t\t }\n\t\t| undefined\n\tlastShownAnnouncementId?: string | undefined\n\tcustomInstructions?: string | undefined\n\ttaskHistory?:\n\t\t| {\n\t\t\t\tid: string\n\t\t\t\tnumber: number\n\t\t\t\tts: number\n\t\t\t\ttask: string\n\t\t\t\ttokensIn: number\n\t\t\t\ttokensOut: number\n\t\t\t\tcacheWrites?: number | undefined\n\t\t\t\tcacheReads?: number | undefined\n\t\t\t\ttotalCost: number\n\t\t\t\tsize?: number | undefined\n\t\t\t\tworkspace?: string | undefined\n\t\t }[]\n\t\t| undefined\n\tautoApprovalEnabled?: boolean | undefined\n\talwaysAllowReadOnly?: boolean | undefined\n\talwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined\n\talwaysAllowWrite?: boolean | undefined\n\talwaysAllowWriteOutsideWorkspace?: boolean | undefined\n\twriteDelayMs?: number | undefined\n\talwaysAllowBrowser?: boolean | undefined\n\talwaysApproveResubmit?: boolean | undefined\n\trequestDelaySeconds?: number | undefined\n\talwaysAllowMcp?: boolean | undefined\n\talwaysAllowModeSwitch?: boolean | undefined\n\talwaysAllowSubtasks?: boolean | undefined\n\talwaysAllowExecute?: boolean | undefined\n\tallowedCommands?: string[] | undefined\n\tbrowserToolEnabled?: boolean | undefined\n\tbrowserViewportSize?: string | undefined\n\tscreenshotQuality?: number | undefined\n\tremoteBrowserEnabled?: boolean | undefined\n\tremoteBrowserHost?: string | undefined\n\tcachedChromeHostUrl?: string | undefined\n\tenableCheckpoints?: boolean | undefined\n\tttsEnabled?: boolean | undefined\n\tttsSpeed?: number | undefined\n\tsoundEnabled?: boolean | undefined\n\tsoundVolume?: number | undefined\n\tmaxOpenTabsContext?: number | undefined\n\tmaxWorkspaceFiles?: number | undefined\n\tshowRooIgnoredFiles?: boolean | undefined\n\tmaxReadFileLine?: number | undefined\n\tterminalOutputLineLimit?: number | undefined\n\tterminalShellIntegrationTimeout?: number | undefined\n\tterminalShellIntegrationDisabled?: boolean | undefined\n\tterminalCommandDelay?: number | undefined\n\tterminalPowershellCounter?: boolean | undefined\n\tterminalZshClearEolMark?: boolean | undefined\n\tterminalZshOhMy?: boolean | undefined\n\tterminalZshP10k?: boolean | undefined\n\tterminalZdotdir?: boolean | undefined\n\tterminalCompressProgressBar?: boolean | undefined\n\trateLimitSeconds?: number | undefined\n\tdiffEnabled?: boolean | undefined\n\tfuzzyMatchThreshold?: number | undefined\n\texperiments?:\n\t\t| {\n\t\t\t\tpowerSteering: boolean\n\t\t }\n\t\t| undefined\n\tlanguage?:\n\t\t| (\n\t\t\t\t| \"ca\"\n\t\t\t\t| \"de\"\n\t\t\t\t| \"en\"\n\t\t\t\t| \"es\"\n\t\t\t\t| \"fr\"\n\t\t\t\t| \"hi\"\n\t\t\t\t| \"it\"\n\t\t\t\t| \"ja\"\n\t\t\t\t| \"ko\"\n\t\t\t\t| \"nl\"\n\t\t\t\t| \"pl\"\n\t\t\t\t| \"pt-BR\"\n\t\t\t\t| \"ru\"\n\t\t\t\t| \"tr\"\n\t\t\t\t| \"vi\"\n\t\t\t\t| \"zh-CN\"\n\t\t\t\t| \"zh-TW\"\n\t\t )\n\t\t| undefined\n\ttelemetrySetting?: (\"unset\" | \"enabled\" | \"disabled\") | undefined\n\tmcpEnabled?: boolean | undefined\n\tenableMcpServerCreation?: boolean | undefined\n\tmode?: string | undefined\n\tmodeApiConfigs?:\n\t\t| {\n\t\t\t\t[x: string]: string\n\t\t }\n\t\t| undefined\n\tcustomModes?:\n\t\t| {\n\t\t\t\tslug: string\n\t\t\t\tname: string\n\t\t\t\troleDefinition: string\n\t\t\t\tcustomInstructions?: string | undefined\n\t\t\t\tgroups: (\n\t\t\t\t\t| (\"read\" | \"edit\" | \"browser\" | \"command\" | \"mcp\" | \"modes\")\n\t\t\t\t\t| [\n\t\t\t\t\t\t\t\"read\" | \"edit\" | \"browser\" | \"command\" | \"mcp\" | \"modes\",\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tfileRegex?: string | undefined\n\t\t\t\t\t\t\t\tdescription?: string | undefined\n\t\t\t\t\t\t\t},\n\t\t\t\t\t ]\n\t\t\t\t)[]\n\t\t\t\tsource?: (\"global\" | \"project\") | undefined\n\t\t }[]\n\t\t| undefined\n\tcustomModePrompts?:\n\t\t| {\n\t\t\t\t[x: string]:\n\t\t\t\t\t| {\n\t\t\t\t\t\t\troleDefinition?: string | undefined\n\t\t\t\t\t\t\tcustomInstructions?: string | undefined\n\t\t\t\t\t }\n\t\t\t\t\t| undefined\n\t\t }\n\t\t| undefined\n\tcustomSupportPrompts?:\n\t\t| {\n\t\t\t\t[x: string]: string | undefined\n\t\t }\n\t\t| undefined\n\tenhancementApiConfigId?: string | undefined\n\thistoryPreviewCollapsed?: boolean | undefined\n}\n\ntype ProviderSettings = {\n\tapiProvider?:\n\t\t| (\n\t\t\t\t| \"anthropic\"\n\t\t\t\t| \"glama\"\n\t\t\t\t| \"openrouter\"\n\t\t\t\t| \"bedrock\"\n\t\t\t\t| \"vertex\"\n\t\t\t\t| \"openai\"\n\t\t\t\t| \"ollama\"\n\t\t\t\t| \"vscode-lm\"\n\t\t\t\t| \"lmstudio\"\n\t\t\t\t| \"gemini\"\n\t\t\t\t| \"openai-native\"\n\t\t\t\t| \"mistral\"\n\t\t\t\t| \"deepseek\"\n\t\t\t\t| \"unbound\"\n\t\t\t\t| \"requesty\"\n\t\t\t\t| \"human-relay\"\n\t\t\t\t| \"fake-ai\"\n\t\t\t\t| \"xai\"\n\t\t\t\t| \"groq\"\n\t\t\t\t| \"chutes\"\n\t\t\t\t| \"litellm\"\n\t\t )\n\t\t| undefined\n\tincludeMaxTokens?: boolean | undefined\n\treasoningEffort?: (\"low\" | \"medium\" | \"high\") | undefined\n\tdiffEnabled?: boolean | undefined\n\tfuzzyMatchThreshold?: number | undefined\n\tmodelTemperature?: (number | null) | undefined\n\trateLimitSeconds?: number | undefined\n\tmodelMaxTokens?: number | undefined\n\tmodelMaxThinkingTokens?: number | undefined\n\tapiModelId?: string | undefined\n\tapiKey?: string | undefined\n\tanthropicBaseUrl?: string | undefined\n\tanthropicUseAuthToken?: boolean | undefined\n\tglamaModelId?: string | undefined\n\tglamaApiKey?: string | undefined\n\topenRouterApiKey?: string | undefined\n\topenRouterModelId?: string | undefined\n\topenRouterBaseUrl?: string | undefined\n\topenRouterSpecificProvider?: string | undefined\n\topenRouterUseMiddleOutTransform?: boolean | undefined\n\tawsAccessKey?: string | undefined\n\tawsSecretKey?: string | undefined\n\tawsSessionToken?: string | undefined\n\tawsRegion?: string | undefined\n\tawsUseCrossRegionInference?: boolean | undefined\n\tawsUsePromptCache?: boolean | undefined\n\tawsProfile?: string | undefined\n\tawsUseProfile?: boolean | undefined\n\tawsCustomArn?: string | undefined\n\tvertexKeyFile?: string | undefined\n\tvertexJsonCredentials?: string | undefined\n\tvertexProjectId?: string | undefined\n\tvertexRegion?: string | undefined\n\topenAiBaseUrl?: string | undefined\n\topenAiApiKey?: string | undefined\n\topenAiLegacyFormat?: boolean | undefined\n\topenAiR1FormatEnabled?: boolean | undefined\n\topenAiModelId?: string | undefined\n\topenAiCustomModelInfo?:\n\t\t| ({\n\t\t\t\tmaxTokens?: (number | null) | undefined\n\t\t\t\tmaxThinkingTokens?: (number | null) | undefined\n\t\t\t\tcontextWindow: number\n\t\t\t\tsupportsImages?: boolean | undefined\n\t\t\t\tsupportsComputerUse?: boolean | undefined\n\t\t\t\tsupportsPromptCache: boolean\n\t\t\t\tinputPrice?: number | undefined\n\t\t\t\toutputPrice?: number | undefined\n\t\t\t\tcacheWritesPrice?: number | undefined\n\t\t\t\tcacheReadsPrice?: number | undefined\n\t\t\t\tdescription?: string | undefined\n\t\t\t\treasoningEffort?: (\"low\" | \"medium\" | \"high\") | undefined\n\t\t\t\tthinking?: boolean | undefined\n\t\t\t\tminTokensPerCachePoint?: number | undefined\n\t\t\t\tmaxCachePoints?: number | undefined\n\t\t\t\tcachableFields?: string[] | undefined\n\t\t\t\ttiers?:\n\t\t\t\t\t| {\n\t\t\t\t\t\t\tcontextWindow: number\n\t\t\t\t\t\t\tinputPrice?: number | undefined\n\t\t\t\t\t\t\toutputPrice?: number | undefined\n\t\t\t\t\t\t\tcacheWritesPrice?: number | undefined\n\t\t\t\t\t\t\tcacheReadsPrice?: number | undefined\n\t\t\t\t\t }[]\n\t\t\t\t\t| undefined\n\t\t } | null)\n\t\t| undefined\n\topenAiUseAzure?: boolean | undefined\n\tazureApiVersion?: string | undefined\n\topenAiStreamingEnabled?: boolean | undefined\n\tenableReasoningEffort?: boolean | undefined\n\topenAiHostHeader?: string | undefined\n\topenAiHeaders?:\n\t\t| {\n\t\t\t\t[x: string]: string\n\t\t }\n\t\t| undefined\n\tollamaModelId?: string | undefined\n\tollamaBaseUrl?: string | undefined\n\tvsCodeLmModelSelector?:\n\t\t| {\n\t\t\t\tvendor?: string | undefined\n\t\t\t\tfamily?: string | undefined\n\t\t\t\tversion?: string | undefined\n\t\t\t\tid?: string | undefined\n\t\t }\n\t\t| undefined\n\tlmStudioModelId?: string | undefined\n\tlmStudioBaseUrl?: string | undefined\n\tlmStudioDraftModelId?: string | undefined\n\tlmStudioSpeculativeDecodingEnabled?: boolean | undefined\n\tgeminiApiKey?: string | undefined\n\tgoogleGeminiBaseUrl?: string | undefined\n\topenAiNativeApiKey?: string | undefined\n\topenAiNativeBaseUrl?: string | undefined\n\tmistralApiKey?: string | undefined\n\tmistralCodestralUrl?: string | undefined\n\tdeepSeekBaseUrl?: string | undefined\n\tdeepSeekApiKey?: string | undefined\n\tunboundApiKey?: string | undefined\n\tunboundModelId?: string | undefined\n\trequestyApiKey?: string | undefined\n\trequestyModelId?: string | undefined\n\tfakeAi?: unknown | undefined\n\txaiApiKey?: string | undefined\n\tgroqApiKey?: string | undefined\n\tchutesApiKey?: string | undefined\n\tlitellmBaseUrl?: string | undefined\n\tlitellmApiKey?: string | undefined\n\tlitellmModelId?: string | undefined\n}\n\ntype ProviderSettingsEntry = {\n\tid: string\n\tname: string\n\tapiProvider?:\n\t\t| (\n\t\t\t\t| \"anthropic\"\n\t\t\t\t| \"glama\"\n\t\t\t\t| \"openrouter\"\n\t\t\t\t| \"bedrock\"\n\t\t\t\t| \"vertex\"\n\t\t\t\t| \"openai\"\n\t\t\t\t| \"ollama\"\n\t\t\t\t| \"vscode-lm\"\n\t\t\t\t| \"lmstudio\"\n\t\t\t\t| \"gemini\"\n\t\t\t\t| \"openai-native\"\n\t\t\t\t| \"mistral\"\n\t\t\t\t| \"deepseek\"\n\t\t\t\t| \"unbound\"\n\t\t\t\t| \"requesty\"\n\t\t\t\t| \"human-relay\"\n\t\t\t\t| \"fake-ai\"\n\t\t\t\t| \"xai\"\n\t\t\t\t| \"groq\"\n\t\t\t\t| \"chutes\"\n\t\t\t\t| \"litellm\"\n\t\t )\n\t\t| undefined\n}\n\ntype ClineMessage = {\n\tts: number\n\ttype: \"ask\" | \"say\"\n\task?:\n\t\t| (\n\t\t\t\t| \"followup\"\n\t\t\t\t| \"command\"\n\t\t\t\t| \"command_output\"\n\t\t\t\t| \"completion_result\"\n\t\t\t\t| \"tool\"\n\t\t\t\t| \"api_req_failed\"\n\t\t\t\t| \"resume_task\"\n\t\t\t\t| \"resume_completed_task\"\n\t\t\t\t| \"mistake_limit_reached\"\n\t\t\t\t| \"browser_action_launch\"\n\t\t\t\t| \"use_mcp_server\"\n\t\t )\n\t\t| undefined\n\tsay?:\n\t\t| (\n\t\t\t\t| \"error\"\n\t\t\t\t| \"api_req_started\"\n\t\t\t\t| \"api_req_finished\"\n\t\t\t\t| \"api_req_retried\"\n\t\t\t\t| \"api_req_retry_delayed\"\n\t\t\t\t| \"api_req_deleted\"\n\t\t\t\t| \"text\"\n\t\t\t\t| \"reasoning\"\n\t\t\t\t| \"completion_result\"\n\t\t\t\t| \"user_feedback\"\n\t\t\t\t| \"user_feedback_diff\"\n\t\t\t\t| \"command_output\"\n\t\t\t\t| \"shell_integration_warning\"\n\t\t\t\t| \"browser_action\"\n\t\t\t\t| \"browser_action_result\"\n\t\t\t\t| \"mcp_server_request_started\"\n\t\t\t\t| \"mcp_server_response\"\n\t\t\t\t| \"subtask_result\"\n\t\t\t\t| \"checkpoint_saved\"\n\t\t\t\t| \"rooignore_error\"\n\t\t\t\t| \"diff_error\"\n\t\t )\n\t\t| undefined\n\ttext?: string | undefined\n\timages?: string[] | undefined\n\tpartial?: boolean | undefined\n\treasoning?: string | undefined\n\tconversationHistoryIndex?: number | undefined\n\tcheckpoint?:\n\t\t| {\n\t\t\t\t[x: string]: unknown\n\t\t }\n\t\t| undefined\n\tprogressStatus?:\n\t\t| {\n\t\t\t\ticon?: string | undefined\n\t\t\t\ttext?: string | undefined\n\t\t }\n\t\t| undefined\n}\n\ntype TokenUsage = {\n\ttotalTokensIn: number\n\ttotalTokensOut: number\n\ttotalCacheWrites?: number | undefined\n\ttotalCacheReads?: number | undefined\n\ttotalCost: number\n\tcontextTokens: number\n}\n\ntype RooCodeEvents = {\n\tmessage: [\n\t\t{\n\t\t\ttaskId: string\n\t\t\taction: \"created\" | \"updated\"\n\t\t\tmessage: {\n\t\t\t\tts: number\n\t\t\t\ttype: \"ask\" | \"say\"\n\t\t\t\task?:\n\t\t\t\t\t| (\n\t\t\t\t\t\t\t| \"followup\"\n\t\t\t\t\t\t\t| \"command\"\n\t\t\t\t\t\t\t| \"command_output\"\n\t\t\t\t\t\t\t| \"completion_result\"\n\t\t\t\t\t\t\t| \"tool\"\n\t\t\t\t\t\t\t| \"api_req_failed\"\n\t\t\t\t\t\t\t| \"resume_task\"\n\t\t\t\t\t\t\t| \"resume_completed_task\"\n\t\t\t\t\t\t\t| \"mistake_limit_reached\"\n\t\t\t\t\t\t\t| \"browser_action_launch\"\n\t\t\t\t\t\t\t| \"use_mcp_server\"\n\t\t\t\t\t )\n\t\t\t\t\t| undefined\n\t\t\t\tsay?:\n\t\t\t\t\t| (\n\t\t\t\t\t\t\t| \"error\"\n\t\t\t\t\t\t\t| \"api_req_started\"\n\t\t\t\t\t\t\t| \"api_req_finished\"\n\t\t\t\t\t\t\t| \"api_req_retried\"\n\t\t\t\t\t\t\t| \"api_req_retry_delayed\"\n\t\t\t\t\t\t\t| \"api_req_deleted\"\n\t\t\t\t\t\t\t| \"text\"\n\t\t\t\t\t\t\t| \"reasoning\"\n\t\t\t\t\t\t\t| \"completion_result\"\n\t\t\t\t\t\t\t| \"user_feedback\"\n\t\t\t\t\t\t\t| \"user_feedback_diff\"\n\t\t\t\t\t\t\t| \"command_output\"\n\t\t\t\t\t\t\t| \"shell_integration_warning\"\n\t\t\t\t\t\t\t| \"browser_action\"\n\t\t\t\t\t\t\t| \"browser_action_result\"\n\t\t\t\t\t\t\t| \"mcp_server_request_started\"\n\t\t\t\t\t\t\t| \"mcp_server_response\"\n\t\t\t\t\t\t\t| \"subtask_result\"\n\t\t\t\t\t\t\t| \"checkpoint_saved\"\n\t\t\t\t\t\t\t| \"rooignore_error\"\n\t\t\t\t\t\t\t| \"diff_error\"\n\t\t\t\t\t )\n\t\t\t\t\t| undefined\n\t\t\t\ttext?: string | undefined\n\t\t\t\timages?: string[] | undefined\n\t\t\t\tpartial?: boolean | undefined\n\t\t\t\treasoning?: string | undefined\n\t\t\t\tconversationHistoryIndex?: number | undefined\n\t\t\t\tcheckpoint?:\n\t\t\t\t\t| {\n\t\t\t\t\t\t\t[x: string]: unknown\n\t\t\t\t\t }\n\t\t\t\t\t| undefined\n\t\t\t\tprogressStatus?:\n\t\t\t\t\t| {\n\t\t\t\t\t\t\ticon?: string | undefined\n\t\t\t\t\t\t\ttext?: string | undefined\n\t\t\t\t\t }\n\t\t\t\t\t| undefined\n\t\t\t}\n\t\t},\n\t]\n\ttaskCreated: [string]\n\ttaskStarted: [string]\n\ttaskModeSwitched: [string, string]\n\ttaskPaused: [string]\n\ttaskUnpaused: [string]\n\ttaskAskResponded: [string]\n\ttaskAborted: [string]\n\ttaskSpawned: [string, string]\n\ttaskCompleted: [\n\t\tstring,\n\t\t{\n\t\t\ttotalTokensIn: number\n\t\t\ttotalTokensOut: number\n\t\t\ttotalCacheWrites?: number | undefined\n\t\t\ttotalCacheReads?: number | undefined\n\t\t\ttotalCost: number\n\t\t\tcontextTokens: number\n\t\t},\n\t\t{\n\t\t\t[x: string]: {\n\t\t\t\tattempts: number\n\t\t\t\tfailures: number\n\t\t\t}\n\t\t},\n\t]\n\ttaskTokenUsageUpdated: [\n\t\tstring,\n\t\t{\n\t\t\ttotalTokensIn: number\n\t\t\ttotalTokensOut: number\n\t\t\ttotalCacheWrites?: number | undefined\n\t\t\ttotalCacheReads?: number | undefined\n\t\t\ttotalCost: number\n\t\t\tcontextTokens: number\n\t\t},\n\t]\n\ttaskToolFailed: [\n\t\tstring,\n\t\t(\n\t\t\t| \"execute_command\"\n\t\t\t| \"read_file\"\n\t\t\t| \"write_to_file\"\n\t\t\t| \"apply_diff\"\n\t\t\t| \"insert_content\"\n\t\t\t| \"search_and_replace\"\n\t\t\t| \"search_files\"\n\t\t\t| \"list_files\"\n\t\t\t| \"list_code_definition_names\"\n\t\t\t| \"browser_action\"\n\t\t\t| \"use_mcp_tool\"\n\t\t\t| \"access_mcp_resource\"\n\t\t\t| \"ask_followup_question\"\n\t\t\t| \"attempt_completion\"\n\t\t\t| \"switch_mode\"\n\t\t\t| \"new_task\"\n\t\t\t| \"fetch_instructions\"\n\t\t),\n\t\tstring,\n\t]\n}\n\ntype IpcMessage =\n\t| {\n\t\t\ttype: \"Ack\"\n\t\t\torigin: \"server\"\n\t\t\tdata: {\n\t\t\t\tclientId: string\n\t\t\t\tpid: number\n\t\t\t\tppid: number\n\t\t\t}\n\t }\n\t| {\n\t\t\ttype: \"TaskCommand\"\n\t\t\torigin: \"client\"\n\t\t\tclientId: string\n\t\t\tdata:\n\t\t\t\t| {\n\t\t\t\t\t\tcommandName: \"StartNewTask\"\n\t\t\t\t\t\tdata: {\n\t\t\t\t\t\t\tconfiguration: {\n\t\t\t\t\t\t\t\tapiProvider?:\n\t\t\t\t\t\t\t\t\t| (\n\t\t\t\t\t\t\t\t\t\t\t| \"anthropic\"\n\t\t\t\t\t\t\t\t\t\t\t| \"glama\"\n\t\t\t\t\t\t\t\t\t\t\t| \"openrouter\"\n\t\t\t\t\t\t\t\t\t\t\t| \"bedrock\"\n\t\t\t\t\t\t\t\t\t\t\t| \"vertex\"\n\t\t\t\t\t\t\t\t\t\t\t| \"openai\"\n\t\t\t\t\t\t\t\t\t\t\t| \"ollama\"\n\t\t\t\t\t\t\t\t\t\t\t| \"vscode-lm\"\n\t\t\t\t\t\t\t\t\t\t\t| \"lmstudio\"\n\t\t\t\t\t\t\t\t\t\t\t| \"gemini\"\n\t\t\t\t\t\t\t\t\t\t\t| \"openai-native\"\n\t\t\t\t\t\t\t\t\t\t\t| \"mistral\"\n\t\t\t\t\t\t\t\t\t\t\t| \"deepseek\"\n\t\t\t\t\t\t\t\t\t\t\t| \"unbound\"\n\t\t\t\t\t\t\t\t\t\t\t| \"requesty\"\n\t\t\t\t\t\t\t\t\t\t\t| \"human-relay\"\n\t\t\t\t\t\t\t\t\t\t\t| \"fake-ai\"\n\t\t\t\t\t\t\t\t\t\t\t| \"xai\"\n\t\t\t\t\t\t\t\t\t\t\t| \"groq\"\n\t\t\t\t\t\t\t\t\t\t\t| \"chutes\"\n\t\t\t\t\t\t\t\t\t\t\t| \"litellm\"\n\t\t\t\t\t\t\t\t\t )\n\t\t\t\t\t\t\t\t\t| undefined\n\t\t\t\t\t\t\t\tincludeMaxTokens?: boolean | undefined\n\t\t\t\t\t\t\t\treasoningEffort?: (\"low\" | \"medium\" | \"high\") | undefined\n\t\t\t\t\t\t\t\tdiffEnabled?: boolean | undefined\n\t\t\t\t\t\t\t\tfuzzyMatchThreshold?: number | undefined\n\t\t\t\t\t\t\t\tmodelTemperature?: (number | null) | undefined\n\t\t\t\t\t\t\t\trateLimitSeconds?: number | undefined\n\t\t\t\t\t\t\t\tmodelMaxTokens?: number | undefined\n\t\t\t\t\t\t\t\tmodelMaxThinkingTokens?: number | undefined\n\t\t\t\t\t\t\t\tapiModelId?: string | undefined\n\t\t\t\t\t\t\t\tapiKey?: string | undefined\n\t\t\t\t\t\t\t\tanthropicBaseUrl?: string | undefined\n\t\t\t\t\t\t\t\tanthropicUseAuthToken?: boolean | undefined\n\t\t\t\t\t\t\t\tglamaModelId?: string | undefined\n\t\t\t\t\t\t\t\tglamaApiKey?: string | undefined\n\t\t\t\t\t\t\t\topenRouterApiKey?: string | undefined\n\t\t\t\t\t\t\t\topenRouterModelId?: string | undefined\n\t\t\t\t\t\t\t\topenRouterBaseUrl?: string | undefined\n\t\t\t\t\t\t\t\topenRouterSpecificProvider?: string | undefined\n\t\t\t\t\t\t\t\topenRouterUseMiddleOutTransform?: boolean | undefined\n\t\t\t\t\t\t\t\tawsAccessKey?: string | undefined\n\t\t\t\t\t\t\t\tawsSecretKey?: string | undefined\n\t\t\t\t\t\t\t\tawsSessionToken?: string | undefined\n\t\t\t\t\t\t\t\tawsRegion?: string | undefined\n\t\t\t\t\t\t\t\tawsUseCrossRegionInference?: boolean | undefined\n\t\t\t\t\t\t\t\tawsUsePromptCache?: boolean | undefined\n\t\t\t\t\t\t\t\tawsProfile?: string | undefined\n\t\t\t\t\t\t\t\tawsUseProfile?: boolean | undefined\n\t\t\t\t\t\t\t\tawsCustomArn?: string | undefined\n\t\t\t\t\t\t\t\tvertexKeyFile?: string | undefined\n\t\t\t\t\t\t\t\tvertexJsonCredentials?: string | undefined\n\t\t\t\t\t\t\t\tvertexProjectId?: string | undefined\n\t\t\t\t\t\t\t\tvertexRegion?: string | undefined\n\t\t\t\t\t\t\t\topenAiBaseUrl?: string | undefined\n\t\t\t\t\t\t\t\topenAiApiKey?: string | undefined\n\t\t\t\t\t\t\t\topenAiLegacyFormat?: boolean | undefined\n\t\t\t\t\t\t\t\topenAiR1FormatEnabled?: boolean | undefined\n\t\t\t\t\t\t\t\topenAiModelId?: string | undefined\n\t\t\t\t\t\t\t\topenAiCustomModelInfo?:\n\t\t\t\t\t\t\t\t\t| ({\n\t\t\t\t\t\t\t\t\t\t\tmaxTokens?: (number | null) | undefined\n\t\t\t\t\t\t\t\t\t\t\tmaxThinkingTokens?: (number | null) | undefined\n\t\t\t\t\t\t\t\t\t\t\tcontextWindow: number\n\t\t\t\t\t\t\t\t\t\t\tsupportsImages?: boolean | undefined\n\t\t\t\t\t\t\t\t\t\t\tsupportsComputerUse?: boolean | undefined\n\t\t\t\t\t\t\t\t\t\t\tsupportsPromptCache: boolean\n\t\t\t\t\t\t\t\t\t\t\tinputPrice?: number | undefined\n\t\t\t\t\t\t\t\t\t\t\toutputPrice?: number | undefined\n\t\t\t\t\t\t\t\t\t\t\tcacheWritesPrice?: number | undefined\n\t\t\t\t\t\t\t\t\t\t\tcacheReadsPrice?: number | undefined\n\t\t\t\t\t\t\t\t\t\t\tdescription?: string | undefined\n\t\t\t\t\t\t\t\t\t\t\treasoningEffort?: (\"low\" | \"medium\" | \"high\") | undefined\n\t\t\t\t\t\t\t\t\t\t\tthinking?: boolean | undefined\n\t\t\t\t\t\t\t\t\t\t\tminTokensPerCachePoint?: number | undefined\n\t\t\t\t\t\t\t\t\t\t\tmaxCachePoints?: number | undefined\n\t\t\t\t\t\t\t\t\t\t\tcachableFields?: string[] | undefined\n\t\t\t\t\t\t\t\t\t\t\ttiers?:\n\t\t\t\t\t\t\t\t\t\t\t\t| {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontextWindow: number\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tinputPrice?: number | undefined\n\t\t\t\t\t\t\t\t\t\t\t\t\t\toutputPrice?: number | undefined\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcacheWritesPrice?: number | undefined\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcacheReadsPrice?: number | undefined\n\t\t\t\t\t\t\t\t\t\t\t\t }[]\n\t\t\t\t\t\t\t\t\t\t\t\t| undefined\n\t\t\t\t\t\t\t\t\t } | null)\n\t\t\t\t\t\t\t\t\t| undefined\n\t\t\t\t\t\t\t\topenAiUseAzure?: boolean | undefined\n\t\t\t\t\t\t\t\tazureApiVersion?: string | undefined\n\t\t\t\t\t\t\t\topenAiStreamingEnabled?: boolean | undefined\n\t\t\t\t\t\t\t\tenableReasoningEffort?: boolean | undefined\n\t\t\t\t\t\t\t\topenAiHostHeader?: string | undefined\n\t\t\t\t\t\t\t\topenAiHeaders?:\n\t\t\t\t\t\t\t\t\t| {\n\t\t\t\t\t\t\t\t\t\t\t[x: string]: string\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t| undefined\n\t\t\t\t\t\t\t\tollamaModelId?: string | undefined\n\t\t\t\t\t\t\t\tollamaBaseUrl?: string | undefined\n\t\t\t\t\t\t\t\tvsCodeLmModelSelector?:\n\t\t\t\t\t\t\t\t\t| {\n\t\t\t\t\t\t\t\t\t\t\tvendor?: string | undefined\n\t\t\t\t\t\t\t\t\t\t\tfamily?: string | undefined\n\t\t\t\t\t\t\t\t\t\t\tversion?: string | undefined\n\t\t\t\t\t\t\t\t\t\t\tid?: string | undefined\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t| undefined\n\t\t\t\t\t\t\t\tlmStudioModelId?: string | undefined\n\t\t\t\t\t\t\t\tlmStudioBaseUrl?: string | undefined\n\t\t\t\t\t\t\t\tlmStudioDraftModelId?: string | undefined\n\t\t\t\t\t\t\t\tlmStudioSpeculativeDecodingEnabled?: boolean | undefined\n\t\t\t\t\t\t\t\tgeminiApiKey?: string | undefined\n\t\t\t\t\t\t\t\tgoogleGeminiBaseUrl?: string | undefined\n\t\t\t\t\t\t\t\topenAiNativeApiKey?: string | undefined\n\t\t\t\t\t\t\t\topenAiNativeBaseUrl?: string | undefined\n\t\t\t\t\t\t\t\tmistralApiKey?: string | undefined\n\t\t\t\t\t\t\t\tmistralCodestralUrl?: string | undefined\n\t\t\t\t\t\t\t\tdeepSeekBaseUrl?: string | undefined\n\t\t\t\t\t\t\t\tdeepSeekApiKey?: string | undefined\n\t\t\t\t\t\t\t\tunboundApiKey?: string | undefined\n\t\t\t\t\t\t\t\tunboundModelId?: string | undefined\n\t\t\t\t\t\t\t\trequestyApiKey?: string | undefined\n\t\t\t\t\t\t\t\trequestyModelId?: string | undefined\n\t\t\t\t\t\t\t\tfakeAi?: unknown | undefined\n\t\t\t\t\t\t\t\txaiApiKey?: string | undefined\n\t\t\t\t\t\t\t\tgroqApiKey?: string | undefined\n\t\t\t\t\t\t\t\tchutesApiKey?: string | undefined\n\t\t\t\t\t\t\t\tlitellmBaseUrl?: string | undefined\n\t\t\t\t\t\t\t\tlitellmApiKey?: string | undefined\n\t\t\t\t\t\t\t\tlitellmModelId?: string | undefined\n\t\t\t\t\t\t\t\tcurrentApiConfigName?: string | undefined\n\t\t\t\t\t\t\t\tlistApiConfigMeta?:\n\t\t\t\t\t\t\t\t\t| {\n\t\t\t\t\t\t\t\t\t\t\tid: string\n\t\t\t\t\t\t\t\t\t\t\tname: string\n\t\t\t\t\t\t\t\t\t\t\tapiProvider?:\n\t\t\t\t\t\t\t\t\t\t\t\t| (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t| \"anthropic\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t| \"glama\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t| \"openrouter\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t| \"bedrock\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t| \"vertex\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t| \"openai\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t| \"ollama\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t| \"vscode-lm\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t| \"lmstudio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t| \"gemini\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t| \"openai-native\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t| \"mistral\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t| \"deepseek\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t| \"unbound\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t| \"requesty\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t| \"human-relay\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t| \"fake-ai\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t| \"xai\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t| \"groq\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t| \"chutes\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t| \"litellm\"\n\t\t\t\t\t\t\t\t\t\t\t\t )\n\t\t\t\t\t\t\t\t\t\t\t\t| undefined\n\t\t\t\t\t\t\t\t\t }[]\n\t\t\t\t\t\t\t\t\t| undefined\n\t\t\t\t\t\t\t\tpinnedApiConfigs?:\n\t\t\t\t\t\t\t\t\t| {\n\t\t\t\t\t\t\t\t\t\t\t[x: string]: boolean\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t| undefined\n\t\t\t\t\t\t\t\tlastShownAnnouncementId?: string | undefined\n\t\t\t\t\t\t\t\tcustomInstructions?: string | undefined\n\t\t\t\t\t\t\t\ttaskHistory?:\n\t\t\t\t\t\t\t\t\t| {\n\t\t\t\t\t\t\t\t\t\t\tid: string\n\t\t\t\t\t\t\t\t\t\t\tnumber: number\n\t\t\t\t\t\t\t\t\t\t\tts: number\n\t\t\t\t\t\t\t\t\t\t\ttask: string\n\t\t\t\t\t\t\t\t\t\t\ttokensIn: number\n\t\t\t\t\t\t\t\t\t\t\ttokensOut: number\n\t\t\t\t\t\t\t\t\t\t\tcacheWrites?: number | undefined\n\t\t\t\t\t\t\t\t\t\t\tcacheReads?: number | undefined\n\t\t\t\t\t\t\t\t\t\t\ttotalCost: number\n\t\t\t\t\t\t\t\t\t\t\tsize?: number | undefined\n\t\t\t\t\t\t\t\t\t\t\tworkspace?: string | undefined\n\t\t\t\t\t\t\t\t\t }[]\n\t\t\t\t\t\t\t\t\t| undefined\n\t\t\t\t\t\t\t\tautoApprovalEnabled?: boolean | undefined\n\t\t\t\t\t\t\t\talwaysAllowReadOnly?: boolean | undefined\n\t\t\t\t\t\t\t\talwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined\n\t\t\t\t\t\t\t\talwaysAllowWrite?: boolean | undefined\n\t\t\t\t\t\t\t\talwaysAllowWriteOutsideWorkspace?: boolean | undefined\n\t\t\t\t\t\t\t\twriteDelayMs?: number | undefined\n\t\t\t\t\t\t\t\talwaysAllowBrowser?: boolean | undefined\n\t\t\t\t\t\t\t\talwaysApproveResubmit?: boolean | undefined\n\t\t\t\t\t\t\t\trequestDelaySeconds?: number | undefined\n\t\t\t\t\t\t\t\talwaysAllowMcp?: boolean | undefined\n\t\t\t\t\t\t\t\talwaysAllowModeSwitch?: boolean | undefined\n\t\t\t\t\t\t\t\talwaysAllowSubtasks?: boolean | undefined\n\t\t\t\t\t\t\t\talwaysAllowExecute?: boolean | undefined\n\t\t\t\t\t\t\t\tallowedCommands?: string[] | undefined\n\t\t\t\t\t\t\t\tbrowserToolEnabled?: boolean | undefined\n\t\t\t\t\t\t\t\tbrowserViewportSize?: string | undefined\n\t\t\t\t\t\t\t\tscreenshotQuality?: number | undefined\n\t\t\t\t\t\t\t\tremoteBrowserEnabled?: boolean | undefined\n\t\t\t\t\t\t\t\tremoteBrowserHost?: string | undefined\n\t\t\t\t\t\t\t\tcachedChromeHostUrl?: string | undefined\n\t\t\t\t\t\t\t\tenableCheckpoints?: boolean | undefined\n\t\t\t\t\t\t\t\tttsEnabled?: boolean | undefined\n\t\t\t\t\t\t\t\tttsSpeed?: number | undefined\n\t\t\t\t\t\t\t\tsoundEnabled?: boolean | undefined\n\t\t\t\t\t\t\t\tsoundVolume?: number | undefined\n\t\t\t\t\t\t\t\tmaxOpenTabsContext?: number | undefined\n\t\t\t\t\t\t\t\tmaxWorkspaceFiles?: number | undefined\n\t\t\t\t\t\t\t\tshowRooIgnoredFiles?: boolean | undefined\n\t\t\t\t\t\t\t\tmaxReadFileLine?: number | undefined\n\t\t\t\t\t\t\t\tterminalOutputLineLimit?: number | undefined\n\t\t\t\t\t\t\t\tterminalShellIntegrationTimeout?: number | undefined\n\t\t\t\t\t\t\t\tterminalShellIntegrationDisabled?: boolean | undefined\n\t\t\t\t\t\t\t\tterminalCommandDelay?: number | undefined\n\t\t\t\t\t\t\t\tterminalPowershellCounter?: boolean | undefined\n\t\t\t\t\t\t\t\tterminalZshClearEolMark?: boolean | undefined\n\t\t\t\t\t\t\t\tterminalZshOhMy?: boolean | undefined\n\t\t\t\t\t\t\t\tterminalZshP10k?: boolean | undefined\n\t\t\t\t\t\t\t\tterminalZdotdir?: boolean | undefined\n\t\t\t\t\t\t\t\tterminalCompressProgressBar?: boolean | undefined\n\t\t\t\t\t\t\t\texperiments?:\n\t\t\t\t\t\t\t\t\t| {\n\t\t\t\t\t\t\t\t\t\t\tpowerSteering: boolean\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t| undefined\n\t\t\t\t\t\t\t\tlanguage?:\n\t\t\t\t\t\t\t\t\t| (\n\t\t\t\t\t\t\t\t\t\t\t| \"ca\"\n\t\t\t\t\t\t\t\t\t\t\t| \"de\"\n\t\t\t\t\t\t\t\t\t\t\t| \"en\"\n\t\t\t\t\t\t\t\t\t\t\t| \"es\"\n\t\t\t\t\t\t\t\t\t\t\t| \"fr\"\n\t\t\t\t\t\t\t\t\t\t\t| \"hi\"\n\t\t\t\t\t\t\t\t\t\t\t| \"it\"\n\t\t\t\t\t\t\t\t\t\t\t| \"ja\"\n\t\t\t\t\t\t\t\t\t\t\t| \"ko\"\n\t\t\t\t\t\t\t\t\t\t\t| \"nl\"\n\t\t\t\t\t\t\t\t\t\t\t| \"pl\"\n\t\t\t\t\t\t\t\t\t\t\t| \"pt-BR\"\n\t\t\t\t\t\t\t\t\t\t\t| \"ru\"\n\t\t\t\t\t\t\t\t\t\t\t| \"tr\"\n\t\t\t\t\t\t\t\t\t\t\t| \"vi\"\n\t\t\t\t\t\t\t\t\t\t\t| \"zh-CN\"\n\t\t\t\t\t\t\t\t\t\t\t| \"zh-TW\"\n\t\t\t\t\t\t\t\t\t )\n\t\t\t\t\t\t\t\t\t| undefined\n\t\t\t\t\t\t\t\ttelemetrySetting?: (\"unset\" | \"enabled\" | \"disabled\") | undefined\n\t\t\t\t\t\t\t\tmcpEnabled?: boolean | undefined\n\t\t\t\t\t\t\t\tenableMcpServerCreation?: boolean | undefined\n\t\t\t\t\t\t\t\tmode?: string | undefined\n\t\t\t\t\t\t\t\tmodeApiConfigs?:\n\t\t\t\t\t\t\t\t\t| {\n\t\t\t\t\t\t\t\t\t\t\t[x: string]: string\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t| undefined\n\t\t\t\t\t\t\t\tcustomModes?:\n\t\t\t\t\t\t\t\t\t| {\n\t\t\t\t\t\t\t\t\t\t\tslug: string\n\t\t\t\t\t\t\t\t\t\t\tname: string\n\t\t\t\t\t\t\t\t\t\t\troleDefinition: string\n\t\t\t\t\t\t\t\t\t\t\tcustomInstructions?: string | undefined\n\t\t\t\t\t\t\t\t\t\t\tgroups: (\n\t\t\t\t\t\t\t\t\t\t\t\t| (\"read\" | \"edit\" | \"browser\" | \"command\" | \"mcp\" | \"modes\")\n\t\t\t\t\t\t\t\t\t\t\t\t| [\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"read\" | \"edit\" | \"browser\" | \"command\" | \"mcp\" | \"modes\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfileRegex?: string | undefined\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdescription?: string | undefined\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t ]\n\t\t\t\t\t\t\t\t\t\t\t)[]\n\t\t\t\t\t\t\t\t\t\t\tsource?: (\"global\" | \"project\") | undefined\n\t\t\t\t\t\t\t\t\t }[]\n\t\t\t\t\t\t\t\t\t| undefined\n\t\t\t\t\t\t\t\tcustomModePrompts?:\n\t\t\t\t\t\t\t\t\t| {\n\t\t\t\t\t\t\t\t\t\t\t[x: string]:\n\t\t\t\t\t\t\t\t\t\t\t\t| {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\troleDefinition?: string | undefined\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcustomInstructions?: string | undefined\n\t\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\t\t| undefined\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t| undefined\n\t\t\t\t\t\t\t\tcustomSupportPrompts?:\n\t\t\t\t\t\t\t\t\t| {\n\t\t\t\t\t\t\t\t\t\t\t[x: string]: string | undefined\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t| undefined\n\t\t\t\t\t\t\t\tenhancementApiConfigId?: string | undefined\n\t\t\t\t\t\t\t\thistoryPreviewCollapsed?: boolean | undefined\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttext: string\n\t\t\t\t\t\t\timages?: string[] | undefined\n\t\t\t\t\t\t\tnewTab?: boolean | undefined\n\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t| {\n\t\t\t\t\t\tcommandName: \"CancelTask\"\n\t\t\t\t\t\tdata: string\n\t\t\t\t }\n\t\t\t\t| {\n\t\t\t\t\t\tcommandName: \"CloseTask\"\n\t\t\t\t\t\tdata: string\n\t\t\t\t }\n\t }\n\t| {\n\t\t\ttype: \"TaskEvent\"\n\t\t\torigin: \"server\"\n\t\t\trelayClientId?: string | undefined\n\t\t\tdata:\n\t\t\t\t| {\n\t\t\t\t\t\teventName: \"message\"\n\t\t\t\t\t\tpayload: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttaskId: string\n\t\t\t\t\t\t\t\taction: \"created\" | \"updated\"\n\t\t\t\t\t\t\t\tmessage: {\n\t\t\t\t\t\t\t\t\tts: number\n\t\t\t\t\t\t\t\t\ttype: \"ask\" | \"say\"\n\t\t\t\t\t\t\t\t\task?:\n\t\t\t\t\t\t\t\t\t\t| (\n\t\t\t\t\t\t\t\t\t\t\t\t| \"followup\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"command\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"command_output\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"completion_result\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"tool\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"api_req_failed\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"resume_task\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"resume_completed_task\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"mistake_limit_reached\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"browser_action_launch\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"use_mcp_server\"\n\t\t\t\t\t\t\t\t\t\t )\n\t\t\t\t\t\t\t\t\t\t| undefined\n\t\t\t\t\t\t\t\t\tsay?:\n\t\t\t\t\t\t\t\t\t\t| (\n\t\t\t\t\t\t\t\t\t\t\t\t| \"error\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"api_req_started\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"api_req_finished\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"api_req_retried\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"api_req_retry_delayed\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"api_req_deleted\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"text\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"reasoning\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"completion_result\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"user_feedback\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"user_feedback_diff\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"command_output\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"shell_integration_warning\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"browser_action\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"browser_action_result\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"mcp_server_request_started\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"mcp_server_response\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"subtask_result\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"checkpoint_saved\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"rooignore_error\"\n\t\t\t\t\t\t\t\t\t\t\t\t| \"diff_error\"\n\t\t\t\t\t\t\t\t\t\t )\n\t\t\t\t\t\t\t\t\t\t| undefined\n\t\t\t\t\t\t\t\t\ttext?: string | undefined\n\t\t\t\t\t\t\t\t\timages?: string[] | undefined\n\t\t\t\t\t\t\t\t\tpartial?: boolean | undefined\n\t\t\t\t\t\t\t\t\treasoning?: string | undefined\n\t\t\t\t\t\t\t\t\tconversationHistoryIndex?: number | undefined\n\t\t\t\t\t\t\t\t\tcheckpoint?:\n\t\t\t\t\t\t\t\t\t\t| {\n\t\t\t\t\t\t\t\t\t\t\t\t[x: string]: unknown\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t| undefined\n\t\t\t\t\t\t\t\t\tprogressStatus?:\n\t\t\t\t\t\t\t\t\t\t| {\n\t\t\t\t\t\t\t\t\t\t\t\ticon?: string | undefined\n\t\t\t\t\t\t\t\t\t\t\t\ttext?: string | undefined\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t| undefined\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t]\n\t\t\t\t }\n\t\t\t\t| {\n\t\t\t\t\t\teventName: \"taskCreated\"\n\t\t\t\t\t\tpayload: [string]\n\t\t\t\t }\n\t\t\t\t| {\n\t\t\t\t\t\teventName: \"taskStarted\"\n\t\t\t\t\t\tpayload: [string]\n\t\t\t\t }\n\t\t\t\t| {\n\t\t\t\t\t\teventName: \"taskModeSwitched\"\n\t\t\t\t\t\tpayload: [string, string]\n\t\t\t\t }\n\t\t\t\t| {\n\t\t\t\t\t\teventName: \"taskPaused\"\n\t\t\t\t\t\tpayload: [string]\n\t\t\t\t }\n\t\t\t\t| {\n\t\t\t\t\t\teventName: \"taskUnpaused\"\n\t\t\t\t\t\tpayload: [string]\n\t\t\t\t }\n\t\t\t\t| {\n\t\t\t\t\t\teventName: \"taskAskResponded\"\n\t\t\t\t\t\tpayload: [string]\n\t\t\t\t }\n\t\t\t\t| {\n\t\t\t\t\t\teventName: \"taskAborted\"\n\t\t\t\t\t\tpayload: [string]\n\t\t\t\t }\n\t\t\t\t| {\n\t\t\t\t\t\teventName: \"taskSpawned\"\n\t\t\t\t\t\tpayload: [string, string]\n\t\t\t\t }\n\t\t\t\t| {\n\t\t\t\t\t\teventName: \"taskCompleted\"\n\t\t\t\t\t\tpayload: [\n\t\t\t\t\t\t\tstring,\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttotalTokensIn: number\n\t\t\t\t\t\t\t\ttotalTokensOut: number\n\t\t\t\t\t\t\t\ttotalCacheWrites?: number | undefined\n\t\t\t\t\t\t\t\ttotalCacheReads?: number | undefined\n\t\t\t\t\t\t\t\ttotalCost: number\n\t\t\t\t\t\t\t\tcontextTokens: number\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t[x: string]: {\n\t\t\t\t\t\t\t\t\tattempts: number\n\t\t\t\t\t\t\t\t\tfailures: number\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t]\n\t\t\t\t }\n\t\t\t\t| {\n\t\t\t\t\t\teventName: \"taskTokenUsageUpdated\"\n\t\t\t\t\t\tpayload: [\n\t\t\t\t\t\t\tstring,\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttotalTokensIn: number\n\t\t\t\t\t\t\t\ttotalTokensOut: number\n\t\t\t\t\t\t\t\ttotalCacheWrites?: number | undefined\n\t\t\t\t\t\t\t\ttotalCacheReads?: number | undefined\n\t\t\t\t\t\t\t\ttotalCost: number\n\t\t\t\t\t\t\t\tcontextTokens: number\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t]\n\t\t\t\t }\n\t }\n\ntype TaskCommand =\n\t| {\n\t\t\tcommandName: \"StartNewTask\"\n\t\t\tdata: {\n\t\t\t\tconfiguration: {\n\t\t\t\t\tapiProvider?:\n\t\t\t\t\t\t| (\n\t\t\t\t\t\t\t\t| \"anthropic\"\n\t\t\t\t\t\t\t\t| \"glama\"\n\t\t\t\t\t\t\t\t| \"openrouter\"\n\t\t\t\t\t\t\t\t| \"bedrock\"\n\t\t\t\t\t\t\t\t| \"vertex\"\n\t\t\t\t\t\t\t\t| \"openai\"\n\t\t\t\t\t\t\t\t| \"ollama\"\n\t\t\t\t\t\t\t\t| \"vscode-lm\"\n\t\t\t\t\t\t\t\t| \"lmstudio\"\n\t\t\t\t\t\t\t\t| \"gemini\"\n\t\t\t\t\t\t\t\t| \"openai-native\"\n\t\t\t\t\t\t\t\t| \"mistral\"\n\t\t\t\t\t\t\t\t| \"deepseek\"\n\t\t\t\t\t\t\t\t| \"unbound\"\n\t\t\t\t\t\t\t\t| \"requesty\"\n\t\t\t\t\t\t\t\t| \"human-relay\"\n\t\t\t\t\t\t\t\t| \"fake-ai\"\n\t\t\t\t\t\t\t\t| \"xai\"\n\t\t\t\t\t\t\t\t| \"groq\"\n\t\t\t\t\t\t\t\t| \"chutes\"\n\t\t\t\t\t\t\t\t| \"litellm\"\n\t\t\t\t\t\t )\n\t\t\t\t\t\t| undefined\n\t\t\t\t\tincludeMaxTokens?: boolean | undefined\n\t\t\t\t\treasoningEffort?: (\"low\" | \"medium\" | \"high\") | undefined\n\t\t\t\t\tdiffEnabled?: boolean | undefined\n\t\t\t\t\tfuzzyMatchThreshold?: number | undefined\n\t\t\t\t\tmodelTemperature?: (number | null) | undefined\n\t\t\t\t\trateLimitSeconds?: number | undefined\n\t\t\t\t\tmodelMaxTokens?: number | undefined\n\t\t\t\t\tmodelMaxThinkingTokens?: number | undefined\n\t\t\t\t\tapiModelId?: string | undefined\n\t\t\t\t\tapiKey?: string | undefined\n\t\t\t\t\tanthropicBaseUrl?: string | undefined\n\t\t\t\t\tanthropicUseAuthToken?: boolean | undefined\n\t\t\t\t\tglamaModelId?: string | undefined\n\t\t\t\t\tglamaApiKey?: string | undefined\n\t\t\t\t\topenRouterApiKey?: string | undefined\n\t\t\t\t\topenRouterModelId?: string | undefined\n\t\t\t\t\topenRouterBaseUrl?: string | undefined\n\t\t\t\t\topenRouterSpecificProvider?: string | undefined\n\t\t\t\t\topenRouterUseMiddleOutTransform?: boolean | undefined\n\t\t\t\t\tawsAccessKey?: string | undefined\n\t\t\t\t\tawsSecretKey?: string | undefined\n\t\t\t\t\tawsSessionToken?: string | undefined\n\t\t\t\t\tawsRegion?: string | undefined\n\t\t\t\t\tawsUseCrossRegionInference?: boolean | undefined\n\t\t\t\t\tawsUsePromptCache?: boolean | undefined\n\t\t\t\t\tawsProfile?: string | undefined\n\t\t\t\t\tawsUseProfile?: boolean | undefined\n\t\t\t\t\tawsCustomArn?: string | undefined\n\t\t\t\t\tvertexKeyFile?: string | undefined\n\t\t\t\t\tvertexJsonCredentials?: string | undefined\n\t\t\t\t\tvertexProjectId?: string | undefined\n\t\t\t\t\tvertexRegion?: string | undefined\n\t\t\t\t\topenAiBaseUrl?: string | undefined\n\t\t\t\t\topenAiApiKey?: string | undefined\n\t\t\t\t\topenAiLegacyFormat?: boolean | undefined\n\t\t\t\t\topenAiR1FormatEnabled?: boolean | undefined\n\t\t\t\t\topenAiModelId?: string | undefined\n\t\t\t\t\topenAiCustomModelInfo?:\n\t\t\t\t\t\t| ({\n\t\t\t\t\t\t\t\tmaxTokens?: (number | null) | undefined\n\t\t\t\t\t\t\t\tmaxThinkingTokens?: (number | null) | undefined\n\t\t\t\t\t\t\t\tcontextWindow: number\n\t\t\t\t\t\t\t\tsupportsImages?: boolean | undefined\n\t\t\t\t\t\t\t\tsupportsComputerUse?: boolean | undefined\n\t\t\t\t\t\t\t\tsupportsPromptCache: boolean\n\t\t\t\t\t\t\t\tinputPrice?: number | undefined\n\t\t\t\t\t\t\t\toutputPrice?: number | undefined\n\t\t\t\t\t\t\t\tcacheWritesPrice?: number | undefined\n\t\t\t\t\t\t\t\tcacheReadsPrice?: number | undefined\n\t\t\t\t\t\t\t\tdescription?: string | undefined\n\t\t\t\t\t\t\t\treasoningEffort?: (\"low\" | \"medium\" | \"high\") | undefined\n\t\t\t\t\t\t\t\tthinking?: boolean | undefined\n\t\t\t\t\t\t\t\tminTokensPerCachePoint?: number | undefined\n\t\t\t\t\t\t\t\tmaxCachePoints?: number | undefined\n\t\t\t\t\t\t\t\tcachableFields?: string[] | undefined\n\t\t\t\t\t\t\t\ttiers?:\n\t\t\t\t\t\t\t\t\t| {\n\t\t\t\t\t\t\t\t\t\t\tcontextWindow: number\n\t\t\t\t\t\t\t\t\t\t\tinputPrice?: number | undefined\n\t\t\t\t\t\t\t\t\t\t\toutputPrice?: number | undefined\n\t\t\t\t\t\t\t\t\t\t\tcacheWritesPrice?: number | undefined\n\t\t\t\t\t\t\t\t\t\t\tcacheReadsPrice?: number | undefined\n\t\t\t\t\t\t\t\t\t }[]\n\t\t\t\t\t\t\t\t\t| undefined\n\t\t\t\t\t\t } | null)\n\t\t\t\t\t\t| undefined\n\t\t\t\t\topenAiUseAzure?: boolean | undefined\n\t\t\t\t\tazureApiVersion?: string | undefined\n\t\t\t\t\topenAiStreamingEnabled?: boolean | undefined\n\t\t\t\t\tenableReasoningEffort?: boolean | undefined\n\t\t\t\t\topenAiHostHeader?: string | undefined\n\t\t\t\t\topenAiHeaders?:\n\t\t\t\t\t\t| {\n\t\t\t\t\t\t\t\t[x: string]: string\n\t\t\t\t\t\t }\n\t\t\t\t\t\t| undefined\n\t\t\t\t\tollamaModelId?: string | undefined\n\t\t\t\t\tollamaBaseUrl?: string | undefined\n\t\t\t\t\tvsCodeLmModelSelector?:\n\t\t\t\t\t\t| {\n\t\t\t\t\t\t\t\tvendor?: string | undefined\n\t\t\t\t\t\t\t\tfamily?: string | undefined\n\t\t\t\t\t\t\t\tversion?: string | undefined\n\t\t\t\t\t\t\t\tid?: string | undefined\n\t\t\t\t\t\t }\n\t\t\t\t\t\t| undefined\n\t\t\t\t\tlmStudioModelId?: string | undefined\n\t\t\t\t\tlmStudioBaseUrl?: string | undefined\n\t\t\t\t\tlmStudioDraftModelId?: string | undefined\n\t\t\t\t\tlmStudioSpeculativeDecodingEnabled?: boolean | undefined\n\t\t\t\t\tgeminiApiKey?: string | undefined\n\t\t\t\t\tgoogleGeminiBaseUrl?: string | undefined\n\t\t\t\t\topenAiNativeApiKey?: string | undefined\n\t\t\t\t\topenAiNativeBaseUrl?: string | undefined\n\t\t\t\t\tmistralApiKey?: string | undefined\n\t\t\t\t\tmistralCodestralUrl?: string | undefined\n\t\t\t\t\tdeepSeekBaseUrl?: string | undefined\n\t\t\t\t\tdeepSeekApiKey?: string | undefined\n\t\t\t\t\tunboundApiKey?: string | undefined\n\t\t\t\t\tunboundModelId?: string | undefined\n\t\t\t\t\trequestyApiKey?: string | undefined\n\t\t\t\t\trequestyModelId?: string | undefined\n\t\t\t\t\tfakeAi?: unknown | undefined\n\t\t\t\t\txaiApiKey?: string | undefined\n\t\t\t\t\tgroqApiKey?: string | undefined\n\t\t\t\t\tchutesApiKey?: string | undefined\n\t\t\t\t\tlitellmBaseUrl?: string | undefined\n\t\t\t\t\tlitellmApiKey?: string | undefined\n\t\t\t\t\tlitellmModelId?: string | undefined\n\t\t\t\t\tcurrentApiConfigName?: string | undefined\n\t\t\t\t\tlistApiConfigMeta?:\n\t\t\t\t\t\t| {\n\t\t\t\t\t\t\t\tid: string\n\t\t\t\t\t\t\t\tname: string\n\t\t\t\t\t\t\t\tapiProvider?:\n\t\t\t\t\t\t\t\t\t| (\n\t\t\t\t\t\t\t\t\t\t\t| \"anthropic\"\n\t\t\t\t\t\t\t\t\t\t\t| \"glama\"\n\t\t\t\t\t\t\t\t\t\t\t| \"openrouter\"\n\t\t\t\t\t\t\t\t\t\t\t| \"bedrock\"\n\t\t\t\t\t\t\t\t\t\t\t| \"vertex\"\n\t\t\t\t\t\t\t\t\t\t\t| \"openai\"\n\t\t\t\t\t\t\t\t\t\t\t| \"ollama\"\n\t\t\t\t\t\t\t\t\t\t\t| \"vscode-lm\"\n\t\t\t\t\t\t\t\t\t\t\t| \"lmstudio\"\n\t\t\t\t\t\t\t\t\t\t\t| \"gemini\"\n\t\t\t\t\t\t\t\t\t\t\t| \"openai-native\"\n\t\t\t\t\t\t\t\t\t\t\t| \"mistral\"\n\t\t\t\t\t\t\t\t\t\t\t| \"deepseek\"\n\t\t\t\t\t\t\t\t\t\t\t| \"unbound\"\n\t\t\t\t\t\t\t\t\t\t\t| \"requesty\"\n\t\t\t\t\t\t\t\t\t\t\t| \"human-relay\"\n\t\t\t\t\t\t\t\t\t\t\t| \"fake-ai\"\n\t\t\t\t\t\t\t\t\t\t\t| \"xai\"\n\t\t\t\t\t\t\t\t\t\t\t| \"groq\"\n\t\t\t\t\t\t\t\t\t\t\t| \"chutes\"\n\t\t\t\t\t\t\t\t\t\t\t| \"litellm\"\n\t\t\t\t\t\t\t\t\t )\n\t\t\t\t\t\t\t\t\t| undefined\n\t\t\t\t\t\t }[]\n\t\t\t\t\t\t| undefined\n\t\t\t\t\tpinnedApiConfigs?:\n\t\t\t\t\t\t| {\n\t\t\t\t\t\t\t\t[x: string]: boolean\n\t\t\t\t\t\t }\n\t\t\t\t\t\t| undefined\n\t\t\t\t\tlastShownAnnouncementId?: string | undefined\n\t\t\t\t\tcustomInstructions?: string | undefined\n\t\t\t\t\ttaskHistory?:\n\t\t\t\t\t\t| {\n\t\t\t\t\t\t\t\tid: string\n\t\t\t\t\t\t\t\tnumber: number\n\t\t\t\t\t\t\t\tts: number\n\t\t\t\t\t\t\t\ttask: string\n\t\t\t\t\t\t\t\ttokensIn: number\n\t\t\t\t\t\t\t\ttokensOut: number\n\t\t\t\t\t\t\t\tcacheWrites?: number | undefined\n\t\t\t\t\t\t\t\tcacheReads?: number | undefined\n\t\t\t\t\t\t\t\ttotalCost: number\n\t\t\t\t\t\t\t\tsize?: number | undefined\n\t\t\t\t\t\t\t\tworkspace?: string | undefined\n\t\t\t\t\t\t }[]\n\t\t\t\t\t\t| undefined\n\t\t\t\t\tautoApprovalEnabled?: boolean | undefined\n\t\t\t\t\talwaysAllowReadOnly?: boolean | undefined\n\t\t\t\t\talwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined\n\t\t\t\t\talwaysAllowWrite?: boolean | undefined\n\t\t\t\t\talwaysAllowWriteOutsideWorkspace?: boolean | undefined\n\t\t\t\t\twriteDelayMs?: number | undefined\n\t\t\t\t\talwaysAllowBrowser?: boolean | undefined\n\t\t\t\t\talwaysApproveResubmit?: boolean | undefined\n\t\t\t\t\trequestDelaySeconds?: number | undefined\n\t\t\t\t\talwaysAllowMcp?: boolean | undefined\n\t\t\t\t\talwaysAllowModeSwitch?: boolean | undefined\n\t\t\t\t\talwaysAllowSubtasks?: boolean | undefined\n\t\t\t\t\talwaysAllowExecute?: boolean | undefined\n\t\t\t\t\tallowedCommands?: string[] | undefined\n\t\t\t\t\tbrowserToolEnabled?: boolean | undefined\n\t\t\t\t\tbrowserViewportSize?: string | undefined\n\t\t\t\t\tscreenshotQuality?: number | undefined\n\t\t\t\t\tremoteBrowserEnabled?: boolean | undefined\n\t\t\t\t\tremoteBrowserHost?: string | undefined\n\t\t\t\t\tcachedChromeHostUrl?: string | undefined\n\t\t\t\t\tenableCheckpoints?: boolean | undefined\n\t\t\t\t\tttsEnabled?: boolean | undefined\n\t\t\t\t\tttsSpeed?: number | undefined\n\t\t\t\t\tsoundEnabled?: boolean | undefined\n\t\t\t\t\tsoundVolume?: number | undefined\n\t\t\t\t\tmaxOpenTabsContext?: number | undefined\n\t\t\t\t\tmaxWorkspaceFiles?: number | undefined\n\t\t\t\t\tshowRooIgnoredFiles?: boolean | undefined\n\t\t\t\t\tmaxReadFileLine?: number | undefined\n\t\t\t\t\tterminalOutputLineLimit?: number | undefined\n\t\t\t\t\tterminalShellIntegrationTimeout?: number | undefined\n\t\t\t\t\tterminalShellIntegrationDisabled?: boolean | undefined\n\t\t\t\t\tterminalCommandDelay?: number | undefined\n\t\t\t\t\tterminalPowershellCounter?: boolean | undefined\n\t\t\t\t\tterminalZshClearEolMark?: boolean | undefined\n\t\t\t\t\tterminalZshOhMy?: boolean | undefined\n\t\t\t\t\tterminalZshP10k?: boolean | undefined\n\t\t\t\t\tterminalZdotdir?: boolean | undefined\n\t\t\t\t\tterminalCompressProgressBar?: boolean | undefined\n\t\t\t\t\texperiments?:\n\t\t\t\t\t\t| {\n\t\t\t\t\t\t\t\tpowerSteering: boolean\n\t\t\t\t\t\t }\n\t\t\t\t\t\t| undefined\n\t\t\t\t\tlanguage?:\n\t\t\t\t\t\t| (\n\t\t\t\t\t\t\t\t| \"ca\"\n\t\t\t\t\t\t\t\t| \"de\"\n\t\t\t\t\t\t\t\t| \"en\"\n\t\t\t\t\t\t\t\t| \"es\"\n\t\t\t\t\t\t\t\t| \"fr\"\n\t\t\t\t\t\t\t\t| \"hi\"\n\t\t\t\t\t\t\t\t| \"it\"\n\t\t\t\t\t\t\t\t| \"ja\"\n\t\t\t\t\t\t\t\t| \"ko\"\n\t\t\t\t\t\t\t\t| \"nl\"\n\t\t\t\t\t\t\t\t| \"pl\"\n\t\t\t\t\t\t\t\t| \"pt-BR\"\n\t\t\t\t\t\t\t\t| \"ru\"\n\t\t\t\t\t\t\t\t| \"tr\"\n\t\t\t\t\t\t\t\t| \"vi\"\n\t\t\t\t\t\t\t\t| \"zh-CN\"\n\t\t\t\t\t\t\t\t| \"zh-TW\"\n\t\t\t\t\t\t )\n\t\t\t\t\t\t| undefined\n\t\t\t\t\ttelemetrySetting?: (\"unset\" | \"enabled\" | \"disabled\") | undefined\n\t\t\t\t\tmcpEnabled?: boolean | undefined\n\t\t\t\t\tenableMcpServerCreation?: boolean | undefined\n\t\t\t\t\tmode?: string | undefined\n\t\t\t\t\tmodeApiConfigs?:\n\t\t\t\t\t\t| {\n\t\t\t\t\t\t\t\t[x: string]: string\n\t\t\t\t\t\t }\n\t\t\t\t\t\t| undefined\n\t\t\t\t\tcustomModes?:\n\t\t\t\t\t\t| {\n\t\t\t\t\t\t\t\tslug: string\n\t\t\t\t\t\t\t\tname: string\n\t\t\t\t\t\t\t\troleDefinition: string\n\t\t\t\t\t\t\t\tcustomInstructions?: string | undefined\n\t\t\t\t\t\t\t\tgroups: (\n\t\t\t\t\t\t\t\t\t| (\"read\" | \"edit\" | \"browser\" | \"command\" | \"mcp\" | \"modes\")\n\t\t\t\t\t\t\t\t\t| [\n\t\t\t\t\t\t\t\t\t\t\t\"read\" | \"edit\" | \"browser\" | \"command\" | \"mcp\" | \"modes\",\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tfileRegex?: string | undefined\n\t\t\t\t\t\t\t\t\t\t\t\tdescription?: string | undefined\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t ]\n\t\t\t\t\t\t\t\t)[]\n\t\t\t\t\t\t\t\tsource?: (\"global\" | \"project\") | undefined\n\t\t\t\t\t\t }[]\n\t\t\t\t\t\t| undefined\n\t\t\t\t\tcustomModePrompts?:\n\t\t\t\t\t\t| {\n\t\t\t\t\t\t\t\t[x: string]:\n\t\t\t\t\t\t\t\t\t| {\n\t\t\t\t\t\t\t\t\t\t\troleDefinition?: string | undefined\n\t\t\t\t\t\t\t\t\t\t\tcustomInstructions?: string | undefined\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t| undefined\n\t\t\t\t\t\t }\n\t\t\t\t\t\t| undefined\n\t\t\t\t\tcustomSupportPrompts?:\n\t\t\t\t\t\t| {\n\t\t\t\t\t\t\t\t[x: string]: string | undefined\n\t\t\t\t\t\t }\n\t\t\t\t\t\t| undefined\n\t\t\t\t\tenhancementApiConfigId?: string | undefined\n\t\t\t\t\thistoryPreviewCollapsed?: boolean | undefined\n\t\t\t\t}\n\t\t\t\ttext: string\n\t\t\t\timages?: string[] | undefined\n\t\t\t\tnewTab?: boolean | undefined\n\t\t\t}\n\t }\n\t| {\n\t\t\tcommandName: \"CancelTask\"\n\t\t\tdata: string\n\t }\n\t| {\n\t\t\tcommandName: \"CloseTask\"\n\t\t\tdata: string\n\t }\n\ntype TaskEvent =\n\t| {\n\t\t\teventName: \"message\"\n\t\t\tpayload: [\n\t\t\t\t{\n\t\t\t\t\ttaskId: string\n\t\t\t\t\taction: \"created\" | \"updated\"\n\t\t\t\t\tmessage: {\n\t\t\t\t\t\tts: number\n\t\t\t\t\t\ttype: \"ask\" | \"say\"\n\t\t\t\t\t\task?:\n\t\t\t\t\t\t\t| (\n\t\t\t\t\t\t\t\t\t| \"followup\"\n\t\t\t\t\t\t\t\t\t| \"command\"\n\t\t\t\t\t\t\t\t\t| \"command_output\"\n\t\t\t\t\t\t\t\t\t| \"completion_result\"\n\t\t\t\t\t\t\t\t\t| \"tool\"\n\t\t\t\t\t\t\t\t\t| \"api_req_failed\"\n\t\t\t\t\t\t\t\t\t| \"resume_task\"\n\t\t\t\t\t\t\t\t\t| \"resume_completed_task\"\n\t\t\t\t\t\t\t\t\t| \"mistake_limit_reached\"\n\t\t\t\t\t\t\t\t\t| \"browser_action_launch\"\n\t\t\t\t\t\t\t\t\t| \"use_mcp_server\"\n\t\t\t\t\t\t\t )\n\t\t\t\t\t\t\t| undefined\n\t\t\t\t\t\tsay?:\n\t\t\t\t\t\t\t| (\n\t\t\t\t\t\t\t\t\t| \"error\"\n\t\t\t\t\t\t\t\t\t| \"api_req_started\"\n\t\t\t\t\t\t\t\t\t| \"api_req_finished\"\n\t\t\t\t\t\t\t\t\t| \"api_req_retried\"\n\t\t\t\t\t\t\t\t\t| \"api_req_retry_delayed\"\n\t\t\t\t\t\t\t\t\t| \"api_req_deleted\"\n\t\t\t\t\t\t\t\t\t| \"text\"\n\t\t\t\t\t\t\t\t\t| \"reasoning\"\n\t\t\t\t\t\t\t\t\t| \"completion_result\"\n\t\t\t\t\t\t\t\t\t| \"user_feedback\"\n\t\t\t\t\t\t\t\t\t| \"user_feedback_diff\"\n\t\t\t\t\t\t\t\t\t| \"command_output\"\n\t\t\t\t\t\t\t\t\t| \"shell_integration_warning\"\n\t\t\t\t\t\t\t\t\t| \"browser_action\"\n\t\t\t\t\t\t\t\t\t| \"browser_action_result\"\n\t\t\t\t\t\t\t\t\t| \"mcp_server_request_started\"\n\t\t\t\t\t\t\t\t\t| \"mcp_server_response\"\n\t\t\t\t\t\t\t\t\t| \"subtask_result\"\n\t\t\t\t\t\t\t\t\t| \"checkpoint_saved\"\n\t\t\t\t\t\t\t\t\t| \"rooignore_error\"\n\t\t\t\t\t\t\t\t\t| \"diff_error\"\n\t\t\t\t\t\t\t )\n\t\t\t\t\t\t\t| undefined\n\t\t\t\t\t\ttext?: string | undefined\n\t\t\t\t\t\timages?: string[] | undefined\n\t\t\t\t\t\tpartial?: boolean | undefined\n\t\t\t\t\t\treasoning?: string | undefined\n\t\t\t\t\t\tconversationHistoryIndex?: number | undefined\n\t\t\t\t\t\tcheckpoint?:\n\t\t\t\t\t\t\t| {\n\t\t\t\t\t\t\t\t\t[x: string]: unknown\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t| undefined\n\t\t\t\t\t\tprogressStatus?:\n\t\t\t\t\t\t\t| {\n\t\t\t\t\t\t\t\t\ticon?: string | undefined\n\t\t\t\t\t\t\t\t\ttext?: string | undefined\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t| undefined\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t]\n\t }\n\t| {\n\t\t\teventName: \"taskCreated\"\n\t\t\tpayload: [string]\n\t }\n\t| {\n\t\t\teventName: \"taskStarted\"\n\t\t\tpayload: [string]\n\t }\n\t| {\n\t\t\teventName: \"taskModeSwitched\"\n\t\t\tpayload: [string, string]\n\t }\n\t| {\n\t\t\teventName: \"taskPaused\"\n\t\t\tpayload: [string]\n\t }\n\t| {\n\t\t\teventName: \"taskUnpaused\"\n\t\t\tpayload: [string]\n\t }\n\t| {\n\t\t\teventName: \"taskAskResponded\"\n\t\t\tpayload: [string]\n\t }\n\t| {\n\t\t\teventName: \"taskAborted\"\n\t\t\tpayload: [string]\n\t }\n\t| {\n\t\t\teventName: \"taskSpawned\"\n\t\t\tpayload: [string, string]\n\t }\n\t| {\n\t\t\teventName: \"taskCompleted\"\n\t\t\tpayload: [\n\t\t\t\tstring,\n\t\t\t\t{\n\t\t\t\t\ttotalTokensIn: number\n\t\t\t\t\ttotalTokensOut: number\n\t\t\t\t\ttotalCacheWrites?: number | undefined\n\t\t\t\t\ttotalCacheReads?: number | undefined\n\t\t\t\t\ttotalCost: number\n\t\t\t\t\tcontextTokens: number\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t[x: string]: {\n\t\t\t\t\t\tattempts: number\n\t\t\t\t\t\tfailures: number\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t]\n\t }\n\t| {\n\t\t\teventName: \"taskTokenUsageUpdated\"\n\t\t\tpayload: [\n\t\t\t\tstring,\n\t\t\t\t{\n\t\t\t\t\ttotalTokensIn: number\n\t\t\t\t\ttotalTokensOut: number\n\t\t\t\t\ttotalCacheWrites?: number | undefined\n\t\t\t\t\ttotalCacheReads?: number | undefined\n\t\t\t\t\ttotalCost: number\n\t\t\t\t\tcontextTokens: number\n\t\t\t\t},\n\t\t\t]\n\t }\n\n/**\n * RooCodeEvent\n */\ndeclare enum RooCodeEventName {\n\tMessage = \"message\",\n\tTaskCreated = \"taskCreated\",\n\tTaskStarted = \"taskStarted\",\n\tTaskModeSwitched = \"taskModeSwitched\",\n\tTaskPaused = \"taskPaused\",\n\tTaskUnpaused = \"taskUnpaused\",\n\tTaskAskResponded = \"taskAskResponded\",\n\tTaskAborted = \"taskAborted\",\n\tTaskSpawned = \"taskSpawned\",\n\tTaskCompleted = \"taskCompleted\",\n\tTaskTokenUsageUpdated = \"taskTokenUsageUpdated\",\n\tTaskToolFailed = \"taskToolFailed\",\n}\n/**\n * IpcMessage\n */\ndeclare enum IpcMessageType {\n\tConnect = \"Connect\",\n\tDisconnect = \"Disconnect\",\n\tAck = \"Ack\",\n\tTaskCommand = \"TaskCommand\",\n\tTaskEvent = \"TaskEvent\",\n}\ndeclare enum IpcOrigin {\n\tClient = \"client\",\n\tServer = \"server\",\n}\n\n/**\n * RooCodeAPI\n */\ntype RooCodeSettings = GlobalSettings & ProviderSettings\ninterface RooCodeAPI extends EventEmitter<RooCodeEvents> {\n\t/**\n\t * Starts a new task with an optional initial message and images.\n\t * @param task Optional initial task message.\n\t * @param images Optional array of image data URIs (e.g., \"data:image/webp;base64,...\").\n\t * @returns The ID of the new task.\n\t */\n\tstartNewTask({\n\t\tconfiguration,\n\t\ttext,\n\t\timages,\n\t\tnewTab,\n\t}: {\n\t\tconfiguration?: RooCodeSettings\n\t\ttext?: string\n\t\timages?: string[]\n\t\tnewTab?: boolean\n\t}): Promise<string>\n\t/**\n\t * Resumes a task with the given ID.\n\t * @param taskId The ID of the task to resume.\n\t * @throws Error if the task is not found in the task history.\n\t */\n\tresumeTask(taskId: string): Promise<void>\n\t/**\n\t * Checks if a task with the given ID is in the task history.\n\t * @param taskId The ID of the task to check.\n\t * @returns True if the task is in the task history, false otherwise.\n\t */\n\tisTaskInHistory(taskId: string): Promise<boolean>\n\t/**\n\t * Returns the current task stack.\n\t * @returns An array of task IDs.\n\t */\n\tgetCurrentTaskStack(): string[]\n\t/**\n\t * Clears the current task.\n\t */\n\tclearCurrentTask(lastMessage?: string): Promise<void>\n\t/**\n\t * Cancels the current task.\n\t */\n\tcancelCurrentTask(): Promise<void>\n\t/**\n\t * Sends a message to the current task.\n\t * @param message Optional message to send.\n\t * @param images Optional array of image data URIs (e.g., \"data:image/webp;base64,...\").\n\t */\n\tsendMessage(message?: string, images?: string[]): Promise<void>\n\t/**\n\t * Simulates pressing the primary button in the chat interface.\n\t */\n\tpressPrimaryButton(): Promise<void>\n\t/**\n\t * Simulates pressing the secondary button in the chat interface.\n\t */\n\tpressSecondaryButton(): Promise<void>\n\t/**\n\t * Returns true if the API is ready to use.\n\t */\n\tisReady(): boolean\n\t/**\n\t * Returns the current configuration.\n\t * @returns The current configuration.\n\t */\n\tgetConfiguration(): RooCodeSettings\n\t/**\n\t * Sets the configuration for the current task.\n\t * @param values An object containing key-value pairs to set.\n\t */\n\tsetConfiguration(values: RooCodeSettings): Promise<void>\n\t/**\n\t * Returns a list of all configured profile names\n\t * @returns Array of profile names\n\t */\n\tgetProfiles(): string[]\n\t/**\n\t * Returns the profile entry for a given name\n\t * @param name The name of the profile\n\t * @returns The profile entry, or undefined if the profile does not exist\n\t */\n\tgetProfileEntry(name: string): ProviderSettingsEntry | undefined\n\t/**\n\t * Creates a new API configuration profile\n\t * @param name The name of the profile\n\t * @param profile The profile to create; defaults to an empty object\n\t * @param activate Whether to activate the profile after creation; defaults to true\n\t * @returns The ID of the created profile\n\t * @throws Error if the profile already exists\n\t */\n\tcreateProfile(name: string, profile?: ProviderSettings, activate?: boolean): Promise<string>\n\t/**\n\t * Updates an existing API configuration profile\n\t * @param name The name of the profile\n\t * @param profile The profile to update\n\t * @param activate Whether to activate the profile after update; defaults to true\n\t * @returns The ID of the updated profile\n\t * @throws Error if the profile does not exist\n\t */\n\tupdateProfile(name: string, profile: ProviderSettings, activate?: boolean): Promise<string | undefined>\n\t/**\n\t * Creates a new API configuration profile or updates an existing one\n\t * @param name The name of the profile\n\t * @param profile The profile to create or update; defaults to an empty object\n\t * @param activate Whether to activate the profile after upsert; defaults to true\n\t * @returns The ID of the upserted profile\n\t */\n\tupsertProfile(name: string, profile: ProviderSettings, activate?: boolean): Promise<string | undefined>\n\t/**\n\t * Deletes a profile by name\n\t * @param name The name of the profile to delete\n\t * @throws Error if the profile does not exist\n\t */\n\tdeleteProfile(name: string): Promise<void>\n\t/**\n\t * Returns the name of the currently active profile\n\t * @returns The profile name, or undefined if no profile is active\n\t */\n\tgetActiveProfile(): string | undefined\n\t/**\n\t * Changes the active API configuration profile\n\t * @param name The name of the profile to activate\n\t * @throws Error if the profile does not exist\n\t */\n\tsetActiveProfile(name: string): Promise<string | undefined>\n}\n/**\n * RooCodeIpcServer\n */\ntype IpcServerEvents = {\n\t[IpcMessageType.Connect]: [clientId: string]\n\t[IpcMessageType.Disconnect]: [clientId: string]\n\t[IpcMessageType.TaskCommand]: [clientId: string, data: TaskCommand]\n\t[IpcMessageType.TaskEvent]: [relayClientId: string | undefined, data: TaskEvent]\n}\ninterface RooCodeIpcServer extends EventEmitter<IpcServerEvents> {\n\tlisten(): void\n\tbroadcast(message: IpcMessage): void\n\tsend(client: string | Socket, message: IpcMessage): void\n\tget socketPath(): string\n\tget isListening(): boolean\n}\n\nexport {\n\ttype ClineMessage,\n\ttype GlobalSettings,\n\ttype IpcMessage,\n\tIpcMessageType,\n\tIpcOrigin,\n\ttype IpcServerEvents,\n\ttype ProviderSettings,\n\ttype ProviderSettingsEntry,\n\ttype RooCodeAPI,\n\tRooCodeEventName,\n\ttype RooCodeEvents,\n\ttype RooCodeIpcServer,\n\ttype RooCodeSettings,\n\ttype TaskCommand,\n\ttype TaskEvent,\n\ttype TokenUsage,\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roo-code/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "TypeScript type definitions for Roo Code",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -20,16 +20,15 @@
|
|
|
20
20
|
"roo-code",
|
|
21
21
|
"ai"
|
|
22
22
|
],
|
|
23
|
-
"main": "dist/index.js",
|
|
24
|
-
"
|
|
23
|
+
"main": "./dist/index.js",
|
|
24
|
+
"module": "./dist/index.mjs",
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
25
26
|
"files": [
|
|
26
|
-
"dist
|
|
27
|
-
"dist/index.js",
|
|
28
|
-
"README.md"
|
|
27
|
+
"dist"
|
|
29
28
|
],
|
|
30
29
|
"packageManager": "pnpm@10.8.1",
|
|
31
30
|
"scripts": {
|
|
32
|
-
"build": "tsup
|
|
31
|
+
"build": "tsup",
|
|
33
32
|
"prepublishOnly": "pnpm run build",
|
|
34
33
|
"check-types": "tsc --noEmit",
|
|
35
34
|
"release:test": "dotenvx run -f .env.local -- semantic-release --dry-run",
|