@mastra/core 1.0.0-beta.14 → 1.0.0-beta.16
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/CHANGELOG.md +472 -0
- package/dist/agent/agent-legacy.d.ts.map +1 -1
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/index.cjs +11 -11
- package/dist/agent/index.js +2 -2
- package/dist/agent/message-list/index.cjs +3 -3
- package/dist/agent/message-list/index.d.ts +1 -1
- package/dist/agent/message-list/index.d.ts.map +1 -1
- package/dist/agent/message-list/index.js +1 -1
- package/dist/agent/message-list/prompt/attachments-to-parts.d.ts.map +1 -1
- package/dist/agent/utils.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/map-results-step.d.ts.map +1 -1
- package/dist/{chunk-DBW6S25C.cjs → chunk-33VDGXRH.cjs} +83 -65
- package/dist/chunk-33VDGXRH.cjs.map +1 -0
- package/dist/chunk-37YWZMBX.js +27 -0
- package/dist/chunk-37YWZMBX.js.map +1 -0
- package/dist/chunk-3ZRMVPQA.cjs +263 -0
- package/dist/chunk-3ZRMVPQA.cjs.map +1 -0
- package/dist/{chunk-VZJOEGQA.js → chunk-4DFWV4IR.js} +2 -2
- package/dist/chunk-4DFWV4IR.js.map +1 -0
- package/dist/{chunk-53SZJCBX.cjs → chunk-4KVIXN7K.cjs} +24 -24
- package/dist/{chunk-53SZJCBX.cjs.map → chunk-4KVIXN7K.cjs.map} +1 -1
- package/dist/{chunk-QDVYP2T7.js → chunk-4N6WB4EZ.js} +7 -7
- package/dist/{chunk-QDVYP2T7.js.map → chunk-4N6WB4EZ.js.map} +1 -1
- package/dist/{chunk-HWMMIRIF.cjs → chunk-4U7ZLI36.cjs} +3 -2
- package/dist/chunk-4U7ZLI36.cjs.map +1 -0
- package/dist/{chunk-O5BQBZEF.cjs → chunk-4UH5LAF5.cjs} +28 -28
- package/dist/{chunk-O5BQBZEF.cjs.map → chunk-4UH5LAF5.cjs.map} +1 -1
- package/dist/{chunk-JAGQZZ43.cjs → chunk-5DL6Y7PJ.cjs} +696 -352
- package/dist/chunk-5DL6Y7PJ.cjs.map +1 -0
- package/dist/{chunk-Z55SJVEC.cjs → chunk-6YUHA5UH.cjs} +7 -6
- package/dist/chunk-6YUHA5UH.cjs.map +1 -0
- package/dist/{chunk-TRUNX3AX.cjs → chunk-7KL2YFFK.cjs} +31 -31
- package/dist/chunk-7KL2YFFK.cjs.map +1 -0
- package/dist/{chunk-6CG7IY57.cjs → chunk-A6JNGJIU.cjs} +325 -164
- package/dist/chunk-A6JNGJIU.cjs.map +1 -0
- package/dist/{chunk-EGHGFLL3.cjs → chunk-AAX7ZOM7.cjs} +2 -2
- package/dist/chunk-AAX7ZOM7.cjs.map +1 -0
- package/dist/{chunk-O3ULBGV6.cjs → chunk-AQ22JIR7.cjs} +43 -21
- package/dist/chunk-AQ22JIR7.cjs.map +1 -0
- package/dist/chunk-CSCTVLD5.js +598 -0
- package/dist/chunk-CSCTVLD5.js.map +1 -0
- package/dist/chunk-DMX7MC4N.js +3 -0
- package/dist/{chunk-GXSERFAG.js.map → chunk-DMX7MC4N.js.map} +1 -1
- package/dist/{chunk-AYBJ5GAD.js → chunk-DT5RMENY.js} +302 -136
- package/dist/chunk-DT5RMENY.js.map +1 -0
- package/dist/{chunk-72E3YF6A.cjs → chunk-EMLEZXTQ.cjs} +15 -12
- package/dist/chunk-EMLEZXTQ.cjs.map +1 -0
- package/dist/{chunk-QF4MHFSU.js → chunk-F7PAZAGE.js} +530 -191
- package/dist/chunk-F7PAZAGE.js.map +1 -0
- package/dist/{chunk-LDXKZYOV.js → chunk-FB5QMTJJ.js} +30 -8
- package/dist/chunk-FB5QMTJJ.js.map +1 -0
- package/dist/{chunk-YPLZDWG7.js → chunk-FJEVLHJT.js} +3 -2
- package/dist/chunk-FJEVLHJT.js.map +1 -0
- package/dist/{chunk-GBQXIVL6.js → chunk-GNUITL2N.js} +801 -1240
- package/dist/chunk-GNUITL2N.js.map +1 -0
- package/dist/chunk-H2NHG7QL.cjs +32 -0
- package/dist/chunk-H2NHG7QL.cjs.map +1 -0
- package/dist/chunk-J4SXS7KN.js +259 -0
- package/dist/chunk-J4SXS7KN.js.map +1 -0
- package/dist/{chunk-Y36Y5MTD.js → chunk-JQM64OZF.js} +13 -3
- package/dist/chunk-JQM64OZF.js.map +1 -0
- package/dist/{chunk-67LM2UCT.js → chunk-K4XAKG7L.js} +5 -5
- package/dist/{chunk-67LM2UCT.js.map → chunk-K4XAKG7L.js.map} +1 -1
- package/dist/{chunk-4CMIJQF6.js → chunk-KKYAYRIO.js} +14 -14
- package/dist/chunk-KKYAYRIO.js.map +1 -0
- package/dist/{chunk-FPDJ4XN6.cjs → chunk-NCAMNQC3.cjs} +303 -137
- package/dist/chunk-NCAMNQC3.cjs.map +1 -0
- package/dist/chunk-NK4UN2LF.cjs +674 -0
- package/dist/chunk-NK4UN2LF.cjs.map +1 -0
- package/dist/{chunk-5UQ5TB6J.js → chunk-NNFF3URD.js} +41 -23
- package/dist/chunk-NNFF3URD.js.map +1 -0
- package/dist/{chunk-GELVUDUY.js → chunk-O7M7DR4E.js} +3 -3
- package/dist/{chunk-GELVUDUY.js.map → chunk-O7M7DR4E.js.map} +1 -1
- package/dist/chunk-OTIGV7CL.js +10215 -0
- package/dist/chunk-OTIGV7CL.js.map +1 -0
- package/dist/{chunk-ETWAR2YE.cjs → chunk-OXV6QFSV.cjs} +828 -1275
- package/dist/chunk-OXV6QFSV.cjs.map +1 -0
- package/dist/{chunk-373OC54J.js → chunk-QD776HMB.js} +7 -6
- package/dist/{chunk-373OC54J.js.map → chunk-QD776HMB.js.map} +1 -1
- package/dist/{chunk-4AT6YQKZ.js → chunk-QXL3F3T2.js} +7 -4
- package/dist/chunk-QXL3F3T2.js.map +1 -0
- package/dist/chunk-RMV5HJM7.cjs +10237 -0
- package/dist/chunk-RMV5HJM7.cjs.map +1 -0
- package/dist/chunk-ROOVGRNA.cjs +4 -0
- package/dist/{chunk-X4RMXTXF.cjs.map → chunk-ROOVGRNA.cjs.map} +1 -1
- package/dist/{chunk-OOUFPYSX.cjs → chunk-SSB4AVHU.cjs} +17 -17
- package/dist/{chunk-OOUFPYSX.cjs.map → chunk-SSB4AVHU.cjs.map} +1 -1
- package/dist/{chunk-TDM43G4I.cjs → chunk-UT6MASE5.cjs} +9 -9
- package/dist/{chunk-TDM43G4I.cjs.map → chunk-UT6MASE5.cjs.map} +1 -1
- package/dist/{chunk-3IP3DZ7G.js → chunk-UTMBASR5.js} +291 -130
- package/dist/chunk-UTMBASR5.js.map +1 -0
- package/dist/{chunk-SLBWA2F3.js → chunk-WDXYPI3P.js} +3 -3
- package/dist/{chunk-SLBWA2F3.js.map → chunk-WDXYPI3P.js.map} +1 -1
- package/dist/{chunk-72YCRTEX.cjs → chunk-ZSZOYPSJ.cjs} +13 -2
- package/dist/chunk-ZSZOYPSJ.cjs.map +1 -0
- package/dist/error/index.cjs +6 -6
- package/dist/error/index.d.ts +1 -0
- package/dist/error/index.d.ts.map +1 -1
- package/dist/error/index.js +1 -1
- package/dist/evals/index.cjs +49 -9
- package/dist/evals/index.js +2 -2
- package/dist/evals/scoreTraces/index.cjs +70 -22
- package/dist/evals/scoreTraces/index.cjs.map +1 -1
- package/dist/evals/scoreTraces/index.js +63 -15
- package/dist/evals/scoreTraces/index.js.map +1 -1
- package/dist/evals/scoreTraces/scoreTracesWorkflow.d.ts.map +1 -1
- package/dist/evals/scoreTraces/utils.d.ts.map +1 -1
- package/dist/evals/types.d.ts +566 -116
- package/dist/evals/types.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/integration/index.cjs +2 -2
- package/dist/integration/index.js +1 -1
- package/dist/llm/index.cjs +20 -20
- package/dist/llm/index.js +4 -4
- package/dist/llm/model/aisdk/v6/model.d.ts +1 -9
- package/dist/llm/model/aisdk/v6/model.d.ts.map +1 -1
- package/dist/llm/model/embedding-router.d.ts +1 -1
- package/dist/llm/model/model.d.ts.map +1 -1
- package/dist/llm/model/model.loop.d.ts.map +1 -1
- package/dist/llm/model/provider-options.d.ts +2 -1
- package/dist/llm/model/provider-options.d.ts.map +1 -1
- package/dist/llm/model/provider-types.generated.d.ts +129 -58
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +1 -1
- package/dist/loop/network/index.d.ts +6 -6
- package/dist/loop/test-utils/MastraLanguageModelV3Mock.d.ts +1 -9
- package/dist/loop/test-utils/MastraLanguageModelV3Mock.d.ts.map +1 -1
- package/dist/loop/types.d.ts +5 -2
- package/dist/loop/types.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/tool-call-step.d.ts +1 -1
- package/dist/loop/workflows/agentic-execution/tool-call-step.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-loop/index.d.ts.map +1 -1
- package/dist/mastra/hooks.d.ts.map +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.ts +7 -2
- package/dist/mastra/index.d.ts.map +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/mcp/index.cjs +7 -4
- package/dist/mcp/index.cjs.map +1 -1
- package/dist/mcp/index.d.ts +2 -0
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +4 -1
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/types.d.ts +2 -0
- package/dist/mcp/types.d.ts.map +1 -1
- package/dist/memory/index.cjs +26 -6
- package/dist/memory/index.d.ts +1 -0
- package/dist/memory/index.d.ts.map +1 -1
- package/dist/memory/index.js +1 -1
- package/dist/memory/memory.d.ts +9 -8
- package/dist/memory/memory.d.ts.map +1 -1
- package/dist/memory/mock.d.ts +2 -1
- package/dist/memory/mock.d.ts.map +1 -1
- package/dist/memory/types.d.ts +3 -4
- package/dist/memory/types.d.ts.map +1 -1
- package/dist/memory/working-memory-utils.d.ts +20 -0
- package/dist/memory/working-memory-utils.d.ts.map +1 -0
- package/dist/models-dev-26XLUKVK.cjs +12 -0
- package/dist/{models-dev-PPS7X4JM.cjs.map → models-dev-26XLUKVK.cjs.map} +1 -1
- package/dist/models-dev-HUFLQFPB.js +3 -0
- package/dist/{models-dev-E3WWI7VA.js.map → models-dev-HUFLQFPB.js.map} +1 -1
- package/dist/netlify-3MHHJG2E.js +3 -0
- package/dist/{netlify-TY656UYF.js.map → netlify-3MHHJG2E.js.map} +1 -1
- package/dist/netlify-5Y33S7WL.cjs +12 -0
- package/dist/{netlify-VZFM5UH3.cjs.map → netlify-5Y33S7WL.cjs.map} +1 -1
- package/dist/observability/index.cjs +14 -10
- package/dist/observability/index.js +1 -1
- package/dist/observability/types/tracing.d.ts +34 -20
- package/dist/observability/types/tracing.d.ts.map +1 -1
- package/dist/processors/index.cjs +37 -37
- package/dist/processors/index.d.ts +2 -0
- package/dist/processors/index.d.ts.map +1 -1
- package/dist/processors/index.js +1 -1
- package/dist/processors/memory/message-history.d.ts +7 -1
- package/dist/processors/memory/message-history.d.ts.map +1 -1
- package/dist/processors/processors/language-detector.d.ts.map +1 -1
- package/dist/processors/processors/moderation.d.ts.map +1 -1
- package/dist/processors/processors/pii-detector.d.ts.map +1 -1
- package/dist/processors/processors/prompt-injection-detector.d.ts.map +1 -1
- package/dist/processors/processors/structured-output.d.ts +1 -0
- package/dist/processors/processors/structured-output.d.ts.map +1 -1
- package/dist/processors/processors/token-limiter.d.ts +5 -2
- package/dist/processors/processors/token-limiter.d.ts.map +1 -1
- package/dist/processors/runner.d.ts +2 -0
- package/dist/processors/runner.d.ts.map +1 -1
- package/dist/provider-registry-LXSWMVEC.js +3 -0
- package/dist/{provider-registry-NXVD764B.js.map → provider-registry-LXSWMVEC.js.map} +1 -1
- package/dist/provider-registry-YJ2P5YY5.cjs +40 -0
- package/dist/{provider-registry-ZIWSEUQE.cjs.map → provider-registry-YJ2P5YY5.cjs.map} +1 -1
- package/dist/provider-registry.json +298 -132
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/server/index.cjs +5 -5
- package/dist/server/index.js +1 -1
- package/dist/server/types.d.ts +28 -0
- package/dist/server/types.d.ts.map +1 -1
- package/dist/storage/base.d.ts +95 -300
- package/dist/storage/base.d.ts.map +1 -1
- package/dist/storage/constants.cjs +60 -0
- package/dist/storage/constants.cjs.map +1 -0
- package/dist/storage/constants.d.ts +6 -1
- package/dist/storage/constants.d.ts.map +1 -1
- package/dist/storage/constants.js +3 -0
- package/dist/storage/constants.js.map +1 -0
- package/dist/storage/domains/agents/base.d.ts +2 -2
- package/dist/storage/domains/agents/base.d.ts.map +1 -1
- package/dist/storage/domains/agents/inmemory.d.ts +5 -4
- package/dist/storage/domains/agents/inmemory.d.ts.map +1 -1
- package/dist/storage/domains/base.d.ts +20 -0
- package/dist/storage/domains/base.d.ts.map +1 -0
- package/dist/storage/domains/index.d.ts +3 -0
- package/dist/storage/domains/index.d.ts.map +1 -1
- package/dist/storage/domains/inmemory-db.d.ts +57 -0
- package/dist/storage/domains/inmemory-db.d.ts.map +1 -0
- package/dist/storage/domains/memory/base.d.ts +2 -2
- package/dist/storage/domains/memory/base.d.ts.map +1 -1
- package/dist/storage/domains/memory/inmemory.d.ts +5 -13
- package/dist/storage/domains/memory/inmemory.d.ts.map +1 -1
- package/dist/storage/domains/observability/base.d.ts +24 -29
- package/dist/storage/domains/observability/base.d.ts.map +1 -1
- package/dist/storage/domains/observability/index.d.ts +1 -0
- package/dist/storage/domains/observability/index.d.ts.map +1 -1
- package/dist/storage/domains/observability/inmemory.d.ts +46 -35
- package/dist/storage/domains/observability/inmemory.d.ts.map +1 -1
- package/dist/storage/domains/observability/types.d.ts +2365 -0
- package/dist/storage/domains/observability/types.d.ts.map +1 -0
- package/dist/storage/domains/scores/base.d.ts +9 -20
- package/dist/storage/domains/scores/base.d.ts.map +1 -1
- package/dist/storage/domains/scores/inmemory.d.ts +11 -22
- package/dist/storage/domains/scores/inmemory.d.ts.map +1 -1
- package/dist/storage/domains/shared.d.ts +76 -0
- package/dist/storage/domains/shared.d.ts.map +1 -0
- package/dist/storage/domains/workflows/base.d.ts +4 -2
- package/dist/storage/domains/workflows/base.d.ts.map +1 -1
- package/dist/storage/domains/workflows/inmemory.d.ts +10 -9
- package/dist/storage/domains/workflows/inmemory.d.ts.map +1 -1
- package/dist/storage/index.cjs +272 -59
- package/dist/storage/index.js +2 -1
- package/dist/storage/mock.d.ts +26 -174
- package/dist/storage/mock.d.ts.map +1 -1
- package/dist/storage/types.d.ts +15 -44
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/storage/utils.d.ts +5 -0
- package/dist/storage/utils.d.ts.map +1 -1
- package/dist/stream/MastraAgentNetworkStream.d.ts +1 -1
- package/dist/stream/MastraAgentNetworkStream.d.ts.map +1 -1
- package/dist/stream/MastraWorkflowStream.d.ts +1 -1
- package/dist/stream/MastraWorkflowStream.d.ts.map +1 -1
- package/dist/stream/RunOutput.d.ts.map +1 -1
- package/dist/stream/aisdk/v5/compat/consume-stream.d.ts +4 -1
- package/dist/stream/aisdk/v5/compat/consume-stream.d.ts.map +1 -1
- package/dist/stream/aisdk/v5/output.d.ts.map +1 -1
- package/dist/stream/base/output.d.ts.map +1 -1
- package/dist/stream/index.cjs +12 -12
- package/dist/stream/index.js +2 -2
- package/dist/stream/types.d.ts +3 -0
- package/dist/stream/types.d.ts.map +1 -1
- package/dist/test-utils/llm-mock.cjs +4 -4
- package/dist/test-utils/llm-mock.js +1 -1
- package/dist/tool-loop-agent/index.cjs +20 -0
- package/dist/tool-loop-agent/index.cjs.map +1 -0
- package/dist/tool-loop-agent/index.d.ts +36 -0
- package/dist/tool-loop-agent/index.d.ts.map +1 -0
- package/dist/tool-loop-agent/index.js +3 -0
- package/dist/tool-loop-agent/index.js.map +1 -0
- package/dist/tool-loop-agent/tool-loop-processor.d.ts +30 -0
- package/dist/tool-loop-agent/tool-loop-processor.d.ts.map +1 -0
- package/dist/tool-loop-agent/utils.d.ts +17 -0
- package/dist/tool-loop-agent/utils.d.ts.map +1 -0
- package/dist/tools/index.cjs +4 -4
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/is-vercel-tool.cjs +2 -2
- package/dist/tools/is-vercel-tool.js +1 -1
- package/dist/tools/tool-builder/builder.d.ts.map +1 -1
- package/dist/tools/tool.d.ts +4 -4
- package/dist/tools/tool.d.ts.map +1 -1
- package/dist/tools/toolchecks.d.ts +1 -1
- package/dist/tools/toolchecks.d.ts.map +1 -1
- package/dist/tools/types.d.ts +3 -1
- package/dist/tools/types.d.ts.map +1 -1
- package/dist/tools/validation.d.ts +1 -1
- package/dist/tools/validation.d.ts.map +1 -1
- package/dist/utils/zod-utils.d.ts +34 -0
- package/dist/utils/zod-utils.d.ts.map +1 -0
- package/dist/utils.cjs +39 -22
- package/dist/utils.d.ts +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +2 -1
- package/dist/vector/index.cjs +12 -5299
- package/dist/vector/index.cjs.map +1 -1
- package/dist/vector/index.js +3 -5274
- package/dist/vector/index.js.map +1 -1
- package/dist/vector/vector.d.ts +13 -3
- package/dist/vector/vector.d.ts.map +1 -1
- package/dist/voice/index.cjs +6 -6
- package/dist/voice/index.js +1 -1
- package/dist/workflows/default.d.ts +2 -0
- package/dist/workflows/default.d.ts.map +1 -1
- package/dist/workflows/evented/execution-engine.d.ts +1 -0
- package/dist/workflows/evented/execution-engine.d.ts.map +1 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/evented/step-executor.d.ts +1 -0
- package/dist/workflows/evented/step-executor.d.ts.map +1 -1
- package/dist/workflows/evented/workflow-event-processor/index.d.ts +5 -4
- package/dist/workflows/evented/workflow-event-processor/index.d.ts.map +1 -1
- package/dist/workflows/evented/workflow-event-processor/loop.d.ts +2 -2
- package/dist/workflows/evented/workflow-event-processor/loop.d.ts.map +1 -1
- package/dist/workflows/evented/workflow-event-processor/parallel.d.ts +2 -2
- package/dist/workflows/evented/workflow-event-processor/parallel.d.ts.map +1 -1
- package/dist/workflows/evented/workflow-event-processor/sleep.d.ts +2 -2
- package/dist/workflows/evented/workflow-event-processor/sleep.d.ts.map +1 -1
- package/dist/workflows/evented/workflow.d.ts +5 -2
- package/dist/workflows/evented/workflow.d.ts.map +1 -1
- package/dist/workflows/execution-engine.d.ts +1 -0
- package/dist/workflows/execution-engine.d.ts.map +1 -1
- package/dist/workflows/handlers/control-flow.d.ts +4 -0
- package/dist/workflows/handlers/control-flow.d.ts.map +1 -1
- package/dist/workflows/handlers/entry.d.ts +3 -2
- package/dist/workflows/handlers/entry.d.ts.map +1 -1
- package/dist/workflows/handlers/step.d.ts +1 -0
- package/dist/workflows/handlers/step.d.ts.map +1 -1
- package/dist/workflows/index.cjs +23 -23
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/types.d.ts +23 -3
- package/dist/workflows/types.d.ts.map +1 -1
- package/dist/workflows/utils.d.ts +1 -0
- package/dist/workflows/utils.d.ts.map +1 -1
- package/dist/workflows/workflow.d.ts +22 -8
- package/dist/workflows/workflow.d.ts.map +1 -1
- package/package.json +15 -5
- package/src/llm/model/provider-types.generated.d.ts +129 -58
- package/storage/constants.d.ts +1 -0
- package/tool-loop-agent.d.ts +1 -0
- package/dist/chunk-3IP3DZ7G.js.map +0 -1
- package/dist/chunk-4AT6YQKZ.js.map +0 -1
- package/dist/chunk-4CMIJQF6.js.map +0 -1
- package/dist/chunk-5UQ5TB6J.js.map +0 -1
- package/dist/chunk-6CG7IY57.cjs.map +0 -1
- package/dist/chunk-72E3YF6A.cjs.map +0 -1
- package/dist/chunk-72YCRTEX.cjs.map +0 -1
- package/dist/chunk-ADADLFDR.js +0 -42
- package/dist/chunk-ADADLFDR.js.map +0 -1
- package/dist/chunk-AYBJ5GAD.js.map +0 -1
- package/dist/chunk-DBW6S25C.cjs.map +0 -1
- package/dist/chunk-EGHGFLL3.cjs.map +0 -1
- package/dist/chunk-ETWAR2YE.cjs.map +0 -1
- package/dist/chunk-FPDJ4XN6.cjs.map +0 -1
- package/dist/chunk-GBQXIVL6.js.map +0 -1
- package/dist/chunk-GXSERFAG.js +0 -3
- package/dist/chunk-HWMMIRIF.cjs.map +0 -1
- package/dist/chunk-JAGQZZ43.cjs.map +0 -1
- package/dist/chunk-LDXKZYOV.js.map +0 -1
- package/dist/chunk-O3ULBGV6.cjs.map +0 -1
- package/dist/chunk-QF4MHFSU.js.map +0 -1
- package/dist/chunk-T2VLUFGG.cjs +0 -47
- package/dist/chunk-T2VLUFGG.cjs.map +0 -1
- package/dist/chunk-TRUNX3AX.cjs.map +0 -1
- package/dist/chunk-VZJOEGQA.js.map +0 -1
- package/dist/chunk-X4RMXTXF.cjs +0 -4
- package/dist/chunk-Y36Y5MTD.js.map +0 -1
- package/dist/chunk-YPLZDWG7.js.map +0 -1
- package/dist/chunk-Z55SJVEC.cjs.map +0 -1
- package/dist/models-dev-E3WWI7VA.js +0 -3
- package/dist/models-dev-PPS7X4JM.cjs +0 -12
- package/dist/netlify-TY656UYF.js +0 -3
- package/dist/netlify-VZFM5UH3.cjs +0 -12
- package/dist/provider-registry-NXVD764B.js +0 -3
- package/dist/provider-registry-ZIWSEUQE.cjs +0 -40
package/dist/relevance/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk5DL6Y7PJ_cjs = require('../chunk-5DL6Y7PJ.cjs');
|
|
4
4
|
|
|
5
5
|
// src/relevance/relevance-score-provider.ts
|
|
6
6
|
function createSimilarityPrompt(query, text) {
|
|
@@ -17,7 +17,7 @@ Relevance score (0-1):`;
|
|
|
17
17
|
var MastraAgentRelevanceScorer = class {
|
|
18
18
|
agent;
|
|
19
19
|
constructor(name, model) {
|
|
20
|
-
this.agent = new
|
|
20
|
+
this.agent = new chunk5DL6Y7PJ_cjs.Agent({
|
|
21
21
|
id: `relevance-scorer-${name}`,
|
|
22
22
|
name: `Relevance Scorer ${name}`,
|
|
23
23
|
instructions: `You are a specialized agent for evaluating the relevance of text to queries.
|
|
@@ -37,7 +37,7 @@ Always return just the number, no explanation.`,
|
|
|
37
37
|
const prompt = createSimilarityPrompt(query, text);
|
|
38
38
|
const model = await this.agent.getModel();
|
|
39
39
|
let response;
|
|
40
|
-
if (
|
|
40
|
+
if (chunk5DL6Y7PJ_cjs.isSupportedLanguageModel(model)) {
|
|
41
41
|
const responseText = await this.agent.generate(prompt);
|
|
42
42
|
response = responseText.text;
|
|
43
43
|
} else {
|
package/dist/relevance/index.js
CHANGED
package/dist/server/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk4U7ZLI36_cjs = require('../chunk-4U7ZLI36.cjs');
|
|
4
4
|
var chunkDGV2FWB4_cjs = require('../chunk-DGV2FWB4.cjs');
|
|
5
5
|
var chunkAF74UXR5_cjs = require('../chunk-AF74UXR5.cjs');
|
|
6
6
|
|
|
@@ -139,7 +139,7 @@ var SimpleAuth = class extends MastraAuthProvider {
|
|
|
139
139
|
function validateOptions(path, options) {
|
|
140
140
|
const opts = options;
|
|
141
141
|
if (opts.method === void 0) {
|
|
142
|
-
throw new
|
|
142
|
+
throw new chunk4U7ZLI36_cjs.MastraError({
|
|
143
143
|
id: "MASTRA_SERVER_API_INVALID_ROUTE_OPTIONS",
|
|
144
144
|
text: `Invalid options for route "${path}", missing "method" property`,
|
|
145
145
|
domain: "MASTRA_SERVER" /* MASTRA_SERVER */,
|
|
@@ -147,7 +147,7 @@ function validateOptions(path, options) {
|
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
if (opts.handler === void 0 && opts.createHandler === void 0) {
|
|
150
|
-
throw new
|
|
150
|
+
throw new chunk4U7ZLI36_cjs.MastraError({
|
|
151
151
|
id: "MASTRA_SERVER_API_INVALID_ROUTE_OPTIONS",
|
|
152
152
|
text: `Invalid options for route "${path}", you must define a "handler" or "createHandler" property`,
|
|
153
153
|
domain: "MASTRA_SERVER" /* MASTRA_SERVER */,
|
|
@@ -155,7 +155,7 @@ function validateOptions(path, options) {
|
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
157
|
if (opts.handler !== void 0 && opts.createHandler !== void 0) {
|
|
158
|
-
throw new
|
|
158
|
+
throw new chunk4U7ZLI36_cjs.MastraError({
|
|
159
159
|
id: "MASTRA_SERVER_API_INVALID_ROUTE_OPTIONS",
|
|
160
160
|
text: `Invalid options for route "${path}", you can only define one of the following properties: "handler" or "createHandler"`,
|
|
161
161
|
domain: "MASTRA_SERVER" /* MASTRA_SERVER */,
|
|
@@ -165,7 +165,7 @@ function validateOptions(path, options) {
|
|
|
165
165
|
}
|
|
166
166
|
function registerApiRoute(path, options) {
|
|
167
167
|
if (path.startsWith("/api/")) {
|
|
168
|
-
throw new
|
|
168
|
+
throw new chunk4U7ZLI36_cjs.MastraError({
|
|
169
169
|
id: "MASTRA_SERVER_API_PATH_RESERVED",
|
|
170
170
|
text: `Path must not start with "/api", it's reserved for internal API routes`,
|
|
171
171
|
domain: "MASTRA_SERVER" /* MASTRA_SERVER */,
|
package/dist/server/index.js
CHANGED
package/dist/server/types.d.ts
CHANGED
|
@@ -142,5 +142,33 @@ export type ServerConfig = {
|
|
|
142
142
|
key: Buffer;
|
|
143
143
|
cert: Buffer;
|
|
144
144
|
};
|
|
145
|
+
/**
|
|
146
|
+
* Custom error handler for the server. This hook is called when an unhandled error occurs.
|
|
147
|
+
* Use this to customize error responses, log errors to external services (e.g., Sentry),
|
|
148
|
+
* or implement custom error formatting.
|
|
149
|
+
*
|
|
150
|
+
* @param err - The error that was thrown
|
|
151
|
+
* @param c - The Hono context object, providing access to request details and response methods
|
|
152
|
+
* @returns A Response object or a Promise that resolves to a Response
|
|
153
|
+
*
|
|
154
|
+
* @example
|
|
155
|
+
* ```ts
|
|
156
|
+
* const mastra = new Mastra({
|
|
157
|
+
* server: {
|
|
158
|
+
* onError: (err, c) => {
|
|
159
|
+
* // Log to Sentry
|
|
160
|
+
* Sentry.captureException(err);
|
|
161
|
+
*
|
|
162
|
+
* // Return custom formatted response
|
|
163
|
+
* return c.json({
|
|
164
|
+
* error: err.message,
|
|
165
|
+
* timestamp: new Date().toISOString(),
|
|
166
|
+
* }, 500);
|
|
167
|
+
* },
|
|
168
|
+
* },
|
|
169
|
+
* });
|
|
170
|
+
* ```
|
|
171
|
+
*/
|
|
172
|
+
onError?: (err: Error, c: Context) => Response | Promise<Response>;
|
|
145
173
|
};
|
|
146
174
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/server/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC7E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,MAAM,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAC;AAE1E,MAAM,MAAM,QAAQ,GAChB;IACE,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,iBAAiB,GAAG,iBAAiB,EAAE,CAAC;IACrD,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,GACD;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|
|
1
|
-
import type { MastraMessageContentV2, MastraDBMessage } from '../agent/index.js';
|
|
2
1
|
import { MastraBase } from '../base.js';
|
|
3
|
-
import type {
|
|
4
|
-
import type { StorageThreadType } from '../memory/types.js';
|
|
5
|
-
import type { TracingStorageStrategy } from '../observability/index.js';
|
|
6
|
-
import type { StepResult, WorkflowRunState } from '../workflows/types.js';
|
|
7
|
-
import type { TABLE_NAMES } from './constants.js';
|
|
8
|
-
import type { AgentsStorage, ScoresStorage, StoreOperations, WorkflowsStorage, MemoryStorage, ObservabilityStorage } from './domains/index.js';
|
|
9
|
-
import type { PaginationInfo, StorageColumn, StorageResourceType, StoragePagination, WorkflowRun, WorkflowRuns, SpanRecord, TraceRecord, TracesPaginatedArg, CreateIndexOptions, IndexInfo, StorageIndexStats, UpdateSpanRecord, CreateSpanRecord, StorageListMessagesInput, StorageListMessagesOutput, StorageListWorkflowRunsInput, StorageListThreadsByResourceIdInput, StorageListThreadsByResourceIdOutput, StorageAgentType, StorageCreateAgentInput, StorageUpdateAgentInput, StorageListAgentsInput, StorageListAgentsOutput, UpdateWorkflowStateOptions } from './types.js';
|
|
2
|
+
import type { AgentsStorage, ScoresStorage, WorkflowsStorage, MemoryStorage, ObservabilityStorage } from './domains/index.js';
|
|
10
3
|
export type StorageDomains = {
|
|
11
|
-
operations: StoreOperations;
|
|
12
4
|
workflows: WorkflowsStorage;
|
|
13
5
|
scores: ScoresStorage;
|
|
14
6
|
memory: MemoryStorage;
|
|
15
7
|
observability?: ObservabilityStorage;
|
|
16
8
|
agents?: AgentsStorage;
|
|
17
9
|
};
|
|
18
|
-
export declare function ensureDate(date: Date | string | undefined): Date | undefined;
|
|
19
|
-
export declare function serializeDate(date: Date | string | undefined): string | undefined;
|
|
20
10
|
/**
|
|
21
11
|
* Normalizes perPage input for pagination queries.
|
|
22
12
|
*
|
|
@@ -38,11 +28,46 @@ export declare function calculatePagination(page: number, perPageInput: number |
|
|
|
38
28
|
offset: number;
|
|
39
29
|
perPage: number | false;
|
|
40
30
|
};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
31
|
+
/**
|
|
32
|
+
* Configuration for individual domain overrides.
|
|
33
|
+
* Each domain can be sourced from a different storage adapter.
|
|
34
|
+
*/
|
|
35
|
+
export type MastraStorageDomains = Partial<StorageDomains>;
|
|
36
|
+
/**
|
|
37
|
+
* Configuration options for MastraStorage.
|
|
38
|
+
*
|
|
39
|
+
* Can be used in two ways:
|
|
40
|
+
* 1. By store implementations: `{ id, name, disableInit? }` - stores set `this.stores` directly
|
|
41
|
+
* 2. For composition: `{ id, default?, domains?, disableInit? }` - compose domains from multiple stores
|
|
42
|
+
*/
|
|
43
|
+
export interface MastraStorageConfig {
|
|
44
|
+
/**
|
|
45
|
+
* Unique identifier for this storage instance.
|
|
46
|
+
*/
|
|
44
47
|
id: string;
|
|
45
|
-
|
|
48
|
+
/**
|
|
49
|
+
* Name of the storage adapter (used for logging).
|
|
50
|
+
* Required for store implementations extending MastraStorage.
|
|
51
|
+
*/
|
|
52
|
+
name?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Default storage adapter to use for domains not explicitly specified.
|
|
55
|
+
* If provided, domains from this storage will be used as fallbacks.
|
|
56
|
+
*/
|
|
57
|
+
default?: MastraStorage;
|
|
58
|
+
/**
|
|
59
|
+
* Individual domain overrides. Each domain can come from a different storage adapter.
|
|
60
|
+
* These take precedence over the default storage.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```typescript
|
|
64
|
+
* domains: {
|
|
65
|
+
* memory: pgStore.stores?.memory,
|
|
66
|
+
* workflows: libsqlStore.stores?.workflows,
|
|
67
|
+
* }
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
domains?: MastraStorageDomains;
|
|
46
71
|
/**
|
|
47
72
|
* When true, automatic initialization (table creation/migrations) is disabled.
|
|
48
73
|
* This is useful for CI/CD pipelines where you want to:
|
|
@@ -62,296 +87,66 @@ export declare abstract class MastraStorage extends MastraBase {
|
|
|
62
87
|
* const storage = new PostgresStore({ ...config, disableInit: true });
|
|
63
88
|
* // No auto-init, tables must already exist
|
|
64
89
|
*/
|
|
65
|
-
disableInit
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
record: Record<string, any>;
|
|
102
|
-
}): Promise<void>;
|
|
103
|
-
abstract batchInsert({ tableName, records, }: {
|
|
104
|
-
tableName: TABLE_NAMES;
|
|
105
|
-
records: Record<string, any>[];
|
|
106
|
-
}): Promise<void>;
|
|
107
|
-
abstract load<R>({ tableName, keys }: {
|
|
108
|
-
tableName: TABLE_NAMES;
|
|
109
|
-
keys: Record<string, any>;
|
|
110
|
-
}): Promise<R | null>;
|
|
111
|
-
abstract getThreadById({ threadId }: {
|
|
112
|
-
threadId: string;
|
|
113
|
-
}): Promise<StorageThreadType | null>;
|
|
114
|
-
abstract saveThread({ thread }: {
|
|
115
|
-
thread: StorageThreadType;
|
|
116
|
-
}): Promise<StorageThreadType>;
|
|
117
|
-
abstract updateThread({ id, title, metadata, }: {
|
|
118
|
-
id: string;
|
|
119
|
-
title: string;
|
|
120
|
-
metadata: Record<string, unknown>;
|
|
121
|
-
}): Promise<StorageThreadType>;
|
|
122
|
-
abstract deleteThread({ threadId }: {
|
|
123
|
-
threadId: string;
|
|
124
|
-
}): Promise<void>;
|
|
125
|
-
getResourceById(_: {
|
|
126
|
-
resourceId: string;
|
|
127
|
-
}): Promise<StorageResourceType | null>;
|
|
128
|
-
saveResource(_: {
|
|
129
|
-
resource: StorageResourceType;
|
|
130
|
-
}): Promise<StorageResourceType>;
|
|
131
|
-
updateResource(_: {
|
|
132
|
-
resourceId: string;
|
|
133
|
-
workingMemory?: string;
|
|
134
|
-
metadata?: Record<string, unknown>;
|
|
135
|
-
}): Promise<StorageResourceType>;
|
|
136
|
-
abstract saveMessages(args: {
|
|
137
|
-
messages: MastraDBMessage[];
|
|
138
|
-
}): Promise<{
|
|
139
|
-
messages: MastraDBMessage[];
|
|
140
|
-
}>;
|
|
141
|
-
listMessages(args: StorageListMessagesInput): Promise<StorageListMessagesOutput>;
|
|
142
|
-
listWorkflowRuns(args?: StorageListWorkflowRunsInput): Promise<WorkflowRuns>;
|
|
143
|
-
listThreadsByResourceId(args: StorageListThreadsByResourceIdInput): Promise<StorageListThreadsByResourceIdOutput>;
|
|
144
|
-
listMessagesById({ messageIds }: {
|
|
145
|
-
messageIds: string[];
|
|
146
|
-
}): Promise<{
|
|
147
|
-
messages: MastraDBMessage[];
|
|
148
|
-
}>;
|
|
149
|
-
abstract updateMessages(args: {
|
|
150
|
-
messages: (Partial<Omit<MastraDBMessage, 'createdAt'>> & {
|
|
151
|
-
id: string;
|
|
152
|
-
content?: Partial<MastraMessageContentV2>;
|
|
153
|
-
})[];
|
|
154
|
-
}): Promise<MastraDBMessage[]>;
|
|
155
|
-
deleteMessages(_messageIds: string[]): Promise<void>;
|
|
156
|
-
init(): Promise<void>;
|
|
157
|
-
persistWorkflowSnapshot({ workflowName, runId, resourceId, snapshot, }: {
|
|
158
|
-
workflowName: string;
|
|
159
|
-
runId: string;
|
|
160
|
-
resourceId?: string;
|
|
161
|
-
snapshot: WorkflowRunState;
|
|
162
|
-
}): Promise<void>;
|
|
163
|
-
abstract updateWorkflowResults({ workflowName, runId, stepId, result, }: {
|
|
164
|
-
workflowName: string;
|
|
165
|
-
runId: string;
|
|
166
|
-
stepId: string;
|
|
167
|
-
result: StepResult<any, any, any, any>;
|
|
168
|
-
requestContext: Record<string, any>;
|
|
169
|
-
}): Promise<Record<string, StepResult<any, any, any, any>>>;
|
|
170
|
-
abstract updateWorkflowState({ workflowName, runId, opts, }: {
|
|
171
|
-
workflowName: string;
|
|
172
|
-
runId: string;
|
|
173
|
-
opts: UpdateWorkflowStateOptions;
|
|
174
|
-
}): Promise<WorkflowRunState | undefined>;
|
|
175
|
-
loadWorkflowSnapshot({ workflowName, runId, }: {
|
|
176
|
-
workflowName: string;
|
|
177
|
-
runId: string;
|
|
178
|
-
}): Promise<WorkflowRunState | null>;
|
|
179
|
-
/**
|
|
180
|
-
* SCORERS
|
|
181
|
-
*/
|
|
182
|
-
abstract getScoreById({ id }: {
|
|
183
|
-
id: string;
|
|
184
|
-
}): Promise<ScoreRowData | null>;
|
|
185
|
-
abstract saveScore(score: ValidatedSaveScorePayload): Promise<{
|
|
186
|
-
score: ScoreRowData;
|
|
187
|
-
}>;
|
|
188
|
-
abstract listScoresByScorerId({ scorerId, source, entityId, entityType, pagination, }: {
|
|
189
|
-
scorerId: string;
|
|
190
|
-
pagination: StoragePagination;
|
|
191
|
-
entityId?: string;
|
|
192
|
-
entityType?: string;
|
|
193
|
-
source?: ScoringSource;
|
|
194
|
-
}): Promise<{
|
|
195
|
-
pagination: PaginationInfo;
|
|
196
|
-
scores: ScoreRowData[];
|
|
197
|
-
}>;
|
|
198
|
-
abstract listScoresByRunId({ runId, pagination, }: {
|
|
199
|
-
runId: string;
|
|
200
|
-
pagination: StoragePagination;
|
|
201
|
-
}): Promise<{
|
|
202
|
-
pagination: PaginationInfo;
|
|
203
|
-
scores: ScoreRowData[];
|
|
204
|
-
}>;
|
|
205
|
-
abstract listScoresByEntityId({ entityId, entityType, pagination, }: {
|
|
206
|
-
pagination: StoragePagination;
|
|
207
|
-
entityId: string;
|
|
208
|
-
entityType: string;
|
|
209
|
-
}): Promise<{
|
|
210
|
-
pagination: PaginationInfo;
|
|
211
|
-
scores: ScoreRowData[];
|
|
212
|
-
}>;
|
|
213
|
-
listScoresBySpan({ traceId, spanId, pagination: _pagination, }: {
|
|
214
|
-
traceId: string;
|
|
215
|
-
spanId: string;
|
|
216
|
-
pagination: StoragePagination;
|
|
217
|
-
}): Promise<{
|
|
218
|
-
pagination: PaginationInfo;
|
|
219
|
-
scores: ScoreRowData[];
|
|
220
|
-
}>;
|
|
221
|
-
abstract getWorkflowRunById(args: {
|
|
222
|
-
runId: string;
|
|
223
|
-
workflowName?: string;
|
|
224
|
-
}): Promise<WorkflowRun | null>;
|
|
225
|
-
abstract deleteWorkflowRunById(args: {
|
|
226
|
-
runId: string;
|
|
227
|
-
workflowName: string;
|
|
228
|
-
}): Promise<void>;
|
|
229
|
-
/**
|
|
230
|
-
* OBSERVABILITY
|
|
231
|
-
*/
|
|
232
|
-
/**
|
|
233
|
-
* Provides hints for tracing strategy selection by the DefaultExporter.
|
|
234
|
-
* Storage adapters can override this to specify their preferred and supported strategies.
|
|
235
|
-
*/
|
|
236
|
-
get tracingStrategy(): {
|
|
237
|
-
preferred: TracingStorageStrategy;
|
|
238
|
-
supported: TracingStorageStrategy[];
|
|
239
|
-
};
|
|
240
|
-
/**
|
|
241
|
-
* Creates a single Span record in the storage provider.
|
|
242
|
-
*/
|
|
243
|
-
createSpan(span: CreateSpanRecord): Promise<void>;
|
|
244
|
-
/**
|
|
245
|
-
* Updates a single Span with partial data. Primarily used for realtime trace creation.
|
|
246
|
-
*/
|
|
247
|
-
updateSpan(params: {
|
|
248
|
-
spanId: string;
|
|
249
|
-
traceId: string;
|
|
250
|
-
updates: Partial<UpdateSpanRecord>;
|
|
251
|
-
}): Promise<void>;
|
|
252
|
-
/**
|
|
253
|
-
* Retrieves a single trace with all its associated spans.
|
|
254
|
-
*/
|
|
255
|
-
getTrace(traceId: string): Promise<TraceRecord | null>;
|
|
256
|
-
/**
|
|
257
|
-
* Retrieves a paginated list of traces with optional filtering.
|
|
258
|
-
*/
|
|
259
|
-
getTracesPaginated(args: TracesPaginatedArg): Promise<{
|
|
260
|
-
pagination: PaginationInfo;
|
|
261
|
-
spans: SpanRecord[];
|
|
262
|
-
}>;
|
|
263
|
-
/**
|
|
264
|
-
* Creates multiple Spans in a single batch.
|
|
265
|
-
*/
|
|
266
|
-
batchCreateSpans(args: {
|
|
267
|
-
records: CreateSpanRecord[];
|
|
268
|
-
}): Promise<void>;
|
|
269
|
-
/**
|
|
270
|
-
* Updates multiple Spans in a single batch.
|
|
271
|
-
*/
|
|
272
|
-
batchUpdateSpans(args: {
|
|
273
|
-
records: {
|
|
274
|
-
traceId: string;
|
|
275
|
-
spanId: string;
|
|
276
|
-
updates: Partial<UpdateSpanRecord>;
|
|
277
|
-
}[];
|
|
278
|
-
}): Promise<void>;
|
|
279
|
-
/**
|
|
280
|
-
* Deletes multiple traces and all their associated spans in a single batch operation.
|
|
281
|
-
*/
|
|
282
|
-
batchDeleteTraces(args: {
|
|
283
|
-
traceIds: string[];
|
|
284
|
-
}): Promise<void>;
|
|
285
|
-
/**
|
|
286
|
-
* DATABASE INDEX MANAGEMENT
|
|
287
|
-
* These methods delegate to the operations store for index management.
|
|
288
|
-
* Storage adapters that support indexes should implement these in their operations class.
|
|
289
|
-
*/
|
|
290
|
-
/**
|
|
291
|
-
* Creates a database index on specified columns
|
|
292
|
-
* @throws {MastraError} if not supported by the storage adapter
|
|
293
|
-
*/
|
|
294
|
-
createIndex(options: CreateIndexOptions): Promise<void>;
|
|
295
|
-
/**
|
|
296
|
-
* Drops a database index by name
|
|
297
|
-
* @throws {MastraError} if not supported by the storage adapter
|
|
298
|
-
*/
|
|
299
|
-
dropIndex(indexName: string): Promise<void>;
|
|
300
|
-
/**
|
|
301
|
-
* Lists database indexes for a table or all tables
|
|
302
|
-
* @throws {MastraError} if not supported by the storage adapter
|
|
303
|
-
*/
|
|
304
|
-
listIndexes(tableName?: string): Promise<IndexInfo[]>;
|
|
305
|
-
/**
|
|
306
|
-
* Gets detailed statistics for a specific index
|
|
307
|
-
* @throws {MastraError} if not supported by the storage adapter
|
|
308
|
-
*/
|
|
309
|
-
describeIndex(indexName: string): Promise<StorageIndexStats>;
|
|
310
|
-
/**
|
|
311
|
-
* AGENTS STORAGE
|
|
312
|
-
* These methods delegate to the agents store for agent CRUD operations.
|
|
313
|
-
* This enables dynamic creation of agents via Mastra Studio.
|
|
314
|
-
*/
|
|
315
|
-
/**
|
|
316
|
-
* Retrieves an agent by its unique identifier.
|
|
317
|
-
* @param id - The unique identifier of the agent
|
|
318
|
-
* @returns The agent if found, null otherwise
|
|
319
|
-
* @throws {MastraError} if not supported by the storage adapter
|
|
320
|
-
*/
|
|
321
|
-
getAgentById({ id }: {
|
|
322
|
-
id: string;
|
|
323
|
-
}): Promise<StorageAgentType | null>;
|
|
324
|
-
/**
|
|
325
|
-
* Creates a new agent in storage.
|
|
326
|
-
* @param agent - The agent data to create
|
|
327
|
-
* @returns The created agent with timestamps
|
|
328
|
-
* @throws {MastraError} if not supported by the storage adapter
|
|
329
|
-
*/
|
|
330
|
-
createAgent({ agent }: {
|
|
331
|
-
agent: StorageCreateAgentInput;
|
|
332
|
-
}): Promise<StorageAgentType>;
|
|
90
|
+
disableInit?: boolean;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Base class for all Mastra storage adapters.
|
|
94
|
+
*
|
|
95
|
+
* Can be used in two ways:
|
|
96
|
+
*
|
|
97
|
+
* 1. **Extended by store implementations** (PostgresStore, LibSQLStore, etc.):
|
|
98
|
+
* Store implementations extend this class and set `this.stores` with their domain implementations.
|
|
99
|
+
*
|
|
100
|
+
* 2. **Directly instantiated for composition**:
|
|
101
|
+
* Compose domains from multiple storage backends using `default` and `domains` options.
|
|
102
|
+
*
|
|
103
|
+
* All domain-specific operations should be accessed through `getStore()`:
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* ```typescript
|
|
107
|
+
* // Composition: mix domains from different stores
|
|
108
|
+
* const storage = new MastraStorage({
|
|
109
|
+
* id: 'composite',
|
|
110
|
+
* default: pgStore,
|
|
111
|
+
* domains: {
|
|
112
|
+
* memory: libsqlStore.stores?.memory,
|
|
113
|
+
* },
|
|
114
|
+
* });
|
|
115
|
+
*
|
|
116
|
+
* // Access domains
|
|
117
|
+
* const memory = await storage.getStore('memory');
|
|
118
|
+
* await memory?.saveThread({ thread });
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
export declare class MastraStorage extends MastraBase {
|
|
122
|
+
protected hasInitialized: null | Promise<boolean>;
|
|
123
|
+
protected shouldCacheInit: boolean;
|
|
124
|
+
id: string;
|
|
125
|
+
stores?: StorageDomains;
|
|
333
126
|
/**
|
|
334
|
-
*
|
|
335
|
-
* @param id - The unique identifier of the agent to update
|
|
336
|
-
* @param updates - The fields to update
|
|
337
|
-
* @returns The updated agent
|
|
338
|
-
* @throws {MastraError} if not supported by the storage adapter
|
|
127
|
+
* When true, automatic initialization (table creation/migrations) is disabled.
|
|
339
128
|
*/
|
|
340
|
-
|
|
129
|
+
disableInit: boolean;
|
|
130
|
+
constructor(config: MastraStorageConfig);
|
|
341
131
|
/**
|
|
342
|
-
*
|
|
343
|
-
*
|
|
344
|
-
* @
|
|
132
|
+
* Get a domain-specific storage interface.
|
|
133
|
+
*
|
|
134
|
+
* @param storeName - The name of the domain to access ('memory', 'workflows', 'scores', 'observability', 'agents')
|
|
135
|
+
* @returns The domain storage interface, or undefined if not available
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* ```typescript
|
|
139
|
+
* const memory = await storage.getStore('memory');
|
|
140
|
+
* if (memory) {
|
|
141
|
+
* await memory.saveThread({ thread });
|
|
142
|
+
* }
|
|
143
|
+
* ```
|
|
345
144
|
*/
|
|
346
|
-
|
|
347
|
-
id: string;
|
|
348
|
-
}): Promise<void>;
|
|
145
|
+
getStore<K extends keyof StorageDomains>(storeName: K): Promise<StorageDomains[K] | undefined>;
|
|
349
146
|
/**
|
|
350
|
-
*
|
|
351
|
-
*
|
|
352
|
-
* @returns Paginated list of agents
|
|
353
|
-
* @throws {MastraError} if not supported by the storage adapter
|
|
147
|
+
* Initialize all domain stores.
|
|
148
|
+
* This creates necessary tables, indexes, and performs any required migrations.
|
|
354
149
|
*/
|
|
355
|
-
|
|
150
|
+
init(): Promise<void>;
|
|
356
151
|
}
|
|
357
152
|
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/storage/base.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/storage/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAErH,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,EAAE,gBAAgB,CAAC;IAC5B,MAAM,EAAE,aAAa,CAAC;IACtB,MAAM,EAAE,aAAa,CAAC;IACtB,aAAa,CAAC,EAAE,oBAAoB,CAAC;IACrC,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAUvG;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,EACxC,iBAAiB,EAAE,MAAM,GACxB;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,GAAG,KAAK,CAAA;CAAE,CAK7C;AAED;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAE3D;;;;;;GAMG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IAExB;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAE/B;;;;;;;;;;;;;;;;;;OAkBG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,qBAAa,aAAc,SAAQ,UAAU;IAC3C,SAAS,CAAC,cAAc,EAAE,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAQ;IACzD,SAAS,CAAC,eAAe,UAAQ;IAEjC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,cAAc,CAAC;IAExB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAS;gBAEjB,MAAM,EAAE,mBAAmB;IA2CvC;;;;;;;;;;;;;OAaG;IACG,QAAQ,CAAC,CAAC,SAAS,MAAM,cAAc,EAAE,SAAS,EAAE,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;IAIpG;;;OAGG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAiC5B"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkNK4UN2LF_cjs = require('../chunk-NK4UN2LF.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "AGENTS_SCHEMA", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkNK4UN2LF_cjs.AGENTS_SCHEMA; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "OLD_SPAN_SCHEMA", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkNK4UN2LF_cjs.OLD_SPAN_SCHEMA; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "SCORERS_SCHEMA", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkNK4UN2LF_cjs.SCORERS_SCHEMA; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "SPAN_SCHEMA", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkNK4UN2LF_cjs.SPAN_SCHEMA; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "TABLE_AGENTS", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkNK4UN2LF_cjs.TABLE_AGENTS; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "TABLE_MESSAGES", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkNK4UN2LF_cjs.TABLE_MESSAGES; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "TABLE_RESOURCES", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunkNK4UN2LF_cjs.TABLE_RESOURCES; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "TABLE_SCHEMAS", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunkNK4UN2LF_cjs.TABLE_SCHEMAS; }
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, "TABLE_SCORERS", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () { return chunkNK4UN2LF_cjs.TABLE_SCORERS; }
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "TABLE_SPANS", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () { return chunkNK4UN2LF_cjs.TABLE_SPANS; }
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, "TABLE_THREADS", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function () { return chunkNK4UN2LF_cjs.TABLE_THREADS; }
|
|
50
|
+
});
|
|
51
|
+
Object.defineProperty(exports, "TABLE_TRACES", {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () { return chunkNK4UN2LF_cjs.TABLE_TRACES; }
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(exports, "TABLE_WORKFLOW_SNAPSHOT", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: function () { return chunkNK4UN2LF_cjs.TABLE_WORKFLOW_SNAPSHOT; }
|
|
58
|
+
});
|
|
59
|
+
//# sourceMappingURL=constants.cjs.map
|
|
60
|
+
//# sourceMappingURL=constants.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"constants.cjs"}
|