MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / progressFile

Function progressFile

__tests__/liveness-watchdog.test.ts:150–154  ·  view source on GitHub ↗

A fresh path for a case's watchdog to watch, in its own temp dir.

()

Source from the content-addressed store, hash-verified

148
149 /** A fresh path for a case's watchdog to watch, in its own temp dir. */
150 function progressFile(): string {
151 const dir = fs.mkdtempSync(path.join(require('os').tmpdir(), 'cg-wd-'));
152 progressDirs.push(dir);
153 return path.join(dir, 'db-wal');
154 }
155
156 /** Grow `file` every 150ms for `forMs`; resolves when done. */
157 function growFile(file: string, forMs: number): Promise<void> {

Callers 1

Calls 2

pushMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected