@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.cjs
CHANGED
|
@@ -259,7 +259,7 @@ var CODEBASE_INDEX_DEFAULTS = {
|
|
|
259
259
|
var codebaseIndexConfigSchema = import_zod.z.object({
|
|
260
260
|
codebaseIndexEnabled: import_zod.z.boolean().optional(),
|
|
261
261
|
codebaseIndexQdrantUrl: import_zod.z.string().optional(),
|
|
262
|
-
codebaseIndexEmbedderProvider: import_zod.z.enum(["openai", "ollama", "openai-compatible", "gemini", "mistral"]).optional(),
|
|
262
|
+
codebaseIndexEmbedderProvider: import_zod.z.enum(["openai", "ollama", "openai-compatible", "gemini", "mistral", "vercel-ai-gateway"]).optional(),
|
|
263
263
|
codebaseIndexEmbedderBaseUrl: import_zod.z.string().optional(),
|
|
264
264
|
codebaseIndexEmbedderModelId: import_zod.z.string().optional(),
|
|
265
265
|
codebaseIndexEmbedderModelDimension: import_zod.z.number().optional(),
|
|
@@ -274,7 +274,8 @@ var codebaseIndexModelsSchema = import_zod.z.object({
|
|
|
274
274
|
ollama: import_zod.z.record(import_zod.z.string(), import_zod.z.object({ dimension: import_zod.z.number() })).optional(),
|
|
275
275
|
"openai-compatible": import_zod.z.record(import_zod.z.string(), import_zod.z.object({ dimension: import_zod.z.number() })).optional(),
|
|
276
276
|
gemini: import_zod.z.record(import_zod.z.string(), import_zod.z.object({ dimension: import_zod.z.number() })).optional(),
|
|
277
|
-
mistral: import_zod.z.record(import_zod.z.string(), import_zod.z.object({ dimension: import_zod.z.number() })).optional()
|
|
277
|
+
mistral: import_zod.z.record(import_zod.z.string(), import_zod.z.object({ dimension: import_zod.z.number() })).optional(),
|
|
278
|
+
"vercel-ai-gateway": import_zod.z.record(import_zod.z.string(), import_zod.z.object({ dimension: import_zod.z.number() })).optional()
|
|
278
279
|
});
|
|
279
280
|
var codebaseIndexProviderSchema = import_zod.z.object({
|
|
280
281
|
codeIndexOpenAiKey: import_zod.z.string().optional(),
|
|
@@ -283,7 +284,8 @@ var codebaseIndexProviderSchema = import_zod.z.object({
|
|
|
283
284
|
codebaseIndexOpenAiCompatibleApiKey: import_zod.z.string().optional(),
|
|
284
285
|
codebaseIndexOpenAiCompatibleModelDimension: import_zod.z.number().optional(),
|
|
285
286
|
codebaseIndexGeminiApiKey: import_zod.z.string().optional(),
|
|
286
|
-
codebaseIndexMistralApiKey: import_zod.z.string().optional()
|
|
287
|
+
codebaseIndexMistralApiKey: import_zod.z.string().optional(),
|
|
288
|
+
codebaseIndexVercelAiGatewayApiKey: import_zod.z.string().optional()
|
|
287
289
|
});
|
|
288
290
|
|
|
289
291
|
// src/events.ts
|
|
@@ -3831,7 +3833,8 @@ var providerNamesSchema = import_zod8.z.enum(providerNames);
|
|
|
3831
3833
|
var providerSettingsEntrySchema = import_zod8.z.object({
|
|
3832
3834
|
id: import_zod8.z.string(),
|
|
3833
3835
|
name: import_zod8.z.string(),
|
|
3834
|
-
apiProvider: providerNamesSchema.optional()
|
|
3836
|
+
apiProvider: providerNamesSchema.optional(),
|
|
3837
|
+
modelId: import_zod8.z.string().optional()
|
|
3835
3838
|
});
|
|
3836
3839
|
var DEFAULT_CONSECUTIVE_MISTAKE_LIMIT = 3;
|
|
3837
3840
|
var baseProviderSettingsSchema = import_zod8.z.object({
|
|
@@ -4138,6 +4141,9 @@ var getApiProtocol = (provider, modelId) => {
|
|
|
4138
4141
|
if (provider && provider === "vertex" && modelId && modelId.toLowerCase().includes("claude")) {
|
|
4139
4142
|
return "anthropic";
|
|
4140
4143
|
}
|
|
4144
|
+
if (provider && provider === "vercel-ai-gateway" && modelId && modelId.toLowerCase().startsWith("anthropic/")) {
|
|
4145
|
+
return "anthropic";
|
|
4146
|
+
}
|
|
4141
4147
|
return "openai";
|
|
4142
4148
|
};
|
|
4143
4149
|
var MODELS_BY_PROVIDER = {
|
|
@@ -4706,6 +4712,7 @@ var SECRET_STATE_KEYS = [
|
|
|
4706
4712
|
"codebaseIndexOpenAiCompatibleApiKey",
|
|
4707
4713
|
"codebaseIndexGeminiApiKey",
|
|
4708
4714
|
"codebaseIndexMistralApiKey",
|
|
4715
|
+
"codebaseIndexVercelAiGatewayApiKey",
|
|
4709
4716
|
"huggingFaceApiKey",
|
|
4710
4717
|
"sambaNovaApiKey",
|
|
4711
4718
|
"zaiApiKey",
|