Skip to main content

project_runtime_dir

Function project_runtime_dir 

Source
pub fn project_runtime_dir(cwd: &Path) -> Result<PathBuf>
Expand description

Resolve the per-cwd .spool/ directory used to buffer hook signals (distill queue, last-prompt timestamp, …).

The directory is created on demand. We deliberately scope it under the project repo (<cwd>/.spool/) rather than under $HOME so that (a) signals stay attached to the project the user is currently working on, and (b) git clean / project relocation naturally resets the queue.