@roo-code/types 1.11.0 → 1.13.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/src/index.d.ts DELETED
@@ -1,1407 +0,0 @@
1
- import { EventEmitter } from 'events';
2
- import { Socket } from 'node:net';
3
- import { z } from 'zod';
4
-
5
- type GlobalSettings = {
6
- currentApiConfigName?: string | undefined;
7
- listApiConfigMeta?: {
8
- id: string;
9
- name: string;
10
- apiProvider?: ("anthropic" | "glama" | "openrouter" | "bedrock" | "vertex" | "openai" | "ollama" | "vscode-lm" | "lmstudio" | "gemini" | "openai-native" | "mistral" | "deepseek" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm") | undefined;
11
- }[] | undefined;
12
- pinnedApiConfigs?: {
13
- [x: string]: boolean;
14
- } | undefined;
15
- lastShownAnnouncementId?: string | undefined;
16
- customInstructions?: string | undefined;
17
- taskHistory?: {
18
- id: string;
19
- number: number;
20
- ts: number;
21
- task: string;
22
- tokensIn: number;
23
- tokensOut: number;
24
- cacheWrites?: number | undefined;
25
- cacheReads?: number | undefined;
26
- totalCost: number;
27
- size?: number | undefined;
28
- workspace?: string | undefined;
29
- }[] | undefined;
30
- autoApprovalEnabled?: boolean | undefined;
31
- alwaysAllowReadOnly?: boolean | undefined;
32
- alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
33
- alwaysAllowWrite?: boolean | undefined;
34
- alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
35
- writeDelayMs?: number | undefined;
36
- alwaysAllowBrowser?: boolean | undefined;
37
- alwaysApproveResubmit?: boolean | undefined;
38
- requestDelaySeconds?: number | undefined;
39
- alwaysAllowMcp?: boolean | undefined;
40
- alwaysAllowModeSwitch?: boolean | undefined;
41
- alwaysAllowSubtasks?: boolean | undefined;
42
- alwaysAllowExecute?: boolean | undefined;
43
- allowedCommands?: string[] | undefined;
44
- browserToolEnabled?: boolean | undefined;
45
- browserViewportSize?: string | undefined;
46
- screenshotQuality?: number | undefined;
47
- remoteBrowserEnabled?: boolean | undefined;
48
- remoteBrowserHost?: string | undefined;
49
- cachedChromeHostUrl?: string | undefined;
50
- enableCheckpoints?: boolean | undefined;
51
- ttsEnabled?: boolean | undefined;
52
- ttsSpeed?: number | undefined;
53
- soundEnabled?: boolean | undefined;
54
- soundVolume?: number | undefined;
55
- maxOpenTabsContext?: number | undefined;
56
- maxWorkspaceFiles?: number | undefined;
57
- showRooIgnoredFiles?: boolean | undefined;
58
- maxReadFileLine?: number | undefined;
59
- terminalOutputLineLimit?: number | undefined;
60
- terminalShellIntegrationTimeout?: number | undefined;
61
- terminalShellIntegrationDisabled?: boolean | undefined;
62
- terminalCommandDelay?: number | undefined;
63
- terminalPowershellCounter?: boolean | undefined;
64
- terminalZshClearEolMark?: boolean | undefined;
65
- terminalZshOhMy?: boolean | undefined;
66
- terminalZshP10k?: boolean | undefined;
67
- terminalZdotdir?: boolean | undefined;
68
- terminalCompressProgressBar?: boolean | undefined;
69
- rateLimitSeconds?: number | undefined;
70
- diffEnabled?: boolean | undefined;
71
- fuzzyMatchThreshold?: number | undefined;
72
- experiments?: {
73
- autoCondenseContext: boolean;
74
- powerSteering: boolean;
75
- } | undefined;
76
- language?: ("ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW") | undefined;
77
- telemetrySetting?: ("unset" | "enabled" | "disabled") | undefined;
78
- mcpEnabled?: boolean | undefined;
79
- enableMcpServerCreation?: boolean | undefined;
80
- mode?: string | undefined;
81
- modeApiConfigs?: {
82
- [x: string]: string;
83
- } | undefined;
84
- customModes?: {
85
- slug: string;
86
- name: string;
87
- roleDefinition: string;
88
- whenToUse?: string | undefined;
89
- customInstructions?: string | undefined;
90
- groups: (("read" | "edit" | "browser" | "command" | "mcp" | "modes") | [
91
- "read" | "edit" | "browser" | "command" | "mcp" | "modes",
92
- {
93
- fileRegex?: string | undefined;
94
- description?: string | undefined;
95
- }
96
- ])[];
97
- source?: ("global" | "project") | undefined;
98
- }[] | undefined;
99
- customModePrompts?: {
100
- [x: string]: {
101
- roleDefinition?: string | undefined;
102
- whenToUse?: string | undefined;
103
- customInstructions?: string | undefined;
104
- } | undefined;
105
- } | undefined;
106
- customSupportPrompts?: {
107
- [x: string]: string | undefined;
108
- } | undefined;
109
- enhancementApiConfigId?: string | undefined;
110
- historyPreviewCollapsed?: boolean | undefined;
111
- };
112
-
113
- type ProviderName = "anthropic" | "glama" | "openrouter" | "bedrock" | "vertex" | "openai" | "ollama" | "vscode-lm" | "lmstudio" | "gemini" | "openai-native" | "mistral" | "deepseek" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm";
114
-
115
- type ProviderSettings = {
116
- apiProvider?: ("anthropic" | "glama" | "openrouter" | "bedrock" | "vertex" | "openai" | "ollama" | "vscode-lm" | "lmstudio" | "gemini" | "openai-native" | "mistral" | "deepseek" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm") | undefined;
117
- includeMaxTokens?: boolean | undefined;
118
- reasoningEffort?: ("low" | "medium" | "high") | undefined;
119
- diffEnabled?: boolean | undefined;
120
- fuzzyMatchThreshold?: number | undefined;
121
- modelTemperature?: (number | null) | undefined;
122
- rateLimitSeconds?: number | undefined;
123
- modelMaxTokens?: number | undefined;
124
- modelMaxThinkingTokens?: number | undefined;
125
- apiModelId?: string | undefined;
126
- apiKey?: string | undefined;
127
- anthropicBaseUrl?: string | undefined;
128
- anthropicUseAuthToken?: boolean | undefined;
129
- glamaModelId?: string | undefined;
130
- glamaApiKey?: string | undefined;
131
- openRouterApiKey?: string | undefined;
132
- openRouterModelId?: string | undefined;
133
- openRouterBaseUrl?: string | undefined;
134
- openRouterSpecificProvider?: string | undefined;
135
- openRouterUseMiddleOutTransform?: boolean | undefined;
136
- awsAccessKey?: string | undefined;
137
- awsSecretKey?: string | undefined;
138
- awsSessionToken?: string | undefined;
139
- awsRegion?: string | undefined;
140
- awsUseCrossRegionInference?: boolean | undefined;
141
- awsUsePromptCache?: boolean | undefined;
142
- awsProfile?: string | undefined;
143
- awsUseProfile?: boolean | undefined;
144
- awsCustomArn?: string | undefined;
145
- vertexKeyFile?: string | undefined;
146
- vertexJsonCredentials?: string | undefined;
147
- vertexProjectId?: string | undefined;
148
- vertexRegion?: string | undefined;
149
- openAiBaseUrl?: string | undefined;
150
- openAiApiKey?: string | undefined;
151
- openAiLegacyFormat?: boolean | undefined;
152
- openAiR1FormatEnabled?: boolean | undefined;
153
- openAiModelId?: string | undefined;
154
- openAiCustomModelInfo?: ({
155
- maxTokens?: (number | null) | undefined;
156
- maxThinkingTokens?: (number | null) | undefined;
157
- contextWindow: number;
158
- supportsImages?: boolean | undefined;
159
- supportsComputerUse?: boolean | undefined;
160
- supportsPromptCache: boolean;
161
- inputPrice?: number | undefined;
162
- outputPrice?: number | undefined;
163
- cacheWritesPrice?: number | undefined;
164
- cacheReadsPrice?: number | undefined;
165
- description?: string | undefined;
166
- reasoningEffort?: ("low" | "medium" | "high") | undefined;
167
- thinking?: boolean | undefined;
168
- minTokensPerCachePoint?: number | undefined;
169
- maxCachePoints?: number | undefined;
170
- cachableFields?: string[] | undefined;
171
- tiers?: {
172
- contextWindow: number;
173
- inputPrice?: number | undefined;
174
- outputPrice?: number | undefined;
175
- cacheWritesPrice?: number | undefined;
176
- cacheReadsPrice?: number | undefined;
177
- }[] | undefined;
178
- } | null) | undefined;
179
- openAiUseAzure?: boolean | undefined;
180
- azureApiVersion?: string | undefined;
181
- openAiStreamingEnabled?: boolean | undefined;
182
- enableReasoningEffort?: boolean | undefined;
183
- openAiHostHeader?: string | undefined;
184
- openAiHeaders?: {
185
- [x: string]: string;
186
- } | undefined;
187
- ollamaModelId?: string | undefined;
188
- ollamaBaseUrl?: string | undefined;
189
- vsCodeLmModelSelector?: {
190
- vendor?: string | undefined;
191
- family?: string | undefined;
192
- version?: string | undefined;
193
- id?: string | undefined;
194
- } | undefined;
195
- lmStudioModelId?: string | undefined;
196
- lmStudioBaseUrl?: string | undefined;
197
- lmStudioDraftModelId?: string | undefined;
198
- lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
199
- geminiApiKey?: string | undefined;
200
- googleGeminiBaseUrl?: string | undefined;
201
- openAiNativeApiKey?: string | undefined;
202
- openAiNativeBaseUrl?: string | undefined;
203
- mistralApiKey?: string | undefined;
204
- mistralCodestralUrl?: string | undefined;
205
- deepSeekBaseUrl?: string | undefined;
206
- deepSeekApiKey?: string | undefined;
207
- unboundApiKey?: string | undefined;
208
- unboundModelId?: string | undefined;
209
- requestyApiKey?: string | undefined;
210
- requestyModelId?: string | undefined;
211
- fakeAi?: unknown | undefined;
212
- xaiApiKey?: string | undefined;
213
- groqApiKey?: string | undefined;
214
- chutesApiKey?: string | undefined;
215
- litellmBaseUrl?: string | undefined;
216
- litellmApiKey?: string | undefined;
217
- litellmModelId?: string | undefined;
218
- };
219
-
220
- type ProviderSettingsEntry = {
221
- id: string;
222
- name: string;
223
- apiProvider?: ("anthropic" | "glama" | "openrouter" | "bedrock" | "vertex" | "openai" | "ollama" | "vscode-lm" | "lmstudio" | "gemini" | "openai-native" | "mistral" | "deepseek" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm") | undefined;
224
- };
225
-
226
- type ClineMessage = {
227
- ts: number;
228
- type: "ask" | "say";
229
- ask?: ("followup" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "browser_action_launch" | "use_mcp_server") | undefined;
230
- say?: ("error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_deleted" | "text" | "reasoning" | "completion_result" | "user_feedback" | "user_feedback_diff" | "command_output" | "shell_integration_warning" | "browser_action" | "browser_action_result" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "diff_error") | undefined;
231
- text?: string | undefined;
232
- images?: string[] | undefined;
233
- partial?: boolean | undefined;
234
- reasoning?: string | undefined;
235
- conversationHistoryIndex?: number | undefined;
236
- checkpoint?: {
237
- [x: string]: unknown;
238
- } | undefined;
239
- progressStatus?: {
240
- icon?: string | undefined;
241
- text?: string | undefined;
242
- } | undefined;
243
- };
244
-
245
- type TokenUsage = {
246
- totalTokensIn: number;
247
- totalTokensOut: number;
248
- totalCacheWrites?: number | undefined;
249
- totalCacheReads?: number | undefined;
250
- totalCost: number;
251
- contextTokens: number;
252
- };
253
-
254
- type RooCodeEvents = {
255
- message: [
256
- {
257
- taskId: string;
258
- action: "created" | "updated";
259
- message: {
260
- ts: number;
261
- type: "ask" | "say";
262
- ask?: ("followup" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "browser_action_launch" | "use_mcp_server") | undefined;
263
- say?: ("error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_deleted" | "text" | "reasoning" | "completion_result" | "user_feedback" | "user_feedback_diff" | "command_output" | "shell_integration_warning" | "browser_action" | "browser_action_result" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "diff_error") | undefined;
264
- text?: string | undefined;
265
- images?: string[] | undefined;
266
- partial?: boolean | undefined;
267
- reasoning?: string | undefined;
268
- conversationHistoryIndex?: number | undefined;
269
- checkpoint?: {
270
- [x: string]: unknown;
271
- } | undefined;
272
- progressStatus?: {
273
- icon?: string | undefined;
274
- text?: string | undefined;
275
- } | undefined;
276
- };
277
- }
278
- ];
279
- taskCreated: [
280
- string
281
- ];
282
- taskStarted: [
283
- string
284
- ];
285
- taskModeSwitched: [
286
- string,
287
- string
288
- ];
289
- taskPaused: [
290
- string
291
- ];
292
- taskUnpaused: [
293
- string
294
- ];
295
- taskAskResponded: [
296
- string
297
- ];
298
- taskAborted: [
299
- string
300
- ];
301
- taskSpawned: [
302
- string,
303
- string
304
- ];
305
- taskCompleted: [
306
- string,
307
- {
308
- totalTokensIn: number;
309
- totalTokensOut: number;
310
- totalCacheWrites?: number | undefined;
311
- totalCacheReads?: number | undefined;
312
- totalCost: number;
313
- contextTokens: number;
314
- },
315
- {
316
- [x: string]: {
317
- attempts: number;
318
- failures: number;
319
- };
320
- }
321
- ];
322
- taskTokenUsageUpdated: [
323
- string,
324
- {
325
- totalTokensIn: number;
326
- totalTokensOut: number;
327
- totalCacheWrites?: number | undefined;
328
- totalCacheReads?: number | undefined;
329
- totalCost: number;
330
- contextTokens: number;
331
- }
332
- ];
333
- taskToolFailed: [
334
- string,
335
- "execute_command" | "read_file" | "write_to_file" | "apply_diff" | "insert_content" | "search_and_replace" | "search_files" | "list_files" | "list_code_definition_names" | "browser_action" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "attempt_completion" | "switch_mode" | "new_task" | "fetch_instructions",
336
- string
337
- ];
338
- };
339
-
340
- type IpcMessage = {
341
- type: "Ack";
342
- origin: "server";
343
- data: {
344
- clientId: string;
345
- pid: number;
346
- ppid: number;
347
- };
348
- } | {
349
- type: "TaskCommand";
350
- origin: "client";
351
- clientId: string;
352
- data: {
353
- commandName: "StartNewTask";
354
- data: {
355
- configuration: {
356
- apiProvider?: ("anthropic" | "glama" | "openrouter" | "bedrock" | "vertex" | "openai" | "ollama" | "vscode-lm" | "lmstudio" | "gemini" | "openai-native" | "mistral" | "deepseek" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm") | undefined;
357
- includeMaxTokens?: boolean | undefined;
358
- reasoningEffort?: ("low" | "medium" | "high") | undefined;
359
- diffEnabled?: boolean | undefined;
360
- fuzzyMatchThreshold?: number | undefined;
361
- modelTemperature?: (number | null) | undefined;
362
- rateLimitSeconds?: number | undefined;
363
- modelMaxTokens?: number | undefined;
364
- modelMaxThinkingTokens?: number | undefined;
365
- apiModelId?: string | undefined;
366
- apiKey?: string | undefined;
367
- anthropicBaseUrl?: string | undefined;
368
- anthropicUseAuthToken?: boolean | undefined;
369
- glamaModelId?: string | undefined;
370
- glamaApiKey?: string | undefined;
371
- openRouterApiKey?: string | undefined;
372
- openRouterModelId?: string | undefined;
373
- openRouterBaseUrl?: string | undefined;
374
- openRouterSpecificProvider?: string | undefined;
375
- openRouterUseMiddleOutTransform?: boolean | undefined;
376
- awsAccessKey?: string | undefined;
377
- awsSecretKey?: string | undefined;
378
- awsSessionToken?: string | undefined;
379
- awsRegion?: string | undefined;
380
- awsUseCrossRegionInference?: boolean | undefined;
381
- awsUsePromptCache?: boolean | undefined;
382
- awsProfile?: string | undefined;
383
- awsUseProfile?: boolean | undefined;
384
- awsCustomArn?: string | undefined;
385
- vertexKeyFile?: string | undefined;
386
- vertexJsonCredentials?: string | undefined;
387
- vertexProjectId?: string | undefined;
388
- vertexRegion?: string | undefined;
389
- openAiBaseUrl?: string | undefined;
390
- openAiApiKey?: string | undefined;
391
- openAiLegacyFormat?: boolean | undefined;
392
- openAiR1FormatEnabled?: boolean | undefined;
393
- openAiModelId?: string | undefined;
394
- openAiCustomModelInfo?: ({
395
- maxTokens?: (number | null) | undefined;
396
- maxThinkingTokens?: (number | null) | undefined;
397
- contextWindow: number;
398
- supportsImages?: boolean | undefined;
399
- supportsComputerUse?: boolean | undefined;
400
- supportsPromptCache: boolean;
401
- inputPrice?: number | undefined;
402
- outputPrice?: number | undefined;
403
- cacheWritesPrice?: number | undefined;
404
- cacheReadsPrice?: number | undefined;
405
- description?: string | undefined;
406
- reasoningEffort?: ("low" | "medium" | "high") | undefined;
407
- thinking?: boolean | undefined;
408
- minTokensPerCachePoint?: number | undefined;
409
- maxCachePoints?: number | undefined;
410
- cachableFields?: string[] | undefined;
411
- tiers?: {
412
- contextWindow: number;
413
- inputPrice?: number | undefined;
414
- outputPrice?: number | undefined;
415
- cacheWritesPrice?: number | undefined;
416
- cacheReadsPrice?: number | undefined;
417
- }[] | undefined;
418
- } | null) | undefined;
419
- openAiUseAzure?: boolean | undefined;
420
- azureApiVersion?: string | undefined;
421
- openAiStreamingEnabled?: boolean | undefined;
422
- enableReasoningEffort?: boolean | undefined;
423
- openAiHostHeader?: string | undefined;
424
- openAiHeaders?: {
425
- [x: string]: string;
426
- } | undefined;
427
- ollamaModelId?: string | undefined;
428
- ollamaBaseUrl?: string | undefined;
429
- vsCodeLmModelSelector?: {
430
- vendor?: string | undefined;
431
- family?: string | undefined;
432
- version?: string | undefined;
433
- id?: string | undefined;
434
- } | undefined;
435
- lmStudioModelId?: string | undefined;
436
- lmStudioBaseUrl?: string | undefined;
437
- lmStudioDraftModelId?: string | undefined;
438
- lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
439
- geminiApiKey?: string | undefined;
440
- googleGeminiBaseUrl?: string | undefined;
441
- openAiNativeApiKey?: string | undefined;
442
- openAiNativeBaseUrl?: string | undefined;
443
- mistralApiKey?: string | undefined;
444
- mistralCodestralUrl?: string | undefined;
445
- deepSeekBaseUrl?: string | undefined;
446
- deepSeekApiKey?: string | undefined;
447
- unboundApiKey?: string | undefined;
448
- unboundModelId?: string | undefined;
449
- requestyApiKey?: string | undefined;
450
- requestyModelId?: string | undefined;
451
- fakeAi?: unknown | undefined;
452
- xaiApiKey?: string | undefined;
453
- groqApiKey?: string | undefined;
454
- chutesApiKey?: string | undefined;
455
- litellmBaseUrl?: string | undefined;
456
- litellmApiKey?: string | undefined;
457
- litellmModelId?: string | undefined;
458
- currentApiConfigName?: string | undefined;
459
- listApiConfigMeta?: {
460
- id: string;
461
- name: string;
462
- apiProvider?: ("anthropic" | "glama" | "openrouter" | "bedrock" | "vertex" | "openai" | "ollama" | "vscode-lm" | "lmstudio" | "gemini" | "openai-native" | "mistral" | "deepseek" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm") | undefined;
463
- }[] | undefined;
464
- pinnedApiConfigs?: {
465
- [x: string]: boolean;
466
- } | undefined;
467
- lastShownAnnouncementId?: string | undefined;
468
- customInstructions?: string | undefined;
469
- taskHistory?: {
470
- id: string;
471
- number: number;
472
- ts: number;
473
- task: string;
474
- tokensIn: number;
475
- tokensOut: number;
476
- cacheWrites?: number | undefined;
477
- cacheReads?: number | undefined;
478
- totalCost: number;
479
- size?: number | undefined;
480
- workspace?: string | undefined;
481
- }[] | undefined;
482
- autoApprovalEnabled?: boolean | undefined;
483
- alwaysAllowReadOnly?: boolean | undefined;
484
- alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
485
- alwaysAllowWrite?: boolean | undefined;
486
- alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
487
- writeDelayMs?: number | undefined;
488
- alwaysAllowBrowser?: boolean | undefined;
489
- alwaysApproveResubmit?: boolean | undefined;
490
- requestDelaySeconds?: number | undefined;
491
- alwaysAllowMcp?: boolean | undefined;
492
- alwaysAllowModeSwitch?: boolean | undefined;
493
- alwaysAllowSubtasks?: boolean | undefined;
494
- alwaysAllowExecute?: boolean | undefined;
495
- allowedCommands?: string[] | undefined;
496
- browserToolEnabled?: boolean | undefined;
497
- browserViewportSize?: string | undefined;
498
- screenshotQuality?: number | undefined;
499
- remoteBrowserEnabled?: boolean | undefined;
500
- remoteBrowserHost?: string | undefined;
501
- cachedChromeHostUrl?: string | undefined;
502
- enableCheckpoints?: boolean | undefined;
503
- ttsEnabled?: boolean | undefined;
504
- ttsSpeed?: number | undefined;
505
- soundEnabled?: boolean | undefined;
506
- soundVolume?: number | undefined;
507
- maxOpenTabsContext?: number | undefined;
508
- maxWorkspaceFiles?: number | undefined;
509
- showRooIgnoredFiles?: boolean | undefined;
510
- maxReadFileLine?: number | undefined;
511
- terminalOutputLineLimit?: number | undefined;
512
- terminalShellIntegrationTimeout?: number | undefined;
513
- terminalShellIntegrationDisabled?: boolean | undefined;
514
- terminalCommandDelay?: number | undefined;
515
- terminalPowershellCounter?: boolean | undefined;
516
- terminalZshClearEolMark?: boolean | undefined;
517
- terminalZshOhMy?: boolean | undefined;
518
- terminalZshP10k?: boolean | undefined;
519
- terminalZdotdir?: boolean | undefined;
520
- terminalCompressProgressBar?: boolean | undefined;
521
- experiments?: {
522
- autoCondenseContext: boolean;
523
- powerSteering: boolean;
524
- } | undefined;
525
- language?: ("ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW") | undefined;
526
- telemetrySetting?: ("unset" | "enabled" | "disabled") | undefined;
527
- mcpEnabled?: boolean | undefined;
528
- enableMcpServerCreation?: boolean | undefined;
529
- mode?: string | undefined;
530
- modeApiConfigs?: {
531
- [x: string]: string;
532
- } | undefined;
533
- customModes?: {
534
- slug: string;
535
- name: string;
536
- roleDefinition: string;
537
- whenToUse?: string | undefined;
538
- customInstructions?: string | undefined;
539
- groups: (("read" | "edit" | "browser" | "command" | "mcp" | "modes") | [
540
- "read" | "edit" | "browser" | "command" | "mcp" | "modes",
541
- {
542
- fileRegex?: string | undefined;
543
- description?: string | undefined;
544
- }
545
- ])[];
546
- source?: ("global" | "project") | undefined;
547
- }[] | undefined;
548
- customModePrompts?: {
549
- [x: string]: {
550
- roleDefinition?: string | undefined;
551
- whenToUse?: string | undefined;
552
- customInstructions?: string | undefined;
553
- } | undefined;
554
- } | undefined;
555
- customSupportPrompts?: {
556
- [x: string]: string | undefined;
557
- } | undefined;
558
- enhancementApiConfigId?: string | undefined;
559
- historyPreviewCollapsed?: boolean | undefined;
560
- };
561
- text: string;
562
- images?: string[] | undefined;
563
- newTab?: boolean | undefined;
564
- };
565
- } | {
566
- commandName: "CancelTask";
567
- data: string;
568
- } | {
569
- commandName: "CloseTask";
570
- data: string;
571
- };
572
- } | {
573
- type: "TaskEvent";
574
- origin: "server";
575
- relayClientId?: string | undefined;
576
- data: {
577
- eventName: "message";
578
- payload: [
579
- {
580
- taskId: string;
581
- action: "created" | "updated";
582
- message: {
583
- ts: number;
584
- type: "ask" | "say";
585
- ask?: ("followup" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "browser_action_launch" | "use_mcp_server") | undefined;
586
- say?: ("error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_deleted" | "text" | "reasoning" | "completion_result" | "user_feedback" | "user_feedback_diff" | "command_output" | "shell_integration_warning" | "browser_action" | "browser_action_result" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "diff_error") | undefined;
587
- text?: string | undefined;
588
- images?: string[] | undefined;
589
- partial?: boolean | undefined;
590
- reasoning?: string | undefined;
591
- conversationHistoryIndex?: number | undefined;
592
- checkpoint?: {
593
- [x: string]: unknown;
594
- } | undefined;
595
- progressStatus?: {
596
- icon?: string | undefined;
597
- text?: string | undefined;
598
- } | undefined;
599
- };
600
- }
601
- ];
602
- } | {
603
- eventName: "taskCreated";
604
- payload: [
605
- string
606
- ];
607
- } | {
608
- eventName: "taskStarted";
609
- payload: [
610
- string
611
- ];
612
- } | {
613
- eventName: "taskModeSwitched";
614
- payload: [
615
- string,
616
- string
617
- ];
618
- } | {
619
- eventName: "taskPaused";
620
- payload: [
621
- string
622
- ];
623
- } | {
624
- eventName: "taskUnpaused";
625
- payload: [
626
- string
627
- ];
628
- } | {
629
- eventName: "taskAskResponded";
630
- payload: [
631
- string
632
- ];
633
- } | {
634
- eventName: "taskAborted";
635
- payload: [
636
- string
637
- ];
638
- } | {
639
- eventName: "taskSpawned";
640
- payload: [
641
- string,
642
- string
643
- ];
644
- } | {
645
- eventName: "taskCompleted";
646
- payload: [
647
- string,
648
- {
649
- totalTokensIn: number;
650
- totalTokensOut: number;
651
- totalCacheWrites?: number | undefined;
652
- totalCacheReads?: number | undefined;
653
- totalCost: number;
654
- contextTokens: number;
655
- },
656
- {
657
- [x: string]: {
658
- attempts: number;
659
- failures: number;
660
- };
661
- }
662
- ];
663
- } | {
664
- eventName: "taskTokenUsageUpdated";
665
- payload: [
666
- string,
667
- {
668
- totalTokensIn: number;
669
- totalTokensOut: number;
670
- totalCacheWrites?: number | undefined;
671
- totalCacheReads?: number | undefined;
672
- totalCost: number;
673
- contextTokens: number;
674
- }
675
- ];
676
- };
677
- };
678
-
679
- type TaskCommand = {
680
- commandName: "StartNewTask";
681
- data: {
682
- configuration: {
683
- apiProvider?: ("anthropic" | "glama" | "openrouter" | "bedrock" | "vertex" | "openai" | "ollama" | "vscode-lm" | "lmstudio" | "gemini" | "openai-native" | "mistral" | "deepseek" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm") | undefined;
684
- includeMaxTokens?: boolean | undefined;
685
- reasoningEffort?: ("low" | "medium" | "high") | undefined;
686
- diffEnabled?: boolean | undefined;
687
- fuzzyMatchThreshold?: number | undefined;
688
- modelTemperature?: (number | null) | undefined;
689
- rateLimitSeconds?: number | undefined;
690
- modelMaxTokens?: number | undefined;
691
- modelMaxThinkingTokens?: number | undefined;
692
- apiModelId?: string | undefined;
693
- apiKey?: string | undefined;
694
- anthropicBaseUrl?: string | undefined;
695
- anthropicUseAuthToken?: boolean | undefined;
696
- glamaModelId?: string | undefined;
697
- glamaApiKey?: string | undefined;
698
- openRouterApiKey?: string | undefined;
699
- openRouterModelId?: string | undefined;
700
- openRouterBaseUrl?: string | undefined;
701
- openRouterSpecificProvider?: string | undefined;
702
- openRouterUseMiddleOutTransform?: boolean | undefined;
703
- awsAccessKey?: string | undefined;
704
- awsSecretKey?: string | undefined;
705
- awsSessionToken?: string | undefined;
706
- awsRegion?: string | undefined;
707
- awsUseCrossRegionInference?: boolean | undefined;
708
- awsUsePromptCache?: boolean | undefined;
709
- awsProfile?: string | undefined;
710
- awsUseProfile?: boolean | undefined;
711
- awsCustomArn?: string | undefined;
712
- vertexKeyFile?: string | undefined;
713
- vertexJsonCredentials?: string | undefined;
714
- vertexProjectId?: string | undefined;
715
- vertexRegion?: string | undefined;
716
- openAiBaseUrl?: string | undefined;
717
- openAiApiKey?: string | undefined;
718
- openAiLegacyFormat?: boolean | undefined;
719
- openAiR1FormatEnabled?: boolean | undefined;
720
- openAiModelId?: string | undefined;
721
- openAiCustomModelInfo?: ({
722
- maxTokens?: (number | null) | undefined;
723
- maxThinkingTokens?: (number | null) | undefined;
724
- contextWindow: number;
725
- supportsImages?: boolean | undefined;
726
- supportsComputerUse?: boolean | undefined;
727
- supportsPromptCache: boolean;
728
- inputPrice?: number | undefined;
729
- outputPrice?: number | undefined;
730
- cacheWritesPrice?: number | undefined;
731
- cacheReadsPrice?: number | undefined;
732
- description?: string | undefined;
733
- reasoningEffort?: ("low" | "medium" | "high") | undefined;
734
- thinking?: boolean | undefined;
735
- minTokensPerCachePoint?: number | undefined;
736
- maxCachePoints?: number | undefined;
737
- cachableFields?: string[] | undefined;
738
- tiers?: {
739
- contextWindow: number;
740
- inputPrice?: number | undefined;
741
- outputPrice?: number | undefined;
742
- cacheWritesPrice?: number | undefined;
743
- cacheReadsPrice?: number | undefined;
744
- }[] | undefined;
745
- } | null) | undefined;
746
- openAiUseAzure?: boolean | undefined;
747
- azureApiVersion?: string | undefined;
748
- openAiStreamingEnabled?: boolean | undefined;
749
- enableReasoningEffort?: boolean | undefined;
750
- openAiHostHeader?: string | undefined;
751
- openAiHeaders?: {
752
- [x: string]: string;
753
- } | undefined;
754
- ollamaModelId?: string | undefined;
755
- ollamaBaseUrl?: string | undefined;
756
- vsCodeLmModelSelector?: {
757
- vendor?: string | undefined;
758
- family?: string | undefined;
759
- version?: string | undefined;
760
- id?: string | undefined;
761
- } | undefined;
762
- lmStudioModelId?: string | undefined;
763
- lmStudioBaseUrl?: string | undefined;
764
- lmStudioDraftModelId?: string | undefined;
765
- lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
766
- geminiApiKey?: string | undefined;
767
- googleGeminiBaseUrl?: string | undefined;
768
- openAiNativeApiKey?: string | undefined;
769
- openAiNativeBaseUrl?: string | undefined;
770
- mistralApiKey?: string | undefined;
771
- mistralCodestralUrl?: string | undefined;
772
- deepSeekBaseUrl?: string | undefined;
773
- deepSeekApiKey?: string | undefined;
774
- unboundApiKey?: string | undefined;
775
- unboundModelId?: string | undefined;
776
- requestyApiKey?: string | undefined;
777
- requestyModelId?: string | undefined;
778
- fakeAi?: unknown | undefined;
779
- xaiApiKey?: string | undefined;
780
- groqApiKey?: string | undefined;
781
- chutesApiKey?: string | undefined;
782
- litellmBaseUrl?: string | undefined;
783
- litellmApiKey?: string | undefined;
784
- litellmModelId?: string | undefined;
785
- currentApiConfigName?: string | undefined;
786
- listApiConfigMeta?: {
787
- id: string;
788
- name: string;
789
- apiProvider?: ("anthropic" | "glama" | "openrouter" | "bedrock" | "vertex" | "openai" | "ollama" | "vscode-lm" | "lmstudio" | "gemini" | "openai-native" | "mistral" | "deepseek" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm") | undefined;
790
- }[] | undefined;
791
- pinnedApiConfigs?: {
792
- [x: string]: boolean;
793
- } | undefined;
794
- lastShownAnnouncementId?: string | undefined;
795
- customInstructions?: string | undefined;
796
- taskHistory?: {
797
- id: string;
798
- number: number;
799
- ts: number;
800
- task: string;
801
- tokensIn: number;
802
- tokensOut: number;
803
- cacheWrites?: number | undefined;
804
- cacheReads?: number | undefined;
805
- totalCost: number;
806
- size?: number | undefined;
807
- workspace?: string | undefined;
808
- }[] | undefined;
809
- autoApprovalEnabled?: boolean | undefined;
810
- alwaysAllowReadOnly?: boolean | undefined;
811
- alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
812
- alwaysAllowWrite?: boolean | undefined;
813
- alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
814
- writeDelayMs?: number | undefined;
815
- alwaysAllowBrowser?: boolean | undefined;
816
- alwaysApproveResubmit?: boolean | undefined;
817
- requestDelaySeconds?: number | undefined;
818
- alwaysAllowMcp?: boolean | undefined;
819
- alwaysAllowModeSwitch?: boolean | undefined;
820
- alwaysAllowSubtasks?: boolean | undefined;
821
- alwaysAllowExecute?: boolean | undefined;
822
- allowedCommands?: string[] | undefined;
823
- browserToolEnabled?: boolean | undefined;
824
- browserViewportSize?: string | undefined;
825
- screenshotQuality?: number | undefined;
826
- remoteBrowserEnabled?: boolean | undefined;
827
- remoteBrowserHost?: string | undefined;
828
- cachedChromeHostUrl?: string | undefined;
829
- enableCheckpoints?: boolean | undefined;
830
- ttsEnabled?: boolean | undefined;
831
- ttsSpeed?: number | undefined;
832
- soundEnabled?: boolean | undefined;
833
- soundVolume?: number | undefined;
834
- maxOpenTabsContext?: number | undefined;
835
- maxWorkspaceFiles?: number | undefined;
836
- showRooIgnoredFiles?: boolean | undefined;
837
- maxReadFileLine?: number | undefined;
838
- terminalOutputLineLimit?: number | undefined;
839
- terminalShellIntegrationTimeout?: number | undefined;
840
- terminalShellIntegrationDisabled?: boolean | undefined;
841
- terminalCommandDelay?: number | undefined;
842
- terminalPowershellCounter?: boolean | undefined;
843
- terminalZshClearEolMark?: boolean | undefined;
844
- terminalZshOhMy?: boolean | undefined;
845
- terminalZshP10k?: boolean | undefined;
846
- terminalZdotdir?: boolean | undefined;
847
- terminalCompressProgressBar?: boolean | undefined;
848
- experiments?: {
849
- autoCondenseContext: boolean;
850
- powerSteering: boolean;
851
- } | undefined;
852
- language?: ("ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW") | undefined;
853
- telemetrySetting?: ("unset" | "enabled" | "disabled") | undefined;
854
- mcpEnabled?: boolean | undefined;
855
- enableMcpServerCreation?: boolean | undefined;
856
- mode?: string | undefined;
857
- modeApiConfigs?: {
858
- [x: string]: string;
859
- } | undefined;
860
- customModes?: {
861
- slug: string;
862
- name: string;
863
- roleDefinition: string;
864
- whenToUse?: string | undefined;
865
- customInstructions?: string | undefined;
866
- groups: (("read" | "edit" | "browser" | "command" | "mcp" | "modes") | [
867
- "read" | "edit" | "browser" | "command" | "mcp" | "modes",
868
- {
869
- fileRegex?: string | undefined;
870
- description?: string | undefined;
871
- }
872
- ])[];
873
- source?: ("global" | "project") | undefined;
874
- }[] | undefined;
875
- customModePrompts?: {
876
- [x: string]: {
877
- roleDefinition?: string | undefined;
878
- whenToUse?: string | undefined;
879
- customInstructions?: string | undefined;
880
- } | undefined;
881
- } | undefined;
882
- customSupportPrompts?: {
883
- [x: string]: string | undefined;
884
- } | undefined;
885
- enhancementApiConfigId?: string | undefined;
886
- historyPreviewCollapsed?: boolean | undefined;
887
- };
888
- text: string;
889
- images?: string[] | undefined;
890
- newTab?: boolean | undefined;
891
- };
892
- } | {
893
- commandName: "CancelTask";
894
- data: string;
895
- } | {
896
- commandName: "CloseTask";
897
- data: string;
898
- };
899
-
900
- type TaskEvent = {
901
- eventName: "message";
902
- payload: [
903
- {
904
- taskId: string;
905
- action: "created" | "updated";
906
- message: {
907
- ts: number;
908
- type: "ask" | "say";
909
- ask?: ("followup" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "browser_action_launch" | "use_mcp_server") | undefined;
910
- say?: ("error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_deleted" | "text" | "reasoning" | "completion_result" | "user_feedback" | "user_feedback_diff" | "command_output" | "shell_integration_warning" | "browser_action" | "browser_action_result" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "diff_error") | undefined;
911
- text?: string | undefined;
912
- images?: string[] | undefined;
913
- partial?: boolean | undefined;
914
- reasoning?: string | undefined;
915
- conversationHistoryIndex?: number | undefined;
916
- checkpoint?: {
917
- [x: string]: unknown;
918
- } | undefined;
919
- progressStatus?: {
920
- icon?: string | undefined;
921
- text?: string | undefined;
922
- } | undefined;
923
- };
924
- }
925
- ];
926
- } | {
927
- eventName: "taskCreated";
928
- payload: [
929
- string
930
- ];
931
- } | {
932
- eventName: "taskStarted";
933
- payload: [
934
- string
935
- ];
936
- } | {
937
- eventName: "taskModeSwitched";
938
- payload: [
939
- string,
940
- string
941
- ];
942
- } | {
943
- eventName: "taskPaused";
944
- payload: [
945
- string
946
- ];
947
- } | {
948
- eventName: "taskUnpaused";
949
- payload: [
950
- string
951
- ];
952
- } | {
953
- eventName: "taskAskResponded";
954
- payload: [
955
- string
956
- ];
957
- } | {
958
- eventName: "taskAborted";
959
- payload: [
960
- string
961
- ];
962
- } | {
963
- eventName: "taskSpawned";
964
- payload: [
965
- string,
966
- string
967
- ];
968
- } | {
969
- eventName: "taskCompleted";
970
- payload: [
971
- string,
972
- {
973
- totalTokensIn: number;
974
- totalTokensOut: number;
975
- totalCacheWrites?: number | undefined;
976
- totalCacheReads?: number | undefined;
977
- totalCost: number;
978
- contextTokens: number;
979
- },
980
- {
981
- [x: string]: {
982
- attempts: number;
983
- failures: number;
984
- };
985
- }
986
- ];
987
- } | {
988
- eventName: "taskTokenUsageUpdated";
989
- payload: [
990
- string,
991
- {
992
- totalTokensIn: number;
993
- totalTokensOut: number;
994
- totalCacheWrites?: number | undefined;
995
- totalCacheReads?: number | undefined;
996
- totalCost: number;
997
- contextTokens: number;
998
- }
999
- ];
1000
- };
1001
-
1002
- type RooCodeTelemetryEvent = {
1003
- type: "Task Created" | "Task Reopened" | "Task Completed" | "Conversation Message" | "Mode Switched" | "Tool Used" | "Checkpoint Created" | "Checkpoint Restored" | "Checkpoint Diffed" | "Code Action Used" | "Prompt Enhanced" | "Title Button Clicked" | "Authentication Initiated" | "Schema Validation Error" | "Diff Application Error" | "Shell Integration Error" | "Consecutive Mistake Error";
1004
- properties: {
1005
- appVersion: string;
1006
- vscodeVersion: string;
1007
- platform: string;
1008
- editorName: string;
1009
- language: string;
1010
- mode: string;
1011
- taskId?: string | undefined;
1012
- apiProvider?: ("anthropic" | "glama" | "openrouter" | "bedrock" | "vertex" | "openai" | "ollama" | "vscode-lm" | "lmstudio" | "gemini" | "openai-native" | "mistral" | "deepseek" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm") | undefined;
1013
- modelId?: string | undefined;
1014
- diffStrategy?: string | undefined;
1015
- isSubtask?: boolean | undefined;
1016
- };
1017
- } | {
1018
- type: "LLM Completion";
1019
- properties: {
1020
- appVersion: string;
1021
- vscodeVersion: string;
1022
- platform: string;
1023
- editorName: string;
1024
- language: string;
1025
- mode: string;
1026
- taskId?: string | undefined;
1027
- apiProvider?: ("anthropic" | "glama" | "openrouter" | "bedrock" | "vertex" | "openai" | "ollama" | "vscode-lm" | "lmstudio" | "gemini" | "openai-native" | "mistral" | "deepseek" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm") | undefined;
1028
- modelId?: string | undefined;
1029
- diffStrategy?: string | undefined;
1030
- isSubtask?: boolean | undefined;
1031
- inputTokens: number;
1032
- outputTokens: number;
1033
- cacheReadTokens?: number | undefined;
1034
- cacheWriteTokens?: number | undefined;
1035
- cost?: number | undefined;
1036
- };
1037
- };
1038
-
1039
- /**
1040
- * ProviderName
1041
- */
1042
- declare const providerNames: readonly ["anthropic", "glama", "openrouter", "bedrock", "vertex", "openai", "ollama", "vscode-lm", "lmstudio", "gemini", "openai-native", "mistral", "deepseek", "unbound", "requesty", "human-relay", "fake-ai", "xai", "groq", "chutes", "litellm"];
1043
- /**
1044
- * RooCodeEvent
1045
- */
1046
- declare enum RooCodeEventName {
1047
- Message = "message",
1048
- TaskCreated = "taskCreated",
1049
- TaskStarted = "taskStarted",
1050
- TaskModeSwitched = "taskModeSwitched",
1051
- TaskPaused = "taskPaused",
1052
- TaskUnpaused = "taskUnpaused",
1053
- TaskAskResponded = "taskAskResponded",
1054
- TaskAborted = "taskAborted",
1055
- TaskSpawned = "taskSpawned",
1056
- TaskCompleted = "taskCompleted",
1057
- TaskTokenUsageUpdated = "taskTokenUsageUpdated",
1058
- TaskToolFailed = "taskToolFailed"
1059
- }
1060
- /**
1061
- * IpcMessage
1062
- */
1063
- declare enum IpcMessageType {
1064
- Connect = "Connect",
1065
- Disconnect = "Disconnect",
1066
- Ack = "Ack",
1067
- TaskCommand = "TaskCommand",
1068
- TaskEvent = "TaskEvent"
1069
- }
1070
- declare enum IpcOrigin {
1071
- Client = "client",
1072
- Server = "server"
1073
- }
1074
- /**
1075
- * TelemetryEventName
1076
- */
1077
- declare enum TelemetryEventName {
1078
- TASK_CREATED = "Task Created",
1079
- TASK_RESTARTED = "Task Reopened",
1080
- TASK_COMPLETED = "Task Completed",
1081
- TASK_CONVERSATION_MESSAGE = "Conversation Message",
1082
- LLM_COMPLETION = "LLM Completion",
1083
- MODE_SWITCH = "Mode Switched",
1084
- TOOL_USED = "Tool Used",
1085
- CHECKPOINT_CREATED = "Checkpoint Created",
1086
- CHECKPOINT_RESTORED = "Checkpoint Restored",
1087
- CHECKPOINT_DIFFED = "Checkpoint Diffed",
1088
- CODE_ACTION_USED = "Code Action Used",
1089
- PROMPT_ENHANCED = "Prompt Enhanced",
1090
- TITLE_BUTTON_CLICKED = "Title Button Clicked",
1091
- AUTHENTICATION_INITIATED = "Authentication Initiated",
1092
- SCHEMA_VALIDATION_ERROR = "Schema Validation Error",
1093
- DIFF_APPLICATION_ERROR = "Diff Application Error",
1094
- SHELL_INTEGRATION_ERROR = "Shell Integration Error",
1095
- CONSECUTIVE_MISTAKE_ERROR = "Consecutive Mistake Error"
1096
- }
1097
- declare const rooCodeTelemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1098
- type: z.ZodEnum<[TelemetryEventName.TASK_CREATED, TelemetryEventName.TASK_RESTARTED, TelemetryEventName.TASK_COMPLETED, TelemetryEventName.TASK_CONVERSATION_MESSAGE, TelemetryEventName.MODE_SWITCH, TelemetryEventName.TOOL_USED, TelemetryEventName.CHECKPOINT_CREATED, TelemetryEventName.CHECKPOINT_RESTORED, TelemetryEventName.CHECKPOINT_DIFFED, TelemetryEventName.CODE_ACTION_USED, TelemetryEventName.PROMPT_ENHANCED, TelemetryEventName.TITLE_BUTTON_CLICKED, TelemetryEventName.AUTHENTICATION_INITIATED, TelemetryEventName.SCHEMA_VALIDATION_ERROR, TelemetryEventName.DIFF_APPLICATION_ERROR, TelemetryEventName.SHELL_INTEGRATION_ERROR, TelemetryEventName.CONSECUTIVE_MISTAKE_ERROR]>;
1099
- properties: z.ZodObject<{
1100
- taskId: z.ZodOptional<z.ZodString>;
1101
- apiProvider: z.ZodOptional<z.ZodEnum<["anthropic", "glama", "openrouter", "bedrock", "vertex", "openai", "ollama", "vscode-lm", "lmstudio", "gemini", "openai-native", "mistral", "deepseek", "unbound", "requesty", "human-relay", "fake-ai", "xai", "groq", "chutes", "litellm"]>>;
1102
- modelId: z.ZodOptional<z.ZodString>;
1103
- diffStrategy: z.ZodOptional<z.ZodString>;
1104
- isSubtask: z.ZodOptional<z.ZodBoolean>;
1105
- appVersion: z.ZodString;
1106
- vscodeVersion: z.ZodString;
1107
- platform: z.ZodString;
1108
- editorName: z.ZodString;
1109
- language: z.ZodString;
1110
- mode: z.ZodString;
1111
- }, "strip", z.ZodTypeAny, {
1112
- language: string;
1113
- mode: string;
1114
- appVersion: string;
1115
- vscodeVersion: string;
1116
- platform: string;
1117
- editorName: string;
1118
- apiProvider?: "anthropic" | "glama" | "openrouter" | "bedrock" | "vertex" | "openai" | "ollama" | "vscode-lm" | "lmstudio" | "gemini" | "openai-native" | "mistral" | "deepseek" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm" | undefined;
1119
- taskId?: string | undefined;
1120
- modelId?: string | undefined;
1121
- diffStrategy?: string | undefined;
1122
- isSubtask?: boolean | undefined;
1123
- }, {
1124
- language: string;
1125
- mode: string;
1126
- appVersion: string;
1127
- vscodeVersion: string;
1128
- platform: string;
1129
- editorName: string;
1130
- apiProvider?: "anthropic" | "glama" | "openrouter" | "bedrock" | "vertex" | "openai" | "ollama" | "vscode-lm" | "lmstudio" | "gemini" | "openai-native" | "mistral" | "deepseek" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm" | undefined;
1131
- taskId?: string | undefined;
1132
- modelId?: string | undefined;
1133
- diffStrategy?: string | undefined;
1134
- isSubtask?: boolean | undefined;
1135
- }>;
1136
- }, "strip", z.ZodTypeAny, {
1137
- type: TelemetryEventName.TASK_CREATED | TelemetryEventName.TASK_RESTARTED | TelemetryEventName.TASK_COMPLETED | TelemetryEventName.TASK_CONVERSATION_MESSAGE | TelemetryEventName.MODE_SWITCH | TelemetryEventName.TOOL_USED | TelemetryEventName.CHECKPOINT_CREATED | TelemetryEventName.CHECKPOINT_RESTORED | TelemetryEventName.CHECKPOINT_DIFFED | TelemetryEventName.CODE_ACTION_USED | TelemetryEventName.PROMPT_ENHANCED | TelemetryEventName.TITLE_BUTTON_CLICKED | TelemetryEventName.AUTHENTICATION_INITIATED | TelemetryEventName.SCHEMA_VALIDATION_ERROR | TelemetryEventName.DIFF_APPLICATION_ERROR | TelemetryEventName.SHELL_INTEGRATION_ERROR | TelemetryEventName.CONSECUTIVE_MISTAKE_ERROR;
1138
- properties: {
1139
- language: string;
1140
- mode: string;
1141
- appVersion: string;
1142
- vscodeVersion: string;
1143
- platform: string;
1144
- editorName: string;
1145
- apiProvider?: "anthropic" | "glama" | "openrouter" | "bedrock" | "vertex" | "openai" | "ollama" | "vscode-lm" | "lmstudio" | "gemini" | "openai-native" | "mistral" | "deepseek" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm" | undefined;
1146
- taskId?: string | undefined;
1147
- modelId?: string | undefined;
1148
- diffStrategy?: string | undefined;
1149
- isSubtask?: boolean | undefined;
1150
- };
1151
- }, {
1152
- type: TelemetryEventName.TASK_CREATED | TelemetryEventName.TASK_RESTARTED | TelemetryEventName.TASK_COMPLETED | TelemetryEventName.TASK_CONVERSATION_MESSAGE | TelemetryEventName.MODE_SWITCH | TelemetryEventName.TOOL_USED | TelemetryEventName.CHECKPOINT_CREATED | TelemetryEventName.CHECKPOINT_RESTORED | TelemetryEventName.CHECKPOINT_DIFFED | TelemetryEventName.CODE_ACTION_USED | TelemetryEventName.PROMPT_ENHANCED | TelemetryEventName.TITLE_BUTTON_CLICKED | TelemetryEventName.AUTHENTICATION_INITIATED | TelemetryEventName.SCHEMA_VALIDATION_ERROR | TelemetryEventName.DIFF_APPLICATION_ERROR | TelemetryEventName.SHELL_INTEGRATION_ERROR | TelemetryEventName.CONSECUTIVE_MISTAKE_ERROR;
1153
- properties: {
1154
- language: string;
1155
- mode: string;
1156
- appVersion: string;
1157
- vscodeVersion: string;
1158
- platform: string;
1159
- editorName: string;
1160
- apiProvider?: "anthropic" | "glama" | "openrouter" | "bedrock" | "vertex" | "openai" | "ollama" | "vscode-lm" | "lmstudio" | "gemini" | "openai-native" | "mistral" | "deepseek" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm" | undefined;
1161
- taskId?: string | undefined;
1162
- modelId?: string | undefined;
1163
- diffStrategy?: string | undefined;
1164
- isSubtask?: boolean | undefined;
1165
- };
1166
- }>, z.ZodObject<{
1167
- type: z.ZodLiteral<TelemetryEventName.LLM_COMPLETION>;
1168
- properties: z.ZodObject<{
1169
- inputTokens: z.ZodNumber;
1170
- outputTokens: z.ZodNumber;
1171
- cacheReadTokens: z.ZodOptional<z.ZodNumber>;
1172
- cacheWriteTokens: z.ZodOptional<z.ZodNumber>;
1173
- cost: z.ZodOptional<z.ZodNumber>;
1174
- taskId: z.ZodOptional<z.ZodString>;
1175
- apiProvider: z.ZodOptional<z.ZodEnum<["anthropic", "glama", "openrouter", "bedrock", "vertex", "openai", "ollama", "vscode-lm", "lmstudio", "gemini", "openai-native", "mistral", "deepseek", "unbound", "requesty", "human-relay", "fake-ai", "xai", "groq", "chutes", "litellm"]>>;
1176
- modelId: z.ZodOptional<z.ZodString>;
1177
- diffStrategy: z.ZodOptional<z.ZodString>;
1178
- isSubtask: z.ZodOptional<z.ZodBoolean>;
1179
- appVersion: z.ZodString;
1180
- vscodeVersion: z.ZodString;
1181
- platform: z.ZodString;
1182
- editorName: z.ZodString;
1183
- language: z.ZodString;
1184
- mode: z.ZodString;
1185
- }, "strip", z.ZodTypeAny, {
1186
- language: string;
1187
- mode: string;
1188
- appVersion: string;
1189
- vscodeVersion: string;
1190
- platform: string;
1191
- editorName: string;
1192
- inputTokens: number;
1193
- outputTokens: number;
1194
- apiProvider?: "anthropic" | "glama" | "openrouter" | "bedrock" | "vertex" | "openai" | "ollama" | "vscode-lm" | "lmstudio" | "gemini" | "openai-native" | "mistral" | "deepseek" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm" | undefined;
1195
- taskId?: string | undefined;
1196
- modelId?: string | undefined;
1197
- diffStrategy?: string | undefined;
1198
- isSubtask?: boolean | undefined;
1199
- cacheReadTokens?: number | undefined;
1200
- cacheWriteTokens?: number | undefined;
1201
- cost?: number | undefined;
1202
- }, {
1203
- language: string;
1204
- mode: string;
1205
- appVersion: string;
1206
- vscodeVersion: string;
1207
- platform: string;
1208
- editorName: string;
1209
- inputTokens: number;
1210
- outputTokens: number;
1211
- apiProvider?: "anthropic" | "glama" | "openrouter" | "bedrock" | "vertex" | "openai" | "ollama" | "vscode-lm" | "lmstudio" | "gemini" | "openai-native" | "mistral" | "deepseek" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm" | undefined;
1212
- taskId?: string | undefined;
1213
- modelId?: string | undefined;
1214
- diffStrategy?: string | undefined;
1215
- isSubtask?: boolean | undefined;
1216
- cacheReadTokens?: number | undefined;
1217
- cacheWriteTokens?: number | undefined;
1218
- cost?: number | undefined;
1219
- }>;
1220
- }, "strip", z.ZodTypeAny, {
1221
- type: TelemetryEventName.LLM_COMPLETION;
1222
- properties: {
1223
- language: string;
1224
- mode: string;
1225
- appVersion: string;
1226
- vscodeVersion: string;
1227
- platform: string;
1228
- editorName: string;
1229
- inputTokens: number;
1230
- outputTokens: number;
1231
- apiProvider?: "anthropic" | "glama" | "openrouter" | "bedrock" | "vertex" | "openai" | "ollama" | "vscode-lm" | "lmstudio" | "gemini" | "openai-native" | "mistral" | "deepseek" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm" | undefined;
1232
- taskId?: string | undefined;
1233
- modelId?: string | undefined;
1234
- diffStrategy?: string | undefined;
1235
- isSubtask?: boolean | undefined;
1236
- cacheReadTokens?: number | undefined;
1237
- cacheWriteTokens?: number | undefined;
1238
- cost?: number | undefined;
1239
- };
1240
- }, {
1241
- type: TelemetryEventName.LLM_COMPLETION;
1242
- properties: {
1243
- language: string;
1244
- mode: string;
1245
- appVersion: string;
1246
- vscodeVersion: string;
1247
- platform: string;
1248
- editorName: string;
1249
- inputTokens: number;
1250
- outputTokens: number;
1251
- apiProvider?: "anthropic" | "glama" | "openrouter" | "bedrock" | "vertex" | "openai" | "ollama" | "vscode-lm" | "lmstudio" | "gemini" | "openai-native" | "mistral" | "deepseek" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm" | undefined;
1252
- taskId?: string | undefined;
1253
- modelId?: string | undefined;
1254
- diffStrategy?: string | undefined;
1255
- isSubtask?: boolean | undefined;
1256
- cacheReadTokens?: number | undefined;
1257
- cacheWriteTokens?: number | undefined;
1258
- cost?: number | undefined;
1259
- };
1260
- }>]>;
1261
-
1262
- /**
1263
- * RooCodeSettings
1264
- */
1265
- type RooCodeSettings = GlobalSettings & ProviderSettings;
1266
- /**
1267
- * RooCodeAPI
1268
- */
1269
- interface RooCodeAPI extends EventEmitter<RooCodeEvents> {
1270
- /**
1271
- * Starts a new task with an optional initial message and images.
1272
- * @param task Optional initial task message.
1273
- * @param images Optional array of image data URIs (e.g., "data:image/webp;base64,...").
1274
- * @returns The ID of the new task.
1275
- */
1276
- startNewTask({ configuration, text, images, newTab, }: {
1277
- configuration?: RooCodeSettings;
1278
- text?: string;
1279
- images?: string[];
1280
- newTab?: boolean;
1281
- }): Promise<string>;
1282
- /**
1283
- * Resumes a task with the given ID.
1284
- * @param taskId The ID of the task to resume.
1285
- * @throws Error if the task is not found in the task history.
1286
- */
1287
- resumeTask(taskId: string): Promise<void>;
1288
- /**
1289
- * Checks if a task with the given ID is in the task history.
1290
- * @param taskId The ID of the task to check.
1291
- * @returns True if the task is in the task history, false otherwise.
1292
- */
1293
- isTaskInHistory(taskId: string): Promise<boolean>;
1294
- /**
1295
- * Returns the current task stack.
1296
- * @returns An array of task IDs.
1297
- */
1298
- getCurrentTaskStack(): string[];
1299
- /**
1300
- * Clears the current task.
1301
- */
1302
- clearCurrentTask(lastMessage?: string): Promise<void>;
1303
- /**
1304
- * Cancels the current task.
1305
- */
1306
- cancelCurrentTask(): Promise<void>;
1307
- /**
1308
- * Sends a message to the current task.
1309
- * @param message Optional message to send.
1310
- * @param images Optional array of image data URIs (e.g., "data:image/webp;base64,...").
1311
- */
1312
- sendMessage(message?: string, images?: string[]): Promise<void>;
1313
- /**
1314
- * Simulates pressing the primary button in the chat interface.
1315
- */
1316
- pressPrimaryButton(): Promise<void>;
1317
- /**
1318
- * Simulates pressing the secondary button in the chat interface.
1319
- */
1320
- pressSecondaryButton(): Promise<void>;
1321
- /**
1322
- * Returns true if the API is ready to use.
1323
- */
1324
- isReady(): boolean;
1325
- /**
1326
- * Returns the current configuration.
1327
- * @returns The current configuration.
1328
- */
1329
- getConfiguration(): RooCodeSettings;
1330
- /**
1331
- * Sets the configuration for the current task.
1332
- * @param values An object containing key-value pairs to set.
1333
- */
1334
- setConfiguration(values: RooCodeSettings): Promise<void>;
1335
- /**
1336
- * Returns a list of all configured profile names
1337
- * @returns Array of profile names
1338
- */
1339
- getProfiles(): string[];
1340
- /**
1341
- * Returns the profile entry for a given name
1342
- * @param name The name of the profile
1343
- * @returns The profile entry, or undefined if the profile does not exist
1344
- */
1345
- getProfileEntry(name: string): ProviderSettingsEntry | undefined;
1346
- /**
1347
- * Creates a new API configuration profile
1348
- * @param name The name of the profile
1349
- * @param profile The profile to create; defaults to an empty object
1350
- * @param activate Whether to activate the profile after creation; defaults to true
1351
- * @returns The ID of the created profile
1352
- * @throws Error if the profile already exists
1353
- */
1354
- createProfile(name: string, profile?: ProviderSettings, activate?: boolean): Promise<string>;
1355
- /**
1356
- * Updates an existing API configuration profile
1357
- * @param name The name of the profile
1358
- * @param profile The profile to update
1359
- * @param activate Whether to activate the profile after update; defaults to true
1360
- * @returns The ID of the updated profile
1361
- * @throws Error if the profile does not exist
1362
- */
1363
- updateProfile(name: string, profile: ProviderSettings, activate?: boolean): Promise<string | undefined>;
1364
- /**
1365
- * Creates a new API configuration profile or updates an existing one
1366
- * @param name The name of the profile
1367
- * @param profile The profile to create or update; defaults to an empty object
1368
- * @param activate Whether to activate the profile after upsert; defaults to true
1369
- * @returns The ID of the upserted profile
1370
- */
1371
- upsertProfile(name: string, profile: ProviderSettings, activate?: boolean): Promise<string | undefined>;
1372
- /**
1373
- * Deletes a profile by name
1374
- * @param name The name of the profile to delete
1375
- * @throws Error if the profile does not exist
1376
- */
1377
- deleteProfile(name: string): Promise<void>;
1378
- /**
1379
- * Returns the name of the currently active profile
1380
- * @returns The profile name, or undefined if no profile is active
1381
- */
1382
- getActiveProfile(): string | undefined;
1383
- /**
1384
- * Changes the active API configuration profile
1385
- * @param name The name of the profile to activate
1386
- * @throws Error if the profile does not exist
1387
- */
1388
- setActiveProfile(name: string): Promise<string | undefined>;
1389
- }
1390
- /**
1391
- * RooCodeIpcServer
1392
- */
1393
- type IpcServerEvents = {
1394
- [IpcMessageType.Connect]: [clientId: string];
1395
- [IpcMessageType.Disconnect]: [clientId: string];
1396
- [IpcMessageType.TaskCommand]: [clientId: string, data: TaskCommand];
1397
- [IpcMessageType.TaskEvent]: [relayClientId: string | undefined, data: TaskEvent];
1398
- };
1399
- interface RooCodeIpcServer extends EventEmitter<IpcServerEvents> {
1400
- listen(): void;
1401
- broadcast(message: IpcMessage): void;
1402
- send(client: string | Socket, message: IpcMessage): void;
1403
- get socketPath(): string;
1404
- get isListening(): boolean;
1405
- }
1406
-
1407
- export { type ClineMessage, type GlobalSettings, type IpcMessage, IpcMessageType, IpcOrigin, type IpcServerEvents, type ProviderName, type ProviderSettings, type ProviderSettingsEntry, type RooCodeAPI, RooCodeEventName, type RooCodeEvents, type RooCodeIpcServer, type RooCodeSettings, type RooCodeTelemetryEvent, type TaskCommand, type TaskEvent, TelemetryEventName, type TokenUsage, providerNames, rooCodeTelemetryEventSchema };