@inkeep/agents-core 0.16.3 → 0.18.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.
Files changed (36) hide show
  1. package/README.md +2 -2
  2. package/dist/{chunk-72MXE5SX.js → chunk-E4SFK6AI.js} +143 -157
  3. package/dist/{chunk-VPJ6Z5QZ.js → chunk-ID4CFGVF.js} +202 -131
  4. package/dist/chunk-JTHQYGCX.js +173 -0
  5. package/dist/chunk-TCLX6C3C.js +271 -0
  6. package/dist/client-exports.cjs +622 -272
  7. package/dist/client-exports.d.cts +6 -5
  8. package/dist/client-exports.d.ts +6 -5
  9. package/dist/client-exports.js +5 -4
  10. package/dist/db/schema.cjs +201 -130
  11. package/dist/db/schema.d.cts +2 -2
  12. package/dist/db/schema.d.ts +2 -2
  13. package/dist/db/schema.js +1 -1
  14. package/dist/index.cjs +2734 -1831
  15. package/dist/index.d.cts +1667 -1550
  16. package/dist/index.d.ts +1667 -1550
  17. package/dist/index.js +1880 -1394
  18. package/dist/{schema-BQk_FMBV.d.ts → schema-Bjy5TkFv.d.cts} +473 -172
  19. package/dist/{schema-Ct2NlO81.d.cts → schema-CfWbqju2.d.ts} +473 -172
  20. package/dist/signoz-queries-CifqdbnO.d.cts +269 -0
  21. package/dist/signoz-queries-CifqdbnO.d.ts +269 -0
  22. package/dist/types/index.d.cts +2 -2
  23. package/dist/types/index.d.ts +2 -2
  24. package/dist/{utility-s9c5CVOe.d.cts → utility-Fxoh7s82.d.cts} +585 -384
  25. package/dist/{utility-s9c5CVOe.d.ts → utility-Fxoh7s82.d.ts} +585 -384
  26. package/dist/validation/index.cjs +429 -325
  27. package/dist/validation/index.d.cts +76 -4
  28. package/dist/validation/index.d.ts +76 -4
  29. package/dist/validation/index.js +2 -2
  30. package/drizzle/0005_wide_shriek.sql +127 -0
  31. package/drizzle/0006_damp_lenny_balinger.sql +52 -0
  32. package/drizzle/meta/0005_snapshot.json +2558 -0
  33. package/drizzle/meta/0006_snapshot.json +2751 -0
  34. package/drizzle/meta/_journal.json +14 -0
  35. package/package.json +1 -1
  36. package/dist/chunk-N43VFJD3.js +0 -134
@@ -1,15 +1,87 @@
1
1
  import { z } from 'zod';
2
- import { d3 as AgentDefinition, d2 as InternalAgentDefinition, cJ as ExternalAgentApiInsert, fG as FullGraphDefinitionSchema, z as FullGraphDefinition } from '../utility-s9c5CVOe.cjs';
3
- export { dG as AgentApiInsertSchema, dF as AgentApiSelectSchema, dH as AgentApiUpdateSchema, eR as AgentArtifactComponentApiInsertSchema, eQ as AgentArtifactComponentApiSelectSchema, eS as AgentArtifactComponentApiUpdateSchema, eO as AgentArtifactComponentInsertSchema, eN as AgentArtifactComponentSelectSchema, eP as AgentArtifactComponentUpdateSchema, eF as AgentDataComponentApiInsertSchema, eE as AgentDataComponentApiSelectSchema, eG as AgentDataComponentApiUpdateSchema, eC as AgentDataComponentInsertSchema, eB as AgentDataComponentSelectSchema, eD as AgentDataComponentUpdateSchema, dV as AgentGraphApiInsertSchema, dU as AgentGraphApiSelectSchema, dW as AgentGraphApiUpdateSchema, dS as AgentGraphInsertSchema, dR as AgentGraphSelectSchema, dT as AgentGraphUpdateSchema, dD as AgentInsertSchema, dM as AgentRelationApiInsertSchema, dL as AgentRelationApiSelectSchema, dN as AgentRelationApiUpdateSchema, dJ as AgentRelationInsertSchema, dO as AgentRelationQuerySchema, dI as AgentRelationSelectSchema, dK as AgentRelationUpdateSchema, dC as AgentSelectSchema, e as AgentStopWhen, b as AgentStopWhenSchema, fv as AgentToolRelationApiInsertSchema, fu as AgentToolRelationApiSelectSchema, fw as AgentToolRelationApiUpdateSchema, fs as AgentToolRelationInsertSchema, fr as AgentToolRelationSelectSchema, ft as AgentToolRelationUpdateSchema, dE as AgentUpdateSchema, 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, fL as ErrorResponseSchema, fM as ExistsResponseSchema, eX as ExternalAgentApiInsertSchema, eW as ExternalAgentApiSelectSchema, eY as ExternalAgentApiUpdateSchema, eU as ExternalAgentInsertSchema, dQ as ExternalAgentRelationApiInsertSchema, dP as ExternalAgentRelationInsertSchema, eT as ExternalAgentSelectSchema, eV as ExternalAgentUpdateSchema, fj as FetchConfigSchema, fk as FetchDefinitionSchema, a as FullGraphAgentInsertSchema, fU 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, fH as GraphWithinContextOfProjectSchema, fV as HeadersScopeSchema, g0 as IdParamsSchema, fB as LedgerArtifactApiInsertSchema, fA as LedgerArtifactApiSelectSchema, fC as LedgerArtifactApiUpdateSchema, fy as LedgerArtifactInsertSchema, fx as LedgerArtifactSelectSchema, fz as LedgerArtifactUpdateSchema, fJ 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, fI as PaginationSchema, fS as ProjectApiInsertSchema, fR as ProjectApiSelectSchema, fT as ProjectApiUpdateSchema, fP as ProjectInsertSchema, dy as ProjectModelSchema, fO as ProjectSelectSchema, fQ as ProjectUpdateSchema, fN as RemovedResponseSchema, dz as SandboxConfig, k as SandboxConfigSchema, fK as SingleResponseSchema, fD as StatusComponentSchema, fE as StatusUpdateSchema, c as StopWhen, S as StopWhenSchema, 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, f$ as TenantIdParamsSchema, fW as TenantParamsSchema, fZ as TenantProjectGraphIdParamsSchema, fY as TenantProjectGraphParamsSchema, f_ 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-s9c5CVOe.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';
7
7
  import '@hono/zod-openapi';
8
8
  import '@modelcontextprotocol/sdk/client/streamableHttp.js';
9
9
 
10
+ /**
11
+ * Agent transfer event data
12
+ * Used when an agent transfers control to another agent
13
+ */
14
+ declare const TransferDataSchema: z.ZodObject<{
15
+ fromSubAgent: z.ZodString;
16
+ targetSubAgent: z.ZodString;
17
+ reason: z.ZodOptional<z.ZodString>;
18
+ context: z.ZodOptional<z.ZodAny>;
19
+ }, z.core.$strip>;
20
+ type TransferData = z.infer<typeof TransferDataSchema>;
21
+ /**
22
+ * Delegation sent event data
23
+ * Used when an agent delegates a task to another agent
24
+ */
25
+ declare const DelegationSentDataSchema: z.ZodObject<{
26
+ delegationId: z.ZodString;
27
+ fromSubAgent: z.ZodString;
28
+ targetSubAgent: z.ZodString;
29
+ taskDescription: z.ZodString;
30
+ context: z.ZodOptional<z.ZodAny>;
31
+ }, z.core.$strip>;
32
+ type DelegationSentData = z.infer<typeof DelegationSentDataSchema>;
33
+ /**
34
+ * Delegation returned event data
35
+ * Used when a delegated task is completed and returned
36
+ */
37
+ declare const DelegationReturnedDataSchema: z.ZodObject<{
38
+ delegationId: z.ZodString;
39
+ fromSubAgent: z.ZodString;
40
+ targetSubAgent: z.ZodString;
41
+ result: z.ZodOptional<z.ZodAny>;
42
+ }, z.core.$strip>;
43
+ type DelegationReturnedData = z.infer<typeof DelegationReturnedDataSchema>;
44
+ /**
45
+ * Data operation event details
46
+ * Used for emit operations and agent data events
47
+ */
48
+ declare const DataOperationDetailsSchema: z.ZodObject<{
49
+ timestamp: z.ZodNumber;
50
+ subAgentId: z.ZodString;
51
+ data: z.ZodAny;
52
+ }, z.core.$strip>;
53
+ type DataOperationDetails = z.infer<typeof DataOperationDetailsSchema>;
54
+ /**
55
+ * Complete data operation event
56
+ * Includes type and label for user-facing display
57
+ */
58
+ declare const DataOperationEventSchema: z.ZodObject<{
59
+ type: z.ZodString;
60
+ label: z.ZodString;
61
+ details: z.ZodObject<{
62
+ timestamp: z.ZodNumber;
63
+ subAgentId: z.ZodString;
64
+ data: z.ZodAny;
65
+ }, z.core.$strip>;
66
+ }, z.core.$strip>;
67
+ type DataOperationEvent = z.infer<typeof DataOperationEventSchema>;
68
+ /**
69
+ * Message metadata for A2A communication
70
+ * Used in message passing between agents
71
+ */
72
+ declare const A2AMessageMetadataSchema: z.ZodObject<{
73
+ fromSubAgentId: z.ZodOptional<z.ZodString>;
74
+ toSubAgentId: z.ZodOptional<z.ZodString>;
75
+ fromExternalAgentId: z.ZodOptional<z.ZodString>;
76
+ toExternalAgentId: z.ZodOptional<z.ZodString>;
77
+ taskId: z.ZodOptional<z.ZodString>;
78
+ a2aTaskId: z.ZodOptional<z.ZodString>;
79
+ }, z.core.$strip>;
80
+ type A2AMessageMetadata = z.infer<typeof A2AMessageMetadataSchema>;
81
+
10
82
  declare function isInternalAgent(agent: AgentDefinition): agent is InternalAgentDefinition;
11
83
  declare function isExternalAgent(agent: AgentDefinition): agent is ExternalAgentApiInsert;
12
- declare function validateAndTypeGraphData(data: unknown): z.infer<typeof FullGraphDefinitionSchema>;
84
+ declare function validateAndTypeGraphData(data: unknown): z.infer<typeof GraphWithinContextOfProjectSchema>;
13
85
  /**
14
86
  * Validates that all tool IDs referenced in agents exist in the tools record
15
87
  * Note: With scoped architecture, tool validation should be done at the project level
@@ -62,4 +134,4 @@ declare function isValidResourceId(id: string): boolean;
62
134
  */
63
135
  declare function generateIdFromName(name: string): string;
64
136
 
65
- export { FullGraphDefinitionSchema, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAndTypeGraphData, validateArtifactComponentReferences, validateDataComponentReferences, validateGraphStructure, validateToolReferences };
137
+ export { type A2AMessageMetadata, A2AMessageMetadataSchema, type DataOperationDetails, DataOperationDetailsSchema, type DataOperationEvent, DataOperationEventSchema, type DelegationReturnedData, DelegationReturnedDataSchema, type DelegationSentData, DelegationSentDataSchema, GraphWithinContextOfProjectSchema, type TransferData, TransferDataSchema, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAndTypeGraphData, validateArtifactComponentReferences, validateDataComponentReferences, validateGraphStructure, validateToolReferences };
@@ -1,15 +1,87 @@
1
1
  import { z } from 'zod';
2
- import { d3 as AgentDefinition, d2 as InternalAgentDefinition, cJ as ExternalAgentApiInsert, fG as FullGraphDefinitionSchema, z as FullGraphDefinition } from '../utility-s9c5CVOe.js';
3
- export { dG as AgentApiInsertSchema, dF as AgentApiSelectSchema, dH as AgentApiUpdateSchema, eR as AgentArtifactComponentApiInsertSchema, eQ as AgentArtifactComponentApiSelectSchema, eS as AgentArtifactComponentApiUpdateSchema, eO as AgentArtifactComponentInsertSchema, eN as AgentArtifactComponentSelectSchema, eP as AgentArtifactComponentUpdateSchema, eF as AgentDataComponentApiInsertSchema, eE as AgentDataComponentApiSelectSchema, eG as AgentDataComponentApiUpdateSchema, eC as AgentDataComponentInsertSchema, eB as AgentDataComponentSelectSchema, eD as AgentDataComponentUpdateSchema, dV as AgentGraphApiInsertSchema, dU as AgentGraphApiSelectSchema, dW as AgentGraphApiUpdateSchema, dS as AgentGraphInsertSchema, dR as AgentGraphSelectSchema, dT as AgentGraphUpdateSchema, dD as AgentInsertSchema, dM as AgentRelationApiInsertSchema, dL as AgentRelationApiSelectSchema, dN as AgentRelationApiUpdateSchema, dJ as AgentRelationInsertSchema, dO as AgentRelationQuerySchema, dI as AgentRelationSelectSchema, dK as AgentRelationUpdateSchema, dC as AgentSelectSchema, e as AgentStopWhen, b as AgentStopWhenSchema, fv as AgentToolRelationApiInsertSchema, fu as AgentToolRelationApiSelectSchema, fw as AgentToolRelationApiUpdateSchema, fs as AgentToolRelationInsertSchema, fr as AgentToolRelationSelectSchema, ft as AgentToolRelationUpdateSchema, dE as AgentUpdateSchema, 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, fL as ErrorResponseSchema, fM as ExistsResponseSchema, eX as ExternalAgentApiInsertSchema, eW as ExternalAgentApiSelectSchema, eY as ExternalAgentApiUpdateSchema, eU as ExternalAgentInsertSchema, dQ as ExternalAgentRelationApiInsertSchema, dP as ExternalAgentRelationInsertSchema, eT as ExternalAgentSelectSchema, eV as ExternalAgentUpdateSchema, fj as FetchConfigSchema, fk as FetchDefinitionSchema, a as FullGraphAgentInsertSchema, fU 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, fH as GraphWithinContextOfProjectSchema, fV as HeadersScopeSchema, g0 as IdParamsSchema, fB as LedgerArtifactApiInsertSchema, fA as LedgerArtifactApiSelectSchema, fC as LedgerArtifactApiUpdateSchema, fy as LedgerArtifactInsertSchema, fx as LedgerArtifactSelectSchema, fz as LedgerArtifactUpdateSchema, fJ 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, fI as PaginationSchema, fS as ProjectApiInsertSchema, fR as ProjectApiSelectSchema, fT as ProjectApiUpdateSchema, fP as ProjectInsertSchema, dy as ProjectModelSchema, fO as ProjectSelectSchema, fQ as ProjectUpdateSchema, fN as RemovedResponseSchema, dz as SandboxConfig, k as SandboxConfigSchema, fK as SingleResponseSchema, fD as StatusComponentSchema, fE as StatusUpdateSchema, c as StopWhen, S as StopWhenSchema, 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, f$ as TenantIdParamsSchema, fW as TenantParamsSchema, fZ as TenantProjectGraphIdParamsSchema, fY as TenantProjectGraphParamsSchema, f_ 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-s9c5CVOe.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';
7
7
  import '@hono/zod-openapi';
8
8
  import '@modelcontextprotocol/sdk/client/streamableHttp.js';
9
9
 
10
+ /**
11
+ * Agent transfer event data
12
+ * Used when an agent transfers control to another agent
13
+ */
14
+ declare const TransferDataSchema: z.ZodObject<{
15
+ fromSubAgent: z.ZodString;
16
+ targetSubAgent: z.ZodString;
17
+ reason: z.ZodOptional<z.ZodString>;
18
+ context: z.ZodOptional<z.ZodAny>;
19
+ }, z.core.$strip>;
20
+ type TransferData = z.infer<typeof TransferDataSchema>;
21
+ /**
22
+ * Delegation sent event data
23
+ * Used when an agent delegates a task to another agent
24
+ */
25
+ declare const DelegationSentDataSchema: z.ZodObject<{
26
+ delegationId: z.ZodString;
27
+ fromSubAgent: z.ZodString;
28
+ targetSubAgent: z.ZodString;
29
+ taskDescription: z.ZodString;
30
+ context: z.ZodOptional<z.ZodAny>;
31
+ }, z.core.$strip>;
32
+ type DelegationSentData = z.infer<typeof DelegationSentDataSchema>;
33
+ /**
34
+ * Delegation returned event data
35
+ * Used when a delegated task is completed and returned
36
+ */
37
+ declare const DelegationReturnedDataSchema: z.ZodObject<{
38
+ delegationId: z.ZodString;
39
+ fromSubAgent: z.ZodString;
40
+ targetSubAgent: z.ZodString;
41
+ result: z.ZodOptional<z.ZodAny>;
42
+ }, z.core.$strip>;
43
+ type DelegationReturnedData = z.infer<typeof DelegationReturnedDataSchema>;
44
+ /**
45
+ * Data operation event details
46
+ * Used for emit operations and agent data events
47
+ */
48
+ declare const DataOperationDetailsSchema: z.ZodObject<{
49
+ timestamp: z.ZodNumber;
50
+ subAgentId: z.ZodString;
51
+ data: z.ZodAny;
52
+ }, z.core.$strip>;
53
+ type DataOperationDetails = z.infer<typeof DataOperationDetailsSchema>;
54
+ /**
55
+ * Complete data operation event
56
+ * Includes type and label for user-facing display
57
+ */
58
+ declare const DataOperationEventSchema: z.ZodObject<{
59
+ type: z.ZodString;
60
+ label: z.ZodString;
61
+ details: z.ZodObject<{
62
+ timestamp: z.ZodNumber;
63
+ subAgentId: z.ZodString;
64
+ data: z.ZodAny;
65
+ }, z.core.$strip>;
66
+ }, z.core.$strip>;
67
+ type DataOperationEvent = z.infer<typeof DataOperationEventSchema>;
68
+ /**
69
+ * Message metadata for A2A communication
70
+ * Used in message passing between agents
71
+ */
72
+ declare const A2AMessageMetadataSchema: z.ZodObject<{
73
+ fromSubAgentId: z.ZodOptional<z.ZodString>;
74
+ toSubAgentId: z.ZodOptional<z.ZodString>;
75
+ fromExternalAgentId: z.ZodOptional<z.ZodString>;
76
+ toExternalAgentId: z.ZodOptional<z.ZodString>;
77
+ taskId: z.ZodOptional<z.ZodString>;
78
+ a2aTaskId: z.ZodOptional<z.ZodString>;
79
+ }, z.core.$strip>;
80
+ type A2AMessageMetadata = z.infer<typeof A2AMessageMetadataSchema>;
81
+
10
82
  declare function isInternalAgent(agent: AgentDefinition): agent is InternalAgentDefinition;
11
83
  declare function isExternalAgent(agent: AgentDefinition): agent is ExternalAgentApiInsert;
12
- declare function validateAndTypeGraphData(data: unknown): z.infer<typeof FullGraphDefinitionSchema>;
84
+ declare function validateAndTypeGraphData(data: unknown): z.infer<typeof GraphWithinContextOfProjectSchema>;
13
85
  /**
14
86
  * Validates that all tool IDs referenced in agents exist in the tools record
15
87
  * Note: With scoped architecture, tool validation should be done at the project level
@@ -62,4 +134,4 @@ declare function isValidResourceId(id: string): boolean;
62
134
  */
63
135
  declare function generateIdFromName(name: string): string;
64
136
 
65
- export { FullGraphDefinitionSchema, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAndTypeGraphData, validateArtifactComponentReferences, validateDataComponentReferences, validateGraphStructure, validateToolReferences };
137
+ export { type A2AMessageMetadata, A2AMessageMetadataSchema, type DataOperationDetails, DataOperationDetailsSchema, type DataOperationEvent, DataOperationEventSchema, type DelegationReturnedData, DelegationReturnedDataSchema, type DelegationSentData, DelegationSentDataSchema, GraphWithinContextOfProjectSchema, type TransferData, TransferDataSchema, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAndTypeGraphData, validateArtifactComponentReferences, validateDataComponentReferences, validateGraphStructure, validateToolReferences };
@@ -1,2 +1,2 @@
1
- export { generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAndTypeGraphData, validateArtifactComponentReferences, validateDataComponentReferences, validateGraphStructure, validateToolReferences } from '../chunk-N43VFJD3.js';
2
- export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentArtifactComponentApiInsertSchema, AgentArtifactComponentApiSelectSchema, AgentArtifactComponentApiUpdateSchema, AgentArtifactComponentInsertSchema, AgentArtifactComponentSelectSchema, AgentArtifactComponentUpdateSchema, AgentDataComponentApiInsertSchema, AgentDataComponentApiSelectSchema, AgentDataComponentApiUpdateSchema, AgentDataComponentInsertSchema, AgentDataComponentSelectSchema, AgentDataComponentUpdateSchema, AgentGraphApiInsertSchema, AgentGraphApiSelectSchema, AgentGraphApiUpdateSchema, AgentGraphInsertSchema, AgentGraphSelectSchema, AgentGraphUpdateSchema, AgentInsertSchema, AgentRelationApiInsertSchema, AgentRelationApiSelectSchema, AgentRelationApiUpdateSchema, AgentRelationInsertSchema, AgentRelationQuerySchema, AgentRelationSelectSchema, AgentRelationUpdateSchema, AgentSelectSchema, AgentStopWhenSchema, AgentToolRelationApiInsertSchema, AgentToolRelationApiSelectSchema, AgentToolRelationApiUpdateSchema, AgentToolRelationInsertSchema, AgentToolRelationSelectSchema, AgentToolRelationUpdateSchema, AgentUpdateSchema, 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, ExternalAgentRelationApiInsertSchema, ExternalAgentRelationInsertSchema, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, FetchConfigSchema, FetchDefinitionSchema, FullGraphAgentInsertSchema, FullGraphDefinitionSchema, FullProjectDefinitionSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, FunctionInsertSchema, FunctionSelectSchema, FunctionToolConfigSchema, FunctionUpdateSchema, GraphStopWhenSchema, GraphWithinContextOfProjectSchema, HeadersScopeSchema, IdParamsSchema, 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, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectGraphIdParamsSchema, TenantProjectGraphParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, resourceIdSchema, validatePropsAsJsonSchema } from '../chunk-72MXE5SX.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,127 @@
1
+ ALTER TABLE `agent_artifact_components` RENAME TO `sub_agent_artifact_components`;--> statement-breakpoint
2
+ ALTER TABLE `agent_data_components` RENAME TO `sub_agent_data_components`;--> statement-breakpoint
3
+ ALTER TABLE `agent_relations` RENAME TO `sub_agent_relations`;--> statement-breakpoint
4
+ ALTER TABLE `agent_tool_relations` RENAME TO `sub_agent_tool_relations`;--> statement-breakpoint
5
+ ALTER TABLE `agents` RENAME TO `sub_agents`;--> statement-breakpoint
6
+ ALTER TABLE `sub_agent_artifact_components` RENAME COLUMN "agent_id" TO "sub_agent_id";--> statement-breakpoint
7
+ ALTER TABLE `sub_agent_data_components` RENAME COLUMN "agent_id" TO "sub_agent_id";--> statement-breakpoint
8
+ ALTER TABLE `sub_agent_relations` RENAME COLUMN "source_agent_id" TO "source_sub_agent_id";--> statement-breakpoint
9
+ ALTER TABLE `sub_agent_relations` RENAME COLUMN "target_agent_id" TO "target_sub_agent_id";--> statement-breakpoint
10
+ ALTER TABLE `sub_agent_relations` RENAME COLUMN "external_agent_id" TO "external_sub_agent_id";--> statement-breakpoint
11
+ ALTER TABLE `sub_agent_tool_relations` RENAME COLUMN "agent_id" TO "sub_agent_id";--> statement-breakpoint
12
+ ALTER TABLE `agent_graph` RENAME COLUMN "default_agent_id" TO "default_sub_agent_id";--> statement-breakpoint
13
+ ALTER TABLE `conversations` RENAME COLUMN "active_agent_id" TO "active_sub_agent_id";--> statement-breakpoint
14
+ ALTER TABLE `messages` RENAME COLUMN "from_agent_id" TO "from_sub_agent_id";--> statement-breakpoint
15
+ ALTER TABLE `messages` RENAME COLUMN "to_agent_id" TO "to_sub_agent_id";--> statement-breakpoint
16
+ ALTER TABLE `messages` RENAME COLUMN "from_external_agent_id" TO "from_external_sub_agent_id";--> statement-breakpoint
17
+ ALTER TABLE `messages` RENAME COLUMN "to_external_agent_id" TO "to_external_sub_agent_id";--> statement-breakpoint
18
+ PRAGMA foreign_keys=OFF;--> statement-breakpoint
19
+ CREATE TABLE `__new_sub_agent_artifact_components` (
20
+ `tenant_id` text NOT NULL,
21
+ `id` text NOT NULL,
22
+ `project_id` text NOT NULL,
23
+ `graph_id` text NOT NULL,
24
+ `sub_agent_id` text NOT NULL,
25
+ `artifact_component_id` text NOT NULL,
26
+ `created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
27
+ PRIMARY KEY(`tenant_id`, `project_id`, `graph_id`, `sub_agent_id`, `id`),
28
+ 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,
29
+ FOREIGN KEY (`tenant_id`,`project_id`,`artifact_component_id`) REFERENCES `artifact_components`(`tenant_id`,`project_id`,`id`) ON UPDATE no action ON DELETE cascade
30
+ );
31
+ --> statement-breakpoint
32
+ INSERT INTO `__new_sub_agent_artifact_components`("tenant_id", "id", "project_id", "graph_id", "sub_agent_id", "artifact_component_id", "created_at") SELECT "tenant_id", "id", "project_id", "graph_id", "sub_agent_id", "artifact_component_id", "created_at" FROM `sub_agent_artifact_components`;--> statement-breakpoint
33
+ DROP TABLE `sub_agent_artifact_components`;--> statement-breakpoint
34
+ ALTER TABLE `__new_sub_agent_artifact_components` RENAME TO `sub_agent_artifact_components`;--> statement-breakpoint
35
+ PRAGMA foreign_keys=ON;--> statement-breakpoint
36
+ CREATE TABLE `__new_sub_agent_data_components` (
37
+ `tenant_id` text NOT NULL,
38
+ `id` text NOT NULL,
39
+ `project_id` text NOT NULL,
40
+ `graph_id` text NOT NULL,
41
+ `sub_agent_id` text NOT NULL,
42
+ `data_component_id` text NOT NULL,
43
+ `created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
44
+ PRIMARY KEY(`tenant_id`, `project_id`, `id`),
45
+ 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,
46
+ FOREIGN KEY (`tenant_id`,`project_id`,`data_component_id`) REFERENCES `data_components`(`tenant_id`,`project_id`,`id`) ON UPDATE no action ON DELETE cascade
47
+ );
48
+ --> statement-breakpoint
49
+ INSERT INTO `__new_sub_agent_data_components`("tenant_id", "id", "project_id", "graph_id", "sub_agent_id", "data_component_id", "created_at") SELECT "tenant_id", "id", "project_id", "graph_id", "sub_agent_id", "data_component_id", "created_at" FROM `sub_agent_data_components`;--> statement-breakpoint
50
+ DROP TABLE `sub_agent_data_components`;--> statement-breakpoint
51
+ ALTER TABLE `__new_sub_agent_data_components` RENAME TO `sub_agent_data_components`;--> statement-breakpoint
52
+ CREATE TABLE `__new_sub_agent_relations` (
53
+ `tenant_id` text NOT NULL,
54
+ `id` text NOT NULL,
55
+ `project_id` text NOT NULL,
56
+ `graph_id` text NOT NULL,
57
+ `source_sub_agent_id` text NOT NULL,
58
+ `target_sub_agent_id` text,
59
+ `external_sub_agent_id` text,
60
+ `relation_type` text,
61
+ `created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
62
+ `updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
63
+ PRIMARY KEY(`tenant_id`, `project_id`, `graph_id`, `id`),
64
+ FOREIGN KEY (`tenant_id`,`project_id`,`graph_id`) REFERENCES `agent_graph`(`tenant_id`,`project_id`,`id`) ON UPDATE no action ON DELETE cascade
65
+ );
66
+ --> statement-breakpoint
67
+ INSERT INTO `__new_sub_agent_relations`("tenant_id", "id", "project_id", "graph_id", "source_sub_agent_id", "target_sub_agent_id", "external_sub_agent_id", "relation_type", "created_at", "updated_at") SELECT "tenant_id", "id", "project_id", "graph_id", "source_sub_agent_id", "target_sub_agent_id", "external_sub_agent_id", "relation_type", "created_at", "updated_at" FROM `sub_agent_relations`;--> statement-breakpoint
68
+ DROP TABLE `sub_agent_relations`;--> statement-breakpoint
69
+ ALTER TABLE `__new_sub_agent_relations` RENAME TO `sub_agent_relations`;--> statement-breakpoint
70
+ CREATE TABLE `__new_sub_agent_tool_relations` (
71
+ `tenant_id` text NOT NULL,
72
+ `id` text NOT NULL,
73
+ `project_id` text NOT NULL,
74
+ `graph_id` text NOT NULL,
75
+ `sub_agent_id` text NOT NULL,
76
+ `tool_id` text NOT NULL,
77
+ `selected_tools` blob,
78
+ `headers` blob,
79
+ `created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
80
+ `updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
81
+ PRIMARY KEY(`tenant_id`, `project_id`, `graph_id`, `id`),
82
+ 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,
83
+ FOREIGN KEY (`tenant_id`,`project_id`,`tool_id`) REFERENCES `tools`(`tenant_id`,`project_id`,`id`) ON UPDATE no action ON DELETE cascade
84
+ );
85
+ --> statement-breakpoint
86
+ INSERT INTO `__new_sub_agent_tool_relations`("tenant_id", "id", "project_id", "graph_id", "sub_agent_id", "tool_id", "selected_tools", "headers", "created_at", "updated_at") SELECT "tenant_id", "id", "project_id", "graph_id", "sub_agent_id", "tool_id", "selected_tools", "headers", "created_at", "updated_at" FROM `sub_agent_tool_relations`;--> statement-breakpoint
87
+ DROP TABLE `sub_agent_tool_relations`;--> statement-breakpoint
88
+ ALTER TABLE `__new_sub_agent_tool_relations` RENAME TO `sub_agent_tool_relations`;--> statement-breakpoint
89
+ CREATE TABLE `__new_sub_agents` (
90
+ `tenant_id` text NOT NULL,
91
+ `id` text NOT NULL,
92
+ `project_id` text NOT NULL,
93
+ `graph_id` text NOT NULL,
94
+ `name` text NOT NULL,
95
+ `description` text NOT NULL,
96
+ `prompt` text NOT NULL,
97
+ `conversation_history_config` text,
98
+ `models` text,
99
+ `stop_when` text,
100
+ `created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
101
+ `updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
102
+ PRIMARY KEY(`tenant_id`, `project_id`, `graph_id`, `id`),
103
+ FOREIGN KEY (`tenant_id`,`project_id`,`graph_id`) REFERENCES `agent_graph`(`tenant_id`,`project_id`,`id`) ON UPDATE no action ON DELETE cascade
104
+ );
105
+ --> statement-breakpoint
106
+ INSERT INTO `__new_sub_agents`("tenant_id", "id", "project_id", "graph_id", "name", "description", "prompt", "conversation_history_config", "models", "stop_when", "created_at", "updated_at") SELECT "tenant_id", "id", "project_id", "graph_id", "name", "description", "prompt", "conversation_history_config", "models", "stop_when", "created_at", "updated_at" FROM `sub_agents`;--> statement-breakpoint
107
+ DROP TABLE `sub_agents`;--> statement-breakpoint
108
+ ALTER TABLE `__new_sub_agents` RENAME TO `sub_agents`;--> statement-breakpoint
109
+ ALTER TABLE `messages` DROP COLUMN `agent_id`;--> statement-breakpoint
110
+ CREATE TABLE `__new_tasks` (
111
+ `tenant_id` text NOT NULL,
112
+ `id` text NOT NULL,
113
+ `project_id` text NOT NULL,
114
+ `graph_id` text NOT NULL,
115
+ `sub_agent_id` text NOT NULL,
116
+ `context_id` text NOT NULL,
117
+ `status` text NOT NULL,
118
+ `metadata` blob,
119
+ `created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
120
+ `updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
121
+ PRIMARY KEY(`tenant_id`, `project_id`, `id`),
122
+ 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
123
+ );
124
+ --> statement-breakpoint
125
+ INSERT INTO `__new_tasks`("tenant_id", "id", "project_id", "graph_id", "sub_agent_id", "context_id", "status", "metadata", "created_at", "updated_at") SELECT "tenant_id", "id", "project_id", "graph_id", "agent_id", "context_id", "status", "metadata", "created_at", "updated_at" FROM `tasks`;--> statement-breakpoint
126
+ DROP TABLE `tasks`;--> statement-breakpoint
127
+ ALTER TABLE `__new_tasks` RENAME TO `tasks`;
@@ -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;