Documentation
¶
Overview ¶
Package launchlog records the worktrees the app started agent sessions in, and the pull request or issue each is for.
The launcher records a launch when it asks the agent for a worktree; the worktrees service reads the records to link each worktree to its item exactly, and its automatic cleanup uses them to find the clones worth checking. A record is only a pointer: whether a worktree may be removed is always decided from git and GitHub at the time.
Index ¶
Constants ¶
const ( KindPR = "pr" KindIssue = "issue" )
Item kinds, matching the inbox's.
Variables ¶
var ErrInvalidLaunch = errors.New("invalid worktree launch")
ErrInvalidLaunch is returned for a launch missing a field, or with an unknown kind or a number that is not positive.
Functions ¶
This section is empty.
Types ¶
type Launch ¶
type Launch struct {
// ClonePath is the clone the session was launched in.
ClonePath string
// Worktree is the worktree's directory name under the clone's .claude/worktrees.
Worktree string
// Owner and Name are the item's repository.
Owner string
Name string
// Kind is KindPR or KindIssue.
Kind string
// Number is the item's number.
Number int
// LaunchedAt is when the session was launched.
LaunchedAt time.Time
}
Launch is one worktree the app started a session in.