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 edit:

rUvc292879e1b80
diff --git a/v3/mcp/tools/memory-tools.ts b/v3/mcp/tools/memory-tools.ts
index ad106bd55b..8f6c3c8f4e 100644
--- a/v3/mcp/tools/memory-tools.ts
+++ b/v3/mcp/tools/memory-tools.ts
@@ -122,7 +122,9 @@ async function handleStoreMemory(
input: z.infer<typeof storeMemorySchema>,
context?: ToolContext
): Promise<StoreMemoryResult> {
- const id = `mem-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
+ // Secure memory ID generation
+ const { randomBytes } = await import('crypto');
+ const id = `mem-${Date.now().toString(36)}-${randomBytes(12).toString('hex')}`;
const storedAt = new Date().toISOString();
// Try to use memory service if available