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: File edits

rUvdf27078bc581
diff --git a/v3/@claude-flow/cli/src/commands/embeddings.ts b/v3/@claude-flow/cli/src/commands/embeddings.ts
index f1855bfbd0..f74f2ec4b8 100644
--- a/v3/@claude-flow/cli/src/commands/embeddings.ts
+++ b/v3/@claude-flow/cli/src/commands/embeddings.ts
@@ -1359,15 +1359,15 @@ const cacheCommand: Command = {
}
} catch { /* file access error */ }
- // Get in-memory cache stats from actual cache if available
+ // Get in-memory HNSW stats if available
let memoryEntries = 0;
let memorySize = '0 B';
try {
- const { getCacheStats } = await import('../memory/memory-initializer.js');
- const cacheStats = getCacheStats();
- if (cacheStats) {
- memoryEntries = cacheStats.entries || 0;
- const memBytes = memoryEntries * 384 * 4; // Float32 = 4 bytes per dimension
+ const { getHNSWStatus } = await import('../memory/memory-initializer.js');
+ const hnswStatus = getHNSWStatus();
+ if (hnswStatus && hnswStatus.initialized) {
+ memoryEntries = hnswStatus.entryCount || 0;
+ const memBytes = memoryEntries * (hnswStatus.dimensions || 384) * 4; // Float32 = 4 bytes per dimension
if (memBytes >= 1024 * 1024) {
memorySize = `${(memBytes / 1024 / 1024).toFixed(1)} MB`;
} else if (memBytes >= 1024) {
@@ -1376,7 +1376,7 @@ const cacheCommand: Command = {
memorySize = `${memBytes} B`;
}
}
- } catch { /* cache not initialized */ }
+ } catch { /* HNSW not initialized */ }
if (action === 'clear') {
try {