@roo-code/types 1.10.0 → 1.12.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Roo Code Types
2
2
 
3
- TypeScript type definitions for Roo Code. Available on (NPM)[https://www.npmjs.com/package/@roo-code/types].
3
+ TypeScript type definitions for Roo Code. Available on [NPM](https://www.npmjs.com/package/@roo-code/types).
4
4
 
5
5
  ## Installation
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roo-code/types",
3
- "version": "1.10.0",
3
+ "version": "1.12.0",
4
4
  "description": "TypeScript type definitions for Roo Code",
5
5
  "publishConfig": {
6
6
  "access": "public"
package/src/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { EventEmitter } from 'events';
2
2
  import { Socket } from 'node:net';
3
- import { z } from 'zod';
4
3
 
5
4
  type GlobalSettings = {
6
5
  currentApiConfigName?: string | undefined;
@@ -41,6 +40,7 @@ type GlobalSettings = {
41
40
  alwaysAllowSubtasks?: boolean | undefined;
42
41
  alwaysAllowExecute?: boolean | undefined;
43
42
  allowedCommands?: string[] | undefined;
43
+ allowedMaxRequests?: number | undefined;
44
44
  browserToolEnabled?: boolean | undefined;
45
45
  browserViewportSize?: string | undefined;
46
46
  screenshotQuality?: number | undefined;
@@ -226,8 +226,8 @@ type ProviderSettingsEntry = {
226
226
  type ClineMessage = {
227
227
  ts: number;
228
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;
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" | "auto_approval_max_req_reached") | 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" | "condense_context") | undefined;
231
231
  text?: string | undefined;
232
232
  images?: string[] | undefined;
233
233
  partial?: boolean | undefined;
@@ -240,6 +240,12 @@ type ClineMessage = {
240
240
  icon?: string | undefined;
241
241
  text?: string | undefined;
242
242
  } | undefined;
243
+ contextCondense?: {
244
+ cost: number;
245
+ prevContextTokens: number;
246
+ newContextTokens: number;
247
+ summary: string;
248
+ } | undefined;
243
249
  };
244
250
 
245
251
  type TokenUsage = {
@@ -259,8 +265,8 @@ type RooCodeEvents = {
259
265
  message: {
260
266
  ts: number;
261
267
  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;
268
+ 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;
269
+ 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" | "condense_context") | undefined;
264
270
  text?: string | undefined;
265
271
  images?: string[] | undefined;
266
272
  partial?: boolean | undefined;
@@ -273,6 +279,12 @@ type RooCodeEvents = {
273
279
  icon?: string | undefined;
274
280
  text?: string | undefined;
275
281
  } | undefined;
282
+ contextCondense?: {
283
+ cost: number;
284
+ prevContextTokens: number;
285
+ newContextTokens: number;
286
+ summary: string;
287
+ } | undefined;
276
288
  };
277
289
  }
278
290
  ];
@@ -493,6 +505,7 @@ type IpcMessage = {
493
505
  alwaysAllowSubtasks?: boolean | undefined;
494
506
  alwaysAllowExecute?: boolean | undefined;
495
507
  allowedCommands?: string[] | undefined;
508
+ allowedMaxRequests?: number | undefined;
496
509
  browserToolEnabled?: boolean | undefined;
497
510
  browserViewportSize?: string | undefined;
498
511
  screenshotQuality?: number | undefined;
@@ -582,8 +595,8 @@ type IpcMessage = {
582
595
  message: {
583
596
  ts: number;
584
597
  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;
598
+ 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;
599
+ 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" | "condense_context") | undefined;
587
600
  text?: string | undefined;
588
601
  images?: string[] | undefined;
589
602
  partial?: boolean | undefined;
@@ -596,6 +609,12 @@ type IpcMessage = {
596
609
  icon?: string | undefined;
597
610
  text?: string | undefined;
598
611
  } | undefined;
612
+ contextCondense?: {
613
+ cost: number;
614
+ prevContextTokens: number;
615
+ newContextTokens: number;
616
+ summary: string;
617
+ } | undefined;
599
618
  };
600
619
  }
601
620
  ];
@@ -820,6 +839,7 @@ type TaskCommand = {
820
839
  alwaysAllowSubtasks?: boolean | undefined;
821
840
  alwaysAllowExecute?: boolean | undefined;
822
841
  allowedCommands?: string[] | undefined;
842
+ allowedMaxRequests?: number | undefined;
823
843
  browserToolEnabled?: boolean | undefined;
824
844
  browserViewportSize?: string | undefined;
825
845
  screenshotQuality?: number | undefined;
@@ -906,8 +926,8 @@ type TaskEvent = {
906
926
  message: {
907
927
  ts: number;
908
928
  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;
929
+ 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;
930
+ 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" | "condense_context") | undefined;
911
931
  text?: string | undefined;
912
932
  images?: string[] | undefined;
913
933
  partial?: boolean | undefined;
@@ -920,6 +940,12 @@ type TaskEvent = {
920
940
  icon?: string | undefined;
921
941
  text?: string | undefined;
922
942
  } | undefined;
943
+ contextCondense?: {
944
+ cost: number;
945
+ prevContextTokens: number;
946
+ newContextTokens: number;
947
+ summary: string;
948
+ } | undefined;
923
949
  };
924
950
  }
925
951
  ];
@@ -999,43 +1025,11 @@ type TaskEvent = {
999
1025
  ];
1000
1026
  };
1001
1027
 
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
- };
1028
+ declare const Package: {
1029
+ readonly publisher: string;
1030
+ readonly name: string;
1031
+ readonly version: string;
1037
1032
  };
1038
-
1039
1033
  /**
1040
1034
  * ProviderName
1041
1035
  */
@@ -1071,201 +1065,11 @@ declare enum IpcOrigin {
1071
1065
  Client = "client",
1072
1066
  Server = "server"
1073
1067
  }
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
1068
 
1262
- /**
1263
- * RooCodeSettings
1264
- */
1265
- type RooCodeSettings = GlobalSettings & ProviderSettings;
1266
1069
  /**
1267
1070
  * RooCodeAPI
1268
1071
  */
1072
+ type RooCodeSettings = GlobalSettings & ProviderSettings;
1269
1073
  interface RooCodeAPI extends EventEmitter<RooCodeEvents> {
1270
1074
  /**
1271
1075
  * Starts a new task with an optional initial message and images.
@@ -1404,4 +1208,4 @@ interface RooCodeIpcServer extends EventEmitter<IpcServerEvents> {
1404
1208
  get isListening(): boolean;
1405
1209
  }
1406
1210
 
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, type TokenUsage, providerNames, rooCodeTelemetryEventSchema };
1211
+ export { type ClineMessage, type GlobalSettings, type IpcMessage, IpcMessageType, IpcOrigin, type IpcServerEvents, Package, type ProviderName, type ProviderSettings, type ProviderSettingsEntry, type RooCodeAPI, RooCodeEventName, type RooCodeEvents, type RooCodeIpcServer, type RooCodeSettings, type TaskCommand, type TaskEvent, type TokenUsage, providerNames };
package/src/index.js CHANGED
@@ -4,8 +4,8 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
6
  var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
7
+ for (var name2 in all)
8
+ __defProp(target, name2, { get: all[name2], enumerable: true });
9
9
  };
10
10
  var __copyProps = (to, from, except, desc) => {
11
11
  if (from && typeof from === "object" || typeof from === "function") {
@@ -22,14 +22,26 @@ var interface_exports = {};
22
22
  __export(interface_exports, {
23
23
  IpcMessageType: () => IpcMessageType,
24
24
  IpcOrigin: () => IpcOrigin,
25
+ Package: () => Package,
25
26
  RooCodeEventName: () => RooCodeEventName,
26
- providerNames: () => providerNames,
27
- rooCodeTelemetryEventSchema: () => rooCodeTelemetryEventSchema
27
+ providerNames: () => providerNames
28
28
  });
29
29
  module.exports = __toCommonJS(interface_exports);
30
30
 
31
31
  // src/schemas/index.ts
32
32
  var import_zod = require("zod");
33
+
34
+ // package.json
35
+ var name = "roo-cline";
36
+ var publisher = "RooVeterinaryInc";
37
+ var version = "3.17.2";
38
+
39
+ // src/schemas/index.ts
40
+ var Package = {
41
+ publisher,
42
+ name,
43
+ version
44
+ };
33
45
  var providerNames = [
34
46
  "anthropic",
35
47
  "glama",
@@ -487,6 +499,7 @@ var globalSettingsSchema = import_zod.z.object({
487
499
  alwaysAllowSubtasks: import_zod.z.boolean().optional(),
488
500
  alwaysAllowExecute: import_zod.z.boolean().optional(),
489
501
  allowedCommands: import_zod.z.array(import_zod.z.string()).optional(),
502
+ allowedMaxRequests: import_zod.z.number().optional(),
490
503
  browserToolEnabled: import_zod.z.boolean().optional(),
491
504
  browserViewportSize: import_zod.z.string().optional(),
492
505
  screenshotQuality: import_zod.z.number().optional(),
@@ -549,6 +562,7 @@ var globalSettingsRecord = {
549
562
  alwaysAllowSubtasks: void 0,
550
563
  alwaysAllowExecute: void 0,
551
564
  allowedCommands: void 0,
565
+ allowedMaxRequests: void 0,
552
566
  browserToolEnabled: void 0,
553
567
  browserViewportSize: void 0,
554
568
  screenshotQuality: void 0,
@@ -626,7 +640,8 @@ var clineAsks = [
626
640
  "resume_completed_task",
627
641
  "mistake_limit_reached",
628
642
  "browser_action_launch",
629
- "use_mcp_server"
643
+ "use_mcp_server",
644
+ "auto_approval_max_req_reached"
630
645
  ];
631
646
  var clineAskSchema = import_zod.z.enum(clineAsks);
632
647
  var clineSays = [
@@ -650,13 +665,20 @@ var clineSays = [
650
665
  "subtask_result",
651
666
  "checkpoint_saved",
652
667
  "rooignore_error",
653
- "diff_error"
668
+ "diff_error",
669
+ "condense_context"
654
670
  ];
655
671
  var clineSaySchema = import_zod.z.enum(clineSays);
656
672
  var toolProgressStatusSchema = import_zod.z.object({
657
673
  icon: import_zod.z.string().optional(),
658
674
  text: import_zod.z.string().optional()
659
675
  });
676
+ var contextCondenseSchema = import_zod.z.object({
677
+ cost: import_zod.z.number(),
678
+ prevContextTokens: import_zod.z.number(),
679
+ newContextTokens: import_zod.z.number(),
680
+ summary: import_zod.z.string()
681
+ });
660
682
  var clineMessageSchema = import_zod.z.object({
661
683
  ts: import_zod.z.number(),
662
684
  type: import_zod.z.union([import_zod.z.literal("ask"), import_zod.z.literal("say")]),
@@ -668,7 +690,8 @@ var clineMessageSchema = import_zod.z.object({
668
690
  reasoning: import_zod.z.string().optional(),
669
691
  conversationHistoryIndex: import_zod.z.number().optional(),
670
692
  checkpoint: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()).optional(),
671
- progressStatus: toolProgressStatusSchema.optional()
693
+ progressStatus: toolProgressStatusSchema.optional(),
694
+ contextCondense: contextCondenseSchema.optional()
672
695
  });
673
696
  var tokenUsageSchema = import_zod.z.object({
674
697
  totalTokensIn: import_zod.z.number(),
@@ -842,72 +865,11 @@ var ipcMessageSchema = import_zod.z.discriminatedUnion("type", [
842
865
  data: taskEventSchema
843
866
  })
844
867
  ]);
845
- var appPropertiesSchema = import_zod.z.object({
846
- appVersion: import_zod.z.string(),
847
- vscodeVersion: import_zod.z.string(),
848
- platform: import_zod.z.string(),
849
- editorName: import_zod.z.string(),
850
- language: import_zod.z.string(),
851
- mode: import_zod.z.string()
852
- });
853
- var taskPropertiesSchema = import_zod.z.object({
854
- taskId: import_zod.z.string().optional(),
855
- apiProvider: import_zod.z.enum(providerNames).optional(),
856
- modelId: import_zod.z.string().optional(),
857
- diffStrategy: import_zod.z.string().optional(),
858
- isSubtask: import_zod.z.boolean().optional()
859
- });
860
- var telemetryPropertiesSchema = import_zod.z.object({
861
- ...appPropertiesSchema.shape,
862
- ...taskPropertiesSchema.shape
863
- });
864
- var completionPropertiesSchema = import_zod.z.object({
865
- inputTokens: import_zod.z.number(),
866
- outputTokens: import_zod.z.number(),
867
- cacheReadTokens: import_zod.z.number().optional(),
868
- cacheWriteTokens: import_zod.z.number().optional(),
869
- cost: import_zod.z.number().optional()
870
- });
871
- var rooCodeTelemetryEventSchema = import_zod.z.discriminatedUnion("type", [
872
- import_zod.z.object({
873
- type: import_zod.z.enum([
874
- "Task Created" /* TASK_CREATED */,
875
- "Task Reopened" /* TASK_RESTARTED */,
876
- "Task Completed" /* TASK_COMPLETED */,
877
- "Conversation Message" /* TASK_CONVERSATION_MESSAGE */,
878
- "Mode Switched" /* MODE_SWITCH */,
879
- "Tool Used" /* TOOL_USED */,
880
- "Checkpoint Created" /* CHECKPOINT_CREATED */,
881
- "Checkpoint Restored" /* CHECKPOINT_RESTORED */,
882
- "Checkpoint Diffed" /* CHECKPOINT_DIFFED */,
883
- "Code Action Used" /* CODE_ACTION_USED */,
884
- "Prompt Enhanced" /* PROMPT_ENHANCED */,
885
- "Title Button Clicked" /* TITLE_BUTTON_CLICKED */,
886
- "Authentication Initiated" /* AUTHENTICATION_INITIATED */,
887
- "Schema Validation Error" /* SCHEMA_VALIDATION_ERROR */,
888
- "Diff Application Error" /* DIFF_APPLICATION_ERROR */,
889
- "Shell Integration Error" /* SHELL_INTEGRATION_ERROR */,
890
- "Consecutive Mistake Error" /* CONSECUTIVE_MISTAKE_ERROR */
891
- ]),
892
- properties: import_zod.z.object({
893
- ...appPropertiesSchema.shape,
894
- ...taskPropertiesSchema.shape
895
- })
896
- }),
897
- import_zod.z.object({
898
- type: import_zod.z.literal("LLM Completion" /* LLM_COMPLETION */),
899
- properties: import_zod.z.object({
900
- ...appPropertiesSchema.shape,
901
- ...taskPropertiesSchema.shape,
902
- ...completionPropertiesSchema.shape
903
- })
904
- })
905
- ]);
906
868
  // Annotate the CommonJS export names for ESM import in node:
907
869
  0 && (module.exports = {
908
870
  IpcMessageType,
909
871
  IpcOrigin,
872
+ Package,
910
873
  RooCodeEventName,
911
- providerNames,
912
- rooCodeTelemetryEventSchema
874
+ providerNames
913
875
  });