pub fn encode_project_slug(path: &str) -> StringExpand description
Encode an absolute workspace path to a Claude project-dir slug. Claude Code
replaces each of / \ : . with - (lossy — a literal - inside a segment is
indistinguishable from a separator; this matches the CLI’s own scheme and the
decode_project_path direction in history::claude_adapter).