@mastra/platform-workspace 1.3.0-alpha.1 → 1.3.0-alpha.2

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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @mastra/platform
2
2
 
3
+ ## 1.3.0-alpha.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Added fallback checkpoint forwarding for Platform sandboxes so the workspace proxy can seed fresh sessions without changing their primary recovery key. ([#21803](https://github.com/mastra-ai/mastra/pull/21803))
8
+
9
+ ```typescript
10
+ const sandbox = new PlatformSandbox({
11
+ id: 'session-42',
12
+ seedCheckpointName: 'repo-base',
13
+ });
14
+ ```
15
+
16
+ - Updated dependencies [[`58c43d3`](https://github.com/mastra-ai/mastra/commit/58c43d3f7cb2eeaeb8ac733ae71dde822348e588)]:
17
+ - @mastra/core@1.60.0-alpha.14
18
+
3
19
  ## 1.3.0-alpha.1
4
20
 
5
21
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -859,6 +859,7 @@ var PlatformSandbox = class PlatformSandbox extends _mastra_core_workspace.Mastr
859
859
  _client;
860
860
  _environmentId;
861
861
  _sandboxId;
862
+ _seedCheckpointName;
862
863
  _idleTimeoutMinutes;
863
864
  _networkIsolation;
864
865
  _env;
@@ -956,6 +957,7 @@ var PlatformSandbox = class PlatformSandbox extends _mastra_core_workspace.Mastr
956
957
  this._environmentId = options.environmentId ?? process.env.MASTRA_ENVIRONMENT_ID ?? "";
957
958
  if (!this._environmentId && !options.sandboxId) throw new Error("environmentId is required");
958
959
  this._sandboxId = options.sandboxId;
960
+ this._seedCheckpointName = options.seedCheckpointName;
959
961
  this._idleTimeoutMinutes = options.idleTimeoutMinutes;
960
962
  this._networkIsolation = options.networkIsolation;
961
963
  this._env = options.env ?? {};
@@ -992,6 +994,7 @@ var PlatformSandbox = class PlatformSandbox extends _mastra_core_workspace.Mastr
992
994
  fetch: this._client.fetch,
993
995
  environmentId: this._environmentId,
994
996
  ...options.sandboxId !== void 0 && { sandboxId: options.sandboxId },
997
+ ...(options.seedCheckpointName ?? this._seedCheckpointName) !== void 0 && { seedCheckpointName: options.seedCheckpointName ?? this._seedCheckpointName },
995
998
  idleTimeoutMinutes: options.idleTimeoutMinutes ?? this._idleTimeoutMinutes,
996
999
  ...this._networkIsolation !== void 0 && { networkIsolation: this._networkIsolation },
997
1000
  env: options.env ?? this._env,
@@ -1038,6 +1041,7 @@ var PlatformSandbox = class PlatformSandbox extends _mastra_core_workspace.Mastr
1038
1041
  if (!this._environmentId) throw new Error("environmentId is required");
1039
1042
  const body = JSON.stringify({
1040
1043
  id: this.id,
1044
+ seedCheckpointName: this._seedCheckpointName,
1041
1045
  environmentId: this._environmentId,
1042
1046
  idleTimeoutMinutes: this._idleTimeoutMinutes,
1043
1047
  networkIsolation: this._networkIsolation,