(files: string[], exists: (f: string) => boolean)
| 87 | |
| 88 | /** Fraction of an episode's touched files that still exist (1 when none recorded — nothing to judge). */ |
| 89 | export function fileFreshness(files: string[], exists: (f: string) => boolean): number { |
| 90 | if (files.length === 0) return 1; |
| 91 | return files.filter(exists).length / files.length; |
| 92 | } |
| 93 | |
| 94 | /** |
| 95 | * Rank episodes against a query by lexical similarity (prompt + summary), then select a |
no outgoing calls
no test coverage detected