MCPcopy Create free account
hub / github.com/anus-dev/ANUS / cleanupCheckpoints

Function cleanupCheckpoints

packages/cli/src/utils/cleanup.ts:29–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}
28
29export async function cleanupCheckpoints() {
30 const tempDir = getProjectTempDir(process.cwd());
31 const checkpointsDir = join(tempDir, 'checkpoints');
32 try {
33 await fs.rm(checkpointsDir, { recursive: true, force: true });
34 } catch {
35 // Ignore errors if the directory doesn't exist or fails to delete.
36 }
37}

Callers 1

mainFunction · 0.85

Calls 1

getProjectTempDirFunction · 0.85

Tested by

no test coverage detected