@opengeni/runtime 0.11.0 → 0.13.3

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.
@@ -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,