| 20 | const MAX_FILE_SIZE = 1 * 1024 * 1024; // 1MB — anything bigger is unlikely to be hand-written code |
| 21 | |
| 22 | export interface IndexerOptions { |
| 23 | /** Force re-index every file, ignoring mtime/hash cache. */ |
| 24 | force?: boolean; |
| 25 | /** AbortSignal for cancellation. */ |
| 26 | signal?: AbortSignal; |
| 27 | /** Called periodically with progress info. */ |
| 28 | onProgress?: (info: { processed: number; total: number; currentFile?: string }) => void; |
| 29 | } |
| 30 | |
| 31 | export interface IndexResult { |
| 32 | filesScanned: number; |
nothing calls this directly
no outgoing calls
no test coverage detected