@karmaniverous/jeeves-watcher
    Preparing search index...

    Class FileSystemWatcher

    Filesystem watcher that maps chokidar events to the processing queue.

    Index

    Constructors

    • Create a new FileSystemWatcher.

      Parameters

      • config: {
            debounceMs?: number;
            ignored?: string[];
            moveDetection?: { bufferMs: number; enabled: boolean };
            paths: string[];
            pollIntervalMs?: number;
            respectGitignore?: boolean;
            stabilityThresholdMs?: number;
            usePolling?: boolean;
        }

        Watch configuration.

        • OptionaldebounceMs?: number

          Debounce 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.

          • bufferMs: number

            Buffer time in ms for holding unlink events before treating as deletes. Default: 2000.

          • enabled: boolean

            Enable move correlation. Default: true.

        • paths: string[]

          Glob patterns to watch.

        • OptionalpollIntervalMs?: number

          Polling interval in milliseconds.

        • OptionalrespectGitignore?: boolean

          Whether to respect .gitignore files when processing.

        • OptionalstabilityThresholdMs?: number

          Time in milliseconds a file must be stable before processing.

        • OptionalusePolling?: boolean

          Whether to use polling instead of native watchers.

      • queue: EventQueue

        The event queue.

      • processor: DocumentProcessorInterface

        The document processor.

      • logger: Logger

        The logger instance.

      • options: FileSystemWatcherOptions = {}

        Optional health/fatal error options.

      Returns FileSystemWatcher

    Accessors

    Methods

    • 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.

      Returns string[]