@roo-code/types 1.19.0 → 1.21.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 +476 -441
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +334 -2
- package/dist/index.d.ts +334 -2
- package/dist/index.js +473 -441
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
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,188 @@ 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
|
+
}, "strip", z.ZodTypeAny, {
|
|
9350
|
+
message: {
|
|
9351
|
+
ts: number;
|
|
9352
|
+
type: "ask" | "say";
|
|
9353
|
+
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;
|
|
9354
|
+
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;
|
|
9355
|
+
text?: string | undefined;
|
|
9356
|
+
reasoning?: string | undefined;
|
|
9357
|
+
images?: string[] | undefined;
|
|
9358
|
+
partial?: boolean | undefined;
|
|
9359
|
+
conversationHistoryIndex?: number | undefined;
|
|
9360
|
+
checkpoint?: Record<string, unknown> | undefined;
|
|
9361
|
+
progressStatus?: {
|
|
9362
|
+
text?: string | undefined;
|
|
9363
|
+
icon?: string | undefined;
|
|
9364
|
+
} | undefined;
|
|
9365
|
+
contextCondense?: {
|
|
9366
|
+
cost: number;
|
|
9367
|
+
prevContextTokens: number;
|
|
9368
|
+
newContextTokens: number;
|
|
9369
|
+
summary: string;
|
|
9370
|
+
} | undefined;
|
|
9371
|
+
};
|
|
9372
|
+
}, {
|
|
9373
|
+
message: {
|
|
9374
|
+
ts: number;
|
|
9375
|
+
type: "ask" | "say";
|
|
9376
|
+
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;
|
|
9377
|
+
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;
|
|
9378
|
+
text?: string | undefined;
|
|
9379
|
+
reasoning?: string | undefined;
|
|
9380
|
+
images?: string[] | undefined;
|
|
9381
|
+
partial?: boolean | undefined;
|
|
9382
|
+
conversationHistoryIndex?: number | undefined;
|
|
9383
|
+
checkpoint?: Record<string, unknown> | undefined;
|
|
9384
|
+
progressStatus?: {
|
|
9385
|
+
text?: string | undefined;
|
|
9386
|
+
icon?: string | undefined;
|
|
9387
|
+
} | undefined;
|
|
9388
|
+
contextCondense?: {
|
|
9389
|
+
cost: number;
|
|
9390
|
+
prevContextTokens: number;
|
|
9391
|
+
newContextTokens: number;
|
|
9392
|
+
summary: string;
|
|
9393
|
+
} | undefined;
|
|
9394
|
+
};
|
|
9395
|
+
}>;
|
|
9396
|
+
}, "strip", z.ZodTypeAny, {
|
|
9397
|
+
type: TelemetryEventName.TASK_MESSAGE;
|
|
9398
|
+
properties: {
|
|
9399
|
+
message: {
|
|
9400
|
+
ts: number;
|
|
9401
|
+
type: "ask" | "say";
|
|
9402
|
+
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;
|
|
9403
|
+
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;
|
|
9404
|
+
text?: string | undefined;
|
|
9405
|
+
reasoning?: string | undefined;
|
|
9406
|
+
images?: string[] | undefined;
|
|
9407
|
+
partial?: boolean | undefined;
|
|
9408
|
+
conversationHistoryIndex?: number | undefined;
|
|
9409
|
+
checkpoint?: Record<string, unknown> | undefined;
|
|
9410
|
+
progressStatus?: {
|
|
9411
|
+
text?: string | undefined;
|
|
9412
|
+
icon?: string | undefined;
|
|
9413
|
+
} | undefined;
|
|
9414
|
+
contextCondense?: {
|
|
9415
|
+
cost: number;
|
|
9416
|
+
prevContextTokens: number;
|
|
9417
|
+
newContextTokens: number;
|
|
9418
|
+
summary: string;
|
|
9419
|
+
} | undefined;
|
|
9420
|
+
};
|
|
9421
|
+
};
|
|
9422
|
+
}, {
|
|
9423
|
+
type: TelemetryEventName.TASK_MESSAGE;
|
|
9424
|
+
properties: {
|
|
9425
|
+
message: {
|
|
9426
|
+
ts: number;
|
|
9427
|
+
type: "ask" | "say";
|
|
9428
|
+
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;
|
|
9429
|
+
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;
|
|
9430
|
+
text?: string | undefined;
|
|
9431
|
+
reasoning?: string | undefined;
|
|
9432
|
+
images?: string[] | undefined;
|
|
9433
|
+
partial?: boolean | undefined;
|
|
9434
|
+
conversationHistoryIndex?: number | undefined;
|
|
9435
|
+
checkpoint?: Record<string, unknown> | undefined;
|
|
9436
|
+
progressStatus?: {
|
|
9437
|
+
text?: string | undefined;
|
|
9438
|
+
icon?: string | undefined;
|
|
9439
|
+
} | undefined;
|
|
9440
|
+
contextCondense?: {
|
|
9441
|
+
cost: number;
|
|
9442
|
+
prevContextTokens: number;
|
|
9443
|
+
newContextTokens: number;
|
|
9444
|
+
summary: string;
|
|
9445
|
+
} | undefined;
|
|
9446
|
+
};
|
|
9447
|
+
};
|
|
9143
9448
|
}>, z.ZodObject<{
|
|
9144
9449
|
type: z.ZodLiteral<TelemetryEventName.LLM_COMPLETION>;
|
|
9145
9450
|
properties: z.ZodObject<{
|
|
@@ -9236,6 +9541,33 @@ declare const rooCodeTelemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
9236
9541
|
};
|
|
9237
9542
|
}>]>;
|
|
9238
9543
|
type RooCodeTelemetryEvent = z.infer<typeof rooCodeTelemetryEventSchema>;
|
|
9544
|
+
/**
|
|
9545
|
+
* TelemetryEventSubscription
|
|
9546
|
+
*/
|
|
9547
|
+
type TelemetryEventSubscription = {
|
|
9548
|
+
type: "include";
|
|
9549
|
+
events: TelemetryEventName[];
|
|
9550
|
+
} | {
|
|
9551
|
+
type: "exclude";
|
|
9552
|
+
events: TelemetryEventName[];
|
|
9553
|
+
};
|
|
9554
|
+
/**
|
|
9555
|
+
* TelemetryPropertiesProvider
|
|
9556
|
+
*/
|
|
9557
|
+
interface TelemetryPropertiesProvider {
|
|
9558
|
+
getTelemetryProperties(): Promise<TelemetryProperties>;
|
|
9559
|
+
}
|
|
9560
|
+
/**
|
|
9561
|
+
* TelemetryClient
|
|
9562
|
+
*/
|
|
9563
|
+
interface TelemetryClient {
|
|
9564
|
+
subscription?: TelemetryEventSubscription;
|
|
9565
|
+
setProvider(provider: TelemetryPropertiesProvider): void;
|
|
9566
|
+
capture(options: TelemetryEvent): Promise<void>;
|
|
9567
|
+
updateTelemetryState(didUserOptIn: boolean): void;
|
|
9568
|
+
isTelemetryEnabled(): boolean;
|
|
9569
|
+
shutdown(): Promise<void>;
|
|
9570
|
+
}
|
|
9239
9571
|
|
|
9240
9572
|
/**
|
|
9241
9573
|
* CommandExecutionStatus
|
|
@@ -9334,7 +9666,7 @@ type TerminalActionPromptType = `TERMINAL_${TerminalActionName}`;
|
|
|
9334
9666
|
/**
|
|
9335
9667
|
* Command
|
|
9336
9668
|
*/
|
|
9337
|
-
declare const commandIds: readonly ["activationCompleted", "plusButtonClicked", "promptsButtonClicked", "mcpButtonClicked", "historyButtonClicked", "popoutButtonClicked", "settingsButtonClicked", "openInNewTab", "showHumanRelayDialog", "registerHumanRelayCallback", "unregisterHumanRelayCallback", "handleHumanRelayResponse", "newTask", "setCustomStoragePath", "focusInput", "acceptInput"];
|
|
9669
|
+
declare const commandIds: readonly ["activationCompleted", "plusButtonClicked", "promptsButtonClicked", "mcpButtonClicked", "historyButtonClicked", "popoutButtonClicked", "accountButtonClicked", "settingsButtonClicked", "openInNewTab", "showHumanRelayDialog", "registerHumanRelayCallback", "unregisterHumanRelayCallback", "handleHumanRelayResponse", "newTask", "setCustomStoragePath", "focusInput", "acceptInput"];
|
|
9338
9670
|
type CommandId = (typeof commandIds)[number];
|
|
9339
9671
|
/**
|
|
9340
9672
|
* Language
|
|
@@ -9344,4 +9676,4 @@ declare const languagesSchema: z.ZodEnum<["ca", "de", "en", "es", "fr", "hi", "i
|
|
|
9344
9676
|
type Language = z.infer<typeof languagesSchema>;
|
|
9345
9677
|
declare const isLanguage: (value: string) => value is Language;
|
|
9346
9678
|
|
|
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 };
|
|
9679
|
+
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 };
|