feat: Enhance search functionality with quality tiers and scoped indexing

- Updated `search_code` function to include a `quality` parameter for search quality tiers: "fast", "balanced", "thorough", and "auto".
- Introduced `search_scope` function to limit search results to a specific directory scope.
- Added `index_scope` function for indexing a specific directory without re-indexing the entire project.
- Refactored `SearchPipeline` to support quality-based routing in the `search` method.
- Implemented `Shard` and `ShardManager` classes to manage multiple index shards with LRU eviction and efficient file routing.
- Added debounce functionality in `IncrementalIndexer` to batch file events and reduce redundant processing.
- Enhanced `FileWatcher` to integrate with `IncrementalIndexer` for improved event handling.
This commit is contained in:
catlog22
2026-03-19 17:47:53 +08:00
parent 54071473fc
commit 18aff260a0
46 changed files with 1537 additions and 658 deletions

View File

@@ -150,7 +150,7 @@ mcp__ccw-tools__team_msg({
operation: "log", session_id: sessionId,
from: "coordinator", to: "all",
type: "phase_started",
ref: `${sessionFolder}/roadmap.md`
data: { ref: `${sessionFolder}/roadmap.md` }
})
```

View File

@@ -58,7 +58,7 @@ mcp__ccw-tools__team_msg({
operation: "log", session_id: sessionId,
from: "coordinator", to: "all",
type: "phase_paused",
ref: `${sessionFolder}/state.md`
data: { ref: `${sessionFolder}/state.md` }
})
```

View File

@@ -70,7 +70,7 @@ mcp__ccw-tools__team_msg({
operation: "log", session_id: sessionId,
from: "coordinator", to: "all",
type: "phase_started",
ref: `${sessionFolder}/state.md`
data: { ref: `${sessionFolder}/state.md` }
})
```

View File

@@ -139,7 +139,7 @@ mcp__ccw-tools__team_msg({
from: "coordinator",
to: <target-role>,
type: <message-type>,
ref: <artifact-path>
data: { ref: <artifact-path> }
})
```