@inkeep/agents-core 0.26.1 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -410,6 +410,28 @@ var subAgentExternalAgentRelations = sqliteCore.sqliteTable(
410
410
  }).onDelete("cascade")
411
411
  ]
412
412
  );
413
+ var subAgentTeamAgentRelations = sqliteCore.sqliteTable(
414
+ "sub_agent_team_agent_relations",
415
+ {
416
+ ...subAgentScoped,
417
+ targetAgentId: sqliteCore.text("target_agent_id").notNull(),
418
+ headers: sqliteCore.blob("headers", { mode: "json" }).$type(),
419
+ ...timestamps
420
+ },
421
+ (table) => [
422
+ sqliteCore.primaryKey({ columns: [table.tenantId, table.projectId, table.agentId, table.id] }),
423
+ sqliteCore.foreignKey({
424
+ columns: [table.tenantId, table.projectId, table.agentId, table.subAgentId],
425
+ foreignColumns: [subAgents.tenantId, subAgents.projectId, subAgents.agentId, subAgents.id],
426
+ name: "sub_agent_team_agent_relations_sub_agent_fk"
427
+ }).onDelete("cascade"),
428
+ sqliteCore.foreignKey({
429
+ columns: [table.tenantId, table.projectId, table.targetAgentId],
430
+ foreignColumns: [agents.tenantId, agents.projectId, agents.id],
431
+ name: "sub_agent_team_agent_relations_target_agent_fk"
432
+ }).onDelete("cascade")
433
+ ]
434
+ );
413
435
  var subAgentFunctionToolRelations = sqliteCore.sqliteTable(
414
436
  "sub_agent_function_tool_relations",
415
437
  {
@@ -466,6 +488,8 @@ var messages = sqliteCore.sqliteTable(
466
488
  toSubAgentId: sqliteCore.text("to_sub_agent_id"),
467
489
  fromExternalAgentId: sqliteCore.text("from_external_sub_agent_id"),
468
490
  toExternalAgentId: sqliteCore.text("to_external_sub_agent_id"),
491
+ fromTeamAgentId: sqliteCore.text("from_team_agent_id"),
492
+ toTeamAgentId: sqliteCore.text("to_team_agent_id"),
469
493
  content: sqliteCore.blob("content", { mode: "json" }).$type().notNull(),
470
494
  visibility: sqliteCore.text("visibility").notNull().default("user-facing"),
471
495
  messageType: sqliteCore.text("message_type").notNull().default("chat"),
@@ -742,6 +766,16 @@ drizzleOrm.relations(messages, ({ one, many }) => ({
742
766
  references: [subAgents.id],
743
767
  relationName: "receivedMessages"
744
768
  }),
769
+ fromTeamAgent: one(agents, {
770
+ fields: [messages.fromTeamAgentId],
771
+ references: [agents.id],
772
+ relationName: "receivedTeamMessages"
773
+ }),
774
+ toTeamAgent: one(agents, {
775
+ fields: [messages.toTeamAgentId],
776
+ references: [agents.id],
777
+ relationName: "sentTeamMessages"
778
+ }),
745
779
  fromExternalAgent: one(externalAgents, {
746
780
  fields: [messages.tenantId, messages.projectId, messages.fromExternalAgentId],
747
781
  references: [externalAgents.tenantId, externalAgents.projectId, externalAgents.id],
@@ -885,6 +919,28 @@ drizzleOrm.relations(
885
919
  })
886
920
  })
887
921
  );
922
+ drizzleOrm.relations(
923
+ subAgentTeamAgentRelations,
924
+ ({ one }) => ({
925
+ subAgent: one(subAgents, {
926
+ fields: [
927
+ subAgentTeamAgentRelations.tenantId,
928
+ subAgentTeamAgentRelations.projectId,
929
+ subAgentTeamAgentRelations.agentId,
930
+ subAgentTeamAgentRelations.subAgentId
931
+ ],
932
+ references: [subAgents.tenantId, subAgents.projectId, subAgents.agentId, subAgents.id]
933
+ }),
934
+ targetAgent: one(agents, {
935
+ fields: [
936
+ subAgentTeamAgentRelations.tenantId,
937
+ subAgentTeamAgentRelations.projectId,
938
+ subAgentTeamAgentRelations.targetAgentId
939
+ ],
940
+ references: [agents.tenantId, agents.projectId, agents.id]
941
+ })
942
+ })
943
+ );
888
944
 
889
945
  // src/types/utility.ts
890
946
  var TOOL_STATUS_VALUES = ["healthy", "unhealthy", "unknown", "needs_auth"];
@@ -965,7 +1021,8 @@ var SubAgentRelationInsertSchema = drizzleZod.createInsertSchema(subAgentRelatio
965
1021
  agentId: resourceIdSchema,
966
1022
  sourceSubAgentId: resourceIdSchema,
967
1023
  targetSubAgentId: resourceIdSchema.optional(),
968
- externalSubAgentId: resourceIdSchema.optional()
1024
+ externalSubAgentId: resourceIdSchema.optional(),
1025
+ teamSubAgentId: resourceIdSchema.optional()
969
1026
  });
970
1027
  var SubAgentRelationUpdateSchema = SubAgentRelationInsertSchema.partial();
971
1028
  var SubAgentRelationApiSelectSchema = createAgentScopedApiSchema(
@@ -979,11 +1036,13 @@ var SubAgentRelationApiInsertSchema = createAgentScopedApiInsertSchema(
979
1036
  (data) => {
980
1037
  const hasTarget = data.targetSubAgentId != null;
981
1038
  const hasExternal = data.externalSubAgentId != null;
982
- return hasTarget !== hasExternal;
1039
+ const hasTeam = data.teamSubAgentId != null;
1040
+ const count = [hasTarget, hasExternal, hasTeam].filter(Boolean).length;
1041
+ return count === 1;
983
1042
  },
984
1043
  {
985
- message: "Must specify exactly one of targetSubAgentId or externalSubAgentId",
986
- path: ["targetSubAgentId", "externalSubAgentId"]
1044
+ message: "Must specify exactly one of targetSubAgentId, externalSubAgentId, or teamSubAgentId",
1045
+ path: ["targetSubAgentId", "externalSubAgentId", "teamSubAgentId"]
987
1046
  }
988
1047
  ).openapi("SubAgentRelationCreate");
989
1048
  var SubAgentRelationApiUpdateSchema = createAgentScopedApiUpdateSchema(
@@ -994,20 +1053,23 @@ var SubAgentRelationApiUpdateSchema = createAgentScopedApiUpdateSchema(
994
1053
  (data) => {
995
1054
  const hasTarget = data.targetSubAgentId != null;
996
1055
  const hasExternal = data.externalSubAgentId != null;
997
- if (!hasTarget && !hasExternal) {
1056
+ const hasTeam = data.teamSubAgentId != null;
1057
+ const count = [hasTarget, hasExternal, hasTeam].filter(Boolean).length;
1058
+ if (count === 0) {
998
1059
  return true;
999
1060
  }
1000
- return hasTarget !== hasExternal;
1061
+ return count === 1;
1001
1062
  },
1002
1063
  {
1003
- message: "Must specify exactly one of targetSubAgentId or externalSubAgentId when updating sub-agent relationships",
1004
- path: ["targetSubAgentId", "externalSubAgentId"]
1064
+ message: "Must specify exactly one of targetSubAgentId, externalSubAgentId, or teamSubAgentId when updating sub-agent relationships",
1065
+ path: ["targetSubAgentId", "externalSubAgentId", "teamSubAgentId"]
1005
1066
  }
1006
1067
  ).openapi("SubAgentRelationUpdate");
1007
1068
  var SubAgentRelationQuerySchema = zodOpenapi.z.object({
1008
1069
  sourceSubAgentId: zodOpenapi.z.string().optional(),
1009
1070
  targetSubAgentId: zodOpenapi.z.string().optional(),
1010
- externalSubAgentId: zodOpenapi.z.string().optional()
1071
+ externalSubAgentId: zodOpenapi.z.string().optional(),
1072
+ teamSubAgentId: zodOpenapi.z.string().optional()
1011
1073
  });
1012
1074
  var ExternalSubAgentRelationInsertSchema = drizzleZod.createInsertSchema(subAgentRelations).extend({
1013
1075
  id: resourceIdSchema,
@@ -1421,6 +1483,25 @@ var SubAgentExternalAgentRelationApiInsertSchema = createAgentScopedApiInsertSch
1421
1483
  var SubAgentExternalAgentRelationApiUpdateSchema = createAgentScopedApiUpdateSchema(
1422
1484
  SubAgentExternalAgentRelationUpdateSchema
1423
1485
  ).openapi("SubAgentExternalAgentRelationUpdate");
1486
+ var SubAgentTeamAgentRelationSelectSchema = drizzleZod.createSelectSchema(subAgentTeamAgentRelations);
1487
+ var SubAgentTeamAgentRelationInsertSchema = drizzleZod.createInsertSchema(
1488
+ subAgentTeamAgentRelations
1489
+ ).extend({
1490
+ id: resourceIdSchema,
1491
+ subAgentId: resourceIdSchema,
1492
+ targetAgentId: resourceIdSchema,
1493
+ headers: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.string()).nullish()
1494
+ });
1495
+ var SubAgentTeamAgentRelationUpdateSchema = SubAgentTeamAgentRelationInsertSchema.partial();
1496
+ var SubAgentTeamAgentRelationApiSelectSchema = createAgentScopedApiSchema(
1497
+ SubAgentTeamAgentRelationSelectSchema
1498
+ ).openapi("SubAgentTeamAgentRelation");
1499
+ var SubAgentTeamAgentRelationApiInsertSchema = createAgentScopedApiInsertSchema(
1500
+ SubAgentTeamAgentRelationInsertSchema
1501
+ ).omit({ id: true, subAgentId: true }).openapi("SubAgentTeamAgentRelationCreate");
1502
+ var SubAgentTeamAgentRelationApiUpdateSchema = createAgentScopedApiUpdateSchema(
1503
+ SubAgentTeamAgentRelationUpdateSchema
1504
+ ).openapi("SubAgentTeamAgentRelationUpdate");
1424
1505
  var LedgerArtifactSelectSchema = drizzleZod.createSelectSchema(ledgerArtifacts);
1425
1506
  var LedgerArtifactInsertSchema = drizzleZod.createInsertSchema(ledgerArtifacts);
1426
1507
  var LedgerArtifactUpdateSchema = LedgerArtifactInsertSchema.partial();
@@ -1454,6 +1535,16 @@ var canDelegateToExternalAgentSchema = zodOpenapi.z.object({
1454
1535
  subAgentExternalAgentRelationId: zodOpenapi.z.string().optional(),
1455
1536
  headers: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.string()).nullish()
1456
1537
  });
1538
+ var canDelegateToTeamAgentSchema = zodOpenapi.z.object({
1539
+ agentId: zodOpenapi.z.string(),
1540
+ subAgentTeamAgentRelationId: zodOpenapi.z.string().optional(),
1541
+ headers: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.string()).nullish()
1542
+ });
1543
+ var TeamAgentSchema = zodOpenapi.z.object({
1544
+ id: zodOpenapi.z.string(),
1545
+ name: zodOpenapi.z.string(),
1546
+ description: zodOpenapi.z.string()
1547
+ });
1457
1548
  var FullAgentAgentInsertSchema = SubAgentApiInsertSchema.extend({
1458
1549
  type: zodOpenapi.z.literal("internal"),
1459
1550
  canUse: zodOpenapi.z.array(CanUseItemSchema),
@@ -1465,8 +1556,10 @@ var FullAgentAgentInsertSchema = SubAgentApiInsertSchema.extend({
1465
1556
  zodOpenapi.z.union([
1466
1557
  zodOpenapi.z.string(),
1467
1558
  // Internal subAgent ID
1468
- canDelegateToExternalAgentSchema
1559
+ canDelegateToExternalAgentSchema,
1469
1560
  // External agent with headers
1561
+ canDelegateToTeamAgentSchema
1562
+ // Team agent with headers
1470
1563
  ])
1471
1564
  ).optional()
1472
1565
  });
@@ -1477,6 +1570,8 @@ var AgentWithinContextOfProjectSchema = AgentApiInsertSchema.extend({
1477
1570
  // MCP tools (project-scoped)
1478
1571
  externalAgents: zodOpenapi.z.record(zodOpenapi.z.string(), ExternalAgentApiInsertSchema).optional(),
1479
1572
  // External agents (project-scoped)
1573
+ teamAgents: zodOpenapi.z.record(zodOpenapi.z.string(), TeamAgentSchema).optional(),
1574
+ // Team agents contain basic metadata for the agent to be delegated to
1480
1575
  functionTools: zodOpenapi.z.record(zodOpenapi.z.string(), FunctionToolApiInsertSchema).optional(),
1481
1576
  // Function tools (agent-scoped)
1482
1577
  functions: zodOpenapi.z.record(zodOpenapi.z.string(), FunctionApiInsertSchema).optional(),
@@ -2276,6 +2371,12 @@ exports.SubAgentRelationUpdateSchema = SubAgentRelationUpdateSchema;
2276
2371
  exports.SubAgentResponse = SubAgentResponse;
2277
2372
  exports.SubAgentSelectSchema = SubAgentSelectSchema;
2278
2373
  exports.SubAgentStopWhenSchema = SubAgentStopWhenSchema;
2374
+ exports.SubAgentTeamAgentRelationApiInsertSchema = SubAgentTeamAgentRelationApiInsertSchema;
2375
+ exports.SubAgentTeamAgentRelationApiSelectSchema = SubAgentTeamAgentRelationApiSelectSchema;
2376
+ exports.SubAgentTeamAgentRelationApiUpdateSchema = SubAgentTeamAgentRelationApiUpdateSchema;
2377
+ exports.SubAgentTeamAgentRelationInsertSchema = SubAgentTeamAgentRelationInsertSchema;
2378
+ exports.SubAgentTeamAgentRelationSelectSchema = SubAgentTeamAgentRelationSelectSchema;
2379
+ exports.SubAgentTeamAgentRelationUpdateSchema = SubAgentTeamAgentRelationUpdateSchema;
2279
2380
  exports.SubAgentToolRelationApiInsertSchema = SubAgentToolRelationApiInsertSchema;
2280
2381
  exports.SubAgentToolRelationApiSelectSchema = SubAgentToolRelationApiSelectSchema;
2281
2382
  exports.SubAgentToolRelationApiUpdateSchema = SubAgentToolRelationApiUpdateSchema;
@@ -2297,6 +2398,7 @@ exports.TaskRelationSelectSchema = TaskRelationSelectSchema;
2297
2398
  exports.TaskRelationUpdateSchema = TaskRelationUpdateSchema;
2298
2399
  exports.TaskSelectSchema = TaskSelectSchema;
2299
2400
  exports.TaskUpdateSchema = TaskUpdateSchema;
2401
+ exports.TeamAgentSchema = TeamAgentSchema;
2300
2402
  exports.TenantIdParamsSchema = TenantIdParamsSchema;
2301
2403
  exports.TenantParamsSchema = TenantParamsSchema;
2302
2404
  exports.TenantProjectAgentIdParamsSchema = TenantProjectAgentIdParamsSchema;
@@ -2317,6 +2419,7 @@ exports.ToolUpdateSchema = ToolUpdateSchema;
2317
2419
  exports.TransferDataSchema = TransferDataSchema;
2318
2420
  exports.URL_SAFE_ID_PATTERN = URL_SAFE_ID_PATTERN;
2319
2421
  exports.canDelegateToExternalAgentSchema = canDelegateToExternalAgentSchema;
2422
+ exports.canDelegateToTeamAgentSchema = canDelegateToTeamAgentSchema;
2320
2423
  exports.generateIdFromName = generateIdFromName;
2321
2424
  exports.isValidResourceId = isValidResourceId;
2322
2425
  exports.resourceIdSchema = resourceIdSchema;
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { f_ as AgentWithinContextOfProjectSchema, z as FullAgentDefinition } from '../utility-CWjvUL4k.cjs';
3
- export { e0 as AgentApiInsertSchema, d$ as AgentApiSelectSchema, e1 as AgentApiUpdateSchema, dZ as AgentInsertSchema, gu as AgentListResponse, ge as AgentResponse, dY as AgentSelectSchema, e as AgentStopWhen, b as AgentStopWhenSchema, d_ as AgentUpdateSchema, f4 as AllAgentSchema, f9 as ApiKeyApiCreationResponseSchema, fa as ApiKeyApiInsertSchema, f8 as ApiKeyApiSelectSchema, A as ApiKeyApiUpdateSchema, f6 as ApiKeyInsertSchema, gy as ApiKeyListResponse, gi as ApiKeyResponse, f5 as ApiKeySelectSchema, f7 as ApiKeyUpdateSchema, eS as ArtifactComponentApiInsertSchema, eR as ArtifactComponentApiSelectSchema, eT as ArtifactComponentApiUpdateSchema, eP as ArtifactComponentInsertSchema, gD as ArtifactComponentListResponse, gn as ArtifactComponentResponse, eO as ArtifactComponentSelectSchema, eQ as ArtifactComponentUpdateSchema, fY as CanUseItemSchema, ez as ContextCacheApiInsertSchema, ey as ContextCacheApiSelectSchema, eA as ContextCacheApiUpdateSchema, ew as ContextCacheInsertSchema, ev as ContextCacheSelectSchema, ex as ContextCacheUpdateSchema, fC as ContextConfigApiInsertSchema, fB as ContextConfigApiSelectSchema, fD as ContextConfigApiUpdateSchema, fz as ContextConfigInsertSchema, gx as ContextConfigListResponse, gh as ContextConfigResponse, fy as ContextConfigSelectSchema, fA as ContextConfigUpdateSchema, en as ConversationApiInsertSchema, em as ConversationApiSelectSchema, eo as ConversationApiUpdateSchema, ek as ConversationInsertSchema, gG as ConversationListResponse, gq as ConversationResponse, ej as ConversationSelectSchema, el as ConversationUpdateSchema, ff as CredentialReferenceApiInsertSchema, fe as CredentialReferenceApiSelectSchema, fg as CredentialReferenceApiUpdateSchema, fc as CredentialReferenceInsertSchema, gz as CredentialReferenceListResponse, gj as CredentialReferenceResponse, fb as CredentialReferenceSelectSchema, fd as CredentialReferenceUpdateSchema, eG as DataComponentApiInsertSchema, eF as DataComponentApiSelectSchema, eH as DataComponentApiUpdateSchema, eD as DataComponentBaseSchema, eC as DataComponentInsertSchema, gC as DataComponentListResponse, gm as DataComponentResponse, eB as DataComponentSelectSchema, eE as DataComponentUpdateSchema, g2 as ErrorResponseSchema, g3 as ExistsResponseSchema, f2 as ExternalAgentApiInsertSchema, f1 as ExternalAgentApiSelectSchema, f3 as ExternalAgentApiUpdateSchema, e$ as ExternalAgentInsertSchema, gw as ExternalAgentListResponse, gg as ExternalAgentResponse, e_ as ExternalAgentSelectSchema, f0 as ExternalAgentUpdateSchema, dX as ExternalSubAgentRelationApiInsertSchema, dW as ExternalSubAgentRelationInsertSchema, fw as FetchConfigSchema, fx as FetchDefinitionSchema, a as FullAgentAgentInsertSchema, gb as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, fu as FunctionInsertSchema, gA as FunctionListResponse, gk as FunctionResponse, ft as FunctionSelectSchema, fr as FunctionToolApiInsertSchema, fq as FunctionToolApiSelectSchema, fs as FunctionToolApiUpdateSchema, dI as FunctionToolConfig, dH as FunctionToolConfigSchema, fo as FunctionToolInsertSchema, gB as FunctionToolListResponse, gl as FunctionToolResponse, fn as FunctionToolSelectSchema, fp as FunctionToolUpdateSchema, fv as FunctionUpdateSchema, gM as HeadersScopeSchema, fU as LedgerArtifactApiInsertSchema, fT as LedgerArtifactApiSelectSchema, fV as LedgerArtifactApiUpdateSchema, fR as LedgerArtifactInsertSchema, fQ as LedgerArtifactSelectSchema, fS as LedgerArtifactUpdateSchema, g0 as ListResponseSchema, dC as MAX_ID_LENGTH, fi as MCPToolConfigSchema, dB as MIN_ID_LENGTH, eg as McpToolDefinitionSchema, fh as McpToolSchema, ee as McpTransportConfigSchema, et as MessageApiInsertSchema, es as MessageApiSelectSchema, eu as MessageApiUpdateSchema, eq as MessageInsertSchema, gH as MessageListResponse, gr as MessageResponse, ep as MessageSelectSchema, er as MessageUpdateSchema, dF as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, gV as PaginationQueryParamsSchema, f$ as PaginationSchema, g9 as ProjectApiInsertSchema, g8 as ProjectApiSelectSchema, ga as ProjectApiUpdateSchema, g6 as ProjectInsertSchema, gs as ProjectListResponse, dG as ProjectModelSchema, gc as ProjectResponse, g5 as ProjectSelectSchema, g7 as ProjectUpdateSchema, g4 as RemovedResponseSchema, g1 as SingleResponseSchema, fW as StatusComponentSchema, fX as StatusUpdateSchema, d as StopWhen, S as StopWhenSchema, dN as SubAgentApiInsertSchema, dM as SubAgentApiSelectSchema, dO as SubAgentApiUpdateSchema, eY as SubAgentArtifactComponentApiInsertSchema, eX as SubAgentArtifactComponentApiSelectSchema, eZ as SubAgentArtifactComponentApiUpdateSchema, eV as SubAgentArtifactComponentInsertSchema, gL as SubAgentArtifactComponentListResponse, gJ as SubAgentArtifactComponentResponse, eU as SubAgentArtifactComponentSelectSchema, eW as SubAgentArtifactComponentUpdateSchema, eM as SubAgentDataComponentApiInsertSchema, eL as SubAgentDataComponentApiSelectSchema, eN as SubAgentDataComponentApiUpdateSchema, eJ as SubAgentDataComponentInsertSchema, gK as SubAgentDataComponentListResponse, gI as SubAgentDataComponentResponse, eI as SubAgentDataComponentSelectSchema, eK as SubAgentDataComponentUpdateSchema, fO as SubAgentExternalAgentRelationApiInsertSchema, fN as SubAgentExternalAgentRelationApiSelectSchema, fP as SubAgentExternalAgentRelationApiUpdateSchema, fL as SubAgentExternalAgentRelationInsertSchema, fK as SubAgentExternalAgentRelationSelectSchema, fM as SubAgentExternalAgentRelationUpdateSchema, dK as SubAgentInsertSchema, gt as SubAgentListResponse, dT as SubAgentRelationApiInsertSchema, dS as SubAgentRelationApiSelectSchema, dU as SubAgentRelationApiUpdateSchema, dQ as SubAgentRelationInsertSchema, gE as SubAgentRelationListResponse, dV as SubAgentRelationQuerySchema, go as SubAgentRelationResponse, dP as SubAgentRelationSelectSchema, dR as SubAgentRelationUpdateSchema, gd as SubAgentResponse, dJ as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, fI as SubAgentToolRelationApiInsertSchema, fH as SubAgentToolRelationApiSelectSchema, fJ as SubAgentToolRelationApiUpdateSchema, fF as SubAgentToolRelationInsertSchema, gF as SubAgentToolRelationListResponse, gp as SubAgentToolRelationResponse, fE as SubAgentToolRelationSelectSchema, fG as SubAgentToolRelationUpdateSchema, dL as SubAgentUpdateSchema, e6 as TaskApiInsertSchema, e5 as TaskApiSelectSchema, e7 as TaskApiUpdateSchema, e3 as TaskInsertSchema, ec as TaskRelationApiInsertSchema, eb as TaskRelationApiSelectSchema, ed as TaskRelationApiUpdateSchema, e9 as TaskRelationInsertSchema, e8 as TaskRelationSelectSchema, ea as TaskRelationUpdateSchema, e2 as TaskSelectSchema, e4 as TaskUpdateSchema, gO as TenantIdParamsSchema, gN as TenantParamsSchema, gS as TenantProjectAgentIdParamsSchema, gR as TenantProjectAgentParamsSchema, gU as TenantProjectAgentSubAgentIdParamsSchema, gT as TenantProjectAgentSubAgentParamsSchema, gQ as TenantProjectIdParamsSchema, gP as TenantProjectParamsSchema, fl as ToolApiInsertSchema, fk as ToolApiSelectSchema, fm as ToolApiUpdateSchema, ei as ToolInsertSchema, gv as ToolListResponse, gf as ToolResponse, eh as ToolSelectSchema, ef as ToolStatusSchema, fj as ToolUpdateSchema, dD as URL_SAFE_ID_PATTERN, fZ as canDelegateToExternalAgentSchema, dE as resourceIdSchema } from '../utility-CWjvUL4k.cjs';
2
+ import { gc as AgentWithinContextOfProjectSchema, v as FullAgentDefinition } from '../utility-ne-rF1pW.cjs';
3
+ export { e6 as AgentApiInsertSchema, e5 as AgentApiSelectSchema, e7 as AgentApiUpdateSchema, e3 as AgentInsertSchema, gI as AgentListResponse, gs as AgentResponse, e2 as AgentSelectSchema, e as AgentStopWhen, b as AgentStopWhenSchema, e4 as AgentUpdateSchema, fa as AllAgentSchema, ff as ApiKeyApiCreationResponseSchema, fg as ApiKeyApiInsertSchema, fe as ApiKeyApiSelectSchema, A as ApiKeyApiUpdateSchema, fc as ApiKeyInsertSchema, gM as ApiKeyListResponse, gw as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, eY as ArtifactComponentApiInsertSchema, eX as ArtifactComponentApiSelectSchema, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gR as ArtifactComponentListResponse, gB as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, g8 as CanUseItemSchema, eF as ContextCacheApiInsertSchema, eE as ContextCacheApiSelectSchema, eG as ContextCacheApiUpdateSchema, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, eD as ContextCacheUpdateSchema, fI as ContextConfigApiInsertSchema, fH as ContextConfigApiSelectSchema, fJ as ContextConfigApiUpdateSchema, fF as ContextConfigInsertSchema, gL as ContextConfigListResponse, gv as ContextConfigResponse, fE as ContextConfigSelectSchema, fG as ContextConfigUpdateSchema, et as ConversationApiInsertSchema, es as ConversationApiSelectSchema, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, gU as ConversationListResponse, gE as ConversationResponse, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fl as CredentialReferenceApiInsertSchema, fk as CredentialReferenceApiSelectSchema, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gN as CredentialReferenceListResponse, gx as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, eM as DataComponentApiInsertSchema, eL as DataComponentApiSelectSchema, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gQ as DataComponentListResponse, gA as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, gg as ErrorResponseSchema, gh as ExistsResponseSchema, f8 as ExternalAgentApiInsertSchema, f7 as ExternalAgentApiSelectSchema, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gK as ExternalAgentListResponse, gu as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, e1 as ExternalSubAgentRelationApiInsertSchema, e0 as ExternalSubAgentRelationInsertSchema, fC as FetchConfigSchema, fD as FetchDefinitionSchema, a as FullAgentAgentInsertSchema, gp as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, fA as FunctionInsertSchema, gO as FunctionListResponse, gy as FunctionResponse, fz as FunctionSelectSchema, fx as FunctionToolApiInsertSchema, fw as FunctionToolApiSelectSchema, fy as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fu as FunctionToolInsertSchema, gP as FunctionToolListResponse, gz as FunctionToolResponse, ft as FunctionToolSelectSchema, fv as FunctionToolUpdateSchema, fB as FunctionUpdateSchema, g_ as HeadersScopeSchema, g4 as LedgerArtifactApiInsertSchema, g3 as LedgerArtifactApiSelectSchema, g5 as LedgerArtifactApiUpdateSchema, g1 as LedgerArtifactInsertSchema, g0 as LedgerArtifactSelectSchema, g2 as LedgerArtifactUpdateSchema, ge as ListResponseSchema, dI as MAX_ID_LENGTH, fo as MCPToolConfigSchema, dH as MIN_ID_LENGTH, em as McpToolDefinitionSchema, fn as McpToolSchema, ek as McpTransportConfigSchema, ez as MessageApiInsertSchema, ey as MessageApiSelectSchema, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, gV as MessageListResponse, gF as MessageResponse, ev as MessageSelectSchema, ex as MessageUpdateSchema, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, h7 as PaginationQueryParamsSchema, gd as PaginationSchema, gn as ProjectApiInsertSchema, gm as ProjectApiSelectSchema, go as ProjectApiUpdateSchema, gk as ProjectInsertSchema, gG as ProjectListResponse, dM as ProjectModelSchema, gq as ProjectResponse, gj as ProjectSelectSchema, gl as ProjectUpdateSchema, gi as RemovedResponseSchema, gf as SingleResponseSchema, g6 as StatusComponentSchema, g7 as StatusUpdateSchema, d as StopWhen, S as StopWhenSchema, dT as SubAgentApiInsertSchema, dS as SubAgentApiSelectSchema, dU as SubAgentApiUpdateSchema, f2 as SubAgentArtifactComponentApiInsertSchema, f1 as SubAgentArtifactComponentApiSelectSchema, f3 as SubAgentArtifactComponentApiUpdateSchema, e$ as SubAgentArtifactComponentInsertSchema, gZ as SubAgentArtifactComponentListResponse, gX as SubAgentArtifactComponentResponse, e_ as SubAgentArtifactComponentSelectSchema, f0 as SubAgentArtifactComponentUpdateSchema, eS as SubAgentDataComponentApiInsertSchema, eR as SubAgentDataComponentApiSelectSchema, eT as SubAgentDataComponentApiUpdateSchema, eP as SubAgentDataComponentInsertSchema, gY as SubAgentDataComponentListResponse, gW as SubAgentDataComponentResponse, eO as SubAgentDataComponentSelectSchema, eQ as SubAgentDataComponentUpdateSchema, fU as SubAgentExternalAgentRelationApiInsertSchema, fT as SubAgentExternalAgentRelationApiSelectSchema, fV as SubAgentExternalAgentRelationApiUpdateSchema, fR as SubAgentExternalAgentRelationInsertSchema, fQ as SubAgentExternalAgentRelationSelectSchema, fS as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gH as SubAgentListResponse, dZ as SubAgentRelationApiInsertSchema, dY as SubAgentRelationApiSelectSchema, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, gS as SubAgentRelationListResponse, d$ as SubAgentRelationQuerySchema, gC as SubAgentRelationResponse, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gr as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, f_ as SubAgentTeamAgentRelationApiInsertSchema, fZ as SubAgentTeamAgentRelationApiSelectSchema, f$ as SubAgentTeamAgentRelationApiUpdateSchema, fX as SubAgentTeamAgentRelationInsertSchema, fW as SubAgentTeamAgentRelationSelectSchema, fY as SubAgentTeamAgentRelationUpdateSchema, fO as SubAgentToolRelationApiInsertSchema, fN as SubAgentToolRelationApiSelectSchema, fP as SubAgentToolRelationApiUpdateSchema, fL as SubAgentToolRelationInsertSchema, gT as SubAgentToolRelationListResponse, gD as SubAgentToolRelationResponse, fK as SubAgentToolRelationSelectSchema, fM as SubAgentToolRelationUpdateSchema, dR as SubAgentUpdateSchema, ec as TaskApiInsertSchema, eb as TaskApiSelectSchema, ed as TaskApiUpdateSchema, e9 as TaskInsertSchema, ei as TaskRelationApiInsertSchema, eh as TaskRelationApiSelectSchema, ej as TaskRelationApiUpdateSchema, ef as TaskRelationInsertSchema, ee as TaskRelationSelectSchema, eg as TaskRelationUpdateSchema, e8 as TaskSelectSchema, ea as TaskUpdateSchema, gb as TeamAgentSchema, h0 as TenantIdParamsSchema, g$ as TenantParamsSchema, h4 as TenantProjectAgentIdParamsSchema, h3 as TenantProjectAgentParamsSchema, h6 as TenantProjectAgentSubAgentIdParamsSchema, h5 as TenantProjectAgentSubAgentParamsSchema, h2 as TenantProjectIdParamsSchema, h1 as TenantProjectParamsSchema, fr as ToolApiInsertSchema, fq as ToolApiSelectSchema, fs as ToolApiUpdateSchema, eo as ToolInsertSchema, gJ as ToolListResponse, gt as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fp as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, g9 as canDelegateToExternalAgentSchema, ga as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from '../utility-ne-rF1pW.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 { f_ as AgentWithinContextOfProjectSchema, z as FullAgentDefinition } from '../utility-CWjvUL4k.js';
3
- export { e0 as AgentApiInsertSchema, d$ as AgentApiSelectSchema, e1 as AgentApiUpdateSchema, dZ as AgentInsertSchema, gu as AgentListResponse, ge as AgentResponse, dY as AgentSelectSchema, e as AgentStopWhen, b as AgentStopWhenSchema, d_ as AgentUpdateSchema, f4 as AllAgentSchema, f9 as ApiKeyApiCreationResponseSchema, fa as ApiKeyApiInsertSchema, f8 as ApiKeyApiSelectSchema, A as ApiKeyApiUpdateSchema, f6 as ApiKeyInsertSchema, gy as ApiKeyListResponse, gi as ApiKeyResponse, f5 as ApiKeySelectSchema, f7 as ApiKeyUpdateSchema, eS as ArtifactComponentApiInsertSchema, eR as ArtifactComponentApiSelectSchema, eT as ArtifactComponentApiUpdateSchema, eP as ArtifactComponentInsertSchema, gD as ArtifactComponentListResponse, gn as ArtifactComponentResponse, eO as ArtifactComponentSelectSchema, eQ as ArtifactComponentUpdateSchema, fY as CanUseItemSchema, ez as ContextCacheApiInsertSchema, ey as ContextCacheApiSelectSchema, eA as ContextCacheApiUpdateSchema, ew as ContextCacheInsertSchema, ev as ContextCacheSelectSchema, ex as ContextCacheUpdateSchema, fC as ContextConfigApiInsertSchema, fB as ContextConfigApiSelectSchema, fD as ContextConfigApiUpdateSchema, fz as ContextConfigInsertSchema, gx as ContextConfigListResponse, gh as ContextConfigResponse, fy as ContextConfigSelectSchema, fA as ContextConfigUpdateSchema, en as ConversationApiInsertSchema, em as ConversationApiSelectSchema, eo as ConversationApiUpdateSchema, ek as ConversationInsertSchema, gG as ConversationListResponse, gq as ConversationResponse, ej as ConversationSelectSchema, el as ConversationUpdateSchema, ff as CredentialReferenceApiInsertSchema, fe as CredentialReferenceApiSelectSchema, fg as CredentialReferenceApiUpdateSchema, fc as CredentialReferenceInsertSchema, gz as CredentialReferenceListResponse, gj as CredentialReferenceResponse, fb as CredentialReferenceSelectSchema, fd as CredentialReferenceUpdateSchema, eG as DataComponentApiInsertSchema, eF as DataComponentApiSelectSchema, eH as DataComponentApiUpdateSchema, eD as DataComponentBaseSchema, eC as DataComponentInsertSchema, gC as DataComponentListResponse, gm as DataComponentResponse, eB as DataComponentSelectSchema, eE as DataComponentUpdateSchema, g2 as ErrorResponseSchema, g3 as ExistsResponseSchema, f2 as ExternalAgentApiInsertSchema, f1 as ExternalAgentApiSelectSchema, f3 as ExternalAgentApiUpdateSchema, e$ as ExternalAgentInsertSchema, gw as ExternalAgentListResponse, gg as ExternalAgentResponse, e_ as ExternalAgentSelectSchema, f0 as ExternalAgentUpdateSchema, dX as ExternalSubAgentRelationApiInsertSchema, dW as ExternalSubAgentRelationInsertSchema, fw as FetchConfigSchema, fx as FetchDefinitionSchema, a as FullAgentAgentInsertSchema, gb as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, fu as FunctionInsertSchema, gA as FunctionListResponse, gk as FunctionResponse, ft as FunctionSelectSchema, fr as FunctionToolApiInsertSchema, fq as FunctionToolApiSelectSchema, fs as FunctionToolApiUpdateSchema, dI as FunctionToolConfig, dH as FunctionToolConfigSchema, fo as FunctionToolInsertSchema, gB as FunctionToolListResponse, gl as FunctionToolResponse, fn as FunctionToolSelectSchema, fp as FunctionToolUpdateSchema, fv as FunctionUpdateSchema, gM as HeadersScopeSchema, fU as LedgerArtifactApiInsertSchema, fT as LedgerArtifactApiSelectSchema, fV as LedgerArtifactApiUpdateSchema, fR as LedgerArtifactInsertSchema, fQ as LedgerArtifactSelectSchema, fS as LedgerArtifactUpdateSchema, g0 as ListResponseSchema, dC as MAX_ID_LENGTH, fi as MCPToolConfigSchema, dB as MIN_ID_LENGTH, eg as McpToolDefinitionSchema, fh as McpToolSchema, ee as McpTransportConfigSchema, et as MessageApiInsertSchema, es as MessageApiSelectSchema, eu as MessageApiUpdateSchema, eq as MessageInsertSchema, gH as MessageListResponse, gr as MessageResponse, ep as MessageSelectSchema, er as MessageUpdateSchema, dF as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, gV as PaginationQueryParamsSchema, f$ as PaginationSchema, g9 as ProjectApiInsertSchema, g8 as ProjectApiSelectSchema, ga as ProjectApiUpdateSchema, g6 as ProjectInsertSchema, gs as ProjectListResponse, dG as ProjectModelSchema, gc as ProjectResponse, g5 as ProjectSelectSchema, g7 as ProjectUpdateSchema, g4 as RemovedResponseSchema, g1 as SingleResponseSchema, fW as StatusComponentSchema, fX as StatusUpdateSchema, d as StopWhen, S as StopWhenSchema, dN as SubAgentApiInsertSchema, dM as SubAgentApiSelectSchema, dO as SubAgentApiUpdateSchema, eY as SubAgentArtifactComponentApiInsertSchema, eX as SubAgentArtifactComponentApiSelectSchema, eZ as SubAgentArtifactComponentApiUpdateSchema, eV as SubAgentArtifactComponentInsertSchema, gL as SubAgentArtifactComponentListResponse, gJ as SubAgentArtifactComponentResponse, eU as SubAgentArtifactComponentSelectSchema, eW as SubAgentArtifactComponentUpdateSchema, eM as SubAgentDataComponentApiInsertSchema, eL as SubAgentDataComponentApiSelectSchema, eN as SubAgentDataComponentApiUpdateSchema, eJ as SubAgentDataComponentInsertSchema, gK as SubAgentDataComponentListResponse, gI as SubAgentDataComponentResponse, eI as SubAgentDataComponentSelectSchema, eK as SubAgentDataComponentUpdateSchema, fO as SubAgentExternalAgentRelationApiInsertSchema, fN as SubAgentExternalAgentRelationApiSelectSchema, fP as SubAgentExternalAgentRelationApiUpdateSchema, fL as SubAgentExternalAgentRelationInsertSchema, fK as SubAgentExternalAgentRelationSelectSchema, fM as SubAgentExternalAgentRelationUpdateSchema, dK as SubAgentInsertSchema, gt as SubAgentListResponse, dT as SubAgentRelationApiInsertSchema, dS as SubAgentRelationApiSelectSchema, dU as SubAgentRelationApiUpdateSchema, dQ as SubAgentRelationInsertSchema, gE as SubAgentRelationListResponse, dV as SubAgentRelationQuerySchema, go as SubAgentRelationResponse, dP as SubAgentRelationSelectSchema, dR as SubAgentRelationUpdateSchema, gd as SubAgentResponse, dJ as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, fI as SubAgentToolRelationApiInsertSchema, fH as SubAgentToolRelationApiSelectSchema, fJ as SubAgentToolRelationApiUpdateSchema, fF as SubAgentToolRelationInsertSchema, gF as SubAgentToolRelationListResponse, gp as SubAgentToolRelationResponse, fE as SubAgentToolRelationSelectSchema, fG as SubAgentToolRelationUpdateSchema, dL as SubAgentUpdateSchema, e6 as TaskApiInsertSchema, e5 as TaskApiSelectSchema, e7 as TaskApiUpdateSchema, e3 as TaskInsertSchema, ec as TaskRelationApiInsertSchema, eb as TaskRelationApiSelectSchema, ed as TaskRelationApiUpdateSchema, e9 as TaskRelationInsertSchema, e8 as TaskRelationSelectSchema, ea as TaskRelationUpdateSchema, e2 as TaskSelectSchema, e4 as TaskUpdateSchema, gO as TenantIdParamsSchema, gN as TenantParamsSchema, gS as TenantProjectAgentIdParamsSchema, gR as TenantProjectAgentParamsSchema, gU as TenantProjectAgentSubAgentIdParamsSchema, gT as TenantProjectAgentSubAgentParamsSchema, gQ as TenantProjectIdParamsSchema, gP as TenantProjectParamsSchema, fl as ToolApiInsertSchema, fk as ToolApiSelectSchema, fm as ToolApiUpdateSchema, ei as ToolInsertSchema, gv as ToolListResponse, gf as ToolResponse, eh as ToolSelectSchema, ef as ToolStatusSchema, fj as ToolUpdateSchema, dD as URL_SAFE_ID_PATTERN, fZ as canDelegateToExternalAgentSchema, dE as resourceIdSchema } from '../utility-CWjvUL4k.js';
2
+ import { gc as AgentWithinContextOfProjectSchema, v as FullAgentDefinition } from '../utility-ne-rF1pW.js';
3
+ export { e6 as AgentApiInsertSchema, e5 as AgentApiSelectSchema, e7 as AgentApiUpdateSchema, e3 as AgentInsertSchema, gI as AgentListResponse, gs as AgentResponse, e2 as AgentSelectSchema, e as AgentStopWhen, b as AgentStopWhenSchema, e4 as AgentUpdateSchema, fa as AllAgentSchema, ff as ApiKeyApiCreationResponseSchema, fg as ApiKeyApiInsertSchema, fe as ApiKeyApiSelectSchema, A as ApiKeyApiUpdateSchema, fc as ApiKeyInsertSchema, gM as ApiKeyListResponse, gw as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, eY as ArtifactComponentApiInsertSchema, eX as ArtifactComponentApiSelectSchema, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gR as ArtifactComponentListResponse, gB as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, g8 as CanUseItemSchema, eF as ContextCacheApiInsertSchema, eE as ContextCacheApiSelectSchema, eG as ContextCacheApiUpdateSchema, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, eD as ContextCacheUpdateSchema, fI as ContextConfigApiInsertSchema, fH as ContextConfigApiSelectSchema, fJ as ContextConfigApiUpdateSchema, fF as ContextConfigInsertSchema, gL as ContextConfigListResponse, gv as ContextConfigResponse, fE as ContextConfigSelectSchema, fG as ContextConfigUpdateSchema, et as ConversationApiInsertSchema, es as ConversationApiSelectSchema, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, gU as ConversationListResponse, gE as ConversationResponse, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fl as CredentialReferenceApiInsertSchema, fk as CredentialReferenceApiSelectSchema, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gN as CredentialReferenceListResponse, gx as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, eM as DataComponentApiInsertSchema, eL as DataComponentApiSelectSchema, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gQ as DataComponentListResponse, gA as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, gg as ErrorResponseSchema, gh as ExistsResponseSchema, f8 as ExternalAgentApiInsertSchema, f7 as ExternalAgentApiSelectSchema, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gK as ExternalAgentListResponse, gu as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, e1 as ExternalSubAgentRelationApiInsertSchema, e0 as ExternalSubAgentRelationInsertSchema, fC as FetchConfigSchema, fD as FetchDefinitionSchema, a as FullAgentAgentInsertSchema, gp as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, fA as FunctionInsertSchema, gO as FunctionListResponse, gy as FunctionResponse, fz as FunctionSelectSchema, fx as FunctionToolApiInsertSchema, fw as FunctionToolApiSelectSchema, fy as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fu as FunctionToolInsertSchema, gP as FunctionToolListResponse, gz as FunctionToolResponse, ft as FunctionToolSelectSchema, fv as FunctionToolUpdateSchema, fB as FunctionUpdateSchema, g_ as HeadersScopeSchema, g4 as LedgerArtifactApiInsertSchema, g3 as LedgerArtifactApiSelectSchema, g5 as LedgerArtifactApiUpdateSchema, g1 as LedgerArtifactInsertSchema, g0 as LedgerArtifactSelectSchema, g2 as LedgerArtifactUpdateSchema, ge as ListResponseSchema, dI as MAX_ID_LENGTH, fo as MCPToolConfigSchema, dH as MIN_ID_LENGTH, em as McpToolDefinitionSchema, fn as McpToolSchema, ek as McpTransportConfigSchema, ez as MessageApiInsertSchema, ey as MessageApiSelectSchema, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, gV as MessageListResponse, gF as MessageResponse, ev as MessageSelectSchema, ex as MessageUpdateSchema, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, h7 as PaginationQueryParamsSchema, gd as PaginationSchema, gn as ProjectApiInsertSchema, gm as ProjectApiSelectSchema, go as ProjectApiUpdateSchema, gk as ProjectInsertSchema, gG as ProjectListResponse, dM as ProjectModelSchema, gq as ProjectResponse, gj as ProjectSelectSchema, gl as ProjectUpdateSchema, gi as RemovedResponseSchema, gf as SingleResponseSchema, g6 as StatusComponentSchema, g7 as StatusUpdateSchema, d as StopWhen, S as StopWhenSchema, dT as SubAgentApiInsertSchema, dS as SubAgentApiSelectSchema, dU as SubAgentApiUpdateSchema, f2 as SubAgentArtifactComponentApiInsertSchema, f1 as SubAgentArtifactComponentApiSelectSchema, f3 as SubAgentArtifactComponentApiUpdateSchema, e$ as SubAgentArtifactComponentInsertSchema, gZ as SubAgentArtifactComponentListResponse, gX as SubAgentArtifactComponentResponse, e_ as SubAgentArtifactComponentSelectSchema, f0 as SubAgentArtifactComponentUpdateSchema, eS as SubAgentDataComponentApiInsertSchema, eR as SubAgentDataComponentApiSelectSchema, eT as SubAgentDataComponentApiUpdateSchema, eP as SubAgentDataComponentInsertSchema, gY as SubAgentDataComponentListResponse, gW as SubAgentDataComponentResponse, eO as SubAgentDataComponentSelectSchema, eQ as SubAgentDataComponentUpdateSchema, fU as SubAgentExternalAgentRelationApiInsertSchema, fT as SubAgentExternalAgentRelationApiSelectSchema, fV as SubAgentExternalAgentRelationApiUpdateSchema, fR as SubAgentExternalAgentRelationInsertSchema, fQ as SubAgentExternalAgentRelationSelectSchema, fS as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gH as SubAgentListResponse, dZ as SubAgentRelationApiInsertSchema, dY as SubAgentRelationApiSelectSchema, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, gS as SubAgentRelationListResponse, d$ as SubAgentRelationQuerySchema, gC as SubAgentRelationResponse, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gr as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, f_ as SubAgentTeamAgentRelationApiInsertSchema, fZ as SubAgentTeamAgentRelationApiSelectSchema, f$ as SubAgentTeamAgentRelationApiUpdateSchema, fX as SubAgentTeamAgentRelationInsertSchema, fW as SubAgentTeamAgentRelationSelectSchema, fY as SubAgentTeamAgentRelationUpdateSchema, fO as SubAgentToolRelationApiInsertSchema, fN as SubAgentToolRelationApiSelectSchema, fP as SubAgentToolRelationApiUpdateSchema, fL as SubAgentToolRelationInsertSchema, gT as SubAgentToolRelationListResponse, gD as SubAgentToolRelationResponse, fK as SubAgentToolRelationSelectSchema, fM as SubAgentToolRelationUpdateSchema, dR as SubAgentUpdateSchema, ec as TaskApiInsertSchema, eb as TaskApiSelectSchema, ed as TaskApiUpdateSchema, e9 as TaskInsertSchema, ei as TaskRelationApiInsertSchema, eh as TaskRelationApiSelectSchema, ej as TaskRelationApiUpdateSchema, ef as TaskRelationInsertSchema, ee as TaskRelationSelectSchema, eg as TaskRelationUpdateSchema, e8 as TaskSelectSchema, ea as TaskUpdateSchema, gb as TeamAgentSchema, h0 as TenantIdParamsSchema, g$ as TenantParamsSchema, h4 as TenantProjectAgentIdParamsSchema, h3 as TenantProjectAgentParamsSchema, h6 as TenantProjectAgentSubAgentIdParamsSchema, h5 as TenantProjectAgentSubAgentParamsSchema, h2 as TenantProjectIdParamsSchema, h1 as TenantProjectParamsSchema, fr as ToolApiInsertSchema, fq as ToolApiSelectSchema, fs as ToolApiUpdateSchema, eo as ToolInsertSchema, gJ as ToolListResponse, gt as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fp as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, g9 as canDelegateToExternalAgentSchema, ga as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from '../utility-ne-rF1pW.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, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validatePreview, validateSubAgentExternalAgentRelations, validateToolReferences } from '../chunk-HMVAAUTK.js';
2
- export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentInsertSchema, AgentListResponse, AgentResponse, AgentSelectSchema, AgentStopWhenSchema, AgentUpdateSchema, AgentWithinContextOfProjectSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CanUseItemSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationListResponse, ConversationResponse, ConversationSelectSchema, ConversationUpdateSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FetchConfigSchema, FetchDefinitionSchema, FullAgentAgentInsertSchema, FullProjectDefinitionSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, FunctionInsertSchema, FunctionListResponse, FunctionResponse, FunctionSelectSchema, FunctionToolApiInsertSchema, FunctionToolApiSelectSchema, FunctionToolApiUpdateSchema, FunctionToolConfigSchema, FunctionToolInsertSchema, FunctionToolListResponse, FunctionToolResponse, FunctionToolSelectSchema, FunctionToolUpdateSchema, FunctionUpdateSchema, HeadersScopeSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageListResponse, MessageResponse, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, PaginationQueryParamsSchema, PaginationSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, RemovedResponseSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, SubAgentApiInsertSchema, SubAgentApiSelectSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentListResponse, SubAgentArtifactComponentResponse, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentListResponse, SubAgentDataComponentResponse, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdateSchema, SubAgentExternalAgentRelationApiInsertSchema, SubAgentExternalAgentRelationApiSelectSchema, SubAgentExternalAgentRelationApiUpdateSchema, SubAgentExternalAgentRelationInsertSchema, SubAgentExternalAgentRelationSelectSchema, SubAgentExternalAgentRelationUpdateSchema, SubAgentInsertSchema, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentSelectSchema, SubAgentStopWhenSchema, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsertSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdateSchema, SubAgentUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolListResponse, ToolResponse, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, canDelegateToExternalAgentSchema, resourceIdSchema, validatePropsAsJsonSchema } from '../chunk-NXC2HZQL.js';
1
+ export { A2AMessageMetadataSchema, DataOperationDetailsSchema, DataOperationEventSchema, DelegationReturnedDataSchema, DelegationSentDataSchema, TransferDataSchema, generateIdFromName, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validatePreview, validateSubAgentExternalAgentRelations, validateToolReferences } from '../chunk-TE25X6YU.js';
2
+ export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentInsertSchema, AgentListResponse, AgentResponse, AgentSelectSchema, AgentStopWhenSchema, AgentUpdateSchema, AgentWithinContextOfProjectSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CanUseItemSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationListResponse, ConversationResponse, ConversationSelectSchema, ConversationUpdateSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FetchConfigSchema, FetchDefinitionSchema, FullAgentAgentInsertSchema, FullProjectDefinitionSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, FunctionInsertSchema, FunctionListResponse, FunctionResponse, FunctionSelectSchema, FunctionToolApiInsertSchema, FunctionToolApiSelectSchema, FunctionToolApiUpdateSchema, FunctionToolConfigSchema, FunctionToolInsertSchema, FunctionToolListResponse, FunctionToolResponse, FunctionToolSelectSchema, FunctionToolUpdateSchema, FunctionUpdateSchema, HeadersScopeSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageListResponse, MessageResponse, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, PaginationQueryParamsSchema, PaginationSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, RemovedResponseSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, SubAgentApiInsertSchema, SubAgentApiSelectSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentListResponse, SubAgentArtifactComponentResponse, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentListResponse, SubAgentDataComponentResponse, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdateSchema, SubAgentExternalAgentRelationApiInsertSchema, SubAgentExternalAgentRelationApiSelectSchema, SubAgentExternalAgentRelationApiUpdateSchema, SubAgentExternalAgentRelationInsertSchema, SubAgentExternalAgentRelationSelectSchema, SubAgentExternalAgentRelationUpdateSchema, SubAgentInsertSchema, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentSelectSchema, SubAgentStopWhenSchema, SubAgentTeamAgentRelationApiInsertSchema, SubAgentTeamAgentRelationApiSelectSchema, SubAgentTeamAgentRelationApiUpdateSchema, SubAgentTeamAgentRelationInsertSchema, SubAgentTeamAgentRelationSelectSchema, SubAgentTeamAgentRelationUpdateSchema, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsertSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdateSchema, SubAgentUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TeamAgentSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolListResponse, ToolResponse, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, canDelegateToExternalAgentSchema, canDelegateToTeamAgentSchema, resourceIdSchema, validatePropsAsJsonSchema } from '../chunk-QPOB7LI5.js';
@@ -0,0 +1,17 @@
1
+ CREATE TABLE `sub_agent_team_agent_relations` (
2
+ `tenant_id` text NOT NULL,
3
+ `id` text NOT NULL,
4
+ `project_id` text NOT NULL,
5
+ `agent_id` text NOT NULL,
6
+ `sub_agent_id` text NOT NULL,
7
+ `target_agent_id` text NOT NULL,
8
+ `headers` blob,
9
+ `created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
10
+ `updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
11
+ PRIMARY KEY(`tenant_id`, `project_id`, `agent_id`, `id`),
12
+ FOREIGN KEY (`tenant_id`,`project_id`,`agent_id`,`sub_agent_id`) REFERENCES `sub_agents`(`tenant_id`,`project_id`,`agent_id`,`id`) ON UPDATE no action ON DELETE cascade,
13
+ FOREIGN KEY (`tenant_id`,`project_id`,`target_agent_id`) REFERENCES `agent`(`tenant_id`,`project_id`,`id`) ON UPDATE no action ON DELETE cascade
14
+ );
15
+ --> statement-breakpoint
16
+ ALTER TABLE `messages` ADD `from_team_agent_id` text;--> statement-breakpoint
17
+ ALTER TABLE `messages` ADD `to_team_agent_id` text;