pub fn cache_dir() -> Result<PathBuf, AppError>Expand description
Returns the cache root for lock files, model files and other artifacts.
Precedence (G-T-XDG-04): CLI --cache-dir → XDG cache.dir → OS cache
directory.
GAP-SG-94: this is the SINGLE resolver for the cache root. crate::lock
and crate::llm_slots delegate here. Before v1.2.0 lock read a separate
key paths.cache while this module read cache.dir, so setting one moved
the lock files and setting the other moved the model files.