feat: Phase 6 - Powerful Search with regex and waypoint support

- Add enhanced 'search' tool with regex support, case sensitivity control, and advanced filtering
- Add 'search_waypoints' tool for finding Waypoint plugin markers
- Implement SearchUtils with regex/literal search, snippet extraction, and match highlighting
- Add WaypointResult and WaypointSearchResult types
- Update SearchResult type to include isRegex field
- Remove deprecated search_notes tool (breaking change)
- Support glob filtering (includes/excludes) and folder scoping
- Configurable snippet length and result limiting
- Extract wikilinks from waypoint content

Breaking Changes:
- search_notes tool removed, use 'search' tool instead
This commit is contained in:
2025-10-17 00:02:58 -04:00
parent 7e5a6a8c3c
commit e6cdd6d90a
6 changed files with 634 additions and 95 deletions

View File

@@ -102,12 +102,28 @@ export interface SearchMatch {
export interface SearchResult {
query: string;
isRegex: boolean;
matches: SearchMatch[];
totalMatches: number;
filesSearched: number;
filesWithMatches: number;
}
// Phase 6: Waypoint Search Types
export interface WaypointResult {
path: string;
line: number;
waypointRange: { start: number; end: number };
content: string;
links: string[];
}
export interface WaypointSearchResult {
waypoints: WaypointResult[];
totalWaypoints: number;
filesSearched: number;
}
// Phase 3: Discovery Endpoint Types
export interface StatResult {
path: string;