@inkeep/agents-core 0.14.8 → 0.14.10

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.
@@ -20,7 +20,7 @@ var resourceIdSchema = z.string().min(MIN_ID_LENGTH).max(MAX_ID_LENGTH).regex(UR
20
20
  });
21
21
  var ModelSettingsSchema = z.object({
22
22
  model: z.string().optional(),
23
- providerOptions: z.record(z.string(), z.unknown()).optional()
23
+ providerOptions: z.record(z.string(), z.any()).optional()
24
24
  });
25
25
  var ModelSchema = z.object({
26
26
  base: ModelSettingsSchema.optional(),
@@ -1,4 +1,4 @@
1
- import { FullGraphDefinitionSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-C4PFKKRE.js';
1
+ import { FullGraphDefinitionSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-423XYZ6F.js';
2
2
 
3
3
  // src/validation/graphFull.ts
4
4
  function isInternalAgent(agent) {
@@ -837,7 +837,7 @@ var resourceIdSchema = zodOpenapi.z.string().min(MIN_ID_LENGTH).max(MAX_ID_LENGT
837
837
  });
838
838
  var ModelSettingsSchema = zodOpenapi.z.object({
839
839
  model: zodOpenapi.z.string().optional(),
840
- providerOptions: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.unknown()).optional()
840
+ providerOptions: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.any()).optional()
841
841
  });
842
842
  var ModelSchema = zodOpenapi.z.object({
843
843
  base: ModelSettingsSchema.optional(),
@@ -1462,18 +1462,12 @@ var ErrorResponseSchema2 = zod.z.object({
1462
1462
  message: zod.z.string().optional(),
1463
1463
  details: zod.z.unknown().optional()
1464
1464
  });
1465
- var ModelSettingsSchema2 = zod.z.object({
1466
- model: zod.z.string().optional(),
1467
- structuredOutput: zod.z.string().optional(),
1468
- summarizer: zod.z.string().optional(),
1469
- providerOptions: zod.z.record(zod.z.string(), zod.z.record(zod.z.string(), zod.z.unknown())).optional()
1470
- });
1471
1465
  var AgentApiInsertSchema2 = zod.z.object({
1472
1466
  id: zod.z.string().optional(),
1473
1467
  name: zod.z.string(),
1474
1468
  description: zod.z.string().optional(),
1475
1469
  prompt: zod.z.string().optional(),
1476
- model: ModelSettingsSchema2.optional(),
1470
+ model: ModelSettingsSchema.optional(),
1477
1471
  tools: zod.z.array(zod.z.string()).optional(),
1478
1472
  dataComponents: zod.z.array(zod.z.string()).optional(),
1479
1473
  artifactComponents: zod.z.array(zod.z.string()).optional(),
@@ -1631,7 +1625,7 @@ exports.ListResponseSchema = ListResponseSchema;
1631
1625
  exports.MAX_ID_LENGTH = MAX_ID_LENGTH2;
1632
1626
  exports.MCPTransportType = MCPTransportType;
1633
1627
  exports.MIN_ID_LENGTH = MIN_ID_LENGTH2;
1634
- exports.ModelSettingsSchema = ModelSettingsSchema2;
1628
+ exports.ModelSettingsSchema = ModelSettingsSchema;
1635
1629
  exports.PaginationSchema = PaginationSchema2;
1636
1630
  exports.SingleResponseSchema = SingleResponseSchema;
1637
1631
  exports.StopWhenSchema = StopWhenSchema;
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { C as ConversationHistoryConfig, A as ApiKeyApiUpdateSchema, F as FullGraphAgentInsertSchema } from './utility-COYxGpY5.cjs';
3
- export { d as AgentStopWhen, a as AgentStopWhenSchema, e as CredentialStoreType, c as GraphStopWhen, G as GraphStopWhenSchema, M as MCPTransportType, b as StopWhen, S as StopWhenSchema } from './utility-COYxGpY5.cjs';
2
+ import { C as ConversationHistoryConfig, A as ApiKeyApiUpdateSchema, F as FullGraphAgentInsertSchema } from './utility-CfjwCzr_.cjs';
3
+ export { d as AgentStopWhen, a as AgentStopWhenSchema, f as CredentialStoreType, c as GraphStopWhen, G as GraphStopWhenSchema, g as MCPTransportType, e as ModelSettings, M as ModelSettingsSchema, b as StopWhen, S as StopWhenSchema } from './utility-CfjwCzr_.cjs';
4
4
  import 'drizzle-zod';
5
5
  import 'drizzle-orm/sqlite-core';
6
6
  import '@hono/zod-openapi';
@@ -44,12 +44,7 @@ declare const ErrorResponseSchema: z.ZodObject<{
44
44
  message: z.ZodOptional<z.ZodString>;
45
45
  details: z.ZodOptional<z.ZodUnknown>;
46
46
  }, z.core.$strip>;
47
- declare const ModelSettingsSchema: z.ZodObject<{
48
- model: z.ZodOptional<z.ZodString>;
49
- structuredOutput: z.ZodOptional<z.ZodString>;
50
- summarizer: z.ZodOptional<z.ZodString>;
51
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
52
- }, z.core.$strip>;
47
+
53
48
  declare const AgentApiInsertSchema: z.ZodObject<{
54
49
  id: z.ZodOptional<z.ZodString>;
55
50
  name: z.ZodString;
@@ -57,9 +52,7 @@ declare const AgentApiInsertSchema: z.ZodObject<{
57
52
  prompt: z.ZodOptional<z.ZodString>;
58
53
  model: z.ZodOptional<z.ZodObject<{
59
54
  model: z.ZodOptional<z.ZodString>;
60
- structuredOutput: z.ZodOptional<z.ZodString>;
61
- summarizer: z.ZodOptional<z.ZodString>;
62
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
55
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
63
56
  }, z.core.$strip>>;
64
57
  tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
65
58
  dataComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -178,15 +171,15 @@ declare const FullGraphDefinitionSchema: z.ZodObject<{
178
171
  models: z.ZodOptional<z.ZodObject<{
179
172
  base: z.ZodOptional<z.ZodObject<{
180
173
  model: z.ZodOptional<z.ZodString>;
181
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
174
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
182
175
  }, z.core.$strip>>;
183
176
  structuredOutput: z.ZodOptional<z.ZodObject<{
184
177
  model: z.ZodOptional<z.ZodString>;
185
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
178
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
186
179
  }, z.core.$strip>>;
187
180
  summarizer: z.ZodOptional<z.ZodObject<{
188
181
  model: z.ZodOptional<z.ZodString>;
189
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
182
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
190
183
  }, z.core.$strip>>;
191
184
  }, z.core.$strip>>;
192
185
  stopWhen: z.ZodOptional<z.ZodNullable<z.ZodType<{
@@ -275,7 +268,6 @@ type InternalAgentDefinition = z.infer<typeof FullGraphAgentInsertSchema>;
275
268
  type ExternalAgentDefinition = z.infer<typeof ExternalAgentApiInsertSchema>;
276
269
  type TenantParams = z.infer<typeof TenantParamsSchema>;
277
270
  type ErrorResponse = z.infer<typeof ErrorResponseSchema>;
278
- type ModelSettings = z.infer<typeof ModelSettingsSchema>;
279
271
  declare const MIN_ID_LENGTH = 1;
280
272
  declare const MAX_ID_LENGTH = 255;
281
273
  declare const URL_SAFE_ID_PATTERN: RegExp;
@@ -284,4 +276,4 @@ declare function generateIdFromName(name: string): string;
284
276
  type ToolInsert = ToolApiInsert;
285
277
  type AgentGraphInsert = AgentGraphApiInsert;
286
278
 
287
- export { type AgentApiInsert, AgentApiInsertSchema, type AgentGraphApiInsert, AgentGraphApiInsertSchema, type AgentGraphInsert, type ApiKeyApiCreationResponse, ApiKeyApiCreationResponseSchema, type ApiKeyApiSelect, ApiKeyApiSelectSchema, type ApiKeyApiUpdateResponse, type ArtifactComponentApiInsert, ArtifactComponentApiInsertSchema, type ContextConfigApiInsert, ContextConfigApiInsertSchema, type CredentialReferenceApiInsert, CredentialReferenceApiInsertSchema, type DataComponentApiInsert, DataComponentApiInsertSchema, type ErrorResponse, ErrorResponseSchema, type ExternalAgentApiInsert, ExternalAgentApiInsertSchema, type ExternalAgentDefinition, type FullGraphDefinition, FullGraphDefinitionSchema, IdParamsSchema, type InternalAgentDefinition, ListResponseSchema, MAX_ID_LENGTH, MIN_ID_LENGTH, type ModelSettings, ModelSettingsSchema, PaginationSchema, SingleResponseSchema, type TenantParams, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, type ToolApiInsert, ToolApiInsertSchema, type ToolInsert, URL_SAFE_ID_PATTERN, generateIdFromName, resourceIdSchema };
279
+ export { type AgentApiInsert, AgentApiInsertSchema, type AgentGraphApiInsert, AgentGraphApiInsertSchema, type AgentGraphInsert, type ApiKeyApiCreationResponse, ApiKeyApiCreationResponseSchema, type ApiKeyApiSelect, ApiKeyApiSelectSchema, type ApiKeyApiUpdateResponse, type ArtifactComponentApiInsert, ArtifactComponentApiInsertSchema, type ContextConfigApiInsert, ContextConfigApiInsertSchema, type CredentialReferenceApiInsert, CredentialReferenceApiInsertSchema, type DataComponentApiInsert, DataComponentApiInsertSchema, type ErrorResponse, ErrorResponseSchema, type ExternalAgentApiInsert, ExternalAgentApiInsertSchema, type ExternalAgentDefinition, type FullGraphDefinition, FullGraphDefinitionSchema, IdParamsSchema, type InternalAgentDefinition, ListResponseSchema, MAX_ID_LENGTH, MIN_ID_LENGTH, PaginationSchema, SingleResponseSchema, type TenantParams, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, type ToolApiInsert, ToolApiInsertSchema, type ToolInsert, URL_SAFE_ID_PATTERN, generateIdFromName, resourceIdSchema };
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { C as ConversationHistoryConfig, A as ApiKeyApiUpdateSchema, F as FullGraphAgentInsertSchema } from './utility-COYxGpY5.js';
3
- export { d as AgentStopWhen, a as AgentStopWhenSchema, e as CredentialStoreType, c as GraphStopWhen, G as GraphStopWhenSchema, M as MCPTransportType, b as StopWhen, S as StopWhenSchema } from './utility-COYxGpY5.js';
2
+ import { C as ConversationHistoryConfig, A as ApiKeyApiUpdateSchema, F as FullGraphAgentInsertSchema } from './utility-CfjwCzr_.js';
3
+ export { d as AgentStopWhen, a as AgentStopWhenSchema, f as CredentialStoreType, c as GraphStopWhen, G as GraphStopWhenSchema, g as MCPTransportType, e as ModelSettings, M as ModelSettingsSchema, b as StopWhen, S as StopWhenSchema } from './utility-CfjwCzr_.js';
4
4
  import 'drizzle-zod';
5
5
  import 'drizzle-orm/sqlite-core';
6
6
  import '@hono/zod-openapi';
@@ -44,12 +44,7 @@ declare const ErrorResponseSchema: z.ZodObject<{
44
44
  message: z.ZodOptional<z.ZodString>;
45
45
  details: z.ZodOptional<z.ZodUnknown>;
46
46
  }, z.core.$strip>;
47
- declare const ModelSettingsSchema: z.ZodObject<{
48
- model: z.ZodOptional<z.ZodString>;
49
- structuredOutput: z.ZodOptional<z.ZodString>;
50
- summarizer: z.ZodOptional<z.ZodString>;
51
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
52
- }, z.core.$strip>;
47
+
53
48
  declare const AgentApiInsertSchema: z.ZodObject<{
54
49
  id: z.ZodOptional<z.ZodString>;
55
50
  name: z.ZodString;
@@ -57,9 +52,7 @@ declare const AgentApiInsertSchema: z.ZodObject<{
57
52
  prompt: z.ZodOptional<z.ZodString>;
58
53
  model: z.ZodOptional<z.ZodObject<{
59
54
  model: z.ZodOptional<z.ZodString>;
60
- structuredOutput: z.ZodOptional<z.ZodString>;
61
- summarizer: z.ZodOptional<z.ZodString>;
62
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
55
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
63
56
  }, z.core.$strip>>;
64
57
  tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
65
58
  dataComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -178,15 +171,15 @@ declare const FullGraphDefinitionSchema: z.ZodObject<{
178
171
  models: z.ZodOptional<z.ZodObject<{
179
172
  base: z.ZodOptional<z.ZodObject<{
180
173
  model: z.ZodOptional<z.ZodString>;
181
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
174
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
182
175
  }, z.core.$strip>>;
183
176
  structuredOutput: z.ZodOptional<z.ZodObject<{
184
177
  model: z.ZodOptional<z.ZodString>;
185
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
178
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
186
179
  }, z.core.$strip>>;
187
180
  summarizer: z.ZodOptional<z.ZodObject<{
188
181
  model: z.ZodOptional<z.ZodString>;
189
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
182
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
190
183
  }, z.core.$strip>>;
191
184
  }, z.core.$strip>>;
192
185
  stopWhen: z.ZodOptional<z.ZodNullable<z.ZodType<{
@@ -275,7 +268,6 @@ type InternalAgentDefinition = z.infer<typeof FullGraphAgentInsertSchema>;
275
268
  type ExternalAgentDefinition = z.infer<typeof ExternalAgentApiInsertSchema>;
276
269
  type TenantParams = z.infer<typeof TenantParamsSchema>;
277
270
  type ErrorResponse = z.infer<typeof ErrorResponseSchema>;
278
- type ModelSettings = z.infer<typeof ModelSettingsSchema>;
279
271
  declare const MIN_ID_LENGTH = 1;
280
272
  declare const MAX_ID_LENGTH = 255;
281
273
  declare const URL_SAFE_ID_PATTERN: RegExp;
@@ -284,4 +276,4 @@ declare function generateIdFromName(name: string): string;
284
276
  type ToolInsert = ToolApiInsert;
285
277
  type AgentGraphInsert = AgentGraphApiInsert;
286
278
 
287
- export { type AgentApiInsert, AgentApiInsertSchema, type AgentGraphApiInsert, AgentGraphApiInsertSchema, type AgentGraphInsert, type ApiKeyApiCreationResponse, ApiKeyApiCreationResponseSchema, type ApiKeyApiSelect, ApiKeyApiSelectSchema, type ApiKeyApiUpdateResponse, type ArtifactComponentApiInsert, ArtifactComponentApiInsertSchema, type ContextConfigApiInsert, ContextConfigApiInsertSchema, type CredentialReferenceApiInsert, CredentialReferenceApiInsertSchema, type DataComponentApiInsert, DataComponentApiInsertSchema, type ErrorResponse, ErrorResponseSchema, type ExternalAgentApiInsert, ExternalAgentApiInsertSchema, type ExternalAgentDefinition, type FullGraphDefinition, FullGraphDefinitionSchema, IdParamsSchema, type InternalAgentDefinition, ListResponseSchema, MAX_ID_LENGTH, MIN_ID_LENGTH, type ModelSettings, ModelSettingsSchema, PaginationSchema, SingleResponseSchema, type TenantParams, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, type ToolApiInsert, ToolApiInsertSchema, type ToolInsert, URL_SAFE_ID_PATTERN, generateIdFromName, resourceIdSchema };
279
+ export { type AgentApiInsert, AgentApiInsertSchema, type AgentGraphApiInsert, AgentGraphApiInsertSchema, type AgentGraphInsert, type ApiKeyApiCreationResponse, ApiKeyApiCreationResponseSchema, type ApiKeyApiSelect, ApiKeyApiSelectSchema, type ApiKeyApiUpdateResponse, type ArtifactComponentApiInsert, ArtifactComponentApiInsertSchema, type ContextConfigApiInsert, ContextConfigApiInsertSchema, type CredentialReferenceApiInsert, CredentialReferenceApiInsertSchema, type DataComponentApiInsert, DataComponentApiInsertSchema, type ErrorResponse, ErrorResponseSchema, type ExternalAgentApiInsert, ExternalAgentApiInsertSchema, type ExternalAgentDefinition, type FullGraphDefinition, FullGraphDefinitionSchema, IdParamsSchema, type InternalAgentDefinition, ListResponseSchema, MAX_ID_LENGTH, MIN_ID_LENGTH, PaginationSchema, SingleResponseSchema, type TenantParams, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, type ToolApiInsert, ToolApiInsertSchema, type ToolInsert, URL_SAFE_ID_PATTERN, generateIdFromName, resourceIdSchema };
@@ -1,5 +1,5 @@
1
- import { FullGraphAgentInsertSchema } from './chunk-C4PFKKRE.js';
2
- export { AgentStopWhenSchema, GraphStopWhenSchema, StopWhenSchema } from './chunk-C4PFKKRE.js';
1
+ import { ModelSettingsSchema, FullGraphAgentInsertSchema } from './chunk-423XYZ6F.js';
2
+ export { AgentStopWhenSchema, GraphStopWhenSchema, ModelSettingsSchema, StopWhenSchema } from './chunk-423XYZ6F.js';
3
3
  import { CredentialStoreType } from './chunk-YFHT5M2R.js';
4
4
  export { CredentialStoreType, MCPTransportType } from './chunk-YFHT5M2R.js';
5
5
  import { z } from 'zod';
@@ -34,12 +34,6 @@ var ErrorResponseSchema = z.object({
34
34
  message: z.string().optional(),
35
35
  details: z.unknown().optional()
36
36
  });
37
- var ModelSettingsSchema = z.object({
38
- model: z.string().optional(),
39
- structuredOutput: z.string().optional(),
40
- summarizer: z.string().optional(),
41
- providerOptions: z.record(z.string(), z.record(z.string(), z.unknown())).optional()
42
- });
43
37
  var AgentApiInsertSchema = z.object({
44
38
  id: z.string().optional(),
45
39
  name: z.string(),
@@ -184,4 +178,4 @@ function generateIdFromName(name) {
184
178
  return name.toLowerCase().replace(/[^a-zA-Z0-9]/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "").slice(0, MAX_ID_LENGTH);
185
179
  }
186
180
 
187
- export { AgentApiInsertSchema, AgentGraphApiInsertSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiSelectSchema, ArtifactComponentApiInsertSchema, ContextConfigApiInsertSchema, CredentialReferenceApiInsertSchema, DataComponentApiInsertSchema, ErrorResponseSchema, ExternalAgentApiInsertSchema, FullGraphDefinitionSchema, IdParamsSchema, ListResponseSchema, MAX_ID_LENGTH, MIN_ID_LENGTH, ModelSettingsSchema, PaginationSchema, SingleResponseSchema, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, URL_SAFE_ID_PATTERN, generateIdFromName, resourceIdSchema };
181
+ export { AgentApiInsertSchema, AgentGraphApiInsertSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiSelectSchema, ArtifactComponentApiInsertSchema, ContextConfigApiInsertSchema, CredentialReferenceApiInsertSchema, DataComponentApiInsertSchema, ErrorResponseSchema, ExternalAgentApiInsertSchema, FullGraphDefinitionSchema, IdParamsSchema, ListResponseSchema, MAX_ID_LENGTH, MIN_ID_LENGTH, PaginationSchema, SingleResponseSchema, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, URL_SAFE_ID_PATTERN, generateIdFromName, resourceIdSchema };
@@ -1,7 +1,7 @@
1
1
  import 'drizzle-orm';
2
2
  import 'drizzle-orm/sqlite-core';
3
- import '../utility-COYxGpY5.cjs';
4
- export { k as agentArtifactComponents, K as agentArtifactComponentsRelations, i as agentDataComponents, M as agentDataComponentsRelations, a as agentGraph, B as agentGraphRelations, e as agentRelations, O as agentRelationsRelations, m as agentToolRelations, E as agentToolRelationsRelations, d as agents, A as agentsRelations, r as apiKeys, D as apiKeysRelations, j as artifactComponents, J as artifactComponentsRelations, b as contextCache, z as contextCacheRelations, c as contextConfigs, y as contextConfigsRelations, n as conversations, H as conversationsRelations, u as credentialReferences, F as credentialReferencesRelations, h as dataComponents, L as dataComponentsRelations, f as externalAgents, C as externalAgentsRelations, q as ledgerArtifacts, N as ledgerArtifactsRelations, o as messages, I as messagesRelations, p as projects, w as projectsRelations, g as taskRelations, x as taskRelationsRelations, t as tasks, v as tasksRelations, l as tools, G as toolsRelations } from '../schema-BUMYiuQO.cjs';
3
+ import '../utility-CfjwCzr_.cjs';
4
+ export { k as agentArtifactComponents, K as agentArtifactComponentsRelations, i as agentDataComponents, M as agentDataComponentsRelations, a as agentGraph, B as agentGraphRelations, e as agentRelations, O as agentRelationsRelations, m as agentToolRelations, E as agentToolRelationsRelations, d as agents, A as agentsRelations, r as apiKeys, D as apiKeysRelations, j as artifactComponents, J as artifactComponentsRelations, b as contextCache, z as contextCacheRelations, c as contextConfigs, y as contextConfigsRelations, n as conversations, H as conversationsRelations, u as credentialReferences, F as credentialReferencesRelations, h as dataComponents, L as dataComponentsRelations, f as externalAgents, C as externalAgentsRelations, q as ledgerArtifacts, N as ledgerArtifactsRelations, o as messages, I as messagesRelations, p as projects, w as projectsRelations, g as taskRelations, x as taskRelationsRelations, t as tasks, v as tasksRelations, l as tools, G as toolsRelations } from '../schema-Mdt3_61i.cjs';
5
5
  import 'zod';
6
6
  import 'drizzle-zod';
7
7
  import '@hono/zod-openapi';
@@ -1,7 +1,7 @@
1
1
  import 'drizzle-orm';
2
2
  import 'drizzle-orm/sqlite-core';
3
- import '../utility-COYxGpY5.js';
4
- export { k as agentArtifactComponents, K as agentArtifactComponentsRelations, i as agentDataComponents, M as agentDataComponentsRelations, a as agentGraph, B as agentGraphRelations, e as agentRelations, O as agentRelationsRelations, m as agentToolRelations, E as agentToolRelationsRelations, d as agents, A as agentsRelations, r as apiKeys, D as apiKeysRelations, j as artifactComponents, J as artifactComponentsRelations, b as contextCache, z as contextCacheRelations, c as contextConfigs, y as contextConfigsRelations, n as conversations, H as conversationsRelations, u as credentialReferences, F as credentialReferencesRelations, h as dataComponents, L as dataComponentsRelations, f as externalAgents, C as externalAgentsRelations, q as ledgerArtifacts, N as ledgerArtifactsRelations, o as messages, I as messagesRelations, p as projects, w as projectsRelations, g as taskRelations, x as taskRelationsRelations, t as tasks, v as tasksRelations, l as tools, G as toolsRelations } from '../schema-iVTOUsW8.js';
3
+ import '../utility-CfjwCzr_.js';
4
+ export { k as agentArtifactComponents, K as agentArtifactComponentsRelations, i as agentDataComponents, M as agentDataComponentsRelations, a as agentGraph, B as agentGraphRelations, e as agentRelations, O as agentRelationsRelations, m as agentToolRelations, E as agentToolRelationsRelations, d as agents, A as agentsRelations, r as apiKeys, D as apiKeysRelations, j as artifactComponents, J as artifactComponentsRelations, b as contextCache, z as contextCacheRelations, c as contextConfigs, y as contextConfigsRelations, n as conversations, H as conversationsRelations, u as credentialReferences, F as credentialReferencesRelations, h as dataComponents, L as dataComponentsRelations, f as externalAgents, C as externalAgentsRelations, q as ledgerArtifacts, N as ledgerArtifactsRelations, o as messages, I as messagesRelations, p as projects, w as projectsRelations, g as taskRelations, x as taskRelationsRelations, t as tasks, v as tasksRelations, l as tools, G as toolsRelations } from '../schema-NJiTVcbN.js';
5
5
  import 'zod';
6
6
  import 'drizzle-zod';
7
7
  import '@hono/zod-openapi';
package/dist/index.cjs CHANGED
@@ -1095,7 +1095,7 @@ var resourceIdSchema = zodOpenapi.z.string().min(MIN_ID_LENGTH).max(MAX_ID_LENGT
1095
1095
  });
1096
1096
  var ModelSettingsSchema = zodOpenapi.z.object({
1097
1097
  model: zodOpenapi.z.string().optional(),
1098
- providerOptions: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.unknown()).optional()
1098
+ providerOptions: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.any()).optional()
1099
1099
  });
1100
1100
  var ModelSchema = zodOpenapi.z.object({
1101
1101
  base: ModelSettingsSchema.optional(),
@@ -5736,14 +5736,13 @@ var noopTracer = {
5736
5736
  }
5737
5737
  };
5738
5738
  function setSpanWithError(span, error, logger12, logMessage) {
5739
- const errorMessage = error instanceof Error ? error.message : String(error);
5740
5739
  span.recordException(error);
5741
5740
  span.setStatus({
5742
5741
  code: api.SpanStatusCode.ERROR,
5743
- message: errorMessage
5742
+ message: error.message
5744
5743
  });
5745
5744
  if (logger12 && logMessage) {
5746
- logger12.error({ error: errorMessage }, logMessage);
5745
+ logger12.error({ error: error.message }, logMessage);
5747
5746
  }
5748
5747
  }
5749
5748
  function getTracer(serviceName, serviceVersion) {
@@ -8946,7 +8945,7 @@ var ContextResolver = class {
8946
8945
  return result;
8947
8946
  } catch (error) {
8948
8947
  const durationMs = Date.now() - startTime;
8949
- setSpanWithError(parentSpan, error);
8948
+ setSpanWithError(parentSpan, error instanceof Error ? error : new Error(String(error)));
8950
8949
  logger7.error(
8951
8950
  {
8952
8951
  contextConfigId: contextConfig2.id,
@@ -9026,7 +9025,7 @@ var ContextResolver = class {
9026
9025
  });
9027
9026
  return data;
9028
9027
  } catch (error) {
9029
- setSpanWithError(parentSpan, error);
9028
+ setSpanWithError(parentSpan, error instanceof Error ? error : new Error(String(error)));
9030
9029
  throw error;
9031
9030
  } finally {
9032
9031
  parentSpan.end();
@@ -9938,7 +9937,7 @@ async function handleContextResolution({
9938
9937
  "context.final_status": "failed",
9939
9938
  "context.error_message": errorMessage
9940
9939
  });
9941
- setSpanWithError(parentSpan, error);
9940
+ setSpanWithError(parentSpan, error instanceof Error ? error : new Error(String(error)));
9942
9941
  logger10.error(
9943
9942
  {
9944
9943
  error: errorMessage,