encode_project_slug

Function encode_project_slug 

Source
pub fn encode_project_slug(path: &str) -> String
Expand 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).