@mastra/platform-workspace 1.10.0-alpha.3 → 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/factory-sandbox.d.ts +7 -1
- package/dist/factory-sandbox.d.ts.map +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
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,
|