@roo-code/types 1.26.0 → 1.27.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 +155 -322
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +781 -277
- package/dist/index.d.ts +781 -277
- package/dist/index.js +147 -321
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -94,19 +94,26 @@ __export(index_exports, {
|
|
|
94
94
|
groupEntrySchema: () => groupEntrySchema,
|
|
95
95
|
groupOptionsSchema: () => groupOptionsSchema,
|
|
96
96
|
historyItemSchema: () => historyItemSchema,
|
|
97
|
+
installMarketplaceItemOptionsSchema: () => installMarketplaceItemOptionsSchema,
|
|
97
98
|
ipcMessageSchema: () => ipcMessageSchema,
|
|
98
99
|
isGlobalStateKey: () => isGlobalStateKey,
|
|
99
100
|
isLanguage: () => isLanguage,
|
|
100
101
|
isModelParameter: () => isModelParameter,
|
|
101
102
|
isSecretStateKey: () => isSecretStateKey,
|
|
102
|
-
keysOf: () => keysOf,
|
|
103
103
|
languages: () => languages,
|
|
104
104
|
languagesSchema: () => languagesSchema,
|
|
105
105
|
litellmDefaultModelId: () => litellmDefaultModelId,
|
|
106
106
|
litellmDefaultModelInfo: () => litellmDefaultModelInfo,
|
|
107
|
+
marketplaceItemSchema: () => marketplaceItemSchema,
|
|
108
|
+
marketplaceItemTypeSchema: () => marketplaceItemTypeSchema,
|
|
109
|
+
mcpExecutionStatusSchema: () => mcpExecutionStatusSchema,
|
|
110
|
+
mcpInstallationMethodSchema: () => mcpInstallationMethodSchema,
|
|
111
|
+
mcpMarketplaceItemSchema: () => mcpMarketplaceItemSchema,
|
|
112
|
+
mcpParameterSchema: () => mcpParameterSchema,
|
|
107
113
|
mistralDefaultModelId: () => mistralDefaultModelId,
|
|
108
114
|
mistralModels: () => mistralModels,
|
|
109
115
|
modeConfigSchema: () => modeConfigSchema,
|
|
116
|
+
modeMarketplaceItemSchema: () => modeMarketplaceItemSchema,
|
|
110
117
|
modelInfoSchema: () => modelInfoSchema,
|
|
111
118
|
modelParameters: () => modelParameters,
|
|
112
119
|
modelParametersSchema: () => modelParametersSchema,
|
|
@@ -349,6 +356,7 @@ var bedrockModels = {
|
|
|
349
356
|
supportsImages: true,
|
|
350
357
|
supportsComputerUse: true,
|
|
351
358
|
supportsPromptCache: true,
|
|
359
|
+
supportsReasoningBudget: true,
|
|
352
360
|
inputPrice: 3,
|
|
353
361
|
outputPrice: 15,
|
|
354
362
|
cacheWritesPrice: 3.75,
|
|
@@ -363,6 +371,7 @@ var bedrockModels = {
|
|
|
363
371
|
supportsImages: true,
|
|
364
372
|
supportsComputerUse: true,
|
|
365
373
|
supportsPromptCache: true,
|
|
374
|
+
supportsReasoningBudget: true,
|
|
366
375
|
inputPrice: 15,
|
|
367
376
|
outputPrice: 75,
|
|
368
377
|
cacheWritesPrice: 18.75,
|
|
@@ -377,6 +386,7 @@ var bedrockModels = {
|
|
|
377
386
|
supportsImages: true,
|
|
378
387
|
supportsComputerUse: true,
|
|
379
388
|
supportsPromptCache: true,
|
|
389
|
+
supportsReasoningBudget: true,
|
|
380
390
|
inputPrice: 3,
|
|
381
391
|
outputPrice: 15,
|
|
382
392
|
cacheWritesPrice: 3.75,
|
|
@@ -2033,153 +2043,69 @@ var vscodeLlmModels = {
|
|
|
2033
2043
|
// src/providers/xai.ts
|
|
2034
2044
|
var xaiDefaultModelId = "grok-3";
|
|
2035
2045
|
var xaiModels = {
|
|
2036
|
-
"grok-
|
|
2037
|
-
maxTokens: 8192,
|
|
2038
|
-
contextWindow: 131072,
|
|
2039
|
-
supportsImages: false,
|
|
2040
|
-
supportsPromptCache: false,
|
|
2041
|
-
inputPrice: 3,
|
|
2042
|
-
outputPrice: 15,
|
|
2043
|
-
description: "xAI's Grok-3 beta model with 131K context window"
|
|
2044
|
-
},
|
|
2045
|
-
"grok-3-fast-beta": {
|
|
2046
|
-
maxTokens: 8192,
|
|
2047
|
-
contextWindow: 131072,
|
|
2048
|
-
supportsImages: false,
|
|
2049
|
-
supportsPromptCache: false,
|
|
2050
|
-
inputPrice: 5,
|
|
2051
|
-
outputPrice: 25,
|
|
2052
|
-
description: "xAI's Grok-3 fast beta model with 131K context window"
|
|
2053
|
-
},
|
|
2054
|
-
"grok-3-mini-beta": {
|
|
2046
|
+
"grok-2-1212": {
|
|
2055
2047
|
maxTokens: 8192,
|
|
2056
2048
|
contextWindow: 131072,
|
|
2057
2049
|
supportsImages: false,
|
|
2058
2050
|
supportsPromptCache: false,
|
|
2059
|
-
inputPrice:
|
|
2060
|
-
outputPrice:
|
|
2061
|
-
description: "xAI's Grok-
|
|
2062
|
-
supportsReasoningEffort: true
|
|
2051
|
+
inputPrice: 2,
|
|
2052
|
+
outputPrice: 10,
|
|
2053
|
+
description: "xAI's Grok-2 model (version 1212) with 128K context window"
|
|
2063
2054
|
},
|
|
2064
|
-
"grok-
|
|
2055
|
+
"grok-2-vision-1212": {
|
|
2065
2056
|
maxTokens: 8192,
|
|
2066
|
-
contextWindow:
|
|
2067
|
-
supportsImages:
|
|
2057
|
+
contextWindow: 32768,
|
|
2058
|
+
supportsImages: true,
|
|
2068
2059
|
supportsPromptCache: false,
|
|
2069
|
-
inputPrice:
|
|
2070
|
-
outputPrice:
|
|
2071
|
-
description: "xAI's Grok-
|
|
2072
|
-
supportsReasoningEffort: true
|
|
2060
|
+
inputPrice: 2,
|
|
2061
|
+
outputPrice: 10,
|
|
2062
|
+
description: "xAI's Grok-2 Vision model (version 1212) with image support and 32K context window"
|
|
2073
2063
|
},
|
|
2074
2064
|
"grok-3": {
|
|
2075
2065
|
maxTokens: 8192,
|
|
2076
2066
|
contextWindow: 131072,
|
|
2077
2067
|
supportsImages: false,
|
|
2078
|
-
supportsPromptCache:
|
|
2068
|
+
supportsPromptCache: true,
|
|
2079
2069
|
inputPrice: 3,
|
|
2080
2070
|
outputPrice: 15,
|
|
2081
|
-
|
|
2071
|
+
cacheWritesPrice: 0.75,
|
|
2072
|
+
cacheReadsPrice: 0.75,
|
|
2073
|
+
description: "xAI's Grok-3 model with 128K context window"
|
|
2082
2074
|
},
|
|
2083
2075
|
"grok-3-fast": {
|
|
2084
2076
|
maxTokens: 8192,
|
|
2085
2077
|
contextWindow: 131072,
|
|
2086
2078
|
supportsImages: false,
|
|
2087
|
-
supportsPromptCache:
|
|
2079
|
+
supportsPromptCache: true,
|
|
2088
2080
|
inputPrice: 5,
|
|
2089
2081
|
outputPrice: 25,
|
|
2090
|
-
|
|
2082
|
+
cacheWritesPrice: 1.25,
|
|
2083
|
+
cacheReadsPrice: 1.25,
|
|
2084
|
+
description: "xAI's Grok-3 fast model with 128K context window"
|
|
2091
2085
|
},
|
|
2092
2086
|
"grok-3-mini": {
|
|
2093
2087
|
maxTokens: 8192,
|
|
2094
2088
|
contextWindow: 131072,
|
|
2095
2089
|
supportsImages: false,
|
|
2096
|
-
supportsPromptCache:
|
|
2090
|
+
supportsPromptCache: true,
|
|
2097
2091
|
inputPrice: 0.3,
|
|
2098
2092
|
outputPrice: 0.5,
|
|
2099
|
-
|
|
2093
|
+
cacheWritesPrice: 0.07,
|
|
2094
|
+
cacheReadsPrice: 0.07,
|
|
2095
|
+
description: "xAI's Grok-3 mini model with 128K context window",
|
|
2100
2096
|
supportsReasoningEffort: true
|
|
2101
2097
|
},
|
|
2102
2098
|
"grok-3-mini-fast": {
|
|
2103
2099
|
maxTokens: 8192,
|
|
2104
2100
|
contextWindow: 131072,
|
|
2105
2101
|
supportsImages: false,
|
|
2106
|
-
supportsPromptCache:
|
|
2102
|
+
supportsPromptCache: true,
|
|
2107
2103
|
inputPrice: 0.6,
|
|
2108
2104
|
outputPrice: 4,
|
|
2109
|
-
|
|
2105
|
+
cacheWritesPrice: 0.15,
|
|
2106
|
+
cacheReadsPrice: 0.15,
|
|
2107
|
+
description: "xAI's Grok-3 mini fast model with 128K context window",
|
|
2110
2108
|
supportsReasoningEffort: true
|
|
2111
|
-
},
|
|
2112
|
-
"grok-2-latest": {
|
|
2113
|
-
maxTokens: 8192,
|
|
2114
|
-
contextWindow: 131072,
|
|
2115
|
-
supportsImages: false,
|
|
2116
|
-
supportsPromptCache: false,
|
|
2117
|
-
inputPrice: 2,
|
|
2118
|
-
outputPrice: 10,
|
|
2119
|
-
description: "xAI's Grok-2 model - latest version with 131K context window"
|
|
2120
|
-
},
|
|
2121
|
-
"grok-2": {
|
|
2122
|
-
maxTokens: 8192,
|
|
2123
|
-
contextWindow: 131072,
|
|
2124
|
-
supportsImages: false,
|
|
2125
|
-
supportsPromptCache: false,
|
|
2126
|
-
inputPrice: 2,
|
|
2127
|
-
outputPrice: 10,
|
|
2128
|
-
description: "xAI's Grok-2 model with 131K context window"
|
|
2129
|
-
},
|
|
2130
|
-
"grok-2-1212": {
|
|
2131
|
-
maxTokens: 8192,
|
|
2132
|
-
contextWindow: 131072,
|
|
2133
|
-
supportsImages: false,
|
|
2134
|
-
supportsPromptCache: false,
|
|
2135
|
-
inputPrice: 2,
|
|
2136
|
-
outputPrice: 10,
|
|
2137
|
-
description: "xAI's Grok-2 model (version 1212) with 131K context window"
|
|
2138
|
-
},
|
|
2139
|
-
"grok-2-vision-latest": {
|
|
2140
|
-
maxTokens: 8192,
|
|
2141
|
-
contextWindow: 32768,
|
|
2142
|
-
supportsImages: true,
|
|
2143
|
-
supportsPromptCache: false,
|
|
2144
|
-
inputPrice: 2,
|
|
2145
|
-
outputPrice: 10,
|
|
2146
|
-
description: "xAI's Grok-2 Vision model - latest version with image support and 32K context window"
|
|
2147
|
-
},
|
|
2148
|
-
"grok-2-vision": {
|
|
2149
|
-
maxTokens: 8192,
|
|
2150
|
-
contextWindow: 32768,
|
|
2151
|
-
supportsImages: true,
|
|
2152
|
-
supportsPromptCache: false,
|
|
2153
|
-
inputPrice: 2,
|
|
2154
|
-
outputPrice: 10,
|
|
2155
|
-
description: "xAI's Grok-2 Vision model with image support and 32K context window"
|
|
2156
|
-
},
|
|
2157
|
-
"grok-2-vision-1212": {
|
|
2158
|
-
maxTokens: 8192,
|
|
2159
|
-
contextWindow: 32768,
|
|
2160
|
-
supportsImages: true,
|
|
2161
|
-
supportsPromptCache: false,
|
|
2162
|
-
inputPrice: 2,
|
|
2163
|
-
outputPrice: 10,
|
|
2164
|
-
description: "xAI's Grok-2 Vision model (version 1212) with image support and 32K context window"
|
|
2165
|
-
},
|
|
2166
|
-
"grok-vision-beta": {
|
|
2167
|
-
maxTokens: 8192,
|
|
2168
|
-
contextWindow: 8192,
|
|
2169
|
-
supportsImages: true,
|
|
2170
|
-
supportsPromptCache: false,
|
|
2171
|
-
inputPrice: 5,
|
|
2172
|
-
outputPrice: 15,
|
|
2173
|
-
description: "xAI's Grok Vision Beta model with image support and 8K context window"
|
|
2174
|
-
},
|
|
2175
|
-
"grok-beta": {
|
|
2176
|
-
maxTokens: 8192,
|
|
2177
|
-
contextWindow: 131072,
|
|
2178
|
-
supportsImages: false,
|
|
2179
|
-
supportsPromptCache: false,
|
|
2180
|
-
inputPrice: 5,
|
|
2181
|
-
outputPrice: 15,
|
|
2182
|
-
description: "xAI's Grok Beta model (legacy) with 131K context window"
|
|
2183
2109
|
}
|
|
2184
2110
|
};
|
|
2185
2111
|
|
|
@@ -2211,11 +2137,6 @@ var import_zod12 = require("zod");
|
|
|
2211
2137
|
// src/global-settings.ts
|
|
2212
2138
|
var import_zod11 = require("zod");
|
|
2213
2139
|
|
|
2214
|
-
// src/type-fu.ts
|
|
2215
|
-
function keysOf() {
|
|
2216
|
-
return (keys) => keys;
|
|
2217
|
-
}
|
|
2218
|
-
|
|
2219
2140
|
// src/provider-settings.ts
|
|
2220
2141
|
var import_zod3 = require("zod");
|
|
2221
2142
|
|
|
@@ -2464,110 +2385,7 @@ var providerSettingsSchema = import_zod3.z.object({
|
|
|
2464
2385
|
...litellmSchema.shape,
|
|
2465
2386
|
...codebaseIndexProviderSchema.shape
|
|
2466
2387
|
});
|
|
2467
|
-
var PROVIDER_SETTINGS_KEYS =
|
|
2468
|
-
"apiProvider",
|
|
2469
|
-
// Anthropic
|
|
2470
|
-
"apiModelId",
|
|
2471
|
-
"apiKey",
|
|
2472
|
-
"anthropicBaseUrl",
|
|
2473
|
-
"anthropicUseAuthToken",
|
|
2474
|
-
// Glama
|
|
2475
|
-
"glamaModelId",
|
|
2476
|
-
"glamaApiKey",
|
|
2477
|
-
// OpenRouter
|
|
2478
|
-
"openRouterApiKey",
|
|
2479
|
-
"openRouterModelId",
|
|
2480
|
-
"openRouterBaseUrl",
|
|
2481
|
-
"openRouterSpecificProvider",
|
|
2482
|
-
"openRouterUseMiddleOutTransform",
|
|
2483
|
-
// Amazon Bedrock
|
|
2484
|
-
"awsAccessKey",
|
|
2485
|
-
"awsSecretKey",
|
|
2486
|
-
"awsSessionToken",
|
|
2487
|
-
"awsRegion",
|
|
2488
|
-
"awsUseCrossRegionInference",
|
|
2489
|
-
"awsUsePromptCache",
|
|
2490
|
-
"awsProfile",
|
|
2491
|
-
"awsUseProfile",
|
|
2492
|
-
"awsCustomArn",
|
|
2493
|
-
"awsModelContextWindow",
|
|
2494
|
-
"awsBedrockEndpointEnabled",
|
|
2495
|
-
"awsBedrockEndpoint",
|
|
2496
|
-
// Google Vertex
|
|
2497
|
-
"vertexKeyFile",
|
|
2498
|
-
"vertexJsonCredentials",
|
|
2499
|
-
"vertexProjectId",
|
|
2500
|
-
"vertexRegion",
|
|
2501
|
-
// OpenAI
|
|
2502
|
-
"openAiBaseUrl",
|
|
2503
|
-
"openAiApiKey",
|
|
2504
|
-
"openAiLegacyFormat",
|
|
2505
|
-
"openAiR1FormatEnabled",
|
|
2506
|
-
"openAiModelId",
|
|
2507
|
-
"openAiCustomModelInfo",
|
|
2508
|
-
"openAiUseAzure",
|
|
2509
|
-
"azureApiVersion",
|
|
2510
|
-
"openAiStreamingEnabled",
|
|
2511
|
-
"openAiHostHeader",
|
|
2512
|
-
// Keep temporarily for backward compatibility during migration.
|
|
2513
|
-
"openAiHeaders",
|
|
2514
|
-
// Ollama
|
|
2515
|
-
"ollamaModelId",
|
|
2516
|
-
"ollamaBaseUrl",
|
|
2517
|
-
// VS Code LM
|
|
2518
|
-
"vsCodeLmModelSelector",
|
|
2519
|
-
"lmStudioModelId",
|
|
2520
|
-
"lmStudioBaseUrl",
|
|
2521
|
-
"lmStudioDraftModelId",
|
|
2522
|
-
"lmStudioSpeculativeDecodingEnabled",
|
|
2523
|
-
// Gemini
|
|
2524
|
-
"geminiApiKey",
|
|
2525
|
-
"googleGeminiBaseUrl",
|
|
2526
|
-
// OpenAI Native
|
|
2527
|
-
"openAiNativeApiKey",
|
|
2528
|
-
"openAiNativeBaseUrl",
|
|
2529
|
-
// Mistral
|
|
2530
|
-
"mistralApiKey",
|
|
2531
|
-
"mistralCodestralUrl",
|
|
2532
|
-
// DeepSeek
|
|
2533
|
-
"deepSeekBaseUrl",
|
|
2534
|
-
"deepSeekApiKey",
|
|
2535
|
-
// Unbound
|
|
2536
|
-
"unboundApiKey",
|
|
2537
|
-
"unboundModelId",
|
|
2538
|
-
// Requesty
|
|
2539
|
-
"requestyApiKey",
|
|
2540
|
-
"requestyModelId",
|
|
2541
|
-
// Code Index
|
|
2542
|
-
"codeIndexOpenAiKey",
|
|
2543
|
-
"codeIndexQdrantApiKey",
|
|
2544
|
-
"codebaseIndexOpenAiCompatibleBaseUrl",
|
|
2545
|
-
"codebaseIndexOpenAiCompatibleApiKey",
|
|
2546
|
-
"codebaseIndexOpenAiCompatibleModelDimension",
|
|
2547
|
-
// Reasoning
|
|
2548
|
-
"enableReasoningEffort",
|
|
2549
|
-
"reasoningEffort",
|
|
2550
|
-
"modelMaxTokens",
|
|
2551
|
-
"modelMaxThinkingTokens",
|
|
2552
|
-
// Generic
|
|
2553
|
-
"includeMaxTokens",
|
|
2554
|
-
"diffEnabled",
|
|
2555
|
-
"fuzzyMatchThreshold",
|
|
2556
|
-
"modelTemperature",
|
|
2557
|
-
"rateLimitSeconds",
|
|
2558
|
-
// Fake AI
|
|
2559
|
-
"fakeAi",
|
|
2560
|
-
// X.AI (Grok)
|
|
2561
|
-
"xaiApiKey",
|
|
2562
|
-
// Groq
|
|
2563
|
-
"groqApiKey",
|
|
2564
|
-
// Chutes AI
|
|
2565
|
-
"chutesApiKey",
|
|
2566
|
-
// LiteLLM
|
|
2567
|
-
"litellmBaseUrl",
|
|
2568
|
-
"litellmApiKey",
|
|
2569
|
-
"litellmModelId"
|
|
2570
|
-
]);
|
|
2388
|
+
var PROVIDER_SETTINGS_KEYS = providerSettingsSchema.keyof().options;
|
|
2571
2389
|
var MODEL_ID_KEYS = [
|
|
2572
2390
|
"apiModelId",
|
|
2573
2391
|
"glamaModelId",
|
|
@@ -2603,18 +2421,13 @@ var historyItemSchema = import_zod4.z.object({
|
|
|
2603
2421
|
|
|
2604
2422
|
// src/experiment.ts
|
|
2605
2423
|
var import_zod5 = require("zod");
|
|
2606
|
-
var experimentIds = [
|
|
2607
|
-
"powerSteering",
|
|
2608
|
-
"marketplace",
|
|
2609
|
-
"concurrentFileReads",
|
|
2610
|
-
"disableCompletionCommand"
|
|
2611
|
-
];
|
|
2424
|
+
var experimentIds = ["powerSteering", "disableCompletionCommand", "marketplace", "multiFileApplyDiff"];
|
|
2612
2425
|
var experimentIdsSchema = import_zod5.z.enum(experimentIds);
|
|
2613
2426
|
var experimentsSchema = import_zod5.z.object({
|
|
2614
|
-
powerSteering: import_zod5.z.boolean(),
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2427
|
+
powerSteering: import_zod5.z.boolean().optional(),
|
|
2428
|
+
disableCompletionCommand: import_zod5.z.boolean().optional(),
|
|
2429
|
+
marketplace: import_zod5.z.boolean().optional(),
|
|
2430
|
+
multiFileApplyDiff: import_zod5.z.boolean().optional()
|
|
2618
2431
|
});
|
|
2619
2432
|
|
|
2620
2433
|
// src/telemetry.ts
|
|
@@ -2686,7 +2499,8 @@ var clineMessageSchema = import_zod6.z.object({
|
|
|
2686
2499
|
conversationHistoryIndex: import_zod6.z.number().optional(),
|
|
2687
2500
|
checkpoint: import_zod6.z.record(import_zod6.z.string(), import_zod6.z.unknown()).optional(),
|
|
2688
2501
|
progressStatus: toolProgressStatusSchema.optional(),
|
|
2689
|
-
contextCondense: contextCondenseSchema.optional()
|
|
2502
|
+
contextCondense: contextCondenseSchema.optional(),
|
|
2503
|
+
isProtected: import_zod6.z.boolean().optional()
|
|
2690
2504
|
});
|
|
2691
2505
|
var tokenUsageSchema = import_zod6.z.object({
|
|
2692
2506
|
totalTokensIn: import_zod6.z.number(),
|
|
@@ -2720,6 +2534,8 @@ var TelemetryEventName = /* @__PURE__ */ ((TelemetryEventName2) => {
|
|
|
2720
2534
|
TelemetryEventName2["AUTHENTICATION_INITIATED"] = "Authentication Initiated";
|
|
2721
2535
|
TelemetryEventName2["MARKETPLACE_ITEM_INSTALLED"] = "Marketplace Item Installed";
|
|
2722
2536
|
TelemetryEventName2["MARKETPLACE_ITEM_REMOVED"] = "Marketplace Item Removed";
|
|
2537
|
+
TelemetryEventName2["MARKETPLACE_TAB_VIEWED"] = "Marketplace Tab Viewed";
|
|
2538
|
+
TelemetryEventName2["MARKETPLACE_INSTALL_BUTTON_CLICKED"] = "Marketplace Install Button Clicked";
|
|
2723
2539
|
TelemetryEventName2["SCHEMA_VALIDATION_ERROR"] = "Schema Validation Error";
|
|
2724
2540
|
TelemetryEventName2["DIFF_APPLICATION_ERROR"] = "Diff Application Error";
|
|
2725
2541
|
TelemetryEventName2["SHELL_INTEGRATION_ERROR"] = "Shell Integration Error";
|
|
@@ -2928,6 +2744,7 @@ var languages = [
|
|
|
2928
2744
|
"es",
|
|
2929
2745
|
"fr",
|
|
2930
2746
|
"hi",
|
|
2747
|
+
"id",
|
|
2931
2748
|
"it",
|
|
2932
2749
|
"ja",
|
|
2933
2750
|
"ko",
|
|
@@ -2958,6 +2775,7 @@ var globalSettingsSchema = import_zod11.z.object({
|
|
|
2958
2775
|
alwaysAllowReadOnlyOutsideWorkspace: import_zod11.z.boolean().optional(),
|
|
2959
2776
|
alwaysAllowWrite: import_zod11.z.boolean().optional(),
|
|
2960
2777
|
alwaysAllowWriteOutsideWorkspace: import_zod11.z.boolean().optional(),
|
|
2778
|
+
alwaysAllowWriteProtected: import_zod11.z.boolean().optional(),
|
|
2961
2779
|
writeDelayMs: import_zod11.z.number().optional(),
|
|
2962
2780
|
alwaysAllowBrowser: import_zod11.z.boolean().optional(),
|
|
2963
2781
|
alwaysApproveResubmit: import_zod11.z.boolean().optional(),
|
|
@@ -3014,78 +2832,9 @@ var globalSettingsSchema = import_zod11.z.object({
|
|
|
3014
2832
|
enhancementApiConfigId: import_zod11.z.string().optional(),
|
|
3015
2833
|
historyPreviewCollapsed: import_zod11.z.boolean().optional()
|
|
3016
2834
|
});
|
|
3017
|
-
var GLOBAL_SETTINGS_KEYS =
|
|
3018
|
-
"currentApiConfigName",
|
|
3019
|
-
"listApiConfigMeta",
|
|
3020
|
-
"pinnedApiConfigs",
|
|
3021
|
-
"lastShownAnnouncementId",
|
|
3022
|
-
"customInstructions",
|
|
3023
|
-
"taskHistory",
|
|
3024
|
-
"condensingApiConfigId",
|
|
3025
|
-
"customCondensingPrompt",
|
|
3026
|
-
"autoApprovalEnabled",
|
|
3027
|
-
"alwaysAllowReadOnly",
|
|
3028
|
-
"alwaysAllowReadOnlyOutsideWorkspace",
|
|
3029
|
-
"alwaysAllowWrite",
|
|
3030
|
-
"alwaysAllowWriteOutsideWorkspace",
|
|
3031
|
-
"writeDelayMs",
|
|
3032
|
-
"alwaysAllowBrowser",
|
|
3033
|
-
"alwaysApproveResubmit",
|
|
3034
|
-
"requestDelaySeconds",
|
|
3035
|
-
"alwaysAllowMcp",
|
|
3036
|
-
"alwaysAllowModeSwitch",
|
|
3037
|
-
"alwaysAllowSubtasks",
|
|
3038
|
-
"alwaysAllowExecute",
|
|
3039
|
-
"allowedCommands",
|
|
3040
|
-
"allowedMaxRequests",
|
|
3041
|
-
"autoCondenseContext",
|
|
3042
|
-
"autoCondenseContextPercent",
|
|
3043
|
-
"maxConcurrentFileReads",
|
|
3044
|
-
"browserToolEnabled",
|
|
3045
|
-
"browserViewportSize",
|
|
3046
|
-
"screenshotQuality",
|
|
3047
|
-
"remoteBrowserEnabled",
|
|
3048
|
-
"remoteBrowserHost",
|
|
3049
|
-
"enableCheckpoints",
|
|
3050
|
-
"ttsEnabled",
|
|
3051
|
-
"ttsSpeed",
|
|
3052
|
-
"soundEnabled",
|
|
3053
|
-
"soundVolume",
|
|
3054
|
-
"maxOpenTabsContext",
|
|
3055
|
-
"maxWorkspaceFiles",
|
|
3056
|
-
"showRooIgnoredFiles",
|
|
3057
|
-
"maxReadFileLine",
|
|
3058
|
-
"terminalOutputLineLimit",
|
|
3059
|
-
"terminalShellIntegrationTimeout",
|
|
3060
|
-
"terminalShellIntegrationDisabled",
|
|
3061
|
-
"terminalCommandDelay",
|
|
3062
|
-
"terminalPowershellCounter",
|
|
3063
|
-
"terminalZshClearEolMark",
|
|
3064
|
-
"terminalZshOhMy",
|
|
3065
|
-
"terminalZshP10k",
|
|
3066
|
-
"terminalZdotdir",
|
|
3067
|
-
"terminalCompressProgressBar",
|
|
3068
|
-
"rateLimitSeconds",
|
|
3069
|
-
"diffEnabled",
|
|
3070
|
-
"fuzzyMatchThreshold",
|
|
3071
|
-
"experiments",
|
|
3072
|
-
"codebaseIndexModels",
|
|
3073
|
-
"codebaseIndexConfig",
|
|
3074
|
-
"language",
|
|
3075
|
-
"telemetrySetting",
|
|
3076
|
-
"mcpEnabled",
|
|
3077
|
-
"enableMcpServerCreation",
|
|
3078
|
-
"mode",
|
|
3079
|
-
"modeApiConfigs",
|
|
3080
|
-
"customModes",
|
|
3081
|
-
"customModePrompts",
|
|
3082
|
-
"customSupportPrompts",
|
|
3083
|
-
"enhancementApiConfigId",
|
|
3084
|
-
"cachedChromeHostUrl",
|
|
3085
|
-
"historyPreviewCollapsed"
|
|
3086
|
-
]);
|
|
2835
|
+
var GLOBAL_SETTINGS_KEYS = globalSettingsSchema.keyof().options;
|
|
3087
2836
|
var rooCodeSettingsSchema = providerSettingsSchema.merge(globalSettingsSchema);
|
|
3088
|
-
var SECRET_STATE_KEYS =
|
|
2837
|
+
var SECRET_STATE_KEYS = [
|
|
3089
2838
|
"apiKey",
|
|
3090
2839
|
"glamaApiKey",
|
|
3091
2840
|
"openRouterApiKey",
|
|
@@ -3106,7 +2855,7 @@ var SECRET_STATE_KEYS = keysOf()([
|
|
|
3106
2855
|
"codeIndexOpenAiKey",
|
|
3107
2856
|
"codeIndexQdrantApiKey",
|
|
3108
2857
|
"codebaseIndexOpenAiCompatibleApiKey"
|
|
3109
|
-
]
|
|
2858
|
+
];
|
|
3110
2859
|
var isSecretStateKey = (key) => SECRET_STATE_KEYS.includes(key);
|
|
3111
2860
|
var GLOBAL_STATE_KEYS = [...GLOBAL_SETTINGS_KEYS, ...PROVIDER_SETTINGS_KEYS].filter(
|
|
3112
2861
|
(key) => !SECRET_STATE_KEYS.includes(key)
|
|
@@ -3122,6 +2871,7 @@ var EVALS_SETTINGS = {
|
|
|
3122
2871
|
alwaysAllowReadOnlyOutsideWorkspace: false,
|
|
3123
2872
|
alwaysAllowWrite: true,
|
|
3124
2873
|
alwaysAllowWriteOutsideWorkspace: false,
|
|
2874
|
+
alwaysAllowWriteProtected: false,
|
|
3125
2875
|
writeDelayMs: 1e3,
|
|
3126
2876
|
alwaysAllowBrowser: true,
|
|
3127
2877
|
alwaysApproveResubmit: true,
|
|
@@ -3403,28 +3153,104 @@ var ipcMessageSchema = import_zod13.z.discriminatedUnion("type", [
|
|
|
3403
3153
|
})
|
|
3404
3154
|
]);
|
|
3405
3155
|
|
|
3406
|
-
// src/
|
|
3156
|
+
// src/marketplace.ts
|
|
3407
3157
|
var import_zod14 = require("zod");
|
|
3408
|
-
var
|
|
3409
|
-
import_zod14.z.
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3158
|
+
var mcpParameterSchema = import_zod14.z.object({
|
|
3159
|
+
name: import_zod14.z.string().min(1),
|
|
3160
|
+
key: import_zod14.z.string().min(1),
|
|
3161
|
+
placeholder: import_zod14.z.string().optional(),
|
|
3162
|
+
optional: import_zod14.z.boolean().optional().default(false)
|
|
3163
|
+
});
|
|
3164
|
+
var mcpInstallationMethodSchema = import_zod14.z.object({
|
|
3165
|
+
name: import_zod14.z.string().min(1),
|
|
3166
|
+
content: import_zod14.z.string().min(1),
|
|
3167
|
+
parameters: import_zod14.z.array(mcpParameterSchema).optional(),
|
|
3168
|
+
prerequisites: import_zod14.z.array(import_zod14.z.string()).optional()
|
|
3169
|
+
});
|
|
3170
|
+
var marketplaceItemTypeSchema = import_zod14.z.enum(["mode", "mcp"]);
|
|
3171
|
+
var baseMarketplaceItemSchema = import_zod14.z.object({
|
|
3172
|
+
id: import_zod14.z.string().min(1),
|
|
3173
|
+
name: import_zod14.z.string().min(1, "Name is required"),
|
|
3174
|
+
description: import_zod14.z.string(),
|
|
3175
|
+
author: import_zod14.z.string().optional(),
|
|
3176
|
+
authorUrl: import_zod14.z.string().url("Author URL must be a valid URL").optional(),
|
|
3177
|
+
tags: import_zod14.z.array(import_zod14.z.string()).optional(),
|
|
3178
|
+
prerequisites: import_zod14.z.array(import_zod14.z.string()).optional()
|
|
3179
|
+
});
|
|
3180
|
+
var modeMarketplaceItemSchema = baseMarketplaceItemSchema.extend({
|
|
3181
|
+
content: import_zod14.z.string().min(1)
|
|
3182
|
+
// YAML content for modes
|
|
3183
|
+
});
|
|
3184
|
+
var mcpMarketplaceItemSchema = baseMarketplaceItemSchema.extend({
|
|
3185
|
+
url: import_zod14.z.string().url(),
|
|
3186
|
+
// Required url field
|
|
3187
|
+
content: import_zod14.z.union([import_zod14.z.string().min(1), import_zod14.z.array(mcpInstallationMethodSchema)]),
|
|
3188
|
+
// Single config or array of methods
|
|
3189
|
+
parameters: import_zod14.z.array(mcpParameterSchema).optional()
|
|
3190
|
+
});
|
|
3191
|
+
var marketplaceItemSchema = import_zod14.z.discriminatedUnion("type", [
|
|
3192
|
+
// Mode marketplace item
|
|
3193
|
+
modeMarketplaceItemSchema.extend({
|
|
3194
|
+
type: import_zod14.z.literal("mode")
|
|
3195
|
+
}),
|
|
3196
|
+
// MCP marketplace item
|
|
3197
|
+
mcpMarketplaceItemSchema.extend({
|
|
3198
|
+
type: import_zod14.z.literal("mcp")
|
|
3199
|
+
})
|
|
3200
|
+
]);
|
|
3201
|
+
var installMarketplaceItemOptionsSchema = import_zod14.z.object({
|
|
3202
|
+
target: import_zod14.z.enum(["global", "project"]).optional().default("project"),
|
|
3203
|
+
parameters: import_zod14.z.record(import_zod14.z.string(), import_zod14.z.any()).optional()
|
|
3204
|
+
});
|
|
3205
|
+
|
|
3206
|
+
// src/mcp.ts
|
|
3207
|
+
var import_zod15 = require("zod");
|
|
3208
|
+
var mcpExecutionStatusSchema = import_zod15.z.discriminatedUnion("status", [
|
|
3209
|
+
import_zod15.z.object({
|
|
3210
|
+
executionId: import_zod15.z.string(),
|
|
3211
|
+
status: import_zod15.z.literal("started"),
|
|
3212
|
+
serverName: import_zod15.z.string(),
|
|
3213
|
+
toolName: import_zod15.z.string()
|
|
3214
|
+
}),
|
|
3215
|
+
import_zod15.z.object({
|
|
3216
|
+
executionId: import_zod15.z.string(),
|
|
3217
|
+
status: import_zod15.z.literal("output"),
|
|
3218
|
+
response: import_zod15.z.string()
|
|
3219
|
+
}),
|
|
3220
|
+
import_zod15.z.object({
|
|
3221
|
+
executionId: import_zod15.z.string(),
|
|
3222
|
+
status: import_zod15.z.literal("completed"),
|
|
3223
|
+
response: import_zod15.z.string().optional()
|
|
3224
|
+
}),
|
|
3225
|
+
import_zod15.z.object({
|
|
3226
|
+
executionId: import_zod15.z.string(),
|
|
3227
|
+
status: import_zod15.z.literal("error"),
|
|
3228
|
+
error: import_zod15.z.string().optional()
|
|
3229
|
+
})
|
|
3230
|
+
]);
|
|
3231
|
+
|
|
3232
|
+
// src/terminal.ts
|
|
3233
|
+
var import_zod16 = require("zod");
|
|
3234
|
+
var commandExecutionStatusSchema = import_zod16.z.discriminatedUnion("status", [
|
|
3235
|
+
import_zod16.z.object({
|
|
3236
|
+
executionId: import_zod16.z.string(),
|
|
3237
|
+
status: import_zod16.z.literal("started"),
|
|
3238
|
+
pid: import_zod16.z.number().optional(),
|
|
3239
|
+
command: import_zod16.z.string()
|
|
3414
3240
|
}),
|
|
3415
|
-
|
|
3416
|
-
executionId:
|
|
3417
|
-
status:
|
|
3418
|
-
output:
|
|
3241
|
+
import_zod16.z.object({
|
|
3242
|
+
executionId: import_zod16.z.string(),
|
|
3243
|
+
status: import_zod16.z.literal("output"),
|
|
3244
|
+
output: import_zod16.z.string()
|
|
3419
3245
|
}),
|
|
3420
|
-
|
|
3421
|
-
executionId:
|
|
3422
|
-
status:
|
|
3423
|
-
exitCode:
|
|
3246
|
+
import_zod16.z.object({
|
|
3247
|
+
executionId: import_zod16.z.string(),
|
|
3248
|
+
status: import_zod16.z.literal("exited"),
|
|
3249
|
+
exitCode: import_zod16.z.number().optional()
|
|
3424
3250
|
}),
|
|
3425
|
-
|
|
3426
|
-
executionId:
|
|
3427
|
-
status:
|
|
3251
|
+
import_zod16.z.object({
|
|
3252
|
+
executionId: import_zod16.z.string(),
|
|
3253
|
+
status: import_zod16.z.literal("fallback")
|
|
3428
3254
|
})
|
|
3429
3255
|
]);
|
|
3430
3256
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -3503,19 +3329,26 @@ var commandExecutionStatusSchema = import_zod14.z.discriminatedUnion("status", [
|
|
|
3503
3329
|
groupEntrySchema,
|
|
3504
3330
|
groupOptionsSchema,
|
|
3505
3331
|
historyItemSchema,
|
|
3332
|
+
installMarketplaceItemOptionsSchema,
|
|
3506
3333
|
ipcMessageSchema,
|
|
3507
3334
|
isGlobalStateKey,
|
|
3508
3335
|
isLanguage,
|
|
3509
3336
|
isModelParameter,
|
|
3510
3337
|
isSecretStateKey,
|
|
3511
|
-
keysOf,
|
|
3512
3338
|
languages,
|
|
3513
3339
|
languagesSchema,
|
|
3514
3340
|
litellmDefaultModelId,
|
|
3515
3341
|
litellmDefaultModelInfo,
|
|
3342
|
+
marketplaceItemSchema,
|
|
3343
|
+
marketplaceItemTypeSchema,
|
|
3344
|
+
mcpExecutionStatusSchema,
|
|
3345
|
+
mcpInstallationMethodSchema,
|
|
3346
|
+
mcpMarketplaceItemSchema,
|
|
3347
|
+
mcpParameterSchema,
|
|
3516
3348
|
mistralDefaultModelId,
|
|
3517
3349
|
mistralModels,
|
|
3518
3350
|
modeConfigSchema,
|
|
3351
|
+
modeMarketplaceItemSchema,
|
|
3519
3352
|
modelInfoSchema,
|
|
3520
3353
|
modelParameters,
|
|
3521
3354
|
modelParametersSchema,
|