Skip to content
Français

AttachResult

import type { AttachResult } from "@elie-laloum/outpost";
  • commitsRequired
    readonly Commit[]
    Commits made during the session, newest first, as oid and subject.
  • branchRequired
    string
    Work branch of the session.
  • directoryRequired
    string
    Host worktree directory of the session.
  • statusRequired
    number
    Exit code of the process, 0 for success. A nonzero code still resolves the command, so check it.
  • stdoutRequired
    string
    Last retain characters of standard output. Empty when an interactive command without terminal streams used the host terminal on the local, Docker or Podman provider.
  • stderrRequired
    string
    Last retain characters of standard error. Empty in the same host-terminal case, and for a Daytona terminal, whose output is all in stdout.
  • retainedDirectoryOptional
    string | undefined
    Worktree kept on close: set when preserve was requested, or when it has a detached HEAD or uncommitted, untracked or ignored files. Absent when the worktree was removed, and always in current mode.
export interface AttachResult extends CommandResult, Disposal {
  readonly commits: readonly Commit[];
  readonly branch: string;
  readonly directory: string;
}