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

@@ -44,10 +44,10 @@ Analyzer needs more evidence. Create supplemental reproduction task.
1. Parse Analyzer's evidence request (dimensions, specific actions)
2. Create REPRODUCE-002 task:
- TaskCreate with description from Analyzer's request
- blockedBy: [] (can start immediately)
- TaskUpdate to set owner (no blockedBycan start immediately)
3. Create ANALYZE-002 task:
- blockedBy: [REPRODUCE-002]
- Update FIX-001 blockedBy to include ANALYZE-002
- TaskCreate + TaskUpdate with addBlockedBy: [REPRODUCE-002]
- TaskUpdate FIX-001 with addBlockedBy to include ANALYZE-002
4. Update team-session.json with new tasks
5. -> handleSpawnNext

View File

@@ -98,7 +98,7 @@ Delegate to @commands/dispatch.md:
1. Read dependency graph from task-analysis.json
2. Read specs/pipelines.md for debug-pipeline task registry
3. Topological sort tasks
4. Create tasks via TaskCreate with blockedBy
4. Create tasks via TaskCreate, then set blockedBy via TaskUpdate
5. Update team-session.json
## Phase 4: Spawn-and-Stop