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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user