@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.cjs
CHANGED
|
@@ -69,6 +69,7 @@ __export(index_exports, {
|
|
|
69
69
|
PROVIDER_SETTINGS_KEYS: () => PROVIDER_SETTINGS_KEYS,
|
|
70
70
|
RooCodeEventName: () => RooCodeEventName,
|
|
71
71
|
SECRET_STATE_KEYS: () => SECRET_STATE_KEYS,
|
|
72
|
+
SINGLE_FILE_READ_MODELS: () => SINGLE_FILE_READ_MODELS,
|
|
72
73
|
TaskCommandName: () => TaskCommandName,
|
|
73
74
|
TaskStatus: () => TaskStatus,
|
|
74
75
|
TelemetryEventName: () => TelemetryEventName,
|
|
@@ -116,6 +117,8 @@ __export(index_exports, {
|
|
|
116
117
|
experimentIdsSchema: () => experimentIdsSchema,
|
|
117
118
|
experimentsSchema: () => experimentsSchema,
|
|
118
119
|
extendedReasoningEffortsSchema: () => extendedReasoningEffortsSchema,
|
|
120
|
+
featherlessDefaultModelId: () => featherlessDefaultModelId,
|
|
121
|
+
featherlessModels: () => featherlessModels,
|
|
119
122
|
fireworksDefaultModelId: () => fireworksDefaultModelId,
|
|
120
123
|
fireworksModels: () => fireworksModels,
|
|
121
124
|
followUpDataSchema: () => followUpDataSchema,
|
|
@@ -198,6 +201,7 @@ __export(index_exports, {
|
|
|
198
201
|
rooModels: () => rooModels,
|
|
199
202
|
sambaNovaDefaultModelId: () => sambaNovaDefaultModelId,
|
|
200
203
|
sambaNovaModels: () => sambaNovaModels,
|
|
204
|
+
shouldUseSingleFileRead: () => shouldUseSingleFileRead,
|
|
201
205
|
staticAppPropertiesSchema: () => staticAppPropertiesSchema,
|
|
202
206
|
suggestionItemSchema: () => suggestionItemSchema,
|
|
203
207
|
taskCommandSchema: () => taskCommandSchema,
|
|
@@ -689,6 +693,7 @@ var providerNames = [
|
|
|
689
693
|
"sambanova",
|
|
690
694
|
"zai",
|
|
691
695
|
"fireworks",
|
|
696
|
+
"featherless",
|
|
692
697
|
"io-intelligence",
|
|
693
698
|
"roo"
|
|
694
699
|
];
|
|
@@ -872,6 +877,9 @@ var zaiSchema = apiModelIdProviderModelSchema.extend({
|
|
|
872
877
|
var fireworksSchema = apiModelIdProviderModelSchema.extend({
|
|
873
878
|
fireworksApiKey: import_zod8.z.string().optional()
|
|
874
879
|
});
|
|
880
|
+
var featherlessSchema = apiModelIdProviderModelSchema.extend({
|
|
881
|
+
featherlessApiKey: import_zod8.z.string().optional()
|
|
882
|
+
});
|
|
875
883
|
var ioIntelligenceSchema = apiModelIdProviderModelSchema.extend({
|
|
876
884
|
ioIntelligenceModelId: import_zod8.z.string().optional(),
|
|
877
885
|
ioIntelligenceApiKey: import_zod8.z.string().optional()
|
|
@@ -913,6 +921,7 @@ var providerSettingsSchemaDiscriminated = import_zod8.z.discriminatedUnion("apiP
|
|
|
913
921
|
sambaNovaSchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("sambanova") })),
|
|
914
922
|
zaiSchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("zai") })),
|
|
915
923
|
fireworksSchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("fireworks") })),
|
|
924
|
+
featherlessSchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("featherless") })),
|
|
916
925
|
ioIntelligenceSchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("io-intelligence") })),
|
|
917
926
|
rooSchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("roo") })),
|
|
918
927
|
defaultSchema
|
|
@@ -949,6 +958,7 @@ var providerSettingsSchema = import_zod8.z.object({
|
|
|
949
958
|
...sambaNovaSchema.shape,
|
|
950
959
|
...zaiSchema.shape,
|
|
951
960
|
...fireworksSchema.shape,
|
|
961
|
+
...featherlessSchema.shape,
|
|
952
962
|
...ioIntelligenceSchema.shape,
|
|
953
963
|
...rooSchema.shape,
|
|
954
964
|
...codebaseIndexProviderSchema.shape
|
|
@@ -1436,6 +1446,7 @@ var SECRET_STATE_KEYS = [
|
|
|
1436
1446
|
"openAiNativeApiKey",
|
|
1437
1447
|
"cerebrasApiKey",
|
|
1438
1448
|
"deepSeekApiKey",
|
|
1449
|
+
"doubaoApiKey",
|
|
1439
1450
|
"moonshotApiKey",
|
|
1440
1451
|
"mistralApiKey",
|
|
1441
1452
|
"unboundApiKey",
|
|
@@ -1451,7 +1462,9 @@ var SECRET_STATE_KEYS = [
|
|
|
1451
1462
|
"codebaseIndexMistralApiKey",
|
|
1452
1463
|
"huggingFaceApiKey",
|
|
1453
1464
|
"sambaNovaApiKey",
|
|
1465
|
+
"zaiApiKey",
|
|
1454
1466
|
"fireworksApiKey",
|
|
1467
|
+
"featherlessApiKey",
|
|
1455
1468
|
"ioIntelligenceApiKey"
|
|
1456
1469
|
];
|
|
1457
1470
|
var isSecretStateKey = (key) => SECRET_STATE_KEYS.includes(key);
|
|
@@ -1672,6 +1685,21 @@ var mcpExecutionStatusSchema = import_zod16.z.discriminatedUnion("status", [
|
|
|
1672
1685
|
})
|
|
1673
1686
|
]);
|
|
1674
1687
|
|
|
1688
|
+
// src/single-file-read-models.ts
|
|
1689
|
+
var SINGLE_FILE_READ_MODELS = /* @__PURE__ */ new Set(["roo/sonic"]);
|
|
1690
|
+
function shouldUseSingleFileRead(modelId) {
|
|
1691
|
+
if (SINGLE_FILE_READ_MODELS.has(modelId)) {
|
|
1692
|
+
return true;
|
|
1693
|
+
}
|
|
1694
|
+
const patterns = Array.from(SINGLE_FILE_READ_MODELS);
|
|
1695
|
+
for (const pattern of patterns) {
|
|
1696
|
+
if (pattern.endsWith("*") && modelId.startsWith(pattern.slice(0, -1))) {
|
|
1697
|
+
return true;
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1700
|
+
return false;
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1675
1703
|
// src/task.ts
|
|
1676
1704
|
var import_zod17 = require("zod");
|
|
1677
1705
|
var TaskStatus = /* @__PURE__ */ ((TaskStatus2) => {
|
|
@@ -4227,6 +4255,18 @@ var vscodeLlmModels = {
|
|
|
4227
4255
|
supportsToolCalling: true,
|
|
4228
4256
|
maxInputTokens: 81638
|
|
4229
4257
|
},
|
|
4258
|
+
"claude-4-sonnet": {
|
|
4259
|
+
contextWindow: 128e3,
|
|
4260
|
+
supportsImages: true,
|
|
4261
|
+
supportsPromptCache: false,
|
|
4262
|
+
inputPrice: 0,
|
|
4263
|
+
outputPrice: 0,
|
|
4264
|
+
family: "claude-sonnet-4",
|
|
4265
|
+
version: "claude-sonnet-4",
|
|
4266
|
+
name: "Claude Sonnet 4",
|
|
4267
|
+
supportsToolCalling: true,
|
|
4268
|
+
maxInputTokens: 111836
|
|
4269
|
+
},
|
|
4230
4270
|
"gemini-2.0-flash-001": {
|
|
4231
4271
|
contextWindow: 127827,
|
|
4232
4272
|
supportsImages: true,
|
|
@@ -4240,7 +4280,7 @@ var vscodeLlmModels = {
|
|
|
4240
4280
|
maxInputTokens: 127827
|
|
4241
4281
|
},
|
|
4242
4282
|
"gemini-2.5-pro": {
|
|
4243
|
-
contextWindow:
|
|
4283
|
+
contextWindow: 128e3,
|
|
4244
4284
|
supportsImages: true,
|
|
4245
4285
|
supportsPromptCache: false,
|
|
4246
4286
|
inputPrice: 0,
|
|
@@ -4249,10 +4289,10 @@ var vscodeLlmModels = {
|
|
|
4249
4289
|
version: "gemini-2.5-pro-preview-03-25",
|
|
4250
4290
|
name: "Gemini 2.5 Pro (Preview)",
|
|
4251
4291
|
supportsToolCalling: true,
|
|
4252
|
-
maxInputTokens:
|
|
4292
|
+
maxInputTokens: 108637
|
|
4253
4293
|
},
|
|
4254
4294
|
"o4-mini": {
|
|
4255
|
-
contextWindow:
|
|
4295
|
+
contextWindow: 128e3,
|
|
4256
4296
|
supportsImages: false,
|
|
4257
4297
|
supportsPromptCache: false,
|
|
4258
4298
|
inputPrice: 0,
|
|
@@ -4261,10 +4301,10 @@ var vscodeLlmModels = {
|
|
|
4261
4301
|
version: "o4-mini-2025-04-16",
|
|
4262
4302
|
name: "o4-mini (Preview)",
|
|
4263
4303
|
supportsToolCalling: true,
|
|
4264
|
-
maxInputTokens:
|
|
4304
|
+
maxInputTokens: 111452
|
|
4265
4305
|
},
|
|
4266
4306
|
"gpt-4.1": {
|
|
4267
|
-
contextWindow:
|
|
4307
|
+
contextWindow: 128e3,
|
|
4268
4308
|
supportsImages: true,
|
|
4269
4309
|
supportsPromptCache: false,
|
|
4270
4310
|
inputPrice: 0,
|
|
@@ -4273,7 +4313,31 @@ var vscodeLlmModels = {
|
|
|
4273
4313
|
version: "gpt-4.1-2025-04-14",
|
|
4274
4314
|
name: "GPT-4.1 (Preview)",
|
|
4275
4315
|
supportsToolCalling: true,
|
|
4276
|
-
maxInputTokens:
|
|
4316
|
+
maxInputTokens: 111452
|
|
4317
|
+
},
|
|
4318
|
+
"gpt-5-mini": {
|
|
4319
|
+
contextWindow: 128e3,
|
|
4320
|
+
supportsImages: true,
|
|
4321
|
+
supportsPromptCache: false,
|
|
4322
|
+
inputPrice: 0,
|
|
4323
|
+
outputPrice: 0,
|
|
4324
|
+
family: "gpt-5-mini",
|
|
4325
|
+
version: "gpt-5-mini",
|
|
4326
|
+
name: "GPT-5 mini (Preview)",
|
|
4327
|
+
supportsToolCalling: true,
|
|
4328
|
+
maxInputTokens: 108637
|
|
4329
|
+
},
|
|
4330
|
+
"gpt-5": {
|
|
4331
|
+
contextWindow: 128e3,
|
|
4332
|
+
supportsImages: true,
|
|
4333
|
+
supportsPromptCache: false,
|
|
4334
|
+
inputPrice: 0,
|
|
4335
|
+
outputPrice: 0,
|
|
4336
|
+
family: "gpt-5",
|
|
4337
|
+
version: "gpt-5",
|
|
4338
|
+
name: "GPT-5 (Preview)",
|
|
4339
|
+
supportsToolCalling: true,
|
|
4340
|
+
maxInputTokens: 108637
|
|
4277
4341
|
}
|
|
4278
4342
|
};
|
|
4279
4343
|
|
|
@@ -4593,15 +4657,65 @@ var fireworksModels = {
|
|
|
4593
4657
|
var rooDefaultModelId = "roo/sonic";
|
|
4594
4658
|
var rooModels = {
|
|
4595
4659
|
"roo/sonic": {
|
|
4596
|
-
maxTokens:
|
|
4660
|
+
maxTokens: 16384,
|
|
4597
4661
|
contextWindow: 262144,
|
|
4598
4662
|
supportsImages: false,
|
|
4663
|
+
supportsPromptCache: true,
|
|
4664
|
+
inputPrice: 0,
|
|
4665
|
+
outputPrice: 0,
|
|
4666
|
+
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.)"
|
|
4667
|
+
}
|
|
4668
|
+
};
|
|
4669
|
+
|
|
4670
|
+
// src/providers/featherless.ts
|
|
4671
|
+
var featherlessModels = {
|
|
4672
|
+
"deepseek-ai/DeepSeek-V3-0324": {
|
|
4673
|
+
maxTokens: 4096,
|
|
4674
|
+
contextWindow: 32678,
|
|
4675
|
+
supportsImages: false,
|
|
4676
|
+
supportsPromptCache: false,
|
|
4677
|
+
inputPrice: 0,
|
|
4678
|
+
outputPrice: 0,
|
|
4679
|
+
description: "DeepSeek V3 0324 model."
|
|
4680
|
+
},
|
|
4681
|
+
"deepseek-ai/DeepSeek-R1-0528": {
|
|
4682
|
+
maxTokens: 4096,
|
|
4683
|
+
contextWindow: 32678,
|
|
4684
|
+
supportsImages: false,
|
|
4685
|
+
supportsPromptCache: false,
|
|
4686
|
+
inputPrice: 0,
|
|
4687
|
+
outputPrice: 0,
|
|
4688
|
+
description: "DeepSeek R1 0528 model."
|
|
4689
|
+
},
|
|
4690
|
+
"moonshotai/Kimi-K2-Instruct": {
|
|
4691
|
+
maxTokens: 4096,
|
|
4692
|
+
contextWindow: 32678,
|
|
4693
|
+
supportsImages: false,
|
|
4694
|
+
supportsPromptCache: false,
|
|
4695
|
+
inputPrice: 0,
|
|
4696
|
+
outputPrice: 0,
|
|
4697
|
+
description: "Kimi K2 Instruct model."
|
|
4698
|
+
},
|
|
4699
|
+
"openai/gpt-oss-120b": {
|
|
4700
|
+
maxTokens: 4096,
|
|
4701
|
+
contextWindow: 32678,
|
|
4702
|
+
supportsImages: false,
|
|
4703
|
+
supportsPromptCache: false,
|
|
4704
|
+
inputPrice: 0,
|
|
4705
|
+
outputPrice: 0,
|
|
4706
|
+
description: "GPT-OSS 120B model."
|
|
4707
|
+
},
|
|
4708
|
+
"Qwen/Qwen3-Coder-480B-A35B-Instruct": {
|
|
4709
|
+
maxTokens: 4096,
|
|
4710
|
+
contextWindow: 32678,
|
|
4711
|
+
supportsImages: false,
|
|
4599
4712
|
supportsPromptCache: false,
|
|
4600
4713
|
inputPrice: 0,
|
|
4601
4714
|
outputPrice: 0,
|
|
4602
|
-
description: "
|
|
4715
|
+
description: "Qwen3 Coder 480B A35B Instruct model."
|
|
4603
4716
|
}
|
|
4604
4717
|
};
|
|
4718
|
+
var featherlessDefaultModelId = "deepseek-ai/DeepSeek-R1-0528";
|
|
4605
4719
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4606
4720
|
0 && (module.exports = {
|
|
4607
4721
|
ANTHROPIC_DEFAULT_MAX_TOKENS,
|
|
@@ -4653,6 +4767,7 @@ var rooModels = {
|
|
|
4653
4767
|
PROVIDER_SETTINGS_KEYS,
|
|
4654
4768
|
RooCodeEventName,
|
|
4655
4769
|
SECRET_STATE_KEYS,
|
|
4770
|
+
SINGLE_FILE_READ_MODELS,
|
|
4656
4771
|
TaskCommandName,
|
|
4657
4772
|
TaskStatus,
|
|
4658
4773
|
TelemetryEventName,
|
|
@@ -4700,6 +4815,8 @@ var rooModels = {
|
|
|
4700
4815
|
experimentIdsSchema,
|
|
4701
4816
|
experimentsSchema,
|
|
4702
4817
|
extendedReasoningEffortsSchema,
|
|
4818
|
+
featherlessDefaultModelId,
|
|
4819
|
+
featherlessModels,
|
|
4703
4820
|
fireworksDefaultModelId,
|
|
4704
4821
|
fireworksModels,
|
|
4705
4822
|
followUpDataSchema,
|
|
@@ -4782,6 +4899,7 @@ var rooModels = {
|
|
|
4782
4899
|
rooModels,
|
|
4783
4900
|
sambaNovaDefaultModelId,
|
|
4784
4901
|
sambaNovaModels,
|
|
4902
|
+
shouldUseSingleFileRead,
|
|
4785
4903
|
staticAppPropertiesSchema,
|
|
4786
4904
|
suggestionItemSchema,
|
|
4787
4905
|
taskCommandSchema,
|