(projectRoot: string)
| 50 | } |
| 51 | |
| 52 | function trajectoryPath(projectRoot: string): string { |
| 53 | const hash = createHash('sha1').update(projectRoot).digest('hex').slice(0, 16); |
| 54 | return path.join(os.homedir(), '.qodex', 'trajectories', `${hash}.jsonl`); |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * Append one successful trajectory. Best-effort: a write failure is logged and |
no test coverage detected