@mastra/platform-workspace 1.4.1 → 1.5.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,42 @@
1
1
  # @mastra/platform
2
2
 
3
+ ## 1.5.0-alpha.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Added reusable sandbox templates to Platform workspaces. Build templates through `PlatformSandbox` with the portable `Template()` API; Platform content-addresses each serialized definition for reuse. Public repositories can be warmed lazily with `createRepoTemplate()`. Use `cpuCount()` and `memoryMB()` to size E2B template builds and sandboxes created from the exact or a resource-matched stale build; `createRepoTemplate()` accepts the same sizing as plain options. Railway ignores these resource methods. ([#22065](https://github.com/mastra-ai/mastra/pull/22065))
8
+
9
+ ```ts
10
+ const sandbox = new PlatformSandbox({
11
+ environmentId,
12
+ template: Template().cpuCount(4).memoryMB(8192).runCmd('pnpm install'),
13
+ });
14
+
15
+ // createRepoTemplate takes the whole sandbox context: a session with no
16
+ // repository gets undefined back and boots the provider default.
17
+ const repoSandbox = new PlatformSandbox({
18
+ environmentId,
19
+ template: createRepoTemplate({
20
+ getRepositoryAccess: async () => ({ cloneUrl: 'https://github.com/mastra-ai/mastra.git' }),
21
+ setupCommand: 'pnpm install --frozen-lockfile',
22
+ memoryMB: 2048,
23
+ }),
24
+ });
25
+ ```
26
+
27
+ Template environment values are serialized by default. Pass `{ ephemeral: true }` to `setEnvs()` for short-lived build credentials that must stay outside the definition, identity, persistent record, and runtime environment. `Template.build()` can eagerly start or reuse the provider build without provisioning a sandbox. Railway includes transient values in its provider cache input, so rotating one may trigger another Railway build while the Platform template ID remains stable.
28
+
29
+ `PlatformSandbox.start()` never blocks on a template build. When the exact template is not yet ready, Platform boots the sandbox on the best available fallback (an E2B prior member of the same family with matching effective resources if one exists, otherwise the provider base template) and builds the exact template in the background. A provider-base fallback may use provider-default resources. The sandbox surfaces `templatePending` for observability; reconcile filesystem state in your own runtime setup (for example, an `onStart` hook that runs `git fetch && git checkout <sha>`).
30
+
31
+ `Template().withFamily(key)` attaches a caller-supplied family key that groups successive builds of the "same thing" (e.g. the same repository+workdir across commits) so an E2B definition can warm-start on a resource-matched prior member of the same family. Railway doesn't use family fallback. `createRepoTemplate()` populates the key automatically as `repo:<cloneUrl>:<workdir>`.
32
+
33
+ - Changed Platform sandboxes to use E2B by default. Set sandboxProvider or SANDBOX_PROVIDER to railway to opt into Railway. ([#22065](https://github.com/mastra-ai/mastra/pull/22065))
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies [[`3910c77`](https://github.com/mastra-ai/mastra/commit/3910c77413a3058ab270c6dbc74a59bc3cdf67ea)]:
38
+ - @mastra/core@1.63.3-alpha.0
39
+
3
40
  ## 1.4.1
4
41
 
5
42
  ### Patch Changes
package/LICENSE.md CHANGED
@@ -1,10 +1,12 @@
1
1
  Portions of this software are licensed as follows:
2
2
 
3
- - All content that resides under any directory named "ee/" within this
3
+ - All content that resides under any directory named `ee/` within this
4
4
  repository, including but not limited to:
5
- - `packages/core/src/auth/ee/`
6
- - `packages/server/src/server/auth/ee/`
7
- is licensed under the license defined in `ee/LICENSE`.
5
+ - `@mastra/core/auth/ee`
6
+ - `@mastra/core/agent-builder/ee`
7
+ - `@mastra/editor/ee`
8
+
9
+ is licensed under the license defined in [`ee/LICENSE`](https://github.com/mastra-ai/mastra/blob/main/ee/LICENSE).
8
10
 
9
11
  - All third-party components incorporated into the Mastra Software are
10
12
  licensed under the original license provided by the owner of the
package/README.md CHANGED
@@ -12,15 +12,16 @@ npm install @mastra/platform-workspace
12
12
 
13
13
  All options can be passed to the constructor or read from environment variables:
14
14
 
15
- | Option | Env var | Required |
16
- | --------------- | ------------------------------ | ---------------- |
17
- | `accessToken` | `MASTRA_PLATFORM_ACCESS_TOKEN` | Yes |
18
- | `projectId` | `MASTRA_PROJECT_ID` | Yes |
19
- | `environmentId` | `MASTRA_ENVIRONMENT_ID` | Yes (sandbox) |
20
- | `actingUserId` | — | No (sandbox) |
21
- | `bucketName` | `MASTRA_PLATFORM_BUCKET_NAME` | Yes (filesystem) |
15
+ | Option | Env var | Required |
16
+ | ----------------- | ------------------------------ | ---------------- |
17
+ | `accessToken` | `MASTRA_PLATFORM_ACCESS_TOKEN` | Yes |
18
+ | `projectId` | `MASTRA_PROJECT_ID` | Yes |
19
+ | `environmentId` | `MASTRA_ENVIRONMENT_ID` | Yes (sandbox) |
20
+ | `actingUserId` | — | No (sandbox) |
21
+ | `sandboxProvider` | `SANDBOX_PROVIDER` | No (sandbox) |
22
+ | `bucketName` | `MASTRA_PLATFORM_BUCKET_NAME` | Yes (filesystem) |
22
23
 
23
- The proxy URL defaults to `https://workspaces.mastra.ai` and can be overridden with the `MASTRA_WORKSPACE_PROXY_URL` env var (useful for staging).
24
+ The sandbox provider resolves from the explicit `sandboxProvider` option, then `SANDBOX_PROVIDER`, then defaults to `e2b`. Set either option to `railway` to use Railway sandboxes. The proxy URL defaults to `https://workspaces.mastra.ai` and can be overridden with the `MASTRA_WORKSPACE_PROXY_URL` env var (useful for staging).
24
25
 
25
26
  Requests to the proxy are authenticated with `Authorization: Bearer <accessToken>`. For sandbox requests authenticated with a project access token, set `actingUserId` to the stable opaque user subject from your authentication system. It is sent as `x-acting-user-id` for token partitioning and attribution; it is not an authorization claim.
26
27
 
@@ -66,7 +67,7 @@ Pass `readOnly: true` to mount the bucket read-only. Mutating calls will throw `
66
67
 
67
68
  ## Sandbox
68
69
 
69
- `PlatformSandbox` executes commands inside a Railway-backed sandbox tied to a Platform environment. Sessions boot from a pre-built recipe checkpoint (Python 3, Node 22, TypeScript/tsx, common build tooling).
70
+ `PlatformSandbox` executes commands inside a provider-backed sandbox tied to a Platform environment. Sessions boot from the configured provider template or checkpoint.
70
71
 
71
72
  ```typescript
72
73
  const sandbox = new PlatformSandbox({ environmentId: 'env_abc' });
@@ -81,6 +82,36 @@ console.log(result.stdout);
81
82
 
82
83
  Pass an existing `sandboxId` to reattach to a live sandbox instead of creating a new one.
83
84
 
85
+ ### Reusable templates
86
+
87
+ Use `Template()` to prebuild a public repository at an immutable commit. `PlatformSandbox` sends the serialized definition to Platform, which content-addresses it and starts or reuses the provider build. Sandbox creation doesn't wait for the build. Platform boots from a prior template in the same family with matching resources when available, otherwise from the provider default, while the requested template builds in the background:
88
+
89
+ ```typescript
90
+ import { PlatformSandbox, Template } from '@mastra/platform-workspace';
91
+
92
+ const commitSha = process.env.REPOSITORY_COMMIT_SHA!;
93
+ const template = Template()
94
+ .cpuCount(4)
95
+ .memoryMB(8_192)
96
+ .setWorkdir('/workspace/repo')
97
+ .setEnvs({ BUILD_CONFIG_MARKER: 'template-v1' })
98
+ .aptInstall(['git', 'jq'])
99
+ .runCmd('git clone https://github.com/mastra-ai/mastra.git /workspace/repo')
100
+ .runCmd(`git checkout ${commitSha}`)
101
+ .runCmd('pnpm install --frozen-lockfile');
102
+
103
+ const sandbox = new PlatformSandbox({
104
+ environmentId: 'env_abc',
105
+ sandboxProvider: 'e2b',
106
+ template,
107
+ });
108
+ await sandbox.start();
109
+ ```
110
+
111
+ Platform serializes the builder and stores build state under a server-derived content hash within the selected environment and provider. Passing the same definition to another sandbox reuses that build. Call `await template.build(options)` to start or reuse the provider build without provisioning a sandbox; it returns `ready`, `pending`, or `failed`. For E2B templates, `cpuCount()` and `memoryMB()` set the resources inherited by sandboxes created from the exact build or a resource-matched stale build. They default to 2 CPUs and 1,024 MB. Effective resource values participate in the template identity, so changing either value creates a distinct template while explicit defaults reuse the omitted-default build. If a pending build falls back to the provider base, that sandbox may use provider-default resources; check `templatePending` to detect this case. Railway currently ignores these two methods because its sandbox template API doesn't expose matching resource settings.
112
+
113
+ By default, operation arguments are serialized and sent to Platform. Use `setEnvs(values, { ephemeral: true })` for short-lived build credentials: these values are sent separately, excluded from content identity and persistence, unavailable at runtime, and take precedence over serialized values with the same key. Supply them on every build or fresh provision that may need to build. Railway's provider cache includes transient build variables, so rotating a value may trigger another provider build even though the Platform template ID stays stable.
114
+
84
115
  ## Errors
85
116
 
86
117
  Failures from the proxy raise `PlatformApiError`. Structured `{ error: { message, type } }` payloads from the proxy are parsed into `.code` (machine kind) and `.proxyMessage` (human string); the raw response body stays available on `.body`:
@@ -1 +1 @@
1
- {"version":3,"file":"address-registry.d.ts","sourceRoot":"","sources":["../src/address-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAE3D;;;;;GAKG;AACH,qBAAa,+BAAgC,YAAW,sBAAsB;;IAG5E,GAAG,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAI1C;;;;;OAKG;IACH,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI;IAIjD,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAI/B;;;OAGG;IACH,IAAI,IAAI,IAAI,MAAM,CAEjB;CACF"}
1
+ {"version":3,"file":"address-registry.d.ts","sourceRoot":"","sources":["../src/address-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAE3D;;;;;GAKG;AACH,qBAAa,+BAAgC,YAAW,sBAAsB;;IAG5E,GAAG,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEzC;IAED;;;;;OAKG;IACH,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI,CAEhD;IAED,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAE9B;IAED;;;OAGG;IACH,IAAI,IAAI,IAAI,MAAM,CAEjB;CACF"}
package/dist/client.d.ts CHANGED
@@ -2,6 +2,7 @@ export interface PlatformClientOptions {
2
2
  accessToken?: string;
3
3
  projectId?: string;
4
4
  actingUserId?: string;
5
+ sandboxProvider?: SandboxProvider;
5
6
  /**
6
7
  * Advisory correlation id for the factory session driving this client.
7
8
  * Sent as `x-mastra-session-id` on every proxy request so proxy-side logs
@@ -28,7 +29,6 @@ export declare function resolvePlatformOptions(options: PlatformClientOptions):
28
29
  actingUserId: string | undefined;
29
30
  proxyUrl: string;
30
31
  sandboxProvider: SandboxProvider;
31
- useLegacyRoutes: boolean;
32
32
  sessionId: string | undefined;
33
33
  threadId: string | undefined;
34
34
  fetch: typeof fetch;
@@ -59,7 +59,6 @@ export declare class PlatformClient {
59
59
  readonly actingUserId: string | undefined;
60
60
  readonly proxyUrl: string;
61
61
  readonly sandboxProvider: SandboxProvider;
62
- private readonly useLegacyRoutes;
63
62
  /** Advisory session correlation id — see {@link PlatformClientOptions.sessionId}. */
64
63
  readonly sessionId: string | undefined;
65
64
  /** Advisory thread correlation id — see {@link PlatformClientOptions.threadId}. */
@@ -67,5 +66,7 @@ export declare class PlatformClient {
67
66
  readonly fetch: typeof fetch;
68
67
  constructor(options: PlatformClientOptions);
69
68
  request(path: string, options?: PlatformRequestOptions): Promise<Response>;
69
+ requestProvider(path: string, options?: PlatformRequestOptions): Promise<Response>;
70
+ private requestAtPath;
70
71
  }
71
72
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;CACtB;AAED,MAAM,WAAW,sBAAuB,SAAQ,WAAW;IACzD,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,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