Add comprehensive tests for ast-grep and tree-sitter relationship extraction

- Introduced test suite for AstGrepPythonProcessor covering pattern definitions, parsing, and relationship extraction.
- Added comparison tests between tree-sitter and ast-grep for consistency in relationship extraction.
- Implemented tests for ast-grep binding module to verify functionality and availability.
- Ensured tests cover various scenarios including inheritance, function calls, and imports.
This commit is contained in:
catlog22
2026-02-15 21:14:14 +08:00
parent 126a357aa2
commit 48a6a1f2aa
56 changed files with 10622 additions and 374 deletions

View File

@@ -263,6 +263,10 @@ export function run(argv: string[]): void {
.option('--output <file>', 'Output file path for export')
.option('--overwrite', 'Overwrite existing memories when importing')
.option('--prefix <prefix>', 'Add prefix to imported memory IDs')
.option('--unified', 'Use unified vector+FTS search (for search subcommand)')
.option('--topK <n>', 'Max results for unified search', '20')
.option('--minScore <n>', 'Min relevance score for unified search', '0')
.option('--category <cat>', 'Filter by category for unified search')
.action((subcommand, args, options) => coreMemoryCommand(subcommand, args, options));
// Hook command - CLI endpoint for Claude Code hooks