@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.cjs CHANGED
@@ -27,6 +27,8 @@ __export(index_exports, {
27
27
  BEDROCK_REGIONS: () => BEDROCK_REGIONS,
28
28
  BEDROCK_REGION_INFO: () => BEDROCK_REGION_INFO,
29
29
  DEEP_SEEK_DEFAULT_TEMPERATURE: () => DEEP_SEEK_DEFAULT_TEMPERATURE,
30
+ EVALS_SETTINGS: () => EVALS_SETTINGS,
31
+ EVALS_TIMEOUT: () => EVALS_TIMEOUT,
30
32
  GLAMA_DEFAULT_TEMPERATURE: () => GLAMA_DEFAULT_TEMPERATURE,
31
33
  GLOBAL_SETTINGS_KEYS: () => GLOBAL_SETTINGS_KEYS,
32
34
  GLOBAL_STATE_KEYS: () => GLOBAL_STATE_KEYS,
@@ -35,6 +37,7 @@ __export(index_exports, {
35
37
  LITELLM_COMPUTER_USE_MODELS: () => LITELLM_COMPUTER_USE_MODELS,
36
38
  LMSTUDIO_DEFAULT_TEMPERATURE: () => LMSTUDIO_DEFAULT_TEMPERATURE,
37
39
  MISTRAL_DEFAULT_TEMPERATURE: () => MISTRAL_DEFAULT_TEMPERATURE,
40
+ MODEL_ID_KEYS: () => MODEL_ID_KEYS,
38
41
  OPENAI_AZURE_AI_INFERENCE_PATH: () => OPENAI_AZURE_AI_INFERENCE_PATH,
39
42
  OPENAI_NATIVE_DEFAULT_TEMPERATURE: () => OPENAI_NATIVE_DEFAULT_TEMPERATURE,
40
43
  OPENROUTER_DEFAULT_PROVIDER_NAME: () => OPENROUTER_DEFAULT_PROVIDER_NAME,
@@ -82,6 +85,7 @@ __export(index_exports, {
82
85
  experimentsSchema: () => experimentsSchema,
83
86
  geminiDefaultModelId: () => geminiDefaultModelId,
84
87
  geminiModels: () => geminiModels,
88
+ getModelId: () => getModelId,
85
89
  glamaDefaultModelId: () => glamaDefaultModelId,
86
90
  glamaDefaultModelInfo: () => glamaDefaultModelInfo,
87
91
  globalSettingsSchema: () => globalSettingsSchema,
@@ -90,19 +94,26 @@ __export(index_exports, {
90
94
  groupEntrySchema: () => groupEntrySchema,
91
95
  groupOptionsSchema: () => groupOptionsSchema,
92
96
  historyItemSchema: () => historyItemSchema,
97
+ installMarketplaceItemOptionsSchema: () => installMarketplaceItemOptionsSchema,
93
98
  ipcMessageSchema: () => ipcMessageSchema,
94
99
  isGlobalStateKey: () => isGlobalStateKey,
95
100
  isLanguage: () => isLanguage,
96
101
  isModelParameter: () => isModelParameter,
97
102
  isSecretStateKey: () => isSecretStateKey,
98
- keysOf: () => keysOf,
99
103
  languages: () => languages,
100
104
  languagesSchema: () => languagesSchema,
101
105
  litellmDefaultModelId: () => litellmDefaultModelId,
102
106
  litellmDefaultModelInfo: () => litellmDefaultModelInfo,
107
+ marketplaceItemSchema: () => marketplaceItemSchema,
108
+ marketplaceItemTypeSchema: () => marketplaceItemTypeSchema,
109
+ mcpExecutionStatusSchema: () => mcpExecutionStatusSchema,
110
+ mcpInstallationMethodSchema: () => mcpInstallationMethodSchema,
111
+ mcpMarketplaceItemSchema: () => mcpMarketplaceItemSchema,
112
+ mcpParameterSchema: () => mcpParameterSchema,
103
113
  mistralDefaultModelId: () => mistralDefaultModelId,
104
114
  mistralModels: () => mistralModels,
105
115
  modeConfigSchema: () => modeConfigSchema,
116
+ modeMarketplaceItemSchema: () => modeMarketplaceItemSchema,
106
117
  modelInfoSchema: () => modelInfoSchema,
107
118
  modelParameters: () => modelParameters,
108
119
  modelParametersSchema: () => modelParametersSchema,
@@ -128,6 +139,7 @@ __export(index_exports, {
128
139
  rooCodeEventsSchema: () => rooCodeEventsSchema,
129
140
  rooCodeSettingsSchema: () => rooCodeSettingsSchema,
130
141
  rooCodeTelemetryEventSchema: () => rooCodeTelemetryEventSchema,
142
+ shareResponseSchema: () => shareResponseSchema,
131
143
  taskCommandSchema: () => taskCommandSchema,
132
144
  taskEventSchema: () => taskEventSchema,
133
145
  taskPropertiesSchema: () => taskPropertiesSchema,
@@ -344,6 +356,7 @@ var bedrockModels = {
344
356
  supportsImages: true,
345
357
  supportsComputerUse: true,
346
358
  supportsPromptCache: true,
359
+ supportsReasoningBudget: true,
347
360
  inputPrice: 3,
348
361
  outputPrice: 15,
349
362
  cacheWritesPrice: 3.75,
@@ -358,6 +371,7 @@ var bedrockModels = {
358
371
  supportsImages: true,
359
372
  supportsComputerUse: true,
360
373
  supportsPromptCache: true,
374
+ supportsReasoningBudget: true,
361
375
  inputPrice: 15,
362
376
  outputPrice: 75,
363
377
  cacheWritesPrice: 18.75,
@@ -372,6 +386,7 @@ var bedrockModels = {
372
386
  supportsImages: true,
373
387
  supportsComputerUse: true,
374
388
  supportsPromptCache: true,
389
+ supportsReasoningBudget: true,
375
390
  inputPrice: 3,
376
391
  outputPrice: 15,
377
392
  cacheWritesPrice: 3.75,
@@ -1028,6 +1043,33 @@ var geminiModels = {
1028
1043
  }
1029
1044
  ]
1030
1045
  },
1046
+ "gemini-2.5-pro-preview-06-05": {
1047
+ maxTokens: 65535,
1048
+ contextWindow: 1048576,
1049
+ supportsImages: true,
1050
+ supportsPromptCache: true,
1051
+ inputPrice: 2.5,
1052
+ // This is the pricing for prompts above 200k tokens.
1053
+ outputPrice: 15,
1054
+ cacheReadsPrice: 0.625,
1055
+ cacheWritesPrice: 4.5,
1056
+ maxThinkingTokens: 32768,
1057
+ supportsReasoningBudget: true,
1058
+ tiers: [
1059
+ {
1060
+ contextWindow: 2e5,
1061
+ inputPrice: 1.25,
1062
+ outputPrice: 10,
1063
+ cacheReadsPrice: 0.31
1064
+ },
1065
+ {
1066
+ contextWindow: Infinity,
1067
+ inputPrice: 2.5,
1068
+ outputPrice: 15,
1069
+ cacheReadsPrice: 0.625
1070
+ }
1071
+ ]
1072
+ },
1031
1073
  "gemini-2.0-flash-001": {
1032
1074
  maxTokens: 8192,
1033
1075
  contextWindow: 1048576,
@@ -1367,9 +1409,9 @@ var openAiNativeModels = {
1367
1409
  contextWindow: 2e5,
1368
1410
  supportsImages: true,
1369
1411
  supportsPromptCache: true,
1370
- inputPrice: 10,
1371
- outputPrice: 40,
1372
- cacheReadsPrice: 2.5,
1412
+ inputPrice: 2,
1413
+ outputPrice: 8,
1414
+ cacheReadsPrice: 0.5,
1373
1415
  supportsReasoningEffort: true,
1374
1416
  reasoningEffort: "medium"
1375
1417
  },
@@ -1378,9 +1420,9 @@ var openAiNativeModels = {
1378
1420
  contextWindow: 2e5,
1379
1421
  supportsImages: true,
1380
1422
  supportsPromptCache: true,
1381
- inputPrice: 10,
1382
- outputPrice: 40,
1383
- cacheReadsPrice: 2.5,
1423
+ inputPrice: 2,
1424
+ outputPrice: 8,
1425
+ cacheReadsPrice: 0.5,
1384
1426
  reasoningEffort: "high"
1385
1427
  },
1386
1428
  "o3-low": {
@@ -1388,9 +1430,9 @@ var openAiNativeModels = {
1388
1430
  contextWindow: 2e5,
1389
1431
  supportsImages: true,
1390
1432
  supportsPromptCache: true,
1391
- inputPrice: 10,
1392
- outputPrice: 40,
1393
- cacheReadsPrice: 2.5,
1433
+ inputPrice: 2,
1434
+ outputPrice: 8,
1435
+ cacheReadsPrice: 0.5,
1394
1436
  reasoningEffort: "low"
1395
1437
  },
1396
1438
  "o4-mini": {
@@ -1557,7 +1599,6 @@ var OPEN_ROUTER_PROMPT_CACHING_MODELS = /* @__PURE__ */ new Set([
1557
1599
  "anthropic/claude-3.7-sonnet:thinking",
1558
1600
  "anthropic/claude-sonnet-4",
1559
1601
  "anthropic/claude-opus-4",
1560
- "google/gemini-2.5-pro-preview",
1561
1602
  "google/gemini-2.5-flash-preview",
1562
1603
  "google/gemini-2.5-flash-preview:thinking",
1563
1604
  "google/gemini-2.5-flash-preview-05-20",
@@ -1575,15 +1616,18 @@ var OPEN_ROUTER_COMPUTER_USE_MODELS = /* @__PURE__ */ new Set([
1575
1616
  "anthropic/claude-sonnet-4",
1576
1617
  "anthropic/claude-opus-4"
1577
1618
  ]);
1619
+ var OPEN_ROUTER_REQUIRED_REASONING_BUDGET_MODELS = /* @__PURE__ */ new Set([
1620
+ "anthropic/claude-3.7-sonnet:thinking",
1621
+ "google/gemini-2.5-flash-preview-05-20:thinking"
1622
+ ]);
1578
1623
  var OPEN_ROUTER_REASONING_BUDGET_MODELS = /* @__PURE__ */ new Set([
1579
1624
  "anthropic/claude-3.7-sonnet:beta",
1580
- "anthropic/claude-3.7-sonnet:thinking",
1581
1625
  "anthropic/claude-opus-4",
1582
1626
  "anthropic/claude-sonnet-4",
1627
+ "google/gemini-2.5-pro-preview",
1583
1628
  "google/gemini-2.5-flash-preview-05-20",
1584
- "google/gemini-2.5-flash-preview-05-20:thinking"
1585
- ]);
1586
- var OPEN_ROUTER_REQUIRED_REASONING_BUDGET_MODELS = /* @__PURE__ */ new Set([
1629
+ // Also include the models that require the reasoning budget to be enabled
1630
+ // even though `OPEN_ROUTER_REQUIRED_REASONING_BUDGET_MODELS` takes precedence.
1587
1631
  "anthropic/claude-3.7-sonnet:thinking",
1588
1632
  "google/gemini-2.5-flash-preview-05-20:thinking"
1589
1633
  ]);
@@ -1673,6 +1717,16 @@ var vertexModels = {
1673
1717
  inputPrice: 2.5,
1674
1718
  outputPrice: 15
1675
1719
  },
1720
+ "gemini-2.5-pro-preview-06-05": {
1721
+ maxTokens: 65535,
1722
+ contextWindow: 1048576,
1723
+ supportsImages: true,
1724
+ supportsPromptCache: true,
1725
+ inputPrice: 2.5,
1726
+ outputPrice: 15,
1727
+ maxThinkingTokens: 32768,
1728
+ supportsReasoningBudget: true
1729
+ },
1676
1730
  "gemini-2.5-pro-exp-03-25": {
1677
1731
  maxTokens: 65535,
1678
1732
  contextWindow: 1048576,
@@ -1829,6 +1883,7 @@ var vertexModels = {
1829
1883
  }
1830
1884
  };
1831
1885
  var VERTEX_REGIONS = [
1886
+ { value: "global", label: "global" },
1832
1887
  { value: "us-east5", label: "us-east5" },
1833
1888
  { value: "us-central1", label: "us-central1" },
1834
1889
  { value: "europe-west1", label: "europe-west1" },
@@ -1988,153 +2043,69 @@ var vscodeLlmModels = {
1988
2043
  // src/providers/xai.ts
1989
2044
  var xaiDefaultModelId = "grok-3";
1990
2045
  var xaiModels = {
1991
- "grok-3-beta": {
1992
- maxTokens: 8192,
1993
- contextWindow: 131072,
1994
- supportsImages: false,
1995
- supportsPromptCache: false,
1996
- inputPrice: 3,
1997
- outputPrice: 15,
1998
- description: "xAI's Grok-3 beta model with 131K context window"
1999
- },
2000
- "grok-3-fast-beta": {
2001
- maxTokens: 8192,
2002
- contextWindow: 131072,
2003
- supportsImages: false,
2004
- supportsPromptCache: false,
2005
- inputPrice: 5,
2006
- outputPrice: 25,
2007
- description: "xAI's Grok-3 fast beta model with 131K context window"
2008
- },
2009
- "grok-3-mini-beta": {
2046
+ "grok-2-1212": {
2010
2047
  maxTokens: 8192,
2011
2048
  contextWindow: 131072,
2012
2049
  supportsImages: false,
2013
2050
  supportsPromptCache: false,
2014
- inputPrice: 0.3,
2015
- outputPrice: 0.5,
2016
- description: "xAI's Grok-3 mini beta model with 131K context window",
2017
- supportsReasoningEffort: true
2051
+ inputPrice: 2,
2052
+ outputPrice: 10,
2053
+ description: "xAI's Grok-2 model (version 1212) with 128K context window"
2018
2054
  },
2019
- "grok-3-mini-fast-beta": {
2055
+ "grok-2-vision-1212": {
2020
2056
  maxTokens: 8192,
2021
- contextWindow: 131072,
2022
- supportsImages: false,
2057
+ contextWindow: 32768,
2058
+ supportsImages: true,
2023
2059
  supportsPromptCache: false,
2024
- inputPrice: 0.6,
2025
- outputPrice: 4,
2026
- description: "xAI's Grok-3 mini fast beta model with 131K context window",
2027
- 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"
2028
2063
  },
2029
2064
  "grok-3": {
2030
2065
  maxTokens: 8192,
2031
2066
  contextWindow: 131072,
2032
2067
  supportsImages: false,
2033
- supportsPromptCache: false,
2068
+ supportsPromptCache: true,
2034
2069
  inputPrice: 3,
2035
2070
  outputPrice: 15,
2036
- description: "xAI's Grok-3 model with 131K context window"
2071
+ cacheWritesPrice: 0.75,
2072
+ cacheReadsPrice: 0.75,
2073
+ description: "xAI's Grok-3 model with 128K context window"
2037
2074
  },
2038
2075
  "grok-3-fast": {
2039
2076
  maxTokens: 8192,
2040
2077
  contextWindow: 131072,
2041
2078
  supportsImages: false,
2042
- supportsPromptCache: false,
2079
+ supportsPromptCache: true,
2043
2080
  inputPrice: 5,
2044
2081
  outputPrice: 25,
2045
- description: "xAI's Grok-3 fast model with 131K context window"
2082
+ cacheWritesPrice: 1.25,
2083
+ cacheReadsPrice: 1.25,
2084
+ description: "xAI's Grok-3 fast model with 128K context window"
2046
2085
  },
2047
2086
  "grok-3-mini": {
2048
2087
  maxTokens: 8192,
2049
2088
  contextWindow: 131072,
2050
2089
  supportsImages: false,
2051
- supportsPromptCache: false,
2090
+ supportsPromptCache: true,
2052
2091
  inputPrice: 0.3,
2053
2092
  outputPrice: 0.5,
2054
- description: "xAI's Grok-3 mini model with 131K context window",
2093
+ cacheWritesPrice: 0.07,
2094
+ cacheReadsPrice: 0.07,
2095
+ description: "xAI's Grok-3 mini model with 128K context window",
2055
2096
  supportsReasoningEffort: true
2056
2097
  },
2057
2098
  "grok-3-mini-fast": {
2058
2099
  maxTokens: 8192,
2059
2100
  contextWindow: 131072,
2060
2101
  supportsImages: false,
2061
- supportsPromptCache: false,
2102
+ supportsPromptCache: true,
2062
2103
  inputPrice: 0.6,
2063
2104
  outputPrice: 4,
2064
- description: "xAI's Grok-3 mini fast model with 131K context window",
2105
+ cacheWritesPrice: 0.15,
2106
+ cacheReadsPrice: 0.15,
2107
+ description: "xAI's Grok-3 mini fast model with 128K context window",
2065
2108
  supportsReasoningEffort: true
2066
- },
2067
- "grok-2-latest": {
2068
- maxTokens: 8192,
2069
- contextWindow: 131072,
2070
- supportsImages: false,
2071
- supportsPromptCache: false,
2072
- inputPrice: 2,
2073
- outputPrice: 10,
2074
- description: "xAI's Grok-2 model - latest version with 131K context window"
2075
- },
2076
- "grok-2": {
2077
- maxTokens: 8192,
2078
- contextWindow: 131072,
2079
- supportsImages: false,
2080
- supportsPromptCache: false,
2081
- inputPrice: 2,
2082
- outputPrice: 10,
2083
- description: "xAI's Grok-2 model with 131K context window"
2084
- },
2085
- "grok-2-1212": {
2086
- maxTokens: 8192,
2087
- contextWindow: 131072,
2088
- supportsImages: false,
2089
- supportsPromptCache: false,
2090
- inputPrice: 2,
2091
- outputPrice: 10,
2092
- description: "xAI's Grok-2 model (version 1212) with 131K context window"
2093
- },
2094
- "grok-2-vision-latest": {
2095
- maxTokens: 8192,
2096
- contextWindow: 32768,
2097
- supportsImages: true,
2098
- supportsPromptCache: false,
2099
- inputPrice: 2,
2100
- outputPrice: 10,
2101
- description: "xAI's Grok-2 Vision model - latest version with image support and 32K context window"
2102
- },
2103
- "grok-2-vision": {
2104
- maxTokens: 8192,
2105
- contextWindow: 32768,
2106
- supportsImages: true,
2107
- supportsPromptCache: false,
2108
- inputPrice: 2,
2109
- outputPrice: 10,
2110
- description: "xAI's Grok-2 Vision model with image support and 32K context window"
2111
- },
2112
- "grok-2-vision-1212": {
2113
- maxTokens: 8192,
2114
- contextWindow: 32768,
2115
- supportsImages: true,
2116
- supportsPromptCache: false,
2117
- inputPrice: 2,
2118
- outputPrice: 10,
2119
- description: "xAI's Grok-2 Vision model (version 1212) with image support and 32K context window"
2120
- },
2121
- "grok-vision-beta": {
2122
- maxTokens: 8192,
2123
- contextWindow: 8192,
2124
- supportsImages: true,
2125
- supportsPromptCache: false,
2126
- inputPrice: 5,
2127
- outputPrice: 15,
2128
- description: "xAI's Grok Vision Beta model with image support and 8K context window"
2129
- },
2130
- "grok-beta": {
2131
- maxTokens: 8192,
2132
- contextWindow: 131072,
2133
- supportsImages: false,
2134
- supportsPromptCache: false,
2135
- inputPrice: 5,
2136
- outputPrice: 15,
2137
- description: "xAI's Grok Beta model (legacy) with 131K context window"
2138
2109
  }
2139
2110
  };
2140
2111
 
@@ -2143,17 +2114,21 @@ var import_zod = require("zod");
2143
2114
  var codebaseIndexConfigSchema = import_zod.z.object({
2144
2115
  codebaseIndexEnabled: import_zod.z.boolean().optional(),
2145
2116
  codebaseIndexQdrantUrl: import_zod.z.string().optional(),
2146
- codebaseIndexEmbedderProvider: import_zod.z.enum(["openai", "ollama"]).optional(),
2117
+ codebaseIndexEmbedderProvider: import_zod.z.enum(["openai", "ollama", "openai-compatible"]).optional(),
2147
2118
  codebaseIndexEmbedderBaseUrl: import_zod.z.string().optional(),
2148
2119
  codebaseIndexEmbedderModelId: import_zod.z.string().optional()
2149
2120
  });
2150
2121
  var codebaseIndexModelsSchema = import_zod.z.object({
2151
2122
  openai: import_zod.z.record(import_zod.z.string(), import_zod.z.object({ dimension: import_zod.z.number() })).optional(),
2152
- ollama: import_zod.z.record(import_zod.z.string(), import_zod.z.object({ dimension: import_zod.z.number() })).optional()
2123
+ ollama: import_zod.z.record(import_zod.z.string(), import_zod.z.object({ dimension: import_zod.z.number() })).optional(),
2124
+ "openai-compatible": import_zod.z.record(import_zod.z.string(), import_zod.z.object({ dimension: import_zod.z.number() })).optional()
2153
2125
  });
2154
2126
  var codebaseIndexProviderSchema = import_zod.z.object({
2155
2127
  codeIndexOpenAiKey: import_zod.z.string().optional(),
2156
- codeIndexQdrantApiKey: import_zod.z.string().optional()
2128
+ codeIndexQdrantApiKey: import_zod.z.string().optional(),
2129
+ codebaseIndexOpenAiCompatibleBaseUrl: import_zod.z.string().optional(),
2130
+ codebaseIndexOpenAiCompatibleApiKey: import_zod.z.string().optional(),
2131
+ codebaseIndexOpenAiCompatibleModelDimension: import_zod.z.number().optional()
2157
2132
  });
2158
2133
 
2159
2134
  // src/cloud.ts
@@ -2162,11 +2137,6 @@ var import_zod12 = require("zod");
2162
2137
  // src/global-settings.ts
2163
2138
  var import_zod11 = require("zod");
2164
2139
 
2165
- // src/type-fu.ts
2166
- function keysOf() {
2167
- return (keys) => keys;
2168
- }
2169
-
2170
2140
  // src/provider-settings.ts
2171
2141
  var import_zod3 = require("zod");
2172
2142
 
@@ -2415,107 +2385,23 @@ var providerSettingsSchema = import_zod3.z.object({
2415
2385
  ...litellmSchema.shape,
2416
2386
  ...codebaseIndexProviderSchema.shape
2417
2387
  });
2418
- var PROVIDER_SETTINGS_KEYS = keysOf()([
2419
- "apiProvider",
2420
- // Anthropic
2388
+ var PROVIDER_SETTINGS_KEYS = providerSettingsSchema.keyof().options;
2389
+ var MODEL_ID_KEYS = [
2421
2390
  "apiModelId",
2422
- "apiKey",
2423
- "anthropicBaseUrl",
2424
- "anthropicUseAuthToken",
2425
- // Glama
2426
2391
  "glamaModelId",
2427
- "glamaApiKey",
2428
- // OpenRouter
2429
- "openRouterApiKey",
2430
2392
  "openRouterModelId",
2431
- "openRouterBaseUrl",
2432
- "openRouterSpecificProvider",
2433
- "openRouterUseMiddleOutTransform",
2434
- // Amazon Bedrock
2435
- "awsAccessKey",
2436
- "awsSecretKey",
2437
- "awsSessionToken",
2438
- "awsRegion",
2439
- "awsUseCrossRegionInference",
2440
- "awsUsePromptCache",
2441
- "awsProfile",
2442
- "awsUseProfile",
2443
- "awsCustomArn",
2444
- "awsModelContextWindow",
2445
- "awsBedrockEndpointEnabled",
2446
- "awsBedrockEndpoint",
2447
- // Google Vertex
2448
- "vertexKeyFile",
2449
- "vertexJsonCredentials",
2450
- "vertexProjectId",
2451
- "vertexRegion",
2452
- // OpenAI
2453
- "openAiBaseUrl",
2454
- "openAiApiKey",
2455
- "openAiLegacyFormat",
2456
- "openAiR1FormatEnabled",
2457
2393
  "openAiModelId",
2458
- "openAiCustomModelInfo",
2459
- "openAiUseAzure",
2460
- "azureApiVersion",
2461
- "openAiStreamingEnabled",
2462
- "openAiHostHeader",
2463
- // Keep temporarily for backward compatibility during migration.
2464
- "openAiHeaders",
2465
- // Ollama
2466
2394
  "ollamaModelId",
2467
- "ollamaBaseUrl",
2468
- // VS Code LM
2469
- "vsCodeLmModelSelector",
2470
2395
  "lmStudioModelId",
2471
- "lmStudioBaseUrl",
2472
2396
  "lmStudioDraftModelId",
2473
- "lmStudioSpeculativeDecodingEnabled",
2474
- // Gemini
2475
- "geminiApiKey",
2476
- "googleGeminiBaseUrl",
2477
- // OpenAI Native
2478
- "openAiNativeApiKey",
2479
- "openAiNativeBaseUrl",
2480
- // Mistral
2481
- "mistralApiKey",
2482
- "mistralCodestralUrl",
2483
- // DeepSeek
2484
- "deepSeekBaseUrl",
2485
- "deepSeekApiKey",
2486
- // Unbound
2487
- "unboundApiKey",
2488
2397
  "unboundModelId",
2489
- // Requesty
2490
- "requestyApiKey",
2491
2398
  "requestyModelId",
2492
- // Code Index
2493
- "codeIndexOpenAiKey",
2494
- "codeIndexQdrantApiKey",
2495
- // Reasoning
2496
- "enableReasoningEffort",
2497
- "reasoningEffort",
2498
- "modelMaxTokens",
2499
- "modelMaxThinkingTokens",
2500
- // Generic
2501
- "includeMaxTokens",
2502
- "diffEnabled",
2503
- "fuzzyMatchThreshold",
2504
- "modelTemperature",
2505
- "rateLimitSeconds",
2506
- // Fake AI
2507
- "fakeAi",
2508
- // X.AI (Grok)
2509
- "xaiApiKey",
2510
- // Groq
2511
- "groqApiKey",
2512
- // Chutes AI
2513
- "chutesApiKey",
2514
- // LiteLLM
2515
- "litellmBaseUrl",
2516
- "litellmApiKey",
2517
2399
  "litellmModelId"
2518
- ]);
2400
+ ];
2401
+ var getModelId = (settings) => {
2402
+ const modelIdKey = MODEL_ID_KEYS.find((key) => settings[key]);
2403
+ return modelIdKey ? settings[modelIdKey] : void 0;
2404
+ };
2519
2405
 
2520
2406
  // src/history.ts
2521
2407
  var import_zod4 = require("zod");
@@ -2535,11 +2421,13 @@ var historyItemSchema = import_zod4.z.object({
2535
2421
 
2536
2422
  // src/experiment.ts
2537
2423
  var import_zod5 = require("zod");
2538
- var experimentIds = ["powerSteering", "concurrentFileReads"];
2424
+ var experimentIds = ["powerSteering", "disableCompletionCommand", "marketplace", "multiFileApplyDiff"];
2539
2425
  var experimentIdsSchema = import_zod5.z.enum(experimentIds);
2540
2426
  var experimentsSchema = import_zod5.z.object({
2541
- powerSteering: import_zod5.z.boolean(),
2542
- concurrentFileReads: import_zod5.z.boolean()
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()
2543
2431
  });
2544
2432
 
2545
2433
  // src/telemetry.ts
@@ -2611,7 +2499,8 @@ var clineMessageSchema = import_zod6.z.object({
2611
2499
  conversationHistoryIndex: import_zod6.z.number().optional(),
2612
2500
  checkpoint: import_zod6.z.record(import_zod6.z.string(), import_zod6.z.unknown()).optional(),
2613
2501
  progressStatus: toolProgressStatusSchema.optional(),
2614
- contextCondense: contextCondenseSchema.optional()
2502
+ contextCondense: contextCondenseSchema.optional(),
2503
+ isProtected: import_zod6.z.boolean().optional()
2615
2504
  });
2616
2505
  var tokenUsageSchema = import_zod6.z.object({
2617
2506
  totalTokensIn: import_zod6.z.number(),
@@ -2643,6 +2532,10 @@ var TelemetryEventName = /* @__PURE__ */ ((TelemetryEventName2) => {
2643
2532
  TelemetryEventName2["PROMPT_ENHANCED"] = "Prompt Enhanced";
2644
2533
  TelemetryEventName2["TITLE_BUTTON_CLICKED"] = "Title Button Clicked";
2645
2534
  TelemetryEventName2["AUTHENTICATION_INITIATED"] = "Authentication Initiated";
2535
+ TelemetryEventName2["MARKETPLACE_ITEM_INSTALLED"] = "Marketplace Item Installed";
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";
2646
2539
  TelemetryEventName2["SCHEMA_VALIDATION_ERROR"] = "Schema Validation Error";
2647
2540
  TelemetryEventName2["DIFF_APPLICATION_ERROR"] = "Diff Application Error";
2648
2541
  TelemetryEventName2["SHELL_INTEGRATION_ERROR"] = "Shell Integration Error";
@@ -2685,6 +2578,8 @@ var rooCodeTelemetryEventSchema = import_zod7.z.discriminatedUnion("type", [
2685
2578
  "Prompt Enhanced" /* PROMPT_ENHANCED */,
2686
2579
  "Title Button Clicked" /* TITLE_BUTTON_CLICKED */,
2687
2580
  "Authentication Initiated" /* AUTHENTICATION_INITIATED */,
2581
+ "Marketplace Item Installed" /* MARKETPLACE_ITEM_INSTALLED */,
2582
+ "Marketplace Item Removed" /* MARKETPLACE_ITEM_REMOVED */,
2688
2583
  "Schema Validation Error" /* SCHEMA_VALIDATION_ERROR */,
2689
2584
  "Diff Application Error" /* DIFF_APPLICATION_ERROR */,
2690
2585
  "Shell Integration Error" /* SHELL_INTEGRATION_ERROR */,
@@ -2828,6 +2723,7 @@ var commandIds = [
2828
2723
  "promptsButtonClicked",
2829
2724
  "mcpButtonClicked",
2830
2725
  "historyButtonClicked",
2726
+ "marketplaceButtonClicked",
2831
2727
  "popoutButtonClicked",
2832
2728
  "accountButtonClicked",
2833
2729
  "settingsButtonClicked",
@@ -2848,6 +2744,7 @@ var languages = [
2848
2744
  "es",
2849
2745
  "fr",
2850
2746
  "hi",
2747
+ "id",
2851
2748
  "it",
2852
2749
  "ja",
2853
2750
  "ko",
@@ -2878,6 +2775,7 @@ var globalSettingsSchema = import_zod11.z.object({
2878
2775
  alwaysAllowReadOnlyOutsideWorkspace: import_zod11.z.boolean().optional(),
2879
2776
  alwaysAllowWrite: import_zod11.z.boolean().optional(),
2880
2777
  alwaysAllowWriteOutsideWorkspace: import_zod11.z.boolean().optional(),
2778
+ alwaysAllowWriteProtected: import_zod11.z.boolean().optional(),
2881
2779
  writeDelayMs: import_zod11.z.number().optional(),
2882
2780
  alwaysAllowBrowser: import_zod11.z.boolean().optional(),
2883
2781
  alwaysApproveResubmit: import_zod11.z.boolean().optional(),
@@ -2934,78 +2832,9 @@ var globalSettingsSchema = import_zod11.z.object({
2934
2832
  enhancementApiConfigId: import_zod11.z.string().optional(),
2935
2833
  historyPreviewCollapsed: import_zod11.z.boolean().optional()
2936
2834
  });
2937
- var GLOBAL_SETTINGS_KEYS = keysOf()([
2938
- "currentApiConfigName",
2939
- "listApiConfigMeta",
2940
- "pinnedApiConfigs",
2941
- "lastShownAnnouncementId",
2942
- "customInstructions",
2943
- "taskHistory",
2944
- "condensingApiConfigId",
2945
- "customCondensingPrompt",
2946
- "autoApprovalEnabled",
2947
- "alwaysAllowReadOnly",
2948
- "alwaysAllowReadOnlyOutsideWorkspace",
2949
- "alwaysAllowWrite",
2950
- "alwaysAllowWriteOutsideWorkspace",
2951
- "writeDelayMs",
2952
- "alwaysAllowBrowser",
2953
- "alwaysApproveResubmit",
2954
- "requestDelaySeconds",
2955
- "alwaysAllowMcp",
2956
- "alwaysAllowModeSwitch",
2957
- "alwaysAllowSubtasks",
2958
- "alwaysAllowExecute",
2959
- "allowedCommands",
2960
- "allowedMaxRequests",
2961
- "autoCondenseContext",
2962
- "autoCondenseContextPercent",
2963
- "maxConcurrentFileReads",
2964
- "browserToolEnabled",
2965
- "browserViewportSize",
2966
- "screenshotQuality",
2967
- "remoteBrowserEnabled",
2968
- "remoteBrowserHost",
2969
- "enableCheckpoints",
2970
- "ttsEnabled",
2971
- "ttsSpeed",
2972
- "soundEnabled",
2973
- "soundVolume",
2974
- "maxOpenTabsContext",
2975
- "maxWorkspaceFiles",
2976
- "showRooIgnoredFiles",
2977
- "maxReadFileLine",
2978
- "terminalOutputLineLimit",
2979
- "terminalShellIntegrationTimeout",
2980
- "terminalShellIntegrationDisabled",
2981
- "terminalCommandDelay",
2982
- "terminalPowershellCounter",
2983
- "terminalZshClearEolMark",
2984
- "terminalZshOhMy",
2985
- "terminalZshP10k",
2986
- "terminalZdotdir",
2987
- "terminalCompressProgressBar",
2988
- "rateLimitSeconds",
2989
- "diffEnabled",
2990
- "fuzzyMatchThreshold",
2991
- "experiments",
2992
- "codebaseIndexModels",
2993
- "codebaseIndexConfig",
2994
- "language",
2995
- "telemetrySetting",
2996
- "mcpEnabled",
2997
- "enableMcpServerCreation",
2998
- "mode",
2999
- "modeApiConfigs",
3000
- "customModes",
3001
- "customModePrompts",
3002
- "customSupportPrompts",
3003
- "enhancementApiConfigId",
3004
- "cachedChromeHostUrl",
3005
- "historyPreviewCollapsed"
3006
- ]);
2835
+ var GLOBAL_SETTINGS_KEYS = globalSettingsSchema.keyof().options;
3007
2836
  var rooCodeSettingsSchema = providerSettingsSchema.merge(globalSettingsSchema);
3008
- var SECRET_STATE_KEYS = keysOf()([
2837
+ var SECRET_STATE_KEYS = [
3009
2838
  "apiKey",
3010
2839
  "glamaApiKey",
3011
2840
  "openRouterApiKey",
@@ -3024,13 +2853,68 @@ var SECRET_STATE_KEYS = keysOf()([
3024
2853
  "chutesApiKey",
3025
2854
  "litellmApiKey",
3026
2855
  "codeIndexOpenAiKey",
3027
- "codeIndexQdrantApiKey"
3028
- ]);
2856
+ "codeIndexQdrantApiKey",
2857
+ "codebaseIndexOpenAiCompatibleApiKey"
2858
+ ];
3029
2859
  var isSecretStateKey = (key) => SECRET_STATE_KEYS.includes(key);
3030
2860
  var GLOBAL_STATE_KEYS = [...GLOBAL_SETTINGS_KEYS, ...PROVIDER_SETTINGS_KEYS].filter(
3031
2861
  (key) => !SECRET_STATE_KEYS.includes(key)
3032
2862
  );
3033
2863
  var isGlobalStateKey = (key) => GLOBAL_STATE_KEYS.includes(key);
2864
+ var EVALS_SETTINGS = {
2865
+ apiProvider: "openrouter",
2866
+ openRouterUseMiddleOutTransform: false,
2867
+ lastShownAnnouncementId: "may-29-2025-3-19",
2868
+ pinnedApiConfigs: {},
2869
+ autoApprovalEnabled: true,
2870
+ alwaysAllowReadOnly: true,
2871
+ alwaysAllowReadOnlyOutsideWorkspace: false,
2872
+ alwaysAllowWrite: true,
2873
+ alwaysAllowWriteOutsideWorkspace: false,
2874
+ alwaysAllowWriteProtected: false,
2875
+ writeDelayMs: 1e3,
2876
+ alwaysAllowBrowser: true,
2877
+ alwaysApproveResubmit: true,
2878
+ requestDelaySeconds: 10,
2879
+ alwaysAllowMcp: true,
2880
+ alwaysAllowModeSwitch: true,
2881
+ alwaysAllowSubtasks: true,
2882
+ alwaysAllowExecute: true,
2883
+ allowedCommands: ["*"],
2884
+ browserToolEnabled: false,
2885
+ browserViewportSize: "900x600",
2886
+ screenshotQuality: 75,
2887
+ remoteBrowserEnabled: false,
2888
+ ttsEnabled: false,
2889
+ ttsSpeed: 1,
2890
+ soundEnabled: false,
2891
+ soundVolume: 0.5,
2892
+ terminalOutputLineLimit: 500,
2893
+ terminalShellIntegrationTimeout: 3e4,
2894
+ terminalCommandDelay: 0,
2895
+ terminalPowershellCounter: false,
2896
+ terminalZshOhMy: true,
2897
+ terminalZshClearEolMark: true,
2898
+ terminalZshP10k: false,
2899
+ terminalZdotdir: true,
2900
+ terminalCompressProgressBar: true,
2901
+ terminalShellIntegrationDisabled: true,
2902
+ diffEnabled: true,
2903
+ fuzzyMatchThreshold: 1,
2904
+ enableCheckpoints: false,
2905
+ rateLimitSeconds: 0,
2906
+ maxOpenTabsContext: 20,
2907
+ maxWorkspaceFiles: 200,
2908
+ showRooIgnoredFiles: true,
2909
+ maxReadFileLine: -1,
2910
+ // -1 to enable full file reading.
2911
+ language: "en",
2912
+ telemetrySetting: "enabled",
2913
+ mcpEnabled: false,
2914
+ mode: "code",
2915
+ customModes: []
2916
+ };
2917
+ var EVALS_TIMEOUT = 5 * 60 * 1e3;
3034
2918
 
3035
2919
  // src/cloud.ts
3036
2920
  var organizationAllowListSchema = import_zod12.z.object({
@@ -3089,6 +2973,11 @@ var ORGANIZATION_DEFAULT = {
3089
2973
  defaultSettings: {},
3090
2974
  allowList: ORGANIZATION_ALLOW_ALL
3091
2975
  };
2976
+ var shareResponseSchema = import_zod12.z.object({
2977
+ success: import_zod12.z.boolean(),
2978
+ shareUrl: import_zod12.z.string().optional(),
2979
+ error: import_zod12.z.string().optional()
2980
+ });
3092
2981
 
3093
2982
  // src/ipc.ts
3094
2983
  var import_zod13 = require("zod");
@@ -3264,28 +3153,104 @@ var ipcMessageSchema = import_zod13.z.discriminatedUnion("type", [
3264
3153
  })
3265
3154
  ]);
3266
3155
 
3267
- // src/terminal.ts
3156
+ // src/marketplace.ts
3268
3157
  var import_zod14 = require("zod");
3269
- var commandExecutionStatusSchema = import_zod14.z.discriminatedUnion("status", [
3270
- import_zod14.z.object({
3271
- executionId: import_zod14.z.string(),
3272
- status: import_zod14.z.literal("started"),
3273
- pid: import_zod14.z.number().optional(),
3274
- command: import_zod14.z.string()
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()
3275
3240
  }),
3276
- import_zod14.z.object({
3277
- executionId: import_zod14.z.string(),
3278
- status: import_zod14.z.literal("output"),
3279
- output: import_zod14.z.string()
3241
+ import_zod16.z.object({
3242
+ executionId: import_zod16.z.string(),
3243
+ status: import_zod16.z.literal("output"),
3244
+ output: import_zod16.z.string()
3280
3245
  }),
3281
- import_zod14.z.object({
3282
- executionId: import_zod14.z.string(),
3283
- status: import_zod14.z.literal("exited"),
3284
- exitCode: import_zod14.z.number().optional()
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()
3285
3250
  }),
3286
- import_zod14.z.object({
3287
- executionId: import_zod14.z.string(),
3288
- status: import_zod14.z.literal("fallback")
3251
+ import_zod16.z.object({
3252
+ executionId: import_zod16.z.string(),
3253
+ status: import_zod16.z.literal("fallback")
3289
3254
  })
3290
3255
  ]);
3291
3256
  // Annotate the CommonJS export names for ESM import in node:
@@ -3297,6 +3262,8 @@ var commandExecutionStatusSchema = import_zod14.z.discriminatedUnion("status", [
3297
3262
  BEDROCK_REGIONS,
3298
3263
  BEDROCK_REGION_INFO,
3299
3264
  DEEP_SEEK_DEFAULT_TEMPERATURE,
3265
+ EVALS_SETTINGS,
3266
+ EVALS_TIMEOUT,
3300
3267
  GLAMA_DEFAULT_TEMPERATURE,
3301
3268
  GLOBAL_SETTINGS_KEYS,
3302
3269
  GLOBAL_STATE_KEYS,
@@ -3305,6 +3272,7 @@ var commandExecutionStatusSchema = import_zod14.z.discriminatedUnion("status", [
3305
3272
  LITELLM_COMPUTER_USE_MODELS,
3306
3273
  LMSTUDIO_DEFAULT_TEMPERATURE,
3307
3274
  MISTRAL_DEFAULT_TEMPERATURE,
3275
+ MODEL_ID_KEYS,
3308
3276
  OPENAI_AZURE_AI_INFERENCE_PATH,
3309
3277
  OPENAI_NATIVE_DEFAULT_TEMPERATURE,
3310
3278
  OPENROUTER_DEFAULT_PROVIDER_NAME,
@@ -3352,6 +3320,7 @@ var commandExecutionStatusSchema = import_zod14.z.discriminatedUnion("status", [
3352
3320
  experimentsSchema,
3353
3321
  geminiDefaultModelId,
3354
3322
  geminiModels,
3323
+ getModelId,
3355
3324
  glamaDefaultModelId,
3356
3325
  glamaDefaultModelInfo,
3357
3326
  globalSettingsSchema,
@@ -3360,19 +3329,26 @@ var commandExecutionStatusSchema = import_zod14.z.discriminatedUnion("status", [
3360
3329
  groupEntrySchema,
3361
3330
  groupOptionsSchema,
3362
3331
  historyItemSchema,
3332
+ installMarketplaceItemOptionsSchema,
3363
3333
  ipcMessageSchema,
3364
3334
  isGlobalStateKey,
3365
3335
  isLanguage,
3366
3336
  isModelParameter,
3367
3337
  isSecretStateKey,
3368
- keysOf,
3369
3338
  languages,
3370
3339
  languagesSchema,
3371
3340
  litellmDefaultModelId,
3372
3341
  litellmDefaultModelInfo,
3342
+ marketplaceItemSchema,
3343
+ marketplaceItemTypeSchema,
3344
+ mcpExecutionStatusSchema,
3345
+ mcpInstallationMethodSchema,
3346
+ mcpMarketplaceItemSchema,
3347
+ mcpParameterSchema,
3373
3348
  mistralDefaultModelId,
3374
3349
  mistralModels,
3375
3350
  modeConfigSchema,
3351
+ modeMarketplaceItemSchema,
3376
3352
  modelInfoSchema,
3377
3353
  modelParameters,
3378
3354
  modelParametersSchema,
@@ -3398,6 +3374,7 @@ var commandExecutionStatusSchema = import_zod14.z.discriminatedUnion("status", [
3398
3374
  rooCodeEventsSchema,
3399
3375
  rooCodeSettingsSchema,
3400
3376
  rooCodeTelemetryEventSchema,
3377
+ shareResponseSchema,
3401
3378
  taskCommandSchema,
3402
3379
  taskEventSchema,
3403
3380
  taskPropertiesSchema,