Skip to main content

Module worktrees

Module worktrees 

Source
Expand description

omni-dev worktrees — a thin client for the daemon’s cross-window worktree registry.

Lifecycle stays on omni-dev daemon (start/stop/status/restart); this command sends the worktrees service’s ops over the daemon’s Unix control socket: the read views (list, tree, tree --follow), the actions (focus, close, show-closed), and — for typed parity with the companion (#1361) — the window feed ops (register/heartbeat/unregister) that let a scripted/headless reporter or an integration test drive the registry the way the VS Code extension does from each window.

Structs§

CloseCommand
Closes a worktree’s window and, for a linked worktree, deletes it — the daemon’s two-phase close op driven from the CLI.
FocusCommand
Focuses (raises) the VS Code window for a worktree folder.
HeartbeatCommand
Refreshes a window’s liveness and reports the daemon’s reply.
ListCommand
Lists the live cross-window set of open worktrees/repos.
MergeQueueCommand
Enqueues eligible worktrees’ PRs into the GitHub merge queue — the daemon’s two-phase merge-queue op driven from the CLI (#1401).
RebaseCommand
Rebases worktrees onto the repository’s remote default branch, fetching that branch exactly once per repository (#1400).
RegisterCommand
Registers a window’s open worktree folders (a companion feed op).
ReloadCommand
Signals worktrees’ open VS Code windows to reload themselves (#1417).
RepositionCommand
Moves and resizes worktrees’ open VS Code windows to match a reference window’s geometry (#1407).
ShowClosedCommand
Shows or sets the cross-window “show closed worktrees” toggle.
TreeCommand
Shows every repository and all of its worktrees (open or not), grouped by repository — the daemon’s tree op, which derives the repos from the open windows and enumerates each repo’s worktrees.
UnregisterCommand
Removes a window’s registration — a companion feed op made typed. Prints whether an entry was actually removed.
WorktreesCommand
Worktrees: see the repos/worktrees open across every VS Code window, kept live by the daemon.

Enums§

WorktreesSubcommands
Worktrees subcommands.