@molecule/api-code-sandbox-e2b 1.0.4 → 1.2.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.d.ts CHANGED
@@ -31,6 +31,10 @@ export interface E2BConfig {
31
31
  /**
32
32
  * Default sandbox lifetime before E2B auto-pauses it, in milliseconds. The
33
33
  * control plane extends this per-heartbeat; this is only the initial ceiling.
34
+ *
35
+ * E2B caps this per account: 1 hour on Hobby, 24 hours on Pro. A value above
36
+ * the account's cap is rejected at create time, so raising it is a decision
37
+ * about the account, not just the config.
34
38
  */
35
39
  defaultTimeoutMs?: number;
36
40
  /**
@@ -68,43 +72,209 @@ export interface E2BFilesystemLike {
68
72
  }>>;
69
73
  remove(path: string): Promise<void>;
70
74
  }
75
+ /**
76
+ * Handle to a command started with `background: true` (the SDK's `CommandHandle`).
77
+ *
78
+ * The handle is what makes a backgrounded start HONEST: it carries the pid, and
79
+ * `wait()` resolves with the real exit code once the started process exits —
80
+ * even when it left a detached child behind. A launcher therefore learns whether
81
+ * its command was accepted instead of being handed a fabricated success.
82
+ */
83
+ export interface E2BCommandHandleLike {
84
+ /** The started process's pid inside the sandbox. */
85
+ pid: number;
86
+ /** Output accumulated so far — readable before {@link E2BCommandHandleLike.wait} settles. */
87
+ stdout?: string;
88
+ /** Error output accumulated so far. */
89
+ stderr?: string;
90
+ /** Set once the process's exit is known; absent while it is still streaming. */
91
+ exitCode?: number;
92
+ /**
93
+ * Resolve when the started process exits. Rejects with the SDK's
94
+ * `CommandExitError` (carrying `.result`) on a non-zero exit, and with a
95
+ * timeout error when `timeoutMs` elapses first.
96
+ */
97
+ wait(): Promise<E2BCommandResultLike>;
98
+ /** Write to the process's stdin (requires `stdin: true` at start). */
99
+ sendStdin(data: string | Uint8Array): Promise<void>;
100
+ /** Kill the process. */
101
+ kill(): Promise<boolean>;
102
+ /** Stop streaming without killing the process. */
103
+ disconnect?(): Promise<void>;
104
+ }
105
+ /** Options accepted by the SDK's `commands.run`. */
106
+ export interface E2BCommandRunOpts {
107
+ cwd?: string;
108
+ timeoutMs?: number;
109
+ envs?: Record<string, string>;
110
+ /** Keep stdin open so {@link E2BCommandHandleLike.sendStdin} works. */
111
+ stdin?: boolean;
112
+ onStdout?: (data: string) => void;
113
+ onStderr?: (data: string) => void;
114
+ }
71
115
  /** Subset of the SDK's `Commands` the bond uses. */
72
116
  export interface E2BCommandsLike {
73
- run(cmd: string, opts?: {
117
+ /**
118
+ * Start a command and return a handle immediately. The bond always uses this
119
+ * form: waiting inline blocks until the whole process GROUP ends, which never
120
+ * happens for a launch that leaves a dev server running.
121
+ */
122
+ run(cmd: string, opts: E2BCommandRunOpts & {
123
+ background: true;
124
+ }): Promise<E2BCommandHandleLike>;
125
+ /** Run a command to completion (the SDK's default). */
126
+ run(cmd: string, opts?: E2BCommandRunOpts & {
127
+ background?: false;
128
+ }): Promise<E2BCommandResultLike>;
129
+ }
130
+ /**
131
+ * Subset of the SDK's `Pty` module the bond uses.
132
+ *
133
+ * A PTY is a different mechanism from a command, not a flag on one: it has its
134
+ * own create/input/resize/kill endpoints, and only it gives the sandbox side a
135
+ * controlling terminal (job control, so Ctrl-C becomes SIGINT; a negotiated
136
+ * width, so tools format to the real panel size).
137
+ */
138
+ export interface E2BPtyLike {
139
+ create(opts: {
140
+ cols: number;
141
+ rows: number;
142
+ onData: (data: Uint8Array) => void;
74
143
  cwd?: string;
75
- timeoutMs?: number;
76
144
  envs?: Record<string, string>;
77
- /** Fire-and-forget: returns immediately without waiting for exit. */
78
- background?: boolean;
79
- }): Promise<E2BCommandResultLike>;
145
+ timeoutMs?: number;
146
+ }): Promise<E2BCommandHandleLike>;
147
+ sendInput(pid: number, data: Uint8Array): Promise<void>;
148
+ resize(pid: number, size: {
149
+ cols: number;
150
+ rows: number;
151
+ }): Promise<void>;
152
+ kill(pid: number): Promise<boolean>;
80
153
  }
81
154
  /** Subset of the SDK's `Sandbox` instance the bond uses. */
82
155
  export interface E2BSandboxLike {
83
156
  sandboxId: string;
84
157
  commands: E2BCommandsLike;
158
+ /** Present on SDK builds that support pseudo-terminals; absent means no PTY. */
159
+ pty?: E2BPtyLike;
85
160
  files: E2BFilesystemLike;
86
161
  getHost(port: number): string;
87
162
  setTimeout(ms: number): Promise<void>;
88
163
  kill(): Promise<void>;
89
- pause?(): Promise<string>;
90
- betaPause?(): Promise<string>;
164
+ /**
165
+ * Suspend the sandbox (FS + memory snapshot). Resolves `false` when the API
166
+ * answered 409 because it was ALREADY paused — which is a success, not a
167
+ * failure, and the reason this is not typed as `void`.
168
+ */
169
+ pause?(): Promise<boolean>;
170
+ /** Deprecated alias of {@link E2BSandboxLike.pause}; same endpoint. */
171
+ betaPause?(): Promise<boolean>;
91
172
  isRunning(): Promise<boolean>;
92
173
  updateNetwork?(opts: {
93
174
  allowOut?: string[];
94
175
  denyOut?: string[];
95
176
  }): Promise<void>;
96
177
  }
178
+ /**
179
+ * Subset of the SDK's `SandboxInfo` the bond reads.
180
+ *
181
+ * This is what a sandbox looks like when you only LOOK at it. `connect` — which
182
+ * is how a handle is obtained — RESUMES a paused sandbox and extends its
183
+ * deadline, so it can never be used to answer "is this thing asleep?".
184
+ */
185
+ export interface E2BSandboxInfoLike {
186
+ sandboxId: string;
187
+ templateId?: string;
188
+ /** `'running'` or `'paused'`; anything else is treated as running. */
189
+ state?: string;
190
+ /** Caller metadata supplied at create (the bond puts `projectId` here). */
191
+ metadata?: Record<string, string>;
192
+ /** When the sandbox last started running. */
193
+ startedAt?: Date | string;
194
+ /** When the sandbox's current deadline expires. */
195
+ endAt?: Date | string;
196
+ /** Volumes mounted into the sandbox, when the account uses them. */
197
+ volumeMounts?: Array<{
198
+ name: string;
199
+ path: string;
200
+ }>;
201
+ }
202
+ /**
203
+ * One row of a sandbox listing.
204
+ *
205
+ * `name` is the template the sandbox booted from (the SDK's `alias`) and
206
+ * `volumeMounts` is what it has attached. Both are here for the same reason: they
207
+ * are the only way to observe whether a volume or a snapshot is still IN USE, and
208
+ * deleting one that is destroys a running sandbox.
209
+ */
210
+ export interface E2BSandboxListItem {
211
+ sandboxId: string;
212
+ state?: string;
213
+ /** Template/snapshot name the sandbox booted from, when the API reports one. */
214
+ name?: string;
215
+ /** Volumes attached to this sandbox. */
216
+ volumeMounts?: Array<{
217
+ name: string;
218
+ path: string;
219
+ }>;
220
+ }
221
+ /** A team volume as E2B reports it. */
222
+ export interface E2BVolumeLike {
223
+ name: string;
224
+ volumeId: string;
225
+ }
226
+ /**
227
+ * A snapshot as E2B reports it.
228
+ *
229
+ * `snapshotId` is the namespaced, tag-qualified reference
230
+ * (`<team-slug>/<name>:<tag>`) — opaque, and the thing `Sandbox.create()` boots
231
+ * from. The bond's OWN identifier is the bare name the caller supplied.
232
+ */
233
+ export interface E2BSnapshotLike {
234
+ snapshotId: string;
235
+ names?: string[];
236
+ }
97
237
  /** Subset of the SDK's `Sandbox` static surface the bond uses. */
98
238
  export interface E2BSandboxClientLike {
99
239
  create(templateId: string, opts?: Record<string, unknown>): Promise<E2BSandboxLike>;
100
240
  connect(sandboxId: string, opts?: Record<string, unknown>): Promise<E2BSandboxLike>;
101
- list(opts?: Record<string, unknown>): Promise<Array<{
102
- sandboxId: string;
103
- }> | {
104
- sandboxes?: Array<{
105
- sandboxId: string;
106
- }>;
241
+ list(opts?: Record<string, unknown>): Promise<E2BSandboxListItem[] | {
242
+ sandboxes?: E2BSandboxListItem[];
107
243
  }>;
108
244
  kill?(sandboxId: string, opts?: Record<string, unknown>): Promise<boolean>;
245
+ /**
246
+ * Create a team volume. Optional: the volume API is a private beta on E2B, so a
247
+ * client built against an account without it does not expose these at all.
248
+ */
249
+ createVolume?(name: string): Promise<E2BVolumeLike>;
250
+ /** Enumerate team volumes. */
251
+ listVolumes?(): Promise<E2BVolumeLike[]>;
252
+ /** Destroy a volume by its provider-native id. */
253
+ destroyVolume?(volumeId: string): Promise<boolean>;
254
+ /**
255
+ * Capture a sandbox's filesystem + memory as a named snapshot. Re-using a name
256
+ * assigns a new build to the SAME snapshot rather than creating a second one,
257
+ * which is what makes a per-project restore point a fixed-size resource.
258
+ */
259
+ createSnapshot?(sandboxId: string, name: string): Promise<E2BSnapshotLike>;
260
+ /** Enumerate snapshots, optionally filtered to one exact name. */
261
+ listSnapshots?(opts?: {
262
+ name?: string;
263
+ limit?: number;
264
+ }): Promise<E2BSnapshotLike[]>;
265
+ /** Delete a snapshot. Resolves `false` when there was nothing to delete. */
266
+ deleteSnapshot?(snapshotId: string): Promise<boolean>;
267
+ /**
268
+ * Read a sandbox's record WITHOUT connecting to it — the only lookup that does
269
+ * not resume a paused sandbox. Throws `SandboxNotFoundError` on a 404.
270
+ */
271
+ getInfo?(sandboxId: string, opts?: Record<string, unknown>): Promise<E2BSandboxInfoLike>;
272
+ /**
273
+ * Whether an error means "this sandbox does not exist", as opposed to "the
274
+ * lookup failed". The distinction cannot be recovered from the error's shape by
275
+ * a consumer, and getting it wrong is what makes a control plane treat a
276
+ * provider outage as a destroyed sandbox.
277
+ */
278
+ isNotFound?(error: unknown): boolean;
109
279
  }
110
280
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,qFAAqF;AACrF,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;;;;;;;;;OAUG;IACH,eAAe,CAAC,EAAE,MAAM,EAAE,CAAA;CAC3B;AAED,0EAA0E;AAC1E,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CA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AAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAA;IACxF;;;;;OAKG;IACH,UAAU,CAAC,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAA;CACrC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/api-code-sandbox-e2b",
3
- "version": "1.0.4",
3
+ "version": "1.2.0",
4
4
  "description": "E2B (e2b.dev) code sandbox provider — Firecracker microVMs with golden templates, fork, and pause/resume",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -30,14 +30,14 @@
30
30
  "license": "Apache-2.0",
31
31
  "devDependencies": {
32
32
  "@molecule/api-bond": "1.0.1",
33
- "@molecule/api-code-sandbox": "1.0.3",
33
+ "@molecule/api-code-sandbox": "1.2.0",
34
34
  "@types/node": "26.1.2",
35
35
  "typescript": "6.0.3",
36
36
  "vitest": "4.1.10"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@molecule/api-bond": "^1.0.1",
40
- "@molecule/api-code-sandbox": "^1.0.1",
40
+ "@molecule/api-code-sandbox": "^1.2.0",
41
41
  "@molecule/api-i18n": "^1.0.1"
42
42
  },
43
43
  "peerDependenciesMeta": {