CacheDeps Cache-related file system deps. Abstracted to enable test isolation from the actual filesystem.
Named CacheDeps (not FsDeps) because it only covers
the specific deps needed for cache management, not general
filesystem access.
read_text
Reads a text file.
Returns null if file doesn't exist.
(options: {path: string}) => Promise<string | null>write_text_atomic
Writes a text file atomically (temp file + rename for crash safety). Creates parent directories if they don't exist.
(options: {
path: string;
content: string;
}) => Promise<Result<object, {message: string}>>unlink
Removes a file. Succeeds silently if file doesn't exist.
(options: {path: string}) => Promise<Result<object, {message: string}>>