@mastra/daytona 0.8.0 → 0.8.1-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
@@ -524,7 +524,7 @@ var DaytonaProcessManager = class extends SandboxProcessManager {
524
524
  _spawnCounter = 0;
525
525
  _defaultTimeout;
526
526
  constructor(opts = {}) {
527
- super({ env: opts.env });
527
+ super();
528
528
  this._defaultTimeout = opts.defaultTimeout;
529
529
  }
530
530
  async spawn(command, options = {}) {
@@ -533,11 +533,7 @@ var DaytonaProcessManager = class extends SandboxProcessManager {
533
533
  timeout: options.timeout ?? this._defaultTimeout,
534
534
  cwd: options.cwd ?? this.sandbox.mounts?.entries?.keys().next().value
535
535
  };
536
- const mergedEnv = {
537
- ...this.env,
538
- ...effectiveOptions.env
539
- };
540
- const envs = Object.fromEntries(Object.entries(mergedEnv).filter((entry) => entry[1] !== void 0));
536
+ const envs = Object.fromEntries(Object.entries(effectiveOptions.env ?? {}).filter((entry) => entry[1] !== void 0));
541
537
  const sessionCommand = buildSpawnCommand(command, effectiveOptions.cwd, envs);
542
538
  return this.sandbox.retryOnDead(async () => {
543
539
  const sandbox = this.sandbox.daytona;
@@ -696,7 +692,6 @@ var DaytonaSandbox = class DaytonaSandbox extends MastraSandbox {
696
692
  timeout;
697
693
  language;
698
694
  resources;
699
- env;
700
695
  labels;
701
696
  snapshotId;
702
697
  image;
@@ -718,16 +713,12 @@ var DaytonaSandbox = class DaytonaSandbox extends MastraSandbox {
718
713
  super({
719
714
  ...options,
720
715
  name: "DaytonaSandbox",
721
- processes: new DaytonaProcessManager({
722
- env: options.env,
723
- defaultTimeout: options.timeout ?? 3e5
724
- })
716
+ processes: new DaytonaProcessManager({ defaultTimeout: options.timeout ?? 3e5 })
725
717
  });
726
718
  this.id = options.id ?? this.generateId();
727
719
  this.timeout = options.timeout ?? 3e5;
728
720
  this.language = options.language ?? "typescript";
729
721
  this.resources = options.resources;
730
- this.env = options.env ?? {};
731
722
  this.labels = options.labels ?? {};
732
723
  this.snapshotId = options.snapshot;
733
724
  this.image = options.image;