feat: Phase 4 - Enhanced List Operations (v3.0.0)

- Replace list_notes with powerful new list tool
- Add recursive directory traversal
- Implement glob pattern filtering (*, **, ?, [abc], {a,b})
- Add cursor-based pagination for large result sets
- Support frontmatter summary extraction using metadata cache
- Add type filtering (files, directories, any)
- Create GlobUtils for pattern matching
- Add new types: FrontmatterSummary, FileMetadataWithFrontmatter, ListResult
- Update version to 3.0.0 (breaking change)
- Add comprehensive documentation and changelog
- Add Phase 10: UI Notifications to roadmap

BREAKING CHANGE: list_notes tool removed, replaced with list tool.
Migration: Replace list_notes({ path }) with list({ path }).
Response structure now wrapped in ListResult object.
This commit is contained in:
2025-10-16 23:10:31 -04:00
parent 83ac6bedfa
commit aff7c6bd0a
10 changed files with 1242 additions and 378 deletions

View File

@@ -121,3 +121,22 @@ export interface ExistsResult {
exists: boolean;
kind?: ItemKind;
}
// Phase 4: Enhanced List Operations Types
export interface FrontmatterSummary {
title?: string;
tags?: string[];
aliases?: string[];
[key: string]: any;
}
export interface FileMetadataWithFrontmatter extends FileMetadata {
frontmatterSummary?: FrontmatterSummary;
}
export interface ListResult {
items: Array<FileMetadataWithFrontmatter | DirectoryMetadata>;
totalCount: number;
hasMore: boolean;
nextCursor?: string;
}