(stateDir: string, shortId: string)
| 245 | } |
| 246 | |
| 247 | export function removeThread(stateDir: string, shortId: string): void { |
| 248 | const filePath = threadsFilePath(stateDir); |
| 249 | withThreadLock(filePath, () => { |
| 250 | const index = loadThreadIndex(stateDir); |
| 251 | delete index[shortId]; |
| 252 | saveThreadIndex(stateDir, index); |
| 253 | }); |
| 254 | } |
| 255 | |
| 256 | // ─── Run Ledger ──────────────────────────────────────────────────────────── |
| 257 |
no test coverage detected