@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 +53 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +235 -15
- package/dist/index.d.ts +235 -15
- package/dist/index.js +51 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -740,11 +740,31 @@ var chutesModels = {
|
|
|
740
740
|
// src/providers/claude-code.ts
|
|
741
741
|
var claudeCodeDefaultModelId = "claude-sonnet-4-20250514";
|
|
742
742
|
var claudeCodeModels = {
|
|
743
|
-
"claude-sonnet-4-20250514":
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
743
|
+
"claude-sonnet-4-20250514": {
|
|
744
|
+
...anthropicModels["claude-sonnet-4-20250514"],
|
|
745
|
+
supportsImages: false,
|
|
746
|
+
supportsPromptCache: false
|
|
747
|
+
},
|
|
748
|
+
"claude-opus-4-20250514": {
|
|
749
|
+
...anthropicModels["claude-opus-4-20250514"],
|
|
750
|
+
supportsImages: false,
|
|
751
|
+
supportsPromptCache: false
|
|
752
|
+
},
|
|
753
|
+
"claude-3-7-sonnet-20250219": {
|
|
754
|
+
...anthropicModels["claude-3-7-sonnet-20250219"],
|
|
755
|
+
supportsImages: false,
|
|
756
|
+
supportsPromptCache: false
|
|
757
|
+
},
|
|
758
|
+
"claude-3-5-sonnet-20241022": {
|
|
759
|
+
...anthropicModels["claude-3-5-sonnet-20241022"],
|
|
760
|
+
supportsImages: false,
|
|
761
|
+
supportsPromptCache: false
|
|
762
|
+
},
|
|
763
|
+
"claude-3-5-haiku-20241022": {
|
|
764
|
+
...anthropicModels["claude-3-5-haiku-20241022"],
|
|
765
|
+
supportsImages: false,
|
|
766
|
+
supportsPromptCache: false
|
|
767
|
+
}
|
|
748
768
|
};
|
|
749
769
|
|
|
750
770
|
// src/providers/deepseek.ts
|
|
@@ -2533,6 +2553,9 @@ var TelemetryEventName = /* @__PURE__ */ ((TelemetryEventName2) => {
|
|
|
2533
2553
|
TelemetryEventName2["CHECKPOINT_CREATED"] = "Checkpoint Created";
|
|
2534
2554
|
TelemetryEventName2["CHECKPOINT_RESTORED"] = "Checkpoint Restored";
|
|
2535
2555
|
TelemetryEventName2["CHECKPOINT_DIFFED"] = "Checkpoint Diffed";
|
|
2556
|
+
TelemetryEventName2["TAB_SHOWN"] = "Tab Shown";
|
|
2557
|
+
TelemetryEventName2["MODE_SETTINGS_CHANGED"] = "Mode Setting Changed";
|
|
2558
|
+
TelemetryEventName2["CUSTOM_MODE_CREATED"] = "Custom Mode Created";
|
|
2536
2559
|
TelemetryEventName2["CONTEXT_CONDENSED"] = "Context Condensed";
|
|
2537
2560
|
TelemetryEventName2["SLIDING_WINDOW_TRUNCATION"] = "Sliding Window Truncation";
|
|
2538
2561
|
TelemetryEventName2["CODE_ACTION_USED"] = "Code Action Used";
|
|
@@ -2565,9 +2588,18 @@ var taskPropertiesSchema = z7.object({
|
|
|
2565
2588
|
diffStrategy: z7.string().optional(),
|
|
2566
2589
|
isSubtask: z7.boolean().optional()
|
|
2567
2590
|
});
|
|
2591
|
+
var gitPropertiesSchema = z7.object({
|
|
2592
|
+
repositoryUrl: z7.string().optional(),
|
|
2593
|
+
repositoryName: z7.string().optional(),
|
|
2594
|
+
defaultBranch: z7.string().optional()
|
|
2595
|
+
});
|
|
2568
2596
|
var telemetryPropertiesSchema = z7.object({
|
|
2569
2597
|
...appPropertiesSchema.shape,
|
|
2570
|
-
...taskPropertiesSchema.shape
|
|
2598
|
+
...taskPropertiesSchema.shape,
|
|
2599
|
+
...gitPropertiesSchema.shape
|
|
2600
|
+
});
|
|
2601
|
+
var cloudTelemetryPropertiesSchema = z7.object({
|
|
2602
|
+
...telemetryPropertiesSchema.shape
|
|
2571
2603
|
});
|
|
2572
2604
|
var rooCodeTelemetryEventSchema = z7.discriminatedUnion("type", [
|
|
2573
2605
|
z7.object({
|
|
@@ -2592,14 +2624,17 @@ var rooCodeTelemetryEventSchema = z7.discriminatedUnion("type", [
|
|
|
2592
2624
|
"Shell Integration Error" /* SHELL_INTEGRATION_ERROR */,
|
|
2593
2625
|
"Consecutive Mistake Error" /* CONSECUTIVE_MISTAKE_ERROR */,
|
|
2594
2626
|
"Context Condensed" /* CONTEXT_CONDENSED */,
|
|
2595
|
-
"Sliding Window Truncation" /* SLIDING_WINDOW_TRUNCATION
|
|
2627
|
+
"Sliding Window Truncation" /* SLIDING_WINDOW_TRUNCATION */,
|
|
2628
|
+
"Tab Shown" /* TAB_SHOWN */,
|
|
2629
|
+
"Mode Setting Changed" /* MODE_SETTINGS_CHANGED */,
|
|
2630
|
+
"Custom Mode Created" /* CUSTOM_MODE_CREATED */
|
|
2596
2631
|
]),
|
|
2597
|
-
properties:
|
|
2632
|
+
properties: cloudTelemetryPropertiesSchema
|
|
2598
2633
|
}),
|
|
2599
2634
|
z7.object({
|
|
2600
2635
|
type: z7.literal("Task Message" /* TASK_MESSAGE */),
|
|
2601
2636
|
properties: z7.object({
|
|
2602
|
-
...
|
|
2637
|
+
...cloudTelemetryPropertiesSchema.shape,
|
|
2603
2638
|
taskId: z7.string(),
|
|
2604
2639
|
message: clineMessageSchema
|
|
2605
2640
|
})
|
|
@@ -2607,7 +2642,7 @@ var rooCodeTelemetryEventSchema = z7.discriminatedUnion("type", [
|
|
|
2607
2642
|
z7.object({
|
|
2608
2643
|
type: z7.literal("LLM Completion" /* LLM_COMPLETION */),
|
|
2609
2644
|
properties: z7.object({
|
|
2610
|
-
...
|
|
2645
|
+
...cloudTelemetryPropertiesSchema.shape,
|
|
2611
2646
|
inputTokens: z7.number(),
|
|
2612
2647
|
outputTokens: z7.number(),
|
|
2613
2648
|
cacheReadTokens: z7.number().optional(),
|
|
@@ -2691,6 +2726,7 @@ var modeConfigSchema = z9.object({
|
|
|
2691
2726
|
name: z9.string().min(1, "Name is required"),
|
|
2692
2727
|
roleDefinition: z9.string().min(1, "Role definition is required"),
|
|
2693
2728
|
whenToUse: z9.string().optional(),
|
|
2729
|
+
description: z9.string().optional(),
|
|
2694
2730
|
customInstructions: z9.string().optional(),
|
|
2695
2731
|
groups: groupEntryArraySchema,
|
|
2696
2732
|
source: z9.enum(["global", "project"]).optional()
|
|
@@ -2715,6 +2751,7 @@ var customModesSettingsSchema = z9.object({
|
|
|
2715
2751
|
var promptComponentSchema = z9.object({
|
|
2716
2752
|
roleDefinition: z9.string().optional(),
|
|
2717
2753
|
whenToUse: z9.string().optional(),
|
|
2754
|
+
description: z9.string().optional(),
|
|
2718
2755
|
customInstructions: z9.string().optional()
|
|
2719
2756
|
});
|
|
2720
2757
|
var customModePromptsSchema = z9.record(z9.string(), promptComponentSchema.optional());
|
|
@@ -2839,7 +2876,8 @@ var globalSettingsSchema = z11.object({
|
|
|
2839
2876
|
customSupportPrompts: customSupportPromptsSchema.optional(),
|
|
2840
2877
|
enhancementApiConfigId: z11.string().optional(),
|
|
2841
2878
|
historyPreviewCollapsed: z11.boolean().optional(),
|
|
2842
|
-
profileThresholds: z11.record(z11.string(), z11.number()).optional()
|
|
2879
|
+
profileThresholds: z11.record(z11.string(), z11.number()).optional(),
|
|
2880
|
+
hasOpenedModeSelector: z11.boolean().optional()
|
|
2843
2881
|
});
|
|
2844
2882
|
var GLOBAL_SETTINGS_KEYS = globalSettingsSchema.keyof().options;
|
|
2845
2883
|
var rooCodeSettingsSchema = providerSettingsSchema.merge(globalSettingsSchema);
|
|
@@ -3319,6 +3357,7 @@ export {
|
|
|
3319
3357
|
clineMessageSchema,
|
|
3320
3358
|
clineSaySchema,
|
|
3321
3359
|
clineSays,
|
|
3360
|
+
cloudTelemetryPropertiesSchema,
|
|
3322
3361
|
codeActionIds,
|
|
3323
3362
|
codebaseIndexConfigSchema,
|
|
3324
3363
|
codebaseIndexModelsSchema,
|
|
@@ -3337,6 +3376,7 @@ export {
|
|
|
3337
3376
|
geminiDefaultModelId,
|
|
3338
3377
|
geminiModels,
|
|
3339
3378
|
getModelId,
|
|
3379
|
+
gitPropertiesSchema,
|
|
3340
3380
|
glamaDefaultModelId,
|
|
3341
3381
|
glamaDefaultModelInfo,
|
|
3342
3382
|
globalSettingsSchema,
|