@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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,477 @@
|
|
|
1
1
|
# @mastra/core
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.16
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Add `onError` hook to server configuration for custom error handling. ([#11403](https://github.com/mastra-ai/mastra/pull/11403))
|
|
8
|
+
|
|
9
|
+
You can now provide a custom error handler through the Mastra server config to catch errors, format responses, or send them to external services like Sentry:
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
import { Mastra } from '@mastra/core/mastra';
|
|
13
|
+
|
|
14
|
+
const mastra = new Mastra({
|
|
15
|
+
server: {
|
|
16
|
+
onError: (err, c) => {
|
|
17
|
+
// Send to Sentry
|
|
18
|
+
Sentry.captureException(err);
|
|
19
|
+
|
|
20
|
+
// Return custom formatted response
|
|
21
|
+
return c.json(
|
|
22
|
+
{
|
|
23
|
+
error: err.message,
|
|
24
|
+
timestamp: new Date().toISOString(),
|
|
25
|
+
},
|
|
26
|
+
500,
|
|
27
|
+
);
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
If no `onError` is provided, the default error handler is used.
|
|
34
|
+
|
|
35
|
+
Fixes #9610
|
|
36
|
+
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- fix(observability): start MODEL_STEP span at beginning of LLM execution ([#11409](https://github.com/mastra-ai/mastra/pull/11409))
|
|
40
|
+
|
|
41
|
+
The MODEL_STEP span was being created when the step-start chunk arrived (after the model API call completed), causing the span's startTime to be close to its endTime instead of accurately reflecting when the step began.
|
|
42
|
+
|
|
43
|
+
This fix ensures MODEL_STEP spans capture the full duration of each LLM execution step, including the API call latency, by starting the span at the beginning of the step execution rather than when the response starts streaming.
|
|
44
|
+
|
|
45
|
+
Fixes #11271
|
|
46
|
+
|
|
47
|
+
- Fixed inline type narrowing for `tool.execute()` return type when using `outputSchema`. ([#11420](https://github.com/mastra-ai/mastra/pull/11420))
|
|
48
|
+
|
|
49
|
+
**Problem:** When calling `tool.execute()`, TypeScript couldn't narrow the `ValidationError | OutputType` union after checking `'error' in result && result.error`, causing type errors when accessing output properties.
|
|
50
|
+
|
|
51
|
+
**Solution:**
|
|
52
|
+
- Added `{ error?: never }` to the success type, enabling proper discriminated union narrowing
|
|
53
|
+
- Simplified `createTool` generics so `inputData` is correctly typed based on `inputSchema`
|
|
54
|
+
|
|
55
|
+
**Note:** Tool output schemas should not use `error` as a field name since it's reserved for ValidationError discrimination. Use `errorMessage` or similar instead.
|
|
56
|
+
|
|
57
|
+
**Usage:**
|
|
58
|
+
|
|
59
|
+
```typescript
|
|
60
|
+
const result = await myTool.execute({ firstName: 'Hans' });
|
|
61
|
+
|
|
62
|
+
if ('error' in result && result.error) {
|
|
63
|
+
console.error('Validation failed:', result.message);
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// ✅ TypeScript now correctly narrows result
|
|
68
|
+
return { fullName: result.fullName };
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
- Add support for `instructions` field in MCPServer ([#11421](https://github.com/mastra-ai/mastra/pull/11421))
|
|
72
|
+
|
|
73
|
+
Implements the official MCP specification's `instructions` field, which allows MCP servers to provide system-wide prompts that are automatically sent to clients during initialization. This eliminates the need for per-project configuration files (like AGENTS.md) by centralizing the system prompt in the server definition.
|
|
74
|
+
|
|
75
|
+
**What's New:**
|
|
76
|
+
- Added `instructions` optional field to `MCPServerConfig` type
|
|
77
|
+
- Instructions are passed to the underlying MCP SDK Server during initialization
|
|
78
|
+
- Instructions are sent to clients in the `InitializeResult` response
|
|
79
|
+
- Fully compatible with all MCP clients (Cursor, Windsurf, Claude Desktop, etc.)
|
|
80
|
+
|
|
81
|
+
**Example Usage:**
|
|
82
|
+
|
|
83
|
+
```typescript
|
|
84
|
+
const server = new MCPServer({
|
|
85
|
+
name: 'GitHub MCP Server',
|
|
86
|
+
version: '1.0.0',
|
|
87
|
+
instructions:
|
|
88
|
+
'Use the available tools to help users manage GitHub repositories, issues, and pull requests. Always search before creating to avoid duplicates.',
|
|
89
|
+
tools: { searchIssues, createIssue, listPRs },
|
|
90
|
+
});
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
- Add storage composition to MastraStorage ([#11401](https://github.com/mastra-ai/mastra/pull/11401))
|
|
94
|
+
|
|
95
|
+
`MastraStorage` can now compose storage domains from different adapters. Use it when you need different databases for different purposes - for example, PostgreSQL for memory and workflows, but a different database for observability.
|
|
96
|
+
|
|
97
|
+
```typescript
|
|
98
|
+
import { MastraStorage } from '@mastra/core/storage';
|
|
99
|
+
import { MemoryPG, WorkflowsPG, ScoresPG } from '@mastra/pg';
|
|
100
|
+
import { MemoryLibSQL } from '@mastra/libsql';
|
|
101
|
+
|
|
102
|
+
// Compose domains from different stores
|
|
103
|
+
const storage = new MastraStorage({
|
|
104
|
+
id: 'composite',
|
|
105
|
+
domains: {
|
|
106
|
+
memory: new MemoryLibSQL({ url: 'file:./local.db' }),
|
|
107
|
+
workflows: new WorkflowsPG({ connectionString: process.env.DATABASE_URL }),
|
|
108
|
+
scores: new ScoresPG({ connectionString: process.env.DATABASE_URL }),
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
**Breaking changes:**
|
|
114
|
+
- `storage.supports` property no longer exists
|
|
115
|
+
- `StorageSupports` type is no longer exported from `@mastra/core/storage`
|
|
116
|
+
|
|
117
|
+
All stores now support the same features. For domain availability, use `getStore()`:
|
|
118
|
+
|
|
119
|
+
```typescript
|
|
120
|
+
const store = await storage.getStore('memory');
|
|
121
|
+
if (store) {
|
|
122
|
+
// domain is available
|
|
123
|
+
}
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
- Fix various places in core package where we were logging with console.error instead of the mastra logger. ([#11425](https://github.com/mastra-ai/mastra/pull/11425))
|
|
127
|
+
|
|
128
|
+
- fix(workflows): ensure writer.custom() bubbles up from nested workflows and loops ([#11422](https://github.com/mastra-ai/mastra/pull/11422))
|
|
129
|
+
|
|
130
|
+
Previously, when using `writer.custom()` in steps within nested sub-workflows or loops (like `dountil`), the custom data events would not properly bubble up to the top-level workflow stream. This fix ensures that custom events are now correctly propagated through the nested workflow hierarchy without modification, allowing them to be consumed at the top level.
|
|
131
|
+
|
|
132
|
+
This brings workflows in line with the existing behavior for agents, where custom data chunks properly bubble up through sub-agent execution.
|
|
133
|
+
|
|
134
|
+
**What changed:**
|
|
135
|
+
- Modified the `nestedWatchCb` function in workflow event handling to detect and preserve `data-*` custom events
|
|
136
|
+
- Custom events now bubble up directly without being wrapped or modified
|
|
137
|
+
- Regular workflow events continue to work as before with proper step ID prefixing
|
|
138
|
+
|
|
139
|
+
**Example:**
|
|
140
|
+
|
|
141
|
+
```typescript
|
|
142
|
+
const subStep = createStep({
|
|
143
|
+
id: 'subStep',
|
|
144
|
+
execute: async ({ writer }) => {
|
|
145
|
+
await writer.custom({
|
|
146
|
+
type: 'custom-progress',
|
|
147
|
+
data: { status: 'processing' },
|
|
148
|
+
});
|
|
149
|
+
return { result: 'done' };
|
|
150
|
+
},
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
const subWorkflow = createWorkflow({ id: 'sub' }).then(subStep).commit();
|
|
154
|
+
|
|
155
|
+
const topWorkflow = createWorkflow({ id: 'top' }).then(subWorkflow).commit();
|
|
156
|
+
|
|
157
|
+
const run = await topWorkflow.createRun();
|
|
158
|
+
const stream = run.stream({ inputData: {} });
|
|
159
|
+
|
|
160
|
+
// Custom events from subStep now properly appear in the top-level stream
|
|
161
|
+
for await (const event of stream) {
|
|
162
|
+
if (event.type === 'custom-progress') {
|
|
163
|
+
console.log(event.data); // { status: 'processing' }
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
## 1.0.0-beta.15
|
|
169
|
+
|
|
170
|
+
### Minor Changes
|
|
171
|
+
|
|
172
|
+
- Introduce StorageDomain base class for composite storage support ([#11249](https://github.com/mastra-ai/mastra/pull/11249))
|
|
173
|
+
|
|
174
|
+
Storage adapters now use a domain-based architecture where each domain (memory, workflows, scores, observability, agents) extends a `StorageDomain` base class with `init()` and `dangerouslyClearAll()` methods.
|
|
175
|
+
|
|
176
|
+
**Key changes:**
|
|
177
|
+
- Add `StorageDomain` abstract base class that all domain storage classes extend
|
|
178
|
+
- Add `InMemoryDB` class for shared state across in-memory domain implementations
|
|
179
|
+
- All storage domains now implement `dangerouslyClearAll()` for test cleanup
|
|
180
|
+
- Remove `operations` from public `StorageDomains` type (now internal to each adapter)
|
|
181
|
+
- Add flexible client/config patterns - domains accept either an existing database client or config to create one internally
|
|
182
|
+
|
|
183
|
+
**Why this matters:**
|
|
184
|
+
|
|
185
|
+
This enables composite storage where you can use different database adapters per domain:
|
|
186
|
+
|
|
187
|
+
```typescript
|
|
188
|
+
import { Mastra } from '@mastra/core';
|
|
189
|
+
import { PostgresStore } from '@mastra/pg';
|
|
190
|
+
import { ClickhouseStore } from '@mastra/clickhouse';
|
|
191
|
+
|
|
192
|
+
// Use Postgres for most domains but Clickhouse for observability
|
|
193
|
+
const mastra = new Mastra({
|
|
194
|
+
storage: new PostgresStore({
|
|
195
|
+
connectionString: 'postgres://...',
|
|
196
|
+
}),
|
|
197
|
+
// Future: override specific domains
|
|
198
|
+
// observability: new ClickhouseStore({ ... }).getStore('observability'),
|
|
199
|
+
});
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
**Standalone domain usage:**
|
|
203
|
+
|
|
204
|
+
Domains can now be used independently with flexible configuration:
|
|
205
|
+
|
|
206
|
+
```typescript
|
|
207
|
+
import { MemoryLibSQL } from '@mastra/libsql/memory';
|
|
208
|
+
|
|
209
|
+
// Option 1: Pass config to create client internally
|
|
210
|
+
const memory = new MemoryLibSQL({
|
|
211
|
+
url: 'file:./local.db',
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
// Option 2: Pass existing client for shared connections
|
|
215
|
+
import { createClient } from '@libsql/client';
|
|
216
|
+
const client = createClient({ url: 'file:./local.db' });
|
|
217
|
+
const memory = new MemoryLibSQL({ client });
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
**Breaking changes:**
|
|
221
|
+
- `StorageDomains` type no longer includes `operations` - access via `getStore()` instead
|
|
222
|
+
- Domain base classes now require implementing `dangerouslyClearAll()` method
|
|
223
|
+
|
|
224
|
+
- Refactor storage architecture to use domain-specific stores via `getStore()` pattern ([#11361](https://github.com/mastra-ai/mastra/pull/11361))
|
|
225
|
+
|
|
226
|
+
### Summary
|
|
227
|
+
|
|
228
|
+
This release introduces a new storage architecture that replaces passthrough methods on `MastraStorage` with domain-specific storage interfaces accessed via `getStore()`. This change reduces code duplication across storage adapters and provides a cleaner, more modular API.
|
|
229
|
+
|
|
230
|
+
### Migration Guide
|
|
231
|
+
|
|
232
|
+
All direct method calls on storage instances should be updated to use `getStore()`:
|
|
233
|
+
|
|
234
|
+
```typescript
|
|
235
|
+
// Before
|
|
236
|
+
const thread = await storage.getThreadById({ threadId });
|
|
237
|
+
await storage.persistWorkflowSnapshot({ workflowName, runId, snapshot });
|
|
238
|
+
await storage.createSpan(span);
|
|
239
|
+
|
|
240
|
+
// After
|
|
241
|
+
const memory = await storage.getStore('memory');
|
|
242
|
+
const thread = await memory?.getThreadById({ threadId });
|
|
243
|
+
|
|
244
|
+
const workflows = await storage.getStore('workflows');
|
|
245
|
+
await workflows?.persistWorkflowSnapshot({ workflowName, runId, snapshot });
|
|
246
|
+
|
|
247
|
+
const observability = await storage.getStore('observability');
|
|
248
|
+
await observability?.createSpan(span);
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
### Available Domains
|
|
252
|
+
- **`memory`**: Thread and message operations (`getThreadById`, `saveThread`, `saveMessages`, etc.)
|
|
253
|
+
- **`workflows`**: Workflow state persistence (`persistWorkflowSnapshot`, `loadWorkflowSnapshot`, `getWorkflowRunById`, etc.)
|
|
254
|
+
- **`scores`**: Evaluation scores (`saveScore`, `listScoresByScorerId`, etc.)
|
|
255
|
+
- **`observability`**: Tracing and spans (`createSpan`, `updateSpan`, `getTrace`, etc.)
|
|
256
|
+
- **`agents`**: Stored agent configurations (`createAgent`, `getAgentById`, `listAgents`, etc.)
|
|
257
|
+
|
|
258
|
+
### Breaking Changes
|
|
259
|
+
- Passthrough methods have been removed from `MastraStorage` base class
|
|
260
|
+
- All storage adapters now require accessing domains via `getStore()`
|
|
261
|
+
- The `stores` property on storage instances is now the canonical way to access domain storage
|
|
262
|
+
|
|
263
|
+
### Internal Changes
|
|
264
|
+
- Each storage adapter now initializes domain-specific stores in its constructor
|
|
265
|
+
- Domain stores share database connections and handle their own table initialization
|
|
266
|
+
|
|
267
|
+
- Add support for AI SDK v6 ToolLoopAgent in Mastra ([#11254](https://github.com/mastra-ai/mastra/pull/11254))
|
|
268
|
+
|
|
269
|
+
You can now pass an AI SDK v6 `ToolLoopAgent` directly to Mastra's agents configuration. The agent will be automatically converted to a Mastra Agent while preserving all ToolLoopAgent lifecycle hooks:
|
|
270
|
+
- `prepareCall` - Called once at the start of generate/stream
|
|
271
|
+
- `prepareStep` - Called before each step in the agentic loop
|
|
272
|
+
- `stopWhen` - Custom stop conditions for the loop
|
|
273
|
+
|
|
274
|
+
Example:
|
|
275
|
+
|
|
276
|
+
```typescript
|
|
277
|
+
import { ToolLoopAgent } from 'ai';
|
|
278
|
+
import { Mastra } from '@mastra/core/mastra';
|
|
279
|
+
|
|
280
|
+
const toolLoopAgent = new ToolLoopAgent({
|
|
281
|
+
model: openai('gpt-4o'),
|
|
282
|
+
instructions: 'You are a helpful assistant.',
|
|
283
|
+
tools: { weather: weatherTool },
|
|
284
|
+
prepareStep: async ({ stepNumber }) => {
|
|
285
|
+
if (stepNumber === 0) {
|
|
286
|
+
return { toolChoice: 'required' };
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
});
|
|
290
|
+
|
|
291
|
+
const mastra = new Mastra({
|
|
292
|
+
agents: { toolLoopAgent },
|
|
293
|
+
});
|
|
294
|
+
|
|
295
|
+
// Use like any other Mastra agent
|
|
296
|
+
const agent = mastra.getAgent('toolLoopAgent');
|
|
297
|
+
const result = await agent.generate('What is the weather?');
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
- Unified observability schema with entity-based span identification ([#11132](https://github.com/mastra-ai/mastra/pull/11132))
|
|
301
|
+
|
|
302
|
+
## What changed
|
|
303
|
+
|
|
304
|
+
Spans now use a unified identification model with `entityId`, `entityType`, and `entityName` instead of separate `agentId`, `toolId`, `workflowId` fields.
|
|
305
|
+
|
|
306
|
+
**Before:**
|
|
307
|
+
|
|
308
|
+
```typescript
|
|
309
|
+
// Old span structure
|
|
310
|
+
span.agentId; // 'my-agent'
|
|
311
|
+
span.toolId; // undefined
|
|
312
|
+
span.workflowId; // undefined
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
**After:**
|
|
316
|
+
|
|
317
|
+
```typescript
|
|
318
|
+
// New span structure
|
|
319
|
+
span.entityType; // EntityType.AGENT
|
|
320
|
+
span.entityId; // 'my-agent'
|
|
321
|
+
span.entityName; // 'My Agent'
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
## New `listTraces()` API
|
|
325
|
+
|
|
326
|
+
Query traces with filtering, pagination, and sorting:
|
|
327
|
+
|
|
328
|
+
```typescript
|
|
329
|
+
const { spans, pagination } = await storage.listTraces({
|
|
330
|
+
filters: {
|
|
331
|
+
entityType: EntityType.AGENT,
|
|
332
|
+
entityId: 'my-agent',
|
|
333
|
+
userId: 'user-123',
|
|
334
|
+
environment: 'production',
|
|
335
|
+
status: TraceStatus.SUCCESS,
|
|
336
|
+
startedAt: { start: new Date('2024-01-01'), end: new Date('2024-01-31') },
|
|
337
|
+
},
|
|
338
|
+
pagination: { page: 0, perPage: 50 },
|
|
339
|
+
orderBy: { field: 'startedAt', direction: 'DESC' },
|
|
340
|
+
});
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
**Available filters:** date ranges (`startedAt`, `endedAt`), entity (`entityType`, `entityId`, `entityName`), identity (`userId`, `organizationId`), correlation IDs (`runId`, `sessionId`, `threadId`), deployment (`environment`, `source`, `serviceName`), `tags`, `metadata`, and `status`.
|
|
344
|
+
|
|
345
|
+
## New retrieval methods
|
|
346
|
+
- `getSpan({ traceId, spanId })` - Get a single span
|
|
347
|
+
- `getRootSpan({ traceId })` - Get the root span of a trace
|
|
348
|
+
- `getTrace({ traceId })` - Get all spans for a trace
|
|
349
|
+
|
|
350
|
+
## Backward compatibility
|
|
351
|
+
|
|
352
|
+
The legacy `getTraces()` method continues to work. When you pass `name: "agent run: my-agent"`, it automatically transforms to `entityId: "my-agent", entityType: AGENT`.
|
|
353
|
+
|
|
354
|
+
## Migration
|
|
355
|
+
|
|
356
|
+
**Automatic:** SQL-based stores (PostgreSQL, LibSQL, MSSQL) automatically add new columns to existing `spans` tables on initialization. Existing data is preserved with new columns set to `NULL`.
|
|
357
|
+
|
|
358
|
+
**No action required:** Your existing code continues to work. Adopt the new fields and `listTraces()` API at your convenience.
|
|
359
|
+
|
|
360
|
+
### Patch Changes
|
|
361
|
+
|
|
362
|
+
- When calling `abort()` inside a `processInputStep` processor, the TripWire was being caught by the model retry logic instead of emitting a tripwire chunk to the stream. ([#11343](https://github.com/mastra-ai/mastra/pull/11343))
|
|
363
|
+
|
|
364
|
+
Before this fix, processors using `processInputStep` with abort would see errors like:
|
|
365
|
+
|
|
366
|
+
```
|
|
367
|
+
Error executing model gpt-4o-mini, attempt 1==== TripWire [Error]: Potentially harmful content detected
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
Now the TripWire is properly handled - it emits a tripwire chunk and signals the abort correctly,
|
|
371
|
+
|
|
372
|
+
- Consolidate memory integration tests and fix working memory filtering in MessageHistory processor ([#11367](https://github.com/mastra-ai/mastra/pull/11367))
|
|
373
|
+
|
|
374
|
+
Moved `extractWorkingMemoryTags`, `removeWorkingMemoryTags`, and `extractWorkingMemoryContent` utilities from `@mastra/memory` to `@mastra/core/memory` so they can be used by the `MessageHistory` processor.
|
|
375
|
+
|
|
376
|
+
Updated `MessageHistory.filterMessagesForPersistence()` to properly filter out `updateWorkingMemory` tool invocations and strip working memory tags from text content, fixing an issue where working memory tool call arguments were polluting saved message history for v5+ models.
|
|
377
|
+
|
|
378
|
+
Also consolidated integration tests for agent-memory, working-memory, and pg-storage into shared test functions that can run against multiple model versions (v4, v5, v6).
|
|
379
|
+
|
|
380
|
+
- Add support for AI SDK's `needsApproval` in tools. ([#11388](https://github.com/mastra-ai/mastra/pull/11388))
|
|
381
|
+
|
|
382
|
+
**AI SDK tools with static approval:**
|
|
383
|
+
|
|
384
|
+
```typescript
|
|
385
|
+
import { tool } from 'ai';
|
|
386
|
+
import { z } from 'zod';
|
|
387
|
+
|
|
388
|
+
const weatherTool = tool({
|
|
389
|
+
description: 'Get weather information',
|
|
390
|
+
inputSchema: z.object({ city: z.string() }),
|
|
391
|
+
needsApproval: true,
|
|
392
|
+
execute: async ({ city }) => {
|
|
393
|
+
return { weather: 'sunny', temp: 72 };
|
|
394
|
+
},
|
|
395
|
+
});
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
**AI SDK tools with dynamic approval:**
|
|
399
|
+
|
|
400
|
+
```typescript
|
|
401
|
+
const paymentTool = tool({
|
|
402
|
+
description: 'Process payment',
|
|
403
|
+
inputSchema: z.object({ amount: z.number() }),
|
|
404
|
+
needsApproval: async ({ amount }) => amount > 1000,
|
|
405
|
+
execute: async ({ amount }) => {
|
|
406
|
+
return { success: true, amount };
|
|
407
|
+
},
|
|
408
|
+
});
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
**Mastra tools continue to work with `requireApproval`:**
|
|
412
|
+
|
|
413
|
+
```typescript
|
|
414
|
+
import { createTool } from '@mastra/core';
|
|
415
|
+
|
|
416
|
+
const deleteTool = createTool({
|
|
417
|
+
id: 'delete-file',
|
|
418
|
+
description: 'Delete a file',
|
|
419
|
+
requireApproval: true,
|
|
420
|
+
inputSchema: z.object({ path: z.string() }),
|
|
421
|
+
execute: async ({ path }) => {
|
|
422
|
+
return { deleted: true };
|
|
423
|
+
},
|
|
424
|
+
});
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
- Fix stopWhen type to accept AI SDK v6 StopCondition functions like `stepCountIs()` ([#11402](https://github.com/mastra-ai/mastra/pull/11402))
|
|
428
|
+
|
|
429
|
+
- Fix missing `title` field in Convex threads table schema ([#11356](https://github.com/mastra-ai/mastra/pull/11356))
|
|
430
|
+
|
|
431
|
+
The Convex schema was hardcoded and out of sync with the core `TABLE_SCHEMAS`, causing errors when creating threads:
|
|
432
|
+
|
|
433
|
+
```
|
|
434
|
+
Error: Failed to insert or update a document in table "mastra_threads"
|
|
435
|
+
because it does not match the schema: Object contains extra field `title`
|
|
436
|
+
that is not in the validator.
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
Now the Convex schema dynamically builds from `TABLE_SCHEMAS` via a new `@mastra/core/storage/constants` export path that doesn't pull in Node.js dependencies (safe for Convex's sandboxed schema evaluation).
|
|
440
|
+
|
|
441
|
+
```typescript
|
|
442
|
+
// Users can now import schema tables without Node.js dependency issues
|
|
443
|
+
import { mastraThreadsTable, mastraMessagesTable } from '@mastra/convex/schema';
|
|
444
|
+
|
|
445
|
+
export default defineSchema({
|
|
446
|
+
mastra_threads: mastraThreadsTable,
|
|
447
|
+
mastra_messages: mastraMessagesTable,
|
|
448
|
+
});
|
|
449
|
+
```
|
|
450
|
+
|
|
451
|
+
Fixes #11319
|
|
452
|
+
|
|
453
|
+
- Added support for AI SDK v6 embedding models (specification version v3) in memory and vector modules. Fixed TypeScript error where `ModelRouterEmbeddingModel` was trying to implement a union type instead of `EmbeddingModelV2` directly. ([#11362](https://github.com/mastra-ai/mastra/pull/11362))
|
|
454
|
+
|
|
455
|
+
- fix: support gs:// and s3:// cloud storage URLs in attachmentsToParts ([#11398](https://github.com/mastra-ai/mastra/pull/11398))
|
|
456
|
+
|
|
457
|
+
- Add validation to detect when a function is passed as a tool instead of a tool object. Previously, passing a tool factory function (e.g., `tools: { myTool }` instead of `tools: { myTool: myTool() }`) would silently fail - the LLM would request tool calls but nothing would execute. Now throws a clear error with guidance on how to fix it. ([#11288](https://github.com/mastra-ai/mastra/pull/11288))
|
|
458
|
+
|
|
459
|
+
- Fix reasoning providerMetadata leaking into text parts when using memory with OpenAI reasoning models. The runState.providerOptions is now cleared after reasoning-end to prevent text parts from inheriting the reasoning's itemId. ([#11380](https://github.com/mastra-ai/mastra/pull/11380))
|
|
460
|
+
|
|
461
|
+
- Upgrade AI SDK v6 from beta to stable (6.0.1) and fix finishReason breaking change. ([#11351](https://github.com/mastra-ai/mastra/pull/11351))
|
|
462
|
+
|
|
463
|
+
AI SDK v6 stable changed finishReason from a string to an object with `unified` and `raw` properties. Added `normalizeFinishReason()` helper to handle both v5 (string) and v6 (object) formats at the stream transform layer
|
|
464
|
+
|
|
465
|
+
- Improve autoResumeSuspendedTools instruction for tool approval ([#11338](https://github.com/mastra-ai/mastra/pull/11338))
|
|
466
|
+
|
|
467
|
+
- Add debugger-like click-through UI to workflow graph ([#11350](https://github.com/mastra-ai/mastra/pull/11350))
|
|
468
|
+
|
|
469
|
+
- Add `perStep` option to workflow run methods, allowing a workflow to run just a step instead of all the workflow steps ([#11276](https://github.com/mastra-ai/mastra/pull/11276))
|
|
470
|
+
|
|
471
|
+
- Fix workflow throwing error when using .map after .foreach ([#11352](https://github.com/mastra-ai/mastra/pull/11352))
|
|
472
|
+
|
|
473
|
+
- Bump @ai-sdk/openai from 3.0.0-beta.102 to 3.0.1 ([#11377](https://github.com/mastra-ai/mastra/pull/11377))
|
|
474
|
+
|
|
3
475
|
## 1.0.0-beta.14
|
|
4
476
|
|
|
5
477
|
### Minor Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-legacy.d.ts","sourceRoot":"","sources":["../../src/agent/agent-legacy.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAe,SAAS,EAAQ,MAAM,qBAAqB,CAAC;AAExE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAExC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EACV,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAMjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,iBAAiB,EAAsB,MAAM,2BAA2B,CAAC;AACvF,OAAO,KAAK,EA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mBAAmB,SAAS,SAAS,GACnC,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,GAC5B,OAAO,CACd,CAAC,kCAAkC,CAAC,CAAC;KACvC,CACF;IAcD;;;OAGG;IACH,4BAA4B,CAC1B,mBAAmB,EACf,OAAO,GACP;QAAE,KAAK,EAAE,eAAe,CAAC,iBAAiB,CAAC,CAAC;QAAC,YAAY,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAA;KAAE,GACrF,SAAS,GACZ;QACD,cAAc,EAAE,OAAO,CAAC;QACxB,KAAK,CAAC,EAAE,eAAe,CAAC,iBAAiB,CAAC,CAAC;QAC3C,YAAY,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;KACxC;IAgBD;;;OAGG;IACG,wBAAwB,CAC5B,cAAc,EAAE,cAAc,EAC9B,YAAY,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,GACrC,OAAO,CAAC,MAAM,CAAC;CAqBnB"}
|
package/dist/agent/index.cjs
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk5DL6Y7PJ_cjs = require('../chunk-5DL6Y7PJ.cjs');
|
|
4
|
+
var chunkEMLEZXTQ_cjs = require('../chunk-EMLEZXTQ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "Agent", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunk5DL6Y7PJ_cjs.Agent; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "TripWire", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunk5DL6Y7PJ_cjs.TripWire; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "isSupportedLanguageModel", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk5DL6Y7PJ_cjs.isSupportedLanguageModel; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "resolveThreadIdFromArgs", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk5DL6Y7PJ_cjs.resolveThreadIdFromArgs; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "supportedLanguageModelSpecifications", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunk5DL6Y7PJ_cjs.supportedLanguageModelSpecifications; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "tryGenerateWithJsonFallback", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunk5DL6Y7PJ_cjs.tryGenerateWithJsonFallback; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "tryStreamWithJsonFallback", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunk5DL6Y7PJ_cjs.tryStreamWithJsonFallback; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "MessageList", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkEMLEZXTQ_cjs.MessageList; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "convertMessages", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkEMLEZXTQ_cjs.convertMessages; }
|
|
43
43
|
});
|
|
44
44
|
//# sourceMappingURL=index.cjs.map
|
|
45
45
|
//# sourceMappingURL=index.cjs.map
|
package/dist/agent/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Agent, TripWire, isSupportedLanguageModel, resolveThreadIdFromArgs, supportedLanguageModelSpecifications, tryGenerateWithJsonFallback, tryStreamWithJsonFallback } from '../chunk-
|
|
2
|
-
export { MessageList, convertMessages } from '../chunk-
|
|
1
|
+
export { Agent, TripWire, isSupportedLanguageModel, resolveThreadIdFromArgs, supportedLanguageModelSpecifications, tryGenerateWithJsonFallback, tryStreamWithJsonFallback } from '../chunk-F7PAZAGE.js';
|
|
2
|
+
export { MessageList, convertMessages } from '../chunk-QXL3F3T2.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkEMLEZXTQ_cjs = require('../../chunk-EMLEZXTQ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "MessageList", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkEMLEZXTQ_cjs.MessageList; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "convertMessages", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkEMLEZXTQ_cjs.convertMessages; }
|
|
14
14
|
});
|
|
15
15
|
//# sourceMappingURL=index.cjs.map
|
|
16
16
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -270,7 +270,7 @@ export declare class MessageList {
|
|
|
270
270
|
private systemMessageToAICore;
|
|
271
271
|
private addOneSystem;
|
|
272
272
|
private isDuplicateSystem;
|
|
273
|
-
|
|
273
|
+
static mastraDBMessageToAIV4UIMessage(m: MastraDBMessage): UIMessageWithMetadata;
|
|
274
274
|
/**
|
|
275
275
|
* Converts a MastraDBMessage system message directly to AIV4 CoreMessage format
|
|
276
276
|
* This is more efficient than converting to UI message first and then to core
|