claude-flow 2.0.0-alpha.78 → 2.0.0-alpha.79
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 +74 -0
- package/bin/claude-flow +1 -1
- package/bin/claude-flow.js +0 -0
- package/dist/agents/agent-loader.d.ts +90 -0
- package/dist/agents/agent-loader.d.ts.map +1 -0
- package/dist/agents/agent-loader.js +195 -0
- package/dist/agents/agent-loader.js.map +1 -0
- package/dist/agents/agent-manager.d.ts +191 -0
- package/dist/agents/agent-manager.d.ts.map +1 -0
- package/dist/agents/agent-manager.js +1405 -0
- package/dist/agents/agent-manager.js.map +1 -0
- package/dist/api/claude-api-errors.d.ts +115 -0
- package/dist/api/claude-api-errors.d.ts.map +1 -0
- package/dist/api/claude-api-errors.js +198 -0
- package/dist/api/claude-api-errors.js.map +1 -0
- package/dist/api/claude-client.d.ts +197 -0
- package/dist/api/claude-client.d.ts.map +1 -0
- package/dist/api/claude-client.js +525 -0
- package/dist/api/claude-client.js.map +1 -0
- package/dist/cli/cli-core.d.ts +52 -0
- package/dist/cli/cli-core.d.ts.map +1 -0
- package/dist/cli/cli-core.js +264 -0
- package/dist/cli/cli-core.js.map +1 -0
- package/dist/cli/command-registry.d.ts +10 -0
- package/dist/cli/command-registry.d.ts.map +1 -0
- package/dist/cli/command-registry.js +758 -0
- package/dist/cli/command-registry.js.map +1 -0
- package/dist/cli/commands/agent.d.ts +7 -0
- package/dist/cli/commands/agent.d.ts.map +1 -0
- package/dist/cli/commands/agent.js +382 -0
- package/dist/cli/commands/agent.js.map +1 -0
- package/dist/cli/commands/config.d.ts +5 -0
- package/dist/cli/commands/config.d.ts.map +1 -0
- package/dist/cli/commands/config.js +88 -0
- package/dist/cli/commands/config.js.map +1 -0
- package/dist/cli/commands/enterprise.d.ts +3 -0
- package/dist/cli/commands/enterprise.d.ts.map +1 -0
- package/dist/cli/commands/enterprise.js +1506 -0
- package/dist/cli/commands/enterprise.js.map +1 -0
- package/dist/cli/commands/help.d.ts +7 -0
- package/dist/cli/commands/help.d.ts.map +1 -0
- package/dist/cli/commands/help.js +936 -0
- package/dist/cli/commands/help.js.map +1 -0
- package/dist/cli/commands/hive-mind/index.d.ts +19 -0
- package/dist/cli/commands/hive-mind/index.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/index.js +30 -0
- package/dist/cli/commands/hive-mind/index.js.map +1 -0
- package/dist/cli/commands/hive-mind/init.d.ts +10 -0
- package/dist/cli/commands/hive-mind/init.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/init.js +68 -0
- package/dist/cli/commands/hive-mind/init.js.map +1 -0
- package/dist/cli/commands/hive-mind/pause.d.ts +9 -0
- package/dist/cli/commands/hive-mind/pause.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/pause.js +81 -0
- package/dist/cli/commands/hive-mind/pause.js.map +1 -0
- package/dist/cli/commands/hive-mind/ps.d.ts +9 -0
- package/dist/cli/commands/hive-mind/ps.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/ps.js +120 -0
- package/dist/cli/commands/hive-mind/ps.js.map +1 -0
- package/dist/cli/commands/hive-mind/resume.d.ts +9 -0
- package/dist/cli/commands/hive-mind/resume.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/resume.js +62 -0
- package/dist/cli/commands/hive-mind/resume.js.map +1 -0
- package/dist/cli/commands/hive-mind/spawn.d.ts +10 -0
- package/dist/cli/commands/hive-mind/spawn.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/spawn.js +174 -0
- package/dist/cli/commands/hive-mind/spawn.js.map +1 -0
- package/dist/cli/commands/hive-mind/status.d.ts +10 -0
- package/dist/cli/commands/hive-mind/status.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/status.js +204 -0
- package/dist/cli/commands/hive-mind/status.js.map +1 -0
- package/dist/cli/commands/hive-mind/stop.d.ts +9 -0
- package/dist/cli/commands/hive-mind/stop.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/stop.js +125 -0
- package/dist/cli/commands/hive-mind/stop.js.map +1 -0
- package/dist/cli/commands/hive-mind/task.d.ts +10 -0
- package/dist/cli/commands/hive-mind/task.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/task.js +294 -0
- package/dist/cli/commands/hive-mind/task.js.map +1 -0
- package/dist/cli/commands/hive-mind/wizard.d.ts +10 -0
- package/dist/cli/commands/hive-mind/wizard.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/wizard.js +531 -0
- package/dist/cli/commands/hive-mind/wizard.js.map +1 -0
- package/dist/cli/commands/hive.d.ts +6 -0
- package/dist/cli/commands/hive.d.ts.map +1 -0
- package/dist/cli/commands/hive.js +409 -0
- package/dist/cli/commands/hive.js.map +1 -0
- package/dist/cli/commands/index.d.ts +3 -0
- package/dist/cli/commands/index.d.ts.map +1 -0
- package/dist/cli/commands/index.js +2532 -0
- package/dist/cli/commands/index.js.map +1 -0
- package/dist/cli/commands/mcp.d.ts +5 -0
- package/dist/cli/commands/mcp.d.ts.map +1 -0
- package/dist/cli/commands/mcp.js +169 -0
- package/dist/cli/commands/mcp.js.map +1 -0
- package/dist/cli/commands/memory.d.ts +30 -0
- package/dist/cli/commands/memory.d.ts.map +1 -0
- package/dist/cli/commands/memory.js +225 -0
- package/dist/cli/commands/memory.js.map +1 -0
- package/dist/cli/commands/migrate.d.ts +6 -0
- package/dist/cli/commands/migrate.d.ts.map +1 -0
- package/dist/cli/commands/migrate.js +139 -0
- package/dist/cli/commands/migrate.js.map +1 -0
- package/dist/cli/commands/monitor.d.ts +6 -0
- package/dist/cli/commands/monitor.d.ts.map +1 -0
- package/dist/cli/commands/monitor.js +493 -0
- package/dist/cli/commands/monitor.js.map +1 -0
- package/dist/cli/commands/session.d.ts +6 -0
- package/dist/cli/commands/session.d.ts.map +1 -0
- package/dist/cli/commands/session.js +548 -0
- package/dist/cli/commands/session.js.map +1 -0
- package/dist/cli/commands/sparc.d.ts +3 -0
- package/dist/cli/commands/sparc.d.ts.map +1 -0
- package/dist/cli/commands/sparc.js +472 -0
- package/dist/cli/commands/sparc.js.map +1 -0
- package/dist/cli/commands/start/event-emitter.d.ts +13 -0
- package/dist/cli/commands/start/event-emitter.d.ts.map +1 -0
- package/dist/cli/commands/start/event-emitter.js +35 -0
- package/dist/cli/commands/start/event-emitter.js.map +1 -0
- package/dist/cli/commands/start/index.d.ts +10 -0
- package/dist/cli/commands/start/index.d.ts.map +1 -0
- package/dist/cli/commands/start/index.js +9 -0
- package/dist/cli/commands/start/index.js.map +1 -0
- package/dist/cli/commands/start/process-manager.d.ts +31 -0
- package/dist/cli/commands/start/process-manager.d.ts.map +1 -0
- package/dist/cli/commands/start/process-manager.js +283 -0
- package/dist/cli/commands/start/process-manager.js.map +1 -0
- package/dist/cli/commands/start/process-ui-simple.d.ts +29 -0
- package/dist/cli/commands/start/process-ui-simple.d.ts.map +1 -0
- package/dist/cli/commands/start/process-ui-simple.js +334 -0
- package/dist/cli/commands/start/process-ui-simple.js.map +1 -0
- package/dist/cli/commands/start/process-ui.d.ts +5 -0
- package/dist/cli/commands/start/process-ui.d.ts.map +1 -0
- package/dist/cli/commands/start/process-ui.js +5 -0
- package/dist/cli/commands/start/process-ui.js.map +1 -0
- package/dist/cli/commands/start/start-command.d.ts +2 -0
- package/dist/cli/commands/start/start-command.d.ts.map +1 -0
- package/dist/cli/commands/start/start-command.js +462 -0
- package/dist/cli/commands/start/start-command.js.map +1 -0
- package/dist/cli/commands/start/system-monitor.d.ts +25 -0
- package/dist/cli/commands/start/system-monitor.d.ts.map +1 -0
- package/dist/cli/commands/start/system-monitor.js +265 -0
- package/dist/cli/commands/start/system-monitor.js.map +1 -0
- package/dist/cli/commands/start/types.d.ts +64 -0
- package/dist/cli/commands/start/types.d.ts.map +1 -0
- package/dist/cli/commands/start/types.js +22 -0
- package/dist/cli/commands/start/types.js.map +1 -0
- package/dist/cli/commands/start.d.ts +6 -0
- package/dist/cli/commands/start.d.ts.map +1 -0
- package/dist/cli/commands/start.js +6 -0
- package/dist/cli/commands/start.js.map +1 -0
- package/dist/cli/commands/status.d.ts +6 -0
- package/dist/cli/commands/status.d.ts.map +1 -0
- package/dist/cli/commands/status.js +307 -0
- package/dist/cli/commands/status.js.map +1 -0
- package/dist/cli/commands/swarm.d.ts +6 -0
- package/dist/cli/commands/swarm.d.ts.map +1 -0
- package/dist/cli/commands/swarm.js +465 -0
- package/dist/cli/commands/swarm.js.map +1 -0
- package/dist/cli/commands/task.d.ts +6 -0
- package/dist/cli/commands/task.d.ts.map +1 -0
- package/dist/cli/commands/task.js +75 -0
- package/dist/cli/commands/task.js.map +1 -0
- package/dist/cli/commands/workflow.d.ts +6 -0
- package/dist/cli/commands/workflow.d.ts.map +1 -0
- package/dist/cli/commands/workflow.js +624 -0
- package/dist/cli/commands/workflow.js.map +1 -0
- package/dist/cli/completion.d.ts +19 -0
- package/dist/cli/completion.d.ts.map +1 -0
- package/dist/cli/completion.js +545 -0
- package/dist/cli/completion.js.map +1 -0
- package/dist/cli/formatter.d.ts +69 -0
- package/dist/cli/formatter.d.ts.map +1 -0
- package/dist/cli/formatter.js +277 -0
- package/dist/cli/formatter.js.map +1 -0
- package/dist/cli/help-formatter.d.ts +49 -0
- package/dist/cli/help-formatter.d.ts.map +1 -0
- package/dist/cli/help-formatter.js +108 -0
- package/dist/cli/help-formatter.js.map +1 -0
- package/dist/cli/index-remote.d.ts +7 -0
- package/dist/cli/index-remote.d.ts.map +1 -0
- package/dist/cli/index-remote.js +126 -0
- package/dist/cli/index-remote.js.map +1 -0
- package/dist/cli/index.d.ts +7 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +191 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/node-compat.d.ts +81 -0
- package/dist/cli/node-compat.d.ts.map +1 -0
- package/dist/cli/node-compat.js +229 -0
- package/dist/cli/node-compat.js.map +1 -0
- package/dist/cli/repl.d.ts +5 -0
- package/dist/cli/repl.d.ts.map +1 -0
- package/dist/cli/repl.js +949 -0
- package/dist/cli/repl.js.map +1 -0
- package/dist/cli/runtime-detector.d.ts +128 -0
- package/dist/cli/runtime-detector.d.ts.map +1 -0
- package/dist/cli/runtime-detector.js +267 -0
- package/dist/cli/runtime-detector.js.map +1 -0
- package/dist/cli/simple-cli.d.ts +7 -0
- package/dist/cli/simple-cli.d.ts.map +1 -0
- package/dist/cli/simple-cli.js +3074 -0
- package/dist/cli/simple-cli.js.map +1 -0
- package/dist/cli/simple-commands/agent.d.ts +2 -0
- package/dist/cli/simple-commands/agent.d.ts.map +1 -0
- package/dist/cli/simple-commands/agent.js +175 -0
- package/dist/cli/simple-commands/agent.js.map +1 -0
- package/dist/cli/simple-commands/analysis.d.ts +2 -0
- package/dist/cli/simple-commands/analysis.d.ts.map +1 -0
- package/dist/cli/simple-commands/analysis.js +207 -0
- package/dist/cli/simple-commands/analysis.js.map +1 -0
- package/dist/cli/simple-commands/automation.d.ts +2 -0
- package/dist/cli/simple-commands/automation.d.ts.map +1 -0
- package/dist/cli/simple-commands/automation.js +246 -0
- package/dist/cli/simple-commands/automation.js.map +1 -0
- package/dist/cli/simple-commands/batch-manager.d.ts +2 -0
- package/dist/cli/simple-commands/batch-manager.d.ts.map +1 -0
- package/dist/cli/simple-commands/batch-manager.js +290 -0
- package/dist/cli/simple-commands/batch-manager.js.map +1 -0
- package/dist/cli/simple-commands/config.d.ts +2 -0
- package/dist/cli/simple-commands/config.d.ts.map +1 -0
- package/dist/cli/simple-commands/config.js +278 -0
- package/dist/cli/simple-commands/config.js.map +1 -0
- package/dist/cli/simple-commands/coordination.d.ts +2 -0
- package/dist/cli/simple-commands/coordination.d.ts.map +1 -0
- package/dist/cli/simple-commands/coordination.js +249 -0
- package/dist/cli/simple-commands/coordination.js.map +1 -0
- package/dist/cli/simple-commands/fix-hook-variables.d.ts +16 -0
- package/dist/cli/simple-commands/fix-hook-variables.d.ts.map +1 -0
- package/dist/cli/simple-commands/fix-hook-variables.js +320 -0
- package/dist/cli/simple-commands/fix-hook-variables.js.map +1 -0
- package/dist/cli/simple-commands/github.d.ts +3 -0
- package/dist/cli/simple-commands/github.d.ts.map +1 -0
- package/dist/cli/simple-commands/github.js +343 -0
- package/dist/cli/simple-commands/github.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.d.ts +68 -0
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.js +264 -0
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/communication.d.ts +176 -0
- package/dist/cli/simple-commands/hive-mind/communication.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind/communication.js +611 -0
- package/dist/cli/simple-commands/hive-mind/communication.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/core.d.ts +306 -0
- package/dist/cli/simple-commands/hive-mind/core.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind/core.js +840 -0
- package/dist/cli/simple-commands/hive-mind/core.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/db-optimizer.d.ts +32 -0
- package/dist/cli/simple-commands/hive-mind/db-optimizer.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind/db-optimizer.js +702 -0
- package/dist/cli/simple-commands/hive-mind/db-optimizer.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.d.ts +270 -0
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js +1211 -0
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/memory.d.ts +334 -0
- package/dist/cli/simple-commands/hive-mind/memory.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind/memory.js +1068 -0
- package/dist/cli/simple-commands/hive-mind/memory.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.d.ts +256 -0
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.js +520 -0
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/queen.d.ts +235 -0
- package/dist/cli/simple-commands/hive-mind/queen.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind/queen.js +697 -0
- package/dist/cli/simple-commands/hive-mind/queen.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/session-manager.d.ts +139 -0
- package/dist/cli/simple-commands/hive-mind/session-manager.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind/session-manager.js +835 -0
- package/dist/cli/simple-commands/hive-mind/session-manager.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind-optimize.d.ts +6 -0
- package/dist/cli/simple-commands/hive-mind-optimize.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind-optimize.js +317 -0
- package/dist/cli/simple-commands/hive-mind-optimize.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind.d.ts +18 -0
- package/dist/cli/simple-commands/hive-mind.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind.js +2430 -0
- package/dist/cli/simple-commands/hive-mind.js.map +1 -0
- package/dist/cli/simple-commands/hook-safety.d.ts +177 -0
- package/dist/cli/simple-commands/hook-safety.d.ts.map +1 -0
- package/dist/cli/simple-commands/hook-safety.js +590 -0
- package/dist/cli/simple-commands/hook-safety.js.map +1 -0
- package/dist/cli/simple-commands/hooks.d.ts +3 -0
- package/dist/cli/simple-commands/hooks.d.ts.map +1 -0
- package/dist/cli/simple-commands/hooks.js +1026 -0
- package/dist/cli/simple-commands/hooks.js.map +1 -0
- package/dist/cli/simple-commands/init/agent-copier.d.ts +43 -0
- package/dist/cli/simple-commands/init/agent-copier.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/agent-copier.js +200 -0
- package/dist/cli/simple-commands/init/agent-copier.js.map +1 -0
- package/dist/cli/simple-commands/init/batch-init.d.ts +137 -0
- package/dist/cli/simple-commands/init/batch-init.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/batch-init.js +558 -0
- package/dist/cli/simple-commands/init/batch-init.js.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.d.ts +2 -0
- package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.js +433 -0
- package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.js.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.d.ts +2 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.js +871 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.js.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.d.ts +2 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.js +332 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.js.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.d.ts +3 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js +488 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.d.ts +2 -0
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.js +51 -0
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.js.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.d.ts +3 -0
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.js +288 -0
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.js.map +1 -0
- package/dist/cli/simple-commands/init/copy-revised-templates.d.ts +29 -0
- package/dist/cli/simple-commands/init/copy-revised-templates.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/copy-revised-templates.js +159 -0
- package/dist/cli/simple-commands/init/copy-revised-templates.js.map +1 -0
- package/dist/cli/simple-commands/init/executable-wrapper.d.ts +2 -0
- package/dist/cli/simple-commands/init/executable-wrapper.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/executable-wrapper.js +116 -0
- package/dist/cli/simple-commands/init/executable-wrapper.js.map +1 -0
- package/dist/cli/simple-commands/init/gitignore-updater.d.ts +23 -0
- package/dist/cli/simple-commands/init/gitignore-updater.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/gitignore-updater.js +126 -0
- package/dist/cli/simple-commands/init/gitignore-updater.js.map +1 -0
- package/dist/cli/simple-commands/init/help.d.ts +2 -0
- package/dist/cli/simple-commands/init/help.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/help.js +95 -0
- package/dist/cli/simple-commands/init/help.js.map +1 -0
- package/dist/cli/simple-commands/init/index.d.ts +2 -0
- package/dist/cli/simple-commands/init/index.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/index.js +1178 -0
- package/dist/cli/simple-commands/init/index.js.map +1 -0
- package/dist/cli/simple-commands/init/performance-monitor.d.ts +73 -0
- package/dist/cli/simple-commands/init/performance-monitor.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/performance-monitor.js +277 -0
- package/dist/cli/simple-commands/init/performance-monitor.js.map +1 -0
- package/dist/cli/simple-commands/init/rollback/backup-manager.d.ts +95 -0
- package/dist/cli/simple-commands/init/rollback/backup-manager.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/rollback/backup-manager.js +486 -0
- package/dist/cli/simple-commands/init/rollback/backup-manager.js.map +1 -0
- package/dist/cli/simple-commands/init/rollback/index.d.ts +114 -0
- package/dist/cli/simple-commands/init/rollback/index.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/rollback/index.js +353 -0
- package/dist/cli/simple-commands/init/rollback/index.js.map +1 -0
- package/dist/cli/simple-commands/init/rollback/recovery-manager.d.ts +161 -0
- package/dist/cli/simple-commands/init/rollback/recovery-manager.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/rollback/recovery-manager.js +686 -0
- package/dist/cli/simple-commands/init/rollback/recovery-manager.js.map +1 -0
- package/dist/cli/simple-commands/init/rollback/rollback-executor.d.ts +112 -0
- package/dist/cli/simple-commands/init/rollback/rollback-executor.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/rollback/rollback-executor.js +480 -0
- package/dist/cli/simple-commands/init/rollback/rollback-executor.js.map +1 -0
- package/dist/cli/simple-commands/init/rollback/state-tracker.d.ts +121 -0
- package/dist/cli/simple-commands/init/rollback/state-tracker.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/rollback/state-tracker.js +432 -0
- package/dist/cli/simple-commands/init/rollback/state-tracker.js.map +1 -0
- package/dist/cli/simple-commands/init/sparc/roo-readme.d.ts +2 -0
- package/dist/cli/simple-commands/init/sparc/roo-readme.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/sparc/roo-readme.js +61 -0
- package/dist/cli/simple-commands/init/sparc/roo-readme.js.map +1 -0
- package/dist/cli/simple-commands/init/sparc/roomodes-config.d.ts +2 -0
- package/dist/cli/simple-commands/init/sparc/roomodes-config.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/sparc/roomodes-config.js +80 -0
- package/dist/cli/simple-commands/init/sparc/roomodes-config.js.map +1 -0
- package/dist/cli/simple-commands/init/sparc/workflows.d.ts +2 -0
- package/dist/cli/simple-commands/init/sparc/workflows.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/sparc/workflows.js +36 -0
- package/dist/cli/simple-commands/init/sparc/workflows.js.map +1 -0
- package/dist/cli/simple-commands/init/sparc-structure.d.ts +2 -0
- package/dist/cli/simple-commands/init/sparc-structure.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/sparc-structure.js +63 -0
- package/dist/cli/simple-commands/init/sparc-structure.js.map +1 -0
- package/dist/cli/simple-commands/init/template-copier.d.ts +27 -0
- package/dist/cli/simple-commands/init/template-copier.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/template-copier.js +510 -0
- package/dist/cli/simple-commands/init/template-copier.js.map +1 -0
- package/dist/cli/simple-commands/init/templates/claude-md.d.ts +5 -0
- package/dist/cli/simple-commands/init/templates/claude-md.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/templates/claude-md.js +646 -0
- package/dist/cli/simple-commands/init/templates/claude-md.js.map +1 -0
- package/dist/cli/simple-commands/init/templates/coordination-md.d.ts +4 -0
- package/dist/cli/simple-commands/init/templates/coordination-md.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/templates/coordination-md.js +338 -0
- package/dist/cli/simple-commands/init/templates/coordination-md.js.map +1 -0
- package/dist/cli/simple-commands/init/templates/enhanced-templates.d.ts +18 -0
- package/dist/cli/simple-commands/init/templates/enhanced-templates.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/templates/enhanced-templates.js +1407 -0
- package/dist/cli/simple-commands/init/templates/enhanced-templates.js.map +1 -0
- package/dist/cli/simple-commands/init/templates/memory-bank-md.d.ts +4 -0
- package/dist/cli/simple-commands/init/templates/memory-bank-md.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/templates/memory-bank-md.js +257 -0
- package/dist/cli/simple-commands/init/templates/memory-bank-md.js.map +1 -0
- package/dist/cli/simple-commands/init/templates/readme-files.d.ts +3 -0
- package/dist/cli/simple-commands/init/templates/readme-files.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/templates/readme-files.js +71 -0
- package/dist/cli/simple-commands/init/templates/readme-files.js.map +1 -0
- package/dist/cli/simple-commands/init/templates/sparc-modes.d.ts +30 -0
- package/dist/cli/simple-commands/init/templates/sparc-modes.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/templates/sparc-modes.js +1375 -0
- package/dist/cli/simple-commands/init/templates/sparc-modes.js.map +1 -0
- package/dist/cli/simple-commands/init/validation/config-validator.d.ts +63 -0
- package/dist/cli/simple-commands/init/validation/config-validator.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/validation/config-validator.js +308 -0
- package/dist/cli/simple-commands/init/validation/config-validator.js.map +1 -0
- package/dist/cli/simple-commands/init/validation/health-checker.d.ts +117 -0
- package/dist/cli/simple-commands/init/validation/health-checker.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/validation/health-checker.js +539 -0
- package/dist/cli/simple-commands/init/validation/health-checker.js.map +1 -0
- package/dist/cli/simple-commands/init/validation/index.d.ts +55 -0
- package/dist/cli/simple-commands/init/validation/index.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/validation/index.js +347 -0
- package/dist/cli/simple-commands/init/validation/index.js.map +1 -0
- package/dist/cli/simple-commands/init/validation/mode-validator.d.ts +76 -0
- package/dist/cli/simple-commands/init/validation/mode-validator.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/validation/mode-validator.js +343 -0
- package/dist/cli/simple-commands/init/validation/mode-validator.js.map +1 -0
- package/dist/cli/simple-commands/init/validation/post-init-validator.d.ts +62 -0
- package/dist/cli/simple-commands/init/validation/post-init-validator.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/validation/post-init-validator.js +349 -0
- package/dist/cli/simple-commands/init/validation/post-init-validator.js.map +1 -0
- package/dist/cli/simple-commands/init/validation/pre-init-validator.d.ts +86 -0
- package/dist/cli/simple-commands/init/validation/pre-init-validator.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/validation/pre-init-validator.js +260 -0
- package/dist/cli/simple-commands/init/validation/pre-init-validator.js.map +1 -0
- package/dist/cli/simple-commands/mcp.d.ts +2 -0
- package/dist/cli/simple-commands/mcp.d.ts.map +1 -0
- package/dist/cli/simple-commands/mcp.js +366 -0
- package/dist/cli/simple-commands/mcp.js.map +1 -0
- package/dist/cli/simple-commands/memory.d.ts +2 -0
- package/dist/cli/simple-commands/memory.d.ts.map +1 -0
- package/dist/cli/simple-commands/memory.js +278 -0
- package/dist/cli/simple-commands/memory.js.map +1 -0
- package/dist/cli/simple-commands/migrate-hooks.d.ts +10 -0
- package/dist/cli/simple-commands/migrate-hooks.d.ts.map +1 -0
- package/dist/cli/simple-commands/migrate-hooks.js +57 -0
- package/dist/cli/simple-commands/migrate-hooks.js.map +1 -0
- package/dist/cli/simple-commands/monitor.d.ts +3 -0
- package/dist/cli/simple-commands/monitor.d.ts.map +1 -0
- package/dist/cli/simple-commands/monitor.js +366 -0
- package/dist/cli/simple-commands/monitor.js.map +1 -0
- package/dist/cli/simple-commands/process-ui-enhanced.d.ts +55 -0
- package/dist/cli/simple-commands/process-ui-enhanced.d.ts.map +1 -0
- package/dist/cli/simple-commands/process-ui-enhanced.js +680 -0
- package/dist/cli/simple-commands/process-ui-enhanced.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/architect.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/architect.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/architect.js +126 -0
- package/dist/cli/simple-commands/sparc-modes/architect.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/ask.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/ask.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/ask.js +127 -0
- package/dist/cli/simple-commands/sparc-modes/ask.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/code.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/code.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/code.js +149 -0
- package/dist/cli/simple-commands/sparc-modes/code.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/debug.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/debug.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/debug.js +113 -0
- package/dist/cli/simple-commands/sparc-modes/debug.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/devops.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/devops.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/devops.js +138 -0
- package/dist/cli/simple-commands/sparc-modes/devops.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/docs-writer.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/docs-writer.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/docs-writer.js +39 -0
- package/dist/cli/simple-commands/sparc-modes/docs-writer.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/generic.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/generic.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/generic.js +35 -0
- package/dist/cli/simple-commands/sparc-modes/generic.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/index.d.ts +17 -0
- package/dist/cli/simple-commands/sparc-modes/index.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/index.js +196 -0
- package/dist/cli/simple-commands/sparc-modes/index.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/integration.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/integration.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/integration.js +56 -0
- package/dist/cli/simple-commands/sparc-modes/integration.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/mcp.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/mcp.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/mcp.js +39 -0
- package/dist/cli/simple-commands/sparc-modes/mcp.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/monitoring.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/monitoring.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/monitoring.js +39 -0
- package/dist/cli/simple-commands/sparc-modes/monitoring.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/optimization.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/optimization.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/optimization.js +39 -0
- package/dist/cli/simple-commands/sparc-modes/optimization.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/security-review.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/security-review.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/security-review.js +131 -0
- package/dist/cli/simple-commands/sparc-modes/security-review.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.js +168 -0
- package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.js +39 -0
- package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/supabase-admin.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/supabase-admin.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/supabase-admin.js +150 -0
- package/dist/cli/simple-commands/sparc-modes/supabase-admin.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/swarm.d.ts +81 -0
- package/dist/cli/simple-commands/sparc-modes/swarm.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/swarm.js +428 -0
- package/dist/cli/simple-commands/sparc-modes/swarm.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/tdd.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/tdd.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/tdd.js +113 -0
- package/dist/cli/simple-commands/sparc-modes/tdd.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/tutorial.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/tutorial.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/tutorial.js +278 -0
- package/dist/cli/simple-commands/sparc-modes/tutorial.js.map +1 -0
- package/dist/cli/simple-commands/sparc.d.ts +2 -0
- package/dist/cli/simple-commands/sparc.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc.js +480 -0
- package/dist/cli/simple-commands/sparc.js.map +1 -0
- package/dist/cli/simple-commands/start-ui.d.ts +2 -0
- package/dist/cli/simple-commands/start-ui.d.ts.map +1 -0
- package/dist/cli/simple-commands/start-ui.js +135 -0
- package/dist/cli/simple-commands/start-ui.js.map +1 -0
- package/dist/cli/simple-commands/start-wrapper.d.ts +2 -0
- package/dist/cli/simple-commands/start-wrapper.d.ts.map +1 -0
- package/dist/cli/simple-commands/start-wrapper.js +264 -0
- package/dist/cli/simple-commands/start-wrapper.js.map +1 -0
- package/dist/cli/simple-commands/start.d.ts +2 -0
- package/dist/cli/simple-commands/start.d.ts.map +1 -0
- package/dist/cli/simple-commands/start.js +3 -0
- package/dist/cli/simple-commands/start.js.map +1 -0
- package/dist/cli/simple-commands/status.d.ts +2 -0
- package/dist/cli/simple-commands/status.d.ts.map +1 -0
- package/dist/cli/simple-commands/status.js +274 -0
- package/dist/cli/simple-commands/status.js.map +1 -0
- package/dist/cli/simple-commands/swarm-executor.d.ts +68 -0
- package/dist/cli/simple-commands/swarm-executor.d.ts.map +1 -0
- package/dist/cli/simple-commands/swarm-executor.js +218 -0
- package/dist/cli/simple-commands/swarm-executor.js.map +1 -0
- package/dist/cli/simple-commands/swarm-metrics-integration.d.ts +69 -0
- package/dist/cli/simple-commands/swarm-metrics-integration.d.ts.map +1 -0
- package/dist/cli/simple-commands/swarm-metrics-integration.js +294 -0
- package/dist/cli/simple-commands/swarm-metrics-integration.js.map +1 -0
- package/dist/cli/simple-commands/swarm-webui-integration.d.ts +68 -0
- package/dist/cli/simple-commands/swarm-webui-integration.d.ts.map +1 -0
- package/dist/cli/simple-commands/swarm-webui-integration.js +265 -0
- package/dist/cli/simple-commands/swarm-webui-integration.js.map +1 -0
- package/dist/cli/simple-commands/swarm.d.ts +2 -0
- package/dist/cli/simple-commands/swarm.d.ts.map +1 -0
- package/dist/cli/simple-commands/swarm.js +1964 -0
- package/dist/cli/simple-commands/swarm.js.map +1 -0
- package/dist/cli/simple-commands/task.d.ts +2 -0
- package/dist/cli/simple-commands/task.d.ts.map +1 -0
- package/dist/cli/simple-commands/task.js +190 -0
- package/dist/cli/simple-commands/task.js.map +1 -0
- package/dist/cli/simple-commands/training.d.ts +2 -0
- package/dist/cli/simple-commands/training.d.ts.map +1 -0
- package/dist/cli/simple-commands/training.js +240 -0
- package/dist/cli/simple-commands/training.js.map +1 -0
- package/dist/cli/simple-commands/web-server.d.ts +152 -0
- package/dist/cli/simple-commands/web-server.d.ts.map +1 -0
- package/dist/cli/simple-commands/web-server.js +816 -0
- package/dist/cli/simple-commands/web-server.js.map +1 -0
- package/dist/cli/utils/interactive-detector.d.ts +25 -0
- package/dist/cli/utils/interactive-detector.d.ts.map +1 -0
- package/dist/cli/utils/interactive-detector.js +129 -0
- package/dist/cli/utils/interactive-detector.js.map +1 -0
- package/dist/cli/utils/safe-interactive.d.ts +30 -0
- package/dist/cli/utils/safe-interactive.d.ts.map +1 -0
- package/dist/cli/utils/safe-interactive.js +134 -0
- package/dist/cli/utils/safe-interactive.js.map +1 -0
- package/dist/cli/utils.d.ts +75 -0
- package/dist/cli/utils.d.ts.map +1 -0
- package/dist/cli/utils.js +567 -0
- package/dist/cli/utils.js.map +1 -0
- package/dist/config/config-manager.d.ts +212 -0
- package/dist/config/config-manager.d.ts.map +1 -0
- package/dist/config/config-manager.js +550 -0
- package/dist/config/config-manager.js.map +1 -0
- package/dist/constants/agent-types.d.ts +55 -0
- package/dist/constants/agent-types.d.ts.map +1 -0
- package/dist/constants/agent-types.js +66 -0
- package/dist/constants/agent-types.js.map +1 -0
- package/dist/coordination/advanced-scheduler.d.ts +121 -0
- package/dist/coordination/advanced-scheduler.d.ts.map +1 -0
- package/dist/coordination/advanced-scheduler.js +382 -0
- package/dist/coordination/advanced-scheduler.js.map +1 -0
- package/dist/coordination/background-executor.d.ts +69 -0
- package/dist/coordination/background-executor.d.ts.map +1 -0
- package/dist/coordination/background-executor.js +363 -0
- package/dist/coordination/background-executor.js.map +1 -0
- package/dist/coordination/circuit-breaker.d.ts +124 -0
- package/dist/coordination/circuit-breaker.d.ts.map +1 -0
- package/dist/coordination/circuit-breaker.js +301 -0
- package/dist/coordination/circuit-breaker.js.map +1 -0
- package/dist/coordination/conflict-resolution.d.ts +133 -0
- package/dist/coordination/conflict-resolution.d.ts.map +1 -0
- package/dist/coordination/conflict-resolution.js +360 -0
- package/dist/coordination/conflict-resolution.js.map +1 -0
- package/dist/coordination/dependency-graph.d.ts +78 -0
- package/dist/coordination/dependency-graph.d.ts.map +1 -0
- package/dist/coordination/dependency-graph.js +387 -0
- package/dist/coordination/dependency-graph.js.map +1 -0
- package/dist/coordination/manager.d.ts +66 -0
- package/dist/coordination/manager.d.ts.map +1 -0
- package/dist/coordination/manager.js +354 -0
- package/dist/coordination/manager.js.map +1 -0
- package/dist/coordination/messaging.d.ts +37 -0
- package/dist/coordination/messaging.d.ts.map +1 -0
- package/dist/coordination/messaging.js +219 -0
- package/dist/coordination/messaging.js.map +1 -0
- package/dist/coordination/metrics.d.ts +153 -0
- package/dist/coordination/metrics.d.ts.map +1 -0
- package/dist/coordination/metrics.js +436 -0
- package/dist/coordination/metrics.js.map +1 -0
- package/dist/coordination/resources.d.ts +36 -0
- package/dist/coordination/resources.d.ts.map +1 -0
- package/dist/coordination/resources.js +254 -0
- package/dist/coordination/resources.js.map +1 -0
- package/dist/coordination/scheduler.d.ts +48 -0
- package/dist/coordination/scheduler.d.ts.map +1 -0
- package/dist/coordination/scheduler.js +308 -0
- package/dist/coordination/scheduler.js.map +1 -0
- package/dist/coordination/swarm-coordinator.d.ts +116 -0
- package/dist/coordination/swarm-coordinator.d.ts.map +1 -0
- package/dist/coordination/swarm-coordinator.js +563 -0
- package/dist/coordination/swarm-coordinator.js.map +1 -0
- package/dist/coordination/swarm-monitor.d.ts +101 -0
- package/dist/coordination/swarm-monitor.d.ts.map +1 -0
- package/dist/coordination/swarm-monitor.js +340 -0
- package/dist/coordination/swarm-monitor.js.map +1 -0
- package/dist/coordination/work-stealing.d.ts +44 -0
- package/dist/coordination/work-stealing.d.ts.map +1 -0
- package/dist/coordination/work-stealing.js +158 -0
- package/dist/coordination/work-stealing.js.map +1 -0
- package/dist/core/config.d.ts +243 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/config.js +1125 -0
- package/dist/core/config.js.map +1 -0
- package/dist/core/event-bus.d.ts +63 -0
- package/dist/core/event-bus.d.ts.map +1 -0
- package/dist/core/event-bus.js +153 -0
- package/dist/core/event-bus.js.map +1 -0
- package/dist/core/json-persistence.d.ts +55 -0
- package/dist/core/json-persistence.d.ts.map +1 -0
- package/dist/core/json-persistence.js +111 -0
- package/dist/core/json-persistence.js.map +1 -0
- package/dist/core/logger.d.ts +62 -0
- package/dist/core/logger.d.ts.map +1 -0
- package/dist/core/logger.js +252 -0
- package/dist/core/logger.js.map +1 -0
- package/dist/core/orchestrator-fixed.d.ts +81 -0
- package/dist/core/orchestrator-fixed.d.ts.map +1 -0
- package/dist/core/orchestrator-fixed.js +213 -0
- package/dist/core/orchestrator-fixed.js.map +1 -0
- package/dist/core/orchestrator.d.ts +123 -0
- package/dist/core/orchestrator.d.ts.map +1 -0
- package/dist/core/orchestrator.js +1058 -0
- package/dist/core/orchestrator.js.map +1 -0
- package/dist/enterprise/analytics-manager.d.ts +489 -0
- package/dist/enterprise/analytics-manager.d.ts.map +1 -0
- package/dist/enterprise/analytics-manager.js +956 -0
- package/dist/enterprise/analytics-manager.js.map +1 -0
- package/dist/enterprise/audit-manager.d.ts +459 -0
- package/dist/enterprise/audit-manager.d.ts.map +1 -0
- package/dist/enterprise/audit-manager.js +1014 -0
- package/dist/enterprise/audit-manager.js.map +1 -0
- package/dist/enterprise/cloud-manager.d.ts +435 -0
- package/dist/enterprise/cloud-manager.d.ts.map +1 -0
- package/dist/enterprise/cloud-manager.js +789 -0
- package/dist/enterprise/cloud-manager.js.map +1 -0
- package/dist/enterprise/deployment-manager.d.ts +328 -0
- package/dist/enterprise/deployment-manager.d.ts.map +1 -0
- package/dist/enterprise/deployment-manager.js +830 -0
- package/dist/enterprise/deployment-manager.js.map +1 -0
- package/dist/enterprise/project-manager.d.ts +228 -0
- package/dist/enterprise/project-manager.d.ts.map +1 -0
- package/dist/enterprise/project-manager.js +537 -0
- package/dist/enterprise/project-manager.js.map +1 -0
- package/dist/enterprise/security-manager.d.ts +422 -0
- package/dist/enterprise/security-manager.d.ts.map +1 -0
- package/dist/enterprise/security-manager.js +910 -0
- package/dist/enterprise/security-manager.js.map +1 -0
- package/dist/hive-mind/core/Agent.d.ts +137 -0
- package/dist/hive-mind/core/Agent.d.ts.map +1 -0
- package/dist/hive-mind/core/Agent.js +567 -0
- package/dist/hive-mind/core/Agent.js.map +1 -0
- package/dist/hive-mind/core/Communication.d.ts +116 -0
- package/dist/hive-mind/core/Communication.d.ts.map +1 -0
- package/dist/hive-mind/core/Communication.js +407 -0
- package/dist/hive-mind/core/Communication.js.map +1 -0
- package/dist/hive-mind/core/DatabaseManager.d.ts +99 -0
- package/dist/hive-mind/core/DatabaseManager.d.ts.map +1 -0
- package/dist/hive-mind/core/DatabaseManager.js +648 -0
- package/dist/hive-mind/core/DatabaseManager.js.map +1 -0
- package/dist/hive-mind/core/HiveMind.d.ts +90 -0
- package/dist/hive-mind/core/HiveMind.d.ts.map +1 -0
- package/dist/hive-mind/core/HiveMind.js +455 -0
- package/dist/hive-mind/core/HiveMind.js.map +1 -0
- package/dist/hive-mind/core/Memory.d.ts +235 -0
- package/dist/hive-mind/core/Memory.d.ts.map +1 -0
- package/dist/hive-mind/core/Memory.js +1192 -0
- package/dist/hive-mind/core/Memory.js.map +1 -0
- package/dist/hive-mind/core/Queen.d.ts +115 -0
- package/dist/hive-mind/core/Queen.d.ts.map +1 -0
- package/dist/hive-mind/core/Queen.js +649 -0
- package/dist/hive-mind/core/Queen.js.map +1 -0
- package/dist/hive-mind/integration/ConsensusEngine.d.ts +117 -0
- package/dist/hive-mind/integration/ConsensusEngine.d.ts.map +1 -0
- package/dist/hive-mind/integration/ConsensusEngine.js +478 -0
- package/dist/hive-mind/integration/ConsensusEngine.js.map +1 -0
- package/dist/hive-mind/integration/MCPToolWrapper.d.ts +172 -0
- package/dist/hive-mind/integration/MCPToolWrapper.d.ts.map +1 -0
- package/dist/hive-mind/integration/MCPToolWrapper.js +217 -0
- package/dist/hive-mind/integration/MCPToolWrapper.js.map +1 -0
- package/dist/hive-mind/integration/SwarmOrchestrator.d.ts +172 -0
- package/dist/hive-mind/integration/SwarmOrchestrator.d.ts.map +1 -0
- package/dist/hive-mind/integration/SwarmOrchestrator.js +748 -0
- package/dist/hive-mind/integration/SwarmOrchestrator.js.map +1 -0
- package/dist/hive-mind/types.d.ts +314 -0
- package/dist/hive-mind/types.d.ts.map +1 -0
- package/dist/hive-mind/types.js +7 -0
- package/dist/hive-mind/types.js.map +1 -0
- package/dist/mcp/auth.d.ts +80 -0
- package/dist/mcp/auth.d.ts.map +1 -0
- package/dist/mcp/auth.js +350 -0
- package/dist/mcp/auth.js.map +1 -0
- package/dist/mcp/claude-flow-tools.d.ts +13 -0
- package/dist/mcp/claude-flow-tools.d.ts.map +1 -0
- package/dist/mcp/claude-flow-tools.js +1176 -0
- package/dist/mcp/claude-flow-tools.js.map +1 -0
- package/dist/mcp/load-balancer.d.ts +88 -0
- package/dist/mcp/load-balancer.d.ts.map +1 -0
- package/dist/mcp/load-balancer.js +393 -0
- package/dist/mcp/load-balancer.js.map +1 -0
- package/dist/mcp/router.d.ts +54 -0
- package/dist/mcp/router.d.ts.map +1 -0
- package/dist/mcp/router.js +204 -0
- package/dist/mcp/router.js.map +1 -0
- package/dist/mcp/ruv-swarm-tools.d.ts +58 -0
- package/dist/mcp/ruv-swarm-tools.d.ts.map +1 -0
- package/dist/mcp/ruv-swarm-tools.js +548 -0
- package/dist/mcp/ruv-swarm-tools.js.map +1 -0
- package/dist/mcp/server.d.ts +75 -0
- package/dist/mcp/server.d.ts.map +1 -0
- package/dist/mcp/server.js +538 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/mcp/session-manager.d.ts +60 -0
- package/dist/mcp/session-manager.d.ts.map +1 -0
- package/dist/mcp/session-manager.js +323 -0
- package/dist/mcp/session-manager.js.map +1 -0
- package/dist/mcp/swarm-tools.d.ts +87 -0
- package/dist/mcp/swarm-tools.d.ts.map +1 -0
- package/dist/mcp/swarm-tools.js +731 -0
- package/dist/mcp/swarm-tools.js.map +1 -0
- package/dist/mcp/tools.d.ts +145 -0
- package/dist/mcp/tools.d.ts.map +1 -0
- package/dist/mcp/tools.js +434 -0
- package/dist/mcp/tools.js.map +1 -0
- package/dist/mcp/transports/base.d.ts +22 -0
- package/dist/mcp/transports/base.d.ts.map +1 -0
- package/dist/mcp/transports/base.js +5 -0
- package/dist/mcp/transports/base.js.map +1 -0
- package/dist/mcp/transports/http.d.ts +48 -0
- package/dist/mcp/transports/http.d.ts.map +1 -0
- package/dist/mcp/transports/http.js +400 -0
- package/dist/mcp/transports/http.js.map +1 -0
- package/dist/mcp/transports/stdio.d.ts +37 -0
- package/dist/mcp/transports/stdio.d.ts.map +1 -0
- package/dist/mcp/transports/stdio.js +206 -0
- package/dist/mcp/transports/stdio.js.map +1 -0
- package/dist/memory/advanced-serializer.d.ts +159 -0
- package/dist/memory/advanced-serializer.d.ts.map +1 -0
- package/dist/memory/advanced-serializer.js +564 -0
- package/dist/memory/advanced-serializer.js.map +1 -0
- package/dist/memory/backends/base.d.ts +21 -0
- package/dist/memory/backends/base.d.ts.map +1 -0
- package/dist/memory/backends/base.js +5 -0
- package/dist/memory/backends/base.js.map +1 -0
- package/dist/memory/backends/markdown.d.ts +35 -0
- package/dist/memory/backends/markdown.d.ts.map +1 -0
- package/dist/memory/backends/markdown.js +223 -0
- package/dist/memory/backends/markdown.js.map +1 -0
- package/dist/memory/backends/sqlite.d.ts +33 -0
- package/dist/memory/backends/sqlite.d.ts.map +1 -0
- package/dist/memory/backends/sqlite.js +291 -0
- package/dist/memory/backends/sqlite.js.map +1 -0
- package/dist/memory/cache.d.ts +65 -0
- package/dist/memory/cache.d.ts.map +1 -0
- package/dist/memory/cache.js +188 -0
- package/dist/memory/cache.js.map +1 -0
- package/dist/memory/distributed-memory.d.ts +188 -0
- package/dist/memory/distributed-memory.d.ts.map +1 -0
- package/dist/memory/distributed-memory.js +710 -0
- package/dist/memory/distributed-memory.js.map +1 -0
- package/dist/memory/enhanced-session-serializer.d.ts +115 -0
- package/dist/memory/enhanced-session-serializer.d.ts.map +1 -0
- package/dist/memory/enhanced-session-serializer.js +478 -0
- package/dist/memory/enhanced-session-serializer.js.map +1 -0
- package/dist/memory/fallback-store.d.ts +28 -0
- package/dist/memory/fallback-store.d.ts.map +1 -0
- package/dist/memory/fallback-store.js +101 -0
- package/dist/memory/fallback-store.js.map +1 -0
- package/dist/memory/in-memory-store.d.ts +37 -0
- package/dist/memory/in-memory-store.d.ts.map +1 -0
- package/dist/memory/in-memory-store.js +174 -0
- package/dist/memory/in-memory-store.js.map +1 -0
- package/dist/memory/indexer.d.ts +52 -0
- package/dist/memory/indexer.d.ts.map +1 -0
- package/dist/memory/indexer.js +191 -0
- package/dist/memory/indexer.js.map +1 -0
- package/dist/memory/manager.d.ts +58 -0
- package/dist/memory/manager.d.ts.map +1 -0
- package/dist/memory/manager.js +423 -0
- package/dist/memory/manager.js.map +1 -0
- package/dist/memory/sqlite-store.d.ts +34 -0
- package/dist/memory/sqlite-store.d.ts.map +1 -0
- package/dist/memory/sqlite-store.js +267 -0
- package/dist/memory/sqlite-store.js.map +1 -0
- package/dist/memory/sqlite-wrapper.d.ts +38 -0
- package/dist/memory/sqlite-wrapper.d.ts.map +1 -0
- package/dist/memory/sqlite-wrapper.js +152 -0
- package/dist/memory/sqlite-wrapper.js.map +1 -0
- package/dist/memory/swarm-memory.d.ts +91 -0
- package/dist/memory/swarm-memory.d.ts.map +1 -0
- package/dist/memory/swarm-memory.js +454 -0
- package/dist/memory/swarm-memory.js.map +1 -0
- package/dist/migration/logger.d.ts +26 -0
- package/dist/migration/logger.d.ts.map +1 -0
- package/dist/migration/logger.js +145 -0
- package/dist/migration/logger.js.map +1 -0
- package/dist/migration/migration-analyzer.d.ts +18 -0
- package/dist/migration/migration-analyzer.d.ts.map +1 -0
- package/dist/migration/migration-analyzer.js +284 -0
- package/dist/migration/migration-analyzer.js.map +1 -0
- package/dist/migration/migration-runner.d.ts +26 -0
- package/dist/migration/migration-runner.d.ts.map +1 -0
- package/dist/migration/migration-runner.js +505 -0
- package/dist/migration/migration-runner.js.map +1 -0
- package/dist/migration/migration-validator.d.ts +17 -0
- package/dist/migration/migration-validator.d.ts.map +1 -0
- package/dist/migration/migration-validator.js +309 -0
- package/dist/migration/migration-validator.js.map +1 -0
- package/dist/migration/progress-reporter.d.ts +28 -0
- package/dist/migration/progress-reporter.d.ts.map +1 -0
- package/dist/migration/progress-reporter.js +163 -0
- package/dist/migration/progress-reporter.js.map +1 -0
- package/dist/migration/rollback-manager.d.ts +24 -0
- package/dist/migration/rollback-manager.d.ts.map +1 -0
- package/dist/migration/rollback-manager.js +351 -0
- package/dist/migration/rollback-manager.js.map +1 -0
- package/dist/migration/types.d.ts +103 -0
- package/dist/migration/types.d.ts.map +1 -0
- package/dist/migration/types.js +6 -0
- package/dist/migration/types.js.map +1 -0
- package/dist/swarm/types.d.ts +578 -0
- package/dist/swarm/types.d.ts.map +1 -0
- package/dist/swarm/types.js +54 -0
- package/dist/swarm/types.js.map +1 -0
- package/dist/terminal/adapters/base.d.ts +40 -0
- package/dist/terminal/adapters/base.d.ts.map +1 -0
- package/dist/terminal/adapters/base.js +5 -0
- package/dist/terminal/adapters/base.js.map +1 -0
- package/dist/terminal/adapters/native.d.ts +19 -0
- package/dist/terminal/adapters/native.d.ts.map +1 -0
- package/dist/terminal/adapters/native.js +414 -0
- package/dist/terminal/adapters/native.js.map +1 -0
- package/dist/terminal/adapters/vscode.d.ts +23 -0
- package/dist/terminal/adapters/vscode.d.ts.map +1 -0
- package/dist/terminal/adapters/vscode.js +267 -0
- package/dist/terminal/adapters/vscode.js.map +1 -0
- package/dist/terminal/manager.d.ts +59 -0
- package/dist/terminal/manager.d.ts.map +1 -0
- package/dist/terminal/manager.js +235 -0
- package/dist/terminal/manager.js.map +1 -0
- package/dist/terminal/pool.d.ts +32 -0
- package/dist/terminal/pool.d.ts.map +1 -0
- package/dist/terminal/pool.js +208 -0
- package/dist/terminal/pool.js.map +1 -0
- package/dist/terminal/session.d.ts +41 -0
- package/dist/terminal/session.d.ts.map +1 -0
- package/dist/terminal/session.js +210 -0
- package/dist/terminal/session.js.map +1 -0
- package/dist/utils/error-handler.d.ts +14 -0
- package/dist/utils/error-handler.d.ts.map +1 -0
- package/dist/utils/error-handler.js +29 -0
- package/dist/utils/error-handler.js.map +1 -0
- package/dist/utils/errors.d.ts +121 -0
- package/dist/utils/errors.d.ts.map +1 -0
- package/dist/utils/errors.js +194 -0
- package/dist/utils/errors.js.map +1 -0
- package/dist/utils/formatters.d.ts +15 -0
- package/dist/utils/formatters.d.ts.map +1 -0
- package/dist/utils/formatters.js +75 -0
- package/dist/utils/formatters.js.map +1 -0
- package/dist/utils/helpers.d.ts +134 -0
- package/dist/utils/helpers.d.ts.map +1 -0
- package/dist/utils/helpers.js +444 -0
- package/dist/utils/helpers.js.map +1 -0
- package/dist/utils/npx-isolated-cache.d.ts +17 -0
- package/dist/utils/npx-isolated-cache.d.ts.map +1 -0
- package/dist/utils/npx-isolated-cache.js +140 -0
- package/dist/utils/npx-isolated-cache.js.map +1 -0
- package/dist/utils/type-guards.d.ts +117 -0
- package/dist/utils/type-guards.d.ts.map +1 -0
- package/dist/utils/type-guards.js +166 -0
- package/dist/utils/type-guards.js.map +1 -0
- package/dist/utils/types.d.ts +568 -0
- package/dist/utils/types.d.ts.map +1 -0
- package/dist/utils/types.js +37 -0
- package/dist/utils/types.js.map +1 -0
- package/package.json +12 -5
- package/src/agents/agent-manager.ts +432 -0
- package/src/cli/agents/index.ts +15 -1
- package/src/cli/command-registry.js +24 -0
- package/src/cli/commands/hive-mind/spawn.ts +18 -0
- package/src/cli/commands/maestro.ts +317 -0
- package/src/cli/commands/status.ts +1 -1
- package/src/cli/help-text.js +3 -3
- package/src/cli/index-remote.ts +1 -1
- package/src/cli/index.ts +1 -1
- package/src/cli/maestro-cli-bridge.ts +556 -0
- package/src/cli/node-compat.js +4 -23
- package/src/cli/runtime-detector.js +2 -2
- package/src/cli/simple-cli.js +1 -1
- package/src/cli/simple-cli.ts +1 -1
- package/src/cli/simple-commands/batch-manager.js +6 -5
- package/src/cli/simple-commands/github/github-api.js +159 -0
- package/src/cli/simple-commands/hive-mind/session-manager.js +38 -40
- package/src/cli/simple-commands/init/batch-init.js +13 -12
- package/src/cli/simple-commands/init/claude-commands/claude-flow-commands.js +4 -3
- package/src/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.js +4 -3
- package/src/cli/simple-commands/init/claude-commands/optimized-slash-commands.js +4 -4
- package/src/cli/simple-commands/init/index.js +72 -49
- package/src/cli/simple-commands/init/rollback/backup-manager.js +5 -4
- package/src/cli/simple-commands/init/rollback/rollback-executor.js +23 -22
- package/src/cli/simple-commands/init/rollback/state-tracker.js +3 -2
- package/src/cli/simple-commands/init/sparc-structure.js +9 -7
- package/src/cli/simple-commands/init/template-copier.js +1 -1
- package/src/cli/simple-commands/init/templates/CLAUDE.md +3 -3
- package/src/cli/simple-commands/init/templates/github-safe-enhanced.js +333 -0
- package/src/cli/simple-commands/init/validation/config-validator.js +8 -7
- package/src/cli/simple-commands/init/validation/health-checker.js +6 -5
- package/src/cli/simple-commands/init/validation/mode-validator.js +4 -3
- package/src/cli/simple-commands/init/validation/post-init-validator.js +15 -14
- package/src/cli/simple-commands/init/validation/test-runner.js +10 -10
- package/src/cli/simple-commands/memory.js +8 -7
- package/src/cli/simple-commands/process-ui-enhanced.js +2 -2
- package/src/cli/simple-commands/process-ui.js +2 -2
- package/src/cli/simple-commands/sparc-modes/index.js +1 -1
- package/src/cli/simple-commands/sparc.js +28 -26
- package/src/cli/simple-commands/start-wrapper.js +6 -5
- package/src/cli/simple-commands/status.js +4 -3
- package/src/cli/simple-commands/swarm-executor.js +8 -3
- package/src/cli/simple-commands/swarm.js +270 -24
- package/src/cli/simple-commands/webui-validator.js +4 -3
- package/src/cli/swarm-standalone.js +5 -5
- package/src/cli/utils.js +54 -66
- package/src/hive-mind/core/HiveMind.ts +16 -0
- package/src/hive-mind/types.ts +38 -5
- package/src/hooks/index.ts +192 -0
- package/src/maestro/maestro-swarm-coordinator.ts +602 -0
- package/src/maestro/maestro-types.ts +386 -0
- package/src/maestro/tests/native-hive-mind-integration.test.ts +480 -0
- package/src/memory/advanced-serializer.js +611 -0
- package/src/memory/enhanced-session-serializer.js +523 -0
- package/src/memory/in-memory-store.js +6 -4
- package/src/memory/sqlite-store.js +5 -4
- package/src/swarm/types.ts +10 -3
- package/src/utils/__tests__/github-cli-safety-wrapper.test.js +408 -0
- package/src/utils/github-cli-safe.js +37 -119
- package/src/utils/github-cli-safety-wrapper.js +587 -0
- package/src/utils/types.ts +60 -2
|
@@ -0,0 +1,680 @@
|
|
|
1
|
+
// process-ui-enhanced.js - Enhanced process management UI with multiple views - v2.0.0-alpha.79
|
|
2
|
+
import { printSuccess, printError, printWarning, printInfo } from '../utils.js';
|
|
3
|
+
import { compat } from '../runtime-detector.js';
|
|
4
|
+
import SwarmWebUIIntegration from './swarm-webui-integration.js';
|
|
5
|
+
// Simple color utilities
|
|
6
|
+
const colors = {
|
|
7
|
+
cyan: (text) => `\x1b[36m${text}\x1b[0m`,
|
|
8
|
+
gray: (text) => `\x1b[90m${text}\x1b[0m`,
|
|
9
|
+
white: (text) => `\x1b[37m${text}\x1b[0m`,
|
|
10
|
+
yellow: (text) => `\x1b[33m${text}\x1b[0m`,
|
|
11
|
+
green: (text) => `\x1b[32m${text}\x1b[0m`,
|
|
12
|
+
red: (text) => `\x1b[31m${text}\x1b[0m`,
|
|
13
|
+
blue: (text) => `\x1b[34m${text}\x1b[0m`,
|
|
14
|
+
magenta: (text) => `\x1b[35m${text}\x1b[0m`,
|
|
15
|
+
bold: (text) => `\x1b[1m${text}\x1b[0m`,
|
|
16
|
+
dim: (text) => `\x1b[2m${text}\x1b[0m`,
|
|
17
|
+
};
|
|
18
|
+
const PROCESSES = [
|
|
19
|
+
{ id: 'event-bus', name: 'Event Bus', description: 'Central event distribution system' },
|
|
20
|
+
{ id: 'orchestrator', name: 'Orchestrator', description: 'Main coordination engine' },
|
|
21
|
+
{ id: 'memory-manager', name: 'Memory Manager', description: 'Persistent memory system' },
|
|
22
|
+
{ id: 'terminal-pool', name: 'Terminal Pool', description: 'Terminal session management' },
|
|
23
|
+
{ id: 'mcp-server', name: 'MCP Server', description: 'Model Context Protocol server' },
|
|
24
|
+
{ id: 'coordinator', name: 'Coordinator', description: 'Task coordination service' },
|
|
25
|
+
];
|
|
26
|
+
// View modes
|
|
27
|
+
const VIEWS = {
|
|
28
|
+
PROCESSES: 'processes',
|
|
29
|
+
STATUS: 'status',
|
|
30
|
+
ORCHESTRATION: 'orchestration',
|
|
31
|
+
MEMORY: 'memory',
|
|
32
|
+
LOGS: 'logs',
|
|
33
|
+
HELP: 'help',
|
|
34
|
+
};
|
|
35
|
+
export class EnhancedProcessUI {
|
|
36
|
+
constructor() {
|
|
37
|
+
this.processes = new Map();
|
|
38
|
+
this.running = true;
|
|
39
|
+
this.selectedIndex = 0;
|
|
40
|
+
this.currentView = VIEWS.PROCESSES;
|
|
41
|
+
this.agents = [];
|
|
42
|
+
this.tasks = [];
|
|
43
|
+
this.memoryStats = {
|
|
44
|
+
totalEntries: 0,
|
|
45
|
+
totalSize: 0,
|
|
46
|
+
namespaces: [],
|
|
47
|
+
};
|
|
48
|
+
this.logs = [];
|
|
49
|
+
this.systemStats = {
|
|
50
|
+
uptime: 0,
|
|
51
|
+
totalTasks: 0,
|
|
52
|
+
completedTasks: 0,
|
|
53
|
+
activeAgents: 0,
|
|
54
|
+
memoryUsage: 0,
|
|
55
|
+
cpuUsage: 0,
|
|
56
|
+
};
|
|
57
|
+
// Initialize swarm integration
|
|
58
|
+
this.swarmIntegration = new SwarmWebUIIntegration(this);
|
|
59
|
+
// Initialize process states
|
|
60
|
+
PROCESSES.forEach((p) => {
|
|
61
|
+
this.processes.set(p.id, {
|
|
62
|
+
...p,
|
|
63
|
+
status: 'stopped',
|
|
64
|
+
pid: null,
|
|
65
|
+
uptime: 0,
|
|
66
|
+
cpu: Math.random() * 5,
|
|
67
|
+
memory: Math.random() * 100,
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
// Start system uptime counter
|
|
71
|
+
setInterval(() => {
|
|
72
|
+
this.systemStats.uptime++;
|
|
73
|
+
}, 1000);
|
|
74
|
+
// Initialize swarm (this will create mock data)
|
|
75
|
+
this.initializeSwarm();
|
|
76
|
+
}
|
|
77
|
+
async initializeSwarm() {
|
|
78
|
+
// Initialize swarm with mock data
|
|
79
|
+
await this.swarmIntegration.initializeSwarm('hierarchical', 8);
|
|
80
|
+
// Mock memory namespaces
|
|
81
|
+
this.memoryStats = {
|
|
82
|
+
totalEntries: 42,
|
|
83
|
+
totalSize: '156.3 KB',
|
|
84
|
+
namespaces: [
|
|
85
|
+
{ name: 'sparc', entries: 15, size: '45.2 KB' },
|
|
86
|
+
{ name: 'agents', entries: 12, size: '38.7 KB' },
|
|
87
|
+
{ name: 'tasks', entries: 8, size: '24.1 KB' },
|
|
88
|
+
{ name: 'system', entries: 7, size: '48.3 KB' },
|
|
89
|
+
],
|
|
90
|
+
};
|
|
91
|
+
// Initial logs
|
|
92
|
+
this.logs = [
|
|
93
|
+
{ time: new Date(), level: 'info', message: 'System initialized' },
|
|
94
|
+
{ time: new Date(), level: 'success', message: 'All processes ready' },
|
|
95
|
+
{ time: new Date(), level: 'success', message: 'Swarm orchestration active' },
|
|
96
|
+
];
|
|
97
|
+
}
|
|
98
|
+
async start() {
|
|
99
|
+
// Clear screen
|
|
100
|
+
console.clear();
|
|
101
|
+
// Show welcome
|
|
102
|
+
printSuccess('🧠 Claude-Flow Process Management UI v2.0.0-alpha.79-alpha.79');
|
|
103
|
+
console.log('─'.repeat(80));
|
|
104
|
+
console.log();
|
|
105
|
+
// Initial render
|
|
106
|
+
this.render();
|
|
107
|
+
// Main UI loop
|
|
108
|
+
while (this.running) {
|
|
109
|
+
await this.handleInput();
|
|
110
|
+
if (this.running) {
|
|
111
|
+
this.render();
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
render() {
|
|
116
|
+
// Clear screen and move cursor to top
|
|
117
|
+
console.log('\x1b[2J\x1b[H');
|
|
118
|
+
// Header with navigation
|
|
119
|
+
this.renderHeader();
|
|
120
|
+
// Main content based on current view
|
|
121
|
+
switch (this.currentView) {
|
|
122
|
+
case VIEWS.PROCESSES:
|
|
123
|
+
this.renderProcessView();
|
|
124
|
+
break;
|
|
125
|
+
case VIEWS.STATUS:
|
|
126
|
+
this.renderStatusView();
|
|
127
|
+
break;
|
|
128
|
+
case VIEWS.ORCHESTRATION:
|
|
129
|
+
this.renderOrchestrationView();
|
|
130
|
+
break;
|
|
131
|
+
case VIEWS.MEMORY:
|
|
132
|
+
this.renderMemoryView();
|
|
133
|
+
break;
|
|
134
|
+
case VIEWS.LOGS:
|
|
135
|
+
this.renderLogsView();
|
|
136
|
+
break;
|
|
137
|
+
case VIEWS.HELP:
|
|
138
|
+
this.renderHelpView();
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
// Footer with controls
|
|
142
|
+
this.renderFooter();
|
|
143
|
+
}
|
|
144
|
+
renderHeader() {
|
|
145
|
+
console.log(colors.cyan(colors.bold('🧠 Claude-Flow Process Manager')));
|
|
146
|
+
console.log(colors.gray('─'.repeat(80)));
|
|
147
|
+
// Navigation tabs
|
|
148
|
+
const tabs = [
|
|
149
|
+
{ key: '1', view: VIEWS.PROCESSES, label: 'Processes' },
|
|
150
|
+
{ key: '2', view: VIEWS.STATUS, label: 'Status' },
|
|
151
|
+
{ key: '3', view: VIEWS.ORCHESTRATION, label: 'Orchestration' },
|
|
152
|
+
{ key: '4', view: VIEWS.MEMORY, label: 'Memory' },
|
|
153
|
+
{ key: '5', view: VIEWS.LOGS, label: 'Logs' },
|
|
154
|
+
{ key: '6', view: VIEWS.HELP, label: 'Help' },
|
|
155
|
+
];
|
|
156
|
+
let tabLine = '';
|
|
157
|
+
tabs.forEach((tab) => {
|
|
158
|
+
const isActive = this.currentView === tab.view;
|
|
159
|
+
const label = isActive ? colors.yellow(`[${tab.label}]`) : colors.gray(`${tab.label}`);
|
|
160
|
+
tabLine += ` ${colors.bold(tab.key)}:${label}`;
|
|
161
|
+
});
|
|
162
|
+
console.log(tabLine);
|
|
163
|
+
console.log(colors.gray('─'.repeat(80)));
|
|
164
|
+
console.log();
|
|
165
|
+
}
|
|
166
|
+
renderProcessView() {
|
|
167
|
+
console.log(colors.white(colors.bold('Process Management')));
|
|
168
|
+
console.log();
|
|
169
|
+
let index = 0;
|
|
170
|
+
for (const [id, process] of this.processes) {
|
|
171
|
+
const selected = index === this.selectedIndex;
|
|
172
|
+
const prefix = selected ? colors.yellow('▶ ') : ' ';
|
|
173
|
+
const status = this.getStatusIcon(process.status);
|
|
174
|
+
const name = selected ? colors.yellow(process.name) : colors.white(process.name);
|
|
175
|
+
console.log(`${prefix}${status} ${name}`);
|
|
176
|
+
console.log(` ${colors.gray(process.description)}`);
|
|
177
|
+
if (process.status === 'running') {
|
|
178
|
+
const stats = colors.dim(`PID: ${process.pid} | Uptime: ${this.formatUptime(process.uptime)} | CPU: ${process.cpu.toFixed(1)}% | Mem: ${process.memory.toFixed(0)}MB`);
|
|
179
|
+
console.log(` ${stats}`);
|
|
180
|
+
}
|
|
181
|
+
console.log();
|
|
182
|
+
index++;
|
|
183
|
+
}
|
|
184
|
+
// Quick stats
|
|
185
|
+
const running = Array.from(this.processes.values()).filter((p) => p.status === 'running').length;
|
|
186
|
+
console.log(colors.gray('─'.repeat(80)));
|
|
187
|
+
console.log(colors.white(`Total: ${this.processes.size} | Running: ${colors.green(running)} | Stopped: ${colors.gray(this.processes.size - running)}`));
|
|
188
|
+
}
|
|
189
|
+
renderStatusView() {
|
|
190
|
+
console.log(colors.white(colors.bold('System Status')));
|
|
191
|
+
console.log();
|
|
192
|
+
// System overview
|
|
193
|
+
console.log(colors.cyan('📊 System Overview'));
|
|
194
|
+
console.log(` Uptime: ${colors.green(this.formatUptime(this.systemStats.uptime))}`);
|
|
195
|
+
console.log(` Process Health: ${this.getHealthBar()}`);
|
|
196
|
+
console.log();
|
|
197
|
+
// Resource usage
|
|
198
|
+
console.log(colors.cyan('💻 Resource Usage'));
|
|
199
|
+
console.log(` CPU Usage: ${this.getUsageBar(this.systemStats.cpuUsage, 100)} ${this.systemStats.cpuUsage}%`);
|
|
200
|
+
console.log(` Memory: ${this.getUsageBar(this.systemStats.memoryUsage, 100)} ${this.systemStats.memoryUsage}%`);
|
|
201
|
+
console.log();
|
|
202
|
+
// Activity metrics
|
|
203
|
+
console.log(colors.cyan('📈 Activity Metrics'));
|
|
204
|
+
console.log(` Active Agents: ${colors.yellow(this.agents.filter((a) => a.status === 'working').length)}/${this.agents.length}`);
|
|
205
|
+
console.log(` Total Tasks: ${this.tasks.length}`);
|
|
206
|
+
console.log(` Completed: ${colors.green(this.tasks.filter((t) => t.status === 'completed').length)}`);
|
|
207
|
+
console.log(` In Progress: ${colors.yellow(this.tasks.filter((t) => t.status === 'in_progress').length)}`);
|
|
208
|
+
console.log(` Pending: ${colors.gray(this.tasks.filter((t) => t.status === 'pending').length)}`);
|
|
209
|
+
console.log();
|
|
210
|
+
// Recent events
|
|
211
|
+
console.log(colors.cyan('🔔 Recent Events'));
|
|
212
|
+
this.logs.slice(-3).forEach((log) => {
|
|
213
|
+
const time = log.time.toLocaleTimeString();
|
|
214
|
+
const icon = log.level === 'success' ? '✓' : log.level === 'warning' ? '⚠' : 'ℹ';
|
|
215
|
+
const color = log.level === 'success'
|
|
216
|
+
? colors.green
|
|
217
|
+
: log.level === 'warning'
|
|
218
|
+
? colors.yellow
|
|
219
|
+
: colors.blue;
|
|
220
|
+
console.log(` ${colors.gray(time)} ${color(icon)} ${log.message}`);
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
renderOrchestrationView() {
|
|
224
|
+
console.log(colors.white(colors.bold('Swarm Orchestration Management')));
|
|
225
|
+
console.log();
|
|
226
|
+
// Swarm metrics
|
|
227
|
+
const metrics = this.swarmIntegration.getSwarmMetrics();
|
|
228
|
+
if (metrics) {
|
|
229
|
+
console.log(colors.cyan('🐝 Swarm Status'));
|
|
230
|
+
console.log(` Swarm ID: ${colors.yellow(metrics.swarmId)}`);
|
|
231
|
+
console.log(` Agents: ${colors.green(metrics.agents.active)}/${metrics.agents.total} active`);
|
|
232
|
+
console.log(` Tasks: ${colors.yellow(metrics.tasks.inProgress)} in progress, ${colors.green(metrics.tasks.completed)} completed`);
|
|
233
|
+
console.log(` Efficiency: ${metrics.efficiency}%`);
|
|
234
|
+
console.log();
|
|
235
|
+
}
|
|
236
|
+
// Agents section
|
|
237
|
+
console.log(colors.cyan('🤖 Active Agents'));
|
|
238
|
+
console.log();
|
|
239
|
+
this.agents.forEach((agent, index) => {
|
|
240
|
+
const selected = this.currentView === VIEWS.ORCHESTRATION && index === this.selectedIndex;
|
|
241
|
+
const prefix = selected ? colors.yellow('▶ ') : ' ';
|
|
242
|
+
const statusIcon = agent.status === 'working' ? colors.green('●') : colors.gray('○');
|
|
243
|
+
const name = selected ? colors.yellow(agent.name) : colors.white(agent.name);
|
|
244
|
+
console.log(`${prefix}${statusIcon} ${name} (${agent.type})`);
|
|
245
|
+
console.log(` ID: ${agent.id} | Tasks: ${agent.tasks} | Status: ${agent.status}`);
|
|
246
|
+
if (agent.capabilities && agent.capabilities.length > 0) {
|
|
247
|
+
console.log(` Capabilities: ${colors.dim(agent.capabilities.join(', '))}`);
|
|
248
|
+
}
|
|
249
|
+
console.log();
|
|
250
|
+
});
|
|
251
|
+
console.log(colors.gray('─'.repeat(40)));
|
|
252
|
+
// Tasks section
|
|
253
|
+
console.log(colors.cyan('📋 Task Queue'));
|
|
254
|
+
console.log();
|
|
255
|
+
this.tasks.slice(0, 5).forEach((task) => {
|
|
256
|
+
const statusColor = task.status === 'completed'
|
|
257
|
+
? colors.green
|
|
258
|
+
: task.status === 'in_progress'
|
|
259
|
+
? colors.yellow
|
|
260
|
+
: colors.gray;
|
|
261
|
+
const status = statusColor(`[${task.status}]`);
|
|
262
|
+
const priority = task.priority === 'high'
|
|
263
|
+
? colors.red(`[${task.priority}]`)
|
|
264
|
+
: task.priority === 'medium'
|
|
265
|
+
? colors.yellow(`[${task.priority}]`)
|
|
266
|
+
: colors.gray(`[${task.priority}]`);
|
|
267
|
+
console.log(` ${status} ${priority} ${task.description}`);
|
|
268
|
+
if (task.assignedTo) {
|
|
269
|
+
const agent = this.agents.find((a) => a.id === task.assignedTo);
|
|
270
|
+
console.log(` Assigned to: ${agent ? agent.name : task.assignedTo}`);
|
|
271
|
+
}
|
|
272
|
+
});
|
|
273
|
+
if (this.tasks.length > 5) {
|
|
274
|
+
console.log(colors.gray(` ... and ${this.tasks.length - 5} more tasks`));
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
renderMemoryView() {
|
|
278
|
+
console.log(colors.white(colors.bold('Memory Bank Management')));
|
|
279
|
+
console.log();
|
|
280
|
+
// Overview
|
|
281
|
+
console.log(colors.cyan('💾 Memory Overview'));
|
|
282
|
+
console.log(` Total Entries: ${colors.yellow(this.memoryStats.totalEntries)}`);
|
|
283
|
+
console.log(` Total Size: ${colors.yellow(this.memoryStats.totalSize)}`);
|
|
284
|
+
console.log();
|
|
285
|
+
// Namespaces
|
|
286
|
+
console.log(colors.cyan('📁 Namespaces'));
|
|
287
|
+
console.log();
|
|
288
|
+
this.memoryStats.namespaces.forEach((ns, index) => {
|
|
289
|
+
const selected = this.currentView === VIEWS.MEMORY && index === this.selectedIndex;
|
|
290
|
+
const prefix = selected ? colors.yellow('▶ ') : ' ';
|
|
291
|
+
const name = selected ? colors.yellow(ns.name) : colors.white(ns.name);
|
|
292
|
+
console.log(`${prefix}${name}`);
|
|
293
|
+
console.log(` Entries: ${ns.entries} | Size: ${ns.size}`);
|
|
294
|
+
console.log();
|
|
295
|
+
});
|
|
296
|
+
// Recent operations
|
|
297
|
+
console.log(colors.gray('─'.repeat(40)));
|
|
298
|
+
console.log(colors.cyan('🔄 Recent Operations'));
|
|
299
|
+
console.log(` ${colors.green('✓')} Stored: config.api.key`);
|
|
300
|
+
console.log(` ${colors.blue('↓')} Retrieved: sparc.modes`);
|
|
301
|
+
console.log(` ${colors.yellow('✎')} Updated: agent.status`);
|
|
302
|
+
}
|
|
303
|
+
renderLogsView() {
|
|
304
|
+
console.log(colors.white(colors.bold('System Logs')));
|
|
305
|
+
console.log();
|
|
306
|
+
// Log filters
|
|
307
|
+
console.log(colors.cyan('🔍 Filters: ') + colors.gray('[A]ll [I]nfo [W]arning [E]rror'));
|
|
308
|
+
console.log(colors.gray('─'.repeat(80)));
|
|
309
|
+
console.log();
|
|
310
|
+
// Display logs
|
|
311
|
+
const displayLogs = this.logs.slice(-15);
|
|
312
|
+
displayLogs.forEach((log) => {
|
|
313
|
+
const time = log.time.toLocaleTimeString();
|
|
314
|
+
let icon, color;
|
|
315
|
+
switch (log.level) {
|
|
316
|
+
case 'success':
|
|
317
|
+
icon = '✓';
|
|
318
|
+
color = colors.green;
|
|
319
|
+
break;
|
|
320
|
+
case 'warning':
|
|
321
|
+
icon = '⚠';
|
|
322
|
+
color = colors.yellow;
|
|
323
|
+
break;
|
|
324
|
+
case 'error':
|
|
325
|
+
icon = '✗';
|
|
326
|
+
color = colors.red;
|
|
327
|
+
break;
|
|
328
|
+
default:
|
|
329
|
+
icon = 'ℹ';
|
|
330
|
+
color = colors.blue;
|
|
331
|
+
}
|
|
332
|
+
console.log(`${colors.gray(time)} ${color(icon)} ${log.message}`);
|
|
333
|
+
});
|
|
334
|
+
if (this.logs.length > 15) {
|
|
335
|
+
console.log();
|
|
336
|
+
console.log(colors.gray(`Showing last 15 of ${this.logs.length} logs`));
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
renderHelpView() {
|
|
340
|
+
console.log(colors.white(colors.bold('Help & Documentation')));
|
|
341
|
+
console.log();
|
|
342
|
+
console.log(colors.cyan('🎯 Navigation'));
|
|
343
|
+
console.log(` ${colors.yellow('1-6')} Switch between views`);
|
|
344
|
+
console.log(` ${colors.yellow('Tab')} Cycle through views`);
|
|
345
|
+
console.log(` ${colors.yellow('↑/↓')} Navigate items (when available)`);
|
|
346
|
+
console.log();
|
|
347
|
+
console.log(colors.cyan('⚡ Process Controls'));
|
|
348
|
+
console.log(` ${colors.yellow('Space')} Toggle selected process`);
|
|
349
|
+
console.log(` ${colors.yellow('A')} Start all processes`);
|
|
350
|
+
console.log(` ${colors.yellow('Z')} Stop all processes`);
|
|
351
|
+
console.log(` ${colors.yellow('R')} Restart all processes`);
|
|
352
|
+
console.log();
|
|
353
|
+
console.log(colors.cyan('🤖 Swarm Orchestration'));
|
|
354
|
+
console.log(` ${colors.yellow('N')} Spawn new agent`);
|
|
355
|
+
console.log(` ${colors.yellow('T')} Create new task`);
|
|
356
|
+
console.log(` ${colors.yellow('D')} Complete task`);
|
|
357
|
+
console.log(` ${colors.yellow('S')} Show swarm metrics`);
|
|
358
|
+
console.log();
|
|
359
|
+
console.log(colors.cyan('💾 Memory Operations'));
|
|
360
|
+
console.log(` ${colors.yellow('S')} Store new entry`);
|
|
361
|
+
console.log(` ${colors.yellow('G')} Get/search entries`);
|
|
362
|
+
console.log(` ${colors.yellow('C')} Clear namespace`);
|
|
363
|
+
console.log();
|
|
364
|
+
console.log(colors.cyan('🔧 Other'));
|
|
365
|
+
console.log(` ${colors.yellow('L')} Clear logs`);
|
|
366
|
+
console.log(` ${colors.yellow('H/?')} Show this help`);
|
|
367
|
+
console.log(` ${colors.yellow('Q')} Quit`);
|
|
368
|
+
}
|
|
369
|
+
renderFooter() {
|
|
370
|
+
console.log();
|
|
371
|
+
console.log(colors.gray('─'.repeat(80)));
|
|
372
|
+
// Context-sensitive controls
|
|
373
|
+
let controls = '';
|
|
374
|
+
switch (this.currentView) {
|
|
375
|
+
case VIEWS.PROCESSES:
|
|
376
|
+
controls = `${colors.yellow('Space')} Toggle | ${colors.yellow('A')} Start All | ${colors.yellow('Z')} Stop All | ${colors.yellow('R')} Restart`;
|
|
377
|
+
break;
|
|
378
|
+
case VIEWS.ORCHESTRATION:
|
|
379
|
+
controls = `${colors.yellow('N')} New Agent | ${colors.yellow('T')} New Task | ${colors.yellow('D')} Complete | ${colors.yellow('S')} Metrics`;
|
|
380
|
+
break;
|
|
381
|
+
case VIEWS.MEMORY:
|
|
382
|
+
controls = `${colors.yellow('S')} Store | ${colors.yellow('G')} Get | ${colors.yellow('C')} Clear`;
|
|
383
|
+
break;
|
|
384
|
+
case VIEWS.LOGS:
|
|
385
|
+
controls = `${colors.yellow('L')} Clear | ${colors.yellow('F')} Filter`;
|
|
386
|
+
break;
|
|
387
|
+
default:
|
|
388
|
+
controls = `${colors.yellow('Tab')} Next View | ${colors.yellow('?')} Help`;
|
|
389
|
+
}
|
|
390
|
+
console.log(`${controls} | ${colors.yellow('Q')} Quit`);
|
|
391
|
+
console.log(colors.gray('─'.repeat(80)));
|
|
392
|
+
}
|
|
393
|
+
getStatusIcon(status) {
|
|
394
|
+
switch (status) {
|
|
395
|
+
case 'running':
|
|
396
|
+
return colors.green('●');
|
|
397
|
+
case 'stopped':
|
|
398
|
+
return colors.gray('○');
|
|
399
|
+
case 'error':
|
|
400
|
+
return colors.red('✗');
|
|
401
|
+
case 'starting':
|
|
402
|
+
return colors.yellow('◐');
|
|
403
|
+
default:
|
|
404
|
+
return colors.gray('?');
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
getHealthBar() {
|
|
408
|
+
const running = Array.from(this.processes.values()).filter((p) => p.status === 'running').length;
|
|
409
|
+
const total = this.processes.size;
|
|
410
|
+
const percentage = (running / total) * 100;
|
|
411
|
+
const filled = Math.round(percentage / 10);
|
|
412
|
+
const bar = '█'.repeat(filled) + '░'.repeat(10 - filled);
|
|
413
|
+
const color = percentage >= 80 ? colors.green : percentage >= 50 ? colors.yellow : colors.red;
|
|
414
|
+
return color(bar) + ` ${percentage.toFixed(0)}%`;
|
|
415
|
+
}
|
|
416
|
+
getUsageBar(value, max) {
|
|
417
|
+
const percentage = (value / max) * 100;
|
|
418
|
+
const filled = Math.round(percentage / 10);
|
|
419
|
+
const bar = '▓'.repeat(filled) + '░'.repeat(10 - filled);
|
|
420
|
+
const color = percentage >= 80 ? colors.red : percentage >= 50 ? colors.yellow : colors.green;
|
|
421
|
+
return color(bar);
|
|
422
|
+
}
|
|
423
|
+
formatUptime(seconds) {
|
|
424
|
+
if (seconds < 60)
|
|
425
|
+
return `${seconds}s`;
|
|
426
|
+
if (seconds < 3600)
|
|
427
|
+
return `${Math.floor(seconds / 60)}m ${seconds % 60}s`;
|
|
428
|
+
const hours = Math.floor(seconds / 3600);
|
|
429
|
+
const minutes = Math.floor((seconds % 3600) / 60);
|
|
430
|
+
return `${hours}h ${minutes}m`;
|
|
431
|
+
}
|
|
432
|
+
async handleInput() {
|
|
433
|
+
const terminal = compat.terminal;
|
|
434
|
+
await terminal.write('\nCommand: ');
|
|
435
|
+
const buf = new Uint8Array(1024);
|
|
436
|
+
const n = await terminal.read(buf);
|
|
437
|
+
if (n === null)
|
|
438
|
+
return;
|
|
439
|
+
const rawInput = terminal.decoder.decode(buf.subarray(0, n)).trim();
|
|
440
|
+
const input = rawInput.split('\n')[0].toLowerCase();
|
|
441
|
+
// Global commands
|
|
442
|
+
switch (input) {
|
|
443
|
+
case 'q':
|
|
444
|
+
case 'quit':
|
|
445
|
+
this.running = false;
|
|
446
|
+
console.clear();
|
|
447
|
+
printSuccess('Goodbye!');
|
|
448
|
+
compat.terminal.exit(0);
|
|
449
|
+
break;
|
|
450
|
+
case '1':
|
|
451
|
+
this.currentView = VIEWS.PROCESSES;
|
|
452
|
+
this.selectedIndex = 0;
|
|
453
|
+
break;
|
|
454
|
+
case '2':
|
|
455
|
+
this.currentView = VIEWS.STATUS;
|
|
456
|
+
this.selectedIndex = 0;
|
|
457
|
+
break;
|
|
458
|
+
case '3':
|
|
459
|
+
this.currentView = VIEWS.ORCHESTRATION;
|
|
460
|
+
this.selectedIndex = 0;
|
|
461
|
+
break;
|
|
462
|
+
case '4':
|
|
463
|
+
this.currentView = VIEWS.MEMORY;
|
|
464
|
+
this.selectedIndex = 0;
|
|
465
|
+
break;
|
|
466
|
+
case '5':
|
|
467
|
+
this.currentView = VIEWS.LOGS;
|
|
468
|
+
this.selectedIndex = 0;
|
|
469
|
+
break;
|
|
470
|
+
case '6':
|
|
471
|
+
case '?':
|
|
472
|
+
case 'h':
|
|
473
|
+
case 'help':
|
|
474
|
+
this.currentView = VIEWS.HELP;
|
|
475
|
+
break;
|
|
476
|
+
case 'tab':
|
|
477
|
+
case '\t':
|
|
478
|
+
// Cycle through views
|
|
479
|
+
const viewKeys = Object.values(VIEWS);
|
|
480
|
+
const currentIndex = viewKeys.indexOf(this.currentView);
|
|
481
|
+
this.currentView = viewKeys[(currentIndex + 1) % viewKeys.length];
|
|
482
|
+
this.selectedIndex = 0;
|
|
483
|
+
break;
|
|
484
|
+
default:
|
|
485
|
+
// View-specific commands
|
|
486
|
+
await this.handleViewSpecificInput(input);
|
|
487
|
+
}
|
|
488
|
+
// Update system stats
|
|
489
|
+
this.updateSystemStats();
|
|
490
|
+
}
|
|
491
|
+
async handleViewSpecificInput(input) {
|
|
492
|
+
switch (this.currentView) {
|
|
493
|
+
case VIEWS.PROCESSES:
|
|
494
|
+
await this.handleProcessInput(input);
|
|
495
|
+
break;
|
|
496
|
+
case VIEWS.ORCHESTRATION:
|
|
497
|
+
await this.handleOrchestrationInput(input);
|
|
498
|
+
break;
|
|
499
|
+
case VIEWS.MEMORY:
|
|
500
|
+
await this.handleMemoryInput(input);
|
|
501
|
+
break;
|
|
502
|
+
case VIEWS.LOGS:
|
|
503
|
+
await this.handleLogsInput(input);
|
|
504
|
+
break;
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
async handleProcessInput(input) {
|
|
508
|
+
switch (input) {
|
|
509
|
+
case 'a':
|
|
510
|
+
await this.startAll();
|
|
511
|
+
break;
|
|
512
|
+
case 'z':
|
|
513
|
+
await this.stopAll();
|
|
514
|
+
break;
|
|
515
|
+
case 'r':
|
|
516
|
+
await this.restartAll();
|
|
517
|
+
break;
|
|
518
|
+
case ' ':
|
|
519
|
+
case 'space':
|
|
520
|
+
case 'enter':
|
|
521
|
+
case '':
|
|
522
|
+
await this.toggleSelected();
|
|
523
|
+
break;
|
|
524
|
+
case 'up':
|
|
525
|
+
case 'k':
|
|
526
|
+
this.selectedIndex = Math.max(0, this.selectedIndex - 1);
|
|
527
|
+
break;
|
|
528
|
+
case 'down':
|
|
529
|
+
case 'j':
|
|
530
|
+
this.selectedIndex = Math.min(this.processes.size - 1, this.selectedIndex + 1);
|
|
531
|
+
break;
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
async handleOrchestrationInput(input) {
|
|
535
|
+
switch (input) {
|
|
536
|
+
case 'n':
|
|
537
|
+
// Spawn new agent
|
|
538
|
+
const agentTypes = ['researcher', 'coder', 'analyst', 'coordinator', 'tester'];
|
|
539
|
+
const randomType = agentTypes[Math.floor(Math.random() * agentTypes.length)];
|
|
540
|
+
await this.swarmIntegration.spawnAgent(randomType);
|
|
541
|
+
break;
|
|
542
|
+
case 't':
|
|
543
|
+
// Create new task
|
|
544
|
+
const sampleTasks = [
|
|
545
|
+
'Implement new feature',
|
|
546
|
+
'Fix critical bug',
|
|
547
|
+
'Optimize performance',
|
|
548
|
+
'Update documentation',
|
|
549
|
+
'Review code quality',
|
|
550
|
+
];
|
|
551
|
+
const randomTask = sampleTasks[Math.floor(Math.random() * sampleTasks.length)];
|
|
552
|
+
await this.swarmIntegration.createTask(randomTask, 'medium');
|
|
553
|
+
break;
|
|
554
|
+
case 'd':
|
|
555
|
+
// Complete selected task (simulate)
|
|
556
|
+
if (this.tasks.length > 0) {
|
|
557
|
+
const pendingTasks = this.tasks.filter((t) => t.status === 'in_progress');
|
|
558
|
+
if (pendingTasks.length > 0) {
|
|
559
|
+
const taskToComplete = pendingTasks[0];
|
|
560
|
+
await this.swarmIntegration.completeTask(taskToComplete.id);
|
|
561
|
+
}
|
|
562
|
+
else {
|
|
563
|
+
this.addLog('info', 'No in-progress tasks to complete');
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
break;
|
|
567
|
+
case 's':
|
|
568
|
+
// Show swarm metrics
|
|
569
|
+
const metrics = this.swarmIntegration.getSwarmMetrics();
|
|
570
|
+
if (metrics) {
|
|
571
|
+
this.addLog('info', `Swarm efficiency: ${metrics.efficiency}% (${metrics.tasks.completed}/${metrics.tasks.total} tasks completed)`);
|
|
572
|
+
}
|
|
573
|
+
break;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
async handleMemoryInput(input) {
|
|
577
|
+
switch (input) {
|
|
578
|
+
case 's':
|
|
579
|
+
this.addLog('info', 'Memory storage not yet implemented');
|
|
580
|
+
break;
|
|
581
|
+
case 'g':
|
|
582
|
+
this.addLog('info', 'Memory retrieval not yet implemented');
|
|
583
|
+
break;
|
|
584
|
+
case 'c':
|
|
585
|
+
this.addLog('warning', 'Memory clearing not yet implemented');
|
|
586
|
+
break;
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
async handleLogsInput(input) {
|
|
590
|
+
switch (input) {
|
|
591
|
+
case 'l':
|
|
592
|
+
this.logs = [];
|
|
593
|
+
this.addLog('info', 'Logs cleared');
|
|
594
|
+
break;
|
|
595
|
+
case 'f':
|
|
596
|
+
this.addLog('info', 'Log filtering not yet implemented');
|
|
597
|
+
break;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
addLog(level, message) {
|
|
601
|
+
this.logs.push({
|
|
602
|
+
time: new Date(),
|
|
603
|
+
level,
|
|
604
|
+
message,
|
|
605
|
+
});
|
|
606
|
+
}
|
|
607
|
+
updateSystemStats() {
|
|
608
|
+
// Update random stats for demo
|
|
609
|
+
this.systemStats.cpuUsage = Math.min(100, Math.max(0, this.systemStats.cpuUsage + (Math.random() - 0.5) * 10));
|
|
610
|
+
this.systemStats.memoryUsage = Math.min(100, Math.max(0, this.systemStats.memoryUsage + (Math.random() - 0.5) * 5));
|
|
611
|
+
// Update process stats
|
|
612
|
+
for (const [id, process] of this.processes) {
|
|
613
|
+
if (process.status === 'running') {
|
|
614
|
+
process.uptime++;
|
|
615
|
+
process.cpu = Math.min(100, Math.max(0, process.cpu + (Math.random() - 0.5) * 2));
|
|
616
|
+
process.memory = Math.min(200, Math.max(10, process.memory + (Math.random() - 0.5) * 5));
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
async toggleSelected() {
|
|
621
|
+
const process = Array.from(this.processes.values())[this.selectedIndex];
|
|
622
|
+
if (process.status === 'stopped') {
|
|
623
|
+
await this.startProcess(process.id);
|
|
624
|
+
}
|
|
625
|
+
else {
|
|
626
|
+
await this.stopProcess(process.id);
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
async startProcess(id) {
|
|
630
|
+
const process = this.processes.get(id);
|
|
631
|
+
if (!process)
|
|
632
|
+
return;
|
|
633
|
+
this.addLog('info', `Starting ${process.name}...`);
|
|
634
|
+
process.status = 'starting';
|
|
635
|
+
await new Promise((resolve) => setTimeout(resolve, 500));
|
|
636
|
+
process.status = 'running';
|
|
637
|
+
process.pid = Math.floor(Math.random() * 10000) + 1000;
|
|
638
|
+
process.uptime = 0;
|
|
639
|
+
this.addLog('success', `${process.name} started successfully`);
|
|
640
|
+
}
|
|
641
|
+
async stopProcess(id) {
|
|
642
|
+
const process = this.processes.get(id);
|
|
643
|
+
if (!process)
|
|
644
|
+
return;
|
|
645
|
+
this.addLog('info', `Stopping ${process.name}...`);
|
|
646
|
+
process.status = 'stopped';
|
|
647
|
+
process.pid = null;
|
|
648
|
+
process.uptime = 0;
|
|
649
|
+
await new Promise((resolve) => setTimeout(resolve, 300));
|
|
650
|
+
this.addLog('success', `${process.name} stopped`);
|
|
651
|
+
}
|
|
652
|
+
async startAll() {
|
|
653
|
+
this.addLog('info', 'Starting all processes...');
|
|
654
|
+
for (const [id, process] of this.processes) {
|
|
655
|
+
if (process.status === 'stopped') {
|
|
656
|
+
await this.startProcess(id);
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
this.addLog('success', 'All processes started');
|
|
660
|
+
}
|
|
661
|
+
async stopAll() {
|
|
662
|
+
this.addLog('info', 'Stopping all processes...');
|
|
663
|
+
for (const [id, process] of this.processes) {
|
|
664
|
+
if (process.status === 'running') {
|
|
665
|
+
await this.stopProcess(id);
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
this.addLog('success', 'All processes stopped');
|
|
669
|
+
}
|
|
670
|
+
async restartAll() {
|
|
671
|
+
await this.stopAll();
|
|
672
|
+
await new Promise((resolve) => setTimeout(resolve, 500));
|
|
673
|
+
await this.startAll();
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
export async function launchEnhancedUI() {
|
|
677
|
+
const ui = new EnhancedProcessUI();
|
|
678
|
+
await ui.start();
|
|
679
|
+
}
|
|
680
|
+
//# sourceMappingURL=process-ui-enhanced.js.map
|