@roo-code/types 1.11.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 +1 -1
- package/package.json +1 -1
- package/src/index.d.ts +41 -237
- package/src/index.js +32 -93
package/README.md
CHANGED
package/package.json
CHANGED
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
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
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
|
|
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
|
|
8
|
-
__defProp(target,
|
|
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,15 +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
|
-
|
|
27
|
-
providerNames: () => providerNames,
|
|
28
|
-
rooCodeTelemetryEventSchema: () => rooCodeTelemetryEventSchema
|
|
27
|
+
providerNames: () => providerNames
|
|
29
28
|
});
|
|
30
29
|
module.exports = __toCommonJS(interface_exports);
|
|
31
30
|
|
|
32
31
|
// src/schemas/index.ts
|
|
33
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
|
+
};
|
|
34
45
|
var providerNames = [
|
|
35
46
|
"anthropic",
|
|
36
47
|
"glama",
|
|
@@ -488,6 +499,7 @@ var globalSettingsSchema = import_zod.z.object({
|
|
|
488
499
|
alwaysAllowSubtasks: import_zod.z.boolean().optional(),
|
|
489
500
|
alwaysAllowExecute: import_zod.z.boolean().optional(),
|
|
490
501
|
allowedCommands: import_zod.z.array(import_zod.z.string()).optional(),
|
|
502
|
+
allowedMaxRequests: import_zod.z.number().optional(),
|
|
491
503
|
browserToolEnabled: import_zod.z.boolean().optional(),
|
|
492
504
|
browserViewportSize: import_zod.z.string().optional(),
|
|
493
505
|
screenshotQuality: import_zod.z.number().optional(),
|
|
@@ -550,6 +562,7 @@ var globalSettingsRecord = {
|
|
|
550
562
|
alwaysAllowSubtasks: void 0,
|
|
551
563
|
alwaysAllowExecute: void 0,
|
|
552
564
|
allowedCommands: void 0,
|
|
565
|
+
allowedMaxRequests: void 0,
|
|
553
566
|
browserToolEnabled: void 0,
|
|
554
567
|
browserViewportSize: void 0,
|
|
555
568
|
screenshotQuality: void 0,
|
|
@@ -627,7 +640,8 @@ var clineAsks = [
|
|
|
627
640
|
"resume_completed_task",
|
|
628
641
|
"mistake_limit_reached",
|
|
629
642
|
"browser_action_launch",
|
|
630
|
-
"use_mcp_server"
|
|
643
|
+
"use_mcp_server",
|
|
644
|
+
"auto_approval_max_req_reached"
|
|
631
645
|
];
|
|
632
646
|
var clineAskSchema = import_zod.z.enum(clineAsks);
|
|
633
647
|
var clineSays = [
|
|
@@ -651,13 +665,20 @@ var clineSays = [
|
|
|
651
665
|
"subtask_result",
|
|
652
666
|
"checkpoint_saved",
|
|
653
667
|
"rooignore_error",
|
|
654
|
-
"diff_error"
|
|
668
|
+
"diff_error",
|
|
669
|
+
"condense_context"
|
|
655
670
|
];
|
|
656
671
|
var clineSaySchema = import_zod.z.enum(clineSays);
|
|
657
672
|
var toolProgressStatusSchema = import_zod.z.object({
|
|
658
673
|
icon: import_zod.z.string().optional(),
|
|
659
674
|
text: import_zod.z.string().optional()
|
|
660
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
|
+
});
|
|
661
682
|
var clineMessageSchema = import_zod.z.object({
|
|
662
683
|
ts: import_zod.z.number(),
|
|
663
684
|
type: import_zod.z.union([import_zod.z.literal("ask"), import_zod.z.literal("say")]),
|
|
@@ -669,7 +690,8 @@ var clineMessageSchema = import_zod.z.object({
|
|
|
669
690
|
reasoning: import_zod.z.string().optional(),
|
|
670
691
|
conversationHistoryIndex: import_zod.z.number().optional(),
|
|
671
692
|
checkpoint: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()).optional(),
|
|
672
|
-
progressStatus: toolProgressStatusSchema.optional()
|
|
693
|
+
progressStatus: toolProgressStatusSchema.optional(),
|
|
694
|
+
contextCondense: contextCondenseSchema.optional()
|
|
673
695
|
});
|
|
674
696
|
var tokenUsageSchema = import_zod.z.object({
|
|
675
697
|
totalTokensIn: import_zod.z.number(),
|
|
@@ -843,94 +865,11 @@ var ipcMessageSchema = import_zod.z.discriminatedUnion("type", [
|
|
|
843
865
|
data: taskEventSchema
|
|
844
866
|
})
|
|
845
867
|
]);
|
|
846
|
-
var TelemetryEventName = /* @__PURE__ */ ((TelemetryEventName2) => {
|
|
847
|
-
TelemetryEventName2["TASK_CREATED"] = "Task Created";
|
|
848
|
-
TelemetryEventName2["TASK_RESTARTED"] = "Task Reopened";
|
|
849
|
-
TelemetryEventName2["TASK_COMPLETED"] = "Task Completed";
|
|
850
|
-
TelemetryEventName2["TASK_CONVERSATION_MESSAGE"] = "Conversation Message";
|
|
851
|
-
TelemetryEventName2["LLM_COMPLETION"] = "LLM Completion";
|
|
852
|
-
TelemetryEventName2["MODE_SWITCH"] = "Mode Switched";
|
|
853
|
-
TelemetryEventName2["TOOL_USED"] = "Tool Used";
|
|
854
|
-
TelemetryEventName2["CHECKPOINT_CREATED"] = "Checkpoint Created";
|
|
855
|
-
TelemetryEventName2["CHECKPOINT_RESTORED"] = "Checkpoint Restored";
|
|
856
|
-
TelemetryEventName2["CHECKPOINT_DIFFED"] = "Checkpoint Diffed";
|
|
857
|
-
TelemetryEventName2["CODE_ACTION_USED"] = "Code Action Used";
|
|
858
|
-
TelemetryEventName2["PROMPT_ENHANCED"] = "Prompt Enhanced";
|
|
859
|
-
TelemetryEventName2["TITLE_BUTTON_CLICKED"] = "Title Button Clicked";
|
|
860
|
-
TelemetryEventName2["AUTHENTICATION_INITIATED"] = "Authentication Initiated";
|
|
861
|
-
TelemetryEventName2["SCHEMA_VALIDATION_ERROR"] = "Schema Validation Error";
|
|
862
|
-
TelemetryEventName2["DIFF_APPLICATION_ERROR"] = "Diff Application Error";
|
|
863
|
-
TelemetryEventName2["SHELL_INTEGRATION_ERROR"] = "Shell Integration Error";
|
|
864
|
-
TelemetryEventName2["CONSECUTIVE_MISTAKE_ERROR"] = "Consecutive Mistake Error";
|
|
865
|
-
return TelemetryEventName2;
|
|
866
|
-
})(TelemetryEventName || {});
|
|
867
|
-
var appPropertiesSchema = import_zod.z.object({
|
|
868
|
-
appVersion: import_zod.z.string(),
|
|
869
|
-
vscodeVersion: import_zod.z.string(),
|
|
870
|
-
platform: import_zod.z.string(),
|
|
871
|
-
editorName: import_zod.z.string(),
|
|
872
|
-
language: import_zod.z.string(),
|
|
873
|
-
mode: import_zod.z.string()
|
|
874
|
-
});
|
|
875
|
-
var taskPropertiesSchema = import_zod.z.object({
|
|
876
|
-
taskId: import_zod.z.string().optional(),
|
|
877
|
-
apiProvider: import_zod.z.enum(providerNames).optional(),
|
|
878
|
-
modelId: import_zod.z.string().optional(),
|
|
879
|
-
diffStrategy: import_zod.z.string().optional(),
|
|
880
|
-
isSubtask: import_zod.z.boolean().optional()
|
|
881
|
-
});
|
|
882
|
-
var telemetryPropertiesSchema = import_zod.z.object({
|
|
883
|
-
...appPropertiesSchema.shape,
|
|
884
|
-
...taskPropertiesSchema.shape
|
|
885
|
-
});
|
|
886
|
-
var completionPropertiesSchema = import_zod.z.object({
|
|
887
|
-
inputTokens: import_zod.z.number(),
|
|
888
|
-
outputTokens: import_zod.z.number(),
|
|
889
|
-
cacheReadTokens: import_zod.z.number().optional(),
|
|
890
|
-
cacheWriteTokens: import_zod.z.number().optional(),
|
|
891
|
-
cost: import_zod.z.number().optional()
|
|
892
|
-
});
|
|
893
|
-
var rooCodeTelemetryEventSchema = import_zod.z.discriminatedUnion("type", [
|
|
894
|
-
import_zod.z.object({
|
|
895
|
-
type: import_zod.z.enum([
|
|
896
|
-
"Task Created" /* TASK_CREATED */,
|
|
897
|
-
"Task Reopened" /* TASK_RESTARTED */,
|
|
898
|
-
"Task Completed" /* TASK_COMPLETED */,
|
|
899
|
-
"Conversation Message" /* TASK_CONVERSATION_MESSAGE */,
|
|
900
|
-
"Mode Switched" /* MODE_SWITCH */,
|
|
901
|
-
"Tool Used" /* TOOL_USED */,
|
|
902
|
-
"Checkpoint Created" /* CHECKPOINT_CREATED */,
|
|
903
|
-
"Checkpoint Restored" /* CHECKPOINT_RESTORED */,
|
|
904
|
-
"Checkpoint Diffed" /* CHECKPOINT_DIFFED */,
|
|
905
|
-
"Code Action Used" /* CODE_ACTION_USED */,
|
|
906
|
-
"Prompt Enhanced" /* PROMPT_ENHANCED */,
|
|
907
|
-
"Title Button Clicked" /* TITLE_BUTTON_CLICKED */,
|
|
908
|
-
"Authentication Initiated" /* AUTHENTICATION_INITIATED */,
|
|
909
|
-
"Schema Validation Error" /* SCHEMA_VALIDATION_ERROR */,
|
|
910
|
-
"Diff Application Error" /* DIFF_APPLICATION_ERROR */,
|
|
911
|
-
"Shell Integration Error" /* SHELL_INTEGRATION_ERROR */,
|
|
912
|
-
"Consecutive Mistake Error" /* CONSECUTIVE_MISTAKE_ERROR */
|
|
913
|
-
]),
|
|
914
|
-
properties: import_zod.z.object({
|
|
915
|
-
...appPropertiesSchema.shape,
|
|
916
|
-
...taskPropertiesSchema.shape
|
|
917
|
-
})
|
|
918
|
-
}),
|
|
919
|
-
import_zod.z.object({
|
|
920
|
-
type: import_zod.z.literal("LLM Completion" /* LLM_COMPLETION */),
|
|
921
|
-
properties: import_zod.z.object({
|
|
922
|
-
...appPropertiesSchema.shape,
|
|
923
|
-
...taskPropertiesSchema.shape,
|
|
924
|
-
...completionPropertiesSchema.shape
|
|
925
|
-
})
|
|
926
|
-
})
|
|
927
|
-
]);
|
|
928
868
|
// Annotate the CommonJS export names for ESM import in node:
|
|
929
869
|
0 && (module.exports = {
|
|
930
870
|
IpcMessageType,
|
|
931
871
|
IpcOrigin,
|
|
872
|
+
Package,
|
|
932
873
|
RooCodeEventName,
|
|
933
|
-
|
|
934
|
-
providerNames,
|
|
935
|
-
rooCodeTelemetryEventSchema
|
|
874
|
+
providerNames
|
|
936
875
|
});
|