mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-05 01:50:27 +08:00
feat: Implement core memory management with knowledge graph and evolution tracking
- Added core-memory.js and core-memory-graph.js for managing core memory views and visualizations. - Introduced functions for viewing knowledge graphs and evolution history of memories. - Implemented modal dialogs for creating, editing, and viewing memory details. - Developed core-memory.ts for backend operations including list, import, export, and summary generation. - Integrated Zod for parameter validation in core memory operations. - Enhanced UI with dynamic rendering of memory cards and detailed views.
This commit is contained in:
@@ -10,6 +10,7 @@ import { toolCommand } from './commands/tool.js';
|
||||
import { sessionCommand } from './commands/session.js';
|
||||
import { cliCommand } from './commands/cli.js';
|
||||
import { memoryCommand } from './commands/memory.js';
|
||||
import { coreMemoryCommand } from './commands/core-memory.js';
|
||||
import { readFileSync, existsSync } from 'fs';
|
||||
import { fileURLToPath } from 'url';
|
||||
import { dirname, join } from 'path';
|
||||
@@ -193,5 +194,20 @@ export function run(argv: string[]): void {
|
||||
.option('--dry-run', 'Preview without deleting')
|
||||
.action((subcommand, args, options) => memoryCommand(subcommand, args, options));
|
||||
|
||||
// Core Memory command
|
||||
program
|
||||
.command('core-memory [subcommand] [args...]')
|
||||
.description('Manage core memory entries for strategic context')
|
||||
.option('--id <id>', 'Memory ID')
|
||||
.option('--all', 'Archive all memories')
|
||||
.option('--before <date>', 'Archive memories before date (YYYY-MM-DD)')
|
||||
.option('--interactive', 'Interactive selection')
|
||||
.option('--archived', 'List archived memories')
|
||||
.option('--limit <n>', 'Number of results', '50')
|
||||
.option('--json', 'Output as JSON')
|
||||
.option('--force', 'Skip confirmation')
|
||||
.option('--tool <tool>', 'Tool to use for summary: gemini, qwen', 'gemini')
|
||||
.action((subcommand, args, options) => coreMemoryCommand(subcommand, args, options));
|
||||
|
||||
program.parse(argv);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user