@dexto/core 1.5.7 → 1.5.8
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/agent/DextoAgent.cjs +96 -5
- package/dist/agent/DextoAgent.d.ts +32 -7
- package/dist/agent/DextoAgent.d.ts.map +1 -1
- package/dist/agent/DextoAgent.js +96 -5
- package/dist/agent/schemas.cjs +5 -0
- package/dist/agent/schemas.d.ts +60 -21
- package/dist/agent/schemas.d.ts.map +1 -1
- package/dist/agent/schemas.js +5 -0
- package/dist/context/manager.cjs +1 -1
- package/dist/context/manager.js +1 -1
- package/dist/context/utils.cjs +69 -42
- package/dist/context/utils.d.ts.map +1 -1
- package/dist/context/utils.js +69 -42
- package/dist/events/index.cjs +4 -1
- package/dist/events/index.d.ts +37 -2
- package/dist/events/index.d.ts.map +1 -1
- package/dist/events/index.js +4 -1
- package/dist/index.browser.d.ts +1 -1
- package/dist/index.browser.d.ts.map +1 -1
- package/dist/llm/curation-config.cjs +82 -0
- package/dist/llm/curation-config.d.ts +13 -0
- package/dist/llm/curation-config.d.ts.map +1 -0
- package/dist/llm/curation-config.js +59 -0
- package/dist/llm/curation.cjs +57 -0
- package/dist/llm/curation.d.ts +16 -0
- package/dist/llm/curation.d.ts.map +1 -0
- package/dist/llm/curation.js +34 -0
- package/dist/llm/errors.cjs +1 -1
- package/dist/llm/errors.d.ts +8 -8
- package/dist/llm/errors.js +1 -1
- package/dist/llm/executor/provider-options.cjs +1 -1
- package/dist/llm/executor/provider-options.js +1 -1
- package/dist/llm/executor/turn-executor.cjs +8 -2
- package/dist/llm/executor/turn-executor.d.ts.map +1 -1
- package/dist/llm/executor/turn-executor.js +8 -2
- package/dist/llm/index.cjs +14 -3
- package/dist/llm/index.d.ts +3 -1
- package/dist/llm/index.d.ts.map +1 -1
- package/dist/llm/index.js +13 -2
- package/dist/llm/registry/auto-update.cjs +263 -0
- package/dist/llm/registry/auto-update.d.ts +27 -0
- package/dist/llm/registry/auto-update.d.ts.map +1 -0
- package/dist/llm/registry/auto-update.js +227 -0
- package/dist/llm/registry/index.cjs +806 -0
- package/dist/llm/{registry.d.ts → registry/index.d.ts} +19 -41
- package/dist/llm/registry/index.d.ts.map +1 -0
- package/dist/llm/registry/index.js +756 -0
- package/dist/llm/registry/models.generated.cjs +4861 -0
- package/dist/llm/registry/models.generated.d.ts +431 -0
- package/dist/llm/registry/models.generated.d.ts.map +1 -0
- package/dist/llm/registry/models.generated.js +4838 -0
- package/dist/llm/registry/models.manual.cjs +44 -0
- package/dist/llm/registry/models.manual.d.ts +22 -0
- package/dist/llm/registry/models.manual.d.ts.map +1 -0
- package/dist/llm/registry/models.manual.js +21 -0
- package/dist/llm/registry/sync.cjs +354 -0
- package/dist/llm/registry/sync.d.ts +41 -0
- package/dist/llm/registry/sync.d.ts.map +1 -0
- package/dist/llm/registry/sync.js +328 -0
- package/dist/llm/resolver.cjs +27 -18
- package/dist/llm/resolver.d.ts +1 -1
- package/dist/llm/resolver.d.ts.map +1 -1
- package/dist/llm/resolver.js +28 -20
- package/dist/llm/schemas.cjs +13 -1
- package/dist/llm/schemas.d.ts +23 -23
- package/dist/llm/schemas.d.ts.map +1 -1
- package/dist/llm/schemas.js +14 -1
- package/dist/llm/services/factory.cjs +4 -4
- package/dist/llm/services/factory.d.ts.map +1 -1
- package/dist/llm/services/factory.js +4 -4
- package/dist/llm/services/test-utils.integration.cjs +1 -1
- package/dist/llm/services/test-utils.integration.js +1 -1
- package/dist/llm/services/vercel.cjs +4 -1
- package/dist/llm/services/vercel.d.ts +1 -0
- package/dist/llm/services/vercel.d.ts.map +1 -1
- package/dist/llm/services/vercel.js +4 -1
- package/dist/llm/types.cjs +1 -1
- package/dist/llm/types.d.ts +1 -1
- package/dist/llm/types.d.ts.map +1 -1
- package/dist/llm/types.js +1 -1
- package/dist/llm/validation.cjs +1 -1
- package/dist/llm/validation.js +1 -1
- package/dist/resources/handlers/filesystem-handler.cjs +25 -0
- package/dist/resources/handlers/filesystem-handler.d.ts +1 -0
- package/dist/resources/handlers/filesystem-handler.d.ts.map +1 -1
- package/dist/resources/handlers/filesystem-handler.js +25 -0
- package/dist/session/chat-session.cjs +1 -1
- package/dist/session/chat-session.js +1 -1
- package/dist/session/message-queue.cjs +29 -5
- package/dist/session/message-queue.d.ts +3 -1
- package/dist/session/message-queue.d.ts.map +1 -1
- package/dist/session/message-queue.js +29 -5
- package/dist/session/session-manager.cjs +40 -3
- package/dist/session/session-manager.d.ts +3 -1
- package/dist/session/session-manager.d.ts.map +1 -1
- package/dist/session/session-manager.js +30 -3
- package/dist/session/types.d.ts +1 -0
- package/dist/session/types.d.ts.map +1 -1
- package/dist/tools/internal-tools/provider.d.ts +3 -1
- package/dist/tools/internal-tools/provider.d.ts.map +1 -1
- package/dist/tools/internal-tools/registry.d.ts +1 -1
- package/dist/tools/internal-tools/registry.d.ts.map +1 -1
- package/dist/tools/tool-call-metadata.cjs +75 -0
- package/dist/tools/tool-call-metadata.d.ts +16 -0
- package/dist/tools/tool-call-metadata.d.ts.map +1 -0
- package/dist/tools/tool-call-metadata.js +51 -0
- package/dist/tools/tool-manager.cjs +257 -30
- package/dist/tools/tool-manager.d.ts +43 -2
- package/dist/tools/tool-manager.d.ts.map +1 -1
- package/dist/tools/tool-manager.js +257 -30
- package/dist/utils/api-key-resolver.cjs +1 -1
- package/dist/utils/api-key-resolver.js +1 -1
- package/dist/utils/env.cjs +49 -0
- package/dist/utils/env.d.ts +4 -0
- package/dist/utils/env.d.ts.map +1 -0
- package/dist/utils/env.js +24 -0
- package/dist/utils/index.cjs +3 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/service-initializer.cjs +17 -5
- package/dist/utils/service-initializer.d.ts +23 -4
- package/dist/utils/service-initializer.d.ts.map +1 -1
- package/dist/utils/service-initializer.js +17 -5
- package/package.json +6 -2
- package/dist/llm/registry.cjs +0 -2075
- package/dist/llm/registry.d.ts.map +0 -1
- package/dist/llm/registry.js +0 -2025
package/dist/agent/schemas.d.ts
CHANGED
|
@@ -1260,7 +1260,7 @@ export declare function createAgentConfigSchema(options?: LLMValidationOptions):
|
|
|
1260
1260
|
})[] | undefined;
|
|
1261
1261
|
}>]>, "ValidatedSystemPromptConfig">;
|
|
1262
1262
|
llm: z.ZodBranded<z.ZodEffects<z.ZodObject<{
|
|
1263
|
-
provider: z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere", "minimax", "glm", "openrouter", "litellm", "glama", "vertex", "bedrock", "local", "ollama", "dexto"]>;
|
|
1263
|
+
provider: z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere", "minimax", "glm", "openrouter", "litellm", "glama", "vertex", "bedrock", "local", "ollama", "dexto-nova"]>;
|
|
1264
1264
|
model: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1265
1265
|
apiKey: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1266
1266
|
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1272,7 +1272,7 @@ export declare function createAgentConfigSchema(options?: LLMValidationOptions):
|
|
|
1272
1272
|
reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
|
|
1273
1273
|
}, "strict", z.ZodTypeAny, {
|
|
1274
1274
|
model: string;
|
|
1275
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto";
|
|
1275
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
1276
1276
|
apiKey?: string | undefined;
|
|
1277
1277
|
maxInputTokens?: number | undefined;
|
|
1278
1278
|
maxIterations?: number | undefined;
|
|
@@ -1283,7 +1283,7 @@ export declare function createAgentConfigSchema(options?: LLMValidationOptions):
|
|
|
1283
1283
|
reasoningEffort?: "low" | "none" | "minimal" | "medium" | "high" | "xhigh" | undefined;
|
|
1284
1284
|
}, {
|
|
1285
1285
|
model: string;
|
|
1286
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto";
|
|
1286
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
1287
1287
|
apiKey?: string | undefined;
|
|
1288
1288
|
maxInputTokens?: number | undefined;
|
|
1289
1289
|
maxIterations?: number | undefined;
|
|
@@ -1294,7 +1294,7 @@ export declare function createAgentConfigSchema(options?: LLMValidationOptions):
|
|
|
1294
1294
|
reasoningEffort?: "low" | "none" | "minimal" | "medium" | "high" | "xhigh" | undefined;
|
|
1295
1295
|
}>, {
|
|
1296
1296
|
model: string;
|
|
1297
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto";
|
|
1297
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
1298
1298
|
apiKey?: string | undefined;
|
|
1299
1299
|
maxInputTokens?: number | undefined;
|
|
1300
1300
|
maxIterations?: number | undefined;
|
|
@@ -1305,7 +1305,7 @@ export declare function createAgentConfigSchema(options?: LLMValidationOptions):
|
|
|
1305
1305
|
reasoningEffort?: "low" | "none" | "minimal" | "medium" | "high" | "xhigh" | undefined;
|
|
1306
1306
|
}, {
|
|
1307
1307
|
model: string;
|
|
1308
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto";
|
|
1308
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
1309
1309
|
apiKey?: string | undefined;
|
|
1310
1310
|
maxInputTokens?: number | undefined;
|
|
1311
1311
|
maxIterations?: number | undefined;
|
|
@@ -2245,6 +2245,13 @@ export declare function createAgentConfigSchema(options?: LLMValidationOptions):
|
|
|
2245
2245
|
includeTags?: boolean | undefined;
|
|
2246
2246
|
pinnedOnly?: boolean | undefined;
|
|
2247
2247
|
}>>;
|
|
2248
|
+
agentFile: z.ZodDefault<z.ZodObject<{
|
|
2249
|
+
discoverInCwd: z.ZodDefault<z.ZodBoolean>;
|
|
2250
|
+
}, "strict", z.ZodTypeAny, {
|
|
2251
|
+
discoverInCwd: boolean;
|
|
2252
|
+
}, {
|
|
2253
|
+
discoverInCwd?: boolean | undefined;
|
|
2254
|
+
}>>;
|
|
2248
2255
|
image: z.ZodOptional<z.ZodString>;
|
|
2249
2256
|
agentId: z.ZodDefault<z.ZodString>;
|
|
2250
2257
|
mcpServers: z.ZodDefault<z.ZodBranded<z.ZodRecord<z.ZodString, z.ZodBranded<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -3290,7 +3297,7 @@ export declare function createAgentConfigSchema(options?: LLMValidationOptions):
|
|
|
3290
3297
|
}, "strict", z.ZodTypeAny, {
|
|
3291
3298
|
llm: {
|
|
3292
3299
|
model: string;
|
|
3293
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto";
|
|
3300
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
3294
3301
|
apiKey?: string | undefined;
|
|
3295
3302
|
maxInputTokens?: number | undefined;
|
|
3296
3303
|
maxIterations?: number | undefined;
|
|
@@ -3446,6 +3453,9 @@ export declare function createAgentConfigSchema(options?: LLMValidationOptions):
|
|
|
3446
3453
|
enabled: boolean;
|
|
3447
3454
|
}[];
|
|
3448
3455
|
}) & z.BRAND<"ValidatedSystemPromptConfig">;
|
|
3456
|
+
agentFile: {
|
|
3457
|
+
discoverInCwd: boolean;
|
|
3458
|
+
};
|
|
3449
3459
|
mcpServers: Record<string, ({
|
|
3450
3460
|
timeout: number;
|
|
3451
3461
|
type: "stdio";
|
|
@@ -3720,7 +3730,7 @@ export declare function createAgentConfigSchema(options?: LLMValidationOptions):
|
|
|
3720
3730
|
}, {
|
|
3721
3731
|
llm: {
|
|
3722
3732
|
model: string;
|
|
3723
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto";
|
|
3733
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
3724
3734
|
apiKey?: string | undefined;
|
|
3725
3735
|
maxInputTokens?: number | undefined;
|
|
3726
3736
|
maxIterations?: number | undefined;
|
|
@@ -4053,6 +4063,9 @@ export declare function createAgentConfigSchema(options?: LLMValidationOptions):
|
|
|
4053
4063
|
includeTags?: boolean | undefined;
|
|
4054
4064
|
pinnedOnly?: boolean | undefined;
|
|
4055
4065
|
} | undefined;
|
|
4066
|
+
agentFile?: {
|
|
4067
|
+
discoverInCwd?: boolean | undefined;
|
|
4068
|
+
} | undefined;
|
|
4056
4069
|
mcpServers?: Record<string, {
|
|
4057
4070
|
type: "stdio";
|
|
4058
4071
|
command: string;
|
|
@@ -4308,7 +4321,7 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
4308
4321
|
})[] | undefined;
|
|
4309
4322
|
}>]>, "ValidatedSystemPromptConfig">;
|
|
4310
4323
|
llm: z.ZodBranded<z.ZodEffects<z.ZodObject<{
|
|
4311
|
-
provider: z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere", "minimax", "glm", "openrouter", "litellm", "glama", "vertex", "bedrock", "local", "ollama", "dexto"]>;
|
|
4324
|
+
provider: z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere", "minimax", "glm", "openrouter", "litellm", "glama", "vertex", "bedrock", "local", "ollama", "dexto-nova"]>;
|
|
4312
4325
|
model: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
4313
4326
|
apiKey: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
4314
4327
|
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
@@ -4320,7 +4333,7 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
4320
4333
|
reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
|
|
4321
4334
|
}, "strict", z.ZodTypeAny, {
|
|
4322
4335
|
model: string;
|
|
4323
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto";
|
|
4336
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
4324
4337
|
apiKey?: string | undefined;
|
|
4325
4338
|
maxInputTokens?: number | undefined;
|
|
4326
4339
|
maxIterations?: number | undefined;
|
|
@@ -4331,7 +4344,7 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
4331
4344
|
reasoningEffort?: "low" | "none" | "minimal" | "medium" | "high" | "xhigh" | undefined;
|
|
4332
4345
|
}, {
|
|
4333
4346
|
model: string;
|
|
4334
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto";
|
|
4347
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
4335
4348
|
apiKey?: string | undefined;
|
|
4336
4349
|
maxInputTokens?: number | undefined;
|
|
4337
4350
|
maxIterations?: number | undefined;
|
|
@@ -4342,7 +4355,7 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
4342
4355
|
reasoningEffort?: "low" | "none" | "minimal" | "medium" | "high" | "xhigh" | undefined;
|
|
4343
4356
|
}>, {
|
|
4344
4357
|
model: string;
|
|
4345
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto";
|
|
4358
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
4346
4359
|
apiKey?: string | undefined;
|
|
4347
4360
|
maxInputTokens?: number | undefined;
|
|
4348
4361
|
maxIterations?: number | undefined;
|
|
@@ -4353,7 +4366,7 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
4353
4366
|
reasoningEffort?: "low" | "none" | "minimal" | "medium" | "high" | "xhigh" | undefined;
|
|
4354
4367
|
}, {
|
|
4355
4368
|
model: string;
|
|
4356
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto";
|
|
4369
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
4357
4370
|
apiKey?: string | undefined;
|
|
4358
4371
|
maxInputTokens?: number | undefined;
|
|
4359
4372
|
maxIterations?: number | undefined;
|
|
@@ -5293,6 +5306,13 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
5293
5306
|
includeTags?: boolean | undefined;
|
|
5294
5307
|
pinnedOnly?: boolean | undefined;
|
|
5295
5308
|
}>>;
|
|
5309
|
+
agentFile: z.ZodDefault<z.ZodObject<{
|
|
5310
|
+
discoverInCwd: z.ZodDefault<z.ZodBoolean>;
|
|
5311
|
+
}, "strict", z.ZodTypeAny, {
|
|
5312
|
+
discoverInCwd: boolean;
|
|
5313
|
+
}, {
|
|
5314
|
+
discoverInCwd?: boolean | undefined;
|
|
5315
|
+
}>>;
|
|
5296
5316
|
image: z.ZodOptional<z.ZodString>;
|
|
5297
5317
|
agentId: z.ZodDefault<z.ZodString>;
|
|
5298
5318
|
mcpServers: z.ZodDefault<z.ZodBranded<z.ZodRecord<z.ZodString, z.ZodBranded<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -6338,7 +6358,7 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
6338
6358
|
}, "strict", z.ZodTypeAny, {
|
|
6339
6359
|
llm: {
|
|
6340
6360
|
model: string;
|
|
6341
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto";
|
|
6361
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
6342
6362
|
apiKey?: string | undefined;
|
|
6343
6363
|
maxInputTokens?: number | undefined;
|
|
6344
6364
|
maxIterations?: number | undefined;
|
|
@@ -6494,6 +6514,9 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
6494
6514
|
enabled: boolean;
|
|
6495
6515
|
}[];
|
|
6496
6516
|
}) & z.BRAND<"ValidatedSystemPromptConfig">;
|
|
6517
|
+
agentFile: {
|
|
6518
|
+
discoverInCwd: boolean;
|
|
6519
|
+
};
|
|
6497
6520
|
mcpServers: Record<string, ({
|
|
6498
6521
|
timeout: number;
|
|
6499
6522
|
type: "stdio";
|
|
@@ -6768,7 +6791,7 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
6768
6791
|
}, {
|
|
6769
6792
|
llm: {
|
|
6770
6793
|
model: string;
|
|
6771
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto";
|
|
6794
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
6772
6795
|
apiKey?: string | undefined;
|
|
6773
6796
|
maxInputTokens?: number | undefined;
|
|
6774
6797
|
maxIterations?: number | undefined;
|
|
@@ -7101,6 +7124,9 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
7101
7124
|
includeTags?: boolean | undefined;
|
|
7102
7125
|
pinnedOnly?: boolean | undefined;
|
|
7103
7126
|
} | undefined;
|
|
7127
|
+
agentFile?: {
|
|
7128
|
+
discoverInCwd?: boolean | undefined;
|
|
7129
|
+
} | undefined;
|
|
7104
7130
|
mcpServers?: Record<string, {
|
|
7105
7131
|
type: "stdio";
|
|
7106
7132
|
command: string;
|
|
@@ -7356,7 +7382,7 @@ export declare const AgentConfigSchemaRelaxed: z.ZodBranded<z.ZodObject<{
|
|
|
7356
7382
|
})[] | undefined;
|
|
7357
7383
|
}>]>, "ValidatedSystemPromptConfig">;
|
|
7358
7384
|
llm: z.ZodBranded<z.ZodEffects<z.ZodObject<{
|
|
7359
|
-
provider: z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere", "minimax", "glm", "openrouter", "litellm", "glama", "vertex", "bedrock", "local", "ollama", "dexto"]>;
|
|
7385
|
+
provider: z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere", "minimax", "glm", "openrouter", "litellm", "glama", "vertex", "bedrock", "local", "ollama", "dexto-nova"]>;
|
|
7360
7386
|
model: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
7361
7387
|
apiKey: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
7362
7388
|
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
@@ -7368,7 +7394,7 @@ export declare const AgentConfigSchemaRelaxed: z.ZodBranded<z.ZodObject<{
|
|
|
7368
7394
|
reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
|
|
7369
7395
|
}, "strict", z.ZodTypeAny, {
|
|
7370
7396
|
model: string;
|
|
7371
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto";
|
|
7397
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
7372
7398
|
apiKey?: string | undefined;
|
|
7373
7399
|
maxInputTokens?: number | undefined;
|
|
7374
7400
|
maxIterations?: number | undefined;
|
|
@@ -7379,7 +7405,7 @@ export declare const AgentConfigSchemaRelaxed: z.ZodBranded<z.ZodObject<{
|
|
|
7379
7405
|
reasoningEffort?: "low" | "none" | "minimal" | "medium" | "high" | "xhigh" | undefined;
|
|
7380
7406
|
}, {
|
|
7381
7407
|
model: string;
|
|
7382
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto";
|
|
7408
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
7383
7409
|
apiKey?: string | undefined;
|
|
7384
7410
|
maxInputTokens?: number | undefined;
|
|
7385
7411
|
maxIterations?: number | undefined;
|
|
@@ -7390,7 +7416,7 @@ export declare const AgentConfigSchemaRelaxed: z.ZodBranded<z.ZodObject<{
|
|
|
7390
7416
|
reasoningEffort?: "low" | "none" | "minimal" | "medium" | "high" | "xhigh" | undefined;
|
|
7391
7417
|
}>, {
|
|
7392
7418
|
model: string;
|
|
7393
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto";
|
|
7419
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
7394
7420
|
apiKey?: string | undefined;
|
|
7395
7421
|
maxInputTokens?: number | undefined;
|
|
7396
7422
|
maxIterations?: number | undefined;
|
|
@@ -7401,7 +7427,7 @@ export declare const AgentConfigSchemaRelaxed: z.ZodBranded<z.ZodObject<{
|
|
|
7401
7427
|
reasoningEffort?: "low" | "none" | "minimal" | "medium" | "high" | "xhigh" | undefined;
|
|
7402
7428
|
}, {
|
|
7403
7429
|
model: string;
|
|
7404
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto";
|
|
7430
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
7405
7431
|
apiKey?: string | undefined;
|
|
7406
7432
|
maxInputTokens?: number | undefined;
|
|
7407
7433
|
maxIterations?: number | undefined;
|
|
@@ -8341,6 +8367,13 @@ export declare const AgentConfigSchemaRelaxed: z.ZodBranded<z.ZodObject<{
|
|
|
8341
8367
|
includeTags?: boolean | undefined;
|
|
8342
8368
|
pinnedOnly?: boolean | undefined;
|
|
8343
8369
|
}>>;
|
|
8370
|
+
agentFile: z.ZodDefault<z.ZodObject<{
|
|
8371
|
+
discoverInCwd: z.ZodDefault<z.ZodBoolean>;
|
|
8372
|
+
}, "strict", z.ZodTypeAny, {
|
|
8373
|
+
discoverInCwd: boolean;
|
|
8374
|
+
}, {
|
|
8375
|
+
discoverInCwd?: boolean | undefined;
|
|
8376
|
+
}>>;
|
|
8344
8377
|
image: z.ZodOptional<z.ZodString>;
|
|
8345
8378
|
agentId: z.ZodDefault<z.ZodString>;
|
|
8346
8379
|
mcpServers: z.ZodDefault<z.ZodBranded<z.ZodRecord<z.ZodString, z.ZodBranded<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -9386,7 +9419,7 @@ export declare const AgentConfigSchemaRelaxed: z.ZodBranded<z.ZodObject<{
|
|
|
9386
9419
|
}, "strict", z.ZodTypeAny, {
|
|
9387
9420
|
llm: {
|
|
9388
9421
|
model: string;
|
|
9389
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto";
|
|
9422
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
9390
9423
|
apiKey?: string | undefined;
|
|
9391
9424
|
maxInputTokens?: number | undefined;
|
|
9392
9425
|
maxIterations?: number | undefined;
|
|
@@ -9542,6 +9575,9 @@ export declare const AgentConfigSchemaRelaxed: z.ZodBranded<z.ZodObject<{
|
|
|
9542
9575
|
enabled: boolean;
|
|
9543
9576
|
}[];
|
|
9544
9577
|
}) & z.BRAND<"ValidatedSystemPromptConfig">;
|
|
9578
|
+
agentFile: {
|
|
9579
|
+
discoverInCwd: boolean;
|
|
9580
|
+
};
|
|
9545
9581
|
mcpServers: Record<string, ({
|
|
9546
9582
|
timeout: number;
|
|
9547
9583
|
type: "stdio";
|
|
@@ -9816,7 +9852,7 @@ export declare const AgentConfigSchemaRelaxed: z.ZodBranded<z.ZodObject<{
|
|
|
9816
9852
|
}, {
|
|
9817
9853
|
llm: {
|
|
9818
9854
|
model: string;
|
|
9819
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto";
|
|
9855
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
9820
9856
|
apiKey?: string | undefined;
|
|
9821
9857
|
maxInputTokens?: number | undefined;
|
|
9822
9858
|
maxIterations?: number | undefined;
|
|
@@ -10149,6 +10185,9 @@ export declare const AgentConfigSchemaRelaxed: z.ZodBranded<z.ZodObject<{
|
|
|
10149
10185
|
includeTags?: boolean | undefined;
|
|
10150
10186
|
pinnedOnly?: boolean | undefined;
|
|
10151
10187
|
} | undefined;
|
|
10188
|
+
agentFile?: {
|
|
10189
|
+
discoverInCwd?: boolean | undefined;
|
|
10190
|
+
} | undefined;
|
|
10152
10191
|
mcpServers?: Record<string, {
|
|
10153
10192
|
type: "stdio";
|
|
10154
10193
|
command: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/agent/schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAyB,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAkBxF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuExB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAM/B,CAAC;AAkEH;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAA6C,CAAC;AAGnF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAGtE,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
|
package/dist/agent/schemas.js
CHANGED
|
@@ -174,6 +174,11 @@ function createAgentConfigSchema(options = {}) {
|
|
|
174
174
|
memories: MemoriesConfigSchema.describe(
|
|
175
175
|
"Memory configuration for system prompt inclusion (optional feature)"
|
|
176
176
|
).optional(),
|
|
177
|
+
agentFile: z.object({
|
|
178
|
+
discoverInCwd: z.boolean().default(true).describe(
|
|
179
|
+
"Whether to discover AGENTS.md/CLAUDE.md/GEMINI.md in the current working directory and include it in the system prompt"
|
|
180
|
+
)
|
|
181
|
+
}).strict().default({}).describe("Agent instruction file discovery configuration"),
|
|
177
182
|
image: z.string().describe(
|
|
178
183
|
'Image package that provides required providers (e.g., "@dexto/image-local"). Optional - platform can load images via CLI flag, environment variable, or static imports.'
|
|
179
184
|
).optional(),
|
package/dist/context/manager.cjs
CHANGED
|
@@ -648,7 +648,7 @@ ${prompt}`);
|
|
|
648
648
|
let allowedMediaTypes = this.llmConfig.allowedMediaTypes;
|
|
649
649
|
if (!allowedMediaTypes) {
|
|
650
650
|
try {
|
|
651
|
-
const { getSupportedFileTypesForModel } = await import("../llm/registry.js");
|
|
651
|
+
const { getSupportedFileTypesForModel } = await import("../llm/registry/index.js");
|
|
652
652
|
const { fileTypesToMimePatterns } = await import("./utils.js");
|
|
653
653
|
const supportedFileTypes = getSupportedFileTypesForModel(
|
|
654
654
|
llmContext.provider,
|
package/dist/context/manager.js
CHANGED
|
@@ -622,7 +622,7 @@ ${prompt}`);
|
|
|
622
622
|
let allowedMediaTypes = this.llmConfig.allowedMediaTypes;
|
|
623
623
|
if (!allowedMediaTypes) {
|
|
624
624
|
try {
|
|
625
|
-
const { getSupportedFileTypesForModel } = await import("../llm/registry.js");
|
|
625
|
+
const { getSupportedFileTypesForModel } = await import("../llm/registry/index.js");
|
|
626
626
|
const { fileTypesToMimePatterns } = await import("./utils.js");
|
|
627
627
|
const supportedFileTypes = getSupportedFileTypesForModel(
|
|
628
628
|
llmContext.provider,
|
package/dist/context/utils.cjs
CHANGED
|
@@ -50,7 +50,7 @@ __export(utils_exports, {
|
|
|
50
50
|
module.exports = __toCommonJS(utils_exports);
|
|
51
51
|
var import_types = require("./types.js");
|
|
52
52
|
var import_display_types = require("../tools/display-types.js");
|
|
53
|
-
var import_registry = require("../llm/registry.cjs");
|
|
53
|
+
var import_registry = require("../llm/registry/index.cjs");
|
|
54
54
|
var import_safe_stringify = require("../utils/safe-stringify.cjs");
|
|
55
55
|
var import_media_helpers = require("./media-helpers.js");
|
|
56
56
|
const MIN_BASE64_HEURISTIC_LENGTH = 512;
|
|
@@ -581,49 +581,63 @@ function filterMessagesByLLMCapabilities(messages, config, logger) {
|
|
|
581
581
|
}
|
|
582
582
|
let imagesInMessage = 0;
|
|
583
583
|
let filesInMessage = 0;
|
|
584
|
-
const filteredContent = message.content.
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
if (part.type === "image") {
|
|
589
|
-
const mimeType = part.mimeType ?? "image/jpeg";
|
|
590
|
-
const validation = (0, import_registry.validateModelFileSupport)(
|
|
591
|
-
config.provider,
|
|
592
|
-
config.model,
|
|
593
|
-
mimeType
|
|
594
|
-
);
|
|
595
|
-
if (validation.isSupported) {
|
|
596
|
-
return true;
|
|
597
|
-
}
|
|
598
|
-
if (validation.error?.includes("does not support")) {
|
|
599
|
-
imagesInMessage++;
|
|
600
|
-
return false;
|
|
584
|
+
const filteredContent = message.content.flatMap(
|
|
585
|
+
(part) => {
|
|
586
|
+
if (part.type === "text") {
|
|
587
|
+
return [part];
|
|
601
588
|
}
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
589
|
+
if (part.type === "image") {
|
|
590
|
+
const mimeType = part.mimeType ?? "image/jpeg";
|
|
591
|
+
const validation = (0, import_registry.validateModelFileSupport)(
|
|
592
|
+
config.provider,
|
|
593
|
+
config.model,
|
|
594
|
+
mimeType
|
|
595
|
+
);
|
|
596
|
+
if (validation.isSupported) {
|
|
597
|
+
return [part];
|
|
598
|
+
}
|
|
599
|
+
if (validation.error?.includes("does not support")) {
|
|
600
|
+
imagesInMessage++;
|
|
601
|
+
return [
|
|
602
|
+
{
|
|
603
|
+
type: "text",
|
|
604
|
+
text: `ERROR: Cannot read image (this model does not support image input). Inform the user.`
|
|
605
|
+
}
|
|
606
|
+
];
|
|
607
|
+
}
|
|
608
|
+
logger.warn(
|
|
609
|
+
`Could not validate image support for ${config.model}: ${validation.error}`
|
|
610
|
+
);
|
|
611
|
+
return [part];
|
|
615
612
|
}
|
|
616
|
-
if (
|
|
617
|
-
|
|
618
|
-
|
|
613
|
+
if (part.type === "file" && part.mimeType) {
|
|
614
|
+
const validation = (0, import_registry.validateModelFileSupport)(
|
|
615
|
+
config.provider,
|
|
616
|
+
config.model,
|
|
617
|
+
part.mimeType
|
|
618
|
+
);
|
|
619
|
+
if (validation.isSupported) {
|
|
620
|
+
return [part];
|
|
621
|
+
}
|
|
622
|
+
if (validation.error?.includes("does not support")) {
|
|
623
|
+
filesInMessage++;
|
|
624
|
+
const name = part.filename ? `"${part.filename}"` : "this file";
|
|
625
|
+
const kind = validation.fileType ?? "this file type";
|
|
626
|
+
return [
|
|
627
|
+
{
|
|
628
|
+
type: "text",
|
|
629
|
+
text: `ERROR: Cannot read ${name} (this model does not support ${kind} input). Inform the user.`
|
|
630
|
+
}
|
|
631
|
+
];
|
|
632
|
+
}
|
|
633
|
+
logger.warn(
|
|
634
|
+
`Could not validate file support for ${config.model}: ${validation.error}`
|
|
635
|
+
);
|
|
636
|
+
return [part];
|
|
619
637
|
}
|
|
620
|
-
|
|
621
|
-
`Could not validate file support for ${config.model}: ${validation.error}`
|
|
622
|
-
);
|
|
623
|
-
return true;
|
|
638
|
+
return [part];
|
|
624
639
|
}
|
|
625
|
-
|
|
626
|
-
});
|
|
640
|
+
);
|
|
627
641
|
totalImagesFiltered += imagesInMessage;
|
|
628
642
|
totalFilesFiltered += filesInMessage;
|
|
629
643
|
if (filteredContent.length === 0) {
|
|
@@ -823,6 +837,17 @@ async function persistToolMedia(normalized, options, logger) {
|
|
|
823
837
|
source: "tool"
|
|
824
838
|
});
|
|
825
839
|
const resourceUri = blobRef.uri;
|
|
840
|
+
let publicUrl;
|
|
841
|
+
try {
|
|
842
|
+
const urlResult = await blobStore.retrieve(resourceUri, "url");
|
|
843
|
+
if (urlResult.format === "url") {
|
|
844
|
+
publicUrl = urlResult.data;
|
|
845
|
+
}
|
|
846
|
+
} catch (error) {
|
|
847
|
+
logger.warn(
|
|
848
|
+
`Failed to resolve blob URL for ${resourceUri}: ${error instanceof Error ? error.message : String(error)}`
|
|
849
|
+
);
|
|
850
|
+
}
|
|
826
851
|
if (hint.kind === "image") {
|
|
827
852
|
parts[hint.index] = createBlobImagePart(resourceUri, blobRef.metadata.mimeType);
|
|
828
853
|
} else {
|
|
@@ -836,7 +861,8 @@ async function persistToolMedia(normalized, options, logger) {
|
|
|
836
861
|
mimeType: blobRef.metadata.mimeType,
|
|
837
862
|
...blobRef.metadata.originalName && {
|
|
838
863
|
filename: blobRef.metadata.originalName
|
|
839
|
-
}
|
|
864
|
+
},
|
|
865
|
+
...publicUrl ? { url: publicUrl } : {}
|
|
840
866
|
});
|
|
841
867
|
} catch (error) {
|
|
842
868
|
logger.warn(
|
|
@@ -848,7 +874,8 @@ async function persistToolMedia(normalized, options, logger) {
|
|
|
848
874
|
if (storedBlobs.length > 0) {
|
|
849
875
|
const annotations = storedBlobs.map((blob) => {
|
|
850
876
|
const label = blob.filename || blob.kind;
|
|
851
|
-
|
|
877
|
+
const urlSuffix = blob.url ? `, url: ${blob.url}` : "";
|
|
878
|
+
return `[Stored resource_ref:${blob.uri} (${label}, ${blob.mimeType}${urlSuffix})]`;
|
|
852
879
|
}).join("\n");
|
|
853
880
|
parts.push({ type: "text", text: annotations });
|
|
854
881
|
logger.debug(`Added blob reference annotations for ${storedBlobs.length} resource(s)`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/context/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,cAAc,EACd,WAAW,EACX,mBAAmB,EAEtB,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,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