@inkeep/agents-core 0.0.0-dev-20251010165126 → 0.0.0-dev-20251010180500

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.
@@ -375,10 +375,7 @@ var tools = sqliteCore.sqliteTable(
375
375
  ...projectScoped,
376
376
  name: sqliteCore.text("name").notNull(),
377
377
  description: sqliteCore.text("description"),
378
- // Tool configuration - supports both MCP and function tools
379
378
  config: sqliteCore.blob("config", { mode: "json" }).$type().notNull(),
380
- // For function tools, reference the global functions table
381
- functionId: sqliteCore.text("function_id"),
382
379
  credentialReferenceId: sqliteCore.text("credential_reference_id"),
383
380
  headers: sqliteCore.blob("headers", { mode: "json" }).$type(),
384
381
  // Image URL for custom tool icon (supports regular URLs and base64 encoded images)
@@ -394,12 +391,30 @@ var tools = sqliteCore.sqliteTable(
394
391
  columns: [table.tenantId, table.projectId],
395
392
  foreignColumns: [projects.tenantId, projects.id],
396
393
  name: "tools_project_fk"
394
+ }).onDelete("cascade")
395
+ ]
396
+ );
397
+ var functionTools = sqliteCore.sqliteTable(
398
+ "function_tools",
399
+ {
400
+ ...graphScoped,
401
+ name: sqliteCore.text("name").notNull(),
402
+ description: sqliteCore.text("description"),
403
+ functionId: sqliteCore.text("function_id").notNull(),
404
+ ...timestamps
405
+ },
406
+ (table) => [
407
+ sqliteCore.primaryKey({ columns: [table.tenantId, table.projectId, table.graphId, table.id] }),
408
+ sqliteCore.foreignKey({
409
+ columns: [table.tenantId, table.projectId, table.graphId],
410
+ foreignColumns: [agentGraph.tenantId, agentGraph.projectId, agentGraph.id],
411
+ name: "function_tools_graph_fk"
397
412
  }).onDelete("cascade"),
398
- // Foreign key constraint to functions table (for function tools)
413
+ // Foreign key constraint to functions table
399
414
  sqliteCore.foreignKey({
400
415
  columns: [table.tenantId, table.projectId, table.functionId],
401
416
  foreignColumns: [functions.tenantId, functions.projectId, functions.id],
402
- name: "tools_function_fk"
417
+ name: "function_tools_function_fk"
403
418
  }).onDelete("cascade")
404
419
  ]
405
420
  );
@@ -438,7 +453,7 @@ var subAgentToolRelations = sqliteCore.sqliteTable(
438
453
  foreignColumns: [subAgents.tenantId, subAgents.projectId, subAgents.graphId, subAgents.id],
439
454
  name: "sub_agent_tool_relations_agent_fk"
440
455
  }).onDelete("cascade"),
441
- // Foreign key constraint to tools table
456
+ // Foreign key constraint to tools table (MCP tools)
442
457
  sqliteCore.foreignKey({
443
458
  columns: [table.tenantId, table.projectId, table.toolId],
444
459
  foreignColumns: [tools.tenantId, tools.projectId, tools.id],
@@ -446,6 +461,34 @@ var subAgentToolRelations = sqliteCore.sqliteTable(
446
461
  }).onDelete("cascade")
447
462
  ]
448
463
  );
464
+ var agentFunctionToolRelations = sqliteCore.sqliteTable(
465
+ "agent_function_tool_relations",
466
+ {
467
+ ...subAgentScoped,
468
+ functionToolId: sqliteCore.text("function_tool_id").notNull(),
469
+ ...timestamps
470
+ },
471
+ (table) => [
472
+ sqliteCore.primaryKey({ columns: [table.tenantId, table.projectId, table.graphId, table.id] }),
473
+ // Foreign key constraint to agents table
474
+ sqliteCore.foreignKey({
475
+ columns: [table.tenantId, table.projectId, table.graphId, table.subAgentId],
476
+ foreignColumns: [subAgents.tenantId, subAgents.projectId, subAgents.graphId, subAgents.id],
477
+ name: "agent_function_tool_relations_agent_fk"
478
+ }).onDelete("cascade"),
479
+ // Foreign key constraint to functionTools table
480
+ sqliteCore.foreignKey({
481
+ columns: [table.tenantId, table.projectId, table.graphId, table.functionToolId],
482
+ foreignColumns: [
483
+ functionTools.tenantId,
484
+ functionTools.projectId,
485
+ functionTools.graphId,
486
+ functionTools.id
487
+ ],
488
+ name: "agent_function_tool_relations_function_tool_fk"
489
+ }).onDelete("cascade")
490
+ ]
491
+ );
449
492
  var conversations = sqliteCore.sqliteTable(
450
493
  "conversations",
451
494
  {
@@ -631,6 +674,7 @@ drizzleOrm.relations(projects, ({ many }) => ({
631
674
  subAgents: many(subAgents),
632
675
  agentGraphs: many(agentGraph),
633
676
  tools: many(tools),
677
+ functions: many(functions),
634
678
  contextConfigs: many(contextConfigs),
635
679
  externalAgents: many(externalAgents),
636
680
  conversations: many(conversations),
@@ -689,10 +733,11 @@ drizzleOrm.relations(subAgents, ({ many, one }) => ({
689
733
  relationName: "associatedAgent"
690
734
  }),
691
735
  toolRelations: many(subAgentToolRelations),
736
+ functionToolRelations: many(agentFunctionToolRelations),
692
737
  dataComponentRelations: many(subAgentDataComponents),
693
738
  artifactComponentRelations: many(subAgentArtifactComponents)
694
739
  }));
695
- drizzleOrm.relations(agentGraph, ({ one }) => ({
740
+ drizzleOrm.relations(agentGraph, ({ one, many }) => ({
696
741
  project: one(projects, {
697
742
  fields: [agentGraph.tenantId, agentGraph.projectId],
698
743
  references: [projects.tenantId, projects.id]
@@ -704,7 +749,8 @@ drizzleOrm.relations(agentGraph, ({ one }) => ({
704
749
  contextConfig: one(contextConfigs, {
705
750
  fields: [agentGraph.contextConfigId],
706
751
  references: [contextConfigs.id]
707
- })
752
+ }),
753
+ functionTools: many(functionTools)
708
754
  }));
709
755
  drizzleOrm.relations(externalAgents, ({ one, many }) => ({
710
756
  project: one(projects, {
@@ -749,10 +795,6 @@ drizzleOrm.relations(tools, ({ one, many }) => ({
749
795
  credentialReference: one(credentialReferences, {
750
796
  fields: [tools.credentialReferenceId],
751
797
  references: [credentialReferences.id]
752
- }),
753
- function: one(functions, {
754
- fields: [tools.functionId],
755
- references: [functions.id]
756
798
  })
757
799
  }));
758
800
  drizzleOrm.relations(conversations, ({ one, many }) => ({
@@ -852,7 +894,7 @@ drizzleOrm.relations(ledgerArtifacts, ({ one }) => ({
852
894
  })
853
895
  }));
854
896
  drizzleOrm.relations(functions, ({ many }) => ({
855
- tools: many(tools)
897
+ functionTools: many(functionTools)
856
898
  }));
857
899
  drizzleOrm.relations(subAgentRelations, ({ one }) => ({
858
900
  graph: one(agentGraph, {
@@ -874,6 +916,34 @@ drizzleOrm.relations(subAgentRelations, ({ one }) => ({
874
916
  references: [externalAgents.id]
875
917
  })
876
918
  }));
919
+ drizzleOrm.relations(functionTools, ({ one, many }) => ({
920
+ project: one(projects, {
921
+ fields: [functionTools.tenantId, functionTools.projectId],
922
+ references: [projects.tenantId, projects.id]
923
+ }),
924
+ graph: one(agentGraph, {
925
+ fields: [functionTools.tenantId, functionTools.projectId, functionTools.graphId],
926
+ references: [agentGraph.tenantId, agentGraph.projectId, agentGraph.id]
927
+ }),
928
+ function: one(functions, {
929
+ fields: [functionTools.tenantId, functionTools.projectId, functionTools.functionId],
930
+ references: [functions.tenantId, functions.projectId, functions.id]
931
+ }),
932
+ agentRelations: many(agentFunctionToolRelations)
933
+ }));
934
+ drizzleOrm.relations(
935
+ agentFunctionToolRelations,
936
+ ({ one }) => ({
937
+ agent: one(subAgents, {
938
+ fields: [agentFunctionToolRelations.subAgentId],
939
+ references: [subAgents.id]
940
+ }),
941
+ functionTool: one(functionTools, {
942
+ fields: [agentFunctionToolRelations.functionToolId],
943
+ references: [functionTools.id]
944
+ })
945
+ })
946
+ );
877
947
 
878
948
  // src/types/utility.ts
879
949
  var TOOL_STATUS_VALUES = ["healthy", "unhealthy", "unknown", "needs_auth"];
@@ -1074,32 +1144,22 @@ var ToolSelectSchema = drizzleZod.createSelectSchema(tools);
1074
1144
  var ToolInsertSchema = drizzleZod.createInsertSchema(tools).extend({
1075
1145
  id: resourceIdSchema,
1076
1146
  imageUrl: imageUrlSchema,
1077
- functionId: resourceIdSchema.optional(),
1078
- // For function tools, reference to global functions table
1079
- config: zodOpenapi.z.discriminatedUnion("type", [
1080
- // MCP tools
1081
- zodOpenapi.z.object({
1082
- type: zodOpenapi.z.literal("mcp"),
1083
- mcp: zodOpenapi.z.object({
1084
- server: zodOpenapi.z.object({
1085
- url: zodOpenapi.z.string().url()
1086
- }),
1087
- transport: zodOpenapi.z.object({
1088
- type: zodOpenapi.z.enum(MCPTransportType),
1089
- requestInit: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.unknown()).optional(),
1090
- eventSourceInit: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.unknown()).optional(),
1091
- reconnectionOptions: zodOpenapi.z.custom().optional(),
1092
- sessionId: zodOpenapi.z.string().optional()
1093
- }).optional(),
1094
- activeTools: zodOpenapi.z.array(zodOpenapi.z.string()).optional()
1095
- })
1096
- }),
1097
- // Function tools (reference-only, no inline duplication)
1098
- zodOpenapi.z.object({
1099
- type: zodOpenapi.z.literal("function")
1100
- // No inline function details - they're in the functions table via functionId
1147
+ config: zodOpenapi.z.object({
1148
+ type: zodOpenapi.z.literal("mcp"),
1149
+ mcp: zodOpenapi.z.object({
1150
+ server: zodOpenapi.z.object({
1151
+ url: zodOpenapi.z.string().url()
1152
+ }),
1153
+ transport: zodOpenapi.z.object({
1154
+ type: zodOpenapi.z.enum(MCPTransportType),
1155
+ requestInit: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.unknown()).optional(),
1156
+ eventSourceInit: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.unknown()).optional(),
1157
+ reconnectionOptions: zodOpenapi.z.custom().optional(),
1158
+ sessionId: zodOpenapi.z.string().optional()
1159
+ }).optional(),
1160
+ activeTools: zodOpenapi.z.array(zodOpenapi.z.string()).optional()
1101
1161
  })
1102
- ])
1162
+ })
1103
1163
  });
1104
1164
  var ConversationSelectSchema = drizzleZod.createSelectSchema(conversations);
1105
1165
  var ConversationInsertSchema = drizzleZod.createInsertSchema(conversations).extend({
@@ -1309,6 +1369,14 @@ var ToolUpdateSchema = ToolInsertSchema.partial();
1309
1369
  var ToolApiSelectSchema = createApiSchema(ToolSelectSchema);
1310
1370
  var ToolApiInsertSchema = createApiInsertSchema(ToolInsertSchema);
1311
1371
  var ToolApiUpdateSchema = createApiUpdateSchema(ToolUpdateSchema);
1372
+ var FunctionToolSelectSchema = drizzleZod.createSelectSchema(functionTools);
1373
+ var FunctionToolInsertSchema = drizzleZod.createInsertSchema(functionTools).extend({
1374
+ id: resourceIdSchema
1375
+ });
1376
+ var FunctionToolUpdateSchema = FunctionToolInsertSchema.partial();
1377
+ var FunctionToolApiSelectSchema = createApiSchema(FunctionToolSelectSchema);
1378
+ var FunctionToolApiInsertSchema = createGraphScopedApiInsertSchema(FunctionToolInsertSchema);
1379
+ var FunctionToolApiUpdateSchema = createApiUpdateSchema(FunctionToolUpdateSchema);
1312
1380
  var FunctionSelectSchema = drizzleZod.createSelectSchema(functions);
1313
1381
  var FunctionInsertSchema = drizzleZod.createInsertSchema(functions).extend({
1314
1382
  id: resourceIdSchema
@@ -1411,6 +1479,24 @@ var FullGraphAgentInsertSchema = SubAgentApiInsertSchema.extend({
1411
1479
  canTransferTo: zodOpenapi.z.array(zodOpenapi.z.string()).optional(),
1412
1480
  canDelegateTo: zodOpenapi.z.array(zodOpenapi.z.string()).optional()
1413
1481
  });
1482
+ var FullGraphDefinitionSchema = AgentGraphApiInsertSchema.extend({
1483
+ subAgents: zodOpenapi.z.record(
1484
+ zodOpenapi.z.string(),
1485
+ zodOpenapi.z.union([FullGraphAgentInsertSchema, ExternalAgentApiInsertSchema])
1486
+ ),
1487
+ // Lookup maps for UI to resolve canUse items
1488
+ tools: zodOpenapi.z.record(zodOpenapi.z.string(), ToolApiInsertSchema).optional(),
1489
+ // MCP tools (project-scoped)
1490
+ functionTools: zodOpenapi.z.record(zodOpenapi.z.string(), FunctionToolApiInsertSchema).optional(),
1491
+ // Function tools (graph-scoped)
1492
+ functions: zodOpenapi.z.record(zodOpenapi.z.string(), FunctionApiInsertSchema).optional(),
1493
+ // Get function code for function tools
1494
+ contextConfig: zodOpenapi.z.optional(ContextConfigApiInsertSchema),
1495
+ statusUpdates: zodOpenapi.z.optional(StatusUpdateSchema),
1496
+ models: ModelSchema.optional(),
1497
+ stopWhen: GraphStopWhenSchema.optional(),
1498
+ graphPrompt: zodOpenapi.z.string().max(5e3, "Graph prompt cannot exceed 5000 characters").optional()
1499
+ });
1414
1500
  var GraphWithinContextOfProjectSchema = AgentGraphApiInsertSchema.extend({
1415
1501
  subAgents: zodOpenapi.z.record(
1416
1502
  zodOpenapi.z.string(),
@@ -1419,9 +1505,13 @@ var GraphWithinContextOfProjectSchema = AgentGraphApiInsertSchema.extend({
1419
1505
  ExternalAgentApiInsertSchema.extend({ type: zodOpenapi.z.literal("external") })
1420
1506
  ])
1421
1507
  ),
1508
+ // Lookup maps for UI to resolve canUse items
1422
1509
  tools: zodOpenapi.z.record(zodOpenapi.z.string(), ToolApiInsertSchema).optional(),
1423
- // Get tool name/description from toolId
1510
+ // MCP tools (project-scoped)
1511
+ functionTools: zodOpenapi.z.record(zodOpenapi.z.string(), FunctionToolApiInsertSchema).optional(),
1512
+ // Function tools (graph-scoped)
1424
1513
  functions: zodOpenapi.z.record(zodOpenapi.z.string(), FunctionApiInsertSchema).optional(),
1514
+ // Get function code for function tools
1425
1515
  contextConfig: zodOpenapi.z.optional(ContextConfigApiInsertSchema),
1426
1516
  statusUpdates: zodOpenapi.z.optional(StatusUpdateSchema),
1427
1517
  models: ModelSchema.optional(),
@@ -1469,9 +1559,9 @@ var ProjectApiUpdateSchema = ProjectUpdateSchema.omit({ tenantId: true });
1469
1559
  var FullProjectDefinitionSchema = ProjectApiInsertSchema.extend({
1470
1560
  graphs: zodOpenapi.z.record(zodOpenapi.z.string(), GraphWithinContextOfProjectSchema),
1471
1561
  tools: zodOpenapi.z.record(zodOpenapi.z.string(), ToolApiInsertSchema),
1472
- // Now includes both MCP and function tools
1562
+ // MCP tools (project-scoped)
1473
1563
  functions: zodOpenapi.z.record(zodOpenapi.z.string(), FunctionApiInsertSchema).optional(),
1474
- // Global functions
1564
+ // Functions (project-scoped)
1475
1565
  dataComponents: zodOpenapi.z.record(zodOpenapi.z.string(), DataComponentApiInsertSchema).optional(),
1476
1566
  artifactComponents: zodOpenapi.z.record(zodOpenapi.z.string(), ArtifactComponentApiInsertSchema).optional(),
1477
1567
  statusUpdates: zodOpenapi.z.optional(StatusUpdateSchema),
@@ -1841,13 +1931,20 @@ exports.ExternalSubAgentRelationInsertSchema = ExternalSubAgentRelationInsertSch
1841
1931
  exports.FetchConfigSchema = FetchConfigSchema;
1842
1932
  exports.FetchDefinitionSchema = FetchDefinitionSchema;
1843
1933
  exports.FullGraphAgentInsertSchema = FullGraphAgentInsertSchema;
1934
+ exports.FullGraphDefinitionSchema = FullGraphDefinitionSchema;
1844
1935
  exports.FullProjectDefinitionSchema = FullProjectDefinitionSchema;
1845
1936
  exports.FunctionApiInsertSchema = FunctionApiInsertSchema;
1846
1937
  exports.FunctionApiSelectSchema = FunctionApiSelectSchema;
1847
1938
  exports.FunctionApiUpdateSchema = FunctionApiUpdateSchema;
1848
1939
  exports.FunctionInsertSchema = FunctionInsertSchema;
1849
1940
  exports.FunctionSelectSchema = FunctionSelectSchema;
1941
+ exports.FunctionToolApiInsertSchema = FunctionToolApiInsertSchema;
1942
+ exports.FunctionToolApiSelectSchema = FunctionToolApiSelectSchema;
1943
+ exports.FunctionToolApiUpdateSchema = FunctionToolApiUpdateSchema;
1850
1944
  exports.FunctionToolConfigSchema = FunctionToolConfigSchema;
1945
+ exports.FunctionToolInsertSchema = FunctionToolInsertSchema;
1946
+ exports.FunctionToolSelectSchema = FunctionToolSelectSchema;
1947
+ exports.FunctionToolUpdateSchema = FunctionToolUpdateSchema;
1851
1948
  exports.FunctionUpdateSchema = FunctionUpdateSchema;
1852
1949
  exports.GraphStopWhenSchema = GraphStopWhenSchema;
1853
1950
  exports.GraphWithinContextOfProjectSchema = GraphWithinContextOfProjectSchema;
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { d3 as AgentDefinition, d2 as InternalAgentDefinition, cJ as ExternalAgentApiInsert, fG as GraphWithinContextOfProjectSchema, z as FullGraphDefinition } from '../utility-D_8q6Vlh.cjs';
3
- export { dV as AgentGraphApiInsertSchema, dU as AgentGraphApiSelectSchema, dW as AgentGraphApiUpdateSchema, dS as AgentGraphInsertSchema, dR as AgentGraphSelectSchema, dT as AgentGraphUpdateSchema, eZ as AllAgentSchema, f2 as ApiKeyApiCreationResponseSchema, f3 as ApiKeyApiInsertSchema, f1 as ApiKeyApiSelectSchema, A as ApiKeyApiUpdateSchema, e$ as ApiKeyInsertSchema, e_ as ApiKeySelectSchema, f0 as ApiKeyUpdateSchema, eL as ArtifactComponentApiInsertSchema, eK as ArtifactComponentApiSelectSchema, eM as ArtifactComponentApiUpdateSchema, eI as ArtifactComponentInsertSchema, eH as ArtifactComponentSelectSchema, eJ as ArtifactComponentUpdateSchema, fF as CanUseItemSchema, es as ContextCacheApiInsertSchema, er as ContextCacheApiSelectSchema, et as ContextCacheApiUpdateSchema, ep as ContextCacheInsertSchema, eo as ContextCacheSelectSchema, eq as ContextCacheUpdateSchema, fp as ContextConfigApiInsertSchema, fo as ContextConfigApiSelectSchema, fq as ContextConfigApiUpdateSchema, fm as ContextConfigInsertSchema, fl as ContextConfigSelectSchema, fn as ContextConfigUpdateSchema, eg as ConversationApiInsertSchema, ef as ConversationApiSelectSchema, eh as ConversationApiUpdateSchema, ed as ConversationInsertSchema, ec as ConversationSelectSchema, ee as ConversationUpdateSchema, f8 as CredentialReferenceApiInsertSchema, f7 as CredentialReferenceApiSelectSchema, f9 as CredentialReferenceApiUpdateSchema, f5 as CredentialReferenceInsertSchema, f4 as CredentialReferenceSelectSchema, f6 as CredentialReferenceUpdateSchema, ez as DataComponentApiInsertSchema, ey as DataComponentApiSelectSchema, eA as DataComponentApiUpdateSchema, ew as DataComponentBaseSchema, ev as DataComponentInsertSchema, eu as DataComponentSelectSchema, ex as DataComponentUpdateSchema, fK as ErrorResponseSchema, fL as ExistsResponseSchema, eX as ExternalAgentApiInsertSchema, eW as ExternalAgentApiSelectSchema, eY as ExternalAgentApiUpdateSchema, eU as ExternalAgentInsertSchema, eT as ExternalAgentSelectSchema, eV as ExternalAgentUpdateSchema, dQ as ExternalSubAgentRelationApiInsertSchema, dP as ExternalSubAgentRelationInsertSchema, fj as FetchConfigSchema, fk as FetchDefinitionSchema, a as FullGraphAgentInsertSchema, fT as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, i as FunctionApiSelectSchema, j as FunctionApiUpdateSchema, fh as FunctionInsertSchema, fg as FunctionSelectSchema, dB as FunctionToolConfig, dA as FunctionToolConfigSchema, fi as FunctionUpdateSchema, d as GraphStopWhen, G as GraphStopWhenSchema, fU as HeadersScopeSchema, fB as LedgerArtifactApiInsertSchema, fA as LedgerArtifactApiSelectSchema, fC as LedgerArtifactApiUpdateSchema, fy as LedgerArtifactInsertSchema, fx as LedgerArtifactSelectSchema, fz as LedgerArtifactUpdateSchema, fI as ListResponseSchema, du as MAX_ID_LENGTH, fb as MCPToolConfigSchema, dt as MIN_ID_LENGTH, e9 as McpToolDefinitionSchema, fa as McpToolSchema, e7 as McpTransportConfigSchema, em as MessageApiInsertSchema, el as MessageApiSelectSchema, en as MessageApiUpdateSchema, ej as MessageInsertSchema, ei as MessageSelectSchema, ek as MessageUpdateSchema, dx as ModelSchema, f as ModelSettings, M as ModelSettingsSchema, g1 as PaginationQueryParamsSchema, fH as PaginationSchema, fR as ProjectApiInsertSchema, fQ as ProjectApiSelectSchema, fS as ProjectApiUpdateSchema, fO as ProjectInsertSchema, dy as ProjectModelSchema, fN as ProjectSelectSchema, fP as ProjectUpdateSchema, fM as RemovedResponseSchema, dz as SandboxConfig, k as SandboxConfigSchema, fJ as SingleResponseSchema, fD as StatusComponentSchema, fE as StatusUpdateSchema, c as StopWhen, S as StopWhenSchema, dG as SubAgentApiInsertSchema, dF as SubAgentApiSelectSchema, dH as SubAgentApiUpdateSchema, eR as SubAgentArtifactComponentApiInsertSchema, eQ as SubAgentArtifactComponentApiSelectSchema, eS as SubAgentArtifactComponentApiUpdateSchema, eO as SubAgentArtifactComponentInsertSchema, eN as SubAgentArtifactComponentSelectSchema, eP as SubAgentArtifactComponentUpdateSchema, eF as SubAgentDataComponentApiInsertSchema, eE as SubAgentDataComponentApiSelectSchema, eG as SubAgentDataComponentApiUpdateSchema, eC as SubAgentDataComponentInsertSchema, eB as SubAgentDataComponentSelectSchema, eD as SubAgentDataComponentUpdateSchema, dD as SubAgentInsertSchema, dM as SubAgentRelationApiInsertSchema, dL as SubAgentRelationApiSelectSchema, dN as SubAgentRelationApiUpdateSchema, dJ as SubAgentRelationInsertSchema, dO as SubAgentRelationQuerySchema, dI as SubAgentRelationSelectSchema, dK as SubAgentRelationUpdateSchema, dC as SubAgentSelectSchema, e as SubAgentStopWhen, b as SubAgentStopWhenSchema, fv as SubAgentToolRelationApiInsertSchema, fu as SubAgentToolRelationApiSelectSchema, fw as SubAgentToolRelationApiUpdateSchema, fs as SubAgentToolRelationInsertSchema, fr as SubAgentToolRelationSelectSchema, ft as SubAgentToolRelationUpdateSchema, dE as SubAgentUpdateSchema, d$ as TaskApiInsertSchema, d_ as TaskApiSelectSchema, e0 as TaskApiUpdateSchema, dY as TaskInsertSchema, e5 as TaskRelationApiInsertSchema, e4 as TaskRelationApiSelectSchema, e6 as TaskRelationApiUpdateSchema, e2 as TaskRelationInsertSchema, e1 as TaskRelationSelectSchema, e3 as TaskRelationUpdateSchema, dX as TaskSelectSchema, dZ as TaskUpdateSchema, fW as TenantIdParamsSchema, fV as TenantParamsSchema, f_ as TenantProjectGraphIdParamsSchema, fZ as TenantProjectGraphParamsSchema, g0 as TenantProjectGraphSubAgentIdParamsSchema, f$ as TenantProjectGraphSubAgentParamsSchema, fY as TenantProjectIdParamsSchema, fX as TenantProjectParamsSchema, fe as ToolApiInsertSchema, fd as ToolApiSelectSchema, ff as ToolApiUpdateSchema, eb as ToolInsertSchema, ea as ToolSelectSchema, e8 as ToolStatusSchema, fc as ToolUpdateSchema, dv as URL_SAFE_ID_PATTERN, dw as resourceIdSchema } from '../utility-D_8q6Vlh.cjs';
2
+ import { d6 as AgentDefinition, d5 as InternalAgentDefinition, cM as ExternalAgentApiInsert, fQ as GraphWithinContextOfProjectSchema, z as FullGraphDefinition } from '../utility-Fxoh7s82.cjs';
3
+ export { dY as AgentGraphApiInsertSchema, dX as AgentGraphApiSelectSchema, dZ as AgentGraphApiUpdateSchema, dV as AgentGraphInsertSchema, dU as AgentGraphSelectSchema, dW as AgentGraphUpdateSchema, f0 as AllAgentSchema, f5 as ApiKeyApiCreationResponseSchema, f6 as ApiKeyApiInsertSchema, f4 as ApiKeyApiSelectSchema, A as ApiKeyApiUpdateSchema, f2 as ApiKeyInsertSchema, f1 as ApiKeySelectSchema, f3 as ApiKeyUpdateSchema, eO as ArtifactComponentApiInsertSchema, eN as ArtifactComponentApiSelectSchema, eP as ArtifactComponentApiUpdateSchema, eL as ArtifactComponentInsertSchema, eK as ArtifactComponentSelectSchema, eM as ArtifactComponentUpdateSchema, fO as CanUseItemSchema, ev as ContextCacheApiInsertSchema, eu as ContextCacheApiSelectSchema, ew as ContextCacheApiUpdateSchema, es as ContextCacheInsertSchema, er as ContextCacheSelectSchema, et as ContextCacheUpdateSchema, fy as ContextConfigApiInsertSchema, fx as ContextConfigApiSelectSchema, fz as ContextConfigApiUpdateSchema, fv as ContextConfigInsertSchema, fu as ContextConfigSelectSchema, fw as ContextConfigUpdateSchema, ej as ConversationApiInsertSchema, ei as ConversationApiSelectSchema, ek as ConversationApiUpdateSchema, eg as ConversationInsertSchema, ef as ConversationSelectSchema, eh as ConversationUpdateSchema, fb as CredentialReferenceApiInsertSchema, fa as CredentialReferenceApiSelectSchema, fc as CredentialReferenceApiUpdateSchema, f8 as CredentialReferenceInsertSchema, f7 as CredentialReferenceSelectSchema, f9 as CredentialReferenceUpdateSchema, eC as DataComponentApiInsertSchema, eB as DataComponentApiSelectSchema, eD as DataComponentApiUpdateSchema, ez as DataComponentBaseSchema, ey as DataComponentInsertSchema, ex as DataComponentSelectSchema, eA as DataComponentUpdateSchema, fU as ErrorResponseSchema, fV as ExistsResponseSchema, e_ as ExternalAgentApiInsertSchema, eZ as ExternalAgentApiSelectSchema, e$ as ExternalAgentApiUpdateSchema, eX as ExternalAgentInsertSchema, eW as ExternalAgentSelectSchema, eY as ExternalAgentUpdateSchema, dT as ExternalSubAgentRelationApiInsertSchema, dS as ExternalSubAgentRelationInsertSchema, fs as FetchConfigSchema, ft as FetchDefinitionSchema, a as FullGraphAgentInsertSchema, fP as FullGraphDefinitionSchema, g1 as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, i as FunctionApiSelectSchema, j as FunctionApiUpdateSchema, fq as FunctionInsertSchema, fp as FunctionSelectSchema, fn as FunctionToolApiInsertSchema, fm as FunctionToolApiSelectSchema, fo as FunctionToolApiUpdateSchema, dE as FunctionToolConfig, dD as FunctionToolConfigSchema, fk as FunctionToolInsertSchema, fj as FunctionToolSelectSchema, fl as FunctionToolUpdateSchema, fr as FunctionUpdateSchema, d as GraphStopWhen, G as GraphStopWhenSchema, g2 as HeadersScopeSchema, fK as LedgerArtifactApiInsertSchema, fJ as LedgerArtifactApiSelectSchema, fL as LedgerArtifactApiUpdateSchema, fH as LedgerArtifactInsertSchema, fG as LedgerArtifactSelectSchema, fI as LedgerArtifactUpdateSchema, fS as ListResponseSchema, dx as MAX_ID_LENGTH, fe as MCPToolConfigSchema, dw as MIN_ID_LENGTH, ec as McpToolDefinitionSchema, fd as McpToolSchema, ea as McpTransportConfigSchema, ep as MessageApiInsertSchema, eo as MessageApiSelectSchema, eq as MessageApiUpdateSchema, em as MessageInsertSchema, el as MessageSelectSchema, en as MessageUpdateSchema, dA as ModelSchema, f as ModelSettings, M as ModelSettingsSchema, gb as PaginationQueryParamsSchema, fR as PaginationSchema, f$ as ProjectApiInsertSchema, f_ as ProjectApiSelectSchema, g0 as ProjectApiUpdateSchema, fY as ProjectInsertSchema, dB as ProjectModelSchema, fX as ProjectSelectSchema, fZ as ProjectUpdateSchema, fW as RemovedResponseSchema, dC as SandboxConfig, k as SandboxConfigSchema, fT as SingleResponseSchema, fM as StatusComponentSchema, fN as StatusUpdateSchema, c as StopWhen, S as StopWhenSchema, dJ as SubAgentApiInsertSchema, dI as SubAgentApiSelectSchema, dK as SubAgentApiUpdateSchema, eU as SubAgentArtifactComponentApiInsertSchema, eT as SubAgentArtifactComponentApiSelectSchema, eV as SubAgentArtifactComponentApiUpdateSchema, eR as SubAgentArtifactComponentInsertSchema, eQ as SubAgentArtifactComponentSelectSchema, eS as SubAgentArtifactComponentUpdateSchema, eI as SubAgentDataComponentApiInsertSchema, eH as SubAgentDataComponentApiSelectSchema, eJ as SubAgentDataComponentApiUpdateSchema, eF as SubAgentDataComponentInsertSchema, eE as SubAgentDataComponentSelectSchema, eG as SubAgentDataComponentUpdateSchema, dG as SubAgentInsertSchema, dP as SubAgentRelationApiInsertSchema, dO as SubAgentRelationApiSelectSchema, dQ as SubAgentRelationApiUpdateSchema, dM as SubAgentRelationInsertSchema, dR as SubAgentRelationQuerySchema, dL as SubAgentRelationSelectSchema, dN as SubAgentRelationUpdateSchema, dF as SubAgentSelectSchema, e as SubAgentStopWhen, b as SubAgentStopWhenSchema, fE as SubAgentToolRelationApiInsertSchema, fD as SubAgentToolRelationApiSelectSchema, fF as SubAgentToolRelationApiUpdateSchema, fB as SubAgentToolRelationInsertSchema, fA as SubAgentToolRelationSelectSchema, fC as SubAgentToolRelationUpdateSchema, dH as SubAgentUpdateSchema, e2 as TaskApiInsertSchema, e1 as TaskApiSelectSchema, e3 as TaskApiUpdateSchema, d$ as TaskInsertSchema, e8 as TaskRelationApiInsertSchema, e7 as TaskRelationApiSelectSchema, e9 as TaskRelationApiUpdateSchema, e5 as TaskRelationInsertSchema, e4 as TaskRelationSelectSchema, e6 as TaskRelationUpdateSchema, d_ as TaskSelectSchema, e0 as TaskUpdateSchema, g4 as TenantIdParamsSchema, g3 as TenantParamsSchema, g8 as TenantProjectGraphIdParamsSchema, g7 as TenantProjectGraphParamsSchema, ga as TenantProjectGraphSubAgentIdParamsSchema, g9 as TenantProjectGraphSubAgentParamsSchema, g6 as TenantProjectIdParamsSchema, g5 as TenantProjectParamsSchema, fh as ToolApiInsertSchema, fg as ToolApiSelectSchema, fi as ToolApiUpdateSchema, ee as ToolInsertSchema, ed as ToolSelectSchema, eb as ToolStatusSchema, ff as ToolUpdateSchema, dy as URL_SAFE_ID_PATTERN, dz as resourceIdSchema } from '../utility-Fxoh7s82.cjs';
4
4
  export { P as PropsValidationResult, v as validatePropsAsJsonSchema } from '../props-validation-BMR1qNiy.cjs';
5
5
  import 'drizzle-zod';
6
6
  import 'drizzle-orm/sqlite-core';
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { d3 as AgentDefinition, d2 as InternalAgentDefinition, cJ as ExternalAgentApiInsert, fG as GraphWithinContextOfProjectSchema, z as FullGraphDefinition } from '../utility-D_8q6Vlh.js';
3
- export { dV as AgentGraphApiInsertSchema, dU as AgentGraphApiSelectSchema, dW as AgentGraphApiUpdateSchema, dS as AgentGraphInsertSchema, dR as AgentGraphSelectSchema, dT as AgentGraphUpdateSchema, eZ as AllAgentSchema, f2 as ApiKeyApiCreationResponseSchema, f3 as ApiKeyApiInsertSchema, f1 as ApiKeyApiSelectSchema, A as ApiKeyApiUpdateSchema, e$ as ApiKeyInsertSchema, e_ as ApiKeySelectSchema, f0 as ApiKeyUpdateSchema, eL as ArtifactComponentApiInsertSchema, eK as ArtifactComponentApiSelectSchema, eM as ArtifactComponentApiUpdateSchema, eI as ArtifactComponentInsertSchema, eH as ArtifactComponentSelectSchema, eJ as ArtifactComponentUpdateSchema, fF as CanUseItemSchema, es as ContextCacheApiInsertSchema, er as ContextCacheApiSelectSchema, et as ContextCacheApiUpdateSchema, ep as ContextCacheInsertSchema, eo as ContextCacheSelectSchema, eq as ContextCacheUpdateSchema, fp as ContextConfigApiInsertSchema, fo as ContextConfigApiSelectSchema, fq as ContextConfigApiUpdateSchema, fm as ContextConfigInsertSchema, fl as ContextConfigSelectSchema, fn as ContextConfigUpdateSchema, eg as ConversationApiInsertSchema, ef as ConversationApiSelectSchema, eh as ConversationApiUpdateSchema, ed as ConversationInsertSchema, ec as ConversationSelectSchema, ee as ConversationUpdateSchema, f8 as CredentialReferenceApiInsertSchema, f7 as CredentialReferenceApiSelectSchema, f9 as CredentialReferenceApiUpdateSchema, f5 as CredentialReferenceInsertSchema, f4 as CredentialReferenceSelectSchema, f6 as CredentialReferenceUpdateSchema, ez as DataComponentApiInsertSchema, ey as DataComponentApiSelectSchema, eA as DataComponentApiUpdateSchema, ew as DataComponentBaseSchema, ev as DataComponentInsertSchema, eu as DataComponentSelectSchema, ex as DataComponentUpdateSchema, fK as ErrorResponseSchema, fL as ExistsResponseSchema, eX as ExternalAgentApiInsertSchema, eW as ExternalAgentApiSelectSchema, eY as ExternalAgentApiUpdateSchema, eU as ExternalAgentInsertSchema, eT as ExternalAgentSelectSchema, eV as ExternalAgentUpdateSchema, dQ as ExternalSubAgentRelationApiInsertSchema, dP as ExternalSubAgentRelationInsertSchema, fj as FetchConfigSchema, fk as FetchDefinitionSchema, a as FullGraphAgentInsertSchema, fT as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, i as FunctionApiSelectSchema, j as FunctionApiUpdateSchema, fh as FunctionInsertSchema, fg as FunctionSelectSchema, dB as FunctionToolConfig, dA as FunctionToolConfigSchema, fi as FunctionUpdateSchema, d as GraphStopWhen, G as GraphStopWhenSchema, fU as HeadersScopeSchema, fB as LedgerArtifactApiInsertSchema, fA as LedgerArtifactApiSelectSchema, fC as LedgerArtifactApiUpdateSchema, fy as LedgerArtifactInsertSchema, fx as LedgerArtifactSelectSchema, fz as LedgerArtifactUpdateSchema, fI as ListResponseSchema, du as MAX_ID_LENGTH, fb as MCPToolConfigSchema, dt as MIN_ID_LENGTH, e9 as McpToolDefinitionSchema, fa as McpToolSchema, e7 as McpTransportConfigSchema, em as MessageApiInsertSchema, el as MessageApiSelectSchema, en as MessageApiUpdateSchema, ej as MessageInsertSchema, ei as MessageSelectSchema, ek as MessageUpdateSchema, dx as ModelSchema, f as ModelSettings, M as ModelSettingsSchema, g1 as PaginationQueryParamsSchema, fH as PaginationSchema, fR as ProjectApiInsertSchema, fQ as ProjectApiSelectSchema, fS as ProjectApiUpdateSchema, fO as ProjectInsertSchema, dy as ProjectModelSchema, fN as ProjectSelectSchema, fP as ProjectUpdateSchema, fM as RemovedResponseSchema, dz as SandboxConfig, k as SandboxConfigSchema, fJ as SingleResponseSchema, fD as StatusComponentSchema, fE as StatusUpdateSchema, c as StopWhen, S as StopWhenSchema, dG as SubAgentApiInsertSchema, dF as SubAgentApiSelectSchema, dH as SubAgentApiUpdateSchema, eR as SubAgentArtifactComponentApiInsertSchema, eQ as SubAgentArtifactComponentApiSelectSchema, eS as SubAgentArtifactComponentApiUpdateSchema, eO as SubAgentArtifactComponentInsertSchema, eN as SubAgentArtifactComponentSelectSchema, eP as SubAgentArtifactComponentUpdateSchema, eF as SubAgentDataComponentApiInsertSchema, eE as SubAgentDataComponentApiSelectSchema, eG as SubAgentDataComponentApiUpdateSchema, eC as SubAgentDataComponentInsertSchema, eB as SubAgentDataComponentSelectSchema, eD as SubAgentDataComponentUpdateSchema, dD as SubAgentInsertSchema, dM as SubAgentRelationApiInsertSchema, dL as SubAgentRelationApiSelectSchema, dN as SubAgentRelationApiUpdateSchema, dJ as SubAgentRelationInsertSchema, dO as SubAgentRelationQuerySchema, dI as SubAgentRelationSelectSchema, dK as SubAgentRelationUpdateSchema, dC as SubAgentSelectSchema, e as SubAgentStopWhen, b as SubAgentStopWhenSchema, fv as SubAgentToolRelationApiInsertSchema, fu as SubAgentToolRelationApiSelectSchema, fw as SubAgentToolRelationApiUpdateSchema, fs as SubAgentToolRelationInsertSchema, fr as SubAgentToolRelationSelectSchema, ft as SubAgentToolRelationUpdateSchema, dE as SubAgentUpdateSchema, d$ as TaskApiInsertSchema, d_ as TaskApiSelectSchema, e0 as TaskApiUpdateSchema, dY as TaskInsertSchema, e5 as TaskRelationApiInsertSchema, e4 as TaskRelationApiSelectSchema, e6 as TaskRelationApiUpdateSchema, e2 as TaskRelationInsertSchema, e1 as TaskRelationSelectSchema, e3 as TaskRelationUpdateSchema, dX as TaskSelectSchema, dZ as TaskUpdateSchema, fW as TenantIdParamsSchema, fV as TenantParamsSchema, f_ as TenantProjectGraphIdParamsSchema, fZ as TenantProjectGraphParamsSchema, g0 as TenantProjectGraphSubAgentIdParamsSchema, f$ as TenantProjectGraphSubAgentParamsSchema, fY as TenantProjectIdParamsSchema, fX as TenantProjectParamsSchema, fe as ToolApiInsertSchema, fd as ToolApiSelectSchema, ff as ToolApiUpdateSchema, eb as ToolInsertSchema, ea as ToolSelectSchema, e8 as ToolStatusSchema, fc as ToolUpdateSchema, dv as URL_SAFE_ID_PATTERN, dw as resourceIdSchema } from '../utility-D_8q6Vlh.js';
2
+ import { d6 as AgentDefinition, d5 as InternalAgentDefinition, cM as ExternalAgentApiInsert, fQ as GraphWithinContextOfProjectSchema, z as FullGraphDefinition } from '../utility-Fxoh7s82.js';
3
+ export { dY as AgentGraphApiInsertSchema, dX as AgentGraphApiSelectSchema, dZ as AgentGraphApiUpdateSchema, dV as AgentGraphInsertSchema, dU as AgentGraphSelectSchema, dW as AgentGraphUpdateSchema, f0 as AllAgentSchema, f5 as ApiKeyApiCreationResponseSchema, f6 as ApiKeyApiInsertSchema, f4 as ApiKeyApiSelectSchema, A as ApiKeyApiUpdateSchema, f2 as ApiKeyInsertSchema, f1 as ApiKeySelectSchema, f3 as ApiKeyUpdateSchema, eO as ArtifactComponentApiInsertSchema, eN as ArtifactComponentApiSelectSchema, eP as ArtifactComponentApiUpdateSchema, eL as ArtifactComponentInsertSchema, eK as ArtifactComponentSelectSchema, eM as ArtifactComponentUpdateSchema, fO as CanUseItemSchema, ev as ContextCacheApiInsertSchema, eu as ContextCacheApiSelectSchema, ew as ContextCacheApiUpdateSchema, es as ContextCacheInsertSchema, er as ContextCacheSelectSchema, et as ContextCacheUpdateSchema, fy as ContextConfigApiInsertSchema, fx as ContextConfigApiSelectSchema, fz as ContextConfigApiUpdateSchema, fv as ContextConfigInsertSchema, fu as ContextConfigSelectSchema, fw as ContextConfigUpdateSchema, ej as ConversationApiInsertSchema, ei as ConversationApiSelectSchema, ek as ConversationApiUpdateSchema, eg as ConversationInsertSchema, ef as ConversationSelectSchema, eh as ConversationUpdateSchema, fb as CredentialReferenceApiInsertSchema, fa as CredentialReferenceApiSelectSchema, fc as CredentialReferenceApiUpdateSchema, f8 as CredentialReferenceInsertSchema, f7 as CredentialReferenceSelectSchema, f9 as CredentialReferenceUpdateSchema, eC as DataComponentApiInsertSchema, eB as DataComponentApiSelectSchema, eD as DataComponentApiUpdateSchema, ez as DataComponentBaseSchema, ey as DataComponentInsertSchema, ex as DataComponentSelectSchema, eA as DataComponentUpdateSchema, fU as ErrorResponseSchema, fV as ExistsResponseSchema, e_ as ExternalAgentApiInsertSchema, eZ as ExternalAgentApiSelectSchema, e$ as ExternalAgentApiUpdateSchema, eX as ExternalAgentInsertSchema, eW as ExternalAgentSelectSchema, eY as ExternalAgentUpdateSchema, dT as ExternalSubAgentRelationApiInsertSchema, dS as ExternalSubAgentRelationInsertSchema, fs as FetchConfigSchema, ft as FetchDefinitionSchema, a as FullGraphAgentInsertSchema, fP as FullGraphDefinitionSchema, g1 as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, i as FunctionApiSelectSchema, j as FunctionApiUpdateSchema, fq as FunctionInsertSchema, fp as FunctionSelectSchema, fn as FunctionToolApiInsertSchema, fm as FunctionToolApiSelectSchema, fo as FunctionToolApiUpdateSchema, dE as FunctionToolConfig, dD as FunctionToolConfigSchema, fk as FunctionToolInsertSchema, fj as FunctionToolSelectSchema, fl as FunctionToolUpdateSchema, fr as FunctionUpdateSchema, d as GraphStopWhen, G as GraphStopWhenSchema, g2 as HeadersScopeSchema, fK as LedgerArtifactApiInsertSchema, fJ as LedgerArtifactApiSelectSchema, fL as LedgerArtifactApiUpdateSchema, fH as LedgerArtifactInsertSchema, fG as LedgerArtifactSelectSchema, fI as LedgerArtifactUpdateSchema, fS as ListResponseSchema, dx as MAX_ID_LENGTH, fe as MCPToolConfigSchema, dw as MIN_ID_LENGTH, ec as McpToolDefinitionSchema, fd as McpToolSchema, ea as McpTransportConfigSchema, ep as MessageApiInsertSchema, eo as MessageApiSelectSchema, eq as MessageApiUpdateSchema, em as MessageInsertSchema, el as MessageSelectSchema, en as MessageUpdateSchema, dA as ModelSchema, f as ModelSettings, M as ModelSettingsSchema, gb as PaginationQueryParamsSchema, fR as PaginationSchema, f$ as ProjectApiInsertSchema, f_ as ProjectApiSelectSchema, g0 as ProjectApiUpdateSchema, fY as ProjectInsertSchema, dB as ProjectModelSchema, fX as ProjectSelectSchema, fZ as ProjectUpdateSchema, fW as RemovedResponseSchema, dC as SandboxConfig, k as SandboxConfigSchema, fT as SingleResponseSchema, fM as StatusComponentSchema, fN as StatusUpdateSchema, c as StopWhen, S as StopWhenSchema, dJ as SubAgentApiInsertSchema, dI as SubAgentApiSelectSchema, dK as SubAgentApiUpdateSchema, eU as SubAgentArtifactComponentApiInsertSchema, eT as SubAgentArtifactComponentApiSelectSchema, eV as SubAgentArtifactComponentApiUpdateSchema, eR as SubAgentArtifactComponentInsertSchema, eQ as SubAgentArtifactComponentSelectSchema, eS as SubAgentArtifactComponentUpdateSchema, eI as SubAgentDataComponentApiInsertSchema, eH as SubAgentDataComponentApiSelectSchema, eJ as SubAgentDataComponentApiUpdateSchema, eF as SubAgentDataComponentInsertSchema, eE as SubAgentDataComponentSelectSchema, eG as SubAgentDataComponentUpdateSchema, dG as SubAgentInsertSchema, dP as SubAgentRelationApiInsertSchema, dO as SubAgentRelationApiSelectSchema, dQ as SubAgentRelationApiUpdateSchema, dM as SubAgentRelationInsertSchema, dR as SubAgentRelationQuerySchema, dL as SubAgentRelationSelectSchema, dN as SubAgentRelationUpdateSchema, dF as SubAgentSelectSchema, e as SubAgentStopWhen, b as SubAgentStopWhenSchema, fE as SubAgentToolRelationApiInsertSchema, fD as SubAgentToolRelationApiSelectSchema, fF as SubAgentToolRelationApiUpdateSchema, fB as SubAgentToolRelationInsertSchema, fA as SubAgentToolRelationSelectSchema, fC as SubAgentToolRelationUpdateSchema, dH as SubAgentUpdateSchema, e2 as TaskApiInsertSchema, e1 as TaskApiSelectSchema, e3 as TaskApiUpdateSchema, d$ as TaskInsertSchema, e8 as TaskRelationApiInsertSchema, e7 as TaskRelationApiSelectSchema, e9 as TaskRelationApiUpdateSchema, e5 as TaskRelationInsertSchema, e4 as TaskRelationSelectSchema, e6 as TaskRelationUpdateSchema, d_ as TaskSelectSchema, e0 as TaskUpdateSchema, g4 as TenantIdParamsSchema, g3 as TenantParamsSchema, g8 as TenantProjectGraphIdParamsSchema, g7 as TenantProjectGraphParamsSchema, ga as TenantProjectGraphSubAgentIdParamsSchema, g9 as TenantProjectGraphSubAgentParamsSchema, g6 as TenantProjectIdParamsSchema, g5 as TenantProjectParamsSchema, fh as ToolApiInsertSchema, fg as ToolApiSelectSchema, fi as ToolApiUpdateSchema, ee as ToolInsertSchema, ed as ToolSelectSchema, eb as ToolStatusSchema, ff as ToolUpdateSchema, dy as URL_SAFE_ID_PATTERN, dz as resourceIdSchema } from '../utility-Fxoh7s82.js';
4
4
  export { P as PropsValidationResult, v as validatePropsAsJsonSchema } from '../props-validation-BMR1qNiy.js';
5
5
  import 'drizzle-zod';
6
6
  import 'drizzle-orm/sqlite-core';
@@ -1,2 +1,2 @@
1
- export { A2AMessageMetadataSchema, DataOperationDetailsSchema, DataOperationEventSchema, DelegationReturnedDataSchema, DelegationSentDataSchema, TransferDataSchema, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAndTypeGraphData, validateArtifactComponentReferences, validateDataComponentReferences, validateGraphStructure, validateToolReferences } from '../chunk-2TJ2L67D.js';
2
- export { AgentGraphApiInsertSchema, AgentGraphApiSelectSchema, AgentGraphApiUpdateSchema, AgentGraphInsertSchema, AgentGraphSelectSchema, AgentGraphUpdateSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentInsertSchema, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CanUseItemSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationSelectSchema, ConversationUpdateSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FetchConfigSchema, FetchDefinitionSchema, FullGraphAgentInsertSchema, FullProjectDefinitionSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, FunctionInsertSchema, FunctionSelectSchema, FunctionToolConfigSchema, FunctionUpdateSchema, GraphStopWhenSchema, GraphWithinContextOfProjectSchema, HeadersScopeSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, PaginationQueryParamsSchema, PaginationSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectModelSchema, ProjectSelectSchema, ProjectUpdateSchema, RemovedResponseSchema, SandboxConfigSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, SubAgentApiInsertSchema, SubAgentApiSelectSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdateSchema, SubAgentInsertSchema, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationQuerySchema, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentSelectSchema, SubAgentStopWhenSchema, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsertSchema, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdateSchema, SubAgentUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectGraphIdParamsSchema, TenantProjectGraphParamsSchema, TenantProjectGraphSubAgentIdParamsSchema, TenantProjectGraphSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, resourceIdSchema, validatePropsAsJsonSchema } from '../chunk-NEJ3QDK6.js';
1
+ export { A2AMessageMetadataSchema, DataOperationDetailsSchema, DataOperationEventSchema, DelegationReturnedDataSchema, DelegationSentDataSchema, TransferDataSchema, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAndTypeGraphData, validateArtifactComponentReferences, validateDataComponentReferences, validateGraphStructure, validateToolReferences } from '../chunk-JTHQYGCX.js';
2
+ export { AgentGraphApiInsertSchema, AgentGraphApiSelectSchema, AgentGraphApiUpdateSchema, AgentGraphInsertSchema, AgentGraphSelectSchema, AgentGraphUpdateSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentInsertSchema, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CanUseItemSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationSelectSchema, ConversationUpdateSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FetchConfigSchema, FetchDefinitionSchema, FullGraphAgentInsertSchema, FullGraphDefinitionSchema, FullProjectDefinitionSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, FunctionInsertSchema, FunctionSelectSchema, FunctionToolApiInsertSchema, FunctionToolApiSelectSchema, FunctionToolApiUpdateSchema, FunctionToolConfigSchema, FunctionToolInsertSchema, FunctionToolSelectSchema, FunctionToolUpdateSchema, FunctionUpdateSchema, GraphStopWhenSchema, GraphWithinContextOfProjectSchema, HeadersScopeSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, PaginationQueryParamsSchema, PaginationSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectModelSchema, ProjectSelectSchema, ProjectUpdateSchema, RemovedResponseSchema, SandboxConfigSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, SubAgentApiInsertSchema, SubAgentApiSelectSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdateSchema, SubAgentInsertSchema, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationQuerySchema, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentSelectSchema, SubAgentStopWhenSchema, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsertSchema, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdateSchema, SubAgentUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectGraphIdParamsSchema, TenantProjectGraphParamsSchema, TenantProjectGraphSubAgentIdParamsSchema, TenantProjectGraphSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, resourceIdSchema, validatePropsAsJsonSchema } from '../chunk-E4SFK6AI.js';
@@ -0,0 +1,52 @@
1
+ CREATE TABLE `agent_function_tool_relations` (
2
+ `tenant_id` text NOT NULL,
3
+ `id` text NOT NULL,
4
+ `project_id` text NOT NULL,
5
+ `graph_id` text NOT NULL,
6
+ `sub_agent_id` text NOT NULL,
7
+ `function_tool_id` text NOT NULL,
8
+ `created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
9
+ `updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
10
+ PRIMARY KEY(`tenant_id`, `project_id`, `graph_id`, `id`),
11
+ FOREIGN KEY (`tenant_id`,`project_id`,`graph_id`,`sub_agent_id`) REFERENCES `sub_agents`(`tenant_id`,`project_id`,`graph_id`,`id`) ON UPDATE no action ON DELETE cascade,
12
+ FOREIGN KEY (`tenant_id`,`project_id`,`graph_id`,`function_tool_id`) REFERENCES `function_tools`(`tenant_id`,`project_id`,`graph_id`,`id`) ON UPDATE no action ON DELETE cascade
13
+ );
14
+ --> statement-breakpoint
15
+ CREATE TABLE `function_tools` (
16
+ `tenant_id` text NOT NULL,
17
+ `id` text NOT NULL,
18
+ `project_id` text NOT NULL,
19
+ `graph_id` text NOT NULL,
20
+ `name` text NOT NULL,
21
+ `description` text,
22
+ `function_id` text NOT NULL,
23
+ `created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
24
+ `updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
25
+ PRIMARY KEY(`tenant_id`, `project_id`, `graph_id`, `id`),
26
+ FOREIGN KEY (`tenant_id`,`project_id`,`graph_id`) REFERENCES `agent_graph`(`tenant_id`,`project_id`,`id`) ON UPDATE no action ON DELETE cascade,
27
+ FOREIGN KEY (`tenant_id`,`project_id`,`function_id`) REFERENCES `functions`(`tenant_id`,`project_id`,`id`) ON UPDATE no action ON DELETE cascade
28
+ );
29
+ --> statement-breakpoint
30
+ PRAGMA foreign_keys=OFF;--> statement-breakpoint
31
+ CREATE TABLE `__new_tools` (
32
+ `tenant_id` text NOT NULL,
33
+ `id` text NOT NULL,
34
+ `project_id` text NOT NULL,
35
+ `name` text NOT NULL,
36
+ `description` text,
37
+ `config` blob NOT NULL,
38
+ `credential_reference_id` text,
39
+ `headers` blob,
40
+ `image_url` text,
41
+ `capabilities` blob,
42
+ `last_error` text,
43
+ `created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
44
+ `updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
45
+ PRIMARY KEY(`tenant_id`, `project_id`, `id`),
46
+ FOREIGN KEY (`tenant_id`,`project_id`) REFERENCES `projects`(`tenant_id`,`id`) ON UPDATE no action ON DELETE cascade
47
+ );
48
+ --> statement-breakpoint
49
+ INSERT INTO `__new_tools`("tenant_id", "id", "project_id", "name", "description", "config", "credential_reference_id", "headers", "image_url", "capabilities", "last_error", "created_at", "updated_at") SELECT "tenant_id", "id", "project_id", "name", "description", "config", "credential_reference_id", "headers", "image_url", "capabilities", "last_error", "created_at", "updated_at" FROM `tools`;--> statement-breakpoint
50
+ DROP TABLE `tools`;--> statement-breakpoint
51
+ ALTER TABLE `__new_tools` RENAME TO `tools`;--> statement-breakpoint
52
+ PRAGMA foreign_keys=ON;