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:

rUvb5694b669345
diff --git a/v3/@claude-flow/swarm/src/coordination/swarm-hub.ts b/v3/@claude-flow/swarm/src/coordination/swarm-hub.ts
index b9e7a9422b..54a4d6ba78 100644
--- a/v3/@claude-flow/swarm/src/coordination/swarm-hub.ts
+++ b/v3/@claude-flow/swarm/src/coordination/swarm-hub.ts
@@ -101,12 +101,29 @@ export interface ISwarmHub {
}
// =============================================================================
-// Swarm Hub Implementation
+// Swarm Hub Implementation - COMPATIBILITY LAYER
// =============================================================================
+/**
+ * @deprecated Use UnifiedSwarmCoordinator directly instead.
+ * This class is maintained for backward compatibility only.
+ *
+ * Migration guide:
+ * ```typescript
+ * // OLD:
+ * const hub = createSwarmHub();
+ * await hub.initialize();
+ *
+ * // NEW:
+ * const coordinator = createUnifiedSwarmCoordinator();
+ * await coordinator.initialize();
+ * ```
+ */
export class SwarmHub implements ISwarmHub {
- private initialized: boolean = false;
- private config: SwarmConfig;
+ // Core coordinator - ALL operations delegate to this
+ private coordinator: UnifiedSwarmCoordinator;
+
+ // Compatibility layer state
private eventBus: IEventBus;
private agentRegistry: IAgentRegistry;
private taskOrchestrator: ITaskOrchestrator;
@@ -122,7 +139,9 @@ export class SwarmHub implements ISwarmHub {
this.agentRegistry = createAgentRegistry(this.eventBus);
this.taskOrchestrator = createTaskOrchestrator(this.eventBus, this.agentRegistry);
this.phases = this.createPhaseDefinitions();
- this.config = this.getDefaultConfig();
+
+ // Initialize the canonical coordinator
+ this.coordinator = createUnifiedSwarmCoordinator(this.convertToCoordinatorConfig());
}
// ==========================================================================
diff --git a/v3/tsconfig.vitest-temp.json b/v3/tsconfig.vitest-temp.json
new file mode 100644
index 0000000000..06655571af
--- /dev/null
+++ b/v3/tsconfig.vitest-temp.json
@@ -0,0 +1,98 @@
+{
+ "compilerOptions": {
+ "target": "ES2022",
+ "module": "ESNext",
+ "moduleResolution": "bundler",
+ "lib": [
+ "ES2022"
+ ],
+ "strict": true,
+ "esModuleInterop": true,
+ "skipLibCheck": true,
+ "forceConsistentCasingInFileNames": true,
+ "declaration": true,
+ "declarationMap": true,
+ "sourceMap": true,
+ "resolveJsonModule": true,
+ "isolatedModules": true,
+ "noUnusedLocals": false,
+ "noUnusedParameters": false,
+ "noImplicitReturns": true,
+ "noFallthroughCasesInSwitch": true,
+ "noImplicitAny": false,
+ "composite": true,
+ "incremental": true,
+ "baseUrl": "./",
+ "paths": {
+ "@claude-flow/security": [
+ "./@claude-flow/security/src"
+ ],
+ "@claude-flow/memory": [
+ "./@claude-flow/memory/src"
+ ],
+ "@claude-flow/integration": [
+ "./@claude-flow/integration/src"
+ ],
+ "@claude-flow/swarm": [
+ "./@claude-flow/swarm/src"
+ ],
+ "@claude-flow/performance": [
+ "./@claude-flow/performance/src"
+ ],
+ "@claude-flow/cli": [
+ "./@claude-flow/cli/src"
+ ],
+ "@claude-flow/neural": [
+ "./@claude-flow/neural/src"
+ ],
+ "@claude-flow/testing": [
+ "./@claude-flow/testing/src"
+ ],
+ "@claude-flow/deployment": [
+ "./@claude-flow/deployment/src"
+ ],
+ "@claude-flow/shared": [
+ "./@claude-flow/shared/src"
+ ]
+ },
+ "emitDeclarationOnly": false,
+ "tsBuildInfoFile": "/workspaces/claude-flow/v3/node_modules/vitest/dist/vendor/tsconfig.tmp.tsbuildinfo"
+ },
+ "references": [
+ {
+ "path": "./@claude-flow/shared"
+ },
+ {
+ "path": "./@claude-flow/security"
+ },
+ {
+ "path": "./@claude-flow/memory"
+ },
+ {
+ "path": "./@claude-flow/integration"
+ },
+ {
+ "path": "./@claude-flow/swarm"
+ },
+ {
+ "path": "./@claude-flow/performance"
+ },
+ {
+ "path": "./@claude-flow/cli"
+ },
+ {
+ "path": "./@claude-flow/neural"
+ },
+ {
+ "path": "./@claude-flow/testing"
+ },
+ {
+ "path": "./@claude-flow/deployment"
+ }
+ ],
+ "include": [],
+ "exclude": [
+ "node_modules",
+ "dist"
+ ]
+}
\ No newline at end of file