@roo-code/types 1.54.0 → 1.55.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 +126 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +318 -92
- package/dist/index.d.ts +318 -92
- package/dist/index.js +122 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -457,6 +457,7 @@ var providerNames = [
|
|
|
457
457
|
"sambanova",
|
|
458
458
|
"zai",
|
|
459
459
|
"fireworks",
|
|
460
|
+
"featherless",
|
|
460
461
|
"io-intelligence",
|
|
461
462
|
"roo"
|
|
462
463
|
];
|
|
@@ -640,6 +641,9 @@ var zaiSchema = apiModelIdProviderModelSchema.extend({
|
|
|
640
641
|
var fireworksSchema = apiModelIdProviderModelSchema.extend({
|
|
641
642
|
fireworksApiKey: z8.string().optional()
|
|
642
643
|
});
|
|
644
|
+
var featherlessSchema = apiModelIdProviderModelSchema.extend({
|
|
645
|
+
featherlessApiKey: z8.string().optional()
|
|
646
|
+
});
|
|
643
647
|
var ioIntelligenceSchema = apiModelIdProviderModelSchema.extend({
|
|
644
648
|
ioIntelligenceModelId: z8.string().optional(),
|
|
645
649
|
ioIntelligenceApiKey: z8.string().optional()
|
|
@@ -681,6 +685,7 @@ var providerSettingsSchemaDiscriminated = z8.discriminatedUnion("apiProvider", [
|
|
|
681
685
|
sambaNovaSchema.merge(z8.object({ apiProvider: z8.literal("sambanova") })),
|
|
682
686
|
zaiSchema.merge(z8.object({ apiProvider: z8.literal("zai") })),
|
|
683
687
|
fireworksSchema.merge(z8.object({ apiProvider: z8.literal("fireworks") })),
|
|
688
|
+
featherlessSchema.merge(z8.object({ apiProvider: z8.literal("featherless") })),
|
|
684
689
|
ioIntelligenceSchema.merge(z8.object({ apiProvider: z8.literal("io-intelligence") })),
|
|
685
690
|
rooSchema.merge(z8.object({ apiProvider: z8.literal("roo") })),
|
|
686
691
|
defaultSchema
|
|
@@ -717,6 +722,7 @@ var providerSettingsSchema = z8.object({
|
|
|
717
722
|
...sambaNovaSchema.shape,
|
|
718
723
|
...zaiSchema.shape,
|
|
719
724
|
...fireworksSchema.shape,
|
|
725
|
+
...featherlessSchema.shape,
|
|
720
726
|
...ioIntelligenceSchema.shape,
|
|
721
727
|
...rooSchema.shape,
|
|
722
728
|
...codebaseIndexProviderSchema.shape
|
|
@@ -1204,6 +1210,7 @@ var SECRET_STATE_KEYS = [
|
|
|
1204
1210
|
"openAiNativeApiKey",
|
|
1205
1211
|
"cerebrasApiKey",
|
|
1206
1212
|
"deepSeekApiKey",
|
|
1213
|
+
"doubaoApiKey",
|
|
1207
1214
|
"moonshotApiKey",
|
|
1208
1215
|
"mistralApiKey",
|
|
1209
1216
|
"unboundApiKey",
|
|
@@ -1219,7 +1226,9 @@ var SECRET_STATE_KEYS = [
|
|
|
1219
1226
|
"codebaseIndexMistralApiKey",
|
|
1220
1227
|
"huggingFaceApiKey",
|
|
1221
1228
|
"sambaNovaApiKey",
|
|
1229
|
+
"zaiApiKey",
|
|
1222
1230
|
"fireworksApiKey",
|
|
1231
|
+
"featherlessApiKey",
|
|
1223
1232
|
"ioIntelligenceApiKey"
|
|
1224
1233
|
];
|
|
1225
1234
|
var isSecretStateKey = (key) => SECRET_STATE_KEYS.includes(key);
|
|
@@ -1440,6 +1449,21 @@ var mcpExecutionStatusSchema = z16.discriminatedUnion("status", [
|
|
|
1440
1449
|
})
|
|
1441
1450
|
]);
|
|
1442
1451
|
|
|
1452
|
+
// src/single-file-read-models.ts
|
|
1453
|
+
var SINGLE_FILE_READ_MODELS = /* @__PURE__ */ new Set(["roo/sonic"]);
|
|
1454
|
+
function shouldUseSingleFileRead(modelId) {
|
|
1455
|
+
if (SINGLE_FILE_READ_MODELS.has(modelId)) {
|
|
1456
|
+
return true;
|
|
1457
|
+
}
|
|
1458
|
+
const patterns = Array.from(SINGLE_FILE_READ_MODELS);
|
|
1459
|
+
for (const pattern of patterns) {
|
|
1460
|
+
if (pattern.endsWith("*") && modelId.startsWith(pattern.slice(0, -1))) {
|
|
1461
|
+
return true;
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
return false;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1443
1467
|
// src/task.ts
|
|
1444
1468
|
import { z as z17 } from "zod";
|
|
1445
1469
|
var TaskStatus = /* @__PURE__ */ ((TaskStatus2) => {
|
|
@@ -3995,6 +4019,18 @@ var vscodeLlmModels = {
|
|
|
3995
4019
|
supportsToolCalling: true,
|
|
3996
4020
|
maxInputTokens: 81638
|
|
3997
4021
|
},
|
|
4022
|
+
"claude-4-sonnet": {
|
|
4023
|
+
contextWindow: 128e3,
|
|
4024
|
+
supportsImages: true,
|
|
4025
|
+
supportsPromptCache: false,
|
|
4026
|
+
inputPrice: 0,
|
|
4027
|
+
outputPrice: 0,
|
|
4028
|
+
family: "claude-sonnet-4",
|
|
4029
|
+
version: "claude-sonnet-4",
|
|
4030
|
+
name: "Claude Sonnet 4",
|
|
4031
|
+
supportsToolCalling: true,
|
|
4032
|
+
maxInputTokens: 111836
|
|
4033
|
+
},
|
|
3998
4034
|
"gemini-2.0-flash-001": {
|
|
3999
4035
|
contextWindow: 127827,
|
|
4000
4036
|
supportsImages: true,
|
|
@@ -4008,7 +4044,7 @@ var vscodeLlmModels = {
|
|
|
4008
4044
|
maxInputTokens: 127827
|
|
4009
4045
|
},
|
|
4010
4046
|
"gemini-2.5-pro": {
|
|
4011
|
-
contextWindow:
|
|
4047
|
+
contextWindow: 128e3,
|
|
4012
4048
|
supportsImages: true,
|
|
4013
4049
|
supportsPromptCache: false,
|
|
4014
4050
|
inputPrice: 0,
|
|
@@ -4017,10 +4053,10 @@ var vscodeLlmModels = {
|
|
|
4017
4053
|
version: "gemini-2.5-pro-preview-03-25",
|
|
4018
4054
|
name: "Gemini 2.5 Pro (Preview)",
|
|
4019
4055
|
supportsToolCalling: true,
|
|
4020
|
-
maxInputTokens:
|
|
4056
|
+
maxInputTokens: 108637
|
|
4021
4057
|
},
|
|
4022
4058
|
"o4-mini": {
|
|
4023
|
-
contextWindow:
|
|
4059
|
+
contextWindow: 128e3,
|
|
4024
4060
|
supportsImages: false,
|
|
4025
4061
|
supportsPromptCache: false,
|
|
4026
4062
|
inputPrice: 0,
|
|
@@ -4029,10 +4065,10 @@ var vscodeLlmModels = {
|
|
|
4029
4065
|
version: "o4-mini-2025-04-16",
|
|
4030
4066
|
name: "o4-mini (Preview)",
|
|
4031
4067
|
supportsToolCalling: true,
|
|
4032
|
-
maxInputTokens:
|
|
4068
|
+
maxInputTokens: 111452
|
|
4033
4069
|
},
|
|
4034
4070
|
"gpt-4.1": {
|
|
4035
|
-
contextWindow:
|
|
4071
|
+
contextWindow: 128e3,
|
|
4036
4072
|
supportsImages: true,
|
|
4037
4073
|
supportsPromptCache: false,
|
|
4038
4074
|
inputPrice: 0,
|
|
@@ -4041,7 +4077,31 @@ var vscodeLlmModels = {
|
|
|
4041
4077
|
version: "gpt-4.1-2025-04-14",
|
|
4042
4078
|
name: "GPT-4.1 (Preview)",
|
|
4043
4079
|
supportsToolCalling: true,
|
|
4044
|
-
maxInputTokens:
|
|
4080
|
+
maxInputTokens: 111452
|
|
4081
|
+
},
|
|
4082
|
+
"gpt-5-mini": {
|
|
4083
|
+
contextWindow: 128e3,
|
|
4084
|
+
supportsImages: true,
|
|
4085
|
+
supportsPromptCache: false,
|
|
4086
|
+
inputPrice: 0,
|
|
4087
|
+
outputPrice: 0,
|
|
4088
|
+
family: "gpt-5-mini",
|
|
4089
|
+
version: "gpt-5-mini",
|
|
4090
|
+
name: "GPT-5 mini (Preview)",
|
|
4091
|
+
supportsToolCalling: true,
|
|
4092
|
+
maxInputTokens: 108637
|
|
4093
|
+
},
|
|
4094
|
+
"gpt-5": {
|
|
4095
|
+
contextWindow: 128e3,
|
|
4096
|
+
supportsImages: true,
|
|
4097
|
+
supportsPromptCache: false,
|
|
4098
|
+
inputPrice: 0,
|
|
4099
|
+
outputPrice: 0,
|
|
4100
|
+
family: "gpt-5",
|
|
4101
|
+
version: "gpt-5",
|
|
4102
|
+
name: "GPT-5 (Preview)",
|
|
4103
|
+
supportsToolCalling: true,
|
|
4104
|
+
maxInputTokens: 108637
|
|
4045
4105
|
}
|
|
4046
4106
|
};
|
|
4047
4107
|
|
|
@@ -4361,15 +4421,65 @@ var fireworksModels = {
|
|
|
4361
4421
|
var rooDefaultModelId = "roo/sonic";
|
|
4362
4422
|
var rooModels = {
|
|
4363
4423
|
"roo/sonic": {
|
|
4364
|
-
maxTokens:
|
|
4424
|
+
maxTokens: 16384,
|
|
4365
4425
|
contextWindow: 262144,
|
|
4366
4426
|
supportsImages: false,
|
|
4427
|
+
supportsPromptCache: true,
|
|
4428
|
+
inputPrice: 0,
|
|
4429
|
+
outputPrice: 0,
|
|
4430
|
+
description: "A stealth reasoning model that is blazing fast and excels at agentic coding, accessible for free through Roo Code Cloud for a limited time. (Note: prompts and completions are logged by the model creator and used to improve the model.)"
|
|
4431
|
+
}
|
|
4432
|
+
};
|
|
4433
|
+
|
|
4434
|
+
// src/providers/featherless.ts
|
|
4435
|
+
var featherlessModels = {
|
|
4436
|
+
"deepseek-ai/DeepSeek-V3-0324": {
|
|
4437
|
+
maxTokens: 4096,
|
|
4438
|
+
contextWindow: 32678,
|
|
4439
|
+
supportsImages: false,
|
|
4440
|
+
supportsPromptCache: false,
|
|
4441
|
+
inputPrice: 0,
|
|
4442
|
+
outputPrice: 0,
|
|
4443
|
+
description: "DeepSeek V3 0324 model."
|
|
4444
|
+
},
|
|
4445
|
+
"deepseek-ai/DeepSeek-R1-0528": {
|
|
4446
|
+
maxTokens: 4096,
|
|
4447
|
+
contextWindow: 32678,
|
|
4448
|
+
supportsImages: false,
|
|
4449
|
+
supportsPromptCache: false,
|
|
4450
|
+
inputPrice: 0,
|
|
4451
|
+
outputPrice: 0,
|
|
4452
|
+
description: "DeepSeek R1 0528 model."
|
|
4453
|
+
},
|
|
4454
|
+
"moonshotai/Kimi-K2-Instruct": {
|
|
4455
|
+
maxTokens: 4096,
|
|
4456
|
+
contextWindow: 32678,
|
|
4457
|
+
supportsImages: false,
|
|
4458
|
+
supportsPromptCache: false,
|
|
4459
|
+
inputPrice: 0,
|
|
4460
|
+
outputPrice: 0,
|
|
4461
|
+
description: "Kimi K2 Instruct model."
|
|
4462
|
+
},
|
|
4463
|
+
"openai/gpt-oss-120b": {
|
|
4464
|
+
maxTokens: 4096,
|
|
4465
|
+
contextWindow: 32678,
|
|
4466
|
+
supportsImages: false,
|
|
4467
|
+
supportsPromptCache: false,
|
|
4468
|
+
inputPrice: 0,
|
|
4469
|
+
outputPrice: 0,
|
|
4470
|
+
description: "GPT-OSS 120B model."
|
|
4471
|
+
},
|
|
4472
|
+
"Qwen/Qwen3-Coder-480B-A35B-Instruct": {
|
|
4473
|
+
maxTokens: 4096,
|
|
4474
|
+
contextWindow: 32678,
|
|
4475
|
+
supportsImages: false,
|
|
4367
4476
|
supportsPromptCache: false,
|
|
4368
4477
|
inputPrice: 0,
|
|
4369
4478
|
outputPrice: 0,
|
|
4370
|
-
description: "
|
|
4479
|
+
description: "Qwen3 Coder 480B A35B Instruct model."
|
|
4371
4480
|
}
|
|
4372
4481
|
};
|
|
4482
|
+
var featherlessDefaultModelId = "deepseek-ai/DeepSeek-R1-0528";
|
|
4373
4483
|
export {
|
|
4374
4484
|
ANTHROPIC_DEFAULT_MAX_TOKENS,
|
|
4375
4485
|
ANTHROPIC_STYLE_PROVIDERS,
|
|
@@ -4420,6 +4530,7 @@ export {
|
|
|
4420
4530
|
PROVIDER_SETTINGS_KEYS,
|
|
4421
4531
|
RooCodeEventName,
|
|
4422
4532
|
SECRET_STATE_KEYS,
|
|
4533
|
+
SINGLE_FILE_READ_MODELS,
|
|
4423
4534
|
TaskCommandName,
|
|
4424
4535
|
TaskStatus,
|
|
4425
4536
|
TelemetryEventName,
|
|
@@ -4467,6 +4578,8 @@ export {
|
|
|
4467
4578
|
experimentIdsSchema,
|
|
4468
4579
|
experimentsSchema,
|
|
4469
4580
|
extendedReasoningEffortsSchema,
|
|
4581
|
+
featherlessDefaultModelId,
|
|
4582
|
+
featherlessModels,
|
|
4470
4583
|
fireworksDefaultModelId,
|
|
4471
4584
|
fireworksModels,
|
|
4472
4585
|
followUpDataSchema,
|
|
@@ -4549,6 +4662,7 @@ export {
|
|
|
4549
4662
|
rooModels,
|
|
4550
4663
|
sambaNovaDefaultModelId,
|
|
4551
4664
|
sambaNovaModels,
|
|
4665
|
+
shouldUseSingleFileRead,
|
|
4552
4666
|
staticAppPropertiesSchema,
|
|
4553
4667
|
suggestionItemSchema,
|
|
4554
4668
|
taskCommandSchema,
|