@mastra/core 1.2.1-alpha.0 → 1.3.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +341 -0
- package/dist/_types/@internal_ai-sdk-v5/dist/index.d.ts +2093 -262
- package/dist/agent/agent-legacy.d.ts.map +1 -1
- package/dist/agent/agent.d.ts +12 -3
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/index.cjs +13 -13
- package/dist/agent/index.js +2 -2
- package/dist/agent/message-list/index.cjs +18 -18
- package/dist/agent/message-list/index.js +1 -1
- package/dist/agent/message-list/message-list.d.ts.map +1 -1
- package/dist/agent/types.d.ts +6 -1
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/index.d.ts +3 -1
- package/dist/agent/workflows/prepare-stream/index.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/map-results-step.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/stream-step.d.ts +3 -1
- package/dist/agent/workflows/prepare-stream/stream-step.d.ts.map +1 -1
- package/dist/base.cjs +2 -2
- package/dist/base.d.ts +13 -1
- package/dist/base.d.ts.map +1 -1
- package/dist/base.js +1 -1
- package/dist/bundler/index.cjs +2 -2
- package/dist/bundler/index.js +1 -1
- package/dist/cache/index.cjs +3 -3
- package/dist/cache/index.js +1 -1
- package/dist/{chunk-ENCTSDWC.js → chunk-2GWTJFVM.js} +2410 -1402
- package/dist/chunk-2GWTJFVM.js.map +1 -0
- package/dist/{chunk-OB4V67IX.cjs → chunk-2K5PNW2U.cjs} +4 -4
- package/dist/{chunk-OB4V67IX.cjs.map → chunk-2K5PNW2U.cjs.map} +1 -1
- package/dist/{chunk-VZXYBFCX.cjs → chunk-2P6DD7M5.cjs} +10 -10
- package/dist/{chunk-VZXYBFCX.cjs.map → chunk-2P6DD7M5.cjs.map} +1 -1
- package/dist/{chunk-Q2D7LERO.cjs → chunk-2VD5OGOT.cjs} +4 -4
- package/dist/{chunk-Q2D7LERO.cjs.map → chunk-2VD5OGOT.cjs.map} +1 -1
- package/dist/{chunk-2DMSFLJY.cjs → chunk-6TZKQI4R.cjs} +8 -8
- package/dist/chunk-6TZKQI4R.cjs.map +1 -0
- package/dist/{chunk-4NG7CKEG.js → chunk-6VGCVSP4.js} +3 -3
- package/dist/{chunk-4NG7CKEG.js.map → chunk-6VGCVSP4.js.map} +1 -1
- package/dist/{chunk-IIZF4W7B.cjs → chunk-7UWHFWST.cjs} +52 -5
- package/dist/chunk-7UWHFWST.cjs.map +1 -0
- package/dist/{chunk-VW7YQWDW.cjs → chunk-BFIOQFGF.cjs} +28 -2
- package/dist/chunk-BFIOQFGF.cjs.map +1 -0
- package/dist/{chunk-E3VFKTIA.js → chunk-BXLLXTT4.js} +2245 -179
- package/dist/chunk-BXLLXTT4.js.map +1 -0
- package/dist/{chunk-HMCXNOF6.cjs → chunk-CGPH7CMG.cjs} +2431 -1417
- package/dist/chunk-CGPH7CMG.cjs.map +1 -0
- package/dist/{chunk-GVLPTDJA.cjs → chunk-D5JZT6EK.cjs} +236 -63
- package/dist/chunk-D5JZT6EK.cjs.map +1 -0
- package/dist/{chunk-5SOS47PH.cjs → chunk-FLHFB23E.cjs} +454 -222
- package/dist/chunk-FLHFB23E.cjs.map +1 -0
- package/dist/{chunk-XCPEEIHI.cjs → chunk-GCTAD6B7.cjs} +3012 -927
- package/dist/chunk-GCTAD6B7.cjs.map +1 -0
- package/dist/{chunk-W3AQUG66.js → chunk-GIY5BINT.js} +4 -4
- package/dist/{chunk-W3AQUG66.js.map → chunk-GIY5BINT.js.map} +1 -1
- package/dist/{chunk-M6VFJX5A.js → chunk-GMSAGYTB.js} +3 -3
- package/dist/{chunk-M6VFJX5A.js.map → chunk-GMSAGYTB.js.map} +1 -1
- package/dist/{chunk-JRJJ5VQE.cjs → chunk-GZD6443M.cjs} +99 -55
- package/dist/chunk-GZD6443M.cjs.map +1 -0
- package/dist/{chunk-Z6NRYYOH.js → chunk-ILQXPZCD.js} +9 -4
- package/dist/chunk-ILQXPZCD.js.map +1 -0
- package/dist/{chunk-5YVR7B4R.js → chunk-JQNREL64.js} +29 -9
- package/dist/chunk-JQNREL64.js.map +1 -0
- package/dist/{chunk-QOFI2WBM.cjs → chunk-JU6K7UDX.cjs} +991 -229
- package/dist/chunk-JU6K7UDX.cjs.map +1 -0
- package/dist/{chunk-HN2MSTR6.cjs → chunk-KAJNBNWP.cjs} +283 -38
- package/dist/chunk-KAJNBNWP.cjs.map +1 -0
- package/dist/{chunk-MSWXEOZC.js → chunk-KL2JPSRX.js} +5 -5
- package/dist/chunk-KL2JPSRX.js.map +1 -0
- package/dist/{chunk-MQB7XFXP.js → chunk-LHRHOPUC.js} +3 -3
- package/dist/{chunk-MQB7XFXP.js.map → chunk-LHRHOPUC.js.map} +1 -1
- package/dist/{chunk-VX7UA3SO.js → chunk-MOOJ3H3C.js} +974 -217
- package/dist/chunk-MOOJ3H3C.js.map +1 -0
- package/dist/{chunk-HU2ONA2W.cjs → chunk-ON2KVIUJ.cjs} +17 -17
- package/dist/{chunk-HU2ONA2W.cjs.map → chunk-ON2KVIUJ.cjs.map} +1 -1
- package/dist/{chunk-I66TMZJ3.cjs → chunk-OOCEAC6U.cjs} +21 -18
- package/dist/chunk-OOCEAC6U.cjs.map +1 -0
- package/dist/{chunk-MNWW2R3U.js → chunk-OV7OOUUR.js} +90 -54
- package/dist/chunk-OV7OOUUR.js.map +1 -0
- package/dist/{chunk-C4WWWQHT.cjs → chunk-RO47SMI7.cjs} +23 -3
- package/dist/chunk-RO47SMI7.cjs.map +1 -0
- package/dist/{chunk-6FG6FU5Y.cjs → chunk-RQ56ZSIR.cjs} +4 -4
- package/dist/{chunk-6FG6FU5Y.cjs.map → chunk-RQ56ZSIR.cjs.map} +1 -1
- package/dist/{chunk-IW3BNL7A.js → chunk-RS6CZXGA.js} +50 -3
- package/dist/chunk-RS6CZXGA.js.map +1 -0
- package/dist/{chunk-AIJLACR2.js → chunk-S53FKKVL.js} +27 -3
- package/dist/chunk-S53FKKVL.js.map +1 -0
- package/dist/{chunk-G6E3QNJC.js → chunk-SBPPGJL6.js} +4078 -4333
- package/dist/chunk-SBPPGJL6.js.map +1 -0
- package/dist/{chunk-UZL4H5P2.cjs → chunk-SH4PCZ3X.cjs} +5375 -5648
- package/dist/chunk-SH4PCZ3X.cjs.map +1 -0
- package/dist/{chunk-ZWM2CAIM.js → chunk-STKNQDVA.js} +4 -4
- package/dist/{chunk-ZWM2CAIM.js.map → chunk-STKNQDVA.js.map} +1 -1
- package/dist/{chunk-A5QFWX67.cjs → chunk-U2CABSMC.cjs} +79 -59
- package/dist/chunk-U2CABSMC.cjs.map +1 -0
- package/dist/{chunk-7MDVYPWX.cjs → chunk-UE2G2LRP.cjs} +9 -4
- package/dist/chunk-UE2G2LRP.cjs.map +1 -0
- package/dist/{chunk-AUF6U2BL.js → chunk-VM25PDSW.js} +5 -5
- package/dist/{chunk-AUF6U2BL.js.map → chunk-VM25PDSW.js.map} +1 -1
- package/dist/{chunk-RXD5EGQF.js → chunk-VVD56FI4.js} +228 -55
- package/dist/chunk-VVD56FI4.js.map +1 -0
- package/dist/{chunk-JIT2OY3X.js → chunk-WCAFTXGK.js} +23 -3
- package/dist/chunk-WCAFTXGK.js.map +1 -0
- package/dist/{chunk-P62OJXQ4.js → chunk-WL3AW3YA.js} +282 -37
- package/dist/chunk-WL3AW3YA.js.map +1 -0
- package/dist/{chunk-YLODOPYM.cjs → chunk-XDD5V446.cjs} +4163 -5352
- package/dist/chunk-XDD5V446.cjs.map +1 -0
- package/dist/{chunk-B4M33FCS.cjs → chunk-XQVYEOI7.cjs} +7 -7
- package/dist/{chunk-B4M33FCS.cjs.map → chunk-XQVYEOI7.cjs.map} +1 -1
- package/dist/{chunk-BP2TSCBW.js → chunk-ZATLLPIH.js} +4391 -5561
- package/dist/chunk-ZATLLPIH.js.map +1 -0
- package/dist/{chunk-T6PRRKMW.js → chunk-ZHFM7HCQ.js} +9 -6
- package/dist/chunk-ZHFM7HCQ.js.map +1 -0
- package/dist/{chunk-WFUNLRQX.js → chunk-ZRUTE56J.js} +366 -134
- package/dist/chunk-ZRUTE56J.js.map +1 -0
- package/dist/deployer/index.cjs +2 -2
- package/dist/deployer/index.js +1 -1
- package/dist/docs/SKILL.md +2 -9
- package/dist/docs/assets/SOURCE_MAP.json +399 -342
- package/dist/docs/references/docs-agents-agent-memory.md +45 -1
- package/dist/docs/references/docs-agents-network-approval.md +1 -1
- package/dist/docs/references/docs-agents-networks.md +3 -3
- package/dist/docs/references/docs-agents-overview.md +8 -0
- package/dist/docs/references/docs-agents-using-tools.md +82 -72
- package/dist/docs/references/docs-memory-observational-memory.md +11 -8
- package/dist/docs/references/docs-observability-overview.md +1 -1
- package/dist/docs/references/docs-observability-tracing-exporters-langsmith.md +70 -0
- package/dist/docs/references/docs-observability-tracing-overview.md +1 -1
- package/dist/docs/references/docs-server-middleware.md +0 -2
- package/dist/docs/references/docs-server-request-context.md +17 -0
- package/dist/docs/references/docs-workflows-agents-and-tools.md +2 -2
- package/dist/docs/references/docs-workflows-overview.md +1 -1
- package/dist/docs/references/docs-workspace-filesystem.md +2 -0
- package/dist/docs/references/docs-workspace-overview.md +3 -1
- package/dist/docs/references/docs-workspace-sandbox.md +2 -0
- package/dist/docs/references/docs-workspace-search.md +2 -0
- package/dist/docs/references/docs-workspace-skills.md +3 -1
- package/dist/docs/references/reference-agents-getTools.md +1 -6
- package/dist/docs/references/reference-agents-listAgents.md +1 -1
- package/dist/docs/references/reference-agents-network.md +0 -2
- package/dist/docs/references/reference-cli-mastra.md +29 -4
- package/dist/docs/references/reference-client-js-agents.md +1 -1
- package/dist/docs/references/reference-configuration.md +1 -1
- package/dist/docs/references/reference-core-getStoredAgentById.md +2 -2
- package/dist/docs/references/reference-core-listStoredAgents.md +1 -1
- package/dist/docs/references/reference-memory-observational-memory.md +2 -0
- package/dist/docs/references/reference-tools-mcp-client.md +0 -2
- package/dist/docs/references/reference-workflows-step.md +2 -0
- package/dist/docs/references/reference-workflows-workflow-methods-map.md +2 -2
- package/dist/docs/references/reference-workspace-filesystem.md +2 -0
- package/dist/docs/references/reference-workspace-local-filesystem.md +2 -0
- package/dist/docs/references/reference-workspace-local-sandbox.md +2 -0
- package/dist/docs/references/reference-workspace-sandbox.md +2 -0
- package/dist/docs/references/reference-workspace-workspace-class.md +2 -0
- package/dist/docs/references/reference.md +7 -2
- package/dist/editor/index.d.ts +1 -1
- package/dist/editor/index.d.ts.map +1 -1
- package/dist/editor/types.d.ts +53 -48
- package/dist/editor/types.d.ts.map +1 -1
- package/dist/evals/base.d.ts +15 -0
- package/dist/evals/base.d.ts.map +1 -1
- package/dist/evals/index.cjs +20 -20
- package/dist/evals/index.js +3 -3
- package/dist/evals/run/index.d.ts +3 -3
- package/dist/evals/run/index.d.ts.map +1 -1
- package/dist/evals/scoreTraces/index.cjs +5 -5
- package/dist/evals/scoreTraces/index.js +2 -2
- package/dist/features/index.cjs +1 -1
- package/dist/features/index.cjs.map +1 -1
- package/dist/features/index.d.ts.map +1 -1
- package/dist/features/index.js +1 -1
- package/dist/features/index.js.map +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/integration/index.cjs +2 -2
- package/dist/integration/index.js +1 -1
- package/dist/llm/index.cjs +16 -16
- package/dist/llm/index.js +5 -5
- package/dist/llm/model/gateways/constants.d.ts.map +1 -1
- package/dist/llm/model/gateways/models-dev.d.ts.map +1 -1
- package/dist/llm/model/model.loop.d.ts +1 -1
- package/dist/llm/model/model.loop.d.ts.map +1 -1
- package/dist/llm/model/provider-types.generated.d.ts +128 -10
- package/dist/llm/model/resolve-model.d.ts.map +1 -1
- package/dist/loop/index.cjs +12 -12
- package/dist/loop/index.js +1 -1
- package/dist/loop/network/index.d.ts +3 -3
- package/dist/loop/network/index.d.ts.map +1 -1
- package/dist/loop/network/run-command-tool.d.ts +1 -1
- package/dist/loop/types.d.ts +13 -0
- package/dist/loop/types.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/index.d.ts +9 -9
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts +7 -7
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts +3 -3
- package/dist/loop/workflows/agentic-execution/tool-call-step.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-loop/index.d.ts +9 -9
- package/dist/loop/workflows/schema.d.ts +12 -12
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.ts +91 -5
- package/dist/mastra/index.d.ts.map +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/mcp/index.cjs +2 -2
- package/dist/mcp/index.js +1 -1
- package/dist/memory/index.cjs +14 -14
- package/dist/memory/index.js +1 -1
- package/dist/memory/mock.d.ts.map +1 -1
- package/dist/memory/types.d.ts +128 -0
- package/dist/memory/types.d.ts.map +1 -1
- package/dist/models-dev-FQVUTQ7L.js +3 -0
- package/dist/{models-dev-Z45JSLWD.js.map → models-dev-FQVUTQ7L.js.map} +1 -1
- package/dist/models-dev-PPIXUUCU.cjs +12 -0
- package/dist/{models-dev-OQKVMEIT.cjs.map → models-dev-PPIXUUCU.cjs.map} +1 -1
- package/dist/netlify-4RIKF7Y3.js +3 -0
- package/dist/{netlify-SSWMYSAX.js.map → netlify-4RIKF7Y3.js.map} +1 -1
- package/dist/netlify-V5F7JEJH.cjs +12 -0
- package/dist/{netlify-TXZZCT6N.cjs.map → netlify-V5F7JEJH.cjs.map} +1 -1
- package/dist/processors/index.cjs +41 -41
- package/dist/processors/index.js +1 -1
- package/dist/processors/step-schema.d.ts +44 -44
- package/dist/provider-registry-C6XCYX44.cjs +40 -0
- package/dist/{provider-registry-NR7FXV2Q.cjs.map → provider-registry-C6XCYX44.cjs.map} +1 -1
- package/dist/provider-registry-NWU4YFQW.js +3 -0
- package/dist/{provider-registry-RPOTQNHI.js.map → provider-registry-NWU4YFQW.js.map} +1 -1
- package/dist/provider-registry.json +278 -33
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/server/index.cjs +3 -3
- package/dist/server/index.js +1 -1
- package/dist/storage/base.d.ts +3 -1
- package/dist/storage/base.d.ts.map +1 -1
- package/dist/storage/constants.cjs +51 -19
- package/dist/storage/constants.d.ts +10 -2
- package/dist/storage/constants.d.ts.map +1 -1
- package/dist/storage/constants.js +1 -1
- package/dist/storage/domains/agents/base.d.ts +13 -164
- package/dist/storage/domains/agents/base.d.ts.map +1 -1
- package/dist/storage/domains/agents/index.d.ts +0 -1
- package/dist/storage/domains/agents/index.d.ts.map +1 -1
- package/dist/storage/domains/agents/inmemory.d.ts +6 -10
- package/dist/storage/domains/agents/inmemory.d.ts.map +1 -1
- 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 +7 -1
- package/dist/storage/domains/inmemory-db.d.ts.map +1 -1
- package/dist/storage/domains/memory/base.d.ts +45 -5
- package/dist/storage/domains/memory/base.d.ts.map +1 -1
- package/dist/storage/domains/memory/inmemory.d.ts +7 -7
- package/dist/storage/domains/memory/inmemory.d.ts.map +1 -1
- package/dist/storage/domains/observability/types.d.ts +62 -62
- package/dist/storage/domains/operations/inmemory.d.ts.map +1 -1
- package/dist/storage/domains/prompt-blocks/base.d.ts +47 -0
- package/dist/storage/domains/prompt-blocks/base.d.ts.map +1 -0
- package/dist/storage/domains/prompt-blocks/index.d.ts +3 -0
- package/dist/storage/domains/prompt-blocks/index.d.ts.map +1 -0
- package/dist/storage/domains/prompt-blocks/inmemory.d.ts +31 -0
- package/dist/storage/domains/prompt-blocks/inmemory.d.ts.map +1 -0
- package/dist/storage/domains/scorer-definitions/base.d.ts +47 -0
- package/dist/storage/domains/scorer-definitions/base.d.ts.map +1 -0
- package/dist/storage/domains/scorer-definitions/index.d.ts +3 -0
- package/dist/storage/domains/scorer-definitions/index.d.ts.map +1 -0
- package/dist/storage/domains/scorer-definitions/inmemory.d.ts +31 -0
- package/dist/storage/domains/scorer-definitions/inmemory.d.ts.map +1 -0
- package/dist/storage/domains/versioned.d.ts +136 -0
- package/dist/storage/domains/versioned.d.ts.map +1 -0
- package/dist/storage/index.cjs +156 -104
- package/dist/storage/index.js +2 -2
- package/dist/storage/mock.d.ts.map +1 -1
- package/dist/storage/types.d.ts +481 -27
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/stream/MastraAgentNetworkStream.d.ts +1 -1
- package/dist/stream/MastraWorkflowStream.d.ts +1 -1
- package/dist/stream/RunOutput.d.ts +1 -1
- package/dist/stream/RunOutput.d.ts.map +1 -1
- package/dist/stream/base/output.d.ts +4 -0
- package/dist/stream/base/output.d.ts.map +1 -1
- package/dist/stream/index.cjs +11 -11
- package/dist/stream/index.js +2 -2
- 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 +4 -4
- package/dist/tool-loop-agent/index.js +1 -1
- package/dist/tools/index.cjs +4 -4
- 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/types.d.ts +15 -0
- package/dist/tools/types.d.ts.map +1 -1
- package/dist/tools/validation.d.ts.map +1 -1
- package/dist/tts/index.cjs +2 -2
- package/dist/tts/index.js +1 -1
- package/dist/types/zod-compat.d.ts +2 -2
- package/dist/types/zod-compat.d.ts.map +1 -1
- package/dist/utils/zod-utils.d.ts +19 -0
- package/dist/utils/zod-utils.d.ts.map +1 -1
- package/dist/utils.cjs +28 -28
- package/dist/utils.d.ts +7 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +2 -2
- package/dist/vector/index.cjs +9 -9
- package/dist/vector/index.js +2 -2
- package/dist/voice/index.cjs +6 -6
- package/dist/voice/index.js +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.map +1 -1
- package/dist/workflows/evented/workflow.d.ts +3 -1
- package/dist/workflows/evented/workflow.d.ts.map +1 -1
- package/dist/workflows/execution-engine.d.ts.map +1 -1
- package/dist/workflows/index.cjs +25 -25
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/step.d.ts +4 -3
- package/dist/workflows/step.d.ts.map +1 -1
- package/dist/workflows/types.d.ts +2 -1
- package/dist/workflows/types.d.ts.map +1 -1
- package/dist/workflows/workflow.d.ts +12 -4
- package/dist/workflows/workflow.d.ts.map +1 -1
- package/dist/workspace/errors.d.ts +6 -0
- package/dist/workspace/errors.d.ts.map +1 -1
- package/dist/workspace/filesystem/composite-filesystem.d.ts +93 -0
- package/dist/workspace/filesystem/composite-filesystem.d.ts.map +1 -0
- package/dist/workspace/filesystem/filesystem.d.ts +35 -0
- package/dist/workspace/filesystem/filesystem.d.ts.map +1 -1
- package/dist/workspace/filesystem/index.d.ts +2 -0
- package/dist/workspace/filesystem/index.d.ts.map +1 -1
- package/dist/workspace/filesystem/local-filesystem.d.ts +9 -1
- package/dist/workspace/filesystem/local-filesystem.d.ts.map +1 -1
- package/dist/workspace/filesystem/mastra-filesystem.d.ts +92 -3
- package/dist/workspace/filesystem/mastra-filesystem.d.ts.map +1 -1
- package/dist/workspace/filesystem/mount.d.ts +34 -0
- package/dist/workspace/filesystem/mount.d.ts.map +1 -0
- package/dist/workspace/index.cjs +62 -34
- package/dist/workspace/index.d.ts +6 -2
- package/dist/workspace/index.d.ts.map +1 -1
- package/dist/workspace/index.js +1 -1
- package/dist/workspace/lifecycle.d.ts +29 -0
- package/dist/workspace/lifecycle.d.ts.map +1 -1
- package/dist/workspace/sandbox/errors.d.ts +50 -0
- package/dist/workspace/sandbox/errors.d.ts.map +1 -0
- package/dist/workspace/sandbox/index.d.ts +3 -0
- package/dist/workspace/sandbox/index.d.ts.map +1 -1
- package/dist/workspace/sandbox/local-sandbox.d.ts +17 -2
- package/dist/workspace/sandbox/local-sandbox.d.ts.map +1 -1
- package/dist/workspace/sandbox/mastra-sandbox.d.ts +153 -6
- package/dist/workspace/sandbox/mastra-sandbox.d.ts.map +1 -1
- package/dist/workspace/sandbox/mount-manager.d.ts +195 -0
- package/dist/workspace/sandbox/mount-manager.d.ts.map +1 -0
- package/dist/workspace/sandbox/sandbox.d.ts +37 -84
- package/dist/workspace/sandbox/sandbox.d.ts.map +1 -1
- package/dist/workspace/sandbox/types.d.ts +92 -0
- package/dist/workspace/sandbox/types.d.ts.map +1 -0
- package/dist/workspace/tools/tools.d.ts.map +1 -1
- package/dist/workspace/tools/tree-formatter.d.ts.map +1 -1
- package/dist/workspace/workspace.d.ts +73 -3
- package/dist/workspace/workspace.d.ts.map +1 -1
- package/package.json +16 -16
- package/src/llm/model/provider-types.generated.d.ts +128 -10
- package/dist/chunk-2DMSFLJY.cjs.map +0 -1
- package/dist/chunk-5SOS47PH.cjs.map +0 -1
- package/dist/chunk-5YVR7B4R.js.map +0 -1
- package/dist/chunk-7MDVYPWX.cjs.map +0 -1
- package/dist/chunk-A5QFWX67.cjs.map +0 -1
- package/dist/chunk-AIJLACR2.js.map +0 -1
- package/dist/chunk-BP2TSCBW.js.map +0 -1
- package/dist/chunk-C4WWWQHT.cjs.map +0 -1
- package/dist/chunk-E3VFKTIA.js.map +0 -1
- package/dist/chunk-ENCTSDWC.js.map +0 -1
- package/dist/chunk-G6E3QNJC.js.map +0 -1
- package/dist/chunk-GVLPTDJA.cjs.map +0 -1
- package/dist/chunk-HMCXNOF6.cjs.map +0 -1
- package/dist/chunk-HN2MSTR6.cjs.map +0 -1
- package/dist/chunk-I66TMZJ3.cjs.map +0 -1
- package/dist/chunk-IIZF4W7B.cjs.map +0 -1
- package/dist/chunk-IW3BNL7A.js.map +0 -1
- package/dist/chunk-JIT2OY3X.js.map +0 -1
- package/dist/chunk-JRJJ5VQE.cjs.map +0 -1
- package/dist/chunk-MNWW2R3U.js.map +0 -1
- package/dist/chunk-MSWXEOZC.js.map +0 -1
- package/dist/chunk-P62OJXQ4.js.map +0 -1
- package/dist/chunk-QOFI2WBM.cjs.map +0 -1
- package/dist/chunk-RXD5EGQF.js.map +0 -1
- package/dist/chunk-T6PRRKMW.js.map +0 -1
- package/dist/chunk-UZL4H5P2.cjs.map +0 -1
- package/dist/chunk-VW7YQWDW.cjs.map +0 -1
- package/dist/chunk-VX7UA3SO.js.map +0 -1
- package/dist/chunk-WFUNLRQX.js.map +0 -1
- package/dist/chunk-XCPEEIHI.cjs.map +0 -1
- package/dist/chunk-YLODOPYM.cjs.map +0 -1
- package/dist/chunk-Z6NRYYOH.js.map +0 -1
- package/dist/docs/references/docs-tools-mcp-advanced-usage.md +0 -143
- package/dist/docs/references/docs-tools-mcp-mcp-overview.md +0 -383
- package/dist/docs/references/docs-tools-mcp-overview.md +0 -78
- package/dist/docs/references/docs-workflows-input-data-mapping.md +0 -102
- package/dist/docs/references/reference-deployer-netlify.md +0 -14
- package/dist/docs/references/reference-deployer-vercel.md +0 -39
- package/dist/docs/references/reference-tools-client.md +0 -228
- package/dist/models-dev-OQKVMEIT.cjs +0 -12
- package/dist/models-dev-Z45JSLWD.js +0 -3
- package/dist/netlify-SSWMYSAX.js +0 -3
- package/dist/netlify-TXZZCT6N.cjs +0 -12
- package/dist/provider-registry-NR7FXV2Q.cjs +0 -40
- package/dist/provider-registry-RPOTQNHI.js +0 -3
|
@@ -26,7 +26,24 @@ Start the development server in inspect mode and break at the beginning of the s
|
|
|
26
26
|
|
|
27
27
|
#### `--custom-args`
|
|
28
28
|
|
|
29
|
-
Comma-separated list of custom arguments to pass to the
|
|
29
|
+
Comma-separated list of custom arguments to pass to the Node.js process, e.g. `--require=newrelic` or `--experimental-transform-types`.
|
|
30
|
+
|
|
31
|
+
#### `--request-context-presets`
|
|
32
|
+
|
|
33
|
+
Path to a JSON file containing named [request context](https://mastra.ai/docs/server/request-context) presets. When provided, a dropdown appears in Studio's request context editor, letting you quickly switch between preset configurations.
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
mastra dev --request-context-presets ./presets.json
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
The file must be a JSON object where each key is a preset name and each value is an object:
|
|
40
|
+
|
|
41
|
+
```json
|
|
42
|
+
{
|
|
43
|
+
"development": { "userId": "dev-user", "env": "development" },
|
|
44
|
+
"production": { "userId": "prod-user", "env": "production" }
|
|
45
|
+
}
|
|
46
|
+
```
|
|
30
47
|
|
|
31
48
|
### Configs
|
|
32
49
|
|
|
@@ -90,7 +107,7 @@ Under the hood Mastra's Rollup server locates your Mastra entry file and bundles
|
|
|
90
107
|
|
|
91
108
|
The output in `.mastra` can be deployed to any cloud server using [`mastra start`](#mastra-start).
|
|
92
109
|
|
|
93
|
-
If you're deploying to a [serverless platform](https://mastra.ai/
|
|
110
|
+
If you're deploying to a [serverless platform](https://mastra.ai/docs/deployment/cloud-providers) you need to install the correct deployer in order to receive the correct output in `.mastra`.
|
|
94
111
|
|
|
95
112
|
It accepts [common flags](#common-flags).
|
|
96
113
|
|
|
@@ -134,9 +151,9 @@ The command accepts [common flags](#common-flags) and the following additional f
|
|
|
134
151
|
|
|
135
152
|
The path to your built Mastra output directory. Defaults to `.mastra/output`.
|
|
136
153
|
|
|
137
|
-
#### `--
|
|
154
|
+
#### `--custom-args`
|
|
138
155
|
|
|
139
|
-
|
|
156
|
+
Comma-separated list of custom arguments to pass to the Node.js process, e.g. `--require=newrelic` or `--experimental-transform-types`.
|
|
140
157
|
|
|
141
158
|
## `mastra studio`
|
|
142
159
|
|
|
@@ -162,6 +179,14 @@ The port of the Mastra API server to connect to. Defaults to `4111`.
|
|
|
162
179
|
|
|
163
180
|
The protocol of the Mastra API server to connect to. Defaults to `http`.
|
|
164
181
|
|
|
182
|
+
#### `--request-context-presets`
|
|
183
|
+
|
|
184
|
+
Path to a JSON file containing named [request context](https://mastra.ai/docs/server/request-context) presets. Works the same as the [`mastra dev` flag](#--request-context-presets).
|
|
185
|
+
|
|
186
|
+
```bash
|
|
187
|
+
mastra studio --request-context-presets ./presets.json
|
|
188
|
+
```
|
|
189
|
+
|
|
165
190
|
## `mastra lint`
|
|
166
191
|
|
|
167
192
|
The `mastra lint` command validates the structure and code of your Mastra project to ensure it follows best practices and is error-free.
|
|
@@ -364,7 +364,7 @@ const agent = await mastraClient.createStoredAgent({
|
|
|
364
364
|
},
|
|
365
365
|
tools: ["calculator", "weather"],
|
|
366
366
|
workflows: ["data-processing"],
|
|
367
|
-
agents: ["
|
|
367
|
+
agents: ["subagent-1"],
|
|
368
368
|
memory: "my-memory",
|
|
369
369
|
scorers: {
|
|
370
370
|
"quality-scorer": {
|
|
@@ -304,7 +304,7 @@ export const mastra = new Mastra({
|
|
|
304
304
|
|
|
305
305
|
Tools are reusable functions that agents can use to interact with external systems. Each tool defines inputs, outputs, and execution logic.
|
|
306
306
|
|
|
307
|
-
Visit the [Tools documentation](https://mastra.ai/docs/tools
|
|
307
|
+
Visit the [Tools documentation](https://mastra.ai/docs/agents/using-tools) to learn more.
|
|
308
308
|
|
|
309
309
|
> **Note:** Most users configure tools directly on agents. This top-level configuration is for defining reusable tools that can be shared across multiple agents.
|
|
310
310
|
|
|
@@ -44,7 +44,7 @@ When creating an `Agent` instance from stored configuration, the method resolves
|
|
|
44
44
|
|
|
45
45
|
- **Tools**: Resolved from `tools` registered in Mastra config
|
|
46
46
|
- **Workflows**: Resolved from `workflows` registered in Mastra config
|
|
47
|
-
- **
|
|
47
|
+
- **Subagents**: Resolved from `agents` registered in Mastra config
|
|
48
48
|
- **Memory**: Resolved from `memory` registered in Mastra config
|
|
49
49
|
- **Scorers**: Resolved from `scorers` registered in Mastra config, including sampling configuration
|
|
50
50
|
|
|
@@ -68,7 +68,7 @@ When using `raw: true`, the returned object has the following structure:
|
|
|
68
68
|
|
|
69
69
|
**workflows?:** (`Record<string, unknown>`): Workflow references to resolve from registry.
|
|
70
70
|
|
|
71
|
-
**agents?:** (`Record<string, unknown>`):
|
|
71
|
+
**agents?:** (`Record<string, unknown>`): Subagent references to resolve from registry.
|
|
72
72
|
|
|
73
73
|
**memory?:** (`Record<string, unknown>`): Memory reference to resolve from registry.
|
|
74
74
|
|
|
@@ -61,7 +61,7 @@ When creating `Agent` instances (default behavior), each stored agent's configur
|
|
|
61
61
|
|
|
62
62
|
- **Tools**: Resolved from `tools` registered in Mastra config
|
|
63
63
|
- **Workflows**: Resolved from `workflows` registered in Mastra config
|
|
64
|
-
- **
|
|
64
|
+
- **Subagents**: Resolved from `agents` registered in Mastra config
|
|
65
65
|
- **Memory**: Resolved from `memory` registered in Mastra config
|
|
66
66
|
- **Scorers**: Resolved from `scorers` registered in Mastra config
|
|
67
67
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Observational Memory
|
|
2
2
|
|
|
3
|
+
**Added in:** `@mastra/memory@1.1.0`
|
|
4
|
+
|
|
3
5
|
Observational Memory (OM) is Mastra's memory system for long-context agentic memory. Two background agents — an **Observer** that watches conversations and creates observations, and a **Reflector** that restructures observations by combining related items, reflecting on overarching patterns, and condensing where possible — maintain an observation log that replaces raw message history as it grows.
|
|
4
6
|
|
|
5
7
|
## Usage
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
The `MCPClient` class provides a way to manage multiple MCP server connections and their tools in a Mastra application. It handles connection lifecycle, tool namespacing, and provides access to tools across all configured servers.
|
|
4
4
|
|
|
5
|
-
This class replaces the deprecated [`MastraMCPClient`](https://mastra.ai/reference/tools/client).
|
|
6
|
-
|
|
7
5
|
## Constructor
|
|
8
6
|
|
|
9
7
|
Creates a new instance of the MCPClient class.
|
|
@@ -84,6 +84,8 @@ const agentStep = createStep(testAgent, {
|
|
|
84
84
|
|
|
85
85
|
**execute:** (`(params: ExecuteParams) => Promise<any>`): Async function containing step logic
|
|
86
86
|
|
|
87
|
+
**metadata:** (`Record<string, any>`): Optional key-value pairs for storing additional step information. Values must be serializable (no functions, circular references, etc.).
|
|
88
|
+
|
|
87
89
|
### ExecuteParams
|
|
88
90
|
|
|
89
91
|
**inputData:** (`z.infer<TStepInput>`): The input data matching the inputSchema
|
|
@@ -5,7 +5,7 @@ The `.map()` method maps output data from a previous step to the input of a subs
|
|
|
5
5
|
## Usage example
|
|
6
6
|
|
|
7
7
|
```typescript
|
|
8
|
-
workflow.map(async ({ inputData }) => `${inputData.value} - map`
|
|
8
|
+
workflow.map(async ({ inputData }) => `${inputData.value} - map`)
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Parameters
|
|
@@ -45,7 +45,7 @@ Use `getInitData<typeof workflow>()` to access the initial input data provided t
|
|
|
45
45
|
```typescript
|
|
46
46
|
.then(step1)
|
|
47
47
|
.map(async ({ getInitData }) => {
|
|
48
|
-
|
|
48
|
+
console.log(getInitData<any>());
|
|
49
49
|
})
|
|
50
50
|
```
|
|
51
51
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Workspace Class
|
|
2
2
|
|
|
3
|
+
**Added in:** `@mastra/core@1.1.0`
|
|
4
|
+
|
|
3
5
|
The `Workspace` class combines a filesystem and sandbox to provide agents with file storage and command execution capabilities. It also supports BM25 and vector search for indexed content.
|
|
4
6
|
|
|
5
7
|
## Usage Example
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
The Reference section provides documentation of Mastra's API, including parameters, types and usage examples.
|
|
4
4
|
|
|
5
5
|
- [Agent Class](https://mastra.ai/reference/agents/agent)
|
|
6
|
+
- [.generate()](https://mastra.ai/reference/agents/generate)
|
|
7
|
+
- [.generateLegacy()](https://mastra.ai/reference/agents/generateLegacy)
|
|
6
8
|
- [.getDefaultGenerateOptionsLegacy()](https://mastra.ai/reference/agents/getDefaultGenerateOptions)
|
|
7
9
|
- [.getDefaultOptions()](https://mastra.ai/reference/agents/getDefaultOptions)
|
|
8
10
|
- [.getDefaultStreamOptionsLegacy()](https://mastra.ai/reference/agents/getDefaultStreamOptions)
|
|
@@ -12,8 +14,7 @@ The Reference section provides documentation of Mastra's API, including paramete
|
|
|
12
14
|
- [.getMemory()](https://mastra.ai/reference/agents/getMemory)
|
|
13
15
|
- [.getModel()](https://mastra.ai/reference/agents/getModel)
|
|
14
16
|
- [.getVoice()](https://mastra.ai/reference/agents/getVoice)
|
|
15
|
-
- [.
|
|
16
|
-
- [.generateLegacy()](https://mastra.ai/reference/agents/generateLegacy)
|
|
17
|
+
- [.getTools()](https://mastra.ai/reference/agents/getTools)
|
|
17
18
|
- [.listAgents()](https://mastra.ai/reference/agents/listAgents)
|
|
18
19
|
- [.listScorers()](https://mastra.ai/reference/agents/listScorers)
|
|
19
20
|
- [.listTools()](https://mastra.ai/reference/agents/listTools)
|
|
@@ -30,6 +31,7 @@ The Reference section provides documentation of Mastra's API, including paramete
|
|
|
30
31
|
- [withMastra()](https://mastra.ai/reference/ai-sdk/with-mastra)
|
|
31
32
|
- [workflowRoute()](https://mastra.ai/reference/ai-sdk/workflow-route)
|
|
32
33
|
- [Auth0](https://mastra.ai/reference/auth/auth0)
|
|
34
|
+
- [Better Auth](https://mastra.ai/reference/auth/better-auth)
|
|
33
35
|
- [Clerk](https://mastra.ai/reference/auth/clerk)
|
|
34
36
|
- [Firebase](https://mastra.ai/reference/auth/firebase)
|
|
35
37
|
- [JSON Web Token](https://mastra.ai/reference/auth/jwt)
|
|
@@ -105,6 +107,8 @@ The Reference section provides documentation of Mastra's API, including paramete
|
|
|
105
107
|
- [Toxicity](https://mastra.ai/reference/evals/toxicity)
|
|
106
108
|
- [Memory Class](https://mastra.ai/reference/memory/memory-class)
|
|
107
109
|
- [Observational Memory](https://mastra.ai/reference/memory/observational-memory)
|
|
110
|
+
- [Cloned Thread Utilities](https://mastra.ai/reference/memory/clone-utilities)
|
|
111
|
+
- [.cloneThread()](https://mastra.ai/reference/memory/cloneThread)
|
|
108
112
|
- [.createThread()](https://mastra.ai/reference/memory/createThread)
|
|
109
113
|
- [.deleteMessages()](https://mastra.ai/reference/memory/deleteMessages)
|
|
110
114
|
- [.getThreadById()](https://mastra.ai/reference/memory/getThreadById)
|
|
@@ -144,6 +148,7 @@ The Reference section provides documentation of Mastra's API, including paramete
|
|
|
144
148
|
- [Hono Adapter](https://mastra.ai/reference/server/hono-adapter)
|
|
145
149
|
- [Koa Adapter](https://mastra.ai/reference/server/koa-adapter)
|
|
146
150
|
- [MastraServer](https://mastra.ai/reference/server/mastra-server)
|
|
151
|
+
- [registerApiRoute()](https://mastra.ai/reference/server/register-api-route)
|
|
147
152
|
- [Server Routes](https://mastra.ai/reference/server/routes)
|
|
148
153
|
- [Overview](https://mastra.ai/reference/storage/overview)
|
|
149
154
|
- [Composite Storage](https://mastra.ai/reference/storage/composite)
|
package/dist/editor/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { IMastraEditor, MastraEditorConfig } from './types.js';
|
|
1
|
+
export type { IMastraEditor, MastraEditorConfig, GetByIdOptions, IEditorAgentNamespace, IEditorPromptNamespace, IEditorScorerNamespace, } from './types.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/editor/index.ts"],"names":[],"mappings":"AAAA,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/editor/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,SAAS,CAAC"}
|
package/dist/editor/types.d.ts
CHANGED
|
@@ -1,13 +1,57 @@
|
|
|
1
1
|
import type { Agent } from '../agent/index.js';
|
|
2
|
+
import type { MastraScorer } from '../evals/index.js';
|
|
2
3
|
import type { IMastraLogger } from '../logger/index.js';
|
|
3
4
|
import type { Mastra } from '../mastra/index.js';
|
|
4
|
-
import type {
|
|
5
|
+
import type { RequestContext } from '../request-context/index.js';
|
|
6
|
+
import type { AgentInstructionBlock, StorageCreateAgentInput, StorageUpdateAgentInput, StorageListAgentsInput, StorageListAgentsOutput, StorageListAgentsResolvedOutput, StorageResolvedAgentType, StorageCreatePromptBlockInput, StorageUpdatePromptBlockInput, StorageListPromptBlocksInput, StorageListPromptBlocksOutput, StorageResolvedPromptBlockType, StorageListPromptBlocksResolvedOutput, StorageCreateScorerDefinitionInput, StorageUpdateScorerDefinitionInput, StorageListScorerDefinitionsInput, StorageListScorerDefinitionsOutput, StorageResolvedScorerDefinitionType, StorageListScorerDefinitionsResolvedOutput } from '../storage/types.js';
|
|
5
7
|
export interface MastraEditorConfig {
|
|
6
8
|
logger?: IMastraLogger;
|
|
7
9
|
}
|
|
10
|
+
export interface GetByIdOptions {
|
|
11
|
+
/** Retrieve a specific version by ID. */
|
|
12
|
+
versionId?: string;
|
|
13
|
+
/** Retrieve a specific version by number. */
|
|
14
|
+
versionNumber?: number;
|
|
15
|
+
}
|
|
16
|
+
export interface IEditorAgentNamespace {
|
|
17
|
+
create(input: StorageCreateAgentInput): Promise<Agent>;
|
|
18
|
+
getById(id: string, options?: GetByIdOptions): Promise<Agent | null>;
|
|
19
|
+
update(input: StorageUpdateAgentInput): Promise<Agent>;
|
|
20
|
+
delete(id: string): Promise<void>;
|
|
21
|
+
list(args?: StorageListAgentsInput): Promise<StorageListAgentsOutput>;
|
|
22
|
+
listResolved(args?: StorageListAgentsInput): Promise<StorageListAgentsResolvedOutput>;
|
|
23
|
+
clearCache(agentId?: string): void;
|
|
24
|
+
clone(agent: Agent, options: {
|
|
25
|
+
newId: string;
|
|
26
|
+
newName?: string;
|
|
27
|
+
metadata?: Record<string, unknown>;
|
|
28
|
+
authorId?: string;
|
|
29
|
+
requestContext?: RequestContext;
|
|
30
|
+
}): Promise<StorageResolvedAgentType>;
|
|
31
|
+
}
|
|
32
|
+
export interface IEditorPromptNamespace {
|
|
33
|
+
create(input: StorageCreatePromptBlockInput): Promise<StorageResolvedPromptBlockType>;
|
|
34
|
+
getById(id: string, options?: GetByIdOptions): Promise<StorageResolvedPromptBlockType | null>;
|
|
35
|
+
update(input: StorageUpdatePromptBlockInput): Promise<StorageResolvedPromptBlockType>;
|
|
36
|
+
delete(id: string): Promise<void>;
|
|
37
|
+
list(args?: StorageListPromptBlocksInput): Promise<StorageListPromptBlocksOutput>;
|
|
38
|
+
listResolved(args?: StorageListPromptBlocksInput): Promise<StorageListPromptBlocksResolvedOutput>;
|
|
39
|
+
clearCache(id?: string): void;
|
|
40
|
+
preview(blocks: AgentInstructionBlock[], context: Record<string, unknown>): Promise<string>;
|
|
41
|
+
}
|
|
42
|
+
export interface IEditorScorerNamespace {
|
|
43
|
+
create(input: StorageCreateScorerDefinitionInput): Promise<StorageResolvedScorerDefinitionType>;
|
|
44
|
+
getById(id: string, options?: GetByIdOptions): Promise<StorageResolvedScorerDefinitionType | null>;
|
|
45
|
+
update(input: StorageUpdateScorerDefinitionInput): Promise<StorageResolvedScorerDefinitionType>;
|
|
46
|
+
delete(id: string): Promise<void>;
|
|
47
|
+
list(args?: StorageListScorerDefinitionsInput): Promise<StorageListScorerDefinitionsOutput>;
|
|
48
|
+
listResolved(args?: StorageListScorerDefinitionsInput): Promise<StorageListScorerDefinitionsResolvedOutput>;
|
|
49
|
+
clearCache(id?: string): void;
|
|
50
|
+
resolve(storedScorer: StorageResolvedScorerDefinitionType): MastraScorer<any, any, any, any> | null;
|
|
51
|
+
}
|
|
8
52
|
/**
|
|
9
|
-
* Interface for the Mastra Editor, which handles agent
|
|
10
|
-
*
|
|
53
|
+
* Interface for the Mastra Editor, which handles agent, prompt, and scorer
|
|
54
|
+
* management from stored data.
|
|
11
55
|
*/
|
|
12
56
|
export interface IMastraEditor {
|
|
13
57
|
/**
|
|
@@ -15,50 +59,11 @@ export interface IMastraEditor {
|
|
|
15
59
|
* This gives the editor access to Mastra's storage, tools, workflows, etc.
|
|
16
60
|
*/
|
|
17
61
|
registerWithMastra(mastra: Mastra): void;
|
|
18
|
-
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
returnRaw?: false;
|
|
25
|
-
versionId?: string;
|
|
26
|
-
versionNumber?: number;
|
|
27
|
-
}): Promise<Agent | null>;
|
|
28
|
-
getStoredAgentById(id: string, options: {
|
|
29
|
-
returnRaw: true;
|
|
30
|
-
versionId?: string;
|
|
31
|
-
versionNumber?: number;
|
|
32
|
-
}): Promise<StorageResolvedAgentType | null>;
|
|
33
|
-
/**
|
|
34
|
-
* List all stored agents with pagination.
|
|
35
|
-
* Returns Agent instances by default, or raw StorageResolvedAgentType when returnRaw is true.
|
|
36
|
-
*/
|
|
37
|
-
listStoredAgents(options?: {
|
|
38
|
-
returnRaw?: false;
|
|
39
|
-
page?: number;
|
|
40
|
-
pageSize?: number;
|
|
41
|
-
}): Promise<{
|
|
42
|
-
agents: Agent[];
|
|
43
|
-
total: number;
|
|
44
|
-
page: number;
|
|
45
|
-
perPage: number;
|
|
46
|
-
hasMore: boolean;
|
|
47
|
-
}>;
|
|
48
|
-
listStoredAgents(options: {
|
|
49
|
-
returnRaw: true;
|
|
50
|
-
page?: number;
|
|
51
|
-
pageSize?: number;
|
|
52
|
-
}): Promise<{
|
|
53
|
-
agents: StorageResolvedAgentType[];
|
|
54
|
-
total: number;
|
|
55
|
-
page: number;
|
|
56
|
-
perPage: number;
|
|
57
|
-
hasMore: boolean;
|
|
58
|
-
}>;
|
|
59
|
-
/**
|
|
60
|
-
* Clear the stored agent cache for a specific agent ID, or all cached agents.
|
|
61
|
-
*/
|
|
62
|
-
clearStoredAgentCache(agentId?: string): void;
|
|
62
|
+
/** Agent management namespace */
|
|
63
|
+
readonly agent: IEditorAgentNamespace;
|
|
64
|
+
/** Prompt block management namespace */
|
|
65
|
+
readonly prompt: IEditorPromptNamespace;
|
|
66
|
+
/** Scorer definition management namespace */
|
|
67
|
+
readonly scorer: IEditorScorerNamespace;
|
|
63
68
|
}
|
|
64
69
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/editor/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/editor/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EACV,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,EACvB,+BAA+B,EAC/B,wBAAwB,EACxB,6BAA6B,EAC7B,6BAA6B,EAC7B,4BAA4B,EAC5B,6BAA6B,EAC7B,8BAA8B,EAC9B,qCAAqC,EACrC,kCAAkC,EAClC,kCAAkC,EAClC,iCAAiC,EACjC,kCAAkC,EAClC,mCAAmC,EACnC,0CAA0C,EAC3C,MAAM,kBAAkB,CAAC;AAE1B,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB;AAED,MAAM,WAAW,cAAc;IAC7B,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAMD,MAAM,WAAW,qBAAqB;IACpC,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Q,CAAC,KAAK,EAAE,qBAAqB,CAAC;IAEtC,wCAAwC;IACxC,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAC;IAExC,6CAA6C;IAC7C,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAC;CACzC"}
|
package/dist/evals/base.d.ts
CHANGED
|
@@ -95,6 +95,11 @@ declare class MastraScorer<TID extends string = string, TInput = any, TRunOutput
|
|
|
95
95
|
config: ScorerConfig<TID, TInput, TRunOutput>;
|
|
96
96
|
private steps;
|
|
97
97
|
private originalPromptObjects;
|
|
98
|
+
/**
|
|
99
|
+
* Tracks whether this scorer was defined in code or loaded from storage.
|
|
100
|
+
* Set by `Mastra.addScorer()` when the `source` option is provided.
|
|
101
|
+
*/
|
|
102
|
+
source?: 'code' | 'stored';
|
|
98
103
|
constructor(config: ScorerConfig<TID, TInput, TRunOutput>, steps?: Array<ScorerStepDefinition>, originalPromptObjects?: Map<string, PromptObject<any, any, any, TInput, TRunOutput> | GenerateReasonPromptObject<any, TInput, TRunOutput> | GenerateScorePromptObject<any, TInput, TRunOutput>>, mastra?: Mastra);
|
|
99
104
|
/**
|
|
100
105
|
* Registers the Mastra instance with the scorer.
|
|
@@ -102,6 +107,16 @@ declare class MastraScorer<TID extends string = string, TInput = any, TRunOutput
|
|
|
102
107
|
* @internal
|
|
103
108
|
*/
|
|
104
109
|
__registerMastra(mastra: Mastra): void;
|
|
110
|
+
/**
|
|
111
|
+
* Returns the raw storage configuration this scorer was created from,
|
|
112
|
+
* or undefined if it was created from code.
|
|
113
|
+
*/
|
|
114
|
+
toRawConfig(): Record<string, unknown> | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* Sets the raw storage configuration for this scorer.
|
|
117
|
+
* @internal
|
|
118
|
+
*/
|
|
119
|
+
__setRawConfig(rawConfig: Record<string, unknown>): void;
|
|
105
120
|
get type(): "agent" | {
|
|
106
121
|
input: z.ZodType<TInput, z.ZodTypeDef, TInput>;
|
|
107
122
|
output: z.ZodType<TRunOutput, z.ZodTypeDef, TRunOutput>;
|
package/dist/evals/base.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/evals/base.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAEtG,UAAU,oBAAoB;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,GAAG,CAAC;IAChB,cAAc,EAAE,OAAO,CAAC;CACzB;AAGD,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE;QACL,KAAK,EAAE,sBAAsB,CAAC;QAC9B,MAAM,EAAE,uBAAuB,CAAC;KACjC,CAAC;CACH,CAAC;AAKF,UAAU,YAAY,CAAC,GAAG,SAAS,MAAM,EAAE,MAAM,GAAG,GAAG,EAAE,UAAU,GAAG,GAAG;IACvE,EAAE,EAAE,GAAG,CAAC;IACR,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE;QACN,KAAK,EAAE,iBAAiB,CAAC;QACzB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IAEF,IAAI,CAAC,EACD,MAAM,mBAAmB,GACzB;QACE,KAAK,EAAE,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC3B,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;KACjC,CAAC;CACP;AAGD,UAAU,SAAS,CAAC,MAAM,GAAG,GAAG,EAAE,OAAO,GAAG,G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D,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
package/dist/evals/index.cjs
CHANGED
|
@@ -1,78 +1,78 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunk6TZKQI4R_cjs = require('../chunk-6TZKQI4R.cjs');
|
|
4
|
+
var chunkFLHFB23E_cjs = require('../chunk-FLHFB23E.cjs');
|
|
5
|
+
var chunkGZD6443M_cjs = require('../chunk-GZD6443M.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "runEvals", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunk6TZKQI4R_cjs.runEvals; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "MastraScorer", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkFLHFB23E_cjs.MastraScorer; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "createScorer", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkFLHFB23E_cjs.createScorer; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "listScoresResponseSchema", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkGZD6443M_cjs.listScoresResponseSchema; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "saveScorePayloadSchema", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkGZD6443M_cjs.saveScorePayloadSchema; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "scoreResultSchema", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkGZD6443M_cjs.scoreResultSchema; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "scoreRowDataSchema", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkGZD6443M_cjs.scoreRowDataSchema; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "scoringEntityTypeSchema", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkGZD6443M_cjs.scoringEntityTypeSchema; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "scoringExtractStepResultSchema", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkGZD6443M_cjs.scoringExtractStepResultSchema; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "scoringHookInputSchema", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkGZD6443M_cjs.scoringHookInputSchema; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "scoringInputSchema", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkGZD6443M_cjs.scoringInputSchema; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "scoringInputWithExtractStepResultAndAnalyzeStepResultSchema", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkGZD6443M_cjs.scoringInputWithExtractStepResultAndAnalyzeStepResultSchema; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "scoringInputWithExtractStepResultAndScoreAndReasonSchema", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkGZD6443M_cjs.scoringInputWithExtractStepResultAndScoreAndReasonSchema; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "scoringInputWithExtractStepResultSchema", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkGZD6443M_cjs.scoringInputWithExtractStepResultSchema; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "scoringPromptsSchema", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkGZD6443M_cjs.scoringPromptsSchema; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "scoringSourceSchema", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkGZD6443M_cjs.scoringSourceSchema; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "scoringValueSchema", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkGZD6443M_cjs.scoringValueSchema; }
|
|
76
76
|
});
|
|
77
77
|
//# sourceMappingURL=index.cjs.map
|
|
78
78
|
//# sourceMappingURL=index.cjs.map
|
package/dist/evals/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { runEvals } from '../chunk-
|
|
2
|
-
export { MastraScorer, createScorer } from '../chunk-
|
|
3
|
-
export { listScoresResponseSchema, saveScorePayloadSchema, scoreResultSchema, scoreRowDataSchema, scoringEntityTypeSchema, scoringExtractStepResultSchema, scoringHookInputSchema, scoringInputSchema, scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, scoringInputWithExtractStepResultAndScoreAndReasonSchema, scoringInputWithExtractStepResultSchema, scoringPromptsSchema, scoringSourceSchema, scoringValueSchema } from '../chunk-
|
|
1
|
+
export { runEvals } from '../chunk-KL2JPSRX.js';
|
|
2
|
+
export { MastraScorer, createScorer } from '../chunk-ZRUTE56J.js';
|
|
3
|
+
export { listScoresResponseSchema, saveScorePayloadSchema, scoreResultSchema, scoreRowDataSchema, scoringEntityTypeSchema, scoringExtractStepResultSchema, scoringHookInputSchema, scoringInputSchema, scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, scoringInputWithExtractStepResultAndScoreAndReasonSchema, scoringInputWithExtractStepResultSchema, scoringPromptsSchema, scoringSourceSchema, scoringValueSchema } from '../chunk-OV7OOUUR.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,7 +3,7 @@ import type { Agent, AiMessageType, UIMessageWithMetadata } from '../../agent/in
|
|
|
3
3
|
import type { TracingContext } from '../../observability/index.js';
|
|
4
4
|
import type { RequestContext } from '../../request-context/index.js';
|
|
5
5
|
import { Workflow } from '../../workflows/index.js';
|
|
6
|
-
import type { WorkflowResult } from '../../workflows/index.js';
|
|
6
|
+
import type { AnyWorkflow, WorkflowResult } from '../../workflows/index.js';
|
|
7
7
|
import type { MastraScorer } from '../base.js';
|
|
8
8
|
type RunEvalsDataItem<TTarget = unknown> = {
|
|
9
9
|
input: TTarget extends Workflow<any, any> ? any : TTarget extends Agent ? string | string[] | CoreMessage[] | AiMessageType[] | UIMessageWithMetadata[] : unknown;
|
|
@@ -32,7 +32,7 @@ export declare function runEvals<TAgent extends Agent>(config: {
|
|
|
32
32
|
}) => void | Promise<void>;
|
|
33
33
|
concurrency?: number;
|
|
34
34
|
}): Promise<RunEvalsResult>;
|
|
35
|
-
export declare function runEvals<TWorkflow extends
|
|
35
|
+
export declare function runEvals<TWorkflow extends AnyWorkflow>(config: {
|
|
36
36
|
data: RunEvalsDataItem<TWorkflow>[];
|
|
37
37
|
scorers: MastraScorer<any, any, any, any>[];
|
|
38
38
|
target: TWorkflow;
|
|
@@ -43,7 +43,7 @@ export declare function runEvals<TWorkflow extends Workflow<any, any, any, any,
|
|
|
43
43
|
}) => void | Promise<void>;
|
|
44
44
|
concurrency?: number;
|
|
45
45
|
}): Promise<RunEvalsResult>;
|
|
46
|
-
export declare function runEvals<TWorkflow extends
|
|
46
|
+
export declare function runEvals<TWorkflow extends AnyWorkflow>(config: {
|
|
47
47
|
data: RunEvalsDataItem<TWorkflow>[];
|
|
48
48
|
scorers: WorkflowScorerConfig;
|
|
49
49
|
target: TWorkflow;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/evals/run/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAI/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAc,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/evals/run/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAI/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAc,MAAM,iBAAiB,CAAC;AAC/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAG5C,KAAK,gBAAgB,CAAC,OAAO,GAAG,OAAO,IAAI;IACzC,KAAK,EAAE,OAAO,SAAS,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,GACrC,GAAG,GACH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