Config at construction (roots, remotes, retention).
Logger.
Live config, for settings read at each staging
(vcs.maxFileBytes, D67). Default: the construction config.
Find the VcsManager that owns the given normalized file path. Uses longest-prefix-match against resolved watch roots.
Normalized absolute path (forward slashes).
The matching VcsManager, or undefined.
Get all managers as [root, manager] pairs.
VCS state for GET /status health.vcs (D86).
Root count, total backlog, tripped roots and the oldest trip.
ISO 8601 time the longest-tripped breaker tripped, or null.
Files queued or in flight, not yet committed, across roots.
VCS-enabled roots.
Roots whose commit circuit breaker is tripped.
Get the sorted root paths (longest-first).
Route a file event to the correct root's VcsManager.
Absolute path of the changed file.
The event type: add, change, or unlink.
Signal that the initial filesystem scan is complete.
Flushes each manager's throttle buffer before ending baseline mode, ensuring
any files still pending in the VCS throttle are committed with a
"baseline:" prefix rather than "watcher:". AI generation is not enabled
until all managers have completed their flush.
Start all VcsManager instances (each runs its startup maintenance).
Flush all managers and clean up.
Orchestrates VCS across all VCS-enabled watch roots.