Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/cli/simple-commands/memory.js

rUvb270a008243f
diff --git a/.claude/checkpoints/1754403662.json b/.claude/checkpoints/1754403662.json
new file mode 100644
index 0000000000..1fc14d1589
--- /dev/null
+++ b/.claude/checkpoints/1754403662.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250805-142102", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/memory.js", "timestamp": "2025-08-05T14:21:02Z", "type": "pre-edit", "original_branch": "alpha-86"}
diff --git a/.claude/checkpoints/1754403664.json b/.claude/checkpoints/1754403664.json
new file mode 100644
index 0000000000..b7c3b8323f
--- /dev/null
+++ b/.claude/checkpoints/1754403664.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250805-142104", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/memory.js", "timestamp": "2025-08-05T14:21:04Z", "type": "post-edit", "branch": "alpha-86", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 2870 ++++++++++++------------------ .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/1754403629.json | 1 + .claude/checkpoints/1754403631.json | 1 + src/cli/simple-commands/memory.js | 10 + 6 files changed, 1169 insertions(+), 1721 deletions(-) "}
diff --git a/src/cli/simple-commands/memory.js b/src/cli/simple-commands/memory.js
index 34a5ac1305..99e70be07c 100644
--- a/src/cli/simple-commands/memory.js
+++ b/src/cli/simple-commands/memory.js
@@ -44,7 +44,7 @@ export async function memoryCommand(subArgs, flags) {
break;
case 'import':
- await importMemory(subArgs, saveMemory);
+ await importMemory(subArgs, saveMemory, loadMemory);
break;
case 'clear':
@@ -110,7 +110,7 @@ async function queryMemory(subArgs, loadMemory, namespace) {
const results = [];
for (const [ns, entries] of Object.entries(data)) {
- if (searchNamespace && ns !== searchNamespace) continue;
+ if (namespace && ns !== namespace) continue;
for (const entry of entries) {
if (entry.key.includes(search) || entry.value.includes(search)) {
@@ -201,7 +201,7 @@ async function exportMemory(subArgs, loadMemory, namespace) {
}
}
-async function importMemory(subArgs, saveMemory) {
+async function importMemory(subArgs, saveMemory, loadMemory) {
const filename = subArgs[1];
if (!filename) {