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

260 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
Eric Pinzur
166ad37deb
fix(observability): deliver feedback and scores independently to exporters (#30052)
Feedback and scores submitted with only a trace/span ID can be dropped
before reaching remote exporters because the SDK first looks in local
storage. For example, `addFeedback({ traceId, feedback })` cannot
currently reach Platform when that trace exists only there. This change
dispatches to every supporting exporter immediately and moves local
lookup/retries into MastraStorageExporter and the deprecated
DefaultExporter. Each storage exporter enriches its own copy while
preserving the original ID and timestamp.

OSS HTTP creates keep their existing local persistence and response
contract, then notify exporters without writing through the storage
exporter again. Supplied context, including an empty object, stays
supplied. Exported feedback preserves the author and review status,
including an explicitly null author. Pending storage lookups and custom
exporter deliveries are included in flush/shutdown. HTTP creates return
after local persistence and enqueue exporter delivery without waiting
for custom handlers to finish. Studio routing is unchanged: writes
target the backend serving reads.

Local context resolution requires the target span’s actual ancestor
root. Missing parents are retried, then logged and skipped locally; we
intentionally do not borrow another root’s tags or store incomplete root
context. Other exporters still receive the record independently.
Transient storage-read errors use the same bounded retry window and
report the final read error when exhausted.

Validated after review with 316 exporter/bus/recorded-span tests and 69
HTTP contract tests each on Hono, Fastify, and Koa (523 tests). The four
custom-exporter timing cases also passed 20 repeated runs. The
read-error and HTTP-latency regressions failed before their fixes, and
temporarily allowing the orphan fallback failed the new root-context
regression. Six older mocked forwarding/race tests are replaced by real
storage and HTTP coverage. Package builds, observability production and
adapter-suite typechecks, changed-file lint, and docs checks pass;
generated route types and CLI metadata are unchanged.

Express and NestJS tests hit a JSON body-parser failure before our
handlers. Standalone Express with no Mastra code reproduces `getBody is
not a function` under the local Node 23.11.0 runtime. The standalone
observability typecheck also retains four existing errors in
`workflow-control-flow-suite.ts`. These are not fixed here.

Fixes [OBS-886](https://linear.app/kepler-crm/issue/OBS-886) and
addresses the create-delivery portion of
[#24054](https://github.com/mastra-ai/mastra/issues/24054). Feedback
replacement remains in
[OBS-887](https://linear.app/kepler-crm/issue/OBS-887), and
review-status PATCH propagation remains in
[OBS-785](https://linear.app/kepler-crm/issue/OBS-785).

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

## ELI5

This PR sends feedback and score records to each exporter independently.
Missing local traces no longer prevent remote delivery, and HTTP-created
records keep their original data.

## Summary

- Added exporter-specific event routing.
- Moved trace and span resolution into `MastraStorageExporter` and
`DefaultExporter`.
- Added bounded retries for storage lookups.
- Added pending annotation delivery before `flush()` and shutdown.
- Added asynchronous exporter notifications after successful HTTP
persistence.
- Prevented duplicate storage writes for HTTP-created records.
- Preserved IDs, timestamps, context, authors, anonymous feedback,
metadata, and review status.
- Added nullable `feedbackUserId` and `reviewStatus` support.
- Added SDK and HTTP adapter integration tests.
- Updated documentation, package metadata, and changesets.

**Diff:** 30 files changed; 954 additions and 483 deletions.

## Validation

- Reported: 503 focused tests passed, including 65 HTTP contract tests
for each of Hono, Fastify, and Koa.
- Reported: builds, changed-file lint, and documentation checks passed.
- Express and NestJS tests fail during JSON body parsing with `getBody
is not a function`.
- Standalone observability typecheck retains four existing errors.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-11-11 14:41:54 +01: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]
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[bot]
6a191d46dc chore: version - exit prerelease mode 2026-10-28 13:15:52 +00:00
Damien Schneider
976fde7416
refactor(lint): enable no-else-return at root (#28601)
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 -->
2026-10-28 12:30:27 +01: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
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]
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
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]
a43d9d9ace chore: version packages 2026-10-12 16:06:40 +00:00
Anurag Ojha
3504acdb28
feat(mcp): link MCP client and server traces in both directions (#26059)
## Description

A Mastra agent calling an MCP server produced two traces with nothing
connecting them. This PR links them through W3C trace context. Each side
keeps its own trace, and the spans link to each other.

- `MCPClient` sends the `traceparent` of the tool call span in the
request `_meta`. A `traceparent` the caller set, or a configured
`traceContext` provider, wins.
- `MCPServer` reads `traceparent` and `tracestate` from `_meta`, else
from the HTTP headers. With a valid `traceparent`, the request span
links to the caller's span and records `callerTraceparent` and
`callerTracestate` (capped at 512 characters by whole entries). The
trace fields are left out of the span input.
- The `tools/call` reply names the request span in
`_meta.mastra.traceparent`. `MCPClient` removes it and sets a link on
the tool call span directly, so the two spans link both ways.
- `@mastra/core` adds `SpanLink`, a `links` option when starting a span,
and `parseTraceparent`/`formatTraceparent`. Storage writes links into
the existing `links` column. `span.update()` does not take links.
- Links are sent by the OpenTelemetry exporter (and Langfuse, Arize,
Arthur through it), `OtelBridge`, the Datadog exporter and bridge, and
the Sentry exporter. Braintrust and LangSmith show the caller attributes
in metadata, and PostHog adds them to the served request's `$ai_trace`
event.
- `@mastra/mcp` and `@mastra/connect` now require `@mastra/core` 1.76.0
or later.

## Related Issue(s)

Fixes #26424

## Type of Change

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

## Checklist

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


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

## ELI5

This change helps MCP clients and servers show which requests belong
together, without combining their separate traces. It also lets the
client link back to the server’s request when the server returns its
span information.

## Summary

- `MCPClient` sends the current tool-call span’s W3C `traceparent` in
request `_meta` when no caller-provided context or configured
`traceContext` takes precedence. It reads server trace information from
`tools/call` replies, removes it from the returned metadata, and links
the tool-call span to the server span.
- `MCPServer` reads `traceparent` and `tracestate` from `_meta`, falling
back to HTTP headers. For a valid `traceparent`, it links its request
span to the caller’s span and records caller trace attributes. It caps
`tracestate` at 512 characters, excludes trace fields from recorded
input, and does not record baggage.
- The server keeps its own trace and root span. It returns its request
span’s `traceparent` in `tools/call` reply metadata when the caller sent
trace context.
- Core tracing adds `SpanLink` and span-start `links` support. Storage
preserves links, and the OpenTelemetry exporter and bridge, Datadog, and
Sentry integrations export them. PostHog adds caller trace attributes to
MCP server request events; Braintrust and LangSmith expose them in
metadata.
- Adds W3C `traceparent` parsing and formatting utilities, tests, and
documentation. Raises the minimum `@mastra/core` peer dependency to
1.76.0 for `@mastra/mcp` and `@mastra/connect`.

Test results were not provided.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-10-12 11:15:18 +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
Eric Pinzur
ae230b705f
fix(posthog): include provider-executed tool results in $ai_input (#26234)
## Description

Follow-up to #25919. That PR rebuilds each provider call's `$ai_input`
in the PostHog exporter from the generation's input plus earlier calls'
outputs and tool results. It only recorded `TOOL_CALL` / `MCP_TOOL_CALL`
spans, so a provider-executed tool (for example a provider's web search)
appeared in the next call's `$ai_input` as an assistant tool call with
no result.

- `recordForConversation()` now also records `PROVIDER_TOOL_CALL` spans,
matched by `toolCallId` like the others. It only records them when
`attributes.success` is a boolean: `provider-tool-spans.ts` ends the
span with no output and no `success` when no result arrived (e.g. the
run stopped first), and recording that would add an empty result.
- `withCallInput()` sets `isError` on the `tool-result` part when the
span has `errorInfo` **or** is a provider tool span with `success:
false`, since provider tools report failure through that attribute.
- Patch changeset for `@mastra/posthog`. No change outside
`observability/posthog`.

Tests (in the existing `with MODEL_INFERENCE spans` block, reusing its
fixture):

- a provider-executed tool that succeeded and one that failed: the next
call's `$ai_input` has both results, the failed one with `isError: true`
(fails without the source change)
- a provider tool span that ended without a result: no `tool` message is
added

`observability/posthog`: 71 tests pass; `tsc --noEmit`, eslint, oxlint
and oxfmt are clean.

Known limit, same as the rest of the rebuild: if a provider tool span
ends after the next call has already been exported, that call won't
include its result.

## Related issue(s)

Follow-up to #25919 (part of #25302)

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

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_014GbBe1z47YS1n4ufTq9icb

---
_Generated by [Claude
Code](https://claude.ai/code/session_014GbBe1z47YS1n4ufTq9icb)_

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

## ELI5

When a model uses a built-in tool, PostHog could miss the tool’s answer
in the model’s next input. This change adds completed provider-tool
results to that input and marks failed results as errors.

## Changes

- Record `PROVIDER_TOOL_CALL` spans as tool results when they have a
boolean `success` attribute.
- Mark a provider-tool result as an error when `success` is `false` or
the span has `errorInfo`.
- Exclude provider-tool spans without a result.
- Add tests for successful results, failed results, and spans without
results.

## Validation

The PR reports 71 PostHog tests passing, with `tsc --noEmit`, ESLint,
oxlint, and oxfmt clean.

## Limitation

A provider-tool result may be absent from the next call’s input if its
span ends after that call has already been exported.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-07 12:59:08 +02:00
Anurag Ojha
0a8d35e8de
feat(posthog): export one $ai_generation per provider call (#25919)
## Description

`@mastra/posthog` exported only `MODEL_GENERATION` as `$ai_generation`,
so `$ai_tools` could not be right for a run whose tool set changes
between provider calls. This PR exports one `$ai_generation` per
provider call, which is what PostHog's own SDKs send ("A generation is a
single call to an LLM", [PostHog
docs](https://posthog.com/docs/llm-analytics/generations)). This is
change 2 of the plan in #25302 and builds on #25917, which added the
`tools` attribute to `MODEL_INFERENCE`.

- `MODEL_INFERENCE` is exported as `$ai_generation` with model,
provider, usage, parameters, output, and `$ai_tools` from its `tools`
attribute.
- `$ai_input` for each call is rebuilt in the exporter, like
Braintrust's Thread view
(`observability/braintrust/src/thread-reconstruction.ts`): the
`MODEL_GENERATION` input messages, then for each earlier call in the
same generation an assistant message with its text and tool calls (full
arguments), then one `tool` message per `TOOL_CALL` / `MCP_TOOL_CALL`
result matched by `toolCallId` (full result), with parallel results
ordered by tool start time. Earlier calls and their tools end before the
next call does, so the data is there when it is exported.
- Assistant tool calls reuse the exporter's existing `tool-call` content
shape (#14383). Tool results use the `tool-result` part shape PostHog's
own Vercel AI SDK integration sends (`toolCallId`, `toolName`, `output`,
`isError`).
- `MODEL_GENERATION` is exported as `$ai_span` and keeps its `usage`.
PostHog only sums `$ai_input_tokens` / `$ai_output_tokens` on
`$ai_generation` events, so tokens are counted once.
- When `isModelInferenceEnabled()` is false (older `@mastra/core` or
`@mastra/observability`), today's mapping is kept. Detection in
`src/features.ts` is the same as in the OTel exporter.
- No change outside `@mastra/posthog` and its docs.

Docs: updated the span type mapping section in the PostHog exporter
reference (it also listed `MODEL_STEP` as `$ai_generation`, which was
not true) and added a note that deprecated `generateLegacy()` /
`streamLegacy()` runs send no `$ai_generation` events, so no tokens or
cost reach PostHog for them. The changeset says the same.

Verified with real OpenAI (`openai/gpt-4.1-mini`) and real PostHog
ingestion (HTTP 200), reading the request bodies on both sides. Agent
with tools `weather` and `hidden`, a processor allowing only `weather`,
asked for two cities (parallel tool calls):

| | `$ai_generation` events | `$ai_tools` | tokens |
|---|---|---|---|
| OpenAI received | 2 calls (2 and 6 input items) | `[weather]` both
calls | 200 in / 60 out |
| `main` exporter | 1 | `[weather, hidden]` | 200 / 60 |
| this PR, `stream()` | 2 | `[weather]`, `[weather]` | 72/43 + 128/17 =
200 / 60 |
| this PR, `generate()` | 2 | `[weather]`, `[weather]` | 72/43 + 128/18
= 200 / 61 (= run usage) |

Call 2's `$ai_input` was system, user, assistant with both tool calls
and their arguments, and both tool results in full: the same 6 items
OpenAI received.

Known gap, not from this PR: on the durable agent path,
`MODEL_GENERATION` has no input and `MODEL_INFERENCE` output is `{}`, so
per-call `$ai_input` / `$ai_output_choices` are empty there. On `main`
the durable path sends no `$ai_generation` at all (verified), so this PR
still adds the per-call tools, tokens and cost for it. Filling those
spans belongs in core.

Things to be aware of:

- The number of `$ai_generation` events goes up for multi-step runs.
Total tokens and cost per trace do not change. The changeset calls this
out.
- `$ai_input` starts from the `MODEL_GENERATION` input. If a processor
rewrites messages between calls (for example trimming history), the
rebuilt input can differ from what the provider received. Braintrust's
Thread view has the same limit.

## Related Issue(s)

Fixes #25302 (change 2 of 2; change 1 was #25917)

## 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 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 a run asks a model several times, PostHog now gets one generation
event for each provider call. This makes each call’s tools,
conversation, and token usage visible without counting tokens twice.

## Summary

- Export each `MODEL_INFERENCE` span as a `$ai_generation` event with
that call’s model, provider, token usage, output, and tools.
- Rebuild each call’s `$ai_input` from the generation’s messages and
earlier calls’ assistant tool calls and matched tool results. Order
parallel tool results by tool-span start time.
- Export the wrapping `MODEL_GENERATION` span as `$ai_span` and retain
its run usage. In this mapping, `$ai_generation` events provide
PostHog’s generation token and cost totals.
- Preserve the prior mapping when `@mastra/core` or
`@mastra/observability` does not support `MODEL_INFERENCE`.
- Update the PostHog mapping documentation and changeset. They explain
that deprecated `generateLegacy()` and `streamLegacy()` runs send no
`$ai_generation` events or token and cost data.

Tests cover multiple calls, tool arguments and results, parallel and
failed tool calls, legacy mapping, and retained run usage. The author
reports successful real PostHog ingestion tests. On the durable agent
path, per-call input and output can remain empty because the spans do
not contain that data.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-10-07 12:02: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
dane-ai-mastra[bot]
8b35a6c1d6 chore: version - exit prerelease mode 2026-10-01 08:22:20 +00:00
dane-ai-mastra[bot]
b782191b6c chore: version packages 2026-09-30 16:07:15 +00:00
dane-ai-mastra[bot]
5306a14346 chore: version - exit prerelease mode 2026-09-29 23:50:38 +00:00