Create a new FileSystemWatcher.
Watch configuration.
OptionaldebounceMs?: numberDebounce delay in milliseconds for file change events.
Optionalignored?: string[]Glob patterns to ignore.
OptionalmoveDetection?: { bufferMs: number; enabled: boolean }Move detection configuration for correlating unlink+add as file moves.
Buffer time in ms for holding unlink events before treating as deletes. Default: 2000.
Enable move correlation. Default: true.
Glob patterns to watch.
OptionalpollIntervalMs?: numberPolling interval in milliseconds.
OptionalrespectGitignore?: booleanWhether to respect .gitignore files when processing.
OptionalstabilityThresholdMs?: numberTime in milliseconds a file must be stable before processing.
OptionalusePolling?: booleanWhether to use polling instead of native watchers.
The event queue.
The document processor.
The logger instance.
Optional health/fatal error options.
Whether the initial filesystem scan is complete.
Get the system health tracker.
Get the list of all currently watched file paths (absolute).
Uses chokidar's in-memory getWatched() state — no filesystem I/O.
Returns an empty array if the watcher hasn't been started.
Start watching the filesystem and processing events.
Stop the filesystem watcher.
Filesystem watcher that maps chokidar events to the processing queue.