@roo-code/types 1.26.0 → 1.28.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,
@@ -734,6 +737,16 @@ var chutesModels = {
734
737
  }
735
738
  };
736
739
 
740
+ // src/providers/claude-code.ts
741
+ var claudeCodeDefaultModelId = "claude-sonnet-4-20250514";
742
+ var claudeCodeModels = {
743
+ "claude-sonnet-4-20250514": anthropicModels["claude-sonnet-4-20250514"],
744
+ "claude-opus-4-20250514": anthropicModels["claude-opus-4-20250514"],
745
+ "claude-3-7-sonnet-20250219": anthropicModels["claude-3-7-sonnet-20250219"],
746
+ "claude-3-5-sonnet-20241022": anthropicModels["claude-3-5-sonnet-20241022"],
747
+ "claude-3-5-haiku-20241022": anthropicModels["claude-3-5-haiku-20241022"]
748
+ };
749
+
737
750
  // src/providers/deepseek.ts
738
751
  var deepSeekDefaultModelId = "deepseek-chat";
739
752
  var deepSeekModels = {
@@ -815,6 +828,18 @@ var geminiModels = {
815
828
  cacheReadsPrice: 0.0375,
816
829
  cacheWritesPrice: 1
817
830
  },
831
+ "gemini-2.5-flash": {
832
+ maxTokens: 64e3,
833
+ contextWindow: 1048576,
834
+ supportsImages: true,
835
+ supportsPromptCache: true,
836
+ inputPrice: 0.3,
837
+ outputPrice: 2.5,
838
+ cacheReadsPrice: 0.075,
839
+ cacheWritesPrice: 1,
840
+ maxThinkingTokens: 24576,
841
+ supportsReasoningBudget: true
842
+ },
818
843
  "gemini-2.5-pro-exp-03-25": {
819
844
  maxTokens: 65535,
820
845
  contextWindow: 1048576,
@@ -900,6 +925,34 @@ var geminiModels = {
900
925
  }
901
926
  ]
902
927
  },
928
+ "gemini-2.5-pro": {
929
+ maxTokens: 64e3,
930
+ contextWindow: 1048576,
931
+ supportsImages: true,
932
+ supportsPromptCache: true,
933
+ inputPrice: 2.5,
934
+ // This is the pricing for prompts above 200k tokens.
935
+ outputPrice: 15,
936
+ cacheReadsPrice: 0.625,
937
+ cacheWritesPrice: 4.5,
938
+ maxThinkingTokens: 32768,
939
+ supportsReasoningBudget: true,
940
+ requiredReasoningBudget: true,
941
+ tiers: [
942
+ {
943
+ contextWindow: 2e5,
944
+ inputPrice: 1.25,
945
+ outputPrice: 10,
946
+ cacheReadsPrice: 0.31
947
+ },
948
+ {
949
+ contextWindow: Infinity,
950
+ inputPrice: 2.5,
951
+ outputPrice: 15,
952
+ cacheReadsPrice: 0.625
953
+ }
954
+ ]
955
+ },
903
956
  "gemini-2.0-flash-001": {
904
957
  maxTokens: 8192,
905
958
  contextWindow: 1048576,
@@ -1014,6 +1067,18 @@ var geminiModels = {
1014
1067
  supportsPromptCache: false,
1015
1068
  inputPrice: 0,
1016
1069
  outputPrice: 0
1070
+ },
1071
+ "gemini-2.5-flash-lite-preview-06-17": {
1072
+ maxTokens: 64e3,
1073
+ contextWindow: 1048576,
1074
+ supportsImages: true,
1075
+ supportsPromptCache: true,
1076
+ inputPrice: 0.1,
1077
+ outputPrice: 0.4,
1078
+ cacheReadsPrice: 0.025,
1079
+ cacheWritesPrice: 1,
1080
+ supportsReasoningBudget: true,
1081
+ maxThinkingTokens: 24576
1017
1082
  }
1018
1083
  };
1019
1084
 
@@ -1042,8 +1107,8 @@ var groqModels = {
1042
1107
  contextWindow: 131072,
1043
1108
  supportsImages: false,
1044
1109
  supportsPromptCache: false,
1045
- inputPrice: 0,
1046
- outputPrice: 0,
1110
+ inputPrice: 0.05,
1111
+ outputPrice: 0.08,
1047
1112
  description: "Meta Llama 3.1 8B Instant model, 128K context."
1048
1113
  },
1049
1114
  "llama-3.3-70b-versatile": {
@@ -1051,8 +1116,8 @@ var groqModels = {
1051
1116
  contextWindow: 131072,
1052
1117
  supportsImages: false,
1053
1118
  supportsPromptCache: false,
1054
- inputPrice: 0,
1055
- outputPrice: 0,
1119
+ inputPrice: 0.59,
1120
+ outputPrice: 0.79,
1056
1121
  description: "Meta Llama 3.3 70B Versatile model, 128K context."
1057
1122
  },
1058
1123
  "meta-llama/llama-4-scout-17b-16e-instruct": {
@@ -1060,8 +1125,8 @@ var groqModels = {
1060
1125
  contextWindow: 131072,
1061
1126
  supportsImages: false,
1062
1127
  supportsPromptCache: false,
1063
- inputPrice: 0,
1064
- outputPrice: 0,
1128
+ inputPrice: 0.11,
1129
+ outputPrice: 0.34,
1065
1130
  description: "Meta Llama 4 Scout 17B Instruct model, 128K context."
1066
1131
  },
1067
1132
  "meta-llama/llama-4-maverick-17b-128e-instruct": {
@@ -1069,8 +1134,8 @@ var groqModels = {
1069
1134
  contextWindow: 131072,
1070
1135
  supportsImages: false,
1071
1136
  supportsPromptCache: false,
1072
- inputPrice: 0,
1073
- outputPrice: 0,
1137
+ inputPrice: 0.2,
1138
+ outputPrice: 0.6,
1074
1139
  description: "Meta Llama 4 Maverick 17B Instruct model, 128K context."
1075
1140
  },
1076
1141
  "mistral-saba-24b": {
@@ -1078,8 +1143,8 @@ var groqModels = {
1078
1143
  contextWindow: 32768,
1079
1144
  supportsImages: false,
1080
1145
  supportsPromptCache: false,
1081
- inputPrice: 0,
1082
- outputPrice: 0,
1146
+ inputPrice: 0.79,
1147
+ outputPrice: 0.79,
1083
1148
  description: "Mistral Saba 24B model, 32K context."
1084
1149
  },
1085
1150
  "qwen-qwq-32b": {
@@ -1087,17 +1152,26 @@ var groqModels = {
1087
1152
  contextWindow: 131072,
1088
1153
  supportsImages: false,
1089
1154
  supportsPromptCache: false,
1090
- inputPrice: 0,
1091
- outputPrice: 0,
1155
+ inputPrice: 0.29,
1156
+ outputPrice: 0.39,
1092
1157
  description: "Alibaba Qwen QwQ 32B model, 128K context."
1093
1158
  },
1159
+ "qwen/qwen3-32b": {
1160
+ maxTokens: 131072,
1161
+ contextWindow: 131072,
1162
+ supportsImages: false,
1163
+ supportsPromptCache: false,
1164
+ inputPrice: 0.29,
1165
+ outputPrice: 0.59,
1166
+ description: "Alibaba Qwen 3 32B model, 128K context."
1167
+ },
1094
1168
  "deepseek-r1-distill-llama-70b": {
1095
1169
  maxTokens: 131072,
1096
1170
  contextWindow: 131072,
1097
1171
  supportsImages: false,
1098
1172
  supportsPromptCache: false,
1099
- inputPrice: 0,
1100
- outputPrice: 0,
1173
+ inputPrice: 0.75,
1174
+ outputPrice: 0.99,
1101
1175
  description: "DeepSeek R1 Distill Llama 70B model, 128K context."
1102
1176
  }
1103
1177
  };
@@ -1149,10 +1223,39 @@ var LITELLM_COMPUTER_USE_MODELS = /* @__PURE__ */ new Set([
1149
1223
 
1150
1224
  // src/providers/lm-studio.ts
1151
1225
  var LMSTUDIO_DEFAULT_TEMPERATURE = 0;
1226
+ var lMStudioDefaultModelId = "mistralai/devstral-small-2505";
1227
+ var lMStudioDefaultModelInfo = {
1228
+ maxTokens: 8192,
1229
+ contextWindow: 2e5,
1230
+ supportsImages: true,
1231
+ supportsComputerUse: true,
1232
+ supportsPromptCache: true,
1233
+ inputPrice: 0,
1234
+ outputPrice: 0,
1235
+ cacheWritesPrice: 0,
1236
+ cacheReadsPrice: 0,
1237
+ description: "LM Studio hosted models"
1238
+ };
1152
1239
 
1153
1240
  // src/providers/mistral.ts
1154
1241
  var mistralDefaultModelId = "codestral-latest";
1155
1242
  var mistralModels = {
1243
+ "magistral-medium-latest": {
1244
+ maxTokens: 41e3,
1245
+ contextWindow: 41e3,
1246
+ supportsImages: false,
1247
+ supportsPromptCache: false,
1248
+ inputPrice: 2,
1249
+ outputPrice: 5
1250
+ },
1251
+ "mistral-medium-latest": {
1252
+ maxTokens: 131e3,
1253
+ contextWindow: 131e3,
1254
+ supportsImages: true,
1255
+ supportsPromptCache: false,
1256
+ inputPrice: 0.4,
1257
+ outputPrice: 2
1258
+ },
1156
1259
  "codestral-latest": {
1157
1260
  maxTokens: 256e3,
1158
1261
  contextWindow: 256e3,
@@ -1204,6 +1307,21 @@ var mistralModels = {
1204
1307
  };
1205
1308
  var MISTRAL_DEFAULT_TEMPERATURE = 0;
1206
1309
 
1310
+ // src/providers/ollama.ts
1311
+ var ollamaDefaultModelId = "devstral:24b";
1312
+ var ollamaDefaultModelInfo = {
1313
+ maxTokens: 4096,
1314
+ contextWindow: 2e5,
1315
+ supportsImages: true,
1316
+ supportsComputerUse: true,
1317
+ supportsPromptCache: true,
1318
+ inputPrice: 0,
1319
+ outputPrice: 0,
1320
+ cacheWritesPrice: 0,
1321
+ cacheReadsPrice: 0,
1322
+ description: "Ollama hosted models"
1323
+ };
1324
+
1207
1325
  // src/providers/openai.ts
1208
1326
  var openAiNativeDefaultModelId = "gpt-4.1";
1209
1327
  var openAiNativeModels = {
@@ -1433,6 +1551,8 @@ var OPEN_ROUTER_PROMPT_CACHING_MODELS = /* @__PURE__ */ new Set([
1433
1551
  "google/gemini-2.5-flash-preview:thinking",
1434
1552
  "google/gemini-2.5-flash-preview-05-20",
1435
1553
  "google/gemini-2.5-flash-preview-05-20:thinking",
1554
+ "google/gemini-2.5-flash",
1555
+ "google/gemini-2.5-flash-lite-preview-06-17",
1436
1556
  "google/gemini-2.0-flash-001",
1437
1557
  "google/gemini-flash-1.5",
1438
1558
  "google/gemini-flash-1.5-8b"
@@ -1448,6 +1568,7 @@ var OPEN_ROUTER_COMPUTER_USE_MODELS = /* @__PURE__ */ new Set([
1448
1568
  ]);
1449
1569
  var OPEN_ROUTER_REQUIRED_REASONING_BUDGET_MODELS = /* @__PURE__ */ new Set([
1450
1570
  "anthropic/claude-3.7-sonnet:thinking",
1571
+ "google/gemini-2.5-pro",
1451
1572
  "google/gemini-2.5-flash-preview-05-20:thinking"
1452
1573
  ]);
1453
1574
  var OPEN_ROUTER_REASONING_BUDGET_MODELS = /* @__PURE__ */ new Set([
@@ -1455,7 +1576,10 @@ var OPEN_ROUTER_REASONING_BUDGET_MODELS = /* @__PURE__ */ new Set([
1455
1576
  "anthropic/claude-opus-4",
1456
1577
  "anthropic/claude-sonnet-4",
1457
1578
  "google/gemini-2.5-pro-preview",
1579
+ "google/gemini-2.5-pro",
1458
1580
  "google/gemini-2.5-flash-preview-05-20",
1581
+ "google/gemini-2.5-flash",
1582
+ "google/gemini-2.5-flash-lite-preview-06-17",
1459
1583
  // Also include the models that require the reasoning budget to be enabled
1460
1584
  // even though `OPEN_ROUTER_REQUIRED_REASONING_BUDGET_MODELS` takes precedence.
1461
1585
  "anthropic/claude-3.7-sonnet:thinking",
@@ -1512,6 +1636,18 @@ var vertexModels = {
1512
1636
  inputPrice: 0.15,
1513
1637
  outputPrice: 0.6
1514
1638
  },
1639
+ "gemini-2.5-flash": {
1640
+ maxTokens: 64e3,
1641
+ contextWindow: 1048576,
1642
+ supportsImages: true,
1643
+ supportsPromptCache: true,
1644
+ inputPrice: 0.3,
1645
+ outputPrice: 2.5,
1646
+ cacheReadsPrice: 0.075,
1647
+ cacheWritesPrice: 1,
1648
+ maxThinkingTokens: 24576,
1649
+ supportsReasoningBudget: true
1650
+ },
1515
1651
  "gemini-2.5-flash-preview-04-17:thinking": {
1516
1652
  maxTokens: 65535,
1517
1653
  contextWindow: 1048576,
@@ -1557,6 +1693,31 @@ var vertexModels = {
1557
1693
  maxThinkingTokens: 32768,
1558
1694
  supportsReasoningBudget: true
1559
1695
  },
1696
+ "gemini-2.5-pro": {
1697
+ maxTokens: 64e3,
1698
+ contextWindow: 1048576,
1699
+ supportsImages: true,
1700
+ supportsPromptCache: true,
1701
+ inputPrice: 2.5,
1702
+ outputPrice: 15,
1703
+ maxThinkingTokens: 32768,
1704
+ supportsReasoningBudget: true,
1705
+ requiredReasoningBudget: true,
1706
+ tiers: [
1707
+ {
1708
+ contextWindow: 2e5,
1709
+ inputPrice: 1.25,
1710
+ outputPrice: 10,
1711
+ cacheReadsPrice: 0.31
1712
+ },
1713
+ {
1714
+ contextWindow: Infinity,
1715
+ inputPrice: 2.5,
1716
+ outputPrice: 15,
1717
+ cacheReadsPrice: 0.625
1718
+ }
1719
+ ]
1720
+ },
1560
1721
  "gemini-2.5-pro-exp-03-25": {
1561
1722
  maxTokens: 65535,
1562
1723
  contextWindow: 1048576,
@@ -1710,6 +1871,18 @@ var vertexModels = {
1710
1871
  outputPrice: 1.25,
1711
1872
  cacheWritesPrice: 0.3,
1712
1873
  cacheReadsPrice: 0.03
1874
+ },
1875
+ "gemini-2.5-flash-lite-preview-06-17": {
1876
+ maxTokens: 64e3,
1877
+ contextWindow: 1048576,
1878
+ supportsImages: true,
1879
+ supportsPromptCache: true,
1880
+ inputPrice: 0.1,
1881
+ outputPrice: 0.4,
1882
+ cacheReadsPrice: 0.025,
1883
+ cacheWritesPrice: 1,
1884
+ maxThinkingTokens: 24576,
1885
+ supportsReasoningBudget: true
1713
1886
  }
1714
1887
  };
1715
1888
  var VERTEX_REGIONS = [
@@ -1873,153 +2046,69 @@ var vscodeLlmModels = {
1873
2046
  // src/providers/xai.ts
1874
2047
  var xaiDefaultModelId = "grok-3";
1875
2048
  var xaiModels = {
1876
- "grok-3-beta": {
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": {
2049
+ "grok-2-1212": {
1895
2050
  maxTokens: 8192,
1896
2051
  contextWindow: 131072,
1897
2052
  supportsImages: false,
1898
2053
  supportsPromptCache: false,
1899
- inputPrice: 0.3,
1900
- outputPrice: 0.5,
1901
- description: "xAI's Grok-3 mini beta model with 131K context window",
1902
- supportsReasoningEffort: true
2054
+ inputPrice: 2,
2055
+ outputPrice: 10,
2056
+ description: "xAI's Grok-2 model (version 1212) with 128K context window"
1903
2057
  },
1904
- "grok-3-mini-fast-beta": {
2058
+ "grok-2-vision-1212": {
1905
2059
  maxTokens: 8192,
1906
- contextWindow: 131072,
1907
- supportsImages: false,
2060
+ contextWindow: 32768,
2061
+ supportsImages: true,
1908
2062
  supportsPromptCache: false,
1909
- inputPrice: 0.6,
1910
- outputPrice: 4,
1911
- description: "xAI's Grok-3 mini fast beta model with 131K context window",
1912
- supportsReasoningEffort: true
2063
+ inputPrice: 2,
2064
+ outputPrice: 10,
2065
+ description: "xAI's Grok-2 Vision model (version 1212) with image support and 32K context window"
1913
2066
  },
1914
2067
  "grok-3": {
1915
2068
  maxTokens: 8192,
1916
2069
  contextWindow: 131072,
1917
2070
  supportsImages: false,
1918
- supportsPromptCache: false,
2071
+ supportsPromptCache: true,
1919
2072
  inputPrice: 3,
1920
2073
  outputPrice: 15,
1921
- description: "xAI's Grok-3 model with 131K context window"
2074
+ cacheWritesPrice: 0.75,
2075
+ cacheReadsPrice: 0.75,
2076
+ description: "xAI's Grok-3 model with 128K context window"
1922
2077
  },
1923
2078
  "grok-3-fast": {
1924
2079
  maxTokens: 8192,
1925
2080
  contextWindow: 131072,
1926
2081
  supportsImages: false,
1927
- supportsPromptCache: false,
2082
+ supportsPromptCache: true,
1928
2083
  inputPrice: 5,
1929
2084
  outputPrice: 25,
1930
- description: "xAI's Grok-3 fast model with 131K context window"
2085
+ cacheWritesPrice: 1.25,
2086
+ cacheReadsPrice: 1.25,
2087
+ description: "xAI's Grok-3 fast model with 128K context window"
1931
2088
  },
1932
2089
  "grok-3-mini": {
1933
2090
  maxTokens: 8192,
1934
2091
  contextWindow: 131072,
1935
2092
  supportsImages: false,
1936
- supportsPromptCache: false,
2093
+ supportsPromptCache: true,
1937
2094
  inputPrice: 0.3,
1938
2095
  outputPrice: 0.5,
1939
- description: "xAI's Grok-3 mini model with 131K context window",
2096
+ cacheWritesPrice: 0.07,
2097
+ cacheReadsPrice: 0.07,
2098
+ description: "xAI's Grok-3 mini model with 128K context window",
1940
2099
  supportsReasoningEffort: true
1941
2100
  },
1942
2101
  "grok-3-mini-fast": {
1943
2102
  maxTokens: 8192,
1944
2103
  contextWindow: 131072,
1945
2104
  supportsImages: false,
1946
- supportsPromptCache: false,
2105
+ supportsPromptCache: true,
1947
2106
  inputPrice: 0.6,
1948
2107
  outputPrice: 4,
1949
- description: "xAI's Grok-3 mini fast model with 131K context window",
2108
+ cacheWritesPrice: 0.15,
2109
+ cacheReadsPrice: 0.15,
2110
+ description: "xAI's Grok-3 mini fast model with 128K context window",
1950
2111
  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
2112
  }
2024
2113
  };
2025
2114
 
@@ -2051,11 +2140,6 @@ import { z as z12 } from "zod";
2051
2140
  // src/global-settings.ts
2052
2141
  import { z as z11 } from "zod";
2053
2142
 
2054
- // src/type-fu.ts
2055
- function keysOf() {
2056
- return (keys) => keys;
2057
- }
2058
-
2059
2143
  // src/provider-settings.ts
2060
2144
  import { z as z3 } from "zod";
2061
2145
 
@@ -2100,6 +2184,7 @@ var modelInfoSchema = z2.object({
2100
2184
  // src/provider-settings.ts
2101
2185
  var providerNames = [
2102
2186
  "anthropic",
2187
+ "claude-code",
2103
2188
  "glama",
2104
2189
  "openrouter",
2105
2190
  "bedrock",
@@ -2147,6 +2232,9 @@ var anthropicSchema = apiModelIdProviderModelSchema.extend({
2147
2232
  anthropicBaseUrl: z3.string().optional(),
2148
2233
  anthropicUseAuthToken: z3.boolean().optional()
2149
2234
  });
2235
+ var claudeCodeSchema = apiModelIdProviderModelSchema.extend({
2236
+ claudeCodePath: z3.string().optional()
2237
+ });
2150
2238
  var glamaSchema = baseProviderSettingsSchema.extend({
2151
2239
  glamaModelId: z3.string().optional(),
2152
2240
  glamaApiKey: z3.string().optional()
@@ -2257,6 +2345,7 @@ var defaultSchema = z3.object({
2257
2345
  });
2258
2346
  var providerSettingsSchemaDiscriminated = z3.discriminatedUnion("apiProvider", [
2259
2347
  anthropicSchema.merge(z3.object({ apiProvider: z3.literal("anthropic") })),
2348
+ claudeCodeSchema.merge(z3.object({ apiProvider: z3.literal("claude-code") })),
2260
2349
  glamaSchema.merge(z3.object({ apiProvider: z3.literal("glama") })),
2261
2350
  openRouterSchema.merge(z3.object({ apiProvider: z3.literal("openrouter") })),
2262
2351
  bedrockSchema.merge(z3.object({ apiProvider: z3.literal("bedrock") })),
@@ -2282,6 +2371,7 @@ var providerSettingsSchemaDiscriminated = z3.discriminatedUnion("apiProvider", [
2282
2371
  var providerSettingsSchema = z3.object({
2283
2372
  apiProvider: providerNamesSchema.optional(),
2284
2373
  ...anthropicSchema.shape,
2374
+ ...claudeCodeSchema.shape,
2285
2375
  ...glamaSchema.shape,
2286
2376
  ...openRouterSchema.shape,
2287
2377
  ...bedrockSchema.shape,
@@ -2304,110 +2394,7 @@ var providerSettingsSchema = z3.object({
2304
2394
  ...litellmSchema.shape,
2305
2395
  ...codebaseIndexProviderSchema.shape
2306
2396
  });
2307
- var PROVIDER_SETTINGS_KEYS = keysOf()([
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
- ]);
2397
+ var PROVIDER_SETTINGS_KEYS = providerSettingsSchema.keyof().options;
2411
2398
  var MODEL_ID_KEYS = [
2412
2399
  "apiModelId",
2413
2400
  "glamaModelId",
@@ -2443,18 +2430,11 @@ var historyItemSchema = z4.object({
2443
2430
 
2444
2431
  // src/experiment.ts
2445
2432
  import { z as z5 } from "zod";
2446
- var experimentIds = [
2447
- "powerSteering",
2448
- "marketplace",
2449
- "concurrentFileReads",
2450
- "disableCompletionCommand"
2451
- ];
2433
+ var experimentIds = ["powerSteering", "multiFileApplyDiff"];
2452
2434
  var experimentIdsSchema = z5.enum(experimentIds);
2453
2435
  var experimentsSchema = z5.object({
2454
- powerSteering: z5.boolean(),
2455
- marketplace: z5.boolean(),
2456
- concurrentFileReads: z5.boolean(),
2457
- disableCompletionCommand: z5.boolean()
2436
+ powerSteering: z5.boolean().optional(),
2437
+ multiFileApplyDiff: z5.boolean().optional()
2458
2438
  });
2459
2439
 
2460
2440
  // src/telemetry.ts
@@ -2526,7 +2506,8 @@ var clineMessageSchema = z6.object({
2526
2506
  conversationHistoryIndex: z6.number().optional(),
2527
2507
  checkpoint: z6.record(z6.string(), z6.unknown()).optional(),
2528
2508
  progressStatus: toolProgressStatusSchema.optional(),
2529
- contextCondense: contextCondenseSchema.optional()
2509
+ contextCondense: contextCondenseSchema.optional(),
2510
+ isProtected: z6.boolean().optional()
2530
2511
  });
2531
2512
  var tokenUsageSchema = z6.object({
2532
2513
  totalTokensIn: z6.number(),
@@ -2560,6 +2541,8 @@ var TelemetryEventName = /* @__PURE__ */ ((TelemetryEventName2) => {
2560
2541
  TelemetryEventName2["AUTHENTICATION_INITIATED"] = "Authentication Initiated";
2561
2542
  TelemetryEventName2["MARKETPLACE_ITEM_INSTALLED"] = "Marketplace Item Installed";
2562
2543
  TelemetryEventName2["MARKETPLACE_ITEM_REMOVED"] = "Marketplace Item Removed";
2544
+ TelemetryEventName2["MARKETPLACE_TAB_VIEWED"] = "Marketplace Tab Viewed";
2545
+ TelemetryEventName2["MARKETPLACE_INSTALL_BUTTON_CLICKED"] = "Marketplace Install Button Clicked";
2563
2546
  TelemetryEventName2["SCHEMA_VALIDATION_ERROR"] = "Schema Validation Error";
2564
2547
  TelemetryEventName2["DIFF_APPLICATION_ERROR"] = "Diff Application Error";
2565
2548
  TelemetryEventName2["SHELL_INTEGRATION_ERROR"] = "Shell Integration Error";
@@ -2759,7 +2742,8 @@ var commandIds = [
2759
2742
  "newTask",
2760
2743
  "setCustomStoragePath",
2761
2744
  "focusInput",
2762
- "acceptInput"
2745
+ "acceptInput",
2746
+ "focusPanel"
2763
2747
  ];
2764
2748
  var languages = [
2765
2749
  "ca",
@@ -2768,6 +2752,7 @@ var languages = [
2768
2752
  "es",
2769
2753
  "fr",
2770
2754
  "hi",
2755
+ "id",
2771
2756
  "it",
2772
2757
  "ja",
2773
2758
  "ko",
@@ -2798,6 +2783,7 @@ var globalSettingsSchema = z11.object({
2798
2783
  alwaysAllowReadOnlyOutsideWorkspace: z11.boolean().optional(),
2799
2784
  alwaysAllowWrite: z11.boolean().optional(),
2800
2785
  alwaysAllowWriteOutsideWorkspace: z11.boolean().optional(),
2786
+ alwaysAllowWriteProtected: z11.boolean().optional(),
2801
2787
  writeDelayMs: z11.number().optional(),
2802
2788
  alwaysAllowBrowser: z11.boolean().optional(),
2803
2789
  alwaysApproveResubmit: z11.boolean().optional(),
@@ -2852,80 +2838,12 @@ var globalSettingsSchema = z11.object({
2852
2838
  customModePrompts: customModePromptsSchema.optional(),
2853
2839
  customSupportPrompts: customSupportPromptsSchema.optional(),
2854
2840
  enhancementApiConfigId: z11.string().optional(),
2855
- historyPreviewCollapsed: z11.boolean().optional()
2841
+ historyPreviewCollapsed: z11.boolean().optional(),
2842
+ profileThresholds: z11.record(z11.string(), z11.number()).optional()
2856
2843
  });
2857
- var GLOBAL_SETTINGS_KEYS = keysOf()([
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
- ]);
2844
+ var GLOBAL_SETTINGS_KEYS = globalSettingsSchema.keyof().options;
2927
2845
  var rooCodeSettingsSchema = providerSettingsSchema.merge(globalSettingsSchema);
2928
- var SECRET_STATE_KEYS = keysOf()([
2846
+ var SECRET_STATE_KEYS = [
2929
2847
  "apiKey",
2930
2848
  "glamaApiKey",
2931
2849
  "openRouterApiKey",
@@ -2946,7 +2864,7 @@ var SECRET_STATE_KEYS = keysOf()([
2946
2864
  "codeIndexOpenAiKey",
2947
2865
  "codeIndexQdrantApiKey",
2948
2866
  "codebaseIndexOpenAiCompatibleApiKey"
2949
- ]);
2867
+ ];
2950
2868
  var isSecretStateKey = (key) => SECRET_STATE_KEYS.includes(key);
2951
2869
  var GLOBAL_STATE_KEYS = [...GLOBAL_SETTINGS_KEYS, ...PROVIDER_SETTINGS_KEYS].filter(
2952
2870
  (key) => !SECRET_STATE_KEYS.includes(key)
@@ -2962,6 +2880,7 @@ var EVALS_SETTINGS = {
2962
2880
  alwaysAllowReadOnlyOutsideWorkspace: false,
2963
2881
  alwaysAllowWrite: true,
2964
2882
  alwaysAllowWriteOutsideWorkspace: false,
2883
+ alwaysAllowWriteProtected: false,
2965
2884
  writeDelayMs: 1e3,
2966
2885
  alwaysAllowBrowser: true,
2967
2886
  alwaysApproveResubmit: true,
@@ -3057,6 +2976,7 @@ var ORGANIZATION_ALLOW_ALL = {
3057
2976
  var ORGANIZATION_DEFAULT = {
3058
2977
  version: 0,
3059
2978
  cloudSettings: {
2979
+ recordTaskMessages: true,
3060
2980
  enableTaskSharing: true,
3061
2981
  taskShareExpirationDays: 30
3062
2982
  },
@@ -3066,11 +2986,16 @@ var ORGANIZATION_DEFAULT = {
3066
2986
  var shareResponseSchema = z12.object({
3067
2987
  success: z12.boolean(),
3068
2988
  shareUrl: z12.string().optional(),
3069
- error: z12.string().optional()
2989
+ error: z12.string().optional(),
2990
+ isNewShare: z12.boolean().optional(),
2991
+ manageUrl: z12.string().optional()
3070
2992
  });
3071
2993
 
3072
2994
  // src/ipc.ts
3073
2995
  import { z as z13 } from "zod";
2996
+ var isSubtaskSchema = z13.object({
2997
+ isSubtask: z13.boolean()
2998
+ });
3074
2999
  var RooCodeEventName = /* @__PURE__ */ ((RooCodeEventName2) => {
3075
3000
  RooCodeEventName2["Message"] = "message";
3076
3001
  RooCodeEventName2["TaskCreated"] = "taskCreated";
@@ -3104,7 +3029,7 @@ var rooCodeEventsSchema = z13.object({
3104
3029
  ["taskAskResponded" /* TaskAskResponded */]: z13.tuple([z13.string()]),
3105
3030
  ["taskAborted" /* TaskAborted */]: z13.tuple([z13.string()]),
3106
3031
  ["taskSpawned" /* TaskSpawned */]: z13.tuple([z13.string(), z13.string()]),
3107
- ["taskCompleted" /* TaskCompleted */]: z13.tuple([z13.string(), tokenUsageSchema, toolUsageSchema]),
3032
+ ["taskCompleted" /* TaskCompleted */]: z13.tuple([z13.string(), tokenUsageSchema, toolUsageSchema, isSubtaskSchema]),
3108
3033
  ["taskTokenUsageUpdated" /* TaskTokenUsageUpdated */]: z13.tuple([z13.string(), tokenUsageSchema]),
3109
3034
  ["taskToolFailed" /* TaskToolFailed */]: z13.tuple([z13.string(), toolNamesSchema, z13.string()])
3110
3035
  });
@@ -3243,28 +3168,104 @@ var ipcMessageSchema = z13.discriminatedUnion("type", [
3243
3168
  })
3244
3169
  ]);
3245
3170
 
3246
- // src/terminal.ts
3171
+ // src/marketplace.ts
3247
3172
  import { z as z14 } from "zod";
3248
- var commandExecutionStatusSchema = z14.discriminatedUnion("status", [
3249
- z14.object({
3250
- executionId: z14.string(),
3251
- status: z14.literal("started"),
3252
- pid: z14.number().optional(),
3253
- command: z14.string()
3173
+ var mcpParameterSchema = z14.object({
3174
+ name: z14.string().min(1),
3175
+ key: z14.string().min(1),
3176
+ placeholder: z14.string().optional(),
3177
+ optional: z14.boolean().optional().default(false)
3178
+ });
3179
+ var mcpInstallationMethodSchema = z14.object({
3180
+ name: z14.string().min(1),
3181
+ content: z14.string().min(1),
3182
+ parameters: z14.array(mcpParameterSchema).optional(),
3183
+ prerequisites: z14.array(z14.string()).optional()
3184
+ });
3185
+ var marketplaceItemTypeSchema = z14.enum(["mode", "mcp"]);
3186
+ var baseMarketplaceItemSchema = z14.object({
3187
+ id: z14.string().min(1),
3188
+ name: z14.string().min(1, "Name is required"),
3189
+ description: z14.string(),
3190
+ author: z14.string().optional(),
3191
+ authorUrl: z14.string().url("Author URL must be a valid URL").optional(),
3192
+ tags: z14.array(z14.string()).optional(),
3193
+ prerequisites: z14.array(z14.string()).optional()
3194
+ });
3195
+ var modeMarketplaceItemSchema = baseMarketplaceItemSchema.extend({
3196
+ content: z14.string().min(1)
3197
+ // YAML content for modes
3198
+ });
3199
+ var mcpMarketplaceItemSchema = baseMarketplaceItemSchema.extend({
3200
+ url: z14.string().url(),
3201
+ // Required url field
3202
+ content: z14.union([z14.string().min(1), z14.array(mcpInstallationMethodSchema)]),
3203
+ // Single config or array of methods
3204
+ parameters: z14.array(mcpParameterSchema).optional()
3205
+ });
3206
+ var marketplaceItemSchema = z14.discriminatedUnion("type", [
3207
+ // Mode marketplace item
3208
+ modeMarketplaceItemSchema.extend({
3209
+ type: z14.literal("mode")
3210
+ }),
3211
+ // MCP marketplace item
3212
+ mcpMarketplaceItemSchema.extend({
3213
+ type: z14.literal("mcp")
3214
+ })
3215
+ ]);
3216
+ var installMarketplaceItemOptionsSchema = z14.object({
3217
+ target: z14.enum(["global", "project"]).optional().default("project"),
3218
+ parameters: z14.record(z14.string(), z14.any()).optional()
3219
+ });
3220
+
3221
+ // src/mcp.ts
3222
+ import { z as z15 } from "zod";
3223
+ var mcpExecutionStatusSchema = z15.discriminatedUnion("status", [
3224
+ z15.object({
3225
+ executionId: z15.string(),
3226
+ status: z15.literal("started"),
3227
+ serverName: z15.string(),
3228
+ toolName: z15.string()
3229
+ }),
3230
+ z15.object({
3231
+ executionId: z15.string(),
3232
+ status: z15.literal("output"),
3233
+ response: z15.string()
3234
+ }),
3235
+ z15.object({
3236
+ executionId: z15.string(),
3237
+ status: z15.literal("completed"),
3238
+ response: z15.string().optional()
3239
+ }),
3240
+ z15.object({
3241
+ executionId: z15.string(),
3242
+ status: z15.literal("error"),
3243
+ error: z15.string().optional()
3244
+ })
3245
+ ]);
3246
+
3247
+ // src/terminal.ts
3248
+ import { z as z16 } from "zod";
3249
+ var commandExecutionStatusSchema = z16.discriminatedUnion("status", [
3250
+ z16.object({
3251
+ executionId: z16.string(),
3252
+ status: z16.literal("started"),
3253
+ pid: z16.number().optional(),
3254
+ command: z16.string()
3254
3255
  }),
3255
- z14.object({
3256
- executionId: z14.string(),
3257
- status: z14.literal("output"),
3258
- output: z14.string()
3256
+ z16.object({
3257
+ executionId: z16.string(),
3258
+ status: z16.literal("output"),
3259
+ output: z16.string()
3259
3260
  }),
3260
- z14.object({
3261
- executionId: z14.string(),
3262
- status: z14.literal("exited"),
3263
- exitCode: z14.number().optional()
3261
+ z16.object({
3262
+ executionId: z16.string(),
3263
+ status: z16.literal("exited"),
3264
+ exitCode: z16.number().optional()
3264
3265
  }),
3265
- z14.object({
3266
- executionId: z14.string(),
3267
- status: z14.literal("fallback")
3266
+ z16.object({
3267
+ executionId: z16.string(),
3268
+ status: z16.literal("fallback")
3268
3269
  })
3269
3270
  ]);
3270
3271
  export {
@@ -3311,6 +3312,8 @@ export {
3311
3312
  bedrockModels,
3312
3313
  chutesDefaultModelId,
3313
3314
  chutesModels,
3315
+ claudeCodeDefaultModelId,
3316
+ claudeCodeModels,
3314
3317
  clineAskSchema,
3315
3318
  clineAsks,
3316
3319
  clineMessageSchema,
@@ -3342,22 +3345,34 @@ export {
3342
3345
  groupEntrySchema,
3343
3346
  groupOptionsSchema,
3344
3347
  historyItemSchema,
3348
+ installMarketplaceItemOptionsSchema,
3345
3349
  ipcMessageSchema,
3346
3350
  isGlobalStateKey,
3347
3351
  isLanguage,
3348
3352
  isModelParameter,
3349
3353
  isSecretStateKey,
3350
- keysOf,
3354
+ isSubtaskSchema,
3355
+ lMStudioDefaultModelId,
3356
+ lMStudioDefaultModelInfo,
3351
3357
  languages,
3352
3358
  languagesSchema,
3353
3359
  litellmDefaultModelId,
3354
3360
  litellmDefaultModelInfo,
3361
+ marketplaceItemSchema,
3362
+ marketplaceItemTypeSchema,
3363
+ mcpExecutionStatusSchema,
3364
+ mcpInstallationMethodSchema,
3365
+ mcpMarketplaceItemSchema,
3366
+ mcpParameterSchema,
3355
3367
  mistralDefaultModelId,
3356
3368
  mistralModels,
3357
3369
  modeConfigSchema,
3370
+ modeMarketplaceItemSchema,
3358
3371
  modelInfoSchema,
3359
3372
  modelParameters,
3360
3373
  modelParametersSchema,
3374
+ ollamaDefaultModelId,
3375
+ ollamaDefaultModelInfo,
3361
3376
  openAiModelInfoSaneDefaults,
3362
3377
  openAiNativeDefaultModelId,
3363
3378
  openAiNativeModels,