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:

rUv07bdcff04939
diff --git a/v3/@claude-flow/swarm/src/coordination/swarm-hub.ts b/v3/@claude-flow/swarm/src/coordination/swarm-hub.ts
index d026c50ab4..6ba4bad685 100644
--- a/v3/@claude-flow/swarm/src/coordination/swarm-hub.ts
+++ b/v3/@claude-flow/swarm/src/coordination/swarm-hub.ts
@@ -472,19 +472,44 @@ export class SwarmHub implements ISwarmHub {
// ==========================================================================
private ensureInitialized(): void {
- if (!this.initialized) {
+ const state = this.coordinator.getState();
+ if (state.status === 'stopped' || state.status === 'initializing') {
throw new Error('SwarmHub is not initialized. Call initialize() first.');
}
}
- private getDefaultConfig(): SwarmConfig {
+ private convertToCoordinatorConfig(): any {
return {
- topology: 'hierarchical-mesh',
+ topology: {
+ type: 'hierarchical' as const,
+ maxAgents: 15,
+ replicationFactor: 2,
+ partitionStrategy: 'hash' as const,
+ failoverEnabled: true,
+ autoRebalance: true,
+ },
+ consensus: {
+ algorithm: 'raft' as const,
+ threshold: 0.66,
+ timeoutMs: 5000,
+ maxRounds: 10,
+ requireQuorum: true,
+ },
+ messageBus: {
+ maxQueueSize: 10000,
+ processingIntervalMs: 10,
+ ackTimeoutMs: 5000,
+ retryAttempts: 3,
+ enablePersistence: false,
+ compressionEnabled: false,
+ },
maxAgents: 15,
- messageTimeout: 30000,
- retryAttempts: 3,
- healthCheckInterval: 5000,
- loadBalancingStrategy: 'capability-match'
+ maxTasks: 1000,
+ heartbeatIntervalMs: 5000,
+ healthCheckIntervalMs: 5000,
+ taskTimeoutMs: 300000,
+ autoScaling: true,
+ autoRecovery: true,
};
}
diff --git a/v3/tsconfig.vitest-temp.json b/v3/tsconfig.vitest-temp.json
deleted file mode 100644
index 06655571af..0000000000
--- a/v3/tsconfig.vitest-temp.json
+++ /dev/null
@@ -1,98 +0,0 @@
-{
- "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