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/auth-auth0@1.3.0-alpha.0
## @mastra/auth-clerk@1.4.0-alpha.0
## @mastra/auth-okta@0.3.0-alpha.0
## @mastra/auth-supabase@1.2.0-alpha.0
## @mastra/client-js@1.60.0-alpha.13
## @mastra/auth@1.2.0-alpha.0
## @mastra/core@1.83.0-alpha.13
## @mastra/playground-ui@69.0.0-alpha.15
## @mastra/rag@2.8.0-alpha.3
## @mastra/server@1.83.0-alpha.13
## @mastra/server-adapters-test-suite@0.3.0-alpha.5
## @mastra/auth-better-auth@1.1.11-alpha.2
## @mastra/auth-cloud@1.2.9-alpha.0
## @mastra/auth-neon@0.3.6-alpha.1
## @mastra/auth-workos@1.6.9-alpha.0
## @mastra/discord@1.3.4-alpha.0
## @mastra/react@1.15.0-alpha.13
## @mastra/deployer-cloud@1.83.0-alpha.13
## @mastra/deployer-cloudflare@1.2.42-alpha.3
## @mastra/deployer-netlify@1.2.42-alpha.1
## @mastra/deployer-sandbox@0.3.27-alpha.1
## @mastra/deployer-vercel@1.2.42-alpha.1
## @mastra/longmemeval@1.1.42-alpha.13
## @mastra/opencode@0.1.42-alpha.13
## @mastra/factory@0.28.0-alpha.15
## create-factory@0.4.3-alpha.15
## @mastra/code-sdk@1.19.0-alpha.15
## mastracode@0.50.0-alpha.14
## @mastra/agent-builder@1.2.1-alpha.5
## mastra@1.39.0-alpha.15
## @mastra/connect@1.4.0-alpha.6
## @mastra/deployer@1.83.0-alpha.13
## @mastra/editor@0.17.1-alpha.7
## @mastra/mcp@2.9.0-alpha.5
## @mastra/mcp-docs-server@1.3.13-alpha.17
## @mastra/memory@1.41.1-alpha.5
## @mastra/schema-compat@1.4.0-alpha.2
## @mastra/elysia@0.1.23-alpha.13
## @mastra/express@1.5.27-alpha.13
## @mastra/fastify@1.5.27-alpha.13
## @mastra/hono@1.7.25-alpha.13
## @mastra/koa@1.7.27-alpha.13
## @mastra/nestjs@0.3.0-alpha.13
## @mastra/next@0.2.41-alpha.13
## @mastra/tanstack-start@0.2.41-alpha.13
## @mastra/voice-google-gemini-live@0.14.19-alpha.2
## @mastra/voice-openai-realtime@0.14.9-alpha.3
## @mastra/voice-xai-realtime@0.2.18-alpha.2
## @mastra/inngest@1.11.2-alpha.9
## @mastra/temporal@0.6.0-alpha.13
## create-mastra@1.39.0-alpha.15
## @internal/playground@1.39.0-alpha.15
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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
## @mastra/client-js@1.60.0-alpha.12
### Minor Changes
- Allow `querySpans()` to sort by `model` or `provider`.
([#30096](https://github.com/mastra-ai/mastra/pull/30096))
```ts
orderBy: [{ field: 'model', direction: 'asc' }];
```
### Patch Changes
- The generated route types for scores now include the `SCORER` and
`PROCESSOR` entity types, matching the entity types experiments can
emit. ([#30145](https://github.com/mastra-ai/mastra/pull/30145))
- Add span-local error counts.
([#30088](https://github.com/mastra-ai/mastra/pull/30088))
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
## @mastra/factory@0.28.0-alpha.14
### Minor Changes
- A card's sandbox now stops as soon as the card is done with that
context, instead of idling until the provider times it out.
([#29981](https://github.com/mastra-ai/mastra/pull/29981))
- When a card moves out of the last phase of a context into a phase that
runs in another one, Factory stops that context's sandbox. Triage →
Planning stops the triage sandbox; Planning → Building keeps the shared
`work` sandbox running. A run still in flight on the session keeps its
sandbox until it ends.
- When a card finishes, Factory stops every sandbox it holds, from any
Factory process, by identity through the configured sandbox provider.
Before, only the process that had opened a sandbox stopped it.
- A card that comes back to a context resumes the same sandbox with its
files.
Stopping never fails the move. Sandboxes are stopped, not destroyed;
deleting a session still destroys its sandbox.
- Added two read routes that answer what the new session page shows
without sending a project's cards.
([#30097](https://github.com/mastra-ai/mastra/pull/30097))
`GET /web/factory/projects/:id/work-items/starters` counts the cards
behind each starter on the project's default board, such as the cards
whose run failed, the pull requests awaiting review and the cards not
yet triaged.
`GET /web/factory/projects/:id/work-items/activity?since=<instant>`
returns how many cards the project has, and when cards were created and
completed since that instant. `since` is required and must be an ISO
date-time such as `2026-06-01T00:00:00.000Z`. The answer carries an
`ETag`, so asking again for the same `since` with `If-None-Match`
returns a 304 with no body when nothing changed.
### Patch Changes
- Fixed environment templates that could stop rebuilding for good. When
a build start was never recorded and the sandbox provider can't list its
builds (Mastra Platform), every later Build now, schedule and push run
used to skip with `unresolved` forever. Factory now treats that start as
failed 30 minutes after its lease lapsed and the next trigger builds.
([#30148](https://github.com/mastra-ai/mastra/pull/30148))
Saving a change to a template input (setup commands, the working
directory, settings, environment repositories, source-control
connections or Build variables) now rebuilds the template once the
project has one, so new sandboxes stop rerunning setup on every boot.
Saves that change nothing don't build, and a change saved during any
build, scheduled ones included, is built when that build ends.
- Factory sessions and MCP clients can now read the Factory's audit
trail with `factory_list_audit_events`: who did what to which work item,
run, branch or setting, and when. Filter by actor (`me`, a user id, or
an agent, optionally with the agent runs a person started), namespace or
exact actions, work item and time range, and page back with a cursor.
The tool only returns this Factory's events and never returns request
context (IP address, user agent), actor emails or event metadata beyond
who started an agent run. It leaves out events from or about other
people's private sessions.
([#30165](https://github.com/mastra-ai/mastra/pull/30165))
- Added a "Join the issue's card instead" switch to intake routes in the
Factory UI. A route for pull requests that close an issue can now put
the pull request on that issue's card instead of giving it a card of its
own; until now only the route Factory seeds could do this. The switch
shows on new and saved routes whose conditions include "Source kind is
Pull request" and "Pull request closes an issue is Yes".
([#30197](https://github.com/mastra-ai/mastra/pull/30197))
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/code-sdk@1.19.0-alpha.14
- @mastra/mcp@2.9.0-alpha.4
## @mastra/observability@1.24.0-alpha.7
### Minor Changes
- Add span-local error counts.
([#30088](https://github.com/mastra-ai/mastra/pull/30088))
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
## @mastra/core@1.83.0-alpha.12
### Minor Changes
- Add model and provider as span query sort fields.
([#30096](https://github.com/mastra-ai/mastra/pull/30096))
```ts
orderBy: [{ field: 'model', direction: 'asc' }];
```
- Add span-local error counts.
([#30088](https://github.com/mastra-ai/mastra/pull/30088))
### Patch Changes
- Name the agent in the missing-storage error thrown by `Memory`. When
an agent's memory never received storage because the agent was never
attached to a Mastra instance, accessing `memory.storage` now fails with
`[Agent:<name>] Memory requires a storage provider to function. ...`, so
it is clear which agent is misconfigured. The registration and
standalone-storage guidance added in #29972 is unchanged, and agents
that inherit storage from their Mastra or configure it directly on
`Memory` are unaffected.
([#30164](https://github.com/mastra-ai/mastra/pull/30164))
- Experiments with a scorer or processor target now save their scores,
and workflow step scorers in experiments now save their step scores.
Previously these scores were silently discarded.
([#30145](https://github.com/mastra-ai/mastra/pull/30145))
## @mastra/mcp-apps-components@0.1.0-alpha.7
### Minor Changes
- Dashboards authored in chat now accept the same widgets as the
dashboard editor: KPIs that combine values (ratio, difference, max,
fallback), read trace, span or score aggregates (for example p95 span
duration) and use duration, percent or score formats; line charts of
scores; six more chart colors (blue, orange, pink, yellow, red, purple);
and optional KPI icon and detail, series color and table empty message.
([#30192](https://github.com/mastra-ai/mastra/pull/30192))
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
## @mastra/playground-ui@69.0.0-alpha.14
### Minor Changes
- Widened what dashboard widgets can show:
([#30192](https://github.com/mastra-ai/mastra/pull/30192))
- KPIs can combine values with `ratio`, `minus`, `max` and `coalesce`,
read trace and span aggregates (for example `duration.p95`) and score
aggregates, and are formatted as `duration`, `percent` or `score`.
Combined values are compared with the previous window.
- Charts accept six more colors: `blue`, `orange`, `pink`, `yellow`,
`red` and `purple`.
- KPI `icon` and `detail`, series `color` and table `emptyMessage` are
optional. Series without a color pick one from a palette, and tables
without an empty message show "No data".
### Patch Changes
- Fixed hover highlights on cards and other surfaces stopping short of
the edge. The highlight now covers the whole surface and follows its
rounded corners exactly, including the sidebar credits card and
clickable cards. Hover highlights on these surfaces now switch instantly
instead of fading.
([#30047](https://github.com/mastra-ai/mastra/pull/30047))
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`987566e`](987566e882),
[`72abae6`](72abae68eb),
[`987566e`](987566e882),
[`f071044`](f0710446e0)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/client-js@1.60.0-alpha.12
- @mastra/react@1.15.0-alpha.12
## @mastra/server@1.83.0-alpha.12
### Minor Changes
- Support model and provider sorting in span queries.
([#30096](https://github.com/mastra-ai/mastra/pull/30096))
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
## @mastra/clickhouse@1.30.0-alpha.4
### Minor Changes
- Sort span queries by model or provider in ascending or descending
order. ([#30096](https://github.com/mastra-ai/mastra/pull/30096))
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
## @mastra/duckdb@1.19.0-alpha.5
### Minor Changes
- Sort span queries by model or provider in ascending or descending
order. ([#30096](https://github.com/mastra-ai/mastra/pull/30096))
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
## @mastra/pg@1.36.0-alpha.6
### Minor Changes
- Sort span queries by model or provider in ascending or descending
order. ([#30096](https://github.com/mastra-ai/mastra/pull/30096))
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
## @mastra/react@1.15.0-alpha.12
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`987566e`](987566e882),
[`72abae6`](72abae68eb),
[`987566e`](987566e882),
[`f071044`](f0710446e0)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/client-js@1.60.0-alpha.12
## @mastra/deployer-cloud@1.83.0-alpha.12
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/deployer@1.83.0-alpha.12
## @mastra/longmemeval@1.1.42-alpha.12
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/libsql@1.30.0-alpha.3
## @mastra/opencode@0.1.42-alpha.12
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/libsql@1.30.0-alpha.3
## create-factory@0.4.3-alpha.14
### Patch Changes
- Updated dependencies
[[`1fbc69a`](1fbc69aa9a),
[`4e378c3`](4e378c3e26),
[`1fbc69a`](1fbc69aa9a)]:
- mastra@1.39.0-alpha.14
## @mastra/code-sdk@1.19.0-alpha.14
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`72abae6`](72abae68eb),
[`f071044`](f0710446e0),
[`f071044`](f0710446e0),
[`987566e`](987566e882),
[`72abae6`](72abae68eb),
[`987566e`](987566e882),
[`f071044`](f0710446e0),
[`f071044`](f0710446e0)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/observability@1.24.0-alpha.7
- @mastra/duckdb@1.19.0-alpha.5
- @mastra/client-js@1.60.0-alpha.12
- @mastra/pg@1.36.0-alpha.6
- @mastra/mcp@2.9.0-alpha.4
- @mastra/libsql@1.30.0-alpha.3
## mastracode@0.50.0-alpha.13
### Patch Changes
- Fix `/settings` crashing when mouse preferences are missing from saved
settings by defaulting to Off.
([#30184](https://github.com/mastra-ai/mastra/pull/30184))
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`72abae6`](72abae68eb),
[`f071044`](f0710446e0),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882),
[`f071044`](f0710446e0)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/observability@1.24.0-alpha.7
- @mastra/duckdb@1.19.0-alpha.5
- @mastra/pg@1.36.0-alpha.6
- @mastra/code-sdk@1.19.0-alpha.14
- @mastra/mcp@2.9.0-alpha.4
- @mastra/libsql@1.30.0-alpha.3
## @mastra/arize@1.3.30-alpha.7
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/otel-exporter@1.5.2-alpha.7
## @mastra/arthur@0.4.30-alpha.7
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/otel-exporter@1.5.2-alpha.7
## @mastra/braintrust@1.3.27-alpha.7
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`72abae6`](72abae68eb),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/observability@1.24.0-alpha.7
## @mastra/datadog@1.4.22-alpha.7
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`72abae6`](72abae68eb),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/observability@1.24.0-alpha.7
## @mastra/deepeval@0.1.24-alpha.7
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`72abae6`](72abae68eb),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/observability@1.24.0-alpha.7
## @mastra/laminar@1.3.32-alpha.7
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`72abae6`](72abae68eb),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/observability@1.24.0-alpha.7
## @mastra/langfuse@1.6.6-alpha.7
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`72abae6`](72abae68eb),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/observability@1.24.0-alpha.7
- @mastra/otel-exporter@1.5.2-alpha.7
## @mastra/langsmith@1.4.3-alpha.7
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`72abae6`](72abae68eb),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/observability@1.24.0-alpha.7
## @mastra/otel-bridge@1.5.22-alpha.7
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`72abae6`](72abae68eb),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/observability@1.24.0-alpha.7
- @mastra/otel-exporter@1.5.2-alpha.7
## @mastra/otel-exporter@1.5.2-alpha.7
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`72abae6`](72abae68eb),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/observability@1.24.0-alpha.7
## @mastra/posthog@1.4.7-alpha.7
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`72abae6`](72abae68eb),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/observability@1.24.0-alpha.7
## @mastra/sentry@1.2.32-alpha.7
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`72abae6`](72abae68eb),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/observability@1.24.0-alpha.7
- @mastra/otel-exporter@1.5.2-alpha.7
## mastra@1.39.0-alpha.14
### Patch Changes
- Added `mastra api factory work-item starters` and `mastra api factory
work-item activity`. The first counts the cards behind each new-session
starter on a project's default board. The second lists when a project's
cards were created and completed since an instant:
([#30097](https://github.com/mastra-ai/mastra/pull/30097))
```bash
mastra api factory work-item starters <project-id>
mastra api factory work-item activity <project-id>
'{"since":"2026-06-01T00:00:00.000Z"}'
```
- Added a "Join the issue's card instead" switch to intake routes in the
Factory UI. A route for pull requests that close an issue can now put
the pull request on that issue's card instead of giving it a card of its
own; until now only the route Factory seeds could do this. The switch
shows on new and saved routes whose conditions include "Source kind is
Pull request" and "Pull request closes an issue is Yes".
([#30197](https://github.com/mastra-ai/mastra/pull/30197))
- Improved the Factory new session page on large boards. Its starters
and its activity band now load the counts and dates they show instead of
downloading every card of the project. They show the same content as
before. ([#30097](https://github.com/mastra-ai/mastra/pull/30097))
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/deployer@1.83.0-alpha.12
## @mastra/deployer@1.83.0-alpha.12
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/server@1.83.0-alpha.12
## @mastra/mcp-docs-server@1.3.13-alpha.16
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
## @mastra/elysia@0.1.23-alpha.12
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/server@1.83.0-alpha.12
## @mastra/express@1.5.27-alpha.12
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/server@1.83.0-alpha.12
## @mastra/fastify@1.5.27-alpha.12
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/server@1.83.0-alpha.12
## @mastra/hono@1.7.25-alpha.12
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/server@1.83.0-alpha.12
## @mastra/koa@1.7.27-alpha.12
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/server@1.83.0-alpha.12
## @mastra/nestjs@0.3.0-alpha.12
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/server@1.83.0-alpha.12
## @mastra/next@0.2.41-alpha.12
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/server@1.83.0-alpha.12
- @mastra/hono@1.7.25-alpha.12
## @mastra/tanstack-start@0.2.41-alpha.12
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/server@1.83.0-alpha.12
- @mastra/hono@1.7.25-alpha.12
## @mastra/voice-openai-realtime@0.14.9-alpha.2
### Patch Changes
- Use gpt-realtime-2.1-mini by default for OpenAI Realtime voice
connections instead of the retired
gpt-4o-mini-realtime-preview-2024-12-17 model.
([#30183](https://github.com/mastra-ai/mastra/pull/30183))
## @mastra/inngest@1.11.2-alpha.8
### Patch Changes
- Support span-local error counts in Inngest workflows.
([#30088](https://github.com/mastra-ai/mastra/pull/30088))
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
## @mastra/temporal@0.6.0-alpha.12
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`72abae6`](72abae68eb),
[`987566e`](987566e882)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/deployer@1.83.0-alpha.12
## create-mastra@1.39.0-alpha.14
## @internal/playground@1.39.0-alpha.14
### Patch Changes
- Updated dependencies
[[`56f654f`](56f654fc0d),
[`f071044`](f0710446e0),
[`987566e`](987566e882),
[`72abae6`](72abae68eb),
[`f9088d8`](f9088d8510),
[`987566e`](987566e882),
[`f071044`](f0710446e0),
[`43d1e9c`](43d1e9c16d)]:
- @mastra/core@1.83.0-alpha.12
- @mastra/client-js@1.60.0-alpha.12
- @mastra/playground-ui@69.0.0-alpha.14
- @mastra/react@1.15.0-alpha.12
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
## Summary
- Default new OpenAI Realtime voice connections to
`gpt-realtime-2.1-mini` instead of the retired preview model.
- Align the constructor examples, README, and voice integration
documentation with the new default.
- Cover default and explicit model selection with a real local WebSocket
handshake regression test and a patch changeset.
## Test plan
- `pnpm turbo build --filter="@mastra/voice-openai-realtime^..."`
- `pnpm --dir voice/openai-realtime-api test` (70 tests)
- `pnpm --dir voice/openai-realtime-api exec tsc --noEmit --project
tsconfig.json`
- `pnpm --dir voice/openai-realtime-api lint`
- `pnpm --dir voice/openai-realtime-api build`
Fixes#29722
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
**ELI5:** The OpenAI voice connector picked an old model by default, and
OpenAI has shut that model down. This change makes the connector pick a
current model by default. Users who set their own model still get that
model.
**Overview**
This change replaces the default OpenAI Realtime model in
`@mastra/voice-openai-realtime` with `gpt-realtime-2.1-mini`. The
previous default was `gpt-4o-mini-realtime-preview-2024-12-17`. Linked
issue `#29722` reports that OpenAI lists this snapshot as shut down.
**Changes by file (5 files, +36/-8 lines)**
- `voice/openai-realtime-api/src/index.ts` (+4/-4): Sets the default
realtime model to `gpt-realtime-2.1-mini`. Updates the class example,
the model-option documentation, and the constructor example.
- `voice/openai-realtime-api/src/connection.integration.test.ts`
(+24/-1): Adds a local WebSocket handshake test. The `setup` helper
accepts an optional model and types the connection callback with the
WebSocket and `IncomingMessage`. Parameterized tests check the model in
the connection URL for two cases: no model configured (expects
`gpt-realtime-2.1-mini`) and an explicit model (expects that model).
- `voice/openai-realtime-api/README.md` (+1/-1): Usage example uses
`gpt-realtime-2.1-mini`.
- `docs/src/content/en/integrations/voice/openai.mdx` (+2/-2): Realtime
usage example and constructor options use `gpt-realtime-2.1-mini`.
- `.changeset/realtime-mini-default.md` (+5/-0): Patch changeset for
`@mastra/voice-openai-realtime`.
**Behavior**
- Without a `model` option, the connection URL requests
`gpt-realtime-2.1-mini`.
- With a `model` option, the connection URL requests the configured
model.
- No exported or public declarations change.
**Validation**
The author reports these commands. This summary does not confirm their
results:
- `pnpm turbo build --filter="@mastra/voice-openai-realtime^..."`
- `pnpm --dir voice/openai-realtime-api test` (70 tests)
- `pnpm --dir voice/openai-realtime-api exec tsc --noEmit --project
tsconfig.json`
- `pnpm --dir voice/openai-realtime-api lint`
- `pnpm --dir voice/openai-realtime-api build`
**Scope limits**
The linked issue also mentions future shutdowns for `whisper-1` and
`tts-1`. This change does not alter those defaults.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Co-authored-by: mastra-platform[bot] <mastra-platform[bot]@users.noreply.github.com>
Co-authored-by: mastra-platform[bot] <284800079+mastra-platform[bot]@users.noreply.github.com>
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.28.0-alpha.6
## @mastra/code-sdk@1.19.0-alpha.6
## @mastra/playground-ui@69.0.0-alpha.7
## @mastra/client-js@1.60.0-alpha.6
## @mastra/react@1.15.0-alpha.6
## @mastra/deployer-cloud@1.83.0-alpha.6
## @mastra/longmemeval@1.1.42-alpha.6
## @mastra/opencode@0.1.42-alpha.6
## create-factory@0.4.3-alpha.6
## mastracode@0.50.0-alpha.6
## @mastra/agent-builder@1.2.1-alpha.3
## mastra@1.39.0-alpha.6
## @mastra/core@1.83.0-alpha.6
## @mastra/deployer@1.83.0-alpha.6
## @mastra/editor@0.17.1-alpha.4
## @mastra/mcp@2.9.0-alpha.3
## @mastra/mcp-docs-server@1.3.13-alpha.9
## @mastra/memory@1.41.1-alpha.3
## @mastra/rag@2.7.3-alpha.2
## @mastra/schema-compat@1.3.18-alpha.0
## @mastra/server@1.83.0-alpha.6
## @mastra/elysia@0.1.23-alpha.6
## @mastra/express@1.5.27-alpha.6
## @mastra/fastify@1.5.27-alpha.6
## @mastra/hono@1.7.25-alpha.6
## @mastra/koa@1.7.27-alpha.6
## @mastra/nestjs@0.3.0-alpha.6
## @mastra/next@0.2.41-alpha.6
## @mastra/server-adapters-test-suite@0.3.0-alpha.3
## @mastra/tanstack-start@0.2.41-alpha.6
## @mastra/upstash@1.6.1-alpha.0
## @mastra/vectorize@1.1.5-alpha.0
## @mastra/voice-google-gemini-live@0.14.19-alpha.0
## @mastra/voice-openai-realtime@0.14.9-alpha.0
## @mastra/voice-xai-realtime@0.2.18-alpha.0
## @mastra/inngest@1.11.2-alpha.4
## @mastra/temporal@0.6.0-alpha.6
## create-mastra@1.39.0-alpha.6
## @internal/playground@1.39.0-alpha.6
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
## Description
**─────── TLDR ───────**
> With Mistral, the Factory composer now writes your words while you
speak, and a Slack voice clip that can't be transcribed tells its sender
why instead of reaching the agent.
This is the one follow-up to the voice stack (#29363, #29366, #29372):
live dictation, the fixes the reviews turned up, and three dedups. It
also brings `main`'s factory unit tests back: #29317 landed first with a
test importing `factoryMemorySettingsUserId`, which #29366 renamed to
`factoryProjectSettingsUserId`.
### Behavior changed
composer mic, Mistral chosen
├─ **was** — records, and the text lands after you stop
├─ **now** — words appear in the draft as you speak
├─ **if Mistral won't mint a token for a key that still
works** — records a clip with the same key, like before
└─ **if the key is rejected or out of credit** — says so
before the mic opens
composer mic, any other provider
└─ **unchanged** — records a clip and transcribes it on stop
a Slack voice clip that can't be transcribed
├─ **was** — stays attached; the agent reads a note and may
relay it
└─ **now** — dropped; a card only the sender sees says why
a Slack message that was only failed clips
├─ **was** — the agent runs, and a new thread starts a
session
└─ **now** — no run, just the card
a member dictating more than 20 times in a minute
└─ **new** — 429 `voice_rate_limited` with `Retry-After`,
before the mic opens
For a missing, rejected or out-of-credit key the card has an **Open
voice settings** button to
`/factories/<id>/settings/models#voice-input`; for a busy or slow
provider it says to send the clip again shortly. A recorded dictation
counts once against the limit: the live-session check for a batch
provider doesn't charge.
### Fixes
> speech-to-text calls stop after 1 minute and retry once, instead of up
to 10 minutes and 2 retries
> a stored OpenAI key no longer sends the server's `OPENAI_ORG_ID` /
`OPENAI_PROJECT_ID`
> picking Deepgram works: `@mastra/voice-deepgram` stopped sending
`diarize=undefined`
> `recordMicrophoneToFile` labels Safari clips `.m4a` and releases the
mic when recording can't start
> web transcription errors show the same fixed reason as Slack, never
the provider's text
### Shape changed
| | | |
|---|---|---|
| **+** | `POST /web/voice/live-session` | mints the Mistral token;
answers `batch` for other providers |
| **+** | `STTModel.realtimeModel` | only Mistral has one, so the
registry decides live mode |
| **−** | Factory's own recorder | `@mastra/react`'s
`recordMicrophoneToFile`, fixed, replaces it |
| **~** | thread → Factory lookup | 3 copies become `threadRunBinding`
in `session-threads.ts` |
| **~** | `loose()` | 26 copies become one in `routes/route.ts` |
| **~** | drawer placement | 4 copies become `useSidePanelDrawer()` |
new surface the browser and other packages now rely on
`{ mode: 'batch' } | { mode: 'live', url, token,
expiresAt }` · `transcriptionFailureReason(error)` ·
`voiceRateLimiter()` · `voiceClipFailureCard(report, retryHint)`
### Decisions
- **the browser streams to Mistral directly** — a token keeps audio off
Factory and the key on it; it lasts ~15 minutes, one model only
- **the limit lives in memory per process** — nothing shared exists yet;
each replica allows 20 a minute
- **a stored OpenAI key drops the env org/project** — those vars belong
to the `OPENAI_API_KEY` account; one comparison to undo
### Watch
> [!WARNING]
> Live dictation opens `wss://api.mistral.ai` and loads its capture
worklet from a `blob:` URL. Nothing in `mastracode/` sets a
Content-Security-Policy today, but <mark>a CSP added later has to allow
both</mark> or the mic stops connecting.
### Not verified
- [ ] the composer in a real browser — capture and live text run in MSW
tests with a fake `AudioContext`; real Mistral ran from a script driving
the same `liveDictation.ts`, 19 deltas and the exact sentence back
- [ ] the card in a real Slack thread — rendered and unit-tested only
- [ ] a real out-of-credit response — the wording comes from
`classifyProviderError` on a simulated 429 `insufficient_quota`
---
> ██████████████████ **tests** `+1095 −212` — 54% of the additions
> ███████████████ **source** `+912 −376`
> █ **changeset** `+24`
> █ **docs** `+2 −2`
## Related issue(s)
No issue. Follow-up to #29363, #29366 and #29372.
## Type of change
- [x] 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
- [x] Code refactoring
- [ ] Performance improvement
- [ ] Test update
## Checklist
- [ ] 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
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## ELI5
Factory can show words as someone speaks when they use a supported
Mistral model. If transcription fails, Slack now tells the sender what
happened and removes the failed clip so it does not reach the agent.
## What changed
- Added live Mistral dictation to the Factory composer. Other providers
use batch transcription. If live setup falls back, Mistral also uses
batch transcription.
- Added `POST /web/voice/live-session`. The server checks Mistral
credentials before recording and applies a per-process limit of 20 voice
requests per member per minute. Requests over the limit return `429`
with `Retry-After`.
- Changed Slack voice-clip failures to remove failed clips and send the
sender a private failure card. Messages with no remaining content do not
start an agent run.
- Reduced speech-to-text timeouts to one minute and configured one
retry. OpenAI organization and project IDs are omitted when the request
uses a stored key.
- Fixed Deepgram requests that included unset options. Improved
recording MIME types, file extensions, and microphone cleanup.
- Standardized web transcription error messages. Consolidated route
context casting and thread-to-Factory lookup, and added a shared drawer
configuration helper.
## Validation
- Added or updated tests for live dictation, voice routes, Slack failure
cards, rate limiting, transcription retries, Deepgram options, and
microphone recording.
- The author reports testing browser capture and live text with MSW and
a fake `AudioContext`, and testing `liveDictation.ts` against Mistral.
The live composer was not verified in a real browser.
- A real Slack thread card and a real out-of-credit response were not
verified.
- Current-head build, test, and CI results: not available.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
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/client-js@1.59.0-alpha.2
## @mastra/factory@0.27.0-alpha.2
## @mastra/code-sdk@1.18.0-alpha.2
## mastra@1.38.0-alpha.2
## @mastra/core@1.82.0-alpha.2
## @mastra/editor@0.17.0-alpha.2
## @mastra/server@1.82.0-alpha.2
## @mastra/clickhouse@1.29.0-alpha.1
## @mastra/duckdb@1.18.0-alpha.1
## @mastra/pg@1.35.0-alpha.2
## @mastra/platform-workspace@1.12.0-alpha.1
## @mastra/react@1.14.1-alpha.2
## @mastra/deployer-cloud@1.82.0-alpha.2
## @mastra/deployer-sandbox@0.3.26-alpha.1
## @mastra/longmemeval@1.1.41-alpha.2
## @mastra/opencode@0.1.41-alpha.2
## @mastra/parallel@0.1.5-alpha.0
## create-factory@0.4.2-alpha.2
## mastracode@0.49.0-alpha.2
## @mastra/arize@1.3.29-alpha.1
## @mastra/arthur@0.4.29-alpha.1
## @mastra/braintrust@1.3.26-alpha.1
## @mastra/datadog@1.4.21-alpha.1
## @mastra/deepeval@0.1.23-alpha.1
## @mastra/laminar@1.3.31-alpha.1
## @mastra/langfuse@1.6.5-alpha.1
## @mastra/langsmith@1.4.2-alpha.1
## @mastra/observability@1.23.1-alpha.1
## @mastra/otel-bridge@1.5.21-alpha.1
## @mastra/otel-exporter@1.5.1-alpha.1
## @mastra/posthog@1.4.6-alpha.1
## @mastra/sentry@1.2.31-alpha.2
## @mastra/agent-builder@1.1.33-alpha.2
## @mastra/deployer@1.82.0-alpha.2
## @mastra/mcp@2.8.0-alpha.1
## @mastra/mcp-docs-server@1.3.12-alpha.3
## @mastra/memory@1.41.0-alpha.2
## @mastra/playground-ui@68.0.0-alpha.2
## @mastra/rag@2.7.2-alpha.0
## @mastra/elysia@0.1.22-alpha.2
## @mastra/express@1.5.26-alpha.2
## @mastra/fastify@1.5.26-alpha.2
## @mastra/hono@1.7.24-alpha.2
## @mastra/koa@1.7.26-alpha.2
## @mastra/nestjs@0.2.41-alpha.2
## @mastra/next@0.2.40-alpha.2
## @mastra/tanstack-start@0.2.40-alpha.2
## @mastra/dsql@1.5.6-alpha.0
## @mastra/libsql@1.29.0-alpha.1
## @mastra/mongodb@1.26.0-alpha.1
## @mastra/mssql@1.11.1-alpha.0
## @mastra/mysql@0.16.0-alpha.2
## @mastra/oracledb@0.5.6-alpha.0
## @mastra/spanner@1.11.1-alpha.0
## @mastra/turso@0.1.20-alpha.1
## @mastra/voice-google@0.14.5-alpha.0
## @mastra/inngest@1.11.1-alpha.1
## @mastra/temporal@0.5.0-alpha.2
## @mastra/e2b@0.16.1-alpha.1
## create-mastra@1.38.0-alpha.2
## @internal/playground@1.38.0-alpha.2
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Enables `no-else-return: error` in the root Oxlint config and removes
186 redundant `else` branches across 111 source/test files. Existing
rule defaults are retained.
Reviewed every code diff for behavior preservation. An independent
TypeScript AST comparison confirms that changes are limited to removing
`else` after returning branches, with the same expressions, statement
order, return values, and `try`/`catch`/`finally` boundaries. All
181,158 identifier occurrences retain their bindings. The recorder
replay path keeps an explicit block: flattening it would shadow the
earlier request `body` with the response `body` and introduce a
temporal-dead-zone error.
Extends the existing monorepo optimized-dependency test to assert that a
raw TypeScript workspace package, including its enum and transitive
dependency, still executes in the production bundle.
Validation: the root rule-only scan passes on 15,273 files with zero
diagnostics; formatting and `git diff --check` pass. Schema
compatibility tests: 1,060 passed, 9 skipped. Recorder runtime tests: 21
passed. The core selection initially passed 3,513 tests; rerunning the
suites requiring local server/cache access passed 185 tests, with one
remaining cache-file assertion also reproduced on unchanged `main`.
Remaining validation limits: four asset-download cases cannot reach
`placehold.co`; the changed-file lint run reports six import-order
errors reproduced on unchanged files from `main`. Deployer unit tests
and the monorepo test could not run because this checkout lacks required
package dependencies (`fs-extra`/workspace links and `get-port`,
respectively). These limits are left visible for CI. No changeset is
included because this is a behavior-preserving lint cleanup.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## ELI5
This PR makes the code easier to read by removing `else` branches that
are not needed after a return. It also enables a rule that catches those
branches and adds a test for loading a raw TypeScript workspace package
in a production bundle.
## Summary
- Enables Oxlint’s `no-else-return` rule at error severity and removes
186 redundant `else` branches across 111 files.
- Extends the monorepo optimized-dependencies test to check a raw
TypeScript workspace package, its enum, and a transitive dependency.
- Updates the deployer’s transpile-package path pattern.
- In workflow event processing, a truthy branch index with no matching
child now falls through to publish a skipped-step end event. Previously,
this case published no event.
- Keeps the recorder replay block explicit to avoid request/response
`body` shadowing and a temporal-dead-zone error.
## Validation
Reported checks passed: the rule-only scan across 15,273 files,
formatting, `git diff --check`, schema compatibility tests (1,060
passed, 9 skipped), recorder runtime tests (21 passed), and an initial
core test selection (3,513 passed).
Some test limits remain. Four asset-download cases could not reach
`placehold.co`. Changed-file lint reported six import-order errors that
also occur on unchanged files from `main`. Deployer unit tests and the
monorepo test could not run because dependencies were unavailable. On
rerun, suites requiring local server/cache access had 185 passes; one
cache-file assertion also reproduced on unchanged `main`.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Enable `no-useless-return` in the shared configuration. Remove 28
terminal bare returns, use 31 explicit switch breaks, and retain 12
value-returning contracts with explicit `undefined`. Preserve 13
intentional guards with local explanations, including index-skipping
property reads and the platform availability probe.
Reviewed every edit and checked that removed returns and new switch
breaks have no effectful continuation before function exit, including
cleanup through `finally`. All other source and emitted JavaScript
syntax is preserved apart from formatting, and all 2,020 function return
types and 3,280 variable binding types in the 59 affected source files
are unchanged. The new rule reports zero violations across 15,106 files.
CI lint and build, the local 57-task build, Factory build, core
typecheck, formatting, and whitespace checks pass.
All 756 focused tests pass across stream conversions, idle-loop cleanup,
workflow validation, Factory, Factory UI, Playground UI, Datadog,
Sentry, Cloudflare, and E2B. Both selected published-package monorepo
E2E cases pass. The extended build case covers a missing application
`.npmrc` and verifies successful builds with dependency installation
both skipped and enabled.
The DuckDB CI job also fails two existing capability-list assertions
because their expected arrays omit `span-aggregate`. Both failures were
reproduced on unchanged base `f4cbdb4d78`; DuckDB and core storage files
are unchanged by this PR.
No changeset is included for this lint maintenance, as requested; the
changeset check is expected to fail. Keep this PR as a draft.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## ELI5
This PR teaches the shared lint configuration to flag returns that do
not change what a function does. It updates the affected code so it
still exits at the right point, while keeping returns that are needed to
return a value or protect an intentional guard.
## Summary
- Enables `no-useless-return` as an error in the shared Oxlint
configuration.
- Removes redundant terminal returns, replaces switch-case returns with
`break` where execution continues after the switch, and keeps
value-returning contracts explicit.
- Adds local explanations or lint suppressions for intentional guards.
- Adds assertions that the monorepo build test leaves `.npmrc` files
absent when installation is skipped.
The author reports that source and emitted JavaScript syntax, apart from
formatting, and the return types and variable binding types across all
59 affected files remain unchanged. The author also reports reviewing
changes for effects before function exit, including cleanup through
`finally`.
## Validation and status
The author reports zero violations across 15,106 files and passing CI
lint and build, the local 57-task build, Factory build, core typecheck,
formatting, whitespace checks, 756 focused tests, and two selected
published-package monorepo E2E cases.
The author reports two DuckDB CI failures in existing capability-list
assertions because the expected arrays omit `span-aggregate`. The author
reports reproducing both failures on unchanged base `f4cbdb4d78`; DuckDB
and core storage files were not changed.
No changeset is included, as requested. The author expects the changeset
check to fail and requests that the PR remain a draft.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Enable `no-lonely-if` in the shared Oxlint config and flatten 38 lone
`if` statements in `else` blocks across 35 files. For example, `else {
if (condition) { ... } }` becomes `else if (condition) { ... }`.
Conditions, evaluation order, statements, comments, and local bindings
are preserved. No package filters or lint exceptions are added.
Strengthen the existing monorepo test to execute another named export
from an optimized dependency. Comparisons of TypeScript syntax, emitted
JavaScript, raw template text, comments, and local bindings pass for all
35 migrated files after normalizing only the redundant else blocks. The
rule clears all 15,094 scanned files.
[CI lint and formatting
pass](https://github.com/mastra-ai/mastra/actions/runs/40344286057/job/121647174331)
for `36ca4471f9`. All 634 focused tests, four package typechecks (core,
playground, connect, and deployer), 57 packaged build tasks, and two
selected published-package monorepo E2E cases pass. The broader local
lint run hit a Tailwind design-system precomputation timeout; CI lint
succeeds. Live vendor and external-database suites were not run locally.
[DuckDB CI has two existing capability-list assertion
failures](https://github.com/mastra-ai/mastra/actions/runs/40344286246/job/121649643109):
its implementation advertises `span-aggregate`, while the expected lists
omit it. The failures reproduce locally, and the relevant implementation
and tests are unchanged from the base commit.
This maintenance PR intentionally contains no changeset and requests no
package releases. The missing-changeset check may fail.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## ELI5
This PR turns on a lint rule that asks for simpler branching in code. It
updates the affected code and adds a leap-year check to an existing
test.
## Changes
- Enables Oxlint’s `no-lonely-if` rule in the shared configuration.
- Flattens 38 lone `if` statements across 35 files. The PR description
reports that the changes preserve behavior.
- Extends the optimized-dependency monorepo test to check `isLeapYear`.
## Validation
- The PR description reports that CI lint and formatting pass.
- It also reports 634 focused tests, four package typechecks, 57
packaged build tasks, and two selected monorepo E2E cases pass.
- The PR description notes two existing DuckDB CI capability-list
assertion failures. It reports that the related implementation and tests
are unchanged from the base commit.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Lint now requires `import type` for imports used only as types, as
`oxlint.config.ts` always intended. The two rules have matched no files
since mastra-ai/mastra#20173 broke their override's glob, so the repo
drifted into mixing `import { type X }`, `import { X }` for types, and
`import type`. This turns them back on and fixes the existing imports.
No runtime behavior changes.
## What changed
- `import/consistent-type-specifier-style` and
`typescript/consistent-type-imports` go from `off` to `error`.
- 186 files: type-only imports become `import type { … }`, split from
value imports where a statement had both. Done with `oxlint --fix` plus
6 files the fixer left with inline `type` specifiers, then `oxfmt`.
- `disallowTypeAnnotations` is now `false`: `typeof import('x')` is
already type-only, and 97 of its 112 uses are the
`vi.importActual<typeof import('./x')>()` pattern in tests.
## Could this change behavior?
Only where a package keeps imports at runtime (`verbatimModuleSyntax`,
via `tsconfig.node.json`) and a statement became fully `import type`,
since that drops the module load. That happens in 18 places: 11 in
tests, and in source `GithubAppIdentity` (factory), `Workspace`,
`SpanType`, `Knowledge` and `WORKSPACE_TOOLS` (core), `Observable` from
`rxjs` (nestjs), and `zod` / `@mastra/mcp` in the server adapter test
suite. None of those modules run code at load time.
## Scope
The other rules the broken glob turned off (`no-unused-vars`,
`no-console`/`no-debugger`, `ban-ts-comment`, `no-require-imports`, the
test-file import ban) stay off for their own PRs.
## Testing
1. `pnpm lint`: passes (the 13 `only-export-components` warnings are
already on `main`).
2. `pnpm turbo build` for the 34 changed packages and `typecheck` for
the ones that have it: pass.
3. The test files that lost a runtime import: pass (core, server,
observability, factory, voice).
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.23.0-alpha.3
## @mastra/code-sdk@1.14.0-alpha.3
## @mastra/core@1.78.0-alpha.3
## @mastra/memory@1.38.0-alpha.0
## @mastra/playground-ui@63.1.0-alpha.3
## @mastra/client-js@1.54.1-alpha.3
## @mastra/react@1.10.1-alpha.3
## @mastra/deployer-cloud@1.78.0-alpha.3
## @mastra/deployer-cloudflare@1.2.37-alpha.1
## @mastra/longmemeval@1.1.37-alpha.3
## @mastra/opencode@0.1.37-alpha.3
## create-factory@0.2.10-alpha.3
## mastracode@0.47.1-alpha.3
## @mastra/agent-builder@1.1.29-alpha.0
## mastra@1.34.2-alpha.3
## @mastra/deployer@1.78.0-alpha.3
## @mastra/editor@0.16.3-alpha.0
## @mastra/mcp-docs-server@1.3.8-alpha.4
## @mastra/schema-compat@1.3.15-alpha.0
## @mastra/server@1.78.0-alpha.3
## @mastra/elysia@0.1.18-alpha.3
## @mastra/express@1.5.22-alpha.3
## @mastra/fastify@1.5.22-alpha.3
## @mastra/hono@1.7.20-alpha.3
## @mastra/koa@1.7.22-alpha.3
## @mastra/nestjs@0.2.37-alpha.3
## @mastra/next@0.2.36-alpha.3
## @mastra/tanstack-start@0.2.36-alpha.3
## @mastra/clickhouse@1.25.1-alpha.1
## @mastra/duckdb@1.14.1-alpha.0
## @mastra/pg@1.31.2-alpha.1
## @mastra/voice-google-gemini-live@0.14.16-alpha.0
## @mastra/voice-openai-realtime@0.14.6-alpha.0
## @mastra/voice-sarvam@1.1.2-alpha.0
## @mastra/voice-xai-realtime@0.2.15-alpha.0
## @mastra/temporal@0.4.16-alpha.3
## @mastra/e2b@0.14.1-alpha.0
## @mastra/e2b-desktop@0.1.8-alpha.0
## @mastra/platform-workspace@1.8.1-alpha.0
## create-mastra@1.34.2-alpha.3
## @internal/playground@1.34.2-alpha.3
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
## Description
`SarvamVoice.listen()` ignored the `listeningModel` given to the
constructor: it always sent `saarika:v2.5` and `language_code=unknown`
(and no `mode`) unless they were passed on the call. It now falls back
to the constructor's settings after the per-call options:
- model: `options.model` → `this.listeningModel.name` (what the base
class already stores, as `voice/mistral` / `voice/elevenlabs` /
`voice/inworld` read it) → `saarika:v2.5`
- language: `options.languageCode` → constructor `languageCode` →
`unknown`
- mode: `options.mode` → constructor `mode`, but only when the call
doesn't switch to another model, since the constructor's mode belongs to
the constructor's model.
With nothing configured, the request is the same as before.
`voice/sarvam/src/listen-config.test.ts` stubs `fetch` and checks the
form fields: constructor settings are used (fails on `main`: `expected
'saarika:v2.5' to be 'saaras:v3'`), per-call options override them, a
per-call model drops the constructor mode, and defaults are unchanged.
It replaces `@internal/voice` with a small stand-in for `MastraVoice`'s
constructor, so it runs without building the workspace or a
`SARVAM_API_KEY`. `oxlint`, `eslint` and `prettier --check` pass on the
changed files. The package's vitest project is the e2e one, so this test
runs with the existing live-API tests there.
Left alone, separate from this: `listen()` uses the speech-model key
when one is set (and never `options.apiKey`), and it doesn't check
`response.ok`, so an API error comes back as an `undefined` transcript.
## Related issue(s)
Fixes#27090
## Type of change
- [x] Bug fix (non-breaking change that fixes an issue)
- [ ] 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 linked the related issue(s) in the description above
- [ ] 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
SarvamVoice now remembers the listening settings you give it when you
create it. When you listen, those settings apply unless you provide
different ones for that call.
## Changes
- `listen()` uses the constructor’s model, language code, and mode when
per-call options do not override them.
- If a per-call model differs from the constructor’s model, `listen()`
does not apply the constructor’s mode.
- With no listening settings, the defaults remain `saarika:v2.5`,
`unknown`, and no mode.
- Added tests for constructor settings, per-call overrides, mode
behavior, and defaults.
- Added a patch changeset for `@mastra/voice-sarvam`.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
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
## @mastra/code-sdk@1.12.0-alpha.9
### Minor Changes
- Added a `--pack <id>` flag to headless mode (`mastracode -p ... --pack
anthropic`). It resolves builtin pack ids and saved custom packs
(`custom:<name>` or bare name), exits with the list of valid packs on
unknown ids, and applies the pack like `/models` → Activate: mode
models, subagent models, model route, and thread `activeModelPackId`. An
explicit `--model` still wins over the pack for the active mode.
([#26691](https://github.com/mastra-ai/mastra/pull/26691))
**Example**
```bash
mastracode -p "summarize this repo" --pack anthropic
mastracode -p "fix the tests" --pack Kimi --model openai/gpt-5.5
```
### Patch Changes
- Fixed per-agent-type subagent model selections
(`subagentModelId_explore/plan/execute`) being stripped from session
state by schema validation. Pack activation (`/models` → Activate or
`--pack`) assigned subagent models, but the next session state update
silently dropped them, so subagents fell back to their default models.
([#26691](https://github.com/mastra-ai/mastra/pull/26691))
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
## mastracode@0.46.0-alpha.9
### Minor Changes
- Added a `--pack <id>` startup flag to the interactive TUI. It accepts
a builtin pack id (`anthropic`, `openai`, `github-copilot`) or a saved
custom pack by `custom:<name>` or bare name. Unknown ids fail fast with
the list of valid packs. Startup uses the pack's models for the session
and saves the pack as the global default. `--pack` takes precedence over
`MASTRACODE_MODEL_ID`.
([#26691](https://github.com/mastra-ai/mastra/pull/26691))
**Example**
```bash
mastracode --pack anthropic
mastracode --pack custom:Kimi
mastracode --pack Kimi
```
### Patch Changes
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`fdd4587`](fdd4587842),
[`fdd4587`](fdd4587842),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
- @mastra/code-sdk@1.12.0-alpha.9
## @mastra/e2b@0.13.0-alpha.3
### Minor Changes
- Added a `reattach` option to `RailwaySandbox`, `PlatformSandbox`, and
`E2BSandbox` to control what happens when a persisted `sandboxId` can't
be reattached on `start()`.
([#26675](https://github.com/mastra-ai/mastra/pull/26675))
- `'best-effort'` (default, unchanged behavior): carry on without the
lost sandbox. Railway and Platform provision a replacement; E2B first
looks for another sandbox with the same logical `id` and only creates a
new one if none is found.
- `'required'`: throw a `SandboxError` with code
`SANDBOX_REATTACH_FAILED` instead, so the caller can tell the user their
previous sandbox (and its state) is gone rather than silently starting a
fresh one.
Transient errors such as auth, rate limit, or network failures still
propagate unchanged. Clones inherit the parent's `reattach` setting.
```ts
const sandbox = new RailwaySandbox({ sandboxId: session.sandboxId,
reattach: 'required' });
try {
await sandbox.start();
} catch (error) {
if (error instanceof SandboxError && error.code ===
'SANDBOX_REATTACH_FAILED') {
// Previous sandbox is gone: ask the user to start fresh, then clear the
persisted sandboxId.
}
}
```
### Patch Changes
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
## @mastra/platform-workspace@1.7.0-alpha.2
### Minor Changes
- Added a `reattach` option to `RailwaySandbox`, `PlatformSandbox`, and
`E2BSandbox` to control what happens when a persisted `sandboxId` can't
be reattached on `start()`.
([#26675](https://github.com/mastra-ai/mastra/pull/26675))
- `'best-effort'` (default, unchanged behavior): carry on without the
lost sandbox. Railway and Platform provision a replacement; E2B first
looks for another sandbox with the same logical `id` and only creates a
new one if none is found.
- `'required'`: throw a `SandboxError` with code
`SANDBOX_REATTACH_FAILED` instead, so the caller can tell the user their
previous sandbox (and its state) is gone rather than silently starting a
fresh one.
Transient errors such as auth, rate limit, or network failures still
propagate unchanged. Clones inherit the parent's `reattach` setting.
```ts
const sandbox = new RailwaySandbox({ sandboxId: session.sandboxId,
reattach: 'required' });
try {
await sandbox.start();
} catch (error) {
if (error instanceof SandboxError && error.code ===
'SANDBOX_REATTACH_FAILED') {
// Previous sandbox is gone: ask the user to start fresh, then clear the
persisted sandboxId.
}
}
```
### Patch Changes
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
## @mastra/railway@0.10.0-alpha.0
### Minor Changes
- Added a `reattach` option to `RailwaySandbox`, `PlatformSandbox`, and
`E2BSandbox` to control what happens when a persisted `sandboxId` can't
be reattached on `start()`.
([#26675](https://github.com/mastra-ai/mastra/pull/26675))
- `'best-effort'` (default, unchanged behavior): carry on without the
lost sandbox. Railway and Platform provision a replacement; E2B first
looks for another sandbox with the same logical `id` and only creates a
new one if none is found.
- `'required'`: throw a `SandboxError` with code
`SANDBOX_REATTACH_FAILED` instead, so the caller can tell the user their
previous sandbox (and its state) is gone rather than silently starting a
fresh one.
Transient errors such as auth, rate limit, or network failures still
propagate unchanged. Clones inherit the parent's `reattach` setting.
```ts
const sandbox = new RailwaySandbox({ sandboxId: session.sandboxId,
reattach: 'required' });
try {
await sandbox.start();
} catch (error) {
if (error instanceof SandboxError && error.code ===
'SANDBOX_REATTACH_FAILED') {
// Previous sandbox is gone: ask the user to start fresh, then clear the
persisted sandboxId.
}
}
```
### Patch Changes
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
## @mastra/sprites@0.1.0-alpha.0
### Minor Changes
- Added `@mastra/sprites`, a workspace sandbox provider for [Fly.io
Sprites](https://sprites.dev). `SpritesSandbox` gets or creates a Sprite
by name, so files persist across sessions, and runs commands with
streaming output, timeouts, cancellation, and background processes with
stdin. `stop()` keeps the Sprite, `destroy()` deletes it, and
`snapshot()` captures a checkpoint. Requires Node.js 24 or later.
([#26650](https://github.com/mastra-ai/mastra/pull/26650))
```typescript
import { Workspace } from '@mastra/core/workspace';
import { SpritesSandbox } from '@mastra/sprites';
const workspace = new Workspace({
sandbox: new SpritesSandbox({ id: 'mastra-project', token:
process.env.SPRITES_TOKEN }),
});
```
### Patch Changes
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
## @mastra/client-js@1.53.0-alpha.9
### Patch Changes
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
## @mastra/react@1.9.0-alpha.9
### Patch Changes
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
- @mastra/client-js@1.53.0-alpha.9
## @mastra/deployer-cloud@1.76.0-alpha.9
### Patch Changes
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`3bb1a21`](3bb1a21ec9),
[`b7d95a4`](b7d95a4cac),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
- @mastra/loggers@1.3.6-alpha.5
- @mastra/deployer@1.76.0-alpha.9
## @mastra/longmemeval@1.1.35-alpha.9
### Patch Changes
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
## @mastra/opencode@0.1.35-alpha.9
### Patch Changes
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
## @mastra/factory@0.21.0-alpha.9
### Patch Changes
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`fdd4587`](fdd4587842),
[`fdd4587`](fdd4587842),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
- @mastra/code-sdk@1.12.0-alpha.9
## create-factory@0.2.8-alpha.9
### Patch Changes
- Updated dependencies:
- mastra@1.34.0-alpha.9
## mastra@1.34.0-alpha.9
### Patch Changes
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`3bb1a21`](3bb1a21ec9),
[`b7d95a4`](b7d95a4cac),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
- @mastra/loggers@1.3.6-alpha.5
- @mastra/deployer@1.76.0-alpha.9
## @mastra/core@1.76.0-alpha.9
### Patch Changes
- Fixed retried API errors leaking the failed attempt's partial text.
([#26654](https://github.com/mastra-ai/mastra/pull/26654))
A provider could stream some text, fail mid-stream, and then succeed
when an error processor retried. The final answer came out as the failed
prefix followed by the recovered answer, for example `"The answer is The
answer is 42."`. The retry request also sent the failed prefix back to
the model.
The failed attempt's partial text is now discarded, for both `Agent` and
durable agents. The final `text` and the retry prompt no longer include
it, and neither do `response.messages` and stored messages. Steps that
completed before the failed attempt are kept.
Text chunks already streamed live from the failed attempt still reach
`textStream` and `fullStream` consumers. The step that carries them
finishes with reason `retry`.
- Fixed `resumeStream` ignoring the `requestContext` and `delegation`
you pass when a supervisor run is resumed in the same process that
suspended it. The resumed delegation now calls the `onDelegationStart`
hook from the resume call, and sub-agent tools see the resume call's
`requestContext`. `DurableAgent` tools approved with `approveToolCall`
in the same process now also run with the request context passed to that
call. Fixes [#25960](https://github.com/mastra-ai/mastra/issues/25960).
([#26686](https://github.com/mastra-ai/mastra/pull/26686))
- Fixed agent steps that start directly with a tool call being merged
into the previous step in the conversation history sent to the model.
Calls that ran one after another, where the second used the first's
result, no longer look like parallel calls. Parallel tool calls within a
single step still stay together.
([#26685](https://github.com/mastra-ai/mastra/pull/26685))
## @mastra/deployer@1.76.0-alpha.9
### Patch Changes
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`cb0201a`](cb0201ab41),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
- @mastra/server@1.76.0-alpha.9
## @mastra/loggers@1.3.6-alpha.5
### Patch Changes
- Fixed `HttpTransport` log queries and `UpstashTransport` error results
returning `page: 0` when called with `page: 0`. They now report page
`1`, consistent with the other transports.
([#26678](https://github.com/mastra-ai/mastra/pull/26678))
- Fixed HTTP and Upstash log transports replacing a supplied `time: 0`
with the current time. Epoch-zero timestamps are now preserved; logs
without a `time` still get the current time.
([#26679](https://github.com/mastra-ai/mastra/pull/26679))
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
## @mastra/mcp-docs-server@1.3.6-alpha.17
### Patch Changes
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
## @mastra/playground-ui@62.0.0-alpha.9
### Patch Changes
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
- @mastra/client-js@1.53.0-alpha.9
- @mastra/react@1.9.0-alpha.9
## @mastra/server@1.76.0-alpha.9
### Patch Changes
- Fixed query parameter parsing to safely handle parameter names that
collide with built-in object properties
([#26683](https://github.com/mastra-ai/mastra/pull/26683))
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
## @mastra/elysia@0.1.16-alpha.9
### Patch Changes
- Fixed multipart form parsing to safely handle field names that collide
with built-in object properties
([#26683](https://github.com/mastra-ai/mastra/pull/26683))
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`cb0201a`](cb0201ab41),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
- @mastra/server@1.76.0-alpha.9
## @mastra/express@1.5.20-alpha.9
### Patch Changes
- Fixed multipart form parsing to safely handle field names that collide
with built-in object properties
([#26683](https://github.com/mastra-ai/mastra/pull/26683))
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`cb0201a`](cb0201ab41),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
- @mastra/server@1.76.0-alpha.9
## @mastra/fastify@1.5.20-alpha.9
### Patch Changes
- Fixed multipart form parsing to safely handle field names that collide
with built-in object properties
([#26683](https://github.com/mastra-ai/mastra/pull/26683))
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`cb0201a`](cb0201ab41),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
- @mastra/server@1.76.0-alpha.9
## @mastra/hono@1.7.18-alpha.9
### Patch Changes
- Fixed multipart form parsing to safely handle field names that collide
with built-in object properties
([#26683](https://github.com/mastra-ai/mastra/pull/26683))
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`cb0201a`](cb0201ab41),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
- @mastra/server@1.76.0-alpha.9
## @mastra/koa@1.7.20-alpha.9
### Patch Changes
- Fixed multipart form parsing to safely handle field names that collide
with built-in object properties
([#26683](https://github.com/mastra-ai/mastra/pull/26683))
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`cb0201a`](cb0201ab41),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
- @mastra/server@1.76.0-alpha.9
## @mastra/nestjs@0.2.35-alpha.9
### Patch Changes
- Fixed multipart form parsing to safely handle field names that collide
with built-in object properties
([#26683](https://github.com/mastra-ai/mastra/pull/26683))
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`cb0201a`](cb0201ab41),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
- @mastra/server@1.76.0-alpha.9
## @mastra/next@0.2.34-alpha.9
### Patch Changes
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`cb0201a`](cb0201ab41),
[`cb0201a`](cb0201ab41),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
- @mastra/server@1.76.0-alpha.9
- @mastra/hono@1.7.18-alpha.9
## @mastra/server-adapters-test-suite@0.1.2-alpha.0
### Patch Changes
- Added coverage for reserved field and parameter names in shared
adapter request parsing tests
([#26683](https://github.com/mastra-ai/mastra/pull/26683))
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`cb0201a`](cb0201ab41),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
- @mastra/server@1.76.0-alpha.9
## @mastra/tanstack-start@0.2.34-alpha.9
### Patch Changes
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`cb0201a`](cb0201ab41),
[`cb0201a`](cb0201ab41),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
- @mastra/server@1.76.0-alpha.9
- @mastra/hono@1.7.18-alpha.9
## @mastra/voice-openai-realtime@0.14.4-alpha.1
### Patch Changes
- Fixed the `speaker` stream never ending for responses that have no
audio. A response that only calls a tool, a text-only response, or a
response cut off by a dropped socket never got `output_audio.done`, so
its stream stayed open. Anything piping it or waiting for `end` hung,
and repeated tool turns piled up pipes until Node printed a
`MaxListenersExceededWarning`. The stream now ends on `response.done`
(before tools run), and all open streams end when the socket closes or
on `close()`/`disconnect()`.
([#26697](https://github.com/mastra-ai/mastra/pull/26697))
Fixes [#26693](https://github.com/mastra-ai/mastra/issues/26693).
## @mastra/temporal@0.4.14-alpha.9
### Patch Changes
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
- @mastra/deployer@1.76.0-alpha.9
## create-mastra@1.34.0-alpha.9
## @internal/playground@1.34.0-alpha.9
### Patch Changes
- Updated dependencies
[[`a65d0c7`](a65d0c7888),
[`e89310a`](e89310a8db),
[`590d6ca`](590d6ca9fa)]:
- @mastra/core@1.76.0-alpha.9
- @mastra/client-js@1.53.0-alpha.9
- @mastra/react@1.9.0-alpha.9
- @mastra/playground-ui@62.0.0-alpha.9
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>