Expand description
Shared path helpers (used by workspace and machine_registry to avoid import cycles).
Functions§
- canonical
- claude_
code_ slug - Claude Code project slug: leading
/becomes-, then/and.→-. - cursor_
slug - Cursor project slug: strips leading
/, then replaces/and.with-. - descendant_
dir_ for_ write - descendant_
file_ for_ write - descendant_
path - kaizen_
dir KAIZEN_HOMEor~/.kaizen(requiresHOME), orNoneif undiscoverable.- project_
data_ child - Existing project-data child path with symlink and traversal rejection.
- project_
data_ dir - Project data path, created on demand for write-capable callers.
- project_
data_ path ~/.kaizen/projects/<slug>/(or$KAIZEN_HOME/projects/<slug>/) without I/O.- project_
dir_ for_ write - Project-data directory prepared for a write.
- project_
file_ for_ write - Project-data file path whose parent is prepared for a write.
- workspace_
slug /Users/lucas/Projects/kaizen→Users-lucas-Projects-kaizen