pub async fn discover_with_worktree( start_dir: impl AsRef<Path>, worktree: Option<&str>, ) -> Result<RepositoryContext>
Build a RepositoryContext with an explicit worktree selection.
RepositoryContext