0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00
Commit graph

57 commits

Author SHA1 Message Date
Ward Peeters
b2ce66cef8
chore: run lint-staged for root files and the 16 packages without a config (#29898)
Co-authored-by: mastracode <284800079+mastra-platform[bot]@users.noreply.github.com>
2026-11-10 14:08:55 +01:00
dane-ai-mastra[bot]
6a191d46dc chore: version - exit prerelease mode 2026-10-28 13:15:52 +00:00
dane-ai-mastra[bot]
2c646b53d0
chore: version packages (alpha) (#28399)
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and publish to npm
yourself or [setup this action to publish
automatically](https://github.com/changesets/action#with-publishing). If
you're not ready to do a release yet, that's fine, whenever you add more
changesets to main, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

`main` is currently in **pre mode** so this branch has prereleases
rather than normal releases. If you want to exit prereleases, run
`changeset pre exit` on `main`.

⚠️⚠️⚠️⚠️⚠️⚠️

# Releases

> The changelog information of each package has been omitted from this
message, as the content exceeds the size limit.

## @mastra/factory@0.25.0-alpha.5


## @mastra/langsmith@1.4.0-alpha.2


## @mastra/connect@1.2.0-alpha.2


## @mastra/core@1.80.0-alpha.4


## @mastra/playground-ui@66.0.0-alpha.4


## @mastra/acp@0.4.4-alpha.0


## @mastra/claude@0.3.4-alpha.0


## @mastra/cursor@0.3.4-alpha.0


## @mastra/openai@1.1.4-alpha.0


## @mastra/auth-auth0@1.2.6-alpha.0


## @mastra/auth-better-auth@1.1.9-alpha.0


## @mastra/auth-clerk@1.3.2-alpha.0


## @mastra/auth-cloud@1.2.8-alpha.0


## @mastra/auth-firebase@1.1.5-alpha.0


## @mastra/auth-google@0.1.7-alpha.0


## @mastra/auth-neon@0.3.5-alpha.0


## @mastra/auth-okta@0.2.6-alpha.0


## @mastra/auth-studio@1.3.11-alpha.1


## @mastra/auth-supabase@1.1.6-alpha.0


## @mastra/auth-workos@1.6.8-alpha.0


## @mastra/agent-browser@0.5.5-alpha.0


## @mastra/browser-viewer@0.2.6-alpha.0


## @mastra/browser-firecrawl@0.2.5-alpha.1


## @mastra/stagehand@0.3.7-alpha.1


## @mastra/discord@1.3.2-alpha.0


## @mastra/slack@1.8.0-alpha.1


## @mastra/teams@0.1.3-alpha.0


## @mastra/telegram@0.2.4-alpha.0


## @mastra/client-js@1.57.0-alpha.4


## @mastra/react@1.13.0-alpha.4


## @mastra/isolated-vm@0.1.4-alpha.0


## @mastra/quickjs@0.1.5-alpha.0


## @mastra/deployer-cloud@1.80.0-alpha.4


## @mastra/deployer-cloudflare@1.2.39-alpha.1


## @mastra/deployer-netlify@1.2.39-alpha.1


## @mastra/deployer-sandbox@0.3.24-alpha.1


## @mastra/deployer-vercel@1.2.39-alpha.1


## @mastra/voyageai@0.4.3-alpha.0


## @mastra/longmemeval@1.1.39-alpha.4


## @mastra/livekit@0.5.2-alpha.0


## @mastra/opencode@0.1.39-alpha.4


## @mastra/parallel@0.1.4-alpha.0


## create-factory@0.3.1-alpha.4


## @mastra/code-sdk@1.15.1-alpha.5


## mastracode@0.48.1-alpha.4


## @mastra/arize@1.3.27-alpha.2


## @mastra/arthur@0.4.27-alpha.2


## @mastra/braintrust@1.3.24-alpha.2


## @mastra/datadog@1.4.19-alpha.2


## @mastra/deepeval@0.1.21-alpha.2


## @mastra/laminar@1.3.29-alpha.2


## @mastra/langfuse@1.6.3-alpha.2


## @mastra/observability@1.21.1-alpha.2


## @mastra/otel-bridge@1.5.19-alpha.2


## @mastra/otel-exporter@1.4.10-alpha.2


## @mastra/posthog@1.4.4-alpha.2


## @mastra/sentry@1.2.29-alpha.2


## @mastra/agent-builder@1.1.31-alpha.2


## @mastra/auth@1.1.5-alpha.0


## mastra@1.36.0-alpha.4


## @mastra/codemod@1.1.8-alpha.0


## create-mastra@1.36.0-alpha.4


## @mastra/deployer@1.80.0-alpha.4


## @mastra/editor@0.16.5-alpha.2


## @mastra/evals@1.10.9-alpha.0


## @mastra/fastembed@1.3.5-alpha.2


## @mastra/loggers@1.3.10-alpha.1


## @mastra/mcp@2.6.0-alpha.1


## @mastra/mcp-docs-server@1.3.10-alpha.7


## @mastra/mcp-registry-registry@1.1.7-alpha.0


## @mastra/memory@1.39.1-alpha.2


## @mastra/rag@2.7.1-alpha.0


## @mastra/schema-compat@1.3.17-alpha.0


## @mastra/server@1.80.0-alpha.4


## @mastra/google-cloud-pubsub@1.1.5-alpha.1


## @mastra/redis-streams@0.6.5-alpha.1


## @mastra/valkey-streams@0.5.7-alpha.1


## @mastra/elysia@0.1.20-alpha.4


## @mastra/express@1.5.24-alpha.4


## @mastra/fastify@1.5.24-alpha.4


## @mastra/hono@1.7.22-alpha.4


## @mastra/koa@1.7.24-alpha.4


## @mastra/nestjs@0.2.39-alpha.4


## @mastra/next@0.2.38-alpha.4


## @mastra/server-adapters-test-suite@0.1.4-alpha.2


## @mastra/tanstack-start@0.2.38-alpha.4


## @mastra/astra@1.1.3-alpha.0


## @mastra/azure-ai-search@0.1.2-alpha.1


## @mastra/chroma@1.1.5-alpha.0


## @mastra/clickhouse@1.27.0-alpha.1


## @mastra/cloudflare@1.7.6-alpha.0


## @mastra/cloudflare-d1@1.4.5-alpha.1


## @mastra/convex@1.7.6-alpha.0


## @mastra/couchbase@1.1.4-alpha.1


## @mastra/dsql@1.5.5-alpha.0


## @mastra/duckdb@1.16.0-alpha.1


## @mastra/dynamodb@1.4.5-alpha.1


## @mastra/elasticsearch@1.4.6-alpha.1


## @mastra/lance@1.5.2-alpha.1


## @mastra/libsql@1.27.1-alpha.0


## @mastra/mongodb@1.24.1-alpha.1


## @mastra/mssql@1.10.6-alpha.0


## @mastra/mysql@0.14.1-alpha.0


## @mastra/opensearch@1.1.4-alpha.1


## @mastra/oracledb@0.5.5-alpha.0


## @mastra/pg@1.33.0-alpha.2


## @mastra/pinecone@1.1.3-alpha.0


## @mastra/qdrant@1.1.6-alpha.0


## @mastra/redis@1.4.12-alpha.1


## @mastra/s3vectors@1.1.5-alpha.0


## @mastra/spanner@1.10.1-alpha.1


## @mastra/turbopuffer@1.2.3-alpha.0


## @mastra/turso@0.1.18-alpha.0


## @mastra/upstash@1.5.5-alpha.1


## @mastra/valkey@0.2.8-alpha.1


## @mastra/vectorize@1.1.4-alpha.0


## @mastra/weaviate@0.1.4-alpha.0


## @mastra/voice-aws-nova-sonic@0.2.6-alpha.0


## @mastra/voice-azure@0.12.3-alpha.0


## @mastra/voice-cloudflare@0.13.4-alpha.0


## @mastra/voice-deepgram@0.13.3-alpha.0


## @mastra/voice-elevenlabs@0.13.3-alpha.0


## @mastra/voice-gladia@0.13.3-alpha.0


## @mastra/voice-google@0.14.4-alpha.0


## @mastra/voice-google-gemini-live@0.14.18-alpha.0


## @mastra/voice-inworld@0.4.6-alpha.0


## @mastra/voice-mistral@0.1.3-alpha.0


## @mastra/voice-modelslab@0.2.3-alpha.0


## @mastra/voice-murf@0.13.3-alpha.0


## @mastra/voice-openai@0.13.4-alpha.0


## @mastra/voice-openai-realtime@0.14.8-alpha.0


## @mastra/voice-playai@0.13.3-alpha.0


## @mastra/voice-sarvam@1.1.4-alpha.0


## @mastra/voice-speechify@0.14.3-alpha.0


## @mastra/voice-xai-realtime@0.2.17-alpha.0


## @mastra/inngest@1.10.8-alpha.3


## @mastra/temporal@0.4.18-alpha.4


## @mastra/agentcore@0.5.3-alpha.0


## @mastra/agentfs@0.2.3-alpha.0


## @mastra/apple-container@0.5.2-alpha.0


## @mastra/archil@0.3.2-alpha.0


## @mastra/azure@0.3.3-alpha.1


## @mastra/blaxel@0.10.2-alpha.0


## @mastra/cloudflare-sandbox@0.5.4-alpha.0


## @mastra/daytona@0.11.4-alpha.0


## @mastra/docker@0.12.1-alpha.0


## @mastra/e2b@0.15.1-alpha.1


## @mastra/e2b-desktop@0.1.10-alpha.1


## @mastra/files-sdk@0.3.3-alpha.0


## @mastra/gcs@0.3.5-alpha.1


## @mastra/google-drive@0.2.4-alpha.0


## @mastra/mesa@0.3.3-alpha.0


## @mastra/modal@0.7.3-alpha.0


## @mastra/platform-workspace@1.10.0-alpha.1


## @mastra/railway@0.10.2-alpha.1


## @mastra/s3@0.6.5-alpha.1


## @mastra/sprites@0.1.2-alpha.0


## @mastra/vercel@1.6.2-alpha.0


## @internal/playground@1.36.0-alpha.4

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-26 13:49:15 -07:00
Ward Peeters
ce5d4731ee
chore(deps): update dependencies across the monorepo (#28417)
Co-authored-by: mastracode <284800079+mastra-platform[bot]@users.noreply.github.com>
2026-10-26 16:59:30 +01:00
Dane - AI (Mastra)
40a522c142
chore(deps): update build tools (#27997) 2026-10-22 14:33:21 +02:00
dane-ai-mastra[bot]
4c22623ea3 chore: version - exit prerelease mode 2026-10-21 11:26:39 +00:00
dane-ai-mastra[bot]
595eae144e
chore: version packages (alpha) (#27914)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-21 09:21:52 +02:00
mastra-platform[bot]
ffda90fdba
fix(acp): reject prompts that stop with max_tokens, cancelled, max_turn_requests or refusal instead of hanging (#27927) 2026-10-20 16:27:55 -07:00
Max Katz
9a423dae48
refactor(lint): replace ESLint with type-aware oxlint (#27476) 2026-10-18 10:38:35 -07:00
dane-ai-mastra[bot]
a15924e709 chore: version packages 2026-10-16 04:04:12 +00:00
dane-ai-mastra[bot]
8b35a6c1d6 chore: version - exit prerelease mode 2026-10-01 08:22:20 +00:00
dane-ai-mastra[bot]
b782191b6c chore: version packages 2026-09-30 16:07:15 +00:00
Ward Peeters
bc826e8fb1
refactor: use Web Crypto where synchronous contracts stay intact (#25462)
Co-authored-by: mastracode <284800079+mastra-platform[bot]@users.noreply.github.com>
2026-09-30 09:45:11 +02:00
dane-ai-mastra[bot]
c19a93b095 chore: version - exit prerelease mode 2026-09-03 04:02:53 +00:00
dane-ai-mastra[bot]
e6de774069 chore: version packages 2026-09-02 16:20:22 +00:00
Lennart
e983f74987
chore(*): Update/unify/add READMEs (#22858)
Co-authored-by: Mastra Code (openai/gpt-5.6-sol) <noreply@mastra.ai>
2026-09-02 14:36:59 +02:00
dane-ai-mastra[bot]
fc968c8a9b chore: version packages 2026-09-01 16:28:50 +00:00
Lennart
28ce924276
chore(*): Remove CHANGELOG.md from npm files (#22737) 2026-09-01 10:47:20 +02:00
Dane - AI (Mastra)
7bb0097e24
chore(deps): update dependency @cursor/sdk to ^1.0.24 (#20438) 2026-07-30 18:00:59 +02:00
Ward Peeters
d271d37f30
chore: migrate package builds to tsdown (#19829)
Co-authored-by: Mastra Code (openai/gpt-5.5) <noreply@mastra.ai>
2026-07-28 12:32:21 +02:00
Dane - AI (Mastra)
063fee5cfd
chore(deps): update dependency @anthropic-ai/claude-agent-sdk to ^0.3.220 (#20275) 2026-07-28 11:17:04 +02:00
Dane - AI (Mastra)
bf5dadddf5
chore(deps): update dependency @anthropic-ai/claude-agent-sdk to ^0.3.218 (#20222)
This PR contains the following updates:

| Package | Type | Update | Change | Pending |
|---|---|---|---|---|
|
[@anthropic-ai/claude-agent-sdk](https://redirect.github.com/anthropics/claude-agent-sdk-typescript)
| devDependencies | patch | [`^0.3.216` →
`^0.3.218`](https://renovatebot.com/diffs/npm/@anthropic-ai%2fclaude-agent-sdk/0.3.217/0.3.218)
| `0.3.220` (+1) |

---

### Release Notes

<details>
<summary>anthropics/claude-agent-sdk-typescript
(@&#8203;anthropic-ai/claude-agent-sdk)</summary>

###
[`v0.3.218`](https://redirect.github.com/anthropics/claude-agent-sdk-typescript/blob/HEAD/CHANGELOG.md#03218)

[Compare
Source](https://redirect.github.com/anthropics/claude-agent-sdk-typescript/compare/v0.3.217...v0.3.218)

- `SkillToolOutput` now reports `background: true` when a forked skill
was dispatched as a detached background agent
- Fixed the result event's `api_error_status` reporting null for
rate-limit and overloaded errors delivered mid-stream; it now reports
429/529
- Added `canonicalModel` and `provider` to each `modelUsage` entry in
result messages so downstream billing can look up the correct rate table
for `costUSD`

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - "before 6am every weekday"
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://redirect.github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yODEuMSIsInVwZGF0ZWRJblZlciI6IjQzLjI4MS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJhdXRvbWF0aW9uIl19-->
2026-07-27 09:44:42 +02:00
Ward Peeters
bdeaef58f0
chore: migrate linting to oxlint (#20173)
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Mastra Code (openai/gpt-5.6-sol) <noreply@mastra.ai>
2026-07-25 01:04:02 +02:00
Ward Peeters
3a507cbd42
chore: migrate repository formatting to oxfmt (#19807)
Co-authored-by: Mastra Code (openai/gpt-5.5) <noreply@mastra.ai>
2026-07-24 16:18:33 +02:00
Dane - AI (Mastra)
4c21e0e6bc
chore(deps): update dependency @anthropic-ai/claude-agent-sdk to ^0.3.216 (#20150) 2026-07-24 13:00:07 +02:00
dane-ai-mastra[bot]
79ee78c5b1 chore: version - exit prerelease mode 2026-07-23 03:17:19 +00:00
Dane - AI (Mastra)
23b93ecda0
chore(deps): update dependency @anthropic-ai/claude-agent-sdk to ^0.3.215 (#20045)
This PR contains the following updates:

| Package | Type | Update | Change | Pending |
|---|---|---|---|---|
|
[@anthropic-ai/claude-agent-sdk](https://redirect.github.com/anthropics/claude-agent-sdk-typescript)
| devDependencies | patch | [`^0.3.207` →
`^0.3.215`](https://renovatebot.com/diffs/npm/@anthropic-ai%2fclaude-agent-sdk/0.3.207/0.3.215)
| `0.3.218` (+2) |

---

### Release Notes

<details>
<summary>anthropics/claude-agent-sdk-typescript
(@&#8203;anthropic-ai/claude-agent-sdk)</summary>

###
[`v0.3.215`](https://redirect.github.com/anthropics/claude-agent-sdk-typescript/blob/HEAD/CHANGELOG.md#03215)

[Compare
Source](https://redirect.github.com/anthropics/claude-agent-sdk-typescript/compare/v0.3.214...v0.3.215)

- Updated to parity with Claude Code v2.1.215

###
[`v0.3.214`](https://redirect.github.com/anthropics/claude-agent-sdk-typescript/blob/HEAD/CHANGELOG.md#03214)

- `set_permission_mode` now rejects unrecognized permission modes with
an error instead of silently adopting them; the `'manual'` alias is
accepted at every ingress
- Added optional `subkind: 'scheduled-trigger'` to the
`task-notification` member of `SDKMessageOrigin`, marking deliveries
that are the fired prompt of a user-configured scheduled task
- `applyFlagSettings({effortLevel})` now accepts `'max'` in its
TypeScript type (runtime already supported it)
- Assistant messages truncated by `interrupt()` now carry `aborted:
true`, so consumers can distinguish a mid-stream partial from a
completed message
- Added optional `subagent_type` and `subagent_retry` fields to
`tool_progress` messages so clients can show a subagent waiting out an
API rate-limit retry
- The `system/init` message's `plugins` entries and the `reload_plugins`
response now include each plugin's manifest `version`
- SessionStart hooks now report source `"fork"` instead of `"resume"`
when the session begins as a fork

###
[`v0.3.213`](https://redirect.github.com/anthropics/claude-agent-sdk-typescript/blob/HEAD/CHANGELOG.md#03213)

- Updated to parity with Claude Code v2.1.213

###
[`v0.3.212`](https://redirect.github.com/anthropics/claude-agent-sdk-typescript/blob/HEAD/CHANGELOG.md#03212)

[Compare
Source](https://redirect.github.com/anthropics/claude-agent-sdk-typescript/compare/v0.3.211...v0.3.212)

- Fixed dash-leading `resumeSessionAt` and `sessionId` values being
passed to the CLI as separate argv tokens; both now use equals-form
(`--flag=value`)
- Agent tool output now includes the resolved model when a mid-turn
model swap changed the subagent's model

###
[`v0.3.211`](https://redirect.github.com/anthropics/claude-agent-sdk-typescript/blob/HEAD/CHANGELOG.md#03211)

[Compare
Source](https://redirect.github.com/anthropics/claude-agent-sdk-typescript/compare/v0.3.210...v0.3.211)

- Fixed `--replay-user-messages` with `--include-partial-messages`
emitting the turn-start user replay after the first content block
instead of before the turn's content events
- Added `SDKAssistantMessage.timestamp` (ISO-8601) to the live stream,
matching `SDKUserMessage`; older emitters omit it, consumers should fall
back to receive time
- Added rate-limit message prefix buckets (`USAGE_LIMIT_ERROR_PREFIXES`
and siblings) as `@alpha` exports for classifying rate-limit messages
without hand-mirrored lists
- Improved process-exit errors to include the CLI's stderr output, so a
failed child reports its actual cause instead of only an exit code

###
[`v0.3.210`](https://redirect.github.com/anthropics/claude-agent-sdk-typescript/blob/HEAD/CHANGELOG.md#03210)

[Compare
Source](https://redirect.github.com/anthropics/claude-agent-sdk-typescript/compare/v0.3.209...v0.3.210)

- Added `timedOutAfterMs` to `BashToolOutput`, set when a command is
auto-backgrounded on timeout

###
[`v0.3.209`](https://redirect.github.com/anthropics/claude-agent-sdk-typescript/blob/HEAD/CHANGELOG.md#03209)

[Compare
Source](https://redirect.github.com/anthropics/claude-agent-sdk-typescript/compare/v0.3.208...v0.3.209)

- Updated to parity with Claude Code v2.1.209

###
[`v0.3.208`](https://redirect.github.com/anthropics/claude-agent-sdk-typescript/blob/HEAD/CHANGELOG.md#03208)

[Compare
Source](https://redirect.github.com/anthropics/claude-agent-sdk-typescript/compare/v0.3.207...v0.3.208)

- Fixed a caller abort during a pending SDK hook callback being
converted into hook success, which let PreToolUse-gated tools execute
after the abort
- Fixed a per-query resource leak in the SDK's process tracking when
spawning the CLI fails (nonexistent or inaccessible executable path)
- Fixed an SDK `UserPromptSubmit` hook callback exceeding its timeout
killing the entire query with an empty error; it now blocks the prompt
with a clear timeout message and the session continues
- Fixed `extraArgs` values that look like flags (e.g. `resume:
'--version'`) being parsed as their own CLI flags; dash-leading values
are now bound with equals-form argv
- Fixed an abort-listener leak: streaming queries sharing one
`AbortController` no longer accumulate `abort` listeners on its signal
after each completed query
- Fixed `createSdkMcpServer` docs pointing at a nonexistent env var; the
MCP tool-call timeout knob is `MCP_TOOL_TIMEOUT`
- Fixed an uncaught exception when writing to stdin after the Claude
Code subprocess has exited

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - "before 6am every weekday"
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://redirect.github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNzguMyIsInVwZGF0ZWRJblZlciI6IjQzLjI3OC4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJhdXRvbWF0aW9uIl19-->
2026-07-23 01:57:34 +01:00
Dane - AI (Mastra)
a4620cae04
chore(deps): update formatting & linting (#19388)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: wardpeet <ward@coding-tech.com>
2026-07-20 16:13:28 +02:00
dane-ai-mastra[bot]
0f2a209b03 chore: version packages 2026-07-16 16:29:48 +00:00
Anurag Ojha
07a4d0005d
feat(acp): add createClient hook for custom ACP clients (extMethod/extNotification) (#19559)
## Description

`createACPTool()` and `AcpAgent` hardcoded the ACP client inside
`ACPConnection`, so there was no way to answer agent-initiated extension
methods (`extMethod` / `extNotification`). Agents that use them (e.g.
Grok CLI) fail — the default client rejects any custom method with
JSON-RPC `-32601 "Method not found"` and the agent aborts its turn — and
the only workaround was forking ~300 lines of connection/spawn/stream
plumbing just to swap one class. This PR exposes the injection point the
underlying `@agentclientprotocol/sdk` already has.

- Add `createClient?: (defaultClient: Client) => Client` to
`CreateACPToolOptions` (inherited by `AcpAgentOptions`); the callback
receives the default client so it can be wrapped/extended or fully
replaced, and the returned client is passed to `ClientSideConnection`
- Re-export the SDK `Client` type from `@mastra/acp` for fully custom
implementations
- Handle child-process spawn failures: previously a bad `command`
(ENOENT) emitted an unhandled `'error'` event and crashed the host
process; initialization is now raced against process `error`/`exit` so
the tool call rejects with the spawn error (stderr attached) instead
- Extract the init sequence into `initializeSession()` so it can be
raced; default-path behavior is unchanged
- Tests: mock child process is now an `EventEmitter`; 4 new tests cover
custom client wiring (ext methods handled, default handlers preserved),
omitted option, spawn ENOENT rejection, and early process exit
- Docs: `createClient` parameter on both reference pages plus a new
"Extension methods" section with a usage example

Verified end-to-end: a protocol-exact fake agent calling `_grok/ping`
fails on main and succeeds with `createClient`; a real ACP agent
(`@zed-industries/claude-code-acp`, live Anthropic API) works on both
the default and wrapped-client paths; full customer-shaped run (real
model → Mastra agent loop → tool-call → ACP process → ext method
answered → output returned) passes.

## Related Issue(s)

Fixes #19109

## Type of Change

- [ ] Bug fix (non-breaking change that fixes an issue)
- [x] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Code refactoring
- [ ] Performance improvement
- [ ] Test update

## Checklist

- [x] I have made corresponding changes to the documentation (if
applicable)
- [x] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have addressed all Coderabbit comments on this PR

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## ELI5

This update lets you plug in your own “ACP client” so the SDK can handle
agent requests your way (including custom extension actions), without
you having to copy the SDK’s complex connection code. It also prevents
agent startup failures from crashing your app by turning
spawn/early-exit problems into normal rejected tool calls.

## What changed

- Added an optional `createClient` hook to `createACPTool()` /
`CreateACPToolOptions`, and it’s inherited by `AcpAgentOptions`.
- The factory receives the SDK’s default ACP `Client` and can
wrap/extend/replace it (enabling custom extension handlers like
`extMethod` and `extNotification`).
- Re-exported the ACP `Client` type from `@mastra/acp` to support fully
custom client implementations.
- Fixed child-process failure handling during initialization:
- Initialization failures now reject tool calls with
spawn/initialization errors instead of causing unhandled host-process
crashes.
- Agent startup failure detection was implemented using
`initializeSession()` and failure/early-exit handling; cleanup is added
when the client factory throws.
- Added tests for:
  - custom client wiring + extension availability
  - omitted options (default behavior)
  - client-factory errors (including cleanup)
  - spawn failures (`error` event)
  - early process exits (`exit` during initialization)
- Updated documentation for `createClient` and added an “Extension
methods” section with an example.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-07-16 11:14:20 +02:00
Dane - AI (Mastra)
0532405a28
chore(deps): update build tools (#18043) 2026-07-14 23:01:34 +02:00
Dane - AI (Mastra)
5e44ac75ab
chore(deps): update dependency @anthropic-ai/claude-agent-sdk to ^0.3.207 (#19151) 2026-07-14 08:24:15 +02:00
Dane - AI (Mastra)
6e8415423d
chore(deps): update dependency @cursor/sdk to ^1.0.23 (#19398) 2026-07-14 08:23:29 +02:00
dane-ai-mastra[bot]
7a8a8243bb chore: version - exit prerelease mode 2026-06-19 05:35:11 +00:00
dane-ai-mastra[bot]
faae1eb9e0
chore: version packages (alpha) (#18159)
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and publish to npm
yourself or [setup this action to publish
automatically](https://github.com/changesets/action#with-publishing). If
you're not ready to do a release yet, that's fine, whenever you add more
changesets to main, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

`main` is currently in **pre mode** so this branch has prereleases
rather than normal releases. If you want to exit prereleases, run
`changeset pre exit` on `main`.

⚠️⚠️⚠️⚠️⚠️⚠️

# Releases

> The changelog information of each package has been omitted from this
message, as the content exceeds the size limit.

## @mastra/acp@0.3.0-alpha.0


## @mastra/claude@0.3.0-alpha.0


## @mastra/cursor@0.3.0-alpha.0


## @mastra/openai@1.1.0-alpha.0


## @mastra/auth-auth0@1.2.0-alpha.0


## @mastra/auth-better-auth@1.1.0-alpha.0


## @mastra/auth-clerk@1.2.0-alpha.0


## @mastra/auth-cloud@1.2.0-alpha.0


## @mastra/auth-firebase@1.1.0-alpha.0


## @mastra/auth-neon@0.3.0-alpha.0


## @mastra/auth-okta@0.1.0-alpha.0


## @mastra/auth-studio@1.3.0-alpha.0


## @mastra/auth-supabase@1.1.0-alpha.0


## @mastra/auth-workos@1.6.0-alpha.0


## @mastra/agent-browser@0.4.0-alpha.0


## @mastra/browser-viewer@0.2.0-alpha.0


## @mastra/browser-firecrawl@0.2.0-alpha.0


## @mastra/stagehand@0.3.0-alpha.0


## @mastra/slack@1.4.0-alpha.0


## @mastra/ai-sdk@1.5.0-alpha.0


## @mastra/client-js@1.26.0-alpha.0


## @mastra/react@1.1.0-alpha.0


## @mastra/deployer-cloud@1.45.0-alpha.0


## @mastra/deployer-cloudflare@1.2.0-alpha.0


## @mastra/deployer-netlify@1.2.0-alpha.0


## @mastra/deployer-vercel@1.2.0-alpha.0


## @mastra/voyageai@0.2.0-alpha.0


## @mastra/longmemeval@1.1.0-alpha.0


## @mastra/brightdata@0.3.0-alpha.0


## @mastra/opencode@0.1.0-alpha.0


## @mastra/perplexity@0.2.0-alpha.0


## @mastra/tavily@1.1.0-alpha.0


## mastracode@0.24.0-alpha.0


## @mastra/arize@1.3.0-alpha.0


## @mastra/arthur@0.4.0-alpha.0


## @mastra/braintrust@1.2.0-alpha.0


## @mastra/datadog@1.3.0-alpha.0


## @mastra/laminar@1.3.0-alpha.0


## @mastra/langfuse@1.4.0-alpha.0


## @mastra/langsmith@1.3.0-alpha.0


## @mastra/observability@1.15.0-alpha.0


## @mastra/otel-bridge@1.3.0-alpha.0


## @mastra/otel-exporter@1.3.0-alpha.0


## @mastra/posthog@1.1.0-alpha.0


## @mastra/sentry@1.2.0-alpha.0


## @mastra/agent-builder@1.1.0-alpha.0


## @mastra/auth@1.1.0-alpha.0


## mastra@1.15.0-alpha.0


## @mastra/codemod@1.1.0-alpha.0


## @mastra/core@1.45.0-alpha.0


## create-mastra@1.15.0-alpha.0


## @mastra/deployer@1.45.0-alpha.0


## @mastra/editor@0.13.0-alpha.0


## @mastra/evals@1.4.0-alpha.0


## @mastra/fastembed@1.2.0-alpha.0


## @mastra/loggers@1.2.0-alpha.0


## @mastra/mcp@1.11.0-alpha.0


## @mastra/mcp-docs-server@1.2.0-alpha.0


## @mastra/mcp-registry-registry@1.1.0-alpha.0


## @mastra/memory@1.21.0-alpha.0


## @mastra/playground-ui@35.0.0-alpha.0


## @mastra/rag@2.3.0-alpha.0


## @mastra/schema-compat@1.3.0-alpha.0


## @mastra/server@1.45.0-alpha.0


## @mastra/google-cloud-pubsub@1.1.0-alpha.0


## @mastra/redis-streams@0.1.0-alpha.0


## @mastra/express@1.4.0-alpha.0


## @mastra/fastify@1.4.0-alpha.0


## @mastra/hono@1.5.0-alpha.0


## @mastra/koa@1.6.0-alpha.0


## @mastra/nestjs@0.2.0-alpha.0


## @mastra/github-signals@0.2.0-alpha.0


## @mastra/astra@1.1.0-alpha.0


## @mastra/chroma@1.1.0-alpha.0


## @mastra/clickhouse@1.11.0-alpha.0


## @mastra/cloudflare@1.5.0-alpha.0


## @mastra/cloudflare-d1@1.1.0-alpha.0


## @mastra/convex@1.3.0-alpha.0


## @mastra/couchbase@1.1.0-alpha.0


## @mastra/dsql@1.1.0-alpha.0


## @mastra/duckdb@1.5.0-alpha.0


## @mastra/dynamodb@1.1.0-alpha.0


## @mastra/elasticsearch@1.3.0-alpha.0


## @mastra/lance@1.1.0-alpha.0


## @mastra/libsql@1.14.0-alpha.0


## @mastra/mongodb@1.10.0-alpha.0


## @mastra/mssql@1.4.0-alpha.0


## @mastra/mysql@0.2.0-alpha.0


## @mastra/opensearch@1.1.0-alpha.0


## @mastra/pg@1.14.0-alpha.0


## @mastra/pinecone@1.1.0-alpha.0


## @mastra/qdrant@1.1.0-alpha.0


## @mastra/redis@1.2.0-alpha.0


## @mastra/s3vectors@1.1.0-alpha.0


## @mastra/spanner@1.2.0-alpha.0


## @mastra/turbopuffer@1.1.0-alpha.0


## @mastra/upstash@1.2.0-alpha.0


## @mastra/vectorize@1.1.0-alpha.0


## @mastra/voice-aws-nova-sonic@0.2.0-alpha.0


## @mastra/voice-azure@0.12.0-alpha.0


## @mastra/voice-cloudflare@0.13.0-alpha.0


## @mastra/voice-deepgram@0.13.0-alpha.0


## @mastra/voice-elevenlabs@0.13.0-alpha.0


## @mastra/voice-gladia@0.13.0-alpha.0


## @mastra/voice-google@0.13.0-alpha.0


## @mastra/voice-google-gemini-live@0.13.0-alpha.0


## @mastra/voice-inworld@0.4.0-alpha.0


## @mastra/voice-modelslab@0.2.0-alpha.0


## @mastra/voice-murf@0.13.0-alpha.0


## @mastra/voice-openai@0.13.0-alpha.0


## @mastra/voice-openai-realtime@0.13.0-alpha.0


## @mastra/voice-playai@0.13.0-alpha.0


## @mastra/voice-sarvam@1.1.0-alpha.0


## @mastra/voice-speechify@0.13.0-alpha.0


## @mastra/voice-xai-realtime@0.2.0-alpha.0


## @mastra/inngest@1.6.0-alpha.0


## @mastra/temporal@0.2.0-alpha.0


## @mastra/agentcore@0.3.0-alpha.0


## @mastra/agentfs@0.2.0-alpha.0


## @mastra/azure@0.3.0-alpha.0


## @mastra/blaxel@0.5.0-alpha.0


## @mastra/daytona@0.5.0-alpha.0


## @mastra/docker@0.4.0-alpha.0


## @mastra/e2b@0.4.0-alpha.0


## @mastra/files-sdk@0.3.0-alpha.0


## @mastra/gcs@0.3.0-alpha.0


## @mastra/google-drive@0.2.0-alpha.0


## @mastra/modal@0.3.0-alpha.0


## @mastra/railway@0.2.0-alpha.0


## @mastra/s3@0.6.0-alpha.0


## @mastra/vercel@1.1.0-alpha.0


## @observability/test-utils@0.1.0-alpha.0


## @internal/core@0.1.0-alpha.0


## @internal/playground@1.15.0-alpha.0

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-06-18 21:19:03 -07:00
dane-ai-mastra[bot]
17f01b5d9d chore: version - exit prerelease mode 2026-06-18 14:09:51 +00:00
dane-ai-mastra[bot]
ad3243ab43
chore: version packages (alpha) (#18057)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Abhi Aiyer <abhiaiyer91@gmail.com>
2026-06-17 17:40:24 +02:00
Abhi Aiyer
5e80052861
fix: supersede attacker-published versions for the 57 compromised packages (easy-day-js) (#18062)
Co-authored-by: Mastra Code (anthropic/claude-opus-4-8) <noreply@mastra.ai>
2026-06-17 10:43:03 +02:00
Dane - AI (Mastra)
a27d561d37
chore(deps): update build tools (#17657) 2026-06-15 13:37:09 +02:00
dane-ai-mastra[bot]
331559f184 chore: version - exit prerelease mode 2026-06-12 02:05:27 +00:00
dane-ai-mastra[bot]
c9f884b652
chore: version packages (alpha) (#17666)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-06-11 17:04:04 -07:00
Dane - AI (Mastra)
a4fb480b1f
chore(deps): update dependency @cursor/sdk to ^1.0.18 (#17810)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@cursor/sdk](https://cursor.com)
([source](https://redirect.github.com/cursor/cursor)) | devDependencies
| patch | [`^1.0.17` ->
`^1.0.18`](https://renovatebot.com/diffs/npm/@cursor%2fsdk/1.0.17/1.0.18)
|

---

### Release Notes

<details>
<summary>cursor/cursor (@&#8203;cursor/sdk)</summary>

###
[`v1.0.18`](0d42fa8dcf...0897dcaa25)

[Compare
Source](0d42fa8dcf...0897dcaa25)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 6am every weekday" (UTC),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNzMuMSIsInVwZGF0ZWRJblZlciI6IjQxLjE3My4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJhdXRvbWF0aW9uIl19-->
2026-06-10 22:47:32 -07:00
Dane - AI (Mastra)
4dff75b5fd
chore(deps): update dependency @anthropic-ai/claude-agent-sdk to ^0.3.168 (#17744) 2026-06-09 22:39:41 -07:00
Ehindero Israel
1c541a3cdb
feat(sdk-agents): add resume and structured output support (#17580) 2026-06-08 12:55:41 +01:00
devin-ai-integration[bot]
f2ab060162
fix(core): suppress spurious "Browser is closed" state signal and add close reasons (#17631)
## Description

Two fixes to the browser state signal:

1. **Suppress "Browser is closed" when the agent never used the
browser** — if there's no previous state signal (browser was never
reported as open) and the browser is currently closed, the signal is
suppressed entirely. This prevents confusing messages when an agent has
a browser configured but the user/agent hasn't actually used it.

2. **Add `closeReason` to differentiate why the browser closed** — new
optional field on `BrowserContext` with values `'agent' | 'user' |
'process_restart' | 'error'`. The formatted state signal message changes
based on the reason:
- `process_restart` → "The session process restarted, which closed the
browser."
   - `user` → "The user closed the browser."
   - `error` → "Browser closed unexpectedly due to an error."
   - `agent`/default → "Browser is closed."

The `closeReason: 'error'` is now set in `agent.ts` when
`getBrowserState()` throws. Other reasons (`process_restart`, `user`)
can be set by callers that have that context (e.g. the session runtime
or viewer registry).

## Related issue(s)

Fixes the issue discussed in Slack where the state signal showed
"Browser is closed" even when the agent hadn't used the browser at all.

## Type of change

- [x] Bug fix (non-breaking change that fixes an issue)
- [x] New feature (non-breaking change that adds functionality)

## Checklist

- [x] I have linked the related issue(s) in the description above
- [x] I have made corresponding changes to the documentation (if
applicable)
- [x] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have addressed all Coderabbit comments on this PR

Link to Devin session:
https://app.devin.ai/sessions/34fece46417c4d0cb01a1a73e3871126
Requested by: @TylerBarnes

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## ELI5

The PR prevents a misleading "Browser is closed" message when the agent
never opened the browser and attaches a short reason for why a browser
closed (agent, user, process restart, or error) so state messages are
accurate and useful.

## Changes Summary

### Core Changes

- Suppress spurious closed signals
- computeStateSignal() no longer emits a plain "Browser is closed" state
when the thread has never previously reported the browser open; closed
signals are only emitted when there is a meaningful prior open-state in
the thread history.
  - Adds logic to avoid emitting ambiguous "bare closed" deltas.

- Close reason tracking and messaging
- BrowserContext / persisted BrowserState gains optional closeReason?:
'agent' | 'user' | 'process_restart' | 'error'.
- computeStateSignal preserves or infers closeReason and uses it to
format messages:
- process_restart → "The session process restarted, which closed the
browser."
    - user → "The user closed the browser."
    - error → "Browser closed unexpectedly due to an error."
    - agent/default → "Browser is closed."
- Delta formatting for open: false uses the closeReason text instead of
a generic closed message.

- Agent error-handling
- packages/core/src/agent/agent.ts: when getBrowserState() throws, the
resolver returns { isOpen: false, closeReason: 'error' } so exceptions
are attributed to 'error'.

### Browser / Agent-Browser Changes

- AgentBrowser
- Tracks per-thread (and default) close reasons and agent-driven
active-URL changes.
- Persists thread-aware closed state including tracked closeReason and
activeUrlChangeSource.
- Clears tracking maps on launch; closeThreadSession override saves
thread-specific last state.
- getBrowserState(threadId) routes through thread-aware logic to include
closeReason/activeUrlChangeSource.

- Close tool
- createCloseTool records agent-initiated closeReason ('agent')
(thread-aware) before closing.

- Navigation tools
- goto/back/new/switch record agent-driven URL changes so
activeUrlChangeSource can be attributed correctly.

### Persistence & Thread Manager

- Thread-manager persistence schema updated to include optional
closeReason and activeUrlChangeSource.
- updateBrowserState now shallow-copies incoming state and preserves
extra fields (so closeReason/activeUrlChangeSource are not dropped).

### Mastracode / UI Streaming Fix

- Anchors streamed state_signal components before the active assistant
text component so later assistant text updates do not push the signal
down the chat stream.
- Adds a TUI regression test ensuring the state signal is inserted and
the streamed assistant text renders correctly.

### Tests & Docs

- Extensive tests added/updated:
- computeStateSignal tests expanded to cover suppression when browser
was never opened, open-from-remembered-closed with active URL
propagation, close reason attribution (process_restart, user, error),
activeUrlChangeSource attribution (agent vs user), and suppression when
only source metadata toggles.
- agent-browser tests verify preservation and correct inheritance of
closeReason and activeUrlChangeSource behavior.
  - mastracode TUI tests added to verify anchored state signal behavior.
- Changesets updated to document patch releases for `@mastra/core`,
`@mastra/agent-browser`, and `mastracode`.
- Minor CI/test/ESLint adjustments included.

### API / Interface Changes

- Interface updates:
- BrowserContext / BrowserState: added closeReason?: 'agent' | 'user' |
'process_restart' | 'error'
  - BrowserState: added activeUrlChangeSource?: 'agent' | 'user'
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: tyler <tylerdbarnes@gmail.com>
Co-authored-by: Mastra Code (openai/gpt-5.5) <noreply@mastra.ai>
2026-06-05 19:28:09 -07:00
dane-ai-mastra[bot]
fc35c6bb17
chore: version packages (alpha) (#17573)
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and publish to npm
yourself or [setup this action to publish
automatically](https://github.com/changesets/action#with-publishing). If
you're not ready to do a release yet, that's fine, whenever you add more
changesets to main, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

`main` is currently in **pre mode** so this branch has prereleases
rather than normal releases. If you want to exit prereleases, run
`changeset pre exit` on `main`.

⚠️⚠️⚠️⚠️⚠️⚠️

# Releases

> The changelog information of each package has been omitted from this
message, as the content exceeds the size limit.

## @mastra/openai@0.1.0-alpha.1


## @mastra/client-js@1.24.0-alpha.0


## @mastra/core@1.42.0-alpha.0


## @mastra/playground-ui@33.0.0-alpha.0


## @mastra/server@1.42.0-alpha.0


## @mastra/pg@1.13.0-alpha.0


## @mastra/claude@0.1.1-alpha.0


## @mastra/react@0.5.3-alpha.0


## @mastra/deployer-cloud@1.42.0-alpha.0


## @mastra/deployer-cloudflare@1.1.43-alpha.0


## @mastra/deployer-netlify@1.1.19-alpha.0


## @mastra/deployer-vercel@1.1.37-alpha.0


## @mastra/longmemeval@1.0.49-alpha.0


## @mastra/opencode@0.0.46-alpha.0


## mastracode@0.22.3-alpha.0


## @mastra/arize@1.2.2-alpha.0


## @mastra/arthur@0.3.2-alpha.0


## @mastra/laminar@1.2.2-alpha.0


## @mastra/langfuse@1.3.5-alpha.0


## @mastra/otel-bridge@1.2.2-alpha.0


## @mastra/otel-exporter@1.2.2-alpha.0


## @mastra/posthog@1.0.28-alpha.0


## @mastra/sentry@1.1.3-alpha.0


## mastra@1.12.3-alpha.0


## @mastra/deployer@1.42.0-alpha.0


## @mastra/editor@0.11.2-alpha.0


## @mastra/mcp@1.9.2-alpha.0


## @mastra/mcp-docs-server@1.1.46-alpha.0


## @mastra/express@1.3.30-alpha.0


## @mastra/fastify@1.3.30-alpha.0


## @mastra/hono@1.4.25-alpha.0


## @mastra/koa@1.5.13-alpha.0


## @mastra/nestjs@0.1.14-alpha.0


## @mastra/dsql@1.0.2-alpha.0


## @mastra/dynamodb@1.0.8-alpha.0


## @mastra/s3vectors@1.0.6-alpha.0


## @mastra/spanner@1.1.1-alpha.0


## @mastra/voice-aws-nova-sonic@0.1.3-alpha.0


## @mastra/voice-google@0.12.2-alpha.0


## @mastra/voice-google-gemini-live@0.12.1-alpha.0


## @mastra/temporal@0.1.13-alpha.0


## @mastra/agentcore@0.2.1-alpha.0


## @mastra/blaxel@0.4.1-alpha.0


## @mastra/e2b@0.3.3-alpha.0


## @mastra/gcs@0.2.2-alpha.0


## @mastra/s3@0.5.2-alpha.0


## create-mastra@1.12.3-alpha.0


## @internal/playground@1.12.3-alpha.0

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-06-05 17:58:29 -07:00
Dane - AI (Mastra)
dd499f6112
chore(deps): update formatting & linting (#17151) 2026-06-05 08:36:15 -07:00
Ehindero Israel
d208510567
feat(sdk-agents) Support openAI agent sdk (#17525) 2026-06-05 15:43:03 +01:00
Ehindero Israel
44d2c09891
Disable signal/stream subscription for SDK agents (#17581) 2026-06-05 14:41:07 +01:00
Lennart
6dd7646805
chore(repo): Use tsx catalog dep (#17605) 2026-06-05 13:44:28 +02:00