@inkeep/agents-core 0.0.0-dev-20251109004542 → 0.0.0-dev-20251110174655
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-PPBBIDK4.js → chunk-DCMDYQKE.js} +1 -1
- package/dist/{chunk-RBUBOGX6.js → chunk-SLRVWIQY.js} +58 -8
- package/dist/client-exports.cjs +69 -12
- package/dist/client-exports.d.cts +6 -6
- package/dist/client-exports.d.ts +6 -6
- package/dist/client-exports.js +15 -7
- package/dist/db/schema.d.cts +2 -2
- package/dist/db/schema.d.ts +2 -2
- package/dist/index.cjs +234 -73
- package/dist/index.d.cts +374 -322
- package/dist/index.d.ts +374 -322
- package/dist/index.js +189 -101
- package/dist/{schema-lEFnfOQ-.d.ts → schema-BiVwgjkS.d.ts} +1 -1
- package/dist/{schema-ztSm-Iv6.d.cts → schema-DcDuYlEP.d.cts} +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/validation/index.cjs +56 -7
- 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/{utility-qLyZ45lb.d.cts → utility-DNsYIxBh.d.cts} +266 -266
- package/dist/{utility-qLyZ45lb.d.ts → utility-DNsYIxBh.d.ts} +266 -266
package/dist/index.js
CHANGED
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
import { detectAuthenticationRequired } from './chunk-OP3KPT4T.js';
|
|
2
2
|
export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, DATA_SOURCES, DATA_TYPES, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, FIELD_TYPES, OPERATORS, ORDER_DIRECTIONS, PANEL_TYPES, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, SPAN_KEYS, SPAN_NAMES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE, detectAuthenticationRequired, exchangeMcpAuthorizationCode, initiateMcpOAuthFlow } from './chunk-OP3KPT4T.js';
|
|
3
3
|
export { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS } from './chunk-MQTANAMG.js';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentInsertSchema, AgentListResponse, AgentResponse, AgentSelectSchema, AgentStopWhenSchema, AgentUpdateSchema, AgentWithinContextOfProjectSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CanUseItemSchema, ComponentAssociationSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationListResponse, ConversationResponse, ConversationSelectSchema, ConversationUpdateSchema, CreateCredentialInStoreRequestSchema, CreateCredentialInStoreResponseSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, CredentialStoreListResponseSchema, CredentialStoreSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FetchConfigSchema, FetchDefinitionSchema, FullAgentAgentInsertSchema, FullProjectDefinitionSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, FunctionInsertSchema, FunctionListResponse, FunctionResponse, FunctionSelectSchema, FunctionToolApiInsertSchema, FunctionToolApiSelectSchema, FunctionToolApiUpdateSchema, FunctionToolConfigSchema, FunctionToolInsertSchema, FunctionToolListResponse, FunctionToolResponse, FunctionToolSelectSchema, FunctionToolUpdateSchema, FunctionUpdateSchema, HeadersScopeSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageListResponse, MessageResponse, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, OAuthCallbackQuerySchema, OAuthLoginQuerySchema, PaginationQueryParamsSchema, PaginationSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, RelatedAgentInfoSchema, RemovedResponseSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, SubAgentApiInsertSchema, SubAgentApiSelectSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentListResponse, SubAgentArtifactComponentResponse, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentListResponse, SubAgentDataComponentResponse, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdateSchema, SubAgentExternalAgentRelationApiInsertSchema, SubAgentExternalAgentRelationApiSelectSchema, SubAgentExternalAgentRelationApiUpdateSchema, SubAgentExternalAgentRelationInsertSchema, SubAgentExternalAgentRelationSelectSchema, SubAgentExternalAgentRelationUpdateSchema, SubAgentInsertSchema, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentSelectSchema, SubAgentStopWhenSchema, SubAgentTeamAgentRelationApiInsertSchema, SubAgentTeamAgentRelationApiSelectSchema, SubAgentTeamAgentRelationApiUpdateSchema, SubAgentTeamAgentRelationInsertSchema, SubAgentTeamAgentRelationSelectSchema, SubAgentTeamAgentRelationUpdateSchema, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsertSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdateSchema, SubAgentUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TeamAgentSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolListResponse, ToolResponse, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, canDelegateToExternalAgentSchema, canDelegateToTeamAgentSchema, resourceIdSchema, validatePropsAsJsonSchema } from './chunk-RBUBOGX6.js';
|
|
4
|
+
import { validateRender, validateAndTypeAgentData, validateAgentStructure } from './chunk-DCMDYQKE.js';
|
|
5
|
+
export { A2AMessageMetadataSchema, DataComponentStreamEventSchema, DataOperationDetailsSchema, DataOperationEventSchema, DataOperationStreamEventSchema, DataSummaryStreamEventSchema, DelegationReturnedDataSchema, DelegationSentDataSchema, StreamErrorEventSchema, StreamEventSchema, StreamFinishEventSchema, TextDeltaEventSchema, TextEndEventSchema, TextStartEventSchema, TransferDataSchema, generateIdFromName, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validateRender, validateSubAgentExternalAgentRelations, validateToolReferences } from './chunk-DCMDYQKE.js';
|
|
6
|
+
import { schemaValidationDefaults, ContextConfigApiUpdateSchema, validatePropsAsJsonSchema } from './chunk-SLRVWIQY.js';
|
|
7
|
+
export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentInsertSchema, AgentListResponse, AgentResponse, AgentSelectSchema, AgentStopWhenSchema, AgentUpdateSchema, AgentWithinContextOfProjectSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CanUseItemSchema, ComponentAssociationSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationListResponse, ConversationResponse, ConversationSelectSchema, ConversationUpdateSchema, CreateCredentialInStoreRequestSchema, CreateCredentialInStoreResponseSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, CredentialStoreListResponseSchema, CredentialStoreSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FetchConfigSchema, FetchDefinitionSchema, FullAgentAgentInsertSchema, FullProjectDefinitionSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, FunctionInsertSchema, FunctionListResponse, FunctionResponse, FunctionSelectSchema, FunctionToolApiInsertSchema, FunctionToolApiSelectSchema, FunctionToolApiUpdateSchema, FunctionToolConfigSchema, FunctionToolInsertSchema, FunctionToolListResponse, FunctionToolResponse, FunctionToolSelectSchema, FunctionToolUpdateSchema, FunctionUpdateSchema, HeadersScopeSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageListResponse, MessageResponse, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, OAuthCallbackQuerySchema, OAuthLoginQuerySchema, PaginationQueryParamsSchema, PaginationSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, RelatedAgentInfoSchema, RemovedResponseSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, SubAgentApiInsertSchema, SubAgentApiSelectSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentListResponse, SubAgentArtifactComponentResponse, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentListResponse, SubAgentDataComponentResponse, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdateSchema, SubAgentExternalAgentRelationApiInsertSchema, SubAgentExternalAgentRelationApiSelectSchema, SubAgentExternalAgentRelationApiUpdateSchema, SubAgentExternalAgentRelationInsertSchema, SubAgentExternalAgentRelationSelectSchema, SubAgentExternalAgentRelationUpdateSchema, SubAgentInsertSchema, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentSelectSchema, SubAgentStopWhenSchema, SubAgentTeamAgentRelationApiInsertSchema, SubAgentTeamAgentRelationApiSelectSchema, SubAgentTeamAgentRelationApiUpdateSchema, SubAgentTeamAgentRelationInsertSchema, SubAgentTeamAgentRelationSelectSchema, SubAgentTeamAgentRelationUpdateSchema, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsertSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdateSchema, SubAgentUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TeamAgentSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolListResponse, ToolResponse, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, canDelegateToExternalAgentSchema, canDelegateToTeamAgentSchema, resourceIdSchema, schemaValidationDefaults, validatePropsAsJsonSchema } from './chunk-SLRVWIQY.js';
|
|
9
8
|
import { schema_exports, contextConfigs, externalAgents, functions, functionTools, subAgentFunctionToolRelations, subAgentExternalAgentRelations, subAgents, subAgentRelations, subAgentToolRelations, tools, subAgentTeamAgentRelations, agents, credentialReferences, subAgentDataComponents, subAgentArtifactComponents, dataComponents, artifactComponents, projects, apiKeys, contextCache, conversations, messages, ledgerArtifacts, tasks, taskRelations } from './chunk-T5TTDZ6L.js';
|
|
10
9
|
export { agentRelations, agentToolRelationsRelations, agents, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, ledgerArtifacts, ledgerArtifactsRelations, messages, messagesRelations, projects, projectsRelations, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentExternalAgentRelations, subAgentExternalAgentRelationsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentTeamAgentRelations, subAgentTeamAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from './chunk-T5TTDZ6L.js';
|
|
11
|
-
import { CredentialStoreType, MCPServerType, MCPTransportType } from './chunk-YFHT5M2R.js';
|
|
12
|
-
export { CredentialStoreType, MCPServerType, MCPTransportType, TOOL_STATUS_VALUES, VALID_RELATION_TYPES } from './chunk-YFHT5M2R.js';
|
|
13
10
|
import { getLogger, convertZodToJsonSchema } from './chunk-YECQCT5N.js';
|
|
14
11
|
export { PinoLogger, convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, getLogger, isZodSchema, loggerFactory, preview } from './chunk-YECQCT5N.js';
|
|
12
|
+
export { TaskState } from './chunk-H2F72PDA.js';
|
|
13
|
+
import { CredentialStoreType, MCPServerType, MCPTransportType } from './chunk-YFHT5M2R.js';
|
|
14
|
+
export { CredentialStoreType, MCPServerType, MCPTransportType, TOOL_STATUS_VALUES, VALID_RELATION_TYPES } from './chunk-YFHT5M2R.js';
|
|
15
15
|
import { __commonJS, __require, __publicField } from './chunk-E6R6PML7.js';
|
|
16
|
-
import { z
|
|
16
|
+
import { z } from 'zod';
|
|
17
|
+
import fs from 'fs';
|
|
18
|
+
import os from 'os';
|
|
19
|
+
import path from 'path';
|
|
20
|
+
import dotenv from 'dotenv';
|
|
21
|
+
import { expand } from 'dotenv-expand';
|
|
22
|
+
import { findUpSync } from 'find-up';
|
|
17
23
|
import jmespath from 'jmespath';
|
|
18
24
|
import { createClient } from '@libsql/client';
|
|
19
25
|
import { drizzle } from 'drizzle-orm/libsql';
|
|
@@ -21,7 +27,7 @@ import { and, eq, desc, sql, count, asc, isNotNull, inArray, not } from 'drizzle
|
|
|
21
27
|
import { customAlphabet, nanoid } from 'nanoid';
|
|
22
28
|
import crypto, { scrypt, randomBytes, timingSafeEqual } from 'crypto';
|
|
23
29
|
import { promisify } from 'util';
|
|
24
|
-
import { z } from '@hono/zod-openapi';
|
|
30
|
+
import { z as z$1 } from '@hono/zod-openapi';
|
|
25
31
|
import { HTTPException } from 'hono/http-exception';
|
|
26
32
|
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
|
|
27
33
|
import { SSEClientTransport } from '@modelcontextprotocol/sdk/client/sse.js';
|
|
@@ -32,12 +38,6 @@ import { tool } from 'ai';
|
|
|
32
38
|
import { asyncExitHook, gracefulExit } from 'exit-hook';
|
|
33
39
|
import { match } from 'ts-pattern';
|
|
34
40
|
import { SignJWT, jwtVerify } from 'jose';
|
|
35
|
-
import fs from 'fs';
|
|
36
|
-
import os from 'os';
|
|
37
|
-
import path from 'path';
|
|
38
|
-
import dotenv from 'dotenv';
|
|
39
|
-
import { expand } from 'dotenv-expand';
|
|
40
|
-
import { findUpSync } from 'find-up';
|
|
41
41
|
import { trace, SpanStatusCode } from '@opentelemetry/api';
|
|
42
42
|
import Ajv from 'ajv';
|
|
43
43
|
import { Nango } from '@nangohq/node';
|
|
@@ -212876,6 +212876,145 @@ async function apiFetch(url, options = {}) {
|
|
|
212876
212876
|
headers: headers2
|
|
212877
212877
|
});
|
|
212878
212878
|
}
|
|
212879
|
+
var loadEnvironmentFiles = () => {
|
|
212880
|
+
const environmentFiles = [];
|
|
212881
|
+
const currentEnv = path.resolve(process.cwd(), ".env");
|
|
212882
|
+
if (fs.existsSync(currentEnv)) {
|
|
212883
|
+
environmentFiles.push(currentEnv);
|
|
212884
|
+
}
|
|
212885
|
+
const rootEnv = findUpSync(".env", { cwd: path.dirname(process.cwd()) });
|
|
212886
|
+
if (rootEnv) {
|
|
212887
|
+
if (rootEnv !== currentEnv) {
|
|
212888
|
+
environmentFiles.push(rootEnv);
|
|
212889
|
+
}
|
|
212890
|
+
}
|
|
212891
|
+
const userConfigPath = path.join(os.homedir(), ".inkeep", "config");
|
|
212892
|
+
if (fs.existsSync(userConfigPath)) {
|
|
212893
|
+
dotenv.config({ path: userConfigPath, override: true, quiet: true });
|
|
212894
|
+
}
|
|
212895
|
+
if (environmentFiles.length > 0) {
|
|
212896
|
+
dotenv.config({
|
|
212897
|
+
path: environmentFiles,
|
|
212898
|
+
override: false,
|
|
212899
|
+
quiet: true
|
|
212900
|
+
});
|
|
212901
|
+
expand({ processEnv: process.env });
|
|
212902
|
+
}
|
|
212903
|
+
};
|
|
212904
|
+
loadEnvironmentFiles();
|
|
212905
|
+
var envSchema = z.object({
|
|
212906
|
+
ENVIRONMENT: z.enum(["development", "production", "pentest", "test"]).optional(),
|
|
212907
|
+
DB_FILE_NAME: z.string().optional(),
|
|
212908
|
+
TURSO_DATABASE_URL: z.string().optional(),
|
|
212909
|
+
TURSO_AUTH_TOKEN: z.string().optional(),
|
|
212910
|
+
INKEEP_AGENTS_JWT_SIGNING_SECRET: z.string().min(32, "INKEEP_AGENTS_JWT_SIGNING_SECRET must be at least 32 characters").optional()
|
|
212911
|
+
});
|
|
212912
|
+
var parseEnv = () => {
|
|
212913
|
+
try {
|
|
212914
|
+
const parsedEnv = envSchema.parse(process.env);
|
|
212915
|
+
return parsedEnv;
|
|
212916
|
+
} catch (error) {
|
|
212917
|
+
if (error instanceof z.ZodError) {
|
|
212918
|
+
const missingVars = error.issues.map((issue) => issue.path.join("."));
|
|
212919
|
+
throw new Error(
|
|
212920
|
+
`\u274C Invalid environment variables: ${missingVars.join(", ")}
|
|
212921
|
+
${error.message}`
|
|
212922
|
+
);
|
|
212923
|
+
}
|
|
212924
|
+
throw error;
|
|
212925
|
+
}
|
|
212926
|
+
};
|
|
212927
|
+
var env = parseEnv();
|
|
212928
|
+
|
|
212929
|
+
// src/constants/execution-limits-shared/defaults.ts
|
|
212930
|
+
var executionLimitsSharedDefaults = {
|
|
212931
|
+
// MCP Tool Connection and Retry Behavior
|
|
212932
|
+
// Model Context Protocol (MCP) enables agents to connect to external tools and services.
|
|
212933
|
+
// These constants control connection timeouts and retry strategy with exponential backoff.
|
|
212934
|
+
// CONNECTION_TIMEOUT_MS: Maximum wait time for initial MCP server connection
|
|
212935
|
+
// MAX_RETRIES: Maximum number of connection retry attempts before failing
|
|
212936
|
+
// INITIAL_RECONNECTION_DELAY_MS: Starting delay between retry attempts
|
|
212937
|
+
// MAX_RECONNECTION_DELAY_MS: Maximum delay between retry attempts (after exponential growth)
|
|
212938
|
+
// RECONNECTION_DELAY_GROWTH_FACTOR: Multiplier applied to delay after each failed retry (exponential backoff)
|
|
212939
|
+
MCP_TOOL_CONNECTION_TIMEOUT_MS: 3e3,
|
|
212940
|
+
// 3 seconds
|
|
212941
|
+
MCP_TOOL_MAX_RETRIES: 3,
|
|
212942
|
+
MCP_TOOL_MAX_RECONNECTION_DELAY_MS: 3e4,
|
|
212943
|
+
// 30 seconds
|
|
212944
|
+
MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS: 1e3,
|
|
212945
|
+
// 1 second
|
|
212946
|
+
MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR: 1.5,
|
|
212947
|
+
// Conversation History Context Window
|
|
212948
|
+
// CONVERSATION_HISTORY_DEFAULT_LIMIT: Default number of recent messages to retrieve from conversation history.
|
|
212949
|
+
// Used when fetching conversation context for status updates and other operations.
|
|
212950
|
+
CONVERSATION_HISTORY_DEFAULT_LIMIT: 50,
|
|
212951
|
+
// CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT: Maximum number of tokens from previous conversation messages
|
|
212952
|
+
// to include in the LLM prompt. Prevents excessive token usage while maintaining relevant conversation context.
|
|
212953
|
+
// Messages exceeding this limit are truncated from the beginning of the conversation.
|
|
212954
|
+
CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT: 4e3
|
|
212955
|
+
};
|
|
212956
|
+
|
|
212957
|
+
// src/constants/execution-limits-shared/index.ts
|
|
212958
|
+
loadEnvironmentFiles();
|
|
212959
|
+
var constantsSchema = z.object(
|
|
212960
|
+
Object.fromEntries(
|
|
212961
|
+
Object.keys(executionLimitsSharedDefaults).map((key) => [
|
|
212962
|
+
`AGENTS_${key}`,
|
|
212963
|
+
z.coerce.number().optional()
|
|
212964
|
+
])
|
|
212965
|
+
)
|
|
212966
|
+
);
|
|
212967
|
+
var parseConstants = () => {
|
|
212968
|
+
const envOverrides = constantsSchema.parse(process.env);
|
|
212969
|
+
return Object.fromEntries(
|
|
212970
|
+
Object.entries(executionLimitsSharedDefaults).map(([key, defaultValue]) => [
|
|
212971
|
+
key,
|
|
212972
|
+
envOverrides[`AGENTS_${key}`] ?? defaultValue
|
|
212973
|
+
])
|
|
212974
|
+
);
|
|
212975
|
+
};
|
|
212976
|
+
var constants = parseConstants();
|
|
212977
|
+
var {
|
|
212978
|
+
MCP_TOOL_CONNECTION_TIMEOUT_MS,
|
|
212979
|
+
MCP_TOOL_MAX_RETRIES,
|
|
212980
|
+
MCP_TOOL_MAX_RECONNECTION_DELAY_MS,
|
|
212981
|
+
MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS,
|
|
212982
|
+
MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR,
|
|
212983
|
+
CONVERSATION_HISTORY_DEFAULT_LIMIT,
|
|
212984
|
+
CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT
|
|
212985
|
+
} = constants;
|
|
212986
|
+
loadEnvironmentFiles();
|
|
212987
|
+
var constantsSchema2 = z.object(
|
|
212988
|
+
Object.fromEntries(
|
|
212989
|
+
Object.keys(schemaValidationDefaults).map((key) => [
|
|
212990
|
+
`AGENTS_${key}`,
|
|
212991
|
+
z.coerce.number().optional()
|
|
212992
|
+
])
|
|
212993
|
+
)
|
|
212994
|
+
);
|
|
212995
|
+
var parseConstants2 = () => {
|
|
212996
|
+
const envOverrides = constantsSchema2.parse(process.env);
|
|
212997
|
+
return Object.fromEntries(
|
|
212998
|
+
Object.entries(schemaValidationDefaults).map(([key, defaultValue]) => [
|
|
212999
|
+
key,
|
|
213000
|
+
envOverrides[`AGENTS_${key}`] ?? defaultValue
|
|
213001
|
+
])
|
|
213002
|
+
);
|
|
213003
|
+
};
|
|
213004
|
+
var constants2 = parseConstants2();
|
|
213005
|
+
var {
|
|
213006
|
+
AGENT_EXECUTION_TRANSFER_COUNT_MIN,
|
|
213007
|
+
AGENT_EXECUTION_TRANSFER_COUNT_MAX,
|
|
213008
|
+
AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT,
|
|
213009
|
+
SUB_AGENT_TURN_GENERATION_STEPS_MIN,
|
|
213010
|
+
SUB_AGENT_TURN_GENERATION_STEPS_MAX,
|
|
213011
|
+
SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT,
|
|
213012
|
+
STATUS_UPDATE_MAX_NUM_EVENTS,
|
|
213013
|
+
STATUS_UPDATE_MAX_INTERVAL_SECONDS,
|
|
213014
|
+
VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS,
|
|
213015
|
+
VALIDATION_AGENT_PROMPT_MAX_CHARS,
|
|
213016
|
+
CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT
|
|
213017
|
+
} = constants2;
|
|
212879
213018
|
var logger = getLogger("context-config");
|
|
212880
213019
|
var HeadersSchemaBuilder = class {
|
|
212881
213020
|
constructor(options) {
|
|
@@ -213028,7 +213167,7 @@ var ContextConfigBuilder = class {
|
|
|
213028
213167
|
});
|
|
213029
213168
|
return { valid: true, errors: [] };
|
|
213030
213169
|
} catch (error) {
|
|
213031
|
-
if (error instanceof z
|
|
213170
|
+
if (error instanceof z.ZodError) {
|
|
213032
213171
|
return {
|
|
213033
213172
|
valid: false,
|
|
213034
213173
|
errors: error.issues.map((e) => `${e.path.join(".")}: ${e.message}`)
|
|
@@ -215427,7 +215566,7 @@ function extractPublicId(key) {
|
|
|
215427
215566
|
function maskApiKey(keyPrefix) {
|
|
215428
215567
|
return `${keyPrefix}...`;
|
|
215429
215568
|
}
|
|
215430
|
-
var ErrorCode = z.enum([
|
|
215569
|
+
var ErrorCode = z$1.enum([
|
|
215431
215570
|
"bad_request",
|
|
215432
215571
|
"unauthorized",
|
|
215433
215572
|
"forbidden",
|
|
@@ -215446,28 +215585,28 @@ var errorCodeToHttpStatus = {
|
|
|
215446
215585
|
internal_server_error: 500
|
|
215447
215586
|
};
|
|
215448
215587
|
var ERROR_DOCS_BASE_URL = "https://docs.inkeep.com/agents-api/errors";
|
|
215449
|
-
var problemDetailsSchema = z.object({
|
|
215588
|
+
var problemDetailsSchema = z$1.object({
|
|
215450
215589
|
// type: z.string().url().openapi({
|
|
215451
215590
|
// description: "A URI reference that identifies the problem type.",
|
|
215452
215591
|
// example: `${ERROR_DOCS_BASE_URL}#not-found`,
|
|
215453
215592
|
// }),
|
|
215454
|
-
title: z.string().openapi({
|
|
215593
|
+
title: z$1.string().openapi({
|
|
215455
215594
|
description: "A short, human-readable summary of the problem type.",
|
|
215456
215595
|
example: "Resource Not Found"
|
|
215457
215596
|
}),
|
|
215458
|
-
status: z.number().int().openapi({
|
|
215597
|
+
status: z$1.number().int().openapi({
|
|
215459
215598
|
description: "The HTTP status code.",
|
|
215460
215599
|
example: 404
|
|
215461
215600
|
}),
|
|
215462
|
-
detail: z.string().openapi({
|
|
215601
|
+
detail: z$1.string().openapi({
|
|
215463
215602
|
description: "A human-readable explanation specific to this occurrence of the problem.",
|
|
215464
215603
|
example: "The requested resource was not found."
|
|
215465
215604
|
}),
|
|
215466
|
-
instance: z.string().optional().openapi({
|
|
215605
|
+
instance: z$1.string().optional().openapi({
|
|
215467
215606
|
description: "A URI reference that identifies the specific occurrence of the problem.",
|
|
215468
215607
|
example: "/conversations/123"
|
|
215469
215608
|
}),
|
|
215470
|
-
requestId: z.string().optional().openapi({
|
|
215609
|
+
requestId: z$1.string().optional().openapi({
|
|
215471
215610
|
description: "A unique identifier for the request, useful for troubleshooting.",
|
|
215472
215611
|
example: "req_1234567890"
|
|
215473
215612
|
}),
|
|
@@ -215476,13 +215615,13 @@ var problemDetailsSchema = z.object({
|
|
|
215476
215615
|
example: "not_found"
|
|
215477
215616
|
})
|
|
215478
215617
|
}).openapi("ProblemDetails");
|
|
215479
|
-
var errorResponseSchema = z.object({
|
|
215480
|
-
error: z.object({
|
|
215618
|
+
var errorResponseSchema = z$1.object({
|
|
215619
|
+
error: z$1.object({
|
|
215481
215620
|
code: ErrorCode.openapi({
|
|
215482
215621
|
description: "A short code indicating the error code returned.",
|
|
215483
215622
|
example: "not_found"
|
|
215484
215623
|
}),
|
|
215485
|
-
message: z.string().openapi({
|
|
215624
|
+
message: z$1.string().openapi({
|
|
215486
215625
|
description: "A human readable error message.",
|
|
215487
215626
|
example: "The requested resource was not found."
|
|
215488
215627
|
})
|
|
@@ -215620,15 +215759,15 @@ var errorSchemaFactory = (code, description) => ({
|
|
|
215620
215759
|
content: {
|
|
215621
215760
|
"application/problem+json": {
|
|
215622
215761
|
schema: problemDetailsSchema.extend({
|
|
215623
|
-
code: z.literal(code).openapi({
|
|
215762
|
+
code: z$1.literal(code).openapi({
|
|
215624
215763
|
description: "A short code indicating the error code returned.",
|
|
215625
215764
|
example: code
|
|
215626
215765
|
}),
|
|
215627
|
-
detail: z.string().openapi({
|
|
215766
|
+
detail: z$1.string().openapi({
|
|
215628
215767
|
description: "A detailed explanation specific to this occurrence of the problem, providing context and specifics about what went wrong.",
|
|
215629
215768
|
example: description
|
|
215630
215769
|
}),
|
|
215631
|
-
title: z.string().openapi({
|
|
215770
|
+
title: z$1.string().openapi({
|
|
215632
215771
|
description: "A short, human-readable summary of the problem type.",
|
|
215633
215772
|
example: getTitleFromCode(code)
|
|
215634
215773
|
}),
|
|
@@ -215636,16 +215775,16 @@ var errorSchemaFactory = (code, description) => ({
|
|
|
215636
215775
|
// description: "A URI reference that identifies the problem type.",
|
|
215637
215776
|
// example: `${ERROR_DOCS_BASE_URL}#${code}`,
|
|
215638
215777
|
// }),
|
|
215639
|
-
status: z.literal(errorCodeToHttpStatus[code]).openapi({
|
|
215778
|
+
status: z$1.literal(errorCodeToHttpStatus[code]).openapi({
|
|
215640
215779
|
description: "The HTTP status code.",
|
|
215641
215780
|
example: errorCodeToHttpStatus[code]
|
|
215642
215781
|
}),
|
|
215643
|
-
error: z.object({
|
|
215644
|
-
code: z.literal(code).openapi({
|
|
215782
|
+
error: z$1.object({
|
|
215783
|
+
code: z$1.literal(code).openapi({
|
|
215645
215784
|
description: "A short code indicating the error code returned.",
|
|
215646
215785
|
example: code
|
|
215647
215786
|
}),
|
|
215648
|
-
message: z.string().openapi({
|
|
215787
|
+
message: z$1.string().openapi({
|
|
215649
215788
|
description: "A concise error message suitable for display to end users. May be truncated if the full detail is long.",
|
|
215650
215789
|
example: description.length > 100 ? `${description.substring(0, 97)}...` : description
|
|
215651
215790
|
})
|
|
@@ -215764,15 +215903,15 @@ var McpClient = class {
|
|
|
215764
215903
|
this.transport = new StreamableHTTPClientTransport(new URL(urlString), {
|
|
215765
215904
|
requestInit: mergedRequestInit,
|
|
215766
215905
|
reconnectionOptions: {
|
|
215767
|
-
maxRetries:
|
|
215768
|
-
maxReconnectionDelay:
|
|
215769
|
-
initialReconnectionDelay:
|
|
215770
|
-
reconnectionDelayGrowFactor:
|
|
215906
|
+
maxRetries: MCP_TOOL_MAX_RETRIES,
|
|
215907
|
+
maxReconnectionDelay: MCP_TOOL_MAX_RECONNECTION_DELAY_MS,
|
|
215908
|
+
initialReconnectionDelay: MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS,
|
|
215909
|
+
reconnectionDelayGrowFactor: MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR,
|
|
215771
215910
|
...config.reconnectionOptions
|
|
215772
215911
|
},
|
|
215773
215912
|
sessionId: config.sessionId
|
|
215774
215913
|
});
|
|
215775
|
-
await this.client.connect(this.transport, { timeout:
|
|
215914
|
+
await this.client.connect(this.transport, { timeout: MCP_TOOL_CONNECTION_TIMEOUT_MS });
|
|
215776
215915
|
}
|
|
215777
215916
|
async disconnect() {
|
|
215778
215917
|
if (!this.transport) {
|
|
@@ -215823,7 +215962,7 @@ var McpClient = class {
|
|
|
215823
215962
|
try {
|
|
215824
215963
|
const createZodSchema = (inputSchema) => {
|
|
215825
215964
|
if (!inputSchema || !inputSchema.properties) {
|
|
215826
|
-
return z
|
|
215965
|
+
return z.object({});
|
|
215827
215966
|
}
|
|
215828
215967
|
const zodProperties = {};
|
|
215829
215968
|
for (const [key, prop] of Object.entries(inputSchema.properties)) {
|
|
@@ -215831,19 +215970,19 @@ var McpClient = class {
|
|
|
215831
215970
|
let zodType;
|
|
215832
215971
|
switch (propDef.type) {
|
|
215833
215972
|
case "string":
|
|
215834
|
-
zodType = z
|
|
215973
|
+
zodType = z.string();
|
|
215835
215974
|
break;
|
|
215836
215975
|
case "number":
|
|
215837
|
-
zodType = z
|
|
215976
|
+
zodType = z.number();
|
|
215838
215977
|
break;
|
|
215839
215978
|
case "boolean":
|
|
215840
|
-
zodType = z
|
|
215979
|
+
zodType = z.boolean();
|
|
215841
215980
|
break;
|
|
215842
215981
|
case "array":
|
|
215843
|
-
zodType = z
|
|
215982
|
+
zodType = z.array(z.any());
|
|
215844
215983
|
break;
|
|
215845
215984
|
default:
|
|
215846
|
-
zodType = z
|
|
215985
|
+
zodType = z.any();
|
|
215847
215986
|
}
|
|
215848
215987
|
if (propDef.description) {
|
|
215849
215988
|
zodType = zodType.describe(propDef.description);
|
|
@@ -215854,7 +215993,7 @@ var McpClient = class {
|
|
|
215854
215993
|
}
|
|
215855
215994
|
zodProperties[key] = zodType;
|
|
215856
215995
|
}
|
|
215857
|
-
return z
|
|
215996
|
+
return z.object(zodProperties);
|
|
215858
215997
|
};
|
|
215859
215998
|
const schema = createZodSchema(def.inputSchema);
|
|
215860
215999
|
const createdTool = tool({
|
|
@@ -215880,57 +216019,6 @@ var McpClient = class {
|
|
|
215880
216019
|
return results;
|
|
215881
216020
|
}
|
|
215882
216021
|
};
|
|
215883
|
-
var loadEnvironmentFiles = () => {
|
|
215884
|
-
const environmentFiles = [];
|
|
215885
|
-
const currentEnv = path.resolve(process.cwd(), ".env");
|
|
215886
|
-
if (fs.existsSync(currentEnv)) {
|
|
215887
|
-
environmentFiles.push(currentEnv);
|
|
215888
|
-
}
|
|
215889
|
-
const rootEnv = findUpSync(".env", { cwd: path.dirname(process.cwd()) });
|
|
215890
|
-
if (rootEnv) {
|
|
215891
|
-
if (rootEnv !== currentEnv) {
|
|
215892
|
-
environmentFiles.push(rootEnv);
|
|
215893
|
-
}
|
|
215894
|
-
}
|
|
215895
|
-
const userConfigPath = path.join(os.homedir(), ".inkeep", "config");
|
|
215896
|
-
if (fs.existsSync(userConfigPath)) {
|
|
215897
|
-
dotenv.config({ path: userConfigPath, override: true, quiet: true });
|
|
215898
|
-
}
|
|
215899
|
-
if (environmentFiles.length > 0) {
|
|
215900
|
-
dotenv.config({
|
|
215901
|
-
path: environmentFiles,
|
|
215902
|
-
override: false,
|
|
215903
|
-
quiet: true
|
|
215904
|
-
});
|
|
215905
|
-
expand({ processEnv: process.env });
|
|
215906
|
-
}
|
|
215907
|
-
};
|
|
215908
|
-
loadEnvironmentFiles();
|
|
215909
|
-
var envSchema = z$1.object({
|
|
215910
|
-
ENVIRONMENT: z$1.enum(["development", "production", "pentest", "test"]).optional(),
|
|
215911
|
-
DB_FILE_NAME: z$1.string().optional(),
|
|
215912
|
-
TURSO_DATABASE_URL: z$1.string().optional(),
|
|
215913
|
-
TURSO_AUTH_TOKEN: z$1.string().optional(),
|
|
215914
|
-
INKEEP_AGENTS_JWT_SIGNING_SECRET: z$1.string().min(32, "INKEEP_AGENTS_JWT_SIGNING_SECRET must be at least 32 characters").optional()
|
|
215915
|
-
});
|
|
215916
|
-
var parseEnv = () => {
|
|
215917
|
-
try {
|
|
215918
|
-
const parsedEnv = envSchema.parse(process.env);
|
|
215919
|
-
return parsedEnv;
|
|
215920
|
-
} catch (error) {
|
|
215921
|
-
if (error instanceof z$1.ZodError) {
|
|
215922
|
-
const missingVars = error.issues.map((issue) => issue.path.join("."));
|
|
215923
|
-
throw new Error(
|
|
215924
|
-
`\u274C Invalid environment variables: ${missingVars.join(", ")}
|
|
215925
|
-
${error.message}`
|
|
215926
|
-
);
|
|
215927
|
-
}
|
|
215928
|
-
throw error;
|
|
215929
|
-
}
|
|
215930
|
-
};
|
|
215931
|
-
var env = parseEnv();
|
|
215932
|
-
|
|
215933
|
-
// src/utils/service-token-auth.ts
|
|
215934
216022
|
var logger5 = getLogger("service-token-auth");
|
|
215935
216023
|
function getJwtSecret() {
|
|
215936
216024
|
const secret = env.INKEEP_AGENTS_JWT_SIGNING_SECRET;
|
|
@@ -223053,10 +223141,10 @@ var InMemoryCredentialStore = class {
|
|
|
223053
223141
|
}
|
|
223054
223142
|
};
|
|
223055
223143
|
var logger13 = getLogger("nango-credential-store");
|
|
223056
|
-
var CredentialKeySchema = z
|
|
223057
|
-
connectionId: z
|
|
223058
|
-
providerConfigKey: z
|
|
223059
|
-
integrationDisplayName: z
|
|
223144
|
+
var CredentialKeySchema = z.object({
|
|
223145
|
+
connectionId: z.string().min(1, "connectionId must be a non-empty string"),
|
|
223146
|
+
providerConfigKey: z.string().min(1, "providerConfigKey must be a non-empty string"),
|
|
223147
|
+
integrationDisplayName: z.string().nullish()
|
|
223060
223148
|
});
|
|
223061
223149
|
function parseCredentialKey(key) {
|
|
223062
223150
|
try {
|
|
@@ -223482,4 +223570,4 @@ typescript/lib/typescript.js:
|
|
|
223482
223570
|
***************************************************************************** *)
|
|
223483
223571
|
*/
|
|
223484
223572
|
|
|
223485
|
-
export { ContextCache, ContextConfigBuilder, ContextFetcher, ContextResolver, CredentialStoreRegistry, CredentialStuffer, ERROR_DOCS_BASE_URL, ErrorCode, HTTP_REQUEST_PARTS, InMemoryCredentialStore, KeyChainStore, McpClient, NangoCredentialStore, TemplateEngine, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentExternalAgentRelation, createSubAgentRelation, createSubAgentTeamAgentRelation, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentExternalAgentRelation, deleteSubAgentExternalAgentRelationsByAgent, deleteSubAgentExternalAgentRelationsBySubAgent, deleteSubAgentRelation, deleteSubAgentTeamAgentRelation, deleteSubAgentTeamAgentRelationsByAgent, deleteSubAgentTeamAgentRelationsBySubAgent, deleteTool, determineContextTrigger, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, generateId, generateServiceToken, getActiveAgentForConversation, getAgentById, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithResources, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentsForSubAgent, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getLedgerArtifacts, getLedgerArtifactsByContext, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getRequestExecutionContext, getSubAgentById, getSubAgentExternalAgentRelationById, getSubAgentExternalAgentRelationByParams, getSubAgentExternalAgentRelations, getSubAgentExternalAgentRelationsByAgent, getSubAgentExternalAgentRelationsByExternalAgent, getSubAgentRelationsByTarget, getSubAgentTeamAgentRelationById, getSubAgentTeamAgentRelationByParams, getSubAgentTeamAgentRelations, getSubAgentTeamAgentRelationsByAgent, getSubAgentTeamAgentRelationsByTeamAgent, getSubAgentsByIds, getSubAgentsForExternalAgent, getSubAgentsForTeamAgent, getTask, getTeamAgentsForSubAgent, getToolById, getToolsForAgent, getTracer, getVisibleMessages, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listMessages, listProjects, listProjectsPaginated, listSubAgentExternalAgentRelations, listSubAgentTeamAgentRelations, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateMessage, updateProject, updateSubAgent, updateSubAgentExternalAgentRelation, updateSubAgentFunctionToolRelation, updateSubAgentTeamAgentRelation, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertSubAgent, upsertSubAgentExternalAgentRelation, upsertSubAgentFunctionToolRelation, upsertSubAgentRelation, upsertSubAgentTeamAgentRelation, upsertSubAgentToolRelation, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateHeaders, validateHttpRequestHeaders, validateProjectExists, validateSubAgent, validateTargetAgent, validateTenantId, validationHelper, verifyAuthorizationHeader, verifyServiceToken, withProjectValidation };
|
|
223573
|
+
export { AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, CONVERSATION_HISTORY_DEFAULT_LIMIT, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT, ContextCache, ContextConfigBuilder, ContextFetcher, ContextResolver, CredentialStoreRegistry, CredentialStuffer, ERROR_DOCS_BASE_URL, ErrorCode, HTTP_REQUEST_PARTS, InMemoryCredentialStore, KeyChainStore, MCP_TOOL_CONNECTION_TIMEOUT_MS, MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RETRIES, MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR, McpClient, NangoCredentialStore, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, TemplateEngine, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentExternalAgentRelation, createSubAgentRelation, createSubAgentTeamAgentRelation, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentExternalAgentRelation, deleteSubAgentExternalAgentRelationsByAgent, deleteSubAgentExternalAgentRelationsBySubAgent, deleteSubAgentRelation, deleteSubAgentTeamAgentRelation, deleteSubAgentTeamAgentRelationsByAgent, deleteSubAgentTeamAgentRelationsBySubAgent, deleteTool, determineContextTrigger, errorResponseSchema, errorSchemaFactory, executionLimitsSharedDefaults, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, generateId, generateServiceToken, getActiveAgentForConversation, getAgentById, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithResources, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentsForSubAgent, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getLedgerArtifacts, getLedgerArtifactsByContext, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getRequestExecutionContext, getSubAgentById, getSubAgentExternalAgentRelationById, getSubAgentExternalAgentRelationByParams, getSubAgentExternalAgentRelations, getSubAgentExternalAgentRelationsByAgent, getSubAgentExternalAgentRelationsByExternalAgent, getSubAgentRelationsByTarget, getSubAgentTeamAgentRelationById, getSubAgentTeamAgentRelationByParams, getSubAgentTeamAgentRelations, getSubAgentTeamAgentRelationsByAgent, getSubAgentTeamAgentRelationsByTeamAgent, getSubAgentsByIds, getSubAgentsForExternalAgent, getSubAgentsForTeamAgent, getTask, getTeamAgentsForSubAgent, getToolById, getToolsForAgent, getTracer, getVisibleMessages, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listMessages, listProjects, listProjectsPaginated, listSubAgentExternalAgentRelations, listSubAgentTeamAgentRelations, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateMessage, updateProject, updateSubAgent, updateSubAgentExternalAgentRelation, updateSubAgentFunctionToolRelation, updateSubAgentTeamAgentRelation, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertSubAgent, upsertSubAgentExternalAgentRelation, upsertSubAgentFunctionToolRelation, upsertSubAgentRelation, upsertSubAgentTeamAgentRelation, upsertSubAgentToolRelation, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateHeaders, validateHttpRequestHeaders, validateProjectExists, validateSubAgent, validateTargetAgent, validateTenantId, validationHelper, verifyAuthorizationHeader, verifyServiceToken, withProjectValidation };
|
|
@@ -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 { l as ContextFetchDefinition, C as ConversationHistoryConfig, T as TaskMetadataConfig, m as ToolMcpConfig, n as ToolServerCapabilities, o as ConversationMetadata, p as MessageContent, q as MessageMetadata, P as Part } from './utility-
|
|
3
|
+
import { l as ContextFetchDefinition, C as ConversationHistoryConfig, T as TaskMetadataConfig, m as ToolMcpConfig, n as ToolServerCapabilities, o as ConversationMetadata, p as MessageContent, q as MessageMetadata, P as Part } from './utility-DNsYIxBh.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 { l as ContextFetchDefinition, C as ConversationHistoryConfig, T as TaskMetadataConfig, m as ToolMcpConfig, n as ToolServerCapabilities, o as ConversationMetadata, p as MessageContent, q as MessageMetadata, P as Part } from './utility-
|
|
3
|
+
import { l as ContextFetchDefinition, C as ConversationHistoryConfig, T as TaskMetadataConfig, m as ToolMcpConfig, n as ToolServerCapabilities, o as ConversationMetadata, p as MessageContent, q as MessageMetadata, P as Part } from './utility-DNsYIxBh.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 { h as CredentialStoreType } from '../utility-
|
|
2
|
-
export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bV as AgentApiInsert, bU as AgentApiSelect, bW as AgentApiUpdate, aH as AgentCapabilities, aV as AgentCard, dx as AgentConversationHistoryConfig, y as AgentInsert, aI as AgentProvider, w as AgentScopeConfig, B as AgentSelect, aJ as AgentSkill, z as AgentUpdate, cP as AllAgentSelect, cT as ApiKeyApiCreationResponse, cR as ApiKeyApiInsert, cQ as ApiKeyApiSelect, cS as ApiKeyApiUpdate, I as ApiKeyCreateResult, E as ApiKeyInsert, D as ApiKeySelect, G as ApiKeyUpdate, a9 as Artifact, cE as ArtifactComponentApiInsert, cD as ArtifactComponentApiSelect, cF as ArtifactComponentApiUpdate, K as ArtifactComponentInsert, J as ArtifactComponentSelect, L as ArtifactComponentUpdate, aO as AuthorizationCodeOAuthFlow, dg as CanDelegateToExternalAgent, df as CanUseItem, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, b8 as ContentTypeNotSupportedError, cs as ContextCacheApiInsert, cr as ContextCacheApiSelect, ct as ContextCacheApiUpdate, dy as ContextCacheEntry, Q as ContextCacheInsert, O as ContextCacheSelect, cq as ContextCacheUpdate, cm as ContextConfigApiInsert, cl as ContextConfigApiSelect, cn as ContextConfigApiUpdate, R as ContextConfigInsert, s as ContextConfigSelect, U as ContextConfigUpdate, l as ContextFetchDefinition, cf as ConversationApiInsert, ce as ConversationApiSelect, cg as ConversationApiUpdate, C as ConversationHistoryConfig, W as ConversationInsert, o as ConversationMetadata, dw as ConversationScopeOptions, V as ConversationSelect, X as ConversationUpdate, H as CreateApiKeyParams, r as CredentialReferenceApiInsert, cU as CredentialReferenceApiSelect, cV as CredentialReferenceApiUpdate, $ as CredentialReferenceInsert, Y as CredentialReferenceSelect, a0 as CredentialReferenceUpdate, cv as DataComponentApiInsert, cu as DataComponentApiSelect, cw as DataComponentApiUpdate, a2 as DataComponentInsert, a1 as DataComponentSelect, a3 as DataComponentUpdate, aF as DataPart, ay as ExecutionContext, cN as ExternalAgentApiInsert, cM as ExternalAgentApiSelect, cO as ExternalAgentApiUpdate, a4 as ExternalAgentInsert, _ as ExternalAgentSelect, a5 as ExternalAgentUpdate, bT as ExternalSubAgentRelationApiInsert, bS as ExternalSubAgentRelationInsert, cp as FetchConfig, co as FetchDefinition, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, de as FullAgentAgentInsert, v as FullAgentDefinition, ae as FullProjectDefinition, a6 as FunctionApiInsert, cb as FunctionApiSelect, cc as FunctionApiUpdate, c9 as FunctionInsert, c8 as FunctionSelect, a7 as FunctionToolApiInsert, cd as FunctionToolApiSelect, a8 as FunctionToolApiUpdate, ca as FunctionUpdate, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, aQ as ImplicitOAuthFlow, b3 as InternalError, b9 as InvalidAgentResponseError, b2 as InvalidParamsError, b0 as InvalidRequestError, a$ as JSONParseError, bk as JSONRPCError, bm as JSONRPCErrorResponse, bi as JSONRPCMessage, bj as JSONRPCRequest, bl as JSONRPCResult, dc as LedgerArtifactApiInsert, db as LedgerArtifactApiSelect, dd as LedgerArtifactApiUpdate, d9 as LedgerArtifactInsert, aa as LedgerArtifactSelect, da as LedgerArtifactUpdate, dG as MCPServerType, t as MCPToolConfig, i as MCPTransportType, dz as McpAuthType, dA as McpServerAuth, dC as McpServerCapabilities, av as McpTool, dD as McpToolDefinition, dB as McpTransportConfig, aW as Message, cj as MessageApiInsert, ci as MessageApiSelect, ck as MessageApiUpdate, p as MessageContent, ac as MessageInsert, q as MessageMetadata, dr as MessageMode, bI as MessagePart, dq as MessageRole, ch as MessageSelect, bg as MessageSendConfiguration, bh as MessageSendParams, dp as MessageType, ad as MessageUpdate, ab as MessageVisibility, b1 as MethodNotFoundError, ds as Models, aS as OAuth2SecurityScheme, aN as OAuthFlows, aT as OpenIdConnectSecurityScheme, dm as Pagination, x as PaginationConfig, ah as PaginationResult, P as Part, az as PartBase, aR as PasswordOAuthFlow, dk as ProjectApiInsert, dj as ProjectApiSelect, dl as ProjectApiUpdate, af as ProjectInfo, aj as ProjectInsert, dt as ProjectModels, ai as ProjectResourceCounts, u as ProjectScopeConfig, ag as ProjectSelect, ak as ProjectUpdate, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, aU as SecurityScheme, aK as SecuritySchemeBase, bn as SendMessageRequest, bv as SendMessageResponse, bu as SendMessageSuccessResponse, bo as SendStreamingMessageRequest, bx as SendStreamingMessageResponse, bw as SendStreamingMessageSuccessResponse, br as SetTaskPushNotificationConfigRequest, bD as SetTaskPushNotificationConfigResponse, bC as SetTaskPushNotificationConfigSuccessResponse, dv as StatusComponent, du as StatusUpdateSettings, bL as SubAgentApiInsert, bK as SubAgentApiSelect, bM as SubAgentApiUpdate, cK as SubAgentArtifactComponentApiInsert, cJ as SubAgentArtifactComponentApiSelect, cL as SubAgentArtifactComponentApiUpdate, cH as SubAgentArtifactComponentInsert, cG as SubAgentArtifactComponentSelect, cI as SubAgentArtifactComponentUpdate, cB as SubAgentDataComponentApiInsert, cA as SubAgentDataComponentApiSelect, cC as SubAgentDataComponentApiUpdate, cy as SubAgentDataComponentInsert, cx as SubAgentDataComponentSelect, cz as SubAgentDataComponentUpdate, dh as SubAgentDefinition, d2 as SubAgentExternalAgentRelationApiInsert, d1 as SubAgentExternalAgentRelationApiSelect, d3 as SubAgentExternalAgentRelationApiUpdate, al as SubAgentExternalAgentRelationInsert, c$ as SubAgentExternalAgentRelationSelect, d0 as SubAgentExternalAgentRelationUpdate, ap as SubAgentInsert, bP as SubAgentRelationApiInsert, bO as SubAgentRelationApiSelect, bQ as SubAgentRelationApiUpdate, am as SubAgentRelationInsert, bR as SubAgentRelationQuery, bN as SubAgentRelationSelect, an as SubAgentRelationUpdate, N as SubAgentScopeConfig, ar as SubAgentSelect, d7 as SubAgentTeamAgentRelationApiInsert, d6 as SubAgentTeamAgentRelationApiSelect, d8 as SubAgentTeamAgentRelationApiUpdate, as as SubAgentTeamAgentRelationInsert, d4 as SubAgentTeamAgentRelationSelect, d5 as SubAgentTeamAgentRelationUpdate, cZ as SubAgentToolRelationApiInsert, cY as SubAgentToolRelationApiSelect, c_ as SubAgentToolRelationApiUpdate, cX as SubAgentToolRelationInsert, cW as SubAgentToolRelationSelect, ao as SubAgentToolRelationUpdate, aq as SubAgentUpdate, dn as SummaryEvent, dE as TOOL_STATUS_VALUES, aY as Task, bZ as TaskApiInsert, bY as TaskApiSelect, b_ as TaskApiUpdate, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, at as TaskInsert, T as TaskMetadataConfig, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c3 as TaskRelationApiInsert, c2 as TaskRelationApiSelect, c4 as TaskRelationApiUpdate, c0 as TaskRelationInsert, b$ as TaskRelationSelect, c1 as TaskRelationUpdate, bt as TaskResubscriptionRequest, au as TaskSelect, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bX as TaskUpdate, aA as TextPart, c6 as ToolApiInsert, c5 as ToolApiSelect, c7 as ToolApiUpdate, di as ToolDefinition, aw as ToolInsert, m as ToolMcpConfig, Z as ToolSelect, n as ToolServerCapabilities, ax as ToolUpdate, b7 as UnsupportedOperationError, dF as VALID_RELATION_TYPES } from '../utility-
|
|
1
|
+
import { h as CredentialStoreType } from '../utility-DNsYIxBh.cjs';
|
|
2
|
+
export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bV as AgentApiInsert, bU as AgentApiSelect, bW as AgentApiUpdate, aH as AgentCapabilities, aV as AgentCard, dx as AgentConversationHistoryConfig, y as AgentInsert, aI as AgentProvider, w as AgentScopeConfig, B as AgentSelect, aJ as AgentSkill, z as AgentUpdate, cP as AllAgentSelect, cT as ApiKeyApiCreationResponse, cR as ApiKeyApiInsert, cQ as ApiKeyApiSelect, cS as ApiKeyApiUpdate, I as ApiKeyCreateResult, E as ApiKeyInsert, D as ApiKeySelect, G as ApiKeyUpdate, a9 as Artifact, cE as ArtifactComponentApiInsert, cD as ArtifactComponentApiSelect, cF as ArtifactComponentApiUpdate, K as ArtifactComponentInsert, J as ArtifactComponentSelect, L as ArtifactComponentUpdate, aO as AuthorizationCodeOAuthFlow, dg as CanDelegateToExternalAgent, df as CanUseItem, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, b8 as ContentTypeNotSupportedError, cs as ContextCacheApiInsert, cr as ContextCacheApiSelect, ct as ContextCacheApiUpdate, dy as ContextCacheEntry, Q as ContextCacheInsert, O as ContextCacheSelect, cq as ContextCacheUpdate, cm as ContextConfigApiInsert, cl as ContextConfigApiSelect, cn as ContextConfigApiUpdate, R as ContextConfigInsert, s as ContextConfigSelect, U as ContextConfigUpdate, l as ContextFetchDefinition, cf as ConversationApiInsert, ce as ConversationApiSelect, cg as ConversationApiUpdate, C as ConversationHistoryConfig, W as ConversationInsert, o as ConversationMetadata, dw as ConversationScopeOptions, V as ConversationSelect, X as ConversationUpdate, H as CreateApiKeyParams, r as CredentialReferenceApiInsert, cU as CredentialReferenceApiSelect, cV as CredentialReferenceApiUpdate, $ as CredentialReferenceInsert, Y as CredentialReferenceSelect, a0 as CredentialReferenceUpdate, cv as DataComponentApiInsert, cu as DataComponentApiSelect, cw as DataComponentApiUpdate, a2 as DataComponentInsert, a1 as DataComponentSelect, a3 as DataComponentUpdate, aF as DataPart, ay as ExecutionContext, cN as ExternalAgentApiInsert, cM as ExternalAgentApiSelect, cO as ExternalAgentApiUpdate, a4 as ExternalAgentInsert, _ as ExternalAgentSelect, a5 as ExternalAgentUpdate, bT as ExternalSubAgentRelationApiInsert, bS as ExternalSubAgentRelationInsert, cp as FetchConfig, co as FetchDefinition, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, de as FullAgentAgentInsert, v as FullAgentDefinition, ae as FullProjectDefinition, a6 as FunctionApiInsert, cb as FunctionApiSelect, cc as FunctionApiUpdate, c9 as FunctionInsert, c8 as FunctionSelect, a7 as FunctionToolApiInsert, cd as FunctionToolApiSelect, a8 as FunctionToolApiUpdate, ca as FunctionUpdate, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, aQ as ImplicitOAuthFlow, b3 as InternalError, b9 as InvalidAgentResponseError, b2 as InvalidParamsError, b0 as InvalidRequestError, a$ as JSONParseError, bk as JSONRPCError, bm as JSONRPCErrorResponse, bi as JSONRPCMessage, bj as JSONRPCRequest, bl as JSONRPCResult, dc as LedgerArtifactApiInsert, db as LedgerArtifactApiSelect, dd as LedgerArtifactApiUpdate, d9 as LedgerArtifactInsert, aa as LedgerArtifactSelect, da as LedgerArtifactUpdate, dG as MCPServerType, t as MCPToolConfig, i as MCPTransportType, dz as McpAuthType, dA as McpServerAuth, dC as McpServerCapabilities, av as McpTool, dD as McpToolDefinition, dB as McpTransportConfig, aW as Message, cj as MessageApiInsert, ci as MessageApiSelect, ck as MessageApiUpdate, p as MessageContent, ac as MessageInsert, q as MessageMetadata, dr as MessageMode, bI as MessagePart, dq as MessageRole, ch as MessageSelect, bg as MessageSendConfiguration, bh as MessageSendParams, dp as MessageType, ad as MessageUpdate, ab as MessageVisibility, b1 as MethodNotFoundError, ds as Models, aS as OAuth2SecurityScheme, aN as OAuthFlows, aT as OpenIdConnectSecurityScheme, dm as Pagination, x as PaginationConfig, ah as PaginationResult, P as Part, az as PartBase, aR as PasswordOAuthFlow, dk as ProjectApiInsert, dj as ProjectApiSelect, dl as ProjectApiUpdate, af as ProjectInfo, aj as ProjectInsert, dt as ProjectModels, ai as ProjectResourceCounts, u as ProjectScopeConfig, ag as ProjectSelect, ak as ProjectUpdate, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, aU as SecurityScheme, aK as SecuritySchemeBase, bn as SendMessageRequest, bv as SendMessageResponse, bu as SendMessageSuccessResponse, bo as SendStreamingMessageRequest, bx as SendStreamingMessageResponse, bw as SendStreamingMessageSuccessResponse, br as SetTaskPushNotificationConfigRequest, bD as SetTaskPushNotificationConfigResponse, bC as SetTaskPushNotificationConfigSuccessResponse, dv as StatusComponent, du as StatusUpdateSettings, bL as SubAgentApiInsert, bK as SubAgentApiSelect, bM as SubAgentApiUpdate, cK as SubAgentArtifactComponentApiInsert, cJ as SubAgentArtifactComponentApiSelect, cL as SubAgentArtifactComponentApiUpdate, cH as SubAgentArtifactComponentInsert, cG as SubAgentArtifactComponentSelect, cI as SubAgentArtifactComponentUpdate, cB as SubAgentDataComponentApiInsert, cA as SubAgentDataComponentApiSelect, cC as SubAgentDataComponentApiUpdate, cy as SubAgentDataComponentInsert, cx as SubAgentDataComponentSelect, cz as SubAgentDataComponentUpdate, dh as SubAgentDefinition, d2 as SubAgentExternalAgentRelationApiInsert, d1 as SubAgentExternalAgentRelationApiSelect, d3 as SubAgentExternalAgentRelationApiUpdate, al as SubAgentExternalAgentRelationInsert, c$ as SubAgentExternalAgentRelationSelect, d0 as SubAgentExternalAgentRelationUpdate, ap as SubAgentInsert, bP as SubAgentRelationApiInsert, bO as SubAgentRelationApiSelect, bQ as SubAgentRelationApiUpdate, am as SubAgentRelationInsert, bR as SubAgentRelationQuery, bN as SubAgentRelationSelect, an as SubAgentRelationUpdate, N as SubAgentScopeConfig, ar as SubAgentSelect, d7 as SubAgentTeamAgentRelationApiInsert, d6 as SubAgentTeamAgentRelationApiSelect, d8 as SubAgentTeamAgentRelationApiUpdate, as as SubAgentTeamAgentRelationInsert, d4 as SubAgentTeamAgentRelationSelect, d5 as SubAgentTeamAgentRelationUpdate, cZ as SubAgentToolRelationApiInsert, cY as SubAgentToolRelationApiSelect, c_ as SubAgentToolRelationApiUpdate, cX as SubAgentToolRelationInsert, cW as SubAgentToolRelationSelect, ao as SubAgentToolRelationUpdate, aq as SubAgentUpdate, dn as SummaryEvent, dE as TOOL_STATUS_VALUES, aY as Task, bZ as TaskApiInsert, bY as TaskApiSelect, b_ as TaskApiUpdate, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, at as TaskInsert, T as TaskMetadataConfig, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c3 as TaskRelationApiInsert, c2 as TaskRelationApiSelect, c4 as TaskRelationApiUpdate, c0 as TaskRelationInsert, b$ as TaskRelationSelect, c1 as TaskRelationUpdate, bt as TaskResubscriptionRequest, au as TaskSelect, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bX as TaskUpdate, aA as TextPart, c6 as ToolApiInsert, c5 as ToolApiSelect, c7 as ToolApiUpdate, di as ToolDefinition, aw as ToolInsert, m as ToolMcpConfig, Z as ToolSelect, n as ToolServerCapabilities, ax as ToolUpdate, b7 as UnsupportedOperationError, dF as VALID_RELATION_TYPES } from '../utility-DNsYIxBh.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 { h as CredentialStoreType } from '../utility-
|
|
2
|
-
export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bV as AgentApiInsert, bU as AgentApiSelect, bW as AgentApiUpdate, aH as AgentCapabilities, aV as AgentCard, dx as AgentConversationHistoryConfig, y as AgentInsert, aI as AgentProvider, w as AgentScopeConfig, B as AgentSelect, aJ as AgentSkill, z as AgentUpdate, cP as AllAgentSelect, cT as ApiKeyApiCreationResponse, cR as ApiKeyApiInsert, cQ as ApiKeyApiSelect, cS as ApiKeyApiUpdate, I as ApiKeyCreateResult, E as ApiKeyInsert, D as ApiKeySelect, G as ApiKeyUpdate, a9 as Artifact, cE as ArtifactComponentApiInsert, cD as ArtifactComponentApiSelect, cF as ArtifactComponentApiUpdate, K as ArtifactComponentInsert, J as ArtifactComponentSelect, L as ArtifactComponentUpdate, aO as AuthorizationCodeOAuthFlow, dg as CanDelegateToExternalAgent, df as CanUseItem, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, b8 as ContentTypeNotSupportedError, cs as ContextCacheApiInsert, cr as ContextCacheApiSelect, ct as ContextCacheApiUpdate, dy as ContextCacheEntry, Q as ContextCacheInsert, O as ContextCacheSelect, cq as ContextCacheUpdate, cm as ContextConfigApiInsert, cl as ContextConfigApiSelect, cn as ContextConfigApiUpdate, R as ContextConfigInsert, s as ContextConfigSelect, U as ContextConfigUpdate, l as ContextFetchDefinition, cf as ConversationApiInsert, ce as ConversationApiSelect, cg as ConversationApiUpdate, C as ConversationHistoryConfig, W as ConversationInsert, o as ConversationMetadata, dw as ConversationScopeOptions, V as ConversationSelect, X as ConversationUpdate, H as CreateApiKeyParams, r as CredentialReferenceApiInsert, cU as CredentialReferenceApiSelect, cV as CredentialReferenceApiUpdate, $ as CredentialReferenceInsert, Y as CredentialReferenceSelect, a0 as CredentialReferenceUpdate, cv as DataComponentApiInsert, cu as DataComponentApiSelect, cw as DataComponentApiUpdate, a2 as DataComponentInsert, a1 as DataComponentSelect, a3 as DataComponentUpdate, aF as DataPart, ay as ExecutionContext, cN as ExternalAgentApiInsert, cM as ExternalAgentApiSelect, cO as ExternalAgentApiUpdate, a4 as ExternalAgentInsert, _ as ExternalAgentSelect, a5 as ExternalAgentUpdate, bT as ExternalSubAgentRelationApiInsert, bS as ExternalSubAgentRelationInsert, cp as FetchConfig, co as FetchDefinition, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, de as FullAgentAgentInsert, v as FullAgentDefinition, ae as FullProjectDefinition, a6 as FunctionApiInsert, cb as FunctionApiSelect, cc as FunctionApiUpdate, c9 as FunctionInsert, c8 as FunctionSelect, a7 as FunctionToolApiInsert, cd as FunctionToolApiSelect, a8 as FunctionToolApiUpdate, ca as FunctionUpdate, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, aQ as ImplicitOAuthFlow, b3 as InternalError, b9 as InvalidAgentResponseError, b2 as InvalidParamsError, b0 as InvalidRequestError, a$ as JSONParseError, bk as JSONRPCError, bm as JSONRPCErrorResponse, bi as JSONRPCMessage, bj as JSONRPCRequest, bl as JSONRPCResult, dc as LedgerArtifactApiInsert, db as LedgerArtifactApiSelect, dd as LedgerArtifactApiUpdate, d9 as LedgerArtifactInsert, aa as LedgerArtifactSelect, da as LedgerArtifactUpdate, dG as MCPServerType, t as MCPToolConfig, i as MCPTransportType, dz as McpAuthType, dA as McpServerAuth, dC as McpServerCapabilities, av as McpTool, dD as McpToolDefinition, dB as McpTransportConfig, aW as Message, cj as MessageApiInsert, ci as MessageApiSelect, ck as MessageApiUpdate, p as MessageContent, ac as MessageInsert, q as MessageMetadata, dr as MessageMode, bI as MessagePart, dq as MessageRole, ch as MessageSelect, bg as MessageSendConfiguration, bh as MessageSendParams, dp as MessageType, ad as MessageUpdate, ab as MessageVisibility, b1 as MethodNotFoundError, ds as Models, aS as OAuth2SecurityScheme, aN as OAuthFlows, aT as OpenIdConnectSecurityScheme, dm as Pagination, x as PaginationConfig, ah as PaginationResult, P as Part, az as PartBase, aR as PasswordOAuthFlow, dk as ProjectApiInsert, dj as ProjectApiSelect, dl as ProjectApiUpdate, af as ProjectInfo, aj as ProjectInsert, dt as ProjectModels, ai as ProjectResourceCounts, u as ProjectScopeConfig, ag as ProjectSelect, ak as ProjectUpdate, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, aU as SecurityScheme, aK as SecuritySchemeBase, bn as SendMessageRequest, bv as SendMessageResponse, bu as SendMessageSuccessResponse, bo as SendStreamingMessageRequest, bx as SendStreamingMessageResponse, bw as SendStreamingMessageSuccessResponse, br as SetTaskPushNotificationConfigRequest, bD as SetTaskPushNotificationConfigResponse, bC as SetTaskPushNotificationConfigSuccessResponse, dv as StatusComponent, du as StatusUpdateSettings, bL as SubAgentApiInsert, bK as SubAgentApiSelect, bM as SubAgentApiUpdate, cK as SubAgentArtifactComponentApiInsert, cJ as SubAgentArtifactComponentApiSelect, cL as SubAgentArtifactComponentApiUpdate, cH as SubAgentArtifactComponentInsert, cG as SubAgentArtifactComponentSelect, cI as SubAgentArtifactComponentUpdate, cB as SubAgentDataComponentApiInsert, cA as SubAgentDataComponentApiSelect, cC as SubAgentDataComponentApiUpdate, cy as SubAgentDataComponentInsert, cx as SubAgentDataComponentSelect, cz as SubAgentDataComponentUpdate, dh as SubAgentDefinition, d2 as SubAgentExternalAgentRelationApiInsert, d1 as SubAgentExternalAgentRelationApiSelect, d3 as SubAgentExternalAgentRelationApiUpdate, al as SubAgentExternalAgentRelationInsert, c$ as SubAgentExternalAgentRelationSelect, d0 as SubAgentExternalAgentRelationUpdate, ap as SubAgentInsert, bP as SubAgentRelationApiInsert, bO as SubAgentRelationApiSelect, bQ as SubAgentRelationApiUpdate, am as SubAgentRelationInsert, bR as SubAgentRelationQuery, bN as SubAgentRelationSelect, an as SubAgentRelationUpdate, N as SubAgentScopeConfig, ar as SubAgentSelect, d7 as SubAgentTeamAgentRelationApiInsert, d6 as SubAgentTeamAgentRelationApiSelect, d8 as SubAgentTeamAgentRelationApiUpdate, as as SubAgentTeamAgentRelationInsert, d4 as SubAgentTeamAgentRelationSelect, d5 as SubAgentTeamAgentRelationUpdate, cZ as SubAgentToolRelationApiInsert, cY as SubAgentToolRelationApiSelect, c_ as SubAgentToolRelationApiUpdate, cX as SubAgentToolRelationInsert, cW as SubAgentToolRelationSelect, ao as SubAgentToolRelationUpdate, aq as SubAgentUpdate, dn as SummaryEvent, dE as TOOL_STATUS_VALUES, aY as Task, bZ as TaskApiInsert, bY as TaskApiSelect, b_ as TaskApiUpdate, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, at as TaskInsert, T as TaskMetadataConfig, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c3 as TaskRelationApiInsert, c2 as TaskRelationApiSelect, c4 as TaskRelationApiUpdate, c0 as TaskRelationInsert, b$ as TaskRelationSelect, c1 as TaskRelationUpdate, bt as TaskResubscriptionRequest, au as TaskSelect, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bX as TaskUpdate, aA as TextPart, c6 as ToolApiInsert, c5 as ToolApiSelect, c7 as ToolApiUpdate, di as ToolDefinition, aw as ToolInsert, m as ToolMcpConfig, Z as ToolSelect, n as ToolServerCapabilities, ax as ToolUpdate, b7 as UnsupportedOperationError, dF as VALID_RELATION_TYPES } from '../utility-
|
|
1
|
+
import { h as CredentialStoreType } from '../utility-DNsYIxBh.js';
|
|
2
|
+
export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bV as AgentApiInsert, bU as AgentApiSelect, bW as AgentApiUpdate, aH as AgentCapabilities, aV as AgentCard, dx as AgentConversationHistoryConfig, y as AgentInsert, aI as AgentProvider, w as AgentScopeConfig, B as AgentSelect, aJ as AgentSkill, z as AgentUpdate, cP as AllAgentSelect, cT as ApiKeyApiCreationResponse, cR as ApiKeyApiInsert, cQ as ApiKeyApiSelect, cS as ApiKeyApiUpdate, I as ApiKeyCreateResult, E as ApiKeyInsert, D as ApiKeySelect, G as ApiKeyUpdate, a9 as Artifact, cE as ArtifactComponentApiInsert, cD as ArtifactComponentApiSelect, cF as ArtifactComponentApiUpdate, K as ArtifactComponentInsert, J as ArtifactComponentSelect, L as ArtifactComponentUpdate, aO as AuthorizationCodeOAuthFlow, dg as CanDelegateToExternalAgent, df as CanUseItem, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, b8 as ContentTypeNotSupportedError, cs as ContextCacheApiInsert, cr as ContextCacheApiSelect, ct as ContextCacheApiUpdate, dy as ContextCacheEntry, Q as ContextCacheInsert, O as ContextCacheSelect, cq as ContextCacheUpdate, cm as ContextConfigApiInsert, cl as ContextConfigApiSelect, cn as ContextConfigApiUpdate, R as ContextConfigInsert, s as ContextConfigSelect, U as ContextConfigUpdate, l as ContextFetchDefinition, cf as ConversationApiInsert, ce as ConversationApiSelect, cg as ConversationApiUpdate, C as ConversationHistoryConfig, W as ConversationInsert, o as ConversationMetadata, dw as ConversationScopeOptions, V as ConversationSelect, X as ConversationUpdate, H as CreateApiKeyParams, r as CredentialReferenceApiInsert, cU as CredentialReferenceApiSelect, cV as CredentialReferenceApiUpdate, $ as CredentialReferenceInsert, Y as CredentialReferenceSelect, a0 as CredentialReferenceUpdate, cv as DataComponentApiInsert, cu as DataComponentApiSelect, cw as DataComponentApiUpdate, a2 as DataComponentInsert, a1 as DataComponentSelect, a3 as DataComponentUpdate, aF as DataPart, ay as ExecutionContext, cN as ExternalAgentApiInsert, cM as ExternalAgentApiSelect, cO as ExternalAgentApiUpdate, a4 as ExternalAgentInsert, _ as ExternalAgentSelect, a5 as ExternalAgentUpdate, bT as ExternalSubAgentRelationApiInsert, bS as ExternalSubAgentRelationInsert, cp as FetchConfig, co as FetchDefinition, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, de as FullAgentAgentInsert, v as FullAgentDefinition, ae as FullProjectDefinition, a6 as FunctionApiInsert, cb as FunctionApiSelect, cc as FunctionApiUpdate, c9 as FunctionInsert, c8 as FunctionSelect, a7 as FunctionToolApiInsert, cd as FunctionToolApiSelect, a8 as FunctionToolApiUpdate, ca as FunctionUpdate, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, aQ as ImplicitOAuthFlow, b3 as InternalError, b9 as InvalidAgentResponseError, b2 as InvalidParamsError, b0 as InvalidRequestError, a$ as JSONParseError, bk as JSONRPCError, bm as JSONRPCErrorResponse, bi as JSONRPCMessage, bj as JSONRPCRequest, bl as JSONRPCResult, dc as LedgerArtifactApiInsert, db as LedgerArtifactApiSelect, dd as LedgerArtifactApiUpdate, d9 as LedgerArtifactInsert, aa as LedgerArtifactSelect, da as LedgerArtifactUpdate, dG as MCPServerType, t as MCPToolConfig, i as MCPTransportType, dz as McpAuthType, dA as McpServerAuth, dC as McpServerCapabilities, av as McpTool, dD as McpToolDefinition, dB as McpTransportConfig, aW as Message, cj as MessageApiInsert, ci as MessageApiSelect, ck as MessageApiUpdate, p as MessageContent, ac as MessageInsert, q as MessageMetadata, dr as MessageMode, bI as MessagePart, dq as MessageRole, ch as MessageSelect, bg as MessageSendConfiguration, bh as MessageSendParams, dp as MessageType, ad as MessageUpdate, ab as MessageVisibility, b1 as MethodNotFoundError, ds as Models, aS as OAuth2SecurityScheme, aN as OAuthFlows, aT as OpenIdConnectSecurityScheme, dm as Pagination, x as PaginationConfig, ah as PaginationResult, P as Part, az as PartBase, aR as PasswordOAuthFlow, dk as ProjectApiInsert, dj as ProjectApiSelect, dl as ProjectApiUpdate, af as ProjectInfo, aj as ProjectInsert, dt as ProjectModels, ai as ProjectResourceCounts, u as ProjectScopeConfig, ag as ProjectSelect, ak as ProjectUpdate, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, aU as SecurityScheme, aK as SecuritySchemeBase, bn as SendMessageRequest, bv as SendMessageResponse, bu as SendMessageSuccessResponse, bo as SendStreamingMessageRequest, bx as SendStreamingMessageResponse, bw as SendStreamingMessageSuccessResponse, br as SetTaskPushNotificationConfigRequest, bD as SetTaskPushNotificationConfigResponse, bC as SetTaskPushNotificationConfigSuccessResponse, dv as StatusComponent, du as StatusUpdateSettings, bL as SubAgentApiInsert, bK as SubAgentApiSelect, bM as SubAgentApiUpdate, cK as SubAgentArtifactComponentApiInsert, cJ as SubAgentArtifactComponentApiSelect, cL as SubAgentArtifactComponentApiUpdate, cH as SubAgentArtifactComponentInsert, cG as SubAgentArtifactComponentSelect, cI as SubAgentArtifactComponentUpdate, cB as SubAgentDataComponentApiInsert, cA as SubAgentDataComponentApiSelect, cC as SubAgentDataComponentApiUpdate, cy as SubAgentDataComponentInsert, cx as SubAgentDataComponentSelect, cz as SubAgentDataComponentUpdate, dh as SubAgentDefinition, d2 as SubAgentExternalAgentRelationApiInsert, d1 as SubAgentExternalAgentRelationApiSelect, d3 as SubAgentExternalAgentRelationApiUpdate, al as SubAgentExternalAgentRelationInsert, c$ as SubAgentExternalAgentRelationSelect, d0 as SubAgentExternalAgentRelationUpdate, ap as SubAgentInsert, bP as SubAgentRelationApiInsert, bO as SubAgentRelationApiSelect, bQ as SubAgentRelationApiUpdate, am as SubAgentRelationInsert, bR as SubAgentRelationQuery, bN as SubAgentRelationSelect, an as SubAgentRelationUpdate, N as SubAgentScopeConfig, ar as SubAgentSelect, d7 as SubAgentTeamAgentRelationApiInsert, d6 as SubAgentTeamAgentRelationApiSelect, d8 as SubAgentTeamAgentRelationApiUpdate, as as SubAgentTeamAgentRelationInsert, d4 as SubAgentTeamAgentRelationSelect, d5 as SubAgentTeamAgentRelationUpdate, cZ as SubAgentToolRelationApiInsert, cY as SubAgentToolRelationApiSelect, c_ as SubAgentToolRelationApiUpdate, cX as SubAgentToolRelationInsert, cW as SubAgentToolRelationSelect, ao as SubAgentToolRelationUpdate, aq as SubAgentUpdate, dn as SummaryEvent, dE as TOOL_STATUS_VALUES, aY as Task, bZ as TaskApiInsert, bY as TaskApiSelect, b_ as TaskApiUpdate, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, at as TaskInsert, T as TaskMetadataConfig, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c3 as TaskRelationApiInsert, c2 as TaskRelationApiSelect, c4 as TaskRelationApiUpdate, c0 as TaskRelationInsert, b$ as TaskRelationSelect, c1 as TaskRelationUpdate, bt as TaskResubscriptionRequest, au as TaskSelect, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bX as TaskUpdate, aA as TextPart, c6 as ToolApiInsert, c5 as ToolApiSelect, c7 as ToolApiUpdate, di as ToolDefinition, aw as ToolInsert, m as ToolMcpConfig, Z as ToolSelect, n as ToolServerCapabilities, ax as ToolUpdate, b7 as UnsupportedOperationError, dF as VALID_RELATION_TYPES } from '../utility-DNsYIxBh.js';
|
|
3
3
|
import { Context } from 'hono';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'drizzle-zod';
|