Skip to content
Français

WorkspaceInput

import type { WorkspaceInput } from "@elie-laloum/outpost/workspaces";

The fields below cover all variants; the signature specifies their allowed combinations.

  • directoryVariant-dependent
    string
    Absolute local materialization or source directory; it is not a portable resource identity.
  • pathsVariant-dependent
    readonly string[] | undefined
    Explicit relative path selection; copy selection does not implicitly apply .gitignore.
  • snapshotVariant-dependent
    TransportReference
    Transport reference to a verified file snapshot; restoration does not imply sandbox disposal.
  • transporterVariant-dependent
    Transport
    Caller-owned Transport used for conservation; no implicit cloud SDK or credential loading.
export type WorkspaceInput =
  | {
      readonly directory: string;
      readonly paths?: readonly string[];
    }
  | {
      readonly snapshot: TransportReference;
      readonly transporter: Transport;
    };