(filepath: string)
| 22 | const EVAL_DIR = getProjectEvalDir(); |
| 23 | |
| 24 | function loadResult(filepath: string): EvalResult { |
| 25 | // Resolve relative to EVAL_DIR if not absolute |
| 26 | const resolved = path.isAbsolute(filepath) ? filepath : path.join(EVAL_DIR, filepath); |
| 27 | if (!fs.existsSync(resolved)) { |
| 28 | console.error(`File not found: ${resolved}`); |
| 29 | process.exit(1); |
| 30 | } |
| 31 | return JSON.parse(fs.readFileSync(resolved, 'utf-8')); |
| 32 | } |
| 33 | |
| 34 | const args = process.argv.slice(2); |
| 35 |