Skip to main content

Module manager

Module manager 

Source
Expand description

Multi-repo/worktree manager for the Synwire daemon.

RepoManager is the central coordinator that tracks active worktrees, registers new projects by computing their WorktreeId, and evicts idle entries via an LRU policy when the active set exceeds the configured limit.

§Thread safety

All public types are Send + Sync. Interior state is protected by tokio::sync::RwLock so that concurrent tasks can safely register, access, and evict worktrees without blocking one another for reads.

Structs§

RepoManager
Manages the set of active repositories and worktrees for the daemon.
WorktreeHandle
Per-worktree state tracked by the RepoManager.

Enums§

ManagerError
Errors produced by the RepoManager.
WorktreeStatus
Runtime status of a managed worktree.