@inkeep/agents-core 0.7.1 → 0.8.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.
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  export { TaskState } from './chunk-H2F72PDA.js';
2
- import { validateAndTypeGraphData, validateGraphStructure, isInternalAgent, isExternalAgent } from './chunk-LLC4XKH2.js';
3
- export { generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAndTypeGraphData, validateArtifactComponentReferences, validateDataComponentReferences, validateGraphStructure, validateToolReferences } from './chunk-LLC4XKH2.js';
4
- import { ContextConfigApiUpdateSchema } from './chunk-6LGKJVQN.js';
5
- 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, 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, 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 } from './chunk-6LGKJVQN.js';
6
- import { schema_exports, agentRelations, agents, externalAgents, agentToolRelations, tools, contextConfigs, agentGraph, agentDataComponents, agentArtifactComponents, dataComponents, artifactComponents, projects, apiKeys, contextCache, conversations, messages, credentialReferences, ledgerArtifacts, tasks, taskRelations } from './chunk-Y2L44YJB.js';
7
- export { agentArtifactComponents, agentArtifactComponentsRelations, agentDataComponents, agentDataComponentsRelations, agentGraph, agentGraphRelations, agentRelations, agentRelationsRelations, agentToolRelations, agentToolRelationsRelations, agents, agentsRelations, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, externalAgents, externalAgentsRelations, ledgerArtifacts, ledgerArtifactsContextIdIdx, ledgerArtifactsRelations, ledgerArtifactsTaskContextNameUnique, ledgerArtifactsTaskIdIdx, messages, messagesRelations, projects, projectsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from './chunk-Y2L44YJB.js';
2
+ import { validateAndTypeGraphData, validateGraphStructure, isInternalAgent, isExternalAgent } from './chunk-VZ62ZJTI.js';
3
+ export { generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAndTypeGraphData, validateArtifactComponentReferences, validateDataComponentReferences, validateGraphStructure, validateToolReferences } from './chunk-VZ62ZJTI.js';
4
+ import { ContextConfigApiUpdateSchema } from './chunk-P5LTXXFH.js';
5
+ 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, 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, 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 } from './chunk-P5LTXXFH.js';
6
+ import { schema_exports, agentRelations, agents, externalAgents, agentToolRelations, tools, contextConfigs, agentGraph, agentDataComponents, agentArtifactComponents, dataComponents, artifactComponents, projects, apiKeys, contextCache, conversations, messages, credentialReferences, ledgerArtifacts, tasks, taskRelations } from './chunk-E4ZLV4GU.js';
7
+ export { agentArtifactComponents, agentArtifactComponentsRelations, agentDataComponents, agentDataComponentsRelations, agentGraph, agentGraphRelations, agentRelations, agentRelationsRelations, agentToolRelations, agentToolRelationsRelations, agents, agentsRelations, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, externalAgents, externalAgentsRelations, ledgerArtifacts, ledgerArtifactsContextIdIdx, ledgerArtifactsRelations, ledgerArtifactsTaskContextNameUnique, ledgerArtifactsTaskIdIdx, messages, messagesRelations, projects, projectsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from './chunk-E4ZLV4GU.js';
8
8
  import { CredentialStoreType, MCPServerType, MCPTransportType } from './chunk-YFHT5M2R.js';
9
9
  export { CredentialStoreType, MCPServerType, MCPTransportType, TOOL_STATUS_VALUES, VALID_RELATION_TYPES } from './chunk-YFHT5M2R.js';
10
10
  import { __publicField } from './chunk-MKBO26DX.js';
@@ -537,13 +537,25 @@ var _TemplateEngine = class _TemplateEngine {
537
537
  if (options.preserveUnresolved) {
538
538
  return match2;
539
539
  }
540
- logger2.warn(
541
- {
542
- variable: trimmedPath,
543
- availableKeys: Object.keys(context)
544
- },
545
- "Template variable not found in context"
546
- );
540
+ if (trimmedPath.startsWith("requestContext.")) {
541
+ logger2.warn(
542
+ {
543
+ variable: trimmedPath,
544
+ availableKeys: Object.keys(context),
545
+ contextStructure: JSON.stringify(context, null, 2),
546
+ requestContextContent: context.requestContext ? JSON.stringify(context.requestContext, null, 2) : "undefined"
547
+ },
548
+ "RequestContext template variable debugging"
549
+ );
550
+ } else {
551
+ logger2.warn(
552
+ {
553
+ variable: trimmedPath,
554
+ availableKeys: Object.keys(context)
555
+ },
556
+ "Template variable not found in context"
557
+ );
558
+ }
547
559
  return "";
548
560
  }
549
561
  if (typeof result === "object") {
@@ -1142,7 +1154,8 @@ var createAgentToolRelation = (db) => async (params) => {
1142
1154
  graphId: params.scopes.graphId,
1143
1155
  agentId: params.data.agentId,
1144
1156
  toolId: params.data.toolId,
1145
- selectedTools: params.data.selectedTools
1157
+ selectedTools: params.data.selectedTools,
1158
+ headers: params.data.headers
1146
1159
  }).returning();
1147
1160
  return relation[0];
1148
1161
  };
@@ -1287,6 +1300,7 @@ var getToolsForAgent = (db) => async (params) => {
1287
1300
  agentId: agentToolRelations.agentId,
1288
1301
  toolId: agentToolRelations.toolId,
1289
1302
  selectedTools: agentToolRelations.selectedTools,
1303
+ headers: agentToolRelations.headers,
1290
1304
  createdAt: agentToolRelations.createdAt,
1291
1305
  updatedAt: agentToolRelations.updatedAt,
1292
1306
  tool: {
@@ -1345,6 +1359,7 @@ var getAgentsForTool = (db) => async (params) => {
1345
1359
  agentId: agentToolRelations.agentId,
1346
1360
  toolId: agentToolRelations.toolId,
1347
1361
  selectedTools: agentToolRelations.selectedTools,
1362
+ headers: agentToolRelations.headers,
1348
1363
  createdAt: agentToolRelations.createdAt,
1349
1364
  updatedAt: agentToolRelations.updatedAt,
1350
1365
  agent: {
@@ -2052,9 +2067,9 @@ var getFullGraphDefinition = (db) => async ({
2052
2067
  credentialReferenceId: tools.credentialReferenceId,
2053
2068
  tenantId: tools.tenantId,
2054
2069
  projectId: tools.projectId,
2055
- headers: tools.headers,
2056
2070
  imageUrl: tools.imageUrl,
2057
- selectedTools: agentToolRelations.selectedTools
2071
+ selectedTools: agentToolRelations.selectedTools,
2072
+ headers: agentToolRelations.headers
2058
2073
  }).from(agentToolRelations).innerJoin(
2059
2074
  tools,
2060
2075
  and(
@@ -2088,7 +2103,8 @@ var getFullGraphDefinition = (db) => async ({
2088
2103
  );
2089
2104
  const canUse = agentTools.map((tool2) => ({
2090
2105
  toolId: tool2.id,
2091
- toolSelection: tool2.selectedTools || null
2106
+ toolSelection: tool2.selectedTools || null,
2107
+ headers: tool2.headers || null
2092
2108
  }));
2093
2109
  return {
2094
2110
  id: agent.id,
@@ -3521,9 +3537,8 @@ var detectAuthenticationRequired = async ({
3521
3537
  error,
3522
3538
  logger: logger12
3523
3539
  }) => {
3524
- let hasOAuthEndpoints = false;
3525
3540
  try {
3526
- hasOAuthEndpoints = await checkForOAuthEndpoints(serverUrl, logger12);
3541
+ const hasOAuthEndpoints = await checkForOAuthEndpoints(serverUrl, logger12);
3527
3542
  if (hasOAuthEndpoints) {
3528
3543
  logger12?.info(
3529
3544
  { toolId, serverUrl },
@@ -3547,27 +3562,30 @@ var detectAuthenticationRequired = async ({
3547
3562
  });
3548
3563
  if (response.status === 401) {
3549
3564
  const wwwAuth = response.headers.get("WWW-Authenticate");
3550
- if (wwwAuth && (wwwAuth.toLowerCase().includes("bearer") || wwwAuth.toLowerCase().includes("oauth") || wwwAuth.toLowerCase().includes("authorization_uri"))) {
3551
- logger12?.info(
3552
- { toolId, wwwAuth },
3553
- "OAuth authentication detected via WWW-Authenticate header"
3554
- );
3555
- return true;
3565
+ if (wwwAuth) {
3566
+ const authLower = wwwAuth.toLowerCase();
3567
+ const hasActiveOAuthFlow = authLower.includes("authorization_uri") || authLower.includes("as_uri=") || authLower.includes("bearer") && (authLower.includes("scope=") || authLower.includes("error_uri="));
3568
+ if (hasActiveOAuthFlow) {
3569
+ logger12?.info(
3570
+ { toolId, wwwAuth },
3571
+ "Active OAuth flow detected via WWW-Authenticate parameters"
3572
+ );
3573
+ return true;
3574
+ } else {
3575
+ logger12?.debug(
3576
+ { toolId, wwwAuth },
3577
+ "Bearer authentication detected - likely simple token auth, not OAuth"
3578
+ );
3579
+ }
3556
3580
  }
3557
3581
  }
3558
3582
  } catch (fetchError) {
3559
3583
  logger12?.debug({ toolId, fetchError }, "Direct fetch authentication check failed");
3560
3584
  }
3561
- if (error.message.includes("401") || error.message.toLowerCase().includes("unauthorized")) {
3562
- if (hasOAuthEndpoints) {
3563
- logger12?.info(
3564
- { toolId, error: error.message },
3565
- "OAuth required: 401 error + OAuth endpoints detected"
3566
- );
3567
- return true;
3568
- }
3569
- }
3570
- logger12?.debug({ toolId, error: error.message }, "No OAuth authentication requirement detected");
3585
+ logger12?.debug(
3586
+ { toolId, error: error.message },
3587
+ "No OAuth 2.1/PKCE authentication requirement detected"
3588
+ );
3571
3589
  return false;
3572
3590
  };
3573
3591
  var ErrorCode = z.enum([
@@ -4277,6 +4295,7 @@ var addToolToAgent = (db) => async (params) => {
4277
4295
  agentId: params.agentId,
4278
4296
  toolId: params.toolId,
4279
4297
  selectedTools: params.selectedTools,
4298
+ headers: params.headers,
4280
4299
  createdAt: now,
4281
4300
  updatedAt: now
4282
4301
  }).returning();
@@ -4313,7 +4332,8 @@ var upsertAgentToolRelation = (db) => async (params) => {
4313
4332
  data: {
4314
4333
  agentId: params.agentId,
4315
4334
  toolId: params.toolId,
4316
- selectedTools: params.selectedTools
4335
+ selectedTools: params.selectedTools,
4336
+ headers: params.headers
4317
4337
  }
4318
4338
  });
4319
4339
  };
@@ -4574,13 +4594,14 @@ var createFullGraphServerSide = (db, logger12 = defaultLogger) => async (scopes,
4574
4594
  agentToolPromises.push(
4575
4595
  (async () => {
4576
4596
  try {
4577
- const { toolId, toolSelection } = canUseItem;
4597
+ const { toolId, toolSelection, headers } = canUseItem;
4578
4598
  logger12.info({ agentId, toolId }, "Processing agent-tool relation");
4579
4599
  await upsertAgentToolRelation(db)({
4580
4600
  scopes: { tenantId, projectId, graphId: finalGraphId },
4581
4601
  agentId,
4582
4602
  toolId,
4583
- selectedTools: toolSelection || void 0
4603
+ selectedTools: toolSelection || void 0,
4604
+ headers: headers || void 0
4584
4605
  });
4585
4606
  logger12.info({ agentId, toolId }, "Agent-tool relation processed successfully");
4586
4607
  } catch (error) {
@@ -4970,13 +4991,14 @@ var updateFullGraphServerSide = (db, logger12 = defaultLogger) => async (scopes,
4970
4991
  agentToolPromises.push(
4971
4992
  (async () => {
4972
4993
  try {
4973
- const { toolId, toolSelection } = canUseItem;
4994
+ const { toolId, toolSelection, headers } = canUseItem;
4974
4995
  await createAgentToolRelation(db)({
4975
4996
  scopes: { tenantId, projectId, graphId: finalGraphId },
4976
4997
  data: {
4977
4998
  agentId,
4978
4999
  toolId,
4979
- selectedTools: toolSelection || void 0
5000
+ selectedTools: toolSelection || void 0,
5001
+ headers: headers || void 0
4980
5002
  }
4981
5003
  });
4982
5004
  logger12.info({ agentId, toolId }, "Agent-tool relation created");
@@ -1,6 +1,6 @@
1
1
  import * as drizzle_orm from 'drizzle-orm';
2
2
  import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
3
- import { e as ContextFetchDefinition, C as ConversationHistoryConfig, T as TaskMetadataConfig, f as ToolMcpConfig, g as ToolServerCapabilities, h as ConversationMetadata, i as MessageContent, j as MessageMetadata, P as Part } from './utility-DPZ_yTkY.js';
3
+ import { e as ContextFetchDefinition, C as ConversationHistoryConfig, T as TaskMetadataConfig, f as ToolMcpConfig, g as ToolServerCapabilities, h as ConversationMetadata, i as MessageContent, j as MessageMetadata, P as Part } from './utility-CT2pq49U.js';
4
4
 
5
5
  declare const projects: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
6
6
  name: "projects";
@@ -2945,6 +2945,25 @@ declare const agentToolRelations: drizzle_orm_sqlite_core.SQLiteTableWithColumns
2945
2945
  }, {}, {
2946
2946
  $type: string[] | null;
2947
2947
  }>;
2948
+ headers: drizzle_orm_sqlite_core.SQLiteColumn<{
2949
+ name: "headers";
2950
+ tableName: "agent_tool_relations";
2951
+ dataType: "json";
2952
+ columnType: "SQLiteBlobJson";
2953
+ data: Record<string, string> | null;
2954
+ driverParam: Buffer<ArrayBufferLike>;
2955
+ notNull: false;
2956
+ hasDefault: false;
2957
+ isPrimaryKey: false;
2958
+ isAutoincrement: false;
2959
+ hasRuntimeDefault: false;
2960
+ enumValues: undefined;
2961
+ baseColumn: never;
2962
+ identity: undefined;
2963
+ generated: undefined;
2964
+ }, {}, {
2965
+ $type: Record<string, string> | null;
2966
+ }>;
2948
2967
  createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
2949
2968
  name: "created_at";
2950
2969
  tableName: "agent_tool_relations";
@@ -1,6 +1,6 @@
1
1
  import * as drizzle_orm from 'drizzle-orm';
2
2
  import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
3
- import { e as ContextFetchDefinition, C as ConversationHistoryConfig, T as TaskMetadataConfig, f as ToolMcpConfig, g as ToolServerCapabilities, h as ConversationMetadata, i as MessageContent, j as MessageMetadata, P as Part } from './utility-DPZ_yTkY.cjs';
3
+ import { e as ContextFetchDefinition, C as ConversationHistoryConfig, T as TaskMetadataConfig, f as ToolMcpConfig, g as ToolServerCapabilities, h as ConversationMetadata, i as MessageContent, j as MessageMetadata, P as Part } from './utility-CT2pq49U.cjs';
4
4
 
5
5
  declare const projects: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
6
6
  name: "projects";
@@ -2945,6 +2945,25 @@ declare const agentToolRelations: drizzle_orm_sqlite_core.SQLiteTableWithColumns
2945
2945
  }, {}, {
2946
2946
  $type: string[] | null;
2947
2947
  }>;
2948
+ headers: drizzle_orm_sqlite_core.SQLiteColumn<{
2949
+ name: "headers";
2950
+ tableName: "agent_tool_relations";
2951
+ dataType: "json";
2952
+ columnType: "SQLiteBlobJson";
2953
+ data: Record<string, string> | null;
2954
+ driverParam: Buffer<ArrayBufferLike>;
2955
+ notNull: false;
2956
+ hasDefault: false;
2957
+ isPrimaryKey: false;
2958
+ isAutoincrement: false;
2959
+ hasRuntimeDefault: false;
2960
+ enumValues: undefined;
2961
+ baseColumn: never;
2962
+ identity: undefined;
2963
+ generated: undefined;
2964
+ }, {}, {
2965
+ $type: Record<string, string> | null;
2966
+ }>;
2948
2967
  createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
2949
2968
  name: "created_at";
2950
2969
  tableName: "agent_tool_relations";
@@ -1,5 +1,5 @@
1
- import { d as CredentialStoreType } from '../utility-DPZ_yTkY.cjs';
2
- export { a$ as A2AError, bv as A2ARequest, bw as A2AResponse, aA as APIKeySecurityScheme, bA as AgentApiInsert, bz as AgentApiSelect, bB as AgentApiUpdate, ct as AgentArtifactComponentApiInsert, cs as AgentArtifactComponentApiSelect, cu as AgentArtifactComponentApiUpdate, cq as AgentArtifactComponentInsert, cp as AgentArtifactComponentSelect, cr as AgentArtifactComponentUpdate, aw as AgentCapabilities, aK as AgentCard, d6 as AgentConversationHistoryConfig, ck as AgentDataComponentApiInsert, cj as AgentDataComponentApiSelect, cl as AgentDataComponentApiUpdate, ch as AgentDataComponentInsert, cg as AgentDataComponentSelect, ci as AgentDataComponentUpdate, cS as AgentDefinition, bK as AgentGraphApiInsert, bJ as AgentGraphApiSelect, bL as AgentGraphApiUpdate, q as AgentGraphInsert, bI as AgentGraphSelect, r as AgentGraphUpdate, x as AgentInsert, ax as AgentProvider, bE as AgentRelationApiInsert, bD as AgentRelationApiSelect, bF as AgentRelationApiUpdate, u as AgentRelationInsert, bG as AgentRelationQuery, bC as AgentRelationSelect, v as AgentRelationUpdate, t as AgentScopeConfig, z as AgentSelect, ay as AgentSkill, cI as AgentToolRelationApiInsert, cH as AgentToolRelationApiSelect, cJ as AgentToolRelationApiUpdate, cG as AgentToolRelationInsert, cF as AgentToolRelationSelect, w as AgentToolRelationUpdate, y as AgentUpdate, cy as AllAgentSelect, cC as ApiKeyApiCreationResponse, cA as ApiKeyApiInsert, cz as ApiKeyApiSelect, cB as ApiKeyApiUpdate, J as ApiKeyCreateResult, D as ApiKeyInsert, B as ApiKeySelect, H as ApiKeyUpdate, a6 as Artifact, cn as ArtifactComponentApiInsert, cm as ArtifactComponentApiSelect, co as ArtifactComponentApiUpdate, L as ArtifactComponentInsert, K as ArtifactComponentSelect, N as ArtifactComponentUpdate, aD as AuthorizationCodeOAuthFlow, cQ as CanUseItem, bf as CancelTaskRequest, bq as CancelTaskResponse, bp as CancelTaskSuccessResponse, aE as ClientCredentialsOAuthFlow, aZ as ContentTypeNotSupportedError, cb as ContextCacheApiInsert, ca as ContextCacheApiSelect, cc as ContextCacheApiUpdate, d7 as ContextCacheEntry, Q as ContextCacheInsert, O as ContextCacheSelect, c9 as ContextCacheUpdate, c5 as ContextConfigApiInsert, c4 as ContextConfigApiSelect, c6 as ContextConfigApiUpdate, R as ContextConfigInsert, l as ContextConfigSelect, U as ContextConfigUpdate, e as ContextFetchDefinition, b_ as ConversationApiInsert, bZ as ConversationApiSelect, b$ as ConversationApiUpdate, C as ConversationHistoryConfig, W as ConversationInsert, h as ConversationMetadata, d5 as ConversationScopeOptions, V as ConversationSelect, X as ConversationUpdate, I as CreateApiKeyParams, k as CredentialReferenceApiInsert, cD as CredentialReferenceApiSelect, cE as CredentialReferenceApiUpdate, _ as CredentialReferenceInsert, Y as CredentialReferenceSelect, $ as CredentialReferenceUpdate, ce as DataComponentApiInsert, cd as DataComponentApiSelect, cf as DataComponentApiUpdate, a1 as DataComponentInsert, a0 as DataComponentSelect, a2 as DataComponentUpdate, au as DataPart, an as ExecutionContext, cw as ExternalAgentApiInsert, cv as ExternalAgentApiSelect, cx as ExternalAgentApiUpdate, a3 as ExternalAgentInsert, bH as ExternalAgentRelationApiInsert, E as ExternalAgentRelationInsert, a4 as ExternalAgentSelect, a5 as ExternalAgentUpdate, c8 as FetchConfig, c7 as FetchDefinition, aq as FileBase, at as FilePart, ar as FileWithBytes, as as FileWithUri, cP as FullGraphAgentInsert, s as FullGraphDefinition, ab as FullProjectDefinition, bh as GetTaskPushNotificationConfigRequest, bu as GetTaskPushNotificationConfigResponse, bt as GetTaskPushNotificationConfigSuccessResponse, be as GetTaskRequest, bo as GetTaskResponse, bn as GetTaskSuccessResponse, n as GraphScopeConfig, aB as HTTPAuthSecurityScheme, aF as ImplicitOAuthFlow, cR as InternalAgentDefinition, aU as InternalError, a_ as InvalidAgentResponseError, aT as InvalidParamsError, aR as InvalidRequestError, aQ as JSONParseError, b9 as JSONRPCError, bb as JSONRPCErrorResponse, b7 as JSONRPCMessage, b8 as JSONRPCRequest, ba as JSONRPCResult, cN as LedgerArtifactApiInsert, cM as LedgerArtifactApiSelect, cO as LedgerArtifactApiUpdate, cK as LedgerArtifactInsert, a7 as LedgerArtifactSelect, cL as LedgerArtifactUpdate, df as MCPServerType, m as MCPToolConfig, M as MCPTransportType, d8 as McpAuthType, d9 as McpServerAuth, db as McpServerCapabilities, ak as McpTool, dc as McpToolDefinition, da as McpTransportConfig, aL as Message, c2 as MessageApiInsert, c1 as MessageApiSelect, c3 as MessageApiUpdate, i as MessageContent, a9 as MessageInsert, j as MessageMetadata, c$ as MessageMode, bx as MessagePart, c_ as MessageRole, c0 as MessageSelect, b5 as MessageSendConfiguration, b6 as MessageSendParams, cZ as MessageType, aa as MessageUpdate, a8 as MessageVisibility, aS as MethodNotFoundError, d2 as ModelSettings, d0 as Models, aH as OAuth2SecurityScheme, aC as OAuthFlows, aI as OpenIdConnectSecurityScheme, cX as Pagination, p as PaginationConfig, ae as PaginationResult, P as Part, ao as PartBase, aG as PasswordOAuthFlow, cV as ProjectApiInsert, cU as ProjectApiSelect, cW as ProjectApiUpdate, ac as ProjectInfo, ag as ProjectInsert, d1 as ProjectModels, af as ProjectResourceCounts, o as ProjectScopeConfig, ad as ProjectSelect, ah as ProjectUpdate, b0 as PushNotificationAuthenticationInfo, b1 as PushNotificationConfig, aX as PushNotificationNotSupportedError, aJ as SecurityScheme, az as SecuritySchemeBase, bc as SendMessageRequest, bk as SendMessageResponse, bj as SendMessageSuccessResponse, bd as SendStreamingMessageRequest, bm as SendStreamingMessageResponse, bl as SendStreamingMessageSuccessResponse, bg as SetTaskPushNotificationConfigRequest, bs as SetTaskPushNotificationConfigResponse, br as SetTaskPushNotificationConfigSuccessResponse, d4 as StatusComponent, d3 as StatusUpdateSettings, cY as SummaryEvent, dd as TOOL_STATUS_VALUES, aN as Task, bO as TaskApiInsert, bN as TaskApiSelect, bP as TaskApiUpdate, by as TaskArtifact, aP as TaskArtifactUpdateEvent, b3 as TaskIdParams, ai as TaskInsert, T as TaskMetadataConfig, aW as TaskNotCancelableError, aV as TaskNotFoundError, b2 as TaskPushNotificationConfig, b4 as TaskQueryParams, bU as TaskRelationApiInsert, bT as TaskRelationApiSelect, bV as TaskRelationApiUpdate, bR as TaskRelationInsert, bQ as TaskRelationSelect, bS as TaskRelationUpdate, bi as TaskResubscriptionRequest, aj as TaskSelect, av as TaskState, aM as TaskStatus, aO as TaskStatusUpdateEvent, bM as TaskUpdate, ap as TextPart, bX as ToolApiInsert, bW as ToolApiSelect, bY as ToolApiUpdate, cT as ToolDefinition, al as ToolInsert, f as ToolMcpConfig, Z as ToolSelect, g as ToolServerCapabilities, am as ToolUpdate, aY as UnsupportedOperationError, de as VALID_RELATION_TYPES } from '../utility-DPZ_yTkY.cjs';
1
+ import { d as CredentialStoreType } from '../utility-CT2pq49U.cjs';
2
+ export { a$ as A2AError, bv as A2ARequest, bw as A2AResponse, aA as APIKeySecurityScheme, bA as AgentApiInsert, bz as AgentApiSelect, bB as AgentApiUpdate, ct as AgentArtifactComponentApiInsert, cs as AgentArtifactComponentApiSelect, cu as AgentArtifactComponentApiUpdate, cq as AgentArtifactComponentInsert, cp as AgentArtifactComponentSelect, cr as AgentArtifactComponentUpdate, aw as AgentCapabilities, aK as AgentCard, d6 as AgentConversationHistoryConfig, ck as AgentDataComponentApiInsert, cj as AgentDataComponentApiSelect, cl as AgentDataComponentApiUpdate, ch as AgentDataComponentInsert, cg as AgentDataComponentSelect, ci as AgentDataComponentUpdate, cS as AgentDefinition, bK as AgentGraphApiInsert, bJ as AgentGraphApiSelect, bL as AgentGraphApiUpdate, q as AgentGraphInsert, bI as AgentGraphSelect, r as AgentGraphUpdate, x as AgentInsert, ax as AgentProvider, bE as AgentRelationApiInsert, bD as AgentRelationApiSelect, bF as AgentRelationApiUpdate, u as AgentRelationInsert, bG as AgentRelationQuery, bC as AgentRelationSelect, v as AgentRelationUpdate, t as AgentScopeConfig, z as AgentSelect, ay as AgentSkill, cI as AgentToolRelationApiInsert, cH as AgentToolRelationApiSelect, cJ as AgentToolRelationApiUpdate, cG as AgentToolRelationInsert, cF as AgentToolRelationSelect, w as AgentToolRelationUpdate, y as AgentUpdate, cy as AllAgentSelect, cC as ApiKeyApiCreationResponse, cA as ApiKeyApiInsert, cz as ApiKeyApiSelect, cB as ApiKeyApiUpdate, J as ApiKeyCreateResult, D as ApiKeyInsert, B as ApiKeySelect, H as ApiKeyUpdate, a6 as Artifact, cn as ArtifactComponentApiInsert, cm as ArtifactComponentApiSelect, co as ArtifactComponentApiUpdate, L as ArtifactComponentInsert, K as ArtifactComponentSelect, N as ArtifactComponentUpdate, aD as AuthorizationCodeOAuthFlow, cQ as CanUseItem, bf as CancelTaskRequest, bq as CancelTaskResponse, bp as CancelTaskSuccessResponse, aE as ClientCredentialsOAuthFlow, aZ as ContentTypeNotSupportedError, cb as ContextCacheApiInsert, ca as ContextCacheApiSelect, cc as ContextCacheApiUpdate, d7 as ContextCacheEntry, Q as ContextCacheInsert, O as ContextCacheSelect, c9 as ContextCacheUpdate, c5 as ContextConfigApiInsert, c4 as ContextConfigApiSelect, c6 as ContextConfigApiUpdate, R as ContextConfigInsert, l as ContextConfigSelect, U as ContextConfigUpdate, e as ContextFetchDefinition, b_ as ConversationApiInsert, bZ as ConversationApiSelect, b$ as ConversationApiUpdate, C as ConversationHistoryConfig, W as ConversationInsert, h as ConversationMetadata, d5 as ConversationScopeOptions, V as ConversationSelect, X as ConversationUpdate, I as CreateApiKeyParams, k as CredentialReferenceApiInsert, cD as CredentialReferenceApiSelect, cE as CredentialReferenceApiUpdate, _ as CredentialReferenceInsert, Y as CredentialReferenceSelect, $ as CredentialReferenceUpdate, ce as DataComponentApiInsert, cd as DataComponentApiSelect, cf as DataComponentApiUpdate, a1 as DataComponentInsert, a0 as DataComponentSelect, a2 as DataComponentUpdate, au as DataPart, an as ExecutionContext, cw as ExternalAgentApiInsert, cv as ExternalAgentApiSelect, cx as ExternalAgentApiUpdate, a3 as ExternalAgentInsert, bH as ExternalAgentRelationApiInsert, E as ExternalAgentRelationInsert, a4 as ExternalAgentSelect, a5 as ExternalAgentUpdate, c8 as FetchConfig, c7 as FetchDefinition, aq as FileBase, at as FilePart, ar as FileWithBytes, as as FileWithUri, cP as FullGraphAgentInsert, s as FullGraphDefinition, ab as FullProjectDefinition, bh as GetTaskPushNotificationConfigRequest, bu as GetTaskPushNotificationConfigResponse, bt as GetTaskPushNotificationConfigSuccessResponse, be as GetTaskRequest, bo as GetTaskResponse, bn as GetTaskSuccessResponse, n as GraphScopeConfig, aB as HTTPAuthSecurityScheme, aF as ImplicitOAuthFlow, cR as InternalAgentDefinition, aU as InternalError, a_ as InvalidAgentResponseError, aT as InvalidParamsError, aR as InvalidRequestError, aQ as JSONParseError, b9 as JSONRPCError, bb as JSONRPCErrorResponse, b7 as JSONRPCMessage, b8 as JSONRPCRequest, ba as JSONRPCResult, cN as LedgerArtifactApiInsert, cM as LedgerArtifactApiSelect, cO as LedgerArtifactApiUpdate, cK as LedgerArtifactInsert, a7 as LedgerArtifactSelect, cL as LedgerArtifactUpdate, df as MCPServerType, m as MCPToolConfig, M as MCPTransportType, d8 as McpAuthType, d9 as McpServerAuth, db as McpServerCapabilities, ak as McpTool, dc as McpToolDefinition, da as McpTransportConfig, aL as Message, c2 as MessageApiInsert, c1 as MessageApiSelect, c3 as MessageApiUpdate, i as MessageContent, a9 as MessageInsert, j as MessageMetadata, c$ as MessageMode, bx as MessagePart, c_ as MessageRole, c0 as MessageSelect, b5 as MessageSendConfiguration, b6 as MessageSendParams, cZ as MessageType, aa as MessageUpdate, a8 as MessageVisibility, aS as MethodNotFoundError, d2 as ModelSettings, d0 as Models, aH as OAuth2SecurityScheme, aC as OAuthFlows, aI as OpenIdConnectSecurityScheme, cX as Pagination, p as PaginationConfig, ae as PaginationResult, P as Part, ao as PartBase, aG as PasswordOAuthFlow, cV as ProjectApiInsert, cU as ProjectApiSelect, cW as ProjectApiUpdate, ac as ProjectInfo, ag as ProjectInsert, d1 as ProjectModels, af as ProjectResourceCounts, o as ProjectScopeConfig, ad as ProjectSelect, ah as ProjectUpdate, b0 as PushNotificationAuthenticationInfo, b1 as PushNotificationConfig, aX as PushNotificationNotSupportedError, aJ as SecurityScheme, az as SecuritySchemeBase, bc as SendMessageRequest, bk as SendMessageResponse, bj as SendMessageSuccessResponse, bd as SendStreamingMessageRequest, bm as SendStreamingMessageResponse, bl as SendStreamingMessageSuccessResponse, bg as SetTaskPushNotificationConfigRequest, bs as SetTaskPushNotificationConfigResponse, br as SetTaskPushNotificationConfigSuccessResponse, d4 as StatusComponent, d3 as StatusUpdateSettings, cY as SummaryEvent, dd as TOOL_STATUS_VALUES, aN as Task, bO as TaskApiInsert, bN as TaskApiSelect, bP as TaskApiUpdate, by as TaskArtifact, aP as TaskArtifactUpdateEvent, b3 as TaskIdParams, ai as TaskInsert, T as TaskMetadataConfig, aW as TaskNotCancelableError, aV as TaskNotFoundError, b2 as TaskPushNotificationConfig, b4 as TaskQueryParams, bU as TaskRelationApiInsert, bT as TaskRelationApiSelect, bV as TaskRelationApiUpdate, bR as TaskRelationInsert, bQ as TaskRelationSelect, bS as TaskRelationUpdate, bi as TaskResubscriptionRequest, aj as TaskSelect, av as TaskState, aM as TaskStatus, aO as TaskStatusUpdateEvent, bM as TaskUpdate, ap as TextPart, bX as ToolApiInsert, bW as ToolApiSelect, bY as ToolApiUpdate, cT as ToolDefinition, al as ToolInsert, f as ToolMcpConfig, Z as ToolSelect, g as ToolServerCapabilities, am as ToolUpdate, aY as UnsupportedOperationError, de as VALID_RELATION_TYPES } from '../utility-CT2pq49U.cjs';
3
3
  import { Context } from 'hono';
4
4
  import 'zod';
5
5
  import 'drizzle-zod';
@@ -1,5 +1,5 @@
1
- import { d as CredentialStoreType } from '../utility-DPZ_yTkY.js';
2
- export { a$ as A2AError, bv as A2ARequest, bw as A2AResponse, aA as APIKeySecurityScheme, bA as AgentApiInsert, bz as AgentApiSelect, bB as AgentApiUpdate, ct as AgentArtifactComponentApiInsert, cs as AgentArtifactComponentApiSelect, cu as AgentArtifactComponentApiUpdate, cq as AgentArtifactComponentInsert, cp as AgentArtifactComponentSelect, cr as AgentArtifactComponentUpdate, aw as AgentCapabilities, aK as AgentCard, d6 as AgentConversationHistoryConfig, ck as AgentDataComponentApiInsert, cj as AgentDataComponentApiSelect, cl as AgentDataComponentApiUpdate, ch as AgentDataComponentInsert, cg as AgentDataComponentSelect, ci as AgentDataComponentUpdate, cS as AgentDefinition, bK as AgentGraphApiInsert, bJ as AgentGraphApiSelect, bL as AgentGraphApiUpdate, q as AgentGraphInsert, bI as AgentGraphSelect, r as AgentGraphUpdate, x as AgentInsert, ax as AgentProvider, bE as AgentRelationApiInsert, bD as AgentRelationApiSelect, bF as AgentRelationApiUpdate, u as AgentRelationInsert, bG as AgentRelationQuery, bC as AgentRelationSelect, v as AgentRelationUpdate, t as AgentScopeConfig, z as AgentSelect, ay as AgentSkill, cI as AgentToolRelationApiInsert, cH as AgentToolRelationApiSelect, cJ as AgentToolRelationApiUpdate, cG as AgentToolRelationInsert, cF as AgentToolRelationSelect, w as AgentToolRelationUpdate, y as AgentUpdate, cy as AllAgentSelect, cC as ApiKeyApiCreationResponse, cA as ApiKeyApiInsert, cz as ApiKeyApiSelect, cB as ApiKeyApiUpdate, J as ApiKeyCreateResult, D as ApiKeyInsert, B as ApiKeySelect, H as ApiKeyUpdate, a6 as Artifact, cn as ArtifactComponentApiInsert, cm as ArtifactComponentApiSelect, co as ArtifactComponentApiUpdate, L as ArtifactComponentInsert, K as ArtifactComponentSelect, N as ArtifactComponentUpdate, aD as AuthorizationCodeOAuthFlow, cQ as CanUseItem, bf as CancelTaskRequest, bq as CancelTaskResponse, bp as CancelTaskSuccessResponse, aE as ClientCredentialsOAuthFlow, aZ as ContentTypeNotSupportedError, cb as ContextCacheApiInsert, ca as ContextCacheApiSelect, cc as ContextCacheApiUpdate, d7 as ContextCacheEntry, Q as ContextCacheInsert, O as ContextCacheSelect, c9 as ContextCacheUpdate, c5 as ContextConfigApiInsert, c4 as ContextConfigApiSelect, c6 as ContextConfigApiUpdate, R as ContextConfigInsert, l as ContextConfigSelect, U as ContextConfigUpdate, e as ContextFetchDefinition, b_ as ConversationApiInsert, bZ as ConversationApiSelect, b$ as ConversationApiUpdate, C as ConversationHistoryConfig, W as ConversationInsert, h as ConversationMetadata, d5 as ConversationScopeOptions, V as ConversationSelect, X as ConversationUpdate, I as CreateApiKeyParams, k as CredentialReferenceApiInsert, cD as CredentialReferenceApiSelect, cE as CredentialReferenceApiUpdate, _ as CredentialReferenceInsert, Y as CredentialReferenceSelect, $ as CredentialReferenceUpdate, ce as DataComponentApiInsert, cd as DataComponentApiSelect, cf as DataComponentApiUpdate, a1 as DataComponentInsert, a0 as DataComponentSelect, a2 as DataComponentUpdate, au as DataPart, an as ExecutionContext, cw as ExternalAgentApiInsert, cv as ExternalAgentApiSelect, cx as ExternalAgentApiUpdate, a3 as ExternalAgentInsert, bH as ExternalAgentRelationApiInsert, E as ExternalAgentRelationInsert, a4 as ExternalAgentSelect, a5 as ExternalAgentUpdate, c8 as FetchConfig, c7 as FetchDefinition, aq as FileBase, at as FilePart, ar as FileWithBytes, as as FileWithUri, cP as FullGraphAgentInsert, s as FullGraphDefinition, ab as FullProjectDefinition, bh as GetTaskPushNotificationConfigRequest, bu as GetTaskPushNotificationConfigResponse, bt as GetTaskPushNotificationConfigSuccessResponse, be as GetTaskRequest, bo as GetTaskResponse, bn as GetTaskSuccessResponse, n as GraphScopeConfig, aB as HTTPAuthSecurityScheme, aF as ImplicitOAuthFlow, cR as InternalAgentDefinition, aU as InternalError, a_ as InvalidAgentResponseError, aT as InvalidParamsError, aR as InvalidRequestError, aQ as JSONParseError, b9 as JSONRPCError, bb as JSONRPCErrorResponse, b7 as JSONRPCMessage, b8 as JSONRPCRequest, ba as JSONRPCResult, cN as LedgerArtifactApiInsert, cM as LedgerArtifactApiSelect, cO as LedgerArtifactApiUpdate, cK as LedgerArtifactInsert, a7 as LedgerArtifactSelect, cL as LedgerArtifactUpdate, df as MCPServerType, m as MCPToolConfig, M as MCPTransportType, d8 as McpAuthType, d9 as McpServerAuth, db as McpServerCapabilities, ak as McpTool, dc as McpToolDefinition, da as McpTransportConfig, aL as Message, c2 as MessageApiInsert, c1 as MessageApiSelect, c3 as MessageApiUpdate, i as MessageContent, a9 as MessageInsert, j as MessageMetadata, c$ as MessageMode, bx as MessagePart, c_ as MessageRole, c0 as MessageSelect, b5 as MessageSendConfiguration, b6 as MessageSendParams, cZ as MessageType, aa as MessageUpdate, a8 as MessageVisibility, aS as MethodNotFoundError, d2 as ModelSettings, d0 as Models, aH as OAuth2SecurityScheme, aC as OAuthFlows, aI as OpenIdConnectSecurityScheme, cX as Pagination, p as PaginationConfig, ae as PaginationResult, P as Part, ao as PartBase, aG as PasswordOAuthFlow, cV as ProjectApiInsert, cU as ProjectApiSelect, cW as ProjectApiUpdate, ac as ProjectInfo, ag as ProjectInsert, d1 as ProjectModels, af as ProjectResourceCounts, o as ProjectScopeConfig, ad as ProjectSelect, ah as ProjectUpdate, b0 as PushNotificationAuthenticationInfo, b1 as PushNotificationConfig, aX as PushNotificationNotSupportedError, aJ as SecurityScheme, az as SecuritySchemeBase, bc as SendMessageRequest, bk as SendMessageResponse, bj as SendMessageSuccessResponse, bd as SendStreamingMessageRequest, bm as SendStreamingMessageResponse, bl as SendStreamingMessageSuccessResponse, bg as SetTaskPushNotificationConfigRequest, bs as SetTaskPushNotificationConfigResponse, br as SetTaskPushNotificationConfigSuccessResponse, d4 as StatusComponent, d3 as StatusUpdateSettings, cY as SummaryEvent, dd as TOOL_STATUS_VALUES, aN as Task, bO as TaskApiInsert, bN as TaskApiSelect, bP as TaskApiUpdate, by as TaskArtifact, aP as TaskArtifactUpdateEvent, b3 as TaskIdParams, ai as TaskInsert, T as TaskMetadataConfig, aW as TaskNotCancelableError, aV as TaskNotFoundError, b2 as TaskPushNotificationConfig, b4 as TaskQueryParams, bU as TaskRelationApiInsert, bT as TaskRelationApiSelect, bV as TaskRelationApiUpdate, bR as TaskRelationInsert, bQ as TaskRelationSelect, bS as TaskRelationUpdate, bi as TaskResubscriptionRequest, aj as TaskSelect, av as TaskState, aM as TaskStatus, aO as TaskStatusUpdateEvent, bM as TaskUpdate, ap as TextPart, bX as ToolApiInsert, bW as ToolApiSelect, bY as ToolApiUpdate, cT as ToolDefinition, al as ToolInsert, f as ToolMcpConfig, Z as ToolSelect, g as ToolServerCapabilities, am as ToolUpdate, aY as UnsupportedOperationError, de as VALID_RELATION_TYPES } from '../utility-DPZ_yTkY.js';
1
+ import { d as CredentialStoreType } from '../utility-CT2pq49U.js';
2
+ export { a$ as A2AError, bv as A2ARequest, bw as A2AResponse, aA as APIKeySecurityScheme, bA as AgentApiInsert, bz as AgentApiSelect, bB as AgentApiUpdate, ct as AgentArtifactComponentApiInsert, cs as AgentArtifactComponentApiSelect, cu as AgentArtifactComponentApiUpdate, cq as AgentArtifactComponentInsert, cp as AgentArtifactComponentSelect, cr as AgentArtifactComponentUpdate, aw as AgentCapabilities, aK as AgentCard, d6 as AgentConversationHistoryConfig, ck as AgentDataComponentApiInsert, cj as AgentDataComponentApiSelect, cl as AgentDataComponentApiUpdate, ch as AgentDataComponentInsert, cg as AgentDataComponentSelect, ci as AgentDataComponentUpdate, cS as AgentDefinition, bK as AgentGraphApiInsert, bJ as AgentGraphApiSelect, bL as AgentGraphApiUpdate, q as AgentGraphInsert, bI as AgentGraphSelect, r as AgentGraphUpdate, x as AgentInsert, ax as AgentProvider, bE as AgentRelationApiInsert, bD as AgentRelationApiSelect, bF as AgentRelationApiUpdate, u as AgentRelationInsert, bG as AgentRelationQuery, bC as AgentRelationSelect, v as AgentRelationUpdate, t as AgentScopeConfig, z as AgentSelect, ay as AgentSkill, cI as AgentToolRelationApiInsert, cH as AgentToolRelationApiSelect, cJ as AgentToolRelationApiUpdate, cG as AgentToolRelationInsert, cF as AgentToolRelationSelect, w as AgentToolRelationUpdate, y as AgentUpdate, cy as AllAgentSelect, cC as ApiKeyApiCreationResponse, cA as ApiKeyApiInsert, cz as ApiKeyApiSelect, cB as ApiKeyApiUpdate, J as ApiKeyCreateResult, D as ApiKeyInsert, B as ApiKeySelect, H as ApiKeyUpdate, a6 as Artifact, cn as ArtifactComponentApiInsert, cm as ArtifactComponentApiSelect, co as ArtifactComponentApiUpdate, L as ArtifactComponentInsert, K as ArtifactComponentSelect, N as ArtifactComponentUpdate, aD as AuthorizationCodeOAuthFlow, cQ as CanUseItem, bf as CancelTaskRequest, bq as CancelTaskResponse, bp as CancelTaskSuccessResponse, aE as ClientCredentialsOAuthFlow, aZ as ContentTypeNotSupportedError, cb as ContextCacheApiInsert, ca as ContextCacheApiSelect, cc as ContextCacheApiUpdate, d7 as ContextCacheEntry, Q as ContextCacheInsert, O as ContextCacheSelect, c9 as ContextCacheUpdate, c5 as ContextConfigApiInsert, c4 as ContextConfigApiSelect, c6 as ContextConfigApiUpdate, R as ContextConfigInsert, l as ContextConfigSelect, U as ContextConfigUpdate, e as ContextFetchDefinition, b_ as ConversationApiInsert, bZ as ConversationApiSelect, b$ as ConversationApiUpdate, C as ConversationHistoryConfig, W as ConversationInsert, h as ConversationMetadata, d5 as ConversationScopeOptions, V as ConversationSelect, X as ConversationUpdate, I as CreateApiKeyParams, k as CredentialReferenceApiInsert, cD as CredentialReferenceApiSelect, cE as CredentialReferenceApiUpdate, _ as CredentialReferenceInsert, Y as CredentialReferenceSelect, $ as CredentialReferenceUpdate, ce as DataComponentApiInsert, cd as DataComponentApiSelect, cf as DataComponentApiUpdate, a1 as DataComponentInsert, a0 as DataComponentSelect, a2 as DataComponentUpdate, au as DataPart, an as ExecutionContext, cw as ExternalAgentApiInsert, cv as ExternalAgentApiSelect, cx as ExternalAgentApiUpdate, a3 as ExternalAgentInsert, bH as ExternalAgentRelationApiInsert, E as ExternalAgentRelationInsert, a4 as ExternalAgentSelect, a5 as ExternalAgentUpdate, c8 as FetchConfig, c7 as FetchDefinition, aq as FileBase, at as FilePart, ar as FileWithBytes, as as FileWithUri, cP as FullGraphAgentInsert, s as FullGraphDefinition, ab as FullProjectDefinition, bh as GetTaskPushNotificationConfigRequest, bu as GetTaskPushNotificationConfigResponse, bt as GetTaskPushNotificationConfigSuccessResponse, be as GetTaskRequest, bo as GetTaskResponse, bn as GetTaskSuccessResponse, n as GraphScopeConfig, aB as HTTPAuthSecurityScheme, aF as ImplicitOAuthFlow, cR as InternalAgentDefinition, aU as InternalError, a_ as InvalidAgentResponseError, aT as InvalidParamsError, aR as InvalidRequestError, aQ as JSONParseError, b9 as JSONRPCError, bb as JSONRPCErrorResponse, b7 as JSONRPCMessage, b8 as JSONRPCRequest, ba as JSONRPCResult, cN as LedgerArtifactApiInsert, cM as LedgerArtifactApiSelect, cO as LedgerArtifactApiUpdate, cK as LedgerArtifactInsert, a7 as LedgerArtifactSelect, cL as LedgerArtifactUpdate, df as MCPServerType, m as MCPToolConfig, M as MCPTransportType, d8 as McpAuthType, d9 as McpServerAuth, db as McpServerCapabilities, ak as McpTool, dc as McpToolDefinition, da as McpTransportConfig, aL as Message, c2 as MessageApiInsert, c1 as MessageApiSelect, c3 as MessageApiUpdate, i as MessageContent, a9 as MessageInsert, j as MessageMetadata, c$ as MessageMode, bx as MessagePart, c_ as MessageRole, c0 as MessageSelect, b5 as MessageSendConfiguration, b6 as MessageSendParams, cZ as MessageType, aa as MessageUpdate, a8 as MessageVisibility, aS as MethodNotFoundError, d2 as ModelSettings, d0 as Models, aH as OAuth2SecurityScheme, aC as OAuthFlows, aI as OpenIdConnectSecurityScheme, cX as Pagination, p as PaginationConfig, ae as PaginationResult, P as Part, ao as PartBase, aG as PasswordOAuthFlow, cV as ProjectApiInsert, cU as ProjectApiSelect, cW as ProjectApiUpdate, ac as ProjectInfo, ag as ProjectInsert, d1 as ProjectModels, af as ProjectResourceCounts, o as ProjectScopeConfig, ad as ProjectSelect, ah as ProjectUpdate, b0 as PushNotificationAuthenticationInfo, b1 as PushNotificationConfig, aX as PushNotificationNotSupportedError, aJ as SecurityScheme, az as SecuritySchemeBase, bc as SendMessageRequest, bk as SendMessageResponse, bj as SendMessageSuccessResponse, bd as SendStreamingMessageRequest, bm as SendStreamingMessageResponse, bl as SendStreamingMessageSuccessResponse, bg as SetTaskPushNotificationConfigRequest, bs as SetTaskPushNotificationConfigResponse, br as SetTaskPushNotificationConfigSuccessResponse, d4 as StatusComponent, d3 as StatusUpdateSettings, cY as SummaryEvent, dd as TOOL_STATUS_VALUES, aN as Task, bO as TaskApiInsert, bN as TaskApiSelect, bP as TaskApiUpdate, by as TaskArtifact, aP as TaskArtifactUpdateEvent, b3 as TaskIdParams, ai as TaskInsert, T as TaskMetadataConfig, aW as TaskNotCancelableError, aV as TaskNotFoundError, b2 as TaskPushNotificationConfig, b4 as TaskQueryParams, bU as TaskRelationApiInsert, bT as TaskRelationApiSelect, bV as TaskRelationApiUpdate, bR as TaskRelationInsert, bQ as TaskRelationSelect, bS as TaskRelationUpdate, bi as TaskResubscriptionRequest, aj as TaskSelect, av as TaskState, aM as TaskStatus, aO as TaskStatusUpdateEvent, bM as TaskUpdate, ap as TextPart, bX as ToolApiInsert, bW as ToolApiSelect, bY as ToolApiUpdate, cT as ToolDefinition, al as ToolInsert, f as ToolMcpConfig, Z as ToolSelect, g as ToolServerCapabilities, am as ToolUpdate, aY as UnsupportedOperationError, de as VALID_RELATION_TYPES } from '../utility-CT2pq49U.js';
3
3
  import { Context } from 'hono';
4
4
  import 'zod';
5
5
  import 'drizzle-zod';
@@ -6302,6 +6302,25 @@ declare const AgentToolRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
6302
6302
  }, {}, {
6303
6303
  $type: string[] | null;
6304
6304
  }>;
6305
+ headers: drizzle_orm_sqlite_core.SQLiteColumn<{
6306
+ name: "headers";
6307
+ tableName: "agent_tool_relations";
6308
+ dataType: "json";
6309
+ columnType: "SQLiteBlobJson";
6310
+ data: Record<string, string> | null;
6311
+ driverParam: Buffer<ArrayBufferLike>;
6312
+ notNull: false;
6313
+ hasDefault: false;
6314
+ isPrimaryKey: false;
6315
+ isAutoincrement: false;
6316
+ hasRuntimeDefault: false;
6317
+ enumValues: undefined;
6318
+ baseColumn: never;
6319
+ identity: undefined;
6320
+ generated: undefined;
6321
+ }, {}, {
6322
+ $type: Record<string, string> | null;
6323
+ }>;
6305
6324
  createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
6306
6325
  name: "created_at";
6307
6326
  tableName: "agent_tool_relations";
@@ -6351,6 +6370,7 @@ declare const AgentToolRelationInsertSchema: z.ZodObject<{
6351
6370
  agentId: z.ZodString;
6352
6371
  toolId: z.ZodString;
6353
6372
  selectedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
6373
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
6354
6374
  }, {
6355
6375
  out: {};
6356
6376
  in: {};
@@ -6365,6 +6385,7 @@ declare const AgentToolRelationUpdateSchema: z.ZodObject<{
6365
6385
  agentId: z.ZodOptional<z.ZodString>;
6366
6386
  toolId: z.ZodOptional<z.ZodString>;
6367
6387
  selectedTools: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>;
6388
+ headers: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>;
6368
6389
  }, {
6369
6390
  out: {};
6370
6391
  in: {};
@@ -6374,6 +6395,7 @@ declare const AgentToolRelationApiSelectSchema: z.ZodObject<{
6374
6395
  createdAt: z.ZodString;
6375
6396
  updatedAt: z.ZodString;
6376
6397
  toolId: z.ZodString;
6398
+ headers: z.ZodNullable<z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>;
6377
6399
  selectedTools: z.ZodNullable<z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>;
6378
6400
  agentId: z.ZodString;
6379
6401
  }, z.core.$strip>;
@@ -6382,6 +6404,7 @@ declare const AgentToolRelationApiInsertSchema: z.ZodObject<{
6382
6404
  createdAt: z.ZodOptional<z.ZodString>;
6383
6405
  updatedAt: z.ZodOptional<z.ZodString>;
6384
6406
  toolId: z.ZodString;
6407
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
6385
6408
  selectedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
6386
6409
  agentId: z.ZodString;
6387
6410
  }, z.core.$strip>;
@@ -6390,6 +6413,7 @@ declare const AgentToolRelationApiUpdateSchema: z.ZodObject<{
6390
6413
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
6391
6414
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
6392
6415
  toolId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6416
+ headers: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>>;
6393
6417
  selectedTools: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>>;
6394
6418
  agentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6395
6419
  }, z.core.$strip>;
@@ -7143,6 +7167,7 @@ declare const StatusUpdateSchema: z.ZodObject<{
7143
7167
  declare const CanUseItemSchema: z.ZodObject<{
7144
7168
  toolId: z.ZodString;
7145
7169
  toolSelection: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
7170
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7146
7171
  }, z.core.$strip>;
7147
7172
  declare const FullGraphAgentInsertSchema: z.ZodObject<{
7148
7173
  id: z.ZodString;
@@ -7179,6 +7204,7 @@ declare const FullGraphAgentInsertSchema: z.ZodObject<{
7179
7204
  canUse: z.ZodArray<z.ZodObject<{
7180
7205
  toolId: z.ZodString;
7181
7206
  toolSelection: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
7207
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7182
7208
  }, z.core.$strip>>;
7183
7209
  dataComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
7184
7210
  artifactComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -7228,6 +7254,7 @@ declare const FullGraphDefinitionSchema: z.ZodObject<{
7228
7254
  canUse: z.ZodArray<z.ZodObject<{
7229
7255
  toolId: z.ZodString;
7230
7256
  toolSelection: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
7257
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7231
7258
  }, z.core.$strip>>;
7232
7259
  dataComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
7233
7260
  artifactComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -7384,6 +7411,7 @@ declare const GraphWithinContextOfProjectSchema: z.ZodObject<{
7384
7411
  canUse: z.ZodArray<z.ZodObject<{
7385
7412
  toolId: z.ZodString;
7386
7413
  toolSelection: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
7414
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7387
7415
  }, z.core.$strip>>;
7388
7416
  dataComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
7389
7417
  artifactComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -7939,6 +7967,7 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
7939
7967
  canUse: z.ZodArray<z.ZodObject<{
7940
7968
  toolId: z.ZodString;
7941
7969
  toolSelection: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
7970
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7942
7971
  }, z.core.$strip>>;
7943
7972
  dataComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
7944
7973
  artifactComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -6302,6 +6302,25 @@ declare const AgentToolRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
6302
6302
  }, {}, {
6303
6303
  $type: string[] | null;
6304
6304
  }>;
6305
+ headers: drizzle_orm_sqlite_core.SQLiteColumn<{
6306
+ name: "headers";
6307
+ tableName: "agent_tool_relations";
6308
+ dataType: "json";
6309
+ columnType: "SQLiteBlobJson";
6310
+ data: Record<string, string> | null;
6311
+ driverParam: Buffer<ArrayBufferLike>;
6312
+ notNull: false;
6313
+ hasDefault: false;
6314
+ isPrimaryKey: false;
6315
+ isAutoincrement: false;
6316
+ hasRuntimeDefault: false;
6317
+ enumValues: undefined;
6318
+ baseColumn: never;
6319
+ identity: undefined;
6320
+ generated: undefined;
6321
+ }, {}, {
6322
+ $type: Record<string, string> | null;
6323
+ }>;
6305
6324
  createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
6306
6325
  name: "created_at";
6307
6326
  tableName: "agent_tool_relations";
@@ -6351,6 +6370,7 @@ declare const AgentToolRelationInsertSchema: z.ZodObject<{
6351
6370
  agentId: z.ZodString;
6352
6371
  toolId: z.ZodString;
6353
6372
  selectedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
6373
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
6354
6374
  }, {
6355
6375
  out: {};
6356
6376
  in: {};
@@ -6365,6 +6385,7 @@ declare const AgentToolRelationUpdateSchema: z.ZodObject<{
6365
6385
  agentId: z.ZodOptional<z.ZodString>;
6366
6386
  toolId: z.ZodOptional<z.ZodString>;
6367
6387
  selectedTools: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>;
6388
+ headers: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>;
6368
6389
  }, {
6369
6390
  out: {};
6370
6391
  in: {};
@@ -6374,6 +6395,7 @@ declare const AgentToolRelationApiSelectSchema: z.ZodObject<{
6374
6395
  createdAt: z.ZodString;
6375
6396
  updatedAt: z.ZodString;
6376
6397
  toolId: z.ZodString;
6398
+ headers: z.ZodNullable<z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>;
6377
6399
  selectedTools: z.ZodNullable<z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>;
6378
6400
  agentId: z.ZodString;
6379
6401
  }, z.core.$strip>;
@@ -6382,6 +6404,7 @@ declare const AgentToolRelationApiInsertSchema: z.ZodObject<{
6382
6404
  createdAt: z.ZodOptional<z.ZodString>;
6383
6405
  updatedAt: z.ZodOptional<z.ZodString>;
6384
6406
  toolId: z.ZodString;
6407
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
6385
6408
  selectedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
6386
6409
  agentId: z.ZodString;
6387
6410
  }, z.core.$strip>;
@@ -6390,6 +6413,7 @@ declare const AgentToolRelationApiUpdateSchema: z.ZodObject<{
6390
6413
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
6391
6414
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
6392
6415
  toolId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6416
+ headers: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>>;
6393
6417
  selectedTools: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>>;
6394
6418
  agentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6395
6419
  }, z.core.$strip>;
@@ -7143,6 +7167,7 @@ declare const StatusUpdateSchema: z.ZodObject<{
7143
7167
  declare const CanUseItemSchema: z.ZodObject<{
7144
7168
  toolId: z.ZodString;
7145
7169
  toolSelection: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
7170
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7146
7171
  }, z.core.$strip>;
7147
7172
  declare const FullGraphAgentInsertSchema: z.ZodObject<{
7148
7173
  id: z.ZodString;
@@ -7179,6 +7204,7 @@ declare const FullGraphAgentInsertSchema: z.ZodObject<{
7179
7204
  canUse: z.ZodArray<z.ZodObject<{
7180
7205
  toolId: z.ZodString;
7181
7206
  toolSelection: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
7207
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7182
7208
  }, z.core.$strip>>;
7183
7209
  dataComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
7184
7210
  artifactComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -7228,6 +7254,7 @@ declare const FullGraphDefinitionSchema: z.ZodObject<{
7228
7254
  canUse: z.ZodArray<z.ZodObject<{
7229
7255
  toolId: z.ZodString;
7230
7256
  toolSelection: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
7257
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7231
7258
  }, z.core.$strip>>;
7232
7259
  dataComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
7233
7260
  artifactComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -7384,6 +7411,7 @@ declare const GraphWithinContextOfProjectSchema: z.ZodObject<{
7384
7411
  canUse: z.ZodArray<z.ZodObject<{
7385
7412
  toolId: z.ZodString;
7386
7413
  toolSelection: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
7414
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7387
7415
  }, z.core.$strip>>;
7388
7416
  dataComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
7389
7417
  artifactComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -7939,6 +7967,7 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
7939
7967
  canUse: z.ZodArray<z.ZodObject<{
7940
7968
  toolId: z.ZodString;
7941
7969
  toolSelection: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
7970
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7942
7971
  }, z.core.$strip>>;
7943
7972
  dataComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
7944
7973
  artifactComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -393,6 +393,7 @@ var agentToolRelations = sqliteCore.sqliteTable(
393
393
  id: sqliteCore.text("id").notNull(),
394
394
  toolId: sqliteCore.text("tool_id").notNull(),
395
395
  selectedTools: sqliteCore.blob("selected_tools", { mode: "json" }).$type(),
396
+ headers: sqliteCore.blob("headers", { mode: "json" }).$type(),
396
397
  createdAt: sqliteCore.text("created_at").notNull().default(drizzleOrm.sql`CURRENT_TIMESTAMP`),
397
398
  updatedAt: sqliteCore.text("updated_at").notNull().default(drizzleOrm.sql`CURRENT_TIMESTAMP`)
398
399
  },
@@ -1346,7 +1347,8 @@ var AgentToolRelationInsertSchema = drizzleZod.createInsertSchema(agentToolRelat
1346
1347
  id: resourceIdSchema,
1347
1348
  agentId: resourceIdSchema,
1348
1349
  toolId: resourceIdSchema,
1349
- selectedTools: zodOpenapi.z.array(zodOpenapi.z.string()).nullish()
1350
+ selectedTools: zodOpenapi.z.array(zodOpenapi.z.string()).nullish(),
1351
+ headers: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.string()).nullish()
1350
1352
  });
1351
1353
  var AgentToolRelationUpdateSchema = AgentToolRelationInsertSchema.partial();
1352
1354
  var AgentToolRelationApiSelectSchema = createGraphScopedApiSchema(
@@ -1382,7 +1384,8 @@ var StatusUpdateSchema = zodOpenapi.z.object({
1382
1384
  });
1383
1385
  var CanUseItemSchema = zodOpenapi.z.object({
1384
1386
  toolId: zodOpenapi.z.string(),
1385
- toolSelection: zodOpenapi.z.array(zodOpenapi.z.string()).nullable().optional()
1387
+ toolSelection: zodOpenapi.z.array(zodOpenapi.z.string()).nullish(),
1388
+ headers: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.string()).nullish()
1386
1389
  });
1387
1390
  var FullGraphAgentInsertSchema = AgentApiInsertSchema.extend({
1388
1391
  type: zodOpenapi.z.literal("internal"),
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { cS as AgentDefinition, cR as InternalAgentDefinition, cw as ExternalAgentApiInsert, fq as FullGraphDefinitionSchema, s as FullGraphDefinition } from '../utility-DPZ_yTkY.cjs';
3
- export { ds as AgentApiInsertSchema, dr as AgentApiSelectSchema, dt as AgentApiUpdateSchema, eD as AgentArtifactComponentApiInsertSchema, eC as AgentArtifactComponentApiSelectSchema, eE as AgentArtifactComponentApiUpdateSchema, eA as AgentArtifactComponentInsertSchema, ez as AgentArtifactComponentSelectSchema, eB as AgentArtifactComponentUpdateSchema, er as AgentDataComponentApiInsertSchema, eq as AgentDataComponentApiSelectSchema, es as AgentDataComponentApiUpdateSchema, eo as AgentDataComponentInsertSchema, en as AgentDataComponentSelectSchema, ep as AgentDataComponentUpdateSchema, dH as AgentGraphApiInsertSchema, dG as AgentGraphApiSelectSchema, dI as AgentGraphApiUpdateSchema, dE as AgentGraphInsertSchema, dD as AgentGraphSelectSchema, dF as AgentGraphUpdateSchema, dp as AgentInsertSchema, dy as AgentRelationApiInsertSchema, dx as AgentRelationApiSelectSchema, dz as AgentRelationApiUpdateSchema, dv as AgentRelationInsertSchema, dA as AgentRelationQuerySchema, du as AgentRelationSelectSchema, dw as AgentRelationUpdateSchema, dn as AgentSelectSchema, c as AgentStopWhen, A as AgentStopWhenSchema, ff as AgentToolRelationApiInsertSchema, fe as AgentToolRelationApiSelectSchema, fg as AgentToolRelationApiUpdateSchema, fc as AgentToolRelationInsertSchema, fb as AgentToolRelationSelectSchema, fd as AgentToolRelationUpdateSchema, dq as AgentUpdateSchema, eL as AllAgentSchema, eQ as ApiKeyApiCreationResponseSchema, eR as ApiKeyApiInsertSchema, eP as ApiKeyApiSelectSchema, eS as ApiKeyApiUpdateSchema, eN as ApiKeyInsertSchema, eM as ApiKeySelectSchema, eO as ApiKeyUpdateSchema, ex as ArtifactComponentApiInsertSchema, ew as ArtifactComponentApiSelectSchema, ey as ArtifactComponentApiUpdateSchema, eu as ArtifactComponentInsertSchema, et as ArtifactComponentSelectSchema, ev as ArtifactComponentUpdateSchema, fp as CanUseItemSchema, ee as ContextCacheApiInsertSchema, ed as ContextCacheApiSelectSchema, ef as ContextCacheApiUpdateSchema, eb as ContextCacheInsertSchema, ea as ContextCacheSelectSchema, ec as ContextCacheUpdateSchema, f9 as ContextConfigApiInsertSchema, f8 as ContextConfigApiSelectSchema, fa as ContextConfigApiUpdateSchema, f6 as ContextConfigInsertSchema, f5 as ContextConfigSelectSchema, f7 as ContextConfigUpdateSchema, e2 as ConversationApiInsertSchema, e1 as ConversationApiSelectSchema, e3 as ConversationApiUpdateSchema, d$ as ConversationInsertSchema, d_ as ConversationSelectSchema, e0 as ConversationUpdateSchema, eX as CredentialReferenceApiInsertSchema, eW as CredentialReferenceApiSelectSchema, eY as CredentialReferenceApiUpdateSchema, eU as CredentialReferenceInsertSchema, eT as CredentialReferenceSelectSchema, eV as CredentialReferenceUpdateSchema, el as DataComponentApiInsertSchema, ek as DataComponentApiSelectSchema, em as DataComponentApiUpdateSchema, ei as DataComponentBaseSchema, eh as DataComponentInsertSchema, eg as DataComponentSelectSchema, ej as DataComponentUpdateSchema, fv as ErrorResponseSchema, fw as ExistsResponseSchema, eJ as ExternalAgentApiInsertSchema, eI as ExternalAgentApiSelectSchema, eK as ExternalAgentApiUpdateSchema, eG as ExternalAgentInsertSchema, dC as ExternalAgentRelationApiInsertSchema, dB as ExternalAgentRelationInsertSchema, eF as ExternalAgentSelectSchema, eH as ExternalAgentUpdateSchema, f3 as FetchConfigSchema, f4 as FetchDefinitionSchema, F as FullGraphAgentInsertSchema, fE as FullProjectDefinitionSchema, b as GraphStopWhen, G as GraphStopWhenSchema, fr as GraphWithinContextOfProjectSchema, fF as HeadersScopeSchema, fM as IdParamsSchema, fl as LedgerArtifactApiInsertSchema, fk as LedgerArtifactApiSelectSchema, fm as LedgerArtifactApiUpdateSchema, fi as LedgerArtifactInsertSchema, fh as LedgerArtifactSelectSchema, fj as LedgerArtifactUpdateSchema, ft as ListResponseSchema, dh as MAX_ID_LENGTH, e_ as MCPToolConfigSchema, dg as MIN_ID_LENGTH, dX as McpToolDefinitionSchema, eZ as McpToolSchema, dV as McpTransportConfigSchema, e8 as MessageApiInsertSchema, e7 as MessageApiSelectSchema, e9 as MessageApiUpdateSchema, e5 as MessageInsertSchema, e4 as MessageSelectSchema, e6 as MessageUpdateSchema, dl as ModelSchema, dk as ModelSettingsSchema, fN as PaginationQueryParamsSchema, fs as PaginationSchema, fC as ProjectApiInsertSchema, fB as ProjectApiSelectSchema, fD as ProjectApiUpdateSchema, fz as ProjectInsertSchema, dm as ProjectModelSchema, fy as ProjectSelectSchema, fA as ProjectUpdateSchema, fx as RemovedResponseSchema, fu as SingleResponseSchema, fn as StatusComponentSchema, fo as StatusUpdateSchema, a as StopWhen, S as StopWhenSchema, dN as TaskApiInsertSchema, dM as TaskApiSelectSchema, dO as TaskApiUpdateSchema, dK as TaskInsertSchema, dT as TaskRelationApiInsertSchema, dS as TaskRelationApiSelectSchema, dU as TaskRelationApiUpdateSchema, dQ as TaskRelationInsertSchema, dP as TaskRelationSelectSchema, dR as TaskRelationUpdateSchema, dJ as TaskSelectSchema, dL as TaskUpdateSchema, fL as TenantIdParamsSchema, fG as TenantParamsSchema, fJ as TenantProjectGraphIdParamsSchema, fI as TenantProjectGraphParamsSchema, fK as TenantProjectIdParamsSchema, fH as TenantProjectParamsSchema, f1 as ToolApiInsertSchema, f0 as ToolApiSelectSchema, f2 as ToolApiUpdateSchema, dZ as ToolInsertSchema, dY as ToolSelectSchema, dW as ToolStatusSchema, e$ as ToolUpdateSchema, di as URL_SAFE_ID_PATTERN, dj as resourceIdSchema } from '../utility-DPZ_yTkY.cjs';
2
+ import { cS as AgentDefinition, cR as InternalAgentDefinition, cw as ExternalAgentApiInsert, fq as FullGraphDefinitionSchema, s as FullGraphDefinition } from '../utility-CT2pq49U.cjs';
3
+ export { ds as AgentApiInsertSchema, dr as AgentApiSelectSchema, dt as AgentApiUpdateSchema, eD as AgentArtifactComponentApiInsertSchema, eC as AgentArtifactComponentApiSelectSchema, eE as AgentArtifactComponentApiUpdateSchema, eA as AgentArtifactComponentInsertSchema, ez as AgentArtifactComponentSelectSchema, eB as AgentArtifactComponentUpdateSchema, er as AgentDataComponentApiInsertSchema, eq as AgentDataComponentApiSelectSchema, es as AgentDataComponentApiUpdateSchema, eo as AgentDataComponentInsertSchema, en as AgentDataComponentSelectSchema, ep as AgentDataComponentUpdateSchema, dH as AgentGraphApiInsertSchema, dG as AgentGraphApiSelectSchema, dI as AgentGraphApiUpdateSchema, dE as AgentGraphInsertSchema, dD as AgentGraphSelectSchema, dF as AgentGraphUpdateSchema, dp as AgentInsertSchema, dy as AgentRelationApiInsertSchema, dx as AgentRelationApiSelectSchema, dz as AgentRelationApiUpdateSchema, dv as AgentRelationInsertSchema, dA as AgentRelationQuerySchema, du as AgentRelationSelectSchema, dw as AgentRelationUpdateSchema, dn as AgentSelectSchema, c as AgentStopWhen, A as AgentStopWhenSchema, ff as AgentToolRelationApiInsertSchema, fe as AgentToolRelationApiSelectSchema, fg as AgentToolRelationApiUpdateSchema, fc as AgentToolRelationInsertSchema, fb as AgentToolRelationSelectSchema, fd as AgentToolRelationUpdateSchema, dq as AgentUpdateSchema, eL as AllAgentSchema, eQ as ApiKeyApiCreationResponseSchema, eR as ApiKeyApiInsertSchema, eP as ApiKeyApiSelectSchema, eS as ApiKeyApiUpdateSchema, eN as ApiKeyInsertSchema, eM as ApiKeySelectSchema, eO as ApiKeyUpdateSchema, ex as ArtifactComponentApiInsertSchema, ew as ArtifactComponentApiSelectSchema, ey as ArtifactComponentApiUpdateSchema, eu as ArtifactComponentInsertSchema, et as ArtifactComponentSelectSchema, ev as ArtifactComponentUpdateSchema, fp as CanUseItemSchema, ee as ContextCacheApiInsertSchema, ed as ContextCacheApiSelectSchema, ef as ContextCacheApiUpdateSchema, eb as ContextCacheInsertSchema, ea as ContextCacheSelectSchema, ec as ContextCacheUpdateSchema, f9 as ContextConfigApiInsertSchema, f8 as ContextConfigApiSelectSchema, fa as ContextConfigApiUpdateSchema, f6 as ContextConfigInsertSchema, f5 as ContextConfigSelectSchema, f7 as ContextConfigUpdateSchema, e2 as ConversationApiInsertSchema, e1 as ConversationApiSelectSchema, e3 as ConversationApiUpdateSchema, d$ as ConversationInsertSchema, d_ as ConversationSelectSchema, e0 as ConversationUpdateSchema, eX as CredentialReferenceApiInsertSchema, eW as CredentialReferenceApiSelectSchema, eY as CredentialReferenceApiUpdateSchema, eU as CredentialReferenceInsertSchema, eT as CredentialReferenceSelectSchema, eV as CredentialReferenceUpdateSchema, el as DataComponentApiInsertSchema, ek as DataComponentApiSelectSchema, em as DataComponentApiUpdateSchema, ei as DataComponentBaseSchema, eh as DataComponentInsertSchema, eg as DataComponentSelectSchema, ej as DataComponentUpdateSchema, fv as ErrorResponseSchema, fw as ExistsResponseSchema, eJ as ExternalAgentApiInsertSchema, eI as ExternalAgentApiSelectSchema, eK as ExternalAgentApiUpdateSchema, eG as ExternalAgentInsertSchema, dC as ExternalAgentRelationApiInsertSchema, dB as ExternalAgentRelationInsertSchema, eF as ExternalAgentSelectSchema, eH as ExternalAgentUpdateSchema, f3 as FetchConfigSchema, f4 as FetchDefinitionSchema, F as FullGraphAgentInsertSchema, fE as FullProjectDefinitionSchema, b as GraphStopWhen, G as GraphStopWhenSchema, fr as GraphWithinContextOfProjectSchema, fF as HeadersScopeSchema, fM as IdParamsSchema, fl as LedgerArtifactApiInsertSchema, fk as LedgerArtifactApiSelectSchema, fm as LedgerArtifactApiUpdateSchema, fi as LedgerArtifactInsertSchema, fh as LedgerArtifactSelectSchema, fj as LedgerArtifactUpdateSchema, ft as ListResponseSchema, dh as MAX_ID_LENGTH, e_ as MCPToolConfigSchema, dg as MIN_ID_LENGTH, dX as McpToolDefinitionSchema, eZ as McpToolSchema, dV as McpTransportConfigSchema, e8 as MessageApiInsertSchema, e7 as MessageApiSelectSchema, e9 as MessageApiUpdateSchema, e5 as MessageInsertSchema, e4 as MessageSelectSchema, e6 as MessageUpdateSchema, dl as ModelSchema, dk as ModelSettingsSchema, fN as PaginationQueryParamsSchema, fs as PaginationSchema, fC as ProjectApiInsertSchema, fB as ProjectApiSelectSchema, fD as ProjectApiUpdateSchema, fz as ProjectInsertSchema, dm as ProjectModelSchema, fy as ProjectSelectSchema, fA as ProjectUpdateSchema, fx as RemovedResponseSchema, fu as SingleResponseSchema, fn as StatusComponentSchema, fo as StatusUpdateSchema, a as StopWhen, S as StopWhenSchema, dN as TaskApiInsertSchema, dM as TaskApiSelectSchema, dO as TaskApiUpdateSchema, dK as TaskInsertSchema, dT as TaskRelationApiInsertSchema, dS as TaskRelationApiSelectSchema, dU as TaskRelationApiUpdateSchema, dQ as TaskRelationInsertSchema, dP as TaskRelationSelectSchema, dR as TaskRelationUpdateSchema, dJ as TaskSelectSchema, dL as TaskUpdateSchema, fL as TenantIdParamsSchema, fG as TenantParamsSchema, fJ as TenantProjectGraphIdParamsSchema, fI as TenantProjectGraphParamsSchema, fK as TenantProjectIdParamsSchema, fH as TenantProjectParamsSchema, f1 as ToolApiInsertSchema, f0 as ToolApiSelectSchema, f2 as ToolApiUpdateSchema, dZ as ToolInsertSchema, dY as ToolSelectSchema, dW as ToolStatusSchema, e$ as ToolUpdateSchema, di as URL_SAFE_ID_PATTERN, dj as resourceIdSchema } from '../utility-CT2pq49U.cjs';
4
4
  import 'drizzle-zod';
5
5
  import 'drizzle-orm/sqlite-core';
6
6
  import '@hono/zod-openapi';