(model: string, note: string)
| 166 | } |
| 167 | |
| 168 | function errResult(model: string, note: string): EvalResult { |
| 169 | return { status: 'error', errorCount: 0, filesChanged: 0, model, at: new Date().toISOString(), note }; |
| 170 | } |
| 171 | function hash(s: string): number { let h = 0; for (let i = 0; i < s.length; i++) h = (h * 31 + s.charCodeAt(i)) | 0; return h; } |
| 172 | async function exists(p: string): Promise<boolean> { try { await fs.access(p); return true; } catch { return false; } } |