@inkeep/agents-core 0.22.9 → 0.22.12

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.
@@ -1,4 +1,4 @@
1
- import { subAgents, subAgentRelations, agents, tasks, taskRelations, tools, conversations, messages, contextCache, dataComponents, subAgentDataComponents, artifactComponents, subAgentArtifactComponents, externalAgents, apiKeys, credentialReferences, functionTools, functions, contextConfigs, subAgentToolRelations, ledgerArtifacts, projects } from './chunk-PR3DDXVU.js';
1
+ import { subAgents, subAgentRelations, agents, tasks, taskRelations, tools, conversations, messages, contextCache, dataComponents, subAgentDataComponents, artifactComponents, subAgentArtifactComponents, externalAgents, apiKeys, credentialReferences, functionTools, functions, contextConfigs, subAgentToolRelations, ledgerArtifacts, projects } from './chunk-5B6IOJZY.js';
2
2
  import { VALID_RELATION_TYPES, MCPTransportType, TOOL_STATUS_VALUES, CredentialStoreType, MCPServerType } from './chunk-YFHT5M2R.js';
3
3
  import { z } from '@hono/zod-openapi';
4
4
  import { createSelectSchema, createInsertSchema } from 'drizzle-zod';
@@ -266,6 +266,7 @@ var dataComponents = sqliteTable(
266
266
  ...projectScoped,
267
267
  ...uiProperties,
268
268
  props: blob("props", { mode: "json" }).$type(),
269
+ preview: blob("preview", { mode: "json" }).$type(),
269
270
  ...timestamps
270
271
  },
271
272
  (table) => [
@@ -1,44 +1,6 @@
1
- import { AgentWithinContextOfProjectSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-F3AFTJB7.js';
1
+ import { AgentWithinContextOfProjectSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-4SE2FOJY.js';
2
2
  import { z } from 'zod';
3
3
 
4
- var TransferDataSchema = z.object({
5
- fromSubAgent: z.string().describe("ID of the sub-agent transferring control"),
6
- targetSubAgent: z.string().describe("ID of the sub-agent receiving control"),
7
- reason: z.string().optional().describe("Reason for the transfer"),
8
- context: z.any().optional().describe("Additional context data")
9
- });
10
- var DelegationSentDataSchema = z.object({
11
- delegationId: z.string().describe("Unique identifier for this delegation"),
12
- fromSubAgent: z.string().describe("ID of the delegating sub-agent"),
13
- targetSubAgent: z.string().describe("ID of the sub-agent receiving the delegation"),
14
- taskDescription: z.string().describe("Description of the delegated task"),
15
- context: z.any().optional().describe("Additional context data")
16
- });
17
- var DelegationReturnedDataSchema = z.object({
18
- delegationId: z.string().describe("Unique identifier matching the original delegation"),
19
- fromSubAgent: z.string().describe("ID of the sub-agent that completed the task"),
20
- targetSubAgent: z.string().describe("ID of the sub-agent receiving the result"),
21
- result: z.any().optional().describe("Result data from the delegated task")
22
- });
23
- var DataOperationDetailsSchema = z.object({
24
- timestamp: z.number().describe("Unix timestamp in milliseconds"),
25
- subAgentId: z.string().describe("ID of the sub-agent that generated this data"),
26
- data: z.any().describe("The actual data payload")
27
- });
28
- var DataOperationEventSchema = z.object({
29
- type: z.string().describe("Event type identifier"),
30
- label: z.string().describe("Human-readable label for the event"),
31
- details: DataOperationDetailsSchema
32
- });
33
- var A2AMessageMetadataSchema = z.object({
34
- fromSubAgentId: z.string().optional().describe("ID of the sending sub-agent"),
35
- toSubAgentId: z.string().optional().describe("ID of the receiving sub-agent"),
36
- fromExternalAgentId: z.string().optional().describe("ID of the sending external agent"),
37
- toExternalAgentId: z.string().optional().describe("ID of the receiving external agent"),
38
- taskId: z.string().optional().describe("Associated task ID"),
39
- a2aTaskId: z.string().optional().describe("A2A-specific task ID")
40
- });
41
-
42
4
  // src/validation/agentFull.ts
43
5
  function isInternalAgent(agent) {
44
6
  return "prompt" in agent;
@@ -151,6 +113,43 @@ function validateAgentStructure(agentData, projectResources) {
151
113
  }
152
114
  validateAgentRelationships(agentData);
153
115
  }
116
+ var TransferDataSchema = z.object({
117
+ fromSubAgent: z.string().describe("ID of the sub-agent transferring control"),
118
+ targetSubAgent: z.string().describe("ID of the sub-agent receiving control"),
119
+ reason: z.string().optional().describe("Reason for the transfer"),
120
+ context: z.any().optional().describe("Additional context data")
121
+ });
122
+ var DelegationSentDataSchema = z.object({
123
+ delegationId: z.string().describe("Unique identifier for this delegation"),
124
+ fromSubAgent: z.string().describe("ID of the delegating sub-agent"),
125
+ targetSubAgent: z.string().describe("ID of the sub-agent receiving the delegation"),
126
+ taskDescription: z.string().describe("Description of the delegated task"),
127
+ context: z.any().optional().describe("Additional context data")
128
+ });
129
+ var DelegationReturnedDataSchema = z.object({
130
+ delegationId: z.string().describe("Unique identifier matching the original delegation"),
131
+ fromSubAgent: z.string().describe("ID of the sub-agent that completed the task"),
132
+ targetSubAgent: z.string().describe("ID of the sub-agent receiving the result"),
133
+ result: z.any().optional().describe("Result data from the delegated task")
134
+ });
135
+ var DataOperationDetailsSchema = z.object({
136
+ timestamp: z.number().describe("Unix timestamp in milliseconds"),
137
+ subAgentId: z.string().describe("ID of the sub-agent that generated this data"),
138
+ data: z.any().describe("The actual data payload")
139
+ });
140
+ var DataOperationEventSchema = z.object({
141
+ type: z.string().describe("Event type identifier"),
142
+ label: z.string().describe("Human-readable label for the event"),
143
+ details: DataOperationDetailsSchema
144
+ });
145
+ var A2AMessageMetadataSchema = z.object({
146
+ fromSubAgentId: z.string().optional().describe("ID of the sending sub-agent"),
147
+ toSubAgentId: z.string().optional().describe("ID of the receiving sub-agent"),
148
+ fromExternalAgentId: z.string().optional().describe("ID of the sending external agent"),
149
+ toExternalAgentId: z.string().optional().describe("ID of the receiving external agent"),
150
+ taskId: z.string().optional().describe("Associated task ID"),
151
+ a2aTaskId: z.string().optional().describe("A2A-specific task ID")
152
+ });
154
153
 
155
154
  // src/validation/id-validation.ts
156
155
  function isValidResourceId(id) {
@@ -170,4 +169,90 @@ function generateIdFromName(name) {
170
169
  return truncatedId;
171
170
  }
172
171
 
173
- export { A2AMessageMetadataSchema, DataOperationDetailsSchema, DataOperationEventSchema, DelegationReturnedDataSchema, DelegationSentDataSchema, TransferDataSchema, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validateToolReferences };
172
+ // src/validation/preview-validation.ts
173
+ var MAX_CODE_SIZE = 5e4;
174
+ var MAX_DATA_SIZE = 1e4;
175
+ var DANGEROUS_PATTERNS = [
176
+ /\beval\s*\(/i,
177
+ /\bFunction\s*\(/i,
178
+ /dangerouslySetInnerHTML/i,
179
+ /<script\b/i,
180
+ /\bon\w+\s*=/i,
181
+ // inline event handlers like onclick=
182
+ /document\.write/i,
183
+ /window\.location/i,
184
+ /\.innerHTML\s*=/i
185
+ ];
186
+ var ALLOWED_IMPORTS = ["lucide-react"];
187
+ function validatePreview(preview) {
188
+ const errors = [];
189
+ if (!preview.code || typeof preview.code !== "string") {
190
+ return {
191
+ isValid: false,
192
+ errors: [{ field: "preview.code", message: "Code must be a non-empty string" }]
193
+ };
194
+ }
195
+ if (!preview.data || typeof preview.data !== "object") {
196
+ return {
197
+ isValid: false,
198
+ errors: [{ field: "preview.data", message: "Data must be an object" }]
199
+ };
200
+ }
201
+ if (preview.code.length > MAX_CODE_SIZE) {
202
+ errors.push({
203
+ field: "preview.code",
204
+ message: `Code size exceeds maximum allowed (${MAX_CODE_SIZE} characters)`
205
+ });
206
+ }
207
+ const dataString = JSON.stringify(preview.data);
208
+ if (dataString.length > MAX_DATA_SIZE) {
209
+ errors.push({
210
+ field: "preview.data",
211
+ message: `Data size exceeds maximum allowed (${MAX_DATA_SIZE} characters)`
212
+ });
213
+ }
214
+ for (const pattern of DANGEROUS_PATTERNS) {
215
+ if (pattern.test(preview.code)) {
216
+ errors.push({
217
+ field: "preview.code",
218
+ message: `Code contains potentially dangerous pattern: ${pattern.source}`
219
+ });
220
+ }
221
+ }
222
+ const importMatches = preview.code.matchAll(/import\s+.*?\s+from\s+['"]([^'"]+)['"]/g);
223
+ for (const match of importMatches) {
224
+ const importPath = match[1];
225
+ if (!ALLOWED_IMPORTS.includes(importPath)) {
226
+ errors.push({
227
+ field: "preview.code",
228
+ message: `Import from "${importPath}" is not allowed. Only imports from ${ALLOWED_IMPORTS.join(", ")} are permitted`
229
+ });
230
+ }
231
+ }
232
+ const hasFunctionDeclaration = /function\s+\w+\s*\(/.test(preview.code);
233
+ if (!hasFunctionDeclaration) {
234
+ errors.push({
235
+ field: "preview.code",
236
+ message: "Code must contain a function declaration"
237
+ });
238
+ }
239
+ const hasReturn = /return\s*\(?\s*</.test(preview.code);
240
+ if (!hasReturn) {
241
+ errors.push({
242
+ field: "preview.code",
243
+ message: "Component function must have a return statement with JSX"
244
+ });
245
+ }
246
+ if (/\bexport\s+(default\s+)?/i.test(preview.code)) {
247
+ errors.push({
248
+ field: "preview.code",
249
+ message: "Code should not contain export statements"
250
+ });
251
+ }
252
+ return {
253
+ isValid: errors.length === 0,
254
+ errors
255
+ };
256
+ }
257
+
258
+ export { A2AMessageMetadataSchema, DataOperationDetailsSchema, DataOperationEventSchema, DelegationReturnedDataSchema, DelegationSentDataSchema, TransferDataSchema, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validatePreview, validateToolReferences };
@@ -243,6 +243,7 @@ var dataComponents = sqliteCore.sqliteTable(
243
243
  ...projectScoped,
244
244
  ...uiProperties,
245
245
  props: sqliteCore.blob("props", { mode: "json" }).$type(),
246
+ preview: sqliteCore.blob("preview", { mode: "json" }).$type(),
246
247
  ...timestamps
247
248
  },
248
249
  (table) => [
@@ -1,7 +1,7 @@
1
1
  export { h as ACTIVITY_NAMES, f as ACTIVITY_STATUS, e as ACTIVITY_TYPES, g as AGENT_IDS, o as AGGREGATE_OPERATORS, A as AI_OPERATIONS, i as AI_TOOL_TYPES, n as DATA_SOURCES, j as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, O as OPERATORS, l as ORDER_DIRECTIONS, P as PANEL_TYPES, p as QUERY_DEFAULTS, k as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, m as QUERY_TYPES, R as REDUCE_OPERATIONS, d as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE } from './signoz-queries-Bqpkx5sK.cjs';
2
2
  import { z } from 'zod';
3
- import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-DmLVF565.cjs';
4
- export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-DmLVF565.cjs';
3
+ import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-usOTNbMG.cjs';
4
+ export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-usOTNbMG.cjs';
5
5
  export { v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.cjs';
6
6
  import 'drizzle-zod';
7
7
  import 'drizzle-orm/sqlite-core';
@@ -1,7 +1,7 @@
1
1
  export { h as ACTIVITY_NAMES, f as ACTIVITY_STATUS, e as ACTIVITY_TYPES, g as AGENT_IDS, o as AGGREGATE_OPERATORS, A as AI_OPERATIONS, i as AI_TOOL_TYPES, n as DATA_SOURCES, j as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, O as OPERATORS, l as ORDER_DIRECTIONS, P as PANEL_TYPES, p as QUERY_DEFAULTS, k as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, m as QUERY_TYPES, R as REDUCE_OPERATIONS, d as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE } from './signoz-queries-Bqpkx5sK.js';
2
2
  import { z } from 'zod';
3
- import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-DmLVF565.js';
4
- export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-DmLVF565.js';
3
+ import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-usOTNbMG.js';
4
+ export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-usOTNbMG.js';
5
5
  export { v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.js';
6
6
  import 'drizzle-zod';
7
7
  import 'drizzle-orm/sqlite-core';
@@ -1,6 +1,6 @@
1
1
  export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, DATA_SOURCES, DATA_TYPES, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, FIELD_TYPES, OPERATORS, ORDER_DIRECTIONS, PANEL_TYPES, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, SPAN_KEYS, SPAN_NAMES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE } from './chunk-QFIITHNT.js';
2
- import { ModelSettingsSchema, FullAgentAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-F3AFTJB7.js';
3
- export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-F3AFTJB7.js';
2
+ import { ModelSettingsSchema, FullAgentAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-4SE2FOJY.js';
3
+ export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-4SE2FOJY.js';
4
4
  import { CredentialStoreType } from './chunk-YFHT5M2R.js';
5
5
  export { CredentialStoreType, MCPTransportType } from './chunk-YFHT5M2R.js';
6
6
  import { z } from 'zod';
@@ -218,6 +218,7 @@ var dataComponents = sqliteCore.sqliteTable(
218
218
  ...projectScoped,
219
219
  ...uiProperties,
220
220
  props: sqliteCore.blob("props", { mode: "json" }).$type(),
221
+ preview: sqliteCore.blob("preview", { mode: "json" }).$type(),
221
222
  ...timestamps
222
223
  },
223
224
  (table) => [
@@ -1,7 +1,7 @@
1
1
  import 'drizzle-orm';
2
2
  import 'drizzle-orm/sqlite-core';
3
- import '../utility-DmLVF565.cjs';
4
- export { E as agentRelations, H as agentToolRelationsRelations, a as agents, w as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, b as contextCache, C as contextCacheRelations, c as contextConfigs, B as contextConfigsRelations, r as conversations, K as conversationsRelations, x as credentialReferences, I as credentialReferencesRelations, h as dataComponents, O as dataComponentsRelations, f as externalAgents, F as externalAgentsRelations, m as functionTools, T as functionToolsRelations, n as functions, R as functionsRelations, v as ledgerArtifacts, Q as ledgerArtifactsRelations, u as messages, L as messagesRelations, p as projects, z as projectsRelations, k as subAgentArtifactComponents, N as subAgentArtifactComponentsRelations, i as subAgentDataComponents, P as subAgentDataComponentsRelations, q as subAgentFunctionToolRelations, U as subAgentFunctionToolRelationsRelations, e as subAgentRelations, S as subAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, D as subAgentsRelations, g as taskRelations, A as taskRelationsRelations, t as tasks, y as tasksRelations, l as tools, J as toolsRelations } from '../schema-lnJ7dKE3.cjs';
3
+ import '../utility-usOTNbMG.cjs';
4
+ export { E as agentRelations, H as agentToolRelationsRelations, a as agents, w as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, b as contextCache, C as contextCacheRelations, c as contextConfigs, B as contextConfigsRelations, r as conversations, K as conversationsRelations, x as credentialReferences, I as credentialReferencesRelations, h as dataComponents, O as dataComponentsRelations, f as externalAgents, F as externalAgentsRelations, m as functionTools, T as functionToolsRelations, n as functions, R as functionsRelations, v as ledgerArtifacts, Q as ledgerArtifactsRelations, u as messages, L as messagesRelations, p as projects, z as projectsRelations, k as subAgentArtifactComponents, N as subAgentArtifactComponentsRelations, i as subAgentDataComponents, P as subAgentDataComponentsRelations, q as subAgentFunctionToolRelations, U as subAgentFunctionToolRelationsRelations, e as subAgentRelations, S as subAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, D as subAgentsRelations, g as taskRelations, A as taskRelationsRelations, t as tasks, y as tasksRelations, l as tools, J as toolsRelations } from '../schema-HuJ7Qh0C.cjs';
5
5
  import 'zod';
6
6
  import 'drizzle-zod';
7
7
  import '@hono/zod-openapi';
@@ -1,7 +1,7 @@
1
1
  import 'drizzle-orm';
2
2
  import 'drizzle-orm/sqlite-core';
3
- import '../utility-DmLVF565.js';
4
- export { E as agentRelations, H as agentToolRelationsRelations, a as agents, w as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, b as contextCache, C as contextCacheRelations, c as contextConfigs, B as contextConfigsRelations, r as conversations, K as conversationsRelations, x as credentialReferences, I as credentialReferencesRelations, h as dataComponents, O as dataComponentsRelations, f as externalAgents, F as externalAgentsRelations, m as functionTools, T as functionToolsRelations, n as functions, R as functionsRelations, v as ledgerArtifacts, Q as ledgerArtifactsRelations, u as messages, L as messagesRelations, p as projects, z as projectsRelations, k as subAgentArtifactComponents, N as subAgentArtifactComponentsRelations, i as subAgentDataComponents, P as subAgentDataComponentsRelations, q as subAgentFunctionToolRelations, U as subAgentFunctionToolRelationsRelations, e as subAgentRelations, S as subAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, D as subAgentsRelations, g as taskRelations, A as taskRelationsRelations, t as tasks, y as tasksRelations, l as tools, J as toolsRelations } from '../schema-9o975__r.js';
3
+ import '../utility-usOTNbMG.js';
4
+ export { E as agentRelations, H as agentToolRelationsRelations, a as agents, w as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, b as contextCache, C as contextCacheRelations, c as contextConfigs, B as contextConfigsRelations, r as conversations, K as conversationsRelations, x as credentialReferences, I as credentialReferencesRelations, h as dataComponents, O as dataComponentsRelations, f as externalAgents, F as externalAgentsRelations, m as functionTools, T as functionToolsRelations, n as functions, R as functionsRelations, v as ledgerArtifacts, Q as ledgerArtifactsRelations, u as messages, L as messagesRelations, p as projects, z as projectsRelations, k as subAgentArtifactComponents, N as subAgentArtifactComponentsRelations, i as subAgentDataComponents, P as subAgentDataComponentsRelations, q as subAgentFunctionToolRelations, U as subAgentFunctionToolRelationsRelations, e as subAgentRelations, S as subAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, D as subAgentsRelations, g as taskRelations, A as taskRelationsRelations, t as tasks, y as tasksRelations, l as tools, J as toolsRelations } from '../schema-Bo7m08k2.js';
5
5
  import 'zod';
6
6
  import 'drizzle-zod';
7
7
  import '@hono/zod-openapi';
package/dist/db/schema.js CHANGED
@@ -1 +1 @@
1
- export { agentRelations, agentToolRelationsRelations, agents, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, ledgerArtifacts, ledgerArtifactsRelations, messages, messagesRelations, projects, projectsRelations, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from '../chunk-PR3DDXVU.js';
1
+ export { agentRelations, agentToolRelationsRelations, agents, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, ledgerArtifacts, ledgerArtifactsRelations, messages, messagesRelations, projects, projectsRelations, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from '../chunk-5B6IOJZY.js';
package/dist/index.cjs CHANGED
@@ -213694,6 +213694,7 @@ var dataComponents = sqliteCore.sqliteTable(
213694
213694
  ...projectScoped,
213695
213695
  ...uiProperties,
213696
213696
  props: sqliteCore.blob("props", { mode: "json" }).$type(),
213697
+ preview: sqliteCore.blob("preview", { mode: "json" }).$type(),
213697
213698
  ...timestamps
213698
213699
  },
213699
213700
  (table) => [
@@ -219649,6 +219650,94 @@ var setActiveAgentForThread = (db) => async ({
219649
219650
  subAgentId
219650
219651
  });
219651
219652
  };
219653
+
219654
+ // src/validation/preview-validation.ts
219655
+ var MAX_CODE_SIZE = 5e4;
219656
+ var MAX_DATA_SIZE = 1e4;
219657
+ var DANGEROUS_PATTERNS = [
219658
+ /\beval\s*\(/i,
219659
+ /\bFunction\s*\(/i,
219660
+ /dangerouslySetInnerHTML/i,
219661
+ /<script\b/i,
219662
+ /\bon\w+\s*=/i,
219663
+ // inline event handlers like onclick=
219664
+ /document\.write/i,
219665
+ /window\.location/i,
219666
+ /\.innerHTML\s*=/i
219667
+ ];
219668
+ var ALLOWED_IMPORTS = ["lucide-react"];
219669
+ function validatePreview(preview2) {
219670
+ const errors = [];
219671
+ if (!preview2.code || typeof preview2.code !== "string") {
219672
+ return {
219673
+ isValid: false,
219674
+ errors: [{ field: "preview.code", message: "Code must be a non-empty string" }]
219675
+ };
219676
+ }
219677
+ if (!preview2.data || typeof preview2.data !== "object") {
219678
+ return {
219679
+ isValid: false,
219680
+ errors: [{ field: "preview.data", message: "Data must be an object" }]
219681
+ };
219682
+ }
219683
+ if (preview2.code.length > MAX_CODE_SIZE) {
219684
+ errors.push({
219685
+ field: "preview.code",
219686
+ message: `Code size exceeds maximum allowed (${MAX_CODE_SIZE} characters)`
219687
+ });
219688
+ }
219689
+ const dataString = JSON.stringify(preview2.data);
219690
+ if (dataString.length > MAX_DATA_SIZE) {
219691
+ errors.push({
219692
+ field: "preview.data",
219693
+ message: `Data size exceeds maximum allowed (${MAX_DATA_SIZE} characters)`
219694
+ });
219695
+ }
219696
+ for (const pattern of DANGEROUS_PATTERNS) {
219697
+ if (pattern.test(preview2.code)) {
219698
+ errors.push({
219699
+ field: "preview.code",
219700
+ message: `Code contains potentially dangerous pattern: ${pattern.source}`
219701
+ });
219702
+ }
219703
+ }
219704
+ const importMatches = preview2.code.matchAll(/import\s+.*?\s+from\s+['"]([^'"]+)['"]/g);
219705
+ for (const match2 of importMatches) {
219706
+ const importPath = match2[1];
219707
+ if (!ALLOWED_IMPORTS.includes(importPath)) {
219708
+ errors.push({
219709
+ field: "preview.code",
219710
+ message: `Import from "${importPath}" is not allowed. Only imports from ${ALLOWED_IMPORTS.join(", ")} are permitted`
219711
+ });
219712
+ }
219713
+ }
219714
+ const hasFunctionDeclaration = /function\s+\w+\s*\(/.test(preview2.code);
219715
+ if (!hasFunctionDeclaration) {
219716
+ errors.push({
219717
+ field: "preview.code",
219718
+ message: "Code must contain a function declaration"
219719
+ });
219720
+ }
219721
+ const hasReturn = /return\s*\(?\s*</.test(preview2.code);
219722
+ if (!hasReturn) {
219723
+ errors.push({
219724
+ field: "preview.code",
219725
+ message: "Component function must have a return statement with JSX"
219726
+ });
219727
+ }
219728
+ if (/\bexport\s+(default\s+)?/i.test(preview2.code)) {
219729
+ errors.push({
219730
+ field: "preview.code",
219731
+ message: "Code should not contain export statements"
219732
+ });
219733
+ }
219734
+ return {
219735
+ isValid: errors.length === 0,
219736
+ errors
219737
+ };
219738
+ }
219739
+
219740
+ // src/data-access/dataComponents.ts
219652
219741
  var getDataComponent = (db) => async (params) => {
219653
219742
  const result = await db.query.dataComponents.findFirst({
219654
219743
  where: drizzleOrm.and(
@@ -219700,6 +219789,13 @@ var createDataComponent = (db) => async (params) => {
219700
219789
  throw new Error(`Invalid props schema: ${errorMessages}`);
219701
219790
  }
219702
219791
  }
219792
+ if (params.preview !== void 0 && params.preview !== null) {
219793
+ const previewValidation = validatePreview(params.preview);
219794
+ if (!previewValidation.isValid) {
219795
+ const errorMessages = previewValidation.errors.map((e) => `${e.field}: ${e.message}`).join(", ");
219796
+ throw new Error(`Invalid preview: ${errorMessages}`);
219797
+ }
219798
+ }
219703
219799
  const dataComponent = await db.insert(dataComponents).values(params).returning();
219704
219800
  return dataComponent[0];
219705
219801
  };
@@ -219711,6 +219807,13 @@ var updateDataComponent = (db) => async (params) => {
219711
219807
  throw new Error(`Invalid props schema: ${errorMessages}`);
219712
219808
  }
219713
219809
  }
219810
+ if (params.data.preview !== void 0 && params.data.preview !== null) {
219811
+ const previewValidation = validatePreview(params.data.preview);
219812
+ if (!previewValidation.isValid) {
219813
+ const errorMessages = previewValidation.errors.map((e) => `${e.field}: ${e.message}`).join(", ");
219814
+ throw new Error(`Invalid preview: ${errorMessages}`);
219815
+ }
219816
+ }
219714
219817
  const now = (/* @__PURE__ */ new Date()).toISOString();
219715
219818
  await db.update(dataComponents).set({
219716
219819
  ...params.data,
@@ -219746,7 +219849,8 @@ var getDataComponentsForAgent = (db) => async (params) => {
219746
219849
  description: dataComponents.description,
219747
219850
  props: dataComponents.props,
219748
219851
  createdAt: dataComponents.createdAt,
219749
- updatedAt: dataComponents.updatedAt
219852
+ updatedAt: dataComponents.updatedAt,
219853
+ preview: dataComponents.preview
219750
219854
  }).from(dataComponents).innerJoin(
219751
219855
  subAgentDataComponents,
219752
219856
  drizzleOrm.eq(dataComponents.id, subAgentDataComponents.dataComponentId)
@@ -225683,6 +225787,7 @@ exports.validateExternalAgent = validateExternalAgent;
225683
225787
  exports.validateHeaders = validateHeaders;
225684
225788
  exports.validateHttpRequestHeaders = validateHttpRequestHeaders;
225685
225789
  exports.validateInternalSubAgent = validateInternalSubAgent;
225790
+ exports.validatePreview = validatePreview;
225686
225791
  exports.validateProjectExists = validateProjectExists;
225687
225792
  exports.validatePropsAsJsonSchema = validatePropsAsJsonSchema;
225688
225793
  exports.validateToolReferences = validateToolReferences;
package/dist/index.d.cts CHANGED
@@ -1,13 +1,13 @@
1
1
  export { ANTHROPIC_MODELS, AnthropicModel, GOOGLE_MODELS, GoogleModel, ModelName, OPENAI_MODELS, OpenAIModel } from './constants/models.cjs';
2
2
  export { h as ACTIVITY_NAMES, f as ACTIVITY_STATUS, e as ACTIVITY_TYPES, g as AGENT_IDS, o as AGGREGATE_OPERATORS, A as AI_OPERATIONS, i as AI_TOOL_TYPES, n as DATA_SOURCES, j as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, O as OPERATORS, l as ORDER_DIRECTIONS, P as PANEL_TYPES, p as QUERY_DEFAULTS, k as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, m as QUERY_TYPES, R as REDUCE_OPERATIONS, d as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE } from './signoz-queries-Bqpkx5sK.cjs';
3
3
  import { z } from 'zod';
4
- import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as AgentScopeConfig, C as ConversationHistoryConfig, v as ProjectScopeConfig, w as PaginationConfig, x as AgentInsert, y as AgentUpdate, z as FullAgentDefinition, B as AgentSelect, D as ApiKeySelect, E as ApiKeyInsert, G as ApiKeyUpdate, H as CreateApiKeyParams, I as ApiKeyCreateResult, J as ArtifactComponentSelect, K as ArtifactComponentInsert, L as ArtifactComponentUpdate, N as SubAgentScopeConfig, O as ContextCacheSelect, Q as ContextCacheInsert, R as ContextConfigInsert, U as ContextConfigUpdate, V as ConversationSelect, W as ConversationInsert, o as ConversationMetadata, X as ConversationUpdate, Y as CredentialReferenceSelect, Z as ToolSelect, _ as CredentialReferenceInsert, $ as CredentialReferenceUpdate, a0 as DataComponentSelect, a1 as DataComponentInsert, a2 as DataComponentUpdate, a3 as ExternalAgentInsert, a4 as ExternalAgentSelect, a5 as ExternalAgentUpdate, a6 as FunctionApiInsert, a7 as FunctionToolApiInsert, a8 as FunctionToolApiUpdate, a9 as Artifact, aa as LedgerArtifactSelect, q as MessageMetadata, p as MessageContent, ab as MessageVisibility, ac as MessageInsert, ad as MessageUpdate, ae as FullProjectDefinition, af as ProjectInfo, ag as ProjectSelect, ah as PaginationResult, ai as ProjectResourceCounts, aj as ProjectInsert, ak as ProjectUpdate, al as SubAgentRelationInsert, am as ExternalSubAgentRelationInsert, an as SubAgentRelationUpdate, ao as SubAgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, ap as SubAgentInsert, aq as SubAgentUpdate, ar as SubAgentSelect, as as TaskInsert, T as TaskMetadataConfig, at as TaskSelect, au as McpTool, av as ToolInsert, aw as ToolUpdate, h as CredentialStoreType, ax as ExecutionContext } from './utility-DmLVF565.cjs';
5
- export { b9 as A2AError, bF as A2ARequest, bG as A2AResponse, aK as APIKeySecurityScheme, bT as AgentApiInsert, dW as AgentApiInsertSchema, bS as AgentApiSelect, dV as AgentApiSelectSchema, bU as AgentApiUpdate, dX as AgentApiUpdateSchema, aG as AgentCapabilities, aU as AgentCard, dk as AgentConversationHistoryConfig, dT as AgentInsertSchema, gh as AgentListResponse, aH as AgentProvider, g1 as AgentResponse, dS as AgentSelectSchema, aI as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, dU as AgentUpdateSchema, fN as AgentWithinContextOfProjectSchema, e_ as AllAgentSchema, cN as AllAgentSelect, cR as ApiKeyApiCreationResponse, f3 as ApiKeyApiCreationResponseSchema, cP as ApiKeyApiInsert, f4 as ApiKeyApiInsertSchema, cO as ApiKeyApiSelect, f2 as ApiKeyApiSelectSchema, cQ as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f0 as ApiKeyInsertSchema, gl as ApiKeyListResponse, g5 as ApiKeyResponse, e$ as ApiKeySelectSchema, f1 as ApiKeyUpdateSchema, cC as ArtifactComponentApiInsert, eM as ArtifactComponentApiInsertSchema, cB as ArtifactComponentApiSelect, eL as ArtifactComponentApiSelectSchema, cD as ArtifactComponentApiUpdate, eN as ArtifactComponentApiUpdateSchema, eJ as ArtifactComponentInsertSchema, gq as ArtifactComponentListResponse, ga as ArtifactComponentResponse, eI as ArtifactComponentSelectSchema, eK as ArtifactComponentUpdateSchema, aN as AuthorizationCodeOAuthFlow, d3 as CanUseItem, fM as CanUseItemSchema, bp as CancelTaskRequest, bA as CancelTaskResponse, bz as CancelTaskSuccessResponse, aO as ClientCredentialsOAuthFlow, b7 as ContentTypeNotSupportedError, cq as ContextCacheApiInsert, et as ContextCacheApiInsertSchema, cp as ContextCacheApiSelect, es as ContextCacheApiSelectSchema, cr as ContextCacheApiUpdate, eu as ContextCacheApiUpdateSchema, dl as ContextCacheEntry, eq as ContextCacheInsertSchema, ep as ContextCacheSelectSchema, co as ContextCacheUpdate, er as ContextCacheUpdateSchema, ck as ContextConfigApiInsert, fw as ContextConfigApiInsertSchema, cj as ContextConfigApiSelect, fv as ContextConfigApiSelectSchema, cl as ContextConfigApiUpdate, fx as ContextConfigApiUpdateSchema, ft as ContextConfigInsertSchema, gk as ContextConfigListResponse, g4 as ContextConfigResponse, fs as ContextConfigSelectSchema, fu as ContextConfigUpdateSchema, cd as ConversationApiInsert, eh as ConversationApiInsertSchema, cc as ConversationApiSelect, eg as ConversationApiSelectSchema, ce as ConversationApiUpdate, ei as ConversationApiUpdateSchema, ee as ConversationInsertSchema, gt as ConversationListResponse, gd as ConversationResponse, dj as ConversationScopeOptions, ed as ConversationSelectSchema, ef as ConversationUpdateSchema, f9 as CredentialReferenceApiInsertSchema, cS as CredentialReferenceApiSelect, f8 as CredentialReferenceApiSelectSchema, cT as CredentialReferenceApiUpdate, fa as CredentialReferenceApiUpdateSchema, f6 as CredentialReferenceInsertSchema, gm as CredentialReferenceListResponse, g6 as CredentialReferenceResponse, f5 as CredentialReferenceSelectSchema, f7 as CredentialReferenceUpdateSchema, ct as DataComponentApiInsert, eA as DataComponentApiInsertSchema, cs as DataComponentApiSelect, ez as DataComponentApiSelectSchema, cu as DataComponentApiUpdate, eB as DataComponentApiUpdateSchema, ex as DataComponentBaseSchema, ew as DataComponentInsertSchema, gp as DataComponentListResponse, g9 as DataComponentResponse, ev as DataComponentSelectSchema, ey as DataComponentUpdateSchema, aE as DataPart, fR as ErrorResponseSchema, fS as ExistsResponseSchema, eY as ExternalAgentApiInsertSchema, cK as ExternalAgentApiSelect, eX as ExternalAgentApiSelectSchema, cM as ExternalAgentApiUpdate, eZ as ExternalAgentApiUpdateSchema, eV as ExternalAgentInsertSchema, gj as ExternalAgentListResponse, g3 as ExternalAgentResponse, eU as ExternalAgentSelectSchema, eW as ExternalAgentUpdateSchema, cL as ExternalSubAgentApiInsert, bR as ExternalSubAgentRelationApiInsert, dR as ExternalSubAgentRelationApiInsertSchema, dQ as ExternalSubAgentRelationInsertSchema, cn as FetchConfig, fq as FetchConfigSchema, cm as FetchDefinition, fr as FetchDefinitionSchema, aA as FileBase, aD as FilePart, aB as FileWithBytes, aC as FileWithUri, d2 as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, f_ as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, c9 as FunctionApiSelect, j as FunctionApiSelectSchema, ca as FunctionApiUpdate, k as FunctionApiUpdateSchema, c7 as FunctionInsert, fo as FunctionInsertSchema, gn as FunctionListResponse, g7 as FunctionResponse, c6 as FunctionSelect, fn as FunctionSelectSchema, fl as FunctionToolApiInsertSchema, cb as FunctionToolApiSelect, fk as FunctionToolApiSelectSchema, fm as FunctionToolApiUpdateSchema, dC as FunctionToolConfig, dB as FunctionToolConfigSchema, fi as FunctionToolInsertSchema, go as FunctionToolListResponse, g8 as FunctionToolResponse, fh as FunctionToolSelectSchema, fj as FunctionToolUpdateSchema, c8 as FunctionUpdate, fp as FunctionUpdateSchema, br as GetTaskPushNotificationConfigRequest, bE as GetTaskPushNotificationConfigResponse, bD as GetTaskPushNotificationConfigSuccessResponse, bo as GetTaskRequest, by as GetTaskResponse, bx as GetTaskSuccessResponse, aL as HTTPAuthSecurityScheme, gz as HeadersScopeSchema, aP as ImplicitOAuthFlow, b2 as InternalError, d4 as InternalSubAgentDefinition, b8 as InvalidAgentResponseError, b1 as InvalidParamsError, a$ as InvalidRequestError, a_ as JSONParseError, bj as JSONRPCError, bl as JSONRPCErrorResponse, bh as JSONRPCMessage, bi as JSONRPCRequest, bk as JSONRPCResult, d0 as LedgerArtifactApiInsert, fI as LedgerArtifactApiInsertSchema, c$ as LedgerArtifactApiSelect, fH as LedgerArtifactApiSelectSchema, d1 as LedgerArtifactApiUpdate, fJ as LedgerArtifactApiUpdateSchema, cZ as LedgerArtifactInsert, fF as LedgerArtifactInsertSchema, fE as LedgerArtifactSelectSchema, c_ as LedgerArtifactUpdate, fG as LedgerArtifactUpdateSchema, fP as ListResponseSchema, dw as MAX_ID_LENGTH, du as MCPServerType, fc as MCPToolConfigSchema, dv as MIN_ID_LENGTH, dm as McpAuthType, dn as McpServerAuth, dq as McpServerCapabilities, dr as McpToolDefinition, ea as McpToolDefinitionSchema, fb as McpToolSchema, dp as McpTransportConfig, e8 as McpTransportConfigSchema, aV as Message, ch as MessageApiInsert, en as MessageApiInsertSchema, cg as MessageApiSelect, em as MessageApiSelectSchema, ci as MessageApiUpdate, eo as MessageApiUpdateSchema, ek as MessageInsertSchema, gu as MessageListResponse, de as MessageMode, bH as MessagePart, ge as MessageResponse, dd as MessageRole, cf as MessageSelect, ej as MessageSelectSchema, bf as MessageSendConfiguration, bg as MessageSendParams, dc as MessageType, el as MessageUpdateSchema, b0 as MethodNotFoundError, dz as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, df as Models, aR as OAuth2SecurityScheme, aM as OAuthFlows, aS as OpenIdConnectSecurityScheme, da as Pagination, gI as PaginationQueryParamsSchema, fO as PaginationSchema, P as Part, ay as PartBase, aQ as PasswordOAuthFlow, d8 as ProjectApiInsert, fY as ProjectApiInsertSchema, d7 as ProjectApiSelect, fX as ProjectApiSelectSchema, d9 as ProjectApiUpdate, fZ as ProjectApiUpdateSchema, fV as ProjectInsertSchema, gf as ProjectListResponse, dA as ProjectModelSchema, dg as ProjectModels, f$ as ProjectResponse, fU as ProjectSelectSchema, fW as ProjectUpdateSchema, ba as PushNotificationAuthenticationInfo, bb as PushNotificationConfig, b5 as PushNotificationNotSupportedError, fT as RemovedResponseSchema, aT as SecurityScheme, aJ as SecuritySchemeBase, bm as SendMessageRequest, bu as SendMessageResponse, bt as SendMessageSuccessResponse, bn as SendStreamingMessageRequest, bw as SendStreamingMessageResponse, bv as SendStreamingMessageSuccessResponse, bq as SetTaskPushNotificationConfigRequest, bC as SetTaskPushNotificationConfigResponse, bB as SetTaskPushNotificationConfigSuccessResponse, fQ as SingleResponseSchema, di as StatusComponent, fK as StatusComponentSchema, fL as StatusUpdateSchema, dh as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bK as SubAgentApiInsert, dH as SubAgentApiInsertSchema, bJ as SubAgentApiSelect, dG as SubAgentApiSelectSchema, bL as SubAgentApiUpdate, dI as SubAgentApiUpdateSchema, cI as SubAgentArtifactComponentApiInsert, eS as SubAgentArtifactComponentApiInsertSchema, cH as SubAgentArtifactComponentApiSelect, eR as SubAgentArtifactComponentApiSelectSchema, cJ as SubAgentArtifactComponentApiUpdate, eT as SubAgentArtifactComponentApiUpdateSchema, cF as SubAgentArtifactComponentInsert, eP as SubAgentArtifactComponentInsertSchema, gy as SubAgentArtifactComponentListResponse, gw as SubAgentArtifactComponentResponse, cE as SubAgentArtifactComponentSelect, eO as SubAgentArtifactComponentSelectSchema, cG as SubAgentArtifactComponentUpdate, eQ as SubAgentArtifactComponentUpdateSchema, cz as SubAgentDataComponentApiInsert, eG as SubAgentDataComponentApiInsertSchema, cy as SubAgentDataComponentApiSelect, eF as SubAgentDataComponentApiSelectSchema, cA as SubAgentDataComponentApiUpdate, eH as SubAgentDataComponentApiUpdateSchema, cw as SubAgentDataComponentInsert, eD as SubAgentDataComponentInsertSchema, gx as SubAgentDataComponentListResponse, gv as SubAgentDataComponentResponse, cv as SubAgentDataComponentSelect, eC as SubAgentDataComponentSelectSchema, cx as SubAgentDataComponentUpdate, eE as SubAgentDataComponentUpdateSchema, d5 as SubAgentDefinition, dE as SubAgentInsertSchema, gg as SubAgentListResponse, bO as SubAgentRelationApiInsert, dN as SubAgentRelationApiInsertSchema, bN as SubAgentRelationApiSelect, dM as SubAgentRelationApiSelectSchema, bP as SubAgentRelationApiUpdate, dO as SubAgentRelationApiUpdateSchema, dK as SubAgentRelationInsertSchema, gr as SubAgentRelationListResponse, bQ as SubAgentRelationQuery, dP as SubAgentRelationQuerySchema, gb as SubAgentRelationResponse, bM as SubAgentRelationSelect, dJ as SubAgentRelationSelectSchema, dL as SubAgentRelationUpdateSchema, g0 as SubAgentResponse, dD as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, cX as SubAgentToolRelationApiInsert, fC as SubAgentToolRelationApiInsertSchema, cW as SubAgentToolRelationApiSelect, fB as SubAgentToolRelationApiSelectSchema, cY as SubAgentToolRelationApiUpdate, fD as SubAgentToolRelationApiUpdateSchema, cV as SubAgentToolRelationInsert, fz as SubAgentToolRelationInsertSchema, gs as SubAgentToolRelationListResponse, gc as SubAgentToolRelationResponse, cU as SubAgentToolRelationSelect, fy as SubAgentToolRelationSelectSchema, fA as SubAgentToolRelationUpdateSchema, dF as SubAgentUpdateSchema, db as SummaryEvent, ds as TOOL_STATUS_VALUES, aX as Task, bX as TaskApiInsert, e0 as TaskApiInsertSchema, bW as TaskApiSelect, d$ as TaskApiSelectSchema, bY as TaskApiUpdate, e1 as TaskApiUpdateSchema, bI as TaskArtifact, aZ as TaskArtifactUpdateEvent, bd as TaskIdParams, dZ as TaskInsertSchema, b4 as TaskNotCancelableError, b3 as TaskNotFoundError, bc as TaskPushNotificationConfig, be as TaskQueryParams, c1 as TaskRelationApiInsert, e6 as TaskRelationApiInsertSchema, c0 as TaskRelationApiSelect, e5 as TaskRelationApiSelectSchema, c2 as TaskRelationApiUpdate, e7 as TaskRelationApiUpdateSchema, b_ as TaskRelationInsert, e3 as TaskRelationInsertSchema, bZ as TaskRelationSelect, e2 as TaskRelationSelectSchema, b$ as TaskRelationUpdate, e4 as TaskRelationUpdateSchema, bs as TaskResubscriptionRequest, dY as TaskSelectSchema, aF as TaskState, aW as TaskStatus, aY as TaskStatusUpdateEvent, bV as TaskUpdate, d_ as TaskUpdateSchema, gB as TenantIdParamsSchema, gA as TenantParamsSchema, gF as TenantProjectAgentIdParamsSchema, gE as TenantProjectAgentParamsSchema, gH as TenantProjectAgentSubAgentIdParamsSchema, gG as TenantProjectAgentSubAgentParamsSchema, gD as TenantProjectIdParamsSchema, gC as TenantProjectParamsSchema, az as TextPart, c4 as ToolApiInsert, ff as ToolApiInsertSchema, c3 as ToolApiSelect, fe as ToolApiSelectSchema, c5 as ToolApiUpdate, fg as ToolApiUpdateSchema, d6 as ToolDefinition, ec as ToolInsertSchema, gi as ToolListResponse, g2 as ToolResponse, eb as ToolSelectSchema, e9 as ToolStatusSchema, fd as ToolUpdateSchema, dx as URL_SAFE_ID_PATTERN, b6 as UnsupportedOperationError, dt as VALID_RELATION_TYPES, dy as resourceIdSchema } from './utility-DmLVF565.cjs';
4
+ import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as AgentScopeConfig, C as ConversationHistoryConfig, v as ProjectScopeConfig, w as PaginationConfig, x as AgentInsert, y as AgentUpdate, z as FullAgentDefinition, B as AgentSelect, D as ApiKeySelect, E as ApiKeyInsert, G as ApiKeyUpdate, H as CreateApiKeyParams, I as ApiKeyCreateResult, J as ArtifactComponentSelect, K as ArtifactComponentInsert, L as ArtifactComponentUpdate, N as SubAgentScopeConfig, O as ContextCacheSelect, Q as ContextCacheInsert, R as ContextConfigInsert, U as ContextConfigUpdate, V as ConversationSelect, W as ConversationInsert, o as ConversationMetadata, X as ConversationUpdate, Y as CredentialReferenceSelect, Z as ToolSelect, _ as CredentialReferenceInsert, $ as CredentialReferenceUpdate, a0 as DataComponentSelect, a1 as DataComponentInsert, a2 as DataComponentUpdate, a3 as ExternalAgentInsert, a4 as ExternalAgentSelect, a5 as ExternalAgentUpdate, a6 as FunctionApiInsert, a7 as FunctionToolApiInsert, a8 as FunctionToolApiUpdate, a9 as Artifact, aa as LedgerArtifactSelect, q as MessageMetadata, p as MessageContent, ab as MessageVisibility, ac as MessageInsert, ad as MessageUpdate, ae as FullProjectDefinition, af as ProjectInfo, ag as ProjectSelect, ah as PaginationResult, ai as ProjectResourceCounts, aj as ProjectInsert, ak as ProjectUpdate, al as SubAgentRelationInsert, am as ExternalSubAgentRelationInsert, an as SubAgentRelationUpdate, ao as SubAgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, ap as SubAgentInsert, aq as SubAgentUpdate, ar as SubAgentSelect, as as TaskInsert, T as TaskMetadataConfig, at as TaskSelect, au as McpTool, av as ToolInsert, aw as ToolUpdate, h as CredentialStoreType, ax as ExecutionContext } from './utility-usOTNbMG.cjs';
5
+ export { b9 as A2AError, bF as A2ARequest, bG as A2AResponse, aK as APIKeySecurityScheme, bT as AgentApiInsert, dW as AgentApiInsertSchema, bS as AgentApiSelect, dV as AgentApiSelectSchema, bU as AgentApiUpdate, dX as AgentApiUpdateSchema, aG as AgentCapabilities, aU as AgentCard, dk as AgentConversationHistoryConfig, dT as AgentInsertSchema, gh as AgentListResponse, aH as AgentProvider, g1 as AgentResponse, dS as AgentSelectSchema, aI as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, dU as AgentUpdateSchema, fN as AgentWithinContextOfProjectSchema, e_ as AllAgentSchema, cN as AllAgentSelect, cR as ApiKeyApiCreationResponse, f3 as ApiKeyApiCreationResponseSchema, cP as ApiKeyApiInsert, f4 as ApiKeyApiInsertSchema, cO as ApiKeyApiSelect, f2 as ApiKeyApiSelectSchema, cQ as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f0 as ApiKeyInsertSchema, gl as ApiKeyListResponse, g5 as ApiKeyResponse, e$ as ApiKeySelectSchema, f1 as ApiKeyUpdateSchema, cC as ArtifactComponentApiInsert, eM as ArtifactComponentApiInsertSchema, cB as ArtifactComponentApiSelect, eL as ArtifactComponentApiSelectSchema, cD as ArtifactComponentApiUpdate, eN as ArtifactComponentApiUpdateSchema, eJ as ArtifactComponentInsertSchema, gq as ArtifactComponentListResponse, ga as ArtifactComponentResponse, eI as ArtifactComponentSelectSchema, eK as ArtifactComponentUpdateSchema, aN as AuthorizationCodeOAuthFlow, d3 as CanUseItem, fM as CanUseItemSchema, bp as CancelTaskRequest, bA as CancelTaskResponse, bz as CancelTaskSuccessResponse, aO as ClientCredentialsOAuthFlow, b7 as ContentTypeNotSupportedError, cq as ContextCacheApiInsert, et as ContextCacheApiInsertSchema, cp as ContextCacheApiSelect, es as ContextCacheApiSelectSchema, cr as ContextCacheApiUpdate, eu as ContextCacheApiUpdateSchema, dl as ContextCacheEntry, eq as ContextCacheInsertSchema, ep as ContextCacheSelectSchema, co as ContextCacheUpdate, er as ContextCacheUpdateSchema, ck as ContextConfigApiInsert, fw as ContextConfigApiInsertSchema, cj as ContextConfigApiSelect, fv as ContextConfigApiSelectSchema, cl as ContextConfigApiUpdate, fx as ContextConfigApiUpdateSchema, ft as ContextConfigInsertSchema, gk as ContextConfigListResponse, g4 as ContextConfigResponse, fs as ContextConfigSelectSchema, fu as ContextConfigUpdateSchema, cd as ConversationApiInsert, eh as ConversationApiInsertSchema, cc as ConversationApiSelect, eg as ConversationApiSelectSchema, ce as ConversationApiUpdate, ei as ConversationApiUpdateSchema, ee as ConversationInsertSchema, gt as ConversationListResponse, gd as ConversationResponse, dj as ConversationScopeOptions, ed as ConversationSelectSchema, ef as ConversationUpdateSchema, f9 as CredentialReferenceApiInsertSchema, cS as CredentialReferenceApiSelect, f8 as CredentialReferenceApiSelectSchema, cT as CredentialReferenceApiUpdate, fa as CredentialReferenceApiUpdateSchema, f6 as CredentialReferenceInsertSchema, gm as CredentialReferenceListResponse, g6 as CredentialReferenceResponse, f5 as CredentialReferenceSelectSchema, f7 as CredentialReferenceUpdateSchema, ct as DataComponentApiInsert, eA as DataComponentApiInsertSchema, cs as DataComponentApiSelect, ez as DataComponentApiSelectSchema, cu as DataComponentApiUpdate, eB as DataComponentApiUpdateSchema, ex as DataComponentBaseSchema, ew as DataComponentInsertSchema, gp as DataComponentListResponse, g9 as DataComponentResponse, ev as DataComponentSelectSchema, ey as DataComponentUpdateSchema, aE as DataPart, fR as ErrorResponseSchema, fS as ExistsResponseSchema, eY as ExternalAgentApiInsertSchema, cK as ExternalAgentApiSelect, eX as ExternalAgentApiSelectSchema, cM as ExternalAgentApiUpdate, eZ as ExternalAgentApiUpdateSchema, eV as ExternalAgentInsertSchema, gj as ExternalAgentListResponse, g3 as ExternalAgentResponse, eU as ExternalAgentSelectSchema, eW as ExternalAgentUpdateSchema, cL as ExternalSubAgentApiInsert, bR as ExternalSubAgentRelationApiInsert, dR as ExternalSubAgentRelationApiInsertSchema, dQ as ExternalSubAgentRelationInsertSchema, cn as FetchConfig, fq as FetchConfigSchema, cm as FetchDefinition, fr as FetchDefinitionSchema, aA as FileBase, aD as FilePart, aB as FileWithBytes, aC as FileWithUri, d2 as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, f_ as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, c9 as FunctionApiSelect, j as FunctionApiSelectSchema, ca as FunctionApiUpdate, k as FunctionApiUpdateSchema, c7 as FunctionInsert, fo as FunctionInsertSchema, gn as FunctionListResponse, g7 as FunctionResponse, c6 as FunctionSelect, fn as FunctionSelectSchema, fl as FunctionToolApiInsertSchema, cb as FunctionToolApiSelect, fk as FunctionToolApiSelectSchema, fm as FunctionToolApiUpdateSchema, dC as FunctionToolConfig, dB as FunctionToolConfigSchema, fi as FunctionToolInsertSchema, go as FunctionToolListResponse, g8 as FunctionToolResponse, fh as FunctionToolSelectSchema, fj as FunctionToolUpdateSchema, c8 as FunctionUpdate, fp as FunctionUpdateSchema, br as GetTaskPushNotificationConfigRequest, bE as GetTaskPushNotificationConfigResponse, bD as GetTaskPushNotificationConfigSuccessResponse, bo as GetTaskRequest, by as GetTaskResponse, bx as GetTaskSuccessResponse, aL as HTTPAuthSecurityScheme, gz as HeadersScopeSchema, aP as ImplicitOAuthFlow, b2 as InternalError, d4 as InternalSubAgentDefinition, b8 as InvalidAgentResponseError, b1 as InvalidParamsError, a$ as InvalidRequestError, a_ as JSONParseError, bj as JSONRPCError, bl as JSONRPCErrorResponse, bh as JSONRPCMessage, bi as JSONRPCRequest, bk as JSONRPCResult, d0 as LedgerArtifactApiInsert, fI as LedgerArtifactApiInsertSchema, c$ as LedgerArtifactApiSelect, fH as LedgerArtifactApiSelectSchema, d1 as LedgerArtifactApiUpdate, fJ as LedgerArtifactApiUpdateSchema, cZ as LedgerArtifactInsert, fF as LedgerArtifactInsertSchema, fE as LedgerArtifactSelectSchema, c_ as LedgerArtifactUpdate, fG as LedgerArtifactUpdateSchema, fP as ListResponseSchema, dw as MAX_ID_LENGTH, du as MCPServerType, fc as MCPToolConfigSchema, dv as MIN_ID_LENGTH, dm as McpAuthType, dn as McpServerAuth, dq as McpServerCapabilities, dr as McpToolDefinition, ea as McpToolDefinitionSchema, fb as McpToolSchema, dp as McpTransportConfig, e8 as McpTransportConfigSchema, aV as Message, ch as MessageApiInsert, en as MessageApiInsertSchema, cg as MessageApiSelect, em as MessageApiSelectSchema, ci as MessageApiUpdate, eo as MessageApiUpdateSchema, ek as MessageInsertSchema, gu as MessageListResponse, de as MessageMode, bH as MessagePart, ge as MessageResponse, dd as MessageRole, cf as MessageSelect, ej as MessageSelectSchema, bf as MessageSendConfiguration, bg as MessageSendParams, dc as MessageType, el as MessageUpdateSchema, b0 as MethodNotFoundError, dz as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, df as Models, aR as OAuth2SecurityScheme, aM as OAuthFlows, aS as OpenIdConnectSecurityScheme, da as Pagination, gI as PaginationQueryParamsSchema, fO as PaginationSchema, P as Part, ay as PartBase, aQ as PasswordOAuthFlow, d8 as ProjectApiInsert, fY as ProjectApiInsertSchema, d7 as ProjectApiSelect, fX as ProjectApiSelectSchema, d9 as ProjectApiUpdate, fZ as ProjectApiUpdateSchema, fV as ProjectInsertSchema, gf as ProjectListResponse, dA as ProjectModelSchema, dg as ProjectModels, f$ as ProjectResponse, fU as ProjectSelectSchema, fW as ProjectUpdateSchema, ba as PushNotificationAuthenticationInfo, bb as PushNotificationConfig, b5 as PushNotificationNotSupportedError, fT as RemovedResponseSchema, aT as SecurityScheme, aJ as SecuritySchemeBase, bm as SendMessageRequest, bu as SendMessageResponse, bt as SendMessageSuccessResponse, bn as SendStreamingMessageRequest, bw as SendStreamingMessageResponse, bv as SendStreamingMessageSuccessResponse, bq as SetTaskPushNotificationConfigRequest, bC as SetTaskPushNotificationConfigResponse, bB as SetTaskPushNotificationConfigSuccessResponse, fQ as SingleResponseSchema, di as StatusComponent, fK as StatusComponentSchema, fL as StatusUpdateSchema, dh as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bK as SubAgentApiInsert, dH as SubAgentApiInsertSchema, bJ as SubAgentApiSelect, dG as SubAgentApiSelectSchema, bL as SubAgentApiUpdate, dI as SubAgentApiUpdateSchema, cI as SubAgentArtifactComponentApiInsert, eS as SubAgentArtifactComponentApiInsertSchema, cH as SubAgentArtifactComponentApiSelect, eR as SubAgentArtifactComponentApiSelectSchema, cJ as SubAgentArtifactComponentApiUpdate, eT as SubAgentArtifactComponentApiUpdateSchema, cF as SubAgentArtifactComponentInsert, eP as SubAgentArtifactComponentInsertSchema, gy as SubAgentArtifactComponentListResponse, gw as SubAgentArtifactComponentResponse, cE as SubAgentArtifactComponentSelect, eO as SubAgentArtifactComponentSelectSchema, cG as SubAgentArtifactComponentUpdate, eQ as SubAgentArtifactComponentUpdateSchema, cz as SubAgentDataComponentApiInsert, eG as SubAgentDataComponentApiInsertSchema, cy as SubAgentDataComponentApiSelect, eF as SubAgentDataComponentApiSelectSchema, cA as SubAgentDataComponentApiUpdate, eH as SubAgentDataComponentApiUpdateSchema, cw as SubAgentDataComponentInsert, eD as SubAgentDataComponentInsertSchema, gx as SubAgentDataComponentListResponse, gv as SubAgentDataComponentResponse, cv as SubAgentDataComponentSelect, eC as SubAgentDataComponentSelectSchema, cx as SubAgentDataComponentUpdate, eE as SubAgentDataComponentUpdateSchema, d5 as SubAgentDefinition, dE as SubAgentInsertSchema, gg as SubAgentListResponse, bO as SubAgentRelationApiInsert, dN as SubAgentRelationApiInsertSchema, bN as SubAgentRelationApiSelect, dM as SubAgentRelationApiSelectSchema, bP as SubAgentRelationApiUpdate, dO as SubAgentRelationApiUpdateSchema, dK as SubAgentRelationInsertSchema, gr as SubAgentRelationListResponse, bQ as SubAgentRelationQuery, dP as SubAgentRelationQuerySchema, gb as SubAgentRelationResponse, bM as SubAgentRelationSelect, dJ as SubAgentRelationSelectSchema, dL as SubAgentRelationUpdateSchema, g0 as SubAgentResponse, dD as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, cX as SubAgentToolRelationApiInsert, fC as SubAgentToolRelationApiInsertSchema, cW as SubAgentToolRelationApiSelect, fB as SubAgentToolRelationApiSelectSchema, cY as SubAgentToolRelationApiUpdate, fD as SubAgentToolRelationApiUpdateSchema, cV as SubAgentToolRelationInsert, fz as SubAgentToolRelationInsertSchema, gs as SubAgentToolRelationListResponse, gc as SubAgentToolRelationResponse, cU as SubAgentToolRelationSelect, fy as SubAgentToolRelationSelectSchema, fA as SubAgentToolRelationUpdateSchema, dF as SubAgentUpdateSchema, db as SummaryEvent, ds as TOOL_STATUS_VALUES, aX as Task, bX as TaskApiInsert, e0 as TaskApiInsertSchema, bW as TaskApiSelect, d$ as TaskApiSelectSchema, bY as TaskApiUpdate, e1 as TaskApiUpdateSchema, bI as TaskArtifact, aZ as TaskArtifactUpdateEvent, bd as TaskIdParams, dZ as TaskInsertSchema, b4 as TaskNotCancelableError, b3 as TaskNotFoundError, bc as TaskPushNotificationConfig, be as TaskQueryParams, c1 as TaskRelationApiInsert, e6 as TaskRelationApiInsertSchema, c0 as TaskRelationApiSelect, e5 as TaskRelationApiSelectSchema, c2 as TaskRelationApiUpdate, e7 as TaskRelationApiUpdateSchema, b_ as TaskRelationInsert, e3 as TaskRelationInsertSchema, bZ as TaskRelationSelect, e2 as TaskRelationSelectSchema, b$ as TaskRelationUpdate, e4 as TaskRelationUpdateSchema, bs as TaskResubscriptionRequest, dY as TaskSelectSchema, aF as TaskState, aW as TaskStatus, aY as TaskStatusUpdateEvent, bV as TaskUpdate, d_ as TaskUpdateSchema, gB as TenantIdParamsSchema, gA as TenantParamsSchema, gF as TenantProjectAgentIdParamsSchema, gE as TenantProjectAgentParamsSchema, gH as TenantProjectAgentSubAgentIdParamsSchema, gG as TenantProjectAgentSubAgentParamsSchema, gD as TenantProjectIdParamsSchema, gC as TenantProjectParamsSchema, az as TextPart, c4 as ToolApiInsert, ff as ToolApiInsertSchema, c3 as ToolApiSelect, fe as ToolApiSelectSchema, c5 as ToolApiUpdate, fg as ToolApiUpdateSchema, d6 as ToolDefinition, ec as ToolInsertSchema, gi as ToolListResponse, g2 as ToolResponse, eb as ToolSelectSchema, e9 as ToolStatusSchema, fd as ToolUpdateSchema, dx as URL_SAFE_ID_PATTERN, b6 as UnsupportedOperationError, dt as VALID_RELATION_TYPES, dy as resourceIdSchema } from './utility-usOTNbMG.cjs';
6
6
  import { CredentialStore } from './types/index.cjs';
7
7
  export { CorsConfig, ServerConfig, ServerOptions } from './types/index.cjs';
8
8
  import { LibSQLDatabase } from 'drizzle-orm/libsql';
9
- import { s as schema } from './schema-lnJ7dKE3.cjs';
10
- export { E as agentRelations, H as agentToolRelationsRelations, a as agents, w as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, b as contextCache, C as contextCacheRelations, c as contextConfigs, B as contextConfigsRelations, r as conversations, K as conversationsRelations, x as credentialReferences, I as credentialReferencesRelations, h as dataComponents, O as dataComponentsRelations, f as externalAgents, F as externalAgentsRelations, m as functionTools, T as functionToolsRelations, n as functions, R as functionsRelations, v as ledgerArtifacts, Q as ledgerArtifactsRelations, u as messages, L as messagesRelations, p as projects, z as projectsRelations, k as subAgentArtifactComponents, N as subAgentArtifactComponentsRelations, i as subAgentDataComponents, P as subAgentDataComponentsRelations, q as subAgentFunctionToolRelations, U as subAgentFunctionToolRelationsRelations, e as subAgentRelations, S as subAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, D as subAgentsRelations, g as taskRelations, A as taskRelationsRelations, t as tasks, y as tasksRelations, l as tools, J as toolsRelations } from './schema-lnJ7dKE3.cjs';
9
+ import { s as schema } from './schema-HuJ7Qh0C.cjs';
10
+ export { E as agentRelations, H as agentToolRelationsRelations, a as agents, w as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, b as contextCache, C as contextCacheRelations, c as contextConfigs, B as contextConfigsRelations, r as conversations, K as conversationsRelations, x as credentialReferences, I as credentialReferencesRelations, h as dataComponents, O as dataComponentsRelations, f as externalAgents, F as externalAgentsRelations, m as functionTools, T as functionToolsRelations, n as functions, R as functionsRelations, v as ledgerArtifacts, Q as ledgerArtifactsRelations, u as messages, L as messagesRelations, p as projects, z as projectsRelations, k as subAgentArtifactComponents, N as subAgentArtifactComponentsRelations, i as subAgentDataComponents, P as subAgentDataComponentsRelations, q as subAgentFunctionToolRelations, U as subAgentFunctionToolRelationsRelations, e as subAgentRelations, S as subAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, D as subAgentsRelations, g as taskRelations, A as taskRelationsRelations, t as tasks, y as tasksRelations, l as tools, J as toolsRelations } from './schema-HuJ7Qh0C.cjs';
11
11
  import { LoggerOptions, TransportSingleOptions, Logger } from 'pino';
12
12
  import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js';
13
13
  import { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
@@ -19,7 +19,7 @@ import { z as z$1 } from '@hono/zod-openapi';
19
19
  import { HTTPException } from 'hono/http-exception';
20
20
  export { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, isZodSchema, preview } from './utils/schema-conversion.cjs';
21
21
  import { Span, Tracer } from '@opentelemetry/api';
22
- export { A2AMessageMetadata, A2AMessageMetadataSchema, DataOperationDetails, DataOperationDetailsSchema, DataOperationEvent, DataOperationEventSchema, DelegationReturnedData, DelegationReturnedDataSchema, DelegationSentData, DelegationSentDataSchema, TransferData, TransferDataSchema, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validateToolReferences } from './validation/index.cjs';
22
+ export { A2AMessageMetadata, A2AMessageMetadataSchema, DataOperationDetails, DataOperationDetailsSchema, DataOperationEvent, DataOperationEventSchema, DelegationReturnedData, DelegationReturnedDataSchema, DelegationSentData, DelegationSentDataSchema, PreviewValidationResult, TransferData, TransferDataSchema, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validatePreview, validateToolReferences } from './validation/index.cjs';
23
23
  export { P as PropsValidationResult, v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.cjs';
24
24
  import 'drizzle-zod';
25
25
  import 'drizzle-orm';