@inkeep/agents-core 0.37.2 → 0.38.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/auth-validation-schemas.js +1 -1
- package/dist/auth/auth.d.ts +4 -3
- package/dist/auth/auth.js +2 -2
- package/dist/{auth-detection-7G0Dxt55.d.ts → auth-detection-B8jOnR88.d.ts} +3 -0
- package/dist/chunk-3OPS2LN5.js +4 -0
- package/dist/{chunk-7CLFCY6J.js → chunk-7IQFIW44.js} +2 -0
- package/dist/{chunk-BJLC7EI4.js → chunk-AJCP2QYU.js} +1 -1
- package/dist/{chunk-6CYQZ5KX.js → chunk-AUGHKZEB.js} +41 -1
- package/dist/{chunk-5QZSNATS.js → chunk-CWAFZVRI.js} +1 -1
- package/dist/{chunk-ZSYMSL55.js → chunk-DW4DNYUS.js} +1 -1
- package/dist/{chunk-4JZT4QEE.js → chunk-KVVL5WLM.js} +1 -1
- package/dist/{chunk-DEYPSEXR.js → chunk-LH6OJIIM.js} +26 -11
- package/dist/{chunk-MQMMFK2K.js → chunk-NLLGMFQ6.js} +4 -1
- package/dist/{chunk-YSFXXC6K.js → chunk-S4XQEAAF.js} +7 -4
- package/dist/{chunk-XHODTX4H.js → chunk-UK63CULA.js} +7 -14
- package/dist/{chunk-3HACEHXF.js → chunk-VXHL7CJY.js} +73 -59
- package/dist/{client-B3nwdklT.d.ts → client-DG_xZdlN.d.ts} +1 -1
- package/dist/client-exports.d.ts +16 -9
- package/dist/client-exports.js +11 -5
- package/dist/constants/models.d.ts +2 -0
- package/dist/constants/models.js +1 -1
- package/dist/constants/schema-validation/index.js +1 -1
- package/dist/credential-stores/index.d.ts +5 -4
- package/dist/credential-stores/index.js +1 -1
- package/dist/db/schema.d.ts +2 -2
- package/dist/db/schema.js +1 -1
- package/dist/db/test-client.d.ts +3 -3
- package/dist/db/test-client.js +1 -1
- package/dist/index.d.ts +376 -335
- package/dist/index.js +223 -122
- package/dist/{schema-BhYTubhP.d.ts → schema-DA6PfmoP.d.ts} +83 -7
- package/dist/{server-CHLmv-Jb.d.ts → server-BviIeoo5.d.ts} +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/{utility-5USfJ5Xd.d.ts → utility-dsfXkYTu.d.ts} +1040 -387
- package/dist/utils/schema-conversion.d.ts +11 -1
- package/dist/utils/schema-conversion.js +1 -1
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/drizzle/0004_cuddly_shooting_star.sql +6 -0
- package/drizzle/0005_reflective_starfox.sql +9 -0
- package/drizzle/meta/{0002_snapshot.json → 0005_snapshot.json} +70 -14
- package/drizzle/meta/_journal.json +14 -0
- package/package.json +9 -9
- package/dist/{chunk-RUTYLJB7.js → chunk-ZIXAWYZI.js} +1 -1
package/dist/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
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, agents, subAgentTeamAgentRelations, credentialReferences, subAgentDataComponents, subAgentArtifactComponents, dataComponents, artifactComponents, projects, apiKeys, contextCache, conversations, messages, ledgerArtifacts, tasks, taskRelations } from './chunk-
|
|
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-DW4DNYUS.js';
|
|
2
|
+
import { validateRender, validateAndTypeAgentData, validateAgentStructure } from './chunk-CWAFZVRI.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-CWAFZVRI.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-AJCP2QYU.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-NLLGMFQ6.js';
|
|
6
|
+
import { ContextConfigApiUpdateSchema, validatePropsAsJsonSchema } from './chunk-UK63CULA.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-UK63CULA.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-LH6OJIIM.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-LH6OJIIM.js';
|
|
10
10
|
export { schemaValidationDefaults } from './chunk-Z64UK4CA.js';
|
|
11
|
-
import { getTracer, getCredentialStoreLookupKeyFromRetrievalParams, generateId, toISODateString, isThirdPartyMCPServerAuthenticated, createApiError, generateApiKey, extractPublicId, validateApiKey, isApiKeyExpired, getConversationId, setSpanWithError, getRequestExecutionContext, McpClient } from './chunk-
|
|
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-
|
|
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-
|
|
17
|
-
import { detectAuthenticationRequired } from './chunk-
|
|
18
|
-
export { detectAuthenticationRequired, exchangeMcpAuthorizationCode, initiateMcpOAuthFlow } from './chunk-
|
|
11
|
+
import { getTracer, getCredentialStoreLookupKeyFromRetrievalParams, generateId, toISODateString, isThirdPartyMCPServerAuthenticated, createApiError, generateApiKey, extractPublicId, validateApiKey, isApiKeyExpired, getConversationId, setSpanWithError, getRequestExecutionContext, McpClient } from './chunk-VXHL7CJY.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, getComposioOAuthRedirectUrl, getComposioUserId, getConversationId, getCredentialStoreLookupKeyFromRetrievalParams, getRequestExecutionContext, getTracer, handleApiError, hashApiKey, isApiKeyExpired, isComposioMCPServerAuthenticated, isThirdPartyMCPServerAuthenticated, maskApiKey, normalizeDateString, problemDetailsSchema, setSpanWithError, signTempToken, toISODateString, validateApiKey, validateTargetAgent, validateTenantId, verifyAuthorizationHeader, verifyServiceToken, verifyTempToken } from './chunk-VXHL7CJY.js';
|
|
13
|
+
import { convertZodToJsonSchema } from './chunk-AUGHKZEB.js';
|
|
14
|
+
export { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, isZodSchema, jsonSchemaToZod, preview } from './chunk-AUGHKZEB.js';
|
|
15
|
+
import { loadEnvironmentFiles, env } from './chunk-ZIXAWYZI.js';
|
|
16
|
+
export { loadEnvironmentFiles } from './chunk-ZIXAWYZI.js';
|
|
17
|
+
import { detectAuthenticationRequired } from './chunk-KVVL5WLM.js';
|
|
18
|
+
export { detectAuthenticationRequired, exchangeMcpAuthorizationCode, initiateMcpOAuthFlow } from './chunk-KVVL5WLM.js';
|
|
19
19
|
import { organization, member, invitation, user } from './chunk-GENLXHZ4.js';
|
|
20
20
|
export { account, invitation, member, organization, session, ssoProvider, user, verification } from './chunk-GENLXHZ4.js';
|
|
21
|
-
export { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS } from './chunk-
|
|
22
|
-
export { CredentialStoreRegistry, InMemoryCredentialStore, KeyChainStore, NangoCredentialStore, createDefaultCredentialStores, createKeyChainStore, createNangoCredentialStore } from './chunk-
|
|
21
|
+
export { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS } from './chunk-7IQFIW44.js';
|
|
22
|
+
export { CredentialStoreRegistry, InMemoryCredentialStore, KeyChainStore, NangoCredentialStore, createDefaultCredentialStores, createKeyChainStore, createNangoCredentialStore } from './chunk-S4XQEAAF.js';
|
|
23
23
|
import { getLogger } from './chunk-DN4B564Y.js';
|
|
24
24
|
export { PinoLogger, getLogger, loggerFactory } from './chunk-DN4B564Y.js';
|
|
25
25
|
export { TaskState, normalizeToolSelections } from './chunk-CMNLBV2A.js';
|
|
@@ -38,15 +38,15 @@ import { SpanStatusCode } from '@opentelemetry/api';
|
|
|
38
38
|
|
|
39
39
|
// ../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64.js
|
|
40
40
|
var require_base64 = __commonJS({
|
|
41
|
-
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64.js"(exports) {
|
|
41
|
+
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64.js"(exports$1) {
|
|
42
42
|
var intToCharMap = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
|
|
43
|
-
exports.encode = function(number) {
|
|
43
|
+
exports$1.encode = function(number) {
|
|
44
44
|
if (0 <= number && number < intToCharMap.length) {
|
|
45
45
|
return intToCharMap[number];
|
|
46
46
|
}
|
|
47
47
|
throw new TypeError("Must be between 0 and 63: " + number);
|
|
48
48
|
};
|
|
49
|
-
exports.decode = function(charCode) {
|
|
49
|
+
exports$1.decode = function(charCode) {
|
|
50
50
|
var bigA = 65;
|
|
51
51
|
var bigZ = 90;
|
|
52
52
|
var littleA = 97;
|
|
@@ -79,7 +79,7 @@ var require_base64 = __commonJS({
|
|
|
79
79
|
|
|
80
80
|
// ../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js
|
|
81
81
|
var require_base64_vlq = __commonJS({
|
|
82
|
-
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js"(exports) {
|
|
82
|
+
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js"(exports$1) {
|
|
83
83
|
var base64 = require_base64();
|
|
84
84
|
var VLQ_BASE_SHIFT = 5;
|
|
85
85
|
var VLQ_BASE = 1 << VLQ_BASE_SHIFT;
|
|
@@ -93,7 +93,7 @@ var require_base64_vlq = __commonJS({
|
|
|
93
93
|
var shifted = aValue >> 1;
|
|
94
94
|
return isNegative ? -shifted : shifted;
|
|
95
95
|
}
|
|
96
|
-
exports.encode = function base64VLQ_encode(aValue) {
|
|
96
|
+
exports$1.encode = function base64VLQ_encode(aValue) {
|
|
97
97
|
var encoded = "";
|
|
98
98
|
var digit;
|
|
99
99
|
var vlq = toVLQSigned(aValue);
|
|
@@ -107,7 +107,7 @@ var require_base64_vlq = __commonJS({
|
|
|
107
107
|
} while (vlq > 0);
|
|
108
108
|
return encoded;
|
|
109
109
|
};
|
|
110
|
-
exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) {
|
|
110
|
+
exports$1.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) {
|
|
111
111
|
var strLen = aStr.length;
|
|
112
112
|
var result = 0;
|
|
113
113
|
var shift = 0;
|
|
@@ -133,7 +133,7 @@ var require_base64_vlq = __commonJS({
|
|
|
133
133
|
|
|
134
134
|
// ../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js
|
|
135
135
|
var require_util = __commonJS({
|
|
136
|
-
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js"(exports) {
|
|
136
|
+
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js"(exports$1) {
|
|
137
137
|
function getArg(aArgs, aName, aDefaultValue) {
|
|
138
138
|
if (aName in aArgs) {
|
|
139
139
|
return aArgs[aName];
|
|
@@ -143,7 +143,7 @@ var require_util = __commonJS({
|
|
|
143
143
|
throw new Error('"' + aName + '" is a required argument.');
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
|
-
exports.getArg = getArg;
|
|
146
|
+
exports$1.getArg = getArg;
|
|
147
147
|
var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/;
|
|
148
148
|
var dataUrlRegexp = /^data:.+\,.+$/;
|
|
149
149
|
function urlParse(aUrl) {
|
|
@@ -159,7 +159,7 @@ var require_util = __commonJS({
|
|
|
159
159
|
path: match[5]
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
|
-
exports.urlParse = urlParse;
|
|
162
|
+
exports$1.urlParse = urlParse;
|
|
163
163
|
function urlGenerate(aParsedUrl) {
|
|
164
164
|
var url = "";
|
|
165
165
|
if (aParsedUrl.scheme) {
|
|
@@ -180,7 +180,7 @@ var require_util = __commonJS({
|
|
|
180
180
|
}
|
|
181
181
|
return url;
|
|
182
182
|
}
|
|
183
|
-
exports.urlGenerate = urlGenerate;
|
|
183
|
+
exports$1.urlGenerate = urlGenerate;
|
|
184
184
|
function normalize(aPath) {
|
|
185
185
|
var path = aPath;
|
|
186
186
|
var url = urlParse(aPath);
|
|
@@ -190,7 +190,7 @@ var require_util = __commonJS({
|
|
|
190
190
|
}
|
|
191
191
|
path = url.path;
|
|
192
192
|
}
|
|
193
|
-
var isAbsolute = exports.isAbsolute(path);
|
|
193
|
+
var isAbsolute = exports$1.isAbsolute(path);
|
|
194
194
|
var parts = path.split(/\/+/);
|
|
195
195
|
for (var part, up = 0, i = parts.length - 1; i >= 0; i--) {
|
|
196
196
|
part = parts[i];
|
|
@@ -218,7 +218,7 @@ var require_util = __commonJS({
|
|
|
218
218
|
}
|
|
219
219
|
return path;
|
|
220
220
|
}
|
|
221
|
-
exports.normalize = normalize;
|
|
221
|
+
exports$1.normalize = normalize;
|
|
222
222
|
function join(aRoot, aPath) {
|
|
223
223
|
if (aRoot === "") {
|
|
224
224
|
aRoot = ".";
|
|
@@ -251,8 +251,8 @@ var require_util = __commonJS({
|
|
|
251
251
|
}
|
|
252
252
|
return joined;
|
|
253
253
|
}
|
|
254
|
-
exports.join = join;
|
|
255
|
-
exports.isAbsolute = function(aPath) {
|
|
254
|
+
exports$1.join = join;
|
|
255
|
+
exports$1.isAbsolute = function(aPath) {
|
|
256
256
|
return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
|
|
257
257
|
};
|
|
258
258
|
function relative(aRoot, aPath) {
|
|
@@ -274,7 +274,7 @@ var require_util = __commonJS({
|
|
|
274
274
|
}
|
|
275
275
|
return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1);
|
|
276
276
|
}
|
|
277
|
-
exports.relative = relative;
|
|
277
|
+
exports$1.relative = relative;
|
|
278
278
|
var supportsNullProto = (function() {
|
|
279
279
|
var obj = /* @__PURE__ */ Object.create(null);
|
|
280
280
|
return !("__proto__" in obj);
|
|
@@ -288,14 +288,14 @@ var require_util = __commonJS({
|
|
|
288
288
|
}
|
|
289
289
|
return aStr;
|
|
290
290
|
}
|
|
291
|
-
exports.toSetString = supportsNullProto ? identity : toSetString;
|
|
291
|
+
exports$1.toSetString = supportsNullProto ? identity : toSetString;
|
|
292
292
|
function fromSetString(aStr) {
|
|
293
293
|
if (isProtoString(aStr)) {
|
|
294
294
|
return aStr.slice(1);
|
|
295
295
|
}
|
|
296
296
|
return aStr;
|
|
297
297
|
}
|
|
298
|
-
exports.fromSetString = supportsNullProto ? identity : fromSetString;
|
|
298
|
+
exports$1.fromSetString = supportsNullProto ? identity : fromSetString;
|
|
299
299
|
function isProtoString(s) {
|
|
300
300
|
if (!s) {
|
|
301
301
|
return false;
|
|
@@ -337,7 +337,7 @@ var require_util = __commonJS({
|
|
|
337
337
|
}
|
|
338
338
|
return strcmp(mappingA.name, mappingB.name);
|
|
339
339
|
}
|
|
340
|
-
exports.compareByOriginalPositions = compareByOriginalPositions;
|
|
340
|
+
exports$1.compareByOriginalPositions = compareByOriginalPositions;
|
|
341
341
|
function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) {
|
|
342
342
|
var cmp = mappingA.generatedLine - mappingB.generatedLine;
|
|
343
343
|
if (cmp !== 0) {
|
|
@@ -361,7 +361,7 @@ var require_util = __commonJS({
|
|
|
361
361
|
}
|
|
362
362
|
return strcmp(mappingA.name, mappingB.name);
|
|
363
363
|
}
|
|
364
|
-
exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;
|
|
364
|
+
exports$1.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;
|
|
365
365
|
function strcmp(aStr1, aStr2) {
|
|
366
366
|
if (aStr1 === aStr2) {
|
|
367
367
|
return 0;
|
|
@@ -400,11 +400,11 @@ var require_util = __commonJS({
|
|
|
400
400
|
}
|
|
401
401
|
return strcmp(mappingA.name, mappingB.name);
|
|
402
402
|
}
|
|
403
|
-
exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;
|
|
403
|
+
exports$1.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;
|
|
404
404
|
function parseSourceMapInput(str) {
|
|
405
405
|
return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, ""));
|
|
406
406
|
}
|
|
407
|
-
exports.parseSourceMapInput = parseSourceMapInput;
|
|
407
|
+
exports$1.parseSourceMapInput = parseSourceMapInput;
|
|
408
408
|
function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) {
|
|
409
409
|
sourceURL = sourceURL || "";
|
|
410
410
|
if (sourceRoot) {
|
|
@@ -428,13 +428,13 @@ var require_util = __commonJS({
|
|
|
428
428
|
}
|
|
429
429
|
return normalize(sourceURL);
|
|
430
430
|
}
|
|
431
|
-
exports.computeSourceURL = computeSourceURL;
|
|
431
|
+
exports$1.computeSourceURL = computeSourceURL;
|
|
432
432
|
}
|
|
433
433
|
});
|
|
434
434
|
|
|
435
435
|
// ../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js
|
|
436
436
|
var require_array_set = __commonJS({
|
|
437
|
-
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js"(exports) {
|
|
437
|
+
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js"(exports$1) {
|
|
438
438
|
var util = require_util();
|
|
439
439
|
var has = Object.prototype.hasOwnProperty;
|
|
440
440
|
var hasNativeMap = typeof Map !== "undefined";
|
|
@@ -498,13 +498,13 @@ var require_array_set = __commonJS({
|
|
|
498
498
|
ArraySet.prototype.toArray = function ArraySet_toArray() {
|
|
499
499
|
return this._array.slice();
|
|
500
500
|
};
|
|
501
|
-
exports.ArraySet = ArraySet;
|
|
501
|
+
exports$1.ArraySet = ArraySet;
|
|
502
502
|
}
|
|
503
503
|
});
|
|
504
504
|
|
|
505
505
|
// ../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/mapping-list.js
|
|
506
506
|
var require_mapping_list = __commonJS({
|
|
507
|
-
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/mapping-list.js"(exports) {
|
|
507
|
+
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/mapping-list.js"(exports$1) {
|
|
508
508
|
var util = require_util();
|
|
509
509
|
function generatedPositionAfter(mappingA, mappingB) {
|
|
510
510
|
var lineA = mappingA.generatedLine;
|
|
@@ -537,13 +537,13 @@ var require_mapping_list = __commonJS({
|
|
|
537
537
|
}
|
|
538
538
|
return this._array;
|
|
539
539
|
};
|
|
540
|
-
exports.MappingList = MappingList;
|
|
540
|
+
exports$1.MappingList = MappingList;
|
|
541
541
|
}
|
|
542
542
|
});
|
|
543
543
|
|
|
544
544
|
// ../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js
|
|
545
545
|
var require_source_map_generator = __commonJS({
|
|
546
|
-
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js"(exports) {
|
|
546
|
+
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js"(exports$1) {
|
|
547
547
|
var base64VLQ = require_base64_vlq();
|
|
548
548
|
var util = require_util();
|
|
549
549
|
var ArraySet = require_array_set().ArraySet;
|
|
@@ -813,15 +813,15 @@ var require_source_map_generator = __commonJS({
|
|
|
813
813
|
SourceMapGenerator.prototype.toString = function SourceMapGenerator_toString() {
|
|
814
814
|
return JSON.stringify(this.toJSON());
|
|
815
815
|
};
|
|
816
|
-
exports.SourceMapGenerator = SourceMapGenerator;
|
|
816
|
+
exports$1.SourceMapGenerator = SourceMapGenerator;
|
|
817
817
|
}
|
|
818
818
|
});
|
|
819
819
|
|
|
820
820
|
// ../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/binary-search.js
|
|
821
821
|
var require_binary_search = __commonJS({
|
|
822
|
-
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/binary-search.js"(exports) {
|
|
823
|
-
exports.GREATEST_LOWER_BOUND = 1;
|
|
824
|
-
exports.LEAST_UPPER_BOUND = 2;
|
|
822
|
+
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/binary-search.js"(exports$1) {
|
|
823
|
+
exports$1.GREATEST_LOWER_BOUND = 1;
|
|
824
|
+
exports$1.LEAST_UPPER_BOUND = 2;
|
|
825
825
|
function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) {
|
|
826
826
|
var mid = Math.floor((aHigh - aLow) / 2) + aLow;
|
|
827
827
|
var cmp = aCompare(aNeedle, aHaystack[mid], true);
|
|
@@ -831,7 +831,7 @@ var require_binary_search = __commonJS({
|
|
|
831
831
|
if (aHigh - mid > 1) {
|
|
832
832
|
return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias);
|
|
833
833
|
}
|
|
834
|
-
if (aBias == exports.LEAST_UPPER_BOUND) {
|
|
834
|
+
if (aBias == exports$1.LEAST_UPPER_BOUND) {
|
|
835
835
|
return aHigh < aHaystack.length ? aHigh : -1;
|
|
836
836
|
} else {
|
|
837
837
|
return mid;
|
|
@@ -840,14 +840,14 @@ var require_binary_search = __commonJS({
|
|
|
840
840
|
if (mid - aLow > 1) {
|
|
841
841
|
return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias);
|
|
842
842
|
}
|
|
843
|
-
if (aBias == exports.LEAST_UPPER_BOUND) {
|
|
843
|
+
if (aBias == exports$1.LEAST_UPPER_BOUND) {
|
|
844
844
|
return mid;
|
|
845
845
|
} else {
|
|
846
846
|
return aLow < 0 ? -1 : aLow;
|
|
847
847
|
}
|
|
848
848
|
}
|
|
849
849
|
}
|
|
850
|
-
exports.search = function search(aNeedle, aHaystack, aCompare, aBias) {
|
|
850
|
+
exports$1.search = function search(aNeedle, aHaystack, aCompare, aBias) {
|
|
851
851
|
if (aHaystack.length === 0) {
|
|
852
852
|
return -1;
|
|
853
853
|
}
|
|
@@ -857,7 +857,7 @@ var require_binary_search = __commonJS({
|
|
|
857
857
|
aNeedle,
|
|
858
858
|
aHaystack,
|
|
859
859
|
aCompare,
|
|
860
|
-
aBias || exports.GREATEST_LOWER_BOUND
|
|
860
|
+
aBias || exports$1.GREATEST_LOWER_BOUND
|
|
861
861
|
);
|
|
862
862
|
if (index < 0) {
|
|
863
863
|
return -1;
|
|
@@ -875,7 +875,7 @@ var require_binary_search = __commonJS({
|
|
|
875
875
|
|
|
876
876
|
// ../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js
|
|
877
877
|
var require_quick_sort = __commonJS({
|
|
878
|
-
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js"(exports) {
|
|
878
|
+
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js"(exports$1) {
|
|
879
879
|
function swap(ary, x, y) {
|
|
880
880
|
var temp = ary[x];
|
|
881
881
|
ary[x] = ary[y];
|
|
@@ -902,7 +902,7 @@ var require_quick_sort = __commonJS({
|
|
|
902
902
|
doQuickSort(ary, comparator, q + 1, r);
|
|
903
903
|
}
|
|
904
904
|
}
|
|
905
|
-
exports.quickSort = function(ary, comparator) {
|
|
905
|
+
exports$1.quickSort = function(ary, comparator) {
|
|
906
906
|
doQuickSort(ary, comparator, 0, ary.length - 1);
|
|
907
907
|
};
|
|
908
908
|
}
|
|
@@ -910,7 +910,7 @@ var require_quick_sort = __commonJS({
|
|
|
910
910
|
|
|
911
911
|
// ../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-consumer.js
|
|
912
912
|
var require_source_map_consumer = __commonJS({
|
|
913
|
-
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-consumer.js"(exports) {
|
|
913
|
+
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-consumer.js"(exports$1) {
|
|
914
914
|
var util = require_util();
|
|
915
915
|
var binarySearch = require_binary_search();
|
|
916
916
|
var ArraySet = require_array_set().ArraySet;
|
|
@@ -1034,7 +1034,7 @@ var require_source_map_consumer = __commonJS({
|
|
|
1034
1034
|
}
|
|
1035
1035
|
return mappings;
|
|
1036
1036
|
};
|
|
1037
|
-
exports.SourceMapConsumer = SourceMapConsumer;
|
|
1037
|
+
exports$1.SourceMapConsumer = SourceMapConsumer;
|
|
1038
1038
|
function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) {
|
|
1039
1039
|
var sourceMap = aSourceMap;
|
|
1040
1040
|
if (typeof aSourceMap === "string") {
|
|
@@ -1347,7 +1347,7 @@ var require_source_map_consumer = __commonJS({
|
|
|
1347
1347
|
lastColumn: null
|
|
1348
1348
|
};
|
|
1349
1349
|
};
|
|
1350
|
-
exports.BasicSourceMapConsumer = BasicSourceMapConsumer;
|
|
1350
|
+
exports$1.BasicSourceMapConsumer = BasicSourceMapConsumer;
|
|
1351
1351
|
function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) {
|
|
1352
1352
|
var sourceMap = aSourceMap;
|
|
1353
1353
|
if (typeof aSourceMap === "string") {
|
|
@@ -1505,13 +1505,13 @@ var require_source_map_consumer = __commonJS({
|
|
|
1505
1505
|
quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated);
|
|
1506
1506
|
quickSort(this.__originalMappings, util.compareByOriginalPositions);
|
|
1507
1507
|
};
|
|
1508
|
-
exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer;
|
|
1508
|
+
exports$1.IndexedSourceMapConsumer = IndexedSourceMapConsumer;
|
|
1509
1509
|
}
|
|
1510
1510
|
});
|
|
1511
1511
|
|
|
1512
1512
|
// ../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-node.js
|
|
1513
1513
|
var require_source_node = __commonJS({
|
|
1514
|
-
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-node.js"(exports) {
|
|
1514
|
+
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-node.js"(exports$1) {
|
|
1515
1515
|
var SourceMapGenerator = require_source_map_generator().SourceMapGenerator;
|
|
1516
1516
|
var util = require_util();
|
|
1517
1517
|
var REGEX_NEWLINE = /(\r?\n)/;
|
|
@@ -1770,22 +1770,22 @@ var require_source_node = __commonJS({
|
|
|
1770
1770
|
});
|
|
1771
1771
|
return { code: generated.code, map };
|
|
1772
1772
|
};
|
|
1773
|
-
exports.SourceNode = SourceNode;
|
|
1773
|
+
exports$1.SourceNode = SourceNode;
|
|
1774
1774
|
}
|
|
1775
1775
|
});
|
|
1776
1776
|
|
|
1777
1777
|
// ../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js
|
|
1778
1778
|
var require_source_map = __commonJS({
|
|
1779
|
-
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js"(exports) {
|
|
1780
|
-
exports.SourceMapGenerator = require_source_map_generator().SourceMapGenerator;
|
|
1781
|
-
exports.SourceMapConsumer = require_source_map_consumer().SourceMapConsumer;
|
|
1782
|
-
exports.SourceNode = require_source_node().SourceNode;
|
|
1779
|
+
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js"(exports$1) {
|
|
1780
|
+
exports$1.SourceMapGenerator = require_source_map_generator().SourceMapGenerator;
|
|
1781
|
+
exports$1.SourceMapConsumer = require_source_map_consumer().SourceMapConsumer;
|
|
1782
|
+
exports$1.SourceNode = require_source_node().SourceNode;
|
|
1783
1783
|
}
|
|
1784
1784
|
});
|
|
1785
1785
|
|
|
1786
1786
|
// ../../node_modules/.pnpm/buffer-from@1.1.2/node_modules/buffer-from/index.js
|
|
1787
1787
|
var require_buffer_from = __commonJS({
|
|
1788
|
-
"../../node_modules/.pnpm/buffer-from@1.1.2/node_modules/buffer-from/index.js"(exports, module) {
|
|
1788
|
+
"../../node_modules/.pnpm/buffer-from@1.1.2/node_modules/buffer-from/index.js"(exports$1, module) {
|
|
1789
1789
|
var toString = Object.prototype.toString;
|
|
1790
1790
|
var isModern = typeof Buffer !== "undefined" && typeof Buffer.alloc === "function" && typeof Buffer.allocUnsafe === "function" && typeof Buffer.from === "function";
|
|
1791
1791
|
function isArrayBuffer(input) {
|
|
@@ -1834,7 +1834,7 @@ var require_buffer_from = __commonJS({
|
|
|
1834
1834
|
|
|
1835
1835
|
// ../../node_modules/.pnpm/source-map-support@0.5.21/node_modules/source-map-support/source-map-support.js
|
|
1836
1836
|
var require_source_map_support = __commonJS({
|
|
1837
|
-
"../../node_modules/.pnpm/source-map-support@0.5.21/node_modules/source-map-support/source-map-support.js"(exports, module) {
|
|
1837
|
+
"../../node_modules/.pnpm/source-map-support@0.5.21/node_modules/source-map-support/source-map-support.js"(exports$1, module) {
|
|
1838
1838
|
var SourceMapConsumer = require_source_map().SourceMapConsumer;
|
|
1839
1839
|
var path = __require("path");
|
|
1840
1840
|
var fs;
|
|
@@ -2233,11 +2233,11 @@ var require_source_map_support = __commonJS({
|
|
|
2233
2233
|
}
|
|
2234
2234
|
var originalRetrieveFileHandlers = retrieveFileHandlers.slice(0);
|
|
2235
2235
|
var originalRetrieveMapHandlers = retrieveMapHandlers.slice(0);
|
|
2236
|
-
exports.wrapCallSite = wrapCallSite;
|
|
2237
|
-
exports.getErrorSource = getErrorSource;
|
|
2238
|
-
exports.mapSourcePosition = mapSourcePosition;
|
|
2239
|
-
exports.retrieveSourceMap = retrieveSourceMap;
|
|
2240
|
-
exports.install = function(options) {
|
|
2236
|
+
exports$1.wrapCallSite = wrapCallSite;
|
|
2237
|
+
exports$1.getErrorSource = getErrorSource;
|
|
2238
|
+
exports$1.mapSourcePosition = mapSourcePosition;
|
|
2239
|
+
exports$1.retrieveSourceMap = retrieveSourceMap;
|
|
2240
|
+
exports$1.install = function(options) {
|
|
2241
2241
|
options = options || {};
|
|
2242
2242
|
if (options.environment) {
|
|
2243
2243
|
environment = options.environment;
|
|
@@ -2291,7 +2291,7 @@ var require_source_map_support = __commonJS({
|
|
|
2291
2291
|
}
|
|
2292
2292
|
}
|
|
2293
2293
|
};
|
|
2294
|
-
exports.resetRetrieveHandlers = function() {
|
|
2294
|
+
exports$1.resetRetrieveHandlers = function() {
|
|
2295
2295
|
retrieveFileHandlers.length = 0;
|
|
2296
2296
|
retrieveMapHandlers.length = 0;
|
|
2297
2297
|
retrieveFileHandlers = originalRetrieveFileHandlers.slice(0);
|
|
@@ -2304,7 +2304,7 @@ var require_source_map_support = __commonJS({
|
|
|
2304
2304
|
|
|
2305
2305
|
// ../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js
|
|
2306
2306
|
var require_typescript = __commonJS({
|
|
2307
|
-
"../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js"(exports, module) {
|
|
2307
|
+
"../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js"(exports$1, module) {
|
|
2308
2308
|
var ts2 = {};
|
|
2309
2309
|
((module2) => {
|
|
2310
2310
|
var __defProp = Object.defineProperty;
|
|
@@ -213175,6 +213175,9 @@ function fetchDefinition(options) {
|
|
|
213175
213175
|
if (fetchConfig.timeout !== void 0) {
|
|
213176
213176
|
result.fetchConfig.timeout = fetchConfig.timeout;
|
|
213177
213177
|
}
|
|
213178
|
+
if (fetchConfig.requiredToFetch !== void 0) {
|
|
213179
|
+
result.fetchConfig.requiredToFetch = fetchConfig.requiredToFetch;
|
|
213180
|
+
}
|
|
213178
213181
|
if (options.credentialReference?.id !== void 0) {
|
|
213179
213182
|
result.credentialReferenceId = options.credentialReference.id;
|
|
213180
213183
|
}
|
|
@@ -214600,7 +214603,8 @@ var getRelatedAgentsForAgent = (db) => async (params) => {
|
|
|
214600
214603
|
id: subAgents.id,
|
|
214601
214604
|
name: subAgents.name,
|
|
214602
214605
|
description: subAgents.description,
|
|
214603
|
-
relationType: subAgentRelations.relationType
|
|
214606
|
+
relationType: subAgentRelations.relationType,
|
|
214607
|
+
relationId: subAgentRelations.id
|
|
214604
214608
|
}).from(subAgentRelations).innerJoin(
|
|
214605
214609
|
subAgents,
|
|
214606
214610
|
and(
|
|
@@ -214874,6 +214878,7 @@ var getToolsForAgent = (db) => async (params) => {
|
|
|
214874
214878
|
capabilities: tools.capabilities,
|
|
214875
214879
|
lastError: tools.lastError,
|
|
214876
214880
|
credentialReferenceId: tools.credentialReferenceId,
|
|
214881
|
+
credentialScope: tools.credentialScope,
|
|
214877
214882
|
tenantId: tools.tenantId,
|
|
214878
214883
|
projectId: tools.projectId,
|
|
214879
214884
|
headers: tools.headers,
|
|
@@ -215411,6 +215416,16 @@ var getCredentialReference = (db) => async (params) => {
|
|
|
215411
215416
|
)
|
|
215412
215417
|
});
|
|
215413
215418
|
};
|
|
215419
|
+
var getUserScopedCredentialReference = (db) => async (params) => {
|
|
215420
|
+
return await db.query.credentialReferences.findFirst({
|
|
215421
|
+
where: and(
|
|
215422
|
+
eq(credentialReferences.tenantId, params.scopes.tenantId),
|
|
215423
|
+
eq(credentialReferences.projectId, params.scopes.projectId),
|
|
215424
|
+
eq(credentialReferences.toolId, params.toolId),
|
|
215425
|
+
eq(credentialReferences.userId, params.userId)
|
|
215426
|
+
)
|
|
215427
|
+
});
|
|
215428
|
+
};
|
|
215414
215429
|
var getCredentialReferenceWithResources = (db) => async (params) => {
|
|
215415
215430
|
const [credential, relatedTools, relatedExternalAgents] = await Promise.all([
|
|
215416
215431
|
db.query.credentialReferences.findFirst({
|
|
@@ -215570,6 +215585,27 @@ var upsertCredentialReference = (db) => async (params) => {
|
|
|
215570
215585
|
|
|
215571
215586
|
// src/data-access/tools.ts
|
|
215572
215587
|
var logger4 = getLogger("tools");
|
|
215588
|
+
async function getCredentialExpiresAt(credentialReference, credentialStoreRegistry) {
|
|
215589
|
+
if (!credentialReference.retrievalParams) return void 0;
|
|
215590
|
+
const credentialStore = credentialStoreRegistry?.get(credentialReference.credentialStoreId);
|
|
215591
|
+
if (!credentialStore || credentialStore.type === CredentialStoreType.memory) return void 0;
|
|
215592
|
+
const lookupKey = getCredentialStoreLookupKeyFromRetrievalParams({
|
|
215593
|
+
retrievalParams: credentialReference.retrievalParams,
|
|
215594
|
+
credentialStoreType: credentialStore.type
|
|
215595
|
+
});
|
|
215596
|
+
if (!lookupKey) return void 0;
|
|
215597
|
+
const credentialDataString = await credentialStore.get(lookupKey);
|
|
215598
|
+
if (!credentialDataString) return void 0;
|
|
215599
|
+
if (credentialStore.type === CredentialStoreType.nango) {
|
|
215600
|
+
const nangoCredentialData = JSON.parse(credentialDataString);
|
|
215601
|
+
return nangoCredentialData.expiresAt ? toISODateString(nangoCredentialData.expiresAt) : void 0;
|
|
215602
|
+
}
|
|
215603
|
+
if (credentialStore.type === CredentialStoreType.keychain) {
|
|
215604
|
+
const oauthTokens = JSON.parse(credentialDataString);
|
|
215605
|
+
return oauthTokens.expires_at ? toISODateString(oauthTokens.expires_at) : void 0;
|
|
215606
|
+
}
|
|
215607
|
+
return void 0;
|
|
215608
|
+
}
|
|
215573
215609
|
function extractInputSchema(toolDef) {
|
|
215574
215610
|
if (toolDef.inputSchema) {
|
|
215575
215611
|
return toolDef.inputSchema;
|
|
@@ -215600,21 +215636,21 @@ var convertToMCPToolConfig = (tool) => {
|
|
|
215600
215636
|
headers: tool.headers
|
|
215601
215637
|
};
|
|
215602
215638
|
};
|
|
215603
|
-
var discoverToolsFromServer = async (tool, dbClient, credentialStoreRegistry) => {
|
|
215639
|
+
var discoverToolsFromServer = async (tool, dbClient, credentialStoreRegistry, userId) => {
|
|
215604
215640
|
if (tool.config.type !== "mcp") {
|
|
215605
215641
|
throw new Error(`Cannot discover tools from non-MCP tool: ${tool.id}`);
|
|
215606
215642
|
}
|
|
215607
215643
|
try {
|
|
215608
|
-
const credentialReferenceId = tool.credentialReferenceId;
|
|
215609
215644
|
let serverConfig;
|
|
215610
|
-
|
|
215611
|
-
|
|
215612
|
-
|
|
215613
|
-
|
|
215614
|
-
}
|
|
215615
|
-
|
|
215616
|
-
|
|
215617
|
-
|
|
215645
|
+
const credentialReference = tool.credentialReferenceId && tool.credentialScope !== "user" ? await getCredentialReference(dbClient)({
|
|
215646
|
+
scopes: { tenantId: tool.tenantId, projectId: tool.projectId },
|
|
215647
|
+
id: tool.credentialReferenceId
|
|
215648
|
+
}) : userId && tool.credentialScope === "user" ? await getUserScopedCredentialReference(dbClient)({
|
|
215649
|
+
scopes: { tenantId: tool.tenantId, projectId: tool.projectId },
|
|
215650
|
+
toolId: tool.id,
|
|
215651
|
+
userId
|
|
215652
|
+
}) : void 0;
|
|
215653
|
+
if (credentialReference) {
|
|
215618
215654
|
const storeReference = {
|
|
215619
215655
|
credentialStoreId: credentialReference.credentialStoreId,
|
|
215620
215656
|
retrievalParams: credentialReference.retrievalParams || {}
|
|
@@ -215653,6 +215689,16 @@ var discoverToolsFromServer = async (tool, dbClient, credentialStoreRegistry) =>
|
|
|
215653
215689
|
};
|
|
215654
215690
|
}
|
|
215655
215691
|
}
|
|
215692
|
+
if (serverConfig.url?.toString().includes("composio.dev")) {
|
|
215693
|
+
const urlObj = new URL(serverConfig.url.toString());
|
|
215694
|
+
if (tool.credentialScope === "user" && userId) {
|
|
215695
|
+
urlObj.searchParams.set("user_id", userId);
|
|
215696
|
+
} else {
|
|
215697
|
+
const SEPARATOR = "||";
|
|
215698
|
+
urlObj.searchParams.set("user_id", `${tool.tenantId}${SEPARATOR}${tool.projectId}`);
|
|
215699
|
+
}
|
|
215700
|
+
serverConfig.url = urlObj.toString();
|
|
215701
|
+
}
|
|
215656
215702
|
const client = new McpClient({
|
|
215657
215703
|
name: tool.name,
|
|
215658
215704
|
server: serverConfig
|
|
@@ -215673,7 +215719,7 @@ var discoverToolsFromServer = async (tool, dbClient, credentialStoreRegistry) =>
|
|
|
215673
215719
|
throw error;
|
|
215674
215720
|
}
|
|
215675
215721
|
};
|
|
215676
|
-
var dbResultToMcpTool = async (dbResult, dbClient, credentialStoreRegistry, relationshipId) => {
|
|
215722
|
+
var dbResultToMcpTool = async (dbResult, dbClient, credentialStoreRegistry, relationshipId, userId) => {
|
|
215677
215723
|
const { headers: headers2, capabilities, credentialReferenceId, imageUrl, createdAt, ...rest } = dbResult;
|
|
215678
215724
|
if (dbResult.config.type !== "mcp") {
|
|
215679
215725
|
return {
|
|
@@ -215694,40 +215740,27 @@ var dbResultToMcpTool = async (dbResult, dbClient, credentialStoreRegistry, rela
|
|
|
215694
215740
|
let status = "unknown";
|
|
215695
215741
|
let lastErrorComputed;
|
|
215696
215742
|
let expiresAt;
|
|
215697
|
-
|
|
215698
|
-
|
|
215699
|
-
|
|
215700
|
-
|
|
215701
|
-
|
|
215702
|
-
|
|
215703
|
-
|
|
215704
|
-
|
|
215705
|
-
|
|
215706
|
-
|
|
215707
|
-
|
|
215708
|
-
|
|
215709
|
-
if (lookupKey) {
|
|
215710
|
-
const credentialDataString = await credentialStore.get(lookupKey);
|
|
215711
|
-
if (credentialDataString) {
|
|
215712
|
-
if (credentialStore.type === CredentialStoreType.nango) {
|
|
215713
|
-
const nangoCredentialData = JSON.parse(credentialDataString);
|
|
215714
|
-
if (nangoCredentialData.expiresAt) {
|
|
215715
|
-
expiresAt = toISODateString(nangoCredentialData.expiresAt);
|
|
215716
|
-
}
|
|
215717
|
-
} else if (credentialStore.type === CredentialStoreType.keychain) {
|
|
215718
|
-
const oauthTokens = JSON.parse(credentialDataString);
|
|
215719
|
-
if (oauthTokens.expires_at) {
|
|
215720
|
-
expiresAt = toISODateString(oauthTokens.expires_at);
|
|
215721
|
-
}
|
|
215722
|
-
}
|
|
215723
|
-
}
|
|
215724
|
-
}
|
|
215725
|
-
}
|
|
215726
|
-
}
|
|
215743
|
+
let createdBy;
|
|
215744
|
+
const credentialReference = credentialReferenceId && dbResult.credentialScope !== "user" ? await getCredentialReference(dbClient)({
|
|
215745
|
+
scopes: { tenantId: dbResult.tenantId, projectId: dbResult.projectId },
|
|
215746
|
+
id: credentialReferenceId
|
|
215747
|
+
}) : userId && dbResult.credentialScope === "user" ? await getUserScopedCredentialReference(dbClient)({
|
|
215748
|
+
scopes: { tenantId: dbResult.tenantId, projectId: dbResult.projectId },
|
|
215749
|
+
toolId: dbResult.id,
|
|
215750
|
+
userId
|
|
215751
|
+
}) : void 0;
|
|
215752
|
+
if (credentialReference) {
|
|
215753
|
+
createdBy = credentialReference.createdBy || void 0;
|
|
215754
|
+
expiresAt = await getCredentialExpiresAt(credentialReference, credentialStoreRegistry);
|
|
215727
215755
|
}
|
|
215728
215756
|
const mcpServerUrl = dbResult.config.mcp.server.url;
|
|
215729
215757
|
try {
|
|
215730
|
-
availableTools = await discoverToolsFromServer(
|
|
215758
|
+
availableTools = await discoverToolsFromServer(
|
|
215759
|
+
dbResult,
|
|
215760
|
+
dbClient,
|
|
215761
|
+
credentialStoreRegistry,
|
|
215762
|
+
userId
|
|
215763
|
+
);
|
|
215731
215764
|
status = "healthy";
|
|
215732
215765
|
lastErrorComputed = null;
|
|
215733
215766
|
} catch (error) {
|
|
@@ -215742,10 +215775,13 @@ var dbResultToMcpTool = async (dbResult, dbClient, credentialStoreRegistry, rela
|
|
|
215742
215775
|
}
|
|
215743
215776
|
const isThirdPartyMCPServer = dbResult.config.mcp.server.url.includes("composio.dev");
|
|
215744
215777
|
if (isThirdPartyMCPServer) {
|
|
215778
|
+
const credentialScope = dbResult.credentialScope || "project";
|
|
215745
215779
|
const isAuthenticated = await isThirdPartyMCPServerAuthenticated(
|
|
215746
215780
|
dbResult.tenantId,
|
|
215747
215781
|
dbResult.projectId,
|
|
215748
|
-
mcpServerUrl
|
|
215782
|
+
mcpServerUrl,
|
|
215783
|
+
credentialScope,
|
|
215784
|
+
userId
|
|
215749
215785
|
);
|
|
215750
215786
|
if (!isAuthenticated) {
|
|
215751
215787
|
status = "needs_auth";
|
|
@@ -215768,6 +215804,7 @@ var dbResultToMcpTool = async (dbResult, dbClient, credentialStoreRegistry, rela
|
|
|
215768
215804
|
capabilities: capabilities || void 0,
|
|
215769
215805
|
credentialReferenceId: credentialReferenceId || void 0,
|
|
215770
215806
|
createdAt: toISODateString(createdAt),
|
|
215807
|
+
createdBy: createdBy || void 0,
|
|
215771
215808
|
updatedAt: toISODateString(now),
|
|
215772
215809
|
expiresAt,
|
|
215773
215810
|
lastError: lastErrorComputed,
|
|
@@ -219034,7 +219071,22 @@ var upsertLedgerArtifact = (db) => async (params) => {
|
|
|
219034
219071
|
return { created: false, existing: existing[0] };
|
|
219035
219072
|
}
|
|
219036
219073
|
}
|
|
219037
|
-
|
|
219074
|
+
const sanitizedError = new Error(
|
|
219075
|
+
`Failed to insert artifact ${artifactRow.id}: ${error.message?.split("\nparams:")[0] || error.message}`
|
|
219076
|
+
);
|
|
219077
|
+
sanitizedError.name = error.name;
|
|
219078
|
+
sanitizedError.cause = error.code || error.errno;
|
|
219079
|
+
if (artifactRow.id?.includes("compress_")) {
|
|
219080
|
+
console.error("COMPRESSION ARTIFACT FULL ERROR:", {
|
|
219081
|
+
artifactId: artifactRow.id,
|
|
219082
|
+
errorMessage: error.message,
|
|
219083
|
+
errorCode: error.code,
|
|
219084
|
+
errorName: error.name,
|
|
219085
|
+
errorStack: error.stack,
|
|
219086
|
+
fullError: error
|
|
219087
|
+
});
|
|
219088
|
+
}
|
|
219089
|
+
throw sanitizedError;
|
|
219038
219090
|
}
|
|
219039
219091
|
};
|
|
219040
219092
|
var addLedgerArtifacts = (db) => async (params) => {
|
|
@@ -219087,7 +219139,24 @@ var addLedgerArtifacts = (db) => async (params) => {
|
|
|
219087
219139
|
await new Promise((resolve) => setTimeout(resolve, backoffMs));
|
|
219088
219140
|
}
|
|
219089
219141
|
}
|
|
219090
|
-
|
|
219142
|
+
const sanitizedError = new Error(
|
|
219143
|
+
`Failed to insert ${rows.length} artifacts after ${maxRetries} attempts: ${lastError?.message?.split("\nparams:")[0] || lastError?.message}`
|
|
219144
|
+
);
|
|
219145
|
+
sanitizedError.name = lastError?.name;
|
|
219146
|
+
sanitizedError.cause = lastError?.code || lastError?.errno;
|
|
219147
|
+
const hasCompressionArtifacts = rows.some((row) => row.id?.includes("compress_"));
|
|
219148
|
+
if (hasCompressionArtifacts) {
|
|
219149
|
+
console.error("COMPRESSION ARTIFACTS BULK INSERT FULL ERROR:", {
|
|
219150
|
+
artifactCount: rows.length,
|
|
219151
|
+
compressionArtifacts: rows.filter((row) => row.id?.includes("compress_")).map((row) => row.id),
|
|
219152
|
+
errorMessage: lastError?.message,
|
|
219153
|
+
errorCode: lastError?.code,
|
|
219154
|
+
errorName: lastError?.name,
|
|
219155
|
+
errorStack: lastError?.stack,
|
|
219156
|
+
fullError: lastError
|
|
219157
|
+
});
|
|
219158
|
+
}
|
|
219159
|
+
throw sanitizedError;
|
|
219091
219160
|
};
|
|
219092
219161
|
var getLedgerArtifacts = (db) => async (params) => {
|
|
219093
219162
|
const { scopes, taskId, toolCallId, artifactId } = params;
|
|
@@ -221775,6 +221844,12 @@ function contextValidationMiddleware(dbClient) {
|
|
|
221775
221844
|
|
|
221776
221845
|
// src/context/ContextFetcher.ts
|
|
221777
221846
|
var logger8 = getLogger("context-fetcher");
|
|
221847
|
+
var MissingRequiredVariableError = class extends Error {
|
|
221848
|
+
constructor(variable) {
|
|
221849
|
+
super(`Missing required variable: ${variable}`);
|
|
221850
|
+
this.name = "MissingRequiredVariableError";
|
|
221851
|
+
}
|
|
221852
|
+
};
|
|
221778
221853
|
var checkGraphQLErrors = (data) => {
|
|
221779
221854
|
if (data && typeof data === "object" && "errors" in data) {
|
|
221780
221855
|
const errorObj = data;
|
|
@@ -221855,6 +221930,16 @@ var ContextFetcher = class {
|
|
|
221855
221930
|
} catch (error) {
|
|
221856
221931
|
const durationMs = Date.now() - startTime;
|
|
221857
221932
|
const errorMessage = error instanceof Error ? error.message : "Unknown error";
|
|
221933
|
+
if (error instanceof MissingRequiredVariableError) {
|
|
221934
|
+
logger8.error(
|
|
221935
|
+
{
|
|
221936
|
+
definitionId: definition.id,
|
|
221937
|
+
error: errorMessage,
|
|
221938
|
+
durationMs
|
|
221939
|
+
},
|
|
221940
|
+
"Context fetch skipped due to missing required variable"
|
|
221941
|
+
);
|
|
221942
|
+
}
|
|
221858
221943
|
logger8.error(
|
|
221859
221944
|
{
|
|
221860
221945
|
definitionId: definition.id,
|
|
@@ -221905,6 +221990,22 @@ var ContextFetcher = class {
|
|
|
221905
221990
|
*/
|
|
221906
221991
|
async resolveTemplateVariables(fetchConfig, context, credentialReferenceId) {
|
|
221907
221992
|
const resolved = { ...fetchConfig };
|
|
221993
|
+
const filteredRequiredToFetch = fetchConfig.requiredToFetch?.filter(
|
|
221994
|
+
(variable) => variable.startsWith("{{") && variable.endsWith("}}")
|
|
221995
|
+
);
|
|
221996
|
+
if (filteredRequiredToFetch) {
|
|
221997
|
+
for (const variable of filteredRequiredToFetch) {
|
|
221998
|
+
let resolvedVariable;
|
|
221999
|
+
try {
|
|
222000
|
+
resolvedVariable = this.interpolateTemplate(variable, context);
|
|
222001
|
+
} catch {
|
|
222002
|
+
throw new MissingRequiredVariableError(variable);
|
|
222003
|
+
}
|
|
222004
|
+
if (resolvedVariable === "" || resolvedVariable === variable) {
|
|
222005
|
+
throw new MissingRequiredVariableError(variable);
|
|
222006
|
+
}
|
|
222007
|
+
}
|
|
222008
|
+
}
|
|
221908
222009
|
resolved.url = this.interpolateTemplate(fetchConfig.url, context);
|
|
221909
222010
|
logger8.info({ resolvedUrl: resolved.url }, "Resolved URL");
|
|
221910
222011
|
if (fetchConfig.headers) {
|
|
@@ -222279,4 +222380,4 @@ typescript/lib/typescript.js:
|
|
|
222279
222380
|
***************************************************************************** *)
|
|
222280
222381
|
*/
|
|
222281
222382
|
|
|
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 };
|
|
222383
|
+
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, getUserScopedCredentialReference, 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 };
|