@roo-code/types 1.61.0 → 1.62.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 +11 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +294 -113
- package/dist/index.d.ts +294 -113
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ var CODEBASE_INDEX_DEFAULTS = {
|
|
|
13
13
|
var codebaseIndexConfigSchema = z.object({
|
|
14
14
|
codebaseIndexEnabled: z.boolean().optional(),
|
|
15
15
|
codebaseIndexQdrantUrl: z.string().optional(),
|
|
16
|
-
codebaseIndexEmbedderProvider: z.enum(["openai", "ollama", "openai-compatible", "gemini", "mistral"]).optional(),
|
|
16
|
+
codebaseIndexEmbedderProvider: z.enum(["openai", "ollama", "openai-compatible", "gemini", "mistral", "vercel-ai-gateway"]).optional(),
|
|
17
17
|
codebaseIndexEmbedderBaseUrl: z.string().optional(),
|
|
18
18
|
codebaseIndexEmbedderModelId: z.string().optional(),
|
|
19
19
|
codebaseIndexEmbedderModelDimension: z.number().optional(),
|
|
@@ -28,7 +28,8 @@ var codebaseIndexModelsSchema = z.object({
|
|
|
28
28
|
ollama: z.record(z.string(), z.object({ dimension: z.number() })).optional(),
|
|
29
29
|
"openai-compatible": z.record(z.string(), z.object({ dimension: z.number() })).optional(),
|
|
30
30
|
gemini: z.record(z.string(), z.object({ dimension: z.number() })).optional(),
|
|
31
|
-
mistral: z.record(z.string(), z.object({ dimension: z.number() })).optional()
|
|
31
|
+
mistral: z.record(z.string(), z.object({ dimension: z.number() })).optional(),
|
|
32
|
+
"vercel-ai-gateway": z.record(z.string(), z.object({ dimension: z.number() })).optional()
|
|
32
33
|
});
|
|
33
34
|
var codebaseIndexProviderSchema = z.object({
|
|
34
35
|
codeIndexOpenAiKey: z.string().optional(),
|
|
@@ -37,7 +38,8 @@ var codebaseIndexProviderSchema = z.object({
|
|
|
37
38
|
codebaseIndexOpenAiCompatibleApiKey: z.string().optional(),
|
|
38
39
|
codebaseIndexOpenAiCompatibleModelDimension: z.number().optional(),
|
|
39
40
|
codebaseIndexGeminiApiKey: z.string().optional(),
|
|
40
|
-
codebaseIndexMistralApiKey: z.string().optional()
|
|
41
|
+
codebaseIndexMistralApiKey: z.string().optional(),
|
|
42
|
+
codebaseIndexVercelAiGatewayApiKey: z.string().optional()
|
|
41
43
|
});
|
|
42
44
|
|
|
43
45
|
// src/events.ts
|
|
@@ -3585,7 +3587,8 @@ var providerNamesSchema = z8.enum(providerNames);
|
|
|
3585
3587
|
var providerSettingsEntrySchema = z8.object({
|
|
3586
3588
|
id: z8.string(),
|
|
3587
3589
|
name: z8.string(),
|
|
3588
|
-
apiProvider: providerNamesSchema.optional()
|
|
3590
|
+
apiProvider: providerNamesSchema.optional(),
|
|
3591
|
+
modelId: z8.string().optional()
|
|
3589
3592
|
});
|
|
3590
3593
|
var DEFAULT_CONSECUTIVE_MISTAKE_LIMIT = 3;
|
|
3591
3594
|
var baseProviderSettingsSchema = z8.object({
|
|
@@ -3892,6 +3895,9 @@ var getApiProtocol = (provider, modelId) => {
|
|
|
3892
3895
|
if (provider && provider === "vertex" && modelId && modelId.toLowerCase().includes("claude")) {
|
|
3893
3896
|
return "anthropic";
|
|
3894
3897
|
}
|
|
3898
|
+
if (provider && provider === "vercel-ai-gateway" && modelId && modelId.toLowerCase().startsWith("anthropic/")) {
|
|
3899
|
+
return "anthropic";
|
|
3900
|
+
}
|
|
3895
3901
|
return "openai";
|
|
3896
3902
|
};
|
|
3897
3903
|
var MODELS_BY_PROVIDER = {
|
|
@@ -4460,6 +4466,7 @@ var SECRET_STATE_KEYS = [
|
|
|
4460
4466
|
"codebaseIndexOpenAiCompatibleApiKey",
|
|
4461
4467
|
"codebaseIndexGeminiApiKey",
|
|
4462
4468
|
"codebaseIndexMistralApiKey",
|
|
4469
|
+
"codebaseIndexVercelAiGatewayApiKey",
|
|
4463
4470
|
"huggingFaceApiKey",
|
|
4464
4471
|
"sambaNovaApiKey",
|
|
4465
4472
|
"zaiApiKey",
|