@inkeep/agents-core 0.37.0 → 0.37.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/auth-schema.d.ts +47 -1
- package/dist/auth/auth-schema.js +1 -1
- package/dist/auth/auth-validation-schemas.d.ts +35 -1
- package/dist/auth/auth-validation-schemas.js +18 -18
- package/dist/auth/auth.d.ts +23 -23
- package/dist/auth/auth.js +13 -5
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/auth/permissions.js +1 -1
- package/dist/{auth-detection-CGqhPDnj.d.ts → auth-detection-7G0Dxt55.d.ts} +11 -0
- package/dist/{chunk-ICZLNCX7.js → chunk-3HACEHXF.js} +370 -71
- package/dist/{chunk-32YRH2S7.js → chunk-5QZSNATS.js} +63 -67
- package/dist/{chunk-SSRRHYU4.js → chunk-6CYQZ5KX.js} +4 -5
- package/dist/{chunk-SLQW43IV.js → chunk-BJLC7EI4.js} +4 -5
- package/dist/chunk-CMNLBV2A.js +39 -0
- package/dist/{chunk-NFYCSHD3.js → chunk-DEYPSEXR.js} +2 -1
- package/dist/chunk-GENLXHZ4.js +159 -0
- package/dist/{chunk-VMSYBWFH.js → chunk-JNBVHWXX.js} +7 -4
- package/dist/{chunk-TGESM3JG.js → chunk-MQMMFK2K.js} +14 -3
- package/dist/{chunk-Q5U2SVA6.js → chunk-RUTYLJB7.js} +11 -7
- package/dist/{chunk-VQXQOGJU.js → chunk-XHODTX4H.js} +313 -315
- package/dist/{chunk-MB2ZIPZS.js → chunk-YSFXXC6K.js} +5 -5
- package/dist/{chunk-SG75RA63.js → chunk-ZSYMSL55.js} +2 -2
- package/dist/{client-CnpNkGsH.d.ts → client-B3nwdklT.d.ts} +1 -1
- package/dist/client-exports.d.ts +10 -8
- package/dist/client-exports.js +126 -127
- package/dist/constants/schema-validation/index.js +1 -1
- package/dist/credential-stores/index.d.ts +4 -5
- package/dist/credential-stores/index.js +1 -1
- package/dist/db/schema.d.ts +3 -4
- package/dist/db/schema.js +2 -2
- package/dist/db/test-client.d.ts +4 -5
- package/dist/db/test-client.js +1 -1
- package/dist/index.d.ts +675 -558
- package/dist/index.js +297 -76
- package/dist/{schema-Cgkp_geg.d.ts → schema-BhYTubhP.d.ts} +24 -1
- package/dist/server-CHLmv-Jb.d.ts +127 -0
- package/dist/types/index.d.ts +34 -115
- package/dist/types/index.js +1 -1
- package/dist/{utility-C_tTZ7-k.d.ts → utility-5USfJ5Xd.d.ts} +588 -459
- package/dist/utils/schema-conversion.d.ts +1 -1
- package/dist/utils/schema-conversion.js +1 -1
- package/dist/validation/index.d.ts +131 -132
- package/dist/validation/index.js +2 -2
- package/drizzle/{0001_fair_malice.sql → 0001_calm_sheva_callister.sql} +1 -16
- package/drizzle/0002_puzzling_goblin_queen.sql +8 -0
- package/drizzle/0003_sweet_human_robot.sql +8 -0
- package/drizzle/meta/0001_snapshot.json +7 -1
- package/drizzle/meta/0002_snapshot.json +3637 -0
- package/drizzle/meta/0003_snapshot.json +3643 -0
- package/drizzle/meta/_journal.json +16 -2
- package/package.json +11 -3
- package/dist/chunk-CUM6BY2Y.js +0 -320
- package/dist/chunk-H2F72PDA.js +0 -15
- package/dist/chunk-NOPEANIU.js +0 -82
- package/dist/chunk-OUXC23J7.js +0 -12534
package/dist/index.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
export { cleanupTestDatabase, closeTestDatabase, createTestDatabaseClient, createTestOrganization, createTestProject } from './chunk-
|
|
2
|
-
import { validateRender, validateAndTypeAgentData, validateAgentStructure } from './chunk-
|
|
3
|
-
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-
|
|
4
|
-
export { AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, 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, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS } from './chunk-
|
|
5
|
-
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 } from './chunk-
|
|
6
|
-
import { ContextConfigApiUpdateSchema, validatePropsAsJsonSchema } from './chunk-
|
|
7
|
-
export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentInsertSchema, AgentListResponse, AgentResponse, AgentSelectSchema, AgentStopWhenSchema, AgentUpdateSchema, AgentWithinContextOfProjectResponse, AgentWithinContextOfProjectSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentArrayResponse, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CanUseItemSchema, ComponentAssociationListResponse, 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, DataComponentArrayResponse, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FetchConfigSchema, FetchDefinitionSchema, FullAgentAgentInsertSchema, FullProjectDefinitionResponse, 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, MCPCatalogListResponse, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolListResponse, McpToolResponse, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageListResponse, MessageResponse, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, OAuthCallbackQuerySchema, OAuthLoginQuerySchema, PaginationQueryParamsSchema, PaginationSchema, PrebuiltMCPServerSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, RelatedAgentInfoListResponse, 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, SubAgentExternalAgentRelationListResponse, SubAgentExternalAgentRelationResponse, SubAgentExternalAgentRelationSelectSchema, SubAgentExternalAgentRelationUpdateSchema, SubAgentInsertSchema, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentSelectSchema, SubAgentStopWhenSchema, SubAgentTeamAgentRelationApiInsertSchema, SubAgentTeamAgentRelationApiSelectSchema, SubAgentTeamAgentRelationApiUpdateSchema, SubAgentTeamAgentRelationInsertSchema, SubAgentTeamAgentRelationListResponse, SubAgentTeamAgentRelationResponse, 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, ThirdPartyMCPServerResponse, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolListResponse, ToolResponse, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, canDelegateToExternalAgentSchema, canDelegateToTeamAgentSchema, resourceIdSchema, validatePropsAsJsonSchema } from './chunk-
|
|
8
|
-
import { schema_exports, contextConfigs, externalAgents, functions, functionTools, subAgentFunctionToolRelations, subAgentExternalAgentRelations, subAgents, subAgentRelations, subAgentToolRelations, tools,
|
|
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-
|
|
1
|
+
export { cleanupTestDatabase, closeTestDatabase, createTestDatabaseClient, createTestOrganization, createTestProject } from './chunk-ZSYMSL55.js';
|
|
2
|
+
import { validateRender, validateAndTypeAgentData, validateAgentStructure } from './chunk-5QZSNATS.js';
|
|
3
|
+
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-5QZSNATS.js';
|
|
4
|
+
export { AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, 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, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS } from './chunk-BJLC7EI4.js';
|
|
5
|
+
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 } from './chunk-MQMMFK2K.js';
|
|
6
|
+
import { ContextConfigApiUpdateSchema, validatePropsAsJsonSchema } from './chunk-XHODTX4H.js';
|
|
7
|
+
export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentInsertSchema, AgentListResponse, AgentResponse, AgentSelectSchema, AgentStopWhenSchema, AgentUpdateSchema, AgentWithinContextOfProjectResponse, AgentWithinContextOfProjectSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentArrayResponse, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CanUseItemSchema, ComponentAssociationListResponse, 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, DataComponentArrayResponse, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FetchConfigSchema, FetchDefinitionSchema, FullAgentAgentInsertSchema, FullProjectDefinitionResponse, 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, MCPCatalogListResponse, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolListResponse, McpToolResponse, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageListResponse, MessageResponse, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, OAuthCallbackQuerySchema, OAuthLoginQuerySchema, PaginationQueryParamsSchema, PaginationSchema, PrebuiltMCPServerSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, RelatedAgentInfoListResponse, 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, SubAgentExternalAgentRelationListResponse, SubAgentExternalAgentRelationResponse, SubAgentExternalAgentRelationSelectSchema, SubAgentExternalAgentRelationUpdateSchema, SubAgentInsertSchema, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentSelectSchema, SubAgentStopWhenSchema, SubAgentTeamAgentRelationApiInsertSchema, SubAgentTeamAgentRelationApiSelectSchema, SubAgentTeamAgentRelationApiUpdateSchema, SubAgentTeamAgentRelationInsertSchema, SubAgentTeamAgentRelationListResponse, SubAgentTeamAgentRelationResponse, 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, ThirdPartyMCPServerResponse, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolListResponse, ToolResponse, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, canDelegateToExternalAgentSchema, canDelegateToTeamAgentSchema, resourceIdSchema, validatePropsAsJsonSchema } from './chunk-XHODTX4H.js';
|
|
8
|
+
import { schema_exports, contextConfigs, externalAgents, functions, functionTools, subAgentFunctionToolRelations, subAgentExternalAgentRelations, subAgents, subAgentRelations, subAgentToolRelations, tools, agents, subAgentTeamAgentRelations, credentialReferences, subAgentDataComponents, subAgentArtifactComponents, dataComponents, artifactComponents, projects, apiKeys, contextCache, conversations, messages, ledgerArtifacts, tasks, taskRelations } from './chunk-DEYPSEXR.js';
|
|
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-DEYPSEXR.js';
|
|
10
10
|
export { schemaValidationDefaults } from './chunk-Z64UK4CA.js';
|
|
11
|
-
import { getTracer, getCredentialStoreLookupKeyFromRetrievalParams, generateId,
|
|
12
|
-
export { CONVERSATION_HISTORY_DEFAULT_LIMIT, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT, ERROR_DOCS_BASE_URL, ErrorCode, 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, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, createApiError, createExecutionContext, errorResponseSchema, errorSchemaFactory, executionLimitsSharedDefaults, extractComposioServerId, extractPublicId, fetchComposioServers, fetchSingleComposioServer, generateApiKey, generateId, generateServiceToken, getConversationId, getCredentialStoreLookupKeyFromRetrievalParams, getRequestExecutionContext, getTracer, handleApiError, hashApiKey, isApiKeyExpired, isComposioMCPServerAuthenticated, isThirdPartyMCPServerAuthenticated, maskApiKey, normalizeDateString, problemDetailsSchema, setSpanWithError, signTempToken, validateApiKey, validateTargetAgent, validateTenantId, verifyAuthorizationHeader, verifyServiceToken, verifyTempToken } from './chunk-
|
|
13
|
-
import { convertZodToJsonSchema } from './chunk-
|
|
14
|
-
export { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, isZodSchema, preview } from './chunk-
|
|
15
|
-
import { loadEnvironmentFiles, env } from './chunk-
|
|
16
|
-
export { loadEnvironmentFiles } from './chunk-
|
|
11
|
+
import { getTracer, getCredentialStoreLookupKeyFromRetrievalParams, generateId, toISODateString, isThirdPartyMCPServerAuthenticated, createApiError, generateApiKey, extractPublicId, validateApiKey, isApiKeyExpired, getConversationId, setSpanWithError, getRequestExecutionContext, McpClient } from './chunk-3HACEHXF.js';
|
|
12
|
+
export { CONVERSATION_HISTORY_DEFAULT_LIMIT, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT, ERROR_DOCS_BASE_URL, ErrorCode, 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, ModelFactory, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, createApiError, createExecutionContext, errorResponseSchema, errorSchemaFactory, executionLimitsSharedDefaults, extractComposioServerId, extractPublicId, fetchComposioServers, fetchSingleComposioServer, formatMessagesForLLM, formatMessagesForLLMContext, generateApiKey, generateId, generateServiceToken, getConversationId, getCredentialStoreLookupKeyFromRetrievalParams, getRequestExecutionContext, getTracer, handleApiError, hashApiKey, isApiKeyExpired, isComposioMCPServerAuthenticated, isThirdPartyMCPServerAuthenticated, maskApiKey, normalizeDateString, problemDetailsSchema, setSpanWithError, signTempToken, toISODateString, validateApiKey, validateTargetAgent, validateTenantId, verifyAuthorizationHeader, verifyServiceToken, verifyTempToken } from './chunk-3HACEHXF.js';
|
|
13
|
+
import { convertZodToJsonSchema } from './chunk-6CYQZ5KX.js';
|
|
14
|
+
export { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, isZodSchema, preview } from './chunk-6CYQZ5KX.js';
|
|
15
|
+
import { loadEnvironmentFiles, env } from './chunk-RUTYLJB7.js';
|
|
16
|
+
export { loadEnvironmentFiles } from './chunk-RUTYLJB7.js';
|
|
17
17
|
import { detectAuthenticationRequired } from './chunk-4JZT4QEE.js';
|
|
18
18
|
export { detectAuthenticationRequired, exchangeMcpAuthorizationCode, initiateMcpOAuthFlow } from './chunk-4JZT4QEE.js';
|
|
19
|
-
import { organization, member, invitation, user } from './chunk-
|
|
20
|
-
export { account, invitation, member, organization, session, ssoProvider, user, verification } from './chunk-
|
|
19
|
+
import { organization, member, invitation, user } from './chunk-GENLXHZ4.js';
|
|
20
|
+
export { account, invitation, member, organization, session, ssoProvider, user, verification } from './chunk-GENLXHZ4.js';
|
|
21
21
|
export { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS } from './chunk-7CLFCY6J.js';
|
|
22
|
-
export { CredentialStoreRegistry, InMemoryCredentialStore, KeyChainStore, NangoCredentialStore, createDefaultCredentialStores, createKeyChainStore, createNangoCredentialStore } from './chunk-
|
|
22
|
+
export { CredentialStoreRegistry, InMemoryCredentialStore, KeyChainStore, NangoCredentialStore, createDefaultCredentialStores, createKeyChainStore, createNangoCredentialStore } from './chunk-YSFXXC6K.js';
|
|
23
23
|
import { getLogger } from './chunk-DN4B564Y.js';
|
|
24
24
|
export { PinoLogger, getLogger, loggerFactory } from './chunk-DN4B564Y.js';
|
|
25
|
-
export { TaskState } from './chunk-
|
|
25
|
+
export { TaskState, normalizeToolSelections } from './chunk-CMNLBV2A.js';
|
|
26
26
|
import { CredentialStoreType, MCPServerType, MCPTransportType } from './chunk-YFHT5M2R.js';
|
|
27
27
|
export { CredentialStoreType, MCPServerType, MCPTransportType, TOOL_STATUS_VALUES, VALID_RELATION_TYPES } from './chunk-YFHT5M2R.js';
|
|
28
|
-
import { external_exports } from './chunk-OUXC23J7.js';
|
|
29
28
|
import { __commonJS, __require } from './chunk-SIAA4J6H.js';
|
|
29
|
+
import { z } from '@hono/zod-openapi';
|
|
30
30
|
import jmespath from 'jmespath';
|
|
31
31
|
import { drizzle } from 'drizzle-orm/node-postgres';
|
|
32
32
|
import { Pool } from 'pg';
|
|
@@ -2492,7 +2492,7 @@ var require_typescript = __commonJS({
|
|
|
2492
2492
|
affectsEmitOptionDeclarations: () => affectsEmitOptionDeclarations,
|
|
2493
2493
|
allKeysStartWithDot: () => allKeysStartWithDot,
|
|
2494
2494
|
altDirectorySeparator: () => altDirectorySeparator,
|
|
2495
|
-
and: () =>
|
|
2495
|
+
and: () => and23,
|
|
2496
2496
|
append: () => append,
|
|
2497
2497
|
appendIfUnique: () => appendIfUnique,
|
|
2498
2498
|
arrayFrom: () => arrayFrom,
|
|
@@ -5943,7 +5943,7 @@ var require_typescript = __commonJS({
|
|
|
5943
5943
|
function isPatternMatch({ prefix, suffix }, candidate) {
|
|
5944
5944
|
return candidate.length >= prefix.length + suffix.length && startsWith(candidate, prefix) && endsWith(candidate, suffix);
|
|
5945
5945
|
}
|
|
5946
|
-
function
|
|
5946
|
+
function and23(f, g) {
|
|
5947
5947
|
return (arg) => f(arg) && g(arg);
|
|
5948
5948
|
}
|
|
5949
5949
|
function or(...fs) {
|
|
@@ -56938,7 +56938,7 @@ ${lanes.join("\n")}
|
|
|
56938
56938
|
SignatureCheckMode3[SignatureCheckMode3["Callback"] = 3] = "Callback";
|
|
56939
56939
|
return SignatureCheckMode3;
|
|
56940
56940
|
})(SignatureCheckMode || {});
|
|
56941
|
-
var isNotOverloadAndNotAccessor =
|
|
56941
|
+
var isNotOverloadAndNotAccessor = and23(isNotOverload, isNotAccessor);
|
|
56942
56942
|
var intrinsicTypeKinds = new Map(Object.entries({
|
|
56943
56943
|
Uppercase: 0,
|
|
56944
56944
|
Lowercase: 1,
|
|
@@ -99749,7 +99749,7 @@ ${lanes.join("\n")}
|
|
|
99749
99749
|
if (flags & (1920 | 384)) {
|
|
99750
99750
|
return;
|
|
99751
99751
|
}
|
|
99752
|
-
const exportedDeclarationsCount = countWhere(declarations,
|
|
99752
|
+
const exportedDeclarationsCount = countWhere(declarations, and23(isNotOverloadAndNotAccessor, not2(isInterfaceDeclaration)));
|
|
99753
99753
|
if (flags & 524288 && exportedDeclarationsCount <= 2) {
|
|
99754
99754
|
return;
|
|
99755
99755
|
}
|
|
@@ -170537,7 +170537,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
170537
170537
|
const maybeHeritageClauseSymbol = getHeritageClauseSymbolTable(classDeclaration, checker);
|
|
170538
170538
|
const implementedType = checker.getTypeAtLocation(implementedTypeNode);
|
|
170539
170539
|
const implementedTypeSymbols = checker.getPropertiesOfType(implementedType);
|
|
170540
|
-
const nonPrivateAndNotExistedInHeritageClauseMembers = implementedTypeSymbols.filter(
|
|
170540
|
+
const nonPrivateAndNotExistedInHeritageClauseMembers = implementedTypeSymbols.filter(and23(symbolPointsToNonPrivateMember, (symbol) => !maybeHeritageClauseSymbol.has(symbol.escapedName)));
|
|
170541
170541
|
const classType = checker.getTypeAtLocation(classDeclaration);
|
|
170542
170542
|
const constructor = find(classDeclaration.members, (m) => isConstructorDeclaration(m));
|
|
170543
170543
|
if (!classType.getNumberIndexType()) {
|
|
@@ -185194,8 +185194,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
185194
185194
|
function isAmbientModuleDeclaration(node) {
|
|
185195
185195
|
return node.kind === 268 && node.name.kind === 11;
|
|
185196
185196
|
}
|
|
185197
|
-
function isExternalModuleImportEquals(
|
|
185198
|
-
return
|
|
185197
|
+
function isExternalModuleImportEquals(eq24) {
|
|
185198
|
+
return eq24.moduleReference.kind === 284 && eq24.moduleReference.expression.kind === 11;
|
|
185199
185199
|
}
|
|
185200
185200
|
var DefinitionKind = /* @__PURE__ */ ((DefinitionKind2) => {
|
|
185201
185201
|
DefinitionKind2[DefinitionKind2["Symbol"] = 0] = "Symbol";
|
|
@@ -197827,7 +197827,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
197827
197827
|
affectsEmitOptionDeclarations: () => affectsEmitOptionDeclarations,
|
|
197828
197828
|
allKeysStartWithDot: () => allKeysStartWithDot,
|
|
197829
197829
|
altDirectorySeparator: () => altDirectorySeparator,
|
|
197830
|
-
and: () =>
|
|
197830
|
+
and: () => and23,
|
|
197831
197831
|
append: () => append,
|
|
197832
197832
|
appendIfUnique: () => appendIfUnique,
|
|
197833
197833
|
arrayFrom: () => arrayFrom,
|
|
@@ -212870,8 +212870,6 @@ async function apiFetch(url, options = {}) {
|
|
|
212870
212870
|
headers: headers2
|
|
212871
212871
|
});
|
|
212872
212872
|
}
|
|
212873
|
-
|
|
212874
|
-
// src/context/ContextConfig.ts
|
|
212875
212873
|
var logger = getLogger("context-config");
|
|
212876
212874
|
var HeadersSchemaBuilder = class {
|
|
212877
212875
|
schema;
|
|
@@ -213026,7 +213024,7 @@ var ContextConfigBuilder = class {
|
|
|
213026
213024
|
});
|
|
213027
213025
|
return { valid: true, errors: [] };
|
|
213028
213026
|
} catch (error) {
|
|
213029
|
-
if (error instanceof
|
|
213027
|
+
if (error instanceof z.ZodError) {
|
|
213030
213028
|
return {
|
|
213031
213029
|
valid: false,
|
|
213032
213030
|
errors: error.issues.map((e) => `${e.path.join(".")}: ${e.message}`)
|
|
@@ -214716,7 +214714,8 @@ var createAgentToolRelation = (db) => async (params) => {
|
|
|
214716
214714
|
subAgentId: params.data.subAgentId,
|
|
214717
214715
|
toolId: params.data.toolId,
|
|
214718
214716
|
selectedTools: params.data.selectedTools,
|
|
214719
|
-
headers: params.data.headers
|
|
214717
|
+
headers: params.data.headers,
|
|
214718
|
+
toolPolicies: params.data.toolPolicies
|
|
214720
214719
|
}).returning();
|
|
214721
214720
|
return relation[0];
|
|
214722
214721
|
};
|
|
@@ -214862,6 +214861,7 @@ var getToolsForAgent = (db) => async (params) => {
|
|
|
214862
214861
|
toolId: subAgentToolRelations.toolId,
|
|
214863
214862
|
selectedTools: subAgentToolRelations.selectedTools,
|
|
214864
214863
|
headers: subAgentToolRelations.headers,
|
|
214864
|
+
toolPolicies: subAgentToolRelations.toolPolicies,
|
|
214865
214865
|
createdAt: subAgentToolRelations.createdAt,
|
|
214866
214866
|
updatedAt: subAgentToolRelations.updatedAt,
|
|
214867
214867
|
tool: {
|
|
@@ -214922,6 +214922,7 @@ var getAgentsForTool = (db) => async (params) => {
|
|
|
214922
214922
|
toolId: subAgentToolRelations.toolId,
|
|
214923
214923
|
selectedTools: subAgentToolRelations.selectedTools,
|
|
214924
214924
|
headers: subAgentToolRelations.headers,
|
|
214925
|
+
toolPolicies: subAgentToolRelations.toolPolicies,
|
|
214925
214926
|
createdAt: subAgentToolRelations.createdAt,
|
|
214926
214927
|
updatedAt: subAgentToolRelations.updatedAt,
|
|
214927
214928
|
subAgent: {
|
|
@@ -215073,7 +215074,28 @@ var upsertSubAgent = (db) => async (params) => {
|
|
|
215073
215074
|
}
|
|
215074
215075
|
return await createSubAgent(db)(params.data);
|
|
215075
215076
|
};
|
|
215077
|
+
var SubAgentIsDefaultError = class extends Error {
|
|
215078
|
+
constructor(subAgentId, agentId) {
|
|
215079
|
+
super(
|
|
215080
|
+
`Cannot delete sub-agent "${subAgentId}" because it is set as the default sub-agent for agent "${agentId}". Please change the default sub-agent before deleting.`
|
|
215081
|
+
);
|
|
215082
|
+
this.subAgentId = subAgentId;
|
|
215083
|
+
this.agentId = agentId;
|
|
215084
|
+
this.name = "SubAgentIsDefaultError";
|
|
215085
|
+
}
|
|
215086
|
+
};
|
|
215076
215087
|
var deleteSubAgent = (db) => async (params) => {
|
|
215088
|
+
const agentUsingAsDefault = await db.select().from(agents).where(
|
|
215089
|
+
and(
|
|
215090
|
+
eq(agents.tenantId, params.scopes.tenantId),
|
|
215091
|
+
eq(agents.projectId, params.scopes.projectId),
|
|
215092
|
+
eq(agents.id, params.scopes.agentId),
|
|
215093
|
+
eq(agents.defaultSubAgentId, params.subAgentId)
|
|
215094
|
+
)
|
|
215095
|
+
).limit(1);
|
|
215096
|
+
if (agentUsingAsDefault.length > 0) {
|
|
215097
|
+
throw new SubAgentIsDefaultError(params.subAgentId, params.scopes.agentId);
|
|
215098
|
+
}
|
|
215077
215099
|
await db.delete(subAgents).where(
|
|
215078
215100
|
and(
|
|
215079
215101
|
eq(subAgents.tenantId, params.scopes.tenantId),
|
|
@@ -215660,8 +215682,8 @@ var dbResultToMcpTool = async (dbResult, dbClient, credentialStoreRegistry, rela
|
|
|
215660
215682
|
availableTools: [],
|
|
215661
215683
|
capabilities: capabilities || void 0,
|
|
215662
215684
|
credentialReferenceId: credentialReferenceId || void 0,
|
|
215663
|
-
createdAt:
|
|
215664
|
-
updatedAt:
|
|
215685
|
+
createdAt: toISODateString(createdAt),
|
|
215686
|
+
updatedAt: toISODateString(dbResult.updatedAt),
|
|
215665
215687
|
lastError: null,
|
|
215666
215688
|
headers: headers2 || void 0,
|
|
215667
215689
|
imageUrl: imageUrl || void 0,
|
|
@@ -215690,12 +215712,12 @@ var dbResultToMcpTool = async (dbResult, dbClient, credentialStoreRegistry, rela
|
|
|
215690
215712
|
if (credentialStore.type === CredentialStoreType.nango) {
|
|
215691
215713
|
const nangoCredentialData = JSON.parse(credentialDataString);
|
|
215692
215714
|
if (nangoCredentialData.expiresAt) {
|
|
215693
|
-
expiresAt = nangoCredentialData.expiresAt;
|
|
215715
|
+
expiresAt = toISODateString(nangoCredentialData.expiresAt);
|
|
215694
215716
|
}
|
|
215695
215717
|
} else if (credentialStore.type === CredentialStoreType.keychain) {
|
|
215696
215718
|
const oauthTokens = JSON.parse(credentialDataString);
|
|
215697
215719
|
if (oauthTokens.expires_at) {
|
|
215698
|
-
expiresAt =
|
|
215720
|
+
expiresAt = toISODateString(oauthTokens.expires_at);
|
|
215699
215721
|
}
|
|
215700
215722
|
}
|
|
215701
215723
|
}
|
|
@@ -215745,8 +215767,8 @@ var dbResultToMcpTool = async (dbResult, dbClient, credentialStoreRegistry, rela
|
|
|
215745
215767
|
availableTools,
|
|
215746
215768
|
capabilities: capabilities || void 0,
|
|
215747
215769
|
credentialReferenceId: credentialReferenceId || void 0,
|
|
215748
|
-
createdAt:
|
|
215749
|
-
updatedAt:
|
|
215770
|
+
createdAt: toISODateString(createdAt),
|
|
215771
|
+
updatedAt: toISODateString(now),
|
|
215750
215772
|
expiresAt,
|
|
215751
215773
|
lastError: lastErrorComputed,
|
|
215752
215774
|
headers: headers2 || void 0,
|
|
@@ -215828,6 +215850,7 @@ var addToolToAgent = (db) => async (params) => {
|
|
|
215828
215850
|
toolId: params.toolId,
|
|
215829
215851
|
selectedTools: params.selectedTools,
|
|
215830
215852
|
headers: params.headers,
|
|
215853
|
+
toolPolicies: params.toolPolicies,
|
|
215831
215854
|
createdAt: now,
|
|
215832
215855
|
updatedAt: now
|
|
215833
215856
|
}).returning();
|
|
@@ -215854,7 +215877,8 @@ var upsertSubAgentToolRelation = (db) => async (params) => {
|
|
|
215854
215877
|
subAgentId: params.subAgentId,
|
|
215855
215878
|
toolId: params.toolId,
|
|
215856
215879
|
selectedTools: params.selectedTools,
|
|
215857
|
-
headers: params.headers
|
|
215880
|
+
headers: params.headers,
|
|
215881
|
+
toolPolicies: params.toolPolicies
|
|
215858
215882
|
}
|
|
215859
215883
|
});
|
|
215860
215884
|
}
|
|
@@ -216108,6 +216132,7 @@ var getFullAgentDefinition = (db) => async ({
|
|
|
216108
216132
|
imageUrl: tools.imageUrl,
|
|
216109
216133
|
selectedTools: subAgentToolRelations.selectedTools,
|
|
216110
216134
|
headers: subAgentToolRelations.headers,
|
|
216135
|
+
toolPolicies: subAgentToolRelations.toolPolicies,
|
|
216111
216136
|
agentToolRelationId: subAgentToolRelations.id
|
|
216112
216137
|
}).from(subAgentToolRelations).innerJoin(
|
|
216113
216138
|
tools,
|
|
@@ -216171,15 +216196,18 @@ var getFullAgentDefinition = (db) => async ({
|
|
|
216171
216196
|
agentToolRelationId: tool.agentToolRelationId,
|
|
216172
216197
|
toolId: tool.id,
|
|
216173
216198
|
toolSelection: tool.selectedTools || null,
|
|
216174
|
-
headers: tool.headers || null
|
|
216199
|
+
headers: tool.headers || null,
|
|
216200
|
+
toolPolicies: tool.toolPolicies || null
|
|
216175
216201
|
}));
|
|
216176
216202
|
const functionToolCanUse = agentFunctionTools.map((tool) => ({
|
|
216177
216203
|
agentToolRelationId: tool.agentToolRelationId,
|
|
216178
216204
|
toolId: tool.id,
|
|
216179
216205
|
toolSelection: null,
|
|
216180
216206
|
// Function tools don't have tool selection
|
|
216181
|
-
headers: null
|
|
216207
|
+
headers: null,
|
|
216182
216208
|
// Function tools don't have headers
|
|
216209
|
+
toolPolicies: null
|
|
216210
|
+
// Function tools don't have tool policies (yet)
|
|
216183
216211
|
}));
|
|
216184
216212
|
const canUse = [...mcpToolCanUse, ...functionToolCanUse];
|
|
216185
216213
|
return {
|
|
@@ -217255,7 +217283,7 @@ var createFullAgentServerSide = (db, logger10 = defaultLogger) => async (scopes,
|
|
|
217255
217283
|
agentToolPromises.push(
|
|
217256
217284
|
(async () => {
|
|
217257
217285
|
try {
|
|
217258
|
-
const { toolId, toolSelection, headers: headers2, agentToolRelationId } = canUseItem;
|
|
217286
|
+
const { toolId, toolSelection, headers: headers2, toolPolicies, agentToolRelationId } = canUseItem;
|
|
217259
217287
|
const isFunctionTool = typed.functionTools && toolId in typed.functionTools;
|
|
217260
217288
|
logger10.info(
|
|
217261
217289
|
{
|
|
@@ -217285,8 +217313,14 @@ var createFullAgentServerSide = (db, logger10 = defaultLogger) => async (scopes,
|
|
|
217285
217313
|
scopes: { tenantId, projectId, agentId: finalAgentId },
|
|
217286
217314
|
subAgentId,
|
|
217287
217315
|
toolId,
|
|
217288
|
-
|
|
217289
|
-
|
|
217316
|
+
// Preserve null vs undefined distinction:
|
|
217317
|
+
// - null = all tools (updates DB to NULL)
|
|
217318
|
+
// - undefined = don't change (Drizzle skips field)
|
|
217319
|
+
// - [] = zero tools
|
|
217320
|
+
// - ['tool1', ...] = specific tools
|
|
217321
|
+
selectedTools: toolSelection,
|
|
217322
|
+
headers: headers2,
|
|
217323
|
+
toolPolicies,
|
|
217290
217324
|
relationId: agentToolRelationId
|
|
217291
217325
|
});
|
|
217292
217326
|
logger10.info(
|
|
@@ -217996,7 +218030,7 @@ var updateFullAgentServerSide = (db, logger10 = defaultLogger) => async (scopes,
|
|
|
217996
218030
|
subAgentToolPromises.push(
|
|
217997
218031
|
(async () => {
|
|
217998
218032
|
try {
|
|
217999
|
-
const { toolId, toolSelection, headers: headers2, agentToolRelationId } = canUseItem;
|
|
218033
|
+
const { toolId, toolSelection, headers: headers2, toolPolicies, agentToolRelationId } = canUseItem;
|
|
218000
218034
|
const isFunctionTool = typedAgentDefinition.functionTools && toolId in typedAgentDefinition.functionTools;
|
|
218001
218035
|
if (isFunctionTool) {
|
|
218002
218036
|
logger10.info(
|
|
@@ -218019,8 +218053,14 @@ var updateFullAgentServerSide = (db, logger10 = defaultLogger) => async (scopes,
|
|
|
218019
218053
|
scopes: { tenantId, projectId, agentId: finalAgentId },
|
|
218020
218054
|
subAgentId,
|
|
218021
218055
|
toolId,
|
|
218022
|
-
|
|
218023
|
-
|
|
218056
|
+
// Preserve null vs undefined distinction:
|
|
218057
|
+
// - null = all tools (updates DB to NULL)
|
|
218058
|
+
// - undefined = don't change (Drizzle skips field)
|
|
218059
|
+
// - [] = zero tools
|
|
218060
|
+
// - ['tool1', ...] = specific tools
|
|
218061
|
+
selectedTools: toolSelection,
|
|
218062
|
+
headers: headers2,
|
|
218063
|
+
toolPolicies,
|
|
218024
218064
|
relationId: agentToolRelationId
|
|
218025
218065
|
});
|
|
218026
218066
|
logger10.info(
|
|
@@ -219257,12 +219297,7 @@ var getPendingInvitationsByEmail = (db) => async (email) => {
|
|
|
219257
219297
|
status: invitation.status,
|
|
219258
219298
|
expiresAt: invitation.expiresAt,
|
|
219259
219299
|
inviterId: invitation.inviterId
|
|
219260
|
-
}).from(invitation).leftJoin(organization, eq(invitation.organizationId, organization.id)).where(
|
|
219261
|
-
and(
|
|
219262
|
-
eq(invitation.email, email),
|
|
219263
|
-
eq(invitation.status, "pending")
|
|
219264
|
-
)
|
|
219265
|
-
);
|
|
219300
|
+
}).from(invitation).leftJoin(organization, eq(invitation.organizationId, organization.id)).where(and(eq(invitation.email, email), eq(invitation.status, "pending")));
|
|
219266
219301
|
return result.filter((inv) => new Date(inv.expiresAt) > now);
|
|
219267
219302
|
};
|
|
219268
219303
|
var addUserToOrganization = (db) => async (data) => {
|
|
@@ -220165,6 +220200,203 @@ var updateFullProjectServerSide = (db, logger10 = defaultLogger2) => async (scop
|
|
|
220165
220200
|
"All project artifactComponents updated successfully"
|
|
220166
220201
|
);
|
|
220167
220202
|
}
|
|
220203
|
+
const incomingToolIds = new Set(Object.keys(typed.tools || {}));
|
|
220204
|
+
const existingToolsResult = await listTools(db)({
|
|
220205
|
+
scopes: { tenantId, projectId: typed.id },
|
|
220206
|
+
pagination: { page: 1, limit: 1e3 }
|
|
220207
|
+
});
|
|
220208
|
+
const existingTools = existingToolsResult.data;
|
|
220209
|
+
let deletedToolCount = 0;
|
|
220210
|
+
for (const tool of existingTools) {
|
|
220211
|
+
if (!incomingToolIds.has(tool.id)) {
|
|
220212
|
+
try {
|
|
220213
|
+
await deleteTool(db)({
|
|
220214
|
+
toolId: tool.id,
|
|
220215
|
+
scopes: { tenantId, projectId: typed.id }
|
|
220216
|
+
});
|
|
220217
|
+
deletedToolCount++;
|
|
220218
|
+
logger10.info({ toolId: tool.id }, "Deleted orphaned tool from project");
|
|
220219
|
+
} catch (error) {
|
|
220220
|
+
logger10.error({ toolId: tool.id, error }, "Failed to delete orphaned tool from project");
|
|
220221
|
+
}
|
|
220222
|
+
}
|
|
220223
|
+
}
|
|
220224
|
+
if (deletedToolCount > 0) {
|
|
220225
|
+
logger10.info(
|
|
220226
|
+
{
|
|
220227
|
+
deletedToolCount,
|
|
220228
|
+
projectId: typed.id
|
|
220229
|
+
},
|
|
220230
|
+
"Deleted orphaned tools from project"
|
|
220231
|
+
);
|
|
220232
|
+
}
|
|
220233
|
+
const incomingFunctionIds = new Set(Object.keys(typed.functions || {}));
|
|
220234
|
+
const existingFunctions = await listFunctions(db)({
|
|
220235
|
+
scopes: { tenantId, projectId: typed.id }
|
|
220236
|
+
});
|
|
220237
|
+
let deletedFunctionCount = 0;
|
|
220238
|
+
for (const func of existingFunctions) {
|
|
220239
|
+
if (!incomingFunctionIds.has(func.id)) {
|
|
220240
|
+
try {
|
|
220241
|
+
await deleteFunction(db)({
|
|
220242
|
+
functionId: func.id,
|
|
220243
|
+
scopes: { tenantId, projectId: typed.id }
|
|
220244
|
+
});
|
|
220245
|
+
deletedFunctionCount++;
|
|
220246
|
+
logger10.info({ functionId: func.id }, "Deleted orphaned function from project");
|
|
220247
|
+
} catch (error) {
|
|
220248
|
+
logger10.error(
|
|
220249
|
+
{ functionId: func.id, error },
|
|
220250
|
+
"Failed to delete orphaned function from project"
|
|
220251
|
+
);
|
|
220252
|
+
}
|
|
220253
|
+
}
|
|
220254
|
+
}
|
|
220255
|
+
if (deletedFunctionCount > 0) {
|
|
220256
|
+
logger10.info(
|
|
220257
|
+
{
|
|
220258
|
+
deletedFunctionCount,
|
|
220259
|
+
projectId: typed.id
|
|
220260
|
+
},
|
|
220261
|
+
"Deleted orphaned functions from project"
|
|
220262
|
+
);
|
|
220263
|
+
}
|
|
220264
|
+
const incomingCredentialReferenceIds = new Set(Object.keys(typed.credentialReferences || {}));
|
|
220265
|
+
const existingCredentialReferences = await listCredentialReferences(db)({
|
|
220266
|
+
scopes: { tenantId, projectId: typed.id }
|
|
220267
|
+
});
|
|
220268
|
+
let deletedCredentialReferenceCount = 0;
|
|
220269
|
+
for (const credRef of existingCredentialReferences) {
|
|
220270
|
+
if (!incomingCredentialReferenceIds.has(credRef.id)) {
|
|
220271
|
+
try {
|
|
220272
|
+
await deleteCredentialReference(db)({
|
|
220273
|
+
id: credRef.id,
|
|
220274
|
+
scopes: { tenantId, projectId: typed.id }
|
|
220275
|
+
});
|
|
220276
|
+
deletedCredentialReferenceCount++;
|
|
220277
|
+
logger10.info(
|
|
220278
|
+
{ credentialReferenceId: credRef.id },
|
|
220279
|
+
"Deleted orphaned credentialReference from project"
|
|
220280
|
+
);
|
|
220281
|
+
} catch (error) {
|
|
220282
|
+
logger10.error(
|
|
220283
|
+
{ credentialReferenceId: credRef.id, error },
|
|
220284
|
+
"Failed to delete orphaned credentialReference from project"
|
|
220285
|
+
);
|
|
220286
|
+
}
|
|
220287
|
+
}
|
|
220288
|
+
}
|
|
220289
|
+
if (deletedCredentialReferenceCount > 0) {
|
|
220290
|
+
logger10.info(
|
|
220291
|
+
{
|
|
220292
|
+
deletedCredentialReferenceCount,
|
|
220293
|
+
projectId: typed.id
|
|
220294
|
+
},
|
|
220295
|
+
"Deleted orphaned credentialReferences from project"
|
|
220296
|
+
);
|
|
220297
|
+
}
|
|
220298
|
+
const incomingExternalAgentIds = new Set(Object.keys(typed.externalAgents || {}));
|
|
220299
|
+
const existingExternalAgents = await listExternalAgents(db)({
|
|
220300
|
+
scopes: { tenantId, projectId: typed.id }
|
|
220301
|
+
});
|
|
220302
|
+
let deletedExternalAgentCount = 0;
|
|
220303
|
+
for (const extAgent of existingExternalAgents) {
|
|
220304
|
+
if (!incomingExternalAgentIds.has(extAgent.id)) {
|
|
220305
|
+
try {
|
|
220306
|
+
await deleteExternalAgent(db)({
|
|
220307
|
+
externalAgentId: extAgent.id,
|
|
220308
|
+
scopes: { tenantId, projectId: typed.id }
|
|
220309
|
+
});
|
|
220310
|
+
deletedExternalAgentCount++;
|
|
220311
|
+
logger10.info(
|
|
220312
|
+
{ externalAgentId: extAgent.id },
|
|
220313
|
+
"Deleted orphaned externalAgent from project"
|
|
220314
|
+
);
|
|
220315
|
+
} catch (error) {
|
|
220316
|
+
logger10.error(
|
|
220317
|
+
{ externalAgentId: extAgent.id, error },
|
|
220318
|
+
"Failed to delete orphaned externalAgent from project"
|
|
220319
|
+
);
|
|
220320
|
+
}
|
|
220321
|
+
}
|
|
220322
|
+
}
|
|
220323
|
+
if (deletedExternalAgentCount > 0) {
|
|
220324
|
+
logger10.info(
|
|
220325
|
+
{
|
|
220326
|
+
deletedExternalAgentCount,
|
|
220327
|
+
projectId: typed.id
|
|
220328
|
+
},
|
|
220329
|
+
"Deleted orphaned externalAgents from project"
|
|
220330
|
+
);
|
|
220331
|
+
}
|
|
220332
|
+
const incomingDataComponentIds = new Set(Object.keys(typed.dataComponents || {}));
|
|
220333
|
+
const existingDataComponents = await listDataComponents(db)({
|
|
220334
|
+
scopes: { tenantId, projectId: typed.id }
|
|
220335
|
+
});
|
|
220336
|
+
let deletedDataComponentCount = 0;
|
|
220337
|
+
for (const dataComp of existingDataComponents) {
|
|
220338
|
+
if (!incomingDataComponentIds.has(dataComp.id)) {
|
|
220339
|
+
try {
|
|
220340
|
+
await deleteDataComponent(db)({
|
|
220341
|
+
dataComponentId: dataComp.id,
|
|
220342
|
+
scopes: { tenantId, projectId: typed.id }
|
|
220343
|
+
});
|
|
220344
|
+
deletedDataComponentCount++;
|
|
220345
|
+
logger10.info(
|
|
220346
|
+
{ dataComponentId: dataComp.id },
|
|
220347
|
+
"Deleted orphaned dataComponent from project"
|
|
220348
|
+
);
|
|
220349
|
+
} catch (error) {
|
|
220350
|
+
logger10.error(
|
|
220351
|
+
{ dataComponentId: dataComp.id, error },
|
|
220352
|
+
"Failed to delete orphaned dataComponent from project"
|
|
220353
|
+
);
|
|
220354
|
+
}
|
|
220355
|
+
}
|
|
220356
|
+
}
|
|
220357
|
+
if (deletedDataComponentCount > 0) {
|
|
220358
|
+
logger10.info(
|
|
220359
|
+
{
|
|
220360
|
+
deletedDataComponentCount,
|
|
220361
|
+
projectId: typed.id
|
|
220362
|
+
},
|
|
220363
|
+
"Deleted orphaned dataComponents from project"
|
|
220364
|
+
);
|
|
220365
|
+
}
|
|
220366
|
+
const incomingArtifactComponentIds = new Set(Object.keys(typed.artifactComponents || {}));
|
|
220367
|
+
const existingArtifactComponents = await listArtifactComponents(db)({
|
|
220368
|
+
scopes: { tenantId, projectId: typed.id }
|
|
220369
|
+
});
|
|
220370
|
+
let deletedArtifactComponentCount = 0;
|
|
220371
|
+
for (const artifactComp of existingArtifactComponents) {
|
|
220372
|
+
if (!incomingArtifactComponentIds.has(artifactComp.id)) {
|
|
220373
|
+
try {
|
|
220374
|
+
await deleteArtifactComponent(db)({
|
|
220375
|
+
id: artifactComp.id,
|
|
220376
|
+
scopes: { tenantId, projectId: typed.id }
|
|
220377
|
+
});
|
|
220378
|
+
deletedArtifactComponentCount++;
|
|
220379
|
+
logger10.info(
|
|
220380
|
+
{ artifactComponentId: artifactComp.id },
|
|
220381
|
+
"Deleted orphaned artifactComponent from project"
|
|
220382
|
+
);
|
|
220383
|
+
} catch (error) {
|
|
220384
|
+
logger10.error(
|
|
220385
|
+
{ artifactComponentId: artifactComp.id, error },
|
|
220386
|
+
"Failed to delete orphaned artifactComponent from project"
|
|
220387
|
+
);
|
|
220388
|
+
}
|
|
220389
|
+
}
|
|
220390
|
+
}
|
|
220391
|
+
if (deletedArtifactComponentCount > 0) {
|
|
220392
|
+
logger10.info(
|
|
220393
|
+
{
|
|
220394
|
+
deletedArtifactComponentCount,
|
|
220395
|
+
projectId: typed.id
|
|
220396
|
+
},
|
|
220397
|
+
"Deleted orphaned artifactComponents from project"
|
|
220398
|
+
);
|
|
220399
|
+
}
|
|
220168
220400
|
const incomingAgentIds = new Set(Object.keys(typed.agents || {}));
|
|
220169
220401
|
const existingAgents = await listAgents(db)({
|
|
220170
220402
|
scopes: { tenantId, projectId: typed.id }
|
|
@@ -220409,34 +220641,23 @@ var getFullProject = (db, logger10 = defaultLogger2) => async (params) => {
|
|
|
220409
220641
|
}
|
|
220410
220642
|
const projectFunctions = {};
|
|
220411
220643
|
try {
|
|
220412
|
-
const
|
|
220413
|
-
|
|
220414
|
-
|
|
220415
|
-
|
|
220416
|
-
|
|
220417
|
-
|
|
220418
|
-
|
|
220419
|
-
|
|
220420
|
-
|
|
220421
|
-
for (const item of functionToolsWithFunctions) {
|
|
220422
|
-
projectFunctions[item.functionToolId] = {
|
|
220423
|
-
id: item.functionId,
|
|
220424
|
-
name: item.functionToolName,
|
|
220425
|
-
description: item.functionToolDescription,
|
|
220426
|
-
inputSchema: item.inputSchema,
|
|
220427
|
-
executeCode: item.executeCode,
|
|
220428
|
-
dependencies: item.dependencies
|
|
220644
|
+
const functionsList = await listFunctions(db)({
|
|
220645
|
+
scopes: { tenantId, projectId }
|
|
220646
|
+
});
|
|
220647
|
+
for (const func of functionsList) {
|
|
220648
|
+
projectFunctions[func.id] = {
|
|
220649
|
+
id: func.id,
|
|
220650
|
+
inputSchema: func.inputSchema,
|
|
220651
|
+
executeCode: func.executeCode,
|
|
220652
|
+
dependencies: func.dependencies
|
|
220429
220653
|
};
|
|
220430
220654
|
}
|
|
220431
220655
|
logger10.info(
|
|
220432
220656
|
{ tenantId, projectId, functionCount: Object.keys(projectFunctions).length },
|
|
220433
|
-
"
|
|
220657
|
+
"Functions retrieved for project"
|
|
220434
220658
|
);
|
|
220435
220659
|
} catch (error) {
|
|
220436
|
-
logger10.warn(
|
|
220437
|
-
{ tenantId, projectId, error },
|
|
220438
|
-
"Failed to retrieve function tools for project"
|
|
220439
|
-
);
|
|
220660
|
+
logger10.warn({ tenantId, projectId, error }, "Failed to retrieve functions for project");
|
|
220440
220661
|
}
|
|
220441
220662
|
const agents2 = {};
|
|
220442
220663
|
if (agentList.length > 0) {
|
|
@@ -222058,4 +222279,4 @@ typescript/lib/typescript.js:
|
|
|
222058
222279
|
***************************************************************************** *)
|
|
222059
222280
|
*/
|
|
222060
222281
|
|
|
222061
|
-
export { ContextCache, ContextConfigBuilder, ContextFetcher, ContextResolver, CredentialStuffer, HTTP_REQUEST_PARTS, TemplateEngine, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, addUserToOrganization, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createExternalAgent, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createMessage, 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, externalAgentExists, externalAgentUrlExists, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, 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, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithResources, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentsForSubAgent, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getLedgerArtifacts, getLedgerArtifactsByContext, getMessageById, getMessagesByConversation, getMessagesByTask, getPendingInvitationsByEmail, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getSubAgentById, getSubAgentExternalAgentRelationById, getSubAgentExternalAgentRelationByParams, getSubAgentExternalAgentRelations, getSubAgentExternalAgentRelationsByAgent, getSubAgentExternalAgentRelationsByExternalAgent, getSubAgentRelationsByTarget, getSubAgentTeamAgentRelationById, getSubAgentTeamAgentRelationByParams, getSubAgentTeamAgentRelations, getSubAgentTeamAgentRelationsByAgent, getSubAgentTeamAgentRelationsByTeamAgent, getSubAgentsByIds, getSubAgentsForExternalAgent, getSubAgentsForTeamAgent, getTask, getTeamAgentsForSubAgent, getToolById, getToolsForAgent, getUserByEmail, getUserById, getUserOrganizations, getVisibleMessages, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, 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, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, 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, validateHeaders, validateHttpRequestHeaders, validateProjectExists, validateSubAgent, validationHelper, withProjectValidation };
|
|
222282
|
+
export { ContextCache, ContextConfigBuilder, ContextFetcher, ContextResolver, CredentialStuffer, HTTP_REQUEST_PARTS, SubAgentIsDefaultError, TemplateEngine, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, addUserToOrganization, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createExternalAgent, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createMessage, 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, externalAgentExists, externalAgentUrlExists, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, 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, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithResources, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentsForSubAgent, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getLedgerArtifacts, getLedgerArtifactsByContext, getMessageById, getMessagesByConversation, getMessagesByTask, getPendingInvitationsByEmail, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getSubAgentById, getSubAgentExternalAgentRelationById, getSubAgentExternalAgentRelationByParams, getSubAgentExternalAgentRelations, getSubAgentExternalAgentRelationsByAgent, getSubAgentExternalAgentRelationsByExternalAgent, getSubAgentRelationsByTarget, getSubAgentTeamAgentRelationById, getSubAgentTeamAgentRelationByParams, getSubAgentTeamAgentRelations, getSubAgentTeamAgentRelationsByAgent, getSubAgentTeamAgentRelationsByTeamAgent, getSubAgentsByIds, getSubAgentsForExternalAgent, getSubAgentsForTeamAgent, getTask, getTeamAgentsForSubAgent, getToolById, getToolsForAgent, getUserByEmail, getUserById, getUserOrganizations, getVisibleMessages, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, 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, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, 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, validateHeaders, validateHttpRequestHeaders, validateProjectExists, validateSubAgent, validationHelper, withProjectValidation };
|