@mastra/docker 0.12.1 → 0.13.0-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
@@ -2911,10 +2911,11 @@ var DockerFactorySandbox = class extends FactorySandbox {
2911
2911
  };
2912
2912
  }
2913
2913
  create(ctx, settings) {
2914
- const { defaults: _defaults, template: _template, image, ...options } = this.#options;
2914
+ const { defaults: _defaults, template: _template, image, env, ...options } = this.#options;
2915
2915
  const template = this.template(ctx, settings);
2916
2916
  return new DockerSandbox({
2917
2917
  ...options,
2918
+ ...env ? { env: typeof env === "function" ? env(ctx) : env } : {},
2918
2919
  ...template === void 0 && image !== void 0 ? { image } : {},
2919
2920
  id: ctx.sessionId,
2920
2921
  template,