Skip to content
Français

FileWorkspaceRecoveryOptions

import type { FileWorkspaceRecoveryOptions } from "@elie-laloum/outpost/workspaces";
  • expectedRevisionRequired
    string
    Revision obtained by inspection; recovery refuses a changed persisted record.
  • processesStoppedRequired
    true
    Explicit assertion that the prior owner and its processes have stopped; never inferred from heartbeat expiry.
  • sandboxProviderOptional
    SandboxProvider | undefined
    Execution provider with the required file binding capability; legacy providers remain usable for Git.
  • runtimeOptional
    WorkspaceRuntimeOptions | undefined
    Control directory and logical namespace, separate from the workspace files.
  • retentionOptional
    WorkspaceRetention | undefined
    run cleans successful owned work, local retains it, portable additionally requires an explicit Transport and namespace.
  • portableOptional
    boolean | undefined
    Restore a verified snapshot into a new owned materialization; mounted sources must remain accessible and unchanged.
  • recoverOptional
    { readonly processesStopped: true; readonly expectedRevision?: string; readonly allocationReleased?: true; readonly adoptInterruptedFiles?: boolean; readonly adoptMountedSource?: boolean; } | undefined
    Explicit stopped-process recovery authorization; interrupted replay remains a separate workflow decision.
export interface FileWorkspaceRecoveryOptions extends RestoreFileWorkspaceOptions {
  readonly expectedRevision: string;
  readonly processesStopped: true;
  readonly sandboxProvider?: SandboxProvider;
}