@mastra/e2b 0.3.1 → 0.3.2
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/CHANGELOG.md +18 -0
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -663,9 +663,9 @@ var E2BSandbox = class extends MastraSandbox {
|
|
|
663
663
|
}
|
|
664
664
|
this.logger.debug(`${LOG_PREFIX} Creating new sandbox for: ${this.id} with template: ${resolvedTemplateId}`);
|
|
665
665
|
try {
|
|
666
|
-
this._sandbox = await Sandbox.
|
|
666
|
+
this._sandbox = await Sandbox.create(resolvedTemplateId, {
|
|
667
667
|
...this.connectionOpts,
|
|
668
|
-
|
|
668
|
+
lifecycle: { onTimeout: "pause" },
|
|
669
669
|
metadata: {
|
|
670
670
|
...this.metadata,
|
|
671
671
|
"mastra-sandbox-id": this.id
|
|
@@ -679,9 +679,9 @@ var E2BSandbox = class extends MastraSandbox {
|
|
|
679
679
|
this._resolvedTemplateId = void 0;
|
|
680
680
|
const rebuiltTemplateId = await this.buildDefaultTemplate();
|
|
681
681
|
this.logger.debug(`${LOG_PREFIX} Retrying sandbox creation with rebuilt template: ${rebuiltTemplateId}`);
|
|
682
|
-
this._sandbox = await Sandbox.
|
|
682
|
+
this._sandbox = await Sandbox.create(rebuiltTemplateId, {
|
|
683
683
|
...this.connectionOpts,
|
|
684
|
-
|
|
684
|
+
lifecycle: { onTimeout: "pause" },
|
|
685
685
|
metadata: {
|
|
686
686
|
...this.metadata,
|
|
687
687
|
"mastra-sandbox-id": this.id
|