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

357 commits

Author SHA1 Message Date
dane-ai-mastra[bot]
d60ba71be0 chore: version - exit prerelease mode 2026-11-12 21:12:29 +00:00
dane-ai-mastra[bot]
05a6931471
chore: version packages (alpha) (#30172)
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>
2026-11-12 14:42:02 +01:00
dane-ai-mastra[bot]
9e82af0237
chore: version packages (alpha) (#30074)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-11 14:21:14 -08:00
dane-ai-mastra[bot]
3a6ca42696
chore: version packages (alpha) (#30026)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-11 08:16:57 -08:00
dane-ai-mastra[bot]
695599b8ab
chore: version packages (alpha) (#30013)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-10 22:48:39 -08:00
dane-ai-mastra[bot]
7c4dd88400
chore: version packages (alpha) (#29889)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-10 15:48:17 +01:00
dane-ai-mastra[bot]
6deb16047f
chore: version packages (alpha) (#29719)
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/slack@1.9.0-alpha.0


## @mastra/factory@0.28.0-alpha.3


## @mastra/code-sdk@1.19.0-alpha.3


## mastracode@0.50.0-alpha.3


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


## @mastra/core@1.83.0-alpha.3


## @mastra/mcp-apps-components@0.1.0-alpha.3


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


## @mastra/server@1.83.0-alpha.3


## @mastra/server-adapters-test-suite@0.3.0-alpha.1


## @mastra/platform-workspace@1.13.0-alpha.0


## @mastra/auth-better-auth@1.1.11-alpha.1


## @mastra/client-js@1.60.0-alpha.3


## @mastra/react@1.15.0-alpha.3


## @mastra/deployer-cloud@1.83.0-alpha.3


## @mastra/longmemeval@1.1.42-alpha.3


## @mastra/opencode@0.1.42-alpha.3


## create-factory@0.4.3-alpha.3


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


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


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


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


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


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


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


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


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


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


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


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


## @mastra/agent-builder@1.2.1-alpha.1


## mastra@1.39.0-alpha.3


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


## @mastra/deployer@1.83.0-alpha.3


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


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


## @mastra/mcp-docs-server@1.3.13-alpha.6


## @mastra/memory@1.41.1-alpha.1


## @mastra/elysia@0.1.23-alpha.3


## @mastra/express@1.5.27-alpha.3


## @mastra/fastify@1.5.27-alpha.3


## @mastra/hono@1.7.25-alpha.3


## @mastra/koa@1.7.27-alpha.3


## @mastra/nestjs@0.3.0-alpha.3


## @mastra/next@0.2.41-alpha.3


## @mastra/tanstack-start@0.2.41-alpha.3


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


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


## @mastra/inngest@1.11.2-alpha.2


## @mastra/temporal@0.6.0-alpha.3


## create-mastra@1.39.0-alpha.3


## @internal/playground@1.39.0-alpha.3

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-10 10:33:29 +01:00
dane-ai-mastra[bot]
f21e0742ce chore: version packages 2026-11-07 04:18:11 +00:00
dane-ai-mastra[bot]
675caf0613
chore: version packages (alpha) (#29336)
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.60.0-alpha.0


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


## @mastra/factory@0.28.0-alpha.0


## @mastra/code-sdk@1.19.0-alpha.0


## mastra@1.39.0-alpha.0


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


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


## @mastra/mcp-apps-components@0.1.0-alpha.0


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


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


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


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


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


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


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


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


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


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


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


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


## @mastra/deployer-sandbox@0.3.27-alpha.0


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


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


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


## create-factory@0.4.3-alpha.0


## mastracode@0.49.1-alpha.0


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


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


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


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


## @mastra/deepeval@0.1.24-alpha.0


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


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


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


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


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


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


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


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


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


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


## create-mastra@1.39.0-alpha.0


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


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


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


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


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


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


## @mastra/elysia@0.1.23-alpha.0


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


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


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


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


## @mastra/next@0.2.41-alpha.0


## @mastra/tanstack-start@0.2.41-alpha.0


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


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


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


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


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

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-04 14:40:27 -08:00
dane-ai-mastra[bot]
6e8dfcb83f chore: version - exit prerelease mode 2026-11-03 23:45:58 +00:00
dane-ai-mastra[bot]
4bc3aa672f
chore: version packages (alpha) (#29255)
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.27.0-alpha.3


## @mastra/agent-builder@1.2.0-alpha.3


## @mastra/core@1.82.0-alpha.3


## @mastra/mcp@2.8.0-alpha.2


## @mastra/memory@1.41.0-alpha.3


## @mastra/playground-ui@68.0.0-alpha.3


## @mastra/ring-signals@0.1.0-alpha.0


## @mastra/libsql@1.29.0-alpha.2


## @mastra/mongodb@1.26.0-alpha.2


## @mastra/mysql@0.16.0-alpha.3


## @mastra/pg@1.35.0-alpha.3


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


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


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


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


## @mastra/client-js@1.59.0-alpha.3


## @mastra/react@1.14.1-alpha.3


## @mastra/deployer-cloud@1.82.0-alpha.3


## @mastra/longmemeval@1.1.41-alpha.3


## @mastra/opencode@0.1.41-alpha.3


## create-factory@0.4.2-alpha.3


## @mastra/code-sdk@1.18.0-alpha.3


## mastracode@0.49.0-alpha.3


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


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


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


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


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


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


## @mastra/sentry@1.2.31-alpha.3


## mastra@1.38.0-alpha.3


## @mastra/connect@1.3.1-alpha.1


## @mastra/deployer@1.82.0-alpha.3


## @mastra/editor@0.17.0-alpha.3


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


## @mastra/mcp-docs-server@1.3.12-alpha.4


## @mastra/server@1.82.0-alpha.3


## @mastra/elysia@0.1.22-alpha.3


## @mastra/express@1.5.26-alpha.3


## @mastra/fastify@1.5.26-alpha.3


## @mastra/hono@1.7.24-alpha.3


## @mastra/koa@1.7.26-alpha.3


## @mastra/nestjs@0.2.41-alpha.3


## @mastra/next@0.2.40-alpha.3


## @mastra/tanstack-start@0.2.40-alpha.3


## @mastra/turso@0.1.20-alpha.2


## @mastra/inngest@1.11.1-alpha.2


## @mastra/temporal@0.5.0-alpha.3


## create-mastra@1.38.0-alpha.3


## @internal/playground@1.38.0-alpha.3

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-03 13:59:38 -07:00
dane-ai-mastra[bot]
886679eb10
chore: version packages (alpha) (#29205)
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>
2026-11-02 20:29:47 -07:00
dane-ai-mastra[bot]
eed9cc214e chore: version packages 2026-11-01 04:20:58 +00:00
dane-ai-mastra[bot]
77076a1012 chore: version - exit prerelease mode 2026-10-30 23:02:25 +00:00
dane-ai-mastra[bot]
582ef17a2b
chore: version packages (alpha) (#28888)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-30 14:56:53 -07:00
dane-ai-mastra[bot]
4f12792ed1
chore: version packages (alpha) (#28722)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-29 08:37:01 -07:00
Dane - AI (Mastra)
f2ad3844f3
chore(deps): update opentelemetry (#28581)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: mastra-platform[bot] <284800079+mastra-platform[bot]@users.noreply.github.com>
2026-10-28 16:48:54 -07:00
dane-ai-mastra[bot]
6a191d46dc chore: version - exit prerelease mode 2026-10-28 13:15:52 +00:00
dane-ai-mastra[bot]
ef92d71d94
chore: version packages (alpha) (#28499)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-27 13:09:53 -05: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[bot]
6008c99685 chore: version packages 2026-10-23 16:27:44 +00:00
dane-ai-mastra[bot]
dacb190944
chore: version packages (alpha) (#28009)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-23 13:57:18 +02:00
Dane - AI (Mastra)
40a522c142
chore(deps): update build tools (#27997) 2026-10-22 14:33:21 +02:00
Anurag Ojha
1c6b981c21
fix(langfuse): keep user message as trace input after tool-approval resume (#27951)
## Description

After an agent suspends for tool-call approval and resumes, the Langfuse
exporter wrote the resumed run's input (the approval payload) as the
trace input, replacing the user's original message. Langfuse applies
trace-level attributes from any span, so the last writer won.

- The resumed `AGENT_RUN` rejoins the original trace with `parentSpanId
=== metadata.resumedFromSpanId`; the exporter now skips
`langfuse.trace.input` for that span
- `langfuse.trace.output` is still written by the resumed span, so the
trace output is the final reply
- A resume that starts a new trace (caller-provided `traceId`) has no
`parentSpanId` and keeps writing its own trace input
- Same gate the Braintrust exporter already uses for resumed runs

Langfuse session trace summary, before and after, for "Navigate to
dashboard" → approval → "Opening the dashboard.":

![before and
after](https://raw.githubusercontent.com/intojhanurag/mastra/assets/issue-23704/issue-23704-before-after.png)

## Related Issue(s)

Fixes #23704

## 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

- [ ] 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

When an agent pauses for tool approval and then continues, Langfuse now
keeps the original user request as the trace input. It also keeps the
final assistant reply as the trace output instead of showing the
approval data as the input.

## Changes

- Prevent resumed `AGENT_RUN` spans from overwriting
`langfuse.trace.input` when `parentSpanId ===
metadata.resumedFromSpanId`.
- Continue writing `langfuse.trace.output` for resumed spans.
- Preserve input recording for resumed runs that start a new trace
without a `parentSpanId`.
- Add tests for both resumed-run cases.
- Add a patch changeset for `@mastra/langfuse`.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-10-21 19:10:35 +05:30
dane-ai-mastra[bot]
4c22623ea3 chore: version - exit prerelease mode 2026-10-21 11:26:39 +00:00
dane-ai-mastra[bot]
03e4a73b78
chore: version packages (alpha) (#27375) 2026-10-19 20:45:49 +02: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]
71956e0430 chore: version packages 2026-10-16 16:04:19 +00:00
dane-ai-mastra[bot]
a15924e709 chore: version packages 2026-10-16 04:04:12 +00:00
dane-ai-mastra[bot]
fe516094f5 chore: version - exit prerelease mode 2026-10-15 21:33:45 +00:00
dane-ai-mastra[bot]
e2be59ac44
chore: version packages (alpha) (#27184)
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/playground-ui@64.0.0-alpha.8

### Minor Changes

- Added a `minDate` prop to `DateTimeRangePicker` and
`TraceTimeRangeChip`, so you can stop users picking dates with no data,
such as traces past retention. Days before `minDate` are disabled in
both custom range calendars, and a range that already starts earlier
can't be applied.
([#27166](https://github.com/mastra-ai/mastra/pull/27166))

  ```tsx
<TraceTimeRangeChip {...rangeProps} minDate={subDays(new Date(),
retentionDays)} />
  ```

- Added an `inset` variant to `SettingsContainer` for a short stack of
rows that is the main content of a dialog. The default variant is
unchanged and stays the one to use for settings pages and forms.
([#27171](https://github.com/mastra-ai/mastra/pull/27171))

### Patch Changes

- Updated dependencies
[[`03646c5`](03646c587b),
[`4c981d8`](4c981d8415),
[`d7bd3cd`](d7bd3cda0f)]:
  - @mastra/core@1.78.0-alpha.8
  - @mastra/client-js@1.55.0-alpha.8
  - @mastra/react@1.10.1-alpha.8
## @mastra/server@1.78.0-alpha.8

### Minor Changes

- Added an optional `traceRetentionDays` to the observability
capabilities type and response schema, for hosts that serve `GET
/observability/capabilities` themselves and know how long traces are
kept. Clients can use it to stop users picking dates whose traces are
already gone. Mastra's own server and built-in stores don't report a
retention, so the field is omitted there.
([#27166](https://github.com/mastra-ai/mastra/pull/27166))

  ```ts
  const { capabilities } = await client.getObservabilityCapabilities();
  capabilities.traceRetentionDays; // e.g. 180, or undefined
  ```

### Patch Changes

- Updated dependencies
[[`03646c5`](03646c587b),
[`d7bd3cd`](d7bd3cda0f)]:
  - @mastra/core@1.78.0-alpha.8
## @mastra/client-js@1.55.0-alpha.8

### Patch Changes

- Added an optional `traceRetentionDays` to the observability
capabilities type and response schema, for hosts that serve `GET
/observability/capabilities` themselves and know how long traces are
kept. Clients can use it to stop users picking dates whose traces are
already gone. Mastra's own server and built-in stores don't report a
retention, so the field is omitted there.
([#27166](https://github.com/mastra-ai/mastra/pull/27166))

  ```ts
  const { capabilities } = await client.getObservabilityCapabilities();
  capabilities.traceRetentionDays; // e.g. 180, or undefined
  ```

- Updated dependencies
[[`03646c5`](03646c587b),
[`d7bd3cd`](d7bd3cda0f)]:
  - @mastra/core@1.78.0-alpha.8
## @mastra/react@1.10.1-alpha.8

### Patch Changes

- Updated dependencies
[[`03646c5`](03646c587b),
[`4c981d8`](4c981d8415),
[`d7bd3cd`](d7bd3cda0f)]:
  - @mastra/core@1.78.0-alpha.8
  - @mastra/client-js@1.55.0-alpha.8
## @mastra/deployer-cloud@1.78.0-alpha.8

### Patch Changes

- Updated dependencies
[[`03646c5`](03646c587b),
[`d7bd3cd`](d7bd3cda0f)]:
  - @mastra/core@1.78.0-alpha.8
  - @mastra/deployer@1.78.0-alpha.8
## @mastra/longmemeval@1.1.37-alpha.8

### Patch Changes

- Updated dependencies
[[`03646c5`](03646c587b),
[`d7bd3cd`](d7bd3cda0f)]:
  - @mastra/core@1.78.0-alpha.8
## @mastra/opencode@0.1.37-alpha.8

### Patch Changes

- Updated dependencies
[[`03646c5`](03646c587b),
[`d7bd3cd`](d7bd3cda0f)]:
  - @mastra/core@1.78.0-alpha.8
## @mastra/factory@0.23.0-alpha.8

### Patch Changes

- Factory sessions and work-item runs can now start on a model you have
credentials for. This applies when no default model was chosen and the
built-in default model has no credential.
([#27177](https://github.com/mastra-ai/mastra/pull/27177))

The session uses the default model of a provider you have connected, for
example `anthropic/claude-fable-5` for Claude or `openai/gpt-5.6-sol`
for ChatGPT. A default you or your Factory chose always wins. The
fallback is not saved as a default preference.

- Improved the Slack "Could not authorize the owner of Slack Factory
session" error. It now states which check failed:
([#27183](https://github.com/mastra-ai/mastra/pull/27183))

  - The sender's account link has no organization.
- No source-control session row exists for the session, or its project
repository row is missing.
  - The source-control session row has no organization.

- Added `scope=org` to `GET /web/config/models`. It lists only the
models your organization credentials can run, next to the existing
`scope=user` for personal credentials.
([#27163](https://github.com/mastra-ai/mastra/pull/27163))

  ```text
  GET /web/config/models?scope=org
  ```

An unsupported `scope` value now returns `400` with
`invalid_model_scope`. Before, it was ignored and the unfiltered list
came back.

- Updated dependencies
[[`03646c5`](03646c587b),
[`d7bd3cd`](d7bd3cda0f)]:
  - @mastra/core@1.78.0-alpha.8
  - @mastra/code-sdk@1.14.0-alpha.8
## create-factory@0.2.10-alpha.8

### Patch Changes

- Updated dependencies
[[`f296ab0`](f296ab0125)]:
  - mastra@1.34.2-alpha.8
## @mastra/code-sdk@1.14.0-alpha.8

### Patch Changes

- Updated dependencies
[[`03646c5`](03646c587b),
[`d7bd3cd`](d7bd3cda0f)]:
  - @mastra/core@1.78.0-alpha.8
## mastracode@0.47.1-alpha.8

### Patch Changes

- Updated dependencies
[[`03646c5`](03646c587b),
[`d7bd3cd`](d7bd3cda0f)]:
  - @mastra/core@1.78.0-alpha.8
  - @mastra/code-sdk@1.14.0-alpha.8
## @mastra/arize@1.3.25-alpha.2

### Patch Changes

- Updated dependencies
[[`03646c5`](03646c587b),
[`d7bd3cd`](d7bd3cda0f),
[`03646c5`](03646c587b)]:
  - @mastra/core@1.78.0-alpha.8
  - @mastra/otel-exporter@1.4.8-alpha.2
## @mastra/arthur@0.4.25-alpha.2

### Patch Changes

- Updated dependencies
[[`03646c5`](03646c587b),
[`d7bd3cd`](d7bd3cda0f),
[`03646c5`](03646c587b)]:
  - @mastra/core@1.78.0-alpha.8
  - @mastra/otel-exporter@1.4.8-alpha.2
## @mastra/langfuse@1.6.1-alpha.2

### Patch Changes

- Updated dependencies
[[`03646c5`](03646c587b),
[`d7bd3cd`](d7bd3cda0f),
[`03646c5`](03646c587b)]:
  - @mastra/core@1.78.0-alpha.8
  - @mastra/otel-exporter@1.4.8-alpha.2
## @mastra/otel-bridge@1.5.17-alpha.2

### Patch Changes

- Updated dependencies
[[`03646c5`](03646c587b),
[`d7bd3cd`](d7bd3cda0f),
[`03646c5`](03646c587b)]:
  - @mastra/core@1.78.0-alpha.8
  - @mastra/otel-exporter@1.4.8-alpha.2
## @mastra/otel-exporter@1.4.8-alpha.2

### Patch Changes

- Fixed tool calls going missing from `gen_ai.output.messages`. A model
step that only calls tools is now exported as an assistant message with
`tool_call` parts instead of an empty text message. Inference span
inputs are also converted to the GenAI message format.
([#26995](https://github.com/mastra-ai/mastra/pull/26995))

- Updated dependencies
[[`03646c5`](03646c587b),
[`d7bd3cd`](d7bd3cda0f)]:
  - @mastra/core@1.78.0-alpha.8
## @mastra/sentry@1.2.27-alpha.2

### Patch Changes

- Updated dependencies
[[`03646c5`](03646c587b),
[`d7bd3cd`](d7bd3cda0f),
[`03646c5`](03646c587b)]:
  - @mastra/core@1.78.0-alpha.8
  - @mastra/otel-exporter@1.4.8-alpha.2
## mastra@1.34.2-alpha.8

### Patch Changes

- Added company, personal, and hybrid account choices to Factory
onboarding. Onboarding only asks for the connections the chosen setup
needs, and checks each model against the account it runs on before
creating the Factory. Members who cannot use or add a company connection
get the personal setup.
([#27163](https://github.com/mastra-ai/mastra/pull/27163))

- Updated dependencies
[[`03646c5`](03646c587b),
[`d7bd3cd`](d7bd3cda0f)]:
  - @mastra/core@1.78.0-alpha.8
  - @mastra/deployer@1.78.0-alpha.8
## @mastra/core@1.78.0-alpha.8

### Patch Changes

- Fixed model inference spans so they record the messages sent to the
model. Observability backends that read the inference span, such as
Langfuse through the OpenTelemetry exporter or Datadog, now show the
input for every model call instead of an empty value.
([#26995](https://github.com/mastra-ai/mastra/pull/26995))

- Fixed agents sending the same request until `maxSteps` when a
text-only response ended with a non-standard finish reason, such as
`other`. The run now ends after that response, so the text and token
usage are no longer repeated.
([#26905](https://github.com/mastra-ai/mastra/pull/26905))
## @mastra/deployer@1.78.0-alpha.8

### Patch Changes

- Updated dependencies
[[`03646c5`](03646c587b),
[`4c981d8`](4c981d8415),
[`d7bd3cd`](d7bd3cda0f)]:
  - @mastra/core@1.78.0-alpha.8
  - @mastra/server@1.78.0-alpha.8
## @mastra/mcp-docs-server@1.3.8-alpha.11

### Patch Changes

- Updated dependencies
[[`03646c5`](03646c587b),
[`d7bd3cd`](d7bd3cda0f)]:
  - @mastra/core@1.78.0-alpha.8
## @mastra/elysia@0.1.18-alpha.8

### Patch Changes

- Updated dependencies
[[`03646c5`](03646c587b),
[`4c981d8`](4c981d8415),
[`d7bd3cd`](d7bd3cda0f)]:
  - @mastra/core@1.78.0-alpha.8
  - @mastra/server@1.78.0-alpha.8
## @mastra/express@1.5.22-alpha.8

### Patch Changes

- Updated dependencies
[[`03646c5`](03646c587b),
[`4c981d8`](4c981d8415),
[`d7bd3cd`](d7bd3cda0f)]:
  - @mastra/core@1.78.0-alpha.8
  - @mastra/server@1.78.0-alpha.8
## @mastra/fastify@1.5.22-alpha.8

### Patch Changes

- Updated dependencies
[[`03646c5`](03646c587b),
[`4c981d8`](4c981d8415),
[`d7bd3cd`](d7bd3cda0f)]:
  - @mastra/core@1.78.0-alpha.8
  - @mastra/server@1.78.0-alpha.8
## @mastra/hono@1.7.20-alpha.8

### Patch Changes

- Updated dependencies
[[`03646c5`](03646c587b),
[`4c981d8`](4c981d8415),
[`d7bd3cd`](d7bd3cda0f)]:
  - @mastra/core@1.78.0-alpha.8
  - @mastra/server@1.78.0-alpha.8
## @mastra/koa@1.7.22-alpha.8

### Patch Changes

- Updated dependencies
[[`03646c5`](03646c587b),
[`4c981d8`](4c981d8415),
[`d7bd3cd`](d7bd3cda0f)]:
  - @mastra/core@1.78.0-alpha.8
  - @mastra/server@1.78.0-alpha.8
## @mastra/nestjs@0.2.37-alpha.8

### Patch Changes

- Updated dependencies
[[`03646c5`](03646c587b),
[`4c981d8`](4c981d8415),
[`d7bd3cd`](d7bd3cda0f)]:
  - @mastra/core@1.78.0-alpha.8
  - @mastra/server@1.78.0-alpha.8
## @mastra/next@0.2.36-alpha.8

### Patch Changes

- Updated dependencies
[[`03646c5`](03646c587b),
[`4c981d8`](4c981d8415),
[`d7bd3cd`](d7bd3cda0f)]:
  - @mastra/core@1.78.0-alpha.8
  - @mastra/server@1.78.0-alpha.8
  - @mastra/hono@1.7.20-alpha.8
## @mastra/tanstack-start@0.2.36-alpha.8

### Patch Changes

- Updated dependencies
[[`03646c5`](03646c587b),
[`4c981d8`](4c981d8415),
[`d7bd3cd`](d7bd3cda0f)]:
  - @mastra/core@1.78.0-alpha.8
  - @mastra/server@1.78.0-alpha.8
  - @mastra/hono@1.7.20-alpha.8
## @mastra/temporal@0.4.16-alpha.8

### Patch Changes

- Updated dependencies
[[`03646c5`](03646c587b),
[`d7bd3cd`](d7bd3cda0f)]:
  - @mastra/core@1.78.0-alpha.8
  - @mastra/deployer@1.78.0-alpha.8
## create-mastra@1.34.2-alpha.8


## @internal/playground@1.34.2-alpha.8

### Patch Changes

- Updated dependencies
[[`4c981d8`](4c981d8415),
[`03646c5`](03646c587b),
[`4c981d8`](4c981d8415),
[`f85585a`](f85585aef3),
[`d7bd3cd`](d7bd3cda0f)]:
  - @mastra/playground-ui@64.0.0-alpha.8
  - @mastra/core@1.78.0-alpha.8
  - @mastra/client-js@1.55.0-alpha.8
  - @mastra/react@1.10.1-alpha.8

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-15 11:10:36 -07:00
dane-ai-mastra[bot]
2da7c43dcb
chore: version packages (alpha) (#27044)
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/factory@0.23.0-alpha.2

### Minor Changes

- Added a Factory model scope setting so sessions can use organization
models and credentials or their owner’s personal models and credentials.
([#26934](https://github.com/mastra-ai/mastra/pull/26934))

  Organization admins choose the scope through the project API:

  ```http
  PATCH /web/factory/projects/:id
  Content-Type: application/json

  {"modelScope":"user"}
  ```

Use `"factory"` for organization models and credentials. Credential
scope changes apply on the next model invocation without replacing a
thread’s selected model. Session ownership and project policy are
resolved from durable records, and unavailable or ambiguous policy stops
execution instead of falling back to another account.

### Patch Changes

- Fixed the GitHub repository list failing entirely when an organization
still had a personal-account GitHub installation it is no longer allowed
to use; those installations are now skipped. Added a refresh option that
bypasses the repository cache so repositories newly granted on GitHub
appear without waiting for a webhook.
([#27047](https://github.com/mastra-ai/mastra/pull/27047))

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`fd9088a`](fd9088ad86),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/code-sdk@1.14.0-alpha.2
## @mastra/code-sdk@1.14.0-alpha.2

### Minor Changes

- Removed cross-scope credential fallback in deployed sessions so each
session uses only Factory or user credentials.
([#26934](https://github.com/mastra-ai/mastra/pull/26934))

Custom credential store providers must replace `orgFirst` with an
explicit `credentialScope`:

  ```ts
  // Before
  const tenant = { orgId, userId, orgFirst: true };

  // After
  const tenant = { orgId, userId, credentialScope: 'factory' as const };
  ```

Use `"user"` to resolve only personal credentials. Hosts that select
credentials for a session owner rather than the signed-in caller can
register an asynchronous policy resolver as the second argument to
`setCredentialStoreProvider`. Resolve that policy from authenticated
identity and durable session records, not client-writable session state.
Call `prepareCredentialTenant(requestContext)` before resolving a model;
the SDK’s built-in model, memory, and goal-judge resolvers do this
automatically and refresh the policy again before provider calls.

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`2362057`](2362057ced),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/observability@1.20.1-alpha.1
  - @mastra/mcp@2.4.1-alpha.0
## @mastra/client-js@1.54.1-alpha.2

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
## @mastra/react@1.10.1-alpha.2

### Patch Changes

- Fixed `useChat` leaving a pending user message in the chat after a
send fails with thread signals enabled. The optimistic message is now
removed when the server never accepted it, so retrying shows the message
once instead of a stuck pending copy plus the retried one.
([#26975](https://github.com/mastra-ai/mastra/pull/26975))

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/client-js@1.54.1-alpha.2
## @mastra/deployer-cloud@1.78.0-alpha.2

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/deployer@1.78.0-alpha.2
## @mastra/longmemeval@1.1.37-alpha.2

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
## @mastra/opencode@0.1.37-alpha.2

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
## create-factory@0.2.10-alpha.2

### Patch Changes

- Updated dependencies
[[`fd9088a`](fd9088ad86)]:
  - mastra@1.34.2-alpha.2
## mastracode@0.47.1-alpha.2

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`fd9088a`](fd9088ad86),
[`2362057`](2362057ced),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/code-sdk@1.14.0-alpha.2
  - @mastra/observability@1.20.1-alpha.1
  - @mastra/mcp@2.4.1-alpha.0
## @mastra/arize@1.3.25-alpha.1

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/otel-exporter@1.4.8-alpha.1
## @mastra/arthur@0.4.25-alpha.1

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/otel-exporter@1.4.8-alpha.1
## @mastra/braintrust@1.3.22-alpha.1

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`2362057`](2362057ced),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/observability@1.20.1-alpha.1
## @mastra/datadog@1.4.17-alpha.1

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`2362057`](2362057ced),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/observability@1.20.1-alpha.1
## @mastra/deepeval@0.1.19-alpha.1

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`2362057`](2362057ced),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/observability@1.20.1-alpha.1
## @mastra/laminar@1.3.27-alpha.1

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`2362057`](2362057ced),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/observability@1.20.1-alpha.1
## @mastra/langfuse@1.6.1-alpha.1

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`2362057`](2362057ced),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/observability@1.20.1-alpha.1
  - @mastra/otel-exporter@1.4.8-alpha.1
## @mastra/langsmith@1.3.27-alpha.1

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`2362057`](2362057ced),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/observability@1.20.1-alpha.1
## @mastra/observability@1.20.1-alpha.1

### Patch Changes

- Fixed cost estimates for Amazon Bedrock India inference profiles
(`in.` prefix), which previously reported `no_matching_model`. Fixes
#26387. ([#26982](https://github.com/mastra-ai/mastra/pull/26982))

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
## @mastra/otel-bridge@1.5.17-alpha.1

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`2362057`](2362057ced),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/observability@1.20.1-alpha.1
  - @mastra/otel-exporter@1.4.8-alpha.1
## @mastra/otel-exporter@1.4.8-alpha.1

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`2362057`](2362057ced),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/observability@1.20.1-alpha.1
## @mastra/posthog@1.4.2-alpha.1

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`2362057`](2362057ced),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/observability@1.20.1-alpha.1
## @mastra/sentry@1.2.27-alpha.1

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`2362057`](2362057ced),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/observability@1.20.1-alpha.1
  - @mastra/otel-exporter@1.4.8-alpha.1
## mastra@1.34.2-alpha.2

### Patch Changes

- Factory settings now let you choose whether a Factory's sessions use
the organization's models and credentials or each session owner's own.
The setting is also available from the CLI:
([#26934](https://github.com/mastra-ai/mastra/pull/26934))

  ```bash
  mastra api factory project update <project-id> '{"modelScope":"user"}'
  ```

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/deployer@1.78.0-alpha.2
## @mastra/core@1.78.0-alpha.2

### Patch Changes

- Disabled workspace tools no longer add setup work on every agent turn.
Agents with workspace tools turned off now start each turn faster and
allocate less memory. Fixes #26401.
([#26657](https://github.com/mastra-ai/mastra/pull/26657))

- Fixed Amazon Bedrock India inference profiles (`in.` prefix, e.g.
`in.anthropic.claude-sonnet-5`) sending `temperature` to models that
reject it, which returned a 400. They now resolve model capabilities
like the other geography prefixes. Fixes #26387.
([#26982](https://github.com/mastra-ai/mastra/pull/26982))

- Fixed step scorers in nested workflows so their scores are saved.
Before, scores from steps inside a child workflow were silently dropped.
([#26984](https://github.com/mastra-ai/mastra/pull/26984))

- Fixed new conversation failures when ToolSearchProcessor uses context
storage with memory.
([#26902](https://github.com/mastra-ai/mastra/pull/26902))
## @mastra/deployer@1.78.0-alpha.2

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/server@1.78.0-alpha.2
## @mastra/mcp-docs-server@1.3.8-alpha.3

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
## @mastra/playground-ui@63.1.0-alpha.2

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`e496762`](e496762581),
[`d4b2682`](d4b2682da7)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/react@1.10.1-alpha.2
  - @mastra/client-js@1.54.1-alpha.2
## @mastra/server@1.78.0-alpha.2

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
## @mastra/elysia@0.1.18-alpha.2

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/server@1.78.0-alpha.2
## @mastra/express@1.5.22-alpha.2

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/server@1.78.0-alpha.2
## @mastra/fastify@1.5.22-alpha.2

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/server@1.78.0-alpha.2
## @mastra/hono@1.7.20-alpha.2

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/server@1.78.0-alpha.2
## @mastra/koa@1.7.22-alpha.2

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/server@1.78.0-alpha.2
## @mastra/nestjs@0.2.37-alpha.2

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/server@1.78.0-alpha.2
## @mastra/next@0.2.36-alpha.2

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/hono@1.7.20-alpha.2
  - @mastra/server@1.78.0-alpha.2
## @mastra/tanstack-start@0.2.36-alpha.2

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/hono@1.7.20-alpha.2
  - @mastra/server@1.78.0-alpha.2
## @mastra/temporal@0.4.16-alpha.2

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`e496762`](e496762581)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/deployer@1.78.0-alpha.2
## create-mastra@1.34.2-alpha.2


## @internal/playground@1.34.2-alpha.2

### Patch Changes

- Updated dependencies
[[`460b600`](460b600abe),
[`2362057`](2362057ced),
[`9daf547`](9daf547f81),
[`e496762`](e496762581),
[`d4b2682`](d4b2682da7)]:
  - @mastra/core@1.78.0-alpha.2
  - @mastra/react@1.10.1-alpha.2
  - @mastra/client-js@1.54.1-alpha.2
  - @mastra/playground-ui@63.1.0-alpha.2

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-14 10:16:56 -07:00
dane-ai-mastra[bot]
67420f990f chore: version packages 2026-10-14 16:04:44 +00:00
Anurag Ojha
4fe06e46be
fix(observability): wait for in-progress hard-cap evictions in flush and shutdown (#26916)
## Description

`TrackingExporter` hard-cap evictions were fire-and-forget:
`getTraceData()` started `#enforceHardCap()` without tracking it, so the
abort updates it queues could land after `flush()` returned, and
`shutdown()` could abort the same span twice.

- Enforcements are now tracked in `#activeHardCapEnforcements` (same
pattern as `#activeReplays`) and joined in `flush()` and `shutdown()`
before the vendor hooks run.
- Only the enforcements already running are joined, so `flush()` does
not spin when over-cap spans keep arriving.
- Tests: a hard-cap abort held open blocks `flush()` and `shutdown()`,
and the evicted span is aborted exactly once (also when the abort
throws). Three fail on `main`.

Unit-level before/after with a held abort: `flush()` returned after 1 ms
and the span was aborted twice; now `flush()` waits for the abort (202
ms) and the span is aborted once.

Split out of #26760 at review request so the LangSmith PR stays
LangSmith-only. This change affects every tracking exporter.

Also sets `isolate: true` in `observability/langfuse/vitest.config.ts`.
CI runs the langfuse suite for this PR because `@mastra/langfuse`
depends on `@mastra/observability`, and its two tracing test files mock
`@langfuse/otel` differently, so without isolation the converter test
sees the other file's mock and fails depending on worker order. Same fix
as #19232, #19405, #23858 and #24627.

## Related Issue(s)

Part H of #26501. Also covers #26708.

## 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
- [x] Test update

## Checklist

- [ ] 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

When the exporter reaches its trace limit, it may need time to remove an
old trace. This change makes `flush()` and `shutdown()` wait for that
work, so the span is not missed or aborted twice.

## Changes

- Track in-progress hard-cap enforcement promises in `TrackingExporter`.
- Wait for those promises before calling `_flush()` or continuing
shutdown.
- Add tests for held hard-cap aborts, duplicate abort prevention, and
flush completion when an abort throws.
- Add a patch changeset for `@mastra/observability`.

Test execution results were not provided.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Abhi Aiyer <abhiaiyer91@gmail.com>
2026-10-14 12:51:04 +05:30
dane-ai-mastra[bot]
f88217d19b chore: version - exit prerelease mode 2026-10-14 05:19:31 +00:00
dane-ai-mastra[bot]
1f1f1a479f chore: version packages 2026-10-14 04:06:24 +00:00
dane-ai-mastra[bot]
e45f83981a chore: version packages 2026-10-13 16:05:23 +00:00
dane-ai-mastra[bot]
a43d9d9ace chore: version packages 2026-10-12 16:06:40 +00:00
Anurag Ojha
e799a082b0
feat(langfuse): promote span attributes to filterable observation metadata (#26727)
## Description

Langfuse observation-level evaluators can only filter on top-level
observation metadata. Mastra span attributes such as
`mastra.model_step.step_index` and `is_continued` landed in the nested
`metadata.attributes` box, which Langfuse can't filter on. This PR
promotes each scalar `mastra.<span_type>.<key>` attribute to
`langfuse.observation.metadata.<camelKey>`, so a rule like `spanType =
model_step` and `isContinued = "false"` can judge each agent run once,
on the step that produced the final answer.

- Copies each `mastra.<span_type>.<snake_key>` attribute to
`langfuse.observation.metadata.<camelKey>` when the raw span value is a
string, number, boolean, or date. Object and array values
(`entryMetadata`, `truthyIndexes`, `selectedSteps`, `parallelSteps`)
stay nested. Input/output keep their own mapping, existing keys are
never overwritten, source attributes stay in place.
- Unit tests for `MODEL_STEP` and `RAG_EMBEDDING` spans, a collision
test, and a test that runs every workflow/MCP/step span type through the
real `SpanConverter` so a key rename on either side is caught.
- Docs: "Filtering observations by span attributes" on the Langfuse
integration page. Values are strings, so filters compare against
`"false"` or `"1"`.

Verified on Langfuse Cloud with a tool-calling agent and a workflow with
a branch and a parallel block: `stepIndex`, `isContinued`,
`conditionCount`, `branchCount`, `stepId`, and `status` are top-level
metadata; `truthyIndexes`, `selectedSteps`, and `parallelSteps` are not.
Metrics queries filtered on `metadata.isContinued = "false"`, `stepIndex
= "1"`, `conditionCount = "2"`, and `branchCount = "2"` each return
exactly one observation. A 300-character `stepId` is kept intact.

## Related Issue(s)

Fixes #26635

## 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)
- [x] 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
- [x] I have addressed all Coderabbit comments on this PR


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

## ELI5

Langfuse can now filter observations using simple span details, such as
which agent step produced them. This lets teams select the final step
for evaluation without changing the original span attributes.

## Changes

- Promote attributes under the current span type’s `mastra.<span_type>.`
prefix to top-level Langfuse observation metadata when their raw values
are scalar or `Date`.
- Convert metadata keys from snake_case to camelCase and values to
strings.
- Skip `input`, `output`, nullish values, objects, and arrays. Preserve
existing destination values and source attributes.
- Add tests for model, RAG, MCP, and workflow span types, including a
collision check through the real span converter.
- Document filtering by promoted metadata, including `spanType =
model_step` and `isContinued = "false"`, and add a minor changeset.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-10-12 13:13:20 +02:00
dane-ai-mastra[bot]
81299c921d chore: version - exit prerelease mode 2026-10-11 16:59:51 +00:00
dane-ai-mastra[bot]
ebe066cdd3 chore: version packages 2026-10-10 16:05:47 +00:00
dane-ai-mastra[bot]
db62a7772c chore: version packages 2026-10-10 04:07:02 +00:00
dane-ai-mastra[bot]
6ee86bf01d chore: version packages 2026-10-09 16:06:02 +00:00
dane-ai-mastra[bot]
1a363be7df chore: version packages 2026-10-09 04:08:19 +00:00
dane-ai-mastra[bot]
60bfdc5ea4 chore: version packages 2026-10-07 16:06:11 +00:00
Anurag Ojha
956901a36b
feat(observability): add tracingOptions.nestUnderParent for nested runs (#25691)
## Description

A run started with `tracingOptions: { traceId, parentSpanId }` (for
example an LLM judge under the turn it scores) replaced the Langfuse
trace name, input, output, metadata, user and session of the run that
started the trace. This PR adds the opt-in
`tracingOptions.nestUnderParent` flag from the [proposal on the
issue](https://github.com/mastra-ai/mastra/issues/24825#issuecomment-5908969295),
so the caller can say "this run is a child of that span".

```ts
await judge.generate('Grade this answer', {
  tracingOptions: { traceId: turn.traceId, parentSpanId: turn.spanId, nestUnderParent: true },
});
// or: tracingOptions: nestUnderRun(turn)
```

- `@mastra/core`: new `TracingOptions.nestUnderParent`, new
`nestedUnderParent` field on exported spans, and a `nestUnderRun()`
helper that builds the options from a previous run's result.
- `@mastra/observability`: the flag is honored only together with
`parentSpanId` (otherwise ignored with a debug log). It travels in the
run's trace state, so every span of the run is exported with
`nestedUnderParent: true`. The run's tags are dropped. `rebuildSpan()`
keeps the mark.
- `@mastra/langfuse`: spans of a nested run do not write
`langfuse.trace.*`, `user.id` or `session.id`. The skipped values stay
on the observation as `mastra.metadata.*`.
- `@mastra/braintrust`: a nested run links to its parent by id (same
mechanism as the resume path), so it works when another process exported
the parent.
- The default does not change. A run with `parentSpanId` and no flag
behaves as before, so runs under a foreign parent (OTel, HTTP span) keep
their trace summary.
- One difference from the proposal: a resumed run is **not** marked
nested here. Today the resumed run supplies the final reply as the
Langfuse trace output, and marking it nested would drop that. I left the
resume case to #23704.
- Not in this PR: Datadog, LangSmith, Sentry and PostHog (the "options
to explore" part of the proposal). They only inherit the tags rule.
- Verified with real OpenAI + real Langfuse, published packages vs this
branch:

| Scenario | Before | After |
| --- | --- | --- |
| Run alone | assistant | assistant |
| Judge after run, flag on | judge | assistant |
| Run under foreign parent, no flag | assistant | assistant |
| Foreign parent + judge, flag on | judge | assistant |
| Judge started inside a tool of the run, flag on | judge |
assistant-tool |
| Judge with its own tags, user and session, flag on | judge + judge's
user, session and tags | assistant + the run's own user, session and
tags |
| Judge after run, no flag | judge | judge (unchanged) |
| Judge through `nestUnderRun()` | n/a | assistant |
| Judge in another process, flag on | judge | assistant |

- Verified with real Braintrust, judge in another process: before, the
judge run had `span_parents: null` (a second top-level span) and its
tags were written; after, `span_parents` is the outer run's span id and
no tags are written.

## Related Issue(s)

Fixes #24825

## 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
- [ ] 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 PR lets a run join an existing trace as a child without changing
the trace details set by the run that started it. It also adds a helper
that builds the nesting options from a previous run.

## What changed
- Added the opt-in `tracingOptions.nestUnderParent` flag. The flag
applies when the run joins the requested trace under the requested
parent span; otherwise, Mastra clears the nested marker and logs a debug
message.
- Added `nestUnderRun()` to build tracing options from a previous run’s
trace and span IDs.
- Marked nested spans so exporters can distinguish them, omitted their
run tags, and preserved the marker when spans are rebuilt.
- Updated Langfuse to keep nested-run trace fields, metadata, user ID,
and session ID off the trace-level attributes.
- Updated Braintrust to link nested runs to the parent span, including
when another process exported the parent.
- Added server schema support and documentation for the new option.

When the flag is absent, existing behavior remains unchanged. Resumed
runs and exporters other than Langfuse and Braintrust are outside this
change.

## Verification
The change summary reports automated tests for Mastra tracing, span
rebuilding, Langfuse, Braintrust, the helper, and server schemas. It
also reports manual verification with OpenAI, Langfuse, and Braintrust.
Test commands and results were not provided.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-10-07 12:13:41 +02:00
dane-ai-mastra[bot]
b10b70fd77 chore: version - exit prerelease mode 2026-10-07 08:40:03 +00:00
dane-ai-mastra[bot]
2a478e00a1 chore: version packages 2026-10-07 04:06:26 +00:00
dane-ai-mastra[bot]
2eaf2bdaf2 chore: version packages 2026-10-05 16:05:21 +00:00