@inkeep/agents-core 0.14.0 → 0.14.2

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,12 +1,12 @@
1
1
  export { TaskState } from './chunk-H2F72PDA.js';
2
- import { validateAndTypeGraphData, validateGraphStructure, isInternalAgent, isExternalAgent } from './chunk-YVC5OEGB.js';
3
- export { generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAndTypeGraphData, validateArtifactComponentReferences, validateDataComponentReferences, validateGraphStructure, validateToolReferences } from './chunk-YVC5OEGB.js';
4
- import { ContextConfigApiUpdateSchema } from './chunk-5JHWQEGI.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-5JHWQEGI.js';
6
- import { CredentialStoreType, MCPServerType, MCPTransportType } from './chunk-YFHT5M2R.js';
7
- export { CredentialStoreType, MCPServerType, MCPTransportType, TOOL_STATUS_VALUES, VALID_RELATION_TYPES } from './chunk-YFHT5M2R.js';
2
+ import { validateAndTypeGraphData, validateGraphStructure, isInternalAgent, isExternalAgent } from './chunk-Y63D625C.js';
3
+ export { generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAndTypeGraphData, validateArtifactComponentReferences, validateDataComponentReferences, validateGraphStructure, validateToolReferences } from './chunk-Y63D625C.js';
4
+ import { ContextConfigApiUpdateSchema } from './chunk-YVZJ5VV7.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-YVZJ5VV7.js';
8
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-KBRQN63H.js';
9
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, ledgerArtifactsRelations, messages, messagesRelations, projects, projectsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from './chunk-KBRQN63H.js';
8
+ import { CredentialStoreType, MCPServerType, MCPTransportType } from './chunk-YFHT5M2R.js';
9
+ export { CredentialStoreType, MCPServerType, MCPTransportType, TOOL_STATUS_VALUES, VALID_RELATION_TYPES } from './chunk-YFHT5M2R.js';
10
10
  import { __publicField } from './chunk-MKBO26DX.js';
11
11
  import { z as z$1 } from 'zod';
12
12
  import pino from 'pino';
@@ -295,6 +295,27 @@ var ContextConfigBuilder = class {
295
295
  "ContextConfig builder initialized"
296
296
  );
297
297
  }
298
+ /**
299
+ * Set the context (tenantId, projectId, baseURL) for this context config
300
+ * Called by graph.setConfig() when the graph is configured
301
+ */
302
+ setContext(tenantId, projectId, baseURL) {
303
+ this.tenantId = tenantId;
304
+ this.projectId = projectId;
305
+ if (baseURL) {
306
+ this.baseURL = baseURL;
307
+ }
308
+ this.config.tenantId = tenantId;
309
+ this.config.projectId = projectId;
310
+ logger.info(
311
+ {
312
+ contextConfigId: this.config.id,
313
+ tenantId: this.tenantId,
314
+ projectId: this.projectId
315
+ },
316
+ "ContextConfig context updated"
317
+ );
318
+ }
298
319
  /**
299
320
  * Convert the builder to a plain object for database operations
300
321
  */
@@ -4516,6 +4537,39 @@ var createFullGraphServerSide = (db, logger12 = defaultLogger) => async (scopes,
4516
4537
  throw error;
4517
4538
  }
4518
4539
  }
4540
+ if (contextConfigId) {
4541
+ try {
4542
+ logger12.info(
4543
+ { graphId: finalGraphId, contextConfigId },
4544
+ "Updating graph with contextConfigId"
4545
+ );
4546
+ await upsertAgentGraph(db)({
4547
+ data: {
4548
+ id: finalGraphId,
4549
+ tenantId,
4550
+ projectId,
4551
+ name: typed.name,
4552
+ defaultAgentId: typed.defaultAgentId,
4553
+ description: typed.description,
4554
+ contextConfigId,
4555
+ models: typed.models,
4556
+ statusUpdates: typed.statusUpdates,
4557
+ graphPrompt: typed.graphPrompt,
4558
+ stopWhen: typed.stopWhen
4559
+ }
4560
+ });
4561
+ logger12.info(
4562
+ { graphId: finalGraphId, contextConfigId },
4563
+ "Graph updated with contextConfigId successfully"
4564
+ );
4565
+ } catch (error) {
4566
+ logger12.error(
4567
+ { graphId: finalGraphId, contextConfigId, error },
4568
+ "Failed to update graph with contextConfigId"
4569
+ );
4570
+ throw error;
4571
+ }
4572
+ }
4519
4573
  logger12.info(
4520
4574
  {},
4521
4575
  "DataComponents are project-scoped - skipping dataComponent creation in graph"
@@ -4855,12 +4909,14 @@ var updateFullGraphServerSide = (db, logger12 = defaultLogger) => async (scopes,
4855
4909
  throw error;
4856
4910
  }
4857
4911
  let contextConfigId;
4912
+ if (typedGraphDefinition.contextConfig) {
4913
+ logger12.info(
4914
+ { contextConfigId: typedGraphDefinition.contextConfig?.id },
4915
+ " context config exists"
4916
+ );
4917
+ }
4858
4918
  if (typedGraphDefinition.contextConfig) {
4859
4919
  try {
4860
- logger12.info(
4861
- { contextConfigId: typedGraphDefinition.contextConfig.id },
4862
- "Processing context config"
4863
- );
4864
4920
  const contextConfig2 = await upsertContextConfig(db)({
4865
4921
  data: {
4866
4922
  ...typedGraphDefinition.contextConfig,
@@ -4878,6 +4934,39 @@ var updateFullGraphServerSide = (db, logger12 = defaultLogger) => async (scopes,
4878
4934
  throw error;
4879
4935
  }
4880
4936
  }
4937
+ if (contextConfigId) {
4938
+ try {
4939
+ logger12.info(
4940
+ { graphId: finalGraphId, contextConfigId },
4941
+ "Updating graph with contextConfigId"
4942
+ );
4943
+ await upsertAgentGraph(db)({
4944
+ data: {
4945
+ id: finalGraphId,
4946
+ tenantId,
4947
+ projectId,
4948
+ name: typedGraphDefinition.name,
4949
+ defaultAgentId: typedGraphDefinition.defaultAgentId,
4950
+ description: typedGraphDefinition.description,
4951
+ contextConfigId,
4952
+ models: typedGraphDefinition.models,
4953
+ statusUpdates: typedGraphDefinition.statusUpdates,
4954
+ graphPrompt: typedGraphDefinition.graphPrompt,
4955
+ stopWhen: typedGraphDefinition.stopWhen
4956
+ }
4957
+ });
4958
+ logger12.info(
4959
+ { graphId: finalGraphId, contextConfigId },
4960
+ "Graph updated with contextConfigId successfully"
4961
+ );
4962
+ } catch (error) {
4963
+ logger12.error(
4964
+ { graphId: finalGraphId, contextConfigId, error },
4965
+ "Failed to update graph with contextConfigId"
4966
+ );
4967
+ throw error;
4968
+ }
4969
+ }
4881
4970
  logger12.info({}, "DataComponents are project-scoped - skipping dataComponent update in graph");
4882
4971
  logger12.info(
4883
4972
  {},
@@ -6043,44 +6132,6 @@ var createFullProjectServerSide = (db, logger12 = defaultLogger2) => async (scop
6043
6132
  "All project tools created successfully"
6044
6133
  );
6045
6134
  }
6046
- if (typed.contextConfig && Object.keys(typed.contextConfig).length > 0) {
6047
- logger12.info(
6048
- {
6049
- projectId: typed.id,
6050
- count: Object.keys(typed.contextConfig).length
6051
- },
6052
- "Creating project contextConfigs"
6053
- );
6054
- const contextConfigPromises = Object.entries(typed.contextConfig).map(
6055
- async ([configId, configData]) => {
6056
- try {
6057
- logger12.info({ projectId: typed.id, configId }, "Creating contextConfig in project");
6058
- await upsertContextConfig(db)({
6059
- data: {
6060
- ...configData,
6061
- tenantId,
6062
- projectId: typed.id
6063
- }
6064
- });
6065
- logger12.info({ projectId: typed.id, configId }, "ContextConfig created successfully");
6066
- } catch (error) {
6067
- logger12.error(
6068
- { projectId: typed.id, configId, error },
6069
- "Failed to create contextConfig in project"
6070
- );
6071
- throw error;
6072
- }
6073
- }
6074
- );
6075
- await Promise.all(contextConfigPromises);
6076
- logger12.info(
6077
- {
6078
- projectId: typed.id,
6079
- count: Object.keys(typed.contextConfig).length
6080
- },
6081
- "All project contextConfigs created successfully"
6082
- );
6083
- }
6084
6135
  if (typed.dataComponents && Object.keys(typed.dataComponents).length > 0) {
6085
6136
  logger12.info(
6086
6137
  {
@@ -6186,7 +6237,6 @@ var createFullProjectServerSide = (db, logger12 = defaultLogger2) => async (scop
6186
6237
  // Pass project-level resources for validation
6187
6238
  dataComponents: typed.dataComponents || {},
6188
6239
  artifactComponents: typed.artifactComponents || {},
6189
- contextConfig: typed.contextConfig?.[graphId] || void 0,
6190
6240
  credentialReferences: typed.credentialReferences || {},
6191
6241
  statusUpdates: graphData.statusUpdates === null ? void 0 : graphData.statusUpdates
6192
6242
  };
@@ -6348,44 +6398,6 @@ var updateFullProjectServerSide = (db, logger12 = defaultLogger2) => async (scop
6348
6398
  "All project tools updated successfully"
6349
6399
  );
6350
6400
  }
6351
- if (typed.contextConfig && Object.keys(typed.contextConfig).length > 0) {
6352
- logger12.info(
6353
- {
6354
- projectId: typed.id,
6355
- count: Object.keys(typed.contextConfig).length
6356
- },
6357
- "Updating project contextConfigs"
6358
- );
6359
- const contextConfigPromises = Object.entries(typed.contextConfig).map(
6360
- async ([configId, configData]) => {
6361
- try {
6362
- logger12.info({ projectId: typed.id, configId }, "Updating contextConfig in project");
6363
- await upsertContextConfig(db)({
6364
- data: {
6365
- ...configData,
6366
- tenantId,
6367
- projectId: typed.id
6368
- }
6369
- });
6370
- logger12.info({ projectId: typed.id, configId }, "ContextConfig updated successfully");
6371
- } catch (error) {
6372
- logger12.error(
6373
- { projectId: typed.id, configId, error },
6374
- "Failed to update contextConfig in project"
6375
- );
6376
- throw error;
6377
- }
6378
- }
6379
- );
6380
- await Promise.all(contextConfigPromises);
6381
- logger12.info(
6382
- {
6383
- projectId: typed.id,
6384
- count: Object.keys(typed.contextConfig).length
6385
- },
6386
- "All project contextConfigs updated successfully"
6387
- );
6388
- }
6389
6401
  if (typed.dataComponents && Object.keys(typed.dataComponents).length > 0) {
6390
6402
  logger12.info(
6391
6403
  {
@@ -6482,7 +6494,10 @@ var updateFullProjectServerSide = (db, logger12 = defaultLogger2) => async (scop
6482
6494
  for (const graph of existingGraphs) {
6483
6495
  if (!incomingGraphIds.has(graph.id)) {
6484
6496
  try {
6485
- await deleteFullGraph(db, logger12)({
6497
+ await deleteFullGraph(
6498
+ db,
6499
+ logger12
6500
+ )({
6486
6501
  scopes: { tenantId, projectId: typed.id, graphId: graph.id }
6487
6502
  });
6488
6503
  deletedGraphCount++;
@@ -6521,7 +6536,6 @@ var updateFullProjectServerSide = (db, logger12 = defaultLogger2) => async (scop
6521
6536
  // Pass project-level resources for validation
6522
6537
  dataComponents: typed.dataComponents || {},
6523
6538
  artifactComponents: typed.artifactComponents || {},
6524
- contextConfig: typed.contextConfig?.[graphId] || void 0,
6525
6539
  credentialReferences: typed.credentialReferences || {},
6526
6540
  statusUpdates: graphData.statusUpdates === null ? void 0 : graphData.statusUpdates
6527
6541
  };
@@ -6723,8 +6737,7 @@ var getFullProject = (db, logger12 = defaultLogger2) => async (params) => {
6723
6737
  scopes: { tenantId, projectId, graphId: graph.id }
6724
6738
  });
6725
6739
  if (fullGraph) {
6726
- const { contextConfig: _contextConfig, ...graphWithoutProjectResources } = fullGraph;
6727
- graphs[graph.id] = graphWithoutProjectResources;
6740
+ graphs[graph.id] = fullGraph;
6728
6741
  logger12.info(
6729
6742
  { tenantId, projectId, graphId: graph.id },
6730
6743
  "Full graph definition retrieved"
@@ -6756,7 +6769,6 @@ var getFullProject = (db, logger12 = defaultLogger2) => async (params) => {
6756
6769
  tools: projectTools,
6757
6770
  dataComponents: projectDataComponents,
6758
6771
  artifactComponents: projectArtifactComponents,
6759
- contextConfig: projectContextConfigs,
6760
6772
  credentialReferences: projectCredentialReferences,
6761
6773
  createdAt: project.createdAt,
6762
6774
  updatedAt: project.updatedAt
@@ -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 { f as ContextFetchDefinition, C as ConversationHistoryConfig, T as TaskMetadataConfig, g as ToolMcpConfig, h as ToolServerCapabilities, i as ConversationMetadata, j as MessageContent, k as MessageMetadata, P as Part } from './utility-D0tOpJSn.js';
3
+ import { f as ContextFetchDefinition, C as ConversationHistoryConfig, T as TaskMetadataConfig, g as ToolMcpConfig, h as ToolServerCapabilities, i as ConversationMetadata, j as MessageContent, k as MessageMetadata, P as Part } from './utility-Cd0qsewS.js';
4
4
 
5
5
  declare const projects: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
6
6
  name: "projects";
@@ -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 { f as ContextFetchDefinition, C as ConversationHistoryConfig, T as TaskMetadataConfig, g as ToolMcpConfig, h as ToolServerCapabilities, i as ConversationMetadata, j as MessageContent, k as MessageMetadata, P as Part } from './utility-D0tOpJSn.cjs';
3
+ import { f as ContextFetchDefinition, C as ConversationHistoryConfig, T as TaskMetadataConfig, g as ToolMcpConfig, h as ToolServerCapabilities, i as ConversationMetadata, j as MessageContent, k as MessageMetadata, P as Part } from './utility-Cd0qsewS.cjs';
4
4
 
5
5
  declare const projects: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
6
6
  name: "projects";
@@ -1,5 +1,5 @@
1
- import { e as CredentialStoreType } from '../utility-D0tOpJSn.cjs';
2
- export { b0 as A2AError, bw as A2ARequest, bx as A2AResponse, aB as APIKeySecurityScheme, bB as AgentApiInsert, bA as AgentApiSelect, bC as AgentApiUpdate, cu as AgentArtifactComponentApiInsert, ct as AgentArtifactComponentApiSelect, cv as AgentArtifactComponentApiUpdate, cr as AgentArtifactComponentInsert, cq as AgentArtifactComponentSelect, cs as AgentArtifactComponentUpdate, ax as AgentCapabilities, aL as AgentCard, d7 as AgentConversationHistoryConfig, cl as AgentDataComponentApiInsert, ck as AgentDataComponentApiSelect, cm as AgentDataComponentApiUpdate, ci as AgentDataComponentInsert, ch as AgentDataComponentSelect, cj as AgentDataComponentUpdate, cT as AgentDefinition, bL as AgentGraphApiInsert, bK as AgentGraphApiSelect, bM as AgentGraphApiUpdate, r as AgentGraphInsert, bJ as AgentGraphSelect, s as AgentGraphUpdate, y as AgentInsert, ay as AgentProvider, bF as AgentRelationApiInsert, bE as AgentRelationApiSelect, bG as AgentRelationApiUpdate, v as AgentRelationInsert, bH as AgentRelationQuery, bD as AgentRelationSelect, w as AgentRelationUpdate, u as AgentScopeConfig, B as AgentSelect, az as AgentSkill, cJ as AgentToolRelationApiInsert, cI as AgentToolRelationApiSelect, cK as AgentToolRelationApiUpdate, cH as AgentToolRelationInsert, cG as AgentToolRelationSelect, x as AgentToolRelationUpdate, z as AgentUpdate, cz as AllAgentSelect, cD as ApiKeyApiCreationResponse, cB as ApiKeyApiInsert, cA as ApiKeyApiSelect, cC as ApiKeyApiUpdate, K as ApiKeyCreateResult, H as ApiKeyInsert, D as ApiKeySelect, I as ApiKeyUpdate, a7 as Artifact, co as ArtifactComponentApiInsert, cn as ArtifactComponentApiSelect, cp as ArtifactComponentApiUpdate, N as ArtifactComponentInsert, L as ArtifactComponentSelect, O as ArtifactComponentUpdate, aE as AuthorizationCodeOAuthFlow, cR as CanUseItem, bg as CancelTaskRequest, br as CancelTaskResponse, bq as CancelTaskSuccessResponse, aF as ClientCredentialsOAuthFlow, a_ as ContentTypeNotSupportedError, cc as ContextCacheApiInsert, cb as ContextCacheApiSelect, cd as ContextCacheApiUpdate, d8 as ContextCacheEntry, R as ContextCacheInsert, Q as ContextCacheSelect, ca as ContextCacheUpdate, c6 as ContextConfigApiInsert, c5 as ContextConfigApiSelect, c7 as ContextConfigApiUpdate, U as ContextConfigInsert, m as ContextConfigSelect, V as ContextConfigUpdate, f as ContextFetchDefinition, b$ as ConversationApiInsert, b_ as ConversationApiSelect, c0 as ConversationApiUpdate, C as ConversationHistoryConfig, X as ConversationInsert, i as ConversationMetadata, d6 as ConversationScopeOptions, W as ConversationSelect, Y as ConversationUpdate, J as CreateApiKeyParams, l as CredentialReferenceApiInsert, cE as CredentialReferenceApiSelect, cF as CredentialReferenceApiUpdate, $ as CredentialReferenceInsert, Z as CredentialReferenceSelect, a0 as CredentialReferenceUpdate, cf as DataComponentApiInsert, ce as DataComponentApiSelect, cg as DataComponentApiUpdate, a2 as DataComponentInsert, a1 as DataComponentSelect, a3 as DataComponentUpdate, av as DataPart, ao as ExecutionContext, cx as ExternalAgentApiInsert, cw as ExternalAgentApiSelect, cy as ExternalAgentApiUpdate, a4 as ExternalAgentInsert, bI as ExternalAgentRelationApiInsert, E as ExternalAgentRelationInsert, a5 as ExternalAgentSelect, a6 as ExternalAgentUpdate, c9 as FetchConfig, c8 as FetchDefinition, ar as FileBase, au as FilePart, as as FileWithBytes, at as FileWithUri, cQ as FullGraphAgentInsert, t as FullGraphDefinition, ac as FullProjectDefinition, bi as GetTaskPushNotificationConfigRequest, bv as GetTaskPushNotificationConfigResponse, bu as GetTaskPushNotificationConfigSuccessResponse, bf as GetTaskRequest, bp as GetTaskResponse, bo as GetTaskSuccessResponse, o as GraphScopeConfig, aC as HTTPAuthSecurityScheme, aG as ImplicitOAuthFlow, cS as InternalAgentDefinition, aV as InternalError, a$ as InvalidAgentResponseError, aU as InvalidParamsError, aS as InvalidRequestError, aR as JSONParseError, ba as JSONRPCError, bc as JSONRPCErrorResponse, b8 as JSONRPCMessage, b9 as JSONRPCRequest, bb as JSONRPCResult, cO as LedgerArtifactApiInsert, cN as LedgerArtifactApiSelect, cP as LedgerArtifactApiUpdate, cL as LedgerArtifactInsert, a8 as LedgerArtifactSelect, cM as LedgerArtifactUpdate, dg as MCPServerType, n as MCPToolConfig, M as MCPTransportType, d9 as McpAuthType, da as McpServerAuth, dc as McpServerCapabilities, al as McpTool, dd as McpToolDefinition, db as McpTransportConfig, aM as Message, c3 as MessageApiInsert, c2 as MessageApiSelect, c4 as MessageApiUpdate, j as MessageContent, aa as MessageInsert, k as MessageMetadata, d0 as MessageMode, by as MessagePart, c$ as MessageRole, c1 as MessageSelect, b6 as MessageSendConfiguration, b7 as MessageSendParams, c_ as MessageType, ab as MessageUpdate, a9 as MessageVisibility, aT as MethodNotFoundError, d3 as ModelSettings, d1 as Models, aI as OAuth2SecurityScheme, aD as OAuthFlows, aJ as OpenIdConnectSecurityScheme, cY as Pagination, q as PaginationConfig, af as PaginationResult, P as Part, ap as PartBase, aH as PasswordOAuthFlow, cW as ProjectApiInsert, cV as ProjectApiSelect, cX as ProjectApiUpdate, ad as ProjectInfo, ah as ProjectInsert, d2 as ProjectModels, ag as ProjectResourceCounts, p as ProjectScopeConfig, ae as ProjectSelect, ai as ProjectUpdate, b1 as PushNotificationAuthenticationInfo, b2 as PushNotificationConfig, aY as PushNotificationNotSupportedError, aK as SecurityScheme, aA as SecuritySchemeBase, bd as SendMessageRequest, bl as SendMessageResponse, bk as SendMessageSuccessResponse, be as SendStreamingMessageRequest, bn as SendStreamingMessageResponse, bm as SendStreamingMessageSuccessResponse, bh as SetTaskPushNotificationConfigRequest, bt as SetTaskPushNotificationConfigResponse, bs as SetTaskPushNotificationConfigSuccessResponse, d5 as StatusComponent, d4 as StatusUpdateSettings, cZ as SummaryEvent, de as TOOL_STATUS_VALUES, aO as Task, bP as TaskApiInsert, bO as TaskApiSelect, bQ as TaskApiUpdate, bz as TaskArtifact, aQ as TaskArtifactUpdateEvent, b4 as TaskIdParams, aj as TaskInsert, T as TaskMetadataConfig, aX as TaskNotCancelableError, aW as TaskNotFoundError, b3 as TaskPushNotificationConfig, b5 as TaskQueryParams, bV as TaskRelationApiInsert, bU as TaskRelationApiSelect, bW as TaskRelationApiUpdate, bS as TaskRelationInsert, bR as TaskRelationSelect, bT as TaskRelationUpdate, bj as TaskResubscriptionRequest, ak as TaskSelect, aw as TaskState, aN as TaskStatus, aP as TaskStatusUpdateEvent, bN as TaskUpdate, aq as TextPart, bY as ToolApiInsert, bX as ToolApiSelect, bZ as ToolApiUpdate, cU as ToolDefinition, am as ToolInsert, g as ToolMcpConfig, _ as ToolSelect, h as ToolServerCapabilities, an as ToolUpdate, aZ as UnsupportedOperationError, df as VALID_RELATION_TYPES } from '../utility-D0tOpJSn.cjs';
1
+ import { e as CredentialStoreType } from '../utility-Cd0qsewS.cjs';
2
+ export { b0 as A2AError, bw as A2ARequest, bx as A2AResponse, aB as APIKeySecurityScheme, bB as AgentApiInsert, bA as AgentApiSelect, bC as AgentApiUpdate, cu as AgentArtifactComponentApiInsert, ct as AgentArtifactComponentApiSelect, cv as AgentArtifactComponentApiUpdate, cr as AgentArtifactComponentInsert, cq as AgentArtifactComponentSelect, cs as AgentArtifactComponentUpdate, ax as AgentCapabilities, aL as AgentCard, d7 as AgentConversationHistoryConfig, cl as AgentDataComponentApiInsert, ck as AgentDataComponentApiSelect, cm as AgentDataComponentApiUpdate, ci as AgentDataComponentInsert, ch as AgentDataComponentSelect, cj as AgentDataComponentUpdate, cT as AgentDefinition, bL as AgentGraphApiInsert, bK as AgentGraphApiSelect, bM as AgentGraphApiUpdate, r as AgentGraphInsert, bJ as AgentGraphSelect, s as AgentGraphUpdate, y as AgentInsert, ay as AgentProvider, bF as AgentRelationApiInsert, bE as AgentRelationApiSelect, bG as AgentRelationApiUpdate, v as AgentRelationInsert, bH as AgentRelationQuery, bD as AgentRelationSelect, w as AgentRelationUpdate, u as AgentScopeConfig, B as AgentSelect, az as AgentSkill, cJ as AgentToolRelationApiInsert, cI as AgentToolRelationApiSelect, cK as AgentToolRelationApiUpdate, cH as AgentToolRelationInsert, cG as AgentToolRelationSelect, x as AgentToolRelationUpdate, z as AgentUpdate, cz as AllAgentSelect, cD as ApiKeyApiCreationResponse, cB as ApiKeyApiInsert, cA as ApiKeyApiSelect, cC as ApiKeyApiUpdate, K as ApiKeyCreateResult, H as ApiKeyInsert, D as ApiKeySelect, I as ApiKeyUpdate, a7 as Artifact, co as ArtifactComponentApiInsert, cn as ArtifactComponentApiSelect, cp as ArtifactComponentApiUpdate, N as ArtifactComponentInsert, L as ArtifactComponentSelect, O as ArtifactComponentUpdate, aE as AuthorizationCodeOAuthFlow, cR as CanUseItem, bg as CancelTaskRequest, br as CancelTaskResponse, bq as CancelTaskSuccessResponse, aF as ClientCredentialsOAuthFlow, a_ as ContentTypeNotSupportedError, cc as ContextCacheApiInsert, cb as ContextCacheApiSelect, cd as ContextCacheApiUpdate, d8 as ContextCacheEntry, R as ContextCacheInsert, Q as ContextCacheSelect, ca as ContextCacheUpdate, c6 as ContextConfigApiInsert, c5 as ContextConfigApiSelect, c7 as ContextConfigApiUpdate, U as ContextConfigInsert, m as ContextConfigSelect, V as ContextConfigUpdate, f as ContextFetchDefinition, b$ as ConversationApiInsert, b_ as ConversationApiSelect, c0 as ConversationApiUpdate, C as ConversationHistoryConfig, X as ConversationInsert, i as ConversationMetadata, d6 as ConversationScopeOptions, W as ConversationSelect, Y as ConversationUpdate, J as CreateApiKeyParams, l as CredentialReferenceApiInsert, cE as CredentialReferenceApiSelect, cF as CredentialReferenceApiUpdate, $ as CredentialReferenceInsert, Z as CredentialReferenceSelect, a0 as CredentialReferenceUpdate, cf as DataComponentApiInsert, ce as DataComponentApiSelect, cg as DataComponentApiUpdate, a2 as DataComponentInsert, a1 as DataComponentSelect, a3 as DataComponentUpdate, av as DataPart, ao as ExecutionContext, cx as ExternalAgentApiInsert, cw as ExternalAgentApiSelect, cy as ExternalAgentApiUpdate, a4 as ExternalAgentInsert, bI as ExternalAgentRelationApiInsert, E as ExternalAgentRelationInsert, a5 as ExternalAgentSelect, a6 as ExternalAgentUpdate, c9 as FetchConfig, c8 as FetchDefinition, ar as FileBase, au as FilePart, as as FileWithBytes, at as FileWithUri, cQ as FullGraphAgentInsert, t as FullGraphDefinition, ac as FullProjectDefinition, bi as GetTaskPushNotificationConfigRequest, bv as GetTaskPushNotificationConfigResponse, bu as GetTaskPushNotificationConfigSuccessResponse, bf as GetTaskRequest, bp as GetTaskResponse, bo as GetTaskSuccessResponse, o as GraphScopeConfig, aC as HTTPAuthSecurityScheme, aG as ImplicitOAuthFlow, cS as InternalAgentDefinition, aV as InternalError, a$ as InvalidAgentResponseError, aU as InvalidParamsError, aS as InvalidRequestError, aR as JSONParseError, ba as JSONRPCError, bc as JSONRPCErrorResponse, b8 as JSONRPCMessage, b9 as JSONRPCRequest, bb as JSONRPCResult, cO as LedgerArtifactApiInsert, cN as LedgerArtifactApiSelect, cP as LedgerArtifactApiUpdate, cL as LedgerArtifactInsert, a8 as LedgerArtifactSelect, cM as LedgerArtifactUpdate, dg as MCPServerType, n as MCPToolConfig, M as MCPTransportType, d9 as McpAuthType, da as McpServerAuth, dc as McpServerCapabilities, al as McpTool, dd as McpToolDefinition, db as McpTransportConfig, aM as Message, c3 as MessageApiInsert, c2 as MessageApiSelect, c4 as MessageApiUpdate, j as MessageContent, aa as MessageInsert, k as MessageMetadata, d0 as MessageMode, by as MessagePart, c$ as MessageRole, c1 as MessageSelect, b6 as MessageSendConfiguration, b7 as MessageSendParams, c_ as MessageType, ab as MessageUpdate, a9 as MessageVisibility, aT as MethodNotFoundError, d3 as ModelSettings, d1 as Models, aI as OAuth2SecurityScheme, aD as OAuthFlows, aJ as OpenIdConnectSecurityScheme, cY as Pagination, q as PaginationConfig, af as PaginationResult, P as Part, ap as PartBase, aH as PasswordOAuthFlow, cW as ProjectApiInsert, cV as ProjectApiSelect, cX as ProjectApiUpdate, ad as ProjectInfo, ah as ProjectInsert, d2 as ProjectModels, ag as ProjectResourceCounts, p as ProjectScopeConfig, ae as ProjectSelect, ai as ProjectUpdate, b1 as PushNotificationAuthenticationInfo, b2 as PushNotificationConfig, aY as PushNotificationNotSupportedError, aK as SecurityScheme, aA as SecuritySchemeBase, bd as SendMessageRequest, bl as SendMessageResponse, bk as SendMessageSuccessResponse, be as SendStreamingMessageRequest, bn as SendStreamingMessageResponse, bm as SendStreamingMessageSuccessResponse, bh as SetTaskPushNotificationConfigRequest, bt as SetTaskPushNotificationConfigResponse, bs as SetTaskPushNotificationConfigSuccessResponse, d5 as StatusComponent, d4 as StatusUpdateSettings, cZ as SummaryEvent, de as TOOL_STATUS_VALUES, aO as Task, bP as TaskApiInsert, bO as TaskApiSelect, bQ as TaskApiUpdate, bz as TaskArtifact, aQ as TaskArtifactUpdateEvent, b4 as TaskIdParams, aj as TaskInsert, T as TaskMetadataConfig, aX as TaskNotCancelableError, aW as TaskNotFoundError, b3 as TaskPushNotificationConfig, b5 as TaskQueryParams, bV as TaskRelationApiInsert, bU as TaskRelationApiSelect, bW as TaskRelationApiUpdate, bS as TaskRelationInsert, bR as TaskRelationSelect, bT as TaskRelationUpdate, bj as TaskResubscriptionRequest, ak as TaskSelect, aw as TaskState, aN as TaskStatus, aP as TaskStatusUpdateEvent, bN as TaskUpdate, aq as TextPart, bY as ToolApiInsert, bX as ToolApiSelect, bZ as ToolApiUpdate, cU as ToolDefinition, am as ToolInsert, g as ToolMcpConfig, _ as ToolSelect, h as ToolServerCapabilities, an as ToolUpdate, aZ as UnsupportedOperationError, df as VALID_RELATION_TYPES } from '../utility-Cd0qsewS.cjs';
3
3
  import { Context } from 'hono';
4
4
  import 'zod';
5
5
  import 'drizzle-zod';
@@ -1,5 +1,5 @@
1
- import { e as CredentialStoreType } from '../utility-D0tOpJSn.js';
2
- export { b0 as A2AError, bw as A2ARequest, bx as A2AResponse, aB as APIKeySecurityScheme, bB as AgentApiInsert, bA as AgentApiSelect, bC as AgentApiUpdate, cu as AgentArtifactComponentApiInsert, ct as AgentArtifactComponentApiSelect, cv as AgentArtifactComponentApiUpdate, cr as AgentArtifactComponentInsert, cq as AgentArtifactComponentSelect, cs as AgentArtifactComponentUpdate, ax as AgentCapabilities, aL as AgentCard, d7 as AgentConversationHistoryConfig, cl as AgentDataComponentApiInsert, ck as AgentDataComponentApiSelect, cm as AgentDataComponentApiUpdate, ci as AgentDataComponentInsert, ch as AgentDataComponentSelect, cj as AgentDataComponentUpdate, cT as AgentDefinition, bL as AgentGraphApiInsert, bK as AgentGraphApiSelect, bM as AgentGraphApiUpdate, r as AgentGraphInsert, bJ as AgentGraphSelect, s as AgentGraphUpdate, y as AgentInsert, ay as AgentProvider, bF as AgentRelationApiInsert, bE as AgentRelationApiSelect, bG as AgentRelationApiUpdate, v as AgentRelationInsert, bH as AgentRelationQuery, bD as AgentRelationSelect, w as AgentRelationUpdate, u as AgentScopeConfig, B as AgentSelect, az as AgentSkill, cJ as AgentToolRelationApiInsert, cI as AgentToolRelationApiSelect, cK as AgentToolRelationApiUpdate, cH as AgentToolRelationInsert, cG as AgentToolRelationSelect, x as AgentToolRelationUpdate, z as AgentUpdate, cz as AllAgentSelect, cD as ApiKeyApiCreationResponse, cB as ApiKeyApiInsert, cA as ApiKeyApiSelect, cC as ApiKeyApiUpdate, K as ApiKeyCreateResult, H as ApiKeyInsert, D as ApiKeySelect, I as ApiKeyUpdate, a7 as Artifact, co as ArtifactComponentApiInsert, cn as ArtifactComponentApiSelect, cp as ArtifactComponentApiUpdate, N as ArtifactComponentInsert, L as ArtifactComponentSelect, O as ArtifactComponentUpdate, aE as AuthorizationCodeOAuthFlow, cR as CanUseItem, bg as CancelTaskRequest, br as CancelTaskResponse, bq as CancelTaskSuccessResponse, aF as ClientCredentialsOAuthFlow, a_ as ContentTypeNotSupportedError, cc as ContextCacheApiInsert, cb as ContextCacheApiSelect, cd as ContextCacheApiUpdate, d8 as ContextCacheEntry, R as ContextCacheInsert, Q as ContextCacheSelect, ca as ContextCacheUpdate, c6 as ContextConfigApiInsert, c5 as ContextConfigApiSelect, c7 as ContextConfigApiUpdate, U as ContextConfigInsert, m as ContextConfigSelect, V as ContextConfigUpdate, f as ContextFetchDefinition, b$ as ConversationApiInsert, b_ as ConversationApiSelect, c0 as ConversationApiUpdate, C as ConversationHistoryConfig, X as ConversationInsert, i as ConversationMetadata, d6 as ConversationScopeOptions, W as ConversationSelect, Y as ConversationUpdate, J as CreateApiKeyParams, l as CredentialReferenceApiInsert, cE as CredentialReferenceApiSelect, cF as CredentialReferenceApiUpdate, $ as CredentialReferenceInsert, Z as CredentialReferenceSelect, a0 as CredentialReferenceUpdate, cf as DataComponentApiInsert, ce as DataComponentApiSelect, cg as DataComponentApiUpdate, a2 as DataComponentInsert, a1 as DataComponentSelect, a3 as DataComponentUpdate, av as DataPart, ao as ExecutionContext, cx as ExternalAgentApiInsert, cw as ExternalAgentApiSelect, cy as ExternalAgentApiUpdate, a4 as ExternalAgentInsert, bI as ExternalAgentRelationApiInsert, E as ExternalAgentRelationInsert, a5 as ExternalAgentSelect, a6 as ExternalAgentUpdate, c9 as FetchConfig, c8 as FetchDefinition, ar as FileBase, au as FilePart, as as FileWithBytes, at as FileWithUri, cQ as FullGraphAgentInsert, t as FullGraphDefinition, ac as FullProjectDefinition, bi as GetTaskPushNotificationConfigRequest, bv as GetTaskPushNotificationConfigResponse, bu as GetTaskPushNotificationConfigSuccessResponse, bf as GetTaskRequest, bp as GetTaskResponse, bo as GetTaskSuccessResponse, o as GraphScopeConfig, aC as HTTPAuthSecurityScheme, aG as ImplicitOAuthFlow, cS as InternalAgentDefinition, aV as InternalError, a$ as InvalidAgentResponseError, aU as InvalidParamsError, aS as InvalidRequestError, aR as JSONParseError, ba as JSONRPCError, bc as JSONRPCErrorResponse, b8 as JSONRPCMessage, b9 as JSONRPCRequest, bb as JSONRPCResult, cO as LedgerArtifactApiInsert, cN as LedgerArtifactApiSelect, cP as LedgerArtifactApiUpdate, cL as LedgerArtifactInsert, a8 as LedgerArtifactSelect, cM as LedgerArtifactUpdate, dg as MCPServerType, n as MCPToolConfig, M as MCPTransportType, d9 as McpAuthType, da as McpServerAuth, dc as McpServerCapabilities, al as McpTool, dd as McpToolDefinition, db as McpTransportConfig, aM as Message, c3 as MessageApiInsert, c2 as MessageApiSelect, c4 as MessageApiUpdate, j as MessageContent, aa as MessageInsert, k as MessageMetadata, d0 as MessageMode, by as MessagePart, c$ as MessageRole, c1 as MessageSelect, b6 as MessageSendConfiguration, b7 as MessageSendParams, c_ as MessageType, ab as MessageUpdate, a9 as MessageVisibility, aT as MethodNotFoundError, d3 as ModelSettings, d1 as Models, aI as OAuth2SecurityScheme, aD as OAuthFlows, aJ as OpenIdConnectSecurityScheme, cY as Pagination, q as PaginationConfig, af as PaginationResult, P as Part, ap as PartBase, aH as PasswordOAuthFlow, cW as ProjectApiInsert, cV as ProjectApiSelect, cX as ProjectApiUpdate, ad as ProjectInfo, ah as ProjectInsert, d2 as ProjectModels, ag as ProjectResourceCounts, p as ProjectScopeConfig, ae as ProjectSelect, ai as ProjectUpdate, b1 as PushNotificationAuthenticationInfo, b2 as PushNotificationConfig, aY as PushNotificationNotSupportedError, aK as SecurityScheme, aA as SecuritySchemeBase, bd as SendMessageRequest, bl as SendMessageResponse, bk as SendMessageSuccessResponse, be as SendStreamingMessageRequest, bn as SendStreamingMessageResponse, bm as SendStreamingMessageSuccessResponse, bh as SetTaskPushNotificationConfigRequest, bt as SetTaskPushNotificationConfigResponse, bs as SetTaskPushNotificationConfigSuccessResponse, d5 as StatusComponent, d4 as StatusUpdateSettings, cZ as SummaryEvent, de as TOOL_STATUS_VALUES, aO as Task, bP as TaskApiInsert, bO as TaskApiSelect, bQ as TaskApiUpdate, bz as TaskArtifact, aQ as TaskArtifactUpdateEvent, b4 as TaskIdParams, aj as TaskInsert, T as TaskMetadataConfig, aX as TaskNotCancelableError, aW as TaskNotFoundError, b3 as TaskPushNotificationConfig, b5 as TaskQueryParams, bV as TaskRelationApiInsert, bU as TaskRelationApiSelect, bW as TaskRelationApiUpdate, bS as TaskRelationInsert, bR as TaskRelationSelect, bT as TaskRelationUpdate, bj as TaskResubscriptionRequest, ak as TaskSelect, aw as TaskState, aN as TaskStatus, aP as TaskStatusUpdateEvent, bN as TaskUpdate, aq as TextPart, bY as ToolApiInsert, bX as ToolApiSelect, bZ as ToolApiUpdate, cU as ToolDefinition, am as ToolInsert, g as ToolMcpConfig, _ as ToolSelect, h as ToolServerCapabilities, an as ToolUpdate, aZ as UnsupportedOperationError, df as VALID_RELATION_TYPES } from '../utility-D0tOpJSn.js';
1
+ import { e as CredentialStoreType } from '../utility-Cd0qsewS.js';
2
+ export { b0 as A2AError, bw as A2ARequest, bx as A2AResponse, aB as APIKeySecurityScheme, bB as AgentApiInsert, bA as AgentApiSelect, bC as AgentApiUpdate, cu as AgentArtifactComponentApiInsert, ct as AgentArtifactComponentApiSelect, cv as AgentArtifactComponentApiUpdate, cr as AgentArtifactComponentInsert, cq as AgentArtifactComponentSelect, cs as AgentArtifactComponentUpdate, ax as AgentCapabilities, aL as AgentCard, d7 as AgentConversationHistoryConfig, cl as AgentDataComponentApiInsert, ck as AgentDataComponentApiSelect, cm as AgentDataComponentApiUpdate, ci as AgentDataComponentInsert, ch as AgentDataComponentSelect, cj as AgentDataComponentUpdate, cT as AgentDefinition, bL as AgentGraphApiInsert, bK as AgentGraphApiSelect, bM as AgentGraphApiUpdate, r as AgentGraphInsert, bJ as AgentGraphSelect, s as AgentGraphUpdate, y as AgentInsert, ay as AgentProvider, bF as AgentRelationApiInsert, bE as AgentRelationApiSelect, bG as AgentRelationApiUpdate, v as AgentRelationInsert, bH as AgentRelationQuery, bD as AgentRelationSelect, w as AgentRelationUpdate, u as AgentScopeConfig, B as AgentSelect, az as AgentSkill, cJ as AgentToolRelationApiInsert, cI as AgentToolRelationApiSelect, cK as AgentToolRelationApiUpdate, cH as AgentToolRelationInsert, cG as AgentToolRelationSelect, x as AgentToolRelationUpdate, z as AgentUpdate, cz as AllAgentSelect, cD as ApiKeyApiCreationResponse, cB as ApiKeyApiInsert, cA as ApiKeyApiSelect, cC as ApiKeyApiUpdate, K as ApiKeyCreateResult, H as ApiKeyInsert, D as ApiKeySelect, I as ApiKeyUpdate, a7 as Artifact, co as ArtifactComponentApiInsert, cn as ArtifactComponentApiSelect, cp as ArtifactComponentApiUpdate, N as ArtifactComponentInsert, L as ArtifactComponentSelect, O as ArtifactComponentUpdate, aE as AuthorizationCodeOAuthFlow, cR as CanUseItem, bg as CancelTaskRequest, br as CancelTaskResponse, bq as CancelTaskSuccessResponse, aF as ClientCredentialsOAuthFlow, a_ as ContentTypeNotSupportedError, cc as ContextCacheApiInsert, cb as ContextCacheApiSelect, cd as ContextCacheApiUpdate, d8 as ContextCacheEntry, R as ContextCacheInsert, Q as ContextCacheSelect, ca as ContextCacheUpdate, c6 as ContextConfigApiInsert, c5 as ContextConfigApiSelect, c7 as ContextConfigApiUpdate, U as ContextConfigInsert, m as ContextConfigSelect, V as ContextConfigUpdate, f as ContextFetchDefinition, b$ as ConversationApiInsert, b_ as ConversationApiSelect, c0 as ConversationApiUpdate, C as ConversationHistoryConfig, X as ConversationInsert, i as ConversationMetadata, d6 as ConversationScopeOptions, W as ConversationSelect, Y as ConversationUpdate, J as CreateApiKeyParams, l as CredentialReferenceApiInsert, cE as CredentialReferenceApiSelect, cF as CredentialReferenceApiUpdate, $ as CredentialReferenceInsert, Z as CredentialReferenceSelect, a0 as CredentialReferenceUpdate, cf as DataComponentApiInsert, ce as DataComponentApiSelect, cg as DataComponentApiUpdate, a2 as DataComponentInsert, a1 as DataComponentSelect, a3 as DataComponentUpdate, av as DataPart, ao as ExecutionContext, cx as ExternalAgentApiInsert, cw as ExternalAgentApiSelect, cy as ExternalAgentApiUpdate, a4 as ExternalAgentInsert, bI as ExternalAgentRelationApiInsert, E as ExternalAgentRelationInsert, a5 as ExternalAgentSelect, a6 as ExternalAgentUpdate, c9 as FetchConfig, c8 as FetchDefinition, ar as FileBase, au as FilePart, as as FileWithBytes, at as FileWithUri, cQ as FullGraphAgentInsert, t as FullGraphDefinition, ac as FullProjectDefinition, bi as GetTaskPushNotificationConfigRequest, bv as GetTaskPushNotificationConfigResponse, bu as GetTaskPushNotificationConfigSuccessResponse, bf as GetTaskRequest, bp as GetTaskResponse, bo as GetTaskSuccessResponse, o as GraphScopeConfig, aC as HTTPAuthSecurityScheme, aG as ImplicitOAuthFlow, cS as InternalAgentDefinition, aV as InternalError, a$ as InvalidAgentResponseError, aU as InvalidParamsError, aS as InvalidRequestError, aR as JSONParseError, ba as JSONRPCError, bc as JSONRPCErrorResponse, b8 as JSONRPCMessage, b9 as JSONRPCRequest, bb as JSONRPCResult, cO as LedgerArtifactApiInsert, cN as LedgerArtifactApiSelect, cP as LedgerArtifactApiUpdate, cL as LedgerArtifactInsert, a8 as LedgerArtifactSelect, cM as LedgerArtifactUpdate, dg as MCPServerType, n as MCPToolConfig, M as MCPTransportType, d9 as McpAuthType, da as McpServerAuth, dc as McpServerCapabilities, al as McpTool, dd as McpToolDefinition, db as McpTransportConfig, aM as Message, c3 as MessageApiInsert, c2 as MessageApiSelect, c4 as MessageApiUpdate, j as MessageContent, aa as MessageInsert, k as MessageMetadata, d0 as MessageMode, by as MessagePart, c$ as MessageRole, c1 as MessageSelect, b6 as MessageSendConfiguration, b7 as MessageSendParams, c_ as MessageType, ab as MessageUpdate, a9 as MessageVisibility, aT as MethodNotFoundError, d3 as ModelSettings, d1 as Models, aI as OAuth2SecurityScheme, aD as OAuthFlows, aJ as OpenIdConnectSecurityScheme, cY as Pagination, q as PaginationConfig, af as PaginationResult, P as Part, ap as PartBase, aH as PasswordOAuthFlow, cW as ProjectApiInsert, cV as ProjectApiSelect, cX as ProjectApiUpdate, ad as ProjectInfo, ah as ProjectInsert, d2 as ProjectModels, ag as ProjectResourceCounts, p as ProjectScopeConfig, ae as ProjectSelect, ai as ProjectUpdate, b1 as PushNotificationAuthenticationInfo, b2 as PushNotificationConfig, aY as PushNotificationNotSupportedError, aK as SecurityScheme, aA as SecuritySchemeBase, bd as SendMessageRequest, bl as SendMessageResponse, bk as SendMessageSuccessResponse, be as SendStreamingMessageRequest, bn as SendStreamingMessageResponse, bm as SendStreamingMessageSuccessResponse, bh as SetTaskPushNotificationConfigRequest, bt as SetTaskPushNotificationConfigResponse, bs as SetTaskPushNotificationConfigSuccessResponse, d5 as StatusComponent, d4 as StatusUpdateSettings, cZ as SummaryEvent, de as TOOL_STATUS_VALUES, aO as Task, bP as TaskApiInsert, bO as TaskApiSelect, bQ as TaskApiUpdate, bz as TaskArtifact, aQ as TaskArtifactUpdateEvent, b4 as TaskIdParams, aj as TaskInsert, T as TaskMetadataConfig, aX as TaskNotCancelableError, aW as TaskNotFoundError, b3 as TaskPushNotificationConfig, b5 as TaskQueryParams, bV as TaskRelationApiInsert, bU as TaskRelationApiSelect, bW as TaskRelationApiUpdate, bS as TaskRelationInsert, bR as TaskRelationSelect, bT as TaskRelationUpdate, bj as TaskResubscriptionRequest, ak as TaskSelect, aw as TaskState, aN as TaskStatus, aP as TaskStatusUpdateEvent, bN as TaskUpdate, aq as TextPart, bY as ToolApiInsert, bX as ToolApiSelect, bZ as ToolApiUpdate, cU as ToolDefinition, am as ToolInsert, g as ToolMcpConfig, _ as ToolSelect, h as ToolServerCapabilities, an as ToolUpdate, aZ as UnsupportedOperationError, df as VALID_RELATION_TYPES } from '../utility-Cd0qsewS.js';
3
3
  import { Context } from 'hono';
4
4
  import 'zod';
5
5
  import 'drizzle-zod';
@@ -7388,63 +7388,6 @@ declare const GraphWithinContextOfProjectSchema: z.ZodObject<{
7388
7388
  updatedAt: z.ZodOptional<z.ZodString>;
7389
7389
  defaultAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7390
7390
  contextConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7391
- statusUpdates: z.ZodOptional<z.ZodNullable<z.ZodType<{
7392
- enabled?: boolean | undefined;
7393
- numEvents?: number | undefined;
7394
- timeInSeconds?: number | undefined;
7395
- prompt?: string | undefined;
7396
- statusComponents?: {
7397
- type: string;
7398
- description?: string | undefined;
7399
- detailsSchema?: {
7400
- type: "object";
7401
- properties: Record<string, any>;
7402
- required?: string[] | undefined;
7403
- } | undefined;
7404
- }[] | undefined;
7405
- }, {
7406
- enabled?: boolean | undefined;
7407
- numEvents?: number | undefined;
7408
- timeInSeconds?: number | undefined;
7409
- prompt?: string | undefined;
7410
- statusComponents?: {
7411
- type: string;
7412
- description?: string | undefined;
7413
- detailsSchema?: {
7414
- type: "object";
7415
- properties: Record<string, any>;
7416
- required?: string[] | undefined;
7417
- } | undefined;
7418
- }[] | undefined;
7419
- }, z.core.$ZodTypeInternals<{
7420
- enabled?: boolean | undefined;
7421
- numEvents?: number | undefined;
7422
- timeInSeconds?: number | undefined;
7423
- prompt?: string | undefined;
7424
- statusComponents?: {
7425
- type: string;
7426
- description?: string | undefined;
7427
- detailsSchema?: {
7428
- type: "object";
7429
- properties: Record<string, any>;
7430
- required?: string[] | undefined;
7431
- } | undefined;
7432
- }[] | undefined;
7433
- }, {
7434
- enabled?: boolean | undefined;
7435
- numEvents?: number | undefined;
7436
- timeInSeconds?: number | undefined;
7437
- prompt?: string | undefined;
7438
- statusComponents?: {
7439
- type: string;
7440
- description?: string | undefined;
7441
- detailsSchema?: {
7442
- type: "object";
7443
- properties: Record<string, any>;
7444
- required?: string[] | undefined;
7445
- } | undefined;
7446
- }[] | undefined;
7447
- }>>>>;
7448
7391
  id: z.ZodString;
7449
7392
  agents: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
7450
7393
  id: z.ZodString;
@@ -7499,6 +7442,28 @@ declare const GraphWithinContextOfProjectSchema: z.ZodObject<{
7499
7442
  headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
7500
7443
  type: z.ZodLiteral<"external">;
7501
7444
  }, z.core.$strip>], "type">>;
7445
+ contextConfig: z.ZodOptional<z.ZodObject<{
7446
+ id: z.ZodString;
7447
+ name: z.ZodString;
7448
+ description: z.ZodString;
7449
+ requestContextSchema: z.ZodOptional<z.ZodUnknown>;
7450
+ contextVariables: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>, z.core.$ZodTypeInternals<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>>>>>;
7451
+ }, z.core.$strip>>;
7452
+ statusUpdates: z.ZodOptional<z.ZodObject<{
7453
+ enabled: z.ZodOptional<z.ZodBoolean>;
7454
+ numEvents: z.ZodOptional<z.ZodNumber>;
7455
+ timeInSeconds: z.ZodOptional<z.ZodNumber>;
7456
+ prompt: z.ZodOptional<z.ZodString>;
7457
+ statusComponents: z.ZodOptional<z.ZodArray<z.ZodObject<{
7458
+ type: z.ZodString;
7459
+ description: z.ZodOptional<z.ZodString>;
7460
+ detailsSchema: z.ZodOptional<z.ZodObject<{
7461
+ type: z.ZodLiteral<"object">;
7462
+ properties: z.ZodRecord<z.ZodString, z.ZodAny>;
7463
+ required: z.ZodOptional<z.ZodArray<z.ZodString>>;
7464
+ }, z.core.$strip>>;
7465
+ }, z.core.$strip>>>;
7466
+ }, z.core.$strip>>;
7502
7467
  models: z.ZodOptional<z.ZodObject<{
7503
7468
  base: z.ZodOptional<z.ZodObject<{
7504
7469
  model: z.ZodOptional<z.ZodString>;
@@ -7945,63 +7910,6 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
7945
7910
  updatedAt: z.ZodOptional<z.ZodString>;
7946
7911
  defaultAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7947
7912
  contextConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7948
- statusUpdates: z.ZodOptional<z.ZodNullable<z.ZodType<{
7949
- enabled?: boolean | undefined;
7950
- numEvents?: number | undefined;
7951
- timeInSeconds?: number | undefined;
7952
- prompt?: string | undefined;
7953
- statusComponents?: {
7954
- type: string;
7955
- description?: string | undefined;
7956
- detailsSchema?: {
7957
- type: "object";
7958
- properties: Record<string, any>;
7959
- required?: string[] | undefined;
7960
- } | undefined;
7961
- }[] | undefined;
7962
- }, {
7963
- enabled?: boolean | undefined;
7964
- numEvents?: number | undefined;
7965
- timeInSeconds?: number | undefined;
7966
- prompt?: string | undefined;
7967
- statusComponents?: {
7968
- type: string;
7969
- description?: string | undefined;
7970
- detailsSchema?: {
7971
- type: "object";
7972
- properties: Record<string, any>;
7973
- required?: string[] | undefined;
7974
- } | undefined;
7975
- }[] | undefined;
7976
- }, z.core.$ZodTypeInternals<{
7977
- enabled?: boolean | undefined;
7978
- numEvents?: number | undefined;
7979
- timeInSeconds?: number | undefined;
7980
- prompt?: string | undefined;
7981
- statusComponents?: {
7982
- type: string;
7983
- description?: string | undefined;
7984
- detailsSchema?: {
7985
- type: "object";
7986
- properties: Record<string, any>;
7987
- required?: string[] | undefined;
7988
- } | undefined;
7989
- }[] | undefined;
7990
- }, {
7991
- enabled?: boolean | undefined;
7992
- numEvents?: number | undefined;
7993
- timeInSeconds?: number | undefined;
7994
- prompt?: string | undefined;
7995
- statusComponents?: {
7996
- type: string;
7997
- description?: string | undefined;
7998
- detailsSchema?: {
7999
- type: "object";
8000
- properties: Record<string, any>;
8001
- required?: string[] | undefined;
8002
- } | undefined;
8003
- }[] | undefined;
8004
- }>>>>;
8005
7913
  id: z.ZodString;
8006
7914
  agents: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
8007
7915
  id: z.ZodString;
@@ -8056,6 +7964,28 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
8056
7964
  headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
8057
7965
  type: z.ZodLiteral<"external">;
8058
7966
  }, z.core.$strip>], "type">>;
7967
+ contextConfig: z.ZodOptional<z.ZodObject<{
7968
+ id: z.ZodString;
7969
+ name: z.ZodString;
7970
+ description: z.ZodString;
7971
+ requestContextSchema: z.ZodOptional<z.ZodUnknown>;
7972
+ contextVariables: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>, z.core.$ZodTypeInternals<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>>>>>;
7973
+ }, z.core.$strip>>;
7974
+ statusUpdates: z.ZodOptional<z.ZodObject<{
7975
+ enabled: z.ZodOptional<z.ZodBoolean>;
7976
+ numEvents: z.ZodOptional<z.ZodNumber>;
7977
+ timeInSeconds: z.ZodOptional<z.ZodNumber>;
7978
+ prompt: z.ZodOptional<z.ZodString>;
7979
+ statusComponents: z.ZodOptional<z.ZodArray<z.ZodObject<{
7980
+ type: z.ZodString;
7981
+ description: z.ZodOptional<z.ZodString>;
7982
+ detailsSchema: z.ZodOptional<z.ZodObject<{
7983
+ type: z.ZodLiteral<"object">;
7984
+ properties: z.ZodRecord<z.ZodString, z.ZodAny>;
7985
+ required: z.ZodOptional<z.ZodArray<z.ZodString>>;
7986
+ }, z.core.$strip>>;
7987
+ }, z.core.$strip>>>;
7988
+ }, z.core.$strip>>;
8059
7989
  models: z.ZodOptional<z.ZodObject<{
8060
7990
  base: z.ZodOptional<z.ZodObject<{
8061
7991
  model: z.ZodOptional<z.ZodString>;
@@ -8117,13 +8047,6 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
8117
8047
  out: {};
8118
8048
  in: {};
8119
8049
  }>>>;
8120
- contextConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
8121
- id: z.ZodString;
8122
- name: z.ZodString;
8123
- description: z.ZodString;
8124
- requestContextSchema: z.ZodOptional<z.ZodUnknown>;
8125
- contextVariables: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>, z.core.$ZodTypeInternals<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>>>>>;
8126
- }, z.core.$strip>>>;
8127
8050
  statusUpdates: z.ZodOptional<z.ZodObject<{
8128
8051
  enabled: z.ZodOptional<z.ZodBoolean>;
8129
8052
  numEvents: z.ZodOptional<z.ZodNumber>;