@mastra/e2b 0.0.3 → 0.1.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.
@@ -6,10 +6,19 @@
6
6
  *
7
7
  * @see https://e2b.dev/docs
8
8
  */
9
- import type { SandboxInfo, ExecuteCommandOptions, CommandResult, WorkspaceFilesystem, MountResult, ProviderStatus, MountManager, MastraSandboxOptions } from '@mastra/core/workspace';
9
+ import type { RequestContext } from '@mastra/core/di';
10
+ import type { SandboxInfo, WorkspaceFilesystem, MountResult, ProviderStatus, MountManager, MastraSandboxOptions } from '@mastra/core/workspace';
11
+ /**
12
+ * Inlined from `@mastra/core/workspace` to avoid requiring a newer core peer dep.
13
+ */
14
+ type InstructionsOption = string | ((opts: {
15
+ defaultInstructions: string;
16
+ requestContext?: RequestContext;
17
+ }) => string);
10
18
  import { MastraSandbox } from '@mastra/core/workspace';
11
19
  import { Sandbox } from 'e2b';
12
20
  import type { TemplateSpec } from '../utils/template.js';
21
+ import { E2BProcessManager } from './process-manager.js';
13
22
  /**
14
23
  * E2B sandbox provider configuration.
15
24
  */
@@ -46,6 +55,16 @@ export interface E2BSandboxOptions extends MastraSandboxOptions {
46
55
  apiKey?: string;
47
56
  /** Access token for authentication. Falls back to E2B_ACCESS_TOKEN env var. */
48
57
  accessToken?: string;
58
+ /**
59
+ * Custom instructions that override the default instructions
60
+ * returned by `getInstructions()`.
61
+ *
62
+ * - `string` — Fully replaces the default instructions.
63
+ * Pass an empty string to suppress instructions entirely.
64
+ * - `(opts) => string` — Receives the default instructions and
65
+ * optional request context so you can extend or customise per-request.
66
+ */
67
+ instructions?: InstructionsOption;
49
68
  }
50
69
  /**
51
70
  * Simplified E2B sandbox implementation.
@@ -91,6 +110,8 @@ export declare class E2BSandbox extends MastraSandbox {
91
110
  readonly name = "E2BSandbox";
92
111
  readonly provider = "e2b";
93
112
  status: ProviderStatus;
113
+ readonly mounts: MountManager;
114
+ readonly processes: E2BProcessManager;
94
115
  private _sandbox;
95
116
  private _createdAt;
96
117
  private _isRetrying;
@@ -99,13 +120,12 @@ export declare class E2BSandbox extends MastraSandbox {
99
120
  private readonly env;
100
121
  private readonly metadata;
101
122
  private readonly connectionOpts;
102
- readonly mounts: MountManager;
123
+ private readonly _instructionsOverride?;
103
124
  /** Resolved template ID after building (if needed) */
104
125
  private _resolvedTemplateId?;
105
126
  /** Promise for template preparation (started in constructor) */
106
127
  private _templatePreparePromise?;
107
128
  constructor(options?: E2BSandboxOptions);
108
- private generateId;
109
129
  /**
110
130
  * Get the underlying E2B Sandbox instance for direct access to E2B APIs.
111
131
  *
@@ -116,29 +136,52 @@ export declare class E2BSandbox extends MastraSandbox {
116
136
  *
117
137
  * @example Direct file operations
118
138
  * ```typescript
119
- * const e2bSandbox = sandbox.instance;
120
- * await e2bSandbox.files.write('/tmp/test.txt', 'Hello');
121
- * const content = await e2bSandbox.files.read('/tmp/test.txt');
122
- * const files = await e2bSandbox.files.list('/tmp');
139
+ * const e2b = sandbox.e2b;
140
+ * await e2b.files.write('/tmp/test.txt', 'Hello');
141
+ * const content = await e2b.files.read('/tmp/test.txt');
142
+ * const files = await e2b.files.list('/tmp');
123
143
  * ```
124
144
  *
125
145
  * @example Access ports
126
146
  * ```typescript
127
- * const e2bSandbox = sandbox.instance;
128
- * const url = e2bSandbox.getHost(3000);
147
+ * const e2b = sandbox.e2b;
148
+ * const url = e2b.getHost(3000);
129
149
  * ```
130
150
  */
131
- get instance(): Sandbox;
151
+ get e2b(): Sandbox;
152
+ /**
153
+ * Start the E2B sandbox.
154
+ * Handles template preparation, existing sandbox reconnection, and new sandbox creation.
155
+ *
156
+ * Status management and mount processing are handled by the base class.
157
+ */
158
+ start(): Promise<void>;
159
+ /**
160
+ * Stop the E2B sandbox.
161
+ * Unmounts all filesystems and releases the sandbox reference.
162
+ * Status management is handled by the base class.
163
+ */
164
+ stop(): Promise<void>;
165
+ /**
166
+ * Destroy the E2B sandbox and clean up all resources.
167
+ * Unmounts filesystems, kills the sandbox, and clears mount state.
168
+ * Status management is handled by the base class.
169
+ */
170
+ destroy(): Promise<void>;
171
+ getInfo(): Promise<SandboxInfo>;
172
+ /**
173
+ * Get instructions describing this E2B sandbox.
174
+ * Used by agents to understand the execution environment.
175
+ */
176
+ getInstructions(opts?: {
177
+ requestContext?: RequestContext;
178
+ }): string;
179
+ private _getDefaultInstructions;
132
180
  /**
133
181
  * Mount a filesystem at a path in the sandbox.
134
182
  * Uses FUSE tools (s3fs, gcsfuse) to mount cloud storage.
135
183
  */
136
184
  mount(filesystem: WorkspaceFilesystem, mountPath: string): Promise<MountResult>;
137
- /**
138
- * Write marker file for detecting config changes on reconnect.
139
- * Stores both the mount path and config hash in the file.
140
- */
141
- private writeMarkerFile;
142
185
  /**
143
186
  * Unmount a filesystem from a path in the sandbox.
144
187
  */
@@ -149,25 +192,16 @@ export declare class E2BSandbox extends MastraSandbox {
149
192
  * Call this after reconnecting to an existing sandbox to clean up old mounts.
150
193
  */
151
194
  reconcileMounts(expectedMountPaths: string[]): Promise<void>;
195
+ /** @deprecated Use `e2b` instead. */
196
+ get instance(): Sandbox;
197
+ /** @deprecated Use `status === 'running'` instead. */
198
+ isReady(): Promise<boolean>;
199
+ private generateId;
152
200
  /**
153
- * Check if a path is already mounted and if the config matches.
154
- *
155
- * @param mountPath - The mount path to check
156
- * @param newConfig - The new config to compare against the stored config
157
- * @returns 'not_mounted' | 'matching' | 'mismatched'
158
- */
159
- private checkExistingMount;
160
- /**
161
- * Start the E2B sandbox.
162
- * Handles template preparation, existing sandbox reconnection, and new sandbox creation.
163
- *
164
- * Status management and mount processing are handled by the base class.
165
- */
166
- start(): Promise<void>;
167
- /**
168
- * Build the default mountable template (bypasses exists check).
201
+ * Find an existing sandbox with matching mastra-sandbox-id metadata.
202
+ * Returns the connected sandbox if found, null otherwise.
169
203
  */
170
- private buildDefaultTemplate;
204
+ private findExistingSandbox;
171
205
  /**
172
206
  * Resolve the template specification to a template ID.
173
207
  *
@@ -178,41 +212,18 @@ export declare class E2BSandbox extends MastraSandbox {
178
212
  */
179
213
  private resolveTemplate;
180
214
  /**
181
- * Find an existing sandbox with matching mastra-sandbox-id metadata.
182
- * Returns the connected sandbox if found, null otherwise.
183
- */
184
- private findExistingSandbox;
185
- /**
186
- * Stop the E2B sandbox.
187
- * Unmounts all filesystems and releases the sandbox reference.
188
- * Status management is handled by the base class.
189
- */
190
- stop(): Promise<void>;
191
- /**
192
- * Destroy the E2B sandbox and clean up all resources.
193
- * Unmounts filesystems, kills the sandbox, and clears mount state.
194
- * Status management is handled by the base class.
195
- */
196
- destroy(): Promise<void>;
197
- /**
198
- * Check if the sandbox is ready for operations.
199
- */
200
- isReady(): Promise<boolean>;
201
- /**
202
- * Get information about the current state of the sandbox.
215
+ * Build the default mountable template (bypasses exists check).
203
216
  */
204
- getInfo(): Promise<SandboxInfo>;
217
+ private buildDefaultTemplate;
205
218
  /**
206
- * Get instructions describing this E2B sandbox.
207
- * Used by agents to understand the execution environment.
219
+ * Write marker file for detecting config changes on reconnect.
220
+ * Stores both the mount path and config hash in the file.
208
221
  */
209
- getInstructions(): string;
222
+ private writeMarkerFile;
210
223
  /**
211
- * Ensure the sandbox is started and return the E2B Sandbox instance.
212
- * Uses base class ensureRunning() for status management and error handling.
213
- * @throws {SandboxNotReadyError} if sandbox fails to start
224
+ * Check if a path is already mounted and if the config matches.
214
225
  */
215
- private ensureSandbox;
226
+ private checkExistingMount;
216
227
  /**
217
228
  * Check if an error indicates the sandbox itself is dead/gone.
218
229
  * Does NOT include code execution timeouts (those are the user's code taking too long).
@@ -228,10 +239,14 @@ export declare class E2BSandbox extends MastraSandbox {
228
239
  */
229
240
  private handleSandboxTimeout;
230
241
  /**
231
- * Execute a shell command in the sandbox.
232
- * Automatically starts the sandbox if not already running.
233
- * Retries once if the sandbox is found to be dead.
242
+ * Execute an operation with automatic retry if the sandbox is found to be dead.
243
+ *
244
+ * When the E2B sandbox times out or crashes mid-operation, this method
245
+ * resets sandbox state, restarts it, and retries the operation once.
246
+ *
247
+ * @internal Used by E2BProcessManager to handle dead sandboxes during spawn.
234
248
  */
235
- executeCommand(command: string, args?: string[], options?: ExecuteCommandOptions): Promise<CommandResult>;
249
+ retryOnDead<T>(fn: () => Promise<T>): Promise<T>;
236
250
  }
251
+ export {};
237
252
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sandbox/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACV,WAAW,EACX,qBAAqB,EACrB,aAAa,EACb,mBAAmB,EACnB,WAAW,EAEX,cAAc,EACd,YAAY,EACZ,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAwB,MAAM,wBAAwB,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAY,MAAM,KAAK,CAAC;AAKxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAsBtD;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,oBAAoB;IAC7D,kDAAkD;IAClD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kDAAkD;IAClD,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,sBAAsB;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEnC,oEAAoE;IACpE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sEAAsE;IACtE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qEAAqE;IACrE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+EAA+E;IAC/E,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAMD;;;;;;;;;;;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AiB7B;;OAEG;YACW,kBAAkB;IA2ChC;;;;OAIG;IACH,OAAO,CAAC,kBAAkB;IAW1B;;;;;;OAMG;IACH,OAAO,CAAC,oBAAoB;IAa5B;;;;;;;OAOG;IACG,WAAW,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;CAiBvD"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * E2B Process Manager
3
+ *
4
+ * Implements SandboxProcessManager for E2B cloud sandboxes.
5
+ * Wraps the E2B SDK's commands API (background mode, sendStdin, kill, list).
6
+ */
7
+ import { ProcessHandle, SandboxProcessManager } from '@mastra/core/workspace';
8
+ import type { ProcessInfo, SpawnProcessOptions } from '@mastra/core/workspace';
9
+ import type { E2BSandbox } from './index.js';
10
+ /**
11
+ * E2B implementation of SandboxProcessManager.
12
+ * Uses the E2B SDK's commands.run() with background: true.
13
+ */
14
+ export declare class E2BProcessManager extends SandboxProcessManager<E2BSandbox> {
15
+ spawn(command: string, options?: SpawnProcessOptions): Promise<ProcessHandle>;
16
+ /**
17
+ * List processes by querying E2B's commands API.
18
+ * E2B manages all state server-side — no local tracking needed.
19
+ */
20
+ list(): Promise<ProcessInfo[]>;
21
+ /**
22
+ * Get a handle to a process by PID.
23
+ * Checks base class tracking first, then falls back to commands.connect()
24
+ * for processes spawned externally or before reconnection.
25
+ */
26
+ get(pid: number): Promise<ProcessHandle | undefined>;
27
+ }
28
+ //# sourceMappingURL=process-manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"process-manager.d.ts","sourceRoot":"","sources":["../../src/sandbox/process-manager.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC9E,OAAO,KAAK,EAAiB,WAAW,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE9F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAmF1C;;;GAGG;AACH,qBAAa,iBAAkB,SAAQ,qBAAqB,CAAC,UAAU,CAAC;IAChE,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,mBAAwB,GAAG,OAAO,CAAC,aAAa,CAAC;IA+BvF;;;OAGG;IACG,IAAI,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;IAUpC;;;;OAIG;IACG,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;CAmB3D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/e2b",
3
- "version": "0.0.3",
3
+ "version": "0.1.0",
4
4
  "description": "E2B cloud sandbox provider for Mastra workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -24,22 +24,22 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/node": "22.19.7",
27
- "@vitest/coverage-v8": "4.0.12",
28
- "@vitest/ui": "4.0.12",
27
+ "@vitest/coverage-v8": "4.0.18",
28
+ "@vitest/ui": "4.0.18",
29
29
  "dotenv": "^17.2.3",
30
30
  "eslint": "^9.37.0",
31
31
  "tsup": "^8.5.1",
32
32
  "typescript": "^5.9.3",
33
- "vitest": "4.0.16",
34
- "@internal/lint": "0.0.60",
33
+ "vitest": "4.0.18",
34
+ "@internal/lint": "0.0.62",
35
+ "@internal/workspace-test-utils": "0.0.6",
36
+ "@mastra/core": "1.7.0",
35
37
  "@mastra/gcs": "0.1.1",
36
- "@internal/types-builder": "0.0.35",
37
- "@mastra/core": "1.5.0",
38
- "@mastra/s3": "0.2.0",
39
- "@internal/workspace-test-utils": "0.0.4"
38
+ "@internal/types-builder": "0.0.37",
39
+ "@mastra/s3": "0.2.0"
40
40
  },
41
41
  "peerDependencies": {
42
- "@mastra/core": ">=1.3.0-0 <2.0.0-0"
42
+ "@mastra/core": ">=1.7.0-0 <2.0.0-0"
43
43
  },
44
44
  "files": [
45
45
  "dist",