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

114 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]
6e8dfcb83f chore: version - exit prerelease mode 2026-11-03 23:45: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]
6a191d46dc chore: version - exit prerelease mode 2026-10-28 13:15:52 +00: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)
52e193c1b9
chore(deps): update dependency typescript-language-server to ^5.3.0 (#28004) 2026-10-21 14:51:28 +02:00
dane-ai-mastra[bot]
4c22623ea3 chore: version - exit prerelease mode 2026-10-21 11:26:39 +00:00
dane-ai-mastra[bot]
fe516094f5 chore: version - exit prerelease mode 2026-10-15 21:33:45 +00:00
dane-ai-mastra[bot]
f88217d19b chore: version - exit prerelease mode 2026-10-14 05:19:31 +00:00
dane-ai-mastra[bot]
81299c921d chore: version - exit prerelease mode 2026-10-11 16:59:51 +00:00
dane-ai-mastra[bot]
b10b70fd77 chore: version - exit prerelease mode 2026-10-07 08:40:03 +00:00
dane-ai-mastra[bot]
b21e46e19b chore: version - exit prerelease mode 2026-10-01 18:04:32 +00:00
dane-ai-mastra[bot]
8b35a6c1d6 chore: version - exit prerelease mode 2026-10-01 08:22:20 +00:00
dane-ai-mastra[bot]
5306a14346 chore: version - exit prerelease mode 2026-09-29 23:50:38 +00:00
dane-ai-mastra[bot]
6721bffd7e chore: version - exit prerelease mode 2026-09-24 23:17:52 +00:00
dane-ai-mastra[bot]
6d36499758 chore: version - exit prerelease mode 2026-09-24 12:50:16 +00:00
dane-ai-mastra[bot]
a436d6c513 chore: version - exit prerelease mode 2026-09-23 09:15:38 +00:00
dane-ai-mastra[bot]
429d7b9f93 chore: version - exit prerelease mode 2026-09-22 10:43:03 +00:00
Ward Peeters
379e568788
feat(server-adapters): publish shared adapter test suite (#24254)
Co-authored-by: mastracode <284800079+mastra-platform[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-09-17 14:39:24 +02:00
dane-ai-mastra[bot]
871bdaa595 chore: version - exit prerelease mode 2026-09-15 09:04:59 +00:00
dane-ai-mastra[bot]
cbd18af524 chore: version - exit prerelease mode 2026-09-10 16:48:00 +00:00
dane-ai-mastra[bot]
4eda447b76 chore: version - exit prerelease mode 2026-09-09 05:42:50 +00:00
dane-ai-mastra[bot]
c19a93b095 chore: version - exit prerelease mode 2026-09-03 04:02:53 +00:00
dane-ai-mastra[bot]
003e75745c chore: version - exit prerelease mode 2026-08-28 21:21:45 +00:00
dane-ai-mastra[bot]
4a41ea6117 chore: version - exit prerelease mode 2026-08-28 13:11:11 +00:00
dane-ai-mastra[bot]
17ad0c69b4 chore: version - exit prerelease mode 2026-08-26 21:34:54 +00:00
dane-ai-mastra[bot]
3cd96a3c5a chore: version - exit prerelease mode 2026-08-26 10:43:02 +00:00
dane-ai-mastra[bot]
ce66f918f0 chore: version - exit prerelease mode 2026-08-21 01:08:55 +00:00
dane-ai-mastra[bot]
c23d44525c chore: version - exit prerelease mode 2026-08-19 03:57:12 +00:00
mastra-platform[bot]
4e7a421dce
feat(workspace): support closing process stdin (#21606)
Co-authored-by: Abhi Aiyer <abhiaiyer91@gmail.com>
Co-authored-by: Mastra Code (openai/gpt-5.6-sol) <noreply@mastra.ai>
2026-08-17 16:21:00 -07:00
dane-ai-mastra[bot]
c5702d34a5 chore: version - exit prerelease mode 2026-08-14 00:21:58 +00:00
dane-ai-mastra[bot]
387c6b7f5a chore: version - exit prerelease mode 2026-08-12 04:41:36 +00:00
Ward Peeters
a59049b165
feat(workspace): add sandbox snapshots (#21221) 2026-08-10 17:53:32 -07:00
dane-ai-mastra[bot]
ca935ef6de chore: version - exit prerelease mode 2026-08-05 20:21:53 +00:00
dane-ai-mastra[bot]
b4c8440eef chore: version - exit prerelease mode 2026-08-05 00:05:07 +00:00
dane-ai-mastra[bot]
bccb45d579 chore: version - exit prerelease mode 2026-07-30 01:34:20 +00:00
dane-ai-mastra[bot]
162f3da717 chore: version - exit prerelease mode 2026-07-28 23:00:57 +00:00
dane-ai-mastra[bot]
6c89bcf796 chore: version - exit prerelease mode 2026-07-27 15:35:23 +00:00
Ward Peeters
3a507cbd42
chore: migrate repository formatting to oxfmt (#19807)
Co-authored-by: Mastra Code (openai/gpt-5.5) <noreply@mastra.ai>
2026-07-24 16:18:33 +02:00
dane-ai-mastra[bot]
7a2c3cfb85 chore: version - exit prerelease mode 2026-07-23 09:35:49 +00:00
dane-ai-mastra[bot]
79ee78c5b1 chore: version - exit prerelease mode 2026-07-23 03:17:19 +00:00
Ward Peeters
ad08381051
feat: rename workspace sandbox derive to clone (#19625)
Co-authored-by: Mastra Code (openai/gpt-5.5) <noreply@mastra.ai>
2026-07-17 14:36:36 +02:00
Abhi Aiyer
3b65e68d7f
Derivable workspace sandboxes: derive() across providers + MC Web factory integration (#19616)
## Summary

Makes MC Web's sandbox fleet work directly with core `WorkspaceSandbox`
instances instead of a bespoke provider seam, and rolls the underlying
`derive()` capability out across the entire sandbox provider matrix.

### Core: `derive()` on the sandbox contract

- Adds an optional `derive(options?: SandboxDeriveOptions)` method to
the `WorkspaceSandbox` interface (`@mastra/core/workspace`). `derive()`
constructs an independent, unstarted sibling sandbox that inherits the
template's configuration (credentials, image/template, network,
defaults) while overriding `id`, `sandboxId` (provider-native reattach
hint), `env`, and `idleTimeoutMinutes`. It performs no I/O — starting
the derived sandbox provisions a fresh instance or reattaches to an
existing one by id.
- Implements `derive()` on `LocalSandbox` (core) and across the provider
matrix: Railway, E2B, Daytona, Modal, Docker, Blaxel, Apple Container,
and Vercel (microVM). Each maps `idleTimeoutMinutes` onto its native
lifetime knob (ms timeout, auto-stop minutes, duration string) or
ignores it when the provider has no idle teardown.
- `MockSandbox` in `@mastra/workspaces-test-utils` implements `derive()`
for unit tests.

### MC Web: factory consumes sandboxes, not providers

- `MastraFactory` now accepts `sandbox?: WorkspaceSandbox` — a
never-started template used to stamp per-project sandboxes via
`derive()`. Boot-time validation fails fast with an actionable error if
the supplied sandbox doesn't implement `derive()`; omitting the slot
boots with sandbox features disabled (reported via diagnostics).
- Deletes the `WebSandboxProvider` seam (`RailwaySandboxProvider`,
`LocalSandboxProvider`, and the materialization wrapper) — any sandbox
implementing `derive()` now works with GitHub projects, including
third-party implementations, with zero factory changes.
- The web entry constructs `RailwaySandbox` or `LocalSandbox` instances
from env (Railway auto-selected when `RAILWAY_API_TOKEN` is set; local
requires explicit `MASTRACODE_SANDBOX_PROVIDER=local` opt-in).
- Moves the sandbox fleet module (provisioning, repo materialization,
worktrees, token-scoped push, PR creation) out of `github/` into its own
`src/web/sandbox/` module — it was never GitHub-specific.
- Per-project checkout paths use nested `owner/name` layout, preventing
collisions between repos with the same name.

Also aligns the web e2e driver/tests with upstream contract changes
(`running` moved off the transcript reducer to the connection layer;
events now carry `MastraDBMessage`).

## Test plan

- [x] `derive()` unit tests for all 9 providers (constructs unstarted
sibling, inherits config, applies env/timeout overrides, reattach
semantics) — Railway 40, E2B 120, Daytona 115, Modal 38, Docker 75,
Blaxel 87, Apple Container 42, Vercel 66 tests passing
- [x] MC Web full suite: 601 unit + 90 node e2e + 471 MSW tests passing
- [x] Fleet + factory tests cover template validation, workdir layout,
per-project derive + reattach, sandbox budget, and graceful degradation
when no sandbox is configured
- [x] `tsc --noEmit` and prettier clean; `pnpm build:mastracode` green
- [x] Changesets included for `@mastra/core` and all 7 workspace
provider packages


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

## ELI5

This PR lets one sandbox template create separate, independent sandboxes
for different projects. It also simplifies the web app’s sandbox setup
and makes sandbox behavior consistent across providers.

## What changed

- Added optional `WorkspaceSandbox.derive()` support with configurable
IDs, environment variables, reattachment IDs, and idle timeouts.
- Implemented derivation across Local, Railway, E2B, Daytona, Modal,
Docker, Blaxel, Apple Container, Vercel MicroVM, and test utilities.
- Replaced web-only sandbox providers with template-based
`WorkspaceSandbox` configuration.
- Added validation and diagnostics for missing or unsupported sandbox
configuration.
- Moved sandbox fleet management from GitHub modules into
`src/web/sandbox/fleet.ts`.
- Added per-project `owner/name` checkout paths and Railway/Local
environment-based sandbox construction.
- Updated lifecycle, reattachment, budgeting, and teardown handling.
- Updated E2E run-state tracking to use connection-level events and
refreshed message event fixtures.
- Added release changesets and comprehensive derivation tests.

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

---------

Co-authored-by: Mastra Code (anthropic/claude-fable-5) <noreply@mastra.ai>
2026-07-17 11:20:19 +02:00
dane-ai-mastra[bot]
dfaf448ceb chore: version - exit prerelease mode 2026-07-15 00:15:37 +00:00
dane-ai-mastra[bot]
0223aa21b6 chore: version - exit prerelease mode 2026-07-07 22:40:26 +00:00
dane-ai-mastra[bot]
cf9ef51cc7 chore: version - exit prerelease mode 2026-07-06 17:19:52 +00:00
dane-ai-mastra[bot]
63bac7dc4e chore: version - exit prerelease mode 2026-07-02 22:24:19 +00:00
dane-ai-mastra[bot]
b0c544fc1f chore: version - exit prerelease mode 2026-07-01 00:59:43 +00:00
dane-ai-mastra[bot]
57566498b5 chore: version - exit prerelease mode 2026-06-26 19:51:28 +00:00
dane-ai-mastra[bot]
1556acd04c chore: version - exit prerelease mode 2026-06-24 04:07:33 +00:00