@mastra/e2b 0.15.1 → 0.16.0-alpha.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
@@ -2772,9 +2772,10 @@ var E2BFactorySandbox = class extends FactorySandbox {
2772
2772
  return createRepoTemplate(this.#templateOptions(ctx, settings));
2773
2773
  }
2774
2774
  create(ctx, settings) {
2775
- const { defaults, ...options } = this.#options;
2775
+ const { defaults, env, ...options } = this.#options;
2776
2776
  return new E2BSandbox({
2777
2777
  ...options,
2778
+ ...env ? { env: typeof env === "function" ? env(ctx) : env } : {},
2778
2779
  id: ctx.sessionId,
2779
2780
  sandboxId: ctx.sandboxId,
2780
2781
  template: this.template(ctx, settings),