@roo-code/types 1.28.0 → 1.29.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 CHANGED
@@ -70,6 +70,7 @@ __export(index_exports, {
70
70
  clineMessageSchema: () => clineMessageSchema,
71
71
  clineSaySchema: () => clineSaySchema,
72
72
  clineSays: () => clineSays,
73
+ cloudTelemetryPropertiesSchema: () => cloudTelemetryPropertiesSchema,
73
74
  codeActionIds: () => codeActionIds,
74
75
  codebaseIndexConfigSchema: () => codebaseIndexConfigSchema,
75
76
  codebaseIndexModelsSchema: () => codebaseIndexModelsSchema,
@@ -88,6 +89,7 @@ __export(index_exports, {
88
89
  geminiDefaultModelId: () => geminiDefaultModelId,
89
90
  geminiModels: () => geminiModels,
90
91
  getModelId: () => getModelId,
92
+ gitPropertiesSchema: () => gitPropertiesSchema,
91
93
  glamaDefaultModelId: () => glamaDefaultModelId,
92
94
  glamaDefaultModelInfo: () => glamaDefaultModelInfo,
93
95
  globalSettingsSchema: () => globalSettingsSchema,
@@ -914,11 +916,31 @@ var chutesModels = {
914
916
  // src/providers/claude-code.ts
915
917
  var claudeCodeDefaultModelId = "claude-sonnet-4-20250514";
916
918
  var claudeCodeModels = {
917
- "claude-sonnet-4-20250514": anthropicModels["claude-sonnet-4-20250514"],
918
- "claude-opus-4-20250514": anthropicModels["claude-opus-4-20250514"],
919
- "claude-3-7-sonnet-20250219": anthropicModels["claude-3-7-sonnet-20250219"],
920
- "claude-3-5-sonnet-20241022": anthropicModels["claude-3-5-sonnet-20241022"],
921
- "claude-3-5-haiku-20241022": anthropicModels["claude-3-5-haiku-20241022"]
919
+ "claude-sonnet-4-20250514": {
920
+ ...anthropicModels["claude-sonnet-4-20250514"],
921
+ supportsImages: false,
922
+ supportsPromptCache: false
923
+ },
924
+ "claude-opus-4-20250514": {
925
+ ...anthropicModels["claude-opus-4-20250514"],
926
+ supportsImages: false,
927
+ supportsPromptCache: false
928
+ },
929
+ "claude-3-7-sonnet-20250219": {
930
+ ...anthropicModels["claude-3-7-sonnet-20250219"],
931
+ supportsImages: false,
932
+ supportsPromptCache: false
933
+ },
934
+ "claude-3-5-sonnet-20241022": {
935
+ ...anthropicModels["claude-3-5-sonnet-20241022"],
936
+ supportsImages: false,
937
+ supportsPromptCache: false
938
+ },
939
+ "claude-3-5-haiku-20241022": {
940
+ ...anthropicModels["claude-3-5-haiku-20241022"],
941
+ supportsImages: false,
942
+ supportsPromptCache: false
943
+ }
922
944
  };
923
945
 
924
946
  // src/providers/deepseek.ts
@@ -2707,6 +2729,9 @@ var TelemetryEventName = /* @__PURE__ */ ((TelemetryEventName2) => {
2707
2729
  TelemetryEventName2["CHECKPOINT_CREATED"] = "Checkpoint Created";
2708
2730
  TelemetryEventName2["CHECKPOINT_RESTORED"] = "Checkpoint Restored";
2709
2731
  TelemetryEventName2["CHECKPOINT_DIFFED"] = "Checkpoint Diffed";
2732
+ TelemetryEventName2["TAB_SHOWN"] = "Tab Shown";
2733
+ TelemetryEventName2["MODE_SETTINGS_CHANGED"] = "Mode Setting Changed";
2734
+ TelemetryEventName2["CUSTOM_MODE_CREATED"] = "Custom Mode Created";
2710
2735
  TelemetryEventName2["CONTEXT_CONDENSED"] = "Context Condensed";
2711
2736
  TelemetryEventName2["SLIDING_WINDOW_TRUNCATION"] = "Sliding Window Truncation";
2712
2737
  TelemetryEventName2["CODE_ACTION_USED"] = "Code Action Used";
@@ -2739,9 +2764,18 @@ var taskPropertiesSchema = import_zod7.z.object({
2739
2764
  diffStrategy: import_zod7.z.string().optional(),
2740
2765
  isSubtask: import_zod7.z.boolean().optional()
2741
2766
  });
2767
+ var gitPropertiesSchema = import_zod7.z.object({
2768
+ repositoryUrl: import_zod7.z.string().optional(),
2769
+ repositoryName: import_zod7.z.string().optional(),
2770
+ defaultBranch: import_zod7.z.string().optional()
2771
+ });
2742
2772
  var telemetryPropertiesSchema = import_zod7.z.object({
2743
2773
  ...appPropertiesSchema.shape,
2744
- ...taskPropertiesSchema.shape
2774
+ ...taskPropertiesSchema.shape,
2775
+ ...gitPropertiesSchema.shape
2776
+ });
2777
+ var cloudTelemetryPropertiesSchema = import_zod7.z.object({
2778
+ ...telemetryPropertiesSchema.shape
2745
2779
  });
2746
2780
  var rooCodeTelemetryEventSchema = import_zod7.z.discriminatedUnion("type", [
2747
2781
  import_zod7.z.object({
@@ -2766,14 +2800,17 @@ var rooCodeTelemetryEventSchema = import_zod7.z.discriminatedUnion("type", [
2766
2800
  "Shell Integration Error" /* SHELL_INTEGRATION_ERROR */,
2767
2801
  "Consecutive Mistake Error" /* CONSECUTIVE_MISTAKE_ERROR */,
2768
2802
  "Context Condensed" /* CONTEXT_CONDENSED */,
2769
- "Sliding Window Truncation" /* SLIDING_WINDOW_TRUNCATION */
2803
+ "Sliding Window Truncation" /* SLIDING_WINDOW_TRUNCATION */,
2804
+ "Tab Shown" /* TAB_SHOWN */,
2805
+ "Mode Setting Changed" /* MODE_SETTINGS_CHANGED */,
2806
+ "Custom Mode Created" /* CUSTOM_MODE_CREATED */
2770
2807
  ]),
2771
- properties: telemetryPropertiesSchema
2808
+ properties: cloudTelemetryPropertiesSchema
2772
2809
  }),
2773
2810
  import_zod7.z.object({
2774
2811
  type: import_zod7.z.literal("Task Message" /* TASK_MESSAGE */),
2775
2812
  properties: import_zod7.z.object({
2776
- ...telemetryPropertiesSchema.shape,
2813
+ ...cloudTelemetryPropertiesSchema.shape,
2777
2814
  taskId: import_zod7.z.string(),
2778
2815
  message: clineMessageSchema
2779
2816
  })
@@ -2781,7 +2818,7 @@ var rooCodeTelemetryEventSchema = import_zod7.z.discriminatedUnion("type", [
2781
2818
  import_zod7.z.object({
2782
2819
  type: import_zod7.z.literal("LLM Completion" /* LLM_COMPLETION */),
2783
2820
  properties: import_zod7.z.object({
2784
- ...telemetryPropertiesSchema.shape,
2821
+ ...cloudTelemetryPropertiesSchema.shape,
2785
2822
  inputTokens: import_zod7.z.number(),
2786
2823
  outputTokens: import_zod7.z.number(),
2787
2824
  cacheReadTokens: import_zod7.z.number().optional(),
@@ -2865,6 +2902,7 @@ var modeConfigSchema = import_zod9.z.object({
2865
2902
  name: import_zod9.z.string().min(1, "Name is required"),
2866
2903
  roleDefinition: import_zod9.z.string().min(1, "Role definition is required"),
2867
2904
  whenToUse: import_zod9.z.string().optional(),
2905
+ description: import_zod9.z.string().optional(),
2868
2906
  customInstructions: import_zod9.z.string().optional(),
2869
2907
  groups: groupEntryArraySchema,
2870
2908
  source: import_zod9.z.enum(["global", "project"]).optional()
@@ -2889,6 +2927,7 @@ var customModesSettingsSchema = import_zod9.z.object({
2889
2927
  var promptComponentSchema = import_zod9.z.object({
2890
2928
  roleDefinition: import_zod9.z.string().optional(),
2891
2929
  whenToUse: import_zod9.z.string().optional(),
2930
+ description: import_zod9.z.string().optional(),
2892
2931
  customInstructions: import_zod9.z.string().optional()
2893
2932
  });
2894
2933
  var customModePromptsSchema = import_zod9.z.record(import_zod9.z.string(), promptComponentSchema.optional());
@@ -3013,7 +3052,8 @@ var globalSettingsSchema = import_zod11.z.object({
3013
3052
  customSupportPrompts: customSupportPromptsSchema.optional(),
3014
3053
  enhancementApiConfigId: import_zod11.z.string().optional(),
3015
3054
  historyPreviewCollapsed: import_zod11.z.boolean().optional(),
3016
- profileThresholds: import_zod11.z.record(import_zod11.z.string(), import_zod11.z.number()).optional()
3055
+ profileThresholds: import_zod11.z.record(import_zod11.z.string(), import_zod11.z.number()).optional(),
3056
+ hasOpenedModeSelector: import_zod11.z.boolean().optional()
3017
3057
  });
3018
3058
  var GLOBAL_SETTINGS_KEYS = globalSettingsSchema.keyof().options;
3019
3059
  var rooCodeSettingsSchema = providerSettingsSchema.merge(globalSettingsSchema);
@@ -3494,6 +3534,7 @@ var commandExecutionStatusSchema = import_zod16.z.discriminatedUnion("status", [
3494
3534
  clineMessageSchema,
3495
3535
  clineSaySchema,
3496
3536
  clineSays,
3537
+ cloudTelemetryPropertiesSchema,
3497
3538
  codeActionIds,
3498
3539
  codebaseIndexConfigSchema,
3499
3540
  codebaseIndexModelsSchema,
@@ -3512,6 +3553,7 @@ var commandExecutionStatusSchema = import_zod16.z.discriminatedUnion("status", [
3512
3553
  geminiDefaultModelId,
3513
3554
  geminiModels,
3514
3555
  getModelId,
3556
+ gitPropertiesSchema,
3515
3557
  glamaDefaultModelId,
3516
3558
  glamaDefaultModelInfo,
3517
3559
  globalSettingsSchema,