@mastra/e2b 0.13.0-alpha.2 → 0.13.0-alpha.3
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/index.cjs +5 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/sandbox/index.d.ts +10 -0
- package/dist/sandbox/index.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -1263,6 +1263,11 @@ var E2BSandbox = class E2BSandbox extends _mastra_core_workspace.MastraSandbox {
|
|
|
1263
1263
|
if (this._preferredSandboxId) {
|
|
1264
1264
|
const preferred = await this.connectToPreferredSandbox(this._preferredSandboxId);
|
|
1265
1265
|
if (preferred) return preferred;
|
|
1266
|
+
if (this._constructorOptions.reattach === "required") throw new _mastra_core_workspace.SandboxError(`E2B sandbox ${this._preferredSandboxId} could not be reattached (gone); refusing to provision a replacement because reattach is 'required'. Clear the persisted sandboxId to start a fresh sandbox.`, "SANDBOX_REATTACH_FAILED", {
|
|
1267
|
+
provider: "e2b",
|
|
1268
|
+
sandboxId: this._preferredSandboxId,
|
|
1269
|
+
logicalId: this.id
|
|
1270
|
+
});
|
|
1266
1271
|
}
|
|
1267
1272
|
return this.findExistingSandbox();
|
|
1268
1273
|
}
|