@roo-code/types 1.52.0 → 1.54.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 +25 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +191 -82
- package/dist/index.d.ts +191 -82
- package/dist/index.js +23 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -457,7 +457,8 @@ var providerNames = [
|
|
|
457
457
|
"sambanova",
|
|
458
458
|
"zai",
|
|
459
459
|
"fireworks",
|
|
460
|
-
"io-intelligence"
|
|
460
|
+
"io-intelligence",
|
|
461
|
+
"roo"
|
|
461
462
|
];
|
|
462
463
|
var providerNamesSchema = z8.enum(providerNames);
|
|
463
464
|
var providerSettingsEntrySchema = z8.object({
|
|
@@ -643,6 +644,9 @@ var ioIntelligenceSchema = apiModelIdProviderModelSchema.extend({
|
|
|
643
644
|
ioIntelligenceModelId: z8.string().optional(),
|
|
644
645
|
ioIntelligenceApiKey: z8.string().optional()
|
|
645
646
|
});
|
|
647
|
+
var rooSchema = apiModelIdProviderModelSchema.extend({
|
|
648
|
+
// No additional fields needed - uses cloud authentication
|
|
649
|
+
});
|
|
646
650
|
var defaultSchema = z8.object({
|
|
647
651
|
apiProvider: z8.undefined()
|
|
648
652
|
});
|
|
@@ -678,6 +682,7 @@ var providerSettingsSchemaDiscriminated = z8.discriminatedUnion("apiProvider", [
|
|
|
678
682
|
zaiSchema.merge(z8.object({ apiProvider: z8.literal("zai") })),
|
|
679
683
|
fireworksSchema.merge(z8.object({ apiProvider: z8.literal("fireworks") })),
|
|
680
684
|
ioIntelligenceSchema.merge(z8.object({ apiProvider: z8.literal("io-intelligence") })),
|
|
685
|
+
rooSchema.merge(z8.object({ apiProvider: z8.literal("roo") })),
|
|
681
686
|
defaultSchema
|
|
682
687
|
]);
|
|
683
688
|
var providerSettingsSchema = z8.object({
|
|
@@ -713,6 +718,7 @@ var providerSettingsSchema = z8.object({
|
|
|
713
718
|
...zaiSchema.shape,
|
|
714
719
|
...fireworksSchema.shape,
|
|
715
720
|
...ioIntelligenceSchema.shape,
|
|
721
|
+
...rooSchema.shape,
|
|
716
722
|
...codebaseIndexProviderSchema.shape
|
|
717
723
|
});
|
|
718
724
|
var providerSettingsWithIdSchema = providerSettingsSchema.extend({ id: z8.string().optional() });
|
|
@@ -4350,6 +4356,20 @@ var fireworksModels = {
|
|
|
4350
4356
|
description: "OpenAI gpt-oss-120b: Production-grade, general-purpose model that fits on a single H100 GPU. Features complex reasoning, configurable effort, full chain-of-thought transparency, and supports function calling, tool use, and structured outputs."
|
|
4351
4357
|
}
|
|
4352
4358
|
};
|
|
4359
|
+
|
|
4360
|
+
// src/providers/roo.ts
|
|
4361
|
+
var rooDefaultModelId = "roo/sonic";
|
|
4362
|
+
var rooModels = {
|
|
4363
|
+
"roo/sonic": {
|
|
4364
|
+
maxTokens: 8192,
|
|
4365
|
+
contextWindow: 262144,
|
|
4366
|
+
supportsImages: false,
|
|
4367
|
+
supportsPromptCache: false,
|
|
4368
|
+
inputPrice: 0,
|
|
4369
|
+
outputPrice: 0,
|
|
4370
|
+
description: "Stealth coding model with 262K context window, 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.)"
|
|
4371
|
+
}
|
|
4372
|
+
};
|
|
4353
4373
|
export {
|
|
4354
4374
|
ANTHROPIC_DEFAULT_MAX_TOKENS,
|
|
4355
4375
|
ANTHROPIC_STYLE_PROVIDERS,
|
|
@@ -4525,6 +4545,8 @@ export {
|
|
|
4525
4545
|
rooCodeEventsSchema,
|
|
4526
4546
|
rooCodeSettingsSchema,
|
|
4527
4547
|
rooCodeTelemetryEventSchema,
|
|
4548
|
+
rooDefaultModelId,
|
|
4549
|
+
rooModels,
|
|
4528
4550
|
sambaNovaDefaultModelId,
|
|
4529
4551
|
sambaNovaModels,
|
|
4530
4552
|
staticAppPropertiesSchema,
|