@inkeep/agents-core 0.31.6 → 0.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/{chunk-RBUBOGX6.js → chunk-FUJJ4OQ2.js} +62 -10
  2. package/dist/chunk-SVXWB2HF.js +592 -0
  3. package/dist/{chunk-T5TTDZ6L.js → chunk-VSQY72K5.js} +133 -133
  4. package/dist/{chunk-PPBBIDK4.js → chunk-X6ZMJ3G6.js} +1 -1
  5. package/dist/client-exports.cjs +283 -224
  6. package/dist/client-exports.d.cts +4 -4
  7. package/dist/client-exports.d.ts +4 -4
  8. package/dist/client-exports.js +15 -7
  9. package/dist/db/schema.cjs +211 -211
  10. package/dist/db/schema.d.cts +3 -3
  11. package/dist/db/schema.d.ts +3 -3
  12. package/dist/db/schema.js +1 -1
  13. package/dist/index.cjs +18511 -12300
  14. package/dist/index.d.cts +161 -104
  15. package/dist/index.d.ts +161 -104
  16. package/dist/index.js +16250 -11076
  17. package/dist/nodefs-X2JO4ZHZ.js +21 -0
  18. package/dist/opfs-ahp-2UFDGV73.js +318 -0
  19. package/dist/{schema-BiVwgjkS.d.ts → schema-CuEjPQt7.d.ts} +876 -1014
  20. package/dist/{schema-DcDuYlEP.d.cts → schema-D1P8r3qm.d.cts} +876 -1014
  21. package/dist/types/index.d.cts +3 -3
  22. package/dist/types/index.d.ts +3 -3
  23. package/dist/{utility-DNsYIxBh.d.cts → utility-DF5IUC9K.d.cts} +967 -1131
  24. package/dist/{utility-DNsYIxBh.d.ts → utility-DF5IUC9K.d.ts} +967 -1131
  25. package/dist/validation/index.cjs +270 -219
  26. package/dist/validation/index.d.cts +3 -3
  27. package/dist/validation/index.d.ts +3 -3
  28. package/dist/validation/index.js +2 -2
  29. package/drizzle/0000_exotic_mysterio.sql +398 -0
  30. package/drizzle/meta/0000_snapshot.json +1683 -1223
  31. package/drizzle/meta/_journal.json +4 -102
  32. package/package.json +6 -3
  33. package/drizzle/0000_material_menace.sql +0 -326
  34. package/drizzle/0001_eminent_fixer.sql +0 -43
  35. package/drizzle/0002_bumpy_romulus.sql +0 -3
  36. package/drizzle/0003_soft_forgotten_one.sql +0 -39
  37. package/drizzle/0004_melted_omega_flight.sql +0 -3
  38. package/drizzle/0005_wide_shriek.sql +0 -127
  39. package/drizzle/0006_damp_lenny_balinger.sql +0 -52
  40. package/drizzle/0007_mighty_typhoid_mary.sql +0 -227
  41. package/drizzle/0008_mysterious_crusher_hogan.sql +0 -20
  42. package/drizzle/0009_old_black_cat.sql +0 -1
  43. package/drizzle/0010_wet_vampiro.sql +0 -2
  44. package/drizzle/0011_slippery_korg.sql +0 -36
  45. package/drizzle/0012_salty_psynapse.sql +0 -17
  46. package/drizzle/0013_shocking_blur.sql +0 -19
  47. package/drizzle/0014_broad_hellfire_club.sql +0 -29
  48. package/drizzle/meta/0001_snapshot.json +0 -2435
  49. package/drizzle/meta/0002_snapshot.json +0 -2428
  50. package/drizzle/meta/0003_snapshot.json +0 -2559
  51. package/drizzle/meta/0004_snapshot.json +0 -2547
  52. package/drizzle/meta/0005_snapshot.json +0 -2558
  53. package/drizzle/meta/0006_snapshot.json +0 -2751
  54. package/drizzle/meta/0007_snapshot.json +0 -2766
  55. package/drizzle/meta/0008_snapshot.json +0 -2753
  56. package/drizzle/meta/0009_snapshot.json +0 -2744
  57. package/drizzle/meta/0010_snapshot.json +0 -2751
  58. package/drizzle/meta/0011_snapshot.json +0 -2849
  59. package/drizzle/meta/0012_snapshot.json +0 -2985
  60. package/drizzle/meta/0013_snapshot.json +0 -2988
  61. package/drizzle/meta/0014_snapshot.json +0 -2992
package/dist/index.d.ts CHANGED
@@ -2,17 +2,18 @@ export { ANTHROPIC_MODELS, AnthropicModel, GOOGLE_MODELS, GoogleModel, ModelName
2
2
  import { r as PinoLogger, s as getLogger } from './auth-detection-CGqhPDnj.js';
3
3
  export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, L as LoggerFactoryConfig, M as McpOAuthFlowResult, u as McpTokenExchangeResult, t as OAuthConfig, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, x as PinoLoggerConfig, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired, w as exchangeMcpAuthorizationCode, v as initiateMcpOAuthFlow, y as loggerFactory } from './auth-detection-CGqhPDnj.js';
4
4
  import { z } from 'zod';
5
- import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as ProjectScopeConfig, v as FullAgentDefinition, w as AgentScopeConfig, C as ConversationHistoryConfig, x as PaginationConfig, y as AgentInsert, z as AgentUpdate, B as AgentSelect, D as ApiKeySelect, E as ApiKeyInsert, G as ApiKeyUpdate, H as CreateApiKeyParams, I as ApiKeyCreateResult, J as ArtifactComponentSelect, K as ArtifactComponentInsert, L as ArtifactComponentUpdate, N as SubAgentScopeConfig, O as ContextCacheSelect, Q as ContextCacheInsert, R as ContextConfigInsert, U as ContextConfigUpdate, V as ConversationSelect, W as ConversationInsert, o as ConversationMetadata, X as ConversationUpdate, Y as CredentialReferenceSelect, Z as ToolSelect, _ as ExternalAgentSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentUpdate, a6 as FunctionApiInsert, a7 as FunctionToolApiInsert, a8 as FunctionToolApiUpdate, a9 as Artifact, aa as LedgerArtifactSelect, q as MessageMetadata, p as MessageContent, ab as MessageVisibility, ac as MessageInsert, ad as MessageUpdate, ae as FullProjectDefinition, af as ProjectInfo, ag as ProjectSelect, ah as PaginationResult, ai as ProjectResourceCounts, aj as ProjectInsert, ak as ProjectUpdate, al as SubAgentExternalAgentRelationInsert, am as SubAgentRelationInsert, an as SubAgentRelationUpdate, ao as SubAgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, ap as SubAgentInsert, aq as SubAgentUpdate, ar as SubAgentSelect, as as SubAgentTeamAgentRelationInsert, at as TaskInsert, T as TaskMetadataConfig, au as TaskSelect, av as McpTool, aw as ToolInsert, ax as ToolUpdate, h as CredentialStoreType, ay as ExecutionContext } from './utility-DNsYIxBh.js';
6
- export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bV as AgentApiInsert, e6 as AgentApiInsertSchema, bU as AgentApiSelect, e5 as AgentApiSelectSchema, bW as AgentApiUpdate, e7 as AgentApiUpdateSchema, aH as AgentCapabilities, aV as AgentCard, dx as AgentConversationHistoryConfig, e3 as AgentInsertSchema, gQ as AgentListResponse, aI as AgentProvider, gA as AgentResponse, e2 as AgentSelectSchema, aJ as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e4 as AgentUpdateSchema, gk as AgentWithinContextOfProjectSchema, fa as AllAgentSchema, cP as AllAgentSelect, cT as ApiKeyApiCreationResponse, ff as ApiKeyApiCreationResponseSchema, cR as ApiKeyApiInsert, fg as ApiKeyApiInsertSchema, cQ as ApiKeyApiSelect, fe as ApiKeyApiSelectSchema, cS as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, fc as ApiKeyInsertSchema, gU as ApiKeyListResponse, gE as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, cE as ArtifactComponentApiInsert, eY as ArtifactComponentApiInsertSchema, cD as ArtifactComponentApiSelect, eX as ArtifactComponentApiSelectSchema, cF as ArtifactComponentApiUpdate, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gZ as ArtifactComponentListResponse, gJ as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, aO as AuthorizationCodeOAuthFlow, dg as CanDelegateToExternalAgent, df as CanUseItem, gg as CanUseItemSchema, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, fs as ComponentAssociationSchema, b8 as ContentTypeNotSupportedError, cs as ContextCacheApiInsert, eF as ContextCacheApiInsertSchema, cr as ContextCacheApiSelect, eE as ContextCacheApiSelectSchema, ct as ContextCacheApiUpdate, eG as ContextCacheApiUpdateSchema, dy as ContextCacheEntry, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, cq as ContextCacheUpdate, eD as ContextCacheUpdateSchema, cm as ContextConfigApiInsert, fQ as ContextConfigApiInsertSchema, cl as ContextConfigApiSelect, fP as ContextConfigApiSelectSchema, cn as ContextConfigApiUpdate, fR as ContextConfigApiUpdateSchema, fN as ContextConfigInsertSchema, gT as ContextConfigListResponse, gD as ContextConfigResponse, fM as ContextConfigSelectSchema, fO as ContextConfigUpdateSchema, cf as ConversationApiInsert, et as ConversationApiInsertSchema, ce as ConversationApiSelect, es as ConversationApiSelectSchema, cg as ConversationApiUpdate, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, h0 as ConversationListResponse, gM as ConversationResponse, dw as ConversationScopeOptions, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fp as CreateCredentialInStoreRequestSchema, fq as CreateCredentialInStoreResponseSchema, fl as CredentialReferenceApiInsertSchema, cU as CredentialReferenceApiSelect, fk as CredentialReferenceApiSelectSchema, cV as CredentialReferenceApiUpdate, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gV as CredentialReferenceListResponse, gF as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, fo as CredentialStoreListResponseSchema, fn as CredentialStoreSchema, cv as DataComponentApiInsert, eM as DataComponentApiInsertSchema, cu as DataComponentApiSelect, eL as DataComponentApiSelectSchema, cw as DataComponentApiUpdate, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gY as DataComponentListResponse, gI as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, aF as DataPart, go as ErrorResponseSchema, gp as ExistsResponseSchema, cN as ExternalAgentApiInsert, f8 as ExternalAgentApiInsertSchema, cM as ExternalAgentApiSelect, f7 as ExternalAgentApiSelectSchema, cO as ExternalAgentApiUpdate, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gS as ExternalAgentListResponse, gC as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, bT as ExternalSubAgentRelationApiInsert, e1 as ExternalSubAgentRelationApiInsertSchema, bS as ExternalSubAgentRelationInsert, e0 as ExternalSubAgentRelationInsertSchema, cp as FetchConfig, fK as FetchConfigSchema, co as FetchDefinition, fL as FetchDefinitionSchema, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, de as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, gx as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cb as FunctionApiSelect, j as FunctionApiSelectSchema, cc as FunctionApiUpdate, k as FunctionApiUpdateSchema, c9 as FunctionInsert, fI as FunctionInsertSchema, gW as FunctionListResponse, gG as FunctionResponse, c8 as FunctionSelect, fH as FunctionSelectSchema, fF as FunctionToolApiInsertSchema, cd as FunctionToolApiSelect, fE as FunctionToolApiSelectSchema, fG as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fC as FunctionToolInsertSchema, gX as FunctionToolListResponse, gH as FunctionToolResponse, fB as FunctionToolSelectSchema, fD as FunctionToolUpdateSchema, ca as FunctionUpdate, fJ as FunctionUpdateSchema, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, h6 as HeadersScopeSchema, aQ as ImplicitOAuthFlow, b3 as InternalError, b9 as InvalidAgentResponseError, b2 as InvalidParamsError, b0 as InvalidRequestError, a$ as JSONParseError, bk as JSONRPCError, bm as JSONRPCErrorResponse, bi as JSONRPCMessage, bj as JSONRPCRequest, bl as JSONRPCResult, dc as LedgerArtifactApiInsert, gc as LedgerArtifactApiInsertSchema, db as LedgerArtifactApiSelect, gb as LedgerArtifactApiSelectSchema, dd as LedgerArtifactApiUpdate, gd as LedgerArtifactApiUpdateSchema, d9 as LedgerArtifactInsert, g9 as LedgerArtifactInsertSchema, g8 as LedgerArtifactSelectSchema, da as LedgerArtifactUpdate, ga as LedgerArtifactUpdateSchema, gm as ListResponseSchema, dI as MAX_ID_LENGTH, dG as MCPServerType, fw as MCPToolConfigSchema, dH as MIN_ID_LENGTH, dz as McpAuthType, dA as McpServerAuth, dC as McpServerCapabilities, dD as McpToolDefinition, em as McpToolDefinitionSchema, fv as McpToolSchema, dB as McpTransportConfig, ek as McpTransportConfigSchema, aW as Message, cj as MessageApiInsert, ez as MessageApiInsertSchema, ci as MessageApiSelect, ey as MessageApiSelectSchema, ck as MessageApiUpdate, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, h1 as MessageListResponse, dr as MessageMode, bI as MessagePart, gN as MessageResponse, dq as MessageRole, ch as MessageSelect, ev as MessageSelectSchema, bg as MessageSendConfiguration, bh as MessageSendParams, dp as MessageType, ex as MessageUpdateSchema, b1 as MethodNotFoundError, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, ds as Models, aS as OAuth2SecurityScheme, fu as OAuthCallbackQuerySchema, aN as OAuthFlows, ft as OAuthLoginQuerySchema, aT as OpenIdConnectSecurityScheme, dm as Pagination, hf as PaginationQueryParamsSchema, gl as PaginationSchema, P as Part, az as PartBase, aR as PasswordOAuthFlow, dk as ProjectApiInsert, gv as ProjectApiInsertSchema, dj as ProjectApiSelect, gu as ProjectApiSelectSchema, dl as ProjectApiUpdate, gw as ProjectApiUpdateSchema, gs as ProjectInsertSchema, gO as ProjectListResponse, dM as ProjectModelSchema, dt as ProjectModels, gy as ProjectResponse, gr as ProjectSelectSchema, gt as ProjectUpdateSchema, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, fr as RelatedAgentInfoSchema, gq as RemovedResponseSchema, aU as SecurityScheme, aK as SecuritySchemeBase, bn as SendMessageRequest, bv as SendMessageResponse, bu as SendMessageSuccessResponse, bo as SendStreamingMessageRequest, bx as SendStreamingMessageResponse, bw as SendStreamingMessageSuccessResponse, br as SetTaskPushNotificationConfigRequest, bD as SetTaskPushNotificationConfigResponse, bC as SetTaskPushNotificationConfigSuccessResponse, gn as SingleResponseSchema, dv as StatusComponent, ge as StatusComponentSchema, gf as StatusUpdateSchema, du as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bL as SubAgentApiInsert, dT as SubAgentApiInsertSchema, bK as SubAgentApiSelect, dS as SubAgentApiSelectSchema, bM as SubAgentApiUpdate, dU as SubAgentApiUpdateSchema, cK as SubAgentArtifactComponentApiInsert, f2 as SubAgentArtifactComponentApiInsertSchema, cJ as SubAgentArtifactComponentApiSelect, f1 as SubAgentArtifactComponentApiSelectSchema, cL as SubAgentArtifactComponentApiUpdate, f3 as SubAgentArtifactComponentApiUpdateSchema, cH as SubAgentArtifactComponentInsert, e$ as SubAgentArtifactComponentInsertSchema, h5 as SubAgentArtifactComponentListResponse, h3 as SubAgentArtifactComponentResponse, cG as SubAgentArtifactComponentSelect, e_ as SubAgentArtifactComponentSelectSchema, cI as SubAgentArtifactComponentUpdate, f0 as SubAgentArtifactComponentUpdateSchema, cB as SubAgentDataComponentApiInsert, eS as SubAgentDataComponentApiInsertSchema, cA as SubAgentDataComponentApiSelect, eR as SubAgentDataComponentApiSelectSchema, cC as SubAgentDataComponentApiUpdate, eT as SubAgentDataComponentApiUpdateSchema, cy as SubAgentDataComponentInsert, eP as SubAgentDataComponentInsertSchema, h4 as SubAgentDataComponentListResponse, h2 as SubAgentDataComponentResponse, cx as SubAgentDataComponentSelect, eO as SubAgentDataComponentSelectSchema, cz as SubAgentDataComponentUpdate, eQ as SubAgentDataComponentUpdateSchema, dh as SubAgentDefinition, d2 as SubAgentExternalAgentRelationApiInsert, g0 as SubAgentExternalAgentRelationApiInsertSchema, d1 as SubAgentExternalAgentRelationApiSelect, f$ as SubAgentExternalAgentRelationApiSelectSchema, d3 as SubAgentExternalAgentRelationApiUpdate, g1 as SubAgentExternalAgentRelationApiUpdateSchema, fZ as SubAgentExternalAgentRelationInsertSchema, c$ as SubAgentExternalAgentRelationSelect, fY as SubAgentExternalAgentRelationSelectSchema, d0 as SubAgentExternalAgentRelationUpdate, f_ as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gP as SubAgentListResponse, bP as SubAgentRelationApiInsert, dZ as SubAgentRelationApiInsertSchema, bO as SubAgentRelationApiSelect, dY as SubAgentRelationApiSelectSchema, bQ as SubAgentRelationApiUpdate, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, g_ as SubAgentRelationListResponse, bR as SubAgentRelationQuery, d$ as SubAgentRelationQuerySchema, gK as SubAgentRelationResponse, bN as SubAgentRelationSelect, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gz as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d7 as SubAgentTeamAgentRelationApiInsert, g6 as SubAgentTeamAgentRelationApiInsertSchema, d6 as SubAgentTeamAgentRelationApiSelect, g5 as SubAgentTeamAgentRelationApiSelectSchema, d8 as SubAgentTeamAgentRelationApiUpdate, g7 as SubAgentTeamAgentRelationApiUpdateSchema, g3 as SubAgentTeamAgentRelationInsertSchema, d4 as SubAgentTeamAgentRelationSelect, g2 as SubAgentTeamAgentRelationSelectSchema, d5 as SubAgentTeamAgentRelationUpdate, g4 as SubAgentTeamAgentRelationUpdateSchema, cZ as SubAgentToolRelationApiInsert, fW as SubAgentToolRelationApiInsertSchema, cY as SubAgentToolRelationApiSelect, fV as SubAgentToolRelationApiSelectSchema, c_ as SubAgentToolRelationApiUpdate, fX as SubAgentToolRelationApiUpdateSchema, cX as SubAgentToolRelationInsert, fT as SubAgentToolRelationInsertSchema, g$ as SubAgentToolRelationListResponse, gL as SubAgentToolRelationResponse, cW as SubAgentToolRelationSelect, fS as SubAgentToolRelationSelectSchema, fU as SubAgentToolRelationUpdateSchema, dR as SubAgentUpdateSchema, dn as SummaryEvent, dE as TOOL_STATUS_VALUES, aY as Task, bZ as TaskApiInsert, ec as TaskApiInsertSchema, bY as TaskApiSelect, eb as TaskApiSelectSchema, b_ as TaskApiUpdate, ed as TaskApiUpdateSchema, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, e9 as TaskInsertSchema, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c3 as TaskRelationApiInsert, ei as TaskRelationApiInsertSchema, c2 as TaskRelationApiSelect, eh as TaskRelationApiSelectSchema, c4 as TaskRelationApiUpdate, ej as TaskRelationApiUpdateSchema, c0 as TaskRelationInsert, ef as TaskRelationInsertSchema, b$ as TaskRelationSelect, ee as TaskRelationSelectSchema, c1 as TaskRelationUpdate, eg as TaskRelationUpdateSchema, bt as TaskResubscriptionRequest, e8 as TaskSelectSchema, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bX as TaskUpdate, ea as TaskUpdateSchema, gj as TeamAgentSchema, h8 as TenantIdParamsSchema, h7 as TenantParamsSchema, hc as TenantProjectAgentIdParamsSchema, hb as TenantProjectAgentParamsSchema, he as TenantProjectAgentSubAgentIdParamsSchema, hd as TenantProjectAgentSubAgentParamsSchema, ha as TenantProjectIdParamsSchema, h9 as TenantProjectParamsSchema, aA as TextPart, c6 as ToolApiInsert, fz as ToolApiInsertSchema, c5 as ToolApiSelect, fy as ToolApiSelectSchema, c7 as ToolApiUpdate, fA as ToolApiUpdateSchema, di as ToolDefinition, eo as ToolInsertSchema, gR as ToolListResponse, gB as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fx as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, b7 as UnsupportedOperationError, dF as VALID_RELATION_TYPES, gh as canDelegateToExternalAgentSchema, gi as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from './utility-DNsYIxBh.js';
5
+ import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as ProjectScopeConfig, v as FullAgentDefinition, w as AgentScopeConfig, C as ConversationHistoryConfig, x as PaginationConfig, y as AgentInsert, z as AgentUpdate, B as AgentSelect, D as ApiKeySelect, E as ApiKeyInsert, G as ApiKeyUpdate, H as CreateApiKeyParams, I as ApiKeyCreateResult, J as ArtifactComponentSelect, K as ArtifactComponentInsert, L as ArtifactComponentUpdate, N as SubAgentScopeConfig, O as ContextCacheSelect, Q as ContextCacheInsert, R as ContextConfigInsert, U as ContextConfigUpdate, V as ConversationSelect, W as ConversationInsert, o as ConversationMetadata, X as ConversationUpdate, Y as CredentialReferenceSelect, Z as ToolSelect, _ as ExternalAgentSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentUpdate, a6 as FunctionApiInsert, a7 as FunctionToolApiInsert, a8 as FunctionToolApiUpdate, a9 as Artifact, aa as LedgerArtifactSelect, q as MessageMetadata, p as MessageContent, ab as MessageVisibility, ac as MessageInsert, ad as MessageUpdate, ae as FullProjectDefinition, af as ProjectInfo, ag as ProjectSelect, ah as PaginationResult, ai as ProjectResourceCounts, aj as ProjectInsert, ak as ProjectUpdate, al as SubAgentExternalAgentRelationInsert, am as SubAgentRelationInsert, an as SubAgentRelationUpdate, ao as SubAgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, ap as SubAgentInsert, aq as SubAgentUpdate, ar as SubAgentSelect, as as SubAgentTeamAgentRelationInsert, at as TaskInsert, T as TaskMetadataConfig, au as TaskSelect, av as McpTool, aw as ToolInsert, ax as ToolUpdate, h as CredentialStoreType, ay as ExecutionContext } from './utility-DF5IUC9K.js';
6
+ export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bV as AgentApiInsert, e6 as AgentApiInsertSchema, bU as AgentApiSelect, e5 as AgentApiSelectSchema, bW as AgentApiUpdate, e7 as AgentApiUpdateSchema, aH as AgentCapabilities, aV as AgentCard, dx as AgentConversationHistoryConfig, e3 as AgentInsertSchema, gQ as AgentListResponse, aI as AgentProvider, gA as AgentResponse, e2 as AgentSelectSchema, aJ as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e4 as AgentUpdateSchema, gk as AgentWithinContextOfProjectSchema, fa as AllAgentSchema, cP as AllAgentSelect, cT as ApiKeyApiCreationResponse, ff as ApiKeyApiCreationResponseSchema, cR as ApiKeyApiInsert, fg as ApiKeyApiInsertSchema, cQ as ApiKeyApiSelect, fe as ApiKeyApiSelectSchema, cS as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, fc as ApiKeyInsertSchema, gU as ApiKeyListResponse, gE as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, cE as ArtifactComponentApiInsert, eY as ArtifactComponentApiInsertSchema, cD as ArtifactComponentApiSelect, eX as ArtifactComponentApiSelectSchema, cF as ArtifactComponentApiUpdate, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gZ as ArtifactComponentListResponse, gJ as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, aO as AuthorizationCodeOAuthFlow, dg as CanDelegateToExternalAgent, df as CanUseItem, gg as CanUseItemSchema, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, fs as ComponentAssociationSchema, b8 as ContentTypeNotSupportedError, cs as ContextCacheApiInsert, eF as ContextCacheApiInsertSchema, cr as ContextCacheApiSelect, eE as ContextCacheApiSelectSchema, ct as ContextCacheApiUpdate, eG as ContextCacheApiUpdateSchema, dy as ContextCacheEntry, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, cq as ContextCacheUpdate, eD as ContextCacheUpdateSchema, cm as ContextConfigApiInsert, fQ as ContextConfigApiInsertSchema, cl as ContextConfigApiSelect, fP as ContextConfigApiSelectSchema, cn as ContextConfigApiUpdate, fR as ContextConfigApiUpdateSchema, fN as ContextConfigInsertSchema, gT as ContextConfigListResponse, gD as ContextConfigResponse, fM as ContextConfigSelectSchema, fO as ContextConfigUpdateSchema, cf as ConversationApiInsert, et as ConversationApiInsertSchema, ce as ConversationApiSelect, es as ConversationApiSelectSchema, cg as ConversationApiUpdate, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, h0 as ConversationListResponse, gM as ConversationResponse, dw as ConversationScopeOptions, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fp as CreateCredentialInStoreRequestSchema, fq as CreateCredentialInStoreResponseSchema, fl as CredentialReferenceApiInsertSchema, cU as CredentialReferenceApiSelect, fk as CredentialReferenceApiSelectSchema, cV as CredentialReferenceApiUpdate, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gV as CredentialReferenceListResponse, gF as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, fo as CredentialStoreListResponseSchema, fn as CredentialStoreSchema, cv as DataComponentApiInsert, eM as DataComponentApiInsertSchema, cu as DataComponentApiSelect, eL as DataComponentApiSelectSchema, cw as DataComponentApiUpdate, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gY as DataComponentListResponse, gI as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, aF as DataPart, go as ErrorResponseSchema, gp as ExistsResponseSchema, cN as ExternalAgentApiInsert, f8 as ExternalAgentApiInsertSchema, cM as ExternalAgentApiSelect, f7 as ExternalAgentApiSelectSchema, cO as ExternalAgentApiUpdate, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gS as ExternalAgentListResponse, gC as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, bT as ExternalSubAgentRelationApiInsert, e1 as ExternalSubAgentRelationApiInsertSchema, bS as ExternalSubAgentRelationInsert, e0 as ExternalSubAgentRelationInsertSchema, cp as FetchConfig, fK as FetchConfigSchema, co as FetchDefinition, fL as FetchDefinitionSchema, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, de as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, gx as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cb as FunctionApiSelect, j as FunctionApiSelectSchema, cc as FunctionApiUpdate, k as FunctionApiUpdateSchema, c9 as FunctionInsert, fI as FunctionInsertSchema, gW as FunctionListResponse, gG as FunctionResponse, c8 as FunctionSelect, fH as FunctionSelectSchema, fF as FunctionToolApiInsertSchema, cd as FunctionToolApiSelect, fE as FunctionToolApiSelectSchema, fG as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fC as FunctionToolInsertSchema, gX as FunctionToolListResponse, gH as FunctionToolResponse, fB as FunctionToolSelectSchema, fD as FunctionToolUpdateSchema, ca as FunctionUpdate, fJ as FunctionUpdateSchema, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, h6 as HeadersScopeSchema, aQ as ImplicitOAuthFlow, b3 as InternalError, b9 as InvalidAgentResponseError, b2 as InvalidParamsError, b0 as InvalidRequestError, a$ as JSONParseError, bk as JSONRPCError, bm as JSONRPCErrorResponse, bi as JSONRPCMessage, bj as JSONRPCRequest, bl as JSONRPCResult, dc as LedgerArtifactApiInsert, gc as LedgerArtifactApiInsertSchema, db as LedgerArtifactApiSelect, gb as LedgerArtifactApiSelectSchema, dd as LedgerArtifactApiUpdate, gd as LedgerArtifactApiUpdateSchema, d9 as LedgerArtifactInsert, g9 as LedgerArtifactInsertSchema, g8 as LedgerArtifactSelectSchema, da as LedgerArtifactUpdate, ga as LedgerArtifactUpdateSchema, gm as ListResponseSchema, dI as MAX_ID_LENGTH, dG as MCPServerType, fw as MCPToolConfigSchema, dH as MIN_ID_LENGTH, dz as McpAuthType, dA as McpServerAuth, dC as McpServerCapabilities, dD as McpToolDefinition, em as McpToolDefinitionSchema, fv as McpToolSchema, dB as McpTransportConfig, ek as McpTransportConfigSchema, aW as Message, cj as MessageApiInsert, ez as MessageApiInsertSchema, ci as MessageApiSelect, ey as MessageApiSelectSchema, ck as MessageApiUpdate, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, h1 as MessageListResponse, dr as MessageMode, bI as MessagePart, gN as MessageResponse, dq as MessageRole, ch as MessageSelect, ev as MessageSelectSchema, bg as MessageSendConfiguration, bh as MessageSendParams, dp as MessageType, ex as MessageUpdateSchema, b1 as MethodNotFoundError, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, ds as Models, aS as OAuth2SecurityScheme, fu as OAuthCallbackQuerySchema, aN as OAuthFlows, ft as OAuthLoginQuerySchema, aT as OpenIdConnectSecurityScheme, dm as Pagination, hf as PaginationQueryParamsSchema, gl as PaginationSchema, P as Part, az as PartBase, aR as PasswordOAuthFlow, dk as ProjectApiInsert, gv as ProjectApiInsertSchema, dj as ProjectApiSelect, gu as ProjectApiSelectSchema, dl as ProjectApiUpdate, gw as ProjectApiUpdateSchema, gs as ProjectInsertSchema, gO as ProjectListResponse, dM as ProjectModelSchema, dt as ProjectModels, gy as ProjectResponse, gr as ProjectSelectSchema, gt as ProjectUpdateSchema, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, fr as RelatedAgentInfoSchema, gq as RemovedResponseSchema, aU as SecurityScheme, aK as SecuritySchemeBase, bn as SendMessageRequest, bv as SendMessageResponse, bu as SendMessageSuccessResponse, bo as SendStreamingMessageRequest, bx as SendStreamingMessageResponse, bw as SendStreamingMessageSuccessResponse, br as SetTaskPushNotificationConfigRequest, bD as SetTaskPushNotificationConfigResponse, bC as SetTaskPushNotificationConfigSuccessResponse, gn as SingleResponseSchema, dv as StatusComponent, ge as StatusComponentSchema, gf as StatusUpdateSchema, du as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bL as SubAgentApiInsert, dT as SubAgentApiInsertSchema, bK as SubAgentApiSelect, dS as SubAgentApiSelectSchema, bM as SubAgentApiUpdate, dU as SubAgentApiUpdateSchema, cK as SubAgentArtifactComponentApiInsert, f2 as SubAgentArtifactComponentApiInsertSchema, cJ as SubAgentArtifactComponentApiSelect, f1 as SubAgentArtifactComponentApiSelectSchema, cL as SubAgentArtifactComponentApiUpdate, f3 as SubAgentArtifactComponentApiUpdateSchema, cH as SubAgentArtifactComponentInsert, e$ as SubAgentArtifactComponentInsertSchema, h5 as SubAgentArtifactComponentListResponse, h3 as SubAgentArtifactComponentResponse, cG as SubAgentArtifactComponentSelect, e_ as SubAgentArtifactComponentSelectSchema, cI as SubAgentArtifactComponentUpdate, f0 as SubAgentArtifactComponentUpdateSchema, cB as SubAgentDataComponentApiInsert, eS as SubAgentDataComponentApiInsertSchema, cA as SubAgentDataComponentApiSelect, eR as SubAgentDataComponentApiSelectSchema, cC as SubAgentDataComponentApiUpdate, eT as SubAgentDataComponentApiUpdateSchema, cy as SubAgentDataComponentInsert, eP as SubAgentDataComponentInsertSchema, h4 as SubAgentDataComponentListResponse, h2 as SubAgentDataComponentResponse, cx as SubAgentDataComponentSelect, eO as SubAgentDataComponentSelectSchema, cz as SubAgentDataComponentUpdate, eQ as SubAgentDataComponentUpdateSchema, dh as SubAgentDefinition, d2 as SubAgentExternalAgentRelationApiInsert, g0 as SubAgentExternalAgentRelationApiInsertSchema, d1 as SubAgentExternalAgentRelationApiSelect, f$ as SubAgentExternalAgentRelationApiSelectSchema, d3 as SubAgentExternalAgentRelationApiUpdate, g1 as SubAgentExternalAgentRelationApiUpdateSchema, fZ as SubAgentExternalAgentRelationInsertSchema, c$ as SubAgentExternalAgentRelationSelect, fY as SubAgentExternalAgentRelationSelectSchema, d0 as SubAgentExternalAgentRelationUpdate, f_ as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gP as SubAgentListResponse, bP as SubAgentRelationApiInsert, dZ as SubAgentRelationApiInsertSchema, bO as SubAgentRelationApiSelect, dY as SubAgentRelationApiSelectSchema, bQ as SubAgentRelationApiUpdate, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, g_ as SubAgentRelationListResponse, bR as SubAgentRelationQuery, d$ as SubAgentRelationQuerySchema, gK as SubAgentRelationResponse, bN as SubAgentRelationSelect, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gz as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d7 as SubAgentTeamAgentRelationApiInsert, g6 as SubAgentTeamAgentRelationApiInsertSchema, d6 as SubAgentTeamAgentRelationApiSelect, g5 as SubAgentTeamAgentRelationApiSelectSchema, d8 as SubAgentTeamAgentRelationApiUpdate, g7 as SubAgentTeamAgentRelationApiUpdateSchema, g3 as SubAgentTeamAgentRelationInsertSchema, d4 as SubAgentTeamAgentRelationSelect, g2 as SubAgentTeamAgentRelationSelectSchema, d5 as SubAgentTeamAgentRelationUpdate, g4 as SubAgentTeamAgentRelationUpdateSchema, cZ as SubAgentToolRelationApiInsert, fW as SubAgentToolRelationApiInsertSchema, cY as SubAgentToolRelationApiSelect, fV as SubAgentToolRelationApiSelectSchema, c_ as SubAgentToolRelationApiUpdate, fX as SubAgentToolRelationApiUpdateSchema, cX as SubAgentToolRelationInsert, fT as SubAgentToolRelationInsertSchema, g$ as SubAgentToolRelationListResponse, gL as SubAgentToolRelationResponse, cW as SubAgentToolRelationSelect, fS as SubAgentToolRelationSelectSchema, fU as SubAgentToolRelationUpdateSchema, dR as SubAgentUpdateSchema, dn as SummaryEvent, dE as TOOL_STATUS_VALUES, aY as Task, bZ as TaskApiInsert, ec as TaskApiInsertSchema, bY as TaskApiSelect, eb as TaskApiSelectSchema, b_ as TaskApiUpdate, ed as TaskApiUpdateSchema, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, e9 as TaskInsertSchema, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c3 as TaskRelationApiInsert, ei as TaskRelationApiInsertSchema, c2 as TaskRelationApiSelect, eh as TaskRelationApiSelectSchema, c4 as TaskRelationApiUpdate, ej as TaskRelationApiUpdateSchema, c0 as TaskRelationInsert, ef as TaskRelationInsertSchema, b$ as TaskRelationSelect, ee as TaskRelationSelectSchema, c1 as TaskRelationUpdate, eg as TaskRelationUpdateSchema, bt as TaskResubscriptionRequest, e8 as TaskSelectSchema, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bX as TaskUpdate, ea as TaskUpdateSchema, gj as TeamAgentSchema, h8 as TenantIdParamsSchema, h7 as TenantParamsSchema, hc as TenantProjectAgentIdParamsSchema, hb as TenantProjectAgentParamsSchema, he as TenantProjectAgentSubAgentIdParamsSchema, hd as TenantProjectAgentSubAgentParamsSchema, ha as TenantProjectIdParamsSchema, h9 as TenantProjectParamsSchema, aA as TextPart, c6 as ToolApiInsert, fz as ToolApiInsertSchema, c5 as ToolApiSelect, fy as ToolApiSelectSchema, c7 as ToolApiUpdate, fA as ToolApiUpdateSchema, di as ToolDefinition, eo as ToolInsertSchema, gR as ToolListResponse, gB as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fx as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, b7 as UnsupportedOperationError, dF as VALID_RELATION_TYPES, gh as canDelegateToExternalAgentSchema, gi as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from './utility-DF5IUC9K.js';
7
7
  import { CredentialStore } from './types/index.js';
8
8
  export { CorsConfig, ServerConfig, ServerOptions } from './types/index.js';
9
- import { LibSQLDatabase } from 'drizzle-orm/libsql';
10
- import { s as schema } from './schema-BiVwgjkS.js';
11
- export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from './schema-BiVwgjkS.js';
9
+ import { NodePgDatabase } from 'drizzle-orm/node-postgres';
10
+ import { PgliteDatabase } from 'drizzle-orm/pglite';
11
+ import { s as schema } from './schema-CuEjPQt7.js';
12
+ export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from './schema-CuEjPQt7.js';
12
13
  import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js';
13
14
  import { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
14
15
  import { ClientCapabilities } from '@modelcontextprotocol/sdk/types.js';
15
- import { SQLiteTable } from 'drizzle-orm/sqlite-core';
16
+ import { PgTable } from 'drizzle-orm/pg-core';
16
17
  import { ValidateFunction } from 'ajv';
17
18
  import { Context, Next } from 'hono';
18
19
  import { z as z$1 } from '@hono/zod-openapi';
@@ -58,6 +59,58 @@ import 'drizzle-orm';
58
59
  */
59
60
  declare function apiFetch(url: string, options?: RequestInit): Promise<Response>;
60
61
 
62
+ /**
63
+ * Shared execution limit default constants used for runtime behavior across services.
64
+ * These define limits and defaults for runtime execution, not schema validation.
65
+ */
66
+ declare const executionLimitsSharedDefaults: {
67
+ readonly MCP_TOOL_CONNECTION_TIMEOUT_MS: 3000;
68
+ readonly MCP_TOOL_MAX_RETRIES: 3;
69
+ readonly MCP_TOOL_MAX_RECONNECTION_DELAY_MS: 30000;
70
+ readonly MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS: 1000;
71
+ readonly MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR: 1.5;
72
+ readonly CONVERSATION_HISTORY_DEFAULT_LIMIT: 50;
73
+ readonly CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT: 4000;
74
+ };
75
+
76
+ declare const MCP_TOOL_CONNECTION_TIMEOUT_MS: 3000;
77
+ declare const MCP_TOOL_MAX_RETRIES: 3;
78
+ declare const MCP_TOOL_MAX_RECONNECTION_DELAY_MS: 30000;
79
+ declare const MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS: 1000;
80
+ declare const MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR: 1.5;
81
+ declare const CONVERSATION_HISTORY_DEFAULT_LIMIT: 50;
82
+ declare const CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT: 4000;
83
+
84
+ /**
85
+ * Schema validation default constants used in Zod schemas.
86
+ * These define limits and defaults for user-configurable values.
87
+ */
88
+ declare const schemaValidationDefaults: {
89
+ readonly AGENT_EXECUTION_TRANSFER_COUNT_MIN: 1;
90
+ readonly AGENT_EXECUTION_TRANSFER_COUNT_MAX: 1000;
91
+ readonly AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT: 10;
92
+ readonly SUB_AGENT_TURN_GENERATION_STEPS_MIN: 1;
93
+ readonly SUB_AGENT_TURN_GENERATION_STEPS_MAX: 1000;
94
+ readonly SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT: 12;
95
+ readonly STATUS_UPDATE_MAX_NUM_EVENTS: 100;
96
+ readonly STATUS_UPDATE_MAX_INTERVAL_SECONDS: 600;
97
+ readonly VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS: 2000;
98
+ readonly VALIDATION_AGENT_PROMPT_MAX_CHARS: 5000;
99
+ readonly CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT: 10000;
100
+ };
101
+
102
+ declare const AGENT_EXECUTION_TRANSFER_COUNT_MIN: 1;
103
+ declare const AGENT_EXECUTION_TRANSFER_COUNT_MAX: 1000;
104
+ declare const AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT: 10;
105
+ declare const SUB_AGENT_TURN_GENERATION_STEPS_MIN: 1;
106
+ declare const SUB_AGENT_TURN_GENERATION_STEPS_MAX: 1000;
107
+ declare const SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT: 12;
108
+ declare const STATUS_UPDATE_MAX_NUM_EVENTS: 100;
109
+ declare const STATUS_UPDATE_MAX_INTERVAL_SECONDS: 600;
110
+ declare const VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS: 2000;
111
+ declare const VALIDATION_AGENT_PROMPT_MAX_CHARS: 5000;
112
+ declare const CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT: 10000;
113
+
61
114
  type Primitive = string | number | boolean | bigint | symbol | null | undefined | Date;
62
115
  type JoinDot<P extends string, K extends string> = [P] extends [''] ? K : `${P}.${K}`;
63
116
  type DotPaths<T, P extends string = ''> = [T] extends [Primitive] ? P : T extends ReadonlyArray<infer U> ? P | DotPaths<U, `${P}[${number}]`> | DotPaths<U, `${P}[*]`> : T extends Array<infer U> ? P | DotPaths<U, `${P}[${number}]`> | DotPaths<U, `${P}[*]`> : T extends object ? P | {
@@ -184,22 +237,19 @@ declare class CredentialStoreRegistry {
184
237
  size(): number;
185
238
  }
186
239
 
187
- type DatabaseClient = LibSQLDatabase<typeof schema>;
240
+ type DatabaseClient = NodePgDatabase<typeof schema> | PgliteDatabase<typeof schema>;
188
241
  interface DatabaseConfig {
189
- url: string;
190
- authToken?: string;
242
+ connectionString?: string;
243
+ poolSize?: number;
244
+ ssl?: boolean;
191
245
  logger?: {
192
246
  logQuery: (query: string, params: unknown[]) => void;
193
247
  };
194
248
  }
195
249
  /**
196
- * Creates a database client with the specified configuration
197
- */
198
- declare function createDatabaseClient(config: DatabaseConfig): DatabaseClient;
199
- /**
200
- * Creates an in-memory database client for testing
250
+ * Creates a PostgreSQL database client with connection pooling
201
251
  */
202
- declare function createInMemoryDatabaseClient(): DatabaseClient;
252
+ declare function createDatabaseClient(config?: DatabaseConfig): DatabaseClient;
203
253
 
204
254
  interface TemplateContext {
205
255
  [key: string]: unknown;
@@ -1057,14 +1107,12 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
1057
1107
  scopes: AgentScopeConfig;
1058
1108
  data: AgentUpdate;
1059
1109
  }) => Promise<{
1060
- tenantId: string;
1061
- projectId: string;
1062
- id: string;
1063
- name: string;
1064
- description: string | null;
1065
- prompt: string | null;
1066
1110
  createdAt: string;
1067
1111
  updatedAt: string;
1112
+ name: string;
1113
+ description: string | null;
1114
+ defaultSubAgentId: string | null;
1115
+ contextConfigId: string | null;
1068
1116
  models: {
1069
1117
  base?: {
1070
1118
  model?: string | undefined;
@@ -1079,11 +1127,6 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
1079
1127
  providerOptions?: Record<string, any> | undefined;
1080
1128
  } | undefined;
1081
1129
  } | null;
1082
- stopWhen: {
1083
- transferCountIs?: number | undefined;
1084
- } | null;
1085
- defaultSubAgentId: string | null;
1086
- contextConfigId: string | null;
1087
1130
  statusUpdates: {
1088
1131
  enabled?: boolean | undefined;
1089
1132
  numEvents?: number | undefined;
@@ -1099,6 +1142,13 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
1099
1142
  } | undefined;
1100
1143
  }[] | undefined;
1101
1144
  } | null;
1145
+ prompt: string | null;
1146
+ stopWhen: {
1147
+ transferCountIs?: number | undefined;
1148
+ } | null;
1149
+ projectId: string;
1150
+ tenantId: string;
1151
+ id: string;
1102
1152
  }>;
1103
1153
  declare const deleteAgent: (db: DatabaseClient) => (params: {
1104
1154
  scopes: AgentScopeConfig;
@@ -1107,8 +1157,8 @@ declare const deleteAgent: (db: DatabaseClient) => (params: {
1107
1157
  * Helper function to fetch component relationships using efficient joins
1108
1158
  */
1109
1159
  declare const fetchComponentRelationships: (db: DatabaseClient) => <T extends Record<string, unknown>>(scopes: ProjectScopeConfig, subAgentIds: string[], config: {
1110
- relationTable: SQLiteTable<any>;
1111
- componentTable: SQLiteTable<any>;
1160
+ relationTable: PgTable<any>;
1161
+ componentTable: PgTable<any>;
1112
1162
  relationIdField: unknown;
1113
1163
  componentIdField: unknown;
1114
1164
  subAgentIdField: unknown;
@@ -1213,18 +1263,18 @@ declare const updateApiKey: (db: DatabaseClient) => (params: {
1213
1263
  id: string;
1214
1264
  data: ApiKeyUpdate;
1215
1265
  }) => Promise<{
1216
- tenantId: string;
1217
- projectId: string;
1218
- id: string;
1219
- name: string | null;
1220
- agentId: string;
1266
+ createdAt: string;
1267
+ updatedAt: string;
1221
1268
  publicId: string;
1222
1269
  keyHash: string;
1223
1270
  keyPrefix: string;
1271
+ name: string | null;
1224
1272
  lastUsedAt: string | null;
1225
1273
  expiresAt: string | null;
1226
- createdAt: string;
1227
- updatedAt: string;
1274
+ agentId: string;
1275
+ projectId: string;
1276
+ tenantId: string;
1277
+ id: string;
1228
1278
  }>;
1229
1279
  declare const deleteApiKey: (db: DatabaseClient) => (params: {
1230
1280
  scopes: ProjectScopeConfig;
@@ -1301,14 +1351,14 @@ declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
1301
1351
  id: string;
1302
1352
  data: ArtifactComponentUpdate;
1303
1353
  }) => Promise<{
1304
- tenantId: string;
1305
- projectId: string;
1306
- id: string;
1307
- name: string;
1308
- description: string;
1309
1354
  createdAt: string;
1310
1355
  updatedAt: string;
1311
1356
  props: Record<string, unknown> | null;
1357
+ name: string;
1358
+ description: string;
1359
+ projectId: string;
1360
+ tenantId: string;
1361
+ id: string;
1312
1362
  }>;
1313
1363
  declare const deleteArtifactComponent: (db: DatabaseClient) => (params: {
1314
1364
  scopes: ProjectScopeConfig;
@@ -1505,14 +1555,14 @@ declare const updateContextConfig: (db: DatabaseClient) => (params: {
1505
1555
  id: string;
1506
1556
  data: Partial<ContextConfigUpdate>;
1507
1557
  }) => Promise<{
1508
- tenantId: string;
1509
- projectId: string;
1510
- id: string;
1511
- agentId: string;
1512
1558
  createdAt: string;
1513
1559
  updatedAt: string;
1514
1560
  headersSchema: unknown;
1515
1561
  contextVariables: Record<string, ContextFetchDefinition> | null;
1562
+ agentId: string;
1563
+ projectId: string;
1564
+ tenantId: string;
1565
+ id: string;
1516
1566
  }>;
1517
1567
  declare const deleteContextConfig: (db: DatabaseClient) => (params: {
1518
1568
  scopes: AgentScopeConfig;
@@ -1566,16 +1616,16 @@ declare const updateConversation: (db: DatabaseClient) => (params: {
1566
1616
  conversationId: string;
1567
1617
  data: ConversationUpdate;
1568
1618
  }) => Promise<{
1569
- tenantId: string;
1570
- projectId: string;
1571
- id: string;
1572
- title: string | null;
1573
1619
  createdAt: string;
1574
1620
  updatedAt: string;
1575
- metadata: ConversationMetadata | null;
1576
1621
  userId: string | null;
1577
1622
  activeSubAgentId: string;
1623
+ title: string | null;
1578
1624
  lastContextResolution: string | null;
1625
+ metadata: ConversationMetadata | null;
1626
+ projectId: string;
1627
+ tenantId: string;
1628
+ id: string;
1579
1629
  }>;
1580
1630
  declare const deleteConversation: (db: DatabaseClient) => (params: {
1581
1631
  scopes: ProjectScopeConfig;
@@ -1586,16 +1636,16 @@ declare const updateConversationActiveAgent: (db: DatabaseClient) => (params: {
1586
1636
  conversationId: string;
1587
1637
  activeSubAgentId: string;
1588
1638
  }) => Promise<{
1589
- tenantId: string;
1590
- projectId: string;
1591
- id: string;
1592
- title: string | null;
1593
1639
  createdAt: string;
1594
1640
  updatedAt: string;
1595
- metadata: ConversationMetadata | null;
1596
1641
  userId: string | null;
1597
1642
  activeSubAgentId: string;
1643
+ title: string | null;
1598
1644
  lastContextResolution: string | null;
1645
+ metadata: ConversationMetadata | null;
1646
+ projectId: string;
1647
+ tenantId: string;
1648
+ id: string;
1599
1649
  }>;
1600
1650
  declare const getConversation: (db: DatabaseClient) => (params: {
1601
1651
  scopes: ProjectScopeConfig;
@@ -2060,15 +2110,15 @@ declare const updateFunctionTool: (db: DatabaseClient) => (params: {
2060
2110
  functionToolId: string;
2061
2111
  data: FunctionToolApiUpdate;
2062
2112
  }) => Promise<{
2063
- tenantId: string;
2064
- projectId: string;
2065
- id: string;
2066
- name: string;
2067
- description: string | null;
2068
- agentId: string;
2069
2113
  createdAt: string;
2070
2114
  updatedAt: string;
2115
+ name: string;
2116
+ description: string | null;
2071
2117
  functionId: string;
2118
+ agentId: string;
2119
+ projectId: string;
2120
+ tenantId: string;
2121
+ id: string;
2072
2122
  }>;
2073
2123
  /**
2074
2124
  * Delete a function tool (agent-scoped)
@@ -2379,13 +2429,8 @@ declare const updateMessage: (db: DatabaseClient) => (params: {
2379
2429
  messageId: string;
2380
2430
  data: MessageUpdate;
2381
2431
  }) => Promise<{
2382
- tenantId: string;
2383
- projectId: string;
2384
- id: string;
2385
2432
  createdAt: string;
2386
2433
  updatedAt: string;
2387
- metadata: MessageMetadata | null;
2388
- content: MessageContent;
2389
2434
  conversationId: string;
2390
2435
  role: string;
2391
2436
  fromSubAgentId: string | null;
@@ -2394,12 +2439,17 @@ declare const updateMessage: (db: DatabaseClient) => (params: {
2394
2439
  toExternalAgentId: string | null;
2395
2440
  fromTeamAgentId: string | null;
2396
2441
  toTeamAgentId: string | null;
2442
+ content: MessageContent;
2397
2443
  visibility: string;
2398
2444
  messageType: string;
2399
2445
  taskId: string | null;
2400
2446
  parentMessageId: string | null;
2401
2447
  a2aTaskId: string | null;
2402
2448
  a2aSessionId: string | null;
2449
+ metadata: MessageMetadata | null;
2450
+ projectId: string;
2451
+ tenantId: string;
2452
+ id: string;
2403
2453
  }>;
2404
2454
  declare const deleteMessage: (db: DatabaseClient) => (params: {
2405
2455
  scopes: ProjectScopeConfig;
@@ -2754,15 +2804,15 @@ declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
2754
2804
  relationId: string;
2755
2805
  data: Partial<SubAgentExternalAgentRelationInsert>;
2756
2806
  }) => Promise<{
2757
- tenantId: string;
2758
- projectId: string;
2759
- id: string;
2760
- agentId: string;
2761
2807
  createdAt: string;
2762
2808
  updatedAt: string;
2763
- headers: Record<string, string> | null;
2764
2809
  externalAgentId: string;
2810
+ headers: Record<string, string> | null;
2765
2811
  subAgentId: string;
2812
+ agentId: string;
2813
+ projectId: string;
2814
+ tenantId: string;
2815
+ id: string;
2766
2816
  }>;
2767
2817
  declare const deleteSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
2768
2818
  scopes: SubAgentScopeConfig;
@@ -2943,15 +2993,15 @@ declare const updateAgentRelation: (db: DatabaseClient) => (params: {
2943
2993
  relationId: string;
2944
2994
  data: SubAgentRelationUpdate;
2945
2995
  }) => Promise<{
2946
- tenantId: string;
2947
- projectId: string;
2948
- id: string;
2949
- agentId: string;
2950
2996
  createdAt: string;
2951
2997
  updatedAt: string;
2952
2998
  sourceSubAgentId: string;
2953
2999
  targetSubAgentId: string | null;
2954
3000
  relationType: string | null;
3001
+ agentId: string;
3002
+ projectId: string;
3003
+ tenantId: string;
3004
+ id: string;
2955
3005
  }>;
2956
3006
  declare const deleteSubAgentRelation: (db: DatabaseClient) => (params: {
2957
3007
  scopes: AgentScopeConfig;
@@ -2986,16 +3036,16 @@ declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
2986
3036
  relationId: string;
2987
3037
  data: SubAgentToolRelationUpdate;
2988
3038
  }) => Promise<{
2989
- tenantId: string;
2990
- projectId: string;
2991
- id: string;
2992
- agentId: string;
2993
3039
  createdAt: string;
2994
3040
  updatedAt: string;
2995
- headers: Record<string, string> | null;
2996
3041
  toolId: string;
2997
3042
  selectedTools: string[] | null;
3043
+ headers: Record<string, string> | null;
2998
3044
  subAgentId: string;
3045
+ agentId: string;
3046
+ projectId: string;
3047
+ tenantId: string;
3048
+ id: string;
2999
3049
  }>;
3000
3050
  declare const deleteAgentToolRelation: (db: DatabaseClient) => (params: {
3001
3051
  scopes: AgentScopeConfig;
@@ -3317,15 +3367,10 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
3317
3367
  subAgentId: string;
3318
3368
  data: SubAgentUpdate;
3319
3369
  }) => Promise<{
3320
- tenantId: string;
3321
- projectId: string;
3322
- id: string;
3323
- name: string;
3324
- description: string;
3325
- prompt: string;
3326
- agentId: string;
3327
3370
  createdAt: string;
3328
3371
  updatedAt: string;
3372
+ prompt: string;
3373
+ conversationHistoryConfig: ConversationHistoryConfig | null;
3329
3374
  models: {
3330
3375
  base?: {
3331
3376
  model?: string | undefined;
@@ -3343,7 +3388,12 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
3343
3388
  stopWhen: {
3344
3389
  stepCountIs?: number | undefined;
3345
3390
  } | null;
3346
- conversationHistoryConfig: ConversationHistoryConfig | null;
3391
+ name: string;
3392
+ description: string;
3393
+ agentId: string;
3394
+ projectId: string;
3395
+ tenantId: string;
3396
+ id: string;
3347
3397
  }>;
3348
3398
  /**
3349
3399
  * Upsert agent (create if it doesn't exist, update if it does)
@@ -3646,15 +3696,15 @@ declare const updateSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
3646
3696
  relationId: string;
3647
3697
  data: Partial<SubAgentTeamAgentRelationInsert>;
3648
3698
  }) => Promise<{
3649
- tenantId: string;
3650
- projectId: string;
3651
- id: string;
3652
- agentId: string;
3653
3699
  createdAt: string;
3654
3700
  updatedAt: string;
3701
+ targetAgentId: string;
3655
3702
  headers: Record<string, string> | null;
3656
3703
  subAgentId: string;
3657
- targetAgentId: string;
3704
+ agentId: string;
3705
+ projectId: string;
3706
+ tenantId: string;
3707
+ id: string;
3658
3708
  }>;
3659
3709
  declare const deleteSubAgentTeamAgentRelation: (db: DatabaseClient) => (params: {
3660
3710
  scopes: SubAgentScopeConfig;
@@ -3689,16 +3739,16 @@ declare const updateTask: (db: DatabaseClient) => (params: {
3689
3739
  metadata?: any;
3690
3740
  };
3691
3741
  }) => Promise<{
3692
- tenantId: string;
3693
- projectId: string;
3694
- id: string;
3695
- agentId: string;
3696
3742
  createdAt: string;
3697
3743
  updatedAt: string;
3744
+ contextId: string;
3698
3745
  status: string;
3699
3746
  metadata: TaskMetadataConfig | null;
3700
- contextId: string;
3701
3747
  subAgentId: string;
3748
+ agentId: string;
3749
+ projectId: string;
3750
+ tenantId: string;
3751
+ id: string;
3702
3752
  }>;
3703
3753
  declare const listTaskIdsByContextId: (db: DatabaseClient) => (params: {
3704
3754
  contextId: string;
@@ -3778,9 +3828,8 @@ declare const updateTool: (db: DatabaseClient) => (params: {
3778
3828
  toolId: string;
3779
3829
  data: ToolUpdate;
3780
3830
  }) => Promise<{
3781
- tenantId: string;
3782
- projectId: string;
3783
- id: string;
3831
+ createdAt: string;
3832
+ updatedAt: string;
3784
3833
  name: string;
3785
3834
  description: string | null;
3786
3835
  config: {
@@ -3788,12 +3837,13 @@ declare const updateTool: (db: DatabaseClient) => (params: {
3788
3837
  mcp: ToolMcpConfig;
3789
3838
  };
3790
3839
  credentialReferenceId: string | null;
3791
- createdAt: string;
3792
- updatedAt: string;
3793
3840
  headers: Record<string, string> | null;
3794
- capabilities: ToolServerCapabilities | null;
3795
3841
  imageUrl: string | null;
3842
+ capabilities: ToolServerCapabilities | null;
3796
3843
  lastError: string | null;
3844
+ projectId: string;
3845
+ tenantId: string;
3846
+ id: string;
3797
3847
  }>;
3798
3848
  declare const deleteTool: (db: DatabaseClient) => (params: {
3799
3849
  scopes: ProjectScopeConfig;
@@ -3988,6 +4038,13 @@ declare function getCredentialStoreLookupKeyFromRetrievalParams({ retrievalParam
3988
4038
  credentialStoreType: keyof typeof CredentialStoreType;
3989
4039
  }): string | null;
3990
4040
 
4041
+ /**
4042
+ * Checks if a date string is in PostgreSQL timestamp format and normalizes it to ISO 8601
4043
+ * PostgreSQL format: "2025-11-07 21:48:24.858" or "2025-11-07 21:48:24"
4044
+ * ISO 8601 format: "2025-11-07T21:48:24.858Z"
4045
+ */
4046
+ declare function normalizeDateString(dateString: string | Date): string | Date;
4047
+
3991
4048
  declare const ErrorCode: z$1.ZodEnum<{
3992
4049
  bad_request: "bad_request";
3993
4050
  unauthorized: "unauthorized";
@@ -4617,4 +4674,4 @@ declare function setSpanWithError(span: Span, error: Error, logger?: {
4617
4674
  */
4618
4675
  declare function getTracer(serviceName: string, serviceVersion?: string): Tracer;
4619
4676
 
4620
- export { AgentInsert, type AgentLogger, AgentScopeConfig, AgentSelect, AgentUpdate, ApiKeyCreateResult, type ApiKeyGenerationResult, ApiKeyInsert, ApiKeySelect, ApiKeyUpdate, Artifact, ArtifactComponentInsert, ArtifactComponentSelect, ArtifactComponentUpdate, type CommonCreateErrorResponses, type CommonDeleteErrorResponses, type CommonGetErrorResponses, type CommonUpdateErrorResponses, ContextCache, ContextCacheInsert, ContextCacheSelect, ContextConfigBuilder, type ContextConfigBuilderOptions, ContextConfigInsert, ContextConfigSelect, ContextConfigUpdate, ContextFetchDefinition, ContextFetcher, type ContextResolutionOptions, type ContextResolutionResult, ContextResolver, type ContextResolverInterface, type ContextValidationError, type ContextValidationResult, ConversationHistoryConfig, ConversationInsert, ConversationMetadata, ConversationSelect, ConversationUpdate, CreateApiKeyParams, type CredentialContext, type CredentialData, CredentialReferenceApiInsert, CredentialReferenceInsert, CredentialReferenceSelect, CredentialReferenceUpdate, type CredentialReferenceWithResources, type CredentialResolverInput, CredentialStore, type CredentialStoreReference, CredentialStoreRegistry, CredentialStoreType, CredentialStuffer, DataComponentInsert, DataComponentSelect, DataComponentUpdate, type DatabaseClient, type DatabaseConfig, type DotPaths, ERROR_DOCS_BASE_URL, ErrorCode, type ErrorCodes, type ErrorResponse, ExecutionContext, ExternalAgentInsert, ExternalAgentSelect, ExternalAgentUpdate, type FetchResult, FullAgentDefinition, FullProjectDefinition, FunctionApiInsert, FunctionToolApiInsert, FunctionToolApiUpdate, type GenerateServiceTokenParams, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect, MCPToolConfig, MCPTransportType, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, type ServiceTokenPayload, SubAgentExternalAgentRelationInsert, SubAgentInsert, SubAgentRelationInsert, SubAgentRelationUpdate, SubAgentScopeConfig, SubAgentSelect, SubAgentTeamAgentRelationInsert, SubAgentToolRelationUpdate, SubAgentUpdate, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, type VerifyServiceTokenResult, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentExternalAgentRelation, createSubAgentRelation, createSubAgentTeamAgentRelation, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentExternalAgentRelation, deleteSubAgentExternalAgentRelationsByAgent, deleteSubAgentExternalAgentRelationsBySubAgent, deleteSubAgentRelation, deleteSubAgentTeamAgentRelation, deleteSubAgentTeamAgentRelationsByAgent, deleteSubAgentTeamAgentRelationsBySubAgent, deleteTool, determineContextTrigger, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, generateId, generateServiceToken, getActiveAgentForConversation, getAgentById, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithResources, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentsForSubAgent, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getRequestExecutionContext, getSubAgentById, getSubAgentExternalAgentRelationById, getSubAgentExternalAgentRelationByParams, getSubAgentExternalAgentRelations, getSubAgentExternalAgentRelationsByAgent, getSubAgentExternalAgentRelationsByExternalAgent, getSubAgentRelationsByTarget, getSubAgentTeamAgentRelationById, getSubAgentTeamAgentRelationByParams, getSubAgentTeamAgentRelations, getSubAgentTeamAgentRelationsByAgent, getSubAgentTeamAgentRelationsByTeamAgent, getSubAgentsByIds, getSubAgentsForExternalAgent, getSubAgentsForTeamAgent, getTask, getTeamAgentsForSubAgent, getToolById, getToolsForAgent, getTracer, getVisibleMessages, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listMessages, listProjects, listProjectsPaginated, listSubAgentExternalAgentRelations, listSubAgentTeamAgentRelations, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateMessage, updateProject, updateSubAgent, updateSubAgentExternalAgentRelation, updateSubAgentFunctionToolRelation, updateSubAgentTeamAgentRelation, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertSubAgent, upsertSubAgentExternalAgentRelation, upsertSubAgentFunctionToolRelation, upsertSubAgentRelation, upsertSubAgentTeamAgentRelation, upsertSubAgentToolRelation, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateHeaders, validateHttpRequestHeaders, validateProjectExists, validateSubAgent, validateTargetAgent, validateTenantId, validationHelper, verifyAuthorizationHeader, verifyServiceToken, withProjectValidation };
4677
+ export { AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, AgentInsert, type AgentLogger, AgentScopeConfig, AgentSelect, AgentUpdate, ApiKeyCreateResult, type ApiKeyGenerationResult, ApiKeyInsert, ApiKeySelect, ApiKeyUpdate, Artifact, ArtifactComponentInsert, ArtifactComponentSelect, ArtifactComponentUpdate, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, CONVERSATION_HISTORY_DEFAULT_LIMIT, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT, type CommonCreateErrorResponses, type CommonDeleteErrorResponses, type CommonGetErrorResponses, type CommonUpdateErrorResponses, ContextCache, ContextCacheInsert, ContextCacheSelect, ContextConfigBuilder, type ContextConfigBuilderOptions, ContextConfigInsert, ContextConfigSelect, ContextConfigUpdate, ContextFetchDefinition, ContextFetcher, type ContextResolutionOptions, type ContextResolutionResult, ContextResolver, type ContextResolverInterface, type ContextValidationError, type ContextValidationResult, ConversationHistoryConfig, ConversationInsert, ConversationMetadata, ConversationSelect, ConversationUpdate, CreateApiKeyParams, type CredentialContext, type CredentialData, CredentialReferenceApiInsert, CredentialReferenceInsert, CredentialReferenceSelect, CredentialReferenceUpdate, type CredentialReferenceWithResources, type CredentialResolverInput, CredentialStore, type CredentialStoreReference, CredentialStoreRegistry, CredentialStoreType, CredentialStuffer, DataComponentInsert, DataComponentSelect, DataComponentUpdate, type DatabaseClient, type DatabaseConfig, type DotPaths, ERROR_DOCS_BASE_URL, ErrorCode, type ErrorCodes, type ErrorResponse, ExecutionContext, ExternalAgentInsert, ExternalAgentSelect, ExternalAgentUpdate, type FetchResult, FullAgentDefinition, FullProjectDefinition, FunctionApiInsert, FunctionToolApiInsert, FunctionToolApiUpdate, type GenerateServiceTokenParams, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect, MCPToolConfig, MCPTransportType, MCP_TOOL_CONNECTION_TIMEOUT_MS, MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RETRIES, MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, type ServiceTokenPayload, SubAgentExternalAgentRelationInsert, SubAgentInsert, SubAgentRelationInsert, SubAgentRelationUpdate, SubAgentScopeConfig, SubAgentSelect, SubAgentTeamAgentRelationInsert, SubAgentToolRelationUpdate, SubAgentUpdate, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS, type VerifyServiceTokenResult, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentExternalAgentRelation, createSubAgentRelation, createSubAgentTeamAgentRelation, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentExternalAgentRelation, deleteSubAgentExternalAgentRelationsByAgent, deleteSubAgentExternalAgentRelationsBySubAgent, deleteSubAgentRelation, deleteSubAgentTeamAgentRelation, deleteSubAgentTeamAgentRelationsByAgent, deleteSubAgentTeamAgentRelationsBySubAgent, deleteTool, determineContextTrigger, errorResponseSchema, errorSchemaFactory, executionLimitsSharedDefaults, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, generateId, generateServiceToken, getActiveAgentForConversation, getAgentById, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithResources, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentsForSubAgent, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getRequestExecutionContext, getSubAgentById, getSubAgentExternalAgentRelationById, getSubAgentExternalAgentRelationByParams, getSubAgentExternalAgentRelations, getSubAgentExternalAgentRelationsByAgent, getSubAgentExternalAgentRelationsByExternalAgent, getSubAgentRelationsByTarget, getSubAgentTeamAgentRelationById, getSubAgentTeamAgentRelationByParams, getSubAgentTeamAgentRelations, getSubAgentTeamAgentRelationsByAgent, getSubAgentTeamAgentRelationsByTeamAgent, getSubAgentsByIds, getSubAgentsForExternalAgent, getSubAgentsForTeamAgent, getTask, getTeamAgentsForSubAgent, getToolById, getToolsForAgent, getTracer, getVisibleMessages, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listMessages, listProjects, listProjectsPaginated, listSubAgentExternalAgentRelations, listSubAgentTeamAgentRelations, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, maskApiKey, normalizeDateString, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, schemaValidationDefaults, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateMessage, updateProject, updateSubAgent, updateSubAgentExternalAgentRelation, updateSubAgentFunctionToolRelation, updateSubAgentTeamAgentRelation, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertSubAgent, upsertSubAgentExternalAgentRelation, upsertSubAgentFunctionToolRelation, upsertSubAgentRelation, upsertSubAgentTeamAgentRelation, upsertSubAgentToolRelation, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateHeaders, validateHttpRequestHeaders, validateProjectExists, validateSubAgent, validateTargetAgent, validateTenantId, validationHelper, verifyAuthorizationHeader, verifyServiceToken, withProjectValidation };