@mastra/e2b 0.3.1-alpha.0 → 0.3.2-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/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.betaCreate(resolvedTemplateId, {
666
+ this._sandbox = await Sandbox.create(resolvedTemplateId, {
667
667
  ...this.connectionOpts,
668
- autoPause: true,
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.betaCreate(rebuiltTemplateId, {
682
+ this._sandbox = await Sandbox.create(rebuiltTemplateId, {
683
683
  ...this.connectionOpts,
684
- autoPause: true,
684
+ lifecycle: { onTimeout: "pause" },
685
685
  metadata: {
686
686
  ...this.metadata,
687
687
  "mastra-sandbox-id": this.id