Add smart retrieval with git context (Milestone 10)

- Git context extraction: branch, commits, modified files
- Smart search with context-based re-ranking
- Time boosting for recently accessed nodes
- File relevance boosting for modified files
- Branch keyword matching
- CLI: smart-search, ss, what, now commands
- MCP tools: memory_smart_search, memory_what
This commit is contained in:
2026-02-03 11:28:39 +01:00
parent aea3e93ff7
commit f891f37bde
5 changed files with 704 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ import { exportCommand, vizCommand } from './commands/export';
import { importCommand } from './commands/import';
import { backupCommand, restoreDbCommand, listBackupsCommand } from './commands/backup-cmd';
import { graphsCommand, useCommand, initCommand } from './commands/graphs';
import { smartSearchCommand, ssCommand, whatCommand, contextAwareCommand } from './commands/smart';
import { closeDb } from '../core/db';
import { migrateOldDatabase } from '../core/db';
@@ -67,6 +68,10 @@ program.addCommand(listBackupsCommand);
program.addCommand(graphsCommand);
program.addCommand(useCommand);
program.addCommand(initCommand);
program.addCommand(smartSearchCommand);
program.addCommand(ssCommand);
program.addCommand(whatCommand);
program.addCommand(contextAwareCommand);
// Check for old database migration
migrateOldDatabase();