projectKey
Supporting contract not directly exported; use TypeScript inference or the public type that references it.
Purpose and behavior
Section titled “Purpose and behavior”Return Claude’s project folder name for a repository path, used under ~/.claude/projects: every character other than an ASCII letter or digit becomes -.
Parameters and properties
Section titled “Parameters and properties”pathRequiredstringRepository path to encode for Claude’s native project directory layout.