Skip to content
Français

WorkspacePathLock

import type { WorkspacePathLock } from "@elie-laloum/outpost/workspaces";
  • idRequired
    string
    Stable identifier of this resource, independent of its materialization path.
  • directoryRequired
    string
    Absolute local materialization or source directory; it is not a portable resource identity.
  • writableRequired
    boolean
    Writer intent; overlapping paths are refused when either owner can write.
  • identityOptional
    WorkspacePathGate | undefined
    Device and inode identity used to detect replacement and known filesystem aliases.
  • ancestorsOptional
    readonly WorkspacePathGate[] | undefined
    Filesystem identities of existing ancestors used to detect overlapping aliases.
  • excludedDirectoriesOptional
    readonly string[] | undefined
    Canonical control subdirectories excluded from a copy-source read lock. Owned materializations can coexist there while overlapping data writers and full source mounts remain fenced. Older locks omit this field.
export interface WorkspacePathLock {
  readonly id: string;
  readonly directory: string;
  readonly writable: boolean;
  readonly identity?: WorkspacePathGate;
  readonly ancestors?: readonly WorkspacePathGate[];
  readonly excludedDirectories?: readonly string[];
}