@roo-code/types 1.53.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 +190 -82
- package/dist/index.d.ts +190 -82
- package/dist/index.js +23 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -194,6 +194,8 @@ __export(index_exports, {
|
|
|
194
194
|
rooCodeEventsSchema: () => rooCodeEventsSchema,
|
|
195
195
|
rooCodeSettingsSchema: () => rooCodeSettingsSchema,
|
|
196
196
|
rooCodeTelemetryEventSchema: () => rooCodeTelemetryEventSchema,
|
|
197
|
+
rooDefaultModelId: () => rooDefaultModelId,
|
|
198
|
+
rooModels: () => rooModels,
|
|
197
199
|
sambaNovaDefaultModelId: () => sambaNovaDefaultModelId,
|
|
198
200
|
sambaNovaModels: () => sambaNovaModels,
|
|
199
201
|
staticAppPropertiesSchema: () => staticAppPropertiesSchema,
|
|
@@ -687,7 +689,8 @@ var providerNames = [
|
|
|
687
689
|
"sambanova",
|
|
688
690
|
"zai",
|
|
689
691
|
"fireworks",
|
|
690
|
-
"io-intelligence"
|
|
692
|
+
"io-intelligence",
|
|
693
|
+
"roo"
|
|
691
694
|
];
|
|
692
695
|
var providerNamesSchema = import_zod8.z.enum(providerNames);
|
|
693
696
|
var providerSettingsEntrySchema = import_zod8.z.object({
|
|
@@ -873,6 +876,9 @@ var ioIntelligenceSchema = apiModelIdProviderModelSchema.extend({
|
|
|
873
876
|
ioIntelligenceModelId: import_zod8.z.string().optional(),
|
|
874
877
|
ioIntelligenceApiKey: import_zod8.z.string().optional()
|
|
875
878
|
});
|
|
879
|
+
var rooSchema = apiModelIdProviderModelSchema.extend({
|
|
880
|
+
// No additional fields needed - uses cloud authentication
|
|
881
|
+
});
|
|
876
882
|
var defaultSchema = import_zod8.z.object({
|
|
877
883
|
apiProvider: import_zod8.z.undefined()
|
|
878
884
|
});
|
|
@@ -908,6 +914,7 @@ var providerSettingsSchemaDiscriminated = import_zod8.z.discriminatedUnion("apiP
|
|
|
908
914
|
zaiSchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("zai") })),
|
|
909
915
|
fireworksSchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("fireworks") })),
|
|
910
916
|
ioIntelligenceSchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("io-intelligence") })),
|
|
917
|
+
rooSchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("roo") })),
|
|
911
918
|
defaultSchema
|
|
912
919
|
]);
|
|
913
920
|
var providerSettingsSchema = import_zod8.z.object({
|
|
@@ -943,6 +950,7 @@ var providerSettingsSchema = import_zod8.z.object({
|
|
|
943
950
|
...zaiSchema.shape,
|
|
944
951
|
...fireworksSchema.shape,
|
|
945
952
|
...ioIntelligenceSchema.shape,
|
|
953
|
+
...rooSchema.shape,
|
|
946
954
|
...codebaseIndexProviderSchema.shape
|
|
947
955
|
});
|
|
948
956
|
var providerSettingsWithIdSchema = providerSettingsSchema.extend({ id: import_zod8.z.string().optional() });
|
|
@@ -4580,6 +4588,20 @@ var fireworksModels = {
|
|
|
4580
4588
|
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."
|
|
4581
4589
|
}
|
|
4582
4590
|
};
|
|
4591
|
+
|
|
4592
|
+
// src/providers/roo.ts
|
|
4593
|
+
var rooDefaultModelId = "roo/sonic";
|
|
4594
|
+
var rooModels = {
|
|
4595
|
+
"roo/sonic": {
|
|
4596
|
+
maxTokens: 8192,
|
|
4597
|
+
contextWindow: 262144,
|
|
4598
|
+
supportsImages: false,
|
|
4599
|
+
supportsPromptCache: false,
|
|
4600
|
+
inputPrice: 0,
|
|
4601
|
+
outputPrice: 0,
|
|
4602
|
+
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.)"
|
|
4603
|
+
}
|
|
4604
|
+
};
|
|
4583
4605
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4584
4606
|
0 && (module.exports = {
|
|
4585
4607
|
ANTHROPIC_DEFAULT_MAX_TOKENS,
|
|
@@ -4756,6 +4778,8 @@ var fireworksModels = {
|
|
|
4756
4778
|
rooCodeEventsSchema,
|
|
4757
4779
|
rooCodeSettingsSchema,
|
|
4758
4780
|
rooCodeTelemetryEventSchema,
|
|
4781
|
+
rooDefaultModelId,
|
|
4782
|
+
rooModels,
|
|
4759
4783
|
sambaNovaDefaultModelId,
|
|
4760
4784
|
sambaNovaModels,
|
|
4761
4785
|
staticAppPropertiesSchema,
|