@inkeep/agents-core 0.13.0 → 0.14.1
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/{chunk-YVC5OEGB.js → chunk-Y63D625C.js} +1 -1
- package/dist/{chunk-5JHWQEGI.js → chunk-YVZJ5VV7.js} +3 -2
- package/dist/client-exports.cjs +2 -1
- package/dist/client-exports.d.cts +2 -2
- package/dist/client-exports.d.ts +2 -2
- package/dist/client-exports.js +2 -2
- package/dist/db/schema.d.cts +2 -2
- package/dist/db/schema.d.ts +2 -2
- package/dist/index.cjs +114 -87
- package/dist/index.d.cts +43 -5
- package/dist/index.d.ts +43 -5
- package/dist/index.js +117 -93
- package/dist/{schema-CSkrYTmF.d.ts → schema-BB_Q_YNK.d.ts} +1 -1
- package/dist/{schema-CYPO0Ghw.d.cts → schema-DDUpvlcp.d.cts} +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/{utility-D0tOpJSn.d.cts → utility-Cd0qsewS.d.cts} +44 -121
- package/dist/{utility-D0tOpJSn.d.ts → utility-Cd0qsewS.d.ts} +44 -121
- package/dist/validation/index.cjs +2 -1
- package/dist/validation/index.d.cts +2 -2
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { l as CredentialReferenceApiInsert, m as ContextConfigSelect, f as ContextFetchDefinition, M as MCPTransportType, n as MCPToolConfig, o as GraphScopeConfig, C as ConversationHistoryConfig, p as ProjectScopeConfig, q as PaginationConfig, r as AgentGraphInsert, s as AgentGraphUpdate, t as FullGraphDefinition, u as AgentScopeConfig, v as AgentRelationInsert, E as ExternalAgentRelationInsert, w as AgentRelationUpdate, x as AgentToolRelationUpdate, g as ToolMcpConfig, h as ToolServerCapabilities, y as AgentInsert, z as AgentUpdate, B as AgentSelect, D as ApiKeySelect, H as ApiKeyInsert, I as ApiKeyUpdate, J as CreateApiKeyParams, K as ApiKeyCreateResult, L as ArtifactComponentSelect, N as ArtifactComponentInsert, O as ArtifactComponentUpdate, Q as ContextCacheSelect, R as ContextCacheInsert, U as ContextConfigInsert, V as ContextConfigUpdate, W as ConversationSelect, X as ConversationInsert, i as ConversationMetadata, Y as ConversationUpdate, Z as CredentialReferenceSelect, _ as ToolSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentSelect, a6 as ExternalAgentUpdate, a7 as Artifact, a8 as LedgerArtifactSelect, k as MessageMetadata, j as MessageContent, a9 as MessageVisibility, aa as MessageInsert, ab as MessageUpdate, ac as FullProjectDefinition, ad as ProjectInfo, ae as ProjectSelect, af as PaginationResult, ag as ProjectResourceCounts, ah as ProjectInsert, ai as ProjectUpdate, aj as TaskInsert, T as TaskMetadataConfig, ak as TaskSelect, al as McpTool, am as ToolInsert, an as ToolUpdate, e as CredentialStoreType, ao as ExecutionContext } from './utility-
|
|
3
|
-
export { b0 as A2AError, bw as A2ARequest, bx as A2AResponse, aB as APIKeySecurityScheme, bB as AgentApiInsert, dt as AgentApiInsertSchema, bA as AgentApiSelect, ds as AgentApiSelectSchema, bC as AgentApiUpdate, du as AgentApiUpdateSchema, cu as AgentArtifactComponentApiInsert, eE as AgentArtifactComponentApiInsertSchema, ct as AgentArtifactComponentApiSelect, eD as AgentArtifactComponentApiSelectSchema, cv as AgentArtifactComponentApiUpdate, eF as AgentArtifactComponentApiUpdateSchema, cr as AgentArtifactComponentInsert, eB as AgentArtifactComponentInsertSchema, cq as AgentArtifactComponentSelect, eA as AgentArtifactComponentSelectSchema, cs as AgentArtifactComponentUpdate, eC as AgentArtifactComponentUpdateSchema, ax as AgentCapabilities, aL as AgentCard, d7 as AgentConversationHistoryConfig, cl as AgentDataComponentApiInsert, es as AgentDataComponentApiInsertSchema, ck as AgentDataComponentApiSelect, er as AgentDataComponentApiSelectSchema, cm as AgentDataComponentApiUpdate, et as AgentDataComponentApiUpdateSchema, ci as AgentDataComponentInsert, ep as AgentDataComponentInsertSchema, ch as AgentDataComponentSelect, eo as AgentDataComponentSelectSchema, cj as AgentDataComponentUpdate, eq as AgentDataComponentUpdateSchema, cT as AgentDefinition, bL as AgentGraphApiInsert, dI as AgentGraphApiInsertSchema, bK as AgentGraphApiSelect, dH as AgentGraphApiSelectSchema, bM as AgentGraphApiUpdate, dJ as AgentGraphApiUpdateSchema, dF as AgentGraphInsertSchema, bJ as AgentGraphSelect, dE as AgentGraphSelectSchema, dG as AgentGraphUpdateSchema, dq as AgentInsertSchema, ay as AgentProvider, bF as AgentRelationApiInsert, dz as AgentRelationApiInsertSchema, bE as AgentRelationApiSelect, dy as AgentRelationApiSelectSchema, bG as AgentRelationApiUpdate, dA as AgentRelationApiUpdateSchema, dw as AgentRelationInsertSchema, bH as AgentRelationQuery, dB as AgentRelationQuerySchema, bD as AgentRelationSelect, dv as AgentRelationSelectSchema, dx as AgentRelationUpdateSchema, dp as AgentSelectSchema, az as AgentSkill, d as AgentStopWhen, a as AgentStopWhenSchema, cJ as AgentToolRelationApiInsert, ff as AgentToolRelationApiInsertSchema, cI as AgentToolRelationApiSelect, fe as AgentToolRelationApiSelectSchema, cK as AgentToolRelationApiUpdate, fg as AgentToolRelationApiUpdateSchema, cH as AgentToolRelationInsert, fc as AgentToolRelationInsertSchema, cG as AgentToolRelationSelect, fb as AgentToolRelationSelectSchema, fd as AgentToolRelationUpdateSchema, dr as AgentUpdateSchema, eM as AllAgentSchema, cz as AllAgentSelect, cD as ApiKeyApiCreationResponse, eR as ApiKeyApiCreationResponseSchema, cB as ApiKeyApiInsert, eS as ApiKeyApiInsertSchema, cA as ApiKeyApiSelect, eQ as ApiKeyApiSelectSchema, cC as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, eO as ApiKeyInsertSchema, eN as ApiKeySelectSchema, eP as ApiKeyUpdateSchema, co as ArtifactComponentApiInsert, ey as ArtifactComponentApiInsertSchema, cn as ArtifactComponentApiSelect, ex as ArtifactComponentApiSelectSchema, cp as ArtifactComponentApiUpdate, ez as ArtifactComponentApiUpdateSchema, ev as ArtifactComponentInsertSchema, eu as ArtifactComponentSelectSchema, ew as ArtifactComponentUpdateSchema, aE as AuthorizationCodeOAuthFlow, cR as CanUseItem, fp as CanUseItemSchema, bg as CancelTaskRequest, br as CancelTaskResponse, bq as CancelTaskSuccessResponse, aF as ClientCredentialsOAuthFlow, a_ as ContentTypeNotSupportedError, cc as ContextCacheApiInsert, ef as ContextCacheApiInsertSchema, cb as ContextCacheApiSelect, ee as ContextCacheApiSelectSchema, cd as ContextCacheApiUpdate, eg as ContextCacheApiUpdateSchema, d8 as ContextCacheEntry, ec as ContextCacheInsertSchema, eb as ContextCacheSelectSchema, ca as ContextCacheUpdate, ed as ContextCacheUpdateSchema, c6 as ContextConfigApiInsert, f9 as ContextConfigApiInsertSchema, c5 as ContextConfigApiSelect, f8 as ContextConfigApiSelectSchema, c7 as ContextConfigApiUpdate, fa as ContextConfigApiUpdateSchema, f6 as ContextConfigInsertSchema, f5 as ContextConfigSelectSchema, f7 as ContextConfigUpdateSchema, b$ as ConversationApiInsert, e3 as ConversationApiInsertSchema, b_ as ConversationApiSelect, e2 as ConversationApiSelectSchema, c0 as ConversationApiUpdate, e4 as ConversationApiUpdateSchema, e0 as ConversationInsertSchema, d6 as ConversationScopeOptions, d$ as ConversationSelectSchema, e1 as ConversationUpdateSchema, eX as CredentialReferenceApiInsertSchema, cE as CredentialReferenceApiSelect, eW as CredentialReferenceApiSelectSchema, cF as CredentialReferenceApiUpdate, eY as CredentialReferenceApiUpdateSchema, eU as CredentialReferenceInsertSchema, eT as CredentialReferenceSelectSchema, eV as CredentialReferenceUpdateSchema, cf as DataComponentApiInsert, em as DataComponentApiInsertSchema, ce as DataComponentApiSelect, el as DataComponentApiSelectSchema, cg as DataComponentApiUpdate, en as DataComponentApiUpdateSchema, ej as DataComponentBaseSchema, ei as DataComponentInsertSchema, eh as DataComponentSelectSchema, ek as DataComponentUpdateSchema, av as DataPart, fv as ErrorResponseSchema, fw as ExistsResponseSchema, cx as ExternalAgentApiInsert, eK as ExternalAgentApiInsertSchema, cw as ExternalAgentApiSelect, eJ as ExternalAgentApiSelectSchema, cy as ExternalAgentApiUpdate, eL as ExternalAgentApiUpdateSchema, eH as ExternalAgentInsertSchema, bI as ExternalAgentRelationApiInsert, dD as ExternalAgentRelationApiInsertSchema, dC as ExternalAgentRelationInsertSchema, eG as ExternalAgentSelectSchema, eI as ExternalAgentUpdateSchema, c9 as FetchConfig, f3 as FetchConfigSchema, c8 as FetchDefinition, f4 as FetchDefinitionSchema, ar as FileBase, au as FilePart, as as FileWithBytes, at as FileWithUri, cQ as FullGraphAgentInsert, F as FullGraphAgentInsertSchema, fq as FullGraphDefinitionSchema, fE as FullProjectDefinitionSchema, bi as GetTaskPushNotificationConfigRequest, bv as GetTaskPushNotificationConfigResponse, bu as GetTaskPushNotificationConfigSuccessResponse, bf as GetTaskRequest, bp as GetTaskResponse, bo as GetTaskSuccessResponse, c as GraphStopWhen, G as GraphStopWhenSchema, fr as GraphWithinContextOfProjectSchema, aC as HTTPAuthSecurityScheme, fF as HeadersScopeSchema, fM as IdParamsSchema, 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, fl as LedgerArtifactApiInsertSchema, cN as LedgerArtifactApiSelect, fk as LedgerArtifactApiSelectSchema, cP as LedgerArtifactApiUpdate, fm as LedgerArtifactApiUpdateSchema, cL as LedgerArtifactInsert, fi as LedgerArtifactInsertSchema, fh as LedgerArtifactSelectSchema, cM as LedgerArtifactUpdate, fj as LedgerArtifactUpdateSchema, ft as ListResponseSchema, di as MAX_ID_LENGTH, dg as MCPServerType, e_ as MCPToolConfigSchema, dh as MIN_ID_LENGTH, d9 as McpAuthType, da as McpServerAuth, dc as McpServerCapabilities, dd as McpToolDefinition, dY as McpToolDefinitionSchema, eZ as McpToolSchema, db as McpTransportConfig, dW as McpTransportConfigSchema, aM as Message, c3 as MessageApiInsert, e9 as MessageApiInsertSchema, c2 as MessageApiSelect, e8 as MessageApiSelectSchema, c4 as MessageApiUpdate, ea as MessageApiUpdateSchema, e6 as MessageInsertSchema, d0 as MessageMode, by as MessagePart, c$ as MessageRole, c1 as MessageSelect, e5 as MessageSelectSchema, b6 as MessageSendConfiguration, b7 as MessageSendParams, c_ as MessageType, e7 as MessageUpdateSchema, aT as MethodNotFoundError, dm as ModelSchema, d3 as ModelSettings, dl as ModelSettingsSchema, d1 as Models, aI as OAuth2SecurityScheme, aD as OAuthFlows, aJ as OpenIdConnectSecurityScheme, cY as Pagination, fN as PaginationQueryParamsSchema, fs as PaginationSchema, P as Part, ap as PartBase, aH as PasswordOAuthFlow, cW as ProjectApiInsert, fC as ProjectApiInsertSchema, cV as ProjectApiSelect, fB as ProjectApiSelectSchema, cX as ProjectApiUpdate, fD as ProjectApiUpdateSchema, fz as ProjectInsertSchema, dn as ProjectModelSchema, d2 as ProjectModels, fy as ProjectSelectSchema, fA as ProjectUpdateSchema, b1 as PushNotificationAuthenticationInfo, b2 as PushNotificationConfig, aY as PushNotificationNotSupportedError, fx as RemovedResponseSchema, 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, fu as SingleResponseSchema, d5 as StatusComponent, fn as StatusComponentSchema, fo as StatusUpdateSchema, d4 as StatusUpdateSettings, b as StopWhen, S as StopWhenSchema, cZ as SummaryEvent, de as TOOL_STATUS_VALUES, aO as Task, bP as TaskApiInsert, dO as TaskApiInsertSchema, bO as TaskApiSelect, dN as TaskApiSelectSchema, bQ as TaskApiUpdate, dP as TaskApiUpdateSchema, bz as TaskArtifact, aQ as TaskArtifactUpdateEvent, b4 as TaskIdParams, dL as TaskInsertSchema, aX as TaskNotCancelableError, aW as TaskNotFoundError, b3 as TaskPushNotificationConfig, b5 as TaskQueryParams, bV as TaskRelationApiInsert, dU as TaskRelationApiInsertSchema, bU as TaskRelationApiSelect, dT as TaskRelationApiSelectSchema, bW as TaskRelationApiUpdate, dV as TaskRelationApiUpdateSchema, bS as TaskRelationInsert, dR as TaskRelationInsertSchema, bR as TaskRelationSelect, dQ as TaskRelationSelectSchema, bT as TaskRelationUpdate, dS as TaskRelationUpdateSchema, bj as TaskResubscriptionRequest, dK as TaskSelectSchema, aw as TaskState, aN as TaskStatus, aP as TaskStatusUpdateEvent, bN as TaskUpdate, dM as TaskUpdateSchema, fL as TenantIdParamsSchema, fG as TenantParamsSchema, fJ as TenantProjectGraphIdParamsSchema, fI as TenantProjectGraphParamsSchema, fK as TenantProjectIdParamsSchema, fH as TenantProjectParamsSchema, aq as TextPart, bY as ToolApiInsert, f1 as ToolApiInsertSchema, bX as ToolApiSelect, f0 as ToolApiSelectSchema, bZ as ToolApiUpdate, f2 as ToolApiUpdateSchema, cU as ToolDefinition, d_ as ToolInsertSchema, dZ as ToolSelectSchema, dX as ToolStatusSchema, e$ as ToolUpdateSchema, dj as URL_SAFE_ID_PATTERN, aZ as UnsupportedOperationError, df as VALID_RELATION_TYPES, dk as resourceIdSchema } from './utility-D0tOpJSn.js';
|
|
2
|
+
import { l as CredentialReferenceApiInsert, m as ContextConfigSelect, f as ContextFetchDefinition, M as MCPTransportType, n as MCPToolConfig, o as GraphScopeConfig, C as ConversationHistoryConfig, p as ProjectScopeConfig, q as PaginationConfig, r as AgentGraphInsert, s as AgentGraphUpdate, t as FullGraphDefinition, u as AgentScopeConfig, v as AgentRelationInsert, E as ExternalAgentRelationInsert, w as AgentRelationUpdate, x as AgentToolRelationUpdate, g as ToolMcpConfig, h as ToolServerCapabilities, y as AgentInsert, z as AgentUpdate, B as AgentSelect, D as ApiKeySelect, H as ApiKeyInsert, I as ApiKeyUpdate, J as CreateApiKeyParams, K as ApiKeyCreateResult, L as ArtifactComponentSelect, N as ArtifactComponentInsert, O as ArtifactComponentUpdate, Q as ContextCacheSelect, R as ContextCacheInsert, U as ContextConfigInsert, V as ContextConfigUpdate, W as ConversationSelect, X as ConversationInsert, i as ConversationMetadata, Y as ConversationUpdate, Z as CredentialReferenceSelect, _ as ToolSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentSelect, a6 as ExternalAgentUpdate, a7 as Artifact, a8 as LedgerArtifactSelect, k as MessageMetadata, j as MessageContent, a9 as MessageVisibility, aa as MessageInsert, ab as MessageUpdate, ac as FullProjectDefinition, ad as ProjectInfo, ae as ProjectSelect, af as PaginationResult, ag as ProjectResourceCounts, ah as ProjectInsert, ai as ProjectUpdate, aj as TaskInsert, T as TaskMetadataConfig, ak as TaskSelect, al as McpTool, am as ToolInsert, an as ToolUpdate, e as CredentialStoreType, ao as ExecutionContext } from './utility-Cd0qsewS.js';
|
|
3
|
+
export { b0 as A2AError, bw as A2ARequest, bx as A2AResponse, aB as APIKeySecurityScheme, bB as AgentApiInsert, dt as AgentApiInsertSchema, bA as AgentApiSelect, ds as AgentApiSelectSchema, bC as AgentApiUpdate, du as AgentApiUpdateSchema, cu as AgentArtifactComponentApiInsert, eE as AgentArtifactComponentApiInsertSchema, ct as AgentArtifactComponentApiSelect, eD as AgentArtifactComponentApiSelectSchema, cv as AgentArtifactComponentApiUpdate, eF as AgentArtifactComponentApiUpdateSchema, cr as AgentArtifactComponentInsert, eB as AgentArtifactComponentInsertSchema, cq as AgentArtifactComponentSelect, eA as AgentArtifactComponentSelectSchema, cs as AgentArtifactComponentUpdate, eC as AgentArtifactComponentUpdateSchema, ax as AgentCapabilities, aL as AgentCard, d7 as AgentConversationHistoryConfig, cl as AgentDataComponentApiInsert, es as AgentDataComponentApiInsertSchema, ck as AgentDataComponentApiSelect, er as AgentDataComponentApiSelectSchema, cm as AgentDataComponentApiUpdate, et as AgentDataComponentApiUpdateSchema, ci as AgentDataComponentInsert, ep as AgentDataComponentInsertSchema, ch as AgentDataComponentSelect, eo as AgentDataComponentSelectSchema, cj as AgentDataComponentUpdate, eq as AgentDataComponentUpdateSchema, cT as AgentDefinition, bL as AgentGraphApiInsert, dI as AgentGraphApiInsertSchema, bK as AgentGraphApiSelect, dH as AgentGraphApiSelectSchema, bM as AgentGraphApiUpdate, dJ as AgentGraphApiUpdateSchema, dF as AgentGraphInsertSchema, bJ as AgentGraphSelect, dE as AgentGraphSelectSchema, dG as AgentGraphUpdateSchema, dq as AgentInsertSchema, ay as AgentProvider, bF as AgentRelationApiInsert, dz as AgentRelationApiInsertSchema, bE as AgentRelationApiSelect, dy as AgentRelationApiSelectSchema, bG as AgentRelationApiUpdate, dA as AgentRelationApiUpdateSchema, dw as AgentRelationInsertSchema, bH as AgentRelationQuery, dB as AgentRelationQuerySchema, bD as AgentRelationSelect, dv as AgentRelationSelectSchema, dx as AgentRelationUpdateSchema, dp as AgentSelectSchema, az as AgentSkill, d as AgentStopWhen, a as AgentStopWhenSchema, cJ as AgentToolRelationApiInsert, ff as AgentToolRelationApiInsertSchema, cI as AgentToolRelationApiSelect, fe as AgentToolRelationApiSelectSchema, cK as AgentToolRelationApiUpdate, fg as AgentToolRelationApiUpdateSchema, cH as AgentToolRelationInsert, fc as AgentToolRelationInsertSchema, cG as AgentToolRelationSelect, fb as AgentToolRelationSelectSchema, fd as AgentToolRelationUpdateSchema, dr as AgentUpdateSchema, eM as AllAgentSchema, cz as AllAgentSelect, cD as ApiKeyApiCreationResponse, eR as ApiKeyApiCreationResponseSchema, cB as ApiKeyApiInsert, eS as ApiKeyApiInsertSchema, cA as ApiKeyApiSelect, eQ as ApiKeyApiSelectSchema, cC as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, eO as ApiKeyInsertSchema, eN as ApiKeySelectSchema, eP as ApiKeyUpdateSchema, co as ArtifactComponentApiInsert, ey as ArtifactComponentApiInsertSchema, cn as ArtifactComponentApiSelect, ex as ArtifactComponentApiSelectSchema, cp as ArtifactComponentApiUpdate, ez as ArtifactComponentApiUpdateSchema, ev as ArtifactComponentInsertSchema, eu as ArtifactComponentSelectSchema, ew as ArtifactComponentUpdateSchema, aE as AuthorizationCodeOAuthFlow, cR as CanUseItem, fp as CanUseItemSchema, bg as CancelTaskRequest, br as CancelTaskResponse, bq as CancelTaskSuccessResponse, aF as ClientCredentialsOAuthFlow, a_ as ContentTypeNotSupportedError, cc as ContextCacheApiInsert, ef as ContextCacheApiInsertSchema, cb as ContextCacheApiSelect, ee as ContextCacheApiSelectSchema, cd as ContextCacheApiUpdate, eg as ContextCacheApiUpdateSchema, d8 as ContextCacheEntry, ec as ContextCacheInsertSchema, eb as ContextCacheSelectSchema, ca as ContextCacheUpdate, ed as ContextCacheUpdateSchema, c6 as ContextConfigApiInsert, f9 as ContextConfigApiInsertSchema, c5 as ContextConfigApiSelect, f8 as ContextConfigApiSelectSchema, c7 as ContextConfigApiUpdate, fa as ContextConfigApiUpdateSchema, f6 as ContextConfigInsertSchema, f5 as ContextConfigSelectSchema, f7 as ContextConfigUpdateSchema, b$ as ConversationApiInsert, e3 as ConversationApiInsertSchema, b_ as ConversationApiSelect, e2 as ConversationApiSelectSchema, c0 as ConversationApiUpdate, e4 as ConversationApiUpdateSchema, e0 as ConversationInsertSchema, d6 as ConversationScopeOptions, d$ as ConversationSelectSchema, e1 as ConversationUpdateSchema, eX as CredentialReferenceApiInsertSchema, cE as CredentialReferenceApiSelect, eW as CredentialReferenceApiSelectSchema, cF as CredentialReferenceApiUpdate, eY as CredentialReferenceApiUpdateSchema, eU as CredentialReferenceInsertSchema, eT as CredentialReferenceSelectSchema, eV as CredentialReferenceUpdateSchema, cf as DataComponentApiInsert, em as DataComponentApiInsertSchema, ce as DataComponentApiSelect, el as DataComponentApiSelectSchema, cg as DataComponentApiUpdate, en as DataComponentApiUpdateSchema, ej as DataComponentBaseSchema, ei as DataComponentInsertSchema, eh as DataComponentSelectSchema, ek as DataComponentUpdateSchema, av as DataPart, fv as ErrorResponseSchema, fw as ExistsResponseSchema, cx as ExternalAgentApiInsert, eK as ExternalAgentApiInsertSchema, cw as ExternalAgentApiSelect, eJ as ExternalAgentApiSelectSchema, cy as ExternalAgentApiUpdate, eL as ExternalAgentApiUpdateSchema, eH as ExternalAgentInsertSchema, bI as ExternalAgentRelationApiInsert, dD as ExternalAgentRelationApiInsertSchema, dC as ExternalAgentRelationInsertSchema, eG as ExternalAgentSelectSchema, eI as ExternalAgentUpdateSchema, c9 as FetchConfig, f3 as FetchConfigSchema, c8 as FetchDefinition, f4 as FetchDefinitionSchema, ar as FileBase, au as FilePart, as as FileWithBytes, at as FileWithUri, cQ as FullGraphAgentInsert, F as FullGraphAgentInsertSchema, fq as FullGraphDefinitionSchema, fE as FullProjectDefinitionSchema, bi as GetTaskPushNotificationConfigRequest, bv as GetTaskPushNotificationConfigResponse, bu as GetTaskPushNotificationConfigSuccessResponse, bf as GetTaskRequest, bp as GetTaskResponse, bo as GetTaskSuccessResponse, c as GraphStopWhen, G as GraphStopWhenSchema, fr as GraphWithinContextOfProjectSchema, aC as HTTPAuthSecurityScheme, fF as HeadersScopeSchema, fM as IdParamsSchema, 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, fl as LedgerArtifactApiInsertSchema, cN as LedgerArtifactApiSelect, fk as LedgerArtifactApiSelectSchema, cP as LedgerArtifactApiUpdate, fm as LedgerArtifactApiUpdateSchema, cL as LedgerArtifactInsert, fi as LedgerArtifactInsertSchema, fh as LedgerArtifactSelectSchema, cM as LedgerArtifactUpdate, fj as LedgerArtifactUpdateSchema, ft as ListResponseSchema, di as MAX_ID_LENGTH, dg as MCPServerType, e_ as MCPToolConfigSchema, dh as MIN_ID_LENGTH, d9 as McpAuthType, da as McpServerAuth, dc as McpServerCapabilities, dd as McpToolDefinition, dY as McpToolDefinitionSchema, eZ as McpToolSchema, db as McpTransportConfig, dW as McpTransportConfigSchema, aM as Message, c3 as MessageApiInsert, e9 as MessageApiInsertSchema, c2 as MessageApiSelect, e8 as MessageApiSelectSchema, c4 as MessageApiUpdate, ea as MessageApiUpdateSchema, e6 as MessageInsertSchema, d0 as MessageMode, by as MessagePart, c$ as MessageRole, c1 as MessageSelect, e5 as MessageSelectSchema, b6 as MessageSendConfiguration, b7 as MessageSendParams, c_ as MessageType, e7 as MessageUpdateSchema, aT as MethodNotFoundError, dm as ModelSchema, d3 as ModelSettings, dl as ModelSettingsSchema, d1 as Models, aI as OAuth2SecurityScheme, aD as OAuthFlows, aJ as OpenIdConnectSecurityScheme, cY as Pagination, fN as PaginationQueryParamsSchema, fs as PaginationSchema, P as Part, ap as PartBase, aH as PasswordOAuthFlow, cW as ProjectApiInsert, fC as ProjectApiInsertSchema, cV as ProjectApiSelect, fB as ProjectApiSelectSchema, cX as ProjectApiUpdate, fD as ProjectApiUpdateSchema, fz as ProjectInsertSchema, dn as ProjectModelSchema, d2 as ProjectModels, fy as ProjectSelectSchema, fA as ProjectUpdateSchema, b1 as PushNotificationAuthenticationInfo, b2 as PushNotificationConfig, aY as PushNotificationNotSupportedError, fx as RemovedResponseSchema, 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, fu as SingleResponseSchema, d5 as StatusComponent, fn as StatusComponentSchema, fo as StatusUpdateSchema, d4 as StatusUpdateSettings, b as StopWhen, S as StopWhenSchema, cZ as SummaryEvent, de as TOOL_STATUS_VALUES, aO as Task, bP as TaskApiInsert, dO as TaskApiInsertSchema, bO as TaskApiSelect, dN as TaskApiSelectSchema, bQ as TaskApiUpdate, dP as TaskApiUpdateSchema, bz as TaskArtifact, aQ as TaskArtifactUpdateEvent, b4 as TaskIdParams, dL as TaskInsertSchema, aX as TaskNotCancelableError, aW as TaskNotFoundError, b3 as TaskPushNotificationConfig, b5 as TaskQueryParams, bV as TaskRelationApiInsert, dU as TaskRelationApiInsertSchema, bU as TaskRelationApiSelect, dT as TaskRelationApiSelectSchema, bW as TaskRelationApiUpdate, dV as TaskRelationApiUpdateSchema, bS as TaskRelationInsert, dR as TaskRelationInsertSchema, bR as TaskRelationSelect, dQ as TaskRelationSelectSchema, bT as TaskRelationUpdate, dS as TaskRelationUpdateSchema, bj as TaskResubscriptionRequest, dK as TaskSelectSchema, aw as TaskState, aN as TaskStatus, aP as TaskStatusUpdateEvent, bN as TaskUpdate, dM as TaskUpdateSchema, fL as TenantIdParamsSchema, fG as TenantParamsSchema, fJ as TenantProjectGraphIdParamsSchema, fI as TenantProjectGraphParamsSchema, fK as TenantProjectIdParamsSchema, fH as TenantProjectParamsSchema, aq as TextPart, bY as ToolApiInsert, f1 as ToolApiInsertSchema, bX as ToolApiSelect, f0 as ToolApiSelectSchema, bZ as ToolApiUpdate, f2 as ToolApiUpdateSchema, cU as ToolDefinition, d_ as ToolInsertSchema, dZ as ToolSelectSchema, dX as ToolStatusSchema, e$ as ToolUpdateSchema, dj as URL_SAFE_ID_PATTERN, aZ as UnsupportedOperationError, df as VALID_RELATION_TYPES, dk as resourceIdSchema } from './utility-Cd0qsewS.js';
|
|
4
4
|
import { CredentialStore } from './types/index.js';
|
|
5
5
|
export { CorsConfig, ServerConfig, ServerOptions } from './types/index.js';
|
|
6
6
|
import { LibSQLDatabase } from 'drizzle-orm/libsql';
|
|
7
|
-
import { s as schema } from './schema-
|
|
8
|
-
export { k as agentArtifactComponents, K as agentArtifactComponentsRelations, i as agentDataComponents, M as agentDataComponentsRelations, a as agentGraph, B as agentGraphRelations, e as agentRelations, O as agentRelationsRelations, m as agentToolRelations, E as agentToolRelationsRelations, d as agents, A as agentsRelations, r as apiKeys, D as apiKeysRelations, j as artifactComponents, J as artifactComponentsRelations, b as contextCache, z as contextCacheRelations, c as contextConfigs, y as contextConfigsRelations, n as conversations, H as conversationsRelations, u as credentialReferences, F as credentialReferencesRelations, h as dataComponents, L as dataComponentsRelations, f as externalAgents, C as externalAgentsRelations, q as ledgerArtifacts, N as ledgerArtifactsRelations, o as messages, I as messagesRelations, p as projects, w as projectsRelations, g as taskRelations, x as taskRelationsRelations, t as tasks, v as tasksRelations, l as tools, G as toolsRelations } from './schema-
|
|
7
|
+
import { s as schema } from './schema-BB_Q_YNK.js';
|
|
8
|
+
export { k as agentArtifactComponents, K as agentArtifactComponentsRelations, i as agentDataComponents, M as agentDataComponentsRelations, a as agentGraph, B as agentGraphRelations, e as agentRelations, O as agentRelationsRelations, m as agentToolRelations, E as agentToolRelationsRelations, d as agents, A as agentsRelations, r as apiKeys, D as apiKeysRelations, j as artifactComponents, J as artifactComponentsRelations, b as contextCache, z as contextCacheRelations, c as contextConfigs, y as contextConfigsRelations, n as conversations, H as conversationsRelations, u as credentialReferences, F as credentialReferencesRelations, h as dataComponents, L as dataComponentsRelations, f as externalAgents, C as externalAgentsRelations, q as ledgerArtifacts, N as ledgerArtifactsRelations, o as messages, I as messagesRelations, p as projects, w as projectsRelations, g as taskRelations, x as taskRelationsRelations, t as tasks, v as tasksRelations, l as tools, G as toolsRelations } from './schema-BB_Q_YNK.js';
|
|
9
9
|
import { LoggerOptions, TransportSingleOptions, Logger } from 'pino';
|
|
10
10
|
import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js';
|
|
11
11
|
import { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
@@ -20,6 +20,39 @@ import 'drizzle-zod';
|
|
|
20
20
|
import 'drizzle-orm/sqlite-core';
|
|
21
21
|
import 'drizzle-orm';
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Shared base API client for making HTTP requests
|
|
25
|
+
* Used by both CLI and SDK to ensure consistent API communication
|
|
26
|
+
*
|
|
27
|
+
* This is a thin wrapper around fetch that provides consistent header handling.
|
|
28
|
+
* Implementations should construct Authorization headers and pass them via options.
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* Makes an HTTP request with consistent header defaults
|
|
32
|
+
*
|
|
33
|
+
* @param url - The URL to fetch
|
|
34
|
+
* @param options - Standard fetch options (headers will be merged with defaults)
|
|
35
|
+
* @returns Promise<Response>
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```typescript
|
|
39
|
+
* // With Authorization header
|
|
40
|
+
* const response = await apiFetch('https://api.example.com/data', {
|
|
41
|
+
* method: 'POST',
|
|
42
|
+
* headers: {
|
|
43
|
+
* Authorization: 'Bearer your-api-key'
|
|
44
|
+
* },
|
|
45
|
+
* body: JSON.stringify({ data: 'value' })
|
|
46
|
+
* });
|
|
47
|
+
*
|
|
48
|
+
* // Without Authorization
|
|
49
|
+
* const response = await apiFetch('https://api.example.com/public', {
|
|
50
|
+
* method: 'GET'
|
|
51
|
+
* });
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
declare function apiFetch(url: string, options?: RequestInit): Promise<Response>;
|
|
55
|
+
|
|
23
56
|
type Primitive = string | number | boolean | bigint | symbol | null | undefined | Date;
|
|
24
57
|
type JoinDot<P extends string, K extends string> = [P] extends [''] ? K : `${P}.${K}`;
|
|
25
58
|
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 | {
|
|
@@ -80,6 +113,11 @@ declare class ContextConfigBuilder<R extends z.ZodTypeAny | undefined, CV extend
|
|
|
80
113
|
private tenantId;
|
|
81
114
|
private projectId;
|
|
82
115
|
constructor(options: ContextConfigBuilderOptions<R, CV>);
|
|
116
|
+
/**
|
|
117
|
+
* Set the context (tenantId, projectId, baseURL) for this context config
|
|
118
|
+
* Called by graph.setConfig() when the graph is configured
|
|
119
|
+
*/
|
|
120
|
+
setContext(tenantId: string, projectId: string, baseURL?: string): void;
|
|
83
121
|
/**
|
|
84
122
|
* Convert the builder to a plain object for database operations
|
|
85
123
|
*/
|
|
@@ -3916,4 +3954,4 @@ declare function setSpanWithError(span: Span, error: unknown, logger?: {
|
|
|
3916
3954
|
*/
|
|
3917
3955
|
declare function getTracer(serviceName: string, serviceVersion?: string): Tracer;
|
|
3918
3956
|
|
|
3919
|
-
export { AgentGraphInsert, AgentGraphUpdate, AgentInsert, AgentRelationInsert, AgentRelationUpdate, AgentScopeConfig, AgentSelect, AgentToolRelationUpdate, 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 CredentialReferenceWithTools, 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, ExternalAgentRelationInsert, ExternalAgentSelect, ExternalAgentUpdate, type FetchResult, FullGraphDefinition, FullProjectDefinition, type GraphLogger, GraphScopeConfig, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect, type LoggerFactoryConfig, MCPToolConfig, MCPTransportType, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, type OAuthConfig, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, type PinoLoggerConfig, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, addLedgerArtifacts, addToolToAgent, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentGraph, createAgentRelation, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createExternalAgentRelation, createFullGraphServerSide, createFullProjectServerSide, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentGraph, deleteAgentRelation, deleteAgentRelationsByGraph, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullGraph, deleteFullProject, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteTool, detectAuthenticationRequired, determineContextTrigger, discoverOAuthEndpoints, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, getActiveAgentForConversation, getAgentById, getAgentGraphById, getAgentGraphWithDefaultAgent, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByGraph, getAgentRelationsBySource, getAgentRelationsByTarget, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentsByIds, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getContextConfigsByName, getConversation, getConversationCacheEntries, getConversationHistory, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithTools, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentRelations, getFullGraph, getFullGraphDefinition, getFullProject, getGraphAgentInfos, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForGraph, getRequestExecutionContext, getTask, getToolById, getToolsForAgent, getTracer, getVisibleMessages, graphHasArtifactComponents, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, invalidateInvocationDefinitionsCache, invalidateRequestContextCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentGraphs, listAgentGraphsPaginated, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listMessages, listProjects, listProjectsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, loggerFactory, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, requestContextSchema, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentGraph, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullGraphServerSide, updateFullProjectServerSide, updateMessage, updateProject, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertAgentGraph, upsertAgentRelation, upsertAgentToolRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertLedgerArtifact, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateExternalAgent, validateHttpRequestHeaders, validateInternalAgent, validateProjectExists, validateRequestContext, validationHelper, withProjectValidation };
|
|
3957
|
+
export { AgentGraphInsert, AgentGraphUpdate, AgentInsert, AgentRelationInsert, AgentRelationUpdate, AgentScopeConfig, AgentSelect, AgentToolRelationUpdate, 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 CredentialReferenceWithTools, 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, ExternalAgentRelationInsert, ExternalAgentSelect, ExternalAgentUpdate, type FetchResult, FullGraphDefinition, FullProjectDefinition, type GraphLogger, GraphScopeConfig, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect, type LoggerFactoryConfig, MCPToolConfig, MCPTransportType, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, type OAuthConfig, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, type PinoLoggerConfig, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, addLedgerArtifacts, addToolToAgent, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentGraph, createAgentRelation, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createExternalAgentRelation, createFullGraphServerSide, createFullProjectServerSide, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentGraph, deleteAgentRelation, deleteAgentRelationsByGraph, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullGraph, deleteFullProject, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteTool, detectAuthenticationRequired, determineContextTrigger, discoverOAuthEndpoints, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, getActiveAgentForConversation, getAgentById, getAgentGraphById, getAgentGraphWithDefaultAgent, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByGraph, getAgentRelationsBySource, getAgentRelationsByTarget, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentsByIds, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getContextConfigsByName, getConversation, getConversationCacheEntries, getConversationHistory, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithTools, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentRelations, getFullGraph, getFullGraphDefinition, getFullProject, getGraphAgentInfos, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForGraph, getRequestExecutionContext, getTask, getToolById, getToolsForAgent, getTracer, getVisibleMessages, graphHasArtifactComponents, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, invalidateInvocationDefinitionsCache, invalidateRequestContextCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentGraphs, listAgentGraphsPaginated, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listMessages, listProjects, listProjectsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, loggerFactory, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, requestContextSchema, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentGraph, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullGraphServerSide, updateFullProjectServerSide, updateMessage, updateProject, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertAgentGraph, upsertAgentRelation, upsertAgentToolRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertLedgerArtifact, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateExternalAgent, validateHttpRequestHeaders, validateInternalAgent, validateProjectExists, validateRequestContext, validationHelper, withProjectValidation };
|
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-
|
|
3
|
-
export { generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAndTypeGraphData, validateArtifactComponentReferences, validateDataComponentReferences, validateGraphStructure, validateToolReferences } from './chunk-
|
|
4
|
-
import { ContextConfigApiUpdateSchema } from './chunk-
|
|
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-
|
|
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';
|
|
@@ -38,6 +38,18 @@ import dotenv from 'dotenv';
|
|
|
38
38
|
import { expand } from 'dotenv-expand';
|
|
39
39
|
import { findUpSync } from 'find-up';
|
|
40
40
|
|
|
41
|
+
// src/api-client/base-client.ts
|
|
42
|
+
async function apiFetch(url, options = {}) {
|
|
43
|
+
const headers = {
|
|
44
|
+
"Content-Type": "application/json",
|
|
45
|
+
Accept: "application/json",
|
|
46
|
+
...options.headers || {}
|
|
47
|
+
};
|
|
48
|
+
return fetch(url, {
|
|
49
|
+
...options,
|
|
50
|
+
headers
|
|
51
|
+
});
|
|
52
|
+
}
|
|
41
53
|
var PinoLogger = class {
|
|
42
54
|
constructor(name, config = {}) {
|
|
43
55
|
this.name = name;
|
|
@@ -283,6 +295,27 @@ var ContextConfigBuilder = class {
|
|
|
283
295
|
"ContextConfig builder initialized"
|
|
284
296
|
);
|
|
285
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
|
+
}
|
|
286
319
|
/**
|
|
287
320
|
* Convert the builder to a plain object for database operations
|
|
288
321
|
*/
|
|
@@ -4504,6 +4537,39 @@ var createFullGraphServerSide = (db, logger12 = defaultLogger) => async (scopes,
|
|
|
4504
4537
|
throw error;
|
|
4505
4538
|
}
|
|
4506
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
|
+
}
|
|
4507
4573
|
logger12.info(
|
|
4508
4574
|
{},
|
|
4509
4575
|
"DataComponents are project-scoped - skipping dataComponent creation in graph"
|
|
@@ -4843,12 +4909,14 @@ var updateFullGraphServerSide = (db, logger12 = defaultLogger) => async (scopes,
|
|
|
4843
4909
|
throw error;
|
|
4844
4910
|
}
|
|
4845
4911
|
let contextConfigId;
|
|
4912
|
+
if (typedGraphDefinition.contextConfig) {
|
|
4913
|
+
logger12.info(
|
|
4914
|
+
{ contextConfigId: typedGraphDefinition.contextConfig?.id },
|
|
4915
|
+
" context config exists"
|
|
4916
|
+
);
|
|
4917
|
+
}
|
|
4846
4918
|
if (typedGraphDefinition.contextConfig) {
|
|
4847
4919
|
try {
|
|
4848
|
-
logger12.info(
|
|
4849
|
-
{ contextConfigId: typedGraphDefinition.contextConfig.id },
|
|
4850
|
-
"Processing context config"
|
|
4851
|
-
);
|
|
4852
4920
|
const contextConfig2 = await upsertContextConfig(db)({
|
|
4853
4921
|
data: {
|
|
4854
4922
|
...typedGraphDefinition.contextConfig,
|
|
@@ -4866,6 +4934,39 @@ var updateFullGraphServerSide = (db, logger12 = defaultLogger) => async (scopes,
|
|
|
4866
4934
|
throw error;
|
|
4867
4935
|
}
|
|
4868
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
|
+
}
|
|
4869
4970
|
logger12.info({}, "DataComponents are project-scoped - skipping dataComponent update in graph");
|
|
4870
4971
|
logger12.info(
|
|
4871
4972
|
{},
|
|
@@ -6031,44 +6132,6 @@ var createFullProjectServerSide = (db, logger12 = defaultLogger2) => async (scop
|
|
|
6031
6132
|
"All project tools created successfully"
|
|
6032
6133
|
);
|
|
6033
6134
|
}
|
|
6034
|
-
if (typed.contextConfig && Object.keys(typed.contextConfig).length > 0) {
|
|
6035
|
-
logger12.info(
|
|
6036
|
-
{
|
|
6037
|
-
projectId: typed.id,
|
|
6038
|
-
count: Object.keys(typed.contextConfig).length
|
|
6039
|
-
},
|
|
6040
|
-
"Creating project contextConfigs"
|
|
6041
|
-
);
|
|
6042
|
-
const contextConfigPromises = Object.entries(typed.contextConfig).map(
|
|
6043
|
-
async ([configId, configData]) => {
|
|
6044
|
-
try {
|
|
6045
|
-
logger12.info({ projectId: typed.id, configId }, "Creating contextConfig in project");
|
|
6046
|
-
await upsertContextConfig(db)({
|
|
6047
|
-
data: {
|
|
6048
|
-
...configData,
|
|
6049
|
-
tenantId,
|
|
6050
|
-
projectId: typed.id
|
|
6051
|
-
}
|
|
6052
|
-
});
|
|
6053
|
-
logger12.info({ projectId: typed.id, configId }, "ContextConfig created successfully");
|
|
6054
|
-
} catch (error) {
|
|
6055
|
-
logger12.error(
|
|
6056
|
-
{ projectId: typed.id, configId, error },
|
|
6057
|
-
"Failed to create contextConfig in project"
|
|
6058
|
-
);
|
|
6059
|
-
throw error;
|
|
6060
|
-
}
|
|
6061
|
-
}
|
|
6062
|
-
);
|
|
6063
|
-
await Promise.all(contextConfigPromises);
|
|
6064
|
-
logger12.info(
|
|
6065
|
-
{
|
|
6066
|
-
projectId: typed.id,
|
|
6067
|
-
count: Object.keys(typed.contextConfig).length
|
|
6068
|
-
},
|
|
6069
|
-
"All project contextConfigs created successfully"
|
|
6070
|
-
);
|
|
6071
|
-
}
|
|
6072
6135
|
if (typed.dataComponents && Object.keys(typed.dataComponents).length > 0) {
|
|
6073
6136
|
logger12.info(
|
|
6074
6137
|
{
|
|
@@ -6174,7 +6237,6 @@ var createFullProjectServerSide = (db, logger12 = defaultLogger2) => async (scop
|
|
|
6174
6237
|
// Pass project-level resources for validation
|
|
6175
6238
|
dataComponents: typed.dataComponents || {},
|
|
6176
6239
|
artifactComponents: typed.artifactComponents || {},
|
|
6177
|
-
contextConfig: typed.contextConfig?.[graphId] || void 0,
|
|
6178
6240
|
credentialReferences: typed.credentialReferences || {},
|
|
6179
6241
|
statusUpdates: graphData.statusUpdates === null ? void 0 : graphData.statusUpdates
|
|
6180
6242
|
};
|
|
@@ -6336,44 +6398,6 @@ var updateFullProjectServerSide = (db, logger12 = defaultLogger2) => async (scop
|
|
|
6336
6398
|
"All project tools updated successfully"
|
|
6337
6399
|
);
|
|
6338
6400
|
}
|
|
6339
|
-
if (typed.contextConfig && Object.keys(typed.contextConfig).length > 0) {
|
|
6340
|
-
logger12.info(
|
|
6341
|
-
{
|
|
6342
|
-
projectId: typed.id,
|
|
6343
|
-
count: Object.keys(typed.contextConfig).length
|
|
6344
|
-
},
|
|
6345
|
-
"Updating project contextConfigs"
|
|
6346
|
-
);
|
|
6347
|
-
const contextConfigPromises = Object.entries(typed.contextConfig).map(
|
|
6348
|
-
async ([configId, configData]) => {
|
|
6349
|
-
try {
|
|
6350
|
-
logger12.info({ projectId: typed.id, configId }, "Updating contextConfig in project");
|
|
6351
|
-
await upsertContextConfig(db)({
|
|
6352
|
-
data: {
|
|
6353
|
-
...configData,
|
|
6354
|
-
tenantId,
|
|
6355
|
-
projectId: typed.id
|
|
6356
|
-
}
|
|
6357
|
-
});
|
|
6358
|
-
logger12.info({ projectId: typed.id, configId }, "ContextConfig updated successfully");
|
|
6359
|
-
} catch (error) {
|
|
6360
|
-
logger12.error(
|
|
6361
|
-
{ projectId: typed.id, configId, error },
|
|
6362
|
-
"Failed to update contextConfig in project"
|
|
6363
|
-
);
|
|
6364
|
-
throw error;
|
|
6365
|
-
}
|
|
6366
|
-
}
|
|
6367
|
-
);
|
|
6368
|
-
await Promise.all(contextConfigPromises);
|
|
6369
|
-
logger12.info(
|
|
6370
|
-
{
|
|
6371
|
-
projectId: typed.id,
|
|
6372
|
-
count: Object.keys(typed.contextConfig).length
|
|
6373
|
-
},
|
|
6374
|
-
"All project contextConfigs updated successfully"
|
|
6375
|
-
);
|
|
6376
|
-
}
|
|
6377
6401
|
if (typed.dataComponents && Object.keys(typed.dataComponents).length > 0) {
|
|
6378
6402
|
logger12.info(
|
|
6379
6403
|
{
|
|
@@ -6470,7 +6494,10 @@ var updateFullProjectServerSide = (db, logger12 = defaultLogger2) => async (scop
|
|
|
6470
6494
|
for (const graph of existingGraphs) {
|
|
6471
6495
|
if (!incomingGraphIds.has(graph.id)) {
|
|
6472
6496
|
try {
|
|
6473
|
-
await deleteFullGraph(
|
|
6497
|
+
await deleteFullGraph(
|
|
6498
|
+
db,
|
|
6499
|
+
logger12
|
|
6500
|
+
)({
|
|
6474
6501
|
scopes: { tenantId, projectId: typed.id, graphId: graph.id }
|
|
6475
6502
|
});
|
|
6476
6503
|
deletedGraphCount++;
|
|
@@ -6509,7 +6536,6 @@ var updateFullProjectServerSide = (db, logger12 = defaultLogger2) => async (scop
|
|
|
6509
6536
|
// Pass project-level resources for validation
|
|
6510
6537
|
dataComponents: typed.dataComponents || {},
|
|
6511
6538
|
artifactComponents: typed.artifactComponents || {},
|
|
6512
|
-
contextConfig: typed.contextConfig?.[graphId] || void 0,
|
|
6513
6539
|
credentialReferences: typed.credentialReferences || {},
|
|
6514
6540
|
statusUpdates: graphData.statusUpdates === null ? void 0 : graphData.statusUpdates
|
|
6515
6541
|
};
|
|
@@ -6711,8 +6737,7 @@ var getFullProject = (db, logger12 = defaultLogger2) => async (params) => {
|
|
|
6711
6737
|
scopes: { tenantId, projectId, graphId: graph.id }
|
|
6712
6738
|
});
|
|
6713
6739
|
if (fullGraph) {
|
|
6714
|
-
|
|
6715
|
-
graphs[graph.id] = graphWithoutProjectResources;
|
|
6740
|
+
graphs[graph.id] = fullGraph;
|
|
6716
6741
|
logger12.info(
|
|
6717
6742
|
{ tenantId, projectId, graphId: graph.id },
|
|
6718
6743
|
"Full graph definition retrieved"
|
|
@@ -6744,7 +6769,6 @@ var getFullProject = (db, logger12 = defaultLogger2) => async (params) => {
|
|
|
6744
6769
|
tools: projectTools,
|
|
6745
6770
|
dataComponents: projectDataComponents,
|
|
6746
6771
|
artifactComponents: projectArtifactComponents,
|
|
6747
|
-
contextConfig: projectContextConfigs,
|
|
6748
6772
|
credentialReferences: projectCredentialReferences,
|
|
6749
6773
|
createdAt: project.createdAt,
|
|
6750
6774
|
updatedAt: project.updatedAt
|
|
@@ -9087,4 +9111,4 @@ ${error.message}`
|
|
|
9087
9111
|
};
|
|
9088
9112
|
parseEnv();
|
|
9089
9113
|
|
|
9090
|
-
export { ContextCache, ContextConfigBuilder, ContextFetcher, ContextResolver, CredentialStoreRegistry, CredentialStuffer, ERROR_DOCS_BASE_URL, ErrorCode, HTTP_REQUEST_PARTS, InMemoryCredentialStore, KeyChainStore, McpClient, NangoCredentialStore, PinoLogger, TemplateEngine, addLedgerArtifacts, addToolToAgent, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentGraph, createAgentRelation, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createExternalAgentRelation, createFullGraphServerSide, createFullProjectServerSide, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentGraph, deleteAgentRelation, deleteAgentRelationsByGraph, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullGraph, deleteFullProject, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteTool, detectAuthenticationRequired, determineContextTrigger, discoverOAuthEndpoints, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, getActiveAgentForConversation, getAgentById, getAgentGraphById, getAgentGraphWithDefaultAgent, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByGraph, getAgentRelationsBySource, getAgentRelationsByTarget, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentsByIds, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getContextConfigsByName, getConversation, getConversationCacheEntries, getConversationHistory, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithTools, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentRelations, getFullGraph, getFullGraphDefinition, getFullProject, getGraphAgentInfos, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForGraph, getRequestExecutionContext, getTask, getToolById, getToolsForAgent, getTracer, getVisibleMessages, graphHasArtifactComponents, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, invalidateInvocationDefinitionsCache, invalidateRequestContextCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentGraphs, listAgentGraphsPaginated, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listMessages, listProjects, listProjectsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, loggerFactory, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, requestContextSchema, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentGraph, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullGraphServerSide, updateFullProjectServerSide, updateMessage, updateProject, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertAgentGraph, upsertAgentRelation, upsertAgentToolRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertLedgerArtifact, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateExternalAgent, validateHttpRequestHeaders, validateInternalAgent, validateProjectExists, validateRequestContext, validationHelper, withProjectValidation };
|
|
9114
|
+
export { ContextCache, ContextConfigBuilder, ContextFetcher, ContextResolver, CredentialStoreRegistry, CredentialStuffer, ERROR_DOCS_BASE_URL, ErrorCode, HTTP_REQUEST_PARTS, InMemoryCredentialStore, KeyChainStore, McpClient, NangoCredentialStore, PinoLogger, TemplateEngine, addLedgerArtifacts, addToolToAgent, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentGraph, createAgentRelation, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createExternalAgentRelation, createFullGraphServerSide, createFullProjectServerSide, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentGraph, deleteAgentRelation, deleteAgentRelationsByGraph, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullGraph, deleteFullProject, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteTool, detectAuthenticationRequired, determineContextTrigger, discoverOAuthEndpoints, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, getActiveAgentForConversation, getAgentById, getAgentGraphById, getAgentGraphWithDefaultAgent, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByGraph, getAgentRelationsBySource, getAgentRelationsByTarget, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentsByIds, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getContextConfigsByName, getConversation, getConversationCacheEntries, getConversationHistory, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithTools, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentRelations, getFullGraph, getFullGraphDefinition, getFullProject, getGraphAgentInfos, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForGraph, getRequestExecutionContext, getTask, getToolById, getToolsForAgent, getTracer, getVisibleMessages, graphHasArtifactComponents, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, invalidateInvocationDefinitionsCache, invalidateRequestContextCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentGraphs, listAgentGraphsPaginated, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listMessages, listProjects, listProjectsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, loggerFactory, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, requestContextSchema, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentGraph, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullGraphServerSide, updateFullProjectServerSide, updateMessage, updateProject, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertAgentGraph, upsertAgentRelation, upsertAgentToolRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertLedgerArtifact, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateExternalAgent, validateHttpRequestHeaders, validateInternalAgent, validateProjectExists, validateRequestContext, validationHelper, withProjectValidation };
|
|
@@ -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-
|
|
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-
|
|
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";
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { e as CredentialStoreType } from '../utility-
|
|
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-
|
|
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';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { e as CredentialStoreType } from '../utility-
|
|
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-
|
|
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';
|