@opengeni/runtime 0.13.0 → 0.13.4
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/{chunk-65UDUFUO.js → chunk-JGUQSAG5.js} +1887 -172
- package/dist/chunk-JGUQSAG5.js.map +1 -0
- package/dist/{chunk-HAN5D27J.js → chunk-QYXOVIUK.js} +24 -4
- package/dist/chunk-QYXOVIUK.js.map +1 -0
- package/dist/{index-DGUrY_yR.d.ts → index-DU-KXVlx.d.ts} +328 -25
- package/dist/index.d.ts +25 -3
- package/dist/index.js +71 -675
- package/dist/index.js.map +1 -1
- package/dist/mcp-network.d.ts +4 -1
- package/dist/mcp-network.js +5 -1
- package/dist/sandbox/index.d.ts +1 -1
- package/dist/sandbox/index.js +39 -1
- package/package.json +3 -3
- package/src/index.ts +31 -9
- package/src/mcp-network.ts +28 -3
- package/src/sandbox/channel-a.ts +92 -46
- package/src/sandbox/exec-banner.ts +15 -0
- package/src/sandbox/index.ts +360 -145
- package/src/sandbox/provider-errors.ts +175 -0
- package/src/sandbox/routing/backend-resolver.ts +15 -0
- package/src/sandbox/routing/routing-session.ts +730 -36
- package/src/sandbox/select.ts +8 -0
- package/src/sandbox/turn-tool-cancellation.ts +366 -92
- package/src/sandbox/workspace-archive.ts +289 -0
- package/dist/chunk-65UDUFUO.js.map +0 -1
- package/dist/chunk-HAN5D27J.js.map +0 -1
package/src/sandbox/select.ts
CHANGED
|
@@ -24,6 +24,11 @@ export interface NegotiationContext {
|
|
|
24
24
|
liveness: "cold" | "warming" | "warm" | "draining";
|
|
25
25
|
/** The lease epoch echoed on viewer heartbeats (the split-brain fence). */
|
|
26
26
|
leaseEpoch: number;
|
|
27
|
+
/** Numeric/boolean archive completeness truth. Non-persistable targets use
|
|
28
|
+
* null/null/false; archive locations and provider details are never exposed. */
|
|
29
|
+
workspaceGeneration?: number | null;
|
|
30
|
+
archiveGeneration?: number | null;
|
|
31
|
+
archiveComplete?: boolean;
|
|
27
32
|
/** The deployment desktop toggle (settings.sandboxDesktopEnabled). */
|
|
28
33
|
desktopEnabled: boolean;
|
|
29
34
|
/**
|
|
@@ -411,6 +416,9 @@ export function negotiateCapabilities(ctx: NegotiationContext): SessionCapabilit
|
|
|
411
416
|
os: ctx.os,
|
|
412
417
|
liveness: ctx.liveness,
|
|
413
418
|
leaseEpoch: ctx.leaseEpoch,
|
|
419
|
+
workspaceGeneration: ctx.workspaceGeneration ?? null,
|
|
420
|
+
archiveGeneration: ctx.archiveGeneration ?? null,
|
|
421
|
+
archiveComplete: ctx.archiveComplete ?? false,
|
|
414
422
|
viewerHeartbeatIntervalMs: 30_000,
|
|
415
423
|
FileSystem: fileSystem,
|
|
416
424
|
Terminal: terminal,
|