claude-flow 2.0.0-alpha.60 → 2.0.0-alpha.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/commands/sparc/analyzer.md +24 -77
- package/.claude/commands/sparc/architect.md +25 -76
- package/.claude/commands/sparc/batch-executor.md +28 -78
- package/.claude/commands/sparc/coder.md +28 -79
- package/.claude/commands/sparc/debugger.md +26 -76
- package/.claude/commands/sparc/designer.md +25 -75
- package/.claude/commands/sparc/documenter.md +26 -75
- package/.claude/commands/sparc/innovator.md +26 -76
- package/.claude/commands/sparc/memory-manager.md +28 -77
- package/.claude/commands/sparc/optimizer.md +26 -76
- package/.claude/commands/sparc/orchestrator.md +23 -74
- package/.claude/commands/sparc/researcher.md +26 -77
- package/.claude/commands/sparc/reviewer.md +26 -76
- package/.claude/commands/sparc/sparc-modes.md +38 -358
- package/.claude/commands/sparc/swarm-coordinator.md +28 -77
- package/.claude/commands/sparc/tdd.md +28 -78
- package/.claude/commands/sparc/tester.md +26 -76
- package/.claude/commands/sparc/workflow-manager.md +28 -77
- package/.claude/commands/swarm/analysis.md +14 -17
- package/.claude/commands/swarm/development.md +14 -16
- package/.claude/commands/swarm/examples.md +20 -53
- package/.claude/commands/swarm/maintenance.md +14 -17
- package/.claude/commands/swarm/optimization.md +15 -17
- package/.claude/commands/swarm/research.md +14 -17
- package/.claude/commands/swarm/testing.md +15 -17
- package/.claude/config.json +32 -11
- package/CHANGELOG.md +113 -0
- package/bin/claude-flow +1 -1
- package/dist/adapters/cliffy-node.d.ts.map +1 -1
- package/dist/adapters/cliffy-node.js +13 -7
- package/dist/adapters/cliffy-node.js.map +1 -1
- package/dist/agents/agent-manager.d.ts.map +1 -1
- package/dist/agents/agent-manager.js +77 -65
- package/dist/agents/agent-manager.js.map +1 -1
- package/dist/agents/agent-registry.d.ts.map +1 -1
- package/dist/agents/agent-registry.js +38 -30
- package/dist/agents/agent-registry.js.map +1 -1
- package/dist/api/claude-client.d.ts.map +1 -1
- package/dist/api/claude-client.js +22 -16
- package/dist/api/claude-client.js.map +1 -1
- package/dist/cli/agents/analyst.d.ts.map +1 -1
- package/dist/cli/agents/analyst.js +94 -114
- package/dist/cli/agents/analyst.js.map +1 -1
- package/dist/cli/agents/architect.d.ts.map +1 -1
- package/dist/cli/agents/architect.js +100 -114
- package/dist/cli/agents/architect.js.map +1 -1
- package/dist/cli/agents/base-agent.d.ts.map +1 -1
- package/dist/cli/agents/base-agent.js +27 -27
- package/dist/cli/agents/base-agent.js.map +1 -1
- package/dist/cli/agents/capabilities.d.ts.map +1 -1
- package/dist/cli/agents/capabilities.js +49 -51
- package/dist/cli/agents/capabilities.js.map +1 -1
- package/dist/cli/agents/coder.d.ts.map +1 -1
- package/dist/cli/agents/coder.js +92 -98
- package/dist/cli/agents/coder.js.map +1 -1
- package/dist/cli/agents/coordinator.d.ts.map +1 -1
- package/dist/cli/agents/coordinator.js +59 -64
- package/dist/cli/agents/coordinator.js.map +1 -1
- package/dist/cli/agents/hive-agents.d.ts.map +1 -1
- package/dist/cli/agents/hive-agents.js +22 -24
- package/dist/cli/agents/hive-agents.js.map +1 -1
- package/dist/cli/agents/index.d.ts.map +1 -1
- package/dist/cli/agents/index.js +17 -17
- package/dist/cli/agents/index.js.map +1 -1
- package/dist/cli/agents/researcher.d.ts.map +1 -1
- package/dist/cli/agents/researcher.js +41 -61
- package/dist/cli/agents/researcher.js.map +1 -1
- package/dist/cli/agents/tester.d.ts.map +1 -1
- package/dist/cli/agents/tester.js +78 -90
- package/dist/cli/agents/tester.js.map +1 -1
- package/dist/cli/cli-core.d.ts +4 -1
- package/dist/cli/cli-core.d.ts.map +1 -1
- package/dist/cli/cli-core.js +40 -39
- package/dist/cli/cli-core.js.map +1 -1
- package/dist/cli/command-registry.d.ts.map +1 -1
- package/dist/cli/command-registry.js +99 -74
- package/dist/cli/command-registry.js.map +1 -1
- package/dist/cli/commands/advanced-memory-commands.d.ts.map +1 -1
- package/dist/cli/commands/advanced-memory-commands.js +49 -40
- package/dist/cli/commands/advanced-memory-commands.js.map +1 -1
- package/dist/cli/commands/agent-simple.d.ts +3 -0
- package/dist/cli/commands/agent-simple.d.ts.map +1 -1
- package/dist/cli/commands/agent-simple.js +30 -27
- package/dist/cli/commands/agent-simple.js.map +1 -1
- package/dist/cli/commands/agent.d.ts.map +1 -1
- package/dist/cli/commands/agent.js +53 -40
- package/dist/cli/commands/agent.js.map +1 -1
- package/dist/cli/commands/claude-api.js +4 -4
- package/dist/cli/commands/claude-api.js.map +1 -1
- package/dist/cli/commands/claude.d.ts.map +1 -1
- package/dist/cli/commands/claude.js +2 -2
- package/dist/cli/commands/claude.js.map +1 -1
- package/dist/cli/commands/config-integration.d.ts +7 -1
- package/dist/cli/commands/config-integration.d.ts.map +1 -1
- package/dist/cli/commands/config-integration.js +18 -9
- package/dist/cli/commands/config-integration.js.map +1 -1
- package/dist/cli/commands/config.d.ts.map +1 -1
- package/dist/cli/commands/config.js +2 -3
- package/dist/cli/commands/config.js.map +1 -1
- package/dist/cli/commands/enterprise.d.ts.map +1 -1
- package/dist/cli/commands/enterprise.js +115 -95
- package/dist/cli/commands/enterprise.js.map +1 -1
- package/dist/cli/commands/help-new.d.ts +7 -0
- package/dist/cli/commands/help-new.d.ts.map +1 -0
- package/dist/cli/commands/help-new.js +236 -0
- package/dist/cli/commands/help-new.js.map +1 -0
- package/dist/cli/commands/help.d.ts +2 -1
- package/dist/cli/commands/help.d.ts.map +1 -1
- package/dist/cli/commands/help.js +283 -133
- package/dist/cli/commands/help.js.map +1 -1
- package/dist/cli/commands/hive-mind/index.d.ts +1 -1
- package/dist/cli/commands/hive-mind/index.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/index.js +1 -1
- package/dist/cli/commands/hive-mind/index.js.map +1 -1
- package/dist/cli/commands/hive-mind/init.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/init.js.map +1 -1
- package/dist/cli/commands/hive-mind/optimize-memory.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/optimize-memory.js +35 -26
- package/dist/cli/commands/hive-mind/optimize-memory.js.map +1 -1
- package/dist/cli/commands/hive-mind/pause.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/pause.js +8 -6
- package/dist/cli/commands/hive-mind/pause.js.map +1 -1
- package/dist/cli/commands/hive-mind/ps.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/ps.js +17 -12
- package/dist/cli/commands/hive-mind/ps.js.map +1 -1
- package/dist/cli/commands/hive-mind/resume.js +12 -10
- package/dist/cli/commands/hive-mind/resume.js.map +1 -1
- package/dist/cli/commands/hive-mind/spawn.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/spawn.js +20 -11
- package/dist/cli/commands/hive-mind/spawn.js.map +1 -1
- package/dist/cli/commands/hive-mind/status.js +17 -22
- package/dist/cli/commands/hive-mind/status.js.map +1 -1
- package/dist/cli/commands/hive-mind/stop.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/stop.js +23 -15
- package/dist/cli/commands/hive-mind/stop.js.map +1 -1
- package/dist/cli/commands/hive-mind/task.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/task.js +25 -19
- package/dist/cli/commands/hive-mind/task.js.map +1 -1
- package/dist/cli/commands/hive-mind/wizard.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/wizard.js +86 -68
- package/dist/cli/commands/hive-mind/wizard.js.map +1 -1
- package/dist/cli/commands/hive.js +73 -38
- package/dist/cli/commands/hive.js.map +1 -1
- package/dist/cli/commands/hook-validator.d.ts.map +1 -1
- package/dist/cli/commands/hook-validator.js +4 -2
- package/dist/cli/commands/hook-validator.js.map +1 -1
- package/dist/cli/commands/hook.d.ts.map +1 -1
- package/dist/cli/commands/hook.js +8 -8
- package/dist/cli/commands/hook.js.map +1 -1
- package/dist/cli/commands/index.d.ts +1 -1
- package/dist/cli/commands/index.d.ts.map +1 -1
- package/dist/cli/commands/index.js +850 -784
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/mcp.d.ts.map +1 -1
- package/dist/cli/commands/mcp.js +8 -16
- package/dist/cli/commands/mcp.js.map +1 -1
- package/dist/cli/commands/memory.d.ts.map +1 -1
- package/dist/cli/commands/memory.js +8 -8
- package/dist/cli/commands/memory.js.map +1 -1
- package/dist/cli/commands/migrate.d.ts.map +1 -1
- package/dist/cli/commands/migrate.js +3 -3
- package/dist/cli/commands/migrate.js.map +1 -1
- package/dist/cli/commands/monitor.d.ts.map +1 -1
- package/dist/cli/commands/monitor.js +50 -34
- package/dist/cli/commands/monitor.js.map +1 -1
- package/dist/cli/commands/ruv-swarm.d.ts +7 -1
- package/dist/cli/commands/ruv-swarm.d.ts.map +1 -1
- package/dist/cli/commands/ruv-swarm.js +6 -6
- package/dist/cli/commands/ruv-swarm.js.map +1 -1
- package/dist/cli/commands/session.d.ts.map +1 -1
- package/dist/cli/commands/session.js +22 -17
- package/dist/cli/commands/session.js.map +1 -1
- package/dist/cli/commands/sparc.d.ts +1 -1
- package/dist/cli/commands/sparc.d.ts.map +1 -1
- package/dist/cli/commands/sparc.js +146 -126
- package/dist/cli/commands/sparc.js.map +1 -1
- package/dist/cli/commands/start/event-emitter.js +1 -1
- package/dist/cli/commands/start/event-emitter.js.map +1 -1
- package/dist/cli/commands/start/process-manager.d.ts.map +1 -1
- package/dist/cli/commands/start/process-manager.js +20 -18
- package/dist/cli/commands/start/process-manager.js.map +1 -1
- package/dist/cli/commands/start/process-ui-simple.d.ts +4 -0
- package/dist/cli/commands/start/process-ui-simple.d.ts.map +1 -1
- package/dist/cli/commands/start/process-ui-simple.js +2 -2
- package/dist/cli/commands/start/process-ui-simple.js.map +1 -1
- package/dist/cli/commands/start/start-command.d.ts.map +1 -1
- package/dist/cli/commands/start/start-command.js +27 -15
- package/dist/cli/commands/start/start-command.js.map +1 -1
- package/dist/cli/commands/start/system-monitor.d.ts +3 -0
- package/dist/cli/commands/start/system-monitor.d.ts.map +1 -1
- package/dist/cli/commands/start/system-monitor.js +16 -18
- package/dist/cli/commands/start/system-monitor.js.map +1 -1
- package/dist/cli/commands/status.d.ts.map +1 -1
- package/dist/cli/commands/status.js +28 -33
- package/dist/cli/commands/status.js.map +1 -1
- package/dist/cli/commands/swarm-spawn.d.ts.map +1 -1
- package/dist/cli/commands/swarm-spawn.js +1 -1
- package/dist/cli/commands/swarm-spawn.js.map +1 -1
- package/dist/cli/commands/swarm.d.ts +4 -1
- package/dist/cli/commands/swarm.d.ts.map +1 -1
- package/dist/cli/commands/swarm.js +23 -18
- package/dist/cli/commands/swarm.js.map +1 -1
- package/dist/cli/commands/task.d.ts.map +1 -1
- package/dist/cli/commands/task.js.map +1 -1
- package/dist/cli/commands/workflow.d.ts.map +1 -1
- package/dist/cli/commands/workflow.js +49 -45
- package/dist/cli/commands/workflow.js.map +1 -1
- package/dist/cli/completion.d.ts +3 -0
- package/dist/cli/completion.d.ts.map +1 -1
- package/dist/cli/completion.js +15 -5
- package/dist/cli/completion.js.map +1 -1
- package/dist/cli/formatter.d.ts +3 -0
- package/dist/cli/formatter.d.ts.map +1 -1
- package/dist/cli/formatter.js +3 -3
- package/dist/cli/formatter.js.map +1 -1
- package/dist/cli/help-formatter.d.ts +49 -0
- package/dist/cli/help-formatter.d.ts.map +1 -0
- package/dist/cli/help-formatter.js +108 -0
- package/dist/cli/help-formatter.js.map +1 -0
- package/dist/cli/index-remote.d.ts +4 -0
- package/dist/cli/index-remote.d.ts.map +1 -1
- package/dist/cli/index-remote.js +1 -1
- package/dist/cli/index-remote.js.map +1 -1
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +32 -34
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/init/batch-tools.d.ts.map +1 -1
- package/dist/cli/init/batch-tools.js.map +1 -1
- package/dist/cli/init/claude-config.d.ts.map +1 -1
- package/dist/cli/init/claude-config.js +111 -106
- package/dist/cli/init/claude-config.js.map +1 -1
- package/dist/cli/init/directory-structure.d.ts.map +1 -1
- package/dist/cli/init/directory-structure.js +3 -3
- package/dist/cli/init/directory-structure.js.map +1 -1
- package/dist/cli/init/index.d.ts.map +1 -1
- package/dist/cli/init/index.js +1 -1
- package/dist/cli/init/index.js.map +1 -1
- package/dist/cli/init/sparc-environment.d.ts.map +1 -1
- package/dist/cli/init/sparc-environment.js +69 -69
- package/dist/cli/init/sparc-environment.js.map +1 -1
- package/dist/cli/init/swarm-commands.d.ts.map +1 -1
- package/dist/cli/init/swarm-commands.js +1 -1
- package/dist/cli/init/swarm-commands.js.map +1 -1
- package/dist/cli/main.d.ts +3 -0
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +6 -6
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/node-compat.d.ts.map +1 -1
- package/dist/cli/node-compat.js +24 -18
- package/dist/cli/node-compat.js.map +1 -1
- package/dist/cli/node-repl.d.ts +4 -0
- package/dist/cli/node-repl.d.ts.map +1 -1
- package/dist/cli/node-repl.js +24 -30
- package/dist/cli/node-repl.js.map +1 -1
- package/dist/cli/repl.d.ts.map +1 -1
- package/dist/cli/repl.js +81 -70
- package/dist/cli/repl.js.map +1 -1
- package/dist/cli/runtime-detector.d.ts.map +1 -1
- package/dist/cli/runtime-detector.js +11 -7
- package/dist/cli/runtime-detector.js.map +1 -1
- package/dist/cli/simple-cli.d.ts +4 -0
- package/dist/cli/simple-cli.d.ts.map +1 -1
- package/dist/cli/simple-cli.js +109 -95
- package/dist/cli/simple-cli.js.map +1 -1
- package/dist/cli/simple-commands/analysis.d.ts.map +1 -1
- package/dist/cli/simple-commands/analysis.js +18 -11
- package/dist/cli/simple-commands/analysis.js.map +1 -1
- package/dist/cli/simple-commands/automation.js +32 -17
- package/dist/cli/simple-commands/automation.js.map +1 -1
- package/dist/cli/simple-commands/batch-manager.js +44 -39
- package/dist/cli/simple-commands/batch-manager.js.map +1 -1
- package/dist/cli/simple-commands/config.d.ts.map +1 -1
- package/dist/cli/simple-commands/config.js +22 -21
- package/dist/cli/simple-commands/config.js.map +1 -1
- package/dist/cli/simple-commands/coordination.d.ts.map +1 -1
- package/dist/cli/simple-commands/coordination.js +12 -12
- package/dist/cli/simple-commands/coordination.js.map +1 -1
- package/dist/cli/simple-commands/fix-hook-variables.d.ts.map +1 -1
- package/dist/cli/simple-commands/fix-hook-variables.js +36 -30
- package/dist/cli/simple-commands/fix-hook-variables.js.map +1 -1
- package/dist/cli/simple-commands/github.d.ts.map +1 -1
- package/dist/cli/simple-commands/github.js +15 -15
- package/dist/cli/simple-commands/github.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.js +12 -10
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/communication.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/communication.js +42 -45
- package/dist/cli/simple-commands/hive-mind/communication.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/core.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/core.js +97 -89
- package/dist/cli/simple-commands/hive-mind/core.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/db-optimizer.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/db-optimizer.js +114 -59
- package/dist/cli/simple-commands/hive-mind/db-optimizer.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js +182 -103
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/memory.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/memory.js +105 -75
- package/dist/cli/simple-commands/hive-mind/memory.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.js +45 -43
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/queen.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/queen.js +101 -88
- package/dist/cli/simple-commands/hive-mind/queen.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/session-manager.js +75 -53
- package/dist/cli/simple-commands/hive-mind/session-manager.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind-optimize.js +18 -18
- package/dist/cli/simple-commands/hive-mind-optimize.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind.js +207 -144
- package/dist/cli/simple-commands/hive-mind.js.map +1 -1
- package/dist/cli/simple-commands/hook-safety.d.ts.map +1 -1
- package/dist/cli/simple-commands/hook-safety.js +19 -19
- package/dist/cli/simple-commands/hook-safety.js.map +1 -1
- package/dist/cli/simple-commands/hooks.d.ts.map +1 -1
- package/dist/cli/simple-commands/hooks.js +85 -71
- package/dist/cli/simple-commands/hooks.js.map +1 -1
- package/dist/cli/simple-commands/init/batch-init.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/batch-init.js +62 -55
- package/dist/cli/simple-commands/init/batch-init.js.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.js +2 -2
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.js.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js +58 -50
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.js.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.js +34 -28
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.js.map +1 -1
- package/dist/cli/simple-commands/init/executable-wrapper.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/executable-wrapper.js +7 -4
- package/dist/cli/simple-commands/init/executable-wrapper.js.map +1 -1
- package/dist/cli/simple-commands/init/gitignore-updater.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/gitignore-updater.js +10 -9
- package/dist/cli/simple-commands/init/gitignore-updater.js.map +1 -1
- package/dist/cli/simple-commands/init/help.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/help.js.map +1 -1
- package/dist/cli/simple-commands/init/index.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/index.js +159 -103
- package/dist/cli/simple-commands/init/index.js.map +1 -1
- package/dist/cli/simple-commands/init/performance-monitor.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/performance-monitor.js +17 -18
- package/dist/cli/simple-commands/init/performance-monitor.js.map +1 -1
- package/dist/cli/simple-commands/init/rollback/backup-manager.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/rollback/backup-manager.js +19 -25
- package/dist/cli/simple-commands/init/rollback/backup-manager.js.map +1 -1
- package/dist/cli/simple-commands/init/rollback/index.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/rollback/index.js +18 -15
- package/dist/cli/simple-commands/init/rollback/index.js.map +1 -1
- package/dist/cli/simple-commands/init/rollback/recovery-manager.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/rollback/recovery-manager.js +49 -68
- package/dist/cli/simple-commands/init/rollback/recovery-manager.js.map +1 -1
- package/dist/cli/simple-commands/init/rollback/rollback-executor.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/rollback/rollback-executor.js +16 -24
- package/dist/cli/simple-commands/init/rollback/rollback-executor.js.map +1 -1
- package/dist/cli/simple-commands/init/rollback/state-tracker.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/rollback/state-tracker.js +25 -25
- package/dist/cli/simple-commands/init/rollback/state-tracker.js.map +1 -1
- package/dist/cli/simple-commands/init/sparc/roomodes-config.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/sparc/roomodes-config.js +57 -57
- package/dist/cli/simple-commands/init/sparc/roomodes-config.js.map +1 -1
- package/dist/cli/simple-commands/init/sparc/workflows.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/sparc/workflows.js +21 -21
- package/dist/cli/simple-commands/init/sparc/workflows.js.map +1 -1
- package/dist/cli/simple-commands/init/sparc-structure.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/sparc-structure.js +1 -1
- package/dist/cli/simple-commands/init/sparc-structure.js.map +1 -1
- package/dist/cli/simple-commands/init/templates/enhanced-templates.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/templates/enhanced-templates.js +69 -78
- package/dist/cli/simple-commands/init/templates/enhanced-templates.js.map +1 -1
- package/dist/cli/simple-commands/init/templates/sparc-modes.js +2 -2
- package/dist/cli/simple-commands/init/validation/config-validator.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/validation/config-validator.js +12 -16
- package/dist/cli/simple-commands/init/validation/config-validator.js.map +1 -1
- package/dist/cli/simple-commands/init/validation/health-checker.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/validation/health-checker.js +39 -41
- package/dist/cli/simple-commands/init/validation/health-checker.js.map +1 -1
- package/dist/cli/simple-commands/init/validation/index.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/validation/index.js +8 -8
- package/dist/cli/simple-commands/init/validation/index.js.map +1 -1
- package/dist/cli/simple-commands/init/validation/mode-validator.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/validation/mode-validator.js +12 -12
- package/dist/cli/simple-commands/init/validation/mode-validator.js.map +1 -1
- package/dist/cli/simple-commands/init/validation/post-init-validator.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/validation/post-init-validator.js +13 -13
- package/dist/cli/simple-commands/init/validation/post-init-validator.js.map +1 -1
- package/dist/cli/simple-commands/init/validation/pre-init-validator.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/validation/pre-init-validator.js +19 -24
- package/dist/cli/simple-commands/init/validation/pre-init-validator.js.map +1 -1
- package/dist/cli/simple-commands/mcp.js +2 -2
- package/dist/cli/simple-commands/mcp.js.map +1 -1
- package/dist/cli/simple-commands/memory.js +4 -4
- package/dist/cli/simple-commands/memory.js.map +1 -1
- package/dist/cli/simple-commands/migrate-hooks.d.ts.map +1 -1
- package/dist/cli/simple-commands/migrate-hooks.js +3 -3
- package/dist/cli/simple-commands/migrate-hooks.js.map +1 -1
- package/dist/cli/simple-commands/monitor.d.ts.map +1 -1
- package/dist/cli/simple-commands/monitor.js +34 -26
- package/dist/cli/simple-commands/monitor.js.map +1 -1
- package/dist/cli/simple-commands/process-ui-enhanced.d.ts.map +1 -1
- package/dist/cli/simple-commands/process-ui-enhanced.js +53 -39
- package/dist/cli/simple-commands/process-ui-enhanced.js.map +1 -1
- package/dist/cli/simple-commands/sparc-modes/index.js +11 -11
- package/dist/cli/simple-commands/sparc-modes/index.js.map +1 -1
- package/dist/cli/simple-commands/sparc-modes/swarm.js +50 -50
- package/dist/cli/simple-commands/sparc.d.ts.map +1 -1
- package/dist/cli/simple-commands/sparc.js +21 -11
- package/dist/cli/simple-commands/sparc.js.map +1 -1
- package/dist/cli/simple-commands/start-ui.d.ts.map +1 -1
- package/dist/cli/simple-commands/start-ui.js +5 -3
- package/dist/cli/simple-commands/start-ui.js.map +1 -1
- package/dist/cli/simple-commands/start-wrapper.d.ts.map +1 -1
- package/dist/cli/simple-commands/start-wrapper.js +1 -1
- package/dist/cli/simple-commands/start-wrapper.js.map +1 -1
- package/dist/cli/simple-commands/status.js +14 -14
- package/dist/cli/simple-commands/status.js.map +1 -1
- package/dist/cli/simple-commands/swarm-executor.d.ts.map +1 -1
- package/dist/cli/simple-commands/swarm-executor.js +19 -19
- package/dist/cli/simple-commands/swarm-executor.js.map +1 -1
- package/dist/cli/simple-commands/swarm-metrics-integration.d.ts.map +1 -1
- package/dist/cli/simple-commands/swarm-metrics-integration.js +30 -21
- package/dist/cli/simple-commands/swarm-metrics-integration.js.map +1 -1
- package/dist/cli/simple-commands/swarm-webui-integration.d.ts.map +1 -1
- package/dist/cli/simple-commands/swarm-webui-integration.js +30 -18
- package/dist/cli/simple-commands/swarm-webui-integration.js.map +1 -1
- package/dist/cli/simple-commands/swarm.d.ts +1 -1
- package/dist/cli/simple-commands/swarm.d.ts.map +1 -1
- package/dist/cli/simple-commands/swarm.js +81 -76
- package/dist/cli/simple-commands/swarm.js.map +1 -1
- package/dist/cli/simple-commands/training.d.ts.map +1 -1
- package/dist/cli/simple-commands/training.js +7 -7
- package/dist/cli/simple-commands/training.js.map +1 -1
- package/dist/cli/simple-commands/web-server.d.ts.map +1 -1
- package/dist/cli/simple-commands/web-server.js +68 -66
- package/dist/cli/simple-commands/web-server.js.map +1 -1
- package/dist/cli/simple-mcp.d.ts.map +1 -1
- package/dist/cli/simple-mcp.js +2 -4
- package/dist/cli/simple-mcp.js.map +1 -1
- package/dist/cli/simple-orchestrator.d.ts +3 -0
- package/dist/cli/simple-orchestrator.d.ts.map +1 -1
- package/dist/cli/simple-orchestrator.js +36 -35
- package/dist/cli/simple-orchestrator.js.map +1 -1
- package/dist/cli/ui/compatible-ui.d.ts +4 -0
- package/dist/cli/ui/compatible-ui.d.ts.map +1 -1
- package/dist/cli/ui/compatible-ui.js +9 -8
- package/dist/cli/ui/compatible-ui.js.map +1 -1
- package/dist/cli/ui/fallback-handler.d.ts.map +1 -1
- package/dist/cli/ui/fallback-handler.js +4 -4
- package/dist/cli/ui/fallback-handler.js.map +1 -1
- package/dist/cli/ui/index.d.ts +2 -2
- package/dist/cli/ui/index.d.ts.map +1 -1
- package/dist/cli/ui/index.js +3 -3
- package/dist/cli/ui/index.js.map +1 -1
- package/dist/cli/utils/environment-detector.d.ts.map +1 -1
- package/dist/cli/utils/environment-detector.js +13 -11
- package/dist/cli/utils/environment-detector.js.map +1 -1
- package/dist/cli/utils/interactive-detector.d.ts.map +1 -1
- package/dist/cli/utils/interactive-detector.js +1 -1
- package/dist/cli/utils/interactive-detector.js.map +1 -1
- package/dist/cli/utils/prompt-defaults.d.ts.map +1 -1
- package/dist/cli/utils/prompt-defaults.js +6 -7
- package/dist/cli/utils/prompt-defaults.js.map +1 -1
- package/dist/cli/utils/safe-interactive.d.ts.map +1 -1
- package/dist/cli/utils/safe-interactive.js +7 -6
- package/dist/cli/utils/safe-interactive.js.map +1 -1
- package/dist/cli/utils.d.ts.map +1 -1
- package/dist/cli/utils.js +58 -50
- package/dist/cli/utils.js.map +1 -1
- package/dist/cli/validation-helper.d.ts +27 -0
- package/dist/cli/validation-helper.d.ts.map +1 -0
- package/dist/cli/validation-helper.js +72 -0
- package/dist/cli/validation-helper.js.map +1 -0
- package/dist/communication/message-bus.d.ts.map +1 -1
- package/dist/communication/message-bus.js +80 -74
- package/dist/communication/message-bus.js.map +1 -1
- package/dist/config/config-manager.d.ts +3 -0
- package/dist/config/config-manager.d.ts.map +1 -1
- package/dist/config/config-manager.js +23 -6
- package/dist/config/config-manager.js.map +1 -1
- package/dist/config/ruv-swarm-config.d.ts +6 -0
- package/dist/config/ruv-swarm-config.d.ts.map +1 -1
- package/dist/config/ruv-swarm-config.js +37 -22
- package/dist/config/ruv-swarm-config.js.map +1 -1
- package/dist/config/ruv-swarm-integration.d.ts.map +1 -1
- package/dist/config/ruv-swarm-integration.js +21 -21
- package/dist/config/ruv-swarm-integration.js.map +1 -1
- package/dist/constants/agent-types.d.ts +4 -4
- package/dist/constants/agent-types.d.ts.map +1 -1
- package/dist/constants/agent-types.js +4 -4
- package/dist/constants/agent-types.js.map +1 -1
- package/dist/coordination/advanced-scheduler.d.ts.map +1 -1
- package/dist/coordination/advanced-scheduler.js +6 -10
- package/dist/coordination/advanced-scheduler.js.map +1 -1
- package/dist/coordination/advanced-task-executor.d.ts.map +1 -1
- package/dist/coordination/advanced-task-executor.js +33 -33
- package/dist/coordination/advanced-task-executor.js.map +1 -1
- package/dist/coordination/background-executor.d.ts.map +1 -1
- package/dist/coordination/background-executor.js +17 -16
- package/dist/coordination/background-executor.js.map +1 -1
- package/dist/coordination/circuit-breaker.d.ts.map +1 -1
- package/dist/coordination/circuit-breaker.js +3 -0
- package/dist/coordination/circuit-breaker.js.map +1 -1
- package/dist/coordination/conflict-resolution.d.ts.map +1 -1
- package/dist/coordination/conflict-resolution.js +10 -8
- package/dist/coordination/conflict-resolution.js.map +1 -1
- package/dist/coordination/dependency-graph.d.ts.map +1 -1
- package/dist/coordination/dependency-graph.js +4 -3
- package/dist/coordination/dependency-graph.js.map +1 -1
- package/dist/coordination/hive-orchestrator.d.ts.map +1 -1
- package/dist/coordination/hive-orchestrator.js +29 -25
- package/dist/coordination/hive-orchestrator.js.map +1 -1
- package/dist/coordination/hive-protocol.d.ts.map +1 -1
- package/dist/coordination/hive-protocol.js +22 -23
- package/dist/coordination/hive-protocol.js.map +1 -1
- package/dist/coordination/index.d.ts +1 -1
- package/dist/coordination/index.d.ts.map +1 -1
- package/dist/coordination/index.js +1 -1
- package/dist/coordination/index.js.map +1 -1
- package/dist/coordination/load-balancer.d.ts.map +1 -1
- package/dist/coordination/load-balancer.js +55 -56
- package/dist/coordination/load-balancer.js.map +1 -1
- package/dist/coordination/manager.d.ts.map +1 -1
- package/dist/coordination/manager.js +2 -8
- package/dist/coordination/manager.js.map +1 -1
- package/dist/coordination/messaging.d.ts.map +1 -1
- package/dist/coordination/messaging.js +4 -4
- package/dist/coordination/messaging.js.map +1 -1
- package/dist/coordination/metrics.d.ts.map +1 -1
- package/dist/coordination/metrics.js +11 -9
- package/dist/coordination/metrics.js.map +1 -1
- package/dist/coordination/resources.d.ts.map +1 -1
- package/dist/coordination/resources.js +10 -6
- package/dist/coordination/resources.js.map +1 -1
- package/dist/coordination/scheduler.d.ts.map +1 -1
- package/dist/coordination/scheduler.js +4 -4
- package/dist/coordination/scheduler.js.map +1 -1
- package/dist/coordination/swarm-coordinator.d.ts.map +1 -1
- package/dist/coordination/swarm-coordinator.js +32 -34
- package/dist/coordination/swarm-coordinator.js.map +1 -1
- package/dist/coordination/swarm-monitor.d.ts.map +1 -1
- package/dist/coordination/swarm-monitor.js +17 -17
- package/dist/coordination/swarm-monitor.js.map +1 -1
- package/dist/coordination/work-stealing.d.ts.map +1 -1
- package/dist/coordination/work-stealing.js +3 -0
- package/dist/coordination/work-stealing.js.map +1 -1
- package/dist/core/config.d.ts +4 -0
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +28 -31
- package/dist/core/config.js.map +1 -1
- package/dist/core/event-bus.d.ts +3 -0
- package/dist/core/event-bus.d.ts.map +1 -1
- package/dist/core/event-bus.js.map +1 -1
- package/dist/core/json-persistence.d.ts +3 -0
- package/dist/core/json-persistence.d.ts.map +1 -1
- package/dist/core/json-persistence.js +19 -23
- package/dist/core/json-persistence.js.map +1 -1
- package/dist/core/logger.d.ts +3 -0
- package/dist/core/logger.d.ts.map +1 -1
- package/dist/core/logger.js +2 -6
- package/dist/core/logger.js.map +1 -1
- package/dist/core/orchestrator-fixed.d.ts.map +1 -1
- package/dist/core/orchestrator-fixed.js +4 -1
- package/dist/core/orchestrator-fixed.js.map +1 -1
- package/dist/core/orchestrator.d.ts.map +1 -1
- package/dist/core/orchestrator.js +66 -33
- package/dist/core/orchestrator.js.map +1 -1
- package/dist/core/persistence.d.ts +3 -0
- package/dist/core/persistence.d.ts.map +1 -1
- package/dist/core/persistence.js +25 -19
- package/dist/core/persistence.js.map +1 -1
- package/dist/enterprise/analytics-manager.d.ts.map +1 -1
- package/dist/enterprise/analytics-manager.js +141 -134
- package/dist/enterprise/analytics-manager.js.map +1 -1
- package/dist/enterprise/audit-manager.d.ts.map +1 -1
- package/dist/enterprise/audit-manager.js +144 -122
- package/dist/enterprise/audit-manager.js.map +1 -1
- package/dist/enterprise/cloud-manager.d.ts.map +1 -1
- package/dist/enterprise/cloud-manager.js +104 -99
- package/dist/enterprise/cloud-manager.js.map +1 -1
- package/dist/enterprise/deployment-manager.d.ts.map +1 -1
- package/dist/enterprise/deployment-manager.js +104 -97
- package/dist/enterprise/deployment-manager.js.map +1 -1
- package/dist/enterprise/index.d.ts +6 -6
- package/dist/enterprise/index.d.ts.map +1 -1
- package/dist/enterprise/project-manager.d.ts.map +1 -1
- package/dist/enterprise/project-manager.js +74 -66
- package/dist/enterprise/project-manager.js.map +1 -1
- package/dist/enterprise/security-manager.d.ts.map +1 -1
- package/dist/enterprise/security-manager.js +137 -129
- package/dist/enterprise/security-manager.js.map +1 -1
- package/dist/hive-mind/core/Agent.d.ts.map +1 -1
- package/dist/hive-mind/core/Agent.js +36 -36
- package/dist/hive-mind/core/Agent.js.map +1 -1
- package/dist/hive-mind/core/Communication.d.ts.map +1 -1
- package/dist/hive-mind/core/Communication.js +17 -17
- package/dist/hive-mind/core/Communication.js.map +1 -1
- package/dist/hive-mind/core/DatabaseManager.d.ts.map +1 -1
- package/dist/hive-mind/core/DatabaseManager.js +104 -58
- package/dist/hive-mind/core/DatabaseManager.js.map +1 -1
- package/dist/hive-mind/core/HiveMind.d.ts.map +1 -1
- package/dist/hive-mind/core/HiveMind.js +35 -35
- package/dist/hive-mind/core/HiveMind.js.map +1 -1
- package/dist/hive-mind/core/Memory.d.ts.map +1 -1
- package/dist/hive-mind/core/Memory.js +78 -71
- package/dist/hive-mind/core/Memory.js.map +1 -1
- package/dist/hive-mind/core/MemoryMonitor.d.ts.map +1 -1
- package/dist/hive-mind/core/MemoryMonitor.js +38 -38
- package/dist/hive-mind/core/MemoryMonitor.js.map +1 -1
- package/dist/hive-mind/core/Queen.d.ts.map +1 -1
- package/dist/hive-mind/core/Queen.js +110 -47
- package/dist/hive-mind/core/Queen.js.map +1 -1
- package/dist/hive-mind/integration/ConsensusEngine.d.ts.map +1 -1
- package/dist/hive-mind/integration/ConsensusEngine.js +25 -23
- package/dist/hive-mind/integration/ConsensusEngine.js.map +1 -1
- package/dist/hive-mind/integration/MCPToolWrapper.d.ts.map +1 -1
- package/dist/hive-mind/integration/MCPToolWrapper.js.map +1 -1
- package/dist/hive-mind/integration/SwarmOrchestrator.d.ts.map +1 -1
- package/dist/hive-mind/integration/SwarmOrchestrator.js +60 -58
- package/dist/hive-mind/integration/SwarmOrchestrator.js.map +1 -1
- package/dist/hive-mind/types.d.ts.map +1 -1
- package/dist/integration/mock-components.d.ts.map +1 -1
- package/dist/integration/mock-components.js +21 -21
- package/dist/integration/mock-components.js.map +1 -1
- package/dist/integration/system-integration.d.ts.map +1 -1
- package/dist/integration/system-integration.js +29 -12
- package/dist/integration/system-integration.js.map +1 -1
- package/dist/mcp/auth.d.ts +1 -1
- package/dist/mcp/auth.d.ts.map +1 -1
- package/dist/mcp/auth.js +8 -1
- package/dist/mcp/auth.js.map +1 -1
- package/dist/mcp/claude-code-wrapper.d.ts.map +1 -1
- package/dist/mcp/claude-code-wrapper.js +169 -68
- package/dist/mcp/claude-code-wrapper.js.map +1 -1
- package/dist/mcp/claude-flow-tools.d.ts.map +1 -1
- package/dist/mcp/claude-flow-tools.js +42 -3
- package/dist/mcp/claude-flow-tools.js.map +1 -1
- package/dist/mcp/client.d.ts.map +1 -1
- package/dist/mcp/client.js.map +1 -1
- package/dist/mcp/index.d.ts +6 -6
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +9 -9
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/integrate-wrapper.d.ts.map +1 -1
- package/dist/mcp/integrate-wrapper.js +5 -7
- package/dist/mcp/integrate-wrapper.js.map +1 -1
- package/dist/mcp/lifecycle-manager.d.ts.map +1 -1
- package/dist/mcp/lifecycle-manager.js +8 -7
- package/dist/mcp/lifecycle-manager.js.map +1 -1
- package/dist/mcp/load-balancer.d.ts.map +1 -1
- package/dist/mcp/load-balancer.js +5 -1
- package/dist/mcp/load-balancer.js.map +1 -1
- package/dist/mcp/orchestration-integration.d.ts.map +1 -1
- package/dist/mcp/orchestration-integration.js +22 -9
- package/dist/mcp/orchestration-integration.js.map +1 -1
- package/dist/mcp/performance-monitor.d.ts.map +1 -1
- package/dist/mcp/performance-monitor.js +22 -19
- package/dist/mcp/performance-monitor.js.map +1 -1
- package/dist/mcp/protocol-manager.d.ts.map +1 -1
- package/dist/mcp/protocol-manager.js +8 -19
- package/dist/mcp/protocol-manager.js.map +1 -1
- package/dist/mcp/recovery/connection-health-monitor.d.ts.map +1 -1
- package/dist/mcp/recovery/connection-health-monitor.js +5 -5
- package/dist/mcp/recovery/connection-health-monitor.js.map +1 -1
- package/dist/mcp/recovery/connection-state-manager.d.ts +4 -0
- package/dist/mcp/recovery/connection-state-manager.d.ts.map +1 -1
- package/dist/mcp/recovery/connection-state-manager.js +13 -13
- package/dist/mcp/recovery/connection-state-manager.js.map +1 -1
- package/dist/mcp/recovery/fallback-coordinator.d.ts.map +1 -1
- package/dist/mcp/recovery/fallback-coordinator.js +5 -5
- package/dist/mcp/recovery/fallback-coordinator.js.map +1 -1
- package/dist/mcp/recovery/index.d.ts +4 -4
- package/dist/mcp/recovery/index.d.ts.map +1 -1
- package/dist/mcp/recovery/index.js +4 -4
- package/dist/mcp/recovery/index.js.map +1 -1
- package/dist/mcp/recovery/reconnection-manager.d.ts.map +1 -1
- package/dist/mcp/recovery/reconnection-manager.js +1 -1
- package/dist/mcp/recovery/reconnection-manager.js.map +1 -1
- package/dist/mcp/recovery/recovery-manager.d.ts.map +1 -1
- package/dist/mcp/recovery/recovery-manager.js +2 -4
- package/dist/mcp/recovery/recovery-manager.js.map +1 -1
- package/dist/mcp/router.d.ts.map +1 -1
- package/dist/mcp/router.js +3 -0
- package/dist/mcp/router.js.map +1 -1
- package/dist/mcp/ruv-swarm-tools.d.ts.map +1 -1
- package/dist/mcp/ruv-swarm-tools.js +132 -102
- package/dist/mcp/ruv-swarm-tools.js.map +1 -1
- package/dist/mcp/server-with-wrapper.d.ts +3 -0
- package/dist/mcp/server-with-wrapper.d.ts.map +1 -1
- package/dist/mcp/server-with-wrapper.js +2 -3
- package/dist/mcp/server-with-wrapper.js.map +1 -1
- package/dist/mcp/server-wrapper-mode.d.ts +5 -0
- package/dist/mcp/server-wrapper-mode.d.ts.map +1 -1
- package/dist/mcp/server-wrapper-mode.js +2 -3
- package/dist/mcp/server-wrapper-mode.js.map +1 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +12 -7
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/session-manager.d.ts.map +1 -1
- package/dist/mcp/session-manager.js +4 -3
- package/dist/mcp/session-manager.js.map +1 -1
- package/dist/mcp/sparc-modes.d.ts.map +1 -1
- package/dist/mcp/sparc-modes.js +15 -15
- package/dist/mcp/sparc-modes.js.map +1 -1
- package/dist/mcp/swarm-tools.d.ts.map +1 -1
- package/dist/mcp/swarm-tools.js +100 -80
- package/dist/mcp/swarm-tools.js.map +1 -1
- package/dist/mcp/tools.d.ts.map +1 -1
- package/dist/mcp/tools.js +28 -12
- package/dist/mcp/tools.js.map +1 -1
- package/dist/mcp/transports/base.d.ts.map +1 -1
- package/dist/mcp/transports/base.js +3 -0
- package/dist/mcp/transports/base.js.map +1 -1
- package/dist/mcp/transports/http.d.ts +3 -0
- package/dist/mcp/transports/http.d.ts.map +1 -1
- package/dist/mcp/transports/http.js +3 -3
- package/dist/mcp/transports/http.js.map +1 -1
- package/dist/mcp/transports/stdio.d.ts +3 -0
- package/dist/mcp/transports/stdio.d.ts.map +1 -1
- package/dist/mcp/transports/stdio.js +3 -0
- package/dist/mcp/transports/stdio.js.map +1 -1
- package/dist/memory/advanced-memory-manager.d.ts.map +1 -1
- package/dist/memory/advanced-memory-manager.js +109 -100
- package/dist/memory/advanced-memory-manager.js.map +1 -1
- package/dist/memory/backends/base.d.ts.map +1 -1
- package/dist/memory/backends/base.js +3 -0
- package/dist/memory/backends/base.js.map +1 -1
- package/dist/memory/backends/markdown.d.ts +3 -0
- package/dist/memory/backends/markdown.d.ts.map +1 -1
- package/dist/memory/backends/markdown.js +8 -8
- package/dist/memory/backends/markdown.js.map +1 -1
- package/dist/memory/backends/sqlite.d.ts +3 -0
- package/dist/memory/backends/sqlite.d.ts.map +1 -1
- package/dist/memory/backends/sqlite.js +6 -2
- package/dist/memory/backends/sqlite.js.map +1 -1
- package/dist/memory/cache.d.ts.map +1 -1
- package/dist/memory/cache.js +5 -3
- package/dist/memory/cache.js.map +1 -1
- package/dist/memory/distributed-memory.d.ts.map +1 -1
- package/dist/memory/distributed-memory.js +27 -28
- package/dist/memory/distributed-memory.js.map +1 -1
- package/dist/memory/fallback-store.d.ts.map +1 -1
- package/dist/memory/fallback-store.js.map +1 -1
- package/dist/memory/in-memory-store.d.ts.map +1 -1
- package/dist/memory/in-memory-store.js +8 -8
- package/dist/memory/in-memory-store.js.map +1 -1
- package/dist/memory/indexer.d.ts.map +1 -1
- package/dist/memory/indexer.js +4 -1
- package/dist/memory/indexer.js.map +1 -1
- package/dist/memory/manager.d.ts.map +1 -1
- package/dist/memory/manager.js +17 -20
- package/dist/memory/manager.js.map +1 -1
- package/dist/memory/sqlite-store.js +12 -8
- package/dist/memory/sqlite-store.js.map +1 -1
- package/dist/memory/swarm-memory.d.ts.map +1 -1
- package/dist/memory/swarm-memory.js +37 -44
- package/dist/memory/swarm-memory.js.map +1 -1
- package/dist/migration/index.d.ts +4 -0
- package/dist/migration/index.d.ts.map +1 -1
- package/dist/migration/index.js +8 -8
- package/dist/migration/index.js.map +1 -1
- package/dist/migration/logger.d.ts.map +1 -1
- package/dist/migration/logger.js +5 -5
- package/dist/migration/logger.js.map +1 -1
- package/dist/migration/migration-analyzer.d.ts +3 -0
- package/dist/migration/migration-analyzer.d.ts.map +1 -1
- package/dist/migration/migration-analyzer.js +25 -20
- package/dist/migration/migration-analyzer.js.map +1 -1
- package/dist/migration/migration-runner.d.ts.map +1 -1
- package/dist/migration/migration-runner.js +35 -29
- package/dist/migration/migration-runner.js.map +1 -1
- package/dist/migration/migration-validator.d.ts +3 -0
- package/dist/migration/migration-validator.d.ts.map +1 -1
- package/dist/migration/migration-validator.js +22 -26
- package/dist/migration/migration-validator.js.map +1 -1
- package/dist/migration/progress-reporter.d.ts +3 -0
- package/dist/migration/progress-reporter.d.ts.map +1 -1
- package/dist/migration/progress-reporter.js +8 -8
- package/dist/migration/progress-reporter.js.map +1 -1
- package/dist/migration/rollback-manager.d.ts +3 -0
- package/dist/migration/rollback-manager.d.ts.map +1 -1
- package/dist/migration/rollback-manager.js +29 -26
- package/dist/migration/rollback-manager.js.map +1 -1
- package/dist/monitoring/diagnostics.d.ts.map +1 -1
- package/dist/monitoring/diagnostics.js +49 -37
- package/dist/monitoring/diagnostics.js.map +1 -1
- package/dist/monitoring/health-check.d.ts.map +1 -1
- package/dist/monitoring/health-check.js +24 -25
- package/dist/monitoring/health-check.js.map +1 -1
- package/dist/monitoring/real-time-monitor.d.ts.map +1 -1
- package/dist/monitoring/real-time-monitor.js +71 -58
- package/dist/monitoring/real-time-monitor.js.map +1 -1
- package/dist/resources/resource-manager.d.ts.map +1 -1
- package/dist/resources/resource-manager.js +96 -83
- package/dist/resources/resource-manager.js.map +1 -1
- package/dist/swarm/claude-flow-executor.d.ts.map +1 -1
- package/dist/swarm/claude-flow-executor.js +37 -31
- package/dist/swarm/claude-flow-executor.js.map +1 -1
- package/dist/swarm/coordinator.d.ts.map +1 -1
- package/dist/swarm/coordinator.js +330 -280
- package/dist/swarm/coordinator.js.map +1 -1
- package/dist/swarm/direct-executor.d.ts.map +1 -1
- package/dist/swarm/direct-executor.js +44 -37
- package/dist/swarm/direct-executor.js.map +1 -1
- package/dist/swarm/executor-v2.d.ts.map +1 -1
- package/dist/swarm/executor-v2.js +28 -27
- package/dist/swarm/executor-v2.js.map +1 -1
- package/dist/swarm/executor.d.ts +3 -0
- package/dist/swarm/executor.d.ts.map +1 -1
- package/dist/swarm/executor.js +58 -52
- package/dist/swarm/executor.js.map +1 -1
- package/dist/swarm/index.d.ts.map +1 -1
- package/dist/swarm/index.js +2 -2
- package/dist/swarm/index.js.map +1 -1
- package/dist/swarm/json-output-aggregator.d.ts.map +1 -1
- package/dist/swarm/json-output-aggregator.js +20 -19
- package/dist/swarm/json-output-aggregator.js.map +1 -1
- package/dist/swarm/memory.d.ts.map +1 -1
- package/dist/swarm/memory.js +67 -67
- package/dist/swarm/memory.js.map +1 -1
- package/dist/swarm/optimizations/async-file-manager.d.ts +4 -0
- package/dist/swarm/optimizations/async-file-manager.d.ts.map +1 -1
- package/dist/swarm/optimizations/async-file-manager.js +19 -23
- package/dist/swarm/optimizations/async-file-manager.js.map +1 -1
- package/dist/swarm/optimizations/circular-buffer.d.ts.map +1 -1
- package/dist/swarm/optimizations/circular-buffer.js +2 -4
- package/dist/swarm/optimizations/circular-buffer.js.map +1 -1
- package/dist/swarm/optimizations/connection-pool.d.ts.map +1 -1
- package/dist/swarm/optimizations/connection-pool.js +12 -13
- package/dist/swarm/optimizations/connection-pool.js.map +1 -1
- package/dist/swarm/optimizations/index.js +2 -2
- package/dist/swarm/optimizations/optimized-executor.d.ts.map +1 -1
- package/dist/swarm/optimizations/optimized-executor.js +23 -29
- package/dist/swarm/optimizations/optimized-executor.js.map +1 -1
- package/dist/swarm/optimizations/ttl-map.d.ts.map +1 -1
- package/dist/swarm/optimizations/ttl-map.js +4 -4
- package/dist/swarm/optimizations/ttl-map.js.map +1 -1
- package/dist/swarm/prompt-cli.d.ts.map +1 -1
- package/dist/swarm/prompt-cli.js +18 -13
- package/dist/swarm/prompt-cli.js.map +1 -1
- package/dist/swarm/prompt-copier-enhanced.d.ts.map +1 -1
- package/dist/swarm/prompt-copier-enhanced.js +12 -12
- package/dist/swarm/prompt-copier-enhanced.js.map +1 -1
- package/dist/swarm/prompt-copier.d.ts.map +1 -1
- package/dist/swarm/prompt-copier.js +15 -18
- package/dist/swarm/prompt-copier.js.map +1 -1
- package/dist/swarm/prompt-manager.d.ts.map +1 -1
- package/dist/swarm/prompt-manager.js +27 -21
- package/dist/swarm/prompt-manager.js.map +1 -1
- package/dist/swarm/prompt-utils.d.ts.map +1 -1
- package/dist/swarm/prompt-utils.js +34 -32
- package/dist/swarm/prompt-utils.js.map +1 -1
- package/dist/swarm/sparc-executor.d.ts.map +1 -1
- package/dist/swarm/sparc-executor.js +189 -123
- package/dist/swarm/sparc-executor.js.map +1 -1
- package/dist/swarm/strategies/auto.d.ts.map +1 -1
- package/dist/swarm/strategies/auto.js +105 -86
- package/dist/swarm/strategies/auto.js.map +1 -1
- package/dist/swarm/strategies/base.d.ts.map +1 -1
- package/dist/swarm/strategies/base.js +14 -11
- package/dist/swarm/strategies/base.js.map +1 -1
- package/dist/swarm/strategies/research.d.ts.map +1 -1
- package/dist/swarm/strategies/research.js +76 -71
- package/dist/swarm/strategies/research.js.map +1 -1
- package/dist/swarm/types.d.ts.map +1 -1
- package/dist/swarm/types.js +3 -0
- package/dist/swarm/types.js.map +1 -1
- package/dist/swarm/workers/copy-worker.js +4 -4
- package/dist/swarm/workers/copy-worker.js.map +1 -1
- package/dist/task/commands.d.ts.map +1 -1
- package/dist/task/commands.js +11 -7
- package/dist/task/commands.js.map +1 -1
- package/dist/task/coordination.d.ts.map +1 -1
- package/dist/task/coordination.js +75 -70
- package/dist/task/coordination.js.map +1 -1
- package/dist/task/engine.d.ts.map +1 -1
- package/dist/task/engine.js +34 -32
- package/dist/task/engine.js.map +1 -1
- package/dist/task/index.d.ts +3 -3
- package/dist/task/index.d.ts.map +1 -1
- package/dist/task/index.js +11 -11
- package/dist/task/index.js.map +1 -1
- package/dist/terminal/adapters/native.d.ts.map +1 -1
- package/dist/terminal/adapters/native.js +6 -6
- package/dist/terminal/adapters/native.js.map +1 -1
- package/dist/terminal/adapters/vscode.d.ts +3 -0
- package/dist/terminal/adapters/vscode.d.ts.map +1 -1
- package/dist/terminal/adapters/vscode.js +6 -4
- package/dist/terminal/adapters/vscode.js.map +1 -1
- package/dist/terminal/manager.d.ts.map +1 -1
- package/dist/terminal/manager.js +6 -8
- package/dist/terminal/manager.js.map +1 -1
- package/dist/terminal/pool.d.ts.map +1 -1
- package/dist/terminal/pool.js +3 -0
- package/dist/terminal/pool.js.map +1 -1
- package/dist/terminal/session.d.ts.map +1 -1
- package/dist/terminal/session.js +6 -2
- package/dist/terminal/session.js.map +1 -1
- package/dist/ui/hive-dashboard.d.ts.map +1 -1
- package/dist/ui/hive-dashboard.js +52 -33
- package/dist/ui/hive-dashboard.js.map +1 -1
- package/dist/utils/error-handler.d.ts.map +1 -1
- package/dist/utils/error-handler.js +1 -1
- package/dist/utils/error-handler.js.map +1 -1
- package/dist/utils/errors.d.ts.map +1 -1
- package/dist/utils/errors.js.map +1 -1
- package/dist/utils/helpers.d.ts +3 -0
- package/dist/utils/helpers.d.ts.map +1 -1
- package/dist/utils/helpers.js +5 -8
- package/dist/utils/helpers.js.map +1 -1
- package/dist/utils/npx-isolated-cache.js +3 -3
- package/dist/utils/npx-isolated-cache.js.map +1 -1
- package/dist/utils/paths.d.ts.map +1 -1
- package/dist/utils/paths.js +8 -4
- package/dist/utils/paths.js.map +1 -1
- package/dist/utils/type-guards.d.ts +1 -1
- package/dist/utils/type-guards.d.ts.map +1 -1
- package/dist/utils/type-guards.js +11 -10
- package/dist/utils/type-guards.js.map +1 -1
- package/package.json +7 -6
- package/src/adapters/cliffy-node.ts +27 -22
- package/src/agents/agent-manager.ts +145 -121
- package/src/agents/agent-registry.ts +77 -70
- package/src/api/claude-client.ts +59 -38
- package/src/api/routes/analysis.js +750 -735
- package/src/cli/__tests__/command-registry.test.js +42 -32
- package/src/cli/__tests__/simple-cli.test.js +42 -37
- package/src/cli/__tests__/utils.test.js +9 -9
- package/src/cli/agents/README.md +30 -4
- package/src/cli/agents/analyst.ts +161 -163
- package/src/cli/agents/architect.ts +126 -131
- package/src/cli/agents/base-agent.ts +48 -47
- package/src/cli/agents/capabilities.ts +87 -85
- package/src/cli/agents/coder.ts +127 -120
- package/src/cli/agents/coordinator.ts +72 -72
- package/src/cli/agents/hive-agents.ts +96 -70
- package/src/cli/agents/index.ts +70 -55
- package/src/cli/agents/researcher.ts +63 -74
- package/src/cli/agents/tester.ts +91 -98
- package/src/cli/cli-core.ts +56 -47
- package/src/cli/command-registry.js +125 -83
- package/src/cli/commands/advanced-memory-commands.ts +210 -142
- package/src/cli/commands/agent-simple.ts +146 -114
- package/src/cli/commands/agent.ts +119 -95
- package/src/cli/commands/claude-api.ts +19 -15
- package/src/cli/commands/claude.ts +96 -88
- package/src/cli/commands/config-integration.ts +120 -101
- package/src/cli/commands/config.ts +10 -8
- package/src/cli/commands/enterprise.ts +323 -187
- package/src/cli/commands/help-new.ts +246 -0
- package/src/cli/commands/help.ts +326 -183
- package/src/cli/commands/hive-mind/index.ts +3 -3
- package/src/cli/commands/hive-mind/init.ts +19 -12
- package/src/cli/commands/hive-mind/optimize-memory.ts +83 -53
- package/src/cli/commands/hive-mind/pause.ts +27 -25
- package/src/cli/commands/hive-mind/ps.ts +43 -37
- package/src/cli/commands/hive-mind/resume.ts +26 -26
- package/src/cli/commands/hive-mind/spawn.ts +37 -29
- package/src/cli/commands/hive-mind/status.ts +51 -51
- package/src/cli/commands/hive-mind/stop.ts +56 -51
- package/src/cli/commands/hive-mind/task.ts +65 -54
- package/src/cli/commands/hive-mind/wizard.ts +181 -167
- package/src/cli/commands/hive.ts +136 -96
- package/src/cli/commands/hook-types.ts +2 -2
- package/src/cli/commands/hook-validator.ts +8 -4
- package/src/cli/commands/hook.ts +44 -42
- package/src/cli/commands/index.ts +1162 -1031
- package/src/cli/commands/mcp.ts +105 -94
- package/src/cli/commands/memory.ts +24 -21
- package/src/cli/commands/migrate.ts +24 -24
- package/src/cli/commands/monitor.ts +123 -93
- package/src/cli/commands/ruv-swarm.ts +131 -122
- package/src/cli/commands/session.ts +60 -45
- package/src/cli/commands/sparc.ts +170 -139
- package/src/cli/commands/start/event-emitter.ts +2 -2
- package/src/cli/commands/start/index.ts +1 -1
- package/src/cli/commands/start/process-manager.ts +30 -47
- package/src/cli/commands/start/process-ui-simple.ts +60 -49
- package/src/cli/commands/start/process-ui.ts +1 -1
- package/src/cli/commands/start/start-command.ts +104 -75
- package/src/cli/commands/start/system-monitor.ts +35 -41
- package/src/cli/commands/start/types.ts +3 -3
- package/src/cli/commands/start.ts +1 -1
- package/src/cli/commands/status.ts +67 -67
- package/src/cli/commands/swarm-spawn.ts +21 -12
- package/src/cli/commands/swarm.ts +221 -150
- package/src/cli/commands/task.ts +55 -55
- package/src/cli/commands/workflow.ts +174 -157
- package/src/cli/completion.ts +34 -19
- package/src/cli/create-enhanced-task.js +49 -17
- package/src/cli/formatter.ts +38 -37
- package/src/cli/help-formatter.js +145 -0
- package/src/cli/help-formatter.ts +173 -0
- package/src/cli/help-text.js +273 -6
- package/src/cli/index-remote.ts +12 -9
- package/src/cli/index.ts +77 -67
- package/src/cli/init/batch-tools.ts +4 -5
- package/src/cli/init/claude-config.ts +125 -118
- package/src/cli/init/directory-structure.ts +10 -11
- package/src/cli/init/index.ts +13 -13
- package/src/cli/init/sparc-environment.ts +90 -74
- package/src/cli/init/swarm-commands.ts +5 -6
- package/src/cli/init/utils.ts +1 -1
- package/src/cli/main.ts +9 -10
- package/src/cli/node-compat.js +26 -19
- package/src/cli/node-repl.ts +104 -87
- package/src/cli/repl.ts +190 -158
- package/src/cli/runtime-detector.js +24 -19
- package/src/cli/simple-cli.js +479 -394
- package/src/cli/simple-cli.ts +426 -366
- package/src/cli/simple-commands/__tests__/agent.test.js +49 -55
- package/src/cli/simple-commands/__tests__/memory.test.js +4 -401
- package/src/cli/simple-commands/__tests__/swarm.test.js +49 -55
- package/src/cli/simple-commands/__tests__/task.test.js +4 -478
- package/src/cli/simple-commands/agent.js +27 -27
- package/src/cli/simple-commands/analysis.js +179 -161
- package/src/cli/simple-commands/automation.js +226 -205
- package/src/cli/simple-commands/batch-manager.js +98 -88
- package/src/cli/simple-commands/config.js +65 -60
- package/src/cli/simple-commands/coordination.js +197 -185
- package/src/cli/simple-commands/enhanced-ui-views.js +142 -115
- package/src/cli/simple-commands/enhanced-webui-complete.js +267 -167
- package/src/cli/simple-commands/fix-hook-variables.js +73 -67
- package/src/cli/simple-commands/github/gh-coordinator.js +63 -53
- package/src/cli/simple-commands/github/github-api.js +45 -47
- package/src/cli/simple-commands/github.js +33 -34
- package/src/cli/simple-commands/hive-mind/auto-save-middleware.js +44 -40
- package/src/cli/simple-commands/hive-mind/communication.js +198 -185
- package/src/cli/simple-commands/hive-mind/core.js +289 -304
- package/src/cli/simple-commands/hive-mind/db-optimizer.js +278 -168
- package/src/cli/simple-commands/hive-mind/mcp-wrapper.js +352 -258
- package/src/cli/simple-commands/hive-mind/memory.js +356 -287
- package/src/cli/simple-commands/hive-mind/performance-optimizer.js +88 -79
- package/src/cli/simple-commands/hive-mind/performance-test.js +61 -49
- package/src/cli/simple-commands/hive-mind/queen.js +223 -213
- package/src/cli/simple-commands/hive-mind/session-manager.js +217 -157
- package/src/cli/simple-commands/hive-mind-optimize.js +69 -65
- package/src/cli/simple-commands/hive-mind-wizard.js +213 -211
- package/src/cli/simple-commands/hive-mind.js +602 -435
- package/src/cli/simple-commands/hive.js +12 -12
- package/src/cli/simple-commands/hook-safety.js +114 -111
- package/src/cli/simple-commands/hooks.js +1077 -1017
- package/src/cli/simple-commands/init/README.md +8 -1
- package/src/cli/simple-commands/init/VALIDATION_ROLLBACK.md +27 -1
- package/src/cli/simple-commands/init/batch-init.js +105 -100
- package/src/cli/simple-commands/init/claude-commands/claude-flow-commands.js +6 -6
- package/src/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.js +6 -6
- package/src/cli/simple-commands/init/claude-commands/optimized-slash-commands.js +20 -18
- package/src/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js +85 -71
- package/src/cli/simple-commands/init/claude-commands/slash-commands.js +6 -7
- package/src/cli/simple-commands/init/claude-commands/sparc-commands.js +42 -33
- package/src/cli/simple-commands/init/executable-wrapper.js +13 -10
- package/src/cli/simple-commands/init/gitignore-updater.js +22 -22
- package/src/cli/simple-commands/init/help.js +4 -2
- package/src/cli/simple-commands/init/index.js +405 -303
- package/src/cli/simple-commands/init/performance-monitor.js +71 -64
- package/src/cli/simple-commands/init/rollback/backup-manager.js +44 -64
- package/src/cli/simple-commands/init/rollback/index.js +31 -39
- package/src/cli/simple-commands/init/rollback/recovery-manager.js +71 -101
- package/src/cli/simple-commands/init/rollback/rollback-executor.js +34 -53
- package/src/cli/simple-commands/init/rollback/state-tracker.js +38 -49
- package/src/cli/simple-commands/init/sparc/roo-readme.js +1 -1
- package/src/cli/simple-commands/init/sparc/roomodes-config.js +99 -77
- package/src/cli/simple-commands/init/sparc/workflows.js +37 -33
- package/src/cli/simple-commands/init/sparc-structure.js +9 -10
- package/src/cli/simple-commands/init/templates/CLAUDE.md +94 -26
- package/src/cli/simple-commands/init/templates/claude-flow-universal +9 -7
- package/src/cli/simple-commands/init/templates/claude-md.js +1 -1
- package/src/cli/simple-commands/init/templates/commands/analysis/bottleneck-detect.md +15 -3
- package/src/cli/simple-commands/init/templates/commands/automation/auto-agent.md +12 -2
- package/src/cli/simple-commands/init/templates/commands/coordination/swarm-init.md +10 -1
- package/src/cli/simple-commands/init/templates/commands/github/github-swarm.md +18 -5
- package/src/cli/simple-commands/init/templates/commands/hooks/notification.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/post-command.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/post-edit.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/post-task.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/pre-command.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/pre-edit.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/pre-search.md +13 -6
- package/src/cli/simple-commands/init/templates/commands/hooks/pre-task.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/session-end.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/session-restore.md +13 -5
- package/src/cli/simple-commands/init/templates/commands/hooks/session-start.md +12 -1
- package/src/cli/simple-commands/init/templates/coordination-md.js +1 -1
- package/src/cli/simple-commands/init/templates/enhanced-templates.js +116 -113
- package/src/cli/simple-commands/init/templates/memory-bank-md.js +1 -1
- package/src/cli/simple-commands/init/templates/readme-files.js +1 -1
- package/src/cli/simple-commands/init/templates/safe-hook-patterns.js +176 -127
- package/src/cli/simple-commands/init/templates/settings.json +2 -5
- package/src/cli/simple-commands/init/templates/sparc-modes.js +3 -3
- package/src/cli/simple-commands/init/validation/config-validator.js +17 -28
- package/src/cli/simple-commands/init/validation/health-checker.js +54 -62
- package/src/cli/simple-commands/init/validation/index.js +18 -23
- package/src/cli/simple-commands/init/validation/mode-validator.js +22 -32
- package/src/cli/simple-commands/init/validation/post-init-validator.js +25 -26
- package/src/cli/simple-commands/init/validation/pre-init-validator.js +32 -36
- package/src/cli/simple-commands/init/validation/test-runner.js +55 -63
- package/src/cli/simple-commands/init.js +1 -1
- package/src/cli/simple-commands/mcp-integration-layer.js +179 -110
- package/src/cli/simple-commands/mcp.js +55 -48
- package/src/cli/simple-commands/memory.js +62 -56
- package/src/cli/simple-commands/migrate-hooks.js +9 -10
- package/src/cli/simple-commands/monitor.js +87 -67
- package/src/cli/simple-commands/process-ui-enhanced.js +207 -155
- package/src/cli/simple-commands/process-ui.js +65 -56
- package/src/cli/simple-commands/realtime-update-system.js +136 -129
- package/src/cli/simple-commands/sparc/architecture.js +352 -251
- package/src/cli/simple-commands/sparc/commands.js +122 -94
- package/src/cli/simple-commands/sparc/completion.js +274 -199
- package/src/cli/simple-commands/sparc/coordinator.js +217 -169
- package/src/cli/simple-commands/sparc/index.js +40 -36
- package/src/cli/simple-commands/sparc/phase-base.js +72 -58
- package/src/cli/simple-commands/sparc/pseudocode.js +275 -159
- package/src/cli/simple-commands/sparc/refinement.js +306 -212
- package/src/cli/simple-commands/sparc/specification.js +164 -94
- package/src/cli/simple-commands/sparc-modes/architect.js +1 -1
- package/src/cli/simple-commands/sparc-modes/ask.js +1 -1
- package/src/cli/simple-commands/sparc-modes/code.js +1 -1
- package/src/cli/simple-commands/sparc-modes/debug.js +1 -1
- package/src/cli/simple-commands/sparc-modes/devops.js +1 -1
- package/src/cli/simple-commands/sparc-modes/docs-writer.js +1 -1
- package/src/cli/simple-commands/sparc-modes/generic.js +1 -1
- package/src/cli/simple-commands/sparc-modes/index.js +15 -15
- package/src/cli/simple-commands/sparc-modes/integration.js +1 -1
- package/src/cli/simple-commands/sparc-modes/mcp.js +1 -1
- package/src/cli/simple-commands/sparc-modes/monitoring.js +1 -1
- package/src/cli/simple-commands/sparc-modes/optimization.js +1 -1
- package/src/cli/simple-commands/sparc-modes/security-review.js +1 -1
- package/src/cli/simple-commands/sparc-modes/sparc-orchestrator.js +1 -1
- package/src/cli/simple-commands/sparc-modes/spec-pseudocode.js +1 -1
- package/src/cli/simple-commands/sparc-modes/supabase-admin.js +1 -1
- package/src/cli/simple-commands/sparc-modes/swarm.js +52 -52
- package/src/cli/simple-commands/sparc-modes/tdd.js +1 -1
- package/src/cli/simple-commands/sparc-modes/tutorial.js +1 -1
- package/src/cli/simple-commands/sparc.js +87 -69
- package/src/cli/simple-commands/start-ui.js +21 -20
- package/src/cli/simple-commands/start-wrapper.js +29 -31
- package/src/cli/simple-commands/start.js +1 -1
- package/src/cli/simple-commands/status.js +53 -47
- package/src/cli/simple-commands/swarm-executor.js +47 -57
- package/src/cli/simple-commands/swarm-metrics-integration.js +119 -79
- package/src/cli/simple-commands/swarm-ui.js +120 -118
- package/src/cli/simple-commands/swarm-webui-integration.js +48 -27
- package/src/cli/simple-commands/swarm.js +216 -181
- package/src/cli/simple-commands/task.js +29 -29
- package/src/cli/simple-commands/timestamp-fix.js +28 -25
- package/src/cli/simple-commands/tool-execution-framework.js +115 -118
- package/src/cli/simple-commands/training.js +219 -194
- package/src/cli/simple-commands/web-server.js +118 -117
- package/src/cli/simple-commands/webui-validator.js +4 -3
- package/src/cli/simple-mcp.ts +14 -17
- package/src/cli/simple-orchestrator.ts +113 -101
- package/src/cli/swarm-standalone.js +20 -21
- package/src/cli/ui/compatible-ui.ts +55 -44
- package/src/cli/ui/fallback-handler.ts +19 -16
- package/src/cli/ui/index.ts +14 -15
- package/src/cli/utils/environment-detector.ts +75 -67
- package/src/cli/utils/interactive-detector.js +17 -11
- package/src/cli/utils/prompt-defaults.ts +32 -28
- package/src/cli/utils/safe-interactive.js +21 -20
- package/src/cli/utils.js +127 -110
- package/src/cli/validation-helper.js +113 -0
- package/src/cli/validation-helper.ts +128 -0
- package/src/communication/message-bus.ts +137 -124
- package/src/config/config-manager.ts +62 -30
- package/src/config/ruv-swarm-config.ts +105 -86
- package/src/config/ruv-swarm-integration.ts +38 -38
- package/src/constants/agent-types.ts +9 -8
- package/src/coordination/README.md +54 -31
- package/src/coordination/advanced-scheduler.ts +23 -26
- package/src/coordination/advanced-task-executor.ts +74 -68
- package/src/coordination/background-executor.ts +33 -30
- package/src/coordination/circuit-breaker.ts +26 -27
- package/src/coordination/conflict-resolution.ts +18 -27
- package/src/coordination/dependency-graph.ts +15 -18
- package/src/coordination/hive-orchestrator.ts +111 -81
- package/src/coordination/hive-protocol.ts +68 -77
- package/src/coordination/index.ts +3 -7
- package/src/coordination/load-balancer.ts +115 -105
- package/src/coordination/manager.ts +38 -51
- package/src/coordination/messaging.ts +19 -29
- package/src/coordination/metrics.ts +57 -60
- package/src/coordination/resources.ts +32 -37
- package/src/coordination/scheduler.ts +29 -30
- package/src/coordination/swarm-coordinator.ts +81 -70
- package/src/coordination/swarm-monitor.ts +90 -69
- package/src/coordination/work-stealing.ts +6 -13
- package/src/core/config.ts +148 -143
- package/src/core/event-bus.ts +5 -6
- package/src/core/json-persistence.ts +27 -34
- package/src/core/logger.ts +13 -16
- package/src/core/orchestrator-fixed.ts +33 -32
- package/src/core/orchestrator.ts +166 -159
- package/src/core/persistence.ts +47 -36
- package/src/enterprise/analytics-manager.ts +242 -233
- package/src/enterprise/audit-manager.ts +238 -184
- package/src/enterprise/cloud-manager.ts +167 -151
- package/src/enterprise/deployment-manager.ts +223 -180
- package/src/enterprise/index.ts +7 -7
- package/src/enterprise/project-manager.ts +151 -133
- package/src/enterprise/security-manager.ts +278 -223
- package/src/hive-mind/core/Agent.ts +112 -109
- package/src/hive-mind/core/Communication.ts +67 -69
- package/src/hive-mind/core/DatabaseManager.ts +299 -166
- package/src/hive-mind/core/HiveMind.ts +100 -96
- package/src/hive-mind/core/Memory.ts +304 -295
- package/src/hive-mind/core/MemoryMonitor.ts +46 -47
- package/src/hive-mind/core/Queen.ts +187 -114
- package/src/hive-mind/index.ts +2 -2
- package/src/hive-mind/integration/ConsensusEngine.ts +88 -92
- package/src/hive-mind/integration/MCPToolWrapper.ts +20 -72
- package/src/hive-mind/integration/SwarmOrchestrator.ts +173 -165
- package/src/hive-mind/types.ts +24 -12
- package/src/integration/mock-components.ts +42 -30
- package/src/integration/system-integration.ts +93 -69
- package/src/integration/types.ts +7 -7
- package/src/mcp/README.md +23 -4
- package/src/mcp/auth.ts +25 -18
- package/src/mcp/claude-code-wrapper.ts +257 -150
- package/src/mcp/claude-flow-tools.ts +52 -13
- package/src/mcp/client.ts +15 -13
- package/src/mcp/index.ts +22 -27
- package/src/mcp/integrate-wrapper.ts +18 -18
- package/src/mcp/lifecycle-manager.ts +30 -27
- package/src/mcp/load-balancer.ts +10 -11
- package/src/mcp/mcp-server.js +755 -370
- package/src/mcp/orchestration-integration.ts +32 -17
- package/src/mcp/performance-monitor.ts +65 -51
- package/src/mcp/protocol-manager.ts +36 -52
- package/src/mcp/recovery/connection-health-monitor.ts +40 -35
- package/src/mcp/recovery/connection-state-manager.ts +52 -50
- package/src/mcp/recovery/fallback-coordinator.ts +24 -24
- package/src/mcp/recovery/index.ts +23 -4
- package/src/mcp/recovery/reconnection-manager.ts +14 -15
- package/src/mcp/recovery/recovery-manager.ts +52 -68
- package/src/mcp/router.ts +1 -2
- package/src/mcp/ruv-swarm-tools.ts +167 -138
- package/src/mcp/ruv-swarm-wrapper.js +31 -23
- package/src/mcp/server-with-wrapper.ts +4 -5
- package/src/mcp/server-wrapper-mode.ts +5 -6
- package/src/mcp/server.ts +45 -40
- package/src/mcp/session-manager.ts +8 -11
- package/src/mcp/sparc-modes.ts +29 -28
- package/src/mcp/swarm-tools.ts +131 -114
- package/src/mcp/tests/mcp-integration.test.ts +49 -55
- package/src/mcp/tools.ts +53 -38
- package/src/mcp/transports/base.ts +4 -5
- package/src/mcp/transports/http.ts +45 -42
- package/src/mcp/transports/stdio.ts +9 -12
- package/src/memory/README.md +37 -27
- package/src/memory/advanced-memory-manager.ts +336 -279
- package/src/memory/backends/base.ts +4 -5
- package/src/memory/backends/markdown.ts +16 -22
- package/src/memory/backends/sqlite.ts +19 -15
- package/src/memory/cache.ts +18 -18
- package/src/memory/distributed-memory.ts +84 -92
- package/src/memory/enhanced-examples.js +68 -59
- package/src/memory/enhanced-memory.js +99 -80
- package/src/memory/fallback-store.js +16 -7
- package/src/memory/in-memory-store.js +31 -27
- package/src/memory/index.js +4 -4
- package/src/memory/indexer.ts +6 -10
- package/src/memory/manager.ts +45 -59
- package/src/memory/migration.js +107 -90
- package/src/memory/shared-memory.js +155 -157
- package/src/memory/sqlite-store.js +76 -59
- package/src/memory/swarm-memory.js +138 -131
- package/src/memory/swarm-memory.ts +74 -75
- package/src/memory/test-example.js +28 -30
- package/src/migration/README.md +25 -9
- package/src/migration/index.ts +13 -14
- package/src/migration/logger.ts +9 -7
- package/src/migration/migration-analyzer.ts +66 -52
- package/src/migration/migration-manifest.json +2 -6
- package/src/migration/migration-runner.ts +86 -63
- package/src/migration/migration-validator.ts +93 -68
- package/src/migration/package.json +1 -1
- package/src/migration/progress-reporter.ts +25 -21
- package/src/migration/rollback-manager.ts +79 -63
- package/src/migration/tests/migration-system.test.ts +4 -491
- package/src/migration/tsconfig.json +3 -10
- package/src/migration/types.ts +1 -1
- package/src/monitoring/diagnostics.ts +123 -97
- package/src/monitoring/health-check.ts +45 -51
- package/src/monitoring/real-time-monitor.ts +105 -92
- package/src/resources/resource-manager.ts +205 -159
- package/src/swarm/__tests__/integration.test.ts +59 -65
- package/src/swarm/__tests__/prompt-copier.test.ts +27 -27
- package/src/swarm/claude-flow-executor.ts +50 -49
- package/src/swarm/coordinator.ts +727 -635
- package/src/swarm/direct-executor.ts +80 -86
- package/src/swarm/executor-v2.ts +81 -66
- package/src/swarm/executor.ts +124 -124
- package/src/swarm/index.ts +7 -8
- package/src/swarm/json-output-aggregator.ts +56 -40
- package/src/swarm/memory.ts +152 -147
- package/src/swarm/optimizations/README.md +20 -12
- package/src/swarm/optimizations/__tests__/optimization.test.ts +84 -87
- package/src/swarm/optimizations/async-file-manager.ts +70 -80
- package/src/swarm/optimizations/circular-buffer.ts +37 -37
- package/src/swarm/optimizations/connection-pool.ts +64 -64
- package/src/swarm/optimizations/index.ts +4 -4
- package/src/swarm/optimizations/migration-guide.md +27 -16
- package/src/swarm/optimizations/optimized-executor.ts +104 -114
- package/src/swarm/optimizations/ttl-map.ts +66 -63
- package/src/swarm/prompt-cli.ts +48 -42
- package/src/swarm/prompt-copier-enhanced.ts +54 -55
- package/src/swarm/prompt-copier.ts +59 -65
- package/src/swarm/prompt-copying-README.md +49 -33
- package/src/swarm/prompt-manager.ts +69 -63
- package/src/swarm/prompt-utils.ts +71 -66
- package/src/swarm/sparc-executor.ts +298 -225
- package/src/swarm/strategies/auto.ts +367 -252
- package/src/swarm/strategies/base.ts +24 -20
- package/src/swarm/strategies/research.ts +144 -124
- package/src/swarm/types.ts +340 -309
- package/src/swarm/workers/copy-worker.ts +12 -13
- package/src/task/README.md +99 -70
- package/src/task/commands.ts +16 -8
- package/src/task/coordination.ts +209 -162
- package/src/task/engine.ts +81 -65
- package/src/task/index.ts +28 -31
- package/src/templates/claude-optimized/.claude/BATCHTOOLS_BEST_PRACTICES.md +479 -481
- package/src/templates/claude-optimized/.claude/BATCHTOOLS_GUIDE.md +210 -188
- package/src/templates/claude-optimized/.claude/MIGRATION_GUIDE.md +151 -105
- package/src/templates/claude-optimized/.claude/PERFORMANCE_BENCHMARKS.md +102 -87
- package/src/templates/claude-optimized/.claude/commands/claude-flow-help.md +18 -1
- package/src/templates/claude-optimized/.claude/commands/claude-flow-memory.md +17 -1
- package/src/templates/claude-optimized/.claude/commands/claude-flow-swarm.md +21 -1
- package/src/templates/claude-optimized/.claude/commands/sparc/architect.md +11 -4
- package/src/templates/claude-optimized/.claude/commands/sparc/ask.md +16 -10
- package/src/templates/claude-optimized/.claude/commands/sparc/code.md +26 -7
- package/src/templates/claude-optimized/.claude/commands/sparc/debug.md +14 -4
- package/src/templates/claude-optimized/.claude/commands/sparc/devops.md +23 -10
- package/src/templates/claude-optimized/.claude/commands/sparc/docs-writer.md +8 -4
- package/src/templates/claude-optimized/.claude/commands/sparc/integration.md +43 -27
- package/src/templates/claude-optimized/.claude/commands/sparc/mcp.md +15 -1
- package/src/templates/claude-optimized/.claude/commands/sparc/post-deployment-monitoring-mode.md +45 -30
- package/src/templates/claude-optimized/.claude/commands/sparc/refinement-optimization-mode.md +23 -13
- package/src/templates/claude-optimized/.claude/commands/sparc/security-review.md +31 -17
- package/src/templates/claude-optimized/.claude/commands/sparc/sparc.md +54 -47
- package/src/templates/claude-optimized/.claude/commands/sparc/spec-pseudocode.md +27 -17
- package/src/templates/claude-optimized/.claude/commands/sparc/supabase-admin.md +18 -4
- package/src/templates/claude-optimized/.claude/commands/sparc/tdd.md +23 -9
- package/src/templates/claude-optimized/.claude/commands/sparc/tutorial.md +22 -16
- package/src/templates/claude-optimized/.claude/commands/sparc.md +20 -1
- package/src/templates/claude-optimized/README.md +10 -1
- package/src/templates/claude-optimized/SUMMARY.md +23 -1
- package/src/templates/claude-optimized/deploy-to-project.js +22 -10
- package/src/templates/claude-optimized/install-template.js +14 -10
- package/src/templates/claude-optimized/manifest.json +1 -1
- package/src/templates/claude-optimized/package.json +1 -1
- package/src/templates/claude-optimized/template-manager.js +8 -8
- package/src/templates/claude-optimized/validate-template.js +33 -23
- package/src/terminal/adapters/base.ts +1 -1
- package/src/terminal/adapters/native.ts +47 -47
- package/src/terminal/adapters/vscode.ts +21 -28
- package/src/terminal/manager.ts +27 -22
- package/src/terminal/pool.ts +24 -27
- package/src/terminal/session.ts +18 -18
- package/src/terminal/vscode-bridge.ts +21 -21
- package/src/tests/validation-consistency.test.ts +4 -4
- package/src/types/cliffy.d.ts +11 -14
- package/src/types/global.d.ts +1 -2
- package/src/types/index.ts +2 -2
- package/src/types/mcp.d.ts +11 -17
- package/src/types/vscode.d.ts +18 -5
- package/src/ui/console/README-analysis-tools.md +52 -2
- package/src/ui/console/README.md +33 -1
- package/src/ui/console/WORKFLOW_DESIGNER_README.md +81 -22
- package/src/ui/console/analysis-tools.html +282 -261
- package/src/ui/console/analytics.html +329 -326
- package/src/ui/console/index.html +221 -209
- package/src/ui/console/js/analysis-tools.js +815 -754
- package/src/ui/console/js/command-handler.js +226 -196
- package/src/ui/console/js/console.js +117 -119
- package/src/ui/console/js/daa-tools.js +797 -787
- package/src/ui/console/js/memory-interface.js +676 -638
- package/src/ui/console/js/memory-test.js +49 -46
- package/src/ui/console/js/memory-tools.js +181 -159
- package/src/ui/console/js/settings.js +124 -103
- package/src/ui/console/js/terminal-emulator.js +147 -130
- package/src/ui/console/js/websocket-client.js +71 -71
- package/src/ui/console/js/workflow-designer.js +1126 -1110
- package/src/ui/console/neural-networks-demo.md +45 -16
- package/src/ui/console/styles/analysis-tools.css +571 -561
- package/src/ui/console/styles/console.css +16 -12
- package/src/ui/console/styles/daa-tools.css +322 -319
- package/src/ui/console/styles/responsive.css +71 -70
- package/src/ui/console/styles/settings.css +12 -12
- package/src/ui/console/styles/workflow-designer.css +628 -584
- package/src/ui/console/test-neural-networks.js +59 -54
- package/src/ui/console/test-neural.html +194 -196
- package/src/ui/console/workflow-designer-demo.html +433 -424
- package/src/ui/hive-dashboard.ts +74 -52
- package/src/ui/web-ui/EnhancedProcessUI.js +570 -424
- package/src/ui/web-ui/EnhancedWebUI.js +65 -65
- package/src/ui/web-ui/README.md +16 -16
- package/src/ui/web-ui/components/ComponentLibrary.js +173 -124
- package/src/ui/web-ui/core/EventBus.js +27 -25
- package/src/ui/web-ui/core/MCPIntegrationLayer.js +294 -108
- package/src/ui/web-ui/core/StateManager.js +43 -46
- package/src/ui/web-ui/core/UIManager.js +120 -70
- package/src/ui/web-ui/core/ViewManager.js +16 -19
- package/src/ui/web-ui/index.js +101 -48
- package/src/ui/web-ui/neural-panel-test.js +109 -108
- package/src/ui/web-ui/test-github-view.js +11 -12
- package/src/ui/web-ui/test-neural-panel.html +219 -205
- package/src/ui/web-ui/views/DAAView.js +88 -85
- package/src/ui/web-ui/views/GitHubIntegrationTest.js +42 -42
- package/src/ui/web-ui/views/GitHubIntegrationView.js +59 -53
- package/src/ui/web-ui/views/NeuralNetworkView.js +20 -21
- package/src/ui/web-ui/views/WorkflowAutomationView.js +31 -32
- package/src/utils/error-handler.js +1 -1
- package/src/utils/error-handler.ts +9 -5
- package/src/utils/errors.ts +20 -18
- package/src/utils/formatters.ts +6 -6
- package/src/utils/helpers.ts +53 -55
- package/src/utils/npx-isolated-cache.js +16 -16
- package/src/utils/paths.ts +9 -6
- package/src/utils/timezone-utils.js +16 -16
- package/src/utils/type-guards.ts +37 -26
- package/src/utils/types.ts +2 -2
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
## 🚨 CRITICAL: PARALLEL EXECUTION AFTER SWARM INIT
|
|
4
4
|
|
|
5
5
|
**MANDATORY RULE**: Once swarm is initialized with memory, ALL subsequent operations MUST be parallel:
|
|
6
|
+
|
|
6
7
|
1. **TodoWrite** → Always batch 5-10+ todos in ONE call
|
|
7
|
-
2. **Task spawning** → Spawn ALL agents in ONE message
|
|
8
|
+
2. **Task spawning** → Spawn ALL agents in ONE message
|
|
8
9
|
3. **File operations** → Batch ALL reads/writes together
|
|
9
10
|
4. **NEVER** operate sequentially after swarm init
|
|
10
11
|
|
|
@@ -13,6 +14,7 @@
|
|
|
13
14
|
**ABSOLUTE RULE**: ALL operations MUST be concurrent/parallel in a single message:
|
|
14
15
|
|
|
15
16
|
### 🔴 MANDATORY CONCURRENT PATTERNS:
|
|
17
|
+
|
|
16
18
|
1. **TodoWrite**: ALWAYS batch ALL todos in ONE call (5-10+ todos minimum)
|
|
17
19
|
2. **Task tool**: ALWAYS spawn ALL agents in ONE message with full instructions
|
|
18
20
|
3. **File operations**: ALWAYS batch ALL reads/writes/edits in ONE message
|
|
@@ -22,6 +24,7 @@
|
|
|
22
24
|
### ⚡ GOLDEN RULE: "1 MESSAGE = ALL RELATED OPERATIONS"
|
|
23
25
|
|
|
24
26
|
**Examples of CORRECT concurrent execution:**
|
|
27
|
+
|
|
25
28
|
```javascript
|
|
26
29
|
// ✅ CORRECT: Everything in ONE message
|
|
27
30
|
[Single Message]:
|
|
@@ -40,6 +43,7 @@
|
|
|
40
43
|
```
|
|
41
44
|
|
|
42
45
|
**Examples of WRONG sequential execution:**
|
|
46
|
+
|
|
43
47
|
```javascript
|
|
44
48
|
// ❌ WRONG: Multiple messages (NEVER DO THIS)
|
|
45
49
|
Message 1: TodoWrite { todos: [single todo] }
|
|
@@ -54,6 +58,7 @@ Message 6: Bash("npm install")
|
|
|
54
58
|
### 🎯 CONCURRENT EXECUTION CHECKLIST:
|
|
55
59
|
|
|
56
60
|
Before sending ANY message, ask yourself:
|
|
61
|
+
|
|
57
62
|
- ✅ Are ALL related TodoWrite operations batched together?
|
|
58
63
|
- ✅ Are ALL Task spawning operations in ONE message?
|
|
59
64
|
- ✅ Are ALL file operations (Read/Write/Edit) batched together?
|
|
@@ -69,6 +74,7 @@ If ANY answer is "No", you MUST combine operations into a single message!
|
|
|
69
74
|
**ABSOLUTE RULE**: Claude Code performs ALL actual work:
|
|
70
75
|
|
|
71
76
|
### ✅ Claude Code ALWAYS Handles:
|
|
77
|
+
|
|
72
78
|
- 🔧 **ALL file operations** (Read, Write, Edit, MultiEdit, Glob, Grep)
|
|
73
79
|
- 💻 **ALL code generation** and programming tasks
|
|
74
80
|
- 🖥️ **ALL bash commands** and system operations
|
|
@@ -81,6 +87,7 @@ If ANY answer is "No", you MUST combine operations into a single message!
|
|
|
81
87
|
- 🔧 **ALL debugging** and troubleshooting
|
|
82
88
|
|
|
83
89
|
### 🧠 Claude Flow MCP Tools ONLY Handle:
|
|
90
|
+
|
|
84
91
|
- 🎯 **Coordination only** - Planning Claude Code's actions
|
|
85
92
|
- 💾 **Memory management** - Storing decisions and context
|
|
86
93
|
- 🤖 **Neural features** - Learning from Claude Code's work
|
|
@@ -91,6 +98,7 @@ If ANY answer is "No", you MUST combine operations into a single message!
|
|
|
91
98
|
### 🚨 CRITICAL SEPARATION OF CONCERNS:
|
|
92
99
|
|
|
93
100
|
**❌ MCP Tools NEVER:**
|
|
101
|
+
|
|
94
102
|
- Write files or create content
|
|
95
103
|
- Execute bash commands
|
|
96
104
|
- Generate code
|
|
@@ -100,6 +108,7 @@ If ANY answer is "No", you MUST combine operations into a single message!
|
|
|
100
108
|
- Do actual implementation work
|
|
101
109
|
|
|
102
110
|
**✅ MCP Tools ONLY:**
|
|
111
|
+
|
|
103
112
|
- Coordinate and plan
|
|
104
113
|
- Store memory and context
|
|
105
114
|
- Track performance
|
|
@@ -107,11 +116,13 @@ If ANY answer is "No", you MUST combine operations into a single message!
|
|
|
107
116
|
- Provide intelligence insights
|
|
108
117
|
|
|
109
118
|
### ⚠️ Key Principle:
|
|
119
|
+
|
|
110
120
|
**MCP tools coordinate, Claude Code executes.** Think of MCP tools as the "brain" that plans and coordinates, while Claude Code is the "hands" that do all the actual work.
|
|
111
121
|
|
|
112
122
|
### 🔄 WORKFLOW EXECUTION PATTERN:
|
|
113
123
|
|
|
114
124
|
**✅ CORRECT Workflow:**
|
|
125
|
+
|
|
115
126
|
1. **MCP**: `mcp__claude-flow__swarm_init` (coordination setup)
|
|
116
127
|
2. **MCP**: `mcp__claude-flow__agent_spawn` (planning agents)
|
|
117
128
|
3. **MCP**: `mcp__claude-flow__task_orchestrate` (task coordination)
|
|
@@ -121,6 +132,7 @@ If ANY answer is "No", you MUST combine operations into a single message!
|
|
|
121
132
|
7. **MCP**: `mcp__claude-flow__memory_usage` (store results)
|
|
122
133
|
|
|
123
134
|
**❌ WRONG Workflow:**
|
|
135
|
+
|
|
124
136
|
1. **MCP**: `mcp__claude-flow__terminal_execute` (DON'T DO THIS)
|
|
125
137
|
2. **MCP**: File creation via MCP (DON'T DO THIS)
|
|
126
138
|
3. **MCP**: Code generation via MCP (DON'T DO THIS)
|
|
@@ -128,6 +140,7 @@ If ANY answer is "No", you MUST combine operations into a single message!
|
|
|
128
140
|
5. **Claude Code**: Individual TodoWrite calls (DON'T DO THIS)
|
|
129
141
|
|
|
130
142
|
### 🚨 REMEMBER:
|
|
143
|
+
|
|
131
144
|
- **MCP tools** = Coordination, planning, memory, intelligence
|
|
132
145
|
- **Claude Code** = All actual execution, coding, file operations
|
|
133
146
|
|
|
@@ -150,6 +163,7 @@ If you need to do X operations, they should be in 1 message, not X messages
|
|
|
150
163
|
### 🚨 MANDATORY TODO AND TASK BATCHING
|
|
151
164
|
|
|
152
165
|
**CRITICAL RULE FOR TODOS AND TASKS:**
|
|
166
|
+
|
|
153
167
|
1. **TodoWrite** MUST ALWAYS include ALL todos in ONE call (5-10+ todos)
|
|
154
168
|
2. **Task** tool calls MUST be batched - spawn multiple agents in ONE message
|
|
155
169
|
3. **NEVER** update todos one by one - this breaks parallel coordination
|
|
@@ -158,6 +172,7 @@ If you need to do X operations, they should be in 1 message, not X messages
|
|
|
158
172
|
### 📦 BATCH TOOL EXAMPLES
|
|
159
173
|
|
|
160
174
|
**✅ CORRECT - Everything in ONE Message:**
|
|
175
|
+
|
|
161
176
|
```javascript
|
|
162
177
|
[Single Message with BatchTool]:
|
|
163
178
|
// MCP coordination setup
|
|
@@ -167,22 +182,23 @@ If you need to do X operations, they should be in 1 message, not X messages
|
|
|
167
182
|
mcp__claude-flow__agent_spawn { type: "analyst" }
|
|
168
183
|
mcp__claude-flow__agent_spawn { type: "tester" }
|
|
169
184
|
mcp__claude-flow__agent_spawn { type: "coordinator" }
|
|
170
|
-
|
|
185
|
+
|
|
171
186
|
// Claude Code execution - ALL in parallel
|
|
172
187
|
Task("You are researcher agent. MUST coordinate via hooks...")
|
|
173
188
|
Task("You are coder agent. MUST coordinate via hooks...")
|
|
174
189
|
Task("You are analyst agent. MUST coordinate via hooks...")
|
|
175
190
|
Task("You are tester agent. MUST coordinate via hooks...")
|
|
176
191
|
TodoWrite { todos: [5-10 todos with all priorities and statuses] }
|
|
177
|
-
|
|
192
|
+
|
|
178
193
|
// File operations in parallel
|
|
179
194
|
Bash "mkdir -p app/{src,tests,docs}"
|
|
180
|
-
Write "app/package.json"
|
|
195
|
+
Write "app/package.json"
|
|
181
196
|
Write "app/README.md"
|
|
182
197
|
Write "app/src/index.js"
|
|
183
198
|
```
|
|
184
199
|
|
|
185
200
|
**❌ WRONG - Multiple Messages (NEVER DO THIS):**
|
|
201
|
+
|
|
186
202
|
```javascript
|
|
187
203
|
Message 1: mcp__claude-flow__swarm_init
|
|
188
204
|
Message 2: Task("researcher agent")
|
|
@@ -196,6 +212,7 @@ Message 6: Write "package.json"
|
|
|
196
212
|
### 🎯 BATCH OPERATIONS BY TYPE
|
|
197
213
|
|
|
198
214
|
**Todo and Task Operations (Single Message):**
|
|
215
|
+
|
|
199
216
|
- **TodoWrite** → ALWAYS include 5-10+ todos in ONE call
|
|
200
217
|
- **Task agents** → Spawn ALL agents with full instructions in ONE message
|
|
201
218
|
- **Agent coordination** → ALL Task calls must include coordination hooks
|
|
@@ -203,16 +220,19 @@ Message 6: Write "package.json"
|
|
|
203
220
|
- **NEVER** split todos or Task calls across messages!
|
|
204
221
|
|
|
205
222
|
**File Operations (Single Message):**
|
|
223
|
+
|
|
206
224
|
- Read 10 files? → One message with 10 Read calls
|
|
207
225
|
- Write 5 files? → One message with 5 Write calls
|
|
208
226
|
- Edit 1 file many times? → One MultiEdit call
|
|
209
227
|
|
|
210
228
|
**Swarm Operations (Single Message):**
|
|
229
|
+
|
|
211
230
|
- Need 8 agents? → One message with swarm_init + 8 agent_spawn calls
|
|
212
231
|
- Multiple memories? → One message with all memory_usage calls
|
|
213
232
|
- Task + monitoring? → One message with task_orchestrate + swarm_monitor
|
|
214
233
|
|
|
215
234
|
**Command Operations (Single Message):**
|
|
235
|
+
|
|
216
236
|
- Multiple directories? → One message with all mkdir commands
|
|
217
237
|
- Install + test + lint? → One message with all npm commands
|
|
218
238
|
- Git operations? → One message with all git commands
|
|
@@ -220,25 +240,30 @@ Message 6: Write "package.json"
|
|
|
220
240
|
## 🚀 Quick Setup (Stdio MCP - Recommended)
|
|
221
241
|
|
|
222
242
|
### 1. Add MCP Server (Stdio - No Port Needed)
|
|
243
|
+
|
|
223
244
|
```bash
|
|
224
245
|
# Add Claude Flow MCP server to Claude Code using stdio
|
|
225
246
|
claude mcp add claude-flow npx claude-flow@alpha mcp start
|
|
226
247
|
```
|
|
227
248
|
|
|
228
249
|
### 2. Use MCP Tools for Coordination in Claude Code
|
|
250
|
+
|
|
229
251
|
Once configured, Claude Flow MCP tools enhance Claude Code's coordination:
|
|
230
252
|
|
|
231
253
|
**Initialize a swarm:**
|
|
254
|
+
|
|
232
255
|
- Use the `mcp__claude-flow__swarm_init` tool to set up coordination topology
|
|
233
256
|
- Choose: mesh, hierarchical, ring, or star
|
|
234
257
|
- This creates a coordination framework for Claude Code's work
|
|
235
258
|
|
|
236
259
|
**Spawn agents:**
|
|
260
|
+
|
|
237
261
|
- Use `mcp__claude-flow__agent_spawn` tool to create specialized coordinators
|
|
238
262
|
- Agent types represent different thinking patterns, not actual coders
|
|
239
263
|
- They help Claude Code approach problems from different angles
|
|
240
264
|
|
|
241
265
|
**Orchestrate tasks:**
|
|
266
|
+
|
|
242
267
|
- Use `mcp__claude-flow__task_orchestrate` tool to coordinate complex workflows
|
|
243
268
|
- This breaks down tasks for Claude Code to execute systematically
|
|
244
269
|
- The agents don't write code - they coordinate Claude Code's actions
|
|
@@ -246,11 +271,13 @@ Once configured, Claude Flow MCP tools enhance Claude Code's coordination:
|
|
|
246
271
|
## Available MCP Tools for Coordination
|
|
247
272
|
|
|
248
273
|
### Coordination Tools:
|
|
274
|
+
|
|
249
275
|
- `mcp__claude-flow__swarm_init` - Set up coordination topology for Claude Code
|
|
250
276
|
- `mcp__claude-flow__agent_spawn` - Create cognitive patterns to guide Claude Code
|
|
251
277
|
- `mcp__claude-flow__task_orchestrate` - Break down and coordinate complex tasks
|
|
252
278
|
|
|
253
279
|
### Monitoring Tools:
|
|
280
|
+
|
|
254
281
|
- `mcp__claude-flow__swarm_status` - Monitor coordination effectiveness
|
|
255
282
|
- `mcp__claude-flow__agent_list` - View active cognitive patterns
|
|
256
283
|
- `mcp__claude-flow__agent_metrics` - Track coordination performance
|
|
@@ -258,12 +285,14 @@ Once configured, Claude Flow MCP tools enhance Claude Code's coordination:
|
|
|
258
285
|
- `mcp__claude-flow__task_results` - Review coordination outcomes
|
|
259
286
|
|
|
260
287
|
### Memory & Neural Tools:
|
|
288
|
+
|
|
261
289
|
- `mcp__claude-flow__memory_usage` - Persistent memory across sessions
|
|
262
290
|
- `mcp__claude-flow__neural_status` - Neural pattern effectiveness
|
|
263
291
|
- `mcp__claude-flow__neural_train` - Improve coordination patterns
|
|
264
292
|
- `mcp__claude-flow__neural_patterns` - Analyze thinking approaches
|
|
265
293
|
|
|
266
294
|
### GitHub Integration Tools (NEW!):
|
|
295
|
+
|
|
267
296
|
- `mcp__claude-flow__github_swarm` - Create specialized GitHub management swarms
|
|
268
297
|
- `mcp__claude-flow__repo_analyze` - Deep repository analysis with AI
|
|
269
298
|
- `mcp__claude-flow__pr_enhance` - AI-powered pull request improvements
|
|
@@ -271,6 +300,7 @@ Once configured, Claude Flow MCP tools enhance Claude Code's coordination:
|
|
|
271
300
|
- `mcp__claude-flow__code_review` - Automated code review with swarms
|
|
272
301
|
|
|
273
302
|
### System Tools:
|
|
303
|
+
|
|
274
304
|
- `mcp__claude-flow__benchmark_run` - Measure coordination efficiency
|
|
275
305
|
- `mcp__claude-flow__features_detect` - Available capabilities
|
|
276
306
|
- `mcp__claude-flow__swarm_monitor` - Real-time coordination tracking
|
|
@@ -278,14 +308,17 @@ Once configured, Claude Flow MCP tools enhance Claude Code's coordination:
|
|
|
278
308
|
## Workflow Examples (Coordination-Focused)
|
|
279
309
|
|
|
280
310
|
### Research Coordination Example
|
|
311
|
+
|
|
281
312
|
**Context:** Claude Code needs to research a complex topic systematically
|
|
282
313
|
|
|
283
314
|
**Step 1:** Set up research coordination
|
|
315
|
+
|
|
284
316
|
- Tool: `mcp__claude-flow__swarm_init`
|
|
285
317
|
- Parameters: `{"topology": "mesh", "maxAgents": 5, "strategy": "balanced"}`
|
|
286
318
|
- Result: Creates a mesh topology for comprehensive exploration
|
|
287
319
|
|
|
288
320
|
**Step 2:** Define research perspectives
|
|
321
|
+
|
|
289
322
|
- Tool: `mcp__claude-flow__agent_spawn`
|
|
290
323
|
- Parameters: `{"type": "researcher", "name": "Literature Review"}`
|
|
291
324
|
- Tool: `mcp__claude-flow__agent_spawn`
|
|
@@ -293,11 +326,13 @@ Once configured, Claude Flow MCP tools enhance Claude Code's coordination:
|
|
|
293
326
|
- Result: Different cognitive patterns for Claude Code to use
|
|
294
327
|
|
|
295
328
|
**Step 3:** Coordinate research execution
|
|
329
|
+
|
|
296
330
|
- Tool: `mcp__claude-flow__task_orchestrate`
|
|
297
331
|
- Parameters: `{"task": "Research neural architecture search papers", "strategy": "adaptive"}`
|
|
298
332
|
- Result: Claude Code systematically searches, reads, and analyzes papers
|
|
299
333
|
|
|
300
334
|
**What Actually Happens:**
|
|
335
|
+
|
|
301
336
|
1. The swarm sets up a coordination framework
|
|
302
337
|
2. Each agent MUST use Claude Flow hooks for coordination:
|
|
303
338
|
- `npx claude-flow@alpha hooks pre-task` before starting
|
|
@@ -308,24 +343,29 @@ Once configured, Claude Flow MCP tools enhance Claude Code's coordination:
|
|
|
308
343
|
5. Results are synthesized by Claude Code with full coordination history
|
|
309
344
|
|
|
310
345
|
### Development Coordination Example
|
|
346
|
+
|
|
311
347
|
**Context:** Claude Code needs to build a complex system with multiple components
|
|
312
348
|
|
|
313
349
|
**Step 1:** Set up development coordination
|
|
350
|
+
|
|
314
351
|
- Tool: `mcp__claude-flow__swarm_init`
|
|
315
352
|
- Parameters: `{"topology": "hierarchical", "maxAgents": 8, "strategy": "specialized"}`
|
|
316
353
|
- Result: Hierarchical structure for organized development
|
|
317
354
|
|
|
318
355
|
**Step 2:** Define development perspectives
|
|
356
|
+
|
|
319
357
|
- Tool: `mcp__claude-flow__agent_spawn`
|
|
320
358
|
- Parameters: `{"type": "architect", "name": "System Design"}`
|
|
321
359
|
- Result: Architectural thinking pattern for Claude Code
|
|
322
360
|
|
|
323
361
|
**Step 3:** Coordinate implementation
|
|
362
|
+
|
|
324
363
|
- Tool: `mcp__claude-flow__task_orchestrate`
|
|
325
364
|
- Parameters: `{"task": "Implement user authentication with JWT", "strategy": "parallel"}`
|
|
326
365
|
- Result: Claude Code implements features using its native tools
|
|
327
366
|
|
|
328
367
|
**What Actually Happens:**
|
|
368
|
+
|
|
329
369
|
1. The swarm creates a development coordination plan
|
|
330
370
|
2. Each agent coordinates using mandatory hooks:
|
|
331
371
|
- Pre-task hooks for context loading
|
|
@@ -336,19 +376,23 @@ Once configured, Claude Flow MCP tools enhance Claude Code's coordination:
|
|
|
336
376
|
5. All code is written by Claude Code with full coordination
|
|
337
377
|
|
|
338
378
|
### GitHub Repository Management Example (NEW!)
|
|
379
|
+
|
|
339
380
|
**Context:** Claude Code needs to manage a complex GitHub repository
|
|
340
381
|
|
|
341
382
|
**Step 1:** Initialize GitHub swarm
|
|
383
|
+
|
|
342
384
|
- Tool: `mcp__claude-flow__github_swarm`
|
|
343
385
|
- Parameters: `{"repository": "owner/repo", "agents": 5, "focus": "maintenance"}`
|
|
344
386
|
- Result: Specialized swarm for repository management
|
|
345
387
|
|
|
346
388
|
**Step 2:** Analyze repository health
|
|
389
|
+
|
|
347
390
|
- Tool: `mcp__claude-flow__repo_analyze`
|
|
348
391
|
- Parameters: `{"deep": true, "include": ["issues", "prs", "code"]}`
|
|
349
392
|
- Result: Comprehensive repository analysis
|
|
350
393
|
|
|
351
394
|
**Step 3:** Enhance pull requests
|
|
395
|
+
|
|
352
396
|
- Tool: `mcp__claude-flow__pr_enhance`
|
|
353
397
|
- Parameters: `{"pr_number": 123, "add_tests": true, "improve_docs": true}`
|
|
354
398
|
- Result: AI-powered PR improvements
|
|
@@ -356,6 +400,7 @@ Once configured, Claude Flow MCP tools enhance Claude Code's coordination:
|
|
|
356
400
|
## Best Practices for Coordination
|
|
357
401
|
|
|
358
402
|
### ✅ DO:
|
|
403
|
+
|
|
359
404
|
- Use MCP tools to coordinate Claude Code's approach to complex tasks
|
|
360
405
|
- Let the swarm break down problems into manageable pieces
|
|
361
406
|
- Use memory tools to maintain context across sessions
|
|
@@ -364,6 +409,7 @@ Once configured, Claude Flow MCP tools enhance Claude Code's coordination:
|
|
|
364
409
|
- Leverage GitHub tools for repository management
|
|
365
410
|
|
|
366
411
|
### ❌ DON'T:
|
|
412
|
+
|
|
367
413
|
- Expect agents to write code (Claude Code does all implementation)
|
|
368
414
|
- Use MCP tools for file operations (use Claude Code's native tools)
|
|
369
415
|
- Try to make agents execute bash commands (Claude Code handles this)
|
|
@@ -372,6 +418,7 @@ Once configured, Claude Flow MCP tools enhance Claude Code's coordination:
|
|
|
372
418
|
## Memory and Persistence
|
|
373
419
|
|
|
374
420
|
The swarm provides persistent memory that helps Claude Code:
|
|
421
|
+
|
|
375
422
|
- Remember project context across sessions
|
|
376
423
|
- Track decisions and rationale
|
|
377
424
|
- Maintain consistency in large projects
|
|
@@ -381,6 +428,7 @@ The swarm provides persistent memory that helps Claude Code:
|
|
|
381
428
|
## Performance Benefits
|
|
382
429
|
|
|
383
430
|
When using Claude Flow coordination with Claude Code:
|
|
431
|
+
|
|
384
432
|
- **84.8% SWE-Bench solve rate** - Better problem-solving through coordination
|
|
385
433
|
- **32.3% token reduction** - Efficient task breakdown reduces redundancy
|
|
386
434
|
- **2.8-4.4x speed improvement** - Parallel coordination strategies
|
|
@@ -392,6 +440,7 @@ When using Claude Flow coordination with Claude Code:
|
|
|
392
440
|
Claude Flow includes powerful hooks that automate coordination:
|
|
393
441
|
|
|
394
442
|
### Pre-Operation Hooks
|
|
443
|
+
|
|
395
444
|
- **Auto-assign agents** before file edits based on file type
|
|
396
445
|
- **Validate commands** before execution for safety
|
|
397
446
|
- **Prepare resources** automatically for complex operations
|
|
@@ -399,7 +448,8 @@ Claude Flow includes powerful hooks that automate coordination:
|
|
|
399
448
|
- **Cache searches** for improved performance
|
|
400
449
|
- **GitHub context** loading for repository operations
|
|
401
450
|
|
|
402
|
-
### Post-Operation Hooks
|
|
451
|
+
### Post-Operation Hooks
|
|
452
|
+
|
|
403
453
|
- **Auto-format code** using language-specific formatters
|
|
404
454
|
- **Train neural patterns** from successful operations
|
|
405
455
|
- **Update memory** with operation context
|
|
@@ -408,6 +458,7 @@ Claude Flow includes powerful hooks that automate coordination:
|
|
|
408
458
|
- **Sync GitHub** state for consistency
|
|
409
459
|
|
|
410
460
|
### Session Management
|
|
461
|
+
|
|
411
462
|
- **Generate summaries** at session end
|
|
412
463
|
- **Persist state** across Claude Code sessions
|
|
413
464
|
- **Track metrics** for continuous improvement
|
|
@@ -415,8 +466,9 @@ Claude Flow includes powerful hooks that automate coordination:
|
|
|
415
466
|
- **Export workflows** for reuse
|
|
416
467
|
|
|
417
468
|
### Advanced Features (v2.0.0!)
|
|
469
|
+
|
|
418
470
|
- **🚀 Automatic Topology Selection** - Optimal swarm structure for each task
|
|
419
|
-
- **⚡ Parallel Execution** - 2.8-4.4x speed improvements
|
|
471
|
+
- **⚡ Parallel Execution** - 2.8-4.4x speed improvements
|
|
420
472
|
- **🧠 Neural Training** - Continuous learning from operations
|
|
421
473
|
- **📊 Bottleneck Analysis** - Real-time performance optimization
|
|
422
474
|
- **🤖 Smart Auto-Spawning** - Zero manual agent management
|
|
@@ -425,7 +477,9 @@ Claude Flow includes powerful hooks that automate coordination:
|
|
|
425
477
|
- **🔗 GitHub Integration** - Repository-aware swarms
|
|
426
478
|
|
|
427
479
|
### Configuration
|
|
480
|
+
|
|
428
481
|
Hooks are pre-configured in `.claude/settings.json`. Key features:
|
|
482
|
+
|
|
429
483
|
- Automatic agent assignment for different file types
|
|
430
484
|
- Code formatting on save
|
|
431
485
|
- Neural pattern learning from edits
|
|
@@ -453,6 +507,7 @@ See `.claude/commands/` for detailed documentation on all features.
|
|
|
453
507
|
### 🚨 CRITICAL INSTRUCTION: You are the SWARM ORCHESTRATOR
|
|
454
508
|
|
|
455
509
|
**MANDATORY**: When using swarms, you MUST:
|
|
510
|
+
|
|
456
511
|
1. **SPAWN ALL AGENTS IN ONE BATCH** - Use multiple tool calls in a SINGLE message
|
|
457
512
|
2. **EXECUTE TASKS IN PARALLEL** - Never wait for one task before starting another
|
|
458
513
|
3. **USE BATCHTOOL FOR EVERYTHING** - Multiple operations = Single message with multiple tools
|
|
@@ -461,10 +516,11 @@ See `.claude/commands/` for detailed documentation on all features.
|
|
|
461
516
|
### 🎯 AGENT COUNT CONFIGURATION
|
|
462
517
|
|
|
463
518
|
**CRITICAL: Dynamic Agent Count Rules**
|
|
519
|
+
|
|
464
520
|
1. **Check CLI Arguments First**: If user runs `npx claude-flow@alpha --agents 5`, use 5 agents
|
|
465
521
|
2. **Auto-Decide if No Args**: Without CLI args, analyze task complexity:
|
|
466
522
|
- Simple tasks (1-3 components): 3-4 agents
|
|
467
|
-
- Medium tasks (4-6 components): 5-7 agents
|
|
523
|
+
- Medium tasks (4-6 components): 5-7 agents
|
|
468
524
|
- Complex tasks (7+ components): 8-12 agents
|
|
469
525
|
3. **Agent Type Distribution**: Balance agent types based on task:
|
|
470
526
|
- Always include 1 coordinator
|
|
@@ -473,16 +529,17 @@ See `.claude/commands/` for detailed documentation on all features.
|
|
|
473
529
|
- For quality tasks: more testers/reviewers
|
|
474
530
|
|
|
475
531
|
**Example Auto-Decision Logic:**
|
|
532
|
+
|
|
476
533
|
```javascript
|
|
477
534
|
// If CLI args provided: npx claude-flow@alpha --agents 6
|
|
478
|
-
maxAgents = CLI_ARGS.agents || determineAgentCount(task)
|
|
535
|
+
maxAgents = CLI_ARGS.agents || determineAgentCount(task);
|
|
479
536
|
|
|
480
537
|
function determineAgentCount(task) {
|
|
481
538
|
// Analyze task complexity
|
|
482
|
-
if (task.includes(['API', 'database', 'auth', 'tests'])) return 8
|
|
483
|
-
if (task.includes(['frontend', 'backend'])) return 6
|
|
484
|
-
if (task.includes(['simple', 'script'])) return 3
|
|
485
|
-
return 5 // default
|
|
539
|
+
if (task.includes(['API', 'database', 'auth', 'tests'])) return 8;
|
|
540
|
+
if (task.includes(['frontend', 'backend'])) return 6;
|
|
541
|
+
if (task.includes(['simple', 'script'])) return 3;
|
|
542
|
+
return 5; // default
|
|
486
543
|
}
|
|
487
544
|
```
|
|
488
545
|
|
|
@@ -493,6 +550,7 @@ function determineAgentCount(task) {
|
|
|
493
550
|
When you spawn an agent using the Task tool, that agent MUST:
|
|
494
551
|
|
|
495
552
|
**1️⃣ BEFORE Starting Work:**
|
|
553
|
+
|
|
496
554
|
```bash
|
|
497
555
|
# Check previous work and load context
|
|
498
556
|
npx claude-flow@alpha hooks pre-task --description "[agent task]" --auto-spawn-agents false
|
|
@@ -500,6 +558,7 @@ npx claude-flow@alpha hooks session-restore --session-id "swarm-[id]" --load-mem
|
|
|
500
558
|
```
|
|
501
559
|
|
|
502
560
|
**2️⃣ DURING Work (After EVERY Major Step):**
|
|
561
|
+
|
|
503
562
|
```bash
|
|
504
563
|
# Store progress in memory after each file operation
|
|
505
564
|
npx claude-flow@alpha hooks post-edit --file "[filepath]" --memory-key "swarm/[agent]/[step]"
|
|
@@ -512,6 +571,7 @@ npx claude-flow@alpha hooks pre-search --query "[what to check]" --cache-results
|
|
|
512
571
|
```
|
|
513
572
|
|
|
514
573
|
**3️⃣ AFTER Completing Work:**
|
|
574
|
+
|
|
515
575
|
```bash
|
|
516
576
|
# Save all results and learnings
|
|
517
577
|
npx claude-flow@alpha hooks post-task --task-id "[task]" --analyze-performance true
|
|
@@ -539,6 +599,7 @@ REMEMBER: Coordinate with other agents by checking memory BEFORE making decision
|
|
|
539
599
|
### ⚡ PARALLEL EXECUTION IS MANDATORY
|
|
540
600
|
|
|
541
601
|
**THIS IS WRONG ❌ (Sequential - NEVER DO THIS):**
|
|
602
|
+
|
|
542
603
|
```
|
|
543
604
|
Message 1: Initialize swarm
|
|
544
605
|
Message 2: Spawn agent 1
|
|
@@ -549,12 +610,13 @@ Message 6: TodoWrite (another single todo)
|
|
|
549
610
|
```
|
|
550
611
|
|
|
551
612
|
**THIS IS CORRECT ✅ (Parallel - ALWAYS DO THIS):**
|
|
613
|
+
|
|
552
614
|
```
|
|
553
615
|
Message 1: [BatchTool]
|
|
554
616
|
// MCP coordination setup
|
|
555
617
|
- mcp__claude-flow__swarm_init
|
|
556
618
|
- mcp__claude-flow__agent_spawn (researcher)
|
|
557
|
-
- mcp__claude-flow__agent_spawn (coder)
|
|
619
|
+
- mcp__claude-flow__agent_spawn (coder)
|
|
558
620
|
- mcp__claude-flow__agent_spawn (analyst)
|
|
559
621
|
- mcp__claude-flow__agent_spawn (tester)
|
|
560
622
|
- mcp__claude-flow__agent_spawn (coordinator)
|
|
@@ -565,7 +627,7 @@ Message 2: [BatchTool - Claude Code execution]
|
|
|
565
627
|
- Task("You are coder agent. MANDATORY: Run hooks pre-task, post-edit, post-task. Task: Implement REST endpoints")
|
|
566
628
|
- Task("You are analyst agent. MANDATORY: Run hooks pre-task, post-edit, post-task. Task: Analyze performance")
|
|
567
629
|
- Task("You are tester agent. MANDATORY: Run hooks pre-task, post-edit, post-task. Task: Write comprehensive tests")
|
|
568
|
-
|
|
630
|
+
|
|
569
631
|
// TodoWrite with ALL todos batched
|
|
570
632
|
- TodoWrite { todos: [
|
|
571
633
|
{id: "research", content: "Research API patterns", status: "in_progress", priority: "high"},
|
|
@@ -575,7 +637,7 @@ Message 2: [BatchTool - Claude Code execution]
|
|
|
575
637
|
{id: "docs", content: "Create API documentation", status: "pending", priority: "low"},
|
|
576
638
|
{id: "deploy", content: "Setup deployment", status: "pending", priority: "medium"}
|
|
577
639
|
]}
|
|
578
|
-
|
|
640
|
+
|
|
579
641
|
// File operations in parallel
|
|
580
642
|
- Write "api/package.json"
|
|
581
643
|
- Write "api/server.js"
|
|
@@ -591,12 +653,12 @@ When given ANY complex task with swarms:
|
|
|
591
653
|
STEP 1: IMMEDIATE PARALLEL SPAWN (Single Message!)
|
|
592
654
|
[BatchTool]:
|
|
593
655
|
// IMPORTANT: Check CLI args for agent count, otherwise auto-decide based on task complexity
|
|
594
|
-
- mcp__claude-flow__swarm_init {
|
|
595
|
-
topology: "hierarchical",
|
|
656
|
+
- mcp__claude-flow__swarm_init {
|
|
657
|
+
topology: "hierarchical",
|
|
596
658
|
maxAgents: CLI_ARGS.agents || AUTO_DECIDE(task_complexity), // Use CLI args or auto-decide
|
|
597
|
-
strategy: "parallel"
|
|
659
|
+
strategy: "parallel"
|
|
598
660
|
}
|
|
599
|
-
|
|
661
|
+
|
|
600
662
|
// Spawn agents based on maxAgents count and task requirements
|
|
601
663
|
// If CLI specifies 3 agents, spawn 3. If no args, auto-decide optimal count (3-12)
|
|
602
664
|
- mcp__claude-flow__agent_spawn { type: "architect", name: "System Designer" }
|
|
@@ -663,7 +725,7 @@ Dependencies: ↳ X deps | Actionable: ▶
|
|
|
663
725
|
mcp__claude-flow__agent_spawn { type: "analyst", name: "DB Designer" }
|
|
664
726
|
mcp__claude-flow__agent_spawn { type: "tester", name: "Test Engineer" }
|
|
665
727
|
mcp__claude-flow__agent_spawn { type: "coordinator", name: "Lead" }
|
|
666
|
-
|
|
728
|
+
|
|
667
729
|
// Update ALL todos at once - NEVER split todos!
|
|
668
730
|
TodoWrite { todos: [
|
|
669
731
|
{ id: "design", content: "Design API architecture", status: "in_progress", priority: "high" },
|
|
@@ -675,10 +737,10 @@ Dependencies: ↳ X deps | Actionable: ▶
|
|
|
675
737
|
{ id: "deploy", content: "Setup deployment pipeline", status: "pending", priority: "medium" },
|
|
676
738
|
{ id: "monitor", content: "Add monitoring", status: "pending", priority: "medium" }
|
|
677
739
|
]}
|
|
678
|
-
|
|
740
|
+
|
|
679
741
|
// Start orchestration
|
|
680
742
|
mcp__claude-flow__task_orchestrate { task: "Build REST API", strategy: "parallel" }
|
|
681
|
-
|
|
743
|
+
|
|
682
744
|
// Store initial memory
|
|
683
745
|
mcp__claude-flow__memory_usage { action: "store", key: "project/init", value: { started: Date.now() } }
|
|
684
746
|
|
|
@@ -687,7 +749,7 @@ Dependencies: ↳ X deps | Actionable: ▶
|
|
|
687
749
|
Bash("mkdir -p test-app/{src,tests,docs,config}")
|
|
688
750
|
Bash("mkdir -p test-app/src/{models,routes,middleware,services}")
|
|
689
751
|
Bash("mkdir -p test-app/tests/{unit,integration}")
|
|
690
|
-
|
|
752
|
+
|
|
691
753
|
// Write ALL base files at once
|
|
692
754
|
Write("test-app/package.json", packageJsonContent)
|
|
693
755
|
Write("test-app/.env.example", envContent)
|
|
@@ -700,7 +762,7 @@ Dependencies: ↳ X deps | Actionable: ▶
|
|
|
700
762
|
Read("test-app/package.json")
|
|
701
763
|
Read("test-app/src/server.js")
|
|
702
764
|
Read("test-app/.env.example")
|
|
703
|
-
|
|
765
|
+
|
|
704
766
|
// Run multiple commands
|
|
705
767
|
Bash("cd test-app && npm install")
|
|
706
768
|
Bash("cd test-app && npm run lint")
|
|
@@ -708,6 +770,7 @@ Dependencies: ↳ X deps | Actionable: ▶
|
|
|
708
770
|
```
|
|
709
771
|
|
|
710
772
|
### 🚫 NEVER DO THIS (Sequential = WRONG):
|
|
773
|
+
|
|
711
774
|
```javascript
|
|
712
775
|
// ❌ WRONG: Multiple messages, one operation each
|
|
713
776
|
Message 1: mcp__claude-flow__swarm_init
|
|
@@ -751,7 +814,7 @@ mcp__claude-flow__memory_usage
|
|
|
751
814
|
1. **Batch Everything**: Never operate on single files when multiple are needed
|
|
752
815
|
2. **Parallel First**: Always think "what can run simultaneously?"
|
|
753
816
|
3. **Memory is Key**: Use memory for ALL cross-agent coordination
|
|
754
|
-
4. **Monitor Progress**: Use
|
|
817
|
+
4. **Monitor Progress**: Use mcp**claude-flow**swarm_monitor for real-time tracking
|
|
755
818
|
5. **Auto-Optimize**: Let hooks handle topology and agent selection
|
|
756
819
|
|
|
757
820
|
### 🎨 VISUAL SWARM STATUS
|
|
@@ -780,18 +843,21 @@ Agent Activity:
|
|
|
780
843
|
### 🚨 MANDATORY BATCHING RULES FOR TODOS AND TASKS
|
|
781
844
|
|
|
782
845
|
**TodoWrite Tool Requirements:**
|
|
846
|
+
|
|
783
847
|
1. **ALWAYS** include 5-10+ todos in a SINGLE TodoWrite call
|
|
784
848
|
2. **NEVER** call TodoWrite multiple times in sequence
|
|
785
849
|
3. **BATCH** all todo updates together - status changes, new todos, completions
|
|
786
850
|
4. **INCLUDE** all priority levels (high, medium, low) in one call
|
|
787
851
|
|
|
788
852
|
**Task Tool Requirements:**
|
|
853
|
+
|
|
789
854
|
1. **SPAWN** all agents using Task tool in ONE message
|
|
790
855
|
2. **NEVER** spawn agents one by one across multiple messages
|
|
791
856
|
3. **INCLUDE** full task descriptions and coordination instructions
|
|
792
857
|
4. **BATCH** related Task calls together for parallel execution
|
|
793
858
|
|
|
794
859
|
**Example of CORRECT TodoWrite usage:**
|
|
860
|
+
|
|
795
861
|
```javascript
|
|
796
862
|
// ✅ CORRECT - All todos in ONE call
|
|
797
863
|
TodoWrite { todos: [
|
|
@@ -809,6 +875,7 @@ TodoWrite { todos: [
|
|
|
809
875
|
```
|
|
810
876
|
|
|
811
877
|
**Example of WRONG TodoWrite usage:**
|
|
878
|
+
|
|
812
879
|
```javascript
|
|
813
880
|
// ❌ WRONG - Multiple TodoWrite calls
|
|
814
881
|
Message 1: TodoWrite { todos: [{ id: "1", content: "Task 1", ... }] }
|
|
@@ -820,6 +887,7 @@ Message 3: TodoWrite { todos: [{ id: "3", content: "Task 3", ... }] }
|
|
|
820
887
|
## Claude Flow v2.0.0 Features
|
|
821
888
|
|
|
822
889
|
Claude Flow extends the base coordination with:
|
|
890
|
+
|
|
823
891
|
- **🔗 GitHub Integration** - Deep repository management
|
|
824
892
|
- **🎯 Project Templates** - Quick-start for common projects
|
|
825
893
|
- **📊 Advanced Analytics** - Detailed performance insights
|
|
@@ -835,4 +903,4 @@ Claude Flow extends the base coordination with:
|
|
|
835
903
|
|
|
836
904
|
---
|
|
837
905
|
|
|
838
|
-
Remember: **Claude Flow coordinates, Claude Code creates!** Start with `mcp__claude-flow__swarm_init` to enhance your development workflow.
|
|
906
|
+
Remember: **Claude Flow coordinates, Claude Code creates!** Start with `mcp__claude-flow__swarm_init` to enhance your development workflow.
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
const { spawn } = await import('child_process');
|
|
11
11
|
const { resolve } = await import('path');
|
|
12
12
|
const { fileURLToPath } = await import('url');
|
|
13
|
-
|
|
13
|
+
|
|
14
14
|
// Detect if we're running in ES module context
|
|
15
15
|
let __dirname;
|
|
16
16
|
try {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
}
|
|
40
40
|
} catch {}
|
|
41
41
|
},
|
|
42
|
-
|
|
42
|
+
|
|
43
43
|
// 2. Parent node_modules (monorepo)
|
|
44
44
|
async () => {
|
|
45
45
|
try {
|
|
@@ -50,11 +50,13 @@
|
|
|
50
50
|
}
|
|
51
51
|
} catch {}
|
|
52
52
|
},
|
|
53
|
-
|
|
53
|
+
|
|
54
54
|
// 3. NPX with latest alpha version (prioritized over global)
|
|
55
55
|
async () => {
|
|
56
|
-
return spawn('npx', ['claude-flow@2.0.0-alpha.27', ...process.argv.slice(2)], {
|
|
57
|
-
|
|
56
|
+
return spawn('npx', ['claude-flow@2.0.0-alpha.27', ...process.argv.slice(2)], {
|
|
57
|
+
stdio: 'inherit',
|
|
58
|
+
});
|
|
59
|
+
},
|
|
58
60
|
];
|
|
59
61
|
|
|
60
62
|
// Try each strategy
|
|
@@ -73,7 +75,7 @@
|
|
|
73
75
|
}
|
|
74
76
|
} catch {}
|
|
75
77
|
}
|
|
76
|
-
|
|
78
|
+
|
|
77
79
|
console.error('Could not find claude-flow. Please install it with: npm install claude-flow');
|
|
78
80
|
process.exit(1);
|
|
79
|
-
})();
|
|
81
|
+
})();
|
|
@@ -646,4 +646,4 @@ NEVER create files unless they're absolutely necessary for achieving your goal.
|
|
|
646
646
|
ALWAYS prefer editing an existing file to creating a new one.
|
|
647
647
|
NEVER proactively create documentation files (*.md) or README files. Only create documentation files if explicitly requested by the User.
|
|
648
648
|
`;
|
|
649
|
-
}
|
|
649
|
+
}
|