()
| 381 | // trace dir so both collection ledgers share one home. The env override keeps |
| 382 | // tests hermetic and lets an operator relocate the ledger. |
| 383 | function getMarkedSessionsPath() { |
| 384 | if (process.env.EVOLVER_MARKED_SESSIONS_FILE) return process.env.EVOLVER_MARKED_SESSIONS_FILE; |
| 385 | const dir = process.env.EVOLVER_SETTINGS_DIR |
| 386 | || process.env.EVOLVER_SESSION_STATE_DIR |
| 387 | || path.join(os.homedir(), '.evolver'); |
| 388 | return path.join(dir, 'marked-sessions.jsonl'); |
| 389 | } |
| 390 | |
| 391 | // Pull the tool's session_id out of the hook's stdin payload. Claude Code, |
| 392 | // Codex, and Cursor all pass `session_id` (Claude Code / Cursor) on the |
no outgoing calls
no test coverage detected