@mastra/mcp-docs-server 0.0.0-bundle-recursion-20251030002519 → 0.0.0-bundle-version-20260121091645
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/.docs/organized/changelogs/%40internal%2Fchangeset-cli.md +1 -15
- package/.docs/organized/changelogs/%40internal%2Fexternal-types.md +1 -7
- package/.docs/organized/changelogs/%40internal%2Fplayground.md +60 -0
- package/.docs/organized/changelogs/%40internal%2Fstorage-test-utils.md +201 -1
- package/.docs/organized/changelogs/%40internal%2Ftypes-builder.md +1 -55
- package/.docs/organized/changelogs/%40mastra%2Fagent-builder.md +368 -168
- package/.docs/organized/changelogs/%40mastra%2Fai-sdk.md +362 -162
- package/.docs/organized/changelogs/%40mastra%2Fastra.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fauth.md +52 -0
- package/.docs/organized/changelogs/%40mastra%2Fchroma.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +701 -191
- package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +400 -200
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +596 -191
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +629 -190
- package/.docs/organized/changelogs/%40mastra%2Fcodemod.md +235 -0
- package/.docs/organized/changelogs/%40mastra%2Fconvex.md +502 -0
- package/.docs/organized/changelogs/%40mastra%2Fcore.md +376 -176
- package/.docs/organized/changelogs/%40mastra%2Fcouchbase.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloud.md +360 -160
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +377 -177
- package/.docs/organized/changelogs/%40mastra%2Fduckdb.md +112 -0
- package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +575 -197
- package/.docs/organized/changelogs/%40mastra%2Felasticsearch.md +133 -0
- package/.docs/organized/changelogs/%40mastra%2Fevals.md +211 -11
- package/.docs/organized/changelogs/%40mastra%2Ffastembed.md +64 -0
- package/.docs/organized/changelogs/%40mastra%2Flance.md +621 -191
- package/.docs/organized/changelogs/%40mastra%2Flibsql.md +788 -192
- package/.docs/organized/changelogs/%40mastra%2Floggers.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +336 -136
- package/.docs/organized/changelogs/%40mastra%2Fmcp-registry-registry.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fmcp.md +384 -184
- package/.docs/organized/changelogs/%40mastra%2Fmemory.md +576 -178
- package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +729 -196
- package/.docs/organized/changelogs/%40mastra%2Fmssql.md +670 -191
- package/.docs/organized/changelogs/%40mastra%2Fopensearch.md +231 -31
- package/.docs/organized/changelogs/%40mastra%2Fpg.md +913 -167
- package/.docs/organized/changelogs/%40mastra%2Fpinecone.md +248 -48
- package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +376 -176
- package/.docs/organized/changelogs/%40mastra%2Fqdrant.md +204 -4
- package/.docs/organized/changelogs/%40mastra%2Frag.md +414 -214
- package/.docs/organized/changelogs/%40mastra%2Freact.md +358 -158
- package/.docs/organized/changelogs/%40mastra%2Fs3vectors.md +101 -0
- package/.docs/organized/changelogs/%40mastra%2Fschema-compat.md +220 -0
- package/.docs/organized/changelogs/%40mastra%2Fserver.md +363 -163
- package/.docs/organized/changelogs/%40mastra%2Fturbopuffer.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fupstash.md +640 -193
- package/.docs/organized/changelogs/%40mastra%2Fvectorize.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-azure.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-cloudflare.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-deepgram.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-elevenlabs.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-gladia.md +107 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-google-gemini-live.md +183 -0
- package/.docs/organized/changelogs/%40mastra%2Fvoice-google.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-murf.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-openai-realtime.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-openai.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-playai.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-sarvam.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-speechify.md +201 -1
- package/.docs/organized/changelogs/create-mastra.md +291 -91
- package/.docs/organized/changelogs/mastra.md +365 -165
- package/.docs/organized/code-examples/a2a.md +6 -4
- package/.docs/organized/code-examples/agent-v6.md +221 -0
- package/.docs/organized/code-examples/agui.md +16 -12
- package/.docs/organized/code-examples/ai-elements.md +4 -4
- package/.docs/organized/code-examples/ai-sdk-useChat.md +16 -22
- package/.docs/organized/code-examples/ai-sdk-v5.md +9 -6
- package/.docs/organized/code-examples/assistant-ui.md +7 -7
- package/.docs/organized/code-examples/bird-checker-with-express.md +7 -6
- package/.docs/organized/code-examples/bird-checker-with-nextjs-and-eval.md +8 -7
- package/.docs/organized/code-examples/bird-checker-with-nextjs.md +8 -7
- package/.docs/organized/code-examples/client-side-tools.md +6 -5
- package/.docs/organized/code-examples/crypto-chatbot.md +7 -7
- package/.docs/organized/code-examples/experimental-auth-weather-agent.md +9 -178
- package/.docs/organized/code-examples/fireworks-r1.md +5 -5
- package/.docs/organized/code-examples/heads-up-game.md +8 -5
- package/.docs/organized/code-examples/inngest.md +1075 -0
- package/.docs/organized/code-examples/mcp-configuration.md +6 -7
- package/.docs/organized/code-examples/mcp-registry-registry.md +3 -2
- package/.docs/organized/code-examples/mcp-server-adapters.md +720 -0
- package/.docs/organized/code-examples/memory-per-resource-example.md +7 -5
- package/.docs/organized/code-examples/memory-todo-agent.md +2 -1
- package/.docs/organized/code-examples/memory-with-context.md +3 -2
- package/.docs/organized/code-examples/memory-with-libsql.md +4 -2
- package/.docs/organized/code-examples/memory-with-mongodb.md +4 -2
- package/.docs/organized/code-examples/memory-with-pg.md +4 -2
- package/.docs/organized/code-examples/memory-with-processors.md +15 -10
- package/.docs/organized/code-examples/memory-with-upstash.md +5 -3
- package/.docs/organized/code-examples/openapi-spec-writer.md +36 -35
- package/.docs/organized/code-examples/processors-with-ai-sdk.md +14 -0
- package/.docs/organized/code-examples/quick-start.md +8 -39
- package/.docs/organized/code-examples/server-app-access.md +342 -0
- package/.docs/organized/code-examples/server-express-adapter.md +87 -0
- package/.docs/organized/code-examples/server-fastify-adapter.md +83 -0
- package/.docs/organized/code-examples/server-hono-adapter.md +85 -0
- package/.docs/organized/code-examples/server-koa-adapter.md +94 -0
- package/.docs/organized/code-examples/stock-price-tool.md +27 -27
- package/.docs/organized/code-examples/weather-agent.md +21 -16
- package/.docs/organized/code-examples/workflow-ai-recruiter.md +5 -4
- package/.docs/organized/code-examples/workflow-with-inline-steps.md +11 -14
- package/.docs/organized/code-examples/workflow-with-memory.md +18 -17
- package/.docs/organized/code-examples/workflow-with-separate-steps.md +4 -4
- package/.docs/organized/code-examples/workflow-with-suspend-resume.md +5 -4
- package/.docs/raw/agents/adding-voice.mdx +92 -23
- package/.docs/raw/agents/agent-approval.mdx +386 -0
- package/.docs/raw/agents/agent-memory.mdx +53 -41
- package/.docs/raw/agents/guardrails.mdx +141 -68
- package/.docs/raw/agents/network-approval.mdx +281 -0
- package/.docs/raw/agents/networks.mdx +79 -19
- package/.docs/raw/agents/overview.mdx +69 -194
- package/.docs/raw/agents/processors.mdx +496 -0
- package/.docs/raw/agents/structured-output.mdx +294 -0
- package/.docs/raw/agents/using-tools.mdx +86 -22
- package/.docs/raw/community/contributing-templates.mdx +1 -1
- package/.docs/raw/community/discord.mdx +2 -2
- package/.docs/raw/community/licensing.mdx +1 -1
- package/.docs/raw/course/01-first-agent/04-project-structure.md +2 -0
- package/.docs/raw/course/01-first-agent/05-running-playground.md +5 -5
- package/.docs/raw/course/01-first-agent/07-creating-your-agent.md +1 -2
- package/.docs/raw/course/01-first-agent/08-exporting-your-agent.md +2 -1
- package/.docs/raw/course/01-first-agent/09-testing-your-agent.md +3 -3
- package/.docs/raw/course/01-first-agent/12-connecting-tool-to-agent.md +1 -1
- package/.docs/raw/course/01-first-agent/13-testing-your-tool.md +3 -3
- package/.docs/raw/course/01-first-agent/15-installing-memory.md +1 -1
- package/.docs/raw/course/01-first-agent/16-adding-memory-to-agent.md +3 -3
- package/.docs/raw/course/01-first-agent/17-testing-memory.md +2 -2
- package/.docs/raw/course/02-agent-tools-mcp/04-initializing-mcp-tools.md +2 -2
- package/.docs/raw/course/02-agent-tools-mcp/05-updating-your-agent.md +1 -1
- package/.docs/raw/course/02-agent-tools-mcp/10-updating-agent-instructions-zapier.md +1 -1
- package/.docs/raw/course/02-agent-tools-mcp/16-updating-agent-instructions-github.md +1 -1
- package/.docs/raw/course/02-agent-tools-mcp/21-updating-agent-instructions-hackernews.md +1 -1
- package/.docs/raw/course/02-agent-tools-mcp/27-updating-agent-instructions-filesystem.md +1 -1
- package/.docs/raw/course/02-agent-tools-mcp/31-enhancing-memory-configuration.md +5 -3
- package/.docs/raw/course/02-agent-tools-mcp/32-conclusion.md +1 -1
- package/.docs/raw/course/03-agent-memory/03-installing-memory.md +1 -1
- package/.docs/raw/course/03-agent-memory/04-creating-basic-memory-agent.md +2 -2
- package/.docs/raw/course/03-agent-memory/07-understanding-memory-threads.md +35 -0
- package/.docs/raw/course/03-agent-memory/08-configuring-conversation-history.md +1 -2
- package/.docs/raw/course/03-agent-memory/10-storage-configuration.md +2 -3
- package/.docs/raw/course/03-agent-memory/13-vector-store-configuration.md +3 -1
- package/.docs/raw/course/03-agent-memory/16-configuring-semantic-recall.md +6 -5
- package/.docs/raw/course/03-agent-memory/18-advanced-configuration-semantic-recall.md +2 -1
- package/.docs/raw/course/03-agent-memory/21-configuring-working-memory.md +5 -4
- package/.docs/raw/course/03-agent-memory/22-custom-working-memory-templates.md +4 -4
- package/.docs/raw/course/03-agent-memory/25-combining-memory-features.md +4 -4
- package/.docs/raw/course/03-agent-memory/27-creating-learning-assistant.md +4 -4
- package/.docs/raw/course/04-workflows/07-using-playground.md +1 -1
- package/.docs/raw/course/04-workflows/08-running-workflows-programmatically.md +2 -2
- package/.docs/raw/course/04-workflows/11-creating-an-ai-agent.md +2 -3
- package/.docs/raw/deployment/cloud-providers.mdx +22 -0
- package/.docs/raw/deployment/mastra-server.mdx +140 -0
- package/.docs/raw/deployment/monorepo.mdx +106 -42
- package/.docs/raw/deployment/overview.mdx +37 -50
- package/.docs/raw/deployment/web-framework.mdx +18 -20
- package/.docs/raw/deployment/workflow-runners.mdx +16 -0
- package/.docs/raw/evals/built-in-scorers.mdx +54 -0
- package/.docs/raw/{scorers → evals}/custom-scorers.mdx +68 -22
- package/.docs/raw/{scorers → evals}/overview.mdx +19 -20
- package/.docs/raw/evals/running-in-ci.mdx +113 -0
- package/.docs/raw/getting-started/{installation.mdx → manual-install.mdx} +30 -103
- package/.docs/raw/getting-started/mcp-docs-server.mdx +57 -32
- package/.docs/raw/getting-started/project-structure.mdx +4 -4
- package/.docs/raw/getting-started/start.mdx +88 -0
- package/.docs/raw/getting-started/studio.mdx +39 -56
- package/.docs/raw/guides/agent-frameworks/ai-sdk.mdx +151 -0
- package/.docs/raw/guides/build-your-ui/ai-sdk-ui.mdx +1581 -0
- package/.docs/raw/{frameworks/agentic-uis → guides/build-your-ui}/assistant-ui.mdx +75 -23
- package/.docs/raw/guides/build-your-ui/copilotkit.mdx +227 -0
- package/.docs/raw/{deployment/cloud-providers → guides/deployment}/amazon-ec2.mdx +13 -13
- package/.docs/raw/{deployment/cloud-providers → guides/deployment}/aws-lambda.mdx +18 -19
- package/.docs/raw/{deployment/cloud-providers → guides/deployment}/azure-app-services.mdx +7 -9
- package/.docs/raw/{deployment/serverless-platforms → guides/deployment}/cloudflare-deployer.mdx +10 -7
- package/.docs/raw/{deployment/cloud-providers → guides/deployment}/digital-ocean.mdx +22 -27
- package/.docs/raw/guides/deployment/index.mdx +32 -0
- package/.docs/raw/guides/deployment/inngest.mdx +673 -0
- package/.docs/raw/{deployment/serverless-platforms → guides/deployment}/netlify-deployer.mdx +52 -17
- package/.docs/raw/{deployment/serverless-platforms → guides/deployment}/vercel-deployer.mdx +10 -7
- package/.docs/raw/guides/getting-started/astro.mdx +441 -0
- package/.docs/raw/guides/getting-started/express.mdx +128 -0
- package/.docs/raw/guides/getting-started/hono.mdx +227 -0
- package/.docs/raw/guides/getting-started/next-js.mdx +388 -0
- package/.docs/raw/guides/getting-started/nuxt.mdx +505 -0
- package/.docs/raw/guides/getting-started/quickstart.mdx +97 -0
- package/.docs/raw/guides/getting-started/sveltekit.mdx +329 -0
- package/.docs/raw/guides/getting-started/vite-react.mdx +425 -0
- package/.docs/raw/guides/guide/ai-recruiter.mdx +263 -0
- package/.docs/raw/guides/guide/chef-michel.mdx +268 -0
- package/.docs/raw/guides/guide/notes-mcp-server.mdx +450 -0
- package/.docs/raw/guides/guide/research-assistant.mdx +379 -0
- package/.docs/raw/guides/guide/stock-agent.mdx +183 -0
- package/.docs/raw/guides/guide/web-search.mdx +293 -0
- package/.docs/raw/guides/guide/whatsapp-chat-bot.mdx +421 -0
- package/.docs/raw/guides/index.mdx +10 -0
- package/.docs/raw/guides/migrations/agentnetwork.mdx +114 -0
- package/.docs/raw/guides/migrations/ai-sdk-v4-to-v5.mdx +119 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/_template.mdx +50 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/agent.mdx +416 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/cli.mdx +62 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/client.mdx +363 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/deployment.mdx +42 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/evals.mdx +260 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/mastra.mdx +160 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/mcp.mdx +114 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/memory.mdx +306 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/overview.mdx +120 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/processors.mdx +73 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/rag.mdx +47 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/storage.mdx +596 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/tools.mdx +180 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/tracing.mdx +335 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/vectors.mdx +92 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/voice.mdx +39 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/workflows.mdx +353 -0
- package/.docs/raw/guides/migrations/vnext-to-standard-apis.mdx +365 -0
- package/.docs/raw/index.mdx +9 -9
- package/.docs/raw/mastra-cloud/deployment.mdx +86 -0
- package/.docs/raw/mastra-cloud/observability.mdx +17 -25
- package/.docs/raw/mastra-cloud/overview.mdx +15 -49
- package/.docs/raw/mastra-cloud/setup.mdx +64 -0
- package/.docs/raw/mastra-cloud/studio.mdx +35 -0
- package/.docs/raw/mcp/overview.mdx +393 -0
- package/.docs/raw/mcp/publishing-mcp-server.mdx +142 -0
- package/.docs/raw/memory/memory-processors.mdx +273 -82
- package/.docs/raw/memory/message-history.mdx +72 -0
- package/.docs/raw/memory/overview.mdx +42 -76
- package/.docs/raw/memory/semantic-recall.mdx +77 -59
- package/.docs/raw/memory/storage.mdx +248 -0
- package/.docs/raw/memory/working-memory.mdx +41 -21
- package/.docs/raw/observability/logging.mdx +21 -20
- package/.docs/raw/observability/overview.mdx +37 -35
- package/.docs/raw/observability/tracing/bridges/otel.mdx +203 -0
- package/.docs/raw/observability/{ai-tracing → tracing}/exporters/arize.mdx +89 -24
- package/.docs/raw/observability/{ai-tracing → tracing}/exporters/braintrust.mdx +40 -20
- package/.docs/raw/observability/{ai-tracing → tracing}/exporters/cloud.mdx +34 -21
- package/.docs/raw/observability/tracing/exporters/datadog.mdx +175 -0
- package/.docs/raw/observability/{ai-tracing → tracing}/exporters/default.mdx +45 -28
- package/.docs/raw/observability/tracing/exporters/laminar.mdx +89 -0
- package/.docs/raw/observability/tracing/exporters/langfuse.mdx +205 -0
- package/.docs/raw/observability/tracing/exporters/langsmith.mdx +121 -0
- package/.docs/raw/observability/tracing/exporters/otel.mdx +457 -0
- package/.docs/raw/observability/tracing/exporters/posthog.mdx +137 -0
- package/.docs/raw/observability/tracing/exporters/sentry.mdx +198 -0
- package/.docs/raw/observability/tracing/overview.mdx +1128 -0
- package/.docs/raw/observability/{ai-tracing → tracing}/processors/sensitive-data-filter.mdx +40 -20
- package/.docs/raw/rag/chunking-and-embedding.mdx +37 -49
- package/.docs/raw/rag/graph-rag.mdx +223 -0
- package/.docs/raw/rag/overview.mdx +11 -17
- package/.docs/raw/rag/retrieval.mdx +110 -97
- package/.docs/raw/rag/vector-databases.mdx +150 -29
- package/.docs/raw/reference/agents/agent.mdx +54 -50
- package/.docs/raw/reference/agents/generate.mdx +410 -146
- package/.docs/raw/reference/agents/generateLegacy.mdx +13 -11
- package/.docs/raw/reference/agents/getDefaultGenerateOptions.mdx +24 -16
- package/.docs/raw/reference/agents/getDefaultOptions.mdx +71 -0
- package/.docs/raw/reference/agents/getDefaultStreamOptions.mdx +25 -17
- package/.docs/raw/reference/agents/getDescription.mdx +4 -2
- package/.docs/raw/reference/agents/getInstructions.mdx +12 -10
- package/.docs/raw/reference/agents/getLLM.mdx +14 -12
- package/.docs/raw/reference/agents/getMemory.mdx +13 -11
- package/.docs/raw/reference/agents/getModel.mdx +14 -12
- package/.docs/raw/reference/agents/getTools.mdx +11 -9
- package/.docs/raw/reference/agents/getVoice.mdx +12 -10
- package/.docs/raw/reference/agents/listAgents.mdx +13 -11
- package/.docs/raw/reference/agents/listScorers.mdx +71 -0
- package/.docs/raw/reference/agents/listTools.mdx +71 -0
- package/.docs/raw/reference/agents/listWorkflows.mdx +71 -0
- package/.docs/raw/reference/agents/network.mdx +134 -60
- package/.docs/raw/reference/ai-sdk/chat-route.mdx +130 -0
- package/.docs/raw/reference/ai-sdk/handle-chat-stream.mdx +119 -0
- package/.docs/raw/reference/ai-sdk/handle-network-stream.mdx +66 -0
- package/.docs/raw/reference/ai-sdk/handle-workflow-stream.mdx +118 -0
- package/.docs/raw/reference/ai-sdk/network-route.mdx +102 -0
- package/.docs/raw/reference/ai-sdk/to-ai-sdk-stream.mdx +293 -0
- package/.docs/raw/reference/ai-sdk/to-ai-sdk-v4-messages.mdx +130 -0
- package/.docs/raw/reference/ai-sdk/to-ai-sdk-v5-messages.mdx +110 -0
- package/.docs/raw/reference/ai-sdk/with-mastra.mdx +122 -0
- package/.docs/raw/reference/ai-sdk/workflow-route.mdx +113 -0
- package/.docs/raw/reference/auth/auth0.mdx +9 -7
- package/.docs/raw/reference/auth/clerk.mdx +9 -7
- package/.docs/raw/reference/auth/firebase.mdx +12 -11
- package/.docs/raw/reference/auth/jwt.mdx +9 -7
- package/.docs/raw/reference/auth/supabase.mdx +9 -7
- package/.docs/raw/reference/auth/workos.mdx +9 -7
- package/.docs/raw/reference/cli/create-mastra.mdx +13 -11
- package/.docs/raw/reference/cli/mastra.mdx +72 -23
- package/.docs/raw/reference/client-js/agents.mdx +316 -86
- package/.docs/raw/reference/client-js/error-handling.mdx +4 -4
- package/.docs/raw/reference/client-js/logs.mdx +4 -2
- package/.docs/raw/reference/client-js/mastra-client.mdx +20 -18
- package/.docs/raw/reference/client-js/memory.mdx +116 -20
- package/.docs/raw/reference/client-js/observability.mdx +14 -12
- package/.docs/raw/reference/client-js/telemetry.mdx +3 -1
- package/.docs/raw/reference/client-js/tools.mdx +4 -2
- package/.docs/raw/reference/client-js/vectors.mdx +3 -1
- package/.docs/raw/reference/client-js/workflows.mdx +132 -87
- package/.docs/raw/reference/configuration.mdx +761 -0
- package/.docs/raw/reference/core/addGateway.mdx +61 -0
- package/.docs/raw/reference/core/getAgent.mdx +4 -2
- package/.docs/raw/reference/core/getAgentById.mdx +4 -2
- package/.docs/raw/reference/core/getDeployer.mdx +4 -2
- package/.docs/raw/reference/core/getGateway.mdx +61 -0
- package/.docs/raw/reference/core/getGatewayById.mdx +64 -0
- package/.docs/raw/reference/core/getLogger.mdx +5 -3
- package/.docs/raw/reference/core/getMCPServer.mdx +34 -16
- package/.docs/raw/reference/core/getMCPServerById.mdx +83 -0
- package/.docs/raw/reference/core/getMemory.mdx +50 -9
- package/.docs/raw/reference/core/getScorer.mdx +6 -4
- package/.docs/raw/reference/core/getScorerById.mdx +81 -0
- package/.docs/raw/reference/core/getServer.mdx +7 -5
- package/.docs/raw/reference/core/getStorage.mdx +6 -4
- package/.docs/raw/reference/core/getStoredAgentById.mdx +185 -0
- package/.docs/raw/reference/core/getTelemetry.mdx +6 -4
- package/.docs/raw/reference/core/getVector.mdx +4 -2
- package/.docs/raw/reference/core/getWorkflow.mdx +4 -2
- package/.docs/raw/reference/core/{getAgents.mdx → listAgents.mdx} +8 -6
- package/.docs/raw/reference/core/listGateways.mdx +55 -0
- package/.docs/raw/reference/core/{getLogs.mdx → listLogs.mdx} +9 -7
- package/.docs/raw/reference/core/{getLogsByRunId.mdx → listLogsByRunId.mdx} +9 -7
- package/.docs/raw/reference/core/listMCPServers.mdx +67 -0
- package/.docs/raw/reference/core/listMemory.mdx +74 -0
- package/.docs/raw/reference/core/listScorers.mdx +45 -0
- package/.docs/raw/reference/core/listStoredAgents.mdx +153 -0
- package/.docs/raw/reference/core/{getVectors.mdx → listVectors.mdx} +8 -6
- package/.docs/raw/reference/core/{getWorkflows.mdx → listWorkflows.mdx} +8 -6
- package/.docs/raw/reference/core/mastra-class.mdx +47 -23
- package/.docs/raw/reference/core/mastra-model-gateway.mdx +229 -0
- package/.docs/raw/reference/core/setLogger.mdx +5 -3
- package/.docs/raw/reference/core/setStorage.mdx +8 -5
- package/.docs/raw/reference/deployer/cloudflare.mdx +24 -55
- package/.docs/raw/reference/deployer/deployer.mdx +3 -8
- package/.docs/raw/reference/deployer/netlify.mdx +6 -4
- package/.docs/raw/reference/deployer/vercel.mdx +8 -7
- package/.docs/raw/reference/evals/answer-relevancy.mdx +99 -128
- package/.docs/raw/reference/evals/answer-similarity.mdx +196 -0
- package/.docs/raw/reference/evals/bias.mdx +91 -112
- package/.docs/raw/reference/evals/completeness.mdx +93 -118
- package/.docs/raw/reference/evals/content-similarity.mdx +73 -117
- package/.docs/raw/reference/evals/context-precision.mdx +195 -137
- package/.docs/raw/reference/{scorers → evals}/context-relevance.mdx +19 -17
- package/.docs/raw/reference/{scorers → evals}/create-scorer.mdx +80 -63
- package/.docs/raw/reference/evals/faithfulness.mdx +94 -122
- package/.docs/raw/reference/evals/hallucination.mdx +89 -134
- package/.docs/raw/reference/evals/keyword-coverage.mdx +94 -126
- package/.docs/raw/reference/{scorers → evals}/mastra-scorer.mdx +9 -5
- package/.docs/raw/reference/{scorers → evals}/noise-sensitivity.mdx +22 -20
- package/.docs/raw/reference/evals/prompt-alignment.mdx +606 -182
- package/.docs/raw/reference/{scorers/run-experiment.mdx → evals/run-evals.mdx} +21 -20
- package/.docs/raw/reference/evals/scorer-utils.mdx +365 -0
- package/.docs/raw/reference/evals/textual-difference.mdx +80 -118
- package/.docs/raw/reference/evals/tone-consistency.mdx +80 -126
- package/.docs/raw/reference/{scorers → evals}/tool-call-accuracy.mdx +37 -33
- package/.docs/raw/reference/evals/toxicity.mdx +93 -97
- package/.docs/raw/reference/index.mdx +2 -0
- package/.docs/raw/reference/{observability/logging → logging}/pino-logger.mdx +12 -10
- package/.docs/raw/reference/memory/clone-utilities.mdx +345 -0
- package/.docs/raw/reference/memory/cloneThread.mdx +237 -0
- package/.docs/raw/reference/memory/createThread.mdx +7 -5
- package/.docs/raw/reference/memory/deleteMessages.mdx +10 -8
- package/.docs/raw/reference/memory/getThreadById.mdx +4 -2
- package/.docs/raw/reference/memory/listThreads.mdx +187 -0
- package/.docs/raw/reference/memory/memory-class.mdx +38 -29
- package/.docs/raw/reference/memory/{query.mdx → recall.mdx} +60 -61
- package/.docs/raw/reference/observability/tracing/bridges/otel.mdx +181 -0
- package/.docs/raw/reference/observability/tracing/configuration.mdx +292 -0
- package/.docs/raw/reference/observability/{ai-tracing → tracing}/exporters/arize.mdx +66 -18
- package/.docs/raw/reference/observability/{ai-tracing → tracing}/exporters/braintrust.mdx +35 -11
- package/.docs/raw/reference/observability/{ai-tracing → tracing}/exporters/cloud-exporter.mdx +32 -20
- package/.docs/raw/reference/observability/{ai-tracing → tracing}/exporters/console-exporter.mdx +53 -18
- package/.docs/raw/reference/observability/tracing/exporters/datadog.mdx +172 -0
- package/.docs/raw/reference/observability/{ai-tracing → tracing}/exporters/default-exporter.mdx +53 -42
- package/.docs/raw/reference/observability/tracing/exporters/laminar.mdx +139 -0
- package/.docs/raw/reference/observability/tracing/exporters/langfuse.mdx +184 -0
- package/.docs/raw/reference/observability/{ai-tracing → tracing}/exporters/langsmith.mdx +38 -9
- package/.docs/raw/reference/observability/{ai-tracing → tracing}/exporters/otel.mdx +87 -80
- package/.docs/raw/reference/observability/tracing/exporters/posthog.mdx +153 -0
- package/.docs/raw/reference/observability/tracing/exporters/sentry.mdx +224 -0
- package/.docs/raw/reference/observability/tracing/instances.mdx +166 -0
- package/.docs/raw/reference/observability/{ai-tracing → tracing}/interfaces.mdx +165 -94
- package/.docs/raw/reference/observability/{ai-tracing → tracing}/processors/sensitive-data-filter.mdx +6 -4
- package/.docs/raw/reference/observability/{ai-tracing/span.mdx → tracing/spans.mdx} +60 -44
- package/.docs/raw/reference/processors/batch-parts-processor.mdx +22 -18
- package/.docs/raw/reference/processors/language-detector.mdx +41 -37
- package/.docs/raw/reference/processors/message-history-processor.mdx +134 -0
- package/.docs/raw/reference/processors/moderation-processor.mdx +66 -35
- package/.docs/raw/reference/processors/pii-detector.mdx +67 -37
- package/.docs/raw/reference/processors/processor-interface.mdx +805 -0
- package/.docs/raw/reference/processors/prompt-injection-detector.mdx +40 -35
- package/.docs/raw/reference/processors/semantic-recall-processor.mdx +202 -0
- package/.docs/raw/reference/processors/system-prompt-scrubber.mdx +38 -36
- package/.docs/raw/reference/processors/token-limiter-processor.mdx +80 -40
- package/.docs/raw/reference/processors/tool-call-filter.mdx +127 -0
- package/.docs/raw/reference/processors/unicode-normalizer.mdx +26 -19
- package/.docs/raw/reference/processors/working-memory-processor.mdx +224 -0
- package/.docs/raw/reference/rag/chunk.mdx +7 -13
- package/.docs/raw/reference/rag/database-config.mdx +12 -10
- package/.docs/raw/reference/rag/document.mdx +3 -1
- package/.docs/raw/reference/rag/embeddings.mdx +8 -6
- package/.docs/raw/reference/rag/extract-params.mdx +58 -4
- package/.docs/raw/reference/rag/graph-rag.mdx +3 -1
- package/.docs/raw/reference/rag/metadata-filters.mdx +32 -9
- package/.docs/raw/reference/rag/rerank.mdx +4 -3
- package/.docs/raw/reference/rag/rerankWithScorer.mdx +3 -2
- package/.docs/raw/reference/server/create-route.mdx +330 -0
- package/.docs/raw/reference/server/express-adapter.mdx +221 -0
- package/.docs/raw/reference/server/fastify-adapter.mdx +130 -0
- package/.docs/raw/reference/server/hono-adapter.mdx +204 -0
- package/.docs/raw/reference/server/koa-adapter.mdx +129 -0
- package/.docs/raw/reference/server/mastra-server.mdx +334 -0
- package/.docs/raw/reference/server/routes.mdx +313 -0
- package/.docs/raw/reference/storage/cloudflare-d1.mdx +44 -2
- package/.docs/raw/reference/storage/cloudflare.mdx +13 -3
- package/.docs/raw/reference/storage/composite.mdx +245 -0
- package/.docs/raw/reference/storage/convex.mdx +166 -0
- package/.docs/raw/reference/storage/dynamodb.mdx +135 -13
- package/.docs/raw/reference/storage/lance.mdx +40 -3
- package/.docs/raw/reference/storage/libsql.mdx +92 -31
- package/.docs/raw/reference/storage/mongodb.mdx +149 -11
- package/.docs/raw/reference/storage/mssql.mdx +53 -6
- package/.docs/raw/{server-db/storage.mdx → reference/storage/overview.mdx} +15 -90
- package/.docs/raw/reference/storage/postgresql.mdx +268 -80
- package/.docs/raw/reference/storage/upstash.mdx +80 -3
- package/.docs/raw/reference/streaming/ChunkType.mdx +33 -5
- package/.docs/raw/reference/streaming/agents/MastraModelOutput.mdx +68 -7
- package/.docs/raw/reference/streaming/agents/stream.mdx +126 -156
- package/.docs/raw/reference/streaming/agents/streamLegacy.mdx +11 -9
- package/.docs/raw/reference/streaming/workflows/observeStream.mdx +13 -13
- package/.docs/raw/reference/streaming/workflows/{resumeStreamVNext.mdx → resumeStream.mdx} +60 -18
- package/.docs/raw/reference/streaming/workflows/stream.mdx +112 -38
- package/.docs/raw/reference/streaming/workflows/timeTravelStream.mdx +172 -0
- package/.docs/raw/reference/templates/overview.mdx +6 -8
- package/.docs/raw/reference/tools/client.mdx +5 -3
- package/.docs/raw/reference/tools/create-tool.mdx +306 -36
- package/.docs/raw/reference/tools/document-chunker-tool.mdx +3 -1
- package/.docs/raw/reference/tools/graph-rag-tool.mdx +59 -22
- package/.docs/raw/reference/tools/mcp-client.mdx +248 -31
- package/.docs/raw/reference/tools/mcp-server.mdx +442 -56
- package/.docs/raw/reference/tools/vector-query-tool.mdx +106 -42
- package/.docs/raw/reference/vectors/astra.mdx +6 -4
- package/.docs/raw/reference/vectors/chroma.mdx +87 -5
- package/.docs/raw/reference/vectors/convex.mdx +431 -0
- package/.docs/raw/reference/vectors/couchbase.mdx +39 -24
- package/.docs/raw/reference/vectors/duckdb.mdx +464 -0
- package/.docs/raw/reference/vectors/elasticsearch.mdx +318 -0
- package/.docs/raw/reference/vectors/lance.mdx +45 -27
- package/.docs/raw/reference/vectors/libsql.mdx +102 -15
- package/.docs/raw/reference/vectors/mongodb.mdx +133 -14
- package/.docs/raw/reference/vectors/opensearch.mdx +68 -20
- package/.docs/raw/reference/vectors/pg.mdx +105 -43
- package/.docs/raw/reference/vectors/pinecone.mdx +90 -8
- package/.docs/raw/reference/vectors/qdrant.mdx +185 -6
- package/.docs/raw/reference/vectors/s3vectors.mdx +10 -8
- package/.docs/raw/reference/vectors/turbopuffer.mdx +81 -5
- package/.docs/raw/reference/vectors/upstash.mdx +62 -7
- package/.docs/raw/reference/vectors/vectorize.mdx +6 -4
- package/.docs/raw/reference/voice/azure.mdx +98 -81
- package/.docs/raw/reference/voice/cloudflare.mdx +3 -1
- package/.docs/raw/reference/voice/composite-voice.mdx +76 -29
- package/.docs/raw/reference/voice/deepgram.mdx +3 -1
- package/.docs/raw/reference/voice/elevenlabs.mdx +3 -1
- package/.docs/raw/reference/voice/google-gemini-live.mdx +6 -3
- package/.docs/raw/reference/voice/google.mdx +162 -21
- package/.docs/raw/reference/voice/mastra-voice.mdx +3 -1
- package/.docs/raw/reference/voice/murf.mdx +3 -1
- package/.docs/raw/reference/voice/openai-realtime.mdx +6 -3
- package/.docs/raw/reference/voice/openai.mdx +3 -1
- package/.docs/raw/reference/voice/playai.mdx +3 -1
- package/.docs/raw/reference/voice/sarvam.mdx +3 -1
- package/.docs/raw/reference/voice/speechify.mdx +3 -1
- package/.docs/raw/reference/voice/voice.addInstructions.mdx +6 -4
- package/.docs/raw/reference/voice/voice.addTools.mdx +8 -5
- package/.docs/raw/reference/voice/voice.answer.mdx +6 -2
- package/.docs/raw/reference/voice/voice.close.mdx +5 -2
- package/.docs/raw/reference/voice/voice.connect.mdx +7 -3
- package/.docs/raw/reference/voice/voice.events.mdx +3 -1
- package/.docs/raw/reference/voice/voice.getSpeakers.mdx +4 -1
- package/.docs/raw/reference/voice/voice.listen.mdx +93 -53
- package/.docs/raw/reference/voice/voice.off.mdx +4 -2
- package/.docs/raw/reference/voice/voice.on.mdx +7 -3
- package/.docs/raw/reference/voice/voice.send.mdx +6 -2
- package/.docs/raw/reference/voice/voice.speak.mdx +82 -41
- package/.docs/raw/reference/voice/voice.updateConfig.mdx +4 -2
- package/.docs/raw/reference/workflows/run-methods/cancel.mdx +59 -9
- package/.docs/raw/reference/workflows/run-methods/restart.mdx +142 -0
- package/.docs/raw/reference/workflows/run-methods/resume.mdx +63 -17
- package/.docs/raw/reference/workflows/run-methods/start.mdx +68 -22
- package/.docs/raw/reference/workflows/run-methods/startAsync.mdx +145 -0
- package/.docs/raw/reference/workflows/run-methods/timeTravel.mdx +312 -0
- package/.docs/raw/reference/workflows/run.mdx +38 -15
- package/.docs/raw/reference/workflows/step.mdx +73 -7
- package/.docs/raw/reference/workflows/workflow-methods/branch.mdx +5 -3
- package/.docs/raw/reference/workflows/workflow-methods/commit.mdx +4 -2
- package/.docs/raw/reference/workflows/workflow-methods/create-run.mdx +45 -14
- package/.docs/raw/reference/workflows/workflow-methods/dountil.mdx +4 -2
- package/.docs/raw/reference/workflows/workflow-methods/dowhile.mdx +4 -2
- package/.docs/raw/reference/workflows/workflow-methods/foreach.mdx +72 -5
- package/.docs/raw/reference/workflows/workflow-methods/map.mdx +80 -3
- package/.docs/raw/reference/workflows/workflow-methods/parallel.mdx +4 -2
- package/.docs/raw/reference/workflows/workflow-methods/sleep.mdx +5 -7
- package/.docs/raw/reference/workflows/workflow-methods/sleepUntil.mdx +5 -7
- package/.docs/raw/reference/workflows/workflow-methods/then.mdx +4 -2
- package/.docs/raw/reference/workflows/workflow.mdx +207 -11
- package/.docs/raw/{auth → server/auth}/auth0.mdx +47 -28
- package/.docs/raw/{auth → server/auth}/clerk.mdx +42 -21
- package/.docs/raw/{auth → server/auth}/firebase.mdx +54 -32
- package/.docs/raw/{auth → server/auth}/index.mdx +9 -7
- package/.docs/raw/{auth → server/auth}/jwt.mdx +29 -17
- package/.docs/raw/{auth → server/auth}/supabase.mdx +52 -32
- package/.docs/raw/{auth → server/auth}/workos.mdx +48 -29
- package/.docs/raw/server/custom-adapters.mdx +396 -0
- package/.docs/raw/{server-db → server}/custom-api-routes.mdx +11 -11
- package/.docs/raw/{server-db → server}/mastra-client.mdx +41 -44
- package/.docs/raw/server/mastra-server.mdx +86 -0
- package/.docs/raw/{server-db → server}/middleware.mdx +43 -41
- package/.docs/raw/server/request-context.mdx +235 -0
- package/.docs/raw/server/server-adapters.mdx +410 -0
- package/.docs/raw/streaming/events.mdx +18 -9
- package/.docs/raw/streaming/overview.mdx +52 -28
- package/.docs/raw/streaming/tool-streaming.mdx +75 -33
- package/.docs/raw/streaming/workflow-streaming.mdx +15 -21
- package/.docs/raw/tools-mcp/advanced-usage.mdx +11 -9
- package/.docs/raw/tools-mcp/mcp-overview.mdx +72 -27
- package/.docs/raw/tools-mcp/overview.mdx +21 -20
- package/.docs/raw/voice/overview.mdx +124 -42
- package/.docs/raw/voice/speech-to-speech.mdx +14 -7
- package/.docs/raw/voice/speech-to-text.mdx +8 -4
- package/.docs/raw/voice/text-to-speech.mdx +7 -4
- package/.docs/raw/workflows/agents-and-tools.mdx +73 -26
- package/.docs/raw/workflows/control-flow.mdx +697 -134
- package/.docs/raw/workflows/error-handling.mdx +198 -42
- package/.docs/raw/workflows/human-in-the-loop.mdx +161 -210
- package/.docs/raw/workflows/input-data-mapping.mdx +11 -9
- package/.docs/raw/workflows/overview.mdx +202 -83
- package/.docs/raw/workflows/snapshots.mdx +28 -50
- package/.docs/raw/workflows/suspend-and-resume.mdx +125 -208
- package/.docs/raw/workflows/time-travel.mdx +317 -0
- package/.docs/raw/workflows/workflow-state.mdx +189 -0
- package/CHANGELOG.md +419 -4
- package/README.md +47 -2
- package/dist/{chunk-TUAHUTTB.js → chunk-4CM2BQNP.js} +27 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/logger.d.ts +3 -0
- package/dist/logger.d.ts.map +1 -1
- package/dist/prepare-docs/copy-raw.d.ts.map +1 -1
- package/dist/prepare-docs/package-changes.d.ts.map +1 -1
- package/dist/prepare-docs/prepare.js +1 -1
- package/dist/prompts/migration.d.ts +6 -0
- package/dist/prompts/migration.d.ts.map +1 -0
- package/dist/stdio.js +1107 -40
- package/dist/tools/course.d.ts.map +1 -1
- package/dist/tools/embedded-docs.d.ts +276 -0
- package/dist/tools/embedded-docs.d.ts.map +1 -0
- package/dist/tools/migration.d.ts +40 -0
- package/dist/tools/migration.d.ts.map +1 -0
- package/package.json +17 -17
- package/.docs/raw/deployment/cloud-providers/index.mdx +0 -55
- package/.docs/raw/deployment/server-deployment.mdx +0 -81
- package/.docs/raw/deployment/serverless-platforms/index.mdx +0 -55
- package/.docs/raw/frameworks/agentic-uis/ai-sdk.mdx +0 -671
- package/.docs/raw/frameworks/agentic-uis/cedar-os.mdx +0 -123
- package/.docs/raw/frameworks/agentic-uis/copilotkit.mdx +0 -382
- package/.docs/raw/frameworks/agentic-uis/openrouter.mdx +0 -176
- package/.docs/raw/frameworks/servers/express.mdx +0 -209
- package/.docs/raw/frameworks/web-frameworks/astro.mdx +0 -602
- package/.docs/raw/frameworks/web-frameworks/next-js.mdx +0 -379
- package/.docs/raw/frameworks/web-frameworks/sveltekit.mdx +0 -486
- package/.docs/raw/frameworks/web-frameworks/vite-react.mdx +0 -255
- package/.docs/raw/getting-started/templates.mdx +0 -65
- package/.docs/raw/mastra-cloud/dashboard.mdx +0 -100
- package/.docs/raw/mastra-cloud/setting-up.mdx +0 -105
- package/.docs/raw/memory/conversation-history.mdx +0 -23
- package/.docs/raw/memory/storage/memory-with-libsql.mdx +0 -140
- package/.docs/raw/memory/storage/memory-with-pg.mdx +0 -138
- package/.docs/raw/memory/storage/memory-with-upstash.mdx +0 -146
- package/.docs/raw/memory/threads-and-resources.mdx +0 -95
- package/.docs/raw/observability/ai-tracing/exporters/langfuse.mdx +0 -122
- package/.docs/raw/observability/ai-tracing/exporters/langsmith.mdx +0 -88
- package/.docs/raw/observability/ai-tracing/exporters/otel.mdx +0 -263
- package/.docs/raw/observability/ai-tracing/overview.mdx +0 -812
- package/.docs/raw/observability/nextjs-tracing.mdx +0 -109
- package/.docs/raw/observability/otel-tracing.mdx +0 -189
- package/.docs/raw/reference/agents/getScorers.mdx +0 -69
- package/.docs/raw/reference/agents/getWorkflows.mdx +0 -69
- package/.docs/raw/reference/client-js/workflows-legacy.mdx +0 -143
- package/.docs/raw/reference/core/getMCPServers.mdx +0 -36
- package/.docs/raw/reference/core/getScorerByName.mdx +0 -78
- package/.docs/raw/reference/core/getScorers.mdx +0 -43
- package/.docs/raw/reference/core/setTelemetry.mdx +0 -36
- package/.docs/raw/reference/evals/context-position.mdx +0 -197
- package/.docs/raw/reference/evals/context-relevancy.mdx +0 -196
- package/.docs/raw/reference/evals/contextual-recall.mdx +0 -196
- package/.docs/raw/reference/evals/summarization.mdx +0 -212
- package/.docs/raw/reference/legacyWorkflows/after.mdx +0 -89
- package/.docs/raw/reference/legacyWorkflows/afterEvent.mdx +0 -79
- package/.docs/raw/reference/legacyWorkflows/commit.mdx +0 -33
- package/.docs/raw/reference/legacyWorkflows/createRun.mdx +0 -76
- package/.docs/raw/reference/legacyWorkflows/else.mdx +0 -68
- package/.docs/raw/reference/legacyWorkflows/events.mdx +0 -305
- package/.docs/raw/reference/legacyWorkflows/execute.mdx +0 -110
- package/.docs/raw/reference/legacyWorkflows/if.mdx +0 -108
- package/.docs/raw/reference/legacyWorkflows/resume.mdx +0 -158
- package/.docs/raw/reference/legacyWorkflows/resumeWithEvent.mdx +0 -133
- package/.docs/raw/reference/legacyWorkflows/snapshots.mdx +0 -207
- package/.docs/raw/reference/legacyWorkflows/start.mdx +0 -87
- package/.docs/raw/reference/legacyWorkflows/step-class.mdx +0 -100
- package/.docs/raw/reference/legacyWorkflows/step-condition.mdx +0 -137
- package/.docs/raw/reference/legacyWorkflows/step-function.mdx +0 -93
- package/.docs/raw/reference/legacyWorkflows/step-options.mdx +0 -69
- package/.docs/raw/reference/legacyWorkflows/step-retries.mdx +0 -196
- package/.docs/raw/reference/legacyWorkflows/suspend.mdx +0 -70
- package/.docs/raw/reference/legacyWorkflows/then.mdx +0 -72
- package/.docs/raw/reference/legacyWorkflows/until.mdx +0 -168
- package/.docs/raw/reference/legacyWorkflows/watch.mdx +0 -124
- package/.docs/raw/reference/legacyWorkflows/while.mdx +0 -168
- package/.docs/raw/reference/legacyWorkflows/workflow.mdx +0 -234
- package/.docs/raw/reference/memory/getThreadsByResourceId.mdx +0 -79
- package/.docs/raw/reference/memory/getThreadsByResourceIdPaginated.mdx +0 -110
- package/.docs/raw/reference/observability/ai-tracing/ai-tracing.mdx +0 -186
- package/.docs/raw/reference/observability/ai-tracing/configuration.mdx +0 -238
- package/.docs/raw/reference/observability/ai-tracing/exporters/langfuse.mdx +0 -116
- package/.docs/raw/reference/observability/otel-tracing/otel-config.mdx +0 -117
- package/.docs/raw/reference/observability/otel-tracing/providers/arize-ax.mdx +0 -81
- package/.docs/raw/reference/observability/otel-tracing/providers/arize-phoenix.mdx +0 -121
- package/.docs/raw/reference/observability/otel-tracing/providers/braintrust.mdx +0 -40
- package/.docs/raw/reference/observability/otel-tracing/providers/dash0.mdx +0 -40
- package/.docs/raw/reference/observability/otel-tracing/providers/index.mdx +0 -20
- package/.docs/raw/reference/observability/otel-tracing/providers/keywordsai.mdx +0 -73
- package/.docs/raw/reference/observability/otel-tracing/providers/laminar.mdx +0 -41
- package/.docs/raw/reference/observability/otel-tracing/providers/langfuse.mdx +0 -84
- package/.docs/raw/reference/observability/otel-tracing/providers/langsmith.mdx +0 -48
- package/.docs/raw/reference/observability/otel-tracing/providers/langwatch.mdx +0 -43
- package/.docs/raw/reference/observability/otel-tracing/providers/new-relic.mdx +0 -40
- package/.docs/raw/reference/observability/otel-tracing/providers/signoz.mdx +0 -40
- package/.docs/raw/reference/observability/otel-tracing/providers/traceloop.mdx +0 -40
- package/.docs/raw/reference/scorers/answer-relevancy.mdx +0 -227
- package/.docs/raw/reference/scorers/answer-similarity.mdx +0 -439
- package/.docs/raw/reference/scorers/bias.mdx +0 -228
- package/.docs/raw/reference/scorers/completeness.mdx +0 -214
- package/.docs/raw/reference/scorers/content-similarity.mdx +0 -197
- package/.docs/raw/reference/scorers/context-precision.mdx +0 -352
- package/.docs/raw/reference/scorers/faithfulness.mdx +0 -241
- package/.docs/raw/reference/scorers/hallucination.mdx +0 -252
- package/.docs/raw/reference/scorers/keyword-coverage.mdx +0 -229
- package/.docs/raw/reference/scorers/prompt-alignment.mdx +0 -668
- package/.docs/raw/reference/scorers/textual-difference.mdx +0 -203
- package/.docs/raw/reference/scorers/tone-consistency.mdx +0 -211
- package/.docs/raw/reference/scorers/toxicity.mdx +0 -228
- package/.docs/raw/reference/streaming/workflows/observeStreamVNext.mdx +0 -47
- package/.docs/raw/reference/streaming/workflows/streamVNext.mdx +0 -153
- package/.docs/raw/reference/workflows/run-methods/watch.mdx +0 -73
- package/.docs/raw/reference/workflows/workflow-methods/sendEvent.mdx +0 -70
- package/.docs/raw/reference/workflows/workflow-methods/waitForEvent.mdx +0 -66
- package/.docs/raw/scorers/evals-old-api/custom-eval.mdx +0 -24
- package/.docs/raw/scorers/evals-old-api/overview.mdx +0 -106
- package/.docs/raw/scorers/evals-old-api/running-in-ci.mdx +0 -85
- package/.docs/raw/scorers/evals-old-api/textual-evals.mdx +0 -58
- package/.docs/raw/scorers/off-the-shelf-scorers.mdx +0 -50
- package/.docs/raw/server-db/production-server.mdx +0 -89
- package/.docs/raw/server-db/runtime-context.mdx +0 -193
- package/.docs/raw/workflows/inngest-workflow.mdx +0 -363
- package/.docs/raw/workflows-legacy/control-flow.mdx +0 -774
- package/.docs/raw/workflows-legacy/dynamic-workflows.mdx +0 -239
- package/.docs/raw/workflows-legacy/error-handling.mdx +0 -187
- package/.docs/raw/workflows-legacy/nested-workflows.mdx +0 -360
- package/.docs/raw/workflows-legacy/overview.mdx +0 -182
- package/.docs/raw/workflows-legacy/runtime-variables.mdx +0 -156
- package/.docs/raw/workflows-legacy/steps.mdx +0 -115
- package/.docs/raw/workflows-legacy/suspend-and-resume.mdx +0 -406
- package/.docs/raw/workflows-legacy/variables.mdx +0 -318
|
@@ -1,302 +1,502 @@
|
|
|
1
|
-
# @mastra/react
|
|
1
|
+
# @mastra/react
|
|
2
2
|
|
|
3
|
-
## 0.
|
|
3
|
+
## 0.1.1
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
- Updated dependencies
|
|
8
|
-
- @mastra/client-js@0.
|
|
7
|
+
- Updated dependencies:
|
|
8
|
+
- @mastra/client-js@1.0.1
|
|
9
9
|
|
|
10
|
-
## 0.
|
|
10
|
+
## 0.1.1-alpha.0
|
|
11
11
|
|
|
12
12
|
### Patch Changes
|
|
13
13
|
|
|
14
|
-
- Updated dependencies
|
|
15
|
-
- @mastra/client-js@0.
|
|
14
|
+
- Updated dependencies:
|
|
15
|
+
- @mastra/client-js@1.0.1-alpha.0
|
|
16
16
|
|
|
17
|
-
## 0.0
|
|
17
|
+
## 0.1.0
|
|
18
18
|
|
|
19
|
-
###
|
|
19
|
+
### Minor Changes
|
|
20
20
|
|
|
21
|
-
-
|
|
22
|
-
- @mastra/client-js@0.16.3
|
|
21
|
+
- Added human-in-the-loop (HITL) tool approval support for `generate()` method. ([#12056](https://github.com/mastra-ai/mastra/pull/12056))
|
|
23
22
|
|
|
24
|
-
|
|
23
|
+
**Why:** This provides parity between `stream()` and `generate()` for tool approval flows, allowing non-streaming use cases to leverage `requireToolApproval` without needing to switch to streaming.
|
|
25
24
|
|
|
26
|
-
|
|
25
|
+
Previously, tool approval with `requireToolApproval` only worked with `stream()`. Now you can use the same approval flow with `generate()` for non-streaming use cases.
|
|
27
26
|
|
|
28
|
-
|
|
29
|
-
- @mastra/client-js@0.16.3-alpha.0
|
|
27
|
+
**Using tool approval with generate()**
|
|
30
28
|
|
|
31
|
-
|
|
29
|
+
```typescript
|
|
30
|
+
const output = await agent.generate('Find user John', {
|
|
31
|
+
requireToolApproval: true,
|
|
32
|
+
});
|
|
32
33
|
|
|
33
|
-
|
|
34
|
+
// Check if a tool is waiting for approval
|
|
35
|
+
if (output.finishReason === 'suspended') {
|
|
36
|
+
console.log('Tool requires approval:', output.suspendPayload.toolName);
|
|
34
37
|
|
|
35
|
-
|
|
38
|
+
// Approve the tool call
|
|
39
|
+
const result = await agent.approveToolCallGenerate({
|
|
40
|
+
runId: output.runId,
|
|
41
|
+
toolCallId: output.suspendPayload.toolCallId,
|
|
42
|
+
});
|
|
36
43
|
|
|
37
|
-
|
|
44
|
+
console.log(result.text);
|
|
45
|
+
}
|
|
46
|
+
```
|
|
38
47
|
|
|
39
|
-
|
|
48
|
+
**Declining a tool call**
|
|
40
49
|
|
|
41
|
-
|
|
42
|
-
|
|
50
|
+
```typescript
|
|
51
|
+
if (output.finishReason === 'suspended') {
|
|
52
|
+
const result = await agent.declineToolCallGenerate({
|
|
53
|
+
runId: output.runId,
|
|
54
|
+
toolCallId: output.suspendPayload.toolCallId,
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
```
|
|
43
58
|
|
|
44
|
-
|
|
59
|
+
**New methods added:**
|
|
60
|
+
- `agent.approveToolCallGenerate({ runId, toolCallId })` - Approves a pending tool call and returns the complete result
|
|
61
|
+
- `agent.declineToolCallGenerate({ runId, toolCallId })` - Declines a pending tool call and returns the complete result
|
|
45
62
|
|
|
46
|
-
|
|
63
|
+
**Server routes added:**
|
|
64
|
+
- `POST /api/agents/:agentId/approve-tool-call-generate`
|
|
65
|
+
- `POST /api/agents/:agentId/decline-tool-call-generate`
|
|
47
66
|
|
|
48
|
-
|
|
67
|
+
The playground UI now also supports tool approval when using generate mode.
|
|
49
68
|
|
|
50
|
-
-
|
|
69
|
+
- Bump minimum required Node.js version to 22.13.0 ([#9706](https://github.com/mastra-ai/mastra/pull/9706))
|
|
51
70
|
|
|
52
|
-
-
|
|
71
|
+
- **Fixed:** Align `Agent.network` with core and update `@mastra/react` network usage. ([#12015](https://github.com/mastra-ai/mastra/pull/12015))
|
|
53
72
|
|
|
54
|
-
-
|
|
55
|
-
- @mastra/client-js@0.16.2-alpha.1
|
|
73
|
+
- Rename RuntimeContext to RequestContext ([#9511](https://github.com/mastra-ai/mastra/pull/9511))
|
|
56
74
|
|
|
57
|
-
|
|
75
|
+
- Unified observability schema with entity-based span identification ([#11132](https://github.com/mastra-ai/mastra/pull/11132))
|
|
58
76
|
|
|
59
|
-
|
|
77
|
+
## What changed
|
|
60
78
|
|
|
61
|
-
|
|
62
|
-
- @mastra/client-js@0.16.2-alpha.0
|
|
79
|
+
Spans now use a unified identification model with `entityId`, `entityType`, and `entityName` instead of separate `agentId`, `toolId`, `workflowId` fields.
|
|
63
80
|
|
|
64
|
-
|
|
81
|
+
**Before:**
|
|
65
82
|
|
|
66
|
-
|
|
83
|
+
```typescript
|
|
84
|
+
// Old span structure
|
|
85
|
+
span.agentId; // 'my-agent'
|
|
86
|
+
span.toolId; // undefined
|
|
87
|
+
span.workflowId; // undefined
|
|
88
|
+
```
|
|
67
89
|
|
|
68
|
-
|
|
90
|
+
**After:**
|
|
69
91
|
|
|
70
|
-
|
|
71
|
-
|
|
92
|
+
```typescript
|
|
93
|
+
// New span structure
|
|
94
|
+
span.entityType; // EntityType.AGENT
|
|
95
|
+
span.entityId; // 'my-agent'
|
|
96
|
+
span.entityName; // 'My Agent'
|
|
97
|
+
```
|
|
72
98
|
|
|
73
|
-
##
|
|
99
|
+
## New `listTraces()` API
|
|
74
100
|
|
|
75
|
-
|
|
101
|
+
Query traces with filtering, pagination, and sorting:
|
|
76
102
|
|
|
77
|
-
|
|
103
|
+
```typescript
|
|
104
|
+
const { spans, pagination } = await storage.listTraces({
|
|
105
|
+
filters: {
|
|
106
|
+
entityType: EntityType.AGENT,
|
|
107
|
+
entityId: 'my-agent',
|
|
108
|
+
userId: 'user-123',
|
|
109
|
+
environment: 'production',
|
|
110
|
+
status: TraceStatus.SUCCESS,
|
|
111
|
+
startedAt: { start: new Date('2024-01-01'), end: new Date('2024-01-31') },
|
|
112
|
+
},
|
|
113
|
+
pagination: { page: 0, perPage: 50 },
|
|
114
|
+
orderBy: { field: 'startedAt', direction: 'DESC' },
|
|
115
|
+
});
|
|
116
|
+
```
|
|
78
117
|
|
|
79
|
-
|
|
80
|
-
- @mastra/client-js@0.16.1-alpha.0
|
|
118
|
+
**Available filters:** date ranges (`startedAt`, `endedAt`), entity (`entityType`, `entityId`, `entityName`), identity (`userId`, `organizationId`), correlation IDs (`runId`, `sessionId`, `threadId`), deployment (`environment`, `source`, `serviceName`), `tags`, `metadata`, and `status`.
|
|
81
119
|
|
|
82
|
-
##
|
|
120
|
+
## New retrieval methods
|
|
121
|
+
- `getSpan({ traceId, spanId })` - Get a single span
|
|
122
|
+
- `getRootSpan({ traceId })` - Get the root span of a trace
|
|
123
|
+
- `getTrace({ traceId })` - Get all spans for a trace
|
|
83
124
|
|
|
84
|
-
|
|
125
|
+
## Backward compatibility
|
|
85
126
|
|
|
86
|
-
|
|
127
|
+
The legacy `getTraces()` method continues to work. When you pass `name: "agent run: my-agent"`, it automatically transforms to `entityId: "my-agent", entityType: AGENT`.
|
|
87
128
|
|
|
88
|
-
|
|
129
|
+
## Migration
|
|
89
130
|
|
|
90
|
-
-
|
|
131
|
+
**Automatic:** SQL-based stores (PostgreSQL, LibSQL, MSSQL) automatically add new columns to existing `spans` tables on initialization. Existing data is preserved with new columns set to `NULL`.
|
|
91
132
|
|
|
92
|
-
|
|
133
|
+
**No action required:** Your existing code continues to work. Adopt the new fields and `listTraces()` API at your convenience.
|
|
93
134
|
|
|
94
|
-
-
|
|
135
|
+
- Renamed `MastraMessageV2` to `MastraDBMessage` ([#9255](https://github.com/mastra-ai/mastra/pull/9255))
|
|
136
|
+
Made the return format of all methods that return db messages consistent. It's always `{ messages: MastraDBMessage[] }` now, and messages can be converted after that using `@mastra/ai-sdk/ui`'s `toAISdkV4/5Messages()` function
|
|
95
137
|
|
|
96
|
-
-
|
|
138
|
+
- Fix "MessagePartRuntime is not available" error when chatting with agents in Studio playground by replacing deprecated `useMessagePart` hook with `useAssistantState` ([#11039](https://github.com/mastra-ai/mastra/pull/11039))
|
|
97
139
|
|
|
98
|
-
|
|
140
|
+
### Patch Changes
|
|
99
141
|
|
|
100
|
-
-
|
|
142
|
+
- Remove redundant toolCalls from network agent finalResult ([#11189](https://github.com/mastra-ai/mastra/pull/11189))
|
|
101
143
|
|
|
102
|
-
|
|
103
|
-
- @mastra/client-js@0.16.0
|
|
144
|
+
The network agent's `finalResult` was storing `toolCalls` separately even though all tool call information is already present in the `messages` array (as `tool-call` and `tool-result` type messages). This caused significant token waste since the routing agent reads this data from memory on every iteration.
|
|
104
145
|
|
|
105
|
-
|
|
146
|
+
**Before:** `finalResult: { text, toolCalls, messages }`
|
|
147
|
+
**After:** `finalResult: { text, messages }`
|
|
106
148
|
|
|
107
|
-
|
|
149
|
+
+**Migration:** If you were accessing `finalResult.toolCalls`, retrieve tool calls from `finalResult.messages` by filtering for messages with `type: 'tool-call'`.
|
|
108
150
|
|
|
109
|
-
|
|
110
|
-
- @mastra/client-js@0.16.0-alpha.4
|
|
151
|
+
Updated `@mastra/react` to extract tool calls directly from the `messages` array instead of the removed `toolCalls` field when resolving initial messages from memory.
|
|
111
152
|
|
|
112
|
-
|
|
153
|
+
Fixes #11059
|
|
113
154
|
|
|
114
|
-
|
|
155
|
+
- Auto resume suspended tools if `autoResumeSuspendedTools: true` ([#11157](https://github.com/mastra-ai/mastra/pull/11157))
|
|
115
156
|
|
|
116
|
-
|
|
117
|
-
- @mastra/client-js@0.16.0-alpha.3
|
|
157
|
+
The flag can be added to `defaultAgentOptions` when creating the agent or to options in `agent.stream` or `agent.generate`
|
|
118
158
|
|
|
119
|
-
|
|
159
|
+
```typescript
|
|
160
|
+
const agent = new Agent({
|
|
161
|
+
//...agent information,
|
|
162
|
+
defaultAgentOptions: {
|
|
163
|
+
autoResumeSuspendedTools: true,
|
|
164
|
+
},
|
|
165
|
+
});
|
|
166
|
+
```
|
|
120
167
|
|
|
121
|
-
|
|
168
|
+
- Removes the deprecated `threadId` and `resourceId` options from `AgentExecutionOptions`. These have been deprecated for months in favour of the `memory` option. ([#11897](https://github.com/mastra-ai/mastra/pull/11897))
|
|
122
169
|
|
|
123
|
-
|
|
124
|
-
- @mastra/client-js@0.16.0-alpha.2
|
|
170
|
+
### Breaking Changes
|
|
125
171
|
|
|
126
|
-
|
|
172
|
+
#### `@mastra/core`
|
|
127
173
|
|
|
128
|
-
|
|
174
|
+
The `threadId` and `resourceId` options have been removed from `agent.generate()` and `agent.stream()`. Use the `memory` option instead:
|
|
129
175
|
|
|
130
|
-
|
|
176
|
+
```ts
|
|
177
|
+
// Before
|
|
178
|
+
await agent.stream('Hello', {
|
|
179
|
+
threadId: 'thread-123',
|
|
180
|
+
resourceId: 'user-456',
|
|
181
|
+
});
|
|
131
182
|
|
|
132
|
-
|
|
183
|
+
// After
|
|
184
|
+
await agent.stream('Hello', {
|
|
185
|
+
memory: {
|
|
186
|
+
thread: 'thread-123',
|
|
187
|
+
resource: 'user-456',
|
|
188
|
+
},
|
|
189
|
+
});
|
|
190
|
+
```
|
|
133
191
|
|
|
134
|
-
|
|
192
|
+
#### `@mastra/server`
|
|
135
193
|
|
|
136
|
-
-
|
|
137
|
-
- @mastra/client-js@0.16.0-alpha.1
|
|
194
|
+
The `threadId`, `resourceId`, and `resourceid` fields have been removed from the main agent execution body schema. The server now expects the `memory` option format in request bodies. Legacy routes (`/api/agents/:agentId/generate-legacy` and `/api/agents/:agentId/stream-legacy`) continue to support the deprecated fields.
|
|
138
195
|
|
|
139
|
-
|
|
196
|
+
#### `@mastra/react`
|
|
140
197
|
|
|
141
|
-
|
|
198
|
+
The `useChat` hook now internally converts `threadId` to the `memory` option format when making API calls. No changes needed in component code - the hook handles the conversion automatically.
|
|
142
199
|
|
|
143
|
-
|
|
200
|
+
#### `@mastra/client-js`
|
|
144
201
|
|
|
145
|
-
|
|
202
|
+
When using the client SDK agent methods, use the `memory` option instead of `threadId`/`resourceId`:
|
|
146
203
|
|
|
147
|
-
|
|
204
|
+
```ts
|
|
205
|
+
const agent = client.getAgent('my-agent');
|
|
148
206
|
|
|
149
|
-
|
|
207
|
+
// Before
|
|
208
|
+
await agent.generate([...], {
|
|
209
|
+
threadId: 'thread-123',
|
|
210
|
+
resourceId: 'user-456',
|
|
211
|
+
});
|
|
150
212
|
|
|
151
|
-
|
|
213
|
+
// After
|
|
214
|
+
await agent.generate([...], {
|
|
215
|
+
memory: {
|
|
216
|
+
thread: 'thread-123',
|
|
217
|
+
resource: 'user-456',
|
|
218
|
+
},
|
|
219
|
+
});
|
|
220
|
+
```
|
|
152
221
|
|
|
153
|
-
-
|
|
154
|
-
- @mastra/client-js@0.16.0-alpha.0
|
|
222
|
+
- Adjust the types to accept tracingOptions ([#10742](https://github.com/mastra-ai/mastra/pull/10742))
|
|
155
223
|
|
|
156
|
-
|
|
224
|
+
- Add human-in-the-loop (HITL) support to agent networks ([#11678](https://github.com/mastra-ai/mastra/pull/11678))
|
|
225
|
+
- Add suspend/resume capabilities to agent network
|
|
226
|
+
- Enable auto-resume for suspended network execution via `autoResumeSuspendedTools`
|
|
157
227
|
|
|
158
|
-
|
|
228
|
+
`agent.resumeNetwork`, `agent.approveNetworkToolCall`, `agent.declineNetworkToolCall`
|
|
159
229
|
|
|
160
|
-
-
|
|
161
|
-
- @mastra/client-js@0.15.2
|
|
230
|
+
- Fix TypeScript errors during build declaration generation ([#11682](https://github.com/mastra-ai/mastra/pull/11682))
|
|
162
231
|
|
|
163
|
-
|
|
232
|
+
Updated test file `toUIMessage.test.ts` to match current `@mastra/core` types:
|
|
233
|
+
- Changed `error` property from string to `Error` object (per `StepFailure` type)
|
|
234
|
+
- Added missing `resumeSchema` property to `tool-call-approval` payloads (per `ToolCallApprovalPayload` type)
|
|
235
|
+
- Added `zod` as peer/dev dependency for test type support
|
|
164
236
|
|
|
165
|
-
|
|
237
|
+
- Fix text parts incorrectly merging across tool calls ([#11783](https://github.com/mastra-ai/mastra/pull/11783))
|
|
166
238
|
|
|
167
|
-
|
|
168
|
-
- @mastra/client-js@0.15.2-alpha.1
|
|
239
|
+
Previously, when an agent produced text before and after a tool call (e.g., "Let me search for that" → tool call → "Here's what I found"), the text parts would be merged into a single part, losing the separation. This fix introduces a `textId` property to track separate text streams, ensuring each text stream maintains its own text part in the UI message.
|
|
169
240
|
|
|
170
|
-
|
|
241
|
+
Fixes #11577
|
|
171
242
|
|
|
172
|
-
|
|
243
|
+
- Configurable resourceId in react useChat ([#10461](https://github.com/mastra-ai/mastra/pull/10461))
|
|
173
244
|
|
|
174
|
-
-
|
|
175
|
-
- @mastra/client-js@0.15.2-alpha.0
|
|
245
|
+
- Add tool call approval ([#8649](https://github.com/mastra-ai/mastra/pull/8649))
|
|
176
246
|
|
|
177
|
-
|
|
247
|
+
- Fixes issues where thread and messages were not saved before suspension when tools require approval or call suspend() during execution. This caused conversation history to be lost if users refreshed during tool approval or suspension. ([#10369](https://github.com/mastra-ai/mastra/pull/10369))
|
|
178
248
|
|
|
179
|
-
|
|
249
|
+
**Backend changes (@mastra/core):**
|
|
250
|
+
- Add assistant messages to messageList immediately after LLM execution
|
|
251
|
+
- Flush messages synchronously before suspension to persist state
|
|
252
|
+
- Create thread if it doesn't exist before flushing
|
|
253
|
+
- Add metadata helpers to persist and remove tool approval state
|
|
254
|
+
- Pass saveQueueManager and memory context through workflow for immediate persistence
|
|
180
255
|
|
|
181
|
-
|
|
256
|
+
**Frontend changes (@mastra/react):**
|
|
257
|
+
- Extract runId from pending approvals to enable resumption after refresh
|
|
258
|
+
- Convert `pendingToolApprovals` (DB format) to `requireApprovalMetadata` (runtime format)
|
|
259
|
+
- Handle both `dynamic-tool` and `tool-{NAME}` part types for approval state
|
|
260
|
+
- Change runId from hardcoded `agentId` to unique `uuid()`
|
|
182
261
|
|
|
183
|
-
|
|
262
|
+
**UI changes (@mastra/playground-ui):**
|
|
263
|
+
- Handle tool calls awaiting approval in message initialization
|
|
264
|
+
- Convert approval metadata format when loading initial messages
|
|
184
265
|
|
|
185
|
-
|
|
266
|
+
Fixes #9745, #9906
|
|
186
267
|
|
|
187
|
-
-
|
|
268
|
+
- Fixed compatibility with updated `@mastra/client-js` generate and stream API signatures ([#12011](https://github.com/mastra-ai/mastra/pull/12011))
|
|
188
269
|
|
|
189
|
-
-
|
|
190
|
-
- @mastra/client-js@0.15.1
|
|
270
|
+
- Fixed agent network not returning text response when routing agent handles requests without delegation. ([#11497](https://github.com/mastra-ai/mastra/pull/11497))
|
|
191
271
|
|
|
192
|
-
|
|
272
|
+
**What changed:**
|
|
273
|
+
- Agent networks now correctly stream text responses when the routing agent decides to handle a request itself instead of delegating to sub-agents, workflows, or tools
|
|
274
|
+
- Added fallback in transformers to ensure text is always returned even if core events are missing
|
|
193
275
|
|
|
194
|
-
|
|
276
|
+
**Why this matters:**
|
|
277
|
+
Previously, when using `toAISdkV5Stream` or `networkRoute()` outside of the Mastra Studio UI, no text content was returned when the routing agent handled requests directly. This fix ensures consistent behavior across all API routes.
|
|
195
278
|
|
|
196
|
-
|
|
197
|
-
- @mastra/client-js@0.15.1-alpha.4
|
|
279
|
+
Fixes #11219
|
|
198
280
|
|
|
199
|
-
|
|
281
|
+
- Fix multi modal in react sdk ([#9373](https://github.com/mastra-ai/mastra/pull/9373))
|
|
200
282
|
|
|
201
|
-
|
|
283
|
+
- Display network completion validation results and scorer feedback in the Playground when viewing agent network runs, letting users see pass/fail status and actionable feedback from completion scorers ([#11562](https://github.com/mastra-ai/mastra/pull/11562))
|
|
284
|
+
|
|
285
|
+
- Support new Workflow tripwire run status. Tripwires that are thrown from within a workflow will now bubble up and return a graceful state with information about tripwires. ([#10947](https://github.com/mastra-ai/mastra/pull/10947))
|
|
286
|
+
|
|
287
|
+
When a workflow contains an agent step that triggers a tripwire, the workflow returns with `status: 'tripwire'` and includes tripwire details:
|
|
288
|
+
|
|
289
|
+
```typescript
|
|
290
|
+
const run = await workflow.createRun();
|
|
291
|
+
const result = await run.start({ inputData: { message: 'Hello' } });
|
|
292
|
+
|
|
293
|
+
if (result.status === 'tripwire') {
|
|
294
|
+
console.log('Workflow terminated by tripwire:', result.tripwire?.reason);
|
|
295
|
+
console.log('Processor ID:', result.tripwire?.processorId);
|
|
296
|
+
console.log('Retry requested:', result.tripwire?.retry);
|
|
297
|
+
}
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
Adds new UI state for tripwire in agent chat and workflow UI.
|
|
301
|
+
|
|
302
|
+
This is distinct from `status: 'failed'` which indicates an unexpected error. A tripwire status means a processor intentionally stopped execution (e.g., for content moderation).
|
|
202
303
|
|
|
203
|
-
-
|
|
204
|
-
-
|
|
304
|
+
- - Add persistence for custom data chunks (`data-*` parts) emitted via `writer.custom()` in tools ([#10884](https://github.com/mastra-ai/mastra/pull/10884))
|
|
305
|
+
- Data chunks are now saved to message storage so they survive page refreshes
|
|
306
|
+
- Update `@assistant-ui/react` to v0.11.47 with native `DataMessagePart` support
|
|
307
|
+
- Convert `data-*` parts to `DataMessagePart` format (`{ type: 'data', name: string, data: T }`)
|
|
308
|
+
- Update related `@assistant-ui/*` packages for compatibility
|
|
309
|
+
- Updated dependencies [[`6edf340`](https://github.com/mastra-ai/mastra/commit/6edf3402f6a46ee8def2f42a2287785251fbffd6), [`bc72b52`](https://github.com/mastra-ai/mastra/commit/bc72b529ee4478fe89ecd85a8be47ce0127b82a0), [`ed3e3dd`](https://github.com/mastra-ai/mastra/commit/ed3e3ddec69d564fe2b125e083437f76331f1283), [`c042bd0`](https://github.com/mastra-ai/mastra/commit/c042bd0b743e0e86199d0cb83344ca7690e34a9c), [`3852192`](https://github.com/mastra-ai/mastra/commit/3852192c81b2a4f1f883f17d80ce50e0c60dba55), [`fec5129`](https://github.com/mastra-ai/mastra/commit/fec5129de7fc64423ea03661a56cef31dc747a0d), [`9650cce`](https://github.com/mastra-ai/mastra/commit/9650cce52a1d917ff9114653398e2a0f5c3ba808), [`3443770`](https://github.com/mastra-ai/mastra/commit/3443770662df8eb24c9df3589b2792d78cfcb811), [`f0a07e0`](https://github.com/mastra-ai/mastra/commit/f0a07e0111b3307c5fabfa4094c5c2cfb734fbe6), [`aaa40e7`](https://github.com/mastra-ai/mastra/commit/aaa40e788628b319baa8e889407d11ad626547fa), [`695a621`](https://github.com/mastra-ai/mastra/commit/695a621528bdabeb87f83c2277cf2bb084c7f2b4), [`dd1c38d`](https://github.com/mastra-ai/mastra/commit/dd1c38d1b75f1b695c27b40d8d9d6ed00d5e0f6f), [`5948e6a`](https://github.com/mastra-ai/mastra/commit/5948e6a5146c83666ba3f294b2be576c82a513fb), [`ad7e8f1`](https://github.com/mastra-ai/mastra/commit/ad7e8f16ac843cbd16687ad47b66ba96bcffe111), [`dff01d8`](https://github.com/mastra-ai/mastra/commit/dff01d81ce1f4e4087cfac20fa868e6db138dd14), [`9d5059e`](https://github.com/mastra-ai/mastra/commit/9d5059eae810829935fb08e81a9bb7ecd5b144a7), [`e1b7118`](https://github.com/mastra-ai/mastra/commit/e1b7118f42ca0a97247afc75e57dcd5fdf987752), [`461e448`](https://github.com/mastra-ai/mastra/commit/461e448852fe999506a6046d50b1efc27d8aa378), [`441c7b6`](https://github.com/mastra-ai/mastra/commit/441c7b6665915cfa7fd625fded8c0f518530bf10), [`b7de533`](https://github.com/mastra-ai/mastra/commit/b7de53361667eb51fefd89fcaed924f3c57cee8d), [`ef756c6`](https://github.com/mastra-ai/mastra/commit/ef756c65f82d16531c43f49a27290a416611e526), [`1b85674`](https://github.com/mastra-ai/mastra/commit/1b85674123708d9b85834dccc9eae601a9d0891c), [`5a1ede1`](https://github.com/mastra-ai/mastra/commit/5a1ede1f7ab527b9ead11f7eee2f73e67aeca9e4), [`47b1c16`](https://github.com/mastra-ai/mastra/commit/47b1c16a01c7ffb6765fe1e499b49092f8b7eba3), [`7051bf3`](https://github.com/mastra-ai/mastra/commit/7051bf38b3b122a069008f861f7bfc004a6d9f6e), [`1ee3411`](https://github.com/mastra-ai/mastra/commit/1ee34113192b11aa8bcdd8d9d5830ae13254b345), [`dbd9db0`](https://github.com/mastra-ai/mastra/commit/dbd9db0d5c2797a210b9098e7e3e613718e5442f), [`6a86fe5`](https://github.com/mastra-ai/mastra/commit/6a86fe56b8ff53ca2eb3ed87ffc0748749ebadce), [`898a972`](https://github.com/mastra-ai/mastra/commit/898a9727d286c2510d6b702dfd367e6aaf5c6b0f), [`0793497`](https://github.com/mastra-ai/mastra/commit/079349753620c40246ffd673e3f9d7d9820beff3), [`026b848`](https://github.com/mastra-ai/mastra/commit/026b8483fbf5b6d977be8f7e6aac8d15c75558ac), [`66741d1`](https://github.com/mastra-ai/mastra/commit/66741d1a99c4f42cf23a16109939e8348ac6852e), [`610a70b`](https://github.com/mastra-ai/mastra/commit/610a70bdad282079f0c630e0d7bb284578f20151), [`5df9cce`](https://github.com/mastra-ai/mastra/commit/5df9cce1a753438413f64c11eeef8f845745c2a8), [`f93d992`](https://github.com/mastra-ai/mastra/commit/f93d992a37d5431ab4a71246835d403ef7c4ce85), [`c576fc0`](https://github.com/mastra-ai/mastra/commit/c576fc0b100b2085afded91a37c97a0ea0ec09c7), [`9f4a683`](https://github.com/mastra-ai/mastra/commit/9f4a6833e88b52574665c028fd5508ad5c2f6004), [`595a3b8`](https://github.com/mastra-ai/mastra/commit/595a3b8727c901f44e333909c09843c711224440), [`ea0b8de`](https://github.com/mastra-ai/mastra/commit/ea0b8dec0d4bc86a72a7e75b2f56c6017c58786d), [`d90ea65`](https://github.com/mastra-ai/mastra/commit/d90ea6536f7aa51c6545a4e9215b55858e98e16d), [`261473a`](https://github.com/mastra-ai/mastra/commit/261473ac637e633064a22076671e2e02b002214d), [`eb09742`](https://github.com/mastra-ai/mastra/commit/eb09742197f66c4c38154c3beec78313e69760b2), [`e4d366a`](https://github.com/mastra-ai/mastra/commit/e4d366aeb500371dd4210d6aa8361a4c21d87034), [`486352b`](https://github.com/mastra-ai/mastra/commit/486352b66c746602b68a95839f830de14c7fb8c0), [`d171e55`](https://github.com/mastra-ai/mastra/commit/d171e559ead9f52ec728d424844c8f7b164c4510), [`632fdb8`](https://github.com/mastra-ai/mastra/commit/632fdb8b3cd9ff6f90399256d526db439fc1758b), [`a1bd7b8`](https://github.com/mastra-ai/mastra/commit/a1bd7b8571db16b94eb01588f451a74758c96d65), [`0633100`](https://github.com/mastra-ai/mastra/commit/0633100a911ad22f5256471bdf753da21c104742), [`354ad0b`](https://github.com/mastra-ai/mastra/commit/354ad0b7b1b8183ac567f236a884fc7ede6d7138), [`519d9e6`](https://github.com/mastra-ai/mastra/commit/519d9e6d31910457c54bdae8b7b7cb3a69f41831), [`844ea5d`](https://github.com/mastra-ai/mastra/commit/844ea5dc0c248961e7bf73629ae7dcff503e853c), [`5fe71bc`](https://github.com/mastra-ai/mastra/commit/5fe71bc925dfce597df69c89241f33b378028c63), [`dfe3f8c`](https://github.com/mastra-ai/mastra/commit/dfe3f8c7376ffe159236819e19ca522143c1f972), [`f0f8f12`](https://github.com/mastra-ai/mastra/commit/f0f8f125c308f2d0fd36942ef652fd852df7522f), [`e8dcd71`](https://github.com/mastra-ai/mastra/commit/e8dcd71fa5e473c8ba1d6dad99eef182d20a0491), [`e849603`](https://github.com/mastra-ai/mastra/commit/e849603a596269069f58a438b98449ea2770493d), [`63f2f18`](https://github.com/mastra-ai/mastra/commit/63f2f1863dffe3ad23221d0660ed4e4f2b81789d), [`c23200d`](https://github.com/mastra-ai/mastra/commit/c23200ddfd60830effb39329674ba4ca93be6aac), [`9312dcd`](https://github.com/mastra-ai/mastra/commit/9312dcd1c6f5b321929e7d382e763d95fdc030f5), [`184f01d`](https://github.com/mastra-ai/mastra/commit/184f01d1f534ec0be9703d3996f2e088b4a560eb), [`363284b`](https://github.com/mastra-ai/mastra/commit/363284bb974e850f06f40f89a28c79d9f432d7e4), [`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc), [`58e3931`](https://github.com/mastra-ai/mastra/commit/58e3931af9baa5921688566210f00fb0c10479fa), [`439eaf7`](https://github.com/mastra-ai/mastra/commit/439eaf75447809b05e326666675a4dcbf9c334ce), [`b7959e6`](https://github.com/mastra-ai/mastra/commit/b7959e6e25a46b480f9ea2217c4c6c588c423791), [`a7ce182`](https://github.com/mastra-ai/mastra/commit/a7ce1822a8785ce45d62dd5c911af465e144f7d7), [`0bddc6d`](https://github.com/mastra-ai/mastra/commit/0bddc6d8dbd6f6008c0cba2e4960a2da75a55af1), [`21735a7`](https://github.com/mastra-ai/mastra/commit/21735a7ef306963554a69a89b44f06c3bcd85141), [`3bf6c5f`](https://github.com/mastra-ai/mastra/commit/3bf6c5f104c25226cd84e0c77f9dec15f2cac2db), [`08bb631`](https://github.com/mastra-ai/mastra/commit/08bb631ae2b14684b2678e3549d0b399a6f0561e), [`a0c8c1b`](https://github.com/mastra-ai/mastra/commit/a0c8c1b87d4fee252aebda73e8637fbe01d761c9), [`6cbb549`](https://github.com/mastra-ai/mastra/commit/6cbb549475201a2fbf158f0fd7323f6495f46d08), [`c218bd3`](https://github.com/mastra-ai/mastra/commit/c218bd3759e32423735b04843a09404572631014), [`e1bb9c9`](https://github.com/mastra-ai/mastra/commit/e1bb9c94b4eb68b019ae275981be3feb769b5365), [`106c960`](https://github.com/mastra-ai/mastra/commit/106c960df5d110ec15ac8f45de8858597fb90ad5)]:
|
|
310
|
+
- @mastra/client-js@1.0.0
|
|
205
311
|
|
|
206
|
-
## 0.0
|
|
312
|
+
## 0.1.0-beta.27
|
|
207
313
|
|
|
208
314
|
### Patch Changes
|
|
209
315
|
|
|
210
|
-
- Updated dependencies
|
|
211
|
-
- @mastra/client-js@0.
|
|
316
|
+
- Updated dependencies:
|
|
317
|
+
- @mastra/client-js@1.0.0-beta.27
|
|
212
318
|
|
|
213
|
-
## 0.0
|
|
319
|
+
## 0.1.0-beta.26
|
|
214
320
|
|
|
215
321
|
### Patch Changes
|
|
216
322
|
|
|
217
|
-
-
|
|
323
|
+
- Updated dependencies [[`026b848`](https://github.com/mastra-ai/mastra/commit/026b8483fbf5b6d977be8f7e6aac8d15c75558ac)]:
|
|
324
|
+
- @mastra/client-js@1.0.0-beta.26
|
|
218
325
|
|
|
219
|
-
|
|
326
|
+
## 0.1.0-beta.25
|
|
220
327
|
|
|
221
|
-
|
|
328
|
+
### Minor Changes
|
|
222
329
|
|
|
223
|
-
-
|
|
330
|
+
- Added human-in-the-loop (HITL) tool approval support for `generate()` method. ([#12056](https://github.com/mastra-ai/mastra/pull/12056))
|
|
224
331
|
|
|
225
|
-
|
|
226
|
-
- @mastra/client-js@0.15.1-alpha.1
|
|
332
|
+
**Why:** This provides parity between `stream()` and `generate()` for tool approval flows, allowing non-streaming use cases to leverage `requireToolApproval` without needing to switch to streaming.
|
|
227
333
|
|
|
228
|
-
|
|
334
|
+
Previously, tool approval with `requireToolApproval` only worked with `stream()`. Now you can use the same approval flow with `generate()` for non-streaming use cases.
|
|
229
335
|
|
|
230
|
-
|
|
336
|
+
**Using tool approval with generate()**
|
|
231
337
|
|
|
232
|
-
|
|
233
|
-
|
|
338
|
+
```typescript
|
|
339
|
+
const output = await agent.generate('Find user John', {
|
|
340
|
+
requireToolApproval: true,
|
|
341
|
+
});
|
|
234
342
|
|
|
235
|
-
|
|
343
|
+
// Check if a tool is waiting for approval
|
|
344
|
+
if (output.finishReason === 'suspended') {
|
|
345
|
+
console.log('Tool requires approval:', output.suspendPayload.toolName);
|
|
236
346
|
|
|
237
|
-
|
|
347
|
+
// Approve the tool call
|
|
348
|
+
const result = await agent.approveToolCallGenerate({
|
|
349
|
+
runId: output.runId,
|
|
350
|
+
toolCallId: output.suspendPayload.toolCallId,
|
|
351
|
+
});
|
|
352
|
+
|
|
353
|
+
console.log(result.text);
|
|
354
|
+
}
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
**Declining a tool call**
|
|
238
358
|
|
|
239
|
-
|
|
359
|
+
```typescript
|
|
360
|
+
if (output.finishReason === 'suspended') {
|
|
361
|
+
const result = await agent.declineToolCallGenerate({
|
|
362
|
+
runId: output.runId,
|
|
363
|
+
toolCallId: output.suspendPayload.toolCallId,
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
```
|
|
240
367
|
|
|
241
|
-
|
|
368
|
+
**New methods added:**
|
|
369
|
+
- `agent.approveToolCallGenerate({ runId, toolCallId })` - Approves a pending tool call and returns the complete result
|
|
370
|
+
- `agent.declineToolCallGenerate({ runId, toolCallId })` - Declines a pending tool call and returns the complete result
|
|
242
371
|
|
|
243
|
-
|
|
244
|
-
-
|
|
372
|
+
**Server routes added:**
|
|
373
|
+
- `POST /api/agents/:agentId/approve-tool-call-generate`
|
|
374
|
+
- `POST /api/agents/:agentId/decline-tool-call-generate`
|
|
245
375
|
|
|
246
|
-
|
|
376
|
+
The playground UI now also supports tool approval when using generate mode.
|
|
247
377
|
|
|
248
378
|
### Patch Changes
|
|
249
379
|
|
|
250
|
-
-
|
|
380
|
+
- Updated dependencies [[`ed3e3dd`](https://github.com/mastra-ai/mastra/commit/ed3e3ddec69d564fe2b125e083437f76331f1283), [`47b1c16`](https://github.com/mastra-ai/mastra/commit/47b1c16a01c7ffb6765fe1e499b49092f8b7eba3), [`9312dcd`](https://github.com/mastra-ai/mastra/commit/9312dcd1c6f5b321929e7d382e763d95fdc030f5)]:
|
|
381
|
+
- @mastra/client-js@1.0.0-beta.25
|
|
251
382
|
|
|
252
|
-
|
|
383
|
+
## 0.1.0-beta.23
|
|
253
384
|
|
|
254
|
-
|
|
255
|
-
- @mastra/client-js@0.15.0-alpha.0
|
|
385
|
+
### Major Changes
|
|
256
386
|
|
|
257
|
-
|
|
387
|
+
- **Fixed:** Align `Agent.network` with core and update `@mastra/react` network usage. ([#12015](https://github.com/mastra-ai/mastra/pull/12015))
|
|
258
388
|
|
|
259
389
|
### Patch Changes
|
|
260
390
|
|
|
261
|
-
-
|
|
262
|
-
- @mastra/client-js@0.14.1
|
|
391
|
+
- Fixed compatibility with updated `@mastra/client-js` generate and stream API signatures ([#12011](https://github.com/mastra-ai/mastra/pull/12011))
|
|
263
392
|
|
|
264
|
-
|
|
393
|
+
- Updated dependencies [[`461e448`](https://github.com/mastra-ai/mastra/commit/461e448852fe999506a6046d50b1efc27d8aa378)]:
|
|
394
|
+
- @mastra/client-js@1.0.0-beta.24
|
|
395
|
+
|
|
396
|
+
## 0.1.0-beta.23
|
|
265
397
|
|
|
266
398
|
### Patch Changes
|
|
267
399
|
|
|
268
|
-
- Updated dependencies
|
|
269
|
-
- @mastra/client-js@0.
|
|
400
|
+
- Updated dependencies:
|
|
401
|
+
- @mastra/client-js@1.0.0-beta.23
|
|
270
402
|
|
|
271
|
-
## 0.0
|
|
403
|
+
## 0.1.0-beta.22
|
|
272
404
|
|
|
273
405
|
### Patch Changes
|
|
274
406
|
|
|
275
|
-
-
|
|
276
|
-
- @mastra/client-js@0.14.1-alpha.0
|
|
407
|
+
- Removes the deprecated `threadId` and `resourceId` options from `AgentExecutionOptions`. These have been deprecated for months in favour of the `memory` option. ([#11897](https://github.com/mastra-ai/mastra/pull/11897))
|
|
277
408
|
|
|
278
|
-
|
|
409
|
+
### Breaking Changes
|
|
279
410
|
|
|
280
|
-
|
|
411
|
+
#### `@mastra/core`
|
|
281
412
|
|
|
282
|
-
|
|
413
|
+
The `threadId` and `resourceId` options have been removed from `agent.generate()` and `agent.stream()`. Use the `memory` option instead:
|
|
283
414
|
|
|
284
|
-
|
|
285
|
-
|
|
415
|
+
```ts
|
|
416
|
+
// Before
|
|
417
|
+
await agent.stream('Hello', {
|
|
418
|
+
threadId: 'thread-123',
|
|
419
|
+
resourceId: 'user-456',
|
|
420
|
+
});
|
|
286
421
|
|
|
287
|
-
|
|
422
|
+
// After
|
|
423
|
+
await agent.stream('Hello', {
|
|
424
|
+
memory: {
|
|
425
|
+
thread: 'thread-123',
|
|
426
|
+
resource: 'user-456',
|
|
427
|
+
},
|
|
428
|
+
});
|
|
429
|
+
```
|
|
288
430
|
|
|
289
|
-
|
|
431
|
+
#### `@mastra/server`
|
|
432
|
+
|
|
433
|
+
The `threadId`, `resourceId`, and `resourceid` fields have been removed from the main agent execution body schema. The server now expects the `memory` option format in request bodies. Legacy routes (`/api/agents/:agentId/generate-legacy` and `/api/agents/:agentId/stream-legacy`) continue to support the deprecated fields.
|
|
434
|
+
|
|
435
|
+
#### `@mastra/react`
|
|
436
|
+
|
|
437
|
+
The `useChat` hook now internally converts `threadId` to the `memory` option format when making API calls. No changes needed in component code - the hook handles the conversion automatically.
|
|
438
|
+
|
|
439
|
+
#### `@mastra/client-js`
|
|
440
|
+
|
|
441
|
+
When using the client SDK agent methods, use the `memory` option instead of `threadId`/`resourceId`:
|
|
442
|
+
|
|
443
|
+
```ts
|
|
444
|
+
const agent = client.getAgent('my-agent');
|
|
290
445
|
|
|
291
|
-
|
|
446
|
+
// Before
|
|
447
|
+
await agent.generate({
|
|
448
|
+
messages: [...],
|
|
449
|
+
threadId: 'thread-123',
|
|
450
|
+
resourceId: 'user-456',
|
|
451
|
+
});
|
|
292
452
|
|
|
293
|
-
|
|
294
|
-
|
|
453
|
+
// After
|
|
454
|
+
await agent.generate({
|
|
455
|
+
messages: [...],
|
|
456
|
+
memory: {
|
|
457
|
+
thread: 'thread-123',
|
|
458
|
+
resource: 'user-456',
|
|
459
|
+
},
|
|
460
|
+
});
|
|
461
|
+
```
|
|
295
462
|
|
|
296
|
-
|
|
463
|
+
- Add human-in-the-loop (HITL) support to agent networks ([#11678](https://github.com/mastra-ai/mastra/pull/11678))
|
|
464
|
+
- Add suspend/resume capabilities to agent network
|
|
465
|
+
- Enable auto-resume for suspended network execution via `autoResumeSuspendedTools`
|
|
466
|
+
|
|
467
|
+
`agent.resumeNetwork`, `agent.approveNetworkToolCall`, `agent.declineNetworkToolCall`
|
|
468
|
+
|
|
469
|
+
- Fix text parts incorrectly merging across tool calls ([#11783](https://github.com/mastra-ai/mastra/pull/11783))
|
|
470
|
+
|
|
471
|
+
Previously, when an agent produced text before and after a tool call (e.g., "Let me search for that" → tool call → "Here's what I found"), the text parts would be merged into a single part, losing the separation. This fix introduces a `textId` property to track separate text streams, ensuring each text stream maintains its own text part in the UI message.
|
|
472
|
+
|
|
473
|
+
Fixes #11577
|
|
474
|
+
|
|
475
|
+
- Updated dependencies [[`9d5059e`](https://github.com/mastra-ai/mastra/commit/9d5059eae810829935fb08e81a9bb7ecd5b144a7), [`ef756c6`](https://github.com/mastra-ai/mastra/commit/ef756c65f82d16531c43f49a27290a416611e526), [`610a70b`](https://github.com/mastra-ai/mastra/commit/610a70bdad282079f0c630e0d7bb284578f20151)]:
|
|
476
|
+
- @mastra/client-js@1.0.0-beta.22
|
|
477
|
+
|
|
478
|
+
## 0.1.0-beta.21
|
|
297
479
|
|
|
298
480
|
### Patch Changes
|
|
299
481
|
|
|
300
|
-
- Updated dependencies
|
|
482
|
+
- Updated dependencies:
|
|
483
|
+
- @mastra/client-js@1.0.0-beta.21
|
|
484
|
+
|
|
485
|
+
## 0.1.0-beta.20
|
|
486
|
+
|
|
487
|
+
### Patch Changes
|
|
488
|
+
|
|
489
|
+
- Fix TypeScript errors during build declaration generation ([#11682](https://github.com/mastra-ai/mastra/pull/11682))
|
|
490
|
+
|
|
491
|
+
Updated test file `toUIMessage.test.ts` to match current `@mastra/core` types:
|
|
492
|
+
- Changed `error` property from string to `Error` object (per `StepFailure` type)
|
|
493
|
+
- Added missing `resumeSchema` property to `tool-call-approval` payloads (per `ToolCallApprovalPayload` type)
|
|
494
|
+
- Added `zod` as peer/dev dependency for test type support
|
|
495
|
+
|
|
496
|
+
- Fixed agent network not returning text response when routing agent handles requests without delegation. ([#11497](https://github.com/mastra-ai/mastra/pull/11497))
|
|
497
|
+
|
|
498
|
+
**What changed:**
|
|
499
|
+
- Agent networks now correctly stream text responses when the routing agent decides to handle a request itself instead of delegating to sub-agents, workflows, or tools
|
|
500
|
+
- Added fallback in transformers to ensure text is always returned even if core events are missing
|
|
301
501
|
|
|
302
|
-
...
|
|
502
|
+
... 609 more lines hidden. See full changelog in package directory.
|