@mastra/core 1.9.0-alpha.0 → 1.10.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +463 -0
- package/dist/agent/agent.d.ts +22 -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/{chunk-VWAK25TU.js → chunk-22MLBFNK.js} +9 -6
- package/dist/chunk-22MLBFNK.js.map +1 -0
- package/dist/{chunk-MVYP55NA.js → chunk-35M33EPI.js} +112 -335
- package/dist/chunk-35M33EPI.js.map +1 -0
- package/dist/{chunk-IOY7Y5GV.js → chunk-3VVNJPTO.js} +602 -187
- package/dist/chunk-3VVNJPTO.js.map +1 -0
- package/dist/{chunk-BFV3GSGS.js → chunk-5TZ46R7O.js} +1546 -22
- package/dist/chunk-5TZ46R7O.js.map +1 -0
- package/dist/{chunk-VDKWYUGC.cjs → chunk-5WBEMKE2.cjs} +7 -3
- package/dist/chunk-5WBEMKE2.cjs.map +1 -0
- package/dist/{chunk-H5S4PS44.cjs → chunk-76Q75VI4.cjs} +602 -187
- package/dist/chunk-76Q75VI4.cjs.map +1 -0
- package/dist/{chunk-P6ZX7OKT.cjs → chunk-7MGIUUDZ.cjs} +7 -7
- package/dist/{chunk-P6ZX7OKT.cjs.map → chunk-7MGIUUDZ.cjs.map} +1 -1
- package/dist/{chunk-SEKQJ447.js → chunk-ACAILOJE.js} +166 -68
- package/dist/chunk-ACAILOJE.js.map +1 -0
- package/dist/{chunk-L3WDI7HP.cjs → chunk-BY3JCNLJ.cjs} +64 -64
- package/dist/{chunk-L3WDI7HP.cjs.map → chunk-BY3JCNLJ.cjs.map} +1 -1
- package/dist/{chunk-ZVWVQ6MG.js → chunk-CY4ZWL2X.js} +8 -3
- package/dist/chunk-CY4ZWL2X.js.map +1 -0
- package/dist/{chunk-6OHS6ZQ3.js → chunk-F7LS4MGT.js} +7 -7
- package/dist/{chunk-6OHS6ZQ3.js.map → chunk-F7LS4MGT.js.map} +1 -1
- package/dist/{chunk-K54LFB4P.js → chunk-FXOWXS4O.js} +3 -3
- package/dist/{chunk-K54LFB4P.js.map → chunk-FXOWXS4O.js.map} +1 -1
- package/dist/{chunk-WYPSC6CO.js → chunk-G5Q4NE5J.js} +103 -3
- package/dist/chunk-G5Q4NE5J.js.map +1 -0
- package/dist/{chunk-5M3RMO7U.js → chunk-GCDI7NB2.js} +8 -8
- package/dist/{chunk-5M3RMO7U.js.map → chunk-GCDI7NB2.js.map} +1 -1
- package/dist/{chunk-ET7GXCHS.js → chunk-GSJHPR6I.js} +5 -5
- package/dist/{chunk-ET7GXCHS.js.map → chunk-GSJHPR6I.js.map} +1 -1
- package/dist/{chunk-3ZBLD2Y4.cjs → chunk-HH76UOJL.cjs} +2 -2
- package/dist/{chunk-3ZBLD2Y4.cjs.map → chunk-HH76UOJL.cjs.map} +1 -1
- package/dist/{chunk-4BXXAZ75.js → chunk-HQTHWVAK.js} +15 -7
- package/dist/chunk-HQTHWVAK.js.map +1 -0
- package/dist/{chunk-CCLV5CAA.js → chunk-JGOH7RWL.js} +7 -3
- package/dist/chunk-JGOH7RWL.js.map +1 -0
- package/dist/{chunk-QNXY3J6B.cjs → chunk-KJOX2DBM.cjs} +21 -18
- package/dist/chunk-KJOX2DBM.cjs.map +1 -0
- package/dist/{chunk-Y6TGIUGL.js → chunk-LSF5WJ6G.js} +2 -2
- package/dist/{chunk-Y6TGIUGL.js.map → chunk-LSF5WJ6G.js.map} +1 -1
- package/dist/{chunk-D6HO5QAM.cjs → chunk-M26GEN4C.cjs} +14 -9
- package/dist/chunk-M26GEN4C.cjs.map +1 -0
- package/dist/{chunk-4P35AVPE.cjs → chunk-MEMYFFOL.cjs} +256 -157
- package/dist/chunk-MEMYFFOL.cjs.map +1 -0
- package/dist/{chunk-YIJZBU54.cjs → chunk-MFCX5BRG.cjs} +239 -462
- package/dist/chunk-MFCX5BRG.cjs.map +1 -0
- package/dist/{chunk-JIRB5LX4.js → chunk-OHX36YXF.js} +5 -3
- package/dist/chunk-OHX36YXF.js.map +1 -0
- package/dist/{chunk-D4M6E4OQ.cjs → chunk-OWZ6QT24.cjs} +16 -8
- package/dist/chunk-OWZ6QT24.cjs.map +1 -0
- package/dist/{chunk-GJTLWOKJ.js → chunk-PQB5LKUM.js} +51 -18
- package/dist/chunk-PQB5LKUM.js.map +1 -0
- package/dist/{chunk-PKORY4ZZ.cjs → chunk-QB7IB4TB.cjs} +106 -6
- package/dist/chunk-QB7IB4TB.cjs.map +1 -0
- package/dist/{chunk-G5R2755Q.cjs → chunk-S6TBWSUM.cjs} +53 -20
- package/dist/chunk-S6TBWSUM.cjs.map +1 -0
- package/dist/{chunk-V5YNS2QO.cjs → chunk-TFCENZRY.cjs} +15 -15
- package/dist/{chunk-V5YNS2QO.cjs.map → chunk-TFCENZRY.cjs.map} +1 -1
- package/dist/{chunk-WU2P7XOU.cjs → chunk-TJBG4QLZ.cjs} +20 -20
- package/dist/{chunk-WU2P7XOU.cjs.map → chunk-TJBG4QLZ.cjs.map} +1 -1
- package/dist/{chunk-HAGCXIBX.cjs → chunk-TSY5TYQ2.cjs} +9 -9
- package/dist/{chunk-HAGCXIBX.cjs.map → chunk-TSY5TYQ2.cjs.map} +1 -1
- package/dist/{chunk-TU4YMXOQ.js → chunk-XPHVLEQH.js} +6 -6
- package/dist/{chunk-TU4YMXOQ.js.map → chunk-XPHVLEQH.js.map} +1 -1
- package/dist/{chunk-ZBESCKPX.cjs → chunk-XR7S7UTE.cjs} +1572 -36
- package/dist/chunk-XR7S7UTE.cjs.map +1 -0
- package/dist/{chunk-BQ355Z3O.js → chunk-YASKIGYS.js} +4 -4
- package/dist/{chunk-BQ355Z3O.js.map → chunk-YASKIGYS.js.map} +1 -1
- package/dist/{chunk-3ZF7IC6Q.cjs → chunk-YZMSJKAK.cjs} +5 -3
- package/dist/chunk-YZMSJKAK.cjs.map +1 -0
- package/dist/{chunk-BN5MV2QK.cjs → chunk-Z52OAJ73.cjs} +4 -4
- package/dist/{chunk-BN5MV2QK.cjs.map → chunk-Z52OAJ73.cjs.map} +1 -1
- package/dist/datasets/experiment/index.d.ts.map +1 -1
- package/dist/datasets/experiment/scorer.d.ts.map +1 -1
- package/dist/datasets/index.cjs +17 -17
- package/dist/datasets/index.js +2 -2
- package/dist/di/index.cjs +4 -4
- package/dist/di/index.js +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +443 -384
- package/dist/docs/references/docs-agents-agent-approval.md +61 -31
- package/dist/docs/references/docs-agents-supervisor-agents.md +1 -1
- package/dist/docs/references/docs-memory-observational-memory.md +9 -0
- package/dist/docs/references/docs-memory-semantic-recall.md +17 -1
- package/dist/docs/references/docs-workspace-skills.md +7 -5
- package/dist/docs/references/reference-agents-agent.md +20 -20
- package/dist/docs/references/reference-agents-generate.md +200 -66
- package/dist/docs/references/reference-agents-generateLegacy.md +77 -35
- package/dist/docs/references/reference-agents-getDefaultGenerateOptions.md +4 -6
- package/dist/docs/references/reference-agents-getDefaultOptions.md +4 -6
- package/dist/docs/references/reference-agents-getDefaultStreamOptions.md +4 -6
- package/dist/docs/references/reference-agents-getDescription.md +1 -1
- package/dist/docs/references/reference-agents-getInstructions.md +4 -6
- package/dist/docs/references/reference-agents-getLLM.md +6 -8
- package/dist/docs/references/reference-agents-getMemory.md +4 -6
- package/dist/docs/references/reference-agents-getModel.md +4 -6
- package/dist/docs/references/reference-agents-getTools.md +5 -7
- package/dist/docs/references/reference-agents-getVoice.md +4 -6
- package/dist/docs/references/reference-agents-listAgents.md +4 -6
- package/dist/docs/references/reference-agents-listScorers.md +4 -6
- package/dist/docs/references/reference-agents-listTools.md +4 -6
- package/dist/docs/references/reference-agents-listWorkflows.md +4 -6
- package/dist/docs/references/reference-agents-network.md +69 -23
- package/dist/docs/references/reference-ai-sdk-chat-route.md +7 -7
- package/dist/docs/references/reference-ai-sdk-network-route.md +3 -3
- package/dist/docs/references/reference-ai-sdk-to-ai-sdk-stream.md +9 -9
- package/dist/docs/references/reference-ai-sdk-with-mastra.md +12 -12
- package/dist/docs/references/reference-ai-sdk-workflow-route.md +3 -3
- package/dist/docs/references/reference-auth-auth0.md +6 -6
- package/dist/docs/references/reference-auth-clerk.md +5 -5
- package/dist/docs/references/reference-auth-firebase.md +7 -7
- package/dist/docs/references/reference-auth-jwt.md +1 -1
- package/dist/docs/references/reference-auth-supabase.md +4 -4
- package/dist/docs/references/reference-auth-workos.md +6 -6
- package/dist/docs/references/reference-core-addGateway.md +2 -2
- package/dist/docs/references/reference-core-getAgent.md +2 -2
- package/dist/docs/references/reference-core-getAgentById.md +2 -2
- package/dist/docs/references/reference-core-getDeployer.md +1 -1
- package/dist/docs/references/reference-core-getGateway.md +2 -2
- package/dist/docs/references/reference-core-getGatewayById.md +2 -2
- package/dist/docs/references/reference-core-getLogger.md +1 -1
- package/dist/docs/references/reference-core-getMCPServer.md +2 -2
- package/dist/docs/references/reference-core-getMCPServerById.md +3 -3
- package/dist/docs/references/reference-core-getMemory.md +2 -2
- package/dist/docs/references/reference-core-getScorer.md +2 -2
- package/dist/docs/references/reference-core-getScorerById.md +2 -2
- package/dist/docs/references/reference-core-getServer.md +1 -1
- package/dist/docs/references/reference-core-getStorage.md +1 -1
- package/dist/docs/references/reference-core-getStoredAgentById.md +18 -20
- package/dist/docs/references/reference-core-getTelemetry.md +1 -1
- package/dist/docs/references/reference-core-getVector.md +2 -2
- package/dist/docs/references/reference-core-getWorkflow.md +3 -3
- package/dist/docs/references/reference-core-listAgents.md +1 -1
- package/dist/docs/references/reference-core-listGateways.md +1 -1
- package/dist/docs/references/reference-core-listLogs.md +9 -11
- package/dist/docs/references/reference-core-listLogsByRunId.md +9 -9
- package/dist/docs/references/reference-core-listMCPServers.md +1 -1
- package/dist/docs/references/reference-core-listMemory.md +1 -1
- package/dist/docs/references/reference-core-listScorers.md +1 -1
- package/dist/docs/references/reference-core-listStoredAgents.md +9 -11
- package/dist/docs/references/reference-core-listVectors.md +1 -1
- package/dist/docs/references/reference-core-listWorkflows.md +2 -2
- package/dist/docs/references/reference-core-mastra-class.md +17 -17
- package/dist/docs/references/reference-core-mastra-model-gateway.md +15 -15
- package/dist/docs/references/reference-core-setLogger.md +2 -4
- package/dist/docs/references/reference-core-setStorage.md +1 -1
- package/dist/docs/references/reference-datasets-addItem.md +20 -4
- package/dist/docs/references/reference-datasets-addItems.md +8 -2
- package/dist/docs/references/reference-datasets-compareExperiments.md +15 -3
- package/dist/docs/references/reference-datasets-create.md +6 -6
- package/dist/docs/references/reference-datasets-dataset.md +1 -1
- package/dist/docs/references/reference-datasets-delete.md +2 -2
- package/dist/docs/references/reference-datasets-deleteExperiment.md +2 -2
- package/dist/docs/references/reference-datasets-deleteItem.md +2 -2
- package/dist/docs/references/reference-datasets-deleteItems.md +2 -2
- package/dist/docs/references/reference-datasets-get.md +2 -2
- package/dist/docs/references/reference-datasets-getDetails.md +9 -9
- package/dist/docs/references/reference-datasets-getExperiment.md +2 -2
- package/dist/docs/references/reference-datasets-getItem.md +3 -3
- package/dist/docs/references/reference-datasets-getItemHistory.md +22 -2
- package/dist/docs/references/reference-datasets-list.md +7 -3
- package/dist/docs/references/reference-datasets-listExperimentResults.md +34 -4
- package/dist/docs/references/reference-datasets-listExperiments.md +41 -3
- package/dist/docs/references/reference-datasets-listItems.md +18 -6
- package/dist/docs/references/reference-datasets-listVersions.md +23 -3
- package/dist/docs/references/reference-datasets-startExperiment.md +62 -12
- package/dist/docs/references/reference-datasets-startExperimentAsync.md +5 -1
- package/dist/docs/references/reference-datasets-update.md +6 -6
- package/dist/docs/references/reference-datasets-updateItem.md +5 -5
- package/dist/docs/references/reference-evals-answer-relevancy.md +11 -11
- package/dist/docs/references/reference-evals-answer-similarity.md +17 -19
- package/dist/docs/references/reference-evals-bias.md +10 -10
- package/dist/docs/references/reference-evals-completeness.md +3 -3
- package/dist/docs/references/reference-evals-content-similarity.md +6 -6
- package/dist/docs/references/reference-evals-context-precision.md +4 -4
- package/dist/docs/references/reference-evals-create-scorer.md +47 -49
- package/dist/docs/references/reference-evals-faithfulness.md +11 -11
- package/dist/docs/references/reference-evals-hallucination.md +17 -21
- package/dist/docs/references/reference-evals-keyword-coverage.md +4 -4
- package/dist/docs/references/reference-evals-mastra-scorer.md +14 -14
- package/dist/docs/references/reference-evals-run-evals.md +16 -16
- package/dist/docs/references/reference-evals-scorer-utils.md +3 -3
- package/dist/docs/references/reference-evals-textual-difference.md +3 -3
- package/dist/docs/references/reference-evals-tone-consistency.md +3 -3
- package/dist/docs/references/reference-evals-toxicity.md +8 -8
- package/dist/docs/references/reference-harness-harness-class.md +34 -42
- package/dist/docs/references/reference-logging-pino-logger.md +5 -5
- package/dist/docs/references/reference-memory-deleteMessages.md +2 -2
- package/dist/docs/references/reference-memory-memory-class.md +12 -14
- package/dist/docs/references/reference-memory-observational-memory.md +102 -94
- package/dist/docs/references/reference-observability-tracing-configuration.md +27 -10
- package/dist/docs/references/reference-observability-tracing-exporters-console-exporter.md +4 -7
- package/dist/docs/references/reference-processors-batch-parts-processor.md +8 -10
- package/dist/docs/references/reference-processors-language-detector.md +14 -16
- package/dist/docs/references/reference-processors-message-history-processor.md +7 -9
- package/dist/docs/references/reference-processors-moderation-processor.md +13 -15
- package/dist/docs/references/reference-processors-pii-detector.md +14 -16
- package/dist/docs/references/reference-processors-processor-interface.md +62 -62
- package/dist/docs/references/reference-processors-prompt-injection-detector.md +11 -13
- package/dist/docs/references/reference-processors-semantic-recall-processor.md +14 -16
- package/dist/docs/references/reference-processors-system-prompt-scrubber.md +12 -14
- package/dist/docs/references/reference-processors-token-limiter-processor.md +11 -13
- package/dist/docs/references/reference-processors-tool-call-filter.md +5 -7
- package/dist/docs/references/reference-processors-tool-search-processor.md +9 -11
- package/dist/docs/references/reference-processors-unicode-normalizer.md +8 -10
- package/dist/docs/references/reference-processors-working-memory-processor.md +14 -18
- package/dist/docs/references/reference-rag-database-config.md +11 -7
- package/dist/docs/references/reference-rag-embeddings.md +12 -12
- package/dist/docs/references/reference-server-mastra-server.md +10 -10
- package/dist/docs/references/reference-server-register-api-route.md +13 -13
- package/dist/docs/references/reference-storage-cloudflare-d1.md +5 -5
- package/dist/docs/references/reference-storage-composite.md +9 -9
- package/dist/docs/references/reference-storage-lance.md +3 -3
- package/dist/docs/references/reference-storage-libsql.md +2 -2
- package/dist/docs/references/reference-storage-mongodb.md +5 -5
- package/dist/docs/references/reference-storage-mssql.md +2 -2
- package/dist/docs/references/reference-storage-postgresql.md +25 -25
- package/dist/docs/references/reference-storage-upstash.md +3 -3
- package/dist/docs/references/reference-streaming-ChunkType.md +251 -59
- package/dist/docs/references/reference-streaming-agents-MastraModelOutput.md +86 -16
- package/dist/docs/references/reference-streaming-agents-streamLegacy.md +79 -39
- package/dist/docs/references/reference-streaming-workflows-resumeStream.md +18 -8
- package/dist/docs/references/reference-streaming-workflows-stream.md +21 -9
- package/dist/docs/references/reference-streaming-workflows-timeTravelStream.md +4 -4
- package/dist/docs/references/reference-tools-create-tool.md +25 -21
- package/dist/docs/references/reference-tools-graph-rag-tool.md +16 -18
- package/dist/docs/references/reference-tools-mcp-client.md +38 -27
- package/dist/docs/references/reference-tools-mcp-server.md +45 -45
- package/dist/docs/references/reference-tools-vector-query-tool.md +34 -22
- package/dist/docs/references/reference-vectors-libsql.md +31 -31
- package/dist/docs/references/reference-vectors-mongodb.md +32 -32
- package/dist/docs/references/reference-vectors-pg.md +60 -44
- package/dist/docs/references/reference-vectors-upstash.md +25 -25
- package/dist/docs/references/reference-voice-composite-voice.md +10 -10
- package/dist/docs/references/reference-voice-mastra-voice.md +20 -20
- package/dist/docs/references/reference-voice-voice.addInstructions.md +1 -1
- package/dist/docs/references/reference-voice-voice.addTools.md +1 -1
- package/dist/docs/references/reference-voice-voice.connect.md +3 -3
- package/dist/docs/references/reference-voice-voice.events.md +11 -11
- package/dist/docs/references/reference-voice-voice.listen.md +9 -9
- package/dist/docs/references/reference-voice-voice.on.md +2 -2
- package/dist/docs/references/reference-voice-voice.speak.md +11 -11
- package/dist/docs/references/reference-workflows-run-methods-cancel.md +2 -2
- package/dist/docs/references/reference-workflows-run-methods-restart.md +17 -5
- package/dist/docs/references/reference-workflows-run-methods-resume.md +23 -9
- package/dist/docs/references/reference-workflows-run-methods-start.md +22 -8
- package/dist/docs/references/reference-workflows-run-methods-startAsync.md +12 -6
- package/dist/docs/references/reference-workflows-run-methods-timeTravel.md +29 -13
- package/dist/docs/references/reference-workflows-run.md +12 -12
- package/dist/docs/references/reference-workflows-step.md +24 -26
- package/dist/docs/references/reference-workflows-workflow-methods-branch.md +2 -2
- package/dist/docs/references/reference-workflows-workflow-methods-commit.md +1 -1
- package/dist/docs/references/reference-workflows-workflow-methods-create-run.md +4 -4
- package/dist/docs/references/reference-workflows-workflow-methods-dountil.md +3 -3
- package/dist/docs/references/reference-workflows-workflow-methods-dowhile.md +3 -3
- package/dist/docs/references/reference-workflows-workflow-methods-foreach.md +9 -9
- package/dist/docs/references/reference-workflows-workflow-methods-map.md +2 -2
- package/dist/docs/references/reference-workflows-workflow-methods-parallel.md +2 -2
- package/dist/docs/references/reference-workflows-workflow-methods-sleep.md +2 -2
- package/dist/docs/references/reference-workflows-workflow-methods-sleepUntil.md +2 -2
- package/dist/docs/references/reference-workflows-workflow-methods-then.md +2 -2
- package/dist/docs/references/reference-workflows-workflow.md +40 -50
- package/dist/docs/references/reference-workspace-filesystem.md +22 -22
- package/dist/docs/references/reference-workspace-local-filesystem.md +35 -35
- package/dist/docs/references/reference-workspace-local-sandbox.md +26 -26
- package/dist/docs/references/reference-workspace-sandbox.md +8 -8
- package/dist/docs/references/reference-workspace-workspace-class.md +30 -34
- package/dist/editor/types.d.ts +1 -0
- package/dist/editor/types.d.ts.map +1 -1
- package/dist/evals/index.cjs +20 -20
- package/dist/evals/index.js +3 -3
- package/dist/evals/scoreTraces/index.cjs +5 -5
- package/dist/evals/scoreTraces/index.js +2 -2
- package/dist/harness/harness.d.ts.map +1 -1
- package/dist/harness/index.cjs +25 -21
- package/dist/harness/index.cjs.map +1 -1
- package/dist/harness/index.js +15 -11
- package/dist/harness/index.js.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 +12 -12
- package/dist/llm/index.js +3 -3
- 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-types.generated.d.ts +5 -1
- package/dist/loop/index.cjs +14 -14
- package/dist/loop/index.js +1 -1
- package/dist/loop/workflows/agentic-loop/index.d.ts.map +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.js +1 -1
- package/dist/memory/index.cjs +14 -14
- package/dist/memory/index.js +1 -1
- package/dist/models-dev-2FJK72J2.cjs +12 -0
- package/dist/{models-dev-UVWCKPA2.cjs.map → models-dev-2FJK72J2.cjs.map} +1 -1
- package/dist/models-dev-CMQG6EMO.js +3 -0
- package/dist/{models-dev-W3LXZTEB.js.map → models-dev-CMQG6EMO.js.map} +1 -1
- package/dist/processor-provider/index.cjs +10 -10
- package/dist/processor-provider/index.js +1 -1
- package/dist/processors/index.cjs +42 -42
- package/dist/processors/index.js +1 -1
- package/dist/processors/processors/skills.d.ts +9 -42
- package/dist/processors/processors/skills.d.ts.map +1 -1
- package/dist/provider-registry-EHOAWHFE.cjs +40 -0
- package/dist/{provider-registry-4HLP2JRR.cjs.map → provider-registry-EHOAWHFE.cjs.map} +1 -1
- package/dist/provider-registry-LVP6T63V.js +3 -0
- package/dist/{provider-registry-K3DWQSMH.js.map → provider-registry-LVP6T63V.js.map} +1 -1
- package/dist/provider-registry.json +12 -4
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/request-context/index.cjs +4 -4
- package/dist/request-context/index.d.ts.map +1 -1
- package/dist/request-context/index.js +1 -1
- package/dist/storage/base.d.ts +34 -1
- package/dist/storage/base.d.ts.map +1 -1
- package/dist/storage/constants.cjs +56 -56
- package/dist/storage/constants.js +1 -1
- package/dist/storage/domains/agents/filesystem.d.ts +28 -0
- package/dist/storage/domains/agents/filesystem.d.ts.map +1 -0
- package/dist/storage/domains/agents/index.d.ts +1 -0
- package/dist/storage/domains/agents/index.d.ts.map +1 -1
- package/dist/storage/domains/experiments/inmemory.d.ts.map +1 -1
- package/dist/storage/domains/mcp-clients/filesystem.d.ts +28 -0
- package/dist/storage/domains/mcp-clients/filesystem.d.ts.map +1 -0
- package/dist/storage/domains/mcp-clients/index.d.ts +1 -0
- package/dist/storage/domains/mcp-clients/index.d.ts.map +1 -1
- package/dist/storage/domains/mcp-servers/filesystem.d.ts +28 -0
- package/dist/storage/domains/mcp-servers/filesystem.d.ts.map +1 -0
- package/dist/storage/domains/mcp-servers/index.d.ts +1 -0
- package/dist/storage/domains/mcp-servers/index.d.ts.map +1 -1
- package/dist/storage/domains/prompt-blocks/filesystem.d.ts +28 -0
- package/dist/storage/domains/prompt-blocks/filesystem.d.ts.map +1 -0
- package/dist/storage/domains/prompt-blocks/index.d.ts +1 -0
- package/dist/storage/domains/prompt-blocks/index.d.ts.map +1 -1
- package/dist/storage/domains/scorer-definitions/filesystem.d.ts +28 -0
- package/dist/storage/domains/scorer-definitions/filesystem.d.ts.map +1 -0
- package/dist/storage/domains/scorer-definitions/index.d.ts +1 -0
- package/dist/storage/domains/scorer-definitions/index.d.ts.map +1 -1
- package/dist/storage/domains/skills/filesystem.d.ts +28 -0
- package/dist/storage/domains/skills/filesystem.d.ts.map +1 -0
- package/dist/storage/domains/skills/index.d.ts +1 -0
- package/dist/storage/domains/skills/index.d.ts.map +1 -1
- package/dist/storage/domains/workspaces/filesystem.d.ts +28 -0
- package/dist/storage/domains/workspaces/filesystem.d.ts.map +1 -0
- package/dist/storage/domains/workspaces/index.d.ts +1 -0
- package/dist/storage/domains/workspaces/index.d.ts.map +1 -1
- package/dist/storage/filesystem-db.d.ts +82 -0
- package/dist/storage/filesystem-db.d.ts.map +1 -0
- package/dist/storage/filesystem-versioned.d.ts +148 -0
- package/dist/storage/filesystem-versioned.d.ts.map +1 -0
- package/dist/storage/filesystem.d.ts +39 -0
- package/dist/storage/filesystem.d.ts.map +1 -0
- package/dist/storage/git-history.d.ts +68 -0
- package/dist/storage/git-history.d.ts.map +1 -0
- package/dist/storage/index.cjs +208 -160
- package/dist/storage/index.d.ts +4 -0
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +2 -2
- package/dist/storage/types.d.ts +1 -0
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/stream/RunOutput.d.ts +1 -1
- package/dist/stream/aisdk/v5/output-helpers.d.ts +6 -6
- package/dist/stream/base/output.d.ts +3 -3
- package/dist/stream/base/schema.d.ts +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 +6 -6
- 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 +6 -0
- package/dist/tools/tool.d.ts.map +1 -1
- package/dist/tools/types.d.ts +27 -0
- package/dist/tools/types.d.ts.map +1 -1
- package/dist/utils.cjs +23 -23
- package/dist/utils.js +1 -1
- package/dist/vector/index.cjs +9 -9
- package/dist/vector/index.js +2 -2
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +25 -25
- package/dist/workflows/index.js +1 -1
- package/dist/workspace/index.cjs +70 -66
- package/dist/workspace/index.d.ts +1 -0
- package/dist/workspace/index.d.ts.map +1 -1
- package/dist/workspace/index.js +1 -1
- package/dist/workspace/sandbox/execa.d.ts +9 -0
- package/dist/workspace/sandbox/execa.d.ts.map +1 -0
- package/dist/workspace/sandbox/local-process-manager.d.ts.map +1 -1
- package/dist/workspace/skills/index.d.ts +1 -0
- package/dist/workspace/skills/index.d.ts.map +1 -1
- package/dist/workspace/skills/tools.d.ts +36 -0
- package/dist/workspace/skills/tools.d.ts.map +1 -0
- package/dist/workspace/tools/execute-command.d.ts.map +1 -1
- package/dist/workspace/tools/output-helpers.d.ts +4 -3
- package/dist/workspace/tools/output-helpers.d.ts.map +1 -1
- package/package.json +9 -9
- package/src/llm/model/provider-types.generated.d.ts +5 -1
- package/dist/chunk-3ZF7IC6Q.cjs.map +0 -1
- package/dist/chunk-4BXXAZ75.js.map +0 -1
- package/dist/chunk-4P35AVPE.cjs.map +0 -1
- package/dist/chunk-BFV3GSGS.js.map +0 -1
- package/dist/chunk-CCLV5CAA.js.map +0 -1
- package/dist/chunk-D4M6E4OQ.cjs.map +0 -1
- package/dist/chunk-D6HO5QAM.cjs.map +0 -1
- package/dist/chunk-G5R2755Q.cjs.map +0 -1
- package/dist/chunk-GJTLWOKJ.js.map +0 -1
- package/dist/chunk-H5S4PS44.cjs.map +0 -1
- package/dist/chunk-IOY7Y5GV.js.map +0 -1
- package/dist/chunk-JIRB5LX4.js.map +0 -1
- package/dist/chunk-MVYP55NA.js.map +0 -1
- package/dist/chunk-PKORY4ZZ.cjs.map +0 -1
- package/dist/chunk-QNXY3J6B.cjs.map +0 -1
- package/dist/chunk-SEKQJ447.js.map +0 -1
- package/dist/chunk-VDKWYUGC.cjs.map +0 -1
- package/dist/chunk-VWAK25TU.js.map +0 -1
- package/dist/chunk-WYPSC6CO.js.map +0 -1
- package/dist/chunk-YIJZBU54.cjs.map +0 -1
- package/dist/chunk-ZBESCKPX.cjs.map +0 -1
- package/dist/chunk-ZVWVQ6MG.js.map +0 -1
- package/dist/models-dev-UVWCKPA2.cjs +0 -12
- package/dist/models-dev-W3LXZTEB.js +0 -3
- package/dist/provider-registry-4HLP2JRR.cjs +0 -40
- package/dist/provider-registry-K3DWQSMH.js +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,468 @@
|
|
|
1
1
|
# @mastra/core
|
|
2
2
|
|
|
3
|
+
## 1.10.0-alpha.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Added `editor` shorthand to `MastraCompositeStore` for routing all editor-related domains (agents, prompt blocks, scorer definitions, MCP clients, MCP servers, workspaces, skills) to a single storage backend. Priority: `domains` > `editor` > `default`. ([#13727](https://github.com/mastra-ai/mastra/pull/13727))
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
import { MastraCompositeStore } from '@mastra/core/storage';
|
|
11
|
+
|
|
12
|
+
new MastraCompositeStore({
|
|
13
|
+
id: 'composite',
|
|
14
|
+
default: postgresStore,
|
|
15
|
+
editor: filesystemStore,
|
|
16
|
+
});
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Improved code-agent editing so editor overrides can be applied and reverted without losing original dynamic values for fields like instructions, model, and tools.
|
|
20
|
+
|
|
21
|
+
- Added `FilesystemStore`, a file-based storage adapter for editor domains. Stores agent configurations, prompt blocks, scorer definitions, MCP clients, MCP servers, workspaces, and skills as JSON files in a local directory (default: `.mastra-storage/`). Only published snapshots are written to disk — version history is kept in memory. Use with `MastraCompositeStore`'s `editor` shorthand to enable Git-friendly editor configurations. ([#13727](https://github.com/mastra-ai/mastra/pull/13727))
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { FilesystemStore, MastraCompositeStore } from '@mastra/core/storage';
|
|
25
|
+
import { PostgresStore } from '@mastra/pg';
|
|
26
|
+
|
|
27
|
+
export const mastra = new Mastra({
|
|
28
|
+
storage: new MastraCompositeStore({
|
|
29
|
+
id: 'composite',
|
|
30
|
+
default: new PostgresStore({ id: 'pg', connectionString: process.env.DATABASE_URL }),
|
|
31
|
+
editor: new FilesystemStore({ dir: '.mastra-storage' }),
|
|
32
|
+
}),
|
|
33
|
+
});
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Added `applyStoredOverrides` to the editor agent namespace. When a stored configuration exists for a code-defined agent, the editor merges the stored **instructions** and **tools** on top of the code agent's values at runtime. Model, memory, workspace, and other code-defined fields are never overridden — they may contain SDK instances or dynamic functions that cannot be safely serialized. Original code-defined values are preserved via a WeakMap and restored if the stored override is deleted.
|
|
37
|
+
|
|
38
|
+
- Add `inputExamples` support on tool definitions to show AI models what valid tool inputs look like. Models that support this (e.g., Anthropic's `input_examples`) will receive the examples alongside the tool schema, improving tool call accuracy. ([#12932](https://github.com/mastra-ai/mastra/pull/12932))
|
|
39
|
+
- Added optional `inputExamples` field to `ToolAction`, `CoreTool`, and `Tool` class
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
const weatherTool = createTool({
|
|
43
|
+
id: 'get-weather',
|
|
44
|
+
description: 'Get weather for a location',
|
|
45
|
+
inputSchema: z.object({
|
|
46
|
+
city: z.string(),
|
|
47
|
+
units: z.enum(['celsius', 'fahrenheit']),
|
|
48
|
+
}),
|
|
49
|
+
inputExamples: [
|
|
50
|
+
{ input: { city: 'New York', units: 'fahrenheit' } },
|
|
51
|
+
{ input: { city: 'Tokyo', units: 'celsius' } },
|
|
52
|
+
],
|
|
53
|
+
execute: async ({ city, units }) => {
|
|
54
|
+
return await fetchWeather(city, units);
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Patch Changes
|
|
60
|
+
|
|
61
|
+
- dependencies updates: ([#13209](https://github.com/mastra-ai/mastra/pull/13209))
|
|
62
|
+
- Updated dependency [`p-map@^7.0.4` ↗︎](https://www.npmjs.com/package/p-map/v/7.0.4) (from `^7.0.3`, in `dependencies`)
|
|
63
|
+
|
|
64
|
+
- dependencies updates: ([#13210](https://github.com/mastra-ai/mastra/pull/13210))
|
|
65
|
+
- Updated dependency [`p-retry@^7.1.1` ↗︎](https://www.npmjs.com/package/p-retry/v/7.1.1) (from `^7.1.0`, in `dependencies`)
|
|
66
|
+
|
|
67
|
+
- Update provider registry and model documentation with latest models and providers ([`33e2fd5`](https://github.com/mastra-ai/mastra/commit/33e2fd5088f83666df17401e2da68c943dbc0448))
|
|
68
|
+
|
|
69
|
+
- Fixed execute_command tool timeout parameter to accept seconds instead of milliseconds, preventing agents from accidentally setting extremely short timeouts ([#13799](https://github.com/mastra-ai/mastra/pull/13799))
|
|
70
|
+
|
|
71
|
+
- **Skill tools are now stable across conversation turns and prompt-cache friendly.** ([#13744](https://github.com/mastra-ai/mastra/pull/13744))
|
|
72
|
+
- Renamed `skill-activate` → `skill` — returns full skill instructions directly in the tool result
|
|
73
|
+
- Consolidated `skill-read-reference`, `skill-read-script`, `skill-read-asset` → `skill_read`
|
|
74
|
+
- Renamed `skill-search` → `skill_search`
|
|
75
|
+
- `<available_skills>` in the system message is now sorted deterministically
|
|
76
|
+
|
|
77
|
+
- Fixed Cloudflare Workers build failures when using `@mastra/core`. Local process execution now loads its runtime dependency lazily, preventing incompatible Node-only modules from being bundled during worker builds. ([#13813](https://github.com/mastra-ai/mastra/pull/13813))
|
|
78
|
+
|
|
79
|
+
- Fix `mimeType` → `mediaType` typo in `sendMessage` file part construction. This caused file attachments to be routed through the V4 adapter instead of V5, preventing them from being correctly processed by AI SDK v5 providers. ([#13833](https://github.com/mastra-ai/mastra/pull/13833))
|
|
80
|
+
|
|
81
|
+
- Fixed onIterationComplete feedback being discarded when it returns `{ continue: false }` — feedback is now added to the conversation and the model gets one final turn to produce a text response before the loop stops. ([#13759](https://github.com/mastra-ai/mastra/pull/13759))
|
|
82
|
+
|
|
83
|
+
- Fixed `generate()` and `resumeGenerate()` to always throw provider stream errors. Previously, certain provider errors were silently swallowed, returning false "successful" empty responses. Now errors are always surfaced to the caller, making retry logic reliable when providers fail transiently. ([#13802](https://github.com/mastra-ai/mastra/pull/13802))
|
|
84
|
+
|
|
85
|
+
- Remove the default maxSteps limit so stopWhen can control sub-agent execution ([#13764](https://github.com/mastra-ai/mastra/pull/13764))
|
|
86
|
+
|
|
87
|
+
- Fix suspendedToolRunId required error when it shouldn't be required ([#13722](https://github.com/mastra-ai/mastra/pull/13722))
|
|
88
|
+
|
|
89
|
+
- Fixed subagent tool defaulting maxSteps to 50 when no stop condition is configured, preventing unbounded execution loops. When stopWhen is set, maxSteps is left to the caller. ([#13777](https://github.com/mastra-ai/mastra/pull/13777))
|
|
90
|
+
|
|
91
|
+
- Fixed prompt failures by removing assistant messages that only contain sources before model calls. ([#13790](https://github.com/mastra-ai/mastra/pull/13790))
|
|
92
|
+
|
|
93
|
+
- - Fixed experiment pending count showing negative values when experiments are triggered from the Studio ([#13831](https://github.com/mastra-ai/mastra/pull/13831))
|
|
94
|
+
- Fixed scorer prompt metadata (analysis context, generated prompts) being lost when saving experiment scores
|
|
95
|
+
|
|
96
|
+
- Fixed RequestContext constructor crashing when constructed from a deserialized plain object. ([#13856](https://github.com/mastra-ai/mastra/pull/13856))
|
|
97
|
+
|
|
98
|
+
- Fixed LLM errors (generateText, generateObject, streamText, streamObject) being swallowed by the AI SDK's default handler instead of being routed through the Mastra logger. Errors now appear with structured context (runId, modelId, provider, etc.) in your logger, and streaming errors are captured via onError callbacks. ([#13857](https://github.com/mastra-ai/mastra/pull/13857))
|
|
99
|
+
|
|
100
|
+
- Fixed workspace tool output truncation so it no longer gets prematurely cut off when short lines precede a very long line (e.g. minified JSON). Output now uses the full token budget instead of stopping at line boundaries, resulting in more complete tool results. ([#13828](https://github.com/mastra-ai/mastra/pull/13828))
|
|
101
|
+
|
|
102
|
+
- Fixed subagent tool to default maxSteps to 50 when no stopWhen condition is configured, preventing unbounded agent loops. When stopWhen is set, maxSteps remains unset so the stop condition controls termination. ([#13777](https://github.com/mastra-ai/mastra/pull/13777))
|
|
103
|
+
|
|
104
|
+
## 1.9.0
|
|
105
|
+
|
|
106
|
+
### Minor Changes
|
|
107
|
+
|
|
108
|
+
- Added `onStepFinish` and `onError` callbacks to `NetworkOptions`, allowing per-LLM-step progress monitoring and custom error handling during network execution. Closes #13362. ([#13370](https://github.com/mastra-ai/mastra/pull/13370))
|
|
109
|
+
|
|
110
|
+
**Before:** No way to observe per-step progress or handle errors during network execution.
|
|
111
|
+
|
|
112
|
+
```typescript
|
|
113
|
+
const stream = await agent.network('Research AI trends', {
|
|
114
|
+
memory: { thread: 'my-thread', resource: 'my-resource' },
|
|
115
|
+
});
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
**After:** `onStepFinish` and `onError` are now available in `NetworkOptions`.
|
|
119
|
+
|
|
120
|
+
```typescript
|
|
121
|
+
const stream = await agent.network('Research AI trends', {
|
|
122
|
+
onStepFinish: event => {
|
|
123
|
+
console.log('Step completed:', event.finishReason, event.usage);
|
|
124
|
+
},
|
|
125
|
+
onError: ({ error }) => {
|
|
126
|
+
console.error('Network error:', error);
|
|
127
|
+
},
|
|
128
|
+
memory: { thread: 'my-thread', resource: 'my-resource' },
|
|
129
|
+
});
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
- Add workflow execution path tracking and optimize execution logs ([#11755](https://github.com/mastra-ai/mastra/pull/11755))
|
|
133
|
+
|
|
134
|
+
Workflow results now include a `stepExecutionPath` array showing the IDs of each step that executed during a workflow run. You can use this to understand exactly which path your workflow took.
|
|
135
|
+
|
|
136
|
+
```ts
|
|
137
|
+
// Before: no execution path in results
|
|
138
|
+
const result = await workflow.execute({ triggerData });
|
|
139
|
+
// result.stepExecutionPath → undefined
|
|
140
|
+
|
|
141
|
+
// After: stepExecutionPath is available in workflow results
|
|
142
|
+
const result = await workflow.execute({ triggerData });
|
|
143
|
+
console.log(result.stepExecutionPath);
|
|
144
|
+
// → ['step1', 'step2', 'step4'] — the actual steps that ran
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
`stepExecutionPath` is available in:
|
|
148
|
+
- **Workflow results** (`WorkflowResult.stepExecutionPath`) — see which steps ran after execution completes
|
|
149
|
+
- **Execution context** (`ExecutionContext.stepExecutionPath`) — access the path mid-execution inside your steps
|
|
150
|
+
- **Resume and restart operations** — execution path persists across suspend/resume and restart cycles
|
|
151
|
+
|
|
152
|
+
Workflow execution logs are now more compact and easier to read. Step outputs are no longer duplicated as the next step's input, reducing the size of execution results while maintaining full visibility.
|
|
153
|
+
|
|
154
|
+
**Key improvements:**
|
|
155
|
+
- Track which steps executed in your workflows with `stepExecutionPath`
|
|
156
|
+
- Smaller, more readable execution logs with automatic duplicate payload removal
|
|
157
|
+
- Execution path preserved when resuming or restarting workflows
|
|
158
|
+
|
|
159
|
+
This is particularly beneficial for AI agents and LLM-based workflows where reducing context size improves performance and cost efficiency.
|
|
160
|
+
|
|
161
|
+
Related: `#8951`
|
|
162
|
+
|
|
163
|
+
- Added authentication interfaces and Enterprise Edition RBAC support. ([#13163](https://github.com/mastra-ai/mastra/pull/13163))
|
|
164
|
+
|
|
165
|
+
**New `@mastra/core/auth` export** with pluggable interfaces for building auth providers:
|
|
166
|
+
- `IUserProvider` — user lookup and management
|
|
167
|
+
- `ISessionProvider` — session creation, validation, and cookie handling
|
|
168
|
+
- `ISSOProvider` — SSO login and callback flows
|
|
169
|
+
- `ICredentialsProvider` — username/password authentication
|
|
170
|
+
|
|
171
|
+
**Default implementations** included out of the box:
|
|
172
|
+
- Cookie-based session provider with configurable TTL and secure defaults
|
|
173
|
+
- In-memory session provider for development and testing
|
|
174
|
+
|
|
175
|
+
**Enterprise Edition (`@mastra/core/auth/ee`)** adds RBAC, ACL, and license validation:
|
|
176
|
+
|
|
177
|
+
```ts
|
|
178
|
+
import { buildCapabilities } from '@mastra/core/auth/ee';
|
|
179
|
+
|
|
180
|
+
const capabilities = buildCapabilities({
|
|
181
|
+
rbac: myRBACProvider,
|
|
182
|
+
acl: myACLProvider,
|
|
183
|
+
});
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
Built-in role definitions (owner, admin, editor, viewer) and a static RBAC provider are included for quick setup. Enterprise features require a valid license key via the `MASTRA_EE_LICENSE` environment variable.
|
|
187
|
+
|
|
188
|
+
- Workspace sandbox tool results (`execute_command`, `kill_process`, `get_process_output`) sent to the model now strip ANSI color codes via `toModelOutput`, while streamed output to the user keeps colors. This reduces token usage and improves model readability. ([#13440](https://github.com/mastra-ai/mastra/pull/13440))
|
|
189
|
+
|
|
190
|
+
Workspace `execute_command` tool now extracts trailing `| tail -N` pipes from commands so output streams live to the user, while the final result sent to the model is still truncated to the last N lines.
|
|
191
|
+
|
|
192
|
+
Workspace tools that return potentially large output now enforce a token-based output limit (~3k tokens by default) using tiktoken for accurate counting. The limit is configurable per-tool via `maxOutputTokens` in `WorkspaceToolConfig`. Each tool uses a truncation strategy suited to its output:
|
|
193
|
+
- `read_file`, `grep`, `list_files` — truncate from the end (keep imports, first matches, top-level tree)
|
|
194
|
+
- `execute_command`, `get_process_output`, `kill_process` — head+tail sandwich (keep early output + final status)
|
|
195
|
+
|
|
196
|
+
```ts
|
|
197
|
+
const workspace = new Workspace({
|
|
198
|
+
tools: {
|
|
199
|
+
mastra_workspace_execute_command: {
|
|
200
|
+
maxOutputTokens: 5000, // override default 3k
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
});
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
- Workspace tools (list_files, grep) now automatically respect .gitignore, filtering out directories like node_modules and dist from results. Explicitly targeting an ignored path still works. Also lowered the default tree depth from 3 to 2 to reduce token usage. ([#13724](https://github.com/mastra-ai/mastra/pull/13724))
|
|
207
|
+
|
|
208
|
+
- Added `maxSteps` and `stopWhen` support to `HarnessSubagent`. ([#13653](https://github.com/mastra-ai/mastra/pull/13653))
|
|
209
|
+
|
|
210
|
+
You can now define `maxSteps` and `stopWhen` on a harness subagent so spawned subagents can use custom loop limits instead of relying only on the default `maxSteps: 50` fallback.
|
|
211
|
+
|
|
212
|
+
```ts
|
|
213
|
+
const harness = new Harness({
|
|
214
|
+
id: 'dev-harness',
|
|
215
|
+
modes: [{ id: 'build', default: true, agent: buildAgent }],
|
|
216
|
+
subagents: [
|
|
217
|
+
{
|
|
218
|
+
id: 'explore',
|
|
219
|
+
name: 'Explore',
|
|
220
|
+
description: 'Inspect the codebase',
|
|
221
|
+
instructions: 'Investigate and summarize findings.',
|
|
222
|
+
defaultModelId: 'openai/gpt-4o',
|
|
223
|
+
maxSteps: 7,
|
|
224
|
+
stopWhen: ({ steps }) => steps.length >= 3,
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
});
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
- Added OpenAI WebSocket transport for streaming responses with auto-close and manual transport access ([#13531](https://github.com/mastra-ai/mastra/pull/13531))
|
|
231
|
+
|
|
232
|
+
- Added `name` property to `WorkspaceToolConfig` for remapping workspace tool names. Tools can now be exposed under custom names to the LLM while keeping the original constant as the config key. ([#13687](https://github.com/mastra-ai/mastra/pull/13687))
|
|
233
|
+
|
|
234
|
+
```typescript
|
|
235
|
+
const workspace = new Workspace({
|
|
236
|
+
filesystem: new LocalFilesystem({ basePath: './project' }),
|
|
237
|
+
tools: {
|
|
238
|
+
mastra_workspace_read_file: { name: 'view' },
|
|
239
|
+
mastra_workspace_grep: { name: 'search_content' },
|
|
240
|
+
mastra_workspace_edit_file: { name: 'string_replace_lsp' },
|
|
241
|
+
},
|
|
242
|
+
});
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
Also removed hardcoded tool-name cross-references from edit-file and ast-edit tool descriptions, since tools can be renamed or disabled.
|
|
246
|
+
|
|
247
|
+
- Adds requestContext passthrough to Harness runtime APIs. ([#13650](https://github.com/mastra-ai/mastra/pull/13650))
|
|
248
|
+
|
|
249
|
+
**Added**
|
|
250
|
+
You can now pass `requestContext` to Harness runtime methods so tools and subagents receive request-scoped values.
|
|
251
|
+
|
|
252
|
+
- Added `binaryOverrides`, `searchPaths`, and `packageRunner` options to `LSPConfig` to support flexible language server binary resolution. ([#13677](https://github.com/mastra-ai/mastra/pull/13677))
|
|
253
|
+
|
|
254
|
+
Previously, workspace LSP diagnostics only worked when language server binaries were installed in the project's `node_modules/.bin/`. There was no way to use globally installed binaries or point to a custom install.
|
|
255
|
+
|
|
256
|
+
**New `LSPConfig` fields:**
|
|
257
|
+
- `binaryOverrides`: Override the binary command for a specific server, bypassing the default lookup. Useful when the binary is installed in a non-standard location.
|
|
258
|
+
- `searchPaths`: Additional directories to search when resolving Node.js modules (e.g. `typescript/lib/tsserver.js`). Each entry should be a directory whose `node_modules` contains the required packages.
|
|
259
|
+
- `packageRunner`: Package runner to use as a last-resort fallback when no binary is found (e.g. `'npx --yes'`, `'pnpm dlx'`, `'bunx'`). Off by default — package runners can hang in monorepos with workspace links.
|
|
260
|
+
|
|
261
|
+
Binary resolution order per server: explicit `binaryOverrides` override → project `node_modules/.bin/` → `process.cwd()` `node_modules/.bin/` → `searchPaths` `node_modules/.bin/` → global PATH → `packageRunner` fallback.
|
|
262
|
+
|
|
263
|
+
```ts
|
|
264
|
+
const workspace = new Workspace({
|
|
265
|
+
lsp: {
|
|
266
|
+
// Point to a globally installed binary
|
|
267
|
+
binaryOverrides: {
|
|
268
|
+
typescript: '/usr/local/bin/typescript-language-server --stdio',
|
|
269
|
+
},
|
|
270
|
+
// Resolve typescript/lib/tsserver.js from a tool's own node_modules
|
|
271
|
+
searchPaths: ['/path/to/my-tool'],
|
|
272
|
+
// Use a package runner as last resort (off by default)
|
|
273
|
+
packageRunner: 'npx --yes',
|
|
274
|
+
},
|
|
275
|
+
});
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
Also exported `buildServerDefs(config?)` for building config-aware server definitions, and `LSPConfig` / `LSPServerDef` types from `@mastra/core/workspace`.
|
|
279
|
+
|
|
280
|
+
- Added a unified observability type system with interfaces for structured logging, metrics (counters, gauges, histograms), scores, and feedback alongside the existing tracing infrastructure. ([#13058](https://github.com/mastra-ai/mastra/pull/13058))
|
|
281
|
+
|
|
282
|
+
**Why?** Previously, only tracing flowed through execution contexts. Logging was ad-hoc and metrics did not exist. This change establishes the type system and context plumbing so that when concrete implementations land, logging and metrics will flow through execute callbacks automatically — no migration needed.
|
|
283
|
+
|
|
284
|
+
**What changed:**
|
|
285
|
+
- New `ObservabilityContext` interface combining tracing, logging, and metrics contexts
|
|
286
|
+
- New type definitions for `LoggerContext`, `MetricsContext`, `ScoreInput`, `FeedbackInput`, and `ObservabilityEventBus`
|
|
287
|
+
- `createObservabilityContext()` factory and `resolveObservabilityContext()` resolver with no-op defaults for graceful degradation
|
|
288
|
+
- Future logging and metrics signals will propagate automatically through execution contexts — no migration needed
|
|
289
|
+
- Added `loggerVNext` and `metrics` getters to the `Mastra` class
|
|
290
|
+
|
|
291
|
+
- Added `setServer()` public method to the Mastra class, enabling post-construction configuration of server settings. This allows platform tooling to inject server defaults (e.g. auth) into user-created Mastra instances at deploy time. ([#13729](https://github.com/mastra-ai/mastra/pull/13729))
|
|
292
|
+
|
|
293
|
+
```typescript
|
|
294
|
+
const mastra = new Mastra({ agents: { myAgent } });
|
|
295
|
+
|
|
296
|
+
// Platform tooling can inject server config after construction
|
|
297
|
+
mastra.setServer({ ...mastra.getServer(), auth: new MastraAuthWorkos() });
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
- **Added** local symlink mounts in `LocalSandbox` so sandboxed commands can access locally-mounted filesystem paths. ([#13474](https://github.com/mastra-ai/mastra/pull/13474))
|
|
301
|
+
**Improved** mounted paths so commands resolve consistently in local sandboxes.
|
|
302
|
+
**Improved** workspace instructions so developers can quickly find mounted data paths.
|
|
303
|
+
|
|
304
|
+
**Why:** Local sandboxes can now run commands against locally-mounted data without manual path workarounds.
|
|
305
|
+
|
|
306
|
+
**Usage example:**
|
|
307
|
+
|
|
308
|
+
```typescript
|
|
309
|
+
const workspace = new Workspace({
|
|
310
|
+
mounts: {
|
|
311
|
+
'/data': new LocalFilesystem({ basePath: '/path/to/data' }),
|
|
312
|
+
},
|
|
313
|
+
sandbox: new LocalSandbox({ workingDirectory: './workspace' }),
|
|
314
|
+
});
|
|
315
|
+
|
|
316
|
+
await workspace.init();
|
|
317
|
+
// Sandboxed commands can access the mount path via symlink
|
|
318
|
+
await workspace.sandbox.executeCommand('ls data');
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
- Abort signal and background process callbacks ([#13597](https://github.com/mastra-ai/mastra/pull/13597))
|
|
322
|
+
- Sandbox commands and spawned processes can now be cancelled via `abortSignal` in command options
|
|
323
|
+
- Background processes spawned via `execute_command` now support `onStdout`, `onStderr`, and `onExit` callbacks for streaming output and exit notifications
|
|
324
|
+
- New `backgroundProcesses` config in workspace tool options for wiring up background process callbacks
|
|
325
|
+
|
|
326
|
+
### Patch Changes
|
|
327
|
+
|
|
328
|
+
- Added `supportsConcurrentUpdates()` method to `WorkflowsStorage` base class and abstract `updateWorkflowResults`/`updateWorkflowState` methods for atomic workflow state updates. The evented workflow engine now checks `supportsConcurrentUpdates()` and throws a clear error if the storage backend does not support concurrent updates. ([#12575](https://github.com/mastra-ai/mastra/pull/12575))
|
|
329
|
+
|
|
330
|
+
- Update provider registry and model documentation with latest models and providers ([`edee4b3`](https://github.com/mastra-ai/mastra/commit/edee4b37dff0af515fc7cc0e8d71ee39e6a762f0))
|
|
331
|
+
|
|
332
|
+
- Fixed sandbox command execution crashing the parent process on some Node.js versions by explicitly setting stdio to pipe for detached child processes. ([#13697](https://github.com/mastra-ai/mastra/pull/13697))
|
|
333
|
+
|
|
334
|
+
- Fixed an issue where generating a response in an empty thread (system-only messages) would throw an error. Providers that support system-only prompts like Anthropic and OpenAI now work as expected. A warning is logged for providers that require at least one user message (e.g. Gemini). Fixes #13045. ([#13164](https://github.com/mastra-ai/mastra/pull/13164))
|
|
335
|
+
|
|
336
|
+
- Sanitize invalid tool names in agent history so Bedrock retries continue instead of failing request validation. ([#13633](https://github.com/mastra-ai/mastra/pull/13633))
|
|
337
|
+
|
|
338
|
+
- Fixed path matching for auto-indexing and skills discovery. ([#13511](https://github.com/mastra-ai/mastra/pull/13511))
|
|
339
|
+
Single file paths, directory globs, and `SKILL.md` file globs now resolve consistently.
|
|
340
|
+
Trailing slashes are now handled correctly.
|
|
341
|
+
|
|
342
|
+
- `Harness.cloneThread()` now resolves dynamic memory factories before cloning, fixing "cloneThread is not a function" errors when memory is provided as a factory function. `HarnessConfig.memory` type widened to `DynamicArgument<MastraMemory>`. ([#13569](https://github.com/mastra-ai/mastra/pull/13569))
|
|
343
|
+
|
|
344
|
+
- Fixed workspace tools being callable by their old default names (e.g. mastra_workspace_edit_file) when renamed via tools config. The tool's internal id is now updated to match the remapped name, preventing fallback resolution from bypassing the rename. ([#13694](https://github.com/mastra-ai/mastra/pull/13694))
|
|
345
|
+
|
|
346
|
+
- Reduced default max output tokens from 3000 to 2000 for all workspace tools. List files tool uses a 1000 token limit. Suppressed "No errors or warnings" LSP diagnostic message when there are no issues. ([#13730](https://github.com/mastra-ai/mastra/pull/13730))
|
|
347
|
+
|
|
348
|
+
- Add first-class custom provider support for MastraCode model selection and routing. ([#13682](https://github.com/mastra-ai/mastra/pull/13682))
|
|
349
|
+
- Add `/custom-providers` command to create, edit, and delete custom OpenAI-compatible providers and manage model IDs under each provider.
|
|
350
|
+
- Persist custom providers and model IDs in `settings.json` with schema parsing/validation updates.
|
|
351
|
+
- Extend Harness model catalog listing with `customModelCatalogProvider` so custom models appear in existing selectors (`/models`, `/subagents`).
|
|
352
|
+
- Route configured custom provider model IDs through `ModelRouterLanguageModel` using provider-specific URL and optional API key settings.
|
|
353
|
+
|
|
354
|
+
- **`sendMessage` now accepts `files` instead of `images`**, supporting any file type with optional `filename`. ([#13574](https://github.com/mastra-ai/mastra/pull/13574))
|
|
355
|
+
|
|
356
|
+
**Breaking change:** Rename `images` to `files` when calling `harness.sendMessage()`:
|
|
357
|
+
|
|
358
|
+
```ts
|
|
359
|
+
// Before
|
|
360
|
+
await harness.sendMessage({
|
|
361
|
+
content: 'Analyze this',
|
|
362
|
+
images: [{ data: base64Data, mimeType: 'image/png' }],
|
|
363
|
+
});
|
|
364
|
+
|
|
365
|
+
// After
|
|
366
|
+
await harness.sendMessage({
|
|
367
|
+
content: 'Analyze this',
|
|
368
|
+
files: [{ data: base64Data, mediaType: 'image/png', filename: 'screenshot.png' }],
|
|
369
|
+
});
|
|
370
|
+
```
|
|
371
|
+
|
|
372
|
+
- `files` accepts `{ data, mediaType, filename? }` — filenames are now preserved through storage and message history
|
|
373
|
+
- Text-based files (`text/*`, `application/json`) are automatically decoded to readable text content instead of being sent as binary, which models could not process
|
|
374
|
+
- `HarnessMessageContent` now includes a `file` type, so file parts round-trip correctly through message history
|
|
375
|
+
|
|
376
|
+
- Fixed Agent Network routing failures for users running Claude models through AWS Bedrock by removing trailing whitespace from the routing assistant message. ([#13624](https://github.com/mastra-ai/mastra/pull/13624))
|
|
377
|
+
|
|
378
|
+
- Fixed thread title generation when user messages include file parts (for example, images). ([#13671](https://github.com/mastra-ai/mastra/pull/13671))
|
|
379
|
+
Titles now generate reliably instead of becoming empty.
|
|
380
|
+
|
|
381
|
+
- Fixed parallel workflow tool calls so each call runs independently. ([#13478](https://github.com/mastra-ai/mastra/pull/13478))
|
|
382
|
+
|
|
383
|
+
When an agent starts multiple tool calls to the same workflow at the same time, each call now runs with its own workflow run context. This prevents duplicated results across parallel calls and ensures each call returns output for its own input. Also ensures workflow tool suspension and manual resumption correctly preserves the run context.
|
|
384
|
+
|
|
385
|
+
- Fixed sub-agent instructions being overridden when the parent agent uses an OpenAI model. Previously, OpenAI models would fill in the optional `instructions` parameter when calling a sub-agent tool, completely replacing the sub-agent's own instructions. Now, any LLM-provided instructions are appended to the sub-agent's configured instructions instead of replacing them. ([#13578](https://github.com/mastra-ai/mastra/pull/13578))
|
|
386
|
+
|
|
387
|
+
- Tool lifecycle hooks (`onInputStart`, `onInputDelta`, `onInputAvailable`, `onOutput`) now fire correctly during agent execution for tools created via `createTool()`. Previously these hooks were silently ignored. Affected: `createTool`, `Tool`, `CoreToolBuilder.build`, `CoreTool`. ([#13708](https://github.com/mastra-ai/mastra/pull/13708))
|
|
388
|
+
|
|
389
|
+
- Fixed an issue where sub-agent messages inside a workflow tool would corrupt the parent agent's memory context. When an agent calls a workflow as a tool and the workflow runs sub-agents with their own memory threads, the parent's thread identity on the shared request context is now correctly saved before the workflow executes and restored afterward, preventing messages from being written to the wrong thread. ([#13637](https://github.com/mastra-ai/mastra/pull/13637))
|
|
390
|
+
|
|
391
|
+
- Fix workspace tool output truncation to handle tokenizer special tokens ([#13725](https://github.com/mastra-ai/mastra/pull/13725))
|
|
392
|
+
|
|
393
|
+
- Added a warning when a `LocalFilesystem` mount uses `contained: false`, alerting users to path resolution issues in mount-based workspaces. Use `contained: true` (default) or `allowedPaths` to allow specific host paths. ([#13474](https://github.com/mastra-ai/mastra/pull/13474))
|
|
394
|
+
|
|
395
|
+
- Fixed harness handling for observational memory failures so streams stop immediately when OM reports a failed run or buffering cycle. ([#13563](https://github.com/mastra-ai/mastra/pull/13563))
|
|
396
|
+
|
|
397
|
+
The harness now emits the existing OM failure event (`om_observation_failed`, `om_reflection_failed`, or `om_buffering_failed`), emits a top-level error with OM context, and aborts the active stream. This prevents normal assistant output from continuing after an OM model failure.
|
|
398
|
+
|
|
399
|
+
- Fixed subagents being unable to access files outside the project root. Subagents now inherit both user-approved sandbox paths and skill paths (e.g. `~/.claude/skills`) from the parent agent. ([#13700](https://github.com/mastra-ai/mastra/pull/13700))
|
|
400
|
+
|
|
401
|
+
- Fixed agent-as-tools schema generation so Gemini accepts tool definitions for suspend/resume flows. ([#13715](https://github.com/mastra-ai/mastra/pull/13715))
|
|
402
|
+
This prevents schema validation failures when `resumeData` is present.
|
|
403
|
+
|
|
404
|
+
- Fixed tool approval resume failing when Agent is used without an explicit Mastra instance. The Harness now creates an internal Mastra instance with storage and registers it on mode agents, ensuring workflow snapshots persist and load correctly. Also fixed requestContext serialization using toJSON() to prevent circular reference errors during snapshot persistence. ([#13519](https://github.com/mastra-ai/mastra/pull/13519))
|
|
405
|
+
|
|
406
|
+
- Fixed spawn error handling in LocalSandbox by switching to execa. Previously, spawning a process with an invalid working directory or missing command could crash with an unhandled Node.js exception. Now returns descriptive error messages instead. Also fixed timeout handling to properly kill the entire process group for compound commands. ([#13734](https://github.com/mastra-ai/mastra/pull/13734))
|
|
407
|
+
|
|
408
|
+
- HTTP request logging can now be configured in detail via `apiReqLogs` in the server config. The new `HttpLoggingConfig` type is exported from `@mastra/core/server`. ([#11907](https://github.com/mastra-ai/mastra/pull/11907))
|
|
409
|
+
|
|
410
|
+
```ts
|
|
411
|
+
import type { HttpLoggingConfig } from '@mastra/core/server';
|
|
412
|
+
|
|
413
|
+
const loggingConfig: HttpLoggingConfig = {
|
|
414
|
+
enabled: true,
|
|
415
|
+
level: 'info',
|
|
416
|
+
excludePaths: ['/health', '/metrics'],
|
|
417
|
+
includeHeaders: true,
|
|
418
|
+
includeQueryParams: true,
|
|
419
|
+
redactHeaders: ['authorization', 'cookie'],
|
|
420
|
+
};
|
|
421
|
+
```
|
|
422
|
+
|
|
423
|
+
- Remove internal `processes` field from sandbox provider options ([#13597](https://github.com/mastra-ai/mastra/pull/13597))
|
|
424
|
+
|
|
425
|
+
The `processes` field is no longer exposed in constructor options for E2B, Daytona, and Blaxel sandbox providers. This field is managed internally and was not intended to be user-configurable.
|
|
426
|
+
|
|
427
|
+
- Fixed abort signal propagation in agent networks. When using `abortSignal` with `agent.network()`, the signal now correctly prevents tool execution when abort fires during routing, and no longer saves partial results to memory when sub-agents, tools, or workflows are aborted. ([#13491](https://github.com/mastra-ai/mastra/pull/13491))
|
|
428
|
+
|
|
429
|
+
- Fixed Memory.recall() to include pagination metadata (total, page, perPage, hasMore) in its response, ensuring consistent pagination regardless of whether agentId is provided. Fixes #13277 ([#13278](https://github.com/mastra-ai/mastra/pull/13278))
|
|
430
|
+
|
|
431
|
+
- Fixed harness getTokenUsage() returning zeros when using AI SDK v5/v6. The token usage extraction now correctly reads both inputTokens/outputTokens (v5/v6) and promptTokens/completionTokens (v4) field names from the usage object. ([#13622](https://github.com/mastra-ai/mastra/pull/13622))
|
|
432
|
+
|
|
433
|
+
- Model pack selection is now more consistent and reliable in mastracode. ([#13512](https://github.com/mastra-ai/mastra/pull/13512))
|
|
434
|
+
- `/models` is now the single command for choosing and managing model packs.
|
|
435
|
+
- Model picker ranking now learns from your recent selections and keeps those preferences across sessions.
|
|
436
|
+
- Pack choice now restores correctly per thread when switching between threads.
|
|
437
|
+
- Custom packs now support full create, rename, targeted edit, and delete workflows.
|
|
438
|
+
- The built-in **Varied** option has been retired; users who had it selected are automatically migrated to a saved custom pack named `varied`.
|
|
439
|
+
|
|
440
|
+
- Added support for reading resource IDs from `Harness`. ([#13690](https://github.com/mastra-ai/mastra/pull/13690))
|
|
441
|
+
|
|
442
|
+
You can now get the default resource ID and list known resource IDs from stored threads.
|
|
443
|
+
|
|
444
|
+
```ts
|
|
445
|
+
const defaultId = harness.getDefaultResourceId();
|
|
446
|
+
const knownIds = await harness.getKnownResourceIds();
|
|
447
|
+
```
|
|
448
|
+
|
|
449
|
+
- chore(harness): Update harness sub-agent instructions type to be dynamic ([#13706](https://github.com/mastra-ai/mastra/pull/13706))
|
|
450
|
+
|
|
451
|
+
- Added `MastraMessagePart` to the public type exports of `@mastra/core/agent`, allowing it to be imported directly in downstream packages. ([#13297](https://github.com/mastra-ai/mastra/pull/13297))
|
|
452
|
+
|
|
453
|
+
- Added `deleteThread({ threadId })` method to the Harness class for deleting threads and their messages from storage. Releases the thread lock and clears the active thread when deleting the current thread. Emits a `thread_deleted` event. ([#13625](https://github.com/mastra-ai/mastra/pull/13625))
|
|
454
|
+
|
|
455
|
+
- Fixed tilde (~) paths not expanding to the home directory in LocalFilesystem and LocalSandbox. Paths like `~/my-project` were silently treated as relative paths, creating a literal `~/` directory instead of resolving to `$HOME`. This affects `basePath`, `allowedPaths`, `setAllowedPaths()`, all file operations in LocalFilesystem, and `workingDirectory` in LocalSandbox. ([#13739](https://github.com/mastra-ai/mastra/pull/13739))
|
|
456
|
+
|
|
457
|
+
- Switched Mastra Code to workspace tools and enabled LSP by default ([#13437](https://github.com/mastra-ai/mastra/pull/13437))
|
|
458
|
+
- Switched from built-in tool implementations to workspace tools for file operations, search, edit, write, and command execution
|
|
459
|
+
- Enabled LSP (language server) by default with automatic package runner detection and bundled binary resolution
|
|
460
|
+
- Added real-time stdout/stderr streaming in the TUI for workspace command execution
|
|
461
|
+
- Added TUI rendering for process management tools (view output, kill processes)
|
|
462
|
+
- Fixed edit diff preview in the TUI to work with workspace tool arg names (`old_string`/`new_string`)
|
|
463
|
+
|
|
464
|
+
- Fixed tilde paths (`~/foo`) in contained `LocalFilesystem` silently writing to the wrong location. Previously, `~/foo` would expand and then nest under basePath (e.g. `basePath/home/user/foo`). Tilde paths are now treated as real absolute paths, and throw `PermissionError` when the expanded path is outside `basePath` and `allowedPaths`. ([#13741](https://github.com/mastra-ai/mastra/pull/13741))
|
|
465
|
+
|
|
3
466
|
## 1.9.0-alpha.0
|
|
4
467
|
|
|
5
468
|
### Minor Changes
|
package/dist/agent/agent.d.ts
CHANGED
|
@@ -421,13 +421,13 @@ export declare class Agent<TAgentId extends string = string, TTools extends Tool
|
|
|
421
421
|
* Updates the agent's instructions.
|
|
422
422
|
* @internal
|
|
423
423
|
*/
|
|
424
|
-
__updateInstructions(newInstructions:
|
|
424
|
+
__updateInstructions(newInstructions: DynamicArgument<AgentInstructions, any>): void;
|
|
425
425
|
/**
|
|
426
426
|
* Updates the agent's model configuration.
|
|
427
427
|
* @internal
|
|
428
428
|
*/
|
|
429
429
|
__updateModel({ model }: {
|
|
430
|
-
model: DynamicArgument<MastraModelConfig
|
|
430
|
+
model: DynamicArgument<MastraModelConfig> | ModelFallbacks;
|
|
431
431
|
}): void;
|
|
432
432
|
/**
|
|
433
433
|
* Resets the agent's model to the original model set during construction.
|
|
@@ -435,6 +435,17 @@ export declare class Agent<TAgentId extends string = string, TTools extends Tool
|
|
|
435
435
|
* @internal
|
|
436
436
|
*/
|
|
437
437
|
__resetToOriginalModel(): void;
|
|
438
|
+
/**
|
|
439
|
+
* Returns a snapshot of the raw field values that may be overridden by stored config.
|
|
440
|
+
* Used by the editor to save/restore code defaults externally.
|
|
441
|
+
* @internal
|
|
442
|
+
*/
|
|
443
|
+
__getOverridableFields(): {
|
|
444
|
+
instructions: DynamicArgument<import("../llm").SystemMessage, TRequestContext>;
|
|
445
|
+
model: DynamicArgument<MastraModelConfig> | ModelFallbacks;
|
|
446
|
+
tools: DynamicArgument<TTools, TRequestContext>;
|
|
447
|
+
workspace: DynamicArgument<AnyWorkspace | undefined>;
|
|
448
|
+
};
|
|
438
449
|
reorderModels(modelIds: string[]): void;
|
|
439
450
|
updateModelInModelList({ id, model, enabled, maxRetries, }: {
|
|
440
451
|
id: string;
|
|
@@ -457,7 +468,7 @@ export declare class Agent<TAgentId extends string = string, TTools extends Tool
|
|
|
457
468
|
* @param tools
|
|
458
469
|
* @internal
|
|
459
470
|
*/
|
|
460
|
-
__setTools(tools: TTools): void;
|
|
471
|
+
__setTools(tools: DynamicArgument<TTools, any>): void;
|
|
461
472
|
generateTitleFromUserMessage({ message, requestContext, model, instructions, ...rest }: {
|
|
462
473
|
message: string | MessageInput;
|
|
463
474
|
requestContext?: RequestContext;
|
|
@@ -478,6 +489,14 @@ export declare class Agent<TAgentId extends string = string, TTools extends Tool
|
|
|
478
489
|
* @internal
|
|
479
490
|
*/
|
|
480
491
|
private listWorkspaceTools;
|
|
492
|
+
/**
|
|
493
|
+
* Returns skill tools (skill, skill_search, skill_read) when the workspace
|
|
494
|
+
* has skills configured. These are added at the Agent level (like workspace
|
|
495
|
+
* tools) rather than inside a processor, so they persist across turns and
|
|
496
|
+
* survive serialization across tool-approval pauses.
|
|
497
|
+
* @internal
|
|
498
|
+
*/
|
|
499
|
+
private listSkillTools;
|
|
481
500
|
/**
|
|
482
501
|
* Executes input processors on the message list before LLM processing.
|
|
483
502
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
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