@roo-code/types 1.19.0 → 1.20.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.cjs +477 -441
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +389 -2
- package/dist/index.d.ts +389 -2
- package/dist/index.js +474 -441
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -227,6 +227,125 @@ declare const codebaseIndexProviderSchema: z.ZodObject<{
|
|
|
227
227
|
}>;
|
|
228
228
|
type CodebaseIndexProvider = z.infer<typeof codebaseIndexProviderSchema>;
|
|
229
229
|
|
|
230
|
+
/**
|
|
231
|
+
* Organization Allow List
|
|
232
|
+
*/
|
|
233
|
+
declare const organizationAllowListSchema: z.ZodObject<{
|
|
234
|
+
allowAll: z.ZodBoolean;
|
|
235
|
+
providers: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
236
|
+
allowAll: z.ZodBoolean;
|
|
237
|
+
models: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
238
|
+
}, "strip", z.ZodTypeAny, {
|
|
239
|
+
allowAll: boolean;
|
|
240
|
+
models?: string[] | undefined;
|
|
241
|
+
}, {
|
|
242
|
+
allowAll: boolean;
|
|
243
|
+
models?: string[] | undefined;
|
|
244
|
+
}>>;
|
|
245
|
+
}, "strip", z.ZodTypeAny, {
|
|
246
|
+
allowAll: boolean;
|
|
247
|
+
providers: Record<string, {
|
|
248
|
+
allowAll: boolean;
|
|
249
|
+
models?: string[] | undefined;
|
|
250
|
+
}>;
|
|
251
|
+
}, {
|
|
252
|
+
allowAll: boolean;
|
|
253
|
+
providers: Record<string, {
|
|
254
|
+
allowAll: boolean;
|
|
255
|
+
models?: string[] | undefined;
|
|
256
|
+
}>;
|
|
257
|
+
}>;
|
|
258
|
+
type OrganizationAllowList = z.infer<typeof organizationAllowListSchema>;
|
|
259
|
+
declare const ORGANIZATION_ALLOW_ALL: OrganizationAllowList;
|
|
260
|
+
/**
|
|
261
|
+
* Organization Settings
|
|
262
|
+
*/
|
|
263
|
+
declare const organizationSettingsSchema: z.ZodObject<{
|
|
264
|
+
version: z.ZodNumber;
|
|
265
|
+
defaultSettings: z.ZodOptional<z.ZodObject<{
|
|
266
|
+
enableCheckpoints: z.ZodOptional<z.ZodBoolean>;
|
|
267
|
+
maxOpenTabsContext: z.ZodOptional<z.ZodNumber>;
|
|
268
|
+
maxWorkspaceFiles: z.ZodOptional<z.ZodNumber>;
|
|
269
|
+
showRooIgnoredFiles: z.ZodOptional<z.ZodBoolean>;
|
|
270
|
+
maxReadFileLine: z.ZodOptional<z.ZodNumber>;
|
|
271
|
+
fuzzyMatchThreshold: z.ZodOptional<z.ZodNumber>;
|
|
272
|
+
}, "strip", z.ZodTypeAny, {
|
|
273
|
+
enableCheckpoints?: boolean | undefined;
|
|
274
|
+
maxOpenTabsContext?: number | undefined;
|
|
275
|
+
maxWorkspaceFiles?: number | undefined;
|
|
276
|
+
showRooIgnoredFiles?: boolean | undefined;
|
|
277
|
+
maxReadFileLine?: number | undefined;
|
|
278
|
+
fuzzyMatchThreshold?: number | undefined;
|
|
279
|
+
}, {
|
|
280
|
+
enableCheckpoints?: boolean | undefined;
|
|
281
|
+
maxOpenTabsContext?: number | undefined;
|
|
282
|
+
maxWorkspaceFiles?: number | undefined;
|
|
283
|
+
showRooIgnoredFiles?: boolean | undefined;
|
|
284
|
+
maxReadFileLine?: number | undefined;
|
|
285
|
+
fuzzyMatchThreshold?: number | undefined;
|
|
286
|
+
}>>;
|
|
287
|
+
allowList: z.ZodObject<{
|
|
288
|
+
allowAll: z.ZodBoolean;
|
|
289
|
+
providers: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
290
|
+
allowAll: z.ZodBoolean;
|
|
291
|
+
models: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
292
|
+
}, "strip", z.ZodTypeAny, {
|
|
293
|
+
allowAll: boolean;
|
|
294
|
+
models?: string[] | undefined;
|
|
295
|
+
}, {
|
|
296
|
+
allowAll: boolean;
|
|
297
|
+
models?: string[] | undefined;
|
|
298
|
+
}>>;
|
|
299
|
+
}, "strip", z.ZodTypeAny, {
|
|
300
|
+
allowAll: boolean;
|
|
301
|
+
providers: Record<string, {
|
|
302
|
+
allowAll: boolean;
|
|
303
|
+
models?: string[] | undefined;
|
|
304
|
+
}>;
|
|
305
|
+
}, {
|
|
306
|
+
allowAll: boolean;
|
|
307
|
+
providers: Record<string, {
|
|
308
|
+
allowAll: boolean;
|
|
309
|
+
models?: string[] | undefined;
|
|
310
|
+
}>;
|
|
311
|
+
}>;
|
|
312
|
+
}, "strip", z.ZodTypeAny, {
|
|
313
|
+
version: number;
|
|
314
|
+
allowList: {
|
|
315
|
+
allowAll: boolean;
|
|
316
|
+
providers: Record<string, {
|
|
317
|
+
allowAll: boolean;
|
|
318
|
+
models?: string[] | undefined;
|
|
319
|
+
}>;
|
|
320
|
+
};
|
|
321
|
+
defaultSettings?: {
|
|
322
|
+
enableCheckpoints?: boolean | undefined;
|
|
323
|
+
maxOpenTabsContext?: number | undefined;
|
|
324
|
+
maxWorkspaceFiles?: number | undefined;
|
|
325
|
+
showRooIgnoredFiles?: boolean | undefined;
|
|
326
|
+
maxReadFileLine?: number | undefined;
|
|
327
|
+
fuzzyMatchThreshold?: number | undefined;
|
|
328
|
+
} | undefined;
|
|
329
|
+
}, {
|
|
330
|
+
version: number;
|
|
331
|
+
allowList: {
|
|
332
|
+
allowAll: boolean;
|
|
333
|
+
providers: Record<string, {
|
|
334
|
+
allowAll: boolean;
|
|
335
|
+
models?: string[] | undefined;
|
|
336
|
+
}>;
|
|
337
|
+
};
|
|
338
|
+
defaultSettings?: {
|
|
339
|
+
enableCheckpoints?: boolean | undefined;
|
|
340
|
+
maxOpenTabsContext?: number | undefined;
|
|
341
|
+
maxWorkspaceFiles?: number | undefined;
|
|
342
|
+
showRooIgnoredFiles?: boolean | undefined;
|
|
343
|
+
maxReadFileLine?: number | undefined;
|
|
344
|
+
fuzzyMatchThreshold?: number | undefined;
|
|
345
|
+
} | undefined;
|
|
346
|
+
}>;
|
|
347
|
+
type OrganizationSettings = z.infer<typeof organizationSettingsSchema>;
|
|
348
|
+
|
|
230
349
|
/**
|
|
231
350
|
* ExperimentId
|
|
232
351
|
*/
|
|
@@ -8964,6 +9083,7 @@ declare enum TelemetryEventName {
|
|
|
8964
9083
|
TASK_CREATED = "Task Created",
|
|
8965
9084
|
TASK_RESTARTED = "Task Reopened",
|
|
8966
9085
|
TASK_COMPLETED = "Task Completed",
|
|
9086
|
+
TASK_MESSAGE = "Task Message",
|
|
8967
9087
|
TASK_CONVERSATION_MESSAGE = "Conversation Message",
|
|
8968
9088
|
LLM_COMPLETION = "LLM Completion",
|
|
8969
9089
|
MODE_SWITCH = "Mode Switched",
|
|
@@ -9071,6 +9191,9 @@ type TelemetryEvent = {
|
|
|
9071
9191
|
event: TelemetryEventName;
|
|
9072
9192
|
properties?: Record<string, any>;
|
|
9073
9193
|
};
|
|
9194
|
+
/**
|
|
9195
|
+
* RooCodeTelemetryEvent
|
|
9196
|
+
*/
|
|
9074
9197
|
declare const rooCodeTelemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
9075
9198
|
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]>;
|
|
9076
9199
|
properties: z.ZodObject<{
|
|
@@ -9140,6 +9263,243 @@ declare const rooCodeTelemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
9140
9263
|
diffStrategy?: string | undefined;
|
|
9141
9264
|
isSubtask?: boolean | undefined;
|
|
9142
9265
|
};
|
|
9266
|
+
}>, z.ZodObject<{
|
|
9267
|
+
type: z.ZodLiteral<TelemetryEventName.TASK_MESSAGE>;
|
|
9268
|
+
properties: z.ZodObject<{
|
|
9269
|
+
message: z.ZodObject<{
|
|
9270
|
+
ts: z.ZodNumber;
|
|
9271
|
+
type: z.ZodUnion<[z.ZodLiteral<"ask">, z.ZodLiteral<"say">]>;
|
|
9272
|
+
ask: z.ZodOptional<z.ZodEnum<["followup", "command", "command_output", "completion_result", "tool", "api_req_failed", "resume_task", "resume_completed_task", "mistake_limit_reached", "browser_action_launch", "use_mcp_server", "auto_approval_max_req_reached"]>>;
|
|
9273
|
+
say: z.ZodOptional<z.ZodEnum<["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", "condense_context", "codebase_search_result"]>>;
|
|
9274
|
+
text: z.ZodOptional<z.ZodString>;
|
|
9275
|
+
images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9276
|
+
partial: z.ZodOptional<z.ZodBoolean>;
|
|
9277
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
9278
|
+
conversationHistoryIndex: z.ZodOptional<z.ZodNumber>;
|
|
9279
|
+
checkpoint: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9280
|
+
progressStatus: z.ZodOptional<z.ZodObject<{
|
|
9281
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
9282
|
+
text: z.ZodOptional<z.ZodString>;
|
|
9283
|
+
}, "strip", z.ZodTypeAny, {
|
|
9284
|
+
text?: string | undefined;
|
|
9285
|
+
icon?: string | undefined;
|
|
9286
|
+
}, {
|
|
9287
|
+
text?: string | undefined;
|
|
9288
|
+
icon?: string | undefined;
|
|
9289
|
+
}>>;
|
|
9290
|
+
contextCondense: z.ZodOptional<z.ZodObject<{
|
|
9291
|
+
cost: z.ZodNumber;
|
|
9292
|
+
prevContextTokens: z.ZodNumber;
|
|
9293
|
+
newContextTokens: z.ZodNumber;
|
|
9294
|
+
summary: z.ZodString;
|
|
9295
|
+
}, "strip", z.ZodTypeAny, {
|
|
9296
|
+
cost: number;
|
|
9297
|
+
prevContextTokens: number;
|
|
9298
|
+
newContextTokens: number;
|
|
9299
|
+
summary: string;
|
|
9300
|
+
}, {
|
|
9301
|
+
cost: number;
|
|
9302
|
+
prevContextTokens: number;
|
|
9303
|
+
newContextTokens: number;
|
|
9304
|
+
summary: string;
|
|
9305
|
+
}>>;
|
|
9306
|
+
}, "strip", z.ZodTypeAny, {
|
|
9307
|
+
ts: number;
|
|
9308
|
+
type: "ask" | "say";
|
|
9309
|
+
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" | "auto_approval_max_req_reached" | undefined;
|
|
9310
|
+
say?: "command_output" | "completion_result" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_deleted" | "text" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "browser_action" | "browser_action_result" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "diff_error" | "condense_context" | "codebase_search_result" | undefined;
|
|
9311
|
+
text?: string | undefined;
|
|
9312
|
+
reasoning?: string | undefined;
|
|
9313
|
+
images?: string[] | undefined;
|
|
9314
|
+
partial?: boolean | undefined;
|
|
9315
|
+
conversationHistoryIndex?: number | undefined;
|
|
9316
|
+
checkpoint?: Record<string, unknown> | undefined;
|
|
9317
|
+
progressStatus?: {
|
|
9318
|
+
text?: string | undefined;
|
|
9319
|
+
icon?: string | undefined;
|
|
9320
|
+
} | undefined;
|
|
9321
|
+
contextCondense?: {
|
|
9322
|
+
cost: number;
|
|
9323
|
+
prevContextTokens: number;
|
|
9324
|
+
newContextTokens: number;
|
|
9325
|
+
summary: string;
|
|
9326
|
+
} | undefined;
|
|
9327
|
+
}, {
|
|
9328
|
+
ts: number;
|
|
9329
|
+
type: "ask" | "say";
|
|
9330
|
+
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" | "auto_approval_max_req_reached" | undefined;
|
|
9331
|
+
say?: "command_output" | "completion_result" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_deleted" | "text" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "browser_action" | "browser_action_result" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "diff_error" | "condense_context" | "codebase_search_result" | undefined;
|
|
9332
|
+
text?: string | undefined;
|
|
9333
|
+
reasoning?: string | undefined;
|
|
9334
|
+
images?: string[] | undefined;
|
|
9335
|
+
partial?: boolean | undefined;
|
|
9336
|
+
conversationHistoryIndex?: number | undefined;
|
|
9337
|
+
checkpoint?: Record<string, unknown> | undefined;
|
|
9338
|
+
progressStatus?: {
|
|
9339
|
+
text?: string | undefined;
|
|
9340
|
+
icon?: string | undefined;
|
|
9341
|
+
} | undefined;
|
|
9342
|
+
contextCondense?: {
|
|
9343
|
+
cost: number;
|
|
9344
|
+
prevContextTokens: number;
|
|
9345
|
+
newContextTokens: number;
|
|
9346
|
+
summary: string;
|
|
9347
|
+
} | undefined;
|
|
9348
|
+
}>;
|
|
9349
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
9350
|
+
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"]>>;
|
|
9351
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
9352
|
+
diffStrategy: z.ZodOptional<z.ZodString>;
|
|
9353
|
+
isSubtask: z.ZodOptional<z.ZodBoolean>;
|
|
9354
|
+
appVersion: z.ZodString;
|
|
9355
|
+
vscodeVersion: z.ZodString;
|
|
9356
|
+
platform: z.ZodString;
|
|
9357
|
+
editorName: z.ZodString;
|
|
9358
|
+
language: z.ZodString;
|
|
9359
|
+
mode: z.ZodString;
|
|
9360
|
+
}, "strip", z.ZodTypeAny, {
|
|
9361
|
+
message: {
|
|
9362
|
+
ts: number;
|
|
9363
|
+
type: "ask" | "say";
|
|
9364
|
+
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" | "auto_approval_max_req_reached" | undefined;
|
|
9365
|
+
say?: "command_output" | "completion_result" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_deleted" | "text" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "browser_action" | "browser_action_result" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "diff_error" | "condense_context" | "codebase_search_result" | undefined;
|
|
9366
|
+
text?: string | undefined;
|
|
9367
|
+
reasoning?: string | undefined;
|
|
9368
|
+
images?: string[] | undefined;
|
|
9369
|
+
partial?: boolean | undefined;
|
|
9370
|
+
conversationHistoryIndex?: number | undefined;
|
|
9371
|
+
checkpoint?: Record<string, unknown> | undefined;
|
|
9372
|
+
progressStatus?: {
|
|
9373
|
+
text?: string | undefined;
|
|
9374
|
+
icon?: string | undefined;
|
|
9375
|
+
} | undefined;
|
|
9376
|
+
contextCondense?: {
|
|
9377
|
+
cost: number;
|
|
9378
|
+
prevContextTokens: number;
|
|
9379
|
+
newContextTokens: number;
|
|
9380
|
+
summary: string;
|
|
9381
|
+
} | undefined;
|
|
9382
|
+
};
|
|
9383
|
+
language: string;
|
|
9384
|
+
mode: string;
|
|
9385
|
+
appVersion: string;
|
|
9386
|
+
vscodeVersion: string;
|
|
9387
|
+
platform: string;
|
|
9388
|
+
editorName: string;
|
|
9389
|
+
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;
|
|
9390
|
+
taskId?: string | undefined;
|
|
9391
|
+
modelId?: string | undefined;
|
|
9392
|
+
diffStrategy?: string | undefined;
|
|
9393
|
+
isSubtask?: boolean | undefined;
|
|
9394
|
+
}, {
|
|
9395
|
+
message: {
|
|
9396
|
+
ts: number;
|
|
9397
|
+
type: "ask" | "say";
|
|
9398
|
+
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" | "auto_approval_max_req_reached" | undefined;
|
|
9399
|
+
say?: "command_output" | "completion_result" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_deleted" | "text" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "browser_action" | "browser_action_result" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "diff_error" | "condense_context" | "codebase_search_result" | undefined;
|
|
9400
|
+
text?: string | undefined;
|
|
9401
|
+
reasoning?: string | undefined;
|
|
9402
|
+
images?: string[] | undefined;
|
|
9403
|
+
partial?: boolean | undefined;
|
|
9404
|
+
conversationHistoryIndex?: number | undefined;
|
|
9405
|
+
checkpoint?: Record<string, unknown> | undefined;
|
|
9406
|
+
progressStatus?: {
|
|
9407
|
+
text?: string | undefined;
|
|
9408
|
+
icon?: string | undefined;
|
|
9409
|
+
} | undefined;
|
|
9410
|
+
contextCondense?: {
|
|
9411
|
+
cost: number;
|
|
9412
|
+
prevContextTokens: number;
|
|
9413
|
+
newContextTokens: number;
|
|
9414
|
+
summary: string;
|
|
9415
|
+
} | undefined;
|
|
9416
|
+
};
|
|
9417
|
+
language: string;
|
|
9418
|
+
mode: string;
|
|
9419
|
+
appVersion: string;
|
|
9420
|
+
vscodeVersion: string;
|
|
9421
|
+
platform: string;
|
|
9422
|
+
editorName: string;
|
|
9423
|
+
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;
|
|
9424
|
+
taskId?: string | undefined;
|
|
9425
|
+
modelId?: string | undefined;
|
|
9426
|
+
diffStrategy?: string | undefined;
|
|
9427
|
+
isSubtask?: boolean | undefined;
|
|
9428
|
+
}>;
|
|
9429
|
+
}, "strip", z.ZodTypeAny, {
|
|
9430
|
+
type: TelemetryEventName.TASK_MESSAGE;
|
|
9431
|
+
properties: {
|
|
9432
|
+
message: {
|
|
9433
|
+
ts: number;
|
|
9434
|
+
type: "ask" | "say";
|
|
9435
|
+
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" | "auto_approval_max_req_reached" | undefined;
|
|
9436
|
+
say?: "command_output" | "completion_result" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_deleted" | "text" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "browser_action" | "browser_action_result" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "diff_error" | "condense_context" | "codebase_search_result" | undefined;
|
|
9437
|
+
text?: string | undefined;
|
|
9438
|
+
reasoning?: string | undefined;
|
|
9439
|
+
images?: string[] | undefined;
|
|
9440
|
+
partial?: boolean | undefined;
|
|
9441
|
+
conversationHistoryIndex?: number | undefined;
|
|
9442
|
+
checkpoint?: Record<string, unknown> | undefined;
|
|
9443
|
+
progressStatus?: {
|
|
9444
|
+
text?: string | undefined;
|
|
9445
|
+
icon?: string | undefined;
|
|
9446
|
+
} | undefined;
|
|
9447
|
+
contextCondense?: {
|
|
9448
|
+
cost: number;
|
|
9449
|
+
prevContextTokens: number;
|
|
9450
|
+
newContextTokens: number;
|
|
9451
|
+
summary: string;
|
|
9452
|
+
} | undefined;
|
|
9453
|
+
};
|
|
9454
|
+
language: string;
|
|
9455
|
+
mode: string;
|
|
9456
|
+
appVersion: string;
|
|
9457
|
+
vscodeVersion: string;
|
|
9458
|
+
platform: string;
|
|
9459
|
+
editorName: string;
|
|
9460
|
+
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;
|
|
9461
|
+
taskId?: string | undefined;
|
|
9462
|
+
modelId?: string | undefined;
|
|
9463
|
+
diffStrategy?: string | undefined;
|
|
9464
|
+
isSubtask?: boolean | undefined;
|
|
9465
|
+
};
|
|
9466
|
+
}, {
|
|
9467
|
+
type: TelemetryEventName.TASK_MESSAGE;
|
|
9468
|
+
properties: {
|
|
9469
|
+
message: {
|
|
9470
|
+
ts: number;
|
|
9471
|
+
type: "ask" | "say";
|
|
9472
|
+
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" | "auto_approval_max_req_reached" | undefined;
|
|
9473
|
+
say?: "command_output" | "completion_result" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_deleted" | "text" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "browser_action" | "browser_action_result" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "diff_error" | "condense_context" | "codebase_search_result" | undefined;
|
|
9474
|
+
text?: string | undefined;
|
|
9475
|
+
reasoning?: string | undefined;
|
|
9476
|
+
images?: string[] | undefined;
|
|
9477
|
+
partial?: boolean | undefined;
|
|
9478
|
+
conversationHistoryIndex?: number | undefined;
|
|
9479
|
+
checkpoint?: Record<string, unknown> | undefined;
|
|
9480
|
+
progressStatus?: {
|
|
9481
|
+
text?: string | undefined;
|
|
9482
|
+
icon?: string | undefined;
|
|
9483
|
+
} | undefined;
|
|
9484
|
+
contextCondense?: {
|
|
9485
|
+
cost: number;
|
|
9486
|
+
prevContextTokens: number;
|
|
9487
|
+
newContextTokens: number;
|
|
9488
|
+
summary: string;
|
|
9489
|
+
} | undefined;
|
|
9490
|
+
};
|
|
9491
|
+
language: string;
|
|
9492
|
+
mode: string;
|
|
9493
|
+
appVersion: string;
|
|
9494
|
+
vscodeVersion: string;
|
|
9495
|
+
platform: string;
|
|
9496
|
+
editorName: string;
|
|
9497
|
+
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;
|
|
9498
|
+
taskId?: string | undefined;
|
|
9499
|
+
modelId?: string | undefined;
|
|
9500
|
+
diffStrategy?: string | undefined;
|
|
9501
|
+
isSubtask?: boolean | undefined;
|
|
9502
|
+
};
|
|
9143
9503
|
}>, z.ZodObject<{
|
|
9144
9504
|
type: z.ZodLiteral<TelemetryEventName.LLM_COMPLETION>;
|
|
9145
9505
|
properties: z.ZodObject<{
|
|
@@ -9236,6 +9596,33 @@ declare const rooCodeTelemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
9236
9596
|
};
|
|
9237
9597
|
}>]>;
|
|
9238
9598
|
type RooCodeTelemetryEvent = z.infer<typeof rooCodeTelemetryEventSchema>;
|
|
9599
|
+
/**
|
|
9600
|
+
* TelemetryEventSubscription
|
|
9601
|
+
*/
|
|
9602
|
+
type TelemetryEventSubscription = {
|
|
9603
|
+
type: "include";
|
|
9604
|
+
events: TelemetryEventName[];
|
|
9605
|
+
} | {
|
|
9606
|
+
type: "exclude";
|
|
9607
|
+
events: TelemetryEventName[];
|
|
9608
|
+
};
|
|
9609
|
+
/**
|
|
9610
|
+
* TelemetryPropertiesProvider
|
|
9611
|
+
*/
|
|
9612
|
+
interface TelemetryPropertiesProvider {
|
|
9613
|
+
getTelemetryProperties(): Promise<TelemetryProperties>;
|
|
9614
|
+
}
|
|
9615
|
+
/**
|
|
9616
|
+
* TelemetryClient
|
|
9617
|
+
*/
|
|
9618
|
+
interface TelemetryClient {
|
|
9619
|
+
subscription?: TelemetryEventSubscription;
|
|
9620
|
+
setProvider(provider: TelemetryPropertiesProvider): void;
|
|
9621
|
+
capture(options: TelemetryEvent): Promise<void>;
|
|
9622
|
+
updateTelemetryState(didUserOptIn: boolean): void;
|
|
9623
|
+
isTelemetryEnabled(): boolean;
|
|
9624
|
+
shutdown(): Promise<void>;
|
|
9625
|
+
}
|
|
9239
9626
|
|
|
9240
9627
|
/**
|
|
9241
9628
|
* CommandExecutionStatus
|
|
@@ -9334,7 +9721,7 @@ type TerminalActionPromptType = `TERMINAL_${TerminalActionName}`;
|
|
|
9334
9721
|
/**
|
|
9335
9722
|
* Command
|
|
9336
9723
|
*/
|
|
9337
|
-
declare const commandIds: readonly ["activationCompleted", "plusButtonClicked", "promptsButtonClicked", "mcpButtonClicked", "historyButtonClicked", "popoutButtonClicked", "settingsButtonClicked", "openInNewTab", "showHumanRelayDialog", "registerHumanRelayCallback", "unregisterHumanRelayCallback", "handleHumanRelayResponse", "newTask", "setCustomStoragePath", "focusInput", "acceptInput"];
|
|
9724
|
+
declare const commandIds: readonly ["activationCompleted", "plusButtonClicked", "promptsButtonClicked", "mcpButtonClicked", "historyButtonClicked", "popoutButtonClicked", "accountButtonClicked", "settingsButtonClicked", "openInNewTab", "showHumanRelayDialog", "registerHumanRelayCallback", "unregisterHumanRelayCallback", "handleHumanRelayResponse", "newTask", "setCustomStoragePath", "focusInput", "acceptInput"];
|
|
9338
9725
|
type CommandId = (typeof commandIds)[number];
|
|
9339
9726
|
/**
|
|
9340
9727
|
* Language
|
|
@@ -9344,4 +9731,4 @@ declare const languagesSchema: z.ZodEnum<["ca", "de", "en", "es", "fr", "hi", "i
|
|
|
9344
9731
|
type Language = z.infer<typeof languagesSchema>;
|
|
9345
9732
|
declare const isLanguage: (value: string) => value is Language;
|
|
9346
9733
|
|
|
9347
|
-
export { type Ack, type AssertEqual, type ClineAsk, type ClineMessage, type ClineSay, type CodeActionId, type CodeActionName, type CodebaseIndexConfig, type CodebaseIndexModels, type CodebaseIndexProvider, type CommandExecutionStatus, type CommandId, type ContextCondense, type CustomModePrompts, type CustomModesSettings, type CustomSupportPrompts, type Equals, type ExperimentId, type Experiments, GLOBAL_SETTINGS_KEYS, GLOBAL_STATE_KEYS, type GlobalSettings, type GlobalState, type GroupEntry, type GroupOptions, type HistoryItem, type IpcMessage, IpcMessageType, IpcOrigin, type IpcServerEvents, type Keys, type Language, type ModeConfig, type ModelInfo, type ModelParameter, PROVIDER_SETTINGS_KEYS, type PromptComponent, type ProviderName, type ProviderSettings, type ProviderSettingsEntry, type ReasoningEffort, type RooCodeAPI, type RooCodeAPIEvents, RooCodeEventName, type RooCodeEvents, type RooCodeIpcServer, type RooCodeSettings, type RooCodeTelemetryEvent, SECRET_STATE_KEYS, type SecretState, type TaskCommand, TaskCommandName, type TaskEvent, type TelemetryEvent, TelemetryEventName, type TelemetryProperties, type TelemetrySetting, type TerminalActionId, type TerminalActionName, type TerminalActionPromptType, type TokenUsage, type ToolGroup, type ToolName, type ToolProgressStatus, type ToolUsage, type Values, ackSchema, appPropertiesSchema, clineAskSchema, clineAsks, clineMessageSchema, clineSaySchema, clineSays, codeActionIds, codebaseIndexConfigSchema, codebaseIndexModelsSchema, codebaseIndexProviderSchema, commandExecutionStatusSchema, commandIds, contextCondenseSchema, customModePromptsSchema, customModesSettingsSchema, customSupportPromptsSchema, experimentIds, experimentIdsSchema, experimentsSchema, globalSettingsSchema, groupEntrySchema, groupOptionsSchema, historyItemSchema, ipcMessageSchema, isGlobalStateKey, isLanguage, isModelParameter, isSecretStateKey, keysOf, languages, languagesSchema, modeConfigSchema, modelInfoSchema, modelParameters, modelParametersSchema, promptComponentSchema, providerNames, providerNamesSchema, providerSettingsEntrySchema, providerSettingsSchema, providerSettingsSchemaDiscriminated, reasoningEfforts, reasoningEffortsSchema, rooCodeEventsSchema, rooCodeSettingsSchema, rooCodeTelemetryEventSchema, taskCommandSchema, taskEventSchema, taskPropertiesSchema, telemetryPropertiesSchema, telemetrySettings, telemetrySettingsSchema, terminalActionIds, tokenUsageSchema, toolGroups, toolGroupsSchema, toolNames, toolNamesSchema, toolProgressStatusSchema, toolUsageSchema };
|
|
9734
|
+
export { type Ack, type AssertEqual, type ClineAsk, type ClineMessage, type ClineSay, type CodeActionId, type CodeActionName, type CodebaseIndexConfig, type CodebaseIndexModels, type CodebaseIndexProvider, type CommandExecutionStatus, type CommandId, type ContextCondense, type CustomModePrompts, type CustomModesSettings, type CustomSupportPrompts, type Equals, type ExperimentId, type Experiments, GLOBAL_SETTINGS_KEYS, GLOBAL_STATE_KEYS, type GlobalSettings, type GlobalState, type GroupEntry, type GroupOptions, type HistoryItem, type IpcMessage, IpcMessageType, IpcOrigin, type IpcServerEvents, type Keys, type Language, type ModeConfig, type ModelInfo, type ModelParameter, ORGANIZATION_ALLOW_ALL, type OrganizationAllowList, type OrganizationSettings, PROVIDER_SETTINGS_KEYS, type PromptComponent, type ProviderName, type ProviderSettings, type ProviderSettingsEntry, type ReasoningEffort, type RooCodeAPI, type RooCodeAPIEvents, RooCodeEventName, type RooCodeEvents, type RooCodeIpcServer, type RooCodeSettings, type RooCodeTelemetryEvent, SECRET_STATE_KEYS, type SecretState, type TaskCommand, TaskCommandName, type TaskEvent, type TelemetryClient, type TelemetryEvent, TelemetryEventName, type TelemetryEventSubscription, type TelemetryProperties, type TelemetryPropertiesProvider, type TelemetrySetting, type TerminalActionId, type TerminalActionName, type TerminalActionPromptType, type TokenUsage, type ToolGroup, type ToolName, type ToolProgressStatus, type ToolUsage, type Values, ackSchema, appPropertiesSchema, clineAskSchema, clineAsks, clineMessageSchema, clineSaySchema, clineSays, codeActionIds, codebaseIndexConfigSchema, codebaseIndexModelsSchema, codebaseIndexProviderSchema, commandExecutionStatusSchema, commandIds, contextCondenseSchema, customModePromptsSchema, customModesSettingsSchema, customSupportPromptsSchema, experimentIds, experimentIdsSchema, experimentsSchema, globalSettingsSchema, groupEntrySchema, groupOptionsSchema, historyItemSchema, ipcMessageSchema, isGlobalStateKey, isLanguage, isModelParameter, isSecretStateKey, keysOf, languages, languagesSchema, modeConfigSchema, modelInfoSchema, modelParameters, modelParametersSchema, organizationAllowListSchema, organizationSettingsSchema, promptComponentSchema, providerNames, providerNamesSchema, providerSettingsEntrySchema, providerSettingsSchema, providerSettingsSchemaDiscriminated, reasoningEfforts, reasoningEffortsSchema, rooCodeEventsSchema, rooCodeSettingsSchema, rooCodeTelemetryEventSchema, taskCommandSchema, taskEventSchema, taskPropertiesSchema, telemetryPropertiesSchema, telemetrySettings, telemetrySettingsSchema, terminalActionIds, tokenUsageSchema, toolGroups, toolGroupsSchema, toolNames, toolNamesSchema, toolProgressStatusSchema, toolUsageSchema };
|