MCPcopy Index your code
hub / github.com/codeaashu/claude-code / recordConsolidation

Function recordConsolidation

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

Source from the content-addressed store, hash-verified

128 * no post-skill completion hook. Best-effort.
129 */
130export async function recordConsolidation(): Promise<void> {
131 try {
132 // Memory dir may not exist yet (manual /dream before any auto-trigger).
133 await mkdir(getAutoMemPath(), { recursive: true })
134 await writeFile(lockPath(), String(process.pid))
135 } catch (e: unknown) {
136 logForDebugging(
137 `[autoDream] recordConsolidation write failed: ${(e as Error).message}`,
138 )
139 }
140}
141

Callers

nothing calls this directly

Calls 3

mkdirFunction · 0.85
lockPathFunction · 0.85
logForDebuggingFunction · 0.85

Tested by

no test coverage detected