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

fix: v2.7.19 - Check initializeReasoningBank return value before using ReasoningBank mode

rUv9d727e301df2
diff --git a/.claude-flow/metrics/performance.json b/.claude-flow/metrics/performance.json
index b40ee611a0..ed5b28eaf1 100644
--- a/.claude-flow/metrics/performance.json
+++ b/.claude-flow/metrics/performance.json
@@ -1,7 +1,7 @@
{
- "startTime": 1761424163202,
- "sessionId": "session-1761424163202",
- "lastActivity": 1761424163202,
+ "startTime": 1761424405008,
+ "sessionId": "session-1761424405008",
+ "lastActivity": 1761424405008,
"sessionDuration": 0,
"totalTasks": 1,
"successfulTasks": 1,
diff --git a/.claude-flow/metrics/system-metrics.json b/.claude-flow/metrics/system-metrics.json
index 4c468842ed..a280f87788 100644
--- a/.claude-flow/metrics/system-metrics.json
+++ b/.claude-flow/metrics/system-metrics.json
@@ -5542,5 +5542,101 @@
"cpuLoad": 0.05125,
"platform": "linux",
"uptime": 16049.72
+ },
+ {
+ "timestamp": 1761424175730,
+ "memoryTotal": 67427540992,
+ "memoryUsed": 5570502656,
+ "memoryFree": 61857038336,
+ "memoryUsagePercent": 8.261464935612759,
+ "memoryEfficiency": 91.73853506438724,
+ "cpuCount": 16,
+ "cpuLoad": 0.06625,
+ "platform": "linux",
+ "uptime": 16079.75
+ },
+ {
+ "timestamp": 1761424205759,
+ "memoryTotal": 67427540992,
+ "memoryUsed": 5416148992,
+ "memoryFree": 62011392000,
+ "memoryUsagePercent": 8.032547105110364,
+ "memoryEfficiency": 91.96745289488963,
+ "cpuCount": 16,
+ "cpuLoad": 0.068125,
+ "platform": "linux",
+ "uptime": 16109.78
+ },
+ {
+ "timestamp": 1761424235780,
+ "memoryTotal": 67427540992,
+ "memoryUsed": 5665693696,
+ "memoryFree": 61761847296,
+ "memoryUsagePercent": 8.402640245581864,
+ "memoryEfficiency": 91.59735975441814,
+ "cpuCount": 16,
+ "cpuLoad": 0.06375,
+ "platform": "linux",
+ "uptime": 16139.8
+ },
+ {
+ "timestamp": 1761424265810,
+ "memoryTotal": 67427540992,
+ "memoryUsed": 5548744704,
+ "memoryFree": 61878796288,
+ "memoryUsagePercent": 8.229196293334109,
+ "memoryEfficiency": 91.77080370666589,
+ "cpuCount": 16,
+ "cpuLoad": 0.07,
+ "platform": "linux",
+ "uptime": 16169.83
+ },
+ {
+ "timestamp": 1761424295836,
+ "memoryTotal": 67427540992,
+ "memoryUsed": 5511880704,
+ "memoryFree": 61915660288,
+ "memoryUsagePercent": 8.17452427140115,
+ "memoryEfficiency": 91.82547572859885,
+ "cpuCount": 16,
+ "cpuLoad": 0.051875,
+ "platform": "linux",
+ "uptime": 16199.86
+ },
+ {
+ "timestamp": 1761424325867,
+ "memoryTotal": 67427540992,
+ "memoryUsed": 5561872384,
+ "memoryFree": 61865668608,
+ "memoryUsagePercent": 8.248665607811343,
+ "memoryEfficiency": 91.75133439218865,
+ "cpuCount": 16,
+ "cpuLoad": 0.056875,
+ "platform": "linux",
+ "uptime": 16229.89
+ },
+ {
+ "timestamp": 1761424355892,
+ "memoryTotal": 67427540992,
+ "memoryUsed": 5371314176,
+ "memoryFree": 62056226816,
+ "memoryUsagePercent": 7.966053777101681,
+ "memoryEfficiency": 92.03394622289832,
+ "cpuCount": 16,
+ "cpuLoad": 0.084375,
+ "platform": "linux",
+ "uptime": 16259.91
+ },
+ {
+ "timestamp": 1761424385922,
+ "memoryTotal": 67427540992,
+ "memoryUsed": 5532340224,
+ "memoryFree": 61895200768,
+ "memoryUsagePercent": 8.204867243573942,
+ "memoryEfficiency": 91.79513275642606,
+ "cpuCount": 16,
+ "cpuLoad": 0.0775,
+ "platform": "linux",
+ "uptime": 16289.94
}
]
\ No newline at end of file
diff --git a/.claude-flow/metrics/task-metrics.json b/.claude-flow/metrics/task-metrics.json
index 0aa1b17cfd..55d7a59574 100644
--- a/.claude-flow/metrics/task-metrics.json
+++ b/.claude-flow/metrics/task-metrics.json
@@ -1,10 +1,10 @@
[
{
- "id": "cmd-hooks-1761424163301",
+ "id": "cmd-hooks-1761424405110",
"type": "hooks",
"success": true,
- "duration": 7.17650900000001,
- "timestamp": 1761424163309,
+ "duration": 7.112641000000053,
+ "timestamp": 1761424405117,
"metadata": {}
}
]
\ No newline at end of file
diff --git a/bin/claude-flow b/bin/claude-flow
index 927f1d084c..eddd23af77 100755
--- a/bin/claude-flow
+++ b/bin/claude-flow
@@ -1,7 +1,7 @@
#!/bin/sh
# Claude-Flow Smart Dispatcher - Detects and uses the best available runtime
-VERSION="2.7.18"
+VERSION="2.7.19"
# Determine the correct path based on how the script is invoked
if [ -L "$0" ]; then
diff --git a/package.json b/package.json
index d26a482015..507c4f9e17 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "claude-flow",
- "version": "2.7.18",
+ "version": "2.7.19",
"description": "Enterprise-grade AI agent orchestration with WASM-powered ReasoningBank memory and AgentDB vector database (always uses latest agentic-flow)",
"mcpName": "io.github.ruvnet/claude-flow",
"main": "cli.mjs",
diff --git a/src/cli/simple-commands/memory.js b/src/cli/simple-commands/memory.js
index 43295b173f..1ab3ea102c 100644
--- a/src/cli/simple-commands/memory.js
+++ b/src/cli/simple-commands/memory.js
@@ -418,7 +418,21 @@ async function detectMemoryMode(flags, subArgs) {
// Not initialized yet - try to auto-initialize on first use
try {
const { initializeReasoningBank } = await import('../../reasoningbank/reasoningbank-adapter.js');
- await initializeReasoningBank();
+ const initialized = await initializeReasoningBank();
+
+ // Check if initialization succeeded (returns true) or failed (returns false)
+ if (!initialized) {
+ // Initialization failed but didn't throw - fall back to JSON
+ const isNpx = process.env.npm_config_user_agent?.includes('npx') ||
+ process.cwd().includes('_npx');
+ if (isNpx) {
+ console.log('\n✅ Automatically using JSON fallback for this command\n');
+ } else {
+ printWarning(`⚠️ SQLite unavailable, using JSON fallback`);
+ }
+ return 'basic';
+ }
+
printInfo('🗄️ Initialized SQLite backend (.swarm/memory.db)');
return 'reasoningbank';
} catch (error) {