pub fn cache_export(dir: &Path) -> Result<usize>
Export cache entries needed for current project (package.json + lockfile) into dir. Writes manifest.json for import. Returns number of files copied.