@roo-code/types 1.29.0 → 1.31.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 +327 -243
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +886 -284
- package/dist/index.d.ts +886 -284
- package/dist/index.js +318 -238
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -21,11 +21,12 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
23
|
ANTHROPIC_DEFAULT_MAX_TOKENS: () => ANTHROPIC_DEFAULT_MAX_TOKENS,
|
|
24
|
+
AWS_INFERENCE_PROFILE_MAPPING: () => AWS_INFERENCE_PROFILE_MAPPING,
|
|
24
25
|
BEDROCK_DEFAULT_CONTEXT: () => BEDROCK_DEFAULT_CONTEXT,
|
|
25
26
|
BEDROCK_DEFAULT_TEMPERATURE: () => BEDROCK_DEFAULT_TEMPERATURE,
|
|
26
27
|
BEDROCK_MAX_TOKENS: () => BEDROCK_MAX_TOKENS,
|
|
27
28
|
BEDROCK_REGIONS: () => BEDROCK_REGIONS,
|
|
28
|
-
|
|
29
|
+
CODEBASE_INDEX_DEFAULTS: () => CODEBASE_INDEX_DEFAULTS,
|
|
29
30
|
DEEP_SEEK_DEFAULT_TEMPERATURE: () => DEEP_SEEK_DEFAULT_TEMPERATURE,
|
|
30
31
|
EVALS_SETTINGS: () => EVALS_SETTINGS,
|
|
31
32
|
EVALS_TIMEOUT: () => EVALS_TIMEOUT,
|
|
@@ -70,7 +71,6 @@ __export(index_exports, {
|
|
|
70
71
|
clineMessageSchema: () => clineMessageSchema,
|
|
71
72
|
clineSaySchema: () => clineSaySchema,
|
|
72
73
|
clineSays: () => clineSays,
|
|
73
|
-
cloudTelemetryPropertiesSchema: () => cloudTelemetryPropertiesSchema,
|
|
74
74
|
codeActionIds: () => codeActionIds,
|
|
75
75
|
codebaseIndexConfigSchema: () => codebaseIndexConfigSchema,
|
|
76
76
|
codebaseIndexModelsSchema: () => codebaseIndexModelsSchema,
|
|
@@ -86,6 +86,7 @@ __export(index_exports, {
|
|
|
86
86
|
experimentIds: () => experimentIds,
|
|
87
87
|
experimentIdsSchema: () => experimentIdsSchema,
|
|
88
88
|
experimentsSchema: () => experimentsSchema,
|
|
89
|
+
followUpDataSchema: () => followUpDataSchema,
|
|
89
90
|
geminiDefaultModelId: () => geminiDefaultModelId,
|
|
90
91
|
geminiModels: () => geminiModels,
|
|
91
92
|
getModelId: () => getModelId,
|
|
@@ -149,6 +150,7 @@ __export(index_exports, {
|
|
|
149
150
|
rooCodeSettingsSchema: () => rooCodeSettingsSchema,
|
|
150
151
|
rooCodeTelemetryEventSchema: () => rooCodeTelemetryEventSchema,
|
|
151
152
|
shareResponseSchema: () => shareResponseSchema,
|
|
153
|
+
suggestionItemSchema: () => suggestionItemSchema,
|
|
152
154
|
taskCommandSchema: () => taskCommandSchema,
|
|
153
155
|
taskEventSchema: () => taskEventSchema,
|
|
154
156
|
taskPropertiesSchema: () => taskPropertiesSchema,
|
|
@@ -156,6 +158,8 @@ __export(index_exports, {
|
|
|
156
158
|
telemetrySettings: () => telemetrySettings,
|
|
157
159
|
telemetrySettingsSchema: () => telemetrySettingsSchema,
|
|
158
160
|
terminalActionIds: () => terminalActionIds,
|
|
161
|
+
todoItemSchema: () => todoItemSchema,
|
|
162
|
+
todoStatusSchema: () => todoStatusSchema,
|
|
159
163
|
tokenUsageSchema: () => tokenUsageSchema,
|
|
160
164
|
toolGroups: () => toolGroups,
|
|
161
165
|
toolGroupsSchema: () => toolGroupsSchema,
|
|
@@ -648,65 +652,46 @@ var bedrockModels = {
|
|
|
648
652
|
var BEDROCK_DEFAULT_TEMPERATURE = 0.3;
|
|
649
653
|
var BEDROCK_MAX_TOKENS = 4096;
|
|
650
654
|
var BEDROCK_DEFAULT_CONTEXT = 128e3;
|
|
651
|
-
var
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
"
|
|
662
|
-
|
|
663
|
-
"
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
"
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
},
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
"
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
"apne1.": { regionId: "ap-northeast-1", description: "Asia Pacific (Tokyo)" },
|
|
692
|
-
"apne2.": { regionId: "ap-northeast-2", description: "Asia Pacific (Seoul)" },
|
|
693
|
-
"apne3.": { regionId: "ap-northeast-3", description: "Asia Pacific (Osaka)" },
|
|
694
|
-
"aps1.": { regionId: "ap-south-1", description: "Asia Pacific (Mumbai)" },
|
|
695
|
-
"aps2.": { regionId: "ap-south-2", description: "Asia Pacific (Hyderabad)" },
|
|
696
|
-
"apse1.": { regionId: "ap-southeast-1", description: "Asia Pacific (Singapore)" },
|
|
697
|
-
"apse2.": { regionId: "ap-southeast-2", description: "Asia Pacific (Sydney)" },
|
|
698
|
-
"ca.": { regionId: "ca-central-1", description: "Canada (Central)", pattern: "ca-", multiRegion: true },
|
|
699
|
-
"cac1.": { regionId: "ca-central-1", description: "Canada (Central)" },
|
|
700
|
-
"sa.": { regionId: "sa-east-1", description: "South America (S\xE3o Paulo)", pattern: "sa-", multiRegion: true },
|
|
701
|
-
"sae1.": { regionId: "sa-east-1", description: "South America (S\xE3o Paulo)" },
|
|
702
|
-
// These are not official - they weren't generated by Amazon Q nor were
|
|
703
|
-
// found in the AWS documentation but another Roo contributor found apac.
|
|
704
|
-
// Was needed so I've added the pattern of the other geo zones.
|
|
705
|
-
"apac.": { regionId: "ap-southeast-1", description: "Default APAC region", pattern: "ap-", multiRegion: true },
|
|
706
|
-
"emea.": { regionId: "eu-west-1", description: "Default EMEA region", pattern: "eu-", multiRegion: true },
|
|
707
|
-
"amer.": { regionId: "us-east-1", description: "Default Americas region", pattern: "us-", multiRegion: true }
|
|
708
|
-
};
|
|
709
|
-
var BEDROCK_REGIONS = Object.values(BEDROCK_REGION_INFO).map((info) => ({ value: info.regionId, label: info.regionId })).filter((region, index, self) => index === self.findIndex((r) => r.value === region.value)).sort((a, b) => a.value.localeCompare(b.value));
|
|
655
|
+
var AWS_INFERENCE_PROFILE_MAPPING = [
|
|
656
|
+
// US Government Cloud → ug. inference profile (most specific prefix first)
|
|
657
|
+
["us-gov-", "ug."],
|
|
658
|
+
// Americas regions → us. inference profile
|
|
659
|
+
["us-", "us."],
|
|
660
|
+
// Europe regions → eu. inference profile
|
|
661
|
+
["eu-", "eu."],
|
|
662
|
+
// Asia Pacific regions → apac. inference profile
|
|
663
|
+
["ap-", "apac."],
|
|
664
|
+
// Canada regions → ca. inference profile
|
|
665
|
+
["ca-", "ca."],
|
|
666
|
+
// South America regions → sa. inference profile
|
|
667
|
+
["sa-", "sa."]
|
|
668
|
+
];
|
|
669
|
+
var BEDROCK_REGIONS = [
|
|
670
|
+
{ value: "us-east-1", label: "us-east-1" },
|
|
671
|
+
{ value: "us-east-2", label: "us-east-2" },
|
|
672
|
+
{ value: "us-west-1", label: "us-west-1" },
|
|
673
|
+
{ value: "us-west-2", label: "us-west-2" },
|
|
674
|
+
{ value: "ap-northeast-1", label: "ap-northeast-1" },
|
|
675
|
+
{ value: "ap-northeast-2", label: "ap-northeast-2" },
|
|
676
|
+
{ value: "ap-northeast-3", label: "ap-northeast-3" },
|
|
677
|
+
{ value: "ap-south-1", label: "ap-south-1" },
|
|
678
|
+
{ value: "ap-south-2", label: "ap-south-2" },
|
|
679
|
+
{ value: "ap-southeast-1", label: "ap-southeast-1" },
|
|
680
|
+
{ value: "ap-southeast-2", label: "ap-southeast-2" },
|
|
681
|
+
{ value: "ap-east-1", label: "ap-east-1" },
|
|
682
|
+
{ value: "eu-central-1", label: "eu-central-1" },
|
|
683
|
+
{ value: "eu-central-2", label: "eu-central-2" },
|
|
684
|
+
{ value: "eu-west-1", label: "eu-west-1" },
|
|
685
|
+
{ value: "eu-west-2", label: "eu-west-2" },
|
|
686
|
+
{ value: "eu-west-3", label: "eu-west-3" },
|
|
687
|
+
{ value: "eu-north-1", label: "eu-north-1" },
|
|
688
|
+
{ value: "eu-south-1", label: "eu-south-1" },
|
|
689
|
+
{ value: "eu-south-2", label: "eu-south-2" },
|
|
690
|
+
{ value: "ca-central-1", label: "ca-central-1" },
|
|
691
|
+
{ value: "sa-east-1", label: "sa-east-1" },
|
|
692
|
+
{ value: "us-gov-east-1", label: "us-gov-east-1" },
|
|
693
|
+
{ value: "us-gov-west-1", label: "us-gov-west-1" }
|
|
694
|
+
].sort((a, b) => a.value.localeCompare(b.value));
|
|
710
695
|
|
|
711
696
|
// src/providers/chutes.ts
|
|
712
697
|
var chutesDefaultModelId = "deepseek-ai/DeepSeek-R1-0528";
|
|
@@ -919,27 +904,47 @@ var claudeCodeModels = {
|
|
|
919
904
|
"claude-sonnet-4-20250514": {
|
|
920
905
|
...anthropicModels["claude-sonnet-4-20250514"],
|
|
921
906
|
supportsImages: false,
|
|
922
|
-
supportsPromptCache:
|
|
907
|
+
supportsPromptCache: true,
|
|
908
|
+
// Claude Code does report cache tokens
|
|
909
|
+
supportsReasoningEffort: false,
|
|
910
|
+
supportsReasoningBudget: false,
|
|
911
|
+
requiredReasoningBudget: false
|
|
923
912
|
},
|
|
924
913
|
"claude-opus-4-20250514": {
|
|
925
914
|
...anthropicModels["claude-opus-4-20250514"],
|
|
926
915
|
supportsImages: false,
|
|
927
|
-
supportsPromptCache:
|
|
916
|
+
supportsPromptCache: true,
|
|
917
|
+
// Claude Code does report cache tokens
|
|
918
|
+
supportsReasoningEffort: false,
|
|
919
|
+
supportsReasoningBudget: false,
|
|
920
|
+
requiredReasoningBudget: false
|
|
928
921
|
},
|
|
929
922
|
"claude-3-7-sonnet-20250219": {
|
|
930
923
|
...anthropicModels["claude-3-7-sonnet-20250219"],
|
|
931
924
|
supportsImages: false,
|
|
932
|
-
supportsPromptCache:
|
|
925
|
+
supportsPromptCache: true,
|
|
926
|
+
// Claude Code does report cache tokens
|
|
927
|
+
supportsReasoningEffort: false,
|
|
928
|
+
supportsReasoningBudget: false,
|
|
929
|
+
requiredReasoningBudget: false
|
|
933
930
|
},
|
|
934
931
|
"claude-3-5-sonnet-20241022": {
|
|
935
932
|
...anthropicModels["claude-3-5-sonnet-20241022"],
|
|
936
933
|
supportsImages: false,
|
|
937
|
-
supportsPromptCache:
|
|
934
|
+
supportsPromptCache: true,
|
|
935
|
+
// Claude Code does report cache tokens
|
|
936
|
+
supportsReasoningEffort: false,
|
|
937
|
+
supportsReasoningBudget: false,
|
|
938
|
+
requiredReasoningBudget: false
|
|
938
939
|
},
|
|
939
940
|
"claude-3-5-haiku-20241022": {
|
|
940
941
|
...anthropicModels["claude-3-5-haiku-20241022"],
|
|
941
942
|
supportsImages: false,
|
|
942
|
-
supportsPromptCache:
|
|
943
|
+
supportsPromptCache: true,
|
|
944
|
+
// Claude Code does report cache tokens
|
|
945
|
+
supportsReasoningEffort: false,
|
|
946
|
+
supportsReasoningBudget: false,
|
|
947
|
+
requiredReasoningBudget: false
|
|
943
948
|
}
|
|
944
949
|
};
|
|
945
950
|
|
|
@@ -1353,7 +1358,7 @@ var groqModels = {
|
|
|
1353
1358
|
description: "Alibaba Qwen QwQ 32B model, 128K context."
|
|
1354
1359
|
},
|
|
1355
1360
|
"qwen/qwen3-32b": {
|
|
1356
|
-
maxTokens:
|
|
1361
|
+
maxTokens: 40960,
|
|
1357
1362
|
contextWindow: 131072,
|
|
1358
1363
|
supportsImages: false,
|
|
1359
1364
|
supportsPromptCache: false,
|
|
@@ -2310,24 +2315,42 @@ var xaiModels = {
|
|
|
2310
2315
|
|
|
2311
2316
|
// src/codebase-index.ts
|
|
2312
2317
|
var import_zod = require("zod");
|
|
2318
|
+
var CODEBASE_INDEX_DEFAULTS = {
|
|
2319
|
+
MIN_SEARCH_RESULTS: 10,
|
|
2320
|
+
MAX_SEARCH_RESULTS: 200,
|
|
2321
|
+
DEFAULT_SEARCH_RESULTS: 50,
|
|
2322
|
+
SEARCH_RESULTS_STEP: 10,
|
|
2323
|
+
MIN_SEARCH_SCORE: 0,
|
|
2324
|
+
MAX_SEARCH_SCORE: 1,
|
|
2325
|
+
DEFAULT_SEARCH_MIN_SCORE: 0.4,
|
|
2326
|
+
SEARCH_SCORE_STEP: 0.05
|
|
2327
|
+
};
|
|
2313
2328
|
var codebaseIndexConfigSchema = import_zod.z.object({
|
|
2314
2329
|
codebaseIndexEnabled: import_zod.z.boolean().optional(),
|
|
2315
2330
|
codebaseIndexQdrantUrl: import_zod.z.string().optional(),
|
|
2316
|
-
codebaseIndexEmbedderProvider: import_zod.z.enum(["openai", "ollama", "openai-compatible"]).optional(),
|
|
2331
|
+
codebaseIndexEmbedderProvider: import_zod.z.enum(["openai", "ollama", "openai-compatible", "gemini"]).optional(),
|
|
2317
2332
|
codebaseIndexEmbedderBaseUrl: import_zod.z.string().optional(),
|
|
2318
|
-
codebaseIndexEmbedderModelId: import_zod.z.string().optional()
|
|
2333
|
+
codebaseIndexEmbedderModelId: import_zod.z.string().optional(),
|
|
2334
|
+
codebaseIndexEmbedderModelDimension: import_zod.z.number().optional(),
|
|
2335
|
+
codebaseIndexSearchMinScore: import_zod.z.number().min(0).max(1).optional(),
|
|
2336
|
+
codebaseIndexSearchMaxResults: import_zod.z.number().min(CODEBASE_INDEX_DEFAULTS.MIN_SEARCH_RESULTS).max(CODEBASE_INDEX_DEFAULTS.MAX_SEARCH_RESULTS).optional(),
|
|
2337
|
+
// OpenAI Compatible specific fields
|
|
2338
|
+
codebaseIndexOpenAiCompatibleBaseUrl: import_zod.z.string().optional(),
|
|
2339
|
+
codebaseIndexOpenAiCompatibleModelDimension: import_zod.z.number().optional()
|
|
2319
2340
|
});
|
|
2320
2341
|
var codebaseIndexModelsSchema = import_zod.z.object({
|
|
2321
2342
|
openai: import_zod.z.record(import_zod.z.string(), import_zod.z.object({ dimension: import_zod.z.number() })).optional(),
|
|
2322
2343
|
ollama: import_zod.z.record(import_zod.z.string(), import_zod.z.object({ dimension: import_zod.z.number() })).optional(),
|
|
2323
|
-
"openai-compatible": import_zod.z.record(import_zod.z.string(), import_zod.z.object({ dimension: import_zod.z.number() })).optional()
|
|
2344
|
+
"openai-compatible": import_zod.z.record(import_zod.z.string(), import_zod.z.object({ dimension: import_zod.z.number() })).optional(),
|
|
2345
|
+
gemini: import_zod.z.record(import_zod.z.string(), import_zod.z.object({ dimension: import_zod.z.number() })).optional()
|
|
2324
2346
|
});
|
|
2325
2347
|
var codebaseIndexProviderSchema = import_zod.z.object({
|
|
2326
2348
|
codeIndexOpenAiKey: import_zod.z.string().optional(),
|
|
2327
2349
|
codeIndexQdrantApiKey: import_zod.z.string().optional(),
|
|
2328
2350
|
codebaseIndexOpenAiCompatibleBaseUrl: import_zod.z.string().optional(),
|
|
2329
2351
|
codebaseIndexOpenAiCompatibleApiKey: import_zod.z.string().optional(),
|
|
2330
|
-
codebaseIndexOpenAiCompatibleModelDimension: import_zod.z.number().optional()
|
|
2352
|
+
codebaseIndexOpenAiCompatibleModelDimension: import_zod.z.number().optional(),
|
|
2353
|
+
codebaseIndexGeminiApiKey: import_zod.z.string().optional()
|
|
2331
2354
|
});
|
|
2332
2355
|
|
|
2333
2356
|
// src/cloud.ts
|
|
@@ -2390,6 +2413,7 @@ var providerNames = [
|
|
|
2390
2413
|
"vscode-lm",
|
|
2391
2414
|
"lmstudio",
|
|
2392
2415
|
"gemini",
|
|
2416
|
+
"gemini-cli",
|
|
2393
2417
|
"openai-native",
|
|
2394
2418
|
"mistral",
|
|
2395
2419
|
"deepseek",
|
|
@@ -2498,6 +2522,10 @@ var geminiSchema = apiModelIdProviderModelSchema.extend({
|
|
|
2498
2522
|
geminiApiKey: import_zod3.z.string().optional(),
|
|
2499
2523
|
googleGeminiBaseUrl: import_zod3.z.string().optional()
|
|
2500
2524
|
});
|
|
2525
|
+
var geminiCliSchema = apiModelIdProviderModelSchema.extend({
|
|
2526
|
+
geminiCliOAuthPath: import_zod3.z.string().optional(),
|
|
2527
|
+
geminiCliProjectId: import_zod3.z.string().optional()
|
|
2528
|
+
});
|
|
2501
2529
|
var openAiNativeSchema = apiModelIdProviderModelSchema.extend({
|
|
2502
2530
|
openAiNativeApiKey: import_zod3.z.string().optional(),
|
|
2503
2531
|
openAiNativeBaseUrl: import_zod3.z.string().optional()
|
|
@@ -2551,6 +2579,7 @@ var providerSettingsSchemaDiscriminated = import_zod3.z.discriminatedUnion("apiP
|
|
|
2551
2579
|
vsCodeLmSchema.merge(import_zod3.z.object({ apiProvider: import_zod3.z.literal("vscode-lm") })),
|
|
2552
2580
|
lmStudioSchema.merge(import_zod3.z.object({ apiProvider: import_zod3.z.literal("lmstudio") })),
|
|
2553
2581
|
geminiSchema.merge(import_zod3.z.object({ apiProvider: import_zod3.z.literal("gemini") })),
|
|
2582
|
+
geminiCliSchema.merge(import_zod3.z.object({ apiProvider: import_zod3.z.literal("gemini-cli") })),
|
|
2554
2583
|
openAiNativeSchema.merge(import_zod3.z.object({ apiProvider: import_zod3.z.literal("openai-native") })),
|
|
2555
2584
|
mistralSchema.merge(import_zod3.z.object({ apiProvider: import_zod3.z.literal("mistral") })),
|
|
2556
2585
|
deepSeekSchema.merge(import_zod3.z.object({ apiProvider: import_zod3.z.literal("deepseek") })),
|
|
@@ -2577,6 +2606,7 @@ var providerSettingsSchema = import_zod3.z.object({
|
|
|
2577
2606
|
...vsCodeLmSchema.shape,
|
|
2578
2607
|
...lmStudioSchema.shape,
|
|
2579
2608
|
...geminiSchema.shape,
|
|
2609
|
+
...geminiCliSchema.shape,
|
|
2580
2610
|
...openAiNativeSchema.shape,
|
|
2581
2611
|
...mistralSchema.shape,
|
|
2582
2612
|
...deepSeekSchema.shape,
|
|
@@ -2677,7 +2707,8 @@ var clineSays = [
|
|
|
2677
2707
|
"diff_error",
|
|
2678
2708
|
"condense_context",
|
|
2679
2709
|
"condense_context_error",
|
|
2680
|
-
"codebase_search_result"
|
|
2710
|
+
"codebase_search_result",
|
|
2711
|
+
"user_edit_todos"
|
|
2681
2712
|
];
|
|
2682
2713
|
var clineSaySchema = import_zod6.z.enum(clineSays);
|
|
2683
2714
|
var toolProgressStatusSchema = import_zod6.z.object({
|
|
@@ -2725,6 +2756,7 @@ var TelemetryEventName = /* @__PURE__ */ ((TelemetryEventName2) => {
|
|
|
2725
2756
|
TelemetryEventName2["TASK_CONVERSATION_MESSAGE"] = "Conversation Message";
|
|
2726
2757
|
TelemetryEventName2["LLM_COMPLETION"] = "LLM Completion";
|
|
2727
2758
|
TelemetryEventName2["MODE_SWITCH"] = "Mode Switched";
|
|
2759
|
+
TelemetryEventName2["MODE_SELECTOR_OPENED"] = "Mode Selector Opened";
|
|
2728
2760
|
TelemetryEventName2["TOOL_USED"] = "Tool Used";
|
|
2729
2761
|
TelemetryEventName2["CHECKPOINT_CREATED"] = "Checkpoint Created";
|
|
2730
2762
|
TelemetryEventName2["CHECKPOINT_RESTORED"] = "Checkpoint Restored";
|
|
@@ -2742,6 +2774,14 @@ var TelemetryEventName = /* @__PURE__ */ ((TelemetryEventName2) => {
|
|
|
2742
2774
|
TelemetryEventName2["MARKETPLACE_ITEM_REMOVED"] = "Marketplace Item Removed";
|
|
2743
2775
|
TelemetryEventName2["MARKETPLACE_TAB_VIEWED"] = "Marketplace Tab Viewed";
|
|
2744
2776
|
TelemetryEventName2["MARKETPLACE_INSTALL_BUTTON_CLICKED"] = "Marketplace Install Button Clicked";
|
|
2777
|
+
TelemetryEventName2["SHARE_BUTTON_CLICKED"] = "Share Button Clicked";
|
|
2778
|
+
TelemetryEventName2["SHARE_ORGANIZATION_CLICKED"] = "Share Organization Clicked";
|
|
2779
|
+
TelemetryEventName2["SHARE_PUBLIC_CLICKED"] = "Share Public Clicked";
|
|
2780
|
+
TelemetryEventName2["SHARE_CONNECT_TO_CLOUD_CLICKED"] = "Share Connect To Cloud Clicked";
|
|
2781
|
+
TelemetryEventName2["ACCOUNT_CONNECT_CLICKED"] = "Account Connect Clicked";
|
|
2782
|
+
TelemetryEventName2["ACCOUNT_CONNECT_SUCCESS"] = "Account Connect Success";
|
|
2783
|
+
TelemetryEventName2["ACCOUNT_LOGOUT_CLICKED"] = "Account Logout Clicked";
|
|
2784
|
+
TelemetryEventName2["ACCOUNT_LOGOUT_SUCCESS"] = "Account Logout Success";
|
|
2745
2785
|
TelemetryEventName2["SCHEMA_VALIDATION_ERROR"] = "Schema Validation Error";
|
|
2746
2786
|
TelemetryEventName2["DIFF_APPLICATION_ERROR"] = "Diff Application Error";
|
|
2747
2787
|
TelemetryEventName2["SHELL_INTEGRATION_ERROR"] = "Shell Integration Error";
|
|
@@ -2755,7 +2795,8 @@ var appPropertiesSchema = import_zod7.z.object({
|
|
|
2755
2795
|
platform: import_zod7.z.string(),
|
|
2756
2796
|
editorName: import_zod7.z.string(),
|
|
2757
2797
|
language: import_zod7.z.string(),
|
|
2758
|
-
mode: import_zod7.z.string()
|
|
2798
|
+
mode: import_zod7.z.string(),
|
|
2799
|
+
cloudIsAuthenticated: import_zod7.z.boolean().optional()
|
|
2759
2800
|
});
|
|
2760
2801
|
var taskPropertiesSchema = import_zod7.z.object({
|
|
2761
2802
|
taskId: import_zod7.z.string().optional(),
|
|
@@ -2774,9 +2815,6 @@ var telemetryPropertiesSchema = import_zod7.z.object({
|
|
|
2774
2815
|
...taskPropertiesSchema.shape,
|
|
2775
2816
|
...gitPropertiesSchema.shape
|
|
2776
2817
|
});
|
|
2777
|
-
var cloudTelemetryPropertiesSchema = import_zod7.z.object({
|
|
2778
|
-
...telemetryPropertiesSchema.shape
|
|
2779
|
-
});
|
|
2780
2818
|
var rooCodeTelemetryEventSchema = import_zod7.z.discriminatedUnion("type", [
|
|
2781
2819
|
import_zod7.z.object({
|
|
2782
2820
|
type: import_zod7.z.enum([
|
|
@@ -2785,6 +2823,7 @@ var rooCodeTelemetryEventSchema = import_zod7.z.discriminatedUnion("type", [
|
|
|
2785
2823
|
"Task Completed" /* TASK_COMPLETED */,
|
|
2786
2824
|
"Conversation Message" /* TASK_CONVERSATION_MESSAGE */,
|
|
2787
2825
|
"Mode Switched" /* MODE_SWITCH */,
|
|
2826
|
+
"Mode Selector Opened" /* MODE_SELECTOR_OPENED */,
|
|
2788
2827
|
"Tool Used" /* TOOL_USED */,
|
|
2789
2828
|
"Checkpoint Created" /* CHECKPOINT_CREATED */,
|
|
2790
2829
|
"Checkpoint Restored" /* CHECKPOINT_RESTORED */,
|
|
@@ -2795,6 +2834,16 @@ var rooCodeTelemetryEventSchema = import_zod7.z.discriminatedUnion("type", [
|
|
|
2795
2834
|
"Authentication Initiated" /* AUTHENTICATION_INITIATED */,
|
|
2796
2835
|
"Marketplace Item Installed" /* MARKETPLACE_ITEM_INSTALLED */,
|
|
2797
2836
|
"Marketplace Item Removed" /* MARKETPLACE_ITEM_REMOVED */,
|
|
2837
|
+
"Marketplace Tab Viewed" /* MARKETPLACE_TAB_VIEWED */,
|
|
2838
|
+
"Marketplace Install Button Clicked" /* MARKETPLACE_INSTALL_BUTTON_CLICKED */,
|
|
2839
|
+
"Share Button Clicked" /* SHARE_BUTTON_CLICKED */,
|
|
2840
|
+
"Share Organization Clicked" /* SHARE_ORGANIZATION_CLICKED */,
|
|
2841
|
+
"Share Public Clicked" /* SHARE_PUBLIC_CLICKED */,
|
|
2842
|
+
"Share Connect To Cloud Clicked" /* SHARE_CONNECT_TO_CLOUD_CLICKED */,
|
|
2843
|
+
"Account Connect Clicked" /* ACCOUNT_CONNECT_CLICKED */,
|
|
2844
|
+
"Account Connect Success" /* ACCOUNT_CONNECT_SUCCESS */,
|
|
2845
|
+
"Account Logout Clicked" /* ACCOUNT_LOGOUT_CLICKED */,
|
|
2846
|
+
"Account Logout Success" /* ACCOUNT_LOGOUT_SUCCESS */,
|
|
2798
2847
|
"Schema Validation Error" /* SCHEMA_VALIDATION_ERROR */,
|
|
2799
2848
|
"Diff Application Error" /* DIFF_APPLICATION_ERROR */,
|
|
2800
2849
|
"Shell Integration Error" /* SHELL_INTEGRATION_ERROR */,
|
|
@@ -2805,12 +2854,12 @@ var rooCodeTelemetryEventSchema = import_zod7.z.discriminatedUnion("type", [
|
|
|
2805
2854
|
"Mode Setting Changed" /* MODE_SETTINGS_CHANGED */,
|
|
2806
2855
|
"Custom Mode Created" /* CUSTOM_MODE_CREATED */
|
|
2807
2856
|
]),
|
|
2808
|
-
properties:
|
|
2857
|
+
properties: telemetryPropertiesSchema
|
|
2809
2858
|
}),
|
|
2810
2859
|
import_zod7.z.object({
|
|
2811
2860
|
type: import_zod7.z.literal("Task Message" /* TASK_MESSAGE */),
|
|
2812
2861
|
properties: import_zod7.z.object({
|
|
2813
|
-
...
|
|
2862
|
+
...telemetryPropertiesSchema.shape,
|
|
2814
2863
|
taskId: import_zod7.z.string(),
|
|
2815
2864
|
message: clineMessageSchema
|
|
2816
2865
|
})
|
|
@@ -2818,7 +2867,7 @@ var rooCodeTelemetryEventSchema = import_zod7.z.discriminatedUnion("type", [
|
|
|
2818
2867
|
import_zod7.z.object({
|
|
2819
2868
|
type: import_zod7.z.literal("LLM Completion" /* LLM_COMPLETION */),
|
|
2820
2869
|
properties: import_zod7.z.object({
|
|
2821
|
-
...
|
|
2870
|
+
...telemetryPropertiesSchema.shape,
|
|
2822
2871
|
inputTokens: import_zod7.z.number(),
|
|
2823
2872
|
outputTokens: import_zod7.z.number(),
|
|
2824
2873
|
cacheReadTokens: import_zod7.z.number().optional(),
|
|
@@ -2853,7 +2902,8 @@ var toolNames = [
|
|
|
2853
2902
|
"switch_mode",
|
|
2854
2903
|
"new_task",
|
|
2855
2904
|
"fetch_instructions",
|
|
2856
|
-
"codebase_search"
|
|
2905
|
+
"codebase_search",
|
|
2906
|
+
"update_todo_list"
|
|
2857
2907
|
];
|
|
2858
2908
|
var toolNamesSchema = import_zod8.z.enum(toolNames);
|
|
2859
2909
|
var toolUsageSchema = import_zod8.z.record(
|
|
@@ -2954,6 +3004,7 @@ var commandIds = [
|
|
|
2954
3004
|
"handleHumanRelayResponse",
|
|
2955
3005
|
"newTask",
|
|
2956
3006
|
"setCustomStoragePath",
|
|
3007
|
+
"importSettings",
|
|
2957
3008
|
"focusInput",
|
|
2958
3009
|
"acceptInput",
|
|
2959
3010
|
"focusPanel"
|
|
@@ -3005,6 +3056,9 @@ var globalSettingsSchema = import_zod11.z.object({
|
|
|
3005
3056
|
alwaysAllowModeSwitch: import_zod11.z.boolean().optional(),
|
|
3006
3057
|
alwaysAllowSubtasks: import_zod11.z.boolean().optional(),
|
|
3007
3058
|
alwaysAllowExecute: import_zod11.z.boolean().optional(),
|
|
3059
|
+
alwaysAllowFollowupQuestions: import_zod11.z.boolean().optional(),
|
|
3060
|
+
followupAutoApproveTimeoutMs: import_zod11.z.number().optional(),
|
|
3061
|
+
alwaysAllowUpdateTodoList: import_zod11.z.boolean().optional(),
|
|
3008
3062
|
allowedCommands: import_zod11.z.array(import_zod11.z.string()).optional(),
|
|
3009
3063
|
allowedMaxRequests: import_zod11.z.number().nullish(),
|
|
3010
3064
|
autoCondenseContext: import_zod11.z.boolean().optional(),
|
|
@@ -3053,7 +3107,9 @@ var globalSettingsSchema = import_zod11.z.object({
|
|
|
3053
3107
|
enhancementApiConfigId: import_zod11.z.string().optional(),
|
|
3054
3108
|
historyPreviewCollapsed: import_zod11.z.boolean().optional(),
|
|
3055
3109
|
profileThresholds: import_zod11.z.record(import_zod11.z.string(), import_zod11.z.number()).optional(),
|
|
3056
|
-
hasOpenedModeSelector: import_zod11.z.boolean().optional()
|
|
3110
|
+
hasOpenedModeSelector: import_zod11.z.boolean().optional(),
|
|
3111
|
+
lastModeExportPath: import_zod11.z.string().optional(),
|
|
3112
|
+
lastModeImportPath: import_zod11.z.string().optional()
|
|
3057
3113
|
});
|
|
3058
3114
|
var GLOBAL_SETTINGS_KEYS = globalSettingsSchema.keyof().options;
|
|
3059
3115
|
var rooCodeSettingsSchema = providerSettingsSchema.merge(globalSettingsSchema);
|
|
@@ -3077,7 +3133,8 @@ var SECRET_STATE_KEYS = [
|
|
|
3077
3133
|
"litellmApiKey",
|
|
3078
3134
|
"codeIndexOpenAiKey",
|
|
3079
3135
|
"codeIndexQdrantApiKey",
|
|
3080
|
-
"codebaseIndexOpenAiCompatibleApiKey"
|
|
3136
|
+
"codebaseIndexOpenAiCompatibleApiKey",
|
|
3137
|
+
"codebaseIndexGeminiApiKey"
|
|
3081
3138
|
];
|
|
3082
3139
|
var isSecretStateKey = (key) => SECRET_STATE_KEYS.includes(key);
|
|
3083
3140
|
var GLOBAL_STATE_KEYS = [...GLOBAL_SETTINGS_KEYS, ...PROVIDER_SETTINGS_KEYS].filter(
|
|
@@ -3103,6 +3160,9 @@ var EVALS_SETTINGS = {
|
|
|
3103
3160
|
alwaysAllowModeSwitch: true,
|
|
3104
3161
|
alwaysAllowSubtasks: true,
|
|
3105
3162
|
alwaysAllowExecute: true,
|
|
3163
|
+
alwaysAllowFollowupQuestions: true,
|
|
3164
|
+
alwaysAllowUpdateTodoList: true,
|
|
3165
|
+
followupAutoApproveTimeoutMs: 0,
|
|
3106
3166
|
allowedCommands: ["*"],
|
|
3107
3167
|
browserToolEnabled: false,
|
|
3108
3168
|
browserViewportSize: "900x600",
|
|
@@ -3205,10 +3265,21 @@ var shareResponseSchema = import_zod12.z.object({
|
|
|
3205
3265
|
manageUrl: import_zod12.z.string().optional()
|
|
3206
3266
|
});
|
|
3207
3267
|
|
|
3208
|
-
// src/
|
|
3268
|
+
// src/followup.ts
|
|
3209
3269
|
var import_zod13 = require("zod");
|
|
3210
|
-
var
|
|
3211
|
-
|
|
3270
|
+
var suggestionItemSchema = import_zod13.z.object({
|
|
3271
|
+
answer: import_zod13.z.string(),
|
|
3272
|
+
mode: import_zod13.z.string().optional()
|
|
3273
|
+
});
|
|
3274
|
+
var followUpDataSchema = import_zod13.z.object({
|
|
3275
|
+
question: import_zod13.z.string().optional(),
|
|
3276
|
+
suggest: import_zod13.z.array(suggestionItemSchema).optional()
|
|
3277
|
+
});
|
|
3278
|
+
|
|
3279
|
+
// src/ipc.ts
|
|
3280
|
+
var import_zod14 = require("zod");
|
|
3281
|
+
var isSubtaskSchema = import_zod14.z.object({
|
|
3282
|
+
isSubtask: import_zod14.z.boolean()
|
|
3212
3283
|
});
|
|
3213
3284
|
var RooCodeEventName = /* @__PURE__ */ ((RooCodeEventName2) => {
|
|
3214
3285
|
RooCodeEventName2["Message"] = "message";
|
|
@@ -3227,30 +3298,30 @@ var RooCodeEventName = /* @__PURE__ */ ((RooCodeEventName2) => {
|
|
|
3227
3298
|
RooCodeEventName2["EvalFail"] = "evalFail";
|
|
3228
3299
|
return RooCodeEventName2;
|
|
3229
3300
|
})(RooCodeEventName || {});
|
|
3230
|
-
var rooCodeEventsSchema =
|
|
3231
|
-
["message" /* Message */]:
|
|
3232
|
-
|
|
3233
|
-
taskId:
|
|
3234
|
-
action:
|
|
3301
|
+
var rooCodeEventsSchema = import_zod14.z.object({
|
|
3302
|
+
["message" /* Message */]: import_zod14.z.tuple([
|
|
3303
|
+
import_zod14.z.object({
|
|
3304
|
+
taskId: import_zod14.z.string(),
|
|
3305
|
+
action: import_zod14.z.union([import_zod14.z.literal("created"), import_zod14.z.literal("updated")]),
|
|
3235
3306
|
message: clineMessageSchema
|
|
3236
3307
|
})
|
|
3237
3308
|
]),
|
|
3238
|
-
["taskCreated" /* TaskCreated */]:
|
|
3239
|
-
["taskStarted" /* TaskStarted */]:
|
|
3240
|
-
["taskModeSwitched" /* TaskModeSwitched */]:
|
|
3241
|
-
["taskPaused" /* TaskPaused */]:
|
|
3242
|
-
["taskUnpaused" /* TaskUnpaused */]:
|
|
3243
|
-
["taskAskResponded" /* TaskAskResponded */]:
|
|
3244
|
-
["taskAborted" /* TaskAborted */]:
|
|
3245
|
-
["taskSpawned" /* TaskSpawned */]:
|
|
3246
|
-
["taskCompleted" /* TaskCompleted */]:
|
|
3247
|
-
["taskTokenUsageUpdated" /* TaskTokenUsageUpdated */]:
|
|
3248
|
-
["taskToolFailed" /* TaskToolFailed */]:
|
|
3249
|
-
});
|
|
3250
|
-
var ackSchema =
|
|
3251
|
-
clientId:
|
|
3252
|
-
pid:
|
|
3253
|
-
ppid:
|
|
3309
|
+
["taskCreated" /* TaskCreated */]: import_zod14.z.tuple([import_zod14.z.string()]),
|
|
3310
|
+
["taskStarted" /* TaskStarted */]: import_zod14.z.tuple([import_zod14.z.string()]),
|
|
3311
|
+
["taskModeSwitched" /* TaskModeSwitched */]: import_zod14.z.tuple([import_zod14.z.string(), import_zod14.z.string()]),
|
|
3312
|
+
["taskPaused" /* TaskPaused */]: import_zod14.z.tuple([import_zod14.z.string()]),
|
|
3313
|
+
["taskUnpaused" /* TaskUnpaused */]: import_zod14.z.tuple([import_zod14.z.string()]),
|
|
3314
|
+
["taskAskResponded" /* TaskAskResponded */]: import_zod14.z.tuple([import_zod14.z.string()]),
|
|
3315
|
+
["taskAborted" /* TaskAborted */]: import_zod14.z.tuple([import_zod14.z.string()]),
|
|
3316
|
+
["taskSpawned" /* TaskSpawned */]: import_zod14.z.tuple([import_zod14.z.string(), import_zod14.z.string()]),
|
|
3317
|
+
["taskCompleted" /* TaskCompleted */]: import_zod14.z.tuple([import_zod14.z.string(), tokenUsageSchema, toolUsageSchema, isSubtaskSchema]),
|
|
3318
|
+
["taskTokenUsageUpdated" /* TaskTokenUsageUpdated */]: import_zod14.z.tuple([import_zod14.z.string(), tokenUsageSchema]),
|
|
3319
|
+
["taskToolFailed" /* TaskToolFailed */]: import_zod14.z.tuple([import_zod14.z.string(), toolNamesSchema, import_zod14.z.string()])
|
|
3320
|
+
});
|
|
3321
|
+
var ackSchema = import_zod14.z.object({
|
|
3322
|
+
clientId: import_zod14.z.string(),
|
|
3323
|
+
pid: import_zod14.z.number(),
|
|
3324
|
+
ppid: import_zod14.z.number()
|
|
3254
3325
|
});
|
|
3255
3326
|
var TaskCommandName = /* @__PURE__ */ ((TaskCommandName2) => {
|
|
3256
3327
|
TaskCommandName2["StartNewTask"] = "StartNewTask";
|
|
@@ -3258,95 +3329,95 @@ var TaskCommandName = /* @__PURE__ */ ((TaskCommandName2) => {
|
|
|
3258
3329
|
TaskCommandName2["CloseTask"] = "CloseTask";
|
|
3259
3330
|
return TaskCommandName2;
|
|
3260
3331
|
})(TaskCommandName || {});
|
|
3261
|
-
var taskCommandSchema =
|
|
3262
|
-
|
|
3263
|
-
commandName:
|
|
3264
|
-
data:
|
|
3332
|
+
var taskCommandSchema = import_zod14.z.discriminatedUnion("commandName", [
|
|
3333
|
+
import_zod14.z.object({
|
|
3334
|
+
commandName: import_zod14.z.literal("StartNewTask" /* StartNewTask */),
|
|
3335
|
+
data: import_zod14.z.object({
|
|
3265
3336
|
configuration: rooCodeSettingsSchema,
|
|
3266
|
-
text:
|
|
3267
|
-
images:
|
|
3268
|
-
newTab:
|
|
3337
|
+
text: import_zod14.z.string(),
|
|
3338
|
+
images: import_zod14.z.array(import_zod14.z.string()).optional(),
|
|
3339
|
+
newTab: import_zod14.z.boolean().optional()
|
|
3269
3340
|
})
|
|
3270
3341
|
}),
|
|
3271
|
-
|
|
3272
|
-
commandName:
|
|
3273
|
-
data:
|
|
3342
|
+
import_zod14.z.object({
|
|
3343
|
+
commandName: import_zod14.z.literal("CancelTask" /* CancelTask */),
|
|
3344
|
+
data: import_zod14.z.string()
|
|
3274
3345
|
}),
|
|
3275
|
-
|
|
3276
|
-
commandName:
|
|
3277
|
-
data:
|
|
3346
|
+
import_zod14.z.object({
|
|
3347
|
+
commandName: import_zod14.z.literal("CloseTask" /* CloseTask */),
|
|
3348
|
+
data: import_zod14.z.string()
|
|
3278
3349
|
})
|
|
3279
3350
|
]);
|
|
3280
|
-
var taskEventSchema =
|
|
3281
|
-
|
|
3282
|
-
eventName:
|
|
3351
|
+
var taskEventSchema = import_zod14.z.discriminatedUnion("eventName", [
|
|
3352
|
+
import_zod14.z.object({
|
|
3353
|
+
eventName: import_zod14.z.literal("message" /* Message */),
|
|
3283
3354
|
payload: rooCodeEventsSchema.shape["message" /* Message */],
|
|
3284
|
-
taskId:
|
|
3355
|
+
taskId: import_zod14.z.number().optional()
|
|
3285
3356
|
}),
|
|
3286
|
-
|
|
3287
|
-
eventName:
|
|
3357
|
+
import_zod14.z.object({
|
|
3358
|
+
eventName: import_zod14.z.literal("taskCreated" /* TaskCreated */),
|
|
3288
3359
|
payload: rooCodeEventsSchema.shape["taskCreated" /* TaskCreated */],
|
|
3289
|
-
taskId:
|
|
3360
|
+
taskId: import_zod14.z.number().optional()
|
|
3290
3361
|
}),
|
|
3291
|
-
|
|
3292
|
-
eventName:
|
|
3362
|
+
import_zod14.z.object({
|
|
3363
|
+
eventName: import_zod14.z.literal("taskStarted" /* TaskStarted */),
|
|
3293
3364
|
payload: rooCodeEventsSchema.shape["taskStarted" /* TaskStarted */],
|
|
3294
|
-
taskId:
|
|
3365
|
+
taskId: import_zod14.z.number().optional()
|
|
3295
3366
|
}),
|
|
3296
|
-
|
|
3297
|
-
eventName:
|
|
3367
|
+
import_zod14.z.object({
|
|
3368
|
+
eventName: import_zod14.z.literal("taskModeSwitched" /* TaskModeSwitched */),
|
|
3298
3369
|
payload: rooCodeEventsSchema.shape["taskModeSwitched" /* TaskModeSwitched */],
|
|
3299
|
-
taskId:
|
|
3370
|
+
taskId: import_zod14.z.number().optional()
|
|
3300
3371
|
}),
|
|
3301
|
-
|
|
3302
|
-
eventName:
|
|
3372
|
+
import_zod14.z.object({
|
|
3373
|
+
eventName: import_zod14.z.literal("taskPaused" /* TaskPaused */),
|
|
3303
3374
|
payload: rooCodeEventsSchema.shape["taskPaused" /* TaskPaused */],
|
|
3304
|
-
taskId:
|
|
3375
|
+
taskId: import_zod14.z.number().optional()
|
|
3305
3376
|
}),
|
|
3306
|
-
|
|
3307
|
-
eventName:
|
|
3377
|
+
import_zod14.z.object({
|
|
3378
|
+
eventName: import_zod14.z.literal("taskUnpaused" /* TaskUnpaused */),
|
|
3308
3379
|
payload: rooCodeEventsSchema.shape["taskUnpaused" /* TaskUnpaused */],
|
|
3309
|
-
taskId:
|
|
3380
|
+
taskId: import_zod14.z.number().optional()
|
|
3310
3381
|
}),
|
|
3311
|
-
|
|
3312
|
-
eventName:
|
|
3382
|
+
import_zod14.z.object({
|
|
3383
|
+
eventName: import_zod14.z.literal("taskAskResponded" /* TaskAskResponded */),
|
|
3313
3384
|
payload: rooCodeEventsSchema.shape["taskAskResponded" /* TaskAskResponded */],
|
|
3314
|
-
taskId:
|
|
3385
|
+
taskId: import_zod14.z.number().optional()
|
|
3315
3386
|
}),
|
|
3316
|
-
|
|
3317
|
-
eventName:
|
|
3387
|
+
import_zod14.z.object({
|
|
3388
|
+
eventName: import_zod14.z.literal("taskAborted" /* TaskAborted */),
|
|
3318
3389
|
payload: rooCodeEventsSchema.shape["taskAborted" /* TaskAborted */],
|
|
3319
|
-
taskId:
|
|
3390
|
+
taskId: import_zod14.z.number().optional()
|
|
3320
3391
|
}),
|
|
3321
|
-
|
|
3322
|
-
eventName:
|
|
3392
|
+
import_zod14.z.object({
|
|
3393
|
+
eventName: import_zod14.z.literal("taskSpawned" /* TaskSpawned */),
|
|
3323
3394
|
payload: rooCodeEventsSchema.shape["taskSpawned" /* TaskSpawned */],
|
|
3324
|
-
taskId:
|
|
3395
|
+
taskId: import_zod14.z.number().optional()
|
|
3325
3396
|
}),
|
|
3326
|
-
|
|
3327
|
-
eventName:
|
|
3397
|
+
import_zod14.z.object({
|
|
3398
|
+
eventName: import_zod14.z.literal("taskCompleted" /* TaskCompleted */),
|
|
3328
3399
|
payload: rooCodeEventsSchema.shape["taskCompleted" /* TaskCompleted */],
|
|
3329
|
-
taskId:
|
|
3400
|
+
taskId: import_zod14.z.number().optional()
|
|
3330
3401
|
}),
|
|
3331
|
-
|
|
3332
|
-
eventName:
|
|
3402
|
+
import_zod14.z.object({
|
|
3403
|
+
eventName: import_zod14.z.literal("taskTokenUsageUpdated" /* TaskTokenUsageUpdated */),
|
|
3333
3404
|
payload: rooCodeEventsSchema.shape["taskTokenUsageUpdated" /* TaskTokenUsageUpdated */],
|
|
3334
|
-
taskId:
|
|
3405
|
+
taskId: import_zod14.z.number().optional()
|
|
3335
3406
|
}),
|
|
3336
|
-
|
|
3337
|
-
eventName:
|
|
3407
|
+
import_zod14.z.object({
|
|
3408
|
+
eventName: import_zod14.z.literal("taskToolFailed" /* TaskToolFailed */),
|
|
3338
3409
|
payload: rooCodeEventsSchema.shape["taskToolFailed" /* TaskToolFailed */],
|
|
3339
|
-
taskId:
|
|
3410
|
+
taskId: import_zod14.z.number().optional()
|
|
3340
3411
|
}),
|
|
3341
|
-
|
|
3342
|
-
eventName:
|
|
3343
|
-
payload:
|
|
3344
|
-
taskId:
|
|
3412
|
+
import_zod14.z.object({
|
|
3413
|
+
eventName: import_zod14.z.literal("evalPass" /* EvalPass */),
|
|
3414
|
+
payload: import_zod14.z.undefined(),
|
|
3415
|
+
taskId: import_zod14.z.number()
|
|
3345
3416
|
}),
|
|
3346
|
-
|
|
3347
|
-
eventName:
|
|
3348
|
-
payload:
|
|
3349
|
-
taskId:
|
|
3417
|
+
import_zod14.z.object({
|
|
3418
|
+
eventName: import_zod14.z.literal("evalFail" /* EvalFail */),
|
|
3419
|
+
payload: import_zod14.z.undefined(),
|
|
3420
|
+
taskId: import_zod14.z.number()
|
|
3350
3421
|
})
|
|
3351
3422
|
]);
|
|
3352
3423
|
var IpcMessageType = /* @__PURE__ */ ((IpcMessageType2) => {
|
|
@@ -3362,134 +3433,144 @@ var IpcOrigin = /* @__PURE__ */ ((IpcOrigin2) => {
|
|
|
3362
3433
|
IpcOrigin2["Server"] = "server";
|
|
3363
3434
|
return IpcOrigin2;
|
|
3364
3435
|
})(IpcOrigin || {});
|
|
3365
|
-
var ipcMessageSchema =
|
|
3366
|
-
|
|
3367
|
-
type:
|
|
3368
|
-
origin:
|
|
3436
|
+
var ipcMessageSchema = import_zod14.z.discriminatedUnion("type", [
|
|
3437
|
+
import_zod14.z.object({
|
|
3438
|
+
type: import_zod14.z.literal("Ack" /* Ack */),
|
|
3439
|
+
origin: import_zod14.z.literal("server" /* Server */),
|
|
3369
3440
|
data: ackSchema
|
|
3370
3441
|
}),
|
|
3371
|
-
|
|
3372
|
-
type:
|
|
3373
|
-
origin:
|
|
3374
|
-
clientId:
|
|
3442
|
+
import_zod14.z.object({
|
|
3443
|
+
type: import_zod14.z.literal("TaskCommand" /* TaskCommand */),
|
|
3444
|
+
origin: import_zod14.z.literal("client" /* Client */),
|
|
3445
|
+
clientId: import_zod14.z.string(),
|
|
3375
3446
|
data: taskCommandSchema
|
|
3376
3447
|
}),
|
|
3377
|
-
|
|
3378
|
-
type:
|
|
3379
|
-
origin:
|
|
3380
|
-
relayClientId:
|
|
3448
|
+
import_zod14.z.object({
|
|
3449
|
+
type: import_zod14.z.literal("TaskEvent" /* TaskEvent */),
|
|
3450
|
+
origin: import_zod14.z.literal("server" /* Server */),
|
|
3451
|
+
relayClientId: import_zod14.z.string().optional(),
|
|
3381
3452
|
data: taskEventSchema
|
|
3382
3453
|
})
|
|
3383
3454
|
]);
|
|
3384
3455
|
|
|
3385
3456
|
// src/marketplace.ts
|
|
3386
|
-
var
|
|
3387
|
-
var mcpParameterSchema =
|
|
3388
|
-
name:
|
|
3389
|
-
key:
|
|
3390
|
-
placeholder:
|
|
3391
|
-
optional:
|
|
3392
|
-
});
|
|
3393
|
-
var mcpInstallationMethodSchema =
|
|
3394
|
-
name:
|
|
3395
|
-
content:
|
|
3396
|
-
parameters:
|
|
3397
|
-
prerequisites:
|
|
3398
|
-
});
|
|
3399
|
-
var marketplaceItemTypeSchema =
|
|
3400
|
-
var baseMarketplaceItemSchema =
|
|
3401
|
-
id:
|
|
3402
|
-
name:
|
|
3403
|
-
description:
|
|
3404
|
-
author:
|
|
3405
|
-
authorUrl:
|
|
3406
|
-
tags:
|
|
3407
|
-
prerequisites:
|
|
3457
|
+
var import_zod15 = require("zod");
|
|
3458
|
+
var mcpParameterSchema = import_zod15.z.object({
|
|
3459
|
+
name: import_zod15.z.string().min(1),
|
|
3460
|
+
key: import_zod15.z.string().min(1),
|
|
3461
|
+
placeholder: import_zod15.z.string().optional(),
|
|
3462
|
+
optional: import_zod15.z.boolean().optional().default(false)
|
|
3463
|
+
});
|
|
3464
|
+
var mcpInstallationMethodSchema = import_zod15.z.object({
|
|
3465
|
+
name: import_zod15.z.string().min(1),
|
|
3466
|
+
content: import_zod15.z.string().min(1),
|
|
3467
|
+
parameters: import_zod15.z.array(mcpParameterSchema).optional(),
|
|
3468
|
+
prerequisites: import_zod15.z.array(import_zod15.z.string()).optional()
|
|
3469
|
+
});
|
|
3470
|
+
var marketplaceItemTypeSchema = import_zod15.z.enum(["mode", "mcp"]);
|
|
3471
|
+
var baseMarketplaceItemSchema = import_zod15.z.object({
|
|
3472
|
+
id: import_zod15.z.string().min(1),
|
|
3473
|
+
name: import_zod15.z.string().min(1, "Name is required"),
|
|
3474
|
+
description: import_zod15.z.string(),
|
|
3475
|
+
author: import_zod15.z.string().optional(),
|
|
3476
|
+
authorUrl: import_zod15.z.string().url("Author URL must be a valid URL").optional(),
|
|
3477
|
+
tags: import_zod15.z.array(import_zod15.z.string()).optional(),
|
|
3478
|
+
prerequisites: import_zod15.z.array(import_zod15.z.string()).optional()
|
|
3408
3479
|
});
|
|
3409
3480
|
var modeMarketplaceItemSchema = baseMarketplaceItemSchema.extend({
|
|
3410
|
-
content:
|
|
3481
|
+
content: import_zod15.z.string().min(1)
|
|
3411
3482
|
// YAML content for modes
|
|
3412
3483
|
});
|
|
3413
3484
|
var mcpMarketplaceItemSchema = baseMarketplaceItemSchema.extend({
|
|
3414
|
-
url:
|
|
3485
|
+
url: import_zod15.z.string().url(),
|
|
3415
3486
|
// Required url field
|
|
3416
|
-
content:
|
|
3487
|
+
content: import_zod15.z.union([import_zod15.z.string().min(1), import_zod15.z.array(mcpInstallationMethodSchema)]),
|
|
3417
3488
|
// Single config or array of methods
|
|
3418
|
-
parameters:
|
|
3489
|
+
parameters: import_zod15.z.array(mcpParameterSchema).optional()
|
|
3419
3490
|
});
|
|
3420
|
-
var marketplaceItemSchema =
|
|
3491
|
+
var marketplaceItemSchema = import_zod15.z.discriminatedUnion("type", [
|
|
3421
3492
|
// Mode marketplace item
|
|
3422
3493
|
modeMarketplaceItemSchema.extend({
|
|
3423
|
-
type:
|
|
3494
|
+
type: import_zod15.z.literal("mode")
|
|
3424
3495
|
}),
|
|
3425
3496
|
// MCP marketplace item
|
|
3426
3497
|
mcpMarketplaceItemSchema.extend({
|
|
3427
|
-
type:
|
|
3498
|
+
type: import_zod15.z.literal("mcp")
|
|
3428
3499
|
})
|
|
3429
3500
|
]);
|
|
3430
|
-
var installMarketplaceItemOptionsSchema =
|
|
3431
|
-
target:
|
|
3432
|
-
parameters:
|
|
3501
|
+
var installMarketplaceItemOptionsSchema = import_zod15.z.object({
|
|
3502
|
+
target: import_zod15.z.enum(["global", "project"]).optional().default("project"),
|
|
3503
|
+
parameters: import_zod15.z.record(import_zod15.z.string(), import_zod15.z.any()).optional()
|
|
3433
3504
|
});
|
|
3434
3505
|
|
|
3435
3506
|
// src/mcp.ts
|
|
3436
|
-
var import_zod15 = require("zod");
|
|
3437
|
-
var mcpExecutionStatusSchema = import_zod15.z.discriminatedUnion("status", [
|
|
3438
|
-
import_zod15.z.object({
|
|
3439
|
-
executionId: import_zod15.z.string(),
|
|
3440
|
-
status: import_zod15.z.literal("started"),
|
|
3441
|
-
serverName: import_zod15.z.string(),
|
|
3442
|
-
toolName: import_zod15.z.string()
|
|
3443
|
-
}),
|
|
3444
|
-
import_zod15.z.object({
|
|
3445
|
-
executionId: import_zod15.z.string(),
|
|
3446
|
-
status: import_zod15.z.literal("output"),
|
|
3447
|
-
response: import_zod15.z.string()
|
|
3448
|
-
}),
|
|
3449
|
-
import_zod15.z.object({
|
|
3450
|
-
executionId: import_zod15.z.string(),
|
|
3451
|
-
status: import_zod15.z.literal("completed"),
|
|
3452
|
-
response: import_zod15.z.string().optional()
|
|
3453
|
-
}),
|
|
3454
|
-
import_zod15.z.object({
|
|
3455
|
-
executionId: import_zod15.z.string(),
|
|
3456
|
-
status: import_zod15.z.literal("error"),
|
|
3457
|
-
error: import_zod15.z.string().optional()
|
|
3458
|
-
})
|
|
3459
|
-
]);
|
|
3460
|
-
|
|
3461
|
-
// src/terminal.ts
|
|
3462
3507
|
var import_zod16 = require("zod");
|
|
3463
|
-
var
|
|
3508
|
+
var mcpExecutionStatusSchema = import_zod16.z.discriminatedUnion("status", [
|
|
3464
3509
|
import_zod16.z.object({
|
|
3465
3510
|
executionId: import_zod16.z.string(),
|
|
3466
3511
|
status: import_zod16.z.literal("started"),
|
|
3467
|
-
|
|
3468
|
-
|
|
3512
|
+
serverName: import_zod16.z.string(),
|
|
3513
|
+
toolName: import_zod16.z.string()
|
|
3469
3514
|
}),
|
|
3470
3515
|
import_zod16.z.object({
|
|
3471
3516
|
executionId: import_zod16.z.string(),
|
|
3472
3517
|
status: import_zod16.z.literal("output"),
|
|
3473
|
-
|
|
3518
|
+
response: import_zod16.z.string()
|
|
3474
3519
|
}),
|
|
3475
3520
|
import_zod16.z.object({
|
|
3476
3521
|
executionId: import_zod16.z.string(),
|
|
3477
|
-
status: import_zod16.z.literal("
|
|
3478
|
-
|
|
3522
|
+
status: import_zod16.z.literal("completed"),
|
|
3523
|
+
response: import_zod16.z.string().optional()
|
|
3479
3524
|
}),
|
|
3480
3525
|
import_zod16.z.object({
|
|
3481
3526
|
executionId: import_zod16.z.string(),
|
|
3482
|
-
status: import_zod16.z.literal("
|
|
3527
|
+
status: import_zod16.z.literal("error"),
|
|
3528
|
+
error: import_zod16.z.string().optional()
|
|
3529
|
+
})
|
|
3530
|
+
]);
|
|
3531
|
+
|
|
3532
|
+
// src/terminal.ts
|
|
3533
|
+
var import_zod17 = require("zod");
|
|
3534
|
+
var commandExecutionStatusSchema = import_zod17.z.discriminatedUnion("status", [
|
|
3535
|
+
import_zod17.z.object({
|
|
3536
|
+
executionId: import_zod17.z.string(),
|
|
3537
|
+
status: import_zod17.z.literal("started"),
|
|
3538
|
+
pid: import_zod17.z.number().optional(),
|
|
3539
|
+
command: import_zod17.z.string()
|
|
3540
|
+
}),
|
|
3541
|
+
import_zod17.z.object({
|
|
3542
|
+
executionId: import_zod17.z.string(),
|
|
3543
|
+
status: import_zod17.z.literal("output"),
|
|
3544
|
+
output: import_zod17.z.string()
|
|
3545
|
+
}),
|
|
3546
|
+
import_zod17.z.object({
|
|
3547
|
+
executionId: import_zod17.z.string(),
|
|
3548
|
+
status: import_zod17.z.literal("exited"),
|
|
3549
|
+
exitCode: import_zod17.z.number().optional()
|
|
3550
|
+
}),
|
|
3551
|
+
import_zod17.z.object({
|
|
3552
|
+
executionId: import_zod17.z.string(),
|
|
3553
|
+
status: import_zod17.z.literal("fallback")
|
|
3483
3554
|
})
|
|
3484
3555
|
]);
|
|
3556
|
+
|
|
3557
|
+
// src/todo.ts
|
|
3558
|
+
var import_zod18 = require("zod");
|
|
3559
|
+
var todoStatusSchema = import_zod18.z.enum(["pending", "in_progress", "completed"]);
|
|
3560
|
+
var todoItemSchema = import_zod18.z.object({
|
|
3561
|
+
id: import_zod18.z.string(),
|
|
3562
|
+
content: import_zod18.z.string(),
|
|
3563
|
+
status: todoStatusSchema
|
|
3564
|
+
});
|
|
3485
3565
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3486
3566
|
0 && (module.exports = {
|
|
3487
3567
|
ANTHROPIC_DEFAULT_MAX_TOKENS,
|
|
3568
|
+
AWS_INFERENCE_PROFILE_MAPPING,
|
|
3488
3569
|
BEDROCK_DEFAULT_CONTEXT,
|
|
3489
3570
|
BEDROCK_DEFAULT_TEMPERATURE,
|
|
3490
3571
|
BEDROCK_MAX_TOKENS,
|
|
3491
3572
|
BEDROCK_REGIONS,
|
|
3492
|
-
|
|
3573
|
+
CODEBASE_INDEX_DEFAULTS,
|
|
3493
3574
|
DEEP_SEEK_DEFAULT_TEMPERATURE,
|
|
3494
3575
|
EVALS_SETTINGS,
|
|
3495
3576
|
EVALS_TIMEOUT,
|
|
@@ -3534,7 +3615,6 @@ var commandExecutionStatusSchema = import_zod16.z.discriminatedUnion("status", [
|
|
|
3534
3615
|
clineMessageSchema,
|
|
3535
3616
|
clineSaySchema,
|
|
3536
3617
|
clineSays,
|
|
3537
|
-
cloudTelemetryPropertiesSchema,
|
|
3538
3618
|
codeActionIds,
|
|
3539
3619
|
codebaseIndexConfigSchema,
|
|
3540
3620
|
codebaseIndexModelsSchema,
|
|
@@ -3550,6 +3630,7 @@ var commandExecutionStatusSchema = import_zod16.z.discriminatedUnion("status", [
|
|
|
3550
3630
|
experimentIds,
|
|
3551
3631
|
experimentIdsSchema,
|
|
3552
3632
|
experimentsSchema,
|
|
3633
|
+
followUpDataSchema,
|
|
3553
3634
|
geminiDefaultModelId,
|
|
3554
3635
|
geminiModels,
|
|
3555
3636
|
getModelId,
|
|
@@ -3613,6 +3694,7 @@ var commandExecutionStatusSchema = import_zod16.z.discriminatedUnion("status", [
|
|
|
3613
3694
|
rooCodeSettingsSchema,
|
|
3614
3695
|
rooCodeTelemetryEventSchema,
|
|
3615
3696
|
shareResponseSchema,
|
|
3697
|
+
suggestionItemSchema,
|
|
3616
3698
|
taskCommandSchema,
|
|
3617
3699
|
taskEventSchema,
|
|
3618
3700
|
taskPropertiesSchema,
|
|
@@ -3620,6 +3702,8 @@ var commandExecutionStatusSchema = import_zod16.z.discriminatedUnion("status", [
|
|
|
3620
3702
|
telemetrySettings,
|
|
3621
3703
|
telemetrySettingsSchema,
|
|
3622
3704
|
terminalActionIds,
|
|
3705
|
+
todoItemSchema,
|
|
3706
|
+
todoStatusSchema,
|
|
3623
3707
|
tokenUsageSchema,
|
|
3624
3708
|
toolGroups,
|
|
3625
3709
|
toolGroupsSchema,
|