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:

rUvee9b349457c5
diff --git a/v3/@claude-flow/swarm/src/coordination/swarm-hub.ts b/v3/@claude-flow/swarm/src/coordination/swarm-hub.ts
index e5e5915fa6..b9e7a9422b 100644
--- a/v3/@claude-flow/swarm/src/coordination/swarm-hub.ts
+++ b/v3/@claude-flow/swarm/src/coordination/swarm-hub.ts
@@ -1,6 +1,21 @@
/**
- * V3 Swarm Hub
- * Central coordination hub for the 15-agent hierarchical mesh swarm
+ * V3 Swarm Hub - COMPATIBILITY LAYER (ADR-003)
+ *
+ * DEPRECATION NOTICE:
+ * This is a THIN FACADE over UnifiedSwarmCoordinator for backward compatibility.
+ * All operations are delegated to the canonical UnifiedSwarmCoordinator.
+ *
+ * For new code, use UnifiedSwarmCoordinator directly:
+ * ```typescript
+ * import { createUnifiedSwarmCoordinator } from '@claude-flow/swarm';
+ * const coordinator = createUnifiedSwarmCoordinator(config);
+ * await coordinator.initialize();
+ * ```
+ *
+ * ADR-003 Decision:
+ * - ONE canonical coordination engine: UnifiedSwarmCoordinator
+ * - SwarmHub maintained ONLY for compatibility with existing code
+ * - All core logic delegated to UnifiedSwarmCoordinator
*
* Based on ADR-001 (agentic-flow integration), ADR-003 (Single Coordination Engine),
* and the 15-Agent Swarm Architecture
@@ -37,6 +52,7 @@ import {
} from '../shared/events';
import { IAgentRegistry, AgentRegistry, createAgentRegistry } from './agent-registry';
import { ITaskOrchestrator, TaskOrchestrator, TaskSpec, createTaskOrchestrator } from './task-orchestrator';
+import { UnifiedSwarmCoordinator, createUnifiedSwarmCoordinator } from '../unified-coordinator';
// =============================================================================
// Swarm Hub Interface