Skip to content

SlotHandles ​

Type, in @jr2/orchestrator/src/workspace.ts. The signature of an export, or a type that it names, names this type. The Authoring surface page lists each export. This type is not an export of @jr2/orchestrator, so a workflow module does not import it by name.

ts
type SlotHandles<TSlots extends string> = {
  repos: Record<TSlots, string>;
  branch: string;
  review?: Partial<Record<TSlots, string>>;
};

The handles of a Workspace that declares Repo Slots. @internal

Fields

  • repos: Record<TSlots, string>

    The absolute path of each Repo Slot's Worktree, /work/<slot>/<branch>, in the order that repos declares the slots. Give one to an Agent's Turn as its cwd.

  • branch: string

    The branch that the Workspace works on: the branch of the spec.

  • review (optional): Partial<Record<TSlots, string>>

    The path of each Repo Slot's review Worktree. Present only when the spec has reviewSha. Give one to a reviewer's Turn as its cwd.

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