@mastra/platform-workspace 1.10.0 → 1.11.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
@@ -3427,9 +3427,10 @@ var PlatformFactorySandbox = class extends FactorySandbox {
3427
3427
  });
3428
3428
  }
3429
3429
  create(ctx, settings) {
3430
- const { defaults, template: _template, ...options } = this.#options;
3430
+ const { defaults, template: _template, env, ...options } = this.#options;
3431
3431
  return new PlatformSandbox({
3432
3432
  ...options,
3433
+ ...env ? { env: typeof env === "function" ? env(ctx) : env } : {},
3433
3434
  id: ctx.sessionId,
3434
3435
  sessionId: ctx.sessionId,
3435
3436
  sandboxId: ctx.sandboxId,