/** * Corpus scan worker. * * One message per task. Every failure mode is caught and reported as a result rather than as a * thrown error, so that a malformed file degrades to a row with status 'failed' instead of killing * the worker. The only thing that can still take a worker down is running out of memory or an * infinite loop, and the pool's task timeout covers both. */ import { type MessageRecord } from './analyze'; import { type FileRecord } from './store'; export interface ScanTask { /** Path relative to the corpus root. */ relPath: string; size: number; mtime: number; } export interface ScanResult { file: FileRecord; message: MessageRecord | null; } //# sourceMappingURL=worker.d.ts.map