Skip to main content

kardo_core/scanner/
watcher.rs

1//! File system watcher for detecting project changes.
2//!
3//! TODO: Implement FSEvents-based file watching via `notify` crate.
4//! - Debounce 100ms
5//! - Priority queue: user-triggered > file-change > scheduled > background
6//! - Feed changed files back into the analysis pipeline
7
8/// Stub file watcher. Will use `notify` crate for FSEvents on macOS.
9pub struct FileWatcher {
10    // TODO: notify::RecommendedWatcher
11}
12
13impl FileWatcher {
14    /// Create a new file watcher for the given project root.
15    pub fn new(_project_root: &std::path::Path) -> Self {
16        // TODO: Initialize notify watcher with debounce
17        Self {}
18    }
19}