Commit 82dccfa
committed
feat: implement daemon mode for automatic file re-indexing
Adds a complete daemon mode that watches for file changes and
automatically re-indexes modified files using upsert semantics.
Key components:
- WatchDaemon with start/stop lifecycle and signal handling
- WatchSession connecting FileSystemWatcher with ProjectIndexer
- HealthMonitor with circuit breaker pattern for SurrealDB resilience
- PID file management for daemon lifecycle
- Full index_single_file() pipeline with embeddings and edge handling
- CLI commands: codegraph daemon start/stop/status
Also fixes pre-existing issues in codegraph-parser experimental feature:
- Lifetime issues in watcher.rs with tokio::spawn
- Variable naming in semantic.rs
- Type annotations in diff.rs1 parent 35890e6 commit 82dccfa
File tree
17 files changed
+1939
-215
lines changed- crates
- codegraph-mcp
- src
- bin
- daemon
- codegraph-parser
- src
- schema
17 files changed
+1939
-215
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
| 89 | + | |
86 | 90 | | |
87 | 91 | | |
88 | 92 | | |
| |||
0 commit comments