@mastra/e2b 0.15.0 → 0.15.1-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/dist/_types/@internal_workspace/dist/commands-api-process-manager.d.ts +99 -0
- package/dist/_types/@internal_workspace/dist/index.d.ts +1 -0
- package/dist/index.cjs +205 -127
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +205 -127
- package/dist/index.js.map +1 -1
- package/dist/sandbox/process-manager.d.ts +7 -18
- package/dist/sandbox/process-manager.d.ts.map +1 -1
- package/dist/utils/template.d.ts +1 -1
- package/package.json +7 -7
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* E2B Process Manager
|
|
3
3
|
*
|
|
4
|
-
* Implements SandboxProcessManager for E2B cloud sandboxes
|
|
5
|
-
*
|
|
4
|
+
* Implements SandboxProcessManager for E2B cloud sandboxes over the E2B SDK's
|
|
5
|
+
* commands API. The process handling itself is shared with other envd-backed
|
|
6
|
+
* providers in `@internal/workspace`.
|
|
6
7
|
*/
|
|
7
|
-
import {
|
|
8
|
-
import type {
|
|
8
|
+
import { CommandsApiProcessManager } from '../_types/@internal_workspace/dist/index.js';
|
|
9
|
+
import type { CommandsApi, CommandsApiOperation } from '../_types/@internal_workspace/dist/index.js';
|
|
9
10
|
import type { E2BSandbox } from './index.js';
|
|
10
11
|
/**
|
|
11
12
|
* E2B implementation of SandboxProcessManager.
|
|
@@ -15,20 +16,8 @@ export interface E2BProcessManagerOptions {
|
|
|
15
16
|
/** Default timeout in milliseconds for commands that don't specify one. */
|
|
16
17
|
defaultTimeout?: number;
|
|
17
18
|
}
|
|
18
|
-
export declare class E2BProcessManager extends
|
|
19
|
-
private readonly _defaultTimeout?;
|
|
19
|
+
export declare class E2BProcessManager extends CommandsApiProcessManager<E2BSandbox> {
|
|
20
20
|
constructor(opts?: E2BProcessManagerOptions);
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* List processes by querying E2B's commands API.
|
|
24
|
-
* E2B manages all state server-side — no local tracking needed.
|
|
25
|
-
*/
|
|
26
|
-
list(): Promise<ProcessInfo[]>;
|
|
27
|
-
/**
|
|
28
|
-
* Get a handle to a process by PID.
|
|
29
|
-
* Checks base class tracking first, then falls back to commands.connect()
|
|
30
|
-
* for processes spawned externally or before reconnection.
|
|
31
|
-
*/
|
|
32
|
-
get(pid: string): Promise<ProcessHandle | undefined>;
|
|
21
|
+
runCommands<T>(operation: CommandsApiOperation, fn: (commands: CommandsApi) => Promise<T>): Promise<T>;
|
|
33
22
|
}
|
|
34
23
|
//# sourceMappingURL=process-manager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-manager.d.ts","sourceRoot":"","sources":["../../src/sandbox/process-manager.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"process-manager.d.ts","sourceRoot":"","sources":["../../src/sandbox/process-manager.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC7E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC,2EAA2E;IAC3E,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,qBAAa,iBAAkB,SAAQ,yBAAyB,CAAC,UAAU,CAAC;IAC1E,YAAY,IAAI,GAAE,wBAA6B,EAE9C;IAED,WAAW,CAAC,CAAC,EAAE,SAAS,EAAE,oBAAoB,EAAE,EAAE,EAAE,CAAC,QAAQ,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAKrG;CACF"}
|
package/dist/utils/template.d.ts
CHANGED
|
@@ -114,7 +114,7 @@ export declare const DEFAULT_MEMORY_MB = 1024;
|
|
|
114
114
|
* contents can never drift under a stable identity hash; bump deliberately
|
|
115
115
|
* (each bump builds new templates).
|
|
116
116
|
*/
|
|
117
|
-
export declare const DEFAULT_NODE_VERSION = "24.
|
|
117
|
+
export declare const DEFAULT_NODE_VERSION = "24.22.1";
|
|
118
118
|
export declare function isNamedTemplateSpec(spec: TemplateSpec): spec is NamedTemplateSpec;
|
|
119
119
|
/**
|
|
120
120
|
* A named spec whose name and build steps are computed at resolution time
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/e2b",
|
|
3
|
-
"version": "0.15.0",
|
|
3
|
+
"version": "0.15.1-alpha.0",
|
|
4
4
|
"description": "E2B cloud sandbox provider for Mastra workspaces",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -24,20 +24,20 @@
|
|
|
24
24
|
"esbuild": "^0.28.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@types/node": "22.20.
|
|
27
|
+
"@types/node": "22.20.5",
|
|
28
28
|
"@vitest/coverage-v8": "4.1.11",
|
|
29
29
|
"@vitest/ui": "4.1.11",
|
|
30
30
|
"dotenv": "^17.4.2",
|
|
31
|
-
"tsdown": "0.
|
|
31
|
+
"tsdown": "0.23.1",
|
|
32
32
|
"typescript": "^7.0.2",
|
|
33
33
|
"vitest": "4.1.11",
|
|
34
34
|
"@internal/lint": "0.0.145",
|
|
35
|
+
"@internal/types-builder": "0.0.120",
|
|
35
36
|
"@internal/workspace": "0.0.17",
|
|
36
|
-
"@mastra/gcs": "0.3.4",
|
|
37
37
|
"@internal/workspace-test-utils": "0.0.89",
|
|
38
|
-
"@mastra/
|
|
39
|
-
"@mastra/
|
|
40
|
-
"@
|
|
38
|
+
"@mastra/gcs": "0.3.5-alpha.0",
|
|
39
|
+
"@mastra/core": "1.80.0-alpha.0",
|
|
40
|
+
"@mastra/s3": "0.6.5-alpha.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@mastra/core": ">=1.67.0-0 <2.0.0-0"
|