claude-flow 2.7.0 → 2.7.1
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/CHANGELOG.md +42 -0
- package/bin/claude-flow +1 -1
- package/dist/src/cli/simple-cli.js +104 -0
- package/dist/src/cli/simple-cli.js.map +1 -1
- package/dist/src/cli/simple-commands/config.js +115 -257
- package/dist/src/cli/simple-commands/config.js.map +1 -1
- package/dist/src/cli/validation-helper.js.map +1 -1
- package/dist/src/mcp/mcp-server.js +261 -3
- package/dist/src/mcp/mcp-server.js.map +1 -1
- package/dist/src/utils/key-redactor.js.map +1 -1
- package/dist/src/utils/metrics-reader.js +41 -29
- package/dist/src/utils/metrics-reader.js.map +1 -1
- package/docs/PATTERN_PERSISTENCE_FIX.md +328 -0
- package/docs/RELEASE_v2.7.1.md +244 -0
- package/docs/skills-tutorial.md +2 -2
- package/package.json +1 -1
- package/src/mcp/mcp-server.js +302 -2
- package/dist/agents/agent-loader.d.ts +0 -103
- package/dist/agents/agent-loader.d.ts.map +0 -1
- package/dist/agents/agent-loader.js +0 -220
- package/dist/agents/agent-loader.js.map +0 -1
- package/dist/agents/agent-manager.d.ts +0 -191
- package/dist/agents/agent-manager.d.ts.map +0 -1
- package/dist/agents/agent-manager.js +0 -1405
- package/dist/agents/agent-manager.js.map +0 -1
- package/dist/api/claude-api-errors.d.ts +0 -115
- package/dist/api/claude-api-errors.d.ts.map +0 -1
- package/dist/api/claude-api-errors.js +0 -198
- package/dist/api/claude-api-errors.js.map +0 -1
- package/dist/api/claude-client.d.ts +0 -197
- package/dist/api/claude-client.d.ts.map +0 -1
- package/dist/api/claude-client.js +0 -525
- package/dist/api/claude-client.js.map +0 -1
- package/dist/cli/cli-core.d.ts +0 -52
- package/dist/cli/cli-core.d.ts.map +0 -1
- package/dist/cli/cli-core.js +0 -264
- package/dist/cli/cli-core.js.map +0 -1
- package/dist/cli/command-registry.d.ts +0 -10
- package/dist/cli/command-registry.d.ts.map +0 -1
- package/dist/cli/command-registry.js +0 -1126
- package/dist/cli/command-registry.js.map +0 -1
- package/dist/cli/commander-fix.d.ts +0 -4
- package/dist/cli/commander-fix.d.ts.map +0 -1
- package/dist/cli/commander-fix.js +0 -6
- package/dist/cli/commander-fix.js.map +0 -1
- package/dist/cli/commands/agent.d.ts +0 -6
- package/dist/cli/commands/agent.d.ts.map +0 -1
- package/dist/cli/commands/agent.js +0 -382
- package/dist/cli/commands/agent.js.map +0 -1
- package/dist/cli/commands/config.d.ts +0 -4
- package/dist/cli/commands/config.d.ts.map +0 -1
- package/dist/cli/commands/config.js +0 -88
- package/dist/cli/commands/config.js.map +0 -1
- package/dist/cli/commands/enterprise.d.ts +0 -3
- package/dist/cli/commands/enterprise.d.ts.map +0 -1
- package/dist/cli/commands/enterprise.js +0 -1506
- package/dist/cli/commands/enterprise.js.map +0 -1
- package/dist/cli/commands/help.d.ts +0 -6
- package/dist/cli/commands/help.d.ts.map +0 -1
- package/dist/cli/commands/help.js +0 -936
- package/dist/cli/commands/help.js.map +0 -1
- package/dist/cli/commands/hive-mind/index.d.ts +0 -18
- package/dist/cli/commands/hive-mind/index.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/index.js +0 -30
- package/dist/cli/commands/hive-mind/index.js.map +0 -1
- package/dist/cli/commands/hive-mind/init.d.ts +0 -9
- package/dist/cli/commands/hive-mind/init.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/init.js +0 -68
- package/dist/cli/commands/hive-mind/init.js.map +0 -1
- package/dist/cli/commands/hive-mind/pause.d.ts +0 -8
- package/dist/cli/commands/hive-mind/pause.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/pause.js +0 -81
- package/dist/cli/commands/hive-mind/pause.js.map +0 -1
- package/dist/cli/commands/hive-mind/ps.d.ts +0 -8
- package/dist/cli/commands/hive-mind/ps.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/ps.js +0 -120
- package/dist/cli/commands/hive-mind/ps.js.map +0 -1
- package/dist/cli/commands/hive-mind/resume.d.ts +0 -8
- package/dist/cli/commands/hive-mind/resume.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/resume.js +0 -62
- package/dist/cli/commands/hive-mind/resume.js.map +0 -1
- package/dist/cli/commands/hive-mind/spawn.d.ts +0 -9
- package/dist/cli/commands/hive-mind/spawn.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/spawn.js +0 -174
- package/dist/cli/commands/hive-mind/spawn.js.map +0 -1
- package/dist/cli/commands/hive-mind/status.d.ts +0 -9
- package/dist/cli/commands/hive-mind/status.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/status.js +0 -204
- package/dist/cli/commands/hive-mind/status.js.map +0 -1
- package/dist/cli/commands/hive-mind/stop.d.ts +0 -8
- package/dist/cli/commands/hive-mind/stop.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/stop.js +0 -125
- package/dist/cli/commands/hive-mind/stop.js.map +0 -1
- package/dist/cli/commands/hive-mind/task.d.ts +0 -9
- package/dist/cli/commands/hive-mind/task.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/task.js +0 -294
- package/dist/cli/commands/hive-mind/task.js.map +0 -1
- package/dist/cli/commands/hive-mind/wizard.d.ts +0 -9
- package/dist/cli/commands/hive-mind/wizard.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/wizard.js +0 -531
- package/dist/cli/commands/hive-mind/wizard.js.map +0 -1
- package/dist/cli/commands/hive.d.ts +0 -6
- package/dist/cli/commands/hive.d.ts.map +0 -1
- package/dist/cli/commands/hive.js +0 -409
- package/dist/cli/commands/hive.js.map +0 -1
- package/dist/cli/commands/index.d.ts +0 -3
- package/dist/cli/commands/index.d.ts.map +0 -1
- package/dist/cli/commands/index.js +0 -2624
- package/dist/cli/commands/index.js.map +0 -1
- package/dist/cli/commands/mcp.d.ts +0 -5
- package/dist/cli/commands/mcp.d.ts.map +0 -1
- package/dist/cli/commands/mcp.js +0 -169
- package/dist/cli/commands/mcp.js.map +0 -1
- package/dist/cli/commands/memory.d.ts +0 -26
- package/dist/cli/commands/memory.d.ts.map +0 -1
- package/dist/cli/commands/memory.js +0 -225
- package/dist/cli/commands/memory.js.map +0 -1
- package/dist/cli/commands/migrate.d.ts +0 -5
- package/dist/cli/commands/migrate.d.ts.map +0 -1
- package/dist/cli/commands/migrate.js +0 -139
- package/dist/cli/commands/migrate.js.map +0 -1
- package/dist/cli/commands/monitor.d.ts +0 -5
- package/dist/cli/commands/monitor.d.ts.map +0 -1
- package/dist/cli/commands/monitor.js +0 -493
- package/dist/cli/commands/monitor.js.map +0 -1
- package/dist/cli/commands/session.d.ts +0 -5
- package/dist/cli/commands/session.d.ts.map +0 -1
- package/dist/cli/commands/session.js +0 -548
- package/dist/cli/commands/session.js.map +0 -1
- package/dist/cli/commands/sparc.d.ts +0 -3
- package/dist/cli/commands/sparc.d.ts.map +0 -1
- package/dist/cli/commands/sparc.js +0 -472
- package/dist/cli/commands/sparc.js.map +0 -1
- package/dist/cli/commands/start/event-emitter.d.ts +0 -13
- package/dist/cli/commands/start/event-emitter.d.ts.map +0 -1
- package/dist/cli/commands/start/event-emitter.js +0 -35
- package/dist/cli/commands/start/event-emitter.js.map +0 -1
- package/dist/cli/commands/start/index.d.ts +0 -10
- package/dist/cli/commands/start/index.d.ts.map +0 -1
- package/dist/cli/commands/start/index.js +0 -9
- package/dist/cli/commands/start/index.js.map +0 -1
- package/dist/cli/commands/start/process-manager.d.ts +0 -31
- package/dist/cli/commands/start/process-manager.d.ts.map +0 -1
- package/dist/cli/commands/start/process-manager.js +0 -283
- package/dist/cli/commands/start/process-manager.js.map +0 -1
- package/dist/cli/commands/start/process-ui-simple.d.ts +0 -29
- package/dist/cli/commands/start/process-ui-simple.d.ts.map +0 -1
- package/dist/cli/commands/start/process-ui-simple.js +0 -334
- package/dist/cli/commands/start/process-ui-simple.js.map +0 -1
- package/dist/cli/commands/start/process-ui.d.ts +0 -5
- package/dist/cli/commands/start/process-ui.d.ts.map +0 -1
- package/dist/cli/commands/start/process-ui.js +0 -5
- package/dist/cli/commands/start/process-ui.js.map +0 -1
- package/dist/cli/commands/start/start-command.d.ts +0 -2
- package/dist/cli/commands/start/start-command.d.ts.map +0 -1
- package/dist/cli/commands/start/start-command.js +0 -462
- package/dist/cli/commands/start/start-command.js.map +0 -1
- package/dist/cli/commands/start/system-monitor.d.ts +0 -25
- package/dist/cli/commands/start/system-monitor.d.ts.map +0 -1
- package/dist/cli/commands/start/system-monitor.js +0 -265
- package/dist/cli/commands/start/system-monitor.js.map +0 -1
- package/dist/cli/commands/start/types.d.ts +0 -64
- package/dist/cli/commands/start/types.d.ts.map +0 -1
- package/dist/cli/commands/start/types.js +0 -22
- package/dist/cli/commands/start/types.js.map +0 -1
- package/dist/cli/commands/start.d.ts +0 -6
- package/dist/cli/commands/start.d.ts.map +0 -1
- package/dist/cli/commands/start.js +0 -6
- package/dist/cli/commands/start.js.map +0 -1
- package/dist/cli/commands/status.d.ts +0 -2
- package/dist/cli/commands/status.d.ts.map +0 -1
- package/dist/cli/commands/status.js +0 -304
- package/dist/cli/commands/status.js.map +0 -1
- package/dist/cli/commands/swarm.d.ts +0 -6
- package/dist/cli/commands/swarm.d.ts.map +0 -1
- package/dist/cli/commands/swarm.js +0 -465
- package/dist/cli/commands/swarm.js.map +0 -1
- package/dist/cli/commands/task.d.ts +0 -2
- package/dist/cli/commands/task.d.ts.map +0 -1
- package/dist/cli/commands/task.js +0 -75
- package/dist/cli/commands/task.js.map +0 -1
- package/dist/cli/commands/workflow.d.ts +0 -2
- package/dist/cli/commands/workflow.d.ts.map +0 -1
- package/dist/cli/commands/workflow.js +0 -624
- package/dist/cli/commands/workflow.js.map +0 -1
- package/dist/cli/completion.d.ts +0 -19
- package/dist/cli/completion.d.ts.map +0 -1
- package/dist/cli/completion.js +0 -545
- package/dist/cli/completion.js.map +0 -1
- package/dist/cli/formatter.d.ts +0 -69
- package/dist/cli/formatter.d.ts.map +0 -1
- package/dist/cli/formatter.js +0 -277
- package/dist/cli/formatter.js.map +0 -1
- package/dist/cli/help-formatter.d.ts +0 -49
- package/dist/cli/help-formatter.d.ts.map +0 -1
- package/dist/cli/help-formatter.js +0 -108
- package/dist/cli/help-formatter.js.map +0 -1
- package/dist/cli/help-text.d.ts +0 -25
- package/dist/cli/help-text.d.ts.map +0 -1
- package/dist/cli/help-text.js +0 -1051
- package/dist/cli/help-text.js.map +0 -1
- package/dist/cli/index-remote.d.ts +0 -7
- package/dist/cli/index-remote.d.ts.map +0 -1
- package/dist/cli/index-remote.js +0 -125
- package/dist/cli/index-remote.js.map +0 -1
- package/dist/cli/index.d.ts +0 -7
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/index.js +0 -189
- package/dist/cli/index.js.map +0 -1
- package/dist/cli/node-compat.d.ts +0 -81
- package/dist/cli/node-compat.d.ts.map +0 -1
- package/dist/cli/node-compat.js +0 -229
- package/dist/cli/node-compat.js.map +0 -1
- package/dist/cli/repl.d.ts +0 -5
- package/dist/cli/repl.d.ts.map +0 -1
- package/dist/cli/repl.js +0 -949
- package/dist/cli/repl.js.map +0 -1
- package/dist/cli/runtime-detector.d.ts +0 -128
- package/dist/cli/runtime-detector.d.ts.map +0 -1
- package/dist/cli/runtime-detector.js +0 -267
- package/dist/cli/runtime-detector.js.map +0 -1
- package/dist/cli/simple-cli.d.ts +0 -7
- package/dist/cli/simple-cli.d.ts.map +0 -1
- package/dist/cli/simple-cli.js +0 -3085
- package/dist/cli/simple-cli.js.map +0 -1
- package/dist/cli/simple-commands/agent.d.ts +0 -6
- package/dist/cli/simple-commands/agent.d.ts.map +0 -1
- package/dist/cli/simple-commands/agent.js +0 -128
- package/dist/cli/simple-commands/agent.js.map +0 -1
- package/dist/cli/simple-commands/analysis.d.ts +0 -2
- package/dist/cli/simple-commands/analysis.d.ts.map +0 -1
- package/dist/cli/simple-commands/analysis.js +0 -473
- package/dist/cli/simple-commands/analysis.js.map +0 -1
- package/dist/cli/simple-commands/automation-executor.d.ts +0 -188
- package/dist/cli/simple-commands/automation-executor.d.ts.map +0 -1
- package/dist/cli/simple-commands/automation-executor.js +0 -1383
- package/dist/cli/simple-commands/automation-executor.js.map +0 -1
- package/dist/cli/simple-commands/automation.d.ts +0 -2
- package/dist/cli/simple-commands/automation.d.ts.map +0 -1
- package/dist/cli/simple-commands/automation.js +0 -531
- package/dist/cli/simple-commands/automation.js.map +0 -1
- package/dist/cli/simple-commands/batch-manager.d.ts +0 -2
- package/dist/cli/simple-commands/batch-manager.d.ts.map +0 -1
- package/dist/cli/simple-commands/batch-manager.js +0 -290
- package/dist/cli/simple-commands/batch-manager.js.map +0 -1
- package/dist/cli/simple-commands/claude-telemetry.d.ts +0 -14
- package/dist/cli/simple-commands/claude-telemetry.d.ts.map +0 -1
- package/dist/cli/simple-commands/claude-telemetry.js +0 -263
- package/dist/cli/simple-commands/claude-telemetry.js.map +0 -1
- package/dist/cli/simple-commands/config.d.ts +0 -6
- package/dist/cli/simple-commands/config.d.ts.map +0 -1
- package/dist/cli/simple-commands/config.js +0 -116
- package/dist/cli/simple-commands/config.js.map +0 -1
- package/dist/cli/simple-commands/coordination.d.ts +0 -2
- package/dist/cli/simple-commands/coordination.d.ts.map +0 -1
- package/dist/cli/simple-commands/coordination.js +0 -249
- package/dist/cli/simple-commands/coordination.js.map +0 -1
- package/dist/cli/simple-commands/env-template.d.ts +0 -42
- package/dist/cli/simple-commands/env-template.d.ts.map +0 -1
- package/dist/cli/simple-commands/env-template.js +0 -183
- package/dist/cli/simple-commands/env-template.js.map +0 -1
- package/dist/cli/simple-commands/fix-hook-variables.d.ts +0 -16
- package/dist/cli/simple-commands/fix-hook-variables.d.ts.map +0 -1
- package/dist/cli/simple-commands/fix-hook-variables.js +0 -320
- package/dist/cli/simple-commands/fix-hook-variables.js.map +0 -1
- package/dist/cli/simple-commands/github/init.d.ts +0 -6
- package/dist/cli/simple-commands/github/init.d.ts.map +0 -1
- package/dist/cli/simple-commands/github/init.js +0 -506
- package/dist/cli/simple-commands/github/init.js.map +0 -1
- package/dist/cli/simple-commands/github.d.ts +0 -3
- package/dist/cli/simple-commands/github.d.ts.map +0 -1
- package/dist/cli/simple-commands/github.js +0 -356
- package/dist/cli/simple-commands/github.js.map +0 -1
- package/dist/cli/simple-commands/goal.d.ts +0 -3
- package/dist/cli/simple-commands/goal.d.ts.map +0 -1
- package/dist/cli/simple-commands/goal.js +0 -136
- package/dist/cli/simple-commands/goal.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.d.ts +0 -68
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.js +0 -264
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/communication.d.ts +0 -176
- package/dist/cli/simple-commands/hive-mind/communication.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/communication.js +0 -611
- package/dist/cli/simple-commands/hive-mind/communication.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/core.d.ts +0 -306
- package/dist/cli/simple-commands/hive-mind/core.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/core.js +0 -839
- package/dist/cli/simple-commands/hive-mind/core.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/db-optimizer.d.ts +0 -32
- package/dist/cli/simple-commands/hive-mind/db-optimizer.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/db-optimizer.js +0 -702
- package/dist/cli/simple-commands/hive-mind/db-optimizer.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.d.ts +0 -270
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js +0 -1211
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/memory.d.ts +0 -334
- package/dist/cli/simple-commands/hive-mind/memory.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/memory.js +0 -1068
- package/dist/cli/simple-commands/hive-mind/memory.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/metrics-reader.js +0 -274
- package/dist/cli/simple-commands/hive-mind/metrics-reader.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.d.ts +0 -256
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.js +0 -520
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/queen.d.ts +0 -235
- package/dist/cli/simple-commands/hive-mind/queen.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/queen.js +0 -697
- package/dist/cli/simple-commands/hive-mind/queen.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/session-manager.d.ts +0 -140
- package/dist/cli/simple-commands/hive-mind/session-manager.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/session-manager.js +0 -1000
- package/dist/cli/simple-commands/hive-mind/session-manager.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind-optimize.d.ts +0 -6
- package/dist/cli/simple-commands/hive-mind-optimize.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind-optimize.js +0 -317
- package/dist/cli/simple-commands/hive-mind-optimize.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind.d.ts +0 -22
- package/dist/cli/simple-commands/hive-mind.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind.js +0 -2722
- package/dist/cli/simple-commands/hive-mind.js.map +0 -1
- package/dist/cli/simple-commands/hook-safety.d.ts +0 -177
- package/dist/cli/simple-commands/hook-safety.d.ts.map +0 -1
- package/dist/cli/simple-commands/hook-safety.js +0 -590
- package/dist/cli/simple-commands/hook-safety.js.map +0 -1
- package/dist/cli/simple-commands/hooks.d.ts +0 -3
- package/dist/cli/simple-commands/hooks.d.ts.map +0 -1
- package/dist/cli/simple-commands/hooks.js +0 -1298
- package/dist/cli/simple-commands/hooks.js.map +0 -1
- package/dist/cli/simple-commands/init/agent-copier.d.ts +0 -65
- package/dist/cli/simple-commands/init/agent-copier.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/agent-copier.js +0 -320
- package/dist/cli/simple-commands/init/agent-copier.js.map +0 -1
- package/dist/cli/simple-commands/init/batch-init.d.ts +0 -137
- package/dist/cli/simple-commands/init/batch-init.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/batch-init.js +0 -558
- package/dist/cli/simple-commands/init/batch-init.js.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.d.ts +0 -2
- package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.js +0 -433
- package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.js.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.d.ts +0 -2
- package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.js +0 -871
- package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.js.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.d.ts +0 -2
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.js +0 -332
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.js.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.d.ts +0 -3
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js +0 -488
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.d.ts +0 -2
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.js +0 -51
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.js.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.d.ts +0 -3
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.js +0 -288
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.js.map +0 -1
- package/dist/cli/simple-commands/init/copy-revised-templates.d.ts +0 -29
- package/dist/cli/simple-commands/init/copy-revised-templates.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/copy-revised-templates.js +0 -166
- package/dist/cli/simple-commands/init/copy-revised-templates.js.map +0 -1
- package/dist/cli/simple-commands/init/executable-wrapper.d.ts +0 -2
- package/dist/cli/simple-commands/init/executable-wrapper.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/executable-wrapper.js +0 -116
- package/dist/cli/simple-commands/init/executable-wrapper.js.map +0 -1
- package/dist/cli/simple-commands/init/gitignore-updater.d.ts +0 -23
- package/dist/cli/simple-commands/init/gitignore-updater.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/gitignore-updater.js +0 -128
- package/dist/cli/simple-commands/init/gitignore-updater.js.map +0 -1
- package/dist/cli/simple-commands/init/help.d.ts +0 -2
- package/dist/cli/simple-commands/init/help.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/help.js +0 -131
- package/dist/cli/simple-commands/init/help.js.map +0 -1
- package/dist/cli/simple-commands/init/hive-mind-init.d.ts +0 -152
- package/dist/cli/simple-commands/init/hive-mind-init.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/hive-mind-init.js +0 -699
- package/dist/cli/simple-commands/init/hive-mind-init.js.map +0 -1
- package/dist/cli/simple-commands/init/index.d.ts +0 -2
- package/dist/cli/simple-commands/init/index.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/index.js +0 -1784
- package/dist/cli/simple-commands/init/index.js.map +0 -1
- package/dist/cli/simple-commands/init/performance-monitor.d.ts +0 -73
- package/dist/cli/simple-commands/init/performance-monitor.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/performance-monitor.js +0 -277
- package/dist/cli/simple-commands/init/performance-monitor.js.map +0 -1
- package/dist/cli/simple-commands/init/rollback/backup-manager.d.ts +0 -95
- package/dist/cli/simple-commands/init/rollback/backup-manager.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/rollback/backup-manager.js +0 -486
- package/dist/cli/simple-commands/init/rollback/backup-manager.js.map +0 -1
- package/dist/cli/simple-commands/init/rollback/index.d.ts +0 -114
- package/dist/cli/simple-commands/init/rollback/index.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/rollback/index.js +0 -353
- package/dist/cli/simple-commands/init/rollback/index.js.map +0 -1
- package/dist/cli/simple-commands/init/rollback/recovery-manager.d.ts +0 -161
- package/dist/cli/simple-commands/init/rollback/recovery-manager.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/rollback/recovery-manager.js +0 -686
- package/dist/cli/simple-commands/init/rollback/recovery-manager.js.map +0 -1
- package/dist/cli/simple-commands/init/rollback/rollback-executor.d.ts +0 -112
- package/dist/cli/simple-commands/init/rollback/rollback-executor.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/rollback/rollback-executor.js +0 -480
- package/dist/cli/simple-commands/init/rollback/rollback-executor.js.map +0 -1
- package/dist/cli/simple-commands/init/rollback/state-tracker.d.ts +0 -121
- package/dist/cli/simple-commands/init/rollback/state-tracker.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/rollback/state-tracker.js +0 -432
- package/dist/cli/simple-commands/init/rollback/state-tracker.js.map +0 -1
- package/dist/cli/simple-commands/init/skills-copier.d.ts +0 -41
- package/dist/cli/simple-commands/init/skills-copier.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/skills-copier.js +0 -192
- package/dist/cli/simple-commands/init/skills-copier.js.map +0 -1
- package/dist/cli/simple-commands/init/sparc/roo-readme.d.ts +0 -2
- package/dist/cli/simple-commands/init/sparc/roo-readme.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/sparc/roo-readme.js +0 -61
- package/dist/cli/simple-commands/init/sparc/roo-readme.js.map +0 -1
- package/dist/cli/simple-commands/init/sparc/roomodes-config.d.ts +0 -2
- package/dist/cli/simple-commands/init/sparc/roomodes-config.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/sparc/roomodes-config.js +0 -80
- package/dist/cli/simple-commands/init/sparc/roomodes-config.js.map +0 -1
- package/dist/cli/simple-commands/init/sparc/workflows.d.ts +0 -2
- package/dist/cli/simple-commands/init/sparc/workflows.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/sparc/workflows.js +0 -36
- package/dist/cli/simple-commands/init/sparc/workflows.js.map +0 -1
- package/dist/cli/simple-commands/init/sparc-structure.d.ts +0 -2
- package/dist/cli/simple-commands/init/sparc-structure.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/sparc-structure.js +0 -63
- package/dist/cli/simple-commands/init/sparc-structure.js.map +0 -1
- package/dist/cli/simple-commands/init/template-copier.d.ts +0 -27
- package/dist/cli/simple-commands/init/template-copier.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/template-copier.js +0 -538
- package/dist/cli/simple-commands/init/template-copier.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/claude-md.d.ts +0 -6
- package/dist/cli/simple-commands/init/templates/claude-md.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/templates/claude-md.js +0 -1097
- package/dist/cli/simple-commands/init/templates/claude-md.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/coordination-md.d.ts +0 -4
- package/dist/cli/simple-commands/init/templates/coordination-md.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/templates/coordination-md.js +0 -338
- package/dist/cli/simple-commands/init/templates/coordination-md.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/enhanced-templates.d.ts +0 -21
- package/dist/cli/simple-commands/init/templates/enhanced-templates.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/templates/enhanced-templates.js +0 -2304
- package/dist/cli/simple-commands/init/templates/enhanced-templates.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/memory-bank-md.d.ts +0 -4
- package/dist/cli/simple-commands/init/templates/memory-bank-md.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/templates/memory-bank-md.js +0 -257
- package/dist/cli/simple-commands/init/templates/memory-bank-md.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/readme-files.d.ts +0 -3
- package/dist/cli/simple-commands/init/templates/readme-files.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/templates/readme-files.js +0 -71
- package/dist/cli/simple-commands/init/templates/readme-files.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/sparc-modes.d.ts +0 -30
- package/dist/cli/simple-commands/init/templates/sparc-modes.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/templates/sparc-modes.js +0 -1375
- package/dist/cli/simple-commands/init/templates/sparc-modes.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/verification-claude-md.d.ts +0 -3
- package/dist/cli/simple-commands/init/templates/verification-claude-md.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/templates/verification-claude-md.js +0 -432
- package/dist/cli/simple-commands/init/templates/verification-claude-md.js.map +0 -1
- package/dist/cli/simple-commands/init/validation/config-validator.d.ts +0 -63
- package/dist/cli/simple-commands/init/validation/config-validator.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/validation/config-validator.js +0 -308
- package/dist/cli/simple-commands/init/validation/config-validator.js.map +0 -1
- package/dist/cli/simple-commands/init/validation/health-checker.d.ts +0 -117
- package/dist/cli/simple-commands/init/validation/health-checker.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/validation/health-checker.js +0 -539
- package/dist/cli/simple-commands/init/validation/health-checker.js.map +0 -1
- package/dist/cli/simple-commands/init/validation/index.d.ts +0 -55
- package/dist/cli/simple-commands/init/validation/index.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/validation/index.js +0 -347
- package/dist/cli/simple-commands/init/validation/index.js.map +0 -1
- package/dist/cli/simple-commands/init/validation/mode-validator.d.ts +0 -76
- package/dist/cli/simple-commands/init/validation/mode-validator.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/validation/mode-validator.js +0 -343
- package/dist/cli/simple-commands/init/validation/mode-validator.js.map +0 -1
- package/dist/cli/simple-commands/init/validation/post-init-validator.d.ts +0 -62
- package/dist/cli/simple-commands/init/validation/post-init-validator.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/validation/post-init-validator.js +0 -349
- package/dist/cli/simple-commands/init/validation/post-init-validator.js.map +0 -1
- package/dist/cli/simple-commands/init/validation/pre-init-validator.d.ts +0 -86
- package/dist/cli/simple-commands/init/validation/pre-init-validator.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/validation/pre-init-validator.js +0 -260
- package/dist/cli/simple-commands/init/validation/pre-init-validator.js.map +0 -1
- package/dist/cli/simple-commands/inject-memory-protocol.d.ts +0 -34
- package/dist/cli/simple-commands/inject-memory-protocol.d.ts.map +0 -1
- package/dist/cli/simple-commands/inject-memory-protocol.js +0 -229
- package/dist/cli/simple-commands/inject-memory-protocol.js.map +0 -1
- package/dist/cli/simple-commands/mcp.d.ts +0 -2
- package/dist/cli/simple-commands/mcp.d.ts.map +0 -1
- package/dist/cli/simple-commands/mcp.js +0 -369
- package/dist/cli/simple-commands/mcp.js.map +0 -1
- package/dist/cli/simple-commands/memory-consolidation.d.ts +0 -73
- package/dist/cli/simple-commands/memory-consolidation.d.ts.map +0 -1
- package/dist/cli/simple-commands/memory-consolidation.js +0 -537
- package/dist/cli/simple-commands/memory-consolidation.js.map +0 -1
- package/dist/cli/simple-commands/memory.d.ts +0 -2
- package/dist/cli/simple-commands/memory.d.ts.map +0 -1
- package/dist/cli/simple-commands/memory.js +0 -778
- package/dist/cli/simple-commands/memory.js.map +0 -1
- package/dist/cli/simple-commands/migrate-hooks.d.ts +0 -10
- package/dist/cli/simple-commands/migrate-hooks.d.ts.map +0 -1
- package/dist/cli/simple-commands/migrate-hooks.js +0 -57
- package/dist/cli/simple-commands/migrate-hooks.js.map +0 -1
- package/dist/cli/simple-commands/monitor.d.ts +0 -3
- package/dist/cli/simple-commands/monitor.d.ts.map +0 -1
- package/dist/cli/simple-commands/monitor.js +0 -366
- package/dist/cli/simple-commands/monitor.js.map +0 -1
- package/dist/cli/simple-commands/neural.d.ts +0 -3
- package/dist/cli/simple-commands/neural.d.ts.map +0 -1
- package/dist/cli/simple-commands/neural.js +0 -137
- package/dist/cli/simple-commands/neural.js.map +0 -1
- package/dist/cli/simple-commands/pair.d.ts +0 -3
- package/dist/cli/simple-commands/pair.d.ts.map +0 -1
- package/dist/cli/simple-commands/pair.js +0 -735
- package/dist/cli/simple-commands/pair.js.map +0 -1
- package/dist/cli/simple-commands/performance-hooks.d.ts +0 -20
- package/dist/cli/simple-commands/performance-hooks.d.ts.map +0 -1
- package/dist/cli/simple-commands/performance-hooks.js +0 -127
- package/dist/cli/simple-commands/performance-hooks.js.map +0 -1
- package/dist/cli/simple-commands/performance-metrics.d.ts +0 -153
- package/dist/cli/simple-commands/performance-metrics.d.ts.map +0 -1
- package/dist/cli/simple-commands/performance-metrics.js +0 -759
- package/dist/cli/simple-commands/performance-metrics.js.map +0 -1
- package/dist/cli/simple-commands/process-ui-enhanced.d.ts +0 -55
- package/dist/cli/simple-commands/process-ui-enhanced.d.ts.map +0 -1
- package/dist/cli/simple-commands/process-ui-enhanced.js +0 -680
- package/dist/cli/simple-commands/process-ui-enhanced.js.map +0 -1
- package/dist/cli/simple-commands/proxy.d.ts +0 -5
- package/dist/cli/simple-commands/proxy.d.ts.map +0 -1
- package/dist/cli/simple-commands/proxy.js +0 -346
- package/dist/cli/simple-commands/proxy.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/architect.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/architect.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/architect.js +0 -126
- package/dist/cli/simple-commands/sparc-modes/architect.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/ask.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/ask.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/ask.js +0 -127
- package/dist/cli/simple-commands/sparc-modes/ask.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/code.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/code.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/code.js +0 -149
- package/dist/cli/simple-commands/sparc-modes/code.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/debug.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/debug.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/debug.js +0 -113
- package/dist/cli/simple-commands/sparc-modes/debug.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/devops.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/devops.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/devops.js +0 -138
- package/dist/cli/simple-commands/sparc-modes/devops.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/docs-writer.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/docs-writer.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/docs-writer.js +0 -39
- package/dist/cli/simple-commands/sparc-modes/docs-writer.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/generic.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/generic.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/generic.js +0 -35
- package/dist/cli/simple-commands/sparc-modes/generic.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/index.d.ts +0 -17
- package/dist/cli/simple-commands/sparc-modes/index.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/index.js +0 -196
- package/dist/cli/simple-commands/sparc-modes/index.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/integration.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/integration.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/integration.js +0 -56
- package/dist/cli/simple-commands/sparc-modes/integration.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/mcp.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/mcp.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/mcp.js +0 -39
- package/dist/cli/simple-commands/sparc-modes/mcp.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/monitoring.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/monitoring.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/monitoring.js +0 -39
- package/dist/cli/simple-commands/sparc-modes/monitoring.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/optimization.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/optimization.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/optimization.js +0 -39
- package/dist/cli/simple-commands/sparc-modes/optimization.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/security-review.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/security-review.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/security-review.js +0 -131
- package/dist/cli/simple-commands/sparc-modes/security-review.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.js +0 -168
- package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.js +0 -39
- package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/supabase-admin.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/supabase-admin.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/supabase-admin.js +0 -150
- package/dist/cli/simple-commands/sparc-modes/supabase-admin.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/swarm.d.ts +0 -81
- package/dist/cli/simple-commands/sparc-modes/swarm.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/swarm.js +0 -428
- package/dist/cli/simple-commands/sparc-modes/swarm.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/tdd.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/tdd.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/tdd.js +0 -113
- package/dist/cli/simple-commands/sparc-modes/tdd.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/tutorial.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/tutorial.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/tutorial.js +0 -278
- package/dist/cli/simple-commands/sparc-modes/tutorial.js.map +0 -1
- package/dist/cli/simple-commands/sparc.d.ts +0 -2
- package/dist/cli/simple-commands/sparc.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc.js +0 -477
- package/dist/cli/simple-commands/sparc.js.map +0 -1
- package/dist/cli/simple-commands/start-ui.d.ts +0 -2
- package/dist/cli/simple-commands/start-ui.d.ts.map +0 -1
- package/dist/cli/simple-commands/start-ui.js +0 -135
- package/dist/cli/simple-commands/start-ui.js.map +0 -1
- package/dist/cli/simple-commands/start-wrapper.d.ts +0 -2
- package/dist/cli/simple-commands/start-wrapper.d.ts.map +0 -1
- package/dist/cli/simple-commands/start-wrapper.js +0 -264
- package/dist/cli/simple-commands/start-wrapper.js.map +0 -1
- package/dist/cli/simple-commands/start.d.ts +0 -2
- package/dist/cli/simple-commands/start.d.ts.map +0 -1
- package/dist/cli/simple-commands/start.js +0 -3
- package/dist/cli/simple-commands/start.js.map +0 -1
- package/dist/cli/simple-commands/status.d.ts +0 -2
- package/dist/cli/simple-commands/status.d.ts.map +0 -1
- package/dist/cli/simple-commands/status.js +0 -292
- package/dist/cli/simple-commands/status.js.map +0 -1
- package/dist/cli/simple-commands/stream-chain.d.ts +0 -7
- package/dist/cli/simple-commands/stream-chain.d.ts.map +0 -1
- package/dist/cli/simple-commands/stream-chain.js +0 -433
- package/dist/cli/simple-commands/stream-chain.js.map +0 -1
- package/dist/cli/simple-commands/stream-processor.d.ts +0 -32
- package/dist/cli/simple-commands/stream-processor.d.ts.map +0 -1
- package/dist/cli/simple-commands/stream-processor.js +0 -318
- package/dist/cli/simple-commands/stream-processor.js.map +0 -1
- package/dist/cli/simple-commands/swarm-executor.d.ts +0 -68
- package/dist/cli/simple-commands/swarm-executor.d.ts.map +0 -1
- package/dist/cli/simple-commands/swarm-executor.js +0 -218
- package/dist/cli/simple-commands/swarm-executor.js.map +0 -1
- package/dist/cli/simple-commands/swarm-metrics-integration.d.ts +0 -69
- package/dist/cli/simple-commands/swarm-metrics-integration.d.ts.map +0 -1
- package/dist/cli/simple-commands/swarm-metrics-integration.js +0 -294
- package/dist/cli/simple-commands/swarm-metrics-integration.js.map +0 -1
- package/dist/cli/simple-commands/swarm-webui-integration.d.ts +0 -68
- package/dist/cli/simple-commands/swarm-webui-integration.d.ts.map +0 -1
- package/dist/cli/simple-commands/swarm-webui-integration.js +0 -265
- package/dist/cli/simple-commands/swarm-webui-integration.js.map +0 -1
- package/dist/cli/simple-commands/swarm.d.ts +0 -2
- package/dist/cli/simple-commands/swarm.d.ts.map +0 -1
- package/dist/cli/simple-commands/swarm.js +0 -2104
- package/dist/cli/simple-commands/swarm.js.map +0 -1
- package/dist/cli/simple-commands/task.d.ts +0 -2
- package/dist/cli/simple-commands/task.d.ts.map +0 -1
- package/dist/cli/simple-commands/task.js +0 -250
- package/dist/cli/simple-commands/task.js.map +0 -1
- package/dist/cli/simple-commands/token-tracker.d.ts +0 -73
- package/dist/cli/simple-commands/token-tracker.d.ts.map +0 -1
- package/dist/cli/simple-commands/token-tracker.js +0 -319
- package/dist/cli/simple-commands/token-tracker.js.map +0 -1
- package/dist/cli/simple-commands/training-pipeline.d.ts +0 -166
- package/dist/cli/simple-commands/training-pipeline.d.ts.map +0 -1
- package/dist/cli/simple-commands/training-pipeline.js +0 -760
- package/dist/cli/simple-commands/training-pipeline.js.map +0 -1
- package/dist/cli/simple-commands/training.d.ts +0 -2
- package/dist/cli/simple-commands/training.d.ts.map +0 -1
- package/dist/cli/simple-commands/training.js +0 -240
- package/dist/cli/simple-commands/training.js.map +0 -1
- package/dist/cli/simple-commands/verification-training-integration.d.ts +0 -181
- package/dist/cli/simple-commands/verification-training-integration.d.ts.map +0 -1
- package/dist/cli/simple-commands/verification-training-integration.js +0 -561
- package/dist/cli/simple-commands/verification-training-integration.js.map +0 -1
- package/dist/cli/simple-commands/verification.d.ts +0 -10
- package/dist/cli/simple-commands/verification.d.ts.map +0 -1
- package/dist/cli/simple-commands/verification.js +0 -476
- package/dist/cli/simple-commands/verification.js.map +0 -1
- package/dist/cli/simple-commands/web-server.d.ts +0 -152
- package/dist/cli/simple-commands/web-server.d.ts.map +0 -1
- package/dist/cli/simple-commands/web-server.js +0 -816
- package/dist/cli/simple-commands/web-server.js.map +0 -1
- package/dist/cli/utils/interactive-detector.d.ts +0 -25
- package/dist/cli/utils/interactive-detector.d.ts.map +0 -1
- package/dist/cli/utils/interactive-detector.js +0 -129
- package/dist/cli/utils/interactive-detector.js.map +0 -1
- package/dist/cli/utils/safe-interactive.d.ts +0 -30
- package/dist/cli/utils/safe-interactive.d.ts.map +0 -1
- package/dist/cli/utils/safe-interactive.js +0 -134
- package/dist/cli/utils/safe-interactive.js.map +0 -1
- package/dist/cli/utils.d.ts +0 -75
- package/dist/cli/utils.d.ts.map +0 -1
- package/dist/cli/utils.js +0 -567
- package/dist/cli/utils.js.map +0 -1
- package/dist/config/config-manager.d.ts +0 -212
- package/dist/config/config-manager.d.ts.map +0 -1
- package/dist/config/config-manager.js +0 -550
- package/dist/config/config-manager.js.map +0 -1
- package/dist/constants/agent-types.d.ts +0 -57
- package/dist/constants/agent-types.d.ts.map +0 -1
- package/dist/constants/agent-types.js +0 -57
- package/dist/constants/agent-types.js.map +0 -1
- package/dist/coordination/advanced-scheduler.d.ts +0 -121
- package/dist/coordination/advanced-scheduler.d.ts.map +0 -1
- package/dist/coordination/advanced-scheduler.js +0 -382
- package/dist/coordination/advanced-scheduler.js.map +0 -1
- package/dist/coordination/background-executor.d.ts +0 -69
- package/dist/coordination/background-executor.d.ts.map +0 -1
- package/dist/coordination/background-executor.js +0 -363
- package/dist/coordination/background-executor.js.map +0 -1
- package/dist/coordination/circuit-breaker.d.ts +0 -124
- package/dist/coordination/circuit-breaker.d.ts.map +0 -1
- package/dist/coordination/circuit-breaker.js +0 -301
- package/dist/coordination/circuit-breaker.js.map +0 -1
- package/dist/coordination/conflict-resolution.d.ts +0 -133
- package/dist/coordination/conflict-resolution.d.ts.map +0 -1
- package/dist/coordination/conflict-resolution.js +0 -360
- package/dist/coordination/conflict-resolution.js.map +0 -1
- package/dist/coordination/dependency-graph.d.ts +0 -78
- package/dist/coordination/dependency-graph.d.ts.map +0 -1
- package/dist/coordination/dependency-graph.js +0 -387
- package/dist/coordination/dependency-graph.js.map +0 -1
- package/dist/coordination/manager.d.ts +0 -66
- package/dist/coordination/manager.d.ts.map +0 -1
- package/dist/coordination/manager.js +0 -354
- package/dist/coordination/manager.js.map +0 -1
- package/dist/coordination/messaging.d.ts +0 -37
- package/dist/coordination/messaging.d.ts.map +0 -1
- package/dist/coordination/messaging.js +0 -219
- package/dist/coordination/messaging.js.map +0 -1
- package/dist/coordination/metrics.d.ts +0 -153
- package/dist/coordination/metrics.d.ts.map +0 -1
- package/dist/coordination/metrics.js +0 -436
- package/dist/coordination/metrics.js.map +0 -1
- package/dist/coordination/resources.d.ts +0 -36
- package/dist/coordination/resources.d.ts.map +0 -1
- package/dist/coordination/resources.js +0 -254
- package/dist/coordination/resources.js.map +0 -1
- package/dist/coordination/scheduler.d.ts +0 -48
- package/dist/coordination/scheduler.d.ts.map +0 -1
- package/dist/coordination/scheduler.js +0 -308
- package/dist/coordination/scheduler.js.map +0 -1
- package/dist/coordination/swarm-coordinator.d.ts +0 -116
- package/dist/coordination/swarm-coordinator.d.ts.map +0 -1
- package/dist/coordination/swarm-coordinator.js +0 -563
- package/dist/coordination/swarm-coordinator.js.map +0 -1
- package/dist/coordination/swarm-monitor.d.ts +0 -101
- package/dist/coordination/swarm-monitor.d.ts.map +0 -1
- package/dist/coordination/swarm-monitor.js +0 -340
- package/dist/coordination/swarm-monitor.js.map +0 -1
- package/dist/coordination/work-stealing.d.ts +0 -44
- package/dist/coordination/work-stealing.d.ts.map +0 -1
- package/dist/coordination/work-stealing.js +0 -158
- package/dist/coordination/work-stealing.js.map +0 -1
- package/dist/core/config.d.ts +0 -243
- package/dist/core/config.d.ts.map +0 -1
- package/dist/core/config.js +0 -1125
- package/dist/core/config.js.map +0 -1
- package/dist/core/event-bus.d.ts +0 -63
- package/dist/core/event-bus.d.ts.map +0 -1
- package/dist/core/event-bus.js +0 -153
- package/dist/core/event-bus.js.map +0 -1
- package/dist/core/json-persistence.d.ts +0 -55
- package/dist/core/json-persistence.d.ts.map +0 -1
- package/dist/core/json-persistence.js +0 -111
- package/dist/core/json-persistence.js.map +0 -1
- package/dist/core/logger.d.ts +0 -62
- package/dist/core/logger.d.ts.map +0 -1
- package/dist/core/logger.js +0 -252
- package/dist/core/logger.js.map +0 -1
- package/dist/core/orchestrator-fixed.d.ts +0 -81
- package/dist/core/orchestrator-fixed.d.ts.map +0 -1
- package/dist/core/orchestrator-fixed.js +0 -213
- package/dist/core/orchestrator-fixed.js.map +0 -1
- package/dist/core/orchestrator.d.ts +0 -141
- package/dist/core/orchestrator.d.ts.map +0 -1
- package/dist/core/orchestrator.js +0 -1166
- package/dist/core/orchestrator.js.map +0 -1
- package/dist/core/version.d.ts +0 -10
- package/dist/core/version.d.ts.map +0 -1
- package/dist/core/version.js +0 -36
- package/dist/core/version.js.map +0 -1
- package/dist/enterprise/analytics-manager.d.ts +0 -489
- package/dist/enterprise/analytics-manager.d.ts.map +0 -1
- package/dist/enterprise/analytics-manager.js +0 -956
- package/dist/enterprise/analytics-manager.js.map +0 -1
- package/dist/enterprise/audit-manager.d.ts +0 -459
- package/dist/enterprise/audit-manager.d.ts.map +0 -1
- package/dist/enterprise/audit-manager.js +0 -1014
- package/dist/enterprise/audit-manager.js.map +0 -1
- package/dist/enterprise/cloud-manager.d.ts +0 -435
- package/dist/enterprise/cloud-manager.d.ts.map +0 -1
- package/dist/enterprise/cloud-manager.js +0 -789
- package/dist/enterprise/cloud-manager.js.map +0 -1
- package/dist/enterprise/deployment-manager.d.ts +0 -328
- package/dist/enterprise/deployment-manager.d.ts.map +0 -1
- package/dist/enterprise/deployment-manager.js +0 -830
- package/dist/enterprise/deployment-manager.js.map +0 -1
- package/dist/enterprise/project-manager.d.ts +0 -228
- package/dist/enterprise/project-manager.d.ts.map +0 -1
- package/dist/enterprise/project-manager.js +0 -537
- package/dist/enterprise/project-manager.js.map +0 -1
- package/dist/enterprise/security-manager.d.ts +0 -422
- package/dist/enterprise/security-manager.d.ts.map +0 -1
- package/dist/enterprise/security-manager.js +0 -910
- package/dist/enterprise/security-manager.js.map +0 -1
- package/dist/execution/agent-executor.d.ts +0 -80
- package/dist/execution/agent-executor.d.ts.map +0 -1
- package/dist/execution/agent-executor.js +0 -220
- package/dist/execution/agent-executor.js.map +0 -1
- package/dist/execution/provider-manager.d.ts +0 -65
- package/dist/execution/provider-manager.d.ts.map +0 -1
- package/dist/execution/provider-manager.js +0 -144
- package/dist/execution/provider-manager.js.map +0 -1
- package/dist/hive-mind/core/Agent.d.ts +0 -137
- package/dist/hive-mind/core/Agent.d.ts.map +0 -1
- package/dist/hive-mind/core/Agent.js +0 -567
- package/dist/hive-mind/core/Agent.js.map +0 -1
- package/dist/hive-mind/core/Communication.d.ts +0 -116
- package/dist/hive-mind/core/Communication.d.ts.map +0 -1
- package/dist/hive-mind/core/Communication.js +0 -407
- package/dist/hive-mind/core/Communication.js.map +0 -1
- package/dist/hive-mind/core/DatabaseManager.d.ts +0 -99
- package/dist/hive-mind/core/DatabaseManager.d.ts.map +0 -1
- package/dist/hive-mind/core/DatabaseManager.js +0 -648
- package/dist/hive-mind/core/DatabaseManager.js.map +0 -1
- package/dist/hive-mind/core/HiveMind.d.ts +0 -90
- package/dist/hive-mind/core/HiveMind.d.ts.map +0 -1
- package/dist/hive-mind/core/HiveMind.js +0 -455
- package/dist/hive-mind/core/HiveMind.js.map +0 -1
- package/dist/hive-mind/core/Memory.d.ts +0 -235
- package/dist/hive-mind/core/Memory.d.ts.map +0 -1
- package/dist/hive-mind/core/Memory.js +0 -1192
- package/dist/hive-mind/core/Memory.js.map +0 -1
- package/dist/hive-mind/core/Queen.d.ts +0 -115
- package/dist/hive-mind/core/Queen.d.ts.map +0 -1
- package/dist/hive-mind/core/Queen.js +0 -649
- package/dist/hive-mind/core/Queen.js.map +0 -1
- package/dist/hive-mind/integration/ConsensusEngine.d.ts +0 -117
- package/dist/hive-mind/integration/ConsensusEngine.d.ts.map +0 -1
- package/dist/hive-mind/integration/ConsensusEngine.js +0 -478
- package/dist/hive-mind/integration/ConsensusEngine.js.map +0 -1
- package/dist/hive-mind/integration/MCPToolWrapper.d.ts +0 -172
- package/dist/hive-mind/integration/MCPToolWrapper.d.ts.map +0 -1
- package/dist/hive-mind/integration/MCPToolWrapper.js +0 -217
- package/dist/hive-mind/integration/MCPToolWrapper.js.map +0 -1
- package/dist/hive-mind/integration/SwarmOrchestrator.d.ts +0 -172
- package/dist/hive-mind/integration/SwarmOrchestrator.d.ts.map +0 -1
- package/dist/hive-mind/integration/SwarmOrchestrator.js +0 -748
- package/dist/hive-mind/integration/SwarmOrchestrator.js.map +0 -1
- package/dist/hive-mind/types.d.ts +0 -314
- package/dist/hive-mind/types.d.ts.map +0 -1
- package/dist/hive-mind/types.js +0 -7
- package/dist/hive-mind/types.js.map +0 -1
- package/dist/mcp/auth.d.ts +0 -80
- package/dist/mcp/auth.d.ts.map +0 -1
- package/dist/mcp/auth.js +0 -350
- package/dist/mcp/auth.js.map +0 -1
- package/dist/mcp/claude-flow-tools.d.ts +0 -13
- package/dist/mcp/claude-flow-tools.d.ts.map +0 -1
- package/dist/mcp/claude-flow-tools.js +0 -1398
- package/dist/mcp/claude-flow-tools.js.map +0 -1
- package/dist/mcp/load-balancer.d.ts +0 -88
- package/dist/mcp/load-balancer.d.ts.map +0 -1
- package/dist/mcp/load-balancer.js +0 -393
- package/dist/mcp/load-balancer.js.map +0 -1
- package/dist/mcp/router.d.ts +0 -54
- package/dist/mcp/router.d.ts.map +0 -1
- package/dist/mcp/router.js +0 -204
- package/dist/mcp/router.js.map +0 -1
- package/dist/mcp/ruv-swarm-tools.d.ts +0 -58
- package/dist/mcp/ruv-swarm-tools.d.ts.map +0 -1
- package/dist/mcp/ruv-swarm-tools.js +0 -568
- package/dist/mcp/ruv-swarm-tools.js.map +0 -1
- package/dist/mcp/server.d.ts +0 -75
- package/dist/mcp/server.d.ts.map +0 -1
- package/dist/mcp/server.js +0 -538
- package/dist/mcp/server.js.map +0 -1
- package/dist/mcp/session-manager.d.ts +0 -60
- package/dist/mcp/session-manager.d.ts.map +0 -1
- package/dist/mcp/session-manager.js +0 -323
- package/dist/mcp/session-manager.js.map +0 -1
- package/dist/mcp/swarm-tools.d.ts +0 -87
- package/dist/mcp/swarm-tools.d.ts.map +0 -1
- package/dist/mcp/swarm-tools.js +0 -731
- package/dist/mcp/swarm-tools.js.map +0 -1
- package/dist/mcp/tools.d.ts +0 -145
- package/dist/mcp/tools.d.ts.map +0 -1
- package/dist/mcp/tools.js +0 -434
- package/dist/mcp/tools.js.map +0 -1
- package/dist/mcp/transports/base.d.ts +0 -22
- package/dist/mcp/transports/base.d.ts.map +0 -1
- package/dist/mcp/transports/base.js +0 -5
- package/dist/mcp/transports/base.js.map +0 -1
- package/dist/mcp/transports/http.d.ts +0 -48
- package/dist/mcp/transports/http.d.ts.map +0 -1
- package/dist/mcp/transports/http.js +0 -400
- package/dist/mcp/transports/http.js.map +0 -1
- package/dist/mcp/transports/stdio.d.ts +0 -37
- package/dist/mcp/transports/stdio.d.ts.map +0 -1
- package/dist/mcp/transports/stdio.js +0 -206
- package/dist/mcp/transports/stdio.js.map +0 -1
- package/dist/memory/advanced-serializer.d.ts +0 -159
- package/dist/memory/advanced-serializer.d.ts.map +0 -1
- package/dist/memory/advanced-serializer.js +0 -564
- package/dist/memory/advanced-serializer.js.map +0 -1
- package/dist/memory/backends/base.d.ts +0 -21
- package/dist/memory/backends/base.d.ts.map +0 -1
- package/dist/memory/backends/base.js +0 -5
- package/dist/memory/backends/base.js.map +0 -1
- package/dist/memory/backends/markdown.d.ts +0 -35
- package/dist/memory/backends/markdown.d.ts.map +0 -1
- package/dist/memory/backends/markdown.js +0 -223
- package/dist/memory/backends/markdown.js.map +0 -1
- package/dist/memory/backends/sqlite.d.ts +0 -33
- package/dist/memory/backends/sqlite.d.ts.map +0 -1
- package/dist/memory/backends/sqlite.js +0 -291
- package/dist/memory/backends/sqlite.js.map +0 -1
- package/dist/memory/cache.d.ts +0 -65
- package/dist/memory/cache.d.ts.map +0 -1
- package/dist/memory/cache.js +0 -188
- package/dist/memory/cache.js.map +0 -1
- package/dist/memory/distributed-memory.d.ts +0 -188
- package/dist/memory/distributed-memory.d.ts.map +0 -1
- package/dist/memory/distributed-memory.js +0 -710
- package/dist/memory/distributed-memory.js.map +0 -1
- package/dist/memory/enhanced-session-serializer.d.ts +0 -115
- package/dist/memory/enhanced-session-serializer.d.ts.map +0 -1
- package/dist/memory/enhanced-session-serializer.js +0 -478
- package/dist/memory/enhanced-session-serializer.js.map +0 -1
- package/dist/memory/fallback-store.d.ts +0 -28
- package/dist/memory/fallback-store.d.ts.map +0 -1
- package/dist/memory/fallback-store.js +0 -101
- package/dist/memory/fallback-store.js.map +0 -1
- package/dist/memory/in-memory-store.d.ts +0 -37
- package/dist/memory/in-memory-store.d.ts.map +0 -1
- package/dist/memory/in-memory-store.js +0 -174
- package/dist/memory/in-memory-store.js.map +0 -1
- package/dist/memory/indexer.d.ts +0 -52
- package/dist/memory/indexer.d.ts.map +0 -1
- package/dist/memory/indexer.js +0 -191
- package/dist/memory/indexer.js.map +0 -1
- package/dist/memory/manager.d.ts +0 -58
- package/dist/memory/manager.d.ts.map +0 -1
- package/dist/memory/manager.js +0 -423
- package/dist/memory/manager.js.map +0 -1
- package/dist/memory/sqlite-store.d.ts +0 -34
- package/dist/memory/sqlite-store.d.ts.map +0 -1
- package/dist/memory/sqlite-store.js +0 -268
- package/dist/memory/sqlite-store.js.map +0 -1
- package/dist/memory/sqlite-wrapper.d.ts +0 -38
- package/dist/memory/sqlite-wrapper.d.ts.map +0 -1
- package/dist/memory/sqlite-wrapper.js +0 -152
- package/dist/memory/sqlite-wrapper.js.map +0 -1
- package/dist/memory/swarm-memory.d.ts +0 -91
- package/dist/memory/swarm-memory.d.ts.map +0 -1
- package/dist/memory/swarm-memory.js +0 -454
- package/dist/memory/swarm-memory.js.map +0 -1
- package/dist/memory/unified-memory-manager.d.ts +0 -116
- package/dist/memory/unified-memory-manager.d.ts.map +0 -1
- package/dist/memory/unified-memory-manager.js +0 -397
- package/dist/memory/unified-memory-manager.js.map +0 -1
- package/dist/migration/logger.d.ts +0 -26
- package/dist/migration/logger.d.ts.map +0 -1
- package/dist/migration/logger.js +0 -145
- package/dist/migration/logger.js.map +0 -1
- package/dist/migration/migration-analyzer.d.ts +0 -18
- package/dist/migration/migration-analyzer.d.ts.map +0 -1
- package/dist/migration/migration-analyzer.js +0 -284
- package/dist/migration/migration-analyzer.js.map +0 -1
- package/dist/migration/migration-runner.d.ts +0 -26
- package/dist/migration/migration-runner.d.ts.map +0 -1
- package/dist/migration/migration-runner.js +0 -505
- package/dist/migration/migration-runner.js.map +0 -1
- package/dist/migration/migration-validator.d.ts +0 -17
- package/dist/migration/migration-validator.d.ts.map +0 -1
- package/dist/migration/migration-validator.js +0 -309
- package/dist/migration/migration-validator.js.map +0 -1
- package/dist/migration/progress-reporter.d.ts +0 -28
- package/dist/migration/progress-reporter.d.ts.map +0 -1
- package/dist/migration/progress-reporter.js +0 -163
- package/dist/migration/progress-reporter.js.map +0 -1
- package/dist/migration/rollback-manager.d.ts +0 -24
- package/dist/migration/rollback-manager.d.ts.map +0 -1
- package/dist/migration/rollback-manager.js +0 -351
- package/dist/migration/rollback-manager.js.map +0 -1
- package/dist/migration/types.d.ts +0 -103
- package/dist/migration/types.d.ts.map +0 -1
- package/dist/migration/types.js +0 -6
- package/dist/migration/types.js.map +0 -1
- package/dist/reasoningbank/reasoningbank-adapter.d.ts +0 -93
- package/dist/reasoningbank/reasoningbank-adapter.d.ts.map +0 -1
- package/dist/reasoningbank/reasoningbank-adapter.js +0 -365
- package/dist/reasoningbank/reasoningbank-adapter.js.map +0 -1
- package/dist/sdk/query-control.d.ts +0 -131
- package/dist/sdk/query-control.d.ts.map +0 -1
- package/dist/sdk/query-control.js +0 -363
- package/dist/sdk/query-control.js.map +0 -1
- package/dist/sdk/session-forking.d.ts +0 -109
- package/dist/sdk/session-forking.d.ts.map +0 -1
- package/dist/sdk/session-forking.js +0 -275
- package/dist/sdk/session-forking.js.map +0 -1
- package/dist/swarm/types.d.ts +0 -578
- package/dist/swarm/types.d.ts.map +0 -1
- package/dist/swarm/types.js +0 -54
- package/dist/swarm/types.js.map +0 -1
- package/dist/terminal/adapters/base.d.ts +0 -40
- package/dist/terminal/adapters/base.d.ts.map +0 -1
- package/dist/terminal/adapters/base.js +0 -5
- package/dist/terminal/adapters/base.js.map +0 -1
- package/dist/terminal/adapters/native.d.ts +0 -19
- package/dist/terminal/adapters/native.d.ts.map +0 -1
- package/dist/terminal/adapters/native.js +0 -414
- package/dist/terminal/adapters/native.js.map +0 -1
- package/dist/terminal/adapters/vscode.d.ts +0 -23
- package/dist/terminal/adapters/vscode.d.ts.map +0 -1
- package/dist/terminal/adapters/vscode.js +0 -267
- package/dist/terminal/adapters/vscode.js.map +0 -1
- package/dist/terminal/manager.d.ts +0 -59
- package/dist/terminal/manager.d.ts.map +0 -1
- package/dist/terminal/manager.js +0 -235
- package/dist/terminal/manager.js.map +0 -1
- package/dist/terminal/pool.d.ts +0 -32
- package/dist/terminal/pool.d.ts.map +0 -1
- package/dist/terminal/pool.js +0 -208
- package/dist/terminal/pool.js.map +0 -1
- package/dist/terminal/session.d.ts +0 -41
- package/dist/terminal/session.d.ts.map +0 -1
- package/dist/terminal/session.js +0 -210
- package/dist/terminal/session.js.map +0 -1
- package/dist/utils/error-handler.d.ts +0 -14
- package/dist/utils/error-handler.d.ts.map +0 -1
- package/dist/utils/error-handler.js +0 -29
- package/dist/utils/error-handler.js.map +0 -1
- package/dist/utils/errors.d.ts +0 -121
- package/dist/utils/errors.d.ts.map +0 -1
- package/dist/utils/errors.js +0 -194
- package/dist/utils/errors.js.map +0 -1
- package/dist/utils/formatters.d.ts +0 -15
- package/dist/utils/formatters.d.ts.map +0 -1
- package/dist/utils/formatters.js +0 -75
- package/dist/utils/formatters.js.map +0 -1
- package/dist/utils/helpers.d.ts +0 -134
- package/dist/utils/helpers.d.ts.map +0 -1
- package/dist/utils/helpers.js +0 -444
- package/dist/utils/helpers.js.map +0 -1
- package/dist/utils/key-redactor.d.ts +0 -46
- package/dist/utils/key-redactor.d.ts.map +0 -1
- package/dist/utils/key-redactor.js +0 -153
- package/dist/utils/key-redactor.js.map +0 -1
- package/dist/utils/metrics-reader.d.ts +0 -67
- package/dist/utils/metrics-reader.d.ts.map +0 -1
- package/dist/utils/metrics-reader.js +0 -201
- package/dist/utils/metrics-reader.js.map +0 -1
- package/dist/utils/npx-isolated-cache.d.ts +0 -17
- package/dist/utils/npx-isolated-cache.d.ts.map +0 -1
- package/dist/utils/npx-isolated-cache.js +0 -140
- package/dist/utils/npx-isolated-cache.js.map +0 -1
- package/dist/utils/project-root.d.ts +0 -35
- package/dist/utils/project-root.d.ts.map +0 -1
- package/dist/utils/project-root.js +0 -115
- package/dist/utils/project-root.js.map +0 -1
- package/dist/utils/type-guards.d.ts +0 -117
- package/dist/utils/type-guards.d.ts.map +0 -1
- package/dist/utils/type-guards.js +0 -166
- package/dist/utils/type-guards.js.map +0 -1
- package/dist/utils/types.d.ts +0 -568
- package/dist/utils/types.d.ts.map +0 -1
- package/dist/utils/types.js +0 -37
- package/dist/utils/types.js.map +0 -1
|
@@ -1,1126 +0,0 @@
|
|
|
1
|
-
// command-registry.js - Extensible command registration system
|
|
2
|
-
import process from 'process';
|
|
3
|
-
import { initCommand } from './simple-commands/init/index.js';
|
|
4
|
-
import { memoryCommand } from './simple-commands/memory.js';
|
|
5
|
-
import { memoryConsolidationCommand } from './simple-commands/memory-consolidation.js';
|
|
6
|
-
import { sparcCommand } from './simple-commands/sparc.js';
|
|
7
|
-
import { agentCommand } from './simple-commands/agent.js';
|
|
8
|
-
import { taskCommand } from './simple-commands/task.js';
|
|
9
|
-
import { configCommand } from './simple-commands/config.js';
|
|
10
|
-
import { statusCommand } from './simple-commands/status.js';
|
|
11
|
-
import { mcpCommand } from './simple-commands/mcp.js';
|
|
12
|
-
import { proxyCommand } from './simple-commands/proxy.js';
|
|
13
|
-
import { monitorCommand } from './simple-commands/monitor.js';
|
|
14
|
-
import { startCommand } from './simple-commands/start.js';
|
|
15
|
-
import { swarmCommand } from './simple-commands/swarm.js';
|
|
16
|
-
import { batchManagerCommand } from './simple-commands/batch-manager.js';
|
|
17
|
-
import { githubCommand } from './simple-commands/github.js';
|
|
18
|
-
import { trainingAction } from './simple-commands/training.js';
|
|
19
|
-
import { analysisAction } from './simple-commands/analysis.js';
|
|
20
|
-
import { automationAction } from './simple-commands/automation.js';
|
|
21
|
-
import { coordinationAction } from './simple-commands/coordination.js';
|
|
22
|
-
import { hooksAction } from './simple-commands/hooks.js';
|
|
23
|
-
import { hookSafetyCommand } from './simple-commands/hook-safety.js';
|
|
24
|
-
import { hiveMindCommand } from './simple-commands/hive-mind.js';
|
|
25
|
-
import { HelpFormatter } from './help-formatter.js';
|
|
26
|
-
import hiveMindOptimizeCommand from './simple-commands/hive-mind-optimize.js';
|
|
27
|
-
import { neuralCommand } from './simple-commands/neural.js';
|
|
28
|
-
import { goalCommand } from './simple-commands/goal.js';
|
|
29
|
-
import { showUnifiedMetrics, fixTaskAttribution, } from './simple-commands/swarm-metrics-integration.js';
|
|
30
|
-
import { migrateHooksCommand, migrateHooksCommandConfig } from './simple-commands/migrate-hooks.js';
|
|
31
|
-
import { fixHookVariablesCommand, fixHookVariablesCommandConfig, } from './simple-commands/fix-hook-variables.js';
|
|
32
|
-
import { initializePerformanceTracking, trackCommandExecution } from './simple-commands/performance-hooks.js';
|
|
33
|
-
// Maestro commands integrated with clean implementation
|
|
34
|
-
// Note: Maestro TypeScript commands now integrated directly in ./commands/maestro.ts
|
|
35
|
-
// Note: TypeScript imports commented out for Node.js compatibility
|
|
36
|
-
// import { ruvSwarmAction } from './commands/ruv-swarm.ts';
|
|
37
|
-
// import { configIntegrationAction } from './commands/config-integration.ts';
|
|
38
|
-
// Command registry for extensible CLI
|
|
39
|
-
export const commandRegistry = new Map();
|
|
40
|
-
// Register core commands
|
|
41
|
-
export function registerCoreCommands() {
|
|
42
|
-
commandRegistry.set('init', {
|
|
43
|
-
handler: initCommand,
|
|
44
|
-
description: 'Initialize Claude Code integration files and SPARC development environment',
|
|
45
|
-
usage: 'init [--force] [--minimal] [--sparc]',
|
|
46
|
-
examples: [
|
|
47
|
-
'npx claude-flow@latest init --sparc # Recommended: Full SPARC setup',
|
|
48
|
-
'init --sparc # Initialize with SPARC modes',
|
|
49
|
-
'init --force --minimal # Minimal setup, overwrite existing',
|
|
50
|
-
'init --sparc --force # Force SPARC setup',
|
|
51
|
-
],
|
|
52
|
-
details: `
|
|
53
|
-
The --sparc flag creates a complete development environment:
|
|
54
|
-
• .roomodes file containing 17 specialized SPARC modes
|
|
55
|
-
• CLAUDE.md for AI-readable project instructions
|
|
56
|
-
• Pre-configured modes: architect, code, tdd, debug, security, and more
|
|
57
|
-
• Ready for TDD workflows and automated code generation
|
|
58
|
-
|
|
59
|
-
First-time users should run: npx claude-flow@latest init --sparc`,
|
|
60
|
-
});
|
|
61
|
-
commandRegistry.set('start', {
|
|
62
|
-
handler: startCommand,
|
|
63
|
-
description: 'Start the Claude-Flow orchestration system',
|
|
64
|
-
usage: 'start [--daemon] [--port <port>] [--verbose] [--ui] [--web]',
|
|
65
|
-
examples: [
|
|
66
|
-
'start # Start in interactive mode',
|
|
67
|
-
'start --daemon # Start as background daemon',
|
|
68
|
-
'start --port 8080 # Use custom MCP port',
|
|
69
|
-
'start --verbose # Show detailed system activity',
|
|
70
|
-
'start --ui # Launch terminal-based UI',
|
|
71
|
-
'start --web # Launch web-based UI',
|
|
72
|
-
],
|
|
73
|
-
});
|
|
74
|
-
// Add start-ui as a convenient alias for launching the UI
|
|
75
|
-
commandRegistry.set('start-ui', {
|
|
76
|
-
handler: async (args, flags) => {
|
|
77
|
-
// Import and use the direct UI launcher
|
|
78
|
-
const { launchUI } = await import('./simple-commands/start-ui.js');
|
|
79
|
-
// Pass the full raw arguments from process.argv
|
|
80
|
-
const fullArgs = process.argv.slice(3); // Skip node, script, and command
|
|
81
|
-
return launchUI(fullArgs);
|
|
82
|
-
},
|
|
83
|
-
description: 'Start the UI interface (web UI by default)',
|
|
84
|
-
usage: 'start-ui [--port <port>] [--terminal]',
|
|
85
|
-
examples: [
|
|
86
|
-
'start-ui # Launch web-based UI (default)',
|
|
87
|
-
'start-ui --port 3000 # Use custom port',
|
|
88
|
-
'start-ui --terminal # Launch terminal-based UI instead',
|
|
89
|
-
],
|
|
90
|
-
});
|
|
91
|
-
commandRegistry.set('memory', {
|
|
92
|
-
handler: memoryCommand,
|
|
93
|
-
description: 'Memory management operations',
|
|
94
|
-
usage: 'memory <subcommand> [options]',
|
|
95
|
-
examples: [
|
|
96
|
-
'memory store key "value"',
|
|
97
|
-
'memory query search_term',
|
|
98
|
-
'memory stats',
|
|
99
|
-
'memory export backup.json',
|
|
100
|
-
],
|
|
101
|
-
});
|
|
102
|
-
commandRegistry.set('memory-consolidate', {
|
|
103
|
-
handler: memoryConsolidationCommand,
|
|
104
|
-
description: 'Consolidate fragmented memory stores into unified database',
|
|
105
|
-
usage: 'memory-consolidate <command> [options]',
|
|
106
|
-
examples: [
|
|
107
|
-
'memory-consolidate scan # Scan for all memory stores',
|
|
108
|
-
'memory-consolidate plan # Create consolidation plan',
|
|
109
|
-
'memory-consolidate execute --force # Execute consolidation',
|
|
110
|
-
'memory-consolidate report # Generate report',
|
|
111
|
-
],
|
|
112
|
-
details: `
|
|
113
|
-
Memory Consolidation Features:
|
|
114
|
-
• Discovers all memory storage locations (JSON & SQLite)
|
|
115
|
-
• Creates automatic backups before consolidation
|
|
116
|
-
• Merges all stores into unified SQLite database
|
|
117
|
-
• Optimizes with indices for better performance
|
|
118
|
-
• Maintains backward compatibility
|
|
119
|
-
|
|
120
|
-
Benefits:
|
|
121
|
-
• Single source of truth for all memory data
|
|
122
|
-
• Improved query performance with indices
|
|
123
|
-
• Reduced disk fragmentation
|
|
124
|
-
• Easier backup and restore
|
|
125
|
-
• Cross-session persistence`,
|
|
126
|
-
});
|
|
127
|
-
commandRegistry.set('sparc', {
|
|
128
|
-
handler: sparcCommand,
|
|
129
|
-
description: 'SPARC development mode operations',
|
|
130
|
-
usage: 'sparc [subcommand] [options]',
|
|
131
|
-
examples: [
|
|
132
|
-
'sparc "orchestrate full app development" # Default: sparc orchestrator',
|
|
133
|
-
'sparc modes # List available modes',
|
|
134
|
-
'sparc run code "implement feature" # Run specific mode',
|
|
135
|
-
'sparc tdd "feature description" # TDD workflow',
|
|
136
|
-
'sparc info architect # Mode details',
|
|
137
|
-
],
|
|
138
|
-
});
|
|
139
|
-
// Note: Maestro commands are now handled by TypeScript module
|
|
140
|
-
// See src/cli/commands/maestro.ts for the clean implementation
|
|
141
|
-
commandRegistry.set('maestro', {
|
|
142
|
-
handler: () => {
|
|
143
|
-
console.log('⚠️ Maestro commands have been moved to TypeScript.');
|
|
144
|
-
console.log('Please use: npx claude-flow maestro help');
|
|
145
|
-
console.log('Or import from: ./commands/maestro.js after compilation');
|
|
146
|
-
},
|
|
147
|
-
description: 'Maestro: Specs-Driven Development with Hive Mind Integration',
|
|
148
|
-
usage: 'maestro <subcommand> [options]',
|
|
149
|
-
examples: [
|
|
150
|
-
'maestro create-spec my-feature --request "Implement user auth"',
|
|
151
|
-
'maestro generate-design my-feature',
|
|
152
|
-
'maestro generate-tasks my-feature',
|
|
153
|
-
'maestro implement-task my-feature 1',
|
|
154
|
-
'maestro approve-phase my-feature',
|
|
155
|
-
'maestro status my-feature --detailed',
|
|
156
|
-
'maestro init-steering api-design',
|
|
157
|
-
'maestro help',
|
|
158
|
-
],
|
|
159
|
-
});
|
|
160
|
-
commandRegistry.set('agent', {
|
|
161
|
-
handler: agentCommand,
|
|
162
|
-
description: 'Manage AI agents, memory, and agentic-flow integration (NEW in v2.6.0)',
|
|
163
|
-
usage: 'agent <subcommand> [options]',
|
|
164
|
-
examples: [
|
|
165
|
-
'agent run coder "Build REST API" --optimize # Multi-provider execution',
|
|
166
|
-
'agent agents # List 66+ available agents',
|
|
167
|
-
'agent memory init # Initialize ReasoningBank',
|
|
168
|
-
'agent config wizard # Configure API keys',
|
|
169
|
-
'agent mcp start --daemon # Start MCP server',
|
|
170
|
-
'agent spawn researcher --name "DataBot" # Internal agent management',
|
|
171
|
-
],
|
|
172
|
-
details: `
|
|
173
|
-
Agent management features:
|
|
174
|
-
• Multi-provider execution (Anthropic, OpenRouter, ONNX, Gemini)
|
|
175
|
-
• ReasoningBank memory system (70% → 88% success improvement)
|
|
176
|
-
• Model optimization (85-98% cost savings)
|
|
177
|
-
• MCP server management (213+ tools)
|
|
178
|
-
• Configuration management (API keys, models, settings)
|
|
179
|
-
• Custom agent creation and management
|
|
180
|
-
• Internal agent hierarchies and coordination
|
|
181
|
-
|
|
182
|
-
Subcommands:
|
|
183
|
-
run - Execute agents with multi-provider support
|
|
184
|
-
agents - List all 66+ available agents
|
|
185
|
-
create - Create custom agents
|
|
186
|
-
info - Show agent information
|
|
187
|
-
conflicts - Check for agent conflicts
|
|
188
|
-
memory - ReasoningBank memory management
|
|
189
|
-
config - Configuration management
|
|
190
|
-
mcp - MCP server management
|
|
191
|
-
spawn - Internal agent management
|
|
192
|
-
list - List internal agents
|
|
193
|
-
|
|
194
|
-
See 'claude-flow help agent' for full documentation.`,
|
|
195
|
-
});
|
|
196
|
-
commandRegistry.set('proxy', {
|
|
197
|
-
handler: proxyCommand,
|
|
198
|
-
description: 'OpenRouter proxy server for 85-98% cost savings (NEW in v2.6.0)',
|
|
199
|
-
usage: 'proxy <subcommand> [options]',
|
|
200
|
-
examples: [
|
|
201
|
-
'proxy start --daemon # Start proxy server',
|
|
202
|
-
'proxy status --verbose # Check status',
|
|
203
|
-
'proxy config # Configuration guide',
|
|
204
|
-
'proxy logs --follow # View logs',
|
|
205
|
-
],
|
|
206
|
-
details: `
|
|
207
|
-
OpenRouter Proxy Features:
|
|
208
|
-
• Transparent API translation (Anthropic → OpenRouter)
|
|
209
|
-
• 85-98% cost savings vs direct Anthropic API
|
|
210
|
-
• Works with Claude Code out of the box
|
|
211
|
-
• Zero code changes required
|
|
212
|
-
• Supports all OpenRouter models
|
|
213
|
-
|
|
214
|
-
Cost Savings Examples:
|
|
215
|
-
• Claude 3.5 Sonnet: $3.00 → $0.30 per million tokens (90% savings)
|
|
216
|
-
• Claude 3 Opus: $15.00 → $2.25 per million tokens (85% savings)
|
|
217
|
-
• DeepSeek R1: Free (100% savings)
|
|
218
|
-
|
|
219
|
-
Setup:
|
|
220
|
-
1. Get OpenRouter API key: https://openrouter.ai/keys
|
|
221
|
-
2. claude-flow agent config set OPENROUTER_API_KEY sk-or-xxx
|
|
222
|
-
3. claude-flow proxy start --daemon
|
|
223
|
-
4. export ANTHROPIC_BASE_URL=http://localhost:8080
|
|
224
|
-
5. Use Claude Code normally → automatic savings!
|
|
225
|
-
|
|
226
|
-
Commands:
|
|
227
|
-
start - Start proxy server
|
|
228
|
-
stop - Stop proxy server
|
|
229
|
-
restart - Restart proxy server
|
|
230
|
-
status - Get server status
|
|
231
|
-
logs - View server logs
|
|
232
|
-
config - Configuration guide`,
|
|
233
|
-
});
|
|
234
|
-
commandRegistry.set('task', {
|
|
235
|
-
handler: taskCommand,
|
|
236
|
-
description: 'Manage tasks and workflows',
|
|
237
|
-
usage: 'task <subcommand> [options]',
|
|
238
|
-
examples: [
|
|
239
|
-
'task create research "Market analysis"',
|
|
240
|
-
'task list --filter running',
|
|
241
|
-
'task workflow examples/dev-flow.json',
|
|
242
|
-
'task coordination status',
|
|
243
|
-
],
|
|
244
|
-
});
|
|
245
|
-
commandRegistry.set('config', {
|
|
246
|
-
handler: configCommand,
|
|
247
|
-
description: 'Manage system configuration',
|
|
248
|
-
usage: 'config <subcommand> [options]',
|
|
249
|
-
examples: [
|
|
250
|
-
'config init',
|
|
251
|
-
'config set terminal.poolSize 15',
|
|
252
|
-
'config get orchestrator.maxConcurrentTasks',
|
|
253
|
-
'config validate',
|
|
254
|
-
],
|
|
255
|
-
});
|
|
256
|
-
commandRegistry.set('status', {
|
|
257
|
-
handler: statusCommand,
|
|
258
|
-
description: 'Show system status and health',
|
|
259
|
-
usage: 'status [--verbose] [--json]',
|
|
260
|
-
examples: ['status', 'status --verbose', 'status --json'],
|
|
261
|
-
});
|
|
262
|
-
commandRegistry.set('mcp', {
|
|
263
|
-
handler: mcpCommand,
|
|
264
|
-
description: 'Manage MCP server and tools',
|
|
265
|
-
usage: 'mcp <subcommand> [options]',
|
|
266
|
-
examples: ['mcp status', 'mcp start --port 8080', 'mcp tools --verbose', 'mcp auth setup'],
|
|
267
|
-
});
|
|
268
|
-
commandRegistry.set('monitor', {
|
|
269
|
-
handler: monitorCommand,
|
|
270
|
-
description: 'Real-time system monitoring',
|
|
271
|
-
usage: 'monitor [--watch] [--interval <ms>]',
|
|
272
|
-
examples: [
|
|
273
|
-
'monitor',
|
|
274
|
-
'monitor --watch',
|
|
275
|
-
'monitor --interval 1000 --watch',
|
|
276
|
-
'monitor --format json',
|
|
277
|
-
],
|
|
278
|
-
});
|
|
279
|
-
commandRegistry.set('swarm', {
|
|
280
|
-
handler: swarmCommand,
|
|
281
|
-
description: 'Swarm-based AI agent coordination',
|
|
282
|
-
usage: 'swarm <objective> [options]',
|
|
283
|
-
examples: [
|
|
284
|
-
'swarm "Build a REST API"',
|
|
285
|
-
'swarm "Research cloud architecture" --strategy research',
|
|
286
|
-
'swarm "Analyze data" --max-agents 3 --parallel',
|
|
287
|
-
'swarm "Development task" --ui --monitor --background',
|
|
288
|
-
],
|
|
289
|
-
});
|
|
290
|
-
commandRegistry.set('hive-mind', {
|
|
291
|
-
handler: hiveMindCommand,
|
|
292
|
-
description: '🧠 Advanced Hive Mind swarm intelligence with collective decision-making',
|
|
293
|
-
usage: 'hive-mind <subcommand> [options]',
|
|
294
|
-
examples: [
|
|
295
|
-
'hive-mind init # Initialize hive mind system',
|
|
296
|
-
'hive-mind spawn "Build microservices" # Create swarm with objective',
|
|
297
|
-
'hive-mind wizard # Interactive setup wizard',
|
|
298
|
-
'hive-mind status # View active swarms',
|
|
299
|
-
'hive-mind consensus # View consensus decisions',
|
|
300
|
-
'hive-mind metrics # Performance analytics',
|
|
301
|
-
],
|
|
302
|
-
customHelp: true, // Use command's own help function
|
|
303
|
-
details: `
|
|
304
|
-
Hive Mind System Features:
|
|
305
|
-
• Queen-led coordination with specialized worker agents
|
|
306
|
-
• Collective memory and knowledge sharing
|
|
307
|
-
• Consensus building for critical decisions
|
|
308
|
-
• Auto-scaling based on workload
|
|
309
|
-
• Parallel task execution with work stealing
|
|
310
|
-
• Real-time monitoring and metrics
|
|
311
|
-
• SQLite-backed persistence
|
|
312
|
-
• MCP tool integration for 87+ operations
|
|
313
|
-
|
|
314
|
-
Queen Types:
|
|
315
|
-
• Strategic - Long-term planning and optimization
|
|
316
|
-
• Tactical - Task prioritization and rapid response
|
|
317
|
-
• Adaptive - Learning and strategy evolution
|
|
318
|
-
|
|
319
|
-
Worker Types:
|
|
320
|
-
• Researcher, Coder, Analyst, Tester
|
|
321
|
-
• Architect, Reviewer, Optimizer, Documenter
|
|
322
|
-
|
|
323
|
-
Use 'hive-mind wizard' for interactive setup or 'hive-mind help' for full documentation.`,
|
|
324
|
-
});
|
|
325
|
-
commandRegistry.set('hive-mind-optimize', {
|
|
326
|
-
handler: hiveMindOptimizeCommand,
|
|
327
|
-
description: '🔧 Optimize hive mind database for better performance',
|
|
328
|
-
usage: 'hive-mind-optimize [options]',
|
|
329
|
-
examples: [
|
|
330
|
-
'hive-mind-optimize # Interactive optimization wizard',
|
|
331
|
-
'hive-mind-optimize --auto # Auto-optimize with defaults',
|
|
332
|
-
'hive-mind-optimize --report # Generate optimization report',
|
|
333
|
-
'hive-mind-optimize --clean-memory --memory-days 60',
|
|
334
|
-
'hive-mind-optimize --auto --vacuum --archive-tasks',
|
|
335
|
-
],
|
|
336
|
-
details: `
|
|
337
|
-
Hive Mind Database Optimization Features:
|
|
338
|
-
• Safe, backward-compatible optimizations
|
|
339
|
-
• Performance indexes for 50% faster queries
|
|
340
|
-
• Memory cleanup and archiving
|
|
341
|
-
• Task archival for space management
|
|
342
|
-
• Behavioral pattern tracking
|
|
343
|
-
• Database integrity checking
|
|
344
|
-
|
|
345
|
-
Optimization Levels:
|
|
346
|
-
• v1.0 → v1.1: Basic performance indexes
|
|
347
|
-
• v1.1 → v1.2: Advanced query optimization
|
|
348
|
-
• v1.2 → v1.3: Performance tracking tables
|
|
349
|
-
• v1.3 → v1.4: Memory optimization features
|
|
350
|
-
• v1.4 → v1.5: Behavioral analysis tracking
|
|
351
|
-
|
|
352
|
-
Safety Features:
|
|
353
|
-
• Automatic backups before major operations
|
|
354
|
-
• All changes are backward-compatible
|
|
355
|
-
• Existing data is always preserved
|
|
356
|
-
• Rollback capability on errors`,
|
|
357
|
-
});
|
|
358
|
-
commandRegistry.set('swarm-metrics', {
|
|
359
|
-
handler: async (args, flags) => {
|
|
360
|
-
const subcommand = args[0];
|
|
361
|
-
if (subcommand === 'fix') {
|
|
362
|
-
return await fixTaskAttribution();
|
|
363
|
-
}
|
|
364
|
-
else {
|
|
365
|
-
return await showUnifiedMetrics();
|
|
366
|
-
}
|
|
367
|
-
},
|
|
368
|
-
description: 'Unified swarm metrics and task attribution diagnostics',
|
|
369
|
-
usage: 'swarm-metrics [fix] [options]',
|
|
370
|
-
examples: [
|
|
371
|
-
'swarm-metrics # Show unified metrics from all swarm systems',
|
|
372
|
-
'swarm-metrics fix # Fix task attribution issues between systems',
|
|
373
|
-
],
|
|
374
|
-
details: `
|
|
375
|
-
Swarm Metrics Integration Features:
|
|
376
|
-
• Unified view of hive-mind and ruv-swarm metrics
|
|
377
|
-
• Task attribution diagnosis and repair
|
|
378
|
-
• Cross-system swarm performance comparison
|
|
379
|
-
• Database integration status checking
|
|
380
|
-
• Automatic sample task creation for empty swarms
|
|
381
|
-
|
|
382
|
-
This command helps resolve issues where:
|
|
383
|
-
• Overall task statistics show correctly but per-swarm shows 0/0
|
|
384
|
-
• Multiple swarm systems are not properly integrated
|
|
385
|
-
• Task assignments are missing or incorrectly attributed
|
|
386
|
-
|
|
387
|
-
Use 'swarm-metrics fix' to automatically repair attribution issues.`,
|
|
388
|
-
});
|
|
389
|
-
commandRegistry.set('batch', {
|
|
390
|
-
handler: batchManagerCommand,
|
|
391
|
-
description: 'Batch operation management and configuration utilities',
|
|
392
|
-
usage: 'batch <command> [options]',
|
|
393
|
-
examples: [
|
|
394
|
-
'batch create-config my-batch.json',
|
|
395
|
-
'batch create-config --interactive',
|
|
396
|
-
'batch validate-config my-batch.json',
|
|
397
|
-
'batch estimate my-batch.json',
|
|
398
|
-
'batch list-templates',
|
|
399
|
-
'batch list-environments',
|
|
400
|
-
],
|
|
401
|
-
details: `
|
|
402
|
-
Batch operations support:
|
|
403
|
-
• Multiple project initialization with templates
|
|
404
|
-
• Environment-specific configurations (dev, staging, prod)
|
|
405
|
-
• Parallel processing with resource management
|
|
406
|
-
• Progress tracking and detailed reporting
|
|
407
|
-
• Configuration validation and estimation tools
|
|
408
|
-
|
|
409
|
-
Use with init command:
|
|
410
|
-
claude-flow init --batch-init project1,project2,project3
|
|
411
|
-
claude-flow init --config batch-config.json --parallel`,
|
|
412
|
-
});
|
|
413
|
-
commandRegistry.set('github', {
|
|
414
|
-
handler: githubCommand,
|
|
415
|
-
description: 'GitHub workflow automation with 6 specialized modes',
|
|
416
|
-
usage: 'github <mode> <objective> [options]',
|
|
417
|
-
examples: [
|
|
418
|
-
'github pr-manager "create feature PR with automated testing"',
|
|
419
|
-
'github gh-coordinator "setup CI/CD pipeline" --auto-approve',
|
|
420
|
-
'github release-manager "prepare v2.0.0 release"',
|
|
421
|
-
'github repo-architect "optimize repository structure"',
|
|
422
|
-
'github issue-tracker "analyze project roadmap issues"',
|
|
423
|
-
'github sync-coordinator "sync package versions across repos"',
|
|
424
|
-
],
|
|
425
|
-
details: `
|
|
426
|
-
GitHub automation modes:
|
|
427
|
-
• gh-coordinator: GitHub workflow orchestration and coordination
|
|
428
|
-
• pr-manager: Pull request management with multi-reviewer coordination
|
|
429
|
-
• issue-tracker: Issue management and project coordination
|
|
430
|
-
• release-manager: Release coordination and deployment pipelines
|
|
431
|
-
• repo-architect: Repository structure optimization
|
|
432
|
-
• sync-coordinator: Multi-package synchronization and version alignment
|
|
433
|
-
|
|
434
|
-
Advanced features:
|
|
435
|
-
• Multi-reviewer coordination with automated scheduling
|
|
436
|
-
• Intelligent issue categorization and assignment
|
|
437
|
-
• Automated testing integration and quality gates
|
|
438
|
-
• Release pipeline orchestration with rollback capabilities`,
|
|
439
|
-
});
|
|
440
|
-
commandRegistry.set('training', {
|
|
441
|
-
handler: trainingAction,
|
|
442
|
-
description: 'Neural pattern learning and model updates',
|
|
443
|
-
usage: 'training <command> [options]',
|
|
444
|
-
examples: [
|
|
445
|
-
'training neural-train --data recent --model task-predictor',
|
|
446
|
-
'training pattern-learn --operation "file-creation" --outcome "success"',
|
|
447
|
-
'training model-update --agent-type coordinator --operation-result "efficient"',
|
|
448
|
-
],
|
|
449
|
-
details: `
|
|
450
|
-
Neural training commands:
|
|
451
|
-
• neural-train: Train neural patterns from operations
|
|
452
|
-
• pattern-learn: Learn from specific operation outcomes
|
|
453
|
-
• model-update: Update agent models with new insights
|
|
454
|
-
|
|
455
|
-
Improves task selection accuracy, agent performance prediction, and coordination efficiency.`,
|
|
456
|
-
});
|
|
457
|
-
commandRegistry.set('analysis', {
|
|
458
|
-
handler: analysisAction,
|
|
459
|
-
description: 'Performance and usage analytics',
|
|
460
|
-
usage: 'analysis <command> [options]',
|
|
461
|
-
examples: [
|
|
462
|
-
'analysis bottleneck-detect --scope system',
|
|
463
|
-
'analysis performance-report --timeframe 7d --format detailed',
|
|
464
|
-
'analysis token-usage --breakdown --cost-analysis',
|
|
465
|
-
],
|
|
466
|
-
details: `
|
|
467
|
-
Analysis commands:
|
|
468
|
-
• bottleneck-detect: Detect performance bottlenecks in the system
|
|
469
|
-
• performance-report: Generate comprehensive performance reports
|
|
470
|
-
• token-usage: Analyze token consumption and costs
|
|
471
|
-
|
|
472
|
-
Helps with performance optimization, cost management, and resource allocation.`,
|
|
473
|
-
});
|
|
474
|
-
commandRegistry.set('automation', {
|
|
475
|
-
handler: automationAction,
|
|
476
|
-
description: 'Intelligent agent and workflow management with MLE-STAR and Claude integration',
|
|
477
|
-
usage: 'automation <command> [options]',
|
|
478
|
-
examples: [
|
|
479
|
-
'automation auto-agent --task-complexity enterprise --swarm-id swarm-123',
|
|
480
|
-
'automation smart-spawn --requirement "web-development" --max-agents 8',
|
|
481
|
-
'automation workflow-select --project-type api --priority speed',
|
|
482
|
-
'automation run-workflow my-workflow.json --claude --non-interactive',
|
|
483
|
-
'automation mle-star --dataset data/train.csv --target price --claude',
|
|
484
|
-
],
|
|
485
|
-
details: `
|
|
486
|
-
Automation commands:
|
|
487
|
-
• auto-agent: Automatically spawn optimal agents based on task complexity
|
|
488
|
-
• smart-spawn: Intelligently spawn agents based on specific requirements
|
|
489
|
-
• workflow-select: Select and configure optimal workflows for project types
|
|
490
|
-
• run-workflow: Execute workflows from JSON/YAML files with Claude integration
|
|
491
|
-
• mle-star: Run MLE-STAR Machine Learning Engineering workflow (flagship)
|
|
492
|
-
|
|
493
|
-
New features:
|
|
494
|
-
• Claude CLI integration for actual execution
|
|
495
|
-
• MLE-STAR methodology for ML engineering
|
|
496
|
-
• Non-interactive mode for CI/CD integration
|
|
497
|
-
• Comprehensive workflow templates
|
|
498
|
-
|
|
499
|
-
Provides optimal resource allocation, intelligent agent selection, and complete automation workflows.`,
|
|
500
|
-
});
|
|
501
|
-
commandRegistry.set('coordination', {
|
|
502
|
-
handler: coordinationAction,
|
|
503
|
-
description: 'Swarm and agent orchestration',
|
|
504
|
-
usage: 'coordination <command> [options]',
|
|
505
|
-
examples: [
|
|
506
|
-
'coordination swarm-init --topology hierarchical --max-agents 8',
|
|
507
|
-
'coordination agent-spawn --type developer --name "api-dev" --swarm-id swarm-123',
|
|
508
|
-
'coordination task-orchestrate --task "Build REST API" --strategy parallel',
|
|
509
|
-
],
|
|
510
|
-
details: `
|
|
511
|
-
Coordination commands:
|
|
512
|
-
• swarm-init: Initialize swarm coordination infrastructure
|
|
513
|
-
• agent-spawn: Spawn and coordinate new agents
|
|
514
|
-
• task-orchestrate: Orchestrate task execution across agents
|
|
515
|
-
|
|
516
|
-
Enables intelligent task distribution, agent synchronization, and shared memory coordination.`,
|
|
517
|
-
});
|
|
518
|
-
commandRegistry.set('hooks', {
|
|
519
|
-
handler: hooksAction,
|
|
520
|
-
description: 'Lifecycle event management',
|
|
521
|
-
usage: 'hooks <command> [options]',
|
|
522
|
-
examples: [
|
|
523
|
-
'hooks pre-task --description "Build API" --task-id task-123',
|
|
524
|
-
'hooks post-task --task-id task-123 --analyze-performance --generate-insights',
|
|
525
|
-
'hooks session-end --export-metrics --generate-summary',
|
|
526
|
-
],
|
|
527
|
-
details: `
|
|
528
|
-
Hooks commands:
|
|
529
|
-
• pre-task: Execute before task begins (preparation & setup)
|
|
530
|
-
• post-task: Execute after task completion (analysis & cleanup)
|
|
531
|
-
• pre-edit: Execute before file modifications (backup & validation)
|
|
532
|
-
• post-edit: Execute after file modifications (tracking & coordination)
|
|
533
|
-
• session-end: Execute at session termination (cleanup & export)
|
|
534
|
-
|
|
535
|
-
Enables automated preparation & cleanup, performance tracking, and coordination synchronization.`,
|
|
536
|
-
});
|
|
537
|
-
commandRegistry.set('hook-safety', {
|
|
538
|
-
handler: hookSafetyCommand,
|
|
539
|
-
description: '🚨 Critical hook safety system - Prevent infinite loops & financial damage',
|
|
540
|
-
usage: 'hook-safety <command> [options]',
|
|
541
|
-
examples: [
|
|
542
|
-
'hook-safety validate # Check for dangerous hook configurations',
|
|
543
|
-
'hook-safety validate --config ~/.claude/settings.json',
|
|
544
|
-
'hook-safety status # View safety status and context',
|
|
545
|
-
'hook-safety reset # Reset circuit breakers',
|
|
546
|
-
'hook-safety safe-mode # Enable safe mode (skip all hooks)',
|
|
547
|
-
],
|
|
548
|
-
details: `
|
|
549
|
-
🚨 CRITICAL: Stop hooks calling 'claude' commands create INFINITE LOOPS that can:
|
|
550
|
-
• Bypass API rate limits
|
|
551
|
-
• Cost thousands of dollars per day
|
|
552
|
-
• Make your system unresponsive
|
|
553
|
-
|
|
554
|
-
Hook Safety commands:
|
|
555
|
-
• validate: Check Claude Code settings for dangerous patterns
|
|
556
|
-
• status: Show current safety status and execution context
|
|
557
|
-
• reset: Reset circuit breakers and execution counters
|
|
558
|
-
• safe-mode: Enable/disable safe mode (skips all hooks)
|
|
559
|
-
|
|
560
|
-
SAFE ALTERNATIVES:
|
|
561
|
-
• Use PostToolUse hooks instead of Stop hooks
|
|
562
|
-
• Implement flag-based update patterns
|
|
563
|
-
• Use 'claude --skip-hooks' for manual updates
|
|
564
|
-
• Create conditional execution scripts
|
|
565
|
-
|
|
566
|
-
For more information: https://github.com/ruvnet/claude-flow/issues/166`,
|
|
567
|
-
});
|
|
568
|
-
commandRegistry.set('migrate-hooks', migrateHooksCommandConfig);
|
|
569
|
-
commandRegistry.set('fix-hook-variables', {
|
|
570
|
-
handler: fixHookVariablesCommand,
|
|
571
|
-
...fixHookVariablesCommandConfig,
|
|
572
|
-
});
|
|
573
|
-
// Verification system commands
|
|
574
|
-
commandRegistry.set('verify', {
|
|
575
|
-
handler: async (args, flags) => {
|
|
576
|
-
try {
|
|
577
|
-
const { verificationCommand } = await import('./simple-commands/verification.js');
|
|
578
|
-
return await verificationCommand(args, flags);
|
|
579
|
-
}
|
|
580
|
-
catch (error) {
|
|
581
|
-
console.error('❌ Error loading verification module:', error.message);
|
|
582
|
-
console.log('Error details:', error);
|
|
583
|
-
}
|
|
584
|
-
},
|
|
585
|
-
description: '🔍 Verification and truth enforcement system',
|
|
586
|
-
usage: 'verify <subcommand> [options]',
|
|
587
|
-
examples: [
|
|
588
|
-
'verify status # Show verification system status',
|
|
589
|
-
'verify check --taskId task-123 # Run verification checks',
|
|
590
|
-
'verify validate --taskId task-456 # Validate task results',
|
|
591
|
-
'verify config # Manage verification config',
|
|
592
|
-
'verify cleanup --force # Clean up old verification data',
|
|
593
|
-
],
|
|
594
|
-
details: `
|
|
595
|
-
Verification system commands:
|
|
596
|
-
• status: Show current system status and health
|
|
597
|
-
• check: Run verification checks on tasks
|
|
598
|
-
• validate: Validate task completion and results
|
|
599
|
-
• config: Manage verification configuration
|
|
600
|
-
• cleanup: Clean up old verification data
|
|
601
|
-
• pre-task: Execute pre-task verification
|
|
602
|
-
• post-task: Execute post-task validation
|
|
603
|
-
• integration: Run integration tests
|
|
604
|
-
• truth: Execute truth telemetry checks
|
|
605
|
-
• rollback: Trigger rollback if needed
|
|
606
|
-
|
|
607
|
-
Truth enforcement features:
|
|
608
|
-
• 0.95 minimum truth threshold
|
|
609
|
-
• Cross-agent integration testing
|
|
610
|
-
• Automated rollback on failures
|
|
611
|
-
• Cryptographic verification
|
|
612
|
-
• Byzantine fault tolerance`,
|
|
613
|
-
});
|
|
614
|
-
commandRegistry.set('truth', {
|
|
615
|
-
handler: async (args, flags) => {
|
|
616
|
-
try {
|
|
617
|
-
const { truthCommand } = await import('./simple-commands/verification.js');
|
|
618
|
-
return await truthCommand(args, flags);
|
|
619
|
-
}
|
|
620
|
-
catch (error) {
|
|
621
|
-
console.error('❌ Error loading verification module:', error.message);
|
|
622
|
-
console.log('Error details:', error);
|
|
623
|
-
}
|
|
624
|
-
},
|
|
625
|
-
description: '🎯 Truth telemetry and accuracy scoring',
|
|
626
|
-
usage: 'truth [options]',
|
|
627
|
-
examples: [
|
|
628
|
-
'truth # Show current truth scores',
|
|
629
|
-
'truth --taskId task-123 # Check truth for specific task',
|
|
630
|
-
'truth --threshold 0.95 # Set minimum truth threshold',
|
|
631
|
-
'truth --report # Generate truth report',
|
|
632
|
-
],
|
|
633
|
-
details: `
|
|
634
|
-
Truth scoring system:
|
|
635
|
-
• Real-time truth metrics collection
|
|
636
|
-
• Agent performance scoring
|
|
637
|
-
• System-wide truth accuracy tracking
|
|
638
|
-
• Automated alerting for threshold violations
|
|
639
|
-
• Dashboard data export functionality
|
|
640
|
-
|
|
641
|
-
Target metrics:
|
|
642
|
-
• >95% truth accuracy rate
|
|
643
|
-
• <10% human intervention rate
|
|
644
|
-
• >90% integration success rate
|
|
645
|
-
• <5% automated rollback frequency`,
|
|
646
|
-
});
|
|
647
|
-
commandRegistry.set('neural', {
|
|
648
|
-
handler: neuralCommand,
|
|
649
|
-
description: '🧠 Neural module commands for SAFLA self-learning systems',
|
|
650
|
-
usage: 'neural <command> [options]',
|
|
651
|
-
examples: [
|
|
652
|
-
'neural init # Initialize neural module',
|
|
653
|
-
'neural init --force # Force overwrite existing',
|
|
654
|
-
'neural init --target ./agents # Custom location',
|
|
655
|
-
],
|
|
656
|
-
details: `
|
|
657
|
-
Neural Module Features:
|
|
658
|
-
• Self-Aware Feedback Loop Algorithm (SAFLA)
|
|
659
|
-
• 4-tier memory system (Vector, Episodic, Semantic, Working)
|
|
660
|
-
• 172,000+ ops/sec processing with WASM optimization
|
|
661
|
-
• 60% memory compression while maintaining recall
|
|
662
|
-
• Cross-session learning and persistence
|
|
663
|
-
• Distributed neural training with MCP integration`,
|
|
664
|
-
});
|
|
665
|
-
commandRegistry.set('goal', {
|
|
666
|
-
handler: goalCommand,
|
|
667
|
-
description: '🎯 Goal module commands for GOAP intelligent planning',
|
|
668
|
-
usage: 'goal <command> [options]',
|
|
669
|
-
examples: [
|
|
670
|
-
'goal init # Initialize goal module',
|
|
671
|
-
'goal init --force # Force overwrite existing',
|
|
672
|
-
'goal init --target ./agents # Custom location',
|
|
673
|
-
],
|
|
674
|
-
details: `
|
|
675
|
-
Goal Module Features:
|
|
676
|
-
• Goal-Oriented Action Planning (GOAP) algorithm
|
|
677
|
-
• A* pathfinding for optimal plan generation
|
|
678
|
-
• OODA loop execution monitoring
|
|
679
|
-
• Adaptive replanning on failures
|
|
680
|
-
• Mixed LLM + code execution
|
|
681
|
-
• Cost-optimized action sequences`,
|
|
682
|
-
});
|
|
683
|
-
commandRegistry.set('pair', {
|
|
684
|
-
handler: async (args, flags) => {
|
|
685
|
-
try {
|
|
686
|
-
const pairCommand = (await import('./simple-commands/pair.js')).default;
|
|
687
|
-
return await pairCommand(args, flags);
|
|
688
|
-
}
|
|
689
|
-
catch (error) {
|
|
690
|
-
console.error('❌ Error loading pair module:', error.message);
|
|
691
|
-
console.log('Error details:', error);
|
|
692
|
-
}
|
|
693
|
-
},
|
|
694
|
-
description: '👥 Interactive pair programming with AI assistance',
|
|
695
|
-
usage: 'pair [options]',
|
|
696
|
-
examples: [
|
|
697
|
-
'pair --start # Start pair programming session',
|
|
698
|
-
'pair --start --mode driver # You write, AI assists',
|
|
699
|
-
'pair --start --verify --test # Enable verification and testing',
|
|
700
|
-
'pair --status # Show session status',
|
|
701
|
-
'pair --end # End current session',
|
|
702
|
-
],
|
|
703
|
-
details: `
|
|
704
|
-
Pair programming features:
|
|
705
|
-
• Three modes: driver, navigator, switch
|
|
706
|
-
• Real-time code assistance
|
|
707
|
-
• Optional verification and testing
|
|
708
|
-
• Session persistence
|
|
709
|
-
• Background execution support`,
|
|
710
|
-
});
|
|
711
|
-
commandRegistry.set('verify-train', {
|
|
712
|
-
handler: async (args, flags) => {
|
|
713
|
-
try {
|
|
714
|
-
const { verificationTrainingCommand } = await import('./simple-commands/verification-training-integration.js');
|
|
715
|
-
return await verificationTrainingCommand(args, flags);
|
|
716
|
-
}
|
|
717
|
-
catch (error) {
|
|
718
|
-
console.error('❌ Error loading verification-training module:', error.message);
|
|
719
|
-
console.log('Error details:', error);
|
|
720
|
-
}
|
|
721
|
-
},
|
|
722
|
-
description: '🧠 Verification-Training integration for continuous improvement',
|
|
723
|
-
usage: 'verify-train <command> [options]',
|
|
724
|
-
examples: [
|
|
725
|
-
'verify-train status # Show training status',
|
|
726
|
-
'verify-train feed # Feed verification data to training',
|
|
727
|
-
'verify-train predict coder # Predict verification outcome',
|
|
728
|
-
'verify-train recommend # Get agent recommendations',
|
|
729
|
-
'verify-train train # Trigger neural training',
|
|
730
|
-
],
|
|
731
|
-
details: `
|
|
732
|
-
Verification-Training Integration:
|
|
733
|
-
• Feeds verification results to training system
|
|
734
|
-
• Learns from agent performance over time
|
|
735
|
-
• Predicts verification outcomes
|
|
736
|
-
• Recommends best agents for tasks
|
|
737
|
-
• Improves reliability through continuous learning`,
|
|
738
|
-
});
|
|
739
|
-
commandRegistry.set('train-pipeline', {
|
|
740
|
-
handler: async (args, flags) => {
|
|
741
|
-
try {
|
|
742
|
-
// Always use real execution - no more simulation
|
|
743
|
-
const { trainingPipelineCommand } = await import('./simple-commands/training-pipeline.js');
|
|
744
|
-
return await trainingPipelineCommand(args, flags);
|
|
745
|
-
}
|
|
746
|
-
catch (error) {
|
|
747
|
-
console.error('❌ Error loading training-pipeline module:', error.message);
|
|
748
|
-
console.log('Error details:', error);
|
|
749
|
-
}
|
|
750
|
-
},
|
|
751
|
-
description: '🚀 Real training pipeline with actual code execution and learning',
|
|
752
|
-
usage: 'train-pipeline <command> [options]',
|
|
753
|
-
examples: [
|
|
754
|
-
'train-pipeline run # Run training with real code',
|
|
755
|
-
'train-pipeline run --complexity hard --iterations 5',
|
|
756
|
-
'train-pipeline generate # Generate real training tasks',
|
|
757
|
-
'train-pipeline validate # Validate current performance',
|
|
758
|
-
'train-pipeline status # Show pipeline status with real metrics',
|
|
759
|
-
],
|
|
760
|
-
details: `
|
|
761
|
-
Real Training Pipeline Features:
|
|
762
|
-
• Creates actual code files and tests
|
|
763
|
-
• Runs real npm test commands
|
|
764
|
-
• Learns from actual test results
|
|
765
|
-
• Validates improvements with real metrics
|
|
766
|
-
• Applies learned optimizations to production
|
|
767
|
-
|
|
768
|
-
Pipeline Stages:
|
|
769
|
-
1. Generate real code tasks (easy/medium/hard)
|
|
770
|
-
2. Execute with different strategies using npm
|
|
771
|
-
3. Learn from real test results
|
|
772
|
-
4. Validate actual improvements
|
|
773
|
-
5. Apply to production configuration
|
|
774
|
-
|
|
775
|
-
Options:
|
|
776
|
-
--complexity <level> Task complexity (easy/medium/hard)
|
|
777
|
-
--iterations <n> Number of training iterations`,
|
|
778
|
-
});
|
|
779
|
-
commandRegistry.set('stream-chain', {
|
|
780
|
-
handler: async (args, flags) => {
|
|
781
|
-
try {
|
|
782
|
-
const { streamChainCommand } = await import('./simple-commands/stream-chain.js');
|
|
783
|
-
return await streamChainCommand(args, flags);
|
|
784
|
-
}
|
|
785
|
-
catch (error) {
|
|
786
|
-
console.error('❌ Error loading stream-chain module:', error.message);
|
|
787
|
-
console.log('Error details:', error);
|
|
788
|
-
}
|
|
789
|
-
},
|
|
790
|
-
description: '🔗 Connect multiple Claude instances via stream-json for chained workflows',
|
|
791
|
-
usage: 'stream-chain <subcommand> [options]',
|
|
792
|
-
examples: [
|
|
793
|
-
'stream-chain run "analyze" "design" "implement" # Custom chain',
|
|
794
|
-
'stream-chain demo # Run demo chain',
|
|
795
|
-
'stream-chain pipeline analysis # Run analysis pipeline',
|
|
796
|
-
'stream-chain test # Test stream connection',
|
|
797
|
-
'stream-chain help # Show detailed help',
|
|
798
|
-
],
|
|
799
|
-
details: `
|
|
800
|
-
📚 SUBCOMMANDS
|
|
801
|
-
run <p1> <p2> [...] Execute custom chain (min 2 prompts)
|
|
802
|
-
demo Run 3-step demo chain
|
|
803
|
-
pipeline <type> Run predefined pipeline (analysis/refactor/test/optimize)
|
|
804
|
-
test Test stream connection
|
|
805
|
-
help Show comprehensive documentation
|
|
806
|
-
|
|
807
|
-
⚙️ OPTIONS
|
|
808
|
-
--verbose Show detailed execution info
|
|
809
|
-
--timeout <seconds> Timeout per step (default: 30)
|
|
810
|
-
--debug Enable debug mode
|
|
811
|
-
|
|
812
|
-
🔄 STREAM CHAINING
|
|
813
|
-
Chains multiple Claude Code calls with context preservation:
|
|
814
|
-
• Step 1 outputs stream-json → Step 2 receives context → Step 3...
|
|
815
|
-
• 100% context preservation between steps
|
|
816
|
-
• Real execution with Claude Code (not simulated)
|
|
817
|
-
|
|
818
|
-
🚀 PIPELINES
|
|
819
|
-
analysis - Analyze → Identify issues → Generate report
|
|
820
|
-
refactor - Find opportunities → Create plan → Apply changes
|
|
821
|
-
test - Analyze coverage → Design cases → Generate tests
|
|
822
|
-
optimize - Profile code → Find bottlenecks → Apply optimizations
|
|
823
|
-
|
|
824
|
-
⚡ PERFORMANCE
|
|
825
|
-
• Latency: ~10-30s per step
|
|
826
|
-
• Context: Full preservation
|
|
827
|
-
• Streaming: No intermediate files
|
|
828
|
-
|
|
829
|
-
📖 For full documentation: stream-chain help`,
|
|
830
|
-
});
|
|
831
|
-
commandRegistry.set('hive', {
|
|
832
|
-
handler: async (args, flags) => {
|
|
833
|
-
try {
|
|
834
|
-
// Try to load the hive command module
|
|
835
|
-
const { hiveAction } = await import('./commands/hive.js');
|
|
836
|
-
return hiveAction({ args, flags, command: 'hive' });
|
|
837
|
-
}
|
|
838
|
-
catch (error) {
|
|
839
|
-
// Fallback to simple implementation if module not found
|
|
840
|
-
console.log('🐝 Hive Mind - Advanced Multi-Agent Coordination');
|
|
841
|
-
console.log('');
|
|
842
|
-
console.log('The Hive Mind system provides:');
|
|
843
|
-
console.log(' • Consensus-based decision making');
|
|
844
|
-
console.log(' • Distributed task orchestration');
|
|
845
|
-
console.log(' • Quality-driven execution');
|
|
846
|
-
console.log(' • Real-time swarm monitoring');
|
|
847
|
-
console.log('');
|
|
848
|
-
console.log('Usage: hive <objective> [options]');
|
|
849
|
-
console.log('');
|
|
850
|
-
console.log('For full functionality, ensure the hive module is properly built.');
|
|
851
|
-
}
|
|
852
|
-
},
|
|
853
|
-
description: 'Hive Mind - Advanced multi-agent swarm with consensus',
|
|
854
|
-
usage: 'hive <objective> [options]',
|
|
855
|
-
examples: [
|
|
856
|
-
'hive "Build microservices architecture"',
|
|
857
|
-
'hive "Optimize database performance" --consensus unanimous',
|
|
858
|
-
'hive "Develop ML pipeline" --topology mesh --monitor',
|
|
859
|
-
'hive "Create REST API" --sparc --max-agents 8',
|
|
860
|
-
'hive "Research cloud patterns" --background --quality-threshold 0.9',
|
|
861
|
-
],
|
|
862
|
-
details: `
|
|
863
|
-
Hive Mind features:
|
|
864
|
-
• 👑 Queen-led orchestration with specialized agents
|
|
865
|
-
• 🗳️ Consensus mechanisms (quorum, unanimous, weighted, leader)
|
|
866
|
-
• 🏗️ Multiple topologies (hierarchical, mesh, ring, star)
|
|
867
|
-
• 📊 Real-time monitoring dashboard
|
|
868
|
-
• 🧪 SPARC methodology integration
|
|
869
|
-
• 💾 Distributed memory and knowledge sharing
|
|
870
|
-
|
|
871
|
-
Agent types:
|
|
872
|
-
• Queen: Orchestrator and decision maker
|
|
873
|
-
• Architect: System design and planning
|
|
874
|
-
• Worker: Implementation and execution
|
|
875
|
-
• Scout: Research and exploration
|
|
876
|
-
• Guardian: Quality and validation
|
|
877
|
-
|
|
878
|
-
Options:
|
|
879
|
-
--topology <type> Swarm topology (default: hierarchical)
|
|
880
|
-
--consensus <type> Decision mechanism (default: quorum)
|
|
881
|
-
--max-agents <n> Maximum agents (default: 8)
|
|
882
|
-
--quality-threshold <n> Min quality 0-1 (default: 0.8)
|
|
883
|
-
--sparc Use SPARC methodology
|
|
884
|
-
--monitor Real-time monitoring
|
|
885
|
-
--background Run in background`,
|
|
886
|
-
});
|
|
887
|
-
// Temporarily commented out for Node.js compatibility
|
|
888
|
-
/*
|
|
889
|
-
commandRegistry.set('ruv-swarm', {
|
|
890
|
-
handler: ruvSwarmAction,
|
|
891
|
-
description: 'Advanced AI swarm coordination with neural capabilities',
|
|
892
|
-
usage: 'ruv-swarm <command> [options]',
|
|
893
|
-
examples: [
|
|
894
|
-
'ruv-swarm init --topology mesh --max-agents 8',
|
|
895
|
-
'ruv-swarm spawn researcher --name "AI Researcher"',
|
|
896
|
-
'ruv-swarm orchestrate "Build a REST API"',
|
|
897
|
-
'ruv-swarm neural train --iterations 20',
|
|
898
|
-
'ruv-swarm benchmark --type swarm',
|
|
899
|
-
'ruv-swarm config show',
|
|
900
|
-
'ruv-swarm status --verbose'
|
|
901
|
-
],
|
|
902
|
-
details: `
|
|
903
|
-
Advanced swarm coordination features:
|
|
904
|
-
• 84.8% SWE-Bench solve rate
|
|
905
|
-
• 32.3% token reduction through coordination
|
|
906
|
-
• 2.8-4.4x speed improvement via parallel execution
|
|
907
|
-
• 27+ neural models for cognitive approaches
|
|
908
|
-
• Persistent memory across sessions
|
|
909
|
-
• Automatic topology optimization
|
|
910
|
-
|
|
911
|
-
Commands:
|
|
912
|
-
init - Initialize swarm with specified topology
|
|
913
|
-
status - Get current swarm status and metrics
|
|
914
|
-
spawn - Spawn specialized agents (researcher, coder, analyst, etc.)
|
|
915
|
-
orchestrate - Coordinate complex tasks across agents
|
|
916
|
-
neural - Neural pattern training and management
|
|
917
|
-
benchmark - Performance testing and optimization
|
|
918
|
-
config - Configuration management
|
|
919
|
-
memory - Memory usage and coordination data`
|
|
920
|
-
});
|
|
921
|
-
*/
|
|
922
|
-
// Additional ruv-swarm coordination commands - temporarily commented out
|
|
923
|
-
/*
|
|
924
|
-
commandRegistry.set('swarm-init', {
|
|
925
|
-
handler: async (args, flags) => {
|
|
926
|
-
const { ruvSwarmAction } = await import('./commands/ruv-swarm.js');
|
|
927
|
-
return ruvSwarmAction({ args: ['init', ...args], flags });
|
|
928
|
-
},
|
|
929
|
-
description: 'Quick swarm initialization with topology selection',
|
|
930
|
-
usage: 'swarm-init [--topology <type>] [--max-agents <n>] [--strategy <type>]',
|
|
931
|
-
examples: [
|
|
932
|
-
'swarm-init --topology mesh --max-agents 8',
|
|
933
|
-
'swarm-init --topology hierarchical --strategy specialized',
|
|
934
|
-
'swarm-init --topology star --max-agents 5 --strategy balanced'
|
|
935
|
-
]
|
|
936
|
-
});
|
|
937
|
-
|
|
938
|
-
commandRegistry.set('neural-spawn', {
|
|
939
|
-
handler: async (args, flags) => {
|
|
940
|
-
const { ruvSwarmAction } = await import('./commands/ruv-swarm.js');
|
|
941
|
-
return ruvSwarmAction({ args: ['spawn', ...args], flags });
|
|
942
|
-
},
|
|
943
|
-
description: 'Spawn neural agents with cognitive capabilities',
|
|
944
|
-
usage: 'neural-spawn <type> [--name <name>] [--capabilities <list>]',
|
|
945
|
-
examples: [
|
|
946
|
-
'neural-spawn researcher --name "Data Analyst"',
|
|
947
|
-
'neural-spawn coder --capabilities "typescript,react,api"',
|
|
948
|
-
'neural-spawn coordinator --name "Project Manager"'
|
|
949
|
-
]
|
|
950
|
-
});
|
|
951
|
-
|
|
952
|
-
commandRegistry.set('memory-coordinate', {
|
|
953
|
-
handler: async (args, flags) => {
|
|
954
|
-
const { ruvSwarmAction } = await import('./commands/ruv-swarm.js');
|
|
955
|
-
return ruvSwarmAction({ args: ['memory', ...args], flags });
|
|
956
|
-
},
|
|
957
|
-
description: 'Coordinate memory across swarm agents',
|
|
958
|
-
usage: 'memory-coordinate [--detail <level>] [--sync] [--compress]',
|
|
959
|
-
examples: [
|
|
960
|
-
'memory-coordinate --detail summary',
|
|
961
|
-
'memory-coordinate --detail detailed --sync',
|
|
962
|
-
'memory-coordinate --compress --sync'
|
|
963
|
-
]
|
|
964
|
-
});
|
|
965
|
-
|
|
966
|
-
commandRegistry.set('config-integration', {
|
|
967
|
-
handler: configIntegrationAction,
|
|
968
|
-
description: 'Enhanced configuration management with ruv-swarm integration',
|
|
969
|
-
usage: 'config-integration <command> [options]',
|
|
970
|
-
examples: [
|
|
971
|
-
'config-integration setup --enable-ruv-swarm',
|
|
972
|
-
'config-integration preset development',
|
|
973
|
-
'config-integration sync --force',
|
|
974
|
-
'config-integration status --verbose',
|
|
975
|
-
'config-integration export my-config.json',
|
|
976
|
-
'config-integration validate --fix'
|
|
977
|
-
],
|
|
978
|
-
details: `
|
|
979
|
-
Advanced configuration management features:
|
|
980
|
-
• Unified configuration across Claude-Flow and ruv-swarm
|
|
981
|
-
• Configuration presets for different environments
|
|
982
|
-
• Automatic synchronization between config systems
|
|
983
|
-
• Import/export capabilities with validation
|
|
984
|
-
• Real-time status monitoring and validation
|
|
985
|
-
|
|
986
|
-
Presets:
|
|
987
|
-
development - Hierarchical topology, specialized strategy, 8 agents
|
|
988
|
-
research - Mesh topology, adaptive strategy, 12 agents
|
|
989
|
-
production - Star topology, balanced strategy, 6 agents
|
|
990
|
-
|
|
991
|
-
Commands:
|
|
992
|
-
setup - Initialize ruv-swarm integration
|
|
993
|
-
sync - Synchronize configurations
|
|
994
|
-
status - Show integration status
|
|
995
|
-
validate - Validate all configurations
|
|
996
|
-
preset - Apply configuration preset
|
|
997
|
-
export - Export unified configuration
|
|
998
|
-
import - Import and apply configuration`
|
|
999
|
-
});
|
|
1000
|
-
*/
|
|
1001
|
-
}
|
|
1002
|
-
// Register a new command
|
|
1003
|
-
export function registerCommand(name, command) {
|
|
1004
|
-
if (commandRegistry.has(name)) {
|
|
1005
|
-
console.warn(`Command '${name}' already exists and will be overwritten`);
|
|
1006
|
-
}
|
|
1007
|
-
commandRegistry.set(name, {
|
|
1008
|
-
handler: command.handler,
|
|
1009
|
-
description: command.description || 'No description available',
|
|
1010
|
-
usage: command.usage || `${name} [options]`,
|
|
1011
|
-
examples: command.examples || [],
|
|
1012
|
-
hidden: command.hidden || false,
|
|
1013
|
-
});
|
|
1014
|
-
}
|
|
1015
|
-
// Get command handler
|
|
1016
|
-
export function getCommand(name) {
|
|
1017
|
-
return commandRegistry.get(name);
|
|
1018
|
-
}
|
|
1019
|
-
// List all registered commands
|
|
1020
|
-
export function listCommands(includeHidden = false) {
|
|
1021
|
-
const commands = [];
|
|
1022
|
-
for (const [name, command] of commandRegistry.entries()) {
|
|
1023
|
-
if (includeHidden || !command.hidden) {
|
|
1024
|
-
commands.push({
|
|
1025
|
-
name,
|
|
1026
|
-
...command,
|
|
1027
|
-
});
|
|
1028
|
-
}
|
|
1029
|
-
}
|
|
1030
|
-
return commands.sort((a, b) => a.name.localeCompare(b.name));
|
|
1031
|
-
}
|
|
1032
|
-
// Check if command exists
|
|
1033
|
-
export function hasCommand(name) {
|
|
1034
|
-
return commandRegistry.has(name);
|
|
1035
|
-
}
|
|
1036
|
-
// Execute a command
|
|
1037
|
-
export async function executeCommand(name, subArgs, flags) {
|
|
1038
|
-
const command = commandRegistry.get(name);
|
|
1039
|
-
if (!command) {
|
|
1040
|
-
throw new Error(`Unknown command: ${name}`);
|
|
1041
|
-
}
|
|
1042
|
-
try {
|
|
1043
|
-
// Track command execution for performance metrics
|
|
1044
|
-
await trackCommandExecution(name, command.handler, subArgs, flags);
|
|
1045
|
-
}
|
|
1046
|
-
catch (err) {
|
|
1047
|
-
throw new Error(`Command '${name}' failed: ${err.message}`);
|
|
1048
|
-
}
|
|
1049
|
-
}
|
|
1050
|
-
// Helper to show command help
|
|
1051
|
-
export function showCommandHelp(name) {
|
|
1052
|
-
const command = commandRegistry.get(name);
|
|
1053
|
-
if (!command) {
|
|
1054
|
-
console.log(HelpFormatter.formatError(`Unknown command: ${name}`, 'claude-flow', 'claude-flow <command> [options]'));
|
|
1055
|
-
return;
|
|
1056
|
-
}
|
|
1057
|
-
// If command has custom help, call it with help flag
|
|
1058
|
-
if (command.customHelp) {
|
|
1059
|
-
command.handler(['--help'], { help: true });
|
|
1060
|
-
return;
|
|
1061
|
-
}
|
|
1062
|
-
// Convert command info to standardized format
|
|
1063
|
-
const helpInfo = {
|
|
1064
|
-
name: `claude-flow ${name}`,
|
|
1065
|
-
description: HelpFormatter.stripFormatting(command.description),
|
|
1066
|
-
usage: `claude-flow ${command.usage}`,
|
|
1067
|
-
details: command.details, // Pass through the details section
|
|
1068
|
-
};
|
|
1069
|
-
// Parse examples
|
|
1070
|
-
if (command.examples && command.examples.length > 0) {
|
|
1071
|
-
helpInfo.examples = command.examples.map((ex) => {
|
|
1072
|
-
if (ex.startsWith('npx')) {
|
|
1073
|
-
return ex;
|
|
1074
|
-
}
|
|
1075
|
-
return `claude-flow ${ex}`;
|
|
1076
|
-
});
|
|
1077
|
-
}
|
|
1078
|
-
// Parse options from details if available
|
|
1079
|
-
if (command.details) {
|
|
1080
|
-
const optionsMatch = command.details.match(/Options:([\s\S]*?)(?=\n\n|$)/);
|
|
1081
|
-
if (optionsMatch) {
|
|
1082
|
-
const optionsText = optionsMatch[1];
|
|
1083
|
-
const options = [];
|
|
1084
|
-
const optionLines = optionsText.split('\n').filter((line) => line.trim());
|
|
1085
|
-
for (const line of optionLines) {
|
|
1086
|
-
const match = line.match(/^\s*(--.+?)\s{2,}(.+)$/);
|
|
1087
|
-
if (match) {
|
|
1088
|
-
let [_, flags, description] = match;
|
|
1089
|
-
// Check for default value in description
|
|
1090
|
-
const defaultMatch = description.match(/\(default: (.+?)\)/);
|
|
1091
|
-
const option = {
|
|
1092
|
-
flags: flags.trim(),
|
|
1093
|
-
description: description.replace(/\(default: .+?\)/, '').trim(),
|
|
1094
|
-
};
|
|
1095
|
-
if (defaultMatch) {
|
|
1096
|
-
option.defaultValue = defaultMatch[1];
|
|
1097
|
-
}
|
|
1098
|
-
options.push(option);
|
|
1099
|
-
}
|
|
1100
|
-
}
|
|
1101
|
-
if (options.length > 0) {
|
|
1102
|
-
helpInfo.options = options;
|
|
1103
|
-
}
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
|
-
console.log(HelpFormatter.formatHelp(helpInfo));
|
|
1107
|
-
}
|
|
1108
|
-
// Helper to show all commands
|
|
1109
|
-
export function showAllCommands() {
|
|
1110
|
-
const commands = listCommands();
|
|
1111
|
-
console.log('Available commands:');
|
|
1112
|
-
console.log();
|
|
1113
|
-
for (const command of commands) {
|
|
1114
|
-
console.log(` ${command.name.padEnd(12)} ${command.description}`);
|
|
1115
|
-
}
|
|
1116
|
-
console.log();
|
|
1117
|
-
console.log('Use "claude-flow help <command>" for detailed usage information');
|
|
1118
|
-
}
|
|
1119
|
-
// Initialize the command registry
|
|
1120
|
-
registerCoreCommands();
|
|
1121
|
-
// Initialize performance tracking
|
|
1122
|
-
initializePerformanceTracking().catch(err => {
|
|
1123
|
-
// Performance tracking is optional, don't fail if it errors
|
|
1124
|
-
console.error('Failed to initialize performance tracking:', err.message);
|
|
1125
|
-
});
|
|
1126
|
-
//# sourceMappingURL=command-registry.js.map
|