diff --git a/.claude/checkpoints/1754404015.json b/.claude/checkpoints/1754404015.json new file mode 100644 index 0000000000..44d6226623 --- /dev/null +++ b/.claude/checkpoints/1754404015.json @@ -0,0 +1 @@ +{"branch": "checkpoint/pre-edit-20250805-142655", "file": "/workspaces/claude-code-flow/src/cli/command-registry.js", "timestamp": "2025-08-05T14:26:55Z", "type": "pre-edit", "original_branch": "alpha-86"} diff --git a/.claude/checkpoints/1754404017.json b/.claude/checkpoints/1754404017.json new file mode 100644 index 0000000000..9884fd50c4 --- /dev/null +++ b/.claude/checkpoints/1754404017.json @@ -0,0 +1 @@ +{"tag": "checkpoint-20250805-142657", "file": "/workspaces/claude-code-flow/src/cli/command-registry.js", "timestamp": "2025-08-05T14:26:57Z", "type": "post-edit", "branch": "alpha-86", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 2896 +++++++++++++----------------- .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/1754404006.json | 1 + .claude/checkpoints/1754404008.json | 1 + memory/memory-store.json | 6 + src/cli/command-registry.js | 1 + 7 files changed, 1251 insertions(+), 1662 deletions(-) "} diff --git a/src/cli/command-registry.js b/src/cli/command-registry.js index 42290ed117..3915c9e27c 100644 --- a/src/cli/command-registry.js +++ b/src/cli/command-registry.js @@ -111,6 +111,32 @@ First-time users should run: npx claude-flow@latest init --sparc`, ], }); + commandRegistry.set('memory-consolidate', { + handler: memoryConsolidationCommand, + description: 'Consolidate fragmented memory stores into unified database', + usage: 'memory-consolidate [options]', + examples: [ + 'memory-consolidate scan # Scan for all memory stores', + 'memory-consolidate plan # Create consolidation plan', + 'memory-consolidate execute --force # Execute consolidation', + 'memory-consolidate report # Generate report', + ], + details: ` +Memory Consolidation Features: + • Discovers all memory storage locations (JSON & SQLite) + • Creates automatic backups before consolidation + • Merges all stores into unified SQLite database + • Optimizes with indices for better performance + • Maintains backward compatibility + +Benefits: + • Single source of truth for all memory data + • Improved query performance with indices + • Reduced disk fragmentation + • Easier backup and restore + • Cross-session persistence`, + }); + commandRegistry.set('sparc', { handler: sparcCommand, description: 'SPARC development mode operations',