Function prune_global_cache
pub fn prune_global_cache(root: &Path, max_bytes: u64)Expand description
Walk root/codelore/ and delete .duckdb files (oldest first) until the
total directory size falls below max_bytes. Also sweeps stale
.tmp.<pid> artifacts across the global cache tree.
Errors from individual file operations are logged but not fatal.