@inkeep/agents-core 0.1.6 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,125 +0,0 @@
1
- import { C as CredentialStoreType } from '../entities-CNJaf-rG.cjs';
2
- export { aT as A2AError, bn as A2ARequest, bo as A2AResponse, as as APIKeySecurityScheme, bs as AgentApiInsert, br as AgentApiSelect, bt as AgentApiUpdate, ck as AgentArtifactComponentApiInsert, cj as AgentArtifactComponentApiSelect, cl as AgentArtifactComponentApiUpdate, ch as AgentArtifactComponentInsert, cg as AgentArtifactComponentSelect, ci as AgentArtifactComponentUpdate, ao as AgentCapabilities, aC as AgentCard, cY as AgentConversationHistoryConfig, cb as AgentDataComponentApiInsert, ca as AgentDataComponentApiSelect, cc as AgentDataComponentApiUpdate, c8 as AgentDataComponentInsert, c7 as AgentDataComponentSelect, c9 as AgentDataComponentUpdate, cJ as AgentDefinition, bC as AgentGraphApiInsert, bB as AgentGraphApiSelect, bD as AgentGraphApiUpdate, A as AgentGraphInsert, bA as AgentGraphSelect, l as AgentGraphUpdate, q as AgentInsert, ap as AgentProvider, bw as AgentRelationApiInsert, bv as AgentRelationApiSelect, bx as AgentRelationApiUpdate, n as AgentRelationInsert, by as AgentRelationQuery, bu as AgentRelationSelect, o as AgentRelationUpdate, s as AgentSelect, aq as AgentSkill, cA as AgentToolRelationApiInsert, cz as AgentToolRelationApiSelect, cB as AgentToolRelationApiUpdate, cy as AgentToolRelationInsert, cx as AgentToolRelationSelect, p as AgentToolRelationUpdate, r as AgentUpdate, cp as AllAgentSelect, ct as ApiKeyApiCreationResponse, cr as ApiKeyApiInsert, cq as ApiKeyApiSelect, cs as ApiKeyApiUpdate, x as ApiKeyCreateResult, u as ApiKeyInsert, t as ApiKeySelect, v as ApiKeyUpdate, _ as Artifact, ce as ArtifactComponentApiInsert, cd as ArtifactComponentApiSelect, cf as ArtifactComponentApiUpdate, z as ArtifactComponentInsert, y as ArtifactComponentSelect, B as ArtifactComponentUpdate, av as AuthorizationCodeOAuthFlow, b7 as CancelTaskRequest, bi as CancelTaskResponse, bh as CancelTaskSuccessResponse, aw as ClientCredentialsOAuthFlow, aR as ContentTypeNotSupportedError, c2 as ContextCacheApiInsert, c1 as ContextCacheApiSelect, c3 as ContextCacheApiUpdate, cZ as ContextCacheEntry, G as ContextCacheInsert, D as ContextCacheSelect, c0 as ContextCacheUpdate, bZ as ContextConfigApiInsert, bY as ContextConfigApiSelect, b_ as ContextConfigApiUpdate, H as ContextConfigInsert, i as ContextConfigSelect, I as ContextConfigUpdate, a as ContextFetchDefinition, bS as ConversationApiInsert, bR as ConversationApiSelect, bT as ConversationApiUpdate, b as ConversationHistoryConfig, K as ConversationInsert, f as ConversationMetadata, cX as ConversationScopeOptions, J as ConversationSelect, L as ConversationUpdate, w as CreateApiKeyParams, cv as CredentialReferenceApiInsert, cu as CredentialReferenceApiSelect, cw as CredentialReferenceApiUpdate, Q as CredentialReferenceInsert, N as CredentialReferenceSelect, R as CredentialReferenceUpdate, c5 as DataComponentApiInsert, c4 as DataComponentApiSelect, c6 as DataComponentApiUpdate, V as DataComponentInsert, U as DataComponentSelect, W as DataComponentUpdate, am as DataPart, af as ExecutionContext, cn as ExternalAgentApiInsert, cm as ExternalAgentApiSelect, co as ExternalAgentApiUpdate, X as ExternalAgentInsert, bz as ExternalAgentRelationApiInsert, E as ExternalAgentRelationInsert, Y as ExternalAgentSelect, Z as ExternalAgentUpdate, b$ as FetchConfig, F as FetchDefinition, ai as FileBase, al as FilePart, aj as FileWithBytes, ak as FileWithUri, cH as FullGraphAgentInsert, m as FullGraphDefinition, b9 as GetTaskPushNotificationConfigRequest, bm as GetTaskPushNotificationConfigResponse, bl as GetTaskPushNotificationConfigSuccessResponse, b6 as GetTaskRequest, bg as GetTaskResponse, bf as GetTaskSuccessResponse, at as HTTPAuthSecurityScheme, ax as ImplicitOAuthFlow, cI as InternalAgentDefinition, aM as InternalError, aS as InvalidAgentResponseError, aL as InvalidParamsError, aJ as InvalidRequestError, aI as JSONParseError, b1 as JSONRPCError, b3 as JSONRPCErrorResponse, a$ as JSONRPCMessage, b0 as JSONRPCRequest, b2 as JSONRPCResult, cF as LedgerArtifactApiInsert, cE as LedgerArtifactApiSelect, cG as LedgerArtifactApiUpdate, cC as LedgerArtifactInsert, $ as LedgerArtifactSelect, cD as LedgerArtifactUpdate, d5 as MCPServerType, j as MCPToolConfig, M as MCPTransportType, c_ as McpAuthType, c$ as McpServerAuth, d1 as McpServerCapabilities, ab as McpTool, e as McpToolDefinition, ac as McpToolStatus, d0 as McpTransportConfig, aD as Message, bW as MessageApiInsert, bV as MessageApiSelect, bX as MessageApiUpdate, g as MessageContent, a1 as MessageInsert, h as MessageMetadata, cR as MessageMode, bp as MessagePart, cQ as MessageRole, bU as MessageSelect, aZ as MessageSendConfiguration, a_ as MessageSendParams, cP as MessageType, a2 as MessageUpdate, a0 as MessageVisibility, aK as MethodNotFoundError, cU as ModelSettings, cS as Models, az as OAuth2SecurityScheme, au as OAuthFlows, aA as OpenIdConnectSecurityScheme, cO as Pagination, k as PaginationConfig, a5 as PaginationResult, P as Part, ag as PartBase, ay as PasswordOAuthFlow, cM as ProjectApiInsert, cL as ProjectApiSelect, cN as ProjectApiUpdate, a3 as ProjectInfo, a7 as ProjectInsert, cT as ProjectModels, a6 as ProjectResourceCounts, a4 as ProjectSelect, a8 as ProjectUpdate, aU as PushNotificationAuthenticationInfo, aV as PushNotificationConfig, aP as PushNotificationNotSupportedError, S as ScopeConfig, aB as SecurityScheme, ar as SecuritySchemeBase, b4 as SendMessageRequest, bc as SendMessageResponse, bb as SendMessageSuccessResponse, b5 as SendStreamingMessageRequest, be as SendStreamingMessageResponse, bd as SendStreamingMessageSuccessResponse, b8 as SetTaskPushNotificationConfigRequest, bk as SetTaskPushNotificationConfigResponse, bj as SetTaskPushNotificationConfigSuccessResponse, cW as StatusComponent, cV as StatusUpdateSettings, d3 as TOOL_STATUS_VALUES, aF as Task, bG as TaskApiInsert, bF as TaskApiSelect, bH as TaskApiUpdate, bq as TaskArtifact, aH as TaskArtifactUpdateEvent, aX as TaskIdParams, a9 as TaskInsert, T as TaskMetadataConfig, aO as TaskNotCancelableError, aN as TaskNotFoundError, aW as TaskPushNotificationConfig, aY as TaskQueryParams, bM as TaskRelationApiInsert, bL as TaskRelationApiSelect, bN as TaskRelationApiUpdate, bJ as TaskRelationInsert, bI as TaskRelationSelect, bK as TaskRelationUpdate, ba as TaskResubscriptionRequest, aa as TaskSelect, an as TaskState, aE as TaskStatus, aG as TaskStatusUpdateEvent, bE as TaskUpdate, ah as TextPart, bP as ToolApiInsert, bO as ToolApiSelect, bQ as ToolApiUpdate, cK as ToolDefinition, ad as ToolInsert, c as ToolMcpConfig, O as ToolSelect, d as ToolServerCapabilities, ae as ToolUpdate, aQ as UnsupportedOperationError, d4 as VALID_RELATION_TYPES, d2 as toolStatus } from '../entities-CNJaf-rG.cjs';
3
- import { Context } from 'hono';
4
- import 'zod';
5
- import 'drizzle-zod';
6
- import 'drizzle-orm/sqlite-core';
7
- import '@hono/zod-openapi';
8
- import '@modelcontextprotocol/sdk/client/streamableHttp.js';
9
-
10
- /**
11
- * Credential store interface for managing different types of credentials
12
- */
13
- interface CredentialStore {
14
- /**
15
- * Unique identifier for this credential store
16
- */
17
- id: string;
18
- /**
19
- * Type of credential store
20
- */
21
- type: keyof typeof CredentialStoreType;
22
- /**
23
- * Get a credential by key
24
- */
25
- get(key: string): Promise<string | null>;
26
- /**
27
- * Set a credential
28
- */
29
- set(key: string, value: string): Promise<void>;
30
- /**
31
- * Check if a credential exists
32
- */
33
- has(key: string): Promise<boolean>;
34
- /**
35
- * Delete a credential
36
- */
37
- delete(key: string): Promise<boolean>;
38
- }
39
- /**
40
- * Server configuration options for HTTP server behavior
41
- * These settings control connection management, timeouts, and server behavior
42
- */
43
- interface ServerOptions {
44
- /**
45
- * Server port to listen on
46
- * Default: 3000
47
- */
48
- port?: number;
49
- /**
50
- * Keep alive timeout in milliseconds
51
- * Time to wait for additional data after the last response before closing the connection.
52
- * Used for persistent connections to improve performance by reusing connections.
53
- * Scenario: Set higher (10-30s) for high-traffic APIs, lower (1-5s) for low-traffic services.
54
- * Default: 60000ms (60 seconds)
55
- */
56
- keepAliveTimeout?: number;
57
- /**
58
- * Enable keep alive connections
59
- * When true, allows connection reuse for multiple requests.
60
- * Improves performance but uses more server resources.
61
- * Scenario: Enable for APIs with frequent requests, disable for one-off services.
62
- * Default: true
63
- */
64
- keepAlive?: boolean;
65
- /**
66
- * Request timeout in milliseconds
67
- * Maximum time to wait for a complete request from the client.
68
- * Helps prevent DoS attacks by limiting resource consumption from slow clients.
69
- * Scenario: Set lower (30s) for simple APIs, higher (5-10min) for file upload services.
70
- * Default: 60000ms (60 seconds)
71
- */
72
- requestTimeout?: number;
73
- }
74
- /**
75
- * CORS configuration compatible with Hono's CORSOptions
76
- */
77
- interface CorsConfig {
78
- /**
79
- * Allowed origins - string, array of strings, or function
80
- */
81
- origin?: string | string[] | ((origin: string, c?: Context) => string | null | undefined);
82
- /**
83
- * Allowed methods
84
- */
85
- allowMethods?: string[];
86
- /**
87
- * Allowed headers
88
- */
89
- allowHeaders?: string[];
90
- /**
91
- * Exposed headers
92
- */
93
- exposeHeaders?: string[];
94
- /**
95
- * Max age for preflight requests
96
- */
97
- maxAge?: number;
98
- /**
99
- * Whether to allow credentials
100
- */
101
- credentials?: boolean;
102
- }
103
- /**
104
- * Base server configuration for all Inkeep services
105
- */
106
- interface ServerConfig {
107
- /**
108
- * Server port to listen on
109
- */
110
- port?: number;
111
- /**
112
- * Server options for HTTP behavior
113
- */
114
- serverOptions?: ServerOptions;
115
- /**
116
- * Array of credential stores for managing API keys, tokens, etc.
117
- */
118
- credentialStores?: CredentialStore[];
119
- /**
120
- * CORS configuration
121
- */
122
- cors?: CorsConfig;
123
- }
124
-
125
- export { type CorsConfig, type CredentialStore, CredentialStoreType, type ServerConfig, type ServerOptions };
@@ -1,125 +0,0 @@
1
- import { C as CredentialStoreType } from '../entities-CNJaf-rG.js';
2
- export { aT as A2AError, bn as A2ARequest, bo as A2AResponse, as as APIKeySecurityScheme, bs as AgentApiInsert, br as AgentApiSelect, bt as AgentApiUpdate, ck as AgentArtifactComponentApiInsert, cj as AgentArtifactComponentApiSelect, cl as AgentArtifactComponentApiUpdate, ch as AgentArtifactComponentInsert, cg as AgentArtifactComponentSelect, ci as AgentArtifactComponentUpdate, ao as AgentCapabilities, aC as AgentCard, cY as AgentConversationHistoryConfig, cb as AgentDataComponentApiInsert, ca as AgentDataComponentApiSelect, cc as AgentDataComponentApiUpdate, c8 as AgentDataComponentInsert, c7 as AgentDataComponentSelect, c9 as AgentDataComponentUpdate, cJ as AgentDefinition, bC as AgentGraphApiInsert, bB as AgentGraphApiSelect, bD as AgentGraphApiUpdate, A as AgentGraphInsert, bA as AgentGraphSelect, l as AgentGraphUpdate, q as AgentInsert, ap as AgentProvider, bw as AgentRelationApiInsert, bv as AgentRelationApiSelect, bx as AgentRelationApiUpdate, n as AgentRelationInsert, by as AgentRelationQuery, bu as AgentRelationSelect, o as AgentRelationUpdate, s as AgentSelect, aq as AgentSkill, cA as AgentToolRelationApiInsert, cz as AgentToolRelationApiSelect, cB as AgentToolRelationApiUpdate, cy as AgentToolRelationInsert, cx as AgentToolRelationSelect, p as AgentToolRelationUpdate, r as AgentUpdate, cp as AllAgentSelect, ct as ApiKeyApiCreationResponse, cr as ApiKeyApiInsert, cq as ApiKeyApiSelect, cs as ApiKeyApiUpdate, x as ApiKeyCreateResult, u as ApiKeyInsert, t as ApiKeySelect, v as ApiKeyUpdate, _ as Artifact, ce as ArtifactComponentApiInsert, cd as ArtifactComponentApiSelect, cf as ArtifactComponentApiUpdate, z as ArtifactComponentInsert, y as ArtifactComponentSelect, B as ArtifactComponentUpdate, av as AuthorizationCodeOAuthFlow, b7 as CancelTaskRequest, bi as CancelTaskResponse, bh as CancelTaskSuccessResponse, aw as ClientCredentialsOAuthFlow, aR as ContentTypeNotSupportedError, c2 as ContextCacheApiInsert, c1 as ContextCacheApiSelect, c3 as ContextCacheApiUpdate, cZ as ContextCacheEntry, G as ContextCacheInsert, D as ContextCacheSelect, c0 as ContextCacheUpdate, bZ as ContextConfigApiInsert, bY as ContextConfigApiSelect, b_ as ContextConfigApiUpdate, H as ContextConfigInsert, i as ContextConfigSelect, I as ContextConfigUpdate, a as ContextFetchDefinition, bS as ConversationApiInsert, bR as ConversationApiSelect, bT as ConversationApiUpdate, b as ConversationHistoryConfig, K as ConversationInsert, f as ConversationMetadata, cX as ConversationScopeOptions, J as ConversationSelect, L as ConversationUpdate, w as CreateApiKeyParams, cv as CredentialReferenceApiInsert, cu as CredentialReferenceApiSelect, cw as CredentialReferenceApiUpdate, Q as CredentialReferenceInsert, N as CredentialReferenceSelect, R as CredentialReferenceUpdate, c5 as DataComponentApiInsert, c4 as DataComponentApiSelect, c6 as DataComponentApiUpdate, V as DataComponentInsert, U as DataComponentSelect, W as DataComponentUpdate, am as DataPart, af as ExecutionContext, cn as ExternalAgentApiInsert, cm as ExternalAgentApiSelect, co as ExternalAgentApiUpdate, X as ExternalAgentInsert, bz as ExternalAgentRelationApiInsert, E as ExternalAgentRelationInsert, Y as ExternalAgentSelect, Z as ExternalAgentUpdate, b$ as FetchConfig, F as FetchDefinition, ai as FileBase, al as FilePart, aj as FileWithBytes, ak as FileWithUri, cH as FullGraphAgentInsert, m as FullGraphDefinition, b9 as GetTaskPushNotificationConfigRequest, bm as GetTaskPushNotificationConfigResponse, bl as GetTaskPushNotificationConfigSuccessResponse, b6 as GetTaskRequest, bg as GetTaskResponse, bf as GetTaskSuccessResponse, at as HTTPAuthSecurityScheme, ax as ImplicitOAuthFlow, cI as InternalAgentDefinition, aM as InternalError, aS as InvalidAgentResponseError, aL as InvalidParamsError, aJ as InvalidRequestError, aI as JSONParseError, b1 as JSONRPCError, b3 as JSONRPCErrorResponse, a$ as JSONRPCMessage, b0 as JSONRPCRequest, b2 as JSONRPCResult, cF as LedgerArtifactApiInsert, cE as LedgerArtifactApiSelect, cG as LedgerArtifactApiUpdate, cC as LedgerArtifactInsert, $ as LedgerArtifactSelect, cD as LedgerArtifactUpdate, d5 as MCPServerType, j as MCPToolConfig, M as MCPTransportType, c_ as McpAuthType, c$ as McpServerAuth, d1 as McpServerCapabilities, ab as McpTool, e as McpToolDefinition, ac as McpToolStatus, d0 as McpTransportConfig, aD as Message, bW as MessageApiInsert, bV as MessageApiSelect, bX as MessageApiUpdate, g as MessageContent, a1 as MessageInsert, h as MessageMetadata, cR as MessageMode, bp as MessagePart, cQ as MessageRole, bU as MessageSelect, aZ as MessageSendConfiguration, a_ as MessageSendParams, cP as MessageType, a2 as MessageUpdate, a0 as MessageVisibility, aK as MethodNotFoundError, cU as ModelSettings, cS as Models, az as OAuth2SecurityScheme, au as OAuthFlows, aA as OpenIdConnectSecurityScheme, cO as Pagination, k as PaginationConfig, a5 as PaginationResult, P as Part, ag as PartBase, ay as PasswordOAuthFlow, cM as ProjectApiInsert, cL as ProjectApiSelect, cN as ProjectApiUpdate, a3 as ProjectInfo, a7 as ProjectInsert, cT as ProjectModels, a6 as ProjectResourceCounts, a4 as ProjectSelect, a8 as ProjectUpdate, aU as PushNotificationAuthenticationInfo, aV as PushNotificationConfig, aP as PushNotificationNotSupportedError, S as ScopeConfig, aB as SecurityScheme, ar as SecuritySchemeBase, b4 as SendMessageRequest, bc as SendMessageResponse, bb as SendMessageSuccessResponse, b5 as SendStreamingMessageRequest, be as SendStreamingMessageResponse, bd as SendStreamingMessageSuccessResponse, b8 as SetTaskPushNotificationConfigRequest, bk as SetTaskPushNotificationConfigResponse, bj as SetTaskPushNotificationConfigSuccessResponse, cW as StatusComponent, cV as StatusUpdateSettings, d3 as TOOL_STATUS_VALUES, aF as Task, bG as TaskApiInsert, bF as TaskApiSelect, bH as TaskApiUpdate, bq as TaskArtifact, aH as TaskArtifactUpdateEvent, aX as TaskIdParams, a9 as TaskInsert, T as TaskMetadataConfig, aO as TaskNotCancelableError, aN as TaskNotFoundError, aW as TaskPushNotificationConfig, aY as TaskQueryParams, bM as TaskRelationApiInsert, bL as TaskRelationApiSelect, bN as TaskRelationApiUpdate, bJ as TaskRelationInsert, bI as TaskRelationSelect, bK as TaskRelationUpdate, ba as TaskResubscriptionRequest, aa as TaskSelect, an as TaskState, aE as TaskStatus, aG as TaskStatusUpdateEvent, bE as TaskUpdate, ah as TextPart, bP as ToolApiInsert, bO as ToolApiSelect, bQ as ToolApiUpdate, cK as ToolDefinition, ad as ToolInsert, c as ToolMcpConfig, O as ToolSelect, d as ToolServerCapabilities, ae as ToolUpdate, aQ as UnsupportedOperationError, d4 as VALID_RELATION_TYPES, d2 as toolStatus } from '../entities-CNJaf-rG.js';
3
- import { Context } from 'hono';
4
- import 'zod';
5
- import 'drizzle-zod';
6
- import 'drizzle-orm/sqlite-core';
7
- import '@hono/zod-openapi';
8
- import '@modelcontextprotocol/sdk/client/streamableHttp.js';
9
-
10
- /**
11
- * Credential store interface for managing different types of credentials
12
- */
13
- interface CredentialStore {
14
- /**
15
- * Unique identifier for this credential store
16
- */
17
- id: string;
18
- /**
19
- * Type of credential store
20
- */
21
- type: keyof typeof CredentialStoreType;
22
- /**
23
- * Get a credential by key
24
- */
25
- get(key: string): Promise<string | null>;
26
- /**
27
- * Set a credential
28
- */
29
- set(key: string, value: string): Promise<void>;
30
- /**
31
- * Check if a credential exists
32
- */
33
- has(key: string): Promise<boolean>;
34
- /**
35
- * Delete a credential
36
- */
37
- delete(key: string): Promise<boolean>;
38
- }
39
- /**
40
- * Server configuration options for HTTP server behavior
41
- * These settings control connection management, timeouts, and server behavior
42
- */
43
- interface ServerOptions {
44
- /**
45
- * Server port to listen on
46
- * Default: 3000
47
- */
48
- port?: number;
49
- /**
50
- * Keep alive timeout in milliseconds
51
- * Time to wait for additional data after the last response before closing the connection.
52
- * Used for persistent connections to improve performance by reusing connections.
53
- * Scenario: Set higher (10-30s) for high-traffic APIs, lower (1-5s) for low-traffic services.
54
- * Default: 60000ms (60 seconds)
55
- */
56
- keepAliveTimeout?: number;
57
- /**
58
- * Enable keep alive connections
59
- * When true, allows connection reuse for multiple requests.
60
- * Improves performance but uses more server resources.
61
- * Scenario: Enable for APIs with frequent requests, disable for one-off services.
62
- * Default: true
63
- */
64
- keepAlive?: boolean;
65
- /**
66
- * Request timeout in milliseconds
67
- * Maximum time to wait for a complete request from the client.
68
- * Helps prevent DoS attacks by limiting resource consumption from slow clients.
69
- * Scenario: Set lower (30s) for simple APIs, higher (5-10min) for file upload services.
70
- * Default: 60000ms (60 seconds)
71
- */
72
- requestTimeout?: number;
73
- }
74
- /**
75
- * CORS configuration compatible with Hono's CORSOptions
76
- */
77
- interface CorsConfig {
78
- /**
79
- * Allowed origins - string, array of strings, or function
80
- */
81
- origin?: string | string[] | ((origin: string, c?: Context) => string | null | undefined);
82
- /**
83
- * Allowed methods
84
- */
85
- allowMethods?: string[];
86
- /**
87
- * Allowed headers
88
- */
89
- allowHeaders?: string[];
90
- /**
91
- * Exposed headers
92
- */
93
- exposeHeaders?: string[];
94
- /**
95
- * Max age for preflight requests
96
- */
97
- maxAge?: number;
98
- /**
99
- * Whether to allow credentials
100
- */
101
- credentials?: boolean;
102
- }
103
- /**
104
- * Base server configuration for all Inkeep services
105
- */
106
- interface ServerConfig {
107
- /**
108
- * Server port to listen on
109
- */
110
- port?: number;
111
- /**
112
- * Server options for HTTP behavior
113
- */
114
- serverOptions?: ServerOptions;
115
- /**
116
- * Array of credential stores for managing API keys, tokens, etc.
117
- */
118
- credentialStores?: CredentialStore[];
119
- /**
120
- * CORS configuration
121
- */
122
- cors?: CorsConfig;
123
- }
124
-
125
- export { type CorsConfig, type CredentialStore, CredentialStoreType, type ServerConfig, type ServerOptions };
@@ -1,64 +0,0 @@
1
- import { z } from 'zod';
2
- import { cJ as AgentDefinition, cI as InternalAgentDefinition, cn as ExternalAgentApiInsert, fg as FullGraphDefinitionSchema, m as FullGraphDefinition } from '../entities-CNJaf-rG.cjs';
3
- export { dh as AgentApiInsertSchema, dg as AgentApiSelectSchema, di as AgentApiUpdateSchema, et as AgentArtifactComponentApiInsertSchema, es as AgentArtifactComponentApiSelectSchema, eu as AgentArtifactComponentApiUpdateSchema, eq as AgentArtifactComponentInsertSchema, ep as AgentArtifactComponentSelectSchema, er as AgentArtifactComponentUpdateSchema, eh as AgentDataComponentApiInsertSchema, eg as AgentDataComponentApiSelectSchema, ei as AgentDataComponentApiUpdateSchema, ee as AgentDataComponentInsertSchema, ed as AgentDataComponentSelectSchema, ef as AgentDataComponentUpdateSchema, dx as AgentGraphApiInsertSchema, dw as AgentGraphApiSelectSchema, dy as AgentGraphApiUpdateSchema, du as AgentGraphInsertSchema, dt as AgentGraphSelectSchema, dv as AgentGraphUpdateSchema, de as AgentInsertSchema, dn as AgentRelationApiInsertSchema, dm as AgentRelationApiSelectSchema, dp as AgentRelationApiUpdateSchema, dk as AgentRelationInsertSchema, dq as AgentRelationQuerySchema, dj as AgentRelationSelectSchema, dl as AgentRelationUpdateSchema, dd as AgentSelectSchema, f5 as AgentToolRelationApiInsertSchema, f4 as AgentToolRelationApiSelectSchema, f6 as AgentToolRelationApiUpdateSchema, f2 as AgentToolRelationInsertSchema, f1 as AgentToolRelationSelectSchema, f3 as AgentToolRelationUpdateSchema, df as AgentUpdateSchema, eB as AllAgentSchema, eG as ApiKeyApiCreationResponseSchema, eH as ApiKeyApiInsertSchema, eF as ApiKeyApiSelectSchema, eI as ApiKeyApiUpdateSchema, eD as ApiKeyInsertSchema, eC as ApiKeySelectSchema, eE as ApiKeyUpdateSchema, en as ArtifactComponentApiInsertSchema, em as ArtifactComponentApiSelectSchema, eo as ArtifactComponentApiUpdateSchema, ek as ArtifactComponentInsertSchema, ej as ArtifactComponentSelectSchema, el as ArtifactComponentUpdateSchema, e4 as ContextCacheApiInsertSchema, e3 as ContextCacheApiSelectSchema, e5 as ContextCacheApiUpdateSchema, e1 as ContextCacheInsertSchema, e0 as ContextCacheSelectSchema, e2 as ContextCacheUpdateSchema, e$ as ContextConfigApiInsertSchema, e_ as ContextConfigApiSelectSchema, f0 as ContextConfigApiUpdateSchema, eY as ContextConfigInsertSchema, eX as ContextConfigSelectSchema, eZ as ContextConfigUpdateSchema, dU as ConversationApiInsertSchema, dT as ConversationApiSelectSchema, dV as ConversationApiUpdateSchema, dR as ConversationInsertSchema, dQ as ConversationSelectSchema, dS as ConversationUpdateSchema, eN as CredentialReferenceApiInsertSchema, eM as CredentialReferenceApiSelectSchema, eO as CredentialReferenceApiUpdateSchema, eK as CredentialReferenceInsertSchema, eJ as CredentialReferenceSelectSchema, eL as CredentialReferenceUpdateSchema, eb as DataComponentApiInsertSchema, ea as DataComponentApiSelectSchema, ec as DataComponentApiUpdateSchema, e8 as DataComponentBaseSchema, e7 as DataComponentInsertSchema, e6 as DataComponentSelectSchema, e9 as DataComponentUpdateSchema, fk as ErrorResponseSchema, fl as ExistsResponseSchema, ez as ExternalAgentApiInsertSchema, ey as ExternalAgentApiSelectSchema, eA as ExternalAgentApiUpdateSchema, ew as ExternalAgentInsertSchema, ds as ExternalAgentRelationApiInsertSchema, dr as ExternalAgentRelationInsertSchema, ev as ExternalAgentSelectSchema, ex as ExternalAgentUpdateSchema, eV as FetchConfigSchema, eW as FetchDefinitionSchema, ff as FullGraphAgentInsertSchema, ft as HeadersScopeSchema, fy as IdParamsSchema, fb as LedgerArtifactApiInsertSchema, fa as LedgerArtifactApiSelectSchema, fc as LedgerArtifactApiUpdateSchema, f8 as LedgerArtifactInsertSchema, f7 as LedgerArtifactSelectSchema, f9 as LedgerArtifactUpdateSchema, fi as ListResponseSchema, d7 as MAX_ID_LENGTH, eQ as MCPToolConfigSchema, d6 as MIN_ID_LENGTH, dN as McpToolDefinitionSchema, eP as McpToolSchema, dL as McpTransportConfigSchema, d_ as MessageApiInsertSchema, dZ as MessageApiSelectSchema, d$ as MessageApiUpdateSchema, dX as MessageInsertSchema, dW as MessageSelectSchema, dY as MessageUpdateSchema, db as ModelSchema, da as ModelSettingsSchema, fz as PaginationQueryParamsSchema, fh as PaginationSchema, fr as ProjectApiInsertSchema, fq as ProjectApiSelectSchema, fs as ProjectApiUpdateSchema, fo as ProjectInsertSchema, dc as ProjectModelSchema, fn as ProjectSelectSchema, fp as ProjectUpdateSchema, fm as RemovedResponseSchema, fj as SingleResponseSchema, fd as StatusComponentSchema, fe as StatusUpdateSchema, dD as TaskApiInsertSchema, dC as TaskApiSelectSchema, dE as TaskApiUpdateSchema, dA as TaskInsertSchema, dJ as TaskRelationApiInsertSchema, dI as TaskRelationApiSelectSchema, dK as TaskRelationApiUpdateSchema, dG as TaskRelationInsertSchema, dF as TaskRelationSelectSchema, dH as TaskRelationUpdateSchema, dz as TaskSelectSchema, dB as TaskUpdateSchema, fx as TenantIdParamsSchema, fu as TenantParamsSchema, fw as TenantProjectIdParamsSchema, fv as TenantProjectParamsSchema, eT as ToolApiInsertSchema, eS as ToolApiSelectSchema, eU as ToolApiUpdateSchema, dP as ToolInsertSchema, dO as ToolSelectSchema, dM as ToolStatusSchema, eR as ToolUpdateSchema, d8 as URL_SAFE_ID_PATTERN, d9 as resourceIdSchema } from '../entities-CNJaf-rG.cjs';
4
- import 'drizzle-zod';
5
- import 'drizzle-orm/sqlite-core';
6
- import '@hono/zod-openapi';
7
- import '@modelcontextprotocol/sdk/client/streamableHttp.js';
8
-
9
- declare function isInternalAgent(agent: AgentDefinition): agent is InternalAgentDefinition;
10
- declare function isExternalAgent(agent: AgentDefinition): agent is ExternalAgentApiInsert;
11
- declare function validateAndTypeGraphData(data: unknown): z.infer<typeof FullGraphDefinitionSchema>;
12
- /**
13
- * Validates that all tool IDs referenced in agents exist in the tools record
14
- */
15
- declare function validateToolReferences(graphData: FullGraphDefinition): void;
16
- /**
17
- * Validates that all dataComponent IDs referenced in agents exist in the dataComponents record
18
- */
19
- declare function validateDataComponentReferences(graphData: FullGraphDefinition): void;
20
- /**
21
- * Validates that all artifactComponent IDs referenced in agents exist in the artifactComponents record.
22
- * Ensures referential integrity between agents and their associated artifact components.
23
- *
24
- * @param graphData - The validated graph data containing agents and artifact components
25
- * @throws {Error} When agents reference non-existent artifact components
26
- * @example
27
- * ```typescript
28
- * const graphData = validateAndTypeGraphData(rawGraphData);
29
- * validateArtifactComponentReferences(graphData); // Throws if invalid references found
30
- * ```
31
- */
32
- declare function validateArtifactComponentReferences(graphData: FullGraphDefinition): void;
33
- /**
34
- * Validates agent relationships (transfer and delegation targets exist)
35
- */
36
- declare function validateAgentRelationships(graphData: FullGraphDefinition): void;
37
- /**
38
- * Validates the graph structure before creation/update
39
- */
40
- declare function validateGraphStructure(graphData: FullGraphDefinition): void;
41
-
42
- /**
43
- * Valid URL-safe characters for resource IDs based on RFC 3986.
44
- *
45
- * Allowed characters:
46
- * - Letters: a-z, A-Z
47
- * - Numbers: 0-9
48
- * - Hyphens: -
49
- * - Underscores: _
50
- *
51
- * Note: While dots (.) and tildes (~) are technically URL-safe,
52
- * we exclude them for consistency with existing patterns in the codebase.
53
- */
54
- /**
55
- * Helper function to validate if a string is a valid resource ID
56
- */
57
- declare function isValidResourceId(id: string): boolean;
58
- /**
59
- * Helper function to generate a URL-safe ID from a name or title.
60
- * Converts to lowercase and replaces invalid characters with hyphens.
61
- */
62
- declare function generateIdFromName(name: string): string;
63
-
64
- export { FullGraphDefinitionSchema, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAndTypeGraphData, validateArtifactComponentReferences, validateDataComponentReferences, validateGraphStructure, validateToolReferences };
@@ -1,64 +0,0 @@
1
- import { z } from 'zod';
2
- import { cJ as AgentDefinition, cI as InternalAgentDefinition, cn as ExternalAgentApiInsert, fg as FullGraphDefinitionSchema, m as FullGraphDefinition } from '../entities-CNJaf-rG.js';
3
- export { dh as AgentApiInsertSchema, dg as AgentApiSelectSchema, di as AgentApiUpdateSchema, et as AgentArtifactComponentApiInsertSchema, es as AgentArtifactComponentApiSelectSchema, eu as AgentArtifactComponentApiUpdateSchema, eq as AgentArtifactComponentInsertSchema, ep as AgentArtifactComponentSelectSchema, er as AgentArtifactComponentUpdateSchema, eh as AgentDataComponentApiInsertSchema, eg as AgentDataComponentApiSelectSchema, ei as AgentDataComponentApiUpdateSchema, ee as AgentDataComponentInsertSchema, ed as AgentDataComponentSelectSchema, ef as AgentDataComponentUpdateSchema, dx as AgentGraphApiInsertSchema, dw as AgentGraphApiSelectSchema, dy as AgentGraphApiUpdateSchema, du as AgentGraphInsertSchema, dt as AgentGraphSelectSchema, dv as AgentGraphUpdateSchema, de as AgentInsertSchema, dn as AgentRelationApiInsertSchema, dm as AgentRelationApiSelectSchema, dp as AgentRelationApiUpdateSchema, dk as AgentRelationInsertSchema, dq as AgentRelationQuerySchema, dj as AgentRelationSelectSchema, dl as AgentRelationUpdateSchema, dd as AgentSelectSchema, f5 as AgentToolRelationApiInsertSchema, f4 as AgentToolRelationApiSelectSchema, f6 as AgentToolRelationApiUpdateSchema, f2 as AgentToolRelationInsertSchema, f1 as AgentToolRelationSelectSchema, f3 as AgentToolRelationUpdateSchema, df as AgentUpdateSchema, eB as AllAgentSchema, eG as ApiKeyApiCreationResponseSchema, eH as ApiKeyApiInsertSchema, eF as ApiKeyApiSelectSchema, eI as ApiKeyApiUpdateSchema, eD as ApiKeyInsertSchema, eC as ApiKeySelectSchema, eE as ApiKeyUpdateSchema, en as ArtifactComponentApiInsertSchema, em as ArtifactComponentApiSelectSchema, eo as ArtifactComponentApiUpdateSchema, ek as ArtifactComponentInsertSchema, ej as ArtifactComponentSelectSchema, el as ArtifactComponentUpdateSchema, e4 as ContextCacheApiInsertSchema, e3 as ContextCacheApiSelectSchema, e5 as ContextCacheApiUpdateSchema, e1 as ContextCacheInsertSchema, e0 as ContextCacheSelectSchema, e2 as ContextCacheUpdateSchema, e$ as ContextConfigApiInsertSchema, e_ as ContextConfigApiSelectSchema, f0 as ContextConfigApiUpdateSchema, eY as ContextConfigInsertSchema, eX as ContextConfigSelectSchema, eZ as ContextConfigUpdateSchema, dU as ConversationApiInsertSchema, dT as ConversationApiSelectSchema, dV as ConversationApiUpdateSchema, dR as ConversationInsertSchema, dQ as ConversationSelectSchema, dS as ConversationUpdateSchema, eN as CredentialReferenceApiInsertSchema, eM as CredentialReferenceApiSelectSchema, eO as CredentialReferenceApiUpdateSchema, eK as CredentialReferenceInsertSchema, eJ as CredentialReferenceSelectSchema, eL as CredentialReferenceUpdateSchema, eb as DataComponentApiInsertSchema, ea as DataComponentApiSelectSchema, ec as DataComponentApiUpdateSchema, e8 as DataComponentBaseSchema, e7 as DataComponentInsertSchema, e6 as DataComponentSelectSchema, e9 as DataComponentUpdateSchema, fk as ErrorResponseSchema, fl as ExistsResponseSchema, ez as ExternalAgentApiInsertSchema, ey as ExternalAgentApiSelectSchema, eA as ExternalAgentApiUpdateSchema, ew as ExternalAgentInsertSchema, ds as ExternalAgentRelationApiInsertSchema, dr as ExternalAgentRelationInsertSchema, ev as ExternalAgentSelectSchema, ex as ExternalAgentUpdateSchema, eV as FetchConfigSchema, eW as FetchDefinitionSchema, ff as FullGraphAgentInsertSchema, ft as HeadersScopeSchema, fy as IdParamsSchema, fb as LedgerArtifactApiInsertSchema, fa as LedgerArtifactApiSelectSchema, fc as LedgerArtifactApiUpdateSchema, f8 as LedgerArtifactInsertSchema, f7 as LedgerArtifactSelectSchema, f9 as LedgerArtifactUpdateSchema, fi as ListResponseSchema, d7 as MAX_ID_LENGTH, eQ as MCPToolConfigSchema, d6 as MIN_ID_LENGTH, dN as McpToolDefinitionSchema, eP as McpToolSchema, dL as McpTransportConfigSchema, d_ as MessageApiInsertSchema, dZ as MessageApiSelectSchema, d$ as MessageApiUpdateSchema, dX as MessageInsertSchema, dW as MessageSelectSchema, dY as MessageUpdateSchema, db as ModelSchema, da as ModelSettingsSchema, fz as PaginationQueryParamsSchema, fh as PaginationSchema, fr as ProjectApiInsertSchema, fq as ProjectApiSelectSchema, fs as ProjectApiUpdateSchema, fo as ProjectInsertSchema, dc as ProjectModelSchema, fn as ProjectSelectSchema, fp as ProjectUpdateSchema, fm as RemovedResponseSchema, fj as SingleResponseSchema, fd as StatusComponentSchema, fe as StatusUpdateSchema, dD as TaskApiInsertSchema, dC as TaskApiSelectSchema, dE as TaskApiUpdateSchema, dA as TaskInsertSchema, dJ as TaskRelationApiInsertSchema, dI as TaskRelationApiSelectSchema, dK as TaskRelationApiUpdateSchema, dG as TaskRelationInsertSchema, dF as TaskRelationSelectSchema, dH as TaskRelationUpdateSchema, dz as TaskSelectSchema, dB as TaskUpdateSchema, fx as TenantIdParamsSchema, fu as TenantParamsSchema, fw as TenantProjectIdParamsSchema, fv as TenantProjectParamsSchema, eT as ToolApiInsertSchema, eS as ToolApiSelectSchema, eU as ToolApiUpdateSchema, dP as ToolInsertSchema, dO as ToolSelectSchema, dM as ToolStatusSchema, eR as ToolUpdateSchema, d8 as URL_SAFE_ID_PATTERN, d9 as resourceIdSchema } from '../entities-CNJaf-rG.js';
4
- import 'drizzle-zod';
5
- import 'drizzle-orm/sqlite-core';
6
- import '@hono/zod-openapi';
7
- import '@modelcontextprotocol/sdk/client/streamableHttp.js';
8
-
9
- declare function isInternalAgent(agent: AgentDefinition): agent is InternalAgentDefinition;
10
- declare function isExternalAgent(agent: AgentDefinition): agent is ExternalAgentApiInsert;
11
- declare function validateAndTypeGraphData(data: unknown): z.infer<typeof FullGraphDefinitionSchema>;
12
- /**
13
- * Validates that all tool IDs referenced in agents exist in the tools record
14
- */
15
- declare function validateToolReferences(graphData: FullGraphDefinition): void;
16
- /**
17
- * Validates that all dataComponent IDs referenced in agents exist in the dataComponents record
18
- */
19
- declare function validateDataComponentReferences(graphData: FullGraphDefinition): void;
20
- /**
21
- * Validates that all artifactComponent IDs referenced in agents exist in the artifactComponents record.
22
- * Ensures referential integrity between agents and their associated artifact components.
23
- *
24
- * @param graphData - The validated graph data containing agents and artifact components
25
- * @throws {Error} When agents reference non-existent artifact components
26
- * @example
27
- * ```typescript
28
- * const graphData = validateAndTypeGraphData(rawGraphData);
29
- * validateArtifactComponentReferences(graphData); // Throws if invalid references found
30
- * ```
31
- */
32
- declare function validateArtifactComponentReferences(graphData: FullGraphDefinition): void;
33
- /**
34
- * Validates agent relationships (transfer and delegation targets exist)
35
- */
36
- declare function validateAgentRelationships(graphData: FullGraphDefinition): void;
37
- /**
38
- * Validates the graph structure before creation/update
39
- */
40
- declare function validateGraphStructure(graphData: FullGraphDefinition): void;
41
-
42
- /**
43
- * Valid URL-safe characters for resource IDs based on RFC 3986.
44
- *
45
- * Allowed characters:
46
- * - Letters: a-z, A-Z
47
- * - Numbers: 0-9
48
- * - Hyphens: -
49
- * - Underscores: _
50
- *
51
- * Note: While dots (.) and tildes (~) are technically URL-safe,
52
- * we exclude them for consistency with existing patterns in the codebase.
53
- */
54
- /**
55
- * Helper function to validate if a string is a valid resource ID
56
- */
57
- declare function isValidResourceId(id: string): boolean;
58
- /**
59
- * Helper function to generate a URL-safe ID from a name or title.
60
- * Converts to lowercase and replaces invalid characters with hyphens.
61
- */
62
- declare function generateIdFromName(name: string): string;
63
-
64
- export { FullGraphDefinitionSchema, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAndTypeGraphData, validateArtifactComponentReferences, validateDataComponentReferences, validateGraphStructure, validateToolReferences };