@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.js
CHANGED
|
@@ -189,6 +189,7 @@ var bedrockModels = {
|
|
|
189
189
|
supportsImages: true,
|
|
190
190
|
supportsComputerUse: true,
|
|
191
191
|
supportsPromptCache: true,
|
|
192
|
+
supportsReasoningBudget: true,
|
|
192
193
|
inputPrice: 3,
|
|
193
194
|
outputPrice: 15,
|
|
194
195
|
cacheWritesPrice: 3.75,
|
|
@@ -203,6 +204,7 @@ var bedrockModels = {
|
|
|
203
204
|
supportsImages: true,
|
|
204
205
|
supportsComputerUse: true,
|
|
205
206
|
supportsPromptCache: true,
|
|
207
|
+
supportsReasoningBudget: true,
|
|
206
208
|
inputPrice: 15,
|
|
207
209
|
outputPrice: 75,
|
|
208
210
|
cacheWritesPrice: 18.75,
|
|
@@ -217,6 +219,7 @@ var bedrockModels = {
|
|
|
217
219
|
supportsImages: true,
|
|
218
220
|
supportsComputerUse: true,
|
|
219
221
|
supportsPromptCache: true,
|
|
222
|
+
supportsReasoningBudget: true,
|
|
220
223
|
inputPrice: 3,
|
|
221
224
|
outputPrice: 15,
|
|
222
225
|
cacheWritesPrice: 3.75,
|
|
@@ -1873,153 +1876,69 @@ var vscodeLlmModels = {
|
|
|
1873
1876
|
// src/providers/xai.ts
|
|
1874
1877
|
var xaiDefaultModelId = "grok-3";
|
|
1875
1878
|
var xaiModels = {
|
|
1876
|
-
"grok-
|
|
1877
|
-
maxTokens: 8192,
|
|
1878
|
-
contextWindow: 131072,
|
|
1879
|
-
supportsImages: false,
|
|
1880
|
-
supportsPromptCache: false,
|
|
1881
|
-
inputPrice: 3,
|
|
1882
|
-
outputPrice: 15,
|
|
1883
|
-
description: "xAI's Grok-3 beta model with 131K context window"
|
|
1884
|
-
},
|
|
1885
|
-
"grok-3-fast-beta": {
|
|
1886
|
-
maxTokens: 8192,
|
|
1887
|
-
contextWindow: 131072,
|
|
1888
|
-
supportsImages: false,
|
|
1889
|
-
supportsPromptCache: false,
|
|
1890
|
-
inputPrice: 5,
|
|
1891
|
-
outputPrice: 25,
|
|
1892
|
-
description: "xAI's Grok-3 fast beta model with 131K context window"
|
|
1893
|
-
},
|
|
1894
|
-
"grok-3-mini-beta": {
|
|
1879
|
+
"grok-2-1212": {
|
|
1895
1880
|
maxTokens: 8192,
|
|
1896
1881
|
contextWindow: 131072,
|
|
1897
1882
|
supportsImages: false,
|
|
1898
1883
|
supportsPromptCache: false,
|
|
1899
|
-
inputPrice:
|
|
1900
|
-
outputPrice:
|
|
1901
|
-
description: "xAI's Grok-
|
|
1902
|
-
supportsReasoningEffort: true
|
|
1884
|
+
inputPrice: 2,
|
|
1885
|
+
outputPrice: 10,
|
|
1886
|
+
description: "xAI's Grok-2 model (version 1212) with 128K context window"
|
|
1903
1887
|
},
|
|
1904
|
-
"grok-
|
|
1888
|
+
"grok-2-vision-1212": {
|
|
1905
1889
|
maxTokens: 8192,
|
|
1906
|
-
contextWindow:
|
|
1907
|
-
supportsImages:
|
|
1890
|
+
contextWindow: 32768,
|
|
1891
|
+
supportsImages: true,
|
|
1908
1892
|
supportsPromptCache: false,
|
|
1909
|
-
inputPrice:
|
|
1910
|
-
outputPrice:
|
|
1911
|
-
description: "xAI's Grok-
|
|
1912
|
-
supportsReasoningEffort: true
|
|
1893
|
+
inputPrice: 2,
|
|
1894
|
+
outputPrice: 10,
|
|
1895
|
+
description: "xAI's Grok-2 Vision model (version 1212) with image support and 32K context window"
|
|
1913
1896
|
},
|
|
1914
1897
|
"grok-3": {
|
|
1915
1898
|
maxTokens: 8192,
|
|
1916
1899
|
contextWindow: 131072,
|
|
1917
1900
|
supportsImages: false,
|
|
1918
|
-
supportsPromptCache:
|
|
1901
|
+
supportsPromptCache: true,
|
|
1919
1902
|
inputPrice: 3,
|
|
1920
1903
|
outputPrice: 15,
|
|
1921
|
-
|
|
1904
|
+
cacheWritesPrice: 0.75,
|
|
1905
|
+
cacheReadsPrice: 0.75,
|
|
1906
|
+
description: "xAI's Grok-3 model with 128K context window"
|
|
1922
1907
|
},
|
|
1923
1908
|
"grok-3-fast": {
|
|
1924
1909
|
maxTokens: 8192,
|
|
1925
1910
|
contextWindow: 131072,
|
|
1926
1911
|
supportsImages: false,
|
|
1927
|
-
supportsPromptCache:
|
|
1912
|
+
supportsPromptCache: true,
|
|
1928
1913
|
inputPrice: 5,
|
|
1929
1914
|
outputPrice: 25,
|
|
1930
|
-
|
|
1915
|
+
cacheWritesPrice: 1.25,
|
|
1916
|
+
cacheReadsPrice: 1.25,
|
|
1917
|
+
description: "xAI's Grok-3 fast model with 128K context window"
|
|
1931
1918
|
},
|
|
1932
1919
|
"grok-3-mini": {
|
|
1933
1920
|
maxTokens: 8192,
|
|
1934
1921
|
contextWindow: 131072,
|
|
1935
1922
|
supportsImages: false,
|
|
1936
|
-
supportsPromptCache:
|
|
1923
|
+
supportsPromptCache: true,
|
|
1937
1924
|
inputPrice: 0.3,
|
|
1938
1925
|
outputPrice: 0.5,
|
|
1939
|
-
|
|
1926
|
+
cacheWritesPrice: 0.07,
|
|
1927
|
+
cacheReadsPrice: 0.07,
|
|
1928
|
+
description: "xAI's Grok-3 mini model with 128K context window",
|
|
1940
1929
|
supportsReasoningEffort: true
|
|
1941
1930
|
},
|
|
1942
1931
|
"grok-3-mini-fast": {
|
|
1943
1932
|
maxTokens: 8192,
|
|
1944
1933
|
contextWindow: 131072,
|
|
1945
1934
|
supportsImages: false,
|
|
1946
|
-
supportsPromptCache:
|
|
1935
|
+
supportsPromptCache: true,
|
|
1947
1936
|
inputPrice: 0.6,
|
|
1948
1937
|
outputPrice: 4,
|
|
1949
|
-
|
|
1938
|
+
cacheWritesPrice: 0.15,
|
|
1939
|
+
cacheReadsPrice: 0.15,
|
|
1940
|
+
description: "xAI's Grok-3 mini fast model with 128K context window",
|
|
1950
1941
|
supportsReasoningEffort: true
|
|
1951
|
-
},
|
|
1952
|
-
"grok-2-latest": {
|
|
1953
|
-
maxTokens: 8192,
|
|
1954
|
-
contextWindow: 131072,
|
|
1955
|
-
supportsImages: false,
|
|
1956
|
-
supportsPromptCache: false,
|
|
1957
|
-
inputPrice: 2,
|
|
1958
|
-
outputPrice: 10,
|
|
1959
|
-
description: "xAI's Grok-2 model - latest version with 131K context window"
|
|
1960
|
-
},
|
|
1961
|
-
"grok-2": {
|
|
1962
|
-
maxTokens: 8192,
|
|
1963
|
-
contextWindow: 131072,
|
|
1964
|
-
supportsImages: false,
|
|
1965
|
-
supportsPromptCache: false,
|
|
1966
|
-
inputPrice: 2,
|
|
1967
|
-
outputPrice: 10,
|
|
1968
|
-
description: "xAI's Grok-2 model with 131K context window"
|
|
1969
|
-
},
|
|
1970
|
-
"grok-2-1212": {
|
|
1971
|
-
maxTokens: 8192,
|
|
1972
|
-
contextWindow: 131072,
|
|
1973
|
-
supportsImages: false,
|
|
1974
|
-
supportsPromptCache: false,
|
|
1975
|
-
inputPrice: 2,
|
|
1976
|
-
outputPrice: 10,
|
|
1977
|
-
description: "xAI's Grok-2 model (version 1212) with 131K context window"
|
|
1978
|
-
},
|
|
1979
|
-
"grok-2-vision-latest": {
|
|
1980
|
-
maxTokens: 8192,
|
|
1981
|
-
contextWindow: 32768,
|
|
1982
|
-
supportsImages: true,
|
|
1983
|
-
supportsPromptCache: false,
|
|
1984
|
-
inputPrice: 2,
|
|
1985
|
-
outputPrice: 10,
|
|
1986
|
-
description: "xAI's Grok-2 Vision model - latest version with image support and 32K context window"
|
|
1987
|
-
},
|
|
1988
|
-
"grok-2-vision": {
|
|
1989
|
-
maxTokens: 8192,
|
|
1990
|
-
contextWindow: 32768,
|
|
1991
|
-
supportsImages: true,
|
|
1992
|
-
supportsPromptCache: false,
|
|
1993
|
-
inputPrice: 2,
|
|
1994
|
-
outputPrice: 10,
|
|
1995
|
-
description: "xAI's Grok-2 Vision model with image support and 32K context window"
|
|
1996
|
-
},
|
|
1997
|
-
"grok-2-vision-1212": {
|
|
1998
|
-
maxTokens: 8192,
|
|
1999
|
-
contextWindow: 32768,
|
|
2000
|
-
supportsImages: true,
|
|
2001
|
-
supportsPromptCache: false,
|
|
2002
|
-
inputPrice: 2,
|
|
2003
|
-
outputPrice: 10,
|
|
2004
|
-
description: "xAI's Grok-2 Vision model (version 1212) with image support and 32K context window"
|
|
2005
|
-
},
|
|
2006
|
-
"grok-vision-beta": {
|
|
2007
|
-
maxTokens: 8192,
|
|
2008
|
-
contextWindow: 8192,
|
|
2009
|
-
supportsImages: true,
|
|
2010
|
-
supportsPromptCache: false,
|
|
2011
|
-
inputPrice: 5,
|
|
2012
|
-
outputPrice: 15,
|
|
2013
|
-
description: "xAI's Grok Vision Beta model with image support and 8K context window"
|
|
2014
|
-
},
|
|
2015
|
-
"grok-beta": {
|
|
2016
|
-
maxTokens: 8192,
|
|
2017
|
-
contextWindow: 131072,
|
|
2018
|
-
supportsImages: false,
|
|
2019
|
-
supportsPromptCache: false,
|
|
2020
|
-
inputPrice: 5,
|
|
2021
|
-
outputPrice: 15,
|
|
2022
|
-
description: "xAI's Grok Beta model (legacy) with 131K context window"
|
|
2023
1942
|
}
|
|
2024
1943
|
};
|
|
2025
1944
|
|
|
@@ -2051,11 +1970,6 @@ import { z as z12 } from "zod";
|
|
|
2051
1970
|
// src/global-settings.ts
|
|
2052
1971
|
import { z as z11 } from "zod";
|
|
2053
1972
|
|
|
2054
|
-
// src/type-fu.ts
|
|
2055
|
-
function keysOf() {
|
|
2056
|
-
return (keys) => keys;
|
|
2057
|
-
}
|
|
2058
|
-
|
|
2059
1973
|
// src/provider-settings.ts
|
|
2060
1974
|
import { z as z3 } from "zod";
|
|
2061
1975
|
|
|
@@ -2304,110 +2218,7 @@ var providerSettingsSchema = z3.object({
|
|
|
2304
2218
|
...litellmSchema.shape,
|
|
2305
2219
|
...codebaseIndexProviderSchema.shape
|
|
2306
2220
|
});
|
|
2307
|
-
var PROVIDER_SETTINGS_KEYS =
|
|
2308
|
-
"apiProvider",
|
|
2309
|
-
// Anthropic
|
|
2310
|
-
"apiModelId",
|
|
2311
|
-
"apiKey",
|
|
2312
|
-
"anthropicBaseUrl",
|
|
2313
|
-
"anthropicUseAuthToken",
|
|
2314
|
-
// Glama
|
|
2315
|
-
"glamaModelId",
|
|
2316
|
-
"glamaApiKey",
|
|
2317
|
-
// OpenRouter
|
|
2318
|
-
"openRouterApiKey",
|
|
2319
|
-
"openRouterModelId",
|
|
2320
|
-
"openRouterBaseUrl",
|
|
2321
|
-
"openRouterSpecificProvider",
|
|
2322
|
-
"openRouterUseMiddleOutTransform",
|
|
2323
|
-
// Amazon Bedrock
|
|
2324
|
-
"awsAccessKey",
|
|
2325
|
-
"awsSecretKey",
|
|
2326
|
-
"awsSessionToken",
|
|
2327
|
-
"awsRegion",
|
|
2328
|
-
"awsUseCrossRegionInference",
|
|
2329
|
-
"awsUsePromptCache",
|
|
2330
|
-
"awsProfile",
|
|
2331
|
-
"awsUseProfile",
|
|
2332
|
-
"awsCustomArn",
|
|
2333
|
-
"awsModelContextWindow",
|
|
2334
|
-
"awsBedrockEndpointEnabled",
|
|
2335
|
-
"awsBedrockEndpoint",
|
|
2336
|
-
// Google Vertex
|
|
2337
|
-
"vertexKeyFile",
|
|
2338
|
-
"vertexJsonCredentials",
|
|
2339
|
-
"vertexProjectId",
|
|
2340
|
-
"vertexRegion",
|
|
2341
|
-
// OpenAI
|
|
2342
|
-
"openAiBaseUrl",
|
|
2343
|
-
"openAiApiKey",
|
|
2344
|
-
"openAiLegacyFormat",
|
|
2345
|
-
"openAiR1FormatEnabled",
|
|
2346
|
-
"openAiModelId",
|
|
2347
|
-
"openAiCustomModelInfo",
|
|
2348
|
-
"openAiUseAzure",
|
|
2349
|
-
"azureApiVersion",
|
|
2350
|
-
"openAiStreamingEnabled",
|
|
2351
|
-
"openAiHostHeader",
|
|
2352
|
-
// Keep temporarily for backward compatibility during migration.
|
|
2353
|
-
"openAiHeaders",
|
|
2354
|
-
// Ollama
|
|
2355
|
-
"ollamaModelId",
|
|
2356
|
-
"ollamaBaseUrl",
|
|
2357
|
-
// VS Code LM
|
|
2358
|
-
"vsCodeLmModelSelector",
|
|
2359
|
-
"lmStudioModelId",
|
|
2360
|
-
"lmStudioBaseUrl",
|
|
2361
|
-
"lmStudioDraftModelId",
|
|
2362
|
-
"lmStudioSpeculativeDecodingEnabled",
|
|
2363
|
-
// Gemini
|
|
2364
|
-
"geminiApiKey",
|
|
2365
|
-
"googleGeminiBaseUrl",
|
|
2366
|
-
// OpenAI Native
|
|
2367
|
-
"openAiNativeApiKey",
|
|
2368
|
-
"openAiNativeBaseUrl",
|
|
2369
|
-
// Mistral
|
|
2370
|
-
"mistralApiKey",
|
|
2371
|
-
"mistralCodestralUrl",
|
|
2372
|
-
// DeepSeek
|
|
2373
|
-
"deepSeekBaseUrl",
|
|
2374
|
-
"deepSeekApiKey",
|
|
2375
|
-
// Unbound
|
|
2376
|
-
"unboundApiKey",
|
|
2377
|
-
"unboundModelId",
|
|
2378
|
-
// Requesty
|
|
2379
|
-
"requestyApiKey",
|
|
2380
|
-
"requestyModelId",
|
|
2381
|
-
// Code Index
|
|
2382
|
-
"codeIndexOpenAiKey",
|
|
2383
|
-
"codeIndexQdrantApiKey",
|
|
2384
|
-
"codebaseIndexOpenAiCompatibleBaseUrl",
|
|
2385
|
-
"codebaseIndexOpenAiCompatibleApiKey",
|
|
2386
|
-
"codebaseIndexOpenAiCompatibleModelDimension",
|
|
2387
|
-
// Reasoning
|
|
2388
|
-
"enableReasoningEffort",
|
|
2389
|
-
"reasoningEffort",
|
|
2390
|
-
"modelMaxTokens",
|
|
2391
|
-
"modelMaxThinkingTokens",
|
|
2392
|
-
// Generic
|
|
2393
|
-
"includeMaxTokens",
|
|
2394
|
-
"diffEnabled",
|
|
2395
|
-
"fuzzyMatchThreshold",
|
|
2396
|
-
"modelTemperature",
|
|
2397
|
-
"rateLimitSeconds",
|
|
2398
|
-
// Fake AI
|
|
2399
|
-
"fakeAi",
|
|
2400
|
-
// X.AI (Grok)
|
|
2401
|
-
"xaiApiKey",
|
|
2402
|
-
// Groq
|
|
2403
|
-
"groqApiKey",
|
|
2404
|
-
// Chutes AI
|
|
2405
|
-
"chutesApiKey",
|
|
2406
|
-
// LiteLLM
|
|
2407
|
-
"litellmBaseUrl",
|
|
2408
|
-
"litellmApiKey",
|
|
2409
|
-
"litellmModelId"
|
|
2410
|
-
]);
|
|
2221
|
+
var PROVIDER_SETTINGS_KEYS = providerSettingsSchema.keyof().options;
|
|
2411
2222
|
var MODEL_ID_KEYS = [
|
|
2412
2223
|
"apiModelId",
|
|
2413
2224
|
"glamaModelId",
|
|
@@ -2443,18 +2254,13 @@ var historyItemSchema = z4.object({
|
|
|
2443
2254
|
|
|
2444
2255
|
// src/experiment.ts
|
|
2445
2256
|
import { z as z5 } from "zod";
|
|
2446
|
-
var experimentIds = [
|
|
2447
|
-
"powerSteering",
|
|
2448
|
-
"marketplace",
|
|
2449
|
-
"concurrentFileReads",
|
|
2450
|
-
"disableCompletionCommand"
|
|
2451
|
-
];
|
|
2257
|
+
var experimentIds = ["powerSteering", "disableCompletionCommand", "marketplace", "multiFileApplyDiff"];
|
|
2452
2258
|
var experimentIdsSchema = z5.enum(experimentIds);
|
|
2453
2259
|
var experimentsSchema = z5.object({
|
|
2454
|
-
powerSteering: z5.boolean(),
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2260
|
+
powerSteering: z5.boolean().optional(),
|
|
2261
|
+
disableCompletionCommand: z5.boolean().optional(),
|
|
2262
|
+
marketplace: z5.boolean().optional(),
|
|
2263
|
+
multiFileApplyDiff: z5.boolean().optional()
|
|
2458
2264
|
});
|
|
2459
2265
|
|
|
2460
2266
|
// src/telemetry.ts
|
|
@@ -2526,7 +2332,8 @@ var clineMessageSchema = z6.object({
|
|
|
2526
2332
|
conversationHistoryIndex: z6.number().optional(),
|
|
2527
2333
|
checkpoint: z6.record(z6.string(), z6.unknown()).optional(),
|
|
2528
2334
|
progressStatus: toolProgressStatusSchema.optional(),
|
|
2529
|
-
contextCondense: contextCondenseSchema.optional()
|
|
2335
|
+
contextCondense: contextCondenseSchema.optional(),
|
|
2336
|
+
isProtected: z6.boolean().optional()
|
|
2530
2337
|
});
|
|
2531
2338
|
var tokenUsageSchema = z6.object({
|
|
2532
2339
|
totalTokensIn: z6.number(),
|
|
@@ -2560,6 +2367,8 @@ var TelemetryEventName = /* @__PURE__ */ ((TelemetryEventName2) => {
|
|
|
2560
2367
|
TelemetryEventName2["AUTHENTICATION_INITIATED"] = "Authentication Initiated";
|
|
2561
2368
|
TelemetryEventName2["MARKETPLACE_ITEM_INSTALLED"] = "Marketplace Item Installed";
|
|
2562
2369
|
TelemetryEventName2["MARKETPLACE_ITEM_REMOVED"] = "Marketplace Item Removed";
|
|
2370
|
+
TelemetryEventName2["MARKETPLACE_TAB_VIEWED"] = "Marketplace Tab Viewed";
|
|
2371
|
+
TelemetryEventName2["MARKETPLACE_INSTALL_BUTTON_CLICKED"] = "Marketplace Install Button Clicked";
|
|
2563
2372
|
TelemetryEventName2["SCHEMA_VALIDATION_ERROR"] = "Schema Validation Error";
|
|
2564
2373
|
TelemetryEventName2["DIFF_APPLICATION_ERROR"] = "Diff Application Error";
|
|
2565
2374
|
TelemetryEventName2["SHELL_INTEGRATION_ERROR"] = "Shell Integration Error";
|
|
@@ -2768,6 +2577,7 @@ var languages = [
|
|
|
2768
2577
|
"es",
|
|
2769
2578
|
"fr",
|
|
2770
2579
|
"hi",
|
|
2580
|
+
"id",
|
|
2771
2581
|
"it",
|
|
2772
2582
|
"ja",
|
|
2773
2583
|
"ko",
|
|
@@ -2798,6 +2608,7 @@ var globalSettingsSchema = z11.object({
|
|
|
2798
2608
|
alwaysAllowReadOnlyOutsideWorkspace: z11.boolean().optional(),
|
|
2799
2609
|
alwaysAllowWrite: z11.boolean().optional(),
|
|
2800
2610
|
alwaysAllowWriteOutsideWorkspace: z11.boolean().optional(),
|
|
2611
|
+
alwaysAllowWriteProtected: z11.boolean().optional(),
|
|
2801
2612
|
writeDelayMs: z11.number().optional(),
|
|
2802
2613
|
alwaysAllowBrowser: z11.boolean().optional(),
|
|
2803
2614
|
alwaysApproveResubmit: z11.boolean().optional(),
|
|
@@ -2854,78 +2665,9 @@ var globalSettingsSchema = z11.object({
|
|
|
2854
2665
|
enhancementApiConfigId: z11.string().optional(),
|
|
2855
2666
|
historyPreviewCollapsed: z11.boolean().optional()
|
|
2856
2667
|
});
|
|
2857
|
-
var GLOBAL_SETTINGS_KEYS =
|
|
2858
|
-
"currentApiConfigName",
|
|
2859
|
-
"listApiConfigMeta",
|
|
2860
|
-
"pinnedApiConfigs",
|
|
2861
|
-
"lastShownAnnouncementId",
|
|
2862
|
-
"customInstructions",
|
|
2863
|
-
"taskHistory",
|
|
2864
|
-
"condensingApiConfigId",
|
|
2865
|
-
"customCondensingPrompt",
|
|
2866
|
-
"autoApprovalEnabled",
|
|
2867
|
-
"alwaysAllowReadOnly",
|
|
2868
|
-
"alwaysAllowReadOnlyOutsideWorkspace",
|
|
2869
|
-
"alwaysAllowWrite",
|
|
2870
|
-
"alwaysAllowWriteOutsideWorkspace",
|
|
2871
|
-
"writeDelayMs",
|
|
2872
|
-
"alwaysAllowBrowser",
|
|
2873
|
-
"alwaysApproveResubmit",
|
|
2874
|
-
"requestDelaySeconds",
|
|
2875
|
-
"alwaysAllowMcp",
|
|
2876
|
-
"alwaysAllowModeSwitch",
|
|
2877
|
-
"alwaysAllowSubtasks",
|
|
2878
|
-
"alwaysAllowExecute",
|
|
2879
|
-
"allowedCommands",
|
|
2880
|
-
"allowedMaxRequests",
|
|
2881
|
-
"autoCondenseContext",
|
|
2882
|
-
"autoCondenseContextPercent",
|
|
2883
|
-
"maxConcurrentFileReads",
|
|
2884
|
-
"browserToolEnabled",
|
|
2885
|
-
"browserViewportSize",
|
|
2886
|
-
"screenshotQuality",
|
|
2887
|
-
"remoteBrowserEnabled",
|
|
2888
|
-
"remoteBrowserHost",
|
|
2889
|
-
"enableCheckpoints",
|
|
2890
|
-
"ttsEnabled",
|
|
2891
|
-
"ttsSpeed",
|
|
2892
|
-
"soundEnabled",
|
|
2893
|
-
"soundVolume",
|
|
2894
|
-
"maxOpenTabsContext",
|
|
2895
|
-
"maxWorkspaceFiles",
|
|
2896
|
-
"showRooIgnoredFiles",
|
|
2897
|
-
"maxReadFileLine",
|
|
2898
|
-
"terminalOutputLineLimit",
|
|
2899
|
-
"terminalShellIntegrationTimeout",
|
|
2900
|
-
"terminalShellIntegrationDisabled",
|
|
2901
|
-
"terminalCommandDelay",
|
|
2902
|
-
"terminalPowershellCounter",
|
|
2903
|
-
"terminalZshClearEolMark",
|
|
2904
|
-
"terminalZshOhMy",
|
|
2905
|
-
"terminalZshP10k",
|
|
2906
|
-
"terminalZdotdir",
|
|
2907
|
-
"terminalCompressProgressBar",
|
|
2908
|
-
"rateLimitSeconds",
|
|
2909
|
-
"diffEnabled",
|
|
2910
|
-
"fuzzyMatchThreshold",
|
|
2911
|
-
"experiments",
|
|
2912
|
-
"codebaseIndexModels",
|
|
2913
|
-
"codebaseIndexConfig",
|
|
2914
|
-
"language",
|
|
2915
|
-
"telemetrySetting",
|
|
2916
|
-
"mcpEnabled",
|
|
2917
|
-
"enableMcpServerCreation",
|
|
2918
|
-
"mode",
|
|
2919
|
-
"modeApiConfigs",
|
|
2920
|
-
"customModes",
|
|
2921
|
-
"customModePrompts",
|
|
2922
|
-
"customSupportPrompts",
|
|
2923
|
-
"enhancementApiConfigId",
|
|
2924
|
-
"cachedChromeHostUrl",
|
|
2925
|
-
"historyPreviewCollapsed"
|
|
2926
|
-
]);
|
|
2668
|
+
var GLOBAL_SETTINGS_KEYS = globalSettingsSchema.keyof().options;
|
|
2927
2669
|
var rooCodeSettingsSchema = providerSettingsSchema.merge(globalSettingsSchema);
|
|
2928
|
-
var SECRET_STATE_KEYS =
|
|
2670
|
+
var SECRET_STATE_KEYS = [
|
|
2929
2671
|
"apiKey",
|
|
2930
2672
|
"glamaApiKey",
|
|
2931
2673
|
"openRouterApiKey",
|
|
@@ -2946,7 +2688,7 @@ var SECRET_STATE_KEYS = keysOf()([
|
|
|
2946
2688
|
"codeIndexOpenAiKey",
|
|
2947
2689
|
"codeIndexQdrantApiKey",
|
|
2948
2690
|
"codebaseIndexOpenAiCompatibleApiKey"
|
|
2949
|
-
]
|
|
2691
|
+
];
|
|
2950
2692
|
var isSecretStateKey = (key) => SECRET_STATE_KEYS.includes(key);
|
|
2951
2693
|
var GLOBAL_STATE_KEYS = [...GLOBAL_SETTINGS_KEYS, ...PROVIDER_SETTINGS_KEYS].filter(
|
|
2952
2694
|
(key) => !SECRET_STATE_KEYS.includes(key)
|
|
@@ -2962,6 +2704,7 @@ var EVALS_SETTINGS = {
|
|
|
2962
2704
|
alwaysAllowReadOnlyOutsideWorkspace: false,
|
|
2963
2705
|
alwaysAllowWrite: true,
|
|
2964
2706
|
alwaysAllowWriteOutsideWorkspace: false,
|
|
2707
|
+
alwaysAllowWriteProtected: false,
|
|
2965
2708
|
writeDelayMs: 1e3,
|
|
2966
2709
|
alwaysAllowBrowser: true,
|
|
2967
2710
|
alwaysApproveResubmit: true,
|
|
@@ -3243,28 +2986,104 @@ var ipcMessageSchema = z13.discriminatedUnion("type", [
|
|
|
3243
2986
|
})
|
|
3244
2987
|
]);
|
|
3245
2988
|
|
|
3246
|
-
// src/
|
|
2989
|
+
// src/marketplace.ts
|
|
3247
2990
|
import { z as z14 } from "zod";
|
|
3248
|
-
var
|
|
3249
|
-
z14.
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
2991
|
+
var mcpParameterSchema = z14.object({
|
|
2992
|
+
name: z14.string().min(1),
|
|
2993
|
+
key: z14.string().min(1),
|
|
2994
|
+
placeholder: z14.string().optional(),
|
|
2995
|
+
optional: z14.boolean().optional().default(false)
|
|
2996
|
+
});
|
|
2997
|
+
var mcpInstallationMethodSchema = z14.object({
|
|
2998
|
+
name: z14.string().min(1),
|
|
2999
|
+
content: z14.string().min(1),
|
|
3000
|
+
parameters: z14.array(mcpParameterSchema).optional(),
|
|
3001
|
+
prerequisites: z14.array(z14.string()).optional()
|
|
3002
|
+
});
|
|
3003
|
+
var marketplaceItemTypeSchema = z14.enum(["mode", "mcp"]);
|
|
3004
|
+
var baseMarketplaceItemSchema = z14.object({
|
|
3005
|
+
id: z14.string().min(1),
|
|
3006
|
+
name: z14.string().min(1, "Name is required"),
|
|
3007
|
+
description: z14.string(),
|
|
3008
|
+
author: z14.string().optional(),
|
|
3009
|
+
authorUrl: z14.string().url("Author URL must be a valid URL").optional(),
|
|
3010
|
+
tags: z14.array(z14.string()).optional(),
|
|
3011
|
+
prerequisites: z14.array(z14.string()).optional()
|
|
3012
|
+
});
|
|
3013
|
+
var modeMarketplaceItemSchema = baseMarketplaceItemSchema.extend({
|
|
3014
|
+
content: z14.string().min(1)
|
|
3015
|
+
// YAML content for modes
|
|
3016
|
+
});
|
|
3017
|
+
var mcpMarketplaceItemSchema = baseMarketplaceItemSchema.extend({
|
|
3018
|
+
url: z14.string().url(),
|
|
3019
|
+
// Required url field
|
|
3020
|
+
content: z14.union([z14.string().min(1), z14.array(mcpInstallationMethodSchema)]),
|
|
3021
|
+
// Single config or array of methods
|
|
3022
|
+
parameters: z14.array(mcpParameterSchema).optional()
|
|
3023
|
+
});
|
|
3024
|
+
var marketplaceItemSchema = z14.discriminatedUnion("type", [
|
|
3025
|
+
// Mode marketplace item
|
|
3026
|
+
modeMarketplaceItemSchema.extend({
|
|
3027
|
+
type: z14.literal("mode")
|
|
3028
|
+
}),
|
|
3029
|
+
// MCP marketplace item
|
|
3030
|
+
mcpMarketplaceItemSchema.extend({
|
|
3031
|
+
type: z14.literal("mcp")
|
|
3032
|
+
})
|
|
3033
|
+
]);
|
|
3034
|
+
var installMarketplaceItemOptionsSchema = z14.object({
|
|
3035
|
+
target: z14.enum(["global", "project"]).optional().default("project"),
|
|
3036
|
+
parameters: z14.record(z14.string(), z14.any()).optional()
|
|
3037
|
+
});
|
|
3038
|
+
|
|
3039
|
+
// src/mcp.ts
|
|
3040
|
+
import { z as z15 } from "zod";
|
|
3041
|
+
var mcpExecutionStatusSchema = z15.discriminatedUnion("status", [
|
|
3042
|
+
z15.object({
|
|
3043
|
+
executionId: z15.string(),
|
|
3044
|
+
status: z15.literal("started"),
|
|
3045
|
+
serverName: z15.string(),
|
|
3046
|
+
toolName: z15.string()
|
|
3047
|
+
}),
|
|
3048
|
+
z15.object({
|
|
3049
|
+
executionId: z15.string(),
|
|
3050
|
+
status: z15.literal("output"),
|
|
3051
|
+
response: z15.string()
|
|
3052
|
+
}),
|
|
3053
|
+
z15.object({
|
|
3054
|
+
executionId: z15.string(),
|
|
3055
|
+
status: z15.literal("completed"),
|
|
3056
|
+
response: z15.string().optional()
|
|
3057
|
+
}),
|
|
3058
|
+
z15.object({
|
|
3059
|
+
executionId: z15.string(),
|
|
3060
|
+
status: z15.literal("error"),
|
|
3061
|
+
error: z15.string().optional()
|
|
3062
|
+
})
|
|
3063
|
+
]);
|
|
3064
|
+
|
|
3065
|
+
// src/terminal.ts
|
|
3066
|
+
import { z as z16 } from "zod";
|
|
3067
|
+
var commandExecutionStatusSchema = z16.discriminatedUnion("status", [
|
|
3068
|
+
z16.object({
|
|
3069
|
+
executionId: z16.string(),
|
|
3070
|
+
status: z16.literal("started"),
|
|
3071
|
+
pid: z16.number().optional(),
|
|
3072
|
+
command: z16.string()
|
|
3254
3073
|
}),
|
|
3255
|
-
|
|
3256
|
-
executionId:
|
|
3257
|
-
status:
|
|
3258
|
-
output:
|
|
3074
|
+
z16.object({
|
|
3075
|
+
executionId: z16.string(),
|
|
3076
|
+
status: z16.literal("output"),
|
|
3077
|
+
output: z16.string()
|
|
3259
3078
|
}),
|
|
3260
|
-
|
|
3261
|
-
executionId:
|
|
3262
|
-
status:
|
|
3263
|
-
exitCode:
|
|
3079
|
+
z16.object({
|
|
3080
|
+
executionId: z16.string(),
|
|
3081
|
+
status: z16.literal("exited"),
|
|
3082
|
+
exitCode: z16.number().optional()
|
|
3264
3083
|
}),
|
|
3265
|
-
|
|
3266
|
-
executionId:
|
|
3267
|
-
status:
|
|
3084
|
+
z16.object({
|
|
3085
|
+
executionId: z16.string(),
|
|
3086
|
+
status: z16.literal("fallback")
|
|
3268
3087
|
})
|
|
3269
3088
|
]);
|
|
3270
3089
|
export {
|
|
@@ -3342,19 +3161,26 @@ export {
|
|
|
3342
3161
|
groupEntrySchema,
|
|
3343
3162
|
groupOptionsSchema,
|
|
3344
3163
|
historyItemSchema,
|
|
3164
|
+
installMarketplaceItemOptionsSchema,
|
|
3345
3165
|
ipcMessageSchema,
|
|
3346
3166
|
isGlobalStateKey,
|
|
3347
3167
|
isLanguage,
|
|
3348
3168
|
isModelParameter,
|
|
3349
3169
|
isSecretStateKey,
|
|
3350
|
-
keysOf,
|
|
3351
3170
|
languages,
|
|
3352
3171
|
languagesSchema,
|
|
3353
3172
|
litellmDefaultModelId,
|
|
3354
3173
|
litellmDefaultModelInfo,
|
|
3174
|
+
marketplaceItemSchema,
|
|
3175
|
+
marketplaceItemTypeSchema,
|
|
3176
|
+
mcpExecutionStatusSchema,
|
|
3177
|
+
mcpInstallationMethodSchema,
|
|
3178
|
+
mcpMarketplaceItemSchema,
|
|
3179
|
+
mcpParameterSchema,
|
|
3355
3180
|
mistralDefaultModelId,
|
|
3356
3181
|
mistralModels,
|
|
3357
3182
|
modeConfigSchema,
|
|
3183
|
+
modeMarketplaceItemSchema,
|
|
3358
3184
|
modelInfoSchema,
|
|
3359
3185
|
modelParameters,
|
|
3360
3186
|
modelParametersSchema,
|