()
| 128 | * no post-skill completion hook. Best-effort. |
| 129 | */ |
| 130 | export 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 |
nothing calls this directly
no test coverage detected