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

rUv6ac023054bfb
diff --git a/v3/@claude-flow/cli/src/mcp-tools/hooks-tools.ts b/v3/@claude-flow/cli/src/mcp-tools/hooks-tools.ts
index bb98d445e7..e833b0331c 100644
--- a/v3/@claude-flow/cli/src/mcp-tools/hooks-tools.ts
+++ b/v3/@claude-flow/cli/src/mcp-tools/hooks-tools.ts
@@ -7,6 +7,31 @@ import { mkdirSync, writeFileSync, existsSync, readFileSync, statSync } from 'fs
import { join, resolve } from 'path';
import type { MCPTool } from './types.js';
+// Real vector search functions - lazy loaded to avoid circular imports
+let searchEntriesFn: ((options: {
+ query: string;
+ namespace?: string;
+ limit?: number;
+ threshold?: number;
+}) => Promise<{
+ success: boolean;
+ results: { id: string; key: string; content: string; score: number; namespace: string }[];
+ searchTime: number;
+ error?: string;
+}>) | null = null;
+
+async function getRealSearchFunction() {
+ if (!searchEntriesFn) {
+ try {
+ const { searchEntries } = await import('../memory/memory-initializer.js');
+ searchEntriesFn = searchEntries;
+ } catch {
+ searchEntriesFn = null;
+ }
+ }
+ return searchEntriesFn;
+}
+
// Memory store types and helpers
interface MemoryEntry {
key: string;