MCPcopy
hub / github.com/codeaashu/claude-code / readLastConsolidatedAt

Function readLastConsolidatedAt

src/services/autoDream/consolidationLock.ts:29–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 * Per-turn cost: one stat.
28 */
29export async function readLastConsolidatedAt(): Promise<number> {
30 try {
31 const s = await stat(lockPath())
32 return s.mtimeMs
33 } catch {
34 return 0
35 }
36}
37
38/**
39 * Acquire: write PID → mtime = now. Returns the pre-acquire mtime

Callers 2

MemoryFileSelectorFunction · 0.85
initAutoDreamFunction · 0.85

Calls 2

statFunction · 0.85
lockPathFunction · 0.85

Tested by

no test coverage detected