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:

rUv4e776f3fd6e7
diff --git a/v3/mcp/tools/agent-tools.ts b/v3/mcp/tools/agent-tools.ts
index 0e1cf8b453..4e610dcd06 100644
--- a/v3/mcp/tools/agent-tools.ts
+++ b/v3/mcp/tools/agent-tools.ts
@@ -11,8 +11,16 @@
*/
import { z } from 'zod';
+import { randomBytes } from 'crypto';
import { MCPTool, ToolContext } from '../types.js';
+// Secure ID generation helper
+function generateSecureAgentId(): string {
+ const timestamp = Date.now().toString(36);
+ const random = randomBytes(12).toString('hex');
+ return `agent-${timestamp}-${random}`;
+}
+
// ============================================================================
// Input Schemas
// ============================================================================