Expand description
Path resolution for Pi’s on-disk layout.
Pi stores session logs at:
$HOME/.pi/agent/sessions/--<encoded-cwd>--/<timestamp>_<uuid>.jsonlThe project directory name encodes the cwd: the leading slash is dropped,
each remaining / becomes -, and the whole thing is wrapped in
--...--. This is lossy for paths that contain internal dashes (Pi has
the same limitation), but we accept the ambiguity for now.
Structs§
- Path
Resolver - Resolves the Pi sessions directory and its project subdirectories.
Functions§
- decode_
project - Decode a Pi project directory name back into a cwd.
- encode_
project - Encode a cwd path into a Pi project directory name.