()
| 27 | } |
| 28 | |
| 29 | export 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 | } |
no test coverage detected