@mastra/platform-workspace 1.3.0-alpha.1 → 1.3.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/CHANGELOG.md +49 -0
- package/dist/index.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/sandbox.d.ts +3 -0
- package/dist/sandbox.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -835,6 +835,7 @@ var PlatformSandbox = class PlatformSandbox extends MastraSandbox {
|
|
|
835
835
|
_client;
|
|
836
836
|
_environmentId;
|
|
837
837
|
_sandboxId;
|
|
838
|
+
_seedCheckpointName;
|
|
838
839
|
_idleTimeoutMinutes;
|
|
839
840
|
_networkIsolation;
|
|
840
841
|
_env;
|
|
@@ -932,6 +933,7 @@ var PlatformSandbox = class PlatformSandbox extends MastraSandbox {
|
|
|
932
933
|
this._environmentId = options.environmentId ?? process.env.MASTRA_ENVIRONMENT_ID ?? "";
|
|
933
934
|
if (!this._environmentId && !options.sandboxId) throw new Error("environmentId is required");
|
|
934
935
|
this._sandboxId = options.sandboxId;
|
|
936
|
+
this._seedCheckpointName = options.seedCheckpointName;
|
|
935
937
|
this._idleTimeoutMinutes = options.idleTimeoutMinutes;
|
|
936
938
|
this._networkIsolation = options.networkIsolation;
|
|
937
939
|
this._env = options.env ?? {};
|
|
@@ -968,6 +970,7 @@ var PlatformSandbox = class PlatformSandbox extends MastraSandbox {
|
|
|
968
970
|
fetch: this._client.fetch,
|
|
969
971
|
environmentId: this._environmentId,
|
|
970
972
|
...options.sandboxId !== void 0 && { sandboxId: options.sandboxId },
|
|
973
|
+
...(options.seedCheckpointName ?? this._seedCheckpointName) !== void 0 && { seedCheckpointName: options.seedCheckpointName ?? this._seedCheckpointName },
|
|
971
974
|
idleTimeoutMinutes: options.idleTimeoutMinutes ?? this._idleTimeoutMinutes,
|
|
972
975
|
...this._networkIsolation !== void 0 && { networkIsolation: this._networkIsolation },
|
|
973
976
|
env: options.env ?? this._env,
|
|
@@ -1014,6 +1017,7 @@ var PlatformSandbox = class PlatformSandbox extends MastraSandbox {
|
|
|
1014
1017
|
if (!this._environmentId) throw new Error("environmentId is required");
|
|
1015
1018
|
const body = JSON.stringify({
|
|
1016
1019
|
id: this.id,
|
|
1020
|
+
seedCheckpointName: this._seedCheckpointName,
|
|
1017
1021
|
environmentId: this._environmentId,
|
|
1018
1022
|
idleTimeoutMinutes: this._idleTimeoutMinutes,
|
|
1019
1023
|
networkIsolation: this._networkIsolation,
|