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:

rUvaa61d6f321ff
diff --git a/v3/@claude-flow/shared/src/core/orchestrator/session-manager.ts b/v3/@claude-flow/shared/src/core/orchestrator/session-manager.ts
index 83b1eb2095..c1f949fdb3 100644
--- a/v3/@claude-flow/shared/src/core/orchestrator/session-manager.ts
+++ b/v3/@claude-flow/shared/src/core/orchestrator/session-manager.ts
@@ -10,6 +10,14 @@ import { SystemEventTypes } from '../interfaces/event.interface.js';
import type { AgentProfile } from '../../types/agent.types.js';
import { mkdir, writeFile, readFile } from 'fs/promises';
import { join, dirname } from 'path';
+import { randomBytes } from 'crypto';
+
+// Secure session ID generation
+function generateSecureSessionId(): string {
+ const timestamp = Date.now().toString(36);
+ const random = randomBytes(12).toString('hex');
+ return `session_${timestamp}_${random}`;
+}
/**
* Session persistence structure