@mastra/platform-workspace 1.6.0 → 1.6.1
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/README.md +17 -17
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -8,23 +8,6 @@ Mastra Platform workspace provider. It gives agents environment-scoped sandbox e
|
|
|
8
8
|
npm install @mastra/platform-workspace
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
## Configuration
|
|
12
|
-
|
|
13
|
-
All options can be passed to the constructor or read from environment variables:
|
|
14
|
-
|
|
15
|
-
| Option | Env var | Required |
|
|
16
|
-
| ----------------- | -------------------------------------------------------------- | ------------------------------- |
|
|
17
|
-
| `accessToken` | `MASTRA_PLATFORM_ACCESS_TOKEN` or `MASTRA_PLATFORM_SECRET_KEY` | Yes |
|
|
18
|
-
| `projectId` | `MASTRA_PROJECT_ID` | Yes |
|
|
19
|
-
| `environmentId` | `MASTRA_ENVIRONMENT_ID` | Yes (sandbox) |
|
|
20
|
-
| `actingUserId` | — | No (sandbox) |
|
|
21
|
-
| `sandboxProvider` | `SANDBOX_PROVIDER` | No (sandbox, defaults to `e2b`) |
|
|
22
|
-
| `bucketName` | `MASTRA_PLATFORM_BUCKET_NAME` | Yes (filesystem) |
|
|
23
|
-
|
|
24
|
-
The proxy URL defaults to `https://workspaces.mastra.ai`. Set `MASTRA_PLATFORM_REGION` to `us` or `eu` (case-insensitive) to route to the regional replica at `https://workspaces.us.mastra.ai` or `https://workspaces.eu.mastra.ai`. An explicit `MASTRA_WORKSPACE_PROXY_URL` (useful for staging) overrides both.
|
|
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.
|
|
27
|
-
|
|
28
11
|
## Usage
|
|
29
12
|
|
|
30
13
|
```typescript
|
|
@@ -61,6 +44,23 @@ Proxy failures throw `PlatformApiError`, which includes the HTTP status, parsed
|
|
|
61
44
|
|
|
62
45
|
- [Mastra Platform workspaces](https://mastra.ai/docs/mastra-platform/workspaces)
|
|
63
46
|
|
|
47
|
+
### Configuration
|
|
48
|
+
|
|
49
|
+
All options can be passed to the constructor or read from environment variables:
|
|
50
|
+
|
|
51
|
+
| Option | Env var | Required |
|
|
52
|
+
| ----------------- | -------------------------------------------------------------- | ------------------------------- |
|
|
53
|
+
| `accessToken` | `MASTRA_PLATFORM_ACCESS_TOKEN` or `MASTRA_PLATFORM_SECRET_KEY` | Yes |
|
|
54
|
+
| `projectId` | `MASTRA_PROJECT_ID` | Yes |
|
|
55
|
+
| `environmentId` | `MASTRA_ENVIRONMENT_ID` | Yes (sandbox) |
|
|
56
|
+
| `actingUserId` | — | No (sandbox) |
|
|
57
|
+
| `sandboxProvider` | `SANDBOX_PROVIDER` | No (sandbox, defaults to `e2b`) |
|
|
58
|
+
| `bucketName` | `MASTRA_PLATFORM_BUCKET_NAME` | Yes (filesystem) |
|
|
59
|
+
|
|
60
|
+
The proxy URL defaults to `https://workspaces.mastra.ai`. Set `MASTRA_PLATFORM_REGION` to `us` or `eu` (case-insensitive) to route to the regional replica at `https://workspaces.us.mastra.ai` or `https://workspaces.eu.mastra.ai`. An explicit `MASTRA_WORKSPACE_PROXY_URL` (useful for staging) overrides both.
|
|
61
|
+
|
|
62
|
+
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.
|
|
63
|
+
|
|
64
64
|
## Changelog
|
|
65
65
|
|
|
66
66
|
See the [package changelog](https://github.com/mastra-ai/mastra/blob/main/workspaces/platform-workspace/CHANGELOG.md) for version history and release notes.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/platform-workspace",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "Mastra Platform workspace sandbox and filesystem providers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"tsdown": "0.22.9",
|
|
28
28
|
"typescript": "^7.0.2",
|
|
29
29
|
"vitest": "4.1.10",
|
|
30
|
-
"@internal/
|
|
31
|
-
"@internal/types-builder": "0.0.
|
|
32
|
-
"@mastra/core": "1.
|
|
33
|
-
"@internal/
|
|
30
|
+
"@internal/lint": "0.0.132",
|
|
31
|
+
"@internal/types-builder": "0.0.107",
|
|
32
|
+
"@mastra/core": "1.66.0",
|
|
33
|
+
"@internal/workspace": "0.0.4"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@mastra/core": ">=1.62.0-0 <2.0.0-0"
|