@roo-code/types 1.6.0 → 1.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roo-code/types",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "TypeScript type definitions for Roo Code",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -20,20 +20,22 @@
20
20
  "roo-code",
21
21
  "ai"
22
22
  ],
23
- "main": "./dist/index.js",
24
- "module": "./dist/index.mjs",
25
- "types": "./dist/index.d.ts",
23
+ "main": "./src/index.js",
24
+ "types": "./src/index.d.ts",
26
25
  "files": [
27
- "dist"
26
+ "src"
28
27
  ],
29
28
  "packageManager": "pnpm@10.8.1",
30
29
  "scripts": {
31
- "build": "tsup",
30
+ "build": "echo 'no-op'",
32
31
  "prepublishOnly": "pnpm run build",
33
32
  "check-types": "tsc --noEmit",
34
33
  "release:test": "dotenvx run -f .env.local -- semantic-release --dry-run",
35
34
  "release": "dotenvx run -f .env.local -- semantic-release --no-ci"
36
35
  },
36
+ "dependencies": {
37
+ "zod": "^3.24.4"
38
+ },
37
39
  "devDependencies": {
38
40
  "@dotenvx/dotenvx": "^1.44.0",
39
41
  "@types/node": "^22.15.17",
@@ -105,6 +105,7 @@ type GlobalSettings = {
105
105
  enhancementApiConfigId?: string | undefined;
106
106
  historyPreviewCollapsed?: boolean | undefined;
107
107
  };
108
+
108
109
  type ProviderSettings = {
109
110
  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;
110
111
  includeMaxTokens?: boolean | undefined;
@@ -209,11 +210,13 @@ type ProviderSettings = {
209
210
  litellmApiKey?: string | undefined;
210
211
  litellmModelId?: string | undefined;
211
212
  };
213
+
212
214
  type ProviderSettingsEntry = {
213
215
  id: string;
214
216
  name: string;
215
217
  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;
216
218
  };
219
+
217
220
  type ClineMessage = {
218
221
  ts: number;
219
222
  type: "ask" | "say";
@@ -232,6 +235,7 @@ type ClineMessage = {
232
235
  text?: string | undefined;
233
236
  } | undefined;
234
237
  };
238
+
235
239
  type TokenUsage = {
236
240
  totalTokensIn: number;
237
241
  totalTokensOut: number;
@@ -240,6 +244,7 @@ type TokenUsage = {
240
244
  totalCost: number;
241
245
  contextTokens: number;
242
246
  };
247
+
243
248
  type RooCodeEvents = {
244
249
  message: [
245
250
  {
@@ -265,14 +270,32 @@ type RooCodeEvents = {
265
270
  };
266
271
  }
267
272
  ];
268
- taskCreated: [string];
269
- taskStarted: [string];
270
- taskModeSwitched: [string, string];
271
- taskPaused: [string];
272
- taskUnpaused: [string];
273
- taskAskResponded: [string];
274
- taskAborted: [string];
275
- taskSpawned: [string, string];
273
+ taskCreated: [
274
+ string
275
+ ];
276
+ taskStarted: [
277
+ string
278
+ ];
279
+ taskModeSwitched: [
280
+ string,
281
+ string
282
+ ];
283
+ taskPaused: [
284
+ string
285
+ ];
286
+ taskUnpaused: [
287
+ string
288
+ ];
289
+ taskAskResponded: [
290
+ string
291
+ ];
292
+ taskAborted: [
293
+ string
294
+ ];
295
+ taskSpawned: [
296
+ string,
297
+ string
298
+ ];
276
299
  taskCompleted: [
277
300
  string,
278
301
  {
@@ -303,10 +326,11 @@ type RooCodeEvents = {
303
326
  ];
304
327
  taskToolFailed: [
305
328
  string,
306
- ("execute_command" | "read_file" | "write_to_file" | "apply_diff" | "insert_content" | "search_and_replace" | "search_files" | "list_files" | "list_code_definition_names" | "browser_action" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "attempt_completion" | "switch_mode" | "new_task" | "fetch_instructions"),
329
+ "execute_command" | "read_file" | "write_to_file" | "apply_diff" | "insert_content" | "search_and_replace" | "search_files" | "list_files" | "list_code_definition_names" | "browser_action" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "attempt_completion" | "switch_mode" | "new_task" | "fetch_instructions",
307
330
  string
308
331
  ];
309
332
  };
333
+
310
334
  type IpcMessage = {
311
335
  type: "Ack";
312
336
  origin: "server";
@@ -568,28 +592,46 @@ type IpcMessage = {
568
592
  ];
569
593
  } | {
570
594
  eventName: "taskCreated";
571
- payload: [string];
595
+ payload: [
596
+ string
597
+ ];
572
598
  } | {
573
599
  eventName: "taskStarted";
574
- payload: [string];
600
+ payload: [
601
+ string
602
+ ];
575
603
  } | {
576
604
  eventName: "taskModeSwitched";
577
- payload: [string, string];
605
+ payload: [
606
+ string,
607
+ string
608
+ ];
578
609
  } | {
579
610
  eventName: "taskPaused";
580
- payload: [string];
611
+ payload: [
612
+ string
613
+ ];
581
614
  } | {
582
615
  eventName: "taskUnpaused";
583
- payload: [string];
616
+ payload: [
617
+ string
618
+ ];
584
619
  } | {
585
620
  eventName: "taskAskResponded";
586
- payload: [string];
621
+ payload: [
622
+ string
623
+ ];
587
624
  } | {
588
625
  eventName: "taskAborted";
589
- payload: [string];
626
+ payload: [
627
+ string
628
+ ];
590
629
  } | {
591
630
  eventName: "taskSpawned";
592
- payload: [string, string];
631
+ payload: [
632
+ string,
633
+ string
634
+ ];
593
635
  } | {
594
636
  eventName: "taskCompleted";
595
637
  payload: [
@@ -624,6 +666,7 @@ type IpcMessage = {
624
666
  ];
625
667
  };
626
668
  };
669
+
627
670
  type TaskCommand = {
628
671
  commandName: "StartNewTask";
629
672
  data: {
@@ -841,6 +884,7 @@ type TaskCommand = {
841
884
  commandName: "CloseTask";
842
885
  data: string;
843
886
  };
887
+
844
888
  type TaskEvent = {
845
889
  eventName: "message";
846
890
  payload: [
@@ -869,28 +913,46 @@ type TaskEvent = {
869
913
  ];
870
914
  } | {
871
915
  eventName: "taskCreated";
872
- payload: [string];
916
+ payload: [
917
+ string
918
+ ];
873
919
  } | {
874
920
  eventName: "taskStarted";
875
- payload: [string];
921
+ payload: [
922
+ string
923
+ ];
876
924
  } | {
877
925
  eventName: "taskModeSwitched";
878
- payload: [string, string];
926
+ payload: [
927
+ string,
928
+ string
929
+ ];
879
930
  } | {
880
931
  eventName: "taskPaused";
881
- payload: [string];
932
+ payload: [
933
+ string
934
+ ];
882
935
  } | {
883
936
  eventName: "taskUnpaused";
884
- payload: [string];
937
+ payload: [
938
+ string
939
+ ];
885
940
  } | {
886
941
  eventName: "taskAskResponded";
887
- payload: [string];
942
+ payload: [
943
+ string
944
+ ];
888
945
  } | {
889
946
  eventName: "taskAborted";
890
- payload: [string];
947
+ payload: [
948
+ string
949
+ ];
891
950
  } | {
892
951
  eventName: "taskSpawned";
893
- payload: [string, string];
952
+ payload: [
953
+ string,
954
+ string
955
+ ];
894
956
  } | {
895
957
  eventName: "taskCompleted";
896
958
  payload: [
@@ -924,6 +986,7 @@ type TaskEvent = {
924
986
  }
925
987
  ];
926
988
  };
989
+
927
990
  /**
928
991
  * RooCodeEvent
929
992
  */
@@ -955,6 +1018,7 @@ declare enum IpcOrigin {
955
1018
  Client = "client",
956
1019
  Server = "server"
957
1020
  }
1021
+
958
1022
  /**
959
1023
  * RooCodeAPI
960
1024
  */