feat: Phase 7 - Waypoint Support

- Add get_folder_waypoint tool to extract waypoint blocks from folder notes
- Add is_folder_note tool to detect folder notes by basename or waypoint markers
- Implement waypoint edit protection in update_note to prevent corruption
- Create waypoint-utils.ts with helper functions for waypoint operations
- Add FolderWaypointResult and FolderNoteResult types
- Update ROADMAP.md and CHANGELOG.md with Phase 7 completion
- All manual tests passing
This commit is contained in:
2025-10-17 00:16:14 -04:00
parent e6cdd6d90a
commit 4e399e00f8
7 changed files with 489 additions and 26 deletions

View File

@@ -124,6 +124,22 @@ export interface WaypointSearchResult {
filesSearched: number;
}
// Phase 7: Waypoint Support Types
export interface FolderWaypointResult {
path: string;
hasWaypoint: boolean;
waypointRange?: { start: number; end: number };
links?: string[];
rawContent?: string;
}
export interface FolderNoteResult {
path: string;
isFolderNote: boolean;
reason: 'basename_match' | 'waypoint_marker' | 'both' | 'none';
folderPath?: string;
}
// Phase 3: Discovery Endpoint Types
export interface StatResult {
path: string;