@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.cjs +369 -340
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1149 -388
- package/dist/index.d.ts +1149 -388
- package/dist/index.js +354 -339
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -63,6 +63,8 @@ __export(index_exports, {
|
|
|
63
63
|
bedrockModels: () => bedrockModels,
|
|
64
64
|
chutesDefaultModelId: () => chutesDefaultModelId,
|
|
65
65
|
chutesModels: () => chutesModels,
|
|
66
|
+
claudeCodeDefaultModelId: () => claudeCodeDefaultModelId,
|
|
67
|
+
claudeCodeModels: () => claudeCodeModels,
|
|
66
68
|
clineAskSchema: () => clineAskSchema,
|
|
67
69
|
clineAsks: () => clineAsks,
|
|
68
70
|
clineMessageSchema: () => clineMessageSchema,
|
|
@@ -94,22 +96,34 @@ __export(index_exports, {
|
|
|
94
96
|
groupEntrySchema: () => groupEntrySchema,
|
|
95
97
|
groupOptionsSchema: () => groupOptionsSchema,
|
|
96
98
|
historyItemSchema: () => historyItemSchema,
|
|
99
|
+
installMarketplaceItemOptionsSchema: () => installMarketplaceItemOptionsSchema,
|
|
97
100
|
ipcMessageSchema: () => ipcMessageSchema,
|
|
98
101
|
isGlobalStateKey: () => isGlobalStateKey,
|
|
99
102
|
isLanguage: () => isLanguage,
|
|
100
103
|
isModelParameter: () => isModelParameter,
|
|
101
104
|
isSecretStateKey: () => isSecretStateKey,
|
|
102
|
-
|
|
105
|
+
isSubtaskSchema: () => isSubtaskSchema,
|
|
106
|
+
lMStudioDefaultModelId: () => lMStudioDefaultModelId,
|
|
107
|
+
lMStudioDefaultModelInfo: () => lMStudioDefaultModelInfo,
|
|
103
108
|
languages: () => languages,
|
|
104
109
|
languagesSchema: () => languagesSchema,
|
|
105
110
|
litellmDefaultModelId: () => litellmDefaultModelId,
|
|
106
111
|
litellmDefaultModelInfo: () => litellmDefaultModelInfo,
|
|
112
|
+
marketplaceItemSchema: () => marketplaceItemSchema,
|
|
113
|
+
marketplaceItemTypeSchema: () => marketplaceItemTypeSchema,
|
|
114
|
+
mcpExecutionStatusSchema: () => mcpExecutionStatusSchema,
|
|
115
|
+
mcpInstallationMethodSchema: () => mcpInstallationMethodSchema,
|
|
116
|
+
mcpMarketplaceItemSchema: () => mcpMarketplaceItemSchema,
|
|
117
|
+
mcpParameterSchema: () => mcpParameterSchema,
|
|
107
118
|
mistralDefaultModelId: () => mistralDefaultModelId,
|
|
108
119
|
mistralModels: () => mistralModels,
|
|
109
120
|
modeConfigSchema: () => modeConfigSchema,
|
|
121
|
+
modeMarketplaceItemSchema: () => modeMarketplaceItemSchema,
|
|
110
122
|
modelInfoSchema: () => modelInfoSchema,
|
|
111
123
|
modelParameters: () => modelParameters,
|
|
112
124
|
modelParametersSchema: () => modelParametersSchema,
|
|
125
|
+
ollamaDefaultModelId: () => ollamaDefaultModelId,
|
|
126
|
+
ollamaDefaultModelInfo: () => ollamaDefaultModelInfo,
|
|
113
127
|
openAiModelInfoSaneDefaults: () => openAiModelInfoSaneDefaults,
|
|
114
128
|
openAiNativeDefaultModelId: () => openAiNativeDefaultModelId,
|
|
115
129
|
openAiNativeModels: () => openAiNativeModels,
|
|
@@ -349,6 +363,7 @@ var bedrockModels = {
|
|
|
349
363
|
supportsImages: true,
|
|
350
364
|
supportsComputerUse: true,
|
|
351
365
|
supportsPromptCache: true,
|
|
366
|
+
supportsReasoningBudget: true,
|
|
352
367
|
inputPrice: 3,
|
|
353
368
|
outputPrice: 15,
|
|
354
369
|
cacheWritesPrice: 3.75,
|
|
@@ -363,6 +378,7 @@ var bedrockModels = {
|
|
|
363
378
|
supportsImages: true,
|
|
364
379
|
supportsComputerUse: true,
|
|
365
380
|
supportsPromptCache: true,
|
|
381
|
+
supportsReasoningBudget: true,
|
|
366
382
|
inputPrice: 15,
|
|
367
383
|
outputPrice: 75,
|
|
368
384
|
cacheWritesPrice: 18.75,
|
|
@@ -377,6 +393,7 @@ var bedrockModels = {
|
|
|
377
393
|
supportsImages: true,
|
|
378
394
|
supportsComputerUse: true,
|
|
379
395
|
supportsPromptCache: true,
|
|
396
|
+
supportsReasoningBudget: true,
|
|
380
397
|
inputPrice: 3,
|
|
381
398
|
outputPrice: 15,
|
|
382
399
|
cacheWritesPrice: 3.75,
|
|
@@ -894,6 +911,16 @@ var chutesModels = {
|
|
|
894
911
|
}
|
|
895
912
|
};
|
|
896
913
|
|
|
914
|
+
// src/providers/claude-code.ts
|
|
915
|
+
var claudeCodeDefaultModelId = "claude-sonnet-4-20250514";
|
|
916
|
+
var claudeCodeModels = {
|
|
917
|
+
"claude-sonnet-4-20250514": anthropicModels["claude-sonnet-4-20250514"],
|
|
918
|
+
"claude-opus-4-20250514": anthropicModels["claude-opus-4-20250514"],
|
|
919
|
+
"claude-3-7-sonnet-20250219": anthropicModels["claude-3-7-sonnet-20250219"],
|
|
920
|
+
"claude-3-5-sonnet-20241022": anthropicModels["claude-3-5-sonnet-20241022"],
|
|
921
|
+
"claude-3-5-haiku-20241022": anthropicModels["claude-3-5-haiku-20241022"]
|
|
922
|
+
};
|
|
923
|
+
|
|
897
924
|
// src/providers/deepseek.ts
|
|
898
925
|
var deepSeekDefaultModelId = "deepseek-chat";
|
|
899
926
|
var deepSeekModels = {
|
|
@@ -975,6 +1002,18 @@ var geminiModels = {
|
|
|
975
1002
|
cacheReadsPrice: 0.0375,
|
|
976
1003
|
cacheWritesPrice: 1
|
|
977
1004
|
},
|
|
1005
|
+
"gemini-2.5-flash": {
|
|
1006
|
+
maxTokens: 64e3,
|
|
1007
|
+
contextWindow: 1048576,
|
|
1008
|
+
supportsImages: true,
|
|
1009
|
+
supportsPromptCache: true,
|
|
1010
|
+
inputPrice: 0.3,
|
|
1011
|
+
outputPrice: 2.5,
|
|
1012
|
+
cacheReadsPrice: 0.075,
|
|
1013
|
+
cacheWritesPrice: 1,
|
|
1014
|
+
maxThinkingTokens: 24576,
|
|
1015
|
+
supportsReasoningBudget: true
|
|
1016
|
+
},
|
|
978
1017
|
"gemini-2.5-pro-exp-03-25": {
|
|
979
1018
|
maxTokens: 65535,
|
|
980
1019
|
contextWindow: 1048576,
|
|
@@ -1060,6 +1099,34 @@ var geminiModels = {
|
|
|
1060
1099
|
}
|
|
1061
1100
|
]
|
|
1062
1101
|
},
|
|
1102
|
+
"gemini-2.5-pro": {
|
|
1103
|
+
maxTokens: 64e3,
|
|
1104
|
+
contextWindow: 1048576,
|
|
1105
|
+
supportsImages: true,
|
|
1106
|
+
supportsPromptCache: true,
|
|
1107
|
+
inputPrice: 2.5,
|
|
1108
|
+
// This is the pricing for prompts above 200k tokens.
|
|
1109
|
+
outputPrice: 15,
|
|
1110
|
+
cacheReadsPrice: 0.625,
|
|
1111
|
+
cacheWritesPrice: 4.5,
|
|
1112
|
+
maxThinkingTokens: 32768,
|
|
1113
|
+
supportsReasoningBudget: true,
|
|
1114
|
+
requiredReasoningBudget: true,
|
|
1115
|
+
tiers: [
|
|
1116
|
+
{
|
|
1117
|
+
contextWindow: 2e5,
|
|
1118
|
+
inputPrice: 1.25,
|
|
1119
|
+
outputPrice: 10,
|
|
1120
|
+
cacheReadsPrice: 0.31
|
|
1121
|
+
},
|
|
1122
|
+
{
|
|
1123
|
+
contextWindow: Infinity,
|
|
1124
|
+
inputPrice: 2.5,
|
|
1125
|
+
outputPrice: 15,
|
|
1126
|
+
cacheReadsPrice: 0.625
|
|
1127
|
+
}
|
|
1128
|
+
]
|
|
1129
|
+
},
|
|
1063
1130
|
"gemini-2.0-flash-001": {
|
|
1064
1131
|
maxTokens: 8192,
|
|
1065
1132
|
contextWindow: 1048576,
|
|
@@ -1174,6 +1241,18 @@ var geminiModels = {
|
|
|
1174
1241
|
supportsPromptCache: false,
|
|
1175
1242
|
inputPrice: 0,
|
|
1176
1243
|
outputPrice: 0
|
|
1244
|
+
},
|
|
1245
|
+
"gemini-2.5-flash-lite-preview-06-17": {
|
|
1246
|
+
maxTokens: 64e3,
|
|
1247
|
+
contextWindow: 1048576,
|
|
1248
|
+
supportsImages: true,
|
|
1249
|
+
supportsPromptCache: true,
|
|
1250
|
+
inputPrice: 0.1,
|
|
1251
|
+
outputPrice: 0.4,
|
|
1252
|
+
cacheReadsPrice: 0.025,
|
|
1253
|
+
cacheWritesPrice: 1,
|
|
1254
|
+
supportsReasoningBudget: true,
|
|
1255
|
+
maxThinkingTokens: 24576
|
|
1177
1256
|
}
|
|
1178
1257
|
};
|
|
1179
1258
|
|
|
@@ -1202,8 +1281,8 @@ var groqModels = {
|
|
|
1202
1281
|
contextWindow: 131072,
|
|
1203
1282
|
supportsImages: false,
|
|
1204
1283
|
supportsPromptCache: false,
|
|
1205
|
-
inputPrice: 0,
|
|
1206
|
-
outputPrice: 0,
|
|
1284
|
+
inputPrice: 0.05,
|
|
1285
|
+
outputPrice: 0.08,
|
|
1207
1286
|
description: "Meta Llama 3.1 8B Instant model, 128K context."
|
|
1208
1287
|
},
|
|
1209
1288
|
"llama-3.3-70b-versatile": {
|
|
@@ -1211,8 +1290,8 @@ var groqModels = {
|
|
|
1211
1290
|
contextWindow: 131072,
|
|
1212
1291
|
supportsImages: false,
|
|
1213
1292
|
supportsPromptCache: false,
|
|
1214
|
-
inputPrice: 0,
|
|
1215
|
-
outputPrice: 0,
|
|
1293
|
+
inputPrice: 0.59,
|
|
1294
|
+
outputPrice: 0.79,
|
|
1216
1295
|
description: "Meta Llama 3.3 70B Versatile model, 128K context."
|
|
1217
1296
|
},
|
|
1218
1297
|
"meta-llama/llama-4-scout-17b-16e-instruct": {
|
|
@@ -1220,8 +1299,8 @@ var groqModels = {
|
|
|
1220
1299
|
contextWindow: 131072,
|
|
1221
1300
|
supportsImages: false,
|
|
1222
1301
|
supportsPromptCache: false,
|
|
1223
|
-
inputPrice: 0,
|
|
1224
|
-
outputPrice: 0,
|
|
1302
|
+
inputPrice: 0.11,
|
|
1303
|
+
outputPrice: 0.34,
|
|
1225
1304
|
description: "Meta Llama 4 Scout 17B Instruct model, 128K context."
|
|
1226
1305
|
},
|
|
1227
1306
|
"meta-llama/llama-4-maverick-17b-128e-instruct": {
|
|
@@ -1229,8 +1308,8 @@ var groqModels = {
|
|
|
1229
1308
|
contextWindow: 131072,
|
|
1230
1309
|
supportsImages: false,
|
|
1231
1310
|
supportsPromptCache: false,
|
|
1232
|
-
inputPrice: 0,
|
|
1233
|
-
outputPrice: 0,
|
|
1311
|
+
inputPrice: 0.2,
|
|
1312
|
+
outputPrice: 0.6,
|
|
1234
1313
|
description: "Meta Llama 4 Maverick 17B Instruct model, 128K context."
|
|
1235
1314
|
},
|
|
1236
1315
|
"mistral-saba-24b": {
|
|
@@ -1238,8 +1317,8 @@ var groqModels = {
|
|
|
1238
1317
|
contextWindow: 32768,
|
|
1239
1318
|
supportsImages: false,
|
|
1240
1319
|
supportsPromptCache: false,
|
|
1241
|
-
inputPrice: 0,
|
|
1242
|
-
outputPrice: 0,
|
|
1320
|
+
inputPrice: 0.79,
|
|
1321
|
+
outputPrice: 0.79,
|
|
1243
1322
|
description: "Mistral Saba 24B model, 32K context."
|
|
1244
1323
|
},
|
|
1245
1324
|
"qwen-qwq-32b": {
|
|
@@ -1247,17 +1326,26 @@ var groqModels = {
|
|
|
1247
1326
|
contextWindow: 131072,
|
|
1248
1327
|
supportsImages: false,
|
|
1249
1328
|
supportsPromptCache: false,
|
|
1250
|
-
inputPrice: 0,
|
|
1251
|
-
outputPrice: 0,
|
|
1329
|
+
inputPrice: 0.29,
|
|
1330
|
+
outputPrice: 0.39,
|
|
1252
1331
|
description: "Alibaba Qwen QwQ 32B model, 128K context."
|
|
1253
1332
|
},
|
|
1333
|
+
"qwen/qwen3-32b": {
|
|
1334
|
+
maxTokens: 131072,
|
|
1335
|
+
contextWindow: 131072,
|
|
1336
|
+
supportsImages: false,
|
|
1337
|
+
supportsPromptCache: false,
|
|
1338
|
+
inputPrice: 0.29,
|
|
1339
|
+
outputPrice: 0.59,
|
|
1340
|
+
description: "Alibaba Qwen 3 32B model, 128K context."
|
|
1341
|
+
},
|
|
1254
1342
|
"deepseek-r1-distill-llama-70b": {
|
|
1255
1343
|
maxTokens: 131072,
|
|
1256
1344
|
contextWindow: 131072,
|
|
1257
1345
|
supportsImages: false,
|
|
1258
1346
|
supportsPromptCache: false,
|
|
1259
|
-
inputPrice: 0,
|
|
1260
|
-
outputPrice: 0,
|
|
1347
|
+
inputPrice: 0.75,
|
|
1348
|
+
outputPrice: 0.99,
|
|
1261
1349
|
description: "DeepSeek R1 Distill Llama 70B model, 128K context."
|
|
1262
1350
|
}
|
|
1263
1351
|
};
|
|
@@ -1309,10 +1397,39 @@ var LITELLM_COMPUTER_USE_MODELS = /* @__PURE__ */ new Set([
|
|
|
1309
1397
|
|
|
1310
1398
|
// src/providers/lm-studio.ts
|
|
1311
1399
|
var LMSTUDIO_DEFAULT_TEMPERATURE = 0;
|
|
1400
|
+
var lMStudioDefaultModelId = "mistralai/devstral-small-2505";
|
|
1401
|
+
var lMStudioDefaultModelInfo = {
|
|
1402
|
+
maxTokens: 8192,
|
|
1403
|
+
contextWindow: 2e5,
|
|
1404
|
+
supportsImages: true,
|
|
1405
|
+
supportsComputerUse: true,
|
|
1406
|
+
supportsPromptCache: true,
|
|
1407
|
+
inputPrice: 0,
|
|
1408
|
+
outputPrice: 0,
|
|
1409
|
+
cacheWritesPrice: 0,
|
|
1410
|
+
cacheReadsPrice: 0,
|
|
1411
|
+
description: "LM Studio hosted models"
|
|
1412
|
+
};
|
|
1312
1413
|
|
|
1313
1414
|
// src/providers/mistral.ts
|
|
1314
1415
|
var mistralDefaultModelId = "codestral-latest";
|
|
1315
1416
|
var mistralModels = {
|
|
1417
|
+
"magistral-medium-latest": {
|
|
1418
|
+
maxTokens: 41e3,
|
|
1419
|
+
contextWindow: 41e3,
|
|
1420
|
+
supportsImages: false,
|
|
1421
|
+
supportsPromptCache: false,
|
|
1422
|
+
inputPrice: 2,
|
|
1423
|
+
outputPrice: 5
|
|
1424
|
+
},
|
|
1425
|
+
"mistral-medium-latest": {
|
|
1426
|
+
maxTokens: 131e3,
|
|
1427
|
+
contextWindow: 131e3,
|
|
1428
|
+
supportsImages: true,
|
|
1429
|
+
supportsPromptCache: false,
|
|
1430
|
+
inputPrice: 0.4,
|
|
1431
|
+
outputPrice: 2
|
|
1432
|
+
},
|
|
1316
1433
|
"codestral-latest": {
|
|
1317
1434
|
maxTokens: 256e3,
|
|
1318
1435
|
contextWindow: 256e3,
|
|
@@ -1364,6 +1481,21 @@ var mistralModels = {
|
|
|
1364
1481
|
};
|
|
1365
1482
|
var MISTRAL_DEFAULT_TEMPERATURE = 0;
|
|
1366
1483
|
|
|
1484
|
+
// src/providers/ollama.ts
|
|
1485
|
+
var ollamaDefaultModelId = "devstral:24b";
|
|
1486
|
+
var ollamaDefaultModelInfo = {
|
|
1487
|
+
maxTokens: 4096,
|
|
1488
|
+
contextWindow: 2e5,
|
|
1489
|
+
supportsImages: true,
|
|
1490
|
+
supportsComputerUse: true,
|
|
1491
|
+
supportsPromptCache: true,
|
|
1492
|
+
inputPrice: 0,
|
|
1493
|
+
outputPrice: 0,
|
|
1494
|
+
cacheWritesPrice: 0,
|
|
1495
|
+
cacheReadsPrice: 0,
|
|
1496
|
+
description: "Ollama hosted models"
|
|
1497
|
+
};
|
|
1498
|
+
|
|
1367
1499
|
// src/providers/openai.ts
|
|
1368
1500
|
var openAiNativeDefaultModelId = "gpt-4.1";
|
|
1369
1501
|
var openAiNativeModels = {
|
|
@@ -1593,6 +1725,8 @@ var OPEN_ROUTER_PROMPT_CACHING_MODELS = /* @__PURE__ */ new Set([
|
|
|
1593
1725
|
"google/gemini-2.5-flash-preview:thinking",
|
|
1594
1726
|
"google/gemini-2.5-flash-preview-05-20",
|
|
1595
1727
|
"google/gemini-2.5-flash-preview-05-20:thinking",
|
|
1728
|
+
"google/gemini-2.5-flash",
|
|
1729
|
+
"google/gemini-2.5-flash-lite-preview-06-17",
|
|
1596
1730
|
"google/gemini-2.0-flash-001",
|
|
1597
1731
|
"google/gemini-flash-1.5",
|
|
1598
1732
|
"google/gemini-flash-1.5-8b"
|
|
@@ -1608,6 +1742,7 @@ var OPEN_ROUTER_COMPUTER_USE_MODELS = /* @__PURE__ */ new Set([
|
|
|
1608
1742
|
]);
|
|
1609
1743
|
var OPEN_ROUTER_REQUIRED_REASONING_BUDGET_MODELS = /* @__PURE__ */ new Set([
|
|
1610
1744
|
"anthropic/claude-3.7-sonnet:thinking",
|
|
1745
|
+
"google/gemini-2.5-pro",
|
|
1611
1746
|
"google/gemini-2.5-flash-preview-05-20:thinking"
|
|
1612
1747
|
]);
|
|
1613
1748
|
var OPEN_ROUTER_REASONING_BUDGET_MODELS = /* @__PURE__ */ new Set([
|
|
@@ -1615,7 +1750,10 @@ var OPEN_ROUTER_REASONING_BUDGET_MODELS = /* @__PURE__ */ new Set([
|
|
|
1615
1750
|
"anthropic/claude-opus-4",
|
|
1616
1751
|
"anthropic/claude-sonnet-4",
|
|
1617
1752
|
"google/gemini-2.5-pro-preview",
|
|
1753
|
+
"google/gemini-2.5-pro",
|
|
1618
1754
|
"google/gemini-2.5-flash-preview-05-20",
|
|
1755
|
+
"google/gemini-2.5-flash",
|
|
1756
|
+
"google/gemini-2.5-flash-lite-preview-06-17",
|
|
1619
1757
|
// Also include the models that require the reasoning budget to be enabled
|
|
1620
1758
|
// even though `OPEN_ROUTER_REQUIRED_REASONING_BUDGET_MODELS` takes precedence.
|
|
1621
1759
|
"anthropic/claude-3.7-sonnet:thinking",
|
|
@@ -1672,6 +1810,18 @@ var vertexModels = {
|
|
|
1672
1810
|
inputPrice: 0.15,
|
|
1673
1811
|
outputPrice: 0.6
|
|
1674
1812
|
},
|
|
1813
|
+
"gemini-2.5-flash": {
|
|
1814
|
+
maxTokens: 64e3,
|
|
1815
|
+
contextWindow: 1048576,
|
|
1816
|
+
supportsImages: true,
|
|
1817
|
+
supportsPromptCache: true,
|
|
1818
|
+
inputPrice: 0.3,
|
|
1819
|
+
outputPrice: 2.5,
|
|
1820
|
+
cacheReadsPrice: 0.075,
|
|
1821
|
+
cacheWritesPrice: 1,
|
|
1822
|
+
maxThinkingTokens: 24576,
|
|
1823
|
+
supportsReasoningBudget: true
|
|
1824
|
+
},
|
|
1675
1825
|
"gemini-2.5-flash-preview-04-17:thinking": {
|
|
1676
1826
|
maxTokens: 65535,
|
|
1677
1827
|
contextWindow: 1048576,
|
|
@@ -1717,6 +1867,31 @@ var vertexModels = {
|
|
|
1717
1867
|
maxThinkingTokens: 32768,
|
|
1718
1868
|
supportsReasoningBudget: true
|
|
1719
1869
|
},
|
|
1870
|
+
"gemini-2.5-pro": {
|
|
1871
|
+
maxTokens: 64e3,
|
|
1872
|
+
contextWindow: 1048576,
|
|
1873
|
+
supportsImages: true,
|
|
1874
|
+
supportsPromptCache: true,
|
|
1875
|
+
inputPrice: 2.5,
|
|
1876
|
+
outputPrice: 15,
|
|
1877
|
+
maxThinkingTokens: 32768,
|
|
1878
|
+
supportsReasoningBudget: true,
|
|
1879
|
+
requiredReasoningBudget: true,
|
|
1880
|
+
tiers: [
|
|
1881
|
+
{
|
|
1882
|
+
contextWindow: 2e5,
|
|
1883
|
+
inputPrice: 1.25,
|
|
1884
|
+
outputPrice: 10,
|
|
1885
|
+
cacheReadsPrice: 0.31
|
|
1886
|
+
},
|
|
1887
|
+
{
|
|
1888
|
+
contextWindow: Infinity,
|
|
1889
|
+
inputPrice: 2.5,
|
|
1890
|
+
outputPrice: 15,
|
|
1891
|
+
cacheReadsPrice: 0.625
|
|
1892
|
+
}
|
|
1893
|
+
]
|
|
1894
|
+
},
|
|
1720
1895
|
"gemini-2.5-pro-exp-03-25": {
|
|
1721
1896
|
maxTokens: 65535,
|
|
1722
1897
|
contextWindow: 1048576,
|
|
@@ -1870,6 +2045,18 @@ var vertexModels = {
|
|
|
1870
2045
|
outputPrice: 1.25,
|
|
1871
2046
|
cacheWritesPrice: 0.3,
|
|
1872
2047
|
cacheReadsPrice: 0.03
|
|
2048
|
+
},
|
|
2049
|
+
"gemini-2.5-flash-lite-preview-06-17": {
|
|
2050
|
+
maxTokens: 64e3,
|
|
2051
|
+
contextWindow: 1048576,
|
|
2052
|
+
supportsImages: true,
|
|
2053
|
+
supportsPromptCache: true,
|
|
2054
|
+
inputPrice: 0.1,
|
|
2055
|
+
outputPrice: 0.4,
|
|
2056
|
+
cacheReadsPrice: 0.025,
|
|
2057
|
+
cacheWritesPrice: 1,
|
|
2058
|
+
maxThinkingTokens: 24576,
|
|
2059
|
+
supportsReasoningBudget: true
|
|
1873
2060
|
}
|
|
1874
2061
|
};
|
|
1875
2062
|
var VERTEX_REGIONS = [
|
|
@@ -2033,153 +2220,69 @@ var vscodeLlmModels = {
|
|
|
2033
2220
|
// src/providers/xai.ts
|
|
2034
2221
|
var xaiDefaultModelId = "grok-3";
|
|
2035
2222
|
var xaiModels = {
|
|
2036
|
-
"grok-
|
|
2037
|
-
maxTokens: 8192,
|
|
2038
|
-
contextWindow: 131072,
|
|
2039
|
-
supportsImages: false,
|
|
2040
|
-
supportsPromptCache: false,
|
|
2041
|
-
inputPrice: 3,
|
|
2042
|
-
outputPrice: 15,
|
|
2043
|
-
description: "xAI's Grok-3 beta model with 131K context window"
|
|
2044
|
-
},
|
|
2045
|
-
"grok-3-fast-beta": {
|
|
2046
|
-
maxTokens: 8192,
|
|
2047
|
-
contextWindow: 131072,
|
|
2048
|
-
supportsImages: false,
|
|
2049
|
-
supportsPromptCache: false,
|
|
2050
|
-
inputPrice: 5,
|
|
2051
|
-
outputPrice: 25,
|
|
2052
|
-
description: "xAI's Grok-3 fast beta model with 131K context window"
|
|
2053
|
-
},
|
|
2054
|
-
"grok-3-mini-beta": {
|
|
2223
|
+
"grok-2-1212": {
|
|
2055
2224
|
maxTokens: 8192,
|
|
2056
2225
|
contextWindow: 131072,
|
|
2057
2226
|
supportsImages: false,
|
|
2058
2227
|
supportsPromptCache: false,
|
|
2059
|
-
inputPrice:
|
|
2060
|
-
outputPrice:
|
|
2061
|
-
description: "xAI's Grok-
|
|
2062
|
-
supportsReasoningEffort: true
|
|
2228
|
+
inputPrice: 2,
|
|
2229
|
+
outputPrice: 10,
|
|
2230
|
+
description: "xAI's Grok-2 model (version 1212) with 128K context window"
|
|
2063
2231
|
},
|
|
2064
|
-
"grok-
|
|
2232
|
+
"grok-2-vision-1212": {
|
|
2065
2233
|
maxTokens: 8192,
|
|
2066
|
-
contextWindow:
|
|
2067
|
-
supportsImages:
|
|
2234
|
+
contextWindow: 32768,
|
|
2235
|
+
supportsImages: true,
|
|
2068
2236
|
supportsPromptCache: false,
|
|
2069
|
-
inputPrice:
|
|
2070
|
-
outputPrice:
|
|
2071
|
-
description: "xAI's Grok-
|
|
2072
|
-
supportsReasoningEffort: true
|
|
2237
|
+
inputPrice: 2,
|
|
2238
|
+
outputPrice: 10,
|
|
2239
|
+
description: "xAI's Grok-2 Vision model (version 1212) with image support and 32K context window"
|
|
2073
2240
|
},
|
|
2074
2241
|
"grok-3": {
|
|
2075
2242
|
maxTokens: 8192,
|
|
2076
2243
|
contextWindow: 131072,
|
|
2077
2244
|
supportsImages: false,
|
|
2078
|
-
supportsPromptCache:
|
|
2245
|
+
supportsPromptCache: true,
|
|
2079
2246
|
inputPrice: 3,
|
|
2080
2247
|
outputPrice: 15,
|
|
2081
|
-
|
|
2248
|
+
cacheWritesPrice: 0.75,
|
|
2249
|
+
cacheReadsPrice: 0.75,
|
|
2250
|
+
description: "xAI's Grok-3 model with 128K context window"
|
|
2082
2251
|
},
|
|
2083
2252
|
"grok-3-fast": {
|
|
2084
2253
|
maxTokens: 8192,
|
|
2085
2254
|
contextWindow: 131072,
|
|
2086
2255
|
supportsImages: false,
|
|
2087
|
-
supportsPromptCache:
|
|
2256
|
+
supportsPromptCache: true,
|
|
2088
2257
|
inputPrice: 5,
|
|
2089
2258
|
outputPrice: 25,
|
|
2090
|
-
|
|
2259
|
+
cacheWritesPrice: 1.25,
|
|
2260
|
+
cacheReadsPrice: 1.25,
|
|
2261
|
+
description: "xAI's Grok-3 fast model with 128K context window"
|
|
2091
2262
|
},
|
|
2092
2263
|
"grok-3-mini": {
|
|
2093
2264
|
maxTokens: 8192,
|
|
2094
2265
|
contextWindow: 131072,
|
|
2095
2266
|
supportsImages: false,
|
|
2096
|
-
supportsPromptCache:
|
|
2267
|
+
supportsPromptCache: true,
|
|
2097
2268
|
inputPrice: 0.3,
|
|
2098
2269
|
outputPrice: 0.5,
|
|
2099
|
-
|
|
2270
|
+
cacheWritesPrice: 0.07,
|
|
2271
|
+
cacheReadsPrice: 0.07,
|
|
2272
|
+
description: "xAI's Grok-3 mini model with 128K context window",
|
|
2100
2273
|
supportsReasoningEffort: true
|
|
2101
2274
|
},
|
|
2102
2275
|
"grok-3-mini-fast": {
|
|
2103
2276
|
maxTokens: 8192,
|
|
2104
2277
|
contextWindow: 131072,
|
|
2105
2278
|
supportsImages: false,
|
|
2106
|
-
supportsPromptCache:
|
|
2279
|
+
supportsPromptCache: true,
|
|
2107
2280
|
inputPrice: 0.6,
|
|
2108
2281
|
outputPrice: 4,
|
|
2109
|
-
|
|
2282
|
+
cacheWritesPrice: 0.15,
|
|
2283
|
+
cacheReadsPrice: 0.15,
|
|
2284
|
+
description: "xAI's Grok-3 mini fast model with 128K context window",
|
|
2110
2285
|
supportsReasoningEffort: true
|
|
2111
|
-
},
|
|
2112
|
-
"grok-2-latest": {
|
|
2113
|
-
maxTokens: 8192,
|
|
2114
|
-
contextWindow: 131072,
|
|
2115
|
-
supportsImages: false,
|
|
2116
|
-
supportsPromptCache: false,
|
|
2117
|
-
inputPrice: 2,
|
|
2118
|
-
outputPrice: 10,
|
|
2119
|
-
description: "xAI's Grok-2 model - latest version with 131K context window"
|
|
2120
|
-
},
|
|
2121
|
-
"grok-2": {
|
|
2122
|
-
maxTokens: 8192,
|
|
2123
|
-
contextWindow: 131072,
|
|
2124
|
-
supportsImages: false,
|
|
2125
|
-
supportsPromptCache: false,
|
|
2126
|
-
inputPrice: 2,
|
|
2127
|
-
outputPrice: 10,
|
|
2128
|
-
description: "xAI's Grok-2 model with 131K context window"
|
|
2129
|
-
},
|
|
2130
|
-
"grok-2-1212": {
|
|
2131
|
-
maxTokens: 8192,
|
|
2132
|
-
contextWindow: 131072,
|
|
2133
|
-
supportsImages: false,
|
|
2134
|
-
supportsPromptCache: false,
|
|
2135
|
-
inputPrice: 2,
|
|
2136
|
-
outputPrice: 10,
|
|
2137
|
-
description: "xAI's Grok-2 model (version 1212) with 131K context window"
|
|
2138
|
-
},
|
|
2139
|
-
"grok-2-vision-latest": {
|
|
2140
|
-
maxTokens: 8192,
|
|
2141
|
-
contextWindow: 32768,
|
|
2142
|
-
supportsImages: true,
|
|
2143
|
-
supportsPromptCache: false,
|
|
2144
|
-
inputPrice: 2,
|
|
2145
|
-
outputPrice: 10,
|
|
2146
|
-
description: "xAI's Grok-2 Vision model - latest version with image support and 32K context window"
|
|
2147
|
-
},
|
|
2148
|
-
"grok-2-vision": {
|
|
2149
|
-
maxTokens: 8192,
|
|
2150
|
-
contextWindow: 32768,
|
|
2151
|
-
supportsImages: true,
|
|
2152
|
-
supportsPromptCache: false,
|
|
2153
|
-
inputPrice: 2,
|
|
2154
|
-
outputPrice: 10,
|
|
2155
|
-
description: "xAI's Grok-2 Vision model with image support and 32K context window"
|
|
2156
|
-
},
|
|
2157
|
-
"grok-2-vision-1212": {
|
|
2158
|
-
maxTokens: 8192,
|
|
2159
|
-
contextWindow: 32768,
|
|
2160
|
-
supportsImages: true,
|
|
2161
|
-
supportsPromptCache: false,
|
|
2162
|
-
inputPrice: 2,
|
|
2163
|
-
outputPrice: 10,
|
|
2164
|
-
description: "xAI's Grok-2 Vision model (version 1212) with image support and 32K context window"
|
|
2165
|
-
},
|
|
2166
|
-
"grok-vision-beta": {
|
|
2167
|
-
maxTokens: 8192,
|
|
2168
|
-
contextWindow: 8192,
|
|
2169
|
-
supportsImages: true,
|
|
2170
|
-
supportsPromptCache: false,
|
|
2171
|
-
inputPrice: 5,
|
|
2172
|
-
outputPrice: 15,
|
|
2173
|
-
description: "xAI's Grok Vision Beta model with image support and 8K context window"
|
|
2174
|
-
},
|
|
2175
|
-
"grok-beta": {
|
|
2176
|
-
maxTokens: 8192,
|
|
2177
|
-
contextWindow: 131072,
|
|
2178
|
-
supportsImages: false,
|
|
2179
|
-
supportsPromptCache: false,
|
|
2180
|
-
inputPrice: 5,
|
|
2181
|
-
outputPrice: 15,
|
|
2182
|
-
description: "xAI's Grok Beta model (legacy) with 131K context window"
|
|
2183
2286
|
}
|
|
2184
2287
|
};
|
|
2185
2288
|
|
|
@@ -2211,11 +2314,6 @@ var import_zod12 = require("zod");
|
|
|
2211
2314
|
// src/global-settings.ts
|
|
2212
2315
|
var import_zod11 = require("zod");
|
|
2213
2316
|
|
|
2214
|
-
// src/type-fu.ts
|
|
2215
|
-
function keysOf() {
|
|
2216
|
-
return (keys) => keys;
|
|
2217
|
-
}
|
|
2218
|
-
|
|
2219
2317
|
// src/provider-settings.ts
|
|
2220
2318
|
var import_zod3 = require("zod");
|
|
2221
2319
|
|
|
@@ -2260,6 +2358,7 @@ var modelInfoSchema = import_zod2.z.object({
|
|
|
2260
2358
|
// src/provider-settings.ts
|
|
2261
2359
|
var providerNames = [
|
|
2262
2360
|
"anthropic",
|
|
2361
|
+
"claude-code",
|
|
2263
2362
|
"glama",
|
|
2264
2363
|
"openrouter",
|
|
2265
2364
|
"bedrock",
|
|
@@ -2307,6 +2406,9 @@ var anthropicSchema = apiModelIdProviderModelSchema.extend({
|
|
|
2307
2406
|
anthropicBaseUrl: import_zod3.z.string().optional(),
|
|
2308
2407
|
anthropicUseAuthToken: import_zod3.z.boolean().optional()
|
|
2309
2408
|
});
|
|
2409
|
+
var claudeCodeSchema = apiModelIdProviderModelSchema.extend({
|
|
2410
|
+
claudeCodePath: import_zod3.z.string().optional()
|
|
2411
|
+
});
|
|
2310
2412
|
var glamaSchema = baseProviderSettingsSchema.extend({
|
|
2311
2413
|
glamaModelId: import_zod3.z.string().optional(),
|
|
2312
2414
|
glamaApiKey: import_zod3.z.string().optional()
|
|
@@ -2417,6 +2519,7 @@ var defaultSchema = import_zod3.z.object({
|
|
|
2417
2519
|
});
|
|
2418
2520
|
var providerSettingsSchemaDiscriminated = import_zod3.z.discriminatedUnion("apiProvider", [
|
|
2419
2521
|
anthropicSchema.merge(import_zod3.z.object({ apiProvider: import_zod3.z.literal("anthropic") })),
|
|
2522
|
+
claudeCodeSchema.merge(import_zod3.z.object({ apiProvider: import_zod3.z.literal("claude-code") })),
|
|
2420
2523
|
glamaSchema.merge(import_zod3.z.object({ apiProvider: import_zod3.z.literal("glama") })),
|
|
2421
2524
|
openRouterSchema.merge(import_zod3.z.object({ apiProvider: import_zod3.z.literal("openrouter") })),
|
|
2422
2525
|
bedrockSchema.merge(import_zod3.z.object({ apiProvider: import_zod3.z.literal("bedrock") })),
|
|
@@ -2442,6 +2545,7 @@ var providerSettingsSchemaDiscriminated = import_zod3.z.discriminatedUnion("apiP
|
|
|
2442
2545
|
var providerSettingsSchema = import_zod3.z.object({
|
|
2443
2546
|
apiProvider: providerNamesSchema.optional(),
|
|
2444
2547
|
...anthropicSchema.shape,
|
|
2548
|
+
...claudeCodeSchema.shape,
|
|
2445
2549
|
...glamaSchema.shape,
|
|
2446
2550
|
...openRouterSchema.shape,
|
|
2447
2551
|
...bedrockSchema.shape,
|
|
@@ -2464,110 +2568,7 @@ var providerSettingsSchema = import_zod3.z.object({
|
|
|
2464
2568
|
...litellmSchema.shape,
|
|
2465
2569
|
...codebaseIndexProviderSchema.shape
|
|
2466
2570
|
});
|
|
2467
|
-
var PROVIDER_SETTINGS_KEYS =
|
|
2468
|
-
"apiProvider",
|
|
2469
|
-
// Anthropic
|
|
2470
|
-
"apiModelId",
|
|
2471
|
-
"apiKey",
|
|
2472
|
-
"anthropicBaseUrl",
|
|
2473
|
-
"anthropicUseAuthToken",
|
|
2474
|
-
// Glama
|
|
2475
|
-
"glamaModelId",
|
|
2476
|
-
"glamaApiKey",
|
|
2477
|
-
// OpenRouter
|
|
2478
|
-
"openRouterApiKey",
|
|
2479
|
-
"openRouterModelId",
|
|
2480
|
-
"openRouterBaseUrl",
|
|
2481
|
-
"openRouterSpecificProvider",
|
|
2482
|
-
"openRouterUseMiddleOutTransform",
|
|
2483
|
-
// Amazon Bedrock
|
|
2484
|
-
"awsAccessKey",
|
|
2485
|
-
"awsSecretKey",
|
|
2486
|
-
"awsSessionToken",
|
|
2487
|
-
"awsRegion",
|
|
2488
|
-
"awsUseCrossRegionInference",
|
|
2489
|
-
"awsUsePromptCache",
|
|
2490
|
-
"awsProfile",
|
|
2491
|
-
"awsUseProfile",
|
|
2492
|
-
"awsCustomArn",
|
|
2493
|
-
"awsModelContextWindow",
|
|
2494
|
-
"awsBedrockEndpointEnabled",
|
|
2495
|
-
"awsBedrockEndpoint",
|
|
2496
|
-
// Google Vertex
|
|
2497
|
-
"vertexKeyFile",
|
|
2498
|
-
"vertexJsonCredentials",
|
|
2499
|
-
"vertexProjectId",
|
|
2500
|
-
"vertexRegion",
|
|
2501
|
-
// OpenAI
|
|
2502
|
-
"openAiBaseUrl",
|
|
2503
|
-
"openAiApiKey",
|
|
2504
|
-
"openAiLegacyFormat",
|
|
2505
|
-
"openAiR1FormatEnabled",
|
|
2506
|
-
"openAiModelId",
|
|
2507
|
-
"openAiCustomModelInfo",
|
|
2508
|
-
"openAiUseAzure",
|
|
2509
|
-
"azureApiVersion",
|
|
2510
|
-
"openAiStreamingEnabled",
|
|
2511
|
-
"openAiHostHeader",
|
|
2512
|
-
// Keep temporarily for backward compatibility during migration.
|
|
2513
|
-
"openAiHeaders",
|
|
2514
|
-
// Ollama
|
|
2515
|
-
"ollamaModelId",
|
|
2516
|
-
"ollamaBaseUrl",
|
|
2517
|
-
// VS Code LM
|
|
2518
|
-
"vsCodeLmModelSelector",
|
|
2519
|
-
"lmStudioModelId",
|
|
2520
|
-
"lmStudioBaseUrl",
|
|
2521
|
-
"lmStudioDraftModelId",
|
|
2522
|
-
"lmStudioSpeculativeDecodingEnabled",
|
|
2523
|
-
// Gemini
|
|
2524
|
-
"geminiApiKey",
|
|
2525
|
-
"googleGeminiBaseUrl",
|
|
2526
|
-
// OpenAI Native
|
|
2527
|
-
"openAiNativeApiKey",
|
|
2528
|
-
"openAiNativeBaseUrl",
|
|
2529
|
-
// Mistral
|
|
2530
|
-
"mistralApiKey",
|
|
2531
|
-
"mistralCodestralUrl",
|
|
2532
|
-
// DeepSeek
|
|
2533
|
-
"deepSeekBaseUrl",
|
|
2534
|
-
"deepSeekApiKey",
|
|
2535
|
-
// Unbound
|
|
2536
|
-
"unboundApiKey",
|
|
2537
|
-
"unboundModelId",
|
|
2538
|
-
// Requesty
|
|
2539
|
-
"requestyApiKey",
|
|
2540
|
-
"requestyModelId",
|
|
2541
|
-
// Code Index
|
|
2542
|
-
"codeIndexOpenAiKey",
|
|
2543
|
-
"codeIndexQdrantApiKey",
|
|
2544
|
-
"codebaseIndexOpenAiCompatibleBaseUrl",
|
|
2545
|
-
"codebaseIndexOpenAiCompatibleApiKey",
|
|
2546
|
-
"codebaseIndexOpenAiCompatibleModelDimension",
|
|
2547
|
-
// Reasoning
|
|
2548
|
-
"enableReasoningEffort",
|
|
2549
|
-
"reasoningEffort",
|
|
2550
|
-
"modelMaxTokens",
|
|
2551
|
-
"modelMaxThinkingTokens",
|
|
2552
|
-
// Generic
|
|
2553
|
-
"includeMaxTokens",
|
|
2554
|
-
"diffEnabled",
|
|
2555
|
-
"fuzzyMatchThreshold",
|
|
2556
|
-
"modelTemperature",
|
|
2557
|
-
"rateLimitSeconds",
|
|
2558
|
-
// Fake AI
|
|
2559
|
-
"fakeAi",
|
|
2560
|
-
// X.AI (Grok)
|
|
2561
|
-
"xaiApiKey",
|
|
2562
|
-
// Groq
|
|
2563
|
-
"groqApiKey",
|
|
2564
|
-
// Chutes AI
|
|
2565
|
-
"chutesApiKey",
|
|
2566
|
-
// LiteLLM
|
|
2567
|
-
"litellmBaseUrl",
|
|
2568
|
-
"litellmApiKey",
|
|
2569
|
-
"litellmModelId"
|
|
2570
|
-
]);
|
|
2571
|
+
var PROVIDER_SETTINGS_KEYS = providerSettingsSchema.keyof().options;
|
|
2571
2572
|
var MODEL_ID_KEYS = [
|
|
2572
2573
|
"apiModelId",
|
|
2573
2574
|
"glamaModelId",
|
|
@@ -2603,18 +2604,11 @@ var historyItemSchema = import_zod4.z.object({
|
|
|
2603
2604
|
|
|
2604
2605
|
// src/experiment.ts
|
|
2605
2606
|
var import_zod5 = require("zod");
|
|
2606
|
-
var experimentIds = [
|
|
2607
|
-
"powerSteering",
|
|
2608
|
-
"marketplace",
|
|
2609
|
-
"concurrentFileReads",
|
|
2610
|
-
"disableCompletionCommand"
|
|
2611
|
-
];
|
|
2607
|
+
var experimentIds = ["powerSteering", "multiFileApplyDiff"];
|
|
2612
2608
|
var experimentIdsSchema = import_zod5.z.enum(experimentIds);
|
|
2613
2609
|
var experimentsSchema = import_zod5.z.object({
|
|
2614
|
-
powerSteering: import_zod5.z.boolean(),
|
|
2615
|
-
|
|
2616
|
-
concurrentFileReads: import_zod5.z.boolean(),
|
|
2617
|
-
disableCompletionCommand: import_zod5.z.boolean()
|
|
2610
|
+
powerSteering: import_zod5.z.boolean().optional(),
|
|
2611
|
+
multiFileApplyDiff: import_zod5.z.boolean().optional()
|
|
2618
2612
|
});
|
|
2619
2613
|
|
|
2620
2614
|
// src/telemetry.ts
|
|
@@ -2686,7 +2680,8 @@ var clineMessageSchema = import_zod6.z.object({
|
|
|
2686
2680
|
conversationHistoryIndex: import_zod6.z.number().optional(),
|
|
2687
2681
|
checkpoint: import_zod6.z.record(import_zod6.z.string(), import_zod6.z.unknown()).optional(),
|
|
2688
2682
|
progressStatus: toolProgressStatusSchema.optional(),
|
|
2689
|
-
contextCondense: contextCondenseSchema.optional()
|
|
2683
|
+
contextCondense: contextCondenseSchema.optional(),
|
|
2684
|
+
isProtected: import_zod6.z.boolean().optional()
|
|
2690
2685
|
});
|
|
2691
2686
|
var tokenUsageSchema = import_zod6.z.object({
|
|
2692
2687
|
totalTokensIn: import_zod6.z.number(),
|
|
@@ -2720,6 +2715,8 @@ var TelemetryEventName = /* @__PURE__ */ ((TelemetryEventName2) => {
|
|
|
2720
2715
|
TelemetryEventName2["AUTHENTICATION_INITIATED"] = "Authentication Initiated";
|
|
2721
2716
|
TelemetryEventName2["MARKETPLACE_ITEM_INSTALLED"] = "Marketplace Item Installed";
|
|
2722
2717
|
TelemetryEventName2["MARKETPLACE_ITEM_REMOVED"] = "Marketplace Item Removed";
|
|
2718
|
+
TelemetryEventName2["MARKETPLACE_TAB_VIEWED"] = "Marketplace Tab Viewed";
|
|
2719
|
+
TelemetryEventName2["MARKETPLACE_INSTALL_BUTTON_CLICKED"] = "Marketplace Install Button Clicked";
|
|
2723
2720
|
TelemetryEventName2["SCHEMA_VALIDATION_ERROR"] = "Schema Validation Error";
|
|
2724
2721
|
TelemetryEventName2["DIFF_APPLICATION_ERROR"] = "Diff Application Error";
|
|
2725
2722
|
TelemetryEventName2["SHELL_INTEGRATION_ERROR"] = "Shell Integration Error";
|
|
@@ -2919,7 +2916,8 @@ var commandIds = [
|
|
|
2919
2916
|
"newTask",
|
|
2920
2917
|
"setCustomStoragePath",
|
|
2921
2918
|
"focusInput",
|
|
2922
|
-
"acceptInput"
|
|
2919
|
+
"acceptInput",
|
|
2920
|
+
"focusPanel"
|
|
2923
2921
|
];
|
|
2924
2922
|
var languages = [
|
|
2925
2923
|
"ca",
|
|
@@ -2928,6 +2926,7 @@ var languages = [
|
|
|
2928
2926
|
"es",
|
|
2929
2927
|
"fr",
|
|
2930
2928
|
"hi",
|
|
2929
|
+
"id",
|
|
2931
2930
|
"it",
|
|
2932
2931
|
"ja",
|
|
2933
2932
|
"ko",
|
|
@@ -2958,6 +2957,7 @@ var globalSettingsSchema = import_zod11.z.object({
|
|
|
2958
2957
|
alwaysAllowReadOnlyOutsideWorkspace: import_zod11.z.boolean().optional(),
|
|
2959
2958
|
alwaysAllowWrite: import_zod11.z.boolean().optional(),
|
|
2960
2959
|
alwaysAllowWriteOutsideWorkspace: import_zod11.z.boolean().optional(),
|
|
2960
|
+
alwaysAllowWriteProtected: import_zod11.z.boolean().optional(),
|
|
2961
2961
|
writeDelayMs: import_zod11.z.number().optional(),
|
|
2962
2962
|
alwaysAllowBrowser: import_zod11.z.boolean().optional(),
|
|
2963
2963
|
alwaysApproveResubmit: import_zod11.z.boolean().optional(),
|
|
@@ -3012,80 +3012,12 @@ var globalSettingsSchema = import_zod11.z.object({
|
|
|
3012
3012
|
customModePrompts: customModePromptsSchema.optional(),
|
|
3013
3013
|
customSupportPrompts: customSupportPromptsSchema.optional(),
|
|
3014
3014
|
enhancementApiConfigId: import_zod11.z.string().optional(),
|
|
3015
|
-
historyPreviewCollapsed: import_zod11.z.boolean().optional()
|
|
3015
|
+
historyPreviewCollapsed: import_zod11.z.boolean().optional(),
|
|
3016
|
+
profileThresholds: import_zod11.z.record(import_zod11.z.string(), import_zod11.z.number()).optional()
|
|
3016
3017
|
});
|
|
3017
|
-
var GLOBAL_SETTINGS_KEYS =
|
|
3018
|
-
"currentApiConfigName",
|
|
3019
|
-
"listApiConfigMeta",
|
|
3020
|
-
"pinnedApiConfigs",
|
|
3021
|
-
"lastShownAnnouncementId",
|
|
3022
|
-
"customInstructions",
|
|
3023
|
-
"taskHistory",
|
|
3024
|
-
"condensingApiConfigId",
|
|
3025
|
-
"customCondensingPrompt",
|
|
3026
|
-
"autoApprovalEnabled",
|
|
3027
|
-
"alwaysAllowReadOnly",
|
|
3028
|
-
"alwaysAllowReadOnlyOutsideWorkspace",
|
|
3029
|
-
"alwaysAllowWrite",
|
|
3030
|
-
"alwaysAllowWriteOutsideWorkspace",
|
|
3031
|
-
"writeDelayMs",
|
|
3032
|
-
"alwaysAllowBrowser",
|
|
3033
|
-
"alwaysApproveResubmit",
|
|
3034
|
-
"requestDelaySeconds",
|
|
3035
|
-
"alwaysAllowMcp",
|
|
3036
|
-
"alwaysAllowModeSwitch",
|
|
3037
|
-
"alwaysAllowSubtasks",
|
|
3038
|
-
"alwaysAllowExecute",
|
|
3039
|
-
"allowedCommands",
|
|
3040
|
-
"allowedMaxRequests",
|
|
3041
|
-
"autoCondenseContext",
|
|
3042
|
-
"autoCondenseContextPercent",
|
|
3043
|
-
"maxConcurrentFileReads",
|
|
3044
|
-
"browserToolEnabled",
|
|
3045
|
-
"browserViewportSize",
|
|
3046
|
-
"screenshotQuality",
|
|
3047
|
-
"remoteBrowserEnabled",
|
|
3048
|
-
"remoteBrowserHost",
|
|
3049
|
-
"enableCheckpoints",
|
|
3050
|
-
"ttsEnabled",
|
|
3051
|
-
"ttsSpeed",
|
|
3052
|
-
"soundEnabled",
|
|
3053
|
-
"soundVolume",
|
|
3054
|
-
"maxOpenTabsContext",
|
|
3055
|
-
"maxWorkspaceFiles",
|
|
3056
|
-
"showRooIgnoredFiles",
|
|
3057
|
-
"maxReadFileLine",
|
|
3058
|
-
"terminalOutputLineLimit",
|
|
3059
|
-
"terminalShellIntegrationTimeout",
|
|
3060
|
-
"terminalShellIntegrationDisabled",
|
|
3061
|
-
"terminalCommandDelay",
|
|
3062
|
-
"terminalPowershellCounter",
|
|
3063
|
-
"terminalZshClearEolMark",
|
|
3064
|
-
"terminalZshOhMy",
|
|
3065
|
-
"terminalZshP10k",
|
|
3066
|
-
"terminalZdotdir",
|
|
3067
|
-
"terminalCompressProgressBar",
|
|
3068
|
-
"rateLimitSeconds",
|
|
3069
|
-
"diffEnabled",
|
|
3070
|
-
"fuzzyMatchThreshold",
|
|
3071
|
-
"experiments",
|
|
3072
|
-
"codebaseIndexModels",
|
|
3073
|
-
"codebaseIndexConfig",
|
|
3074
|
-
"language",
|
|
3075
|
-
"telemetrySetting",
|
|
3076
|
-
"mcpEnabled",
|
|
3077
|
-
"enableMcpServerCreation",
|
|
3078
|
-
"mode",
|
|
3079
|
-
"modeApiConfigs",
|
|
3080
|
-
"customModes",
|
|
3081
|
-
"customModePrompts",
|
|
3082
|
-
"customSupportPrompts",
|
|
3083
|
-
"enhancementApiConfigId",
|
|
3084
|
-
"cachedChromeHostUrl",
|
|
3085
|
-
"historyPreviewCollapsed"
|
|
3086
|
-
]);
|
|
3018
|
+
var GLOBAL_SETTINGS_KEYS = globalSettingsSchema.keyof().options;
|
|
3087
3019
|
var rooCodeSettingsSchema = providerSettingsSchema.merge(globalSettingsSchema);
|
|
3088
|
-
var SECRET_STATE_KEYS =
|
|
3020
|
+
var SECRET_STATE_KEYS = [
|
|
3089
3021
|
"apiKey",
|
|
3090
3022
|
"glamaApiKey",
|
|
3091
3023
|
"openRouterApiKey",
|
|
@@ -3106,7 +3038,7 @@ var SECRET_STATE_KEYS = keysOf()([
|
|
|
3106
3038
|
"codeIndexOpenAiKey",
|
|
3107
3039
|
"codeIndexQdrantApiKey",
|
|
3108
3040
|
"codebaseIndexOpenAiCompatibleApiKey"
|
|
3109
|
-
]
|
|
3041
|
+
];
|
|
3110
3042
|
var isSecretStateKey = (key) => SECRET_STATE_KEYS.includes(key);
|
|
3111
3043
|
var GLOBAL_STATE_KEYS = [...GLOBAL_SETTINGS_KEYS, ...PROVIDER_SETTINGS_KEYS].filter(
|
|
3112
3044
|
(key) => !SECRET_STATE_KEYS.includes(key)
|
|
@@ -3122,6 +3054,7 @@ var EVALS_SETTINGS = {
|
|
|
3122
3054
|
alwaysAllowReadOnlyOutsideWorkspace: false,
|
|
3123
3055
|
alwaysAllowWrite: true,
|
|
3124
3056
|
alwaysAllowWriteOutsideWorkspace: false,
|
|
3057
|
+
alwaysAllowWriteProtected: false,
|
|
3125
3058
|
writeDelayMs: 1e3,
|
|
3126
3059
|
alwaysAllowBrowser: true,
|
|
3127
3060
|
alwaysApproveResubmit: true,
|
|
@@ -3217,6 +3150,7 @@ var ORGANIZATION_ALLOW_ALL = {
|
|
|
3217
3150
|
var ORGANIZATION_DEFAULT = {
|
|
3218
3151
|
version: 0,
|
|
3219
3152
|
cloudSettings: {
|
|
3153
|
+
recordTaskMessages: true,
|
|
3220
3154
|
enableTaskSharing: true,
|
|
3221
3155
|
taskShareExpirationDays: 30
|
|
3222
3156
|
},
|
|
@@ -3226,11 +3160,16 @@ var ORGANIZATION_DEFAULT = {
|
|
|
3226
3160
|
var shareResponseSchema = import_zod12.z.object({
|
|
3227
3161
|
success: import_zod12.z.boolean(),
|
|
3228
3162
|
shareUrl: import_zod12.z.string().optional(),
|
|
3229
|
-
error: import_zod12.z.string().optional()
|
|
3163
|
+
error: import_zod12.z.string().optional(),
|
|
3164
|
+
isNewShare: import_zod12.z.boolean().optional(),
|
|
3165
|
+
manageUrl: import_zod12.z.string().optional()
|
|
3230
3166
|
});
|
|
3231
3167
|
|
|
3232
3168
|
// src/ipc.ts
|
|
3233
3169
|
var import_zod13 = require("zod");
|
|
3170
|
+
var isSubtaskSchema = import_zod13.z.object({
|
|
3171
|
+
isSubtask: import_zod13.z.boolean()
|
|
3172
|
+
});
|
|
3234
3173
|
var RooCodeEventName = /* @__PURE__ */ ((RooCodeEventName2) => {
|
|
3235
3174
|
RooCodeEventName2["Message"] = "message";
|
|
3236
3175
|
RooCodeEventName2["TaskCreated"] = "taskCreated";
|
|
@@ -3264,7 +3203,7 @@ var rooCodeEventsSchema = import_zod13.z.object({
|
|
|
3264
3203
|
["taskAskResponded" /* TaskAskResponded */]: import_zod13.z.tuple([import_zod13.z.string()]),
|
|
3265
3204
|
["taskAborted" /* TaskAborted */]: import_zod13.z.tuple([import_zod13.z.string()]),
|
|
3266
3205
|
["taskSpawned" /* TaskSpawned */]: import_zod13.z.tuple([import_zod13.z.string(), import_zod13.z.string()]),
|
|
3267
|
-
["taskCompleted" /* TaskCompleted */]: import_zod13.z.tuple([import_zod13.z.string(), tokenUsageSchema, toolUsageSchema]),
|
|
3206
|
+
["taskCompleted" /* TaskCompleted */]: import_zod13.z.tuple([import_zod13.z.string(), tokenUsageSchema, toolUsageSchema, isSubtaskSchema]),
|
|
3268
3207
|
["taskTokenUsageUpdated" /* TaskTokenUsageUpdated */]: import_zod13.z.tuple([import_zod13.z.string(), tokenUsageSchema]),
|
|
3269
3208
|
["taskToolFailed" /* TaskToolFailed */]: import_zod13.z.tuple([import_zod13.z.string(), toolNamesSchema, import_zod13.z.string()])
|
|
3270
3209
|
});
|
|
@@ -3403,28 +3342,104 @@ var ipcMessageSchema = import_zod13.z.discriminatedUnion("type", [
|
|
|
3403
3342
|
})
|
|
3404
3343
|
]);
|
|
3405
3344
|
|
|
3406
|
-
// src/
|
|
3345
|
+
// src/marketplace.ts
|
|
3407
3346
|
var import_zod14 = require("zod");
|
|
3408
|
-
var
|
|
3409
|
-
import_zod14.z.
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3347
|
+
var mcpParameterSchema = import_zod14.z.object({
|
|
3348
|
+
name: import_zod14.z.string().min(1),
|
|
3349
|
+
key: import_zod14.z.string().min(1),
|
|
3350
|
+
placeholder: import_zod14.z.string().optional(),
|
|
3351
|
+
optional: import_zod14.z.boolean().optional().default(false)
|
|
3352
|
+
});
|
|
3353
|
+
var mcpInstallationMethodSchema = import_zod14.z.object({
|
|
3354
|
+
name: import_zod14.z.string().min(1),
|
|
3355
|
+
content: import_zod14.z.string().min(1),
|
|
3356
|
+
parameters: import_zod14.z.array(mcpParameterSchema).optional(),
|
|
3357
|
+
prerequisites: import_zod14.z.array(import_zod14.z.string()).optional()
|
|
3358
|
+
});
|
|
3359
|
+
var marketplaceItemTypeSchema = import_zod14.z.enum(["mode", "mcp"]);
|
|
3360
|
+
var baseMarketplaceItemSchema = import_zod14.z.object({
|
|
3361
|
+
id: import_zod14.z.string().min(1),
|
|
3362
|
+
name: import_zod14.z.string().min(1, "Name is required"),
|
|
3363
|
+
description: import_zod14.z.string(),
|
|
3364
|
+
author: import_zod14.z.string().optional(),
|
|
3365
|
+
authorUrl: import_zod14.z.string().url("Author URL must be a valid URL").optional(),
|
|
3366
|
+
tags: import_zod14.z.array(import_zod14.z.string()).optional(),
|
|
3367
|
+
prerequisites: import_zod14.z.array(import_zod14.z.string()).optional()
|
|
3368
|
+
});
|
|
3369
|
+
var modeMarketplaceItemSchema = baseMarketplaceItemSchema.extend({
|
|
3370
|
+
content: import_zod14.z.string().min(1)
|
|
3371
|
+
// YAML content for modes
|
|
3372
|
+
});
|
|
3373
|
+
var mcpMarketplaceItemSchema = baseMarketplaceItemSchema.extend({
|
|
3374
|
+
url: import_zod14.z.string().url(),
|
|
3375
|
+
// Required url field
|
|
3376
|
+
content: import_zod14.z.union([import_zod14.z.string().min(1), import_zod14.z.array(mcpInstallationMethodSchema)]),
|
|
3377
|
+
// Single config or array of methods
|
|
3378
|
+
parameters: import_zod14.z.array(mcpParameterSchema).optional()
|
|
3379
|
+
});
|
|
3380
|
+
var marketplaceItemSchema = import_zod14.z.discriminatedUnion("type", [
|
|
3381
|
+
// Mode marketplace item
|
|
3382
|
+
modeMarketplaceItemSchema.extend({
|
|
3383
|
+
type: import_zod14.z.literal("mode")
|
|
3384
|
+
}),
|
|
3385
|
+
// MCP marketplace item
|
|
3386
|
+
mcpMarketplaceItemSchema.extend({
|
|
3387
|
+
type: import_zod14.z.literal("mcp")
|
|
3388
|
+
})
|
|
3389
|
+
]);
|
|
3390
|
+
var installMarketplaceItemOptionsSchema = import_zod14.z.object({
|
|
3391
|
+
target: import_zod14.z.enum(["global", "project"]).optional().default("project"),
|
|
3392
|
+
parameters: import_zod14.z.record(import_zod14.z.string(), import_zod14.z.any()).optional()
|
|
3393
|
+
});
|
|
3394
|
+
|
|
3395
|
+
// src/mcp.ts
|
|
3396
|
+
var import_zod15 = require("zod");
|
|
3397
|
+
var mcpExecutionStatusSchema = import_zod15.z.discriminatedUnion("status", [
|
|
3398
|
+
import_zod15.z.object({
|
|
3399
|
+
executionId: import_zod15.z.string(),
|
|
3400
|
+
status: import_zod15.z.literal("started"),
|
|
3401
|
+
serverName: import_zod15.z.string(),
|
|
3402
|
+
toolName: import_zod15.z.string()
|
|
3403
|
+
}),
|
|
3404
|
+
import_zod15.z.object({
|
|
3405
|
+
executionId: import_zod15.z.string(),
|
|
3406
|
+
status: import_zod15.z.literal("output"),
|
|
3407
|
+
response: import_zod15.z.string()
|
|
3408
|
+
}),
|
|
3409
|
+
import_zod15.z.object({
|
|
3410
|
+
executionId: import_zod15.z.string(),
|
|
3411
|
+
status: import_zod15.z.literal("completed"),
|
|
3412
|
+
response: import_zod15.z.string().optional()
|
|
3413
|
+
}),
|
|
3414
|
+
import_zod15.z.object({
|
|
3415
|
+
executionId: import_zod15.z.string(),
|
|
3416
|
+
status: import_zod15.z.literal("error"),
|
|
3417
|
+
error: import_zod15.z.string().optional()
|
|
3418
|
+
})
|
|
3419
|
+
]);
|
|
3420
|
+
|
|
3421
|
+
// src/terminal.ts
|
|
3422
|
+
var import_zod16 = require("zod");
|
|
3423
|
+
var commandExecutionStatusSchema = import_zod16.z.discriminatedUnion("status", [
|
|
3424
|
+
import_zod16.z.object({
|
|
3425
|
+
executionId: import_zod16.z.string(),
|
|
3426
|
+
status: import_zod16.z.literal("started"),
|
|
3427
|
+
pid: import_zod16.z.number().optional(),
|
|
3428
|
+
command: import_zod16.z.string()
|
|
3414
3429
|
}),
|
|
3415
|
-
|
|
3416
|
-
executionId:
|
|
3417
|
-
status:
|
|
3418
|
-
output:
|
|
3430
|
+
import_zod16.z.object({
|
|
3431
|
+
executionId: import_zod16.z.string(),
|
|
3432
|
+
status: import_zod16.z.literal("output"),
|
|
3433
|
+
output: import_zod16.z.string()
|
|
3419
3434
|
}),
|
|
3420
|
-
|
|
3421
|
-
executionId:
|
|
3422
|
-
status:
|
|
3423
|
-
exitCode:
|
|
3435
|
+
import_zod16.z.object({
|
|
3436
|
+
executionId: import_zod16.z.string(),
|
|
3437
|
+
status: import_zod16.z.literal("exited"),
|
|
3438
|
+
exitCode: import_zod16.z.number().optional()
|
|
3424
3439
|
}),
|
|
3425
|
-
|
|
3426
|
-
executionId:
|
|
3427
|
-
status:
|
|
3440
|
+
import_zod16.z.object({
|
|
3441
|
+
executionId: import_zod16.z.string(),
|
|
3442
|
+
status: import_zod16.z.literal("fallback")
|
|
3428
3443
|
})
|
|
3429
3444
|
]);
|
|
3430
3445
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -3472,6 +3487,8 @@ var commandExecutionStatusSchema = import_zod14.z.discriminatedUnion("status", [
|
|
|
3472
3487
|
bedrockModels,
|
|
3473
3488
|
chutesDefaultModelId,
|
|
3474
3489
|
chutesModels,
|
|
3490
|
+
claudeCodeDefaultModelId,
|
|
3491
|
+
claudeCodeModels,
|
|
3475
3492
|
clineAskSchema,
|
|
3476
3493
|
clineAsks,
|
|
3477
3494
|
clineMessageSchema,
|
|
@@ -3503,22 +3520,34 @@ var commandExecutionStatusSchema = import_zod14.z.discriminatedUnion("status", [
|
|
|
3503
3520
|
groupEntrySchema,
|
|
3504
3521
|
groupOptionsSchema,
|
|
3505
3522
|
historyItemSchema,
|
|
3523
|
+
installMarketplaceItemOptionsSchema,
|
|
3506
3524
|
ipcMessageSchema,
|
|
3507
3525
|
isGlobalStateKey,
|
|
3508
3526
|
isLanguage,
|
|
3509
3527
|
isModelParameter,
|
|
3510
3528
|
isSecretStateKey,
|
|
3511
|
-
|
|
3529
|
+
isSubtaskSchema,
|
|
3530
|
+
lMStudioDefaultModelId,
|
|
3531
|
+
lMStudioDefaultModelInfo,
|
|
3512
3532
|
languages,
|
|
3513
3533
|
languagesSchema,
|
|
3514
3534
|
litellmDefaultModelId,
|
|
3515
3535
|
litellmDefaultModelInfo,
|
|
3536
|
+
marketplaceItemSchema,
|
|
3537
|
+
marketplaceItemTypeSchema,
|
|
3538
|
+
mcpExecutionStatusSchema,
|
|
3539
|
+
mcpInstallationMethodSchema,
|
|
3540
|
+
mcpMarketplaceItemSchema,
|
|
3541
|
+
mcpParameterSchema,
|
|
3516
3542
|
mistralDefaultModelId,
|
|
3517
3543
|
mistralModels,
|
|
3518
3544
|
modeConfigSchema,
|
|
3545
|
+
modeMarketplaceItemSchema,
|
|
3519
3546
|
modelInfoSchema,
|
|
3520
3547
|
modelParameters,
|
|
3521
3548
|
modelParametersSchema,
|
|
3549
|
+
ollamaDefaultModelId,
|
|
3550
|
+
ollamaDefaultModelInfo,
|
|
3522
3551
|
openAiModelInfoSaneDefaults,
|
|
3523
3552
|
openAiNativeDefaultModelId,
|
|
3524
3553
|
openAiNativeModels,
|