Goal
Standalone cora watch command using notify crate for real-time file system watching.
Spec
cora watch # Watch current project, auto-reindex on change
cora watch --debounce 500ms # Custom debounce window
cora watch --git-only # Only trigger on git-tracked files
cora watch --verbose # Log every event + reindex
Implementation
- Add
notify crate dependency (cross-platform: inotify/FSEvents/kqueue)
- Watch project root recursively
- Debounce: collect events in 500ms window, then batch reindex
- Git-aware: ignore untracked files (
.gitignore)
- Reindex: use existing incremental pipeline
- Signal handling: SIGTERM/SIGINT → clean shutdown
Dependencies
notify crate (~50KB compiled)
- No new heavy deps
Acceptance
cora watch starts and detects file changes
- Modifying a .rs file triggers reindex within 1s
.gitignore-ed files are ignored
- Clean shutdown on Ctrl+C
Estimated Effort
3-5 days
Goal
Standalone
cora watchcommand usingnotifycrate for real-time file system watching.Spec
Implementation
notifycrate dependency (cross-platform: inotify/FSEvents/kqueue).gitignore)Dependencies
notifycrate (~50KB compiled)Acceptance
cora watchstarts and detects file changes.gitignore-ed files are ignoredEstimated Effort
3-5 days