@mastra/daytona 0.9.0 → 0.9.1

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
@@ -746,10 +746,10 @@ var DaytonaSandbox = class DaytonaSandbox extends MastraSandbox {
746
746
  ...options.target !== void 0 && { target: options.target }
747
747
  };
748
748
  this._constructorOptions = { ...options };
749
- const computerUseOption = options.computerUse ?? true;
749
+ const computerUseOption = options.computerUse;
750
750
  this.computerUseAutoStart = typeof computerUseOption === "object" ? computerUseOption.autoStart ?? true : true;
751
751
  this.noVncPort = typeof computerUseOption === "object" ? computerUseOption.noVncPort ?? DEFAULT_NOVNC_PORT : DEFAULT_NOVNC_PORT;
752
- if (computerUseOption !== false) this.computer = this.createComputer();
752
+ if (computerUseOption === true || typeof computerUseOption === "object") this.computer = this.createComputer();
753
753
  }
754
754
  generateId() {
755
755
  return `daytona-sandbox-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`;