(projectRoot: string)
| 38 | export interface EpisodeMatch extends Episode { score: number } |
| 39 | |
| 40 | function episodesPath(projectRoot: string): string { |
| 41 | const hash = createHash('sha1').update(projectRoot).digest('hex').slice(0, 16); |
| 42 | return path.join(os.homedir(), '.qodex', 'episodes', `${hash}.jsonl`); |
| 43 | } |
| 44 | |
| 45 | /** Append one episode after an objectively-successful task. Best-effort. */ |
| 46 | export async function recordEpisode(projectRoot: string, rec: Omit<Episode, 'ts'>): Promise<void> { |
no test coverage detected