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

Function runExitCleanup

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

Source from the content-addressed store, hash-verified

16}
17
18export async function runExitCleanup() {
19 for (const fn of cleanupFunctions) {
20 try {
21 await fn();
22 } catch (_) {
23 // Ignore errors during cleanup.
24 }
25 }
26 cleanupFunctions.length = 0; // Clear the array
27}
28
29export async function cleanupCheckpoints() {
30 const tempDir = getProjectTempDir(process.cwd());

Callers 2

cleanup.test.tsFile · 0.90
useSlashCommandProcessorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected