Skip to content

WorktreeOptions ​

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 WorktreeOptions = {
  expect?: "new" | "existing";
  timeout?: Duration;
};

The options of worktree().

Fields

  • expect (optional): "new" | "existing"

    "new": refuse a branch that exists, local or on the remote. For a name that a planner or a door chose for new work: a collision is a refusal, not someone else's branch. "existing": refuse a branch that does not exist, and make nothing. For a run that must continue a branch. A Chart cannot change it, and a cut lent to a Chart must state it.

  • timeout (optional): Duration

    How long the fetch and the cut can take. Default "10m". A cut at a Handoff carries its files before the cut starts, and this time does not include the carry: the carry has a time of its own (ADR-0080).

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