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:

rUvbf6ef34e2bc3
diff --git a/v3/@claude-flow/swarm/src/topology-manager.ts b/v3/@claude-flow/swarm/src/topology-manager.ts
index cf17f2a080..b004ee5ddc 100644
--- a/v3/@claude-flow/swarm/src/topology-manager.ts
+++ b/v3/@claude-flow/swarm/src/topology-manager.ts
@@ -330,7 +330,7 @@ export class TopologyManager extends EventEmitter implements ITopologyManager {
}
private hasQueen(): boolean {
- return this.state.nodes.some(n => n.role === 'queen');
+ return this.queenNode !== null; // O(1) check using cached queen
}
private calculateInitialConnections(agentId: string, role: TopologyNode['role']): string[] {