@mastra/e2b 0.11.0-alpha.4 → 0.11.0-alpha.5

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.
Files changed (2) hide show
  1. package/README.md +7 -51
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -29,59 +29,15 @@ const agent = new Agent({
29
29
  });
30
30
  ```
31
31
 
32
- ### Timeout Lifecycle
33
-
34
- When a sandbox reaches its `timeout`, it is paused by default: the whole VM is snapshotted and the next `start()` reconnects and resumes it. For stateless workspaces whose data lives outside the sandbox (for example mounted from S3), you can have idle sandboxes destroyed instead and recreated on next use:
35
-
36
- ```typescript
37
- const sandbox = new E2BSandbox({
38
- timeout: 60_000,
39
- lifecycle: { onTimeout: 'kill' }, // default: { onTimeout: 'pause' }
40
- });
41
- ```
42
-
43
- Calling `stop()` explicitly always pauses the sandbox, regardless of this setting.
44
-
45
- ### Mounting Cloud Storage
46
-
47
- E2B sandboxes can mount S3, GCS, or Azure Blob filesystems, making cloud storage accessible as a local directory inside the sandbox:
48
-
49
- ```typescript
50
- import { Workspace } from '@mastra/core/workspace';
51
- import { S3Filesystem } from '@mastra/s3';
52
- import { AzureBlobFilesystem } from '@mastra/azure/blob';
53
- import { E2BSandbox } from '@mastra/e2b';
54
-
55
- const workspace = new Workspace({
56
- mounts: {
57
- '/data': new S3Filesystem({
58
- bucket: 'my-bucket',
59
- region: 'us-east-1',
60
- accessKeyId: process.env.AWS_ACCESS_KEY_ID,
61
- secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
62
- }),
63
- '/azure-data': new AzureBlobFilesystem({
64
- container: 'my-container',
65
- connectionString: process.env.AZURE_STORAGE_CONNECTION_STRING,
66
- prefix: 'workspace/data',
67
- }),
68
- },
69
- sandbox: new E2BSandbox(),
70
- });
71
- ```
32
+ ## Documentation
72
33
 
73
- ### Custom Templates
34
+ - [E2B integration guide](https://mastra.ai/integrations/sandboxes/e2b)
35
+ - [Workspace documentation](https://mastra.ai/docs/mastra-platform/workspaces)
74
36
 
75
- For advanced use cases, you can use custom E2B templates:
37
+ ## Changelog
76
38
 
77
- ```typescript
78
- const workspace = new Workspace({
79
- sandbox: new E2BSandbox({
80
- template: 'my-custom-template',
81
- }),
82
- });
83
- ```
39
+ See the [package changelog](https://github.com/mastra-ai/mastra/blob/main/workspaces/e2b/CHANGELOG.md) for version history and release notes.
84
40
 
85
- ## Documentation
41
+ ## Support
86
42
 
87
- For more information, see the [Mastra Workspaces documentation](https://mastra.ai/docs/workspace/overview).
43
+ We have an [open community Discord](https://discord.gg/mastra-ai). Come and say hello and let us know if you have any questions or need any help getting things running.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/e2b",
3
- "version": "0.11.0-alpha.4",
3
+ "version": "0.11.0-alpha.5",
4
4
  "description": "E2B cloud sandbox provider for Mastra workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -32,13 +32,13 @@
32
32
  "tsdown": "0.22.9",
33
33
  "typescript": "^7.0.2",
34
34
  "vitest": "4.1.10",
35
- "@internal/lint": "0.0.129",
36
35
  "@internal/types-builder": "0.0.104",
37
- "@internal/workspace-test-utils": "0.0.73",
36
+ "@internal/lint": "0.0.129",
38
37
  "@internal/workspace": "0.0.1",
39
- "@mastra/gcs": "0.3.3-alpha.0",
40
- "@mastra/core": "1.64.0-alpha.6",
41
- "@mastra/s3": "0.6.2-alpha.0"
38
+ "@mastra/s3": "0.6.2-alpha.1",
39
+ "@mastra/gcs": "0.3.3-alpha.1",
40
+ "@internal/workspace-test-utils": "0.0.73",
41
+ "@mastra/core": "1.64.0-alpha.7"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@mastra/core": ">=1.55.0-0 <2.0.0-0"