@mastra/platform-workspace 1.1.1-alpha.0 → 1.2.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/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,51 @@ 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;
230
+ /**
231
+ * Generation token for the sidecar probe. Incremented on every `start()`
232
+ * and on teardown. The probe captures this value when it begins; if the
233
+ * generation has changed by the time the probe succeeds, the probe skips
234
+ * the `set()` to avoid re-populating a deleted or superseded sandbox entry.
235
+ */
236
+ private _probeGeneration;
237
+ /**
238
+ * In-flight sidecar probe promise. Concurrent `executeCommand` callers that
239
+ * arrive before the registry is populated all await this single promise so
240
+ * we don't fire N independent lease requests during the sidecar boot window.
241
+ * Once the probe resolves (success or timeout), callers check the registry
242
+ * and proceed — either via private-net (probe succeeded) or via lease (probe
243
+ * failed/timed out, but now coalesced via `_leaseInFlight`).
244
+ */
245
+ private _transportReadyPromise;
173
246
  constructor(options?: PlatformSandboxOptions);
174
247
  private generateId;
175
248
  /**
@@ -186,6 +259,28 @@ export declare class PlatformSandbox extends MastraSandbox {
186
259
  */
187
260
  clone(options?: SandboxCloneOptions): PlatformSandbox;
188
261
  start(): Promise<void>;
262
+ /**
263
+ * The single `start` attempt behind {@link start}'s coalescing wrapper.
264
+ *
265
+ * Split out so the wrapper can install a shared in-flight promise
266
+ * synchronously (before the first `await`) without inlining the reattach
267
+ * / retry logic. Joined callers observe whatever outcome this method
268
+ * produces — success returns normally, failures propagate to every
269
+ * awaiter.
270
+ */
271
+ private _doStart;
272
+ /**
273
+ * One timing summary per completed `start()` — the whole
274
+ * `PlatformSandbox`-visible boot in a single greppable line.
275
+ *
276
+ * `requestMs` is the proxy round-trip (`GET /sandbox/:id` on reattach,
277
+ * `POST /sandbox` including transient-5xx retries on provision) — a black
278
+ * box from this side that rolls up Railway RPC, sidecar launch, and the
279
+ * proxy's discovery exec. Sidecar probe cost is intentionally NOT here: the
280
+ * probe is fire-and-forget and outlives `start()` by design, so its
281
+ * duration lands on the `platform-workspace probe ok` line instead.
282
+ */
283
+ private _logStartComplete;
189
284
  /**
190
285
  * Copy `response.instanceUrl` into the injected {@link SandboxAddressRegistry}
191
286
  * when both are present. Called from both {@link start} branches (fresh
@@ -203,8 +298,141 @@ export declare class PlatformSandbox extends MastraSandbox {
203
298
  * through to the lease path with no branch here.
204
299
  */
205
300
  private _populateAddressFromResponse;
301
+ /**
302
+ * Fire-and-forget probe that polls the sidecar's `/health` endpoint until
303
+ * it responds, then populates the address registry. Runs detached from
304
+ * `start()` so sandbox provision latency is unchanged; early execs simply
305
+ * fall back to the lease path until the probe succeeds.
306
+ *
307
+ * If the sidecar never comes up within {@link SIDECAR_PROBE_TIMEOUT_MS},
308
+ * the registry stays unpopulated and all execs go via lease for this
309
+ * sandbox's lifetime (or until a future `start()` re-runs the probe).
310
+ *
311
+ * @param generation - The probe generation captured at call time. If this
312
+ * no longer matches `_probeGeneration` when the probe succeeds, the probe
313
+ * was superseded by a teardown or a new `start()`, so we skip the `set()`.
314
+ */
315
+ private _probeSidecarThenRegister;
316
+ /**
317
+ * Wait for the transport to become ready (sidecar probe succeeds) or time
318
+ * out. Concurrent callers all await the same probe promise, coalescing the
319
+ * cold-start storm into a single warmup attempt.
320
+ *
321
+ * If no probe is in flight (no registry, or registry already populated),
322
+ * this returns immediately. After the wait (success or timeout), callers
323
+ * check the registry and proceed — either via private-net or lease. The
324
+ * lease path is still coalesced via `_leaseInFlight`, so even if the probe
325
+ * times out, we only mint one lease for all concurrent execs.
326
+ */
327
+ private _awaitTransportReady;
328
+ /**
329
+ * Stop the sandbox while **preserving its recovery checkpoint**.
330
+ *
331
+ * Semantic parity with `@mastra/railway` `RailwaySandbox.stop()`: the VM
332
+ * is released but the on-provider checkpoint survives, so a subsequent
333
+ * `start()` on a sandbox constructed with the same `id` can restore from
334
+ * it. Any in-flight capture is awaited first so the preserved checkpoint
335
+ * reflects the latest disk state we asked for.
336
+ *
337
+ * Corresponds to `DELETE /v1/projects/:pid/sandbox/:sandboxId` on
338
+ * workspace-proxy, which by contract does not touch the checkpoint. Use
339
+ * {@link destroy} when you want the checkpoint released too.
340
+ */
206
341
  stop(): Promise<void>;
342
+ /**
343
+ * Destroy the sandbox **and release its recovery checkpoint**.
344
+ *
345
+ * Semantic parity with `@mastra/railway` `RailwaySandbox.destroy()`:
346
+ * cancels any in-flight capture (the checkpoint is about to be deleted
347
+ * — no reason to burn a capture on state we're releasing), asks the
348
+ * proxy to delete the checkpoint, then releases the VM. Both remote
349
+ * operations are best-effort logged failures — a stray checkpoint or a
350
+ * transient proxy error must not leave the caller with a half-torn-down
351
+ * sandbox they can't safely retry.
352
+ *
353
+ * Requires the caller to have constructed with a recovery `id` (there is
354
+ * no checkpoint to delete otherwise); callers without one skip the
355
+ * checkpoint DELETE and behave identically to {@link stop}.
356
+ */
207
357
  destroy(): Promise<void>;
358
+ /**
359
+ * Release the remote sandbox VM and clear the local state pointing at it.
360
+ *
361
+ * Shared body of {@link stop} and {@link destroy} — both funnel through
362
+ * here after they've dealt with the checkpoint (preserve vs release).
363
+ * The VM DELETE is safe to issue in either mode: the proxy's DELETE
364
+ * route does not touch the checkpoint on its own, so `stop()` correctly
365
+ * leaves the checkpoint intact and `destroy()` has already removed it
366
+ * before this call.
367
+ */
368
+ private _teardownSandbox;
369
+ /** Persist the configured recovery checkpoint when available. */
370
+ snapshot(): Promise<void>;
371
+ /**
372
+ * Capture the sandbox's checkpoint on demand, outside any refresh timer the
373
+ * workspace-proxy owns internally.
374
+ *
375
+ * Intended for callers (e.g. a factory-side scheduler) that want to refresh
376
+ * the recovery checkpoint at semantic moments — turn end, session-idle,
377
+ * pre-teardown — rather than only just before the upstream's idle destroy.
378
+ *
379
+ * Mirrors the OSS `@mastra/railway` `RailwaySandbox.captureCheckpoint()`
380
+ * shape so factory can call `sandbox.captureCheckpoint()` uniformly and
381
+ * branch on `status`/`reason` without knowing which provider is underneath.
382
+ * Both `captured` and `coalesced` carry the checkpoint name inline so the
383
+ * caller can persist a session→checkpoint binding atomically with the
384
+ * awaited capture.
385
+ *
386
+ * Skip semantics:
387
+ * - No caller-supplied `id`: returns `{ status: 'skipped', reason:
388
+ * 'no-checkpoint-name-configured' }`. An auto-generated random id is
389
+ * never a meaningful recovery key (no future boot would look for a
390
+ * checkpoint under it), so capturing would silently produce dead data.
391
+ * - Not started (no `_sandboxId`): returns `{ status: 'skipped', reason:
392
+ * 'sandbox-not-running' }` without a round-trip.
393
+ * - Upstream 410 (workspace-proxy or Railway reports the sandbox is
394
+ * already destroyed): returns the same `sandbox-not-running` skip so
395
+ * the discriminant matches the pre-flight case. Local state
396
+ * (`_sandboxId`, `_lease`, sidecar address) is cleared as a side
397
+ * effect so the next `start()` provisions fresh instead of reattaching
398
+ * to a dead id. The diagnostic distinction (pre-flight vs post-hoc)
399
+ * is preserved in log level: debug for the expected pre-flight skip,
400
+ * warn for the surprise upstream destroy.
401
+ *
402
+ * Concurrent callers on the same instance coalesce onto a single in-flight
403
+ * `POST /checkpoint` so N simultaneous turn-end fires (e.g. several tabs)
404
+ * do not each round-trip the proxy. Both the originator and joiners
405
+ * receive `{ status: 'coalesced', ... }` for the joined result — the
406
+ * outer contract does not distinguish who started the request, only that
407
+ * one upstream capture was made.
408
+ *
409
+ * Never throws for expected outcomes. Transport failures (5xx, 4xx other
410
+ * than 410) propagate as {@link PlatformApiError}; a 410 is normalized
411
+ * to a skip as described above.
412
+ */
413
+ captureCheckpoint(): Promise<CaptureCheckpointResult>;
414
+ /**
415
+ * The single `POST /checkpoint` attempt behind {@link captureCheckpoint}.
416
+ *
417
+ * Split out so the coalescing wrapper can install a shared in-flight
418
+ * promise without inlining the transport + response-mapping logic.
419
+ * Joined callers observe `{ status: 'coalesced', ... }` — the initiator
420
+ * sees the underlying `captured` / `coalesced` / `skipped` result the
421
+ * proxy returned. Both are legitimate: the OSS mirror uses the same
422
+ * "initiator sees the truth, joiners see coalesced" split.
423
+ */
424
+ private _doCaptureCheckpoint;
425
+ /**
426
+ * Clear local state that would otherwise let the caller keep exec'ing
427
+ * against a sandbox the upstream has already destroyed. Mirrors what
428
+ * `destroy()` does minus the outbound DELETE — the sandbox is already
429
+ * gone, so all that remains is to stop pointing at it.
430
+ *
431
+ * Also resets `status` to `'pending'` so a subsequent `_start()` on this
432
+ * reused instance re-runs provisioning instead of short-circuiting on
433
+ * the cached `'running'` state (see `MastraSandbox._start`).
434
+ */
435
+ private _clearDestroyedState;
208
436
  /**
209
437
  * Execute a command on the remote sandbox.
210
438
  *
@@ -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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yB;IA+CvC;;;;;;;;;;OAUG;YACW,oBAAoB;IAelC;;;;;;;;;;;;OAYG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAa3B;;;;;;;;;;;;;;OAcG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAmC9B;;;;;;;;;OASG;YACW,gBAAgB;IAwB9B,iEAAiE;IAC3D,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAI/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyCG;IACG,iBAAiB,IAAI,OAAO,CAAC,uBAAuB,CAAC;IA2B3D;;;;;;;;;OASG;YACW,oBAAoB;IA8BlC;;;;;;;;;OASG;IACH,OAAO,CAAC,oBAAoB;IAQ5B;;;;;;;;;;;;;;;;OAgBG;IACG,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,aAAa,CAAC;IA0E/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.1-alpha.0",
3
+ "version": "1.2.0-alpha.2",
4
4
  "description": "Mastra Platform workspace sandbox and filesystem providers",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -28,8 +28,8 @@
28
28
  "typescript": "^6.0.3",
29
29
  "vitest": "4.1.10",
30
30
  "@internal/lint": "0.0.121",
31
- "@internal/types-builder": "0.0.96",
32
- "@mastra/core": "1.58.0-alpha.1"
31
+ "@mastra/core": "1.58.0-alpha.13",
32
+ "@internal/types-builder": "0.0.96"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@mastra/core": ">=1.4.0-0 <2.0.0-0"