@decaf-ts/as-graph 0.5.0 → 0.7.0
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/README.md +834 -38
- package/assets/i18n/en.json +2527 -32
- package/dist/as-graph.cjs +1 -1
- package/dist/as-graph.cjs.map +1 -1
- package/dist/as-graph.js +1 -1
- package/dist/as-graph.js.map +1 -1
- package/lib/cjs/dagster/DagsterGraphExecutionBackend.cjs +102 -11
- package/lib/cjs/dagster/DagsterGraphExecutionBackend.cjs.map +1 -1
- package/lib/cjs/engine/auth/GraphAuthValidator.cjs +19 -0
- package/lib/cjs/engine/auth/GraphAuthValidator.cjs.map +1 -1
- package/lib/cjs/engine/constants.cjs +61 -1
- package/lib/cjs/engine/constants.cjs.map +1 -1
- package/lib/cjs/engine/credentials/GraphNodeCredentials.cjs +158 -0
- package/lib/cjs/engine/credentials/GraphNodeCredentials.cjs.map +1 -0
- package/lib/cjs/engine/execution/GraphExecutionEngine.cjs +235 -67
- package/lib/cjs/engine/execution/GraphExecutionEngine.cjs.map +1 -1
- package/lib/cjs/engine/execution/GraphNodeEngineRequirements.cjs +33 -0
- package/lib/cjs/engine/execution/GraphNodeEngineRequirements.cjs.map +1 -0
- package/lib/cjs/engine/execution/GraphWebhookResponseRegistry.cjs +108 -0
- package/lib/cjs/engine/execution/GraphWebhookResponseRegistry.cjs.map +1 -0
- package/lib/cjs/engine/execution/LocalGraphExecutionBackend.cjs +92 -1
- package/lib/cjs/engine/execution/LocalGraphExecutionBackend.cjs.map +1 -1
- package/lib/cjs/engine/execution/index.cjs +1 -0
- package/lib/cjs/engine/execution/index.cjs.map +1 -1
- package/lib/cjs/engine/index.cjs +5 -0
- package/lib/cjs/engine/index.cjs.map +1 -1
- package/lib/cjs/engine/services/GraphNodeModelService.cjs +129 -0
- package/lib/cjs/engine/services/GraphNodeModelService.cjs.map +1 -0
- package/lib/cjs/engine/services/GraphWorkflowService.cjs +33 -0
- package/lib/cjs/engine/services/GraphWorkflowService.cjs.map +1 -1
- package/lib/cjs/engine/store/GraphDataTableModel.cjs +76 -0
- package/lib/cjs/engine/store/GraphDataTableModel.cjs.map +1 -0
- package/lib/cjs/engine/store/GraphDataTableRepository.cjs +324 -0
- package/lib/cjs/engine/store/GraphDataTableRepository.cjs.map +1 -0
- package/lib/cjs/engine/store/index.cjs +2 -0
- package/lib/cjs/engine/store/index.cjs.map +1 -1
- package/lib/cjs/engine/validation/GraphConnectionPolicyValidator.cjs +28 -0
- package/lib/cjs/engine/validation/GraphConnectionPolicyValidator.cjs.map +1 -1
- package/lib/cjs/engine/validation/GraphCredentialReferenceValidator.cjs +4 -2
- package/lib/cjs/engine/validation/GraphCredentialReferenceValidator.cjs.map +1 -1
- package/lib/cjs/engine/validation/GraphParameterValidator.cjs +6 -0
- package/lib/cjs/engine/validation/GraphParameterValidator.cjs.map +1 -1
- package/lib/cjs/mastra/MastraAgeVectorDriver.cjs +298 -0
- package/lib/cjs/mastra/MastraAgeVectorDriver.cjs.map +1 -0
- package/lib/cjs/mastra/MastraAgentBuilder.cjs +249 -0
- package/lib/cjs/mastra/MastraAgentBuilder.cjs.map +1 -0
- package/lib/cjs/mastra/MastraAgentModelAdapter.cjs +65 -0
- package/lib/cjs/mastra/MastraAgentModelAdapter.cjs.map +1 -0
- package/lib/cjs/mastra/MastraAgentProcessors.cjs +397 -0
- package/lib/cjs/mastra/MastraAgentProcessors.cjs.map +1 -0
- package/lib/cjs/mastra/MastraAgentStepHandler.cjs +332 -0
- package/lib/cjs/mastra/MastraAgentStepHandler.cjs.map +1 -0
- package/lib/cjs/mastra/MastraCapabilities.cjs +115 -0
- package/lib/cjs/mastra/MastraCapabilities.cjs.map +1 -1
- package/lib/cjs/mastra/MastraChannelResponse.cjs +162 -0
- package/lib/cjs/mastra/MastraChannelResponse.cjs.map +1 -0
- package/lib/cjs/mastra/MastraChannelTrigger.cjs +124 -0
- package/lib/cjs/mastra/MastraChannelTrigger.cjs.map +1 -0
- package/lib/cjs/mastra/MastraDefaultStepHandlers.cjs +435 -0
- package/lib/cjs/mastra/MastraDefaultStepHandlers.cjs.map +1 -0
- package/lib/cjs/mastra/MastraEnvironment.cjs +297 -0
- package/lib/cjs/mastra/MastraEnvironment.cjs.map +1 -0
- package/lib/cjs/mastra/MastraEvalModels.cjs +546 -0
- package/lib/cjs/mastra/MastraEvalModels.cjs.map +1 -0
- package/lib/cjs/mastra/MastraEventBridge.cjs +31 -4
- package/lib/cjs/mastra/MastraEventBridge.cjs.map +1 -1
- package/lib/cjs/mastra/MastraGraphExecutionBackend.cjs +513 -20
- package/lib/cjs/mastra/MastraGraphExecutionBackend.cjs.map +1 -1
- package/lib/cjs/mastra/MastraGraphExecutionModule.cjs +148 -0
- package/lib/cjs/mastra/MastraGraphExecutionModule.cjs.map +1 -0
- package/lib/cjs/mastra/MastraHitlStepHandler.cjs +67 -0
- package/lib/cjs/mastra/MastraHitlStepHandler.cjs.map +1 -0
- package/lib/cjs/mastra/MastraMcpTrigger.cjs +254 -0
- package/lib/cjs/mastra/MastraMcpTrigger.cjs.map +1 -0
- package/lib/cjs/mastra/MastraMemory.cjs +467 -0
- package/lib/cjs/mastra/MastraMemory.cjs.map +1 -0
- package/lib/cjs/mastra/MastraMetricsAdapter.cjs +279 -0
- package/lib/cjs/mastra/MastraMetricsAdapter.cjs.map +1 -0
- package/lib/cjs/mastra/MastraMetricsGateway.cjs +404 -0
- package/lib/cjs/mastra/MastraMetricsGateway.cjs.map +1 -0
- package/lib/cjs/mastra/MastraMetricsModels.cjs +498 -0
- package/lib/cjs/mastra/MastraMetricsModels.cjs.map +1 -0
- package/lib/cjs/mastra/MastraMetricsStatement.cjs +220 -0
- package/lib/cjs/mastra/MastraMetricsStatement.cjs.map +1 -0
- package/lib/cjs/mastra/MastraModelSchemaConverter.cjs +84 -0
- package/lib/cjs/mastra/MastraModelSchemaConverter.cjs.map +1 -0
- package/lib/cjs/mastra/MastraObservability.cjs +335 -0
- package/lib/cjs/mastra/MastraObservability.cjs.map +1 -0
- package/lib/cjs/mastra/MastraPersistence.cjs +545 -0
- package/lib/cjs/mastra/MastraPersistence.cjs.map +1 -0
- package/lib/cjs/mastra/MastraRagStepHandlers.cjs +927 -0
- package/lib/cjs/mastra/MastraRagStepHandlers.cjs.map +1 -0
- package/lib/cjs/mastra/MastraRunMetricsEndpoint.cjs +153 -0
- package/lib/cjs/mastra/MastraRunMetricsEndpoint.cjs.map +1 -0
- package/lib/cjs/mastra/MastraRunRecovery.cjs +94 -0
- package/lib/cjs/mastra/MastraRunRecovery.cjs.map +1 -0
- package/lib/cjs/mastra/MastraScheduleTrigger.cjs +115 -0
- package/lib/cjs/mastra/MastraScheduleTrigger.cjs.map +1 -0
- package/lib/cjs/mastra/MastraStorageWiring.cjs +125 -0
- package/lib/cjs/mastra/MastraStorageWiring.cjs.map +1 -0
- package/lib/cjs/mastra/MastraStructuredOutput.cjs +152 -0
- package/lib/cjs/mastra/MastraStructuredOutput.cjs.map +1 -0
- package/lib/cjs/mastra/MastraToolBuilder.cjs +73 -0
- package/lib/cjs/mastra/MastraToolBuilder.cjs.map +1 -0
- package/lib/cjs/mastra/MastraToolConfig.cjs +42 -0
- package/lib/cjs/mastra/MastraToolConfig.cjs.map +1 -0
- package/lib/cjs/mastra/MastraToolDecorator.cjs +99 -0
- package/lib/cjs/mastra/MastraToolDecorator.cjs.map +1 -0
- package/lib/cjs/mastra/MastraVectorStore.cjs +618 -0
- package/lib/cjs/mastra/MastraVectorStore.cjs.map +1 -0
- package/lib/cjs/mastra/MastraVoiceStepHandler.cjs +90 -0
- package/lib/cjs/mastra/MastraVoiceStepHandler.cjs.map +1 -0
- package/lib/cjs/mastra/MastraWorkflowCompiler.cjs +41 -9
- package/lib/cjs/mastra/MastraWorkflowCompiler.cjs.map +1 -1
- package/lib/cjs/mastra/MastraWorkflowManager.cjs +100 -50
- package/lib/cjs/mastra/MastraWorkflowManager.cjs.map +1 -1
- package/lib/cjs/mastra/index.cjs +41 -1
- package/lib/cjs/mastra/index.cjs.map +1 -1
- package/lib/cjs/mastra/nodes/MastraNodeRegistry.cjs +232 -0
- package/lib/cjs/mastra/nodes/MastraNodeRegistry.cjs.map +1 -0
- package/lib/cjs/mastra/nodes/index.cjs +29 -0
- package/lib/cjs/mastra/nodes/index.cjs.map +1 -0
- package/lib/cjs/mastra/nodes/types.cjs +4 -0
- package/lib/cjs/mastra/nodes/types.cjs.map +1 -0
- package/lib/cjs/mastra/types.cjs +130 -1
- package/lib/cjs/mastra/types.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphBackendHost.cjs +117 -23
- package/lib/cjs/nest/graph/GraphBackendHost.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphExecutionModule.cjs +72 -2
- package/lib/cjs/nest/graph/GraphExecutionModule.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphRunController.cjs +47 -6
- package/lib/cjs/nest/graph/GraphRunController.cjs.map +1 -1
- package/lib/cjs/nest/graph/main.cjs +99 -2
- package/lib/cjs/nest/graph/main.cjs.map +1 -1
- package/lib/cjs/node/agents/agent/node.cjs +189 -31
- package/lib/cjs/node/agents/agent/node.cjs.map +1 -1
- package/lib/cjs/node/agents/hitl/node.cjs +115 -0
- package/lib/cjs/node/agents/hitl/node.cjs.map +1 -0
- package/lib/cjs/node/agents/hooks/delegation/node.cjs +122 -0
- package/lib/cjs/node/agents/hooks/delegation/node.cjs.map +1 -0
- package/lib/cjs/node/agents/hooks/hook/node.cjs +120 -0
- package/lib/cjs/node/agents/hooks/hook/node.cjs.map +1 -0
- package/lib/cjs/node/agents/hooks/tool-deny/node.cjs +104 -0
- package/lib/cjs/node/agents/hooks/tool-deny/node.cjs.map +1 -0
- package/lib/cjs/node/agents/memory/memory/node.cjs +231 -0
- package/lib/cjs/node/agents/memory/memory/node.cjs.map +1 -0
- package/lib/cjs/node/agents/memory/memory-selector/node.cjs +101 -0
- package/lib/cjs/node/agents/memory/memory-selector/node.cjs.map +1 -0
- package/lib/cjs/node/agents/processors/guardrail/node.cjs +126 -0
- package/lib/cjs/node/agents/processors/guardrail/node.cjs.map +1 -0
- package/lib/cjs/node/agents/processors/input-processor/node.cjs +118 -0
- package/lib/cjs/node/agents/processors/input-processor/node.cjs.map +1 -0
- package/lib/cjs/node/agents/processors/output-processor/node.cjs +108 -0
- package/lib/cjs/node/agents/processors/output-processor/node.cjs.map +1 -0
- package/lib/cjs/node/agents/processors/types.cjs +68 -0
- package/lib/cjs/node/agents/processors/types.cjs.map +1 -0
- package/lib/cjs/node/agents/rag/chains/basic/node.cjs +103 -0
- package/lib/cjs/node/agents/rag/chains/basic/node.cjs.map +1 -0
- package/lib/cjs/node/agents/rag/chains/qa/node.cjs +124 -0
- package/lib/cjs/node/agents/rag/chains/qa/node.cjs.map +1 -0
- package/lib/cjs/node/agents/rag/chains/summarization/node.cjs +116 -0
- package/lib/cjs/node/agents/rag/chains/summarization/node.cjs.map +1 -0
- package/lib/cjs/node/agents/rag/chunking/node.cjs +222 -0
- package/lib/cjs/node/agents/rag/chunking/node.cjs.map +1 -0
- package/lib/cjs/node/agents/rag/embedding/node.cjs +110 -0
- package/lib/cjs/node/agents/rag/embedding/node.cjs.map +1 -0
- package/lib/cjs/node/agents/rag/information-extractor/node.cjs +115 -0
- package/lib/cjs/node/agents/rag/information-extractor/node.cjs.map +1 -0
- package/lib/cjs/node/agents/rag/langchain-code/node.cjs +113 -0
- package/lib/cjs/node/agents/rag/langchain-code/node.cjs.map +1 -0
- package/lib/cjs/node/agents/rag/rerank/node.cjs +112 -0
- package/lib/cjs/node/agents/rag/rerank/node.cjs.map +1 -0
- package/lib/cjs/node/agents/rag/retriever/node.cjs +120 -0
- package/lib/cjs/node/agents/rag/retriever/node.cjs.map +1 -0
- package/lib/cjs/node/agents/rag/structured-output-parser/node.cjs +121 -0
- package/lib/cjs/node/agents/rag/structured-output-parser/node.cjs.map +1 -0
- package/lib/cjs/node/agents/rag/vector-store/node.cjs +187 -0
- package/lib/cjs/node/agents/rag/vector-store/node.cjs.map +1 -0
- package/lib/cjs/node/agents/responses/discord/node.cjs +101 -0
- package/lib/cjs/node/agents/responses/discord/node.cjs.map +1 -0
- package/lib/cjs/node/agents/responses/slack/node.cjs +101 -0
- package/lib/cjs/node/agents/responses/slack/node.cjs.map +1 -0
- package/lib/cjs/node/agents/responses/teams/node.cjs +101 -0
- package/lib/cjs/node/agents/responses/teams/node.cjs.map +1 -0
- package/lib/cjs/node/agents/responses/telegram/node.cjs +101 -0
- package/lib/cjs/node/agents/responses/telegram/node.cjs.map +1 -0
- package/lib/cjs/node/agents/sandbox/node.cjs +135 -0
- package/lib/cjs/node/agents/sandbox/node.cjs.map +1 -0
- package/lib/cjs/node/agents/scorers/scorer/node.cjs +107 -0
- package/lib/cjs/node/agents/scorers/scorer/node.cjs.map +1 -0
- package/lib/cjs/node/agents/scorers/scorer-selector/node.cjs +100 -0
- package/lib/cjs/node/agents/scorers/scorer-selector/node.cjs.map +1 -0
- package/lib/cjs/node/agents/skills/skill/node.cjs +105 -0
- package/lib/cjs/node/agents/skills/skill/node.cjs.map +1 -0
- package/lib/cjs/node/agents/skills/skill-selector/node.cjs +98 -0
- package/lib/cjs/node/agents/skills/skill-selector/node.cjs.map +1 -0
- package/lib/cjs/node/agents/tools/tool/node.cjs +100 -0
- package/lib/cjs/node/agents/tools/tool/node.cjs.map +1 -0
- package/lib/cjs/node/agents/tools/tool-selector/node.cjs +99 -0
- package/lib/cjs/node/agents/tools/tool-selector/node.cjs.map +1 -0
- package/lib/cjs/node/agents/triggers/discord/node.cjs +101 -0
- package/lib/cjs/node/agents/triggers/discord/node.cjs.map +1 -0
- package/lib/cjs/node/agents/triggers/mcp-server/node.cjs +147 -0
- package/lib/cjs/node/agents/triggers/mcp-server/node.cjs.map +1 -0
- package/lib/cjs/node/agents/triggers/slack/node.cjs +101 -0
- package/lib/cjs/node/agents/triggers/slack/node.cjs.map +1 -0
- package/lib/cjs/node/agents/triggers/teams/node.cjs +101 -0
- package/lib/cjs/node/agents/triggers/teams/node.cjs.map +1 -0
- package/lib/cjs/node/agents/triggers/telegram/node.cjs +101 -0
- package/lib/cjs/node/agents/triggers/telegram/node.cjs.map +1 -0
- package/lib/cjs/node/agents/voice/node.cjs +107 -0
- package/lib/cjs/node/agents/voice/node.cjs.map +1 -0
- package/lib/cjs/node/agents/zones.cjs +43 -0
- package/lib/cjs/node/agents/zones.cjs.map +1 -0
- package/lib/cjs/node/comms/email-send/node.cjs +340 -0
- package/lib/cjs/node/comms/email-send/node.cjs.map +1 -0
- package/lib/cjs/node/comms/gmail/node.cjs +287 -0
- package/lib/cjs/node/comms/gmail/node.cjs.map +1 -0
- package/lib/cjs/node/comms/slack/node.cjs +276 -0
- package/lib/cjs/node/comms/slack/node.cjs.map +1 -0
- package/lib/cjs/node/comms/teams/node.cjs +231 -0
- package/lib/cjs/node/comms/teams/node.cjs.map +1 -0
- package/lib/cjs/node/comms/telegram/node.cjs +260 -0
- package/lib/cjs/node/comms/telegram/node.cjs.map +1 -0
- package/lib/cjs/node/credentials.cjs +103 -0
- package/lib/cjs/node/credentials.cjs.map +1 -0
- package/lib/cjs/node/data/data-table/node.cjs +265 -0
- package/lib/cjs/node/data/data-table/node.cjs.map +1 -0
- package/lib/cjs/node/data/date-time/node.cjs +180 -0
- package/lib/cjs/node/data/date-time/node.cjs.map +1 -0
- package/lib/cjs/node/data/filter/node.cjs +134 -0
- package/lib/cjs/node/data/filter/node.cjs.map +1 -0
- package/lib/cjs/node/data/limit/node.cjs +104 -0
- package/lib/cjs/node/data/limit/node.cjs.map +1 -0
- package/lib/cjs/node/data/merge/node.cjs +251 -0
- package/lib/cjs/node/data/merge/node.cjs.map +1 -0
- package/lib/cjs/node/data/rename-keys/node.cjs +139 -0
- package/lib/cjs/node/data/rename-keys/node.cjs.map +1 -0
- package/lib/cjs/node/data/set/node.cjs +148 -0
- package/lib/cjs/node/data/set/node.cjs.map +1 -0
- package/lib/cjs/node/data/sort/node.cjs +125 -0
- package/lib/cjs/node/data/sort/node.cjs.map +1 -0
- package/lib/cjs/node/data/split-out/node.cjs +140 -0
- package/lib/cjs/node/data/split-out/node.cjs.map +1 -0
- package/lib/cjs/node/data/support.cjs +398 -0
- package/lib/cjs/node/data/support.cjs.map +1 -0
- package/lib/cjs/node/devops/crypto/node.cjs +364 -0
- package/lib/cjs/node/devops/crypto/node.cjs.map +1 -0
- package/lib/cjs/node/devops/execute-command/node.cjs +201 -0
- package/lib/cjs/node/devops/execute-command/node.cjs.map +1 -0
- package/lib/cjs/node/devops/ftp/node.cjs +241 -0
- package/lib/cjs/node/devops/ftp/node.cjs.map +1 -0
- package/lib/cjs/node/devops/github/node.cjs +282 -0
- package/lib/cjs/node/devops/github/node.cjs.map +1 -0
- package/lib/cjs/node/devops/gitlab/node.cjs +273 -0
- package/lib/cjs/node/devops/gitlab/node.cjs.map +1 -0
- package/lib/cjs/node/devops/jwt/node.cjs +204 -0
- package/lib/cjs/node/devops/jwt/node.cjs.map +1 -0
- package/lib/cjs/node/flow/execute-sub-workflow/node.cjs +223 -0
- package/lib/cjs/node/flow/execute-sub-workflow/node.cjs.map +1 -0
- package/lib/cjs/node/index.cjs +402 -66
- package/lib/cjs/node/index.cjs.map +1 -1
- package/lib/cjs/node/io/airtable/node.cjs +318 -0
- package/lib/cjs/node/io/airtable/node.cjs.map +1 -0
- package/lib/cjs/node/io/extract-from-file/node.cjs +269 -0
- package/lib/cjs/node/io/extract-from-file/node.cjs.map +1 -0
- package/lib/cjs/node/io/google-sheets/node.cjs +267 -0
- package/lib/cjs/node/io/google-sheets/node.cjs.map +1 -0
- package/lib/cjs/node/io/graphql/node.cjs +169 -0
- package/lib/cjs/node/io/graphql/node.cjs.map +1 -0
- package/lib/cjs/node/io/http-request/node.cjs +415 -0
- package/lib/cjs/node/io/http-request/node.cjs.map +1 -0
- package/lib/cjs/node/io/read-pdf/node.cjs +206 -0
- package/lib/cjs/node/io/read-pdf/node.cjs.map +1 -0
- package/lib/cjs/node/io/read-write-file/node.cjs +314 -0
- package/lib/cjs/node/io/read-write-file/node.cjs.map +1 -0
- package/lib/cjs/node/io/respond-to-webhook/node.cjs +183 -0
- package/lib/cjs/node/io/respond-to-webhook/node.cjs.map +1 -0
- package/lib/cjs/node/io/spreadsheet-file/node.cjs +192 -0
- package/lib/cjs/node/io/spreadsheet-file/node.cjs.map +1 -0
- package/lib/cjs/node/manifests.cjs +264 -36
- package/lib/cjs/node/manifests.cjs.map +1 -1
- package/lib/cjs/node/storage/blob/azure/node.cjs +138 -0
- package/lib/cjs/node/storage/blob/azure/node.cjs.map +1 -0
- package/lib/cjs/node/storage/blob/base.cjs +321 -0
- package/lib/cjs/node/storage/blob/base.cjs.map +1 -0
- package/lib/cjs/node/storage/blob/gcs/node.cjs +126 -0
- package/lib/cjs/node/storage/blob/gcs/node.cjs.map +1 -0
- package/lib/cjs/node/storage/blob/s3/node.cjs +186 -0
- package/lib/cjs/node/storage/blob/s3/node.cjs.map +1 -0
- package/lib/cjs/node/storage/database/base.cjs +301 -0
- package/lib/cjs/node/storage/database/base.cjs.map +1 -0
- package/lib/cjs/node/storage/database/mssql/node.cjs +50 -0
- package/lib/cjs/node/storage/database/mssql/node.cjs.map +1 -0
- package/lib/cjs/node/storage/database/mysql/node.cjs +50 -0
- package/lib/cjs/node/storage/database/mysql/node.cjs.map +1 -0
- package/lib/cjs/node/storage/database/postgres/node.cjs +50 -0
- package/lib/cjs/node/storage/database/postgres/node.cjs.map +1 -0
- package/lib/cjs/node/storage/redis/node.cjs +340 -0
- package/lib/cjs/node/storage/redis/node.cjs.map +1 -0
- package/lib/cjs/node/storage/support.cjs +81 -0
- package/lib/cjs/node/storage/support.cjs.map +1 -0
- package/lib/cjs/node/triggers/execute-workflow/node.cjs +94 -0
- package/lib/cjs/node/triggers/execute-workflow/node.cjs.map +1 -0
- package/lib/cjs/ram/GraphNodeRepository.cjs +40 -0
- package/lib/cjs/ram/GraphNodeRepository.cjs.map +1 -0
- package/lib/cjs/ram/GraphRunEventModel.cjs +4 -0
- package/lib/cjs/ram/GraphRunEventModel.cjs.map +1 -1
- package/lib/cjs/ram/index.cjs +1 -0
- package/lib/cjs/ram/index.cjs.map +1 -1
- package/lib/cjs/shared/graph/GraphNodeConverters.cjs +43 -0
- package/lib/cjs/shared/graph/GraphNodeConverters.cjs.map +1 -0
- package/lib/cjs/shared/graph/GraphNodeModel.cjs +78 -0
- package/lib/cjs/shared/graph/GraphNodeModel.cjs.map +1 -0
- package/lib/cjs/shared/graph/GraphWorkflowModel.cjs +4 -0
- package/lib/cjs/shared/graph/GraphWorkflowModel.cjs.map +1 -1
- package/lib/cjs/shared/graph/catalog/GraphManifestCompiler.cjs +40 -0
- package/lib/cjs/shared/graph/catalog/GraphManifestCompiler.cjs.map +1 -1
- package/lib/cjs/shared/graph/category-styles.cjs +12 -0
- package/lib/cjs/shared/graph/category-styles.cjs.map +1 -1
- package/lib/cjs/shared/graph/index.cjs +2 -0
- package/lib/cjs/shared/graph/index.cjs.map +1 -1
- package/lib/cjs/typeorm/TypeormGraphAdapter.cjs +250 -0
- package/lib/cjs/typeorm/TypeormGraphAdapter.cjs.map +1 -0
- package/lib/cjs/typeorm/index.cjs +29 -0
- package/lib/cjs/typeorm/index.cjs.map +1 -0
- package/lib/esm/dagster/DagsterGraphExecutionBackend.js +102 -11
- package/lib/esm/dagster/DagsterGraphExecutionBackend.js.map +1 -1
- package/lib/esm/engine/auth/GraphAuthValidator.js +19 -0
- package/lib/esm/engine/auth/GraphAuthValidator.js.map +1 -1
- package/lib/esm/engine/constants.js +60 -0
- package/lib/esm/engine/constants.js.map +1 -1
- package/lib/esm/engine/credentials/GraphNodeCredentials.js +152 -0
- package/lib/esm/engine/credentials/GraphNodeCredentials.js.map +1 -0
- package/lib/esm/engine/execution/GraphExecutionBackend.js.map +1 -1
- package/lib/esm/engine/execution/GraphExecutionEngine.js +236 -68
- package/lib/esm/engine/execution/GraphExecutionEngine.js.map +1 -1
- package/lib/esm/engine/execution/GraphNodeEngineRequirements.js +28 -0
- package/lib/esm/engine/execution/GraphNodeEngineRequirements.js.map +1 -0
- package/lib/esm/engine/execution/GraphWebhookResponseRegistry.js +103 -0
- package/lib/esm/engine/execution/GraphWebhookResponseRegistry.js.map +1 -0
- package/lib/esm/engine/execution/LocalGraphExecutionBackend.js +93 -2
- package/lib/esm/engine/execution/LocalGraphExecutionBackend.js.map +1 -1
- package/lib/esm/engine/execution/index.js +1 -0
- package/lib/esm/engine/execution/index.js.map +1 -1
- package/lib/esm/engine/index.js +5 -0
- package/lib/esm/engine/index.js.map +1 -1
- package/lib/esm/engine/services/GraphNodeModelService.js +120 -0
- package/lib/esm/engine/services/GraphNodeModelService.js.map +1 -0
- package/lib/esm/engine/services/GraphWorkflowService.js +34 -1
- package/lib/esm/engine/services/GraphWorkflowService.js.map +1 -1
- package/lib/esm/engine/store/GraphDataTableModel.js +67 -0
- package/lib/esm/engine/store/GraphDataTableModel.js.map +1 -0
- package/lib/esm/engine/store/GraphDataTableRepository.js +314 -0
- package/lib/esm/engine/store/GraphDataTableRepository.js.map +1 -0
- package/lib/esm/engine/store/index.js +2 -0
- package/lib/esm/engine/store/index.js.map +1 -1
- package/lib/esm/engine/validation/GraphConnectionPolicyValidator.js +28 -0
- package/lib/esm/engine/validation/GraphConnectionPolicyValidator.js.map +1 -1
- package/lib/esm/engine/validation/GraphCredentialReferenceValidator.js +4 -2
- package/lib/esm/engine/validation/GraphCredentialReferenceValidator.js.map +1 -1
- package/lib/esm/engine/validation/GraphParameterValidator.js +6 -0
- package/lib/esm/engine/validation/GraphParameterValidator.js.map +1 -1
- package/lib/esm/mastra/MastraAgeVectorDriver.js +294 -0
- package/lib/esm/mastra/MastraAgeVectorDriver.js.map +1 -0
- package/lib/esm/mastra/MastraAgentBuilder.js +244 -0
- package/lib/esm/mastra/MastraAgentBuilder.js.map +1 -0
- package/lib/esm/mastra/MastraAgentModelAdapter.js +59 -0
- package/lib/esm/mastra/MastraAgentModelAdapter.js.map +1 -0
- package/lib/esm/mastra/MastraAgentProcessors.js +391 -0
- package/lib/esm/mastra/MastraAgentProcessors.js.map +1 -0
- package/lib/esm/mastra/MastraAgentStepHandler.js +327 -0
- package/lib/esm/mastra/MastraAgentStepHandler.js.map +1 -0
- package/lib/esm/mastra/MastraCapabilities.js +115 -0
- package/lib/esm/mastra/MastraCapabilities.js.map +1 -1
- package/lib/esm/mastra/MastraChannelResponse.js +154 -0
- package/lib/esm/mastra/MastraChannelResponse.js.map +1 -0
- package/lib/esm/mastra/MastraChannelTrigger.js +116 -0
- package/lib/esm/mastra/MastraChannelTrigger.js.map +1 -0
- package/lib/esm/mastra/MastraDefaultStepHandlers.js +430 -0
- package/lib/esm/mastra/MastraDefaultStepHandlers.js.map +1 -0
- package/lib/esm/mastra/MastraEnvironment.js +287 -0
- package/lib/esm/mastra/MastraEnvironment.js.map +1 -0
- package/lib/esm/mastra/MastraEvalModels.js +535 -0
- package/lib/esm/mastra/MastraEvalModels.js.map +1 -0
- package/lib/esm/mastra/MastraEventBridge.js +31 -4
- package/lib/esm/mastra/MastraEventBridge.js.map +1 -1
- package/lib/esm/mastra/MastraGraphExecutionBackend.js +514 -21
- package/lib/esm/mastra/MastraGraphExecutionBackend.js.map +1 -1
- package/lib/esm/mastra/MastraGraphExecutionModule.js +139 -0
- package/lib/esm/mastra/MastraGraphExecutionModule.js.map +1 -0
- package/lib/esm/mastra/MastraHitlStepHandler.js +62 -0
- package/lib/esm/mastra/MastraHitlStepHandler.js.map +1 -0
- package/lib/esm/mastra/MastraMcpTrigger.js +246 -0
- package/lib/esm/mastra/MastraMcpTrigger.js.map +1 -0
- package/lib/esm/mastra/MastraMemory.js +455 -0
- package/lib/esm/mastra/MastraMemory.js.map +1 -0
- package/lib/esm/mastra/MastraMetricsAdapter.js +273 -0
- package/lib/esm/mastra/MastraMetricsAdapter.js.map +1 -0
- package/lib/esm/mastra/MastraMetricsGateway.js +394 -0
- package/lib/esm/mastra/MastraMetricsGateway.js.map +1 -0
- package/lib/esm/mastra/MastraMetricsModels.js +486 -0
- package/lib/esm/mastra/MastraMetricsModels.js.map +1 -0
- package/lib/esm/mastra/MastraMetricsStatement.js +213 -0
- package/lib/esm/mastra/MastraMetricsStatement.js.map +1 -0
- package/lib/esm/mastra/MastraModelSchemaConverter.js +78 -0
- package/lib/esm/mastra/MastraModelSchemaConverter.js.map +1 -0
- package/lib/esm/mastra/MastraObservability.js +327 -0
- package/lib/esm/mastra/MastraObservability.js.map +1 -0
- package/lib/esm/mastra/MastraPersistence.js +530 -0
- package/lib/esm/mastra/MastraPersistence.js.map +1 -0
- package/lib/esm/mastra/MastraRagStepHandlers.js +920 -0
- package/lib/esm/mastra/MastraRagStepHandlers.js.map +1 -0
- package/lib/esm/mastra/MastraRunMetricsEndpoint.js +147 -0
- package/lib/esm/mastra/MastraRunMetricsEndpoint.js.map +1 -0
- package/lib/esm/mastra/MastraRunRecovery.js +89 -0
- package/lib/esm/mastra/MastraRunRecovery.js.map +1 -0
- package/lib/esm/mastra/MastraScheduleTrigger.js +110 -0
- package/lib/esm/mastra/MastraScheduleTrigger.js.map +1 -0
- package/lib/esm/mastra/MastraStorageWiring.js +119 -0
- package/lib/esm/mastra/MastraStorageWiring.js.map +1 -0
- package/lib/esm/mastra/MastraStructuredOutput.js +144 -0
- package/lib/esm/mastra/MastraStructuredOutput.js.map +1 -0
- package/lib/esm/mastra/MastraToolBuilder.js +68 -0
- package/lib/esm/mastra/MastraToolBuilder.js.map +1 -0
- package/lib/esm/mastra/MastraToolConfig.js +37 -0
- package/lib/esm/mastra/MastraToolConfig.js.map +1 -0
- package/lib/esm/mastra/MastraToolDecorator.js +92 -0
- package/lib/esm/mastra/MastraToolDecorator.js.map +1 -0
- package/lib/esm/mastra/MastraVectorStore.js +605 -0
- package/lib/esm/mastra/MastraVectorStore.js.map +1 -0
- package/lib/esm/mastra/MastraVoiceStepHandler.js +84 -0
- package/lib/esm/mastra/MastraVoiceStepHandler.js.map +1 -0
- package/lib/esm/mastra/MastraWorkflowCompiler.js +41 -9
- package/lib/esm/mastra/MastraWorkflowCompiler.js.map +1 -1
- package/lib/esm/mastra/MastraWorkflowManager.js +101 -51
- package/lib/esm/mastra/MastraWorkflowManager.js.map +1 -1
- package/lib/esm/mastra/index.js +41 -1
- package/lib/esm/mastra/index.js.map +1 -1
- package/lib/esm/mastra/nodes/MastraNodeRegistry.js +225 -0
- package/lib/esm/mastra/nodes/MastraNodeRegistry.js.map +1 -0
- package/lib/esm/mastra/nodes/index.js +12 -0
- package/lib/esm/mastra/nodes/index.js.map +1 -0
- package/lib/esm/mastra/nodes/types.js +2 -0
- package/lib/esm/mastra/nodes/types.js.map +1 -0
- package/lib/esm/mastra/types.js +129 -0
- package/lib/esm/mastra/types.js.map +1 -1
- package/lib/esm/nest/graph/GraphBackendHost.js +79 -20
- package/lib/esm/nest/graph/GraphBackendHost.js.map +1 -1
- package/lib/esm/nest/graph/GraphExecutionModule.js +73 -3
- package/lib/esm/nest/graph/GraphExecutionModule.js.map +1 -1
- package/lib/esm/nest/graph/GraphRunController.js +47 -6
- package/lib/esm/nest/graph/GraphRunController.js.map +1 -1
- package/lib/esm/nest/graph/main.js +100 -3
- package/lib/esm/nest/graph/main.js.map +1 -1
- package/lib/esm/node/agents/agent/node.js +189 -31
- package/lib/esm/node/agents/agent/node.js.map +1 -1
- package/lib/esm/node/agents/hitl/node.js +106 -0
- package/lib/esm/node/agents/hitl/node.js.map +1 -0
- package/lib/esm/node/agents/hooks/delegation/node.js +113 -0
- package/lib/esm/node/agents/hooks/delegation/node.js.map +1 -0
- package/lib/esm/node/agents/hooks/hook/node.js +111 -0
- package/lib/esm/node/agents/hooks/hook/node.js.map +1 -0
- package/lib/esm/node/agents/hooks/tool-deny/node.js +95 -0
- package/lib/esm/node/agents/hooks/tool-deny/node.js.map +1 -0
- package/lib/esm/node/agents/memory/memory/node.js +222 -0
- package/lib/esm/node/agents/memory/memory/node.js.map +1 -0
- package/lib/esm/node/agents/memory/memory-selector/node.js +92 -0
- package/lib/esm/node/agents/memory/memory-selector/node.js.map +1 -0
- package/lib/esm/node/agents/processors/guardrail/node.js +117 -0
- package/lib/esm/node/agents/processors/guardrail/node.js.map +1 -0
- package/lib/esm/node/agents/processors/input-processor/node.js +109 -0
- package/lib/esm/node/agents/processors/input-processor/node.js.map +1 -0
- package/lib/esm/node/agents/processors/output-processor/node.js +99 -0
- package/lib/esm/node/agents/processors/output-processor/node.js.map +1 -0
- package/lib/esm/node/agents/processors/types.js +64 -0
- package/lib/esm/node/agents/processors/types.js.map +1 -0
- package/lib/esm/node/agents/rag/chains/basic/node.js +94 -0
- package/lib/esm/node/agents/rag/chains/basic/node.js.map +1 -0
- package/lib/esm/node/agents/rag/chains/qa/node.js +115 -0
- package/lib/esm/node/agents/rag/chains/qa/node.js.map +1 -0
- package/lib/esm/node/agents/rag/chains/summarization/node.js +107 -0
- package/lib/esm/node/agents/rag/chains/summarization/node.js.map +1 -0
- package/lib/esm/node/agents/rag/chunking/node.js +211 -0
- package/lib/esm/node/agents/rag/chunking/node.js.map +1 -0
- package/lib/esm/node/agents/rag/embedding/node.js +101 -0
- package/lib/esm/node/agents/rag/embedding/node.js.map +1 -0
- package/lib/esm/node/agents/rag/information-extractor/node.js +106 -0
- package/lib/esm/node/agents/rag/information-extractor/node.js.map +1 -0
- package/lib/esm/node/agents/rag/langchain-code/node.js +104 -0
- package/lib/esm/node/agents/rag/langchain-code/node.js.map +1 -0
- package/lib/esm/node/agents/rag/rerank/node.js +103 -0
- package/lib/esm/node/agents/rag/rerank/node.js.map +1 -0
- package/lib/esm/node/agents/rag/retriever/node.js +111 -0
- package/lib/esm/node/agents/rag/retriever/node.js.map +1 -0
- package/lib/esm/node/agents/rag/structured-output-parser/node.js +112 -0
- package/lib/esm/node/agents/rag/structured-output-parser/node.js.map +1 -0
- package/lib/esm/node/agents/rag/vector-store/node.js +178 -0
- package/lib/esm/node/agents/rag/vector-store/node.js.map +1 -0
- package/lib/esm/node/agents/responses/discord/node.js +92 -0
- package/lib/esm/node/agents/responses/discord/node.js.map +1 -0
- package/lib/esm/node/agents/responses/slack/node.js +92 -0
- package/lib/esm/node/agents/responses/slack/node.js.map +1 -0
- package/lib/esm/node/agents/responses/teams/node.js +92 -0
- package/lib/esm/node/agents/responses/teams/node.js.map +1 -0
- package/lib/esm/node/agents/responses/telegram/node.js +92 -0
- package/lib/esm/node/agents/responses/telegram/node.js.map +1 -0
- package/lib/esm/node/agents/sandbox/node.js +125 -0
- package/lib/esm/node/agents/sandbox/node.js.map +1 -0
- package/lib/esm/node/agents/scorers/scorer/node.js +98 -0
- package/lib/esm/node/agents/scorers/scorer/node.js.map +1 -0
- package/lib/esm/node/agents/scorers/scorer-selector/node.js +91 -0
- package/lib/esm/node/agents/scorers/scorer-selector/node.js.map +1 -0
- package/lib/esm/node/agents/skills/skill/node.js +96 -0
- package/lib/esm/node/agents/skills/skill/node.js.map +1 -0
- package/lib/esm/node/agents/skills/skill-selector/node.js +89 -0
- package/lib/esm/node/agents/skills/skill-selector/node.js.map +1 -0
- package/lib/esm/node/agents/tools/tool/node.js +91 -0
- package/lib/esm/node/agents/tools/tool/node.js.map +1 -0
- package/lib/esm/node/agents/tools/tool-selector/node.js +90 -0
- package/lib/esm/node/agents/tools/tool-selector/node.js.map +1 -0
- package/lib/esm/node/agents/triggers/discord/node.js +92 -0
- package/lib/esm/node/agents/triggers/discord/node.js.map +1 -0
- package/lib/esm/node/agents/triggers/mcp-server/node.js +138 -0
- package/lib/esm/node/agents/triggers/mcp-server/node.js.map +1 -0
- package/lib/esm/node/agents/triggers/slack/node.js +92 -0
- package/lib/esm/node/agents/triggers/slack/node.js.map +1 -0
- package/lib/esm/node/agents/triggers/teams/node.js +92 -0
- package/lib/esm/node/agents/triggers/teams/node.js.map +1 -0
- package/lib/esm/node/agents/triggers/telegram/node.js +92 -0
- package/lib/esm/node/agents/triggers/telegram/node.js.map +1 -0
- package/lib/esm/node/agents/voice/node.js +98 -0
- package/lib/esm/node/agents/voice/node.js.map +1 -0
- package/lib/esm/node/agents/zones.js +39 -0
- package/lib/esm/node/agents/zones.js.map +1 -0
- package/lib/esm/node/comms/email-send/node.js +331 -0
- package/lib/esm/node/comms/email-send/node.js.map +1 -0
- package/lib/esm/node/comms/gmail/node.js +278 -0
- package/lib/esm/node/comms/gmail/node.js.map +1 -0
- package/lib/esm/node/comms/slack/node.js +267 -0
- package/lib/esm/node/comms/slack/node.js.map +1 -0
- package/lib/esm/node/comms/teams/node.js +222 -0
- package/lib/esm/node/comms/teams/node.js.map +1 -0
- package/lib/esm/node/comms/telegram/node.js +251 -0
- package/lib/esm/node/comms/telegram/node.js.map +1 -0
- package/lib/esm/node/credentials.js +96 -0
- package/lib/esm/node/credentials.js.map +1 -0
- package/lib/esm/node/data/data-table/node.js +256 -0
- package/lib/esm/node/data/data-table/node.js.map +1 -0
- package/lib/esm/node/data/date-time/node.js +171 -0
- package/lib/esm/node/data/date-time/node.js.map +1 -0
- package/lib/esm/node/data/filter/node.js +125 -0
- package/lib/esm/node/data/filter/node.js.map +1 -0
- package/lib/esm/node/data/limit/node.js +95 -0
- package/lib/esm/node/data/limit/node.js.map +1 -0
- package/lib/esm/node/data/merge/node.js +242 -0
- package/lib/esm/node/data/merge/node.js.map +1 -0
- package/lib/esm/node/data/rename-keys/node.js +130 -0
- package/lib/esm/node/data/rename-keys/node.js.map +1 -0
- package/lib/esm/node/data/set/node.js +139 -0
- package/lib/esm/node/data/set/node.js.map +1 -0
- package/lib/esm/node/data/sort/node.js +116 -0
- package/lib/esm/node/data/sort/node.js.map +1 -0
- package/lib/esm/node/data/split-out/node.js +131 -0
- package/lib/esm/node/data/split-out/node.js.map +1 -0
- package/lib/esm/node/data/support.js +382 -0
- package/lib/esm/node/data/support.js.map +1 -0
- package/lib/esm/node/devops/crypto/node.js +355 -0
- package/lib/esm/node/devops/crypto/node.js.map +1 -0
- package/lib/esm/node/devops/execute-command/node.js +192 -0
- package/lib/esm/node/devops/execute-command/node.js.map +1 -0
- package/lib/esm/node/devops/ftp/node.js +232 -0
- package/lib/esm/node/devops/ftp/node.js.map +1 -0
- package/lib/esm/node/devops/github/node.js +273 -0
- package/lib/esm/node/devops/github/node.js.map +1 -0
- package/lib/esm/node/devops/gitlab/node.js +264 -0
- package/lib/esm/node/devops/gitlab/node.js.map +1 -0
- package/lib/esm/node/devops/jwt/node.js +195 -0
- package/lib/esm/node/devops/jwt/node.js.map +1 -0
- package/lib/esm/node/flow/execute-sub-workflow/node.js +214 -0
- package/lib/esm/node/flow/execute-sub-workflow/node.js.map +1 -0
- package/lib/esm/node/index.js +338 -2
- package/lib/esm/node/index.js.map +1 -1
- package/lib/esm/node/io/airtable/node.js +309 -0
- package/lib/esm/node/io/airtable/node.js.map +1 -0
- package/lib/esm/node/io/extract-from-file/node.js +260 -0
- package/lib/esm/node/io/extract-from-file/node.js.map +1 -0
- package/lib/esm/node/io/google-sheets/node.js +258 -0
- package/lib/esm/node/io/google-sheets/node.js.map +1 -0
- package/lib/esm/node/io/graphql/node.js +160 -0
- package/lib/esm/node/io/graphql/node.js.map +1 -0
- package/lib/esm/node/io/http-request/node.js +406 -0
- package/lib/esm/node/io/http-request/node.js.map +1 -0
- package/lib/esm/node/io/read-pdf/node.js +164 -0
- package/lib/esm/node/io/read-pdf/node.js.map +1 -0
- package/lib/esm/node/io/read-write-file/node.js +305 -0
- package/lib/esm/node/io/read-write-file/node.js.map +1 -0
- package/lib/esm/node/io/respond-to-webhook/node.js +174 -0
- package/lib/esm/node/io/respond-to-webhook/node.js.map +1 -0
- package/lib/esm/node/io/spreadsheet-file/node.js +183 -0
- package/lib/esm/node/io/spreadsheet-file/node.js.map +1 -0
- package/lib/esm/node/manifests.js +228 -0
- package/lib/esm/node/manifests.js.map +1 -1
- package/lib/esm/node/storage/blob/azure/node.js +129 -0
- package/lib/esm/node/storage/blob/azure/node.js.map +1 -0
- package/lib/esm/node/storage/blob/base.js +311 -0
- package/lib/esm/node/storage/blob/base.js.map +1 -0
- package/lib/esm/node/storage/blob/gcs/node.js +117 -0
- package/lib/esm/node/storage/blob/gcs/node.js.map +1 -0
- package/lib/esm/node/storage/blob/s3/node.js +176 -0
- package/lib/esm/node/storage/blob/s3/node.js.map +1 -0
- package/lib/esm/node/storage/database/base.js +291 -0
- package/lib/esm/node/storage/database/base.js.map +1 -0
- package/lib/esm/node/storage/database/mssql/node.js +42 -0
- package/lib/esm/node/storage/database/mssql/node.js.map +1 -0
- package/lib/esm/node/storage/database/mysql/node.js +42 -0
- package/lib/esm/node/storage/database/mysql/node.js.map +1 -0
- package/lib/esm/node/storage/database/postgres/node.js +42 -0
- package/lib/esm/node/storage/database/postgres/node.js.map +1 -0
- package/lib/esm/node/storage/redis/node.js +331 -0
- package/lib/esm/node/storage/redis/node.js.map +1 -0
- package/lib/esm/node/storage/support.js +69 -0
- package/lib/esm/node/storage/support.js.map +1 -0
- package/lib/esm/node/triggers/execute-workflow/node.js +85 -0
- package/lib/esm/node/triggers/execute-workflow/node.js.map +1 -0
- package/lib/esm/ram/GraphNodeRepository.js +31 -0
- package/lib/esm/ram/GraphNodeRepository.js.map +1 -0
- package/lib/esm/ram/GraphRunEventModel.js +5 -1
- package/lib/esm/ram/GraphRunEventModel.js.map +1 -1
- package/lib/esm/ram/index.js +1 -0
- package/lib/esm/ram/index.js.map +1 -1
- package/lib/esm/shared/graph/GraphNodeConverters.js +38 -0
- package/lib/esm/shared/graph/GraphNodeConverters.js.map +1 -0
- package/lib/esm/shared/graph/GraphNodeModel.js +69 -0
- package/lib/esm/shared/graph/GraphNodeModel.js.map +1 -0
- package/lib/esm/shared/graph/GraphWorkflowModel.js +5 -1
- package/lib/esm/shared/graph/GraphWorkflowModel.js.map +1 -1
- package/lib/esm/shared/graph/catalog/GraphManifestCompiler.js +40 -0
- package/lib/esm/shared/graph/catalog/GraphManifestCompiler.js.map +1 -1
- package/lib/esm/shared/graph/catalog/GraphPortManifest.js.map +1 -1
- package/lib/esm/shared/graph/category-styles.js +12 -0
- package/lib/esm/shared/graph/category-styles.js.map +1 -1
- package/lib/esm/shared/graph/constants.js.map +1 -1
- package/lib/esm/shared/graph/index.js +2 -0
- package/lib/esm/shared/graph/index.js.map +1 -1
- package/lib/esm/typeorm/TypeormGraphAdapter.js +213 -0
- package/lib/esm/typeorm/TypeormGraphAdapter.js.map +1 -0
- package/lib/esm/typeorm/index.js +12 -0
- package/lib/esm/typeorm/index.js.map +1 -0
- package/lib/types/dagster/DagsterGraphExecutionBackend.d.cts +40 -4
- package/lib/types/dagster/DagsterGraphExecutionBackend.d.mts +40 -4
- package/lib/types/engine/auth/GraphAuthValidator.d.cts +13 -0
- package/lib/types/engine/auth/GraphAuthValidator.d.mts +13 -0
- package/lib/types/engine/constants.d.cts +60 -0
- package/lib/types/engine/constants.d.mts +60 -0
- package/lib/types/engine/credentials/GraphNodeCredentials.d.cts +145 -0
- package/lib/types/engine/credentials/GraphNodeCredentials.d.mts +145 -0
- package/lib/types/engine/execution/GraphExecutionBackend.d.cts +27 -0
- package/lib/types/engine/execution/GraphExecutionBackend.d.mts +27 -0
- package/lib/types/engine/execution/GraphExecutionEngine.d.cts +97 -1
- package/lib/types/engine/execution/GraphExecutionEngine.d.mts +97 -1
- package/lib/types/engine/execution/GraphNodeEngineRequirements.d.cts +24 -0
- package/lib/types/engine/execution/GraphNodeEngineRequirements.d.mts +24 -0
- package/lib/types/engine/execution/GraphWebhookResponseRegistry.d.cts +67 -0
- package/lib/types/engine/execution/GraphWebhookResponseRegistry.d.mts +67 -0
- package/lib/types/engine/execution/LocalGraphExecutionBackend.d.cts +26 -3
- package/lib/types/engine/execution/LocalGraphExecutionBackend.d.mts +26 -3
- package/lib/types/engine/execution/index.d.cts +1 -0
- package/lib/types/engine/execution/index.d.mts +1 -0
- package/lib/types/engine/index.d.cts +5 -0
- package/lib/types/engine/index.d.mts +5 -0
- package/lib/types/engine/services/GraphNodeModelService.d.cts +54 -0
- package/lib/types/engine/services/GraphNodeModelService.d.mts +54 -0
- package/lib/types/engine/services/GraphWorkflowService.d.cts +21 -0
- package/lib/types/engine/services/GraphWorkflowService.d.mts +21 -0
- package/lib/types/engine/store/GraphDataTableModel.d.cts +24 -0
- package/lib/types/engine/store/GraphDataTableModel.d.mts +24 -0
- package/lib/types/engine/store/GraphDataTableRepository.d.cts +136 -0
- package/lib/types/engine/store/GraphDataTableRepository.d.mts +136 -0
- package/lib/types/engine/store/index.d.cts +2 -0
- package/lib/types/engine/store/index.d.mts +2 -0
- package/lib/types/engine/types.d.cts +12 -0
- package/lib/types/engine/types.d.mts +12 -0
- package/lib/types/engine/validation/GraphConnectionPolicyValidator.d.cts +10 -0
- package/lib/types/engine/validation/GraphConnectionPolicyValidator.d.mts +10 -0
- package/lib/types/engine/validation/GraphParameterValidator.d.cts +1 -1
- package/lib/types/engine/validation/GraphParameterValidator.d.mts +1 -1
- package/lib/types/mastra/MastraAgeVectorDriver.d.cts +55 -0
- package/lib/types/mastra/MastraAgeVectorDriver.d.mts +55 -0
- package/lib/types/mastra/MastraAgentBuilder.d.cts +188 -0
- package/lib/types/mastra/MastraAgentBuilder.d.mts +188 -0
- package/lib/types/mastra/MastraAgentModelAdapter.d.cts +76 -0
- package/lib/types/mastra/MastraAgentModelAdapter.d.mts +76 -0
- package/lib/types/mastra/MastraAgentProcessors.d.cts +50 -0
- package/lib/types/mastra/MastraAgentProcessors.d.mts +50 -0
- package/lib/types/mastra/MastraAgentStepHandler.d.cts +128 -0
- package/lib/types/mastra/MastraAgentStepHandler.d.mts +128 -0
- package/lib/types/mastra/MastraCapabilities.d.cts +20 -0
- package/lib/types/mastra/MastraCapabilities.d.mts +20 -0
- package/lib/types/mastra/MastraChannelResponse.d.cts +64 -0
- package/lib/types/mastra/MastraChannelResponse.d.mts +64 -0
- package/lib/types/mastra/MastraChannelTrigger.d.cts +57 -0
- package/lib/types/mastra/MastraChannelTrigger.d.mts +57 -0
- package/lib/types/mastra/MastraDefaultStepHandlers.d.cts +121 -0
- package/lib/types/mastra/MastraDefaultStepHandlers.d.mts +121 -0
- package/lib/types/mastra/MastraEnvironment.d.cts +270 -0
- package/lib/types/mastra/MastraEnvironment.d.mts +270 -0
- package/lib/types/mastra/MastraEvalModels.d.cts +191 -0
- package/lib/types/mastra/MastraEvalModels.d.mts +191 -0
- package/lib/types/mastra/MastraEventBridge.d.cts +17 -0
- package/lib/types/mastra/MastraEventBridge.d.mts +17 -0
- package/lib/types/mastra/MastraGraphExecutionBackend.d.cts +137 -1
- package/lib/types/mastra/MastraGraphExecutionBackend.d.mts +137 -1
- package/lib/types/mastra/MastraGraphExecutionModule.d.cts +114 -0
- package/lib/types/mastra/MastraGraphExecutionModule.d.mts +114 -0
- package/lib/types/mastra/MastraHitlStepHandler.d.cts +18 -0
- package/lib/types/mastra/MastraHitlStepHandler.d.mts +18 -0
- package/lib/types/mastra/MastraMcpTrigger.d.cts +133 -0
- package/lib/types/mastra/MastraMcpTrigger.d.mts +133 -0
- package/lib/types/mastra/MastraMemory.d.cts +362 -0
- package/lib/types/mastra/MastraMemory.d.mts +362 -0
- package/lib/types/mastra/MastraMetricsAdapter.d.cts +216 -0
- package/lib/types/mastra/MastraMetricsAdapter.d.mts +216 -0
- package/lib/types/mastra/MastraMetricsGateway.d.cts +265 -0
- package/lib/types/mastra/MastraMetricsGateway.d.mts +265 -0
- package/lib/types/mastra/MastraMetricsModels.d.cts +175 -0
- package/lib/types/mastra/MastraMetricsModels.d.mts +175 -0
- package/lib/types/mastra/MastraMetricsStatement.d.cts +116 -0
- package/lib/types/mastra/MastraMetricsStatement.d.mts +116 -0
- package/lib/types/mastra/MastraModelSchemaConverter.d.cts +45 -0
- package/lib/types/mastra/MastraModelSchemaConverter.d.mts +45 -0
- package/lib/types/mastra/MastraObservability.d.cts +197 -0
- package/lib/types/mastra/MastraObservability.d.mts +197 -0
- package/lib/types/mastra/MastraPersistence.d.cts +241 -0
- package/lib/types/mastra/MastraPersistence.d.mts +241 -0
- package/lib/types/mastra/MastraRagStepHandlers.d.cts +137 -0
- package/lib/types/mastra/MastraRagStepHandlers.d.mts +137 -0
- package/lib/types/mastra/MastraRunMetricsEndpoint.d.cts +53 -0
- package/lib/types/mastra/MastraRunMetricsEndpoint.d.mts +53 -0
- package/lib/types/mastra/MastraRunRecovery.d.cts +26 -0
- package/lib/types/mastra/MastraRunRecovery.d.mts +26 -0
- package/lib/types/mastra/MastraScheduleTrigger.d.cts +20 -0
- package/lib/types/mastra/MastraScheduleTrigger.d.mts +20 -0
- package/lib/types/mastra/MastraStorageWiring.d.cts +71 -0
- package/lib/types/mastra/MastraStorageWiring.d.mts +71 -0
- package/lib/types/mastra/MastraStructuredOutput.d.cts +165 -0
- package/lib/types/mastra/MastraStructuredOutput.d.mts +165 -0
- package/lib/types/mastra/MastraToolBuilder.d.cts +70 -0
- package/lib/types/mastra/MastraToolBuilder.d.mts +70 -0
- package/lib/types/mastra/MastraToolConfig.d.cts +136 -0
- package/lib/types/mastra/MastraToolConfig.d.mts +136 -0
- package/lib/types/mastra/MastraToolDecorator.d.cts +47 -0
- package/lib/types/mastra/MastraToolDecorator.d.mts +47 -0
- package/lib/types/mastra/MastraVectorStore.d.cts +383 -0
- package/lib/types/mastra/MastraVectorStore.d.mts +383 -0
- package/lib/types/mastra/MastraVoiceStepHandler.d.cts +40 -0
- package/lib/types/mastra/MastraVoiceStepHandler.d.mts +40 -0
- package/lib/types/mastra/MastraWorkflowCompiler.d.cts +3 -3
- package/lib/types/mastra/MastraWorkflowCompiler.d.mts +3 -3
- package/lib/types/mastra/MastraWorkflowManager.d.cts +36 -28
- package/lib/types/mastra/MastraWorkflowManager.d.mts +36 -28
- package/lib/types/mastra/index.d.cts +41 -1
- package/lib/types/mastra/index.d.mts +41 -1
- package/lib/types/mastra/nodes/MastraNodeRegistry.d.cts +41 -0
- package/lib/types/mastra/nodes/MastraNodeRegistry.d.mts +41 -0
- package/lib/types/mastra/nodes/index.d.cts +11 -0
- package/lib/types/mastra/nodes/index.d.mts +11 -0
- package/lib/types/mastra/nodes/types.d.cts +57 -0
- package/lib/types/mastra/nodes/types.d.mts +57 -0
- package/lib/types/mastra/types.d.cts +377 -6
- package/lib/types/mastra/types.d.mts +377 -6
- package/lib/types/nest/graph/GraphBackendHost.d.cts +52 -0
- package/lib/types/nest/graph/GraphBackendHost.d.mts +52 -0
- package/lib/types/nest/graph/GraphExecutionModule.d.cts +28 -0
- package/lib/types/nest/graph/GraphExecutionModule.d.mts +28 -0
- package/lib/types/nest/graph/GraphRunController.d.cts +24 -4
- package/lib/types/nest/graph/GraphRunController.d.mts +24 -4
- package/lib/types/node/agents/agent/node.d.cts +72 -16
- package/lib/types/node/agents/agent/node.d.mts +72 -16
- package/lib/types/node/agents/hitl/node.d.cts +45 -0
- package/lib/types/node/agents/hitl/node.d.mts +45 -0
- package/lib/types/node/agents/hooks/delegation/node.d.cts +48 -0
- package/lib/types/node/agents/hooks/delegation/node.d.mts +48 -0
- package/lib/types/node/agents/hooks/hook/node.d.cts +45 -0
- package/lib/types/node/agents/hooks/hook/node.d.mts +45 -0
- package/lib/types/node/agents/hooks/tool-deny/node.d.cts +39 -0
- package/lib/types/node/agents/hooks/tool-deny/node.d.mts +39 -0
- package/lib/types/node/agents/memory/memory/node.d.cts +73 -0
- package/lib/types/node/agents/memory/memory/node.d.mts +73 -0
- package/lib/types/node/agents/memory/memory-selector/node.d.cts +34 -0
- package/lib/types/node/agents/memory/memory-selector/node.d.mts +34 -0
- package/lib/types/node/agents/processors/guardrail/node.d.cts +47 -0
- package/lib/types/node/agents/processors/guardrail/node.d.mts +47 -0
- package/lib/types/node/agents/processors/input-processor/node.d.cts +40 -0
- package/lib/types/node/agents/processors/input-processor/node.d.mts +40 -0
- package/lib/types/node/agents/processors/output-processor/node.d.cts +34 -0
- package/lib/types/node/agents/processors/output-processor/node.d.mts +34 -0
- package/lib/types/node/agents/processors/types.d.cts +45 -0
- package/lib/types/node/agents/processors/types.d.mts +45 -0
- package/lib/types/node/agents/rag/chains/basic/node.d.cts +36 -0
- package/lib/types/node/agents/rag/chains/basic/node.d.mts +36 -0
- package/lib/types/node/agents/rag/chains/qa/node.d.cts +44 -0
- package/lib/types/node/agents/rag/chains/qa/node.d.mts +44 -0
- package/lib/types/node/agents/rag/chains/summarization/node.d.cts +39 -0
- package/lib/types/node/agents/rag/chains/summarization/node.d.mts +39 -0
- package/lib/types/node/agents/rag/chunking/node.d.cts +73 -0
- package/lib/types/node/agents/rag/chunking/node.d.mts +73 -0
- package/lib/types/node/agents/rag/embedding/node.d.cts +37 -0
- package/lib/types/node/agents/rag/embedding/node.d.mts +37 -0
- package/lib/types/node/agents/rag/information-extractor/node.d.cts +39 -0
- package/lib/types/node/agents/rag/information-extractor/node.d.mts +39 -0
- package/lib/types/node/agents/rag/langchain-code/node.d.cts +36 -0
- package/lib/types/node/agents/rag/langchain-code/node.d.mts +36 -0
- package/lib/types/node/agents/rag/rerank/node.d.cts +39 -0
- package/lib/types/node/agents/rag/rerank/node.d.mts +39 -0
- package/lib/types/node/agents/rag/retriever/node.d.cts +42 -0
- package/lib/types/node/agents/rag/retriever/node.d.mts +42 -0
- package/lib/types/node/agents/rag/structured-output-parser/node.d.cts +35 -0
- package/lib/types/node/agents/rag/structured-output-parser/node.d.mts +35 -0
- package/lib/types/node/agents/rag/vector-store/node.d.cts +59 -0
- package/lib/types/node/agents/rag/vector-store/node.d.mts +59 -0
- package/lib/types/node/agents/responses/discord/node.d.cts +34 -0
- package/lib/types/node/agents/responses/discord/node.d.mts +34 -0
- package/lib/types/node/agents/responses/slack/node.d.cts +34 -0
- package/lib/types/node/agents/responses/slack/node.d.mts +34 -0
- package/lib/types/node/agents/responses/teams/node.d.cts +34 -0
- package/lib/types/node/agents/responses/teams/node.d.mts +34 -0
- package/lib/types/node/agents/responses/telegram/node.d.cts +34 -0
- package/lib/types/node/agents/responses/telegram/node.d.mts +34 -0
- package/lib/types/node/agents/sandbox/node.d.cts +47 -0
- package/lib/types/node/agents/sandbox/node.d.mts +47 -0
- package/lib/types/node/agents/scorers/scorer/node.d.cts +33 -0
- package/lib/types/node/agents/scorers/scorer/node.d.mts +33 -0
- package/lib/types/node/agents/scorers/scorer-selector/node.d.cts +33 -0
- package/lib/types/node/agents/scorers/scorer-selector/node.d.mts +33 -0
- package/lib/types/node/agents/skills/skill/node.d.cts +32 -0
- package/lib/types/node/agents/skills/skill/node.d.mts +32 -0
- package/lib/types/node/agents/skills/skill-selector/node.d.cts +33 -0
- package/lib/types/node/agents/skills/skill-selector/node.d.mts +33 -0
- package/lib/types/node/agents/tools/tool/node.d.cts +33 -0
- package/lib/types/node/agents/tools/tool/node.d.mts +33 -0
- package/lib/types/node/agents/tools/tool-selector/node.d.cts +33 -0
- package/lib/types/node/agents/tools/tool-selector/node.d.mts +33 -0
- package/lib/types/node/agents/triggers/discord/node.d.cts +40 -0
- package/lib/types/node/agents/triggers/discord/node.d.mts +40 -0
- package/lib/types/node/agents/triggers/mcp-server/node.d.cts +51 -0
- package/lib/types/node/agents/triggers/mcp-server/node.d.mts +51 -0
- package/lib/types/node/agents/triggers/slack/node.d.cts +40 -0
- package/lib/types/node/agents/triggers/slack/node.d.mts +40 -0
- package/lib/types/node/agents/triggers/teams/node.d.cts +40 -0
- package/lib/types/node/agents/triggers/teams/node.d.mts +40 -0
- package/lib/types/node/agents/triggers/telegram/node.d.cts +40 -0
- package/lib/types/node/agents/triggers/telegram/node.d.mts +40 -0
- package/lib/types/node/agents/voice/node.d.cts +34 -0
- package/lib/types/node/agents/voice/node.d.mts +34 -0
- package/lib/types/node/agents/zones.d.cts +30 -0
- package/lib/types/node/agents/zones.d.mts +30 -0
- package/lib/types/node/comms/email-send/node.d.cts +85 -0
- package/lib/types/node/comms/email-send/node.d.mts +85 -0
- package/lib/types/node/comms/gmail/node.d.cts +67 -0
- package/lib/types/node/comms/gmail/node.d.mts +67 -0
- package/lib/types/node/comms/slack/node.d.cts +65 -0
- package/lib/types/node/comms/slack/node.d.mts +65 -0
- package/lib/types/node/comms/teams/node.d.cts +49 -0
- package/lib/types/node/comms/teams/node.d.mts +49 -0
- package/lib/types/node/comms/telegram/node.d.cts +61 -0
- package/lib/types/node/comms/telegram/node.d.mts +61 -0
- package/lib/types/node/credentials.d.cts +43 -0
- package/lib/types/node/credentials.d.mts +43 -0
- package/lib/types/node/data/data-table/node.d.cts +86 -0
- package/lib/types/node/data/data-table/node.d.mts +86 -0
- package/lib/types/node/data/date-time/node.d.cts +49 -0
- package/lib/types/node/data/date-time/node.d.mts +49 -0
- package/lib/types/node/data/filter/node.d.cts +31 -0
- package/lib/types/node/data/filter/node.d.mts +31 -0
- package/lib/types/node/data/limit/node.d.cts +28 -0
- package/lib/types/node/data/limit/node.d.mts +28 -0
- package/lib/types/node/data/merge/node.d.cts +63 -0
- package/lib/types/node/data/merge/node.d.mts +63 -0
- package/lib/types/node/data/rename-keys/node.d.cts +35 -0
- package/lib/types/node/data/rename-keys/node.d.mts +35 -0
- package/lib/types/node/data/set/node.d.cts +52 -0
- package/lib/types/node/data/set/node.d.mts +52 -0
- package/lib/types/node/data/sort/node.d.cts +40 -0
- package/lib/types/node/data/sort/node.d.mts +40 -0
- package/lib/types/node/data/split-out/node.d.cts +30 -0
- package/lib/types/node/data/split-out/node.d.mts +30 -0
- package/lib/types/node/data/support.d.cts +164 -0
- package/lib/types/node/data/support.d.mts +164 -0
- package/lib/types/node/devops/crypto/node.d.cts +65 -0
- package/lib/types/node/devops/crypto/node.d.mts +65 -0
- package/lib/types/node/devops/execute-command/node.d.cts +55 -0
- package/lib/types/node/devops/execute-command/node.d.mts +55 -0
- package/lib/types/node/devops/ftp/node.d.cts +55 -0
- package/lib/types/node/devops/ftp/node.d.mts +55 -0
- package/lib/types/node/devops/github/node.d.cts +61 -0
- package/lib/types/node/devops/github/node.d.mts +61 -0
- package/lib/types/node/devops/gitlab/node.d.cts +61 -0
- package/lib/types/node/devops/gitlab/node.d.mts +61 -0
- package/lib/types/node/devops/jwt/node.d.cts +53 -0
- package/lib/types/node/devops/jwt/node.d.mts +53 -0
- package/lib/types/node/flow/execute-sub-workflow/node.d.cts +63 -0
- package/lib/types/node/flow/execute-sub-workflow/node.d.mts +63 -0
- package/lib/types/node/index.d.cts +182 -2
- package/lib/types/node/index.d.mts +182 -2
- package/lib/types/node/io/airtable/node.d.cts +73 -0
- package/lib/types/node/io/airtable/node.d.mts +73 -0
- package/lib/types/node/io/extract-from-file/node.d.cts +38 -0
- package/lib/types/node/io/extract-from-file/node.d.mts +38 -0
- package/lib/types/node/io/google-sheets/node.d.cts +77 -0
- package/lib/types/node/io/google-sheets/node.d.mts +77 -0
- package/lib/types/node/io/graphql/node.d.cts +46 -0
- package/lib/types/node/io/graphql/node.d.mts +46 -0
- package/lib/types/node/io/http-request/node.d.cts +107 -0
- package/lib/types/node/io/http-request/node.d.mts +107 -0
- package/lib/types/node/io/read-pdf/node.d.cts +40 -0
- package/lib/types/node/io/read-pdf/node.d.mts +40 -0
- package/lib/types/node/io/read-write-file/node.d.cts +41 -0
- package/lib/types/node/io/read-write-file/node.d.mts +41 -0
- package/lib/types/node/io/respond-to-webhook/node.d.cts +45 -0
- package/lib/types/node/io/respond-to-webhook/node.d.mts +45 -0
- package/lib/types/node/io/spreadsheet-file/node.d.cts +51 -0
- package/lib/types/node/io/spreadsheet-file/node.d.mts +51 -0
- package/lib/types/node/storage/blob/azure/node.d.cts +27 -0
- package/lib/types/node/storage/blob/azure/node.d.mts +27 -0
- package/lib/types/node/storage/blob/base.d.cts +83 -0
- package/lib/types/node/storage/blob/base.d.mts +83 -0
- package/lib/types/node/storage/blob/gcs/node.d.cts +27 -0
- package/lib/types/node/storage/blob/gcs/node.d.mts +27 -0
- package/lib/types/node/storage/blob/s3/node.d.cts +39 -0
- package/lib/types/node/storage/blob/s3/node.d.mts +39 -0
- package/lib/types/node/storage/database/base.d.cts +97 -0
- package/lib/types/node/storage/database/base.d.mts +97 -0
- package/lib/types/node/storage/database/mssql/node.d.cts +8 -0
- package/lib/types/node/storage/database/mssql/node.d.mts +8 -0
- package/lib/types/node/storage/database/mysql/node.d.cts +8 -0
- package/lib/types/node/storage/database/mysql/node.d.mts +8 -0
- package/lib/types/node/storage/database/postgres/node.d.cts +8 -0
- package/lib/types/node/storage/database/postgres/node.d.mts +8 -0
- package/lib/types/node/storage/redis/node.d.cts +68 -0
- package/lib/types/node/storage/redis/node.d.mts +68 -0
- package/lib/types/node/storage/support.d.cts +36 -0
- package/lib/types/node/storage/support.d.mts +36 -0
- package/lib/types/node/triggers/execute-workflow/node.d.cts +25 -0
- package/lib/types/node/triggers/execute-workflow/node.d.mts +25 -0
- package/lib/types/ram/GraphNodeRepository.d.cts +13 -0
- package/lib/types/ram/GraphNodeRepository.d.mts +13 -0
- package/lib/types/ram/GraphRunEventModel.d.cts +6 -0
- package/lib/types/ram/GraphRunEventModel.d.mts +6 -0
- package/lib/types/ram/index.d.cts +1 -0
- package/lib/types/ram/index.d.mts +1 -0
- package/lib/types/shared/graph/GraphNodeConverters.d.cts +15 -0
- package/lib/types/shared/graph/GraphNodeConverters.d.mts +15 -0
- package/lib/types/shared/graph/GraphNodeModel.d.cts +30 -0
- package/lib/types/shared/graph/GraphNodeModel.d.mts +30 -0
- package/lib/types/shared/graph/GraphWorkflowModel.d.cts +6 -0
- package/lib/types/shared/graph/GraphWorkflowModel.d.mts +6 -0
- package/lib/types/shared/graph/catalog/GraphPortManifest.d.cts +7 -0
- package/lib/types/shared/graph/catalog/GraphPortManifest.d.mts +7 -0
- package/lib/types/shared/graph/constants.d.cts +39 -0
- package/lib/types/shared/graph/constants.d.mts +39 -0
- package/lib/types/shared/graph/index.d.cts +2 -0
- package/lib/types/shared/graph/index.d.mts +2 -0
- package/lib/types/typeorm/TypeormGraphAdapter.d.cts +32 -0
- package/lib/types/typeorm/TypeormGraphAdapter.d.mts +32 -0
- package/lib/types/typeorm/index.d.cts +11 -0
- package/lib/types/typeorm/index.d.mts +11 -0
- package/package.json +59 -13
|
@@ -0,0 +1,618 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DriverBackedVectorStore = exports.InMemoryVectorStore = exports.MASTRA_VECTOR_DEFAULT_CREDENTIAL_KEYS = exports.MASTRA_NATIVE_VECTOR_BINDING_HINTS = exports.MASTRA_NATIVE_VECTOR_PROVIDERS = exports.MASTRA_VECTOR_PROVIDERS = void 0;
|
|
4
|
+
exports.isMastraNativeVectorProvider = isMastraNativeVectorProvider;
|
|
5
|
+
exports.isMastraVectorStoreConfig = isMastraVectorStoreConfig;
|
|
6
|
+
exports.mastraVectorStoreConfigOf = mastraVectorStoreConfigOf;
|
|
7
|
+
exports.mastraVectorStoreDescriptorOf = mastraVectorStoreDescriptorOf;
|
|
8
|
+
exports.mastraVectorMatchesFilter = mastraVectorMatchesFilter;
|
|
9
|
+
exports.mastraVectorScore = mastraVectorScore;
|
|
10
|
+
exports.resolveMastraVectorStore = resolveMastraVectorStore;
|
|
11
|
+
/**
|
|
12
|
+
* @module as-graph/mastra/MastraVectorStore
|
|
13
|
+
* @summary RAG vector-store layer for the mastra engine (SAA-836 M4).
|
|
14
|
+
* @description The RAG vector-store node resolves its **config** into a live
|
|
15
|
+
* `@mastra/core` {@link MastraVector} store, selecting a provider by config
|
|
16
|
+
* (memory, pgvector, redis, upstash, qdrant, pinecone, supabase, mongodb,
|
|
17
|
+
* libsql, chroma, age, graph). Mastra-first (R3): every mastra-supported store
|
|
18
|
+
* is the package's **native** `MastraVector` binding, injected by the host so
|
|
19
|
+
* as-graph never imports an optional backend package (the `pgvector`/`redis`
|
|
20
|
+
* Stage 2 bindings generalize to the same map); AGE and Graph have no stock
|
|
21
|
+
* mastra binding and are custom {@link MastraVector} stores backed by a host
|
|
22
|
+
* driver port (`createMastraAgeVectorDriver` is the reference AGE driver).
|
|
23
|
+
* Every path fails closed with {@link GRAPH_MASTRA_VECTOR_UNAVAILABLE} when the
|
|
24
|
+
* bound constructor/driver is absent, so no engine fabricates a store.
|
|
25
|
+
*
|
|
26
|
+
* Credential gate (SAA-911 F4, gate C): backend configs never carry credential
|
|
27
|
+
* values. Plaintext credential members in `connection` options are refused —
|
|
28
|
+
* never stripped — with {@link GRAPH_MASTRA_PLAIN_CREDENTIAL_REFUSED};
|
|
29
|
+
* `pgvector` requires a `credentialRef` whose `credentialId` NAMES the
|
|
30
|
+
* environment variable (user-supplied `.env.secret`) carrying the password,
|
|
31
|
+
* and `redis` resolves one when configured so a passwordless local instance
|
|
32
|
+
* stays usable. The resolved value flows only into the binding's own options
|
|
33
|
+
* and is never logged, persisted, or held by the graph layer.
|
|
34
|
+
*
|
|
35
|
+
* The in-memory provider ships a complete, offline-capable {@link MastraVector}
|
|
36
|
+
* implementation (no external service), which is the baseline used by the RAG
|
|
37
|
+
* driver tests and the config-only fallback.
|
|
38
|
+
*/
|
|
39
|
+
const vector_1 = require("@mastra/core/vector");
|
|
40
|
+
const GraphCredentialReference_js_1 = require("./../shared/graph/catalog/GraphCredentialReference.cjs");
|
|
41
|
+
const GraphExecutionError_js_1 = require("./../engine/errors/GraphExecutionError.cjs");
|
|
42
|
+
const types_js_1 = require("./types.cjs");
|
|
43
|
+
const MastraEnvironment_js_1 = require("./MastraEnvironment.cjs");
|
|
44
|
+
/** Every supported vector-store provider, in palette order. */
|
|
45
|
+
exports.MASTRA_VECTOR_PROVIDERS = [
|
|
46
|
+
"memory",
|
|
47
|
+
"pgvector",
|
|
48
|
+
"redis",
|
|
49
|
+
"upstash",
|
|
50
|
+
"age",
|
|
51
|
+
"graph",
|
|
52
|
+
"qdrant",
|
|
53
|
+
"pinecone",
|
|
54
|
+
"supabase",
|
|
55
|
+
"mongodb",
|
|
56
|
+
"libsql",
|
|
57
|
+
"chroma",
|
|
58
|
+
];
|
|
59
|
+
/** The mastra-native vector-store providers (everything the host binds). */
|
|
60
|
+
exports.MASTRA_NATIVE_VECTOR_PROVIDERS = [
|
|
61
|
+
"pgvector",
|
|
62
|
+
"redis",
|
|
63
|
+
"upstash",
|
|
64
|
+
"qdrant",
|
|
65
|
+
"pinecone",
|
|
66
|
+
"supabase",
|
|
67
|
+
"mongodb",
|
|
68
|
+
"libsql",
|
|
69
|
+
"chroma",
|
|
70
|
+
];
|
|
71
|
+
/**
|
|
72
|
+
* The package/class a mastra-native provider binds, used in fail-closed error
|
|
73
|
+
* messages so a missing host binding names the exact constructor to supply.
|
|
74
|
+
*/
|
|
75
|
+
exports.MASTRA_NATIVE_VECTOR_BINDING_HINTS = {
|
|
76
|
+
pgvector: "@mastra/pg PGVector",
|
|
77
|
+
redis: "the mastra redis vector store binding",
|
|
78
|
+
upstash: "@mastra/upstash UpstashVector",
|
|
79
|
+
qdrant: "@mastra/qdrant QdrantVector",
|
|
80
|
+
pinecone: "@mastra/pinecone PineconeVector",
|
|
81
|
+
supabase: "a Supabase-backed MastraVector (for example @mastra/pg PGVector)",
|
|
82
|
+
mongodb: "@mastra/mongodb MongoDBVector",
|
|
83
|
+
libsql: "@mastra/libsql LibSQLVector",
|
|
84
|
+
chroma: "@mastra/chroma ChromaVector",
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* The default `connection` member a provider's resolved credential is injected
|
|
88
|
+
* into. Native packages disagree on the option name; a config may override the
|
|
89
|
+
* name with {@link MastraVectorStoreConfig.credentialKey}.
|
|
90
|
+
*/
|
|
91
|
+
exports.MASTRA_VECTOR_DEFAULT_CREDENTIAL_KEYS = {
|
|
92
|
+
pgvector: "password",
|
|
93
|
+
redis: "password",
|
|
94
|
+
upstash: "token",
|
|
95
|
+
qdrant: "apiKey",
|
|
96
|
+
pinecone: "apiKey",
|
|
97
|
+
supabase: "serviceRoleKey",
|
|
98
|
+
mongodb: "password",
|
|
99
|
+
libsql: "authToken",
|
|
100
|
+
chroma: "apiKey",
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Whether a provider names a mastra-native backend bound by the host.
|
|
104
|
+
*
|
|
105
|
+
* @param provider - The provider discriminator to test.
|
|
106
|
+
* @returns `true` when the provider requires a host-bound constructor.
|
|
107
|
+
*/
|
|
108
|
+
function isMastraNativeVectorProvider(provider) {
|
|
109
|
+
return exports.MASTRA_NATIVE_VECTOR_PROVIDERS.includes(provider);
|
|
110
|
+
}
|
|
111
|
+
function isPlainRecord(value) {
|
|
112
|
+
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Structural guard for {@link MastraVectorStoreConfig}: requires a known
|
|
116
|
+
* provider and, when present, well-formed optional fields (credential
|
|
117
|
+
* reference, credential-key name, and embedding adapter).
|
|
118
|
+
*
|
|
119
|
+
* @param value - The candidate vector-store config.
|
|
120
|
+
* @returns `true` when the value is a valid vector-store configuration.
|
|
121
|
+
*/
|
|
122
|
+
function isMastraVectorStoreConfig(value) {
|
|
123
|
+
if (!isPlainRecord(value))
|
|
124
|
+
return false;
|
|
125
|
+
if (typeof value["provider"] !== "string" ||
|
|
126
|
+
!exports.MASTRA_VECTOR_PROVIDERS.includes(value["provider"])) {
|
|
127
|
+
return false;
|
|
128
|
+
}
|
|
129
|
+
const credentialRef = value["credentialRef"];
|
|
130
|
+
if (credentialRef !== undefined && !(0, GraphCredentialReference_js_1.isGraphCredentialReference)(credentialRef)) {
|
|
131
|
+
return false;
|
|
132
|
+
}
|
|
133
|
+
const credentialKey = value["credentialKey"];
|
|
134
|
+
if (credentialKey !== undefined && typeof credentialKey !== "string") {
|
|
135
|
+
return false;
|
|
136
|
+
}
|
|
137
|
+
const embedding = value["embedding"];
|
|
138
|
+
if (embedding !== undefined) {
|
|
139
|
+
if (!isPlainRecord(embedding))
|
|
140
|
+
return false;
|
|
141
|
+
if (typeof embedding["provider"] !== "string" ||
|
|
142
|
+
embedding["provider"].length === 0 ||
|
|
143
|
+
typeof embedding["modelId"] !== "string" ||
|
|
144
|
+
embedding["modelId"].length === 0) {
|
|
145
|
+
return false;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
return true;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Reads the vector-store config carried by a document node. Looks at the
|
|
152
|
+
* canonical `vectorStore` parameter first, then the legacy flat `provider`
|
|
153
|
+
* shape; an absent or malformed value returns `undefined` so the caller fails
|
|
154
|
+
* closed instead of resolving a bogus store.
|
|
155
|
+
*
|
|
156
|
+
* @param node - The canonical node instance.
|
|
157
|
+
* @returns The validated vector-store config, or `undefined` when none is present.
|
|
158
|
+
*/
|
|
159
|
+
function mastraVectorStoreConfigOf(node) {
|
|
160
|
+
const parameters = node.parameters ?? {};
|
|
161
|
+
const candidate = parameters["vectorStore"] ?? parameters;
|
|
162
|
+
return isMastraVectorStoreConfig(candidate) ? candidate : undefined;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Builds the JSON-safe descriptor for a vector-store config without resolving a
|
|
166
|
+
* live store. Used by the node's `execute` projection and the step handler so no
|
|
167
|
+
* non-JSON value or secret ever reaches a persisted result.
|
|
168
|
+
*
|
|
169
|
+
* @param config - The validated vector-store config.
|
|
170
|
+
* @returns The resolved-reference descriptor.
|
|
171
|
+
*/
|
|
172
|
+
function mastraVectorStoreDescriptorOf(config) {
|
|
173
|
+
const descriptor = {
|
|
174
|
+
type: "mastra.vectorStore",
|
|
175
|
+
provider: config.provider,
|
|
176
|
+
id: config.id ?? config.indexName ?? config.provider,
|
|
177
|
+
};
|
|
178
|
+
if (config.indexName !== undefined)
|
|
179
|
+
descriptor.indexName = config.indexName;
|
|
180
|
+
if (config.dimension !== undefined)
|
|
181
|
+
descriptor.dimension = config.dimension;
|
|
182
|
+
if (config.metric !== undefined)
|
|
183
|
+
descriptor.metric = config.metric;
|
|
184
|
+
if (config.embedding !== undefined) {
|
|
185
|
+
(0, MastraEnvironment_js_1.assertNoMastraPlainConnectionCredentials)(config.embedding, {
|
|
186
|
+
provider: config.provider,
|
|
187
|
+
id: descriptor.id,
|
|
188
|
+
surface: "vector store embedding",
|
|
189
|
+
});
|
|
190
|
+
descriptor.embedding = { ...config.embedding };
|
|
191
|
+
}
|
|
192
|
+
if (config.credentialRef !== undefined) {
|
|
193
|
+
descriptor.credentialRef = config.credentialRef;
|
|
194
|
+
}
|
|
195
|
+
return descriptor;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Evaluates a mastra {@link VectorFilter} against a metadata record. Supports
|
|
199
|
+
* the equality shorthand plus the `$and`/`$or`/`$in`/`$ne`/`$gt`/`$gte`/`$lt`/
|
|
200
|
+
* `$lte`/`$exists` operators the baseline stores need; an unrecognised operator
|
|
201
|
+
* fails the match rather than silently returning the whole set.
|
|
202
|
+
*
|
|
203
|
+
* @param metadata - The record metadata.
|
|
204
|
+
* @param filter - The mastra filter.
|
|
205
|
+
* @returns `true` when the metadata satisfies the filter.
|
|
206
|
+
*/
|
|
207
|
+
function mastraVectorMatchesFilter(metadata, filter) {
|
|
208
|
+
if (!filter)
|
|
209
|
+
return true;
|
|
210
|
+
const record = metadata ?? {};
|
|
211
|
+
for (const [key, condition] of Object.entries(filter)) {
|
|
212
|
+
if (key === "$and") {
|
|
213
|
+
if (!Array.isArray(condition) ||
|
|
214
|
+
!condition.every((entry) => mastraVectorMatchesFilter(record, entry))) {
|
|
215
|
+
return false;
|
|
216
|
+
}
|
|
217
|
+
continue;
|
|
218
|
+
}
|
|
219
|
+
if (key === "$or") {
|
|
220
|
+
if (!Array.isArray(condition) ||
|
|
221
|
+
!condition.some((entry) => mastraVectorMatchesFilter(record, entry))) {
|
|
222
|
+
return false;
|
|
223
|
+
}
|
|
224
|
+
continue;
|
|
225
|
+
}
|
|
226
|
+
const actual = record[key];
|
|
227
|
+
if (isPlainRecord(condition)) {
|
|
228
|
+
for (const [op, operand] of Object.entries(condition)) {
|
|
229
|
+
switch (op) {
|
|
230
|
+
case "$eq":
|
|
231
|
+
if (actual !== operand)
|
|
232
|
+
return false;
|
|
233
|
+
break;
|
|
234
|
+
case "$ne":
|
|
235
|
+
if (actual === operand)
|
|
236
|
+
return false;
|
|
237
|
+
break;
|
|
238
|
+
case "$in":
|
|
239
|
+
if (!Array.isArray(operand) || !operand.includes(actual))
|
|
240
|
+
return false;
|
|
241
|
+
break;
|
|
242
|
+
case "$gt":
|
|
243
|
+
if (!(typeof actual === "number" && actual > operand))
|
|
244
|
+
return false;
|
|
245
|
+
break;
|
|
246
|
+
case "$gte":
|
|
247
|
+
if (!(typeof actual === "number" && actual >= operand))
|
|
248
|
+
return false;
|
|
249
|
+
break;
|
|
250
|
+
case "$lt":
|
|
251
|
+
if (!(typeof actual === "number" && actual < operand))
|
|
252
|
+
return false;
|
|
253
|
+
break;
|
|
254
|
+
case "$lte":
|
|
255
|
+
if (!(typeof actual === "number" && actual <= operand))
|
|
256
|
+
return false;
|
|
257
|
+
break;
|
|
258
|
+
case "$exists":
|
|
259
|
+
if ((actual !== undefined) !== Boolean(operand))
|
|
260
|
+
return false;
|
|
261
|
+
break;
|
|
262
|
+
default:
|
|
263
|
+
return false;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
continue;
|
|
267
|
+
}
|
|
268
|
+
if (actual !== condition)
|
|
269
|
+
return false;
|
|
270
|
+
}
|
|
271
|
+
return true;
|
|
272
|
+
}
|
|
273
|
+
/** Cosine similarity between two equal-length vectors. */
|
|
274
|
+
function cosineSimilarity(a, b) {
|
|
275
|
+
let dot = 0;
|
|
276
|
+
let normA = 0;
|
|
277
|
+
let normB = 0;
|
|
278
|
+
const length = Math.min(a.length, b.length);
|
|
279
|
+
for (let i = 0; i < length; i++) {
|
|
280
|
+
dot += a[i] * b[i];
|
|
281
|
+
normA += a[i] * a[i];
|
|
282
|
+
normB += b[i] * b[i];
|
|
283
|
+
}
|
|
284
|
+
if (normA === 0 || normB === 0)
|
|
285
|
+
return 0;
|
|
286
|
+
return dot / (Math.sqrt(normA) * Math.sqrt(normB));
|
|
287
|
+
}
|
|
288
|
+
/** Negative euclidean distance (higher is closer), keeping mastra's score ordering. */
|
|
289
|
+
function euclideanScore(a, b) {
|
|
290
|
+
let sum = 0;
|
|
291
|
+
const length = Math.min(a.length, b.length);
|
|
292
|
+
for (let i = 0; i < length; i++) {
|
|
293
|
+
sum += (a[i] - b[i]) ** 2;
|
|
294
|
+
}
|
|
295
|
+
return -Math.sqrt(sum);
|
|
296
|
+
}
|
|
297
|
+
/** Dot-product similarity between two equal-length vectors. */
|
|
298
|
+
function dotProduct(a, b) {
|
|
299
|
+
let dot = 0;
|
|
300
|
+
const length = Math.min(a.length, b.length);
|
|
301
|
+
for (let i = 0; i < length; i++) {
|
|
302
|
+
dot += a[i] * b[i];
|
|
303
|
+
}
|
|
304
|
+
return dot;
|
|
305
|
+
}
|
|
306
|
+
/** Scores two vectors under a metric (higher is always closer). */
|
|
307
|
+
function mastraVectorScore(metric, a, b) {
|
|
308
|
+
switch (metric) {
|
|
309
|
+
case "euclidean":
|
|
310
|
+
return euclideanScore(a, b);
|
|
311
|
+
case "dotproduct":
|
|
312
|
+
return dotProduct(a, b);
|
|
313
|
+
case "cosine":
|
|
314
|
+
default:
|
|
315
|
+
return cosineSimilarity(a, b);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* The built-in **in-memory** {@link MastraVector} store (SAA-836 M4): a complete,
|
|
320
|
+
* dependency-free implementation used as the RAG baseline and offline fallback.
|
|
321
|
+
* It supports the full {@link MastraVector} contract, including metadata filters
|
|
322
|
+
* and the cosine/euclidean/dotproduct metrics.
|
|
323
|
+
*/
|
|
324
|
+
class InMemoryVectorStore extends vector_1.MastraVector {
|
|
325
|
+
/**
|
|
326
|
+
* Creates an in-memory vector store.
|
|
327
|
+
*
|
|
328
|
+
* @param options - Optional store id.
|
|
329
|
+
*/
|
|
330
|
+
constructor(options = {}) {
|
|
331
|
+
super({ id: options.id ?? "in-memory" });
|
|
332
|
+
/** Indexes keyed by name. */
|
|
333
|
+
this.indexes = new Map();
|
|
334
|
+
/** Monotonic id source for records upserted without an explicit id. */
|
|
335
|
+
this.counter = 0;
|
|
336
|
+
}
|
|
337
|
+
/** Reads an index, failing closed when it does not exist. */
|
|
338
|
+
requireIndex(indexName) {
|
|
339
|
+
const index = this.indexes.get(indexName);
|
|
340
|
+
if (!index) {
|
|
341
|
+
throw new GraphExecutionError_js_1.GraphExecutionError(`In-memory vector index '${indexName}' does not exist`, types_js_1.GRAPH_MASTRA_VECTOR_UNAVAILABLE, { indexName });
|
|
342
|
+
}
|
|
343
|
+
return index;
|
|
344
|
+
}
|
|
345
|
+
/** Creates an index with the given dimension and metric. */
|
|
346
|
+
async createIndex(params) {
|
|
347
|
+
this.indexes.set(params.indexName, {
|
|
348
|
+
dimension: params.dimension,
|
|
349
|
+
metric: params.metric ?? "cosine",
|
|
350
|
+
records: new Map(),
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
/** Lists the index names. */
|
|
354
|
+
async listIndexes() {
|
|
355
|
+
return [...this.indexes.keys()];
|
|
356
|
+
}
|
|
357
|
+
/** Describes an index (dimension, count, metric). */
|
|
358
|
+
async describeIndex(params) {
|
|
359
|
+
const index = this.requireIndex(params.indexName);
|
|
360
|
+
const stats = {
|
|
361
|
+
dimension: index.dimension,
|
|
362
|
+
count: index.records.size,
|
|
363
|
+
};
|
|
364
|
+
stats.metric = index.metric;
|
|
365
|
+
return stats;
|
|
366
|
+
}
|
|
367
|
+
/** Deletes an index. */
|
|
368
|
+
async deleteIndex(params) {
|
|
369
|
+
this.indexes.delete(params.indexName);
|
|
370
|
+
}
|
|
371
|
+
/** Upserts vectors, optionally replacing records matched by `deleteFilter`. */
|
|
372
|
+
async upsert(params) {
|
|
373
|
+
const index = this.requireIndex(params.indexName);
|
|
374
|
+
if (params.deleteFilter) {
|
|
375
|
+
for (const [id, record] of index.records) {
|
|
376
|
+
if (mastraVectorMatchesFilter(record.metadata, params.deleteFilter)) {
|
|
377
|
+
index.records.delete(id);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
const ids = [];
|
|
382
|
+
params.vectors.forEach((vector, position) => {
|
|
383
|
+
const id = params.ids?.[position] ?? `vec_${++this.counter}`;
|
|
384
|
+
index.records.set(id, {
|
|
385
|
+
id,
|
|
386
|
+
vector,
|
|
387
|
+
metadata: params.metadata?.[position],
|
|
388
|
+
});
|
|
389
|
+
ids.push(id);
|
|
390
|
+
});
|
|
391
|
+
return ids;
|
|
392
|
+
}
|
|
393
|
+
/** Queries an index by vector and/or metadata filter. */
|
|
394
|
+
async query(params) {
|
|
395
|
+
const index = this.requireIndex(params.indexName);
|
|
396
|
+
const candidates = [...index.records.values()].filter((record) => mastraVectorMatchesFilter(record.metadata, params.filter));
|
|
397
|
+
const scored = candidates.map((record) => {
|
|
398
|
+
const scoreValue = params.queryVector
|
|
399
|
+
? mastraVectorScore(index.metric, params.queryVector, record.vector)
|
|
400
|
+
: 1;
|
|
401
|
+
const result = {
|
|
402
|
+
id: record.id,
|
|
403
|
+
score: scoreValue,
|
|
404
|
+
metadata: record.metadata,
|
|
405
|
+
};
|
|
406
|
+
if (params.includeVector)
|
|
407
|
+
result.vector = record.vector;
|
|
408
|
+
return result;
|
|
409
|
+
});
|
|
410
|
+
scored.sort((a, b) => b.score - a.score);
|
|
411
|
+
return params.topK !== undefined ? scored.slice(0, params.topK) : scored;
|
|
412
|
+
}
|
|
413
|
+
/** Updates one record by id, or every record matching a filter. */
|
|
414
|
+
async updateVector(params) {
|
|
415
|
+
const index = this.requireIndex(params.indexName);
|
|
416
|
+
if (params.id !== undefined) {
|
|
417
|
+
const record = index.records.get(params.id);
|
|
418
|
+
if (!record)
|
|
419
|
+
return;
|
|
420
|
+
if (params.update.vector)
|
|
421
|
+
record.vector = params.update.vector;
|
|
422
|
+
if (params.update.metadata)
|
|
423
|
+
record.metadata = params.update.metadata;
|
|
424
|
+
return;
|
|
425
|
+
}
|
|
426
|
+
for (const record of index.records.values()) {
|
|
427
|
+
if (mastraVectorMatchesFilter(record.metadata, params.filter)) {
|
|
428
|
+
if (params.update.vector)
|
|
429
|
+
record.vector = params.update.vector;
|
|
430
|
+
if (params.update.metadata)
|
|
431
|
+
record.metadata = params.update.metadata;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
/** Deletes one record by id. */
|
|
436
|
+
async deleteVector(params) {
|
|
437
|
+
const index = this.requireIndex(params.indexName);
|
|
438
|
+
index.records.delete(params.id);
|
|
439
|
+
}
|
|
440
|
+
/** Deletes records by explicit ids or metadata filter. */
|
|
441
|
+
async deleteVectors(params) {
|
|
442
|
+
const index = this.requireIndex(params.indexName);
|
|
443
|
+
if (params.ids) {
|
|
444
|
+
for (const id of params.ids)
|
|
445
|
+
index.records.delete(id);
|
|
446
|
+
return;
|
|
447
|
+
}
|
|
448
|
+
for (const [id, record] of index.records) {
|
|
449
|
+
if (mastraVectorMatchesFilter(record.metadata, params.filter)) {
|
|
450
|
+
index.records.delete(id);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
exports.InMemoryVectorStore = InMemoryVectorStore;
|
|
456
|
+
/**
|
|
457
|
+
* A custom {@link MastraVector} store that delegates every contract method to a
|
|
458
|
+
* host-injected {@link MastraVectorDriver}. Used for the AGE (Apache AGE) and
|
|
459
|
+
* Graph (as-graph) providers, which mastra has no native binding for.
|
|
460
|
+
*/
|
|
461
|
+
class DriverBackedVectorStore extends vector_1.MastraVector {
|
|
462
|
+
/**
|
|
463
|
+
* Creates a driver-backed vector store.
|
|
464
|
+
*
|
|
465
|
+
* @param driver - The host driver implementing the store operations.
|
|
466
|
+
* @param options - The store id and the provider name it represents.
|
|
467
|
+
*/
|
|
468
|
+
constructor(driver, options) {
|
|
469
|
+
super({ id: options.id });
|
|
470
|
+
this.driver = driver;
|
|
471
|
+
}
|
|
472
|
+
/** Delegates to the driver. */
|
|
473
|
+
query(params) {
|
|
474
|
+
return this.driver.query(params);
|
|
475
|
+
}
|
|
476
|
+
/** Delegates to the driver. */
|
|
477
|
+
upsert(params) {
|
|
478
|
+
return this.driver.upsert(params);
|
|
479
|
+
}
|
|
480
|
+
/** Delegates to the driver. */
|
|
481
|
+
createIndex(params) {
|
|
482
|
+
return this.driver.createIndex(params);
|
|
483
|
+
}
|
|
484
|
+
/** Delegates to the driver. */
|
|
485
|
+
listIndexes() {
|
|
486
|
+
return this.driver.listIndexes();
|
|
487
|
+
}
|
|
488
|
+
/** Delegates to the driver. */
|
|
489
|
+
describeIndex(params) {
|
|
490
|
+
return this.driver.describeIndex(params);
|
|
491
|
+
}
|
|
492
|
+
/** Delegates to the driver. */
|
|
493
|
+
deleteIndex(params) {
|
|
494
|
+
return this.driver.deleteIndex(params);
|
|
495
|
+
}
|
|
496
|
+
/** Delegates to the driver. */
|
|
497
|
+
updateVector(params) {
|
|
498
|
+
return this.driver.updateVector(params);
|
|
499
|
+
}
|
|
500
|
+
/** Delegates to the driver. */
|
|
501
|
+
deleteVector(params) {
|
|
502
|
+
return this.driver.deleteVector(params);
|
|
503
|
+
}
|
|
504
|
+
/** Delegates to the driver. */
|
|
505
|
+
deleteVectors(params) {
|
|
506
|
+
return this.driver.deleteVectors(params);
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
exports.DriverBackedVectorStore = DriverBackedVectorStore;
|
|
510
|
+
/**
|
|
511
|
+
* Builds the constructor options a mastra-native binding is instantiated with
|
|
512
|
+
* (SAA-911 F4, gate C): plaintext credential members in the connection are
|
|
513
|
+
* refused — never stripped — and the credential is resolved **by name** from
|
|
514
|
+
* the config's `credentialRef` at construction time (the value is read from
|
|
515
|
+
* the host `.env.secret` environment and only flows into the binding's own
|
|
516
|
+
* options). `pgvector` always requires a credential reference (PostgreSQL
|
|
517
|
+
* authenticates every connection); every other provider resolves one when
|
|
518
|
+
* configured so passwordless local instances stay usable while a configured
|
|
519
|
+
* credential still arrives through the name-only reference. The resolved value
|
|
520
|
+
* is injected into the member named by the config's `credentialKey` or the
|
|
521
|
+
* provider's default key ({@link MASTRA_VECTOR_DEFAULT_CREDENTIAL_KEYS}).
|
|
522
|
+
*
|
|
523
|
+
* @param config - The validated vector-store config.
|
|
524
|
+
* @param provider - The provider the binding is constructed for.
|
|
525
|
+
* @param id - The resolved store id.
|
|
526
|
+
* @returns The constructor options, credential-resolved.
|
|
527
|
+
* @throws {GraphExecutionError} {@link GRAPH_MASTRA_PLAIN_CREDENTIAL_REFUSED}
|
|
528
|
+
* when the connection carries plaintext credential material.
|
|
529
|
+
* @throws {GraphExecutionError} {@link GRAPH_MASTRA_CREDENTIALS_UNAVAILABLE}
|
|
530
|
+
* when a required credential reference is absent or unresolvable.
|
|
531
|
+
*/
|
|
532
|
+
function bindingOptions(config, provider, id) {
|
|
533
|
+
const context = { provider, id, surface: "vector store" };
|
|
534
|
+
const connection = { ...(config.connection ?? {}) };
|
|
535
|
+
(0, MastraEnvironment_js_1.assertNoMastraPlainConnectionCredentials)(connection, context);
|
|
536
|
+
const options = {
|
|
537
|
+
...connection,
|
|
538
|
+
id,
|
|
539
|
+
};
|
|
540
|
+
const credentialRequired = provider === "pgvector";
|
|
541
|
+
if (credentialRequired || config.credentialRef !== undefined) {
|
|
542
|
+
const credentialEnv = (0, MastraEnvironment_js_1.mastraCredentialEnvNameOf)(config, context, `${provider} credential`);
|
|
543
|
+
const credentialKey = config.credentialKey ??
|
|
544
|
+
exports.MASTRA_VECTOR_DEFAULT_CREDENTIAL_KEYS[provider];
|
|
545
|
+
options[credentialKey] = (0, MastraEnvironment_js_1.resolveMastraCredentialValue)(credentialEnv);
|
|
546
|
+
}
|
|
547
|
+
return options;
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* Resolves a RAG vector-store config into a live {@link MastraVector} store.
|
|
551
|
+
*
|
|
552
|
+
* Mastra-first (R3): every mastra-native provider (`pgvector`, `redis`,
|
|
553
|
+
* `upstash`, `qdrant`, `pinecone`, `supabase`, `mongodb`, `libsql`, `chroma`)
|
|
554
|
+
* uses the host-bound mastra-native constructor; `memory` uses the built-in
|
|
555
|
+
* {@link InMemoryVectorStore}; `age` and `graph` use the host-provided
|
|
556
|
+
* {@link MastraVectorDriver}. Every path fails closed with
|
|
557
|
+
* {@link GRAPH_MASTRA_VECTOR_UNAVAILABLE} when the required binding or driver is
|
|
558
|
+
* absent, and an unknown provider fails with
|
|
559
|
+
* {@link GRAPH_MASTRA_VECTOR_PROVIDER_UNKNOWN} — never a fabricated store.
|
|
560
|
+
*
|
|
561
|
+
* Credential gate (SAA-911 F4, gate C): backend configs never carry credential
|
|
562
|
+
* values. `pgvector` requires a `credentialRef` naming the environment variable
|
|
563
|
+
* that carries the credential, and any provider resolves one when configured —
|
|
564
|
+
* the value is injected into the `connection` member named by
|
|
565
|
+
* {@link MastraVectorStoreConfig.credentialKey} or the provider's default key
|
|
566
|
+
* (see {@link MASTRA_VECTOR_DEFAULT_CREDENTIAL_KEYS}). Plaintext credential
|
|
567
|
+
* members in `connection` options are refused in both cases, and the value is
|
|
568
|
+
* resolved from the host `.env.secret` environment only at construction time.
|
|
569
|
+
*
|
|
570
|
+
* @param config - The validated vector-store config.
|
|
571
|
+
* @param options - The host bindings and drivers.
|
|
572
|
+
* @returns The live store and its JSON-safe descriptor.
|
|
573
|
+
* @throws {GraphExecutionError} {@link GRAPH_MASTRA_PLAIN_CREDENTIAL_REFUSED}
|
|
574
|
+
* when the connection options carry plaintext credential material.
|
|
575
|
+
* @throws {GraphExecutionError} {@link GRAPH_MASTRA_CREDENTIALS_UNAVAILABLE}
|
|
576
|
+
* when a required credential reference is absent, malformed, or its
|
|
577
|
+
* environment variable is unset or empty.
|
|
578
|
+
* @throws {GraphExecutionError} when the provider binding/driver is unavailable.
|
|
579
|
+
*/
|
|
580
|
+
function resolveMastraVectorStore(config, options = {}) {
|
|
581
|
+
const descriptor = mastraVectorStoreDescriptorOf(config);
|
|
582
|
+
switch (config.provider) {
|
|
583
|
+
case "memory":
|
|
584
|
+
return {
|
|
585
|
+
store: new InMemoryVectorStore({ id: descriptor.id }),
|
|
586
|
+
descriptor,
|
|
587
|
+
};
|
|
588
|
+
case "age":
|
|
589
|
+
case "graph": {
|
|
590
|
+
const driver = options.drivers?.[config.provider];
|
|
591
|
+
if (!driver) {
|
|
592
|
+
throw new GraphExecutionError_js_1.GraphExecutionError(`The ${config.provider} vector store requires a host-provided driver`, types_js_1.GRAPH_MASTRA_VECTOR_UNAVAILABLE, { provider: config.provider, id: descriptor.id });
|
|
593
|
+
}
|
|
594
|
+
return {
|
|
595
|
+
store: new DriverBackedVectorStore(driver, {
|
|
596
|
+
id: descriptor.id,
|
|
597
|
+
provider: config.provider,
|
|
598
|
+
}),
|
|
599
|
+
descriptor,
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
default: {
|
|
603
|
+
if (!isMastraNativeVectorProvider(config.provider)) {
|
|
604
|
+
throw new GraphExecutionError_js_1.GraphExecutionError(`Unknown RAG vector-store provider '${String(config.provider)}'`, types_js_1.GRAPH_MASTRA_VECTOR_PROVIDER_UNKNOWN, { provider: String(config.provider) });
|
|
605
|
+
}
|
|
606
|
+
const binding = options.bindings?.[config.provider];
|
|
607
|
+
if (!binding) {
|
|
608
|
+
throw new GraphExecutionError_js_1.GraphExecutionError(`The ${config.provider} vector store requires the host-bound ${exports.MASTRA_NATIVE_VECTOR_BINDING_HINTS[config.provider]} binding`, types_js_1.GRAPH_MASTRA_VECTOR_UNAVAILABLE, { provider: config.provider, id: descriptor.id });
|
|
609
|
+
}
|
|
610
|
+
return {
|
|
611
|
+
store: new binding(bindingOptions(config, config.provider, descriptor.id)),
|
|
612
|
+
descriptor,
|
|
613
|
+
};
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
//# sourceMappingURL=MastraVectorStore.js.map
|
|
618
|
+
//# sourceMappingURL=MastraVectorStore.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mastra/MastraVectorStore.cjs","sourceRoot":"","sources":["mastra/MastraVectorStore.js"],"names":[],"mappings":";;;AAiGA,oEAEC;AAYD,8DA2BC;AAUD,8DAIC;AASD,sEAwBC;AAWD,8DAiEC;AAmCD,8CAUC;AAqQD,4DAoCC;AA3lBD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2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