Skip to content

WorktreeReady ​

Type, in @jr2/orchestrator/src/worktree.ts. It is an export of @jr2/orchestrator, in the Effects group of the Authoring surface page.

ts
type WorktreeReady<S extends string = string> = {
  outcome: "ready";
  slot: S;
  path: WorktreePath<S>;
  branch: string | null;
  head: string;
  found: WorktreeFound;
  stale?: string;
};

Fields

  • outcome: "ready"

  • slot: S

  • path: WorktreePath<S>

  • branch: string | null

    The branch of the cut, from git and the cut's record, never from the folder or HEAD. null when the Worktree is detached.

  • head: string

    The tip of branch (of the commit, when detached). Never HEAD.

  • found: WorktreeFound

  • stale (optional): string

    ADR-0053's words when the remote did not answer. The cut used what the clone holds.

The docs of Kit version 0.8.0. Each page is also at its .md URL.