mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 06:06:02 +09:00
🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/cli/simple-commands/memory-consolidation.js
This commit is contained in:
1 parent
64d13adbc8
commit
ccf443cb84
3 files changed
+17
-2
No files matched your search
@@ -0,0 +1 @@
|
||||
{"branch": "checkpoint/pre-edit-20250805-142709", "file": "/workspaces/claude-code-flow/src/cli/command-registry.js", "timestamp": "2025-08-05T14:27:09Z", "type": "pre-edit", "original_branch": "alpha-86"}
|
||||
@@ -0,0 +1 @@
|
||||
{"tag": "checkpoint-20250805-142711", "file": "/workspaces/claude-code-flow/src/cli/command-registry.js", "timestamp": "2025-08-05T14:27:11Z", "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/1754404015.json | 1 + .claude/checkpoints/1754404017.json | 1 + memory/memory-store.json | 6 + src/cli/command-registry.js | 26 + 7 files changed, 1276 insertions(+), 1662 deletions(-) "}
|
||||
@@ -3,8 +3,21 @@ import { printSuccess, printError, printWarning, printInfo } from '../utils.js';
|
||||
import { promises as fs } from 'fs';
|
||||
import path from 'path';
|
||||
import { existsSync } from '../node-compat.js';
|
||||
import sqlite3 from 'sqlite3';
|
||||
import { open } from 'sqlite';
|
||||
// Dynamic imports for optional dependencies
|
||||
let sqlite3;
|
||||
let sqliteOpen;
|
||||
|
||||
async function loadSqliteModules() {
|
||||
try {
|
||||
const sqlite3Module = await import('sqlite3');
|
||||
sqlite3 = sqlite3Module.default;
|
||||
const sqliteModule = await import('sqlite');
|
||||
sqliteOpen = sqliteModule.open;
|
||||
return true;
|
||||
} catch (err) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Memory database consolidation strategy
|
||||
|
||||
Reference in new issue
Block a user