@roo-code/types 1.25.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.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,
@@ -873,6 +876,33 @@ var geminiModels = {
873
876
  }
874
877
  ]
875
878
  },
879
+ "gemini-2.5-pro-preview-06-05": {
880
+ maxTokens: 65535,
881
+ contextWindow: 1048576,
882
+ supportsImages: true,
883
+ supportsPromptCache: true,
884
+ inputPrice: 2.5,
885
+ // This is the pricing for prompts above 200k tokens.
886
+ outputPrice: 15,
887
+ cacheReadsPrice: 0.625,
888
+ cacheWritesPrice: 4.5,
889
+ maxThinkingTokens: 32768,
890
+ supportsReasoningBudget: true,
891
+ tiers: [
892
+ {
893
+ contextWindow: 2e5,
894
+ inputPrice: 1.25,
895
+ outputPrice: 10,
896
+ cacheReadsPrice: 0.31
897
+ },
898
+ {
899
+ contextWindow: Infinity,
900
+ inputPrice: 2.5,
901
+ outputPrice: 15,
902
+ cacheReadsPrice: 0.625
903
+ }
904
+ ]
905
+ },
876
906
  "gemini-2.0-flash-001": {
877
907
  maxTokens: 8192,
878
908
  contextWindow: 1048576,
@@ -1212,9 +1242,9 @@ var openAiNativeModels = {
1212
1242
  contextWindow: 2e5,
1213
1243
  supportsImages: true,
1214
1244
  supportsPromptCache: true,
1215
- inputPrice: 10,
1216
- outputPrice: 40,
1217
- cacheReadsPrice: 2.5,
1245
+ inputPrice: 2,
1246
+ outputPrice: 8,
1247
+ cacheReadsPrice: 0.5,
1218
1248
  supportsReasoningEffort: true,
1219
1249
  reasoningEffort: "medium"
1220
1250
  },
@@ -1223,9 +1253,9 @@ var openAiNativeModels = {
1223
1253
  contextWindow: 2e5,
1224
1254
  supportsImages: true,
1225
1255
  supportsPromptCache: true,
1226
- inputPrice: 10,
1227
- outputPrice: 40,
1228
- cacheReadsPrice: 2.5,
1256
+ inputPrice: 2,
1257
+ outputPrice: 8,
1258
+ cacheReadsPrice: 0.5,
1229
1259
  reasoningEffort: "high"
1230
1260
  },
1231
1261
  "o3-low": {
@@ -1233,9 +1263,9 @@ var openAiNativeModels = {
1233
1263
  contextWindow: 2e5,
1234
1264
  supportsImages: true,
1235
1265
  supportsPromptCache: true,
1236
- inputPrice: 10,
1237
- outputPrice: 40,
1238
- cacheReadsPrice: 2.5,
1266
+ inputPrice: 2,
1267
+ outputPrice: 8,
1268
+ cacheReadsPrice: 0.5,
1239
1269
  reasoningEffort: "low"
1240
1270
  },
1241
1271
  "o4-mini": {
@@ -1402,7 +1432,6 @@ var OPEN_ROUTER_PROMPT_CACHING_MODELS = /* @__PURE__ */ new Set([
1402
1432
  "anthropic/claude-3.7-sonnet:thinking",
1403
1433
  "anthropic/claude-sonnet-4",
1404
1434
  "anthropic/claude-opus-4",
1405
- "google/gemini-2.5-pro-preview",
1406
1435
  "google/gemini-2.5-flash-preview",
1407
1436
  "google/gemini-2.5-flash-preview:thinking",
1408
1437
  "google/gemini-2.5-flash-preview-05-20",
@@ -1420,15 +1449,18 @@ var OPEN_ROUTER_COMPUTER_USE_MODELS = /* @__PURE__ */ new Set([
1420
1449
  "anthropic/claude-sonnet-4",
1421
1450
  "anthropic/claude-opus-4"
1422
1451
  ]);
1452
+ var OPEN_ROUTER_REQUIRED_REASONING_BUDGET_MODELS = /* @__PURE__ */ new Set([
1453
+ "anthropic/claude-3.7-sonnet:thinking",
1454
+ "google/gemini-2.5-flash-preview-05-20:thinking"
1455
+ ]);
1423
1456
  var OPEN_ROUTER_REASONING_BUDGET_MODELS = /* @__PURE__ */ new Set([
1424
1457
  "anthropic/claude-3.7-sonnet:beta",
1425
- "anthropic/claude-3.7-sonnet:thinking",
1426
1458
  "anthropic/claude-opus-4",
1427
1459
  "anthropic/claude-sonnet-4",
1460
+ "google/gemini-2.5-pro-preview",
1428
1461
  "google/gemini-2.5-flash-preview-05-20",
1429
- "google/gemini-2.5-flash-preview-05-20:thinking"
1430
- ]);
1431
- var OPEN_ROUTER_REQUIRED_REASONING_BUDGET_MODELS = /* @__PURE__ */ new Set([
1462
+ // Also include the models that require the reasoning budget to be enabled
1463
+ // even though `OPEN_ROUTER_REQUIRED_REASONING_BUDGET_MODELS` takes precedence.
1432
1464
  "anthropic/claude-3.7-sonnet:thinking",
1433
1465
  "google/gemini-2.5-flash-preview-05-20:thinking"
1434
1466
  ]);
@@ -1518,6 +1550,16 @@ var vertexModels = {
1518
1550
  inputPrice: 2.5,
1519
1551
  outputPrice: 15
1520
1552
  },
1553
+ "gemini-2.5-pro-preview-06-05": {
1554
+ maxTokens: 65535,
1555
+ contextWindow: 1048576,
1556
+ supportsImages: true,
1557
+ supportsPromptCache: true,
1558
+ inputPrice: 2.5,
1559
+ outputPrice: 15,
1560
+ maxThinkingTokens: 32768,
1561
+ supportsReasoningBudget: true
1562
+ },
1521
1563
  "gemini-2.5-pro-exp-03-25": {
1522
1564
  maxTokens: 65535,
1523
1565
  contextWindow: 1048576,
@@ -1674,6 +1716,7 @@ var vertexModels = {
1674
1716
  }
1675
1717
  };
1676
1718
  var VERTEX_REGIONS = [
1719
+ { value: "global", label: "global" },
1677
1720
  { value: "us-east5", label: "us-east5" },
1678
1721
  { value: "us-central1", label: "us-central1" },
1679
1722
  { value: "europe-west1", label: "europe-west1" },
@@ -1833,153 +1876,69 @@ var vscodeLlmModels = {
1833
1876
  // src/providers/xai.ts
1834
1877
  var xaiDefaultModelId = "grok-3";
1835
1878
  var xaiModels = {
1836
- "grok-3-beta": {
1837
- maxTokens: 8192,
1838
- contextWindow: 131072,
1839
- supportsImages: false,
1840
- supportsPromptCache: false,
1841
- inputPrice: 3,
1842
- outputPrice: 15,
1843
- description: "xAI's Grok-3 beta model with 131K context window"
1844
- },
1845
- "grok-3-fast-beta": {
1846
- maxTokens: 8192,
1847
- contextWindow: 131072,
1848
- supportsImages: false,
1849
- supportsPromptCache: false,
1850
- inputPrice: 5,
1851
- outputPrice: 25,
1852
- description: "xAI's Grok-3 fast beta model with 131K context window"
1853
- },
1854
- "grok-3-mini-beta": {
1879
+ "grok-2-1212": {
1855
1880
  maxTokens: 8192,
1856
1881
  contextWindow: 131072,
1857
1882
  supportsImages: false,
1858
1883
  supportsPromptCache: false,
1859
- inputPrice: 0.3,
1860
- outputPrice: 0.5,
1861
- description: "xAI's Grok-3 mini beta model with 131K context window",
1862
- supportsReasoningEffort: true
1884
+ inputPrice: 2,
1885
+ outputPrice: 10,
1886
+ description: "xAI's Grok-2 model (version 1212) with 128K context window"
1863
1887
  },
1864
- "grok-3-mini-fast-beta": {
1888
+ "grok-2-vision-1212": {
1865
1889
  maxTokens: 8192,
1866
- contextWindow: 131072,
1867
- supportsImages: false,
1890
+ contextWindow: 32768,
1891
+ supportsImages: true,
1868
1892
  supportsPromptCache: false,
1869
- inputPrice: 0.6,
1870
- outputPrice: 4,
1871
- description: "xAI's Grok-3 mini fast beta model with 131K context window",
1872
- 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"
1873
1896
  },
1874
1897
  "grok-3": {
1875
1898
  maxTokens: 8192,
1876
1899
  contextWindow: 131072,
1877
1900
  supportsImages: false,
1878
- supportsPromptCache: false,
1901
+ supportsPromptCache: true,
1879
1902
  inputPrice: 3,
1880
1903
  outputPrice: 15,
1881
- description: "xAI's Grok-3 model with 131K context window"
1904
+ cacheWritesPrice: 0.75,
1905
+ cacheReadsPrice: 0.75,
1906
+ description: "xAI's Grok-3 model with 128K context window"
1882
1907
  },
1883
1908
  "grok-3-fast": {
1884
1909
  maxTokens: 8192,
1885
1910
  contextWindow: 131072,
1886
1911
  supportsImages: false,
1887
- supportsPromptCache: false,
1912
+ supportsPromptCache: true,
1888
1913
  inputPrice: 5,
1889
1914
  outputPrice: 25,
1890
- description: "xAI's Grok-3 fast model with 131K context window"
1915
+ cacheWritesPrice: 1.25,
1916
+ cacheReadsPrice: 1.25,
1917
+ description: "xAI's Grok-3 fast model with 128K context window"
1891
1918
  },
1892
1919
  "grok-3-mini": {
1893
1920
  maxTokens: 8192,
1894
1921
  contextWindow: 131072,
1895
1922
  supportsImages: false,
1896
- supportsPromptCache: false,
1923
+ supportsPromptCache: true,
1897
1924
  inputPrice: 0.3,
1898
1925
  outputPrice: 0.5,
1899
- description: "xAI's Grok-3 mini model with 131K context window",
1926
+ cacheWritesPrice: 0.07,
1927
+ cacheReadsPrice: 0.07,
1928
+ description: "xAI's Grok-3 mini model with 128K context window",
1900
1929
  supportsReasoningEffort: true
1901
1930
  },
1902
1931
  "grok-3-mini-fast": {
1903
1932
  maxTokens: 8192,
1904
1933
  contextWindow: 131072,
1905
1934
  supportsImages: false,
1906
- supportsPromptCache: false,
1935
+ supportsPromptCache: true,
1907
1936
  inputPrice: 0.6,
1908
1937
  outputPrice: 4,
1909
- description: "xAI's Grok-3 mini fast model with 131K context window",
1938
+ cacheWritesPrice: 0.15,
1939
+ cacheReadsPrice: 0.15,
1940
+ description: "xAI's Grok-3 mini fast model with 128K context window",
1910
1941
  supportsReasoningEffort: true
1911
- },
1912
- "grok-2-latest": {
1913
- maxTokens: 8192,
1914
- contextWindow: 131072,
1915
- supportsImages: false,
1916
- supportsPromptCache: false,
1917
- inputPrice: 2,
1918
- outputPrice: 10,
1919
- description: "xAI's Grok-2 model - latest version with 131K context window"
1920
- },
1921
- "grok-2": {
1922
- maxTokens: 8192,
1923
- contextWindow: 131072,
1924
- supportsImages: false,
1925
- supportsPromptCache: false,
1926
- inputPrice: 2,
1927
- outputPrice: 10,
1928
- description: "xAI's Grok-2 model with 131K context window"
1929
- },
1930
- "grok-2-1212": {
1931
- maxTokens: 8192,
1932
- contextWindow: 131072,
1933
- supportsImages: false,
1934
- supportsPromptCache: false,
1935
- inputPrice: 2,
1936
- outputPrice: 10,
1937
- description: "xAI's Grok-2 model (version 1212) with 131K context window"
1938
- },
1939
- "grok-2-vision-latest": {
1940
- maxTokens: 8192,
1941
- contextWindow: 32768,
1942
- supportsImages: true,
1943
- supportsPromptCache: false,
1944
- inputPrice: 2,
1945
- outputPrice: 10,
1946
- description: "xAI's Grok-2 Vision model - latest version with image support and 32K context window"
1947
- },
1948
- "grok-2-vision": {
1949
- maxTokens: 8192,
1950
- contextWindow: 32768,
1951
- supportsImages: true,
1952
- supportsPromptCache: false,
1953
- inputPrice: 2,
1954
- outputPrice: 10,
1955
- description: "xAI's Grok-2 Vision model with image support and 32K context window"
1956
- },
1957
- "grok-2-vision-1212": {
1958
- maxTokens: 8192,
1959
- contextWindow: 32768,
1960
- supportsImages: true,
1961
- supportsPromptCache: false,
1962
- inputPrice: 2,
1963
- outputPrice: 10,
1964
- description: "xAI's Grok-2 Vision model (version 1212) with image support and 32K context window"
1965
- },
1966
- "grok-vision-beta": {
1967
- maxTokens: 8192,
1968
- contextWindow: 8192,
1969
- supportsImages: true,
1970
- supportsPromptCache: false,
1971
- inputPrice: 5,
1972
- outputPrice: 15,
1973
- description: "xAI's Grok Vision Beta model with image support and 8K context window"
1974
- },
1975
- "grok-beta": {
1976
- maxTokens: 8192,
1977
- contextWindow: 131072,
1978
- supportsImages: false,
1979
- supportsPromptCache: false,
1980
- inputPrice: 5,
1981
- outputPrice: 15,
1982
- description: "xAI's Grok Beta model (legacy) with 131K context window"
1983
1942
  }
1984
1943
  };
1985
1944
 
@@ -1988,17 +1947,21 @@ import { z } from "zod";
1988
1947
  var codebaseIndexConfigSchema = z.object({
1989
1948
  codebaseIndexEnabled: z.boolean().optional(),
1990
1949
  codebaseIndexQdrantUrl: z.string().optional(),
1991
- codebaseIndexEmbedderProvider: z.enum(["openai", "ollama"]).optional(),
1950
+ codebaseIndexEmbedderProvider: z.enum(["openai", "ollama", "openai-compatible"]).optional(),
1992
1951
  codebaseIndexEmbedderBaseUrl: z.string().optional(),
1993
1952
  codebaseIndexEmbedderModelId: z.string().optional()
1994
1953
  });
1995
1954
  var codebaseIndexModelsSchema = z.object({
1996
1955
  openai: z.record(z.string(), z.object({ dimension: z.number() })).optional(),
1997
- ollama: z.record(z.string(), z.object({ dimension: z.number() })).optional()
1956
+ ollama: z.record(z.string(), z.object({ dimension: z.number() })).optional(),
1957
+ "openai-compatible": z.record(z.string(), z.object({ dimension: z.number() })).optional()
1998
1958
  });
1999
1959
  var codebaseIndexProviderSchema = z.object({
2000
1960
  codeIndexOpenAiKey: z.string().optional(),
2001
- codeIndexQdrantApiKey: z.string().optional()
1961
+ codeIndexQdrantApiKey: z.string().optional(),
1962
+ codebaseIndexOpenAiCompatibleBaseUrl: z.string().optional(),
1963
+ codebaseIndexOpenAiCompatibleApiKey: z.string().optional(),
1964
+ codebaseIndexOpenAiCompatibleModelDimension: z.number().optional()
2002
1965
  });
2003
1966
 
2004
1967
  // src/cloud.ts
@@ -2007,11 +1970,6 @@ import { z as z12 } from "zod";
2007
1970
  // src/global-settings.ts
2008
1971
  import { z as z11 } from "zod";
2009
1972
 
2010
- // src/type-fu.ts
2011
- function keysOf() {
2012
- return (keys) => keys;
2013
- }
2014
-
2015
1973
  // src/provider-settings.ts
2016
1974
  import { z as z3 } from "zod";
2017
1975
 
@@ -2260,107 +2218,23 @@ var providerSettingsSchema = z3.object({
2260
2218
  ...litellmSchema.shape,
2261
2219
  ...codebaseIndexProviderSchema.shape
2262
2220
  });
2263
- var PROVIDER_SETTINGS_KEYS = keysOf()([
2264
- "apiProvider",
2265
- // Anthropic
2221
+ var PROVIDER_SETTINGS_KEYS = providerSettingsSchema.keyof().options;
2222
+ var MODEL_ID_KEYS = [
2266
2223
  "apiModelId",
2267
- "apiKey",
2268
- "anthropicBaseUrl",
2269
- "anthropicUseAuthToken",
2270
- // Glama
2271
2224
  "glamaModelId",
2272
- "glamaApiKey",
2273
- // OpenRouter
2274
- "openRouterApiKey",
2275
2225
  "openRouterModelId",
2276
- "openRouterBaseUrl",
2277
- "openRouterSpecificProvider",
2278
- "openRouterUseMiddleOutTransform",
2279
- // Amazon Bedrock
2280
- "awsAccessKey",
2281
- "awsSecretKey",
2282
- "awsSessionToken",
2283
- "awsRegion",
2284
- "awsUseCrossRegionInference",
2285
- "awsUsePromptCache",
2286
- "awsProfile",
2287
- "awsUseProfile",
2288
- "awsCustomArn",
2289
- "awsModelContextWindow",
2290
- "awsBedrockEndpointEnabled",
2291
- "awsBedrockEndpoint",
2292
- // Google Vertex
2293
- "vertexKeyFile",
2294
- "vertexJsonCredentials",
2295
- "vertexProjectId",
2296
- "vertexRegion",
2297
- // OpenAI
2298
- "openAiBaseUrl",
2299
- "openAiApiKey",
2300
- "openAiLegacyFormat",
2301
- "openAiR1FormatEnabled",
2302
2226
  "openAiModelId",
2303
- "openAiCustomModelInfo",
2304
- "openAiUseAzure",
2305
- "azureApiVersion",
2306
- "openAiStreamingEnabled",
2307
- "openAiHostHeader",
2308
- // Keep temporarily for backward compatibility during migration.
2309
- "openAiHeaders",
2310
- // Ollama
2311
2227
  "ollamaModelId",
2312
- "ollamaBaseUrl",
2313
- // VS Code LM
2314
- "vsCodeLmModelSelector",
2315
2228
  "lmStudioModelId",
2316
- "lmStudioBaseUrl",
2317
2229
  "lmStudioDraftModelId",
2318
- "lmStudioSpeculativeDecodingEnabled",
2319
- // Gemini
2320
- "geminiApiKey",
2321
- "googleGeminiBaseUrl",
2322
- // OpenAI Native
2323
- "openAiNativeApiKey",
2324
- "openAiNativeBaseUrl",
2325
- // Mistral
2326
- "mistralApiKey",
2327
- "mistralCodestralUrl",
2328
- // DeepSeek
2329
- "deepSeekBaseUrl",
2330
- "deepSeekApiKey",
2331
- // Unbound
2332
- "unboundApiKey",
2333
2230
  "unboundModelId",
2334
- // Requesty
2335
- "requestyApiKey",
2336
2231
  "requestyModelId",
2337
- // Code Index
2338
- "codeIndexOpenAiKey",
2339
- "codeIndexQdrantApiKey",
2340
- // Reasoning
2341
- "enableReasoningEffort",
2342
- "reasoningEffort",
2343
- "modelMaxTokens",
2344
- "modelMaxThinkingTokens",
2345
- // Generic
2346
- "includeMaxTokens",
2347
- "diffEnabled",
2348
- "fuzzyMatchThreshold",
2349
- "modelTemperature",
2350
- "rateLimitSeconds",
2351
- // Fake AI
2352
- "fakeAi",
2353
- // X.AI (Grok)
2354
- "xaiApiKey",
2355
- // Groq
2356
- "groqApiKey",
2357
- // Chutes AI
2358
- "chutesApiKey",
2359
- // LiteLLM
2360
- "litellmBaseUrl",
2361
- "litellmApiKey",
2362
2232
  "litellmModelId"
2363
- ]);
2233
+ ];
2234
+ var getModelId = (settings) => {
2235
+ const modelIdKey = MODEL_ID_KEYS.find((key) => settings[key]);
2236
+ return modelIdKey ? settings[modelIdKey] : void 0;
2237
+ };
2364
2238
 
2365
2239
  // src/history.ts
2366
2240
  import { z as z4 } from "zod";
@@ -2380,11 +2254,13 @@ var historyItemSchema = z4.object({
2380
2254
 
2381
2255
  // src/experiment.ts
2382
2256
  import { z as z5 } from "zod";
2383
- var experimentIds = ["powerSteering", "concurrentFileReads"];
2257
+ var experimentIds = ["powerSteering", "disableCompletionCommand", "marketplace", "multiFileApplyDiff"];
2384
2258
  var experimentIdsSchema = z5.enum(experimentIds);
2385
2259
  var experimentsSchema = z5.object({
2386
- powerSteering: z5.boolean(),
2387
- concurrentFileReads: z5.boolean()
2260
+ powerSteering: z5.boolean().optional(),
2261
+ disableCompletionCommand: z5.boolean().optional(),
2262
+ marketplace: z5.boolean().optional(),
2263
+ multiFileApplyDiff: z5.boolean().optional()
2388
2264
  });
2389
2265
 
2390
2266
  // src/telemetry.ts
@@ -2456,7 +2332,8 @@ var clineMessageSchema = z6.object({
2456
2332
  conversationHistoryIndex: z6.number().optional(),
2457
2333
  checkpoint: z6.record(z6.string(), z6.unknown()).optional(),
2458
2334
  progressStatus: toolProgressStatusSchema.optional(),
2459
- contextCondense: contextCondenseSchema.optional()
2335
+ contextCondense: contextCondenseSchema.optional(),
2336
+ isProtected: z6.boolean().optional()
2460
2337
  });
2461
2338
  var tokenUsageSchema = z6.object({
2462
2339
  totalTokensIn: z6.number(),
@@ -2488,6 +2365,10 @@ var TelemetryEventName = /* @__PURE__ */ ((TelemetryEventName2) => {
2488
2365
  TelemetryEventName2["PROMPT_ENHANCED"] = "Prompt Enhanced";
2489
2366
  TelemetryEventName2["TITLE_BUTTON_CLICKED"] = "Title Button Clicked";
2490
2367
  TelemetryEventName2["AUTHENTICATION_INITIATED"] = "Authentication Initiated";
2368
+ TelemetryEventName2["MARKETPLACE_ITEM_INSTALLED"] = "Marketplace Item Installed";
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";
2491
2372
  TelemetryEventName2["SCHEMA_VALIDATION_ERROR"] = "Schema Validation Error";
2492
2373
  TelemetryEventName2["DIFF_APPLICATION_ERROR"] = "Diff Application Error";
2493
2374
  TelemetryEventName2["SHELL_INTEGRATION_ERROR"] = "Shell Integration Error";
@@ -2530,6 +2411,8 @@ var rooCodeTelemetryEventSchema = z7.discriminatedUnion("type", [
2530
2411
  "Prompt Enhanced" /* PROMPT_ENHANCED */,
2531
2412
  "Title Button Clicked" /* TITLE_BUTTON_CLICKED */,
2532
2413
  "Authentication Initiated" /* AUTHENTICATION_INITIATED */,
2414
+ "Marketplace Item Installed" /* MARKETPLACE_ITEM_INSTALLED */,
2415
+ "Marketplace Item Removed" /* MARKETPLACE_ITEM_REMOVED */,
2533
2416
  "Schema Validation Error" /* SCHEMA_VALIDATION_ERROR */,
2534
2417
  "Diff Application Error" /* DIFF_APPLICATION_ERROR */,
2535
2418
  "Shell Integration Error" /* SHELL_INTEGRATION_ERROR */,
@@ -2673,6 +2556,7 @@ var commandIds = [
2673
2556
  "promptsButtonClicked",
2674
2557
  "mcpButtonClicked",
2675
2558
  "historyButtonClicked",
2559
+ "marketplaceButtonClicked",
2676
2560
  "popoutButtonClicked",
2677
2561
  "accountButtonClicked",
2678
2562
  "settingsButtonClicked",
@@ -2693,6 +2577,7 @@ var languages = [
2693
2577
  "es",
2694
2578
  "fr",
2695
2579
  "hi",
2580
+ "id",
2696
2581
  "it",
2697
2582
  "ja",
2698
2583
  "ko",
@@ -2723,6 +2608,7 @@ var globalSettingsSchema = z11.object({
2723
2608
  alwaysAllowReadOnlyOutsideWorkspace: z11.boolean().optional(),
2724
2609
  alwaysAllowWrite: z11.boolean().optional(),
2725
2610
  alwaysAllowWriteOutsideWorkspace: z11.boolean().optional(),
2611
+ alwaysAllowWriteProtected: z11.boolean().optional(),
2726
2612
  writeDelayMs: z11.number().optional(),
2727
2613
  alwaysAllowBrowser: z11.boolean().optional(),
2728
2614
  alwaysApproveResubmit: z11.boolean().optional(),
@@ -2779,78 +2665,9 @@ var globalSettingsSchema = z11.object({
2779
2665
  enhancementApiConfigId: z11.string().optional(),
2780
2666
  historyPreviewCollapsed: z11.boolean().optional()
2781
2667
  });
2782
- var GLOBAL_SETTINGS_KEYS = keysOf()([
2783
- "currentApiConfigName",
2784
- "listApiConfigMeta",
2785
- "pinnedApiConfigs",
2786
- "lastShownAnnouncementId",
2787
- "customInstructions",
2788
- "taskHistory",
2789
- "condensingApiConfigId",
2790
- "customCondensingPrompt",
2791
- "autoApprovalEnabled",
2792
- "alwaysAllowReadOnly",
2793
- "alwaysAllowReadOnlyOutsideWorkspace",
2794
- "alwaysAllowWrite",
2795
- "alwaysAllowWriteOutsideWorkspace",
2796
- "writeDelayMs",
2797
- "alwaysAllowBrowser",
2798
- "alwaysApproveResubmit",
2799
- "requestDelaySeconds",
2800
- "alwaysAllowMcp",
2801
- "alwaysAllowModeSwitch",
2802
- "alwaysAllowSubtasks",
2803
- "alwaysAllowExecute",
2804
- "allowedCommands",
2805
- "allowedMaxRequests",
2806
- "autoCondenseContext",
2807
- "autoCondenseContextPercent",
2808
- "maxConcurrentFileReads",
2809
- "browserToolEnabled",
2810
- "browserViewportSize",
2811
- "screenshotQuality",
2812
- "remoteBrowserEnabled",
2813
- "remoteBrowserHost",
2814
- "enableCheckpoints",
2815
- "ttsEnabled",
2816
- "ttsSpeed",
2817
- "soundEnabled",
2818
- "soundVolume",
2819
- "maxOpenTabsContext",
2820
- "maxWorkspaceFiles",
2821
- "showRooIgnoredFiles",
2822
- "maxReadFileLine",
2823
- "terminalOutputLineLimit",
2824
- "terminalShellIntegrationTimeout",
2825
- "terminalShellIntegrationDisabled",
2826
- "terminalCommandDelay",
2827
- "terminalPowershellCounter",
2828
- "terminalZshClearEolMark",
2829
- "terminalZshOhMy",
2830
- "terminalZshP10k",
2831
- "terminalZdotdir",
2832
- "terminalCompressProgressBar",
2833
- "rateLimitSeconds",
2834
- "diffEnabled",
2835
- "fuzzyMatchThreshold",
2836
- "experiments",
2837
- "codebaseIndexModels",
2838
- "codebaseIndexConfig",
2839
- "language",
2840
- "telemetrySetting",
2841
- "mcpEnabled",
2842
- "enableMcpServerCreation",
2843
- "mode",
2844
- "modeApiConfigs",
2845
- "customModes",
2846
- "customModePrompts",
2847
- "customSupportPrompts",
2848
- "enhancementApiConfigId",
2849
- "cachedChromeHostUrl",
2850
- "historyPreviewCollapsed"
2851
- ]);
2668
+ var GLOBAL_SETTINGS_KEYS = globalSettingsSchema.keyof().options;
2852
2669
  var rooCodeSettingsSchema = providerSettingsSchema.merge(globalSettingsSchema);
2853
- var SECRET_STATE_KEYS = keysOf()([
2670
+ var SECRET_STATE_KEYS = [
2854
2671
  "apiKey",
2855
2672
  "glamaApiKey",
2856
2673
  "openRouterApiKey",
@@ -2869,13 +2686,68 @@ var SECRET_STATE_KEYS = keysOf()([
2869
2686
  "chutesApiKey",
2870
2687
  "litellmApiKey",
2871
2688
  "codeIndexOpenAiKey",
2872
- "codeIndexQdrantApiKey"
2873
- ]);
2689
+ "codeIndexQdrantApiKey",
2690
+ "codebaseIndexOpenAiCompatibleApiKey"
2691
+ ];
2874
2692
  var isSecretStateKey = (key) => SECRET_STATE_KEYS.includes(key);
2875
2693
  var GLOBAL_STATE_KEYS = [...GLOBAL_SETTINGS_KEYS, ...PROVIDER_SETTINGS_KEYS].filter(
2876
2694
  (key) => !SECRET_STATE_KEYS.includes(key)
2877
2695
  );
2878
2696
  var isGlobalStateKey = (key) => GLOBAL_STATE_KEYS.includes(key);
2697
+ var EVALS_SETTINGS = {
2698
+ apiProvider: "openrouter",
2699
+ openRouterUseMiddleOutTransform: false,
2700
+ lastShownAnnouncementId: "may-29-2025-3-19",
2701
+ pinnedApiConfigs: {},
2702
+ autoApprovalEnabled: true,
2703
+ alwaysAllowReadOnly: true,
2704
+ alwaysAllowReadOnlyOutsideWorkspace: false,
2705
+ alwaysAllowWrite: true,
2706
+ alwaysAllowWriteOutsideWorkspace: false,
2707
+ alwaysAllowWriteProtected: false,
2708
+ writeDelayMs: 1e3,
2709
+ alwaysAllowBrowser: true,
2710
+ alwaysApproveResubmit: true,
2711
+ requestDelaySeconds: 10,
2712
+ alwaysAllowMcp: true,
2713
+ alwaysAllowModeSwitch: true,
2714
+ alwaysAllowSubtasks: true,
2715
+ alwaysAllowExecute: true,
2716
+ allowedCommands: ["*"],
2717
+ browserToolEnabled: false,
2718
+ browserViewportSize: "900x600",
2719
+ screenshotQuality: 75,
2720
+ remoteBrowserEnabled: false,
2721
+ ttsEnabled: false,
2722
+ ttsSpeed: 1,
2723
+ soundEnabled: false,
2724
+ soundVolume: 0.5,
2725
+ terminalOutputLineLimit: 500,
2726
+ terminalShellIntegrationTimeout: 3e4,
2727
+ terminalCommandDelay: 0,
2728
+ terminalPowershellCounter: false,
2729
+ terminalZshOhMy: true,
2730
+ terminalZshClearEolMark: true,
2731
+ terminalZshP10k: false,
2732
+ terminalZdotdir: true,
2733
+ terminalCompressProgressBar: true,
2734
+ terminalShellIntegrationDisabled: true,
2735
+ diffEnabled: true,
2736
+ fuzzyMatchThreshold: 1,
2737
+ enableCheckpoints: false,
2738
+ rateLimitSeconds: 0,
2739
+ maxOpenTabsContext: 20,
2740
+ maxWorkspaceFiles: 200,
2741
+ showRooIgnoredFiles: true,
2742
+ maxReadFileLine: -1,
2743
+ // -1 to enable full file reading.
2744
+ language: "en",
2745
+ telemetrySetting: "enabled",
2746
+ mcpEnabled: false,
2747
+ mode: "code",
2748
+ customModes: []
2749
+ };
2750
+ var EVALS_TIMEOUT = 5 * 60 * 1e3;
2879
2751
 
2880
2752
  // src/cloud.ts
2881
2753
  var organizationAllowListSchema = z12.object({
@@ -2934,6 +2806,11 @@ var ORGANIZATION_DEFAULT = {
2934
2806
  defaultSettings: {},
2935
2807
  allowList: ORGANIZATION_ALLOW_ALL
2936
2808
  };
2809
+ var shareResponseSchema = z12.object({
2810
+ success: z12.boolean(),
2811
+ shareUrl: z12.string().optional(),
2812
+ error: z12.string().optional()
2813
+ });
2937
2814
 
2938
2815
  // src/ipc.ts
2939
2816
  import { z as z13 } from "zod";
@@ -3109,28 +2986,104 @@ var ipcMessageSchema = z13.discriminatedUnion("type", [
3109
2986
  })
3110
2987
  ]);
3111
2988
 
3112
- // src/terminal.ts
2989
+ // src/marketplace.ts
3113
2990
  import { z as z14 } from "zod";
3114
- var commandExecutionStatusSchema = z14.discriminatedUnion("status", [
3115
- z14.object({
3116
- executionId: z14.string(),
3117
- status: z14.literal("started"),
3118
- pid: z14.number().optional(),
3119
- command: z14.string()
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()
3120
3073
  }),
3121
- z14.object({
3122
- executionId: z14.string(),
3123
- status: z14.literal("output"),
3124
- output: z14.string()
3074
+ z16.object({
3075
+ executionId: z16.string(),
3076
+ status: z16.literal("output"),
3077
+ output: z16.string()
3125
3078
  }),
3126
- z14.object({
3127
- executionId: z14.string(),
3128
- status: z14.literal("exited"),
3129
- exitCode: z14.number().optional()
3079
+ z16.object({
3080
+ executionId: z16.string(),
3081
+ status: z16.literal("exited"),
3082
+ exitCode: z16.number().optional()
3130
3083
  }),
3131
- z14.object({
3132
- executionId: z14.string(),
3133
- status: z14.literal("fallback")
3084
+ z16.object({
3085
+ executionId: z16.string(),
3086
+ status: z16.literal("fallback")
3134
3087
  })
3135
3088
  ]);
3136
3089
  export {
@@ -3141,6 +3094,8 @@ export {
3141
3094
  BEDROCK_REGIONS,
3142
3095
  BEDROCK_REGION_INFO,
3143
3096
  DEEP_SEEK_DEFAULT_TEMPERATURE,
3097
+ EVALS_SETTINGS,
3098
+ EVALS_TIMEOUT,
3144
3099
  GLAMA_DEFAULT_TEMPERATURE,
3145
3100
  GLOBAL_SETTINGS_KEYS,
3146
3101
  GLOBAL_STATE_KEYS,
@@ -3149,6 +3104,7 @@ export {
3149
3104
  LITELLM_COMPUTER_USE_MODELS,
3150
3105
  LMSTUDIO_DEFAULT_TEMPERATURE,
3151
3106
  MISTRAL_DEFAULT_TEMPERATURE,
3107
+ MODEL_ID_KEYS,
3152
3108
  OPENAI_AZURE_AI_INFERENCE_PATH,
3153
3109
  OPENAI_NATIVE_DEFAULT_TEMPERATURE,
3154
3110
  OPENROUTER_DEFAULT_PROVIDER_NAME,
@@ -3196,6 +3152,7 @@ export {
3196
3152
  experimentsSchema,
3197
3153
  geminiDefaultModelId,
3198
3154
  geminiModels,
3155
+ getModelId,
3199
3156
  glamaDefaultModelId,
3200
3157
  glamaDefaultModelInfo,
3201
3158
  globalSettingsSchema,
@@ -3204,19 +3161,26 @@ export {
3204
3161
  groupEntrySchema,
3205
3162
  groupOptionsSchema,
3206
3163
  historyItemSchema,
3164
+ installMarketplaceItemOptionsSchema,
3207
3165
  ipcMessageSchema,
3208
3166
  isGlobalStateKey,
3209
3167
  isLanguage,
3210
3168
  isModelParameter,
3211
3169
  isSecretStateKey,
3212
- keysOf,
3213
3170
  languages,
3214
3171
  languagesSchema,
3215
3172
  litellmDefaultModelId,
3216
3173
  litellmDefaultModelInfo,
3174
+ marketplaceItemSchema,
3175
+ marketplaceItemTypeSchema,
3176
+ mcpExecutionStatusSchema,
3177
+ mcpInstallationMethodSchema,
3178
+ mcpMarketplaceItemSchema,
3179
+ mcpParameterSchema,
3217
3180
  mistralDefaultModelId,
3218
3181
  mistralModels,
3219
3182
  modeConfigSchema,
3183
+ modeMarketplaceItemSchema,
3220
3184
  modelInfoSchema,
3221
3185
  modelParameters,
3222
3186
  modelParametersSchema,
@@ -3242,6 +3206,7 @@ export {
3242
3206
  rooCodeEventsSchema,
3243
3207
  rooCodeSettingsSchema,
3244
3208
  rooCodeTelemetryEventSchema,
3209
+ shareResponseSchema,
3245
3210
  taskCommandSchema,
3246
3211
  taskEventSchema,
3247
3212
  taskPropertiesSchema,