@roo-code/types 1.27.0 → 1.29.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 +264 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +657 -180
- package/dist/index.d.ts +657 -180
- package/dist/index.js +255 -26
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -63,11 +63,14 @@ __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,
|
|
69
71
|
clineSaySchema: () => clineSaySchema,
|
|
70
72
|
clineSays: () => clineSays,
|
|
73
|
+
cloudTelemetryPropertiesSchema: () => cloudTelemetryPropertiesSchema,
|
|
71
74
|
codeActionIds: () => codeActionIds,
|
|
72
75
|
codebaseIndexConfigSchema: () => codebaseIndexConfigSchema,
|
|
73
76
|
codebaseIndexModelsSchema: () => codebaseIndexModelsSchema,
|
|
@@ -86,6 +89,7 @@ __export(index_exports, {
|
|
|
86
89
|
geminiDefaultModelId: () => geminiDefaultModelId,
|
|
87
90
|
geminiModels: () => geminiModels,
|
|
88
91
|
getModelId: () => getModelId,
|
|
92
|
+
gitPropertiesSchema: () => gitPropertiesSchema,
|
|
89
93
|
glamaDefaultModelId: () => glamaDefaultModelId,
|
|
90
94
|
glamaDefaultModelInfo: () => glamaDefaultModelInfo,
|
|
91
95
|
globalSettingsSchema: () => globalSettingsSchema,
|
|
@@ -100,6 +104,9 @@ __export(index_exports, {
|
|
|
100
104
|
isLanguage: () => isLanguage,
|
|
101
105
|
isModelParameter: () => isModelParameter,
|
|
102
106
|
isSecretStateKey: () => isSecretStateKey,
|
|
107
|
+
isSubtaskSchema: () => isSubtaskSchema,
|
|
108
|
+
lMStudioDefaultModelId: () => lMStudioDefaultModelId,
|
|
109
|
+
lMStudioDefaultModelInfo: () => lMStudioDefaultModelInfo,
|
|
103
110
|
languages: () => languages,
|
|
104
111
|
languagesSchema: () => languagesSchema,
|
|
105
112
|
litellmDefaultModelId: () => litellmDefaultModelId,
|
|
@@ -117,6 +124,8 @@ __export(index_exports, {
|
|
|
117
124
|
modelInfoSchema: () => modelInfoSchema,
|
|
118
125
|
modelParameters: () => modelParameters,
|
|
119
126
|
modelParametersSchema: () => modelParametersSchema,
|
|
127
|
+
ollamaDefaultModelId: () => ollamaDefaultModelId,
|
|
128
|
+
ollamaDefaultModelInfo: () => ollamaDefaultModelInfo,
|
|
120
129
|
openAiModelInfoSaneDefaults: () => openAiModelInfoSaneDefaults,
|
|
121
130
|
openAiNativeDefaultModelId: () => openAiNativeDefaultModelId,
|
|
122
131
|
openAiNativeModels: () => openAiNativeModels,
|
|
@@ -904,6 +913,36 @@ var chutesModels = {
|
|
|
904
913
|
}
|
|
905
914
|
};
|
|
906
915
|
|
|
916
|
+
// src/providers/claude-code.ts
|
|
917
|
+
var claudeCodeDefaultModelId = "claude-sonnet-4-20250514";
|
|
918
|
+
var claudeCodeModels = {
|
|
919
|
+
"claude-sonnet-4-20250514": {
|
|
920
|
+
...anthropicModels["claude-sonnet-4-20250514"],
|
|
921
|
+
supportsImages: false,
|
|
922
|
+
supportsPromptCache: false
|
|
923
|
+
},
|
|
924
|
+
"claude-opus-4-20250514": {
|
|
925
|
+
...anthropicModels["claude-opus-4-20250514"],
|
|
926
|
+
supportsImages: false,
|
|
927
|
+
supportsPromptCache: false
|
|
928
|
+
},
|
|
929
|
+
"claude-3-7-sonnet-20250219": {
|
|
930
|
+
...anthropicModels["claude-3-7-sonnet-20250219"],
|
|
931
|
+
supportsImages: false,
|
|
932
|
+
supportsPromptCache: false
|
|
933
|
+
},
|
|
934
|
+
"claude-3-5-sonnet-20241022": {
|
|
935
|
+
...anthropicModels["claude-3-5-sonnet-20241022"],
|
|
936
|
+
supportsImages: false,
|
|
937
|
+
supportsPromptCache: false
|
|
938
|
+
},
|
|
939
|
+
"claude-3-5-haiku-20241022": {
|
|
940
|
+
...anthropicModels["claude-3-5-haiku-20241022"],
|
|
941
|
+
supportsImages: false,
|
|
942
|
+
supportsPromptCache: false
|
|
943
|
+
}
|
|
944
|
+
};
|
|
945
|
+
|
|
907
946
|
// src/providers/deepseek.ts
|
|
908
947
|
var deepSeekDefaultModelId = "deepseek-chat";
|
|
909
948
|
var deepSeekModels = {
|
|
@@ -985,6 +1024,18 @@ var geminiModels = {
|
|
|
985
1024
|
cacheReadsPrice: 0.0375,
|
|
986
1025
|
cacheWritesPrice: 1
|
|
987
1026
|
},
|
|
1027
|
+
"gemini-2.5-flash": {
|
|
1028
|
+
maxTokens: 64e3,
|
|
1029
|
+
contextWindow: 1048576,
|
|
1030
|
+
supportsImages: true,
|
|
1031
|
+
supportsPromptCache: true,
|
|
1032
|
+
inputPrice: 0.3,
|
|
1033
|
+
outputPrice: 2.5,
|
|
1034
|
+
cacheReadsPrice: 0.075,
|
|
1035
|
+
cacheWritesPrice: 1,
|
|
1036
|
+
maxThinkingTokens: 24576,
|
|
1037
|
+
supportsReasoningBudget: true
|
|
1038
|
+
},
|
|
988
1039
|
"gemini-2.5-pro-exp-03-25": {
|
|
989
1040
|
maxTokens: 65535,
|
|
990
1041
|
contextWindow: 1048576,
|
|
@@ -1070,6 +1121,34 @@ var geminiModels = {
|
|
|
1070
1121
|
}
|
|
1071
1122
|
]
|
|
1072
1123
|
},
|
|
1124
|
+
"gemini-2.5-pro": {
|
|
1125
|
+
maxTokens: 64e3,
|
|
1126
|
+
contextWindow: 1048576,
|
|
1127
|
+
supportsImages: true,
|
|
1128
|
+
supportsPromptCache: true,
|
|
1129
|
+
inputPrice: 2.5,
|
|
1130
|
+
// This is the pricing for prompts above 200k tokens.
|
|
1131
|
+
outputPrice: 15,
|
|
1132
|
+
cacheReadsPrice: 0.625,
|
|
1133
|
+
cacheWritesPrice: 4.5,
|
|
1134
|
+
maxThinkingTokens: 32768,
|
|
1135
|
+
supportsReasoningBudget: true,
|
|
1136
|
+
requiredReasoningBudget: true,
|
|
1137
|
+
tiers: [
|
|
1138
|
+
{
|
|
1139
|
+
contextWindow: 2e5,
|
|
1140
|
+
inputPrice: 1.25,
|
|
1141
|
+
outputPrice: 10,
|
|
1142
|
+
cacheReadsPrice: 0.31
|
|
1143
|
+
},
|
|
1144
|
+
{
|
|
1145
|
+
contextWindow: Infinity,
|
|
1146
|
+
inputPrice: 2.5,
|
|
1147
|
+
outputPrice: 15,
|
|
1148
|
+
cacheReadsPrice: 0.625
|
|
1149
|
+
}
|
|
1150
|
+
]
|
|
1151
|
+
},
|
|
1073
1152
|
"gemini-2.0-flash-001": {
|
|
1074
1153
|
maxTokens: 8192,
|
|
1075
1154
|
contextWindow: 1048576,
|
|
@@ -1184,6 +1263,18 @@ var geminiModels = {
|
|
|
1184
1263
|
supportsPromptCache: false,
|
|
1185
1264
|
inputPrice: 0,
|
|
1186
1265
|
outputPrice: 0
|
|
1266
|
+
},
|
|
1267
|
+
"gemini-2.5-flash-lite-preview-06-17": {
|
|
1268
|
+
maxTokens: 64e3,
|
|
1269
|
+
contextWindow: 1048576,
|
|
1270
|
+
supportsImages: true,
|
|
1271
|
+
supportsPromptCache: true,
|
|
1272
|
+
inputPrice: 0.1,
|
|
1273
|
+
outputPrice: 0.4,
|
|
1274
|
+
cacheReadsPrice: 0.025,
|
|
1275
|
+
cacheWritesPrice: 1,
|
|
1276
|
+
supportsReasoningBudget: true,
|
|
1277
|
+
maxThinkingTokens: 24576
|
|
1187
1278
|
}
|
|
1188
1279
|
};
|
|
1189
1280
|
|
|
@@ -1212,8 +1303,8 @@ var groqModels = {
|
|
|
1212
1303
|
contextWindow: 131072,
|
|
1213
1304
|
supportsImages: false,
|
|
1214
1305
|
supportsPromptCache: false,
|
|
1215
|
-
inputPrice: 0,
|
|
1216
|
-
outputPrice: 0,
|
|
1306
|
+
inputPrice: 0.05,
|
|
1307
|
+
outputPrice: 0.08,
|
|
1217
1308
|
description: "Meta Llama 3.1 8B Instant model, 128K context."
|
|
1218
1309
|
},
|
|
1219
1310
|
"llama-3.3-70b-versatile": {
|
|
@@ -1221,8 +1312,8 @@ var groqModels = {
|
|
|
1221
1312
|
contextWindow: 131072,
|
|
1222
1313
|
supportsImages: false,
|
|
1223
1314
|
supportsPromptCache: false,
|
|
1224
|
-
inputPrice: 0,
|
|
1225
|
-
outputPrice: 0,
|
|
1315
|
+
inputPrice: 0.59,
|
|
1316
|
+
outputPrice: 0.79,
|
|
1226
1317
|
description: "Meta Llama 3.3 70B Versatile model, 128K context."
|
|
1227
1318
|
},
|
|
1228
1319
|
"meta-llama/llama-4-scout-17b-16e-instruct": {
|
|
@@ -1230,8 +1321,8 @@ var groqModels = {
|
|
|
1230
1321
|
contextWindow: 131072,
|
|
1231
1322
|
supportsImages: false,
|
|
1232
1323
|
supportsPromptCache: false,
|
|
1233
|
-
inputPrice: 0,
|
|
1234
|
-
outputPrice: 0,
|
|
1324
|
+
inputPrice: 0.11,
|
|
1325
|
+
outputPrice: 0.34,
|
|
1235
1326
|
description: "Meta Llama 4 Scout 17B Instruct model, 128K context."
|
|
1236
1327
|
},
|
|
1237
1328
|
"meta-llama/llama-4-maverick-17b-128e-instruct": {
|
|
@@ -1239,8 +1330,8 @@ var groqModels = {
|
|
|
1239
1330
|
contextWindow: 131072,
|
|
1240
1331
|
supportsImages: false,
|
|
1241
1332
|
supportsPromptCache: false,
|
|
1242
|
-
inputPrice: 0,
|
|
1243
|
-
outputPrice: 0,
|
|
1333
|
+
inputPrice: 0.2,
|
|
1334
|
+
outputPrice: 0.6,
|
|
1244
1335
|
description: "Meta Llama 4 Maverick 17B Instruct model, 128K context."
|
|
1245
1336
|
},
|
|
1246
1337
|
"mistral-saba-24b": {
|
|
@@ -1248,8 +1339,8 @@ var groqModels = {
|
|
|
1248
1339
|
contextWindow: 32768,
|
|
1249
1340
|
supportsImages: false,
|
|
1250
1341
|
supportsPromptCache: false,
|
|
1251
|
-
inputPrice: 0,
|
|
1252
|
-
outputPrice: 0,
|
|
1342
|
+
inputPrice: 0.79,
|
|
1343
|
+
outputPrice: 0.79,
|
|
1253
1344
|
description: "Mistral Saba 24B model, 32K context."
|
|
1254
1345
|
},
|
|
1255
1346
|
"qwen-qwq-32b": {
|
|
@@ -1257,17 +1348,26 @@ var groqModels = {
|
|
|
1257
1348
|
contextWindow: 131072,
|
|
1258
1349
|
supportsImages: false,
|
|
1259
1350
|
supportsPromptCache: false,
|
|
1260
|
-
inputPrice: 0,
|
|
1261
|
-
outputPrice: 0,
|
|
1351
|
+
inputPrice: 0.29,
|
|
1352
|
+
outputPrice: 0.39,
|
|
1262
1353
|
description: "Alibaba Qwen QwQ 32B model, 128K context."
|
|
1263
1354
|
},
|
|
1355
|
+
"qwen/qwen3-32b": {
|
|
1356
|
+
maxTokens: 131072,
|
|
1357
|
+
contextWindow: 131072,
|
|
1358
|
+
supportsImages: false,
|
|
1359
|
+
supportsPromptCache: false,
|
|
1360
|
+
inputPrice: 0.29,
|
|
1361
|
+
outputPrice: 0.59,
|
|
1362
|
+
description: "Alibaba Qwen 3 32B model, 128K context."
|
|
1363
|
+
},
|
|
1264
1364
|
"deepseek-r1-distill-llama-70b": {
|
|
1265
1365
|
maxTokens: 131072,
|
|
1266
1366
|
contextWindow: 131072,
|
|
1267
1367
|
supportsImages: false,
|
|
1268
1368
|
supportsPromptCache: false,
|
|
1269
|
-
inputPrice: 0,
|
|
1270
|
-
outputPrice: 0,
|
|
1369
|
+
inputPrice: 0.75,
|
|
1370
|
+
outputPrice: 0.99,
|
|
1271
1371
|
description: "DeepSeek R1 Distill Llama 70B model, 128K context."
|
|
1272
1372
|
}
|
|
1273
1373
|
};
|
|
@@ -1319,10 +1419,39 @@ var LITELLM_COMPUTER_USE_MODELS = /* @__PURE__ */ new Set([
|
|
|
1319
1419
|
|
|
1320
1420
|
// src/providers/lm-studio.ts
|
|
1321
1421
|
var LMSTUDIO_DEFAULT_TEMPERATURE = 0;
|
|
1422
|
+
var lMStudioDefaultModelId = "mistralai/devstral-small-2505";
|
|
1423
|
+
var lMStudioDefaultModelInfo = {
|
|
1424
|
+
maxTokens: 8192,
|
|
1425
|
+
contextWindow: 2e5,
|
|
1426
|
+
supportsImages: true,
|
|
1427
|
+
supportsComputerUse: true,
|
|
1428
|
+
supportsPromptCache: true,
|
|
1429
|
+
inputPrice: 0,
|
|
1430
|
+
outputPrice: 0,
|
|
1431
|
+
cacheWritesPrice: 0,
|
|
1432
|
+
cacheReadsPrice: 0,
|
|
1433
|
+
description: "LM Studio hosted models"
|
|
1434
|
+
};
|
|
1322
1435
|
|
|
1323
1436
|
// src/providers/mistral.ts
|
|
1324
1437
|
var mistralDefaultModelId = "codestral-latest";
|
|
1325
1438
|
var mistralModels = {
|
|
1439
|
+
"magistral-medium-latest": {
|
|
1440
|
+
maxTokens: 41e3,
|
|
1441
|
+
contextWindow: 41e3,
|
|
1442
|
+
supportsImages: false,
|
|
1443
|
+
supportsPromptCache: false,
|
|
1444
|
+
inputPrice: 2,
|
|
1445
|
+
outputPrice: 5
|
|
1446
|
+
},
|
|
1447
|
+
"mistral-medium-latest": {
|
|
1448
|
+
maxTokens: 131e3,
|
|
1449
|
+
contextWindow: 131e3,
|
|
1450
|
+
supportsImages: true,
|
|
1451
|
+
supportsPromptCache: false,
|
|
1452
|
+
inputPrice: 0.4,
|
|
1453
|
+
outputPrice: 2
|
|
1454
|
+
},
|
|
1326
1455
|
"codestral-latest": {
|
|
1327
1456
|
maxTokens: 256e3,
|
|
1328
1457
|
contextWindow: 256e3,
|
|
@@ -1374,6 +1503,21 @@ var mistralModels = {
|
|
|
1374
1503
|
};
|
|
1375
1504
|
var MISTRAL_DEFAULT_TEMPERATURE = 0;
|
|
1376
1505
|
|
|
1506
|
+
// src/providers/ollama.ts
|
|
1507
|
+
var ollamaDefaultModelId = "devstral:24b";
|
|
1508
|
+
var ollamaDefaultModelInfo = {
|
|
1509
|
+
maxTokens: 4096,
|
|
1510
|
+
contextWindow: 2e5,
|
|
1511
|
+
supportsImages: true,
|
|
1512
|
+
supportsComputerUse: true,
|
|
1513
|
+
supportsPromptCache: true,
|
|
1514
|
+
inputPrice: 0,
|
|
1515
|
+
outputPrice: 0,
|
|
1516
|
+
cacheWritesPrice: 0,
|
|
1517
|
+
cacheReadsPrice: 0,
|
|
1518
|
+
description: "Ollama hosted models"
|
|
1519
|
+
};
|
|
1520
|
+
|
|
1377
1521
|
// src/providers/openai.ts
|
|
1378
1522
|
var openAiNativeDefaultModelId = "gpt-4.1";
|
|
1379
1523
|
var openAiNativeModels = {
|
|
@@ -1603,6 +1747,8 @@ var OPEN_ROUTER_PROMPT_CACHING_MODELS = /* @__PURE__ */ new Set([
|
|
|
1603
1747
|
"google/gemini-2.5-flash-preview:thinking",
|
|
1604
1748
|
"google/gemini-2.5-flash-preview-05-20",
|
|
1605
1749
|
"google/gemini-2.5-flash-preview-05-20:thinking",
|
|
1750
|
+
"google/gemini-2.5-flash",
|
|
1751
|
+
"google/gemini-2.5-flash-lite-preview-06-17",
|
|
1606
1752
|
"google/gemini-2.0-flash-001",
|
|
1607
1753
|
"google/gemini-flash-1.5",
|
|
1608
1754
|
"google/gemini-flash-1.5-8b"
|
|
@@ -1618,6 +1764,7 @@ var OPEN_ROUTER_COMPUTER_USE_MODELS = /* @__PURE__ */ new Set([
|
|
|
1618
1764
|
]);
|
|
1619
1765
|
var OPEN_ROUTER_REQUIRED_REASONING_BUDGET_MODELS = /* @__PURE__ */ new Set([
|
|
1620
1766
|
"anthropic/claude-3.7-sonnet:thinking",
|
|
1767
|
+
"google/gemini-2.5-pro",
|
|
1621
1768
|
"google/gemini-2.5-flash-preview-05-20:thinking"
|
|
1622
1769
|
]);
|
|
1623
1770
|
var OPEN_ROUTER_REASONING_BUDGET_MODELS = /* @__PURE__ */ new Set([
|
|
@@ -1625,7 +1772,10 @@ var OPEN_ROUTER_REASONING_BUDGET_MODELS = /* @__PURE__ */ new Set([
|
|
|
1625
1772
|
"anthropic/claude-opus-4",
|
|
1626
1773
|
"anthropic/claude-sonnet-4",
|
|
1627
1774
|
"google/gemini-2.5-pro-preview",
|
|
1775
|
+
"google/gemini-2.5-pro",
|
|
1628
1776
|
"google/gemini-2.5-flash-preview-05-20",
|
|
1777
|
+
"google/gemini-2.5-flash",
|
|
1778
|
+
"google/gemini-2.5-flash-lite-preview-06-17",
|
|
1629
1779
|
// Also include the models that require the reasoning budget to be enabled
|
|
1630
1780
|
// even though `OPEN_ROUTER_REQUIRED_REASONING_BUDGET_MODELS` takes precedence.
|
|
1631
1781
|
"anthropic/claude-3.7-sonnet:thinking",
|
|
@@ -1682,6 +1832,18 @@ var vertexModels = {
|
|
|
1682
1832
|
inputPrice: 0.15,
|
|
1683
1833
|
outputPrice: 0.6
|
|
1684
1834
|
},
|
|
1835
|
+
"gemini-2.5-flash": {
|
|
1836
|
+
maxTokens: 64e3,
|
|
1837
|
+
contextWindow: 1048576,
|
|
1838
|
+
supportsImages: true,
|
|
1839
|
+
supportsPromptCache: true,
|
|
1840
|
+
inputPrice: 0.3,
|
|
1841
|
+
outputPrice: 2.5,
|
|
1842
|
+
cacheReadsPrice: 0.075,
|
|
1843
|
+
cacheWritesPrice: 1,
|
|
1844
|
+
maxThinkingTokens: 24576,
|
|
1845
|
+
supportsReasoningBudget: true
|
|
1846
|
+
},
|
|
1685
1847
|
"gemini-2.5-flash-preview-04-17:thinking": {
|
|
1686
1848
|
maxTokens: 65535,
|
|
1687
1849
|
contextWindow: 1048576,
|
|
@@ -1727,6 +1889,31 @@ var vertexModels = {
|
|
|
1727
1889
|
maxThinkingTokens: 32768,
|
|
1728
1890
|
supportsReasoningBudget: true
|
|
1729
1891
|
},
|
|
1892
|
+
"gemini-2.5-pro": {
|
|
1893
|
+
maxTokens: 64e3,
|
|
1894
|
+
contextWindow: 1048576,
|
|
1895
|
+
supportsImages: true,
|
|
1896
|
+
supportsPromptCache: true,
|
|
1897
|
+
inputPrice: 2.5,
|
|
1898
|
+
outputPrice: 15,
|
|
1899
|
+
maxThinkingTokens: 32768,
|
|
1900
|
+
supportsReasoningBudget: true,
|
|
1901
|
+
requiredReasoningBudget: true,
|
|
1902
|
+
tiers: [
|
|
1903
|
+
{
|
|
1904
|
+
contextWindow: 2e5,
|
|
1905
|
+
inputPrice: 1.25,
|
|
1906
|
+
outputPrice: 10,
|
|
1907
|
+
cacheReadsPrice: 0.31
|
|
1908
|
+
},
|
|
1909
|
+
{
|
|
1910
|
+
contextWindow: Infinity,
|
|
1911
|
+
inputPrice: 2.5,
|
|
1912
|
+
outputPrice: 15,
|
|
1913
|
+
cacheReadsPrice: 0.625
|
|
1914
|
+
}
|
|
1915
|
+
]
|
|
1916
|
+
},
|
|
1730
1917
|
"gemini-2.5-pro-exp-03-25": {
|
|
1731
1918
|
maxTokens: 65535,
|
|
1732
1919
|
contextWindow: 1048576,
|
|
@@ -1880,6 +2067,18 @@ var vertexModels = {
|
|
|
1880
2067
|
outputPrice: 1.25,
|
|
1881
2068
|
cacheWritesPrice: 0.3,
|
|
1882
2069
|
cacheReadsPrice: 0.03
|
|
2070
|
+
},
|
|
2071
|
+
"gemini-2.5-flash-lite-preview-06-17": {
|
|
2072
|
+
maxTokens: 64e3,
|
|
2073
|
+
contextWindow: 1048576,
|
|
2074
|
+
supportsImages: true,
|
|
2075
|
+
supportsPromptCache: true,
|
|
2076
|
+
inputPrice: 0.1,
|
|
2077
|
+
outputPrice: 0.4,
|
|
2078
|
+
cacheReadsPrice: 0.025,
|
|
2079
|
+
cacheWritesPrice: 1,
|
|
2080
|
+
maxThinkingTokens: 24576,
|
|
2081
|
+
supportsReasoningBudget: true
|
|
1883
2082
|
}
|
|
1884
2083
|
};
|
|
1885
2084
|
var VERTEX_REGIONS = [
|
|
@@ -2181,6 +2380,7 @@ var modelInfoSchema = import_zod2.z.object({
|
|
|
2181
2380
|
// src/provider-settings.ts
|
|
2182
2381
|
var providerNames = [
|
|
2183
2382
|
"anthropic",
|
|
2383
|
+
"claude-code",
|
|
2184
2384
|
"glama",
|
|
2185
2385
|
"openrouter",
|
|
2186
2386
|
"bedrock",
|
|
@@ -2228,6 +2428,9 @@ var anthropicSchema = apiModelIdProviderModelSchema.extend({
|
|
|
2228
2428
|
anthropicBaseUrl: import_zod3.z.string().optional(),
|
|
2229
2429
|
anthropicUseAuthToken: import_zod3.z.boolean().optional()
|
|
2230
2430
|
});
|
|
2431
|
+
var claudeCodeSchema = apiModelIdProviderModelSchema.extend({
|
|
2432
|
+
claudeCodePath: import_zod3.z.string().optional()
|
|
2433
|
+
});
|
|
2231
2434
|
var glamaSchema = baseProviderSettingsSchema.extend({
|
|
2232
2435
|
glamaModelId: import_zod3.z.string().optional(),
|
|
2233
2436
|
glamaApiKey: import_zod3.z.string().optional()
|
|
@@ -2338,6 +2541,7 @@ var defaultSchema = import_zod3.z.object({
|
|
|
2338
2541
|
});
|
|
2339
2542
|
var providerSettingsSchemaDiscriminated = import_zod3.z.discriminatedUnion("apiProvider", [
|
|
2340
2543
|
anthropicSchema.merge(import_zod3.z.object({ apiProvider: import_zod3.z.literal("anthropic") })),
|
|
2544
|
+
claudeCodeSchema.merge(import_zod3.z.object({ apiProvider: import_zod3.z.literal("claude-code") })),
|
|
2341
2545
|
glamaSchema.merge(import_zod3.z.object({ apiProvider: import_zod3.z.literal("glama") })),
|
|
2342
2546
|
openRouterSchema.merge(import_zod3.z.object({ apiProvider: import_zod3.z.literal("openrouter") })),
|
|
2343
2547
|
bedrockSchema.merge(import_zod3.z.object({ apiProvider: import_zod3.z.literal("bedrock") })),
|
|
@@ -2363,6 +2567,7 @@ var providerSettingsSchemaDiscriminated = import_zod3.z.discriminatedUnion("apiP
|
|
|
2363
2567
|
var providerSettingsSchema = import_zod3.z.object({
|
|
2364
2568
|
apiProvider: providerNamesSchema.optional(),
|
|
2365
2569
|
...anthropicSchema.shape,
|
|
2570
|
+
...claudeCodeSchema.shape,
|
|
2366
2571
|
...glamaSchema.shape,
|
|
2367
2572
|
...openRouterSchema.shape,
|
|
2368
2573
|
...bedrockSchema.shape,
|
|
@@ -2421,12 +2626,10 @@ var historyItemSchema = import_zod4.z.object({
|
|
|
2421
2626
|
|
|
2422
2627
|
// src/experiment.ts
|
|
2423
2628
|
var import_zod5 = require("zod");
|
|
2424
|
-
var experimentIds = ["powerSteering", "
|
|
2629
|
+
var experimentIds = ["powerSteering", "multiFileApplyDiff"];
|
|
2425
2630
|
var experimentIdsSchema = import_zod5.z.enum(experimentIds);
|
|
2426
2631
|
var experimentsSchema = import_zod5.z.object({
|
|
2427
2632
|
powerSteering: import_zod5.z.boolean().optional(),
|
|
2428
|
-
disableCompletionCommand: import_zod5.z.boolean().optional(),
|
|
2429
|
-
marketplace: import_zod5.z.boolean().optional(),
|
|
2430
2633
|
multiFileApplyDiff: import_zod5.z.boolean().optional()
|
|
2431
2634
|
});
|
|
2432
2635
|
|
|
@@ -2526,6 +2729,9 @@ var TelemetryEventName = /* @__PURE__ */ ((TelemetryEventName2) => {
|
|
|
2526
2729
|
TelemetryEventName2["CHECKPOINT_CREATED"] = "Checkpoint Created";
|
|
2527
2730
|
TelemetryEventName2["CHECKPOINT_RESTORED"] = "Checkpoint Restored";
|
|
2528
2731
|
TelemetryEventName2["CHECKPOINT_DIFFED"] = "Checkpoint Diffed";
|
|
2732
|
+
TelemetryEventName2["TAB_SHOWN"] = "Tab Shown";
|
|
2733
|
+
TelemetryEventName2["MODE_SETTINGS_CHANGED"] = "Mode Setting Changed";
|
|
2734
|
+
TelemetryEventName2["CUSTOM_MODE_CREATED"] = "Custom Mode Created";
|
|
2529
2735
|
TelemetryEventName2["CONTEXT_CONDENSED"] = "Context Condensed";
|
|
2530
2736
|
TelemetryEventName2["SLIDING_WINDOW_TRUNCATION"] = "Sliding Window Truncation";
|
|
2531
2737
|
TelemetryEventName2["CODE_ACTION_USED"] = "Code Action Used";
|
|
@@ -2558,9 +2764,18 @@ var taskPropertiesSchema = import_zod7.z.object({
|
|
|
2558
2764
|
diffStrategy: import_zod7.z.string().optional(),
|
|
2559
2765
|
isSubtask: import_zod7.z.boolean().optional()
|
|
2560
2766
|
});
|
|
2767
|
+
var gitPropertiesSchema = import_zod7.z.object({
|
|
2768
|
+
repositoryUrl: import_zod7.z.string().optional(),
|
|
2769
|
+
repositoryName: import_zod7.z.string().optional(),
|
|
2770
|
+
defaultBranch: import_zod7.z.string().optional()
|
|
2771
|
+
});
|
|
2561
2772
|
var telemetryPropertiesSchema = import_zod7.z.object({
|
|
2562
2773
|
...appPropertiesSchema.shape,
|
|
2563
|
-
...taskPropertiesSchema.shape
|
|
2774
|
+
...taskPropertiesSchema.shape,
|
|
2775
|
+
...gitPropertiesSchema.shape
|
|
2776
|
+
});
|
|
2777
|
+
var cloudTelemetryPropertiesSchema = import_zod7.z.object({
|
|
2778
|
+
...telemetryPropertiesSchema.shape
|
|
2564
2779
|
});
|
|
2565
2780
|
var rooCodeTelemetryEventSchema = import_zod7.z.discriminatedUnion("type", [
|
|
2566
2781
|
import_zod7.z.object({
|
|
@@ -2585,14 +2800,17 @@ var rooCodeTelemetryEventSchema = import_zod7.z.discriminatedUnion("type", [
|
|
|
2585
2800
|
"Shell Integration Error" /* SHELL_INTEGRATION_ERROR */,
|
|
2586
2801
|
"Consecutive Mistake Error" /* CONSECUTIVE_MISTAKE_ERROR */,
|
|
2587
2802
|
"Context Condensed" /* CONTEXT_CONDENSED */,
|
|
2588
|
-
"Sliding Window Truncation" /* SLIDING_WINDOW_TRUNCATION
|
|
2803
|
+
"Sliding Window Truncation" /* SLIDING_WINDOW_TRUNCATION */,
|
|
2804
|
+
"Tab Shown" /* TAB_SHOWN */,
|
|
2805
|
+
"Mode Setting Changed" /* MODE_SETTINGS_CHANGED */,
|
|
2806
|
+
"Custom Mode Created" /* CUSTOM_MODE_CREATED */
|
|
2589
2807
|
]),
|
|
2590
|
-
properties:
|
|
2808
|
+
properties: cloudTelemetryPropertiesSchema
|
|
2591
2809
|
}),
|
|
2592
2810
|
import_zod7.z.object({
|
|
2593
2811
|
type: import_zod7.z.literal("Task Message" /* TASK_MESSAGE */),
|
|
2594
2812
|
properties: import_zod7.z.object({
|
|
2595
|
-
...
|
|
2813
|
+
...cloudTelemetryPropertiesSchema.shape,
|
|
2596
2814
|
taskId: import_zod7.z.string(),
|
|
2597
2815
|
message: clineMessageSchema
|
|
2598
2816
|
})
|
|
@@ -2600,7 +2818,7 @@ var rooCodeTelemetryEventSchema = import_zod7.z.discriminatedUnion("type", [
|
|
|
2600
2818
|
import_zod7.z.object({
|
|
2601
2819
|
type: import_zod7.z.literal("LLM Completion" /* LLM_COMPLETION */),
|
|
2602
2820
|
properties: import_zod7.z.object({
|
|
2603
|
-
...
|
|
2821
|
+
...cloudTelemetryPropertiesSchema.shape,
|
|
2604
2822
|
inputTokens: import_zod7.z.number(),
|
|
2605
2823
|
outputTokens: import_zod7.z.number(),
|
|
2606
2824
|
cacheReadTokens: import_zod7.z.number().optional(),
|
|
@@ -2684,6 +2902,7 @@ var modeConfigSchema = import_zod9.z.object({
|
|
|
2684
2902
|
name: import_zod9.z.string().min(1, "Name is required"),
|
|
2685
2903
|
roleDefinition: import_zod9.z.string().min(1, "Role definition is required"),
|
|
2686
2904
|
whenToUse: import_zod9.z.string().optional(),
|
|
2905
|
+
description: import_zod9.z.string().optional(),
|
|
2687
2906
|
customInstructions: import_zod9.z.string().optional(),
|
|
2688
2907
|
groups: groupEntryArraySchema,
|
|
2689
2908
|
source: import_zod9.z.enum(["global", "project"]).optional()
|
|
@@ -2708,6 +2927,7 @@ var customModesSettingsSchema = import_zod9.z.object({
|
|
|
2708
2927
|
var promptComponentSchema = import_zod9.z.object({
|
|
2709
2928
|
roleDefinition: import_zod9.z.string().optional(),
|
|
2710
2929
|
whenToUse: import_zod9.z.string().optional(),
|
|
2930
|
+
description: import_zod9.z.string().optional(),
|
|
2711
2931
|
customInstructions: import_zod9.z.string().optional()
|
|
2712
2932
|
});
|
|
2713
2933
|
var customModePromptsSchema = import_zod9.z.record(import_zod9.z.string(), promptComponentSchema.optional());
|
|
@@ -2735,7 +2955,8 @@ var commandIds = [
|
|
|
2735
2955
|
"newTask",
|
|
2736
2956
|
"setCustomStoragePath",
|
|
2737
2957
|
"focusInput",
|
|
2738
|
-
"acceptInput"
|
|
2958
|
+
"acceptInput",
|
|
2959
|
+
"focusPanel"
|
|
2739
2960
|
];
|
|
2740
2961
|
var languages = [
|
|
2741
2962
|
"ca",
|
|
@@ -2830,7 +3051,9 @@ var globalSettingsSchema = import_zod11.z.object({
|
|
|
2830
3051
|
customModePrompts: customModePromptsSchema.optional(),
|
|
2831
3052
|
customSupportPrompts: customSupportPromptsSchema.optional(),
|
|
2832
3053
|
enhancementApiConfigId: import_zod11.z.string().optional(),
|
|
2833
|
-
historyPreviewCollapsed: import_zod11.z.boolean().optional()
|
|
3054
|
+
historyPreviewCollapsed: import_zod11.z.boolean().optional(),
|
|
3055
|
+
profileThresholds: import_zod11.z.record(import_zod11.z.string(), import_zod11.z.number()).optional(),
|
|
3056
|
+
hasOpenedModeSelector: import_zod11.z.boolean().optional()
|
|
2834
3057
|
});
|
|
2835
3058
|
var GLOBAL_SETTINGS_KEYS = globalSettingsSchema.keyof().options;
|
|
2836
3059
|
var rooCodeSettingsSchema = providerSettingsSchema.merge(globalSettingsSchema);
|
|
@@ -2967,6 +3190,7 @@ var ORGANIZATION_ALLOW_ALL = {
|
|
|
2967
3190
|
var ORGANIZATION_DEFAULT = {
|
|
2968
3191
|
version: 0,
|
|
2969
3192
|
cloudSettings: {
|
|
3193
|
+
recordTaskMessages: true,
|
|
2970
3194
|
enableTaskSharing: true,
|
|
2971
3195
|
taskShareExpirationDays: 30
|
|
2972
3196
|
},
|
|
@@ -2976,11 +3200,16 @@ var ORGANIZATION_DEFAULT = {
|
|
|
2976
3200
|
var shareResponseSchema = import_zod12.z.object({
|
|
2977
3201
|
success: import_zod12.z.boolean(),
|
|
2978
3202
|
shareUrl: import_zod12.z.string().optional(),
|
|
2979
|
-
error: import_zod12.z.string().optional()
|
|
3203
|
+
error: import_zod12.z.string().optional(),
|
|
3204
|
+
isNewShare: import_zod12.z.boolean().optional(),
|
|
3205
|
+
manageUrl: import_zod12.z.string().optional()
|
|
2980
3206
|
});
|
|
2981
3207
|
|
|
2982
3208
|
// src/ipc.ts
|
|
2983
3209
|
var import_zod13 = require("zod");
|
|
3210
|
+
var isSubtaskSchema = import_zod13.z.object({
|
|
3211
|
+
isSubtask: import_zod13.z.boolean()
|
|
3212
|
+
});
|
|
2984
3213
|
var RooCodeEventName = /* @__PURE__ */ ((RooCodeEventName2) => {
|
|
2985
3214
|
RooCodeEventName2["Message"] = "message";
|
|
2986
3215
|
RooCodeEventName2["TaskCreated"] = "taskCreated";
|
|
@@ -3014,7 +3243,7 @@ var rooCodeEventsSchema = import_zod13.z.object({
|
|
|
3014
3243
|
["taskAskResponded" /* TaskAskResponded */]: import_zod13.z.tuple([import_zod13.z.string()]),
|
|
3015
3244
|
["taskAborted" /* TaskAborted */]: import_zod13.z.tuple([import_zod13.z.string()]),
|
|
3016
3245
|
["taskSpawned" /* TaskSpawned */]: import_zod13.z.tuple([import_zod13.z.string(), import_zod13.z.string()]),
|
|
3017
|
-
["taskCompleted" /* TaskCompleted */]: import_zod13.z.tuple([import_zod13.z.string(), tokenUsageSchema, toolUsageSchema]),
|
|
3246
|
+
["taskCompleted" /* TaskCompleted */]: import_zod13.z.tuple([import_zod13.z.string(), tokenUsageSchema, toolUsageSchema, isSubtaskSchema]),
|
|
3018
3247
|
["taskTokenUsageUpdated" /* TaskTokenUsageUpdated */]: import_zod13.z.tuple([import_zod13.z.string(), tokenUsageSchema]),
|
|
3019
3248
|
["taskToolFailed" /* TaskToolFailed */]: import_zod13.z.tuple([import_zod13.z.string(), toolNamesSchema, import_zod13.z.string()])
|
|
3020
3249
|
});
|
|
@@ -3298,11 +3527,14 @@ var commandExecutionStatusSchema = import_zod16.z.discriminatedUnion("status", [
|
|
|
3298
3527
|
bedrockModels,
|
|
3299
3528
|
chutesDefaultModelId,
|
|
3300
3529
|
chutesModels,
|
|
3530
|
+
claudeCodeDefaultModelId,
|
|
3531
|
+
claudeCodeModels,
|
|
3301
3532
|
clineAskSchema,
|
|
3302
3533
|
clineAsks,
|
|
3303
3534
|
clineMessageSchema,
|
|
3304
3535
|
clineSaySchema,
|
|
3305
3536
|
clineSays,
|
|
3537
|
+
cloudTelemetryPropertiesSchema,
|
|
3306
3538
|
codeActionIds,
|
|
3307
3539
|
codebaseIndexConfigSchema,
|
|
3308
3540
|
codebaseIndexModelsSchema,
|
|
@@ -3321,6 +3553,7 @@ var commandExecutionStatusSchema = import_zod16.z.discriminatedUnion("status", [
|
|
|
3321
3553
|
geminiDefaultModelId,
|
|
3322
3554
|
geminiModels,
|
|
3323
3555
|
getModelId,
|
|
3556
|
+
gitPropertiesSchema,
|
|
3324
3557
|
glamaDefaultModelId,
|
|
3325
3558
|
glamaDefaultModelInfo,
|
|
3326
3559
|
globalSettingsSchema,
|
|
@@ -3335,6 +3568,9 @@ var commandExecutionStatusSchema = import_zod16.z.discriminatedUnion("status", [
|
|
|
3335
3568
|
isLanguage,
|
|
3336
3569
|
isModelParameter,
|
|
3337
3570
|
isSecretStateKey,
|
|
3571
|
+
isSubtaskSchema,
|
|
3572
|
+
lMStudioDefaultModelId,
|
|
3573
|
+
lMStudioDefaultModelInfo,
|
|
3338
3574
|
languages,
|
|
3339
3575
|
languagesSchema,
|
|
3340
3576
|
litellmDefaultModelId,
|
|
@@ -3352,6 +3588,8 @@ var commandExecutionStatusSchema = import_zod16.z.discriminatedUnion("status", [
|
|
|
3352
3588
|
modelInfoSchema,
|
|
3353
3589
|
modelParameters,
|
|
3354
3590
|
modelParametersSchema,
|
|
3591
|
+
ollamaDefaultModelId,
|
|
3592
|
+
ollamaDefaultModelInfo,
|
|
3355
3593
|
openAiModelInfoSaneDefaults,
|
|
3356
3594
|
openAiNativeDefaultModelId,
|
|
3357
3595
|
openAiNativeModels,
|