@mastra/platform-workspace 1.1.0 → 1.2.0-alpha.1

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/sandbox.d.ts CHANGED
@@ -94,6 +94,34 @@ export declare class SandboxExecTransportError extends Error {
94
94
  wsEndpoint: string;
95
95
  });
96
96
  }
97
+ /**
98
+ * Outcome of {@link PlatformSandbox.captureCheckpoint}. Mirrors the shape of
99
+ * the OSS `@mastra/railway` `RailwaySandbox.captureCheckpoint()` return so a
100
+ * caller (e.g. the factory fleet) can branch on `status`/`reason` uniformly
101
+ * across providers without knowing which one is underneath.
102
+ *
103
+ * `captured` and `coalesced` both represent a successful capture the caller
104
+ * can persist against — they carry the checkpoint name inline so callers
105
+ * don't have to reach back into the sandbox instance to learn what was
106
+ * written. `skipped` carries a machine-readable `reason` so the discriminant
107
+ * set stays extensible.
108
+ *
109
+ * Note: the platform proxy's own `skipped` (returned when the upstream
110
+ * sandbox is already destroyed) is mapped to `sandbox-not-running` here to
111
+ * keep the discriminant identical to the OSS provider. The diagnostic
112
+ * distinction (pre-flight vs post-hoc discovery) is preserved in log lines,
113
+ * not the return type — see {@link PlatformSandbox.captureCheckpoint}.
114
+ */
115
+ export type CaptureCheckpointResult = {
116
+ status: 'captured';
117
+ checkpointName: string;
118
+ } | {
119
+ status: 'coalesced';
120
+ checkpointName: string;
121
+ } | {
122
+ status: 'skipped';
123
+ reason: 'no-checkpoint-name-configured' | 'sandbox-not-running';
124
+ };
97
125
  /**
98
126
  * Thrown when `/exec-lease` returns 410 Gone — the sandbox has been destroyed
99
127
  * (Railway destroy, quota reclamation, etc.). The client cannot recover from
@@ -170,6 +198,35 @@ export declare class PlatformSandbox extends MastraSandbox {
170
198
  * Cleared (regardless of success or failure) when the request settles.
171
199
  */
172
200
  private _leaseInFlight;
201
+ /**
202
+ * True when this sandbox was constructed with a caller-supplied `id` (the
203
+ * recovery key the proxy hashes into an on-provider checkpoint name).
204
+ * `captureCheckpoint()` needs this to distinguish "no checkpoint intent"
205
+ * (auto-generated random id — capture would land under a name no future
206
+ * boot would look for) from "capture on demand". Cloned sandboxes route
207
+ * `checkpointName` through `id`, so both entry points set this the same
208
+ * way.
209
+ */
210
+ private readonly _hasRecoveryKey;
211
+ /**
212
+ * In-flight `captureCheckpoint()` request. Concurrent callers on the same
213
+ * instance coalesce onto this single promise so we don't burn N `POST
214
+ * /checkpoint` round-trips when the fleet fires several turn-end captures
215
+ * before the first one resolves. Cleared when the request settles.
216
+ */
217
+ private _captureInFlight;
218
+ /**
219
+ * In-flight `start()` attempt. Concurrent callers on a fresh instance
220
+ * coalesce onto this single promise so a `POST /sandbox` is not fired
221
+ * N times when N fleet callers race to bring the same logical sandbox
222
+ * up. Published **synchronously** with `??=` before the first `await`
223
+ * so a later caller cannot slip through the null check while the
224
+ * originator is mid-round-trip. Cleared when the shared attempt
225
+ * settles (success or failure) so the next call sees a clean slot.
226
+ *
227
+ * Mirrors OSS `@mastra/railway` `RailwaySandbox._startInFlight`.
228
+ */
229
+ private _startInFlight;
173
230
  constructor(options?: PlatformSandboxOptions);
174
231
  private generateId;
175
232
  /**
@@ -186,6 +243,16 @@ export declare class PlatformSandbox extends MastraSandbox {
186
243
  */
187
244
  clone(options?: SandboxCloneOptions): PlatformSandbox;
188
245
  start(): Promise<void>;
246
+ /**
247
+ * The single `start` attempt behind {@link start}'s coalescing wrapper.
248
+ *
249
+ * Split out so the wrapper can install a shared in-flight promise
250
+ * synchronously (before the first `await`) without inlining the reattach
251
+ * / retry logic. Joined callers observe whatever outcome this method
252
+ * produces — success returns normally, failures propagate to every
253
+ * awaiter.
254
+ */
255
+ private _doStart;
189
256
  /**
190
257
  * Copy `response.instanceUrl` into the injected {@link SandboxAddressRegistry}
191
258
  * when both are present. Called from both {@link start} branches (fresh
@@ -203,8 +270,112 @@ export declare class PlatformSandbox extends MastraSandbox {
203
270
  * through to the lease path with no branch here.
204
271
  */
205
272
  private _populateAddressFromResponse;
273
+ /**
274
+ * Stop the sandbox while **preserving its recovery checkpoint**.
275
+ *
276
+ * Semantic parity with `@mastra/railway` `RailwaySandbox.stop()`: the VM
277
+ * is released but the on-provider checkpoint survives, so a subsequent
278
+ * `start()` on a sandbox constructed with the same `id` can restore from
279
+ * it. Any in-flight capture is awaited first so the preserved checkpoint
280
+ * reflects the latest disk state we asked for.
281
+ *
282
+ * Corresponds to `DELETE /v1/projects/:pid/sandbox/:sandboxId` on
283
+ * workspace-proxy, which by contract does not touch the checkpoint. Use
284
+ * {@link destroy} when you want the checkpoint released too.
285
+ */
206
286
  stop(): Promise<void>;
287
+ /**
288
+ * Destroy the sandbox **and release its recovery checkpoint**.
289
+ *
290
+ * Semantic parity with `@mastra/railway` `RailwaySandbox.destroy()`:
291
+ * cancels any in-flight capture (the checkpoint is about to be deleted
292
+ * — no reason to burn a capture on state we're releasing), asks the
293
+ * proxy to delete the checkpoint, then releases the VM. Both remote
294
+ * operations are best-effort logged failures — a stray checkpoint or a
295
+ * transient proxy error must not leave the caller with a half-torn-down
296
+ * sandbox they can't safely retry.
297
+ *
298
+ * Requires the caller to have constructed with a recovery `id` (there is
299
+ * no checkpoint to delete otherwise); callers without one skip the
300
+ * checkpoint DELETE and behave identically to {@link stop}.
301
+ */
207
302
  destroy(): Promise<void>;
303
+ /**
304
+ * Release the remote sandbox VM and clear the local state pointing at it.
305
+ *
306
+ * Shared body of {@link stop} and {@link destroy} — both funnel through
307
+ * here after they've dealt with the checkpoint (preserve vs release).
308
+ * The VM DELETE is safe to issue in either mode: the proxy's DELETE
309
+ * route does not touch the checkpoint on its own, so `stop()` correctly
310
+ * leaves the checkpoint intact and `destroy()` has already removed it
311
+ * before this call.
312
+ */
313
+ private _teardownSandbox;
314
+ /**
315
+ * Capture the sandbox's checkpoint on demand, outside any refresh timer the
316
+ * workspace-proxy owns internally.
317
+ *
318
+ * Intended for callers (e.g. a factory-side scheduler) that want to refresh
319
+ * the recovery checkpoint at semantic moments — turn end, session-idle,
320
+ * pre-teardown — rather than only just before the upstream's idle destroy.
321
+ *
322
+ * Mirrors the OSS `@mastra/railway` `RailwaySandbox.captureCheckpoint()`
323
+ * shape so factory can call `sandbox.captureCheckpoint()` uniformly and
324
+ * branch on `status`/`reason` without knowing which provider is underneath.
325
+ * Both `captured` and `coalesced` carry the checkpoint name inline so the
326
+ * caller can persist a session→checkpoint binding atomically with the
327
+ * awaited capture.
328
+ *
329
+ * Skip semantics:
330
+ * - No caller-supplied `id`: returns `{ status: 'skipped', reason:
331
+ * 'no-checkpoint-name-configured' }`. An auto-generated random id is
332
+ * never a meaningful recovery key (no future boot would look for a
333
+ * checkpoint under it), so capturing would silently produce dead data.
334
+ * - Not started (no `_sandboxId`): returns `{ status: 'skipped', reason:
335
+ * 'sandbox-not-running' }` without a round-trip.
336
+ * - Upstream 410 (workspace-proxy or Railway reports the sandbox is
337
+ * already destroyed): returns the same `sandbox-not-running` skip so
338
+ * the discriminant matches the pre-flight case. Local state
339
+ * (`_sandboxId`, `_lease`, sidecar address) is cleared as a side
340
+ * effect so the next `start()` provisions fresh instead of reattaching
341
+ * to a dead id. The diagnostic distinction (pre-flight vs post-hoc)
342
+ * is preserved in log level: debug for the expected pre-flight skip,
343
+ * warn for the surprise upstream destroy.
344
+ *
345
+ * Concurrent callers on the same instance coalesce onto a single in-flight
346
+ * `POST /checkpoint` so N simultaneous turn-end fires (e.g. several tabs)
347
+ * do not each round-trip the proxy. Both the originator and joiners
348
+ * receive `{ status: 'coalesced', ... }` for the joined result — the
349
+ * outer contract does not distinguish who started the request, only that
350
+ * one upstream capture was made.
351
+ *
352
+ * Never throws for expected outcomes. Transport failures (5xx, 4xx other
353
+ * than 410) propagate as {@link PlatformApiError}; a 410 is normalized
354
+ * to a skip as described above.
355
+ */
356
+ captureCheckpoint(): Promise<CaptureCheckpointResult>;
357
+ /**
358
+ * The single `POST /checkpoint` attempt behind {@link captureCheckpoint}.
359
+ *
360
+ * Split out so the coalescing wrapper can install a shared in-flight
361
+ * promise without inlining the transport + response-mapping logic.
362
+ * Joined callers observe `{ status: 'coalesced', ... }` — the initiator
363
+ * sees the underlying `captured` / `coalesced` / `skipped` result the
364
+ * proxy returned. Both are legitimate: the OSS mirror uses the same
365
+ * "initiator sees the truth, joiners see coalesced" split.
366
+ */
367
+ private _doCaptureCheckpoint;
368
+ /**
369
+ * Clear local state that would otherwise let the caller keep exec'ing
370
+ * against a sandbox the upstream has already destroyed. Mirrors what
371
+ * `destroy()` does minus the outbound DELETE — the sandbox is already
372
+ * gone, so all that remains is to stop pointing at it.
373
+ *
374
+ * Also resets `status` to `'pending'` so a subsequent `_start()` on this
375
+ * reused instance re-runs provisioning instead of short-circuiting on
376
+ * the cached `'running'` state (see `MastraSandbox._start`).
377
+ */
378
+ private _clearDestroyedState;
208
379
  /**
209
380
  * Execute a command on the remote sandbox.
210
381
  *
@@ -1 +1 @@
1
- {"version":3,"file":"sandbox.d.ts","sourceRoot":"","sources":["../src/sandbox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EACV,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,WAAW,EACX,cAAc,EACd,mBAAmB,EACnB,WAAW,EACX,mBAAmB,EACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAwB,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AACnH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEzD,OAAO,KAAK,EAAE,0BAA0B,EAAa,MAAM,kBAAkB,CAAC;AAE9E,OAAO,KAAK,EAA+C,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAG1G,MAAM,MAAM,+BAA+B,GAAG,UAAU,GAAG,SAAS,CAAC;AAErE;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,sBAAsB;IACrC,GAAG,CAAC,SAAS,EAAE,MAAM,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AAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,aAAa,CAAC;IAkE/G;;;;;;;;;;;;;;;;;;;;OAoBG;YACW,cAAc;IA+F5B;;;;;;;;;;;;OAYG;YACW,yBAAyB;IAgEvC;;;;;OAKG;IACH,OAAO,CAAC,kBAAkB;IAI1B;;;;;;OAMG;YACW,YAAY;IA0CpB,OAAO,IAAI,OAAO,CAAC,WAAW,CAAC;IAuDrC,eAAe,CAAC,IAAI,CAAC,EAAE;QAAE,cAAc,CAAC,EAAE,cAAc,CAAA;KAAE,GAAG,MAAM;CAQpE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/platform-workspace",
3
- "version": "1.1.0",
3
+ "version": "1.2.0-alpha.1",
4
4
  "description": "Mastra Platform workspace sandbox and filesystem providers",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -27,9 +27,9 @@
27
27
  "tsdown": "0.22.9",
28
28
  "typescript": "^6.0.3",
29
29
  "vitest": "4.1.10",
30
+ "@internal/lint": "0.0.121",
30
31
  "@internal/types-builder": "0.0.96",
31
- "@mastra/core": "1.57.0",
32
- "@internal/lint": "0.0.121"
32
+ "@mastra/core": "1.58.0-alpha.3"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@mastra/core": ">=1.4.0-0 <2.0.0-0"