@mastra/e2b 0.10.0-alpha.2 → 0.10.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.js CHANGED
@@ -517,10 +517,7 @@ var E2BProcessManager = class extends SandboxProcessManager {
517
517
  async spawn(command, options = {}) {
518
518
  return this.sandbox.retryOnDead(async () => {
519
519
  const e2b = this.sandbox.e2b;
520
- const mergedEnv = {
521
- ...this.env,
522
- ...options.env
523
- };
520
+ const mergedEnv = { ...options.env };
524
521
  const envs = Object.fromEntries(Object.entries(mergedEnv).filter((entry) => entry[1] !== void 0));
525
522
  let handle;
526
523
  handle = new E2BProcessHandle(await e2b.commands.run(command, {
@@ -648,7 +645,6 @@ var E2BSandbox = class E2BSandbox extends MastraSandbox {
648
645
  _isRetrying = false;
649
646
  timeout;
650
647
  templateSpec;
651
- env;
652
648
  metadata;
653
649
  network;
654
650
  lifecycle;
@@ -663,12 +659,11 @@ var E2BSandbox = class E2BSandbox extends MastraSandbox {
663
659
  super({
664
660
  ...options,
665
661
  name: "E2BSandbox",
666
- processes: new E2BProcessManager({ env: options.env ?? {} })
662
+ processes: new E2BProcessManager()
667
663
  });
668
664
  this.id = options.id ?? this.generateId();
669
665
  this.timeout = options.timeout ?? 3e5;
670
666
  this.templateSpec = options.template;
671
- this.env = options.env ?? {};
672
667
  this.metadata = options.metadata ?? {};
673
668
  this.network = options.network;
674
669
  this.lifecycle = options.lifecycle ?? { onTimeout: "pause" };