gatelineAPI reference
interface FoldResult {
    cause: null | FoldFailure;
    discarded: string[];
    harvested: string[];
    leftBehind: string[];
    message: string;
    ok: boolean;
    retained: null | string;
}

Properties

cause: null | FoldFailure

Null on success.

discarded: string[]

Uncommitted tracked paths discarded to let the rebase start (#224); never silently dropped.

harvested: string[]

Paths committed onto the task branch by the pre-fold surface harvest (#184).

leftBehind: string[]

Untracked paths outside the surface that the worktree removal drops (#184); named, never harvested.

message: string
ok: boolean
retained: null | string

Branch kept for inspection because the fold did not land (#225); null when nothing was retained.