fn fold_project(slug: &str) -> (String, bool)Expand description
Fold a ~/.claude/projects/<slug> directory name to the display
project it belongs to, plus whether that label is final (see
FileUsageSummary::project_resolved).
The slug is the project’s absolute path with / and . both
replaced by -, so it is lossy: web-api and web/api encode
identically. Resolution therefore consults the filesystem (the
user’s ~/Projects) rather than splitting on -. Worktrees and
sub-paths fold to their repo, /tmp paths to scratch.