claude-flow 2.0.0-alpha.61 → 2.0.0-alpha.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +54 -0
- package/.claude/commands/analysis/token-efficiency.md +2 -1
- package/.claude/commands/automation/self-healing.md +47 -2
- package/.claude/commands/automation/session-memory.md +39 -10
- package/.claude/commands/automation/smart-agents.md +36 -8
- package/.claude/commands/github/code-review-swarm.md +80 -15
- package/.claude/commands/github/github-modes.md +14 -14
- package/.claude/commands/github/issue-tracker.md +19 -16
- package/.claude/commands/github/multi-repo-swarm.md +114 -16
- package/.claude/commands/github/pr-manager.md +5 -4
- package/.claude/commands/github/project-board-sync.md +38 -5
- package/.claude/commands/github/release-manager.md +19 -19
- package/.claude/commands/github/release-swarm.md +102 -13
- package/.claude/commands/github/repo-architect.md +6 -6
- package/.claude/commands/github/swarm-issue.md +139 -17
- package/.claude/commands/github/swarm-pr.md +49 -15
- package/.claude/commands/github/sync-coordinator.md +33 -33
- package/.claude/commands/github/workflow-automation.md +37 -10
- package/.claude/commands/hooks/overview.md +2 -2
- package/.claude/commands/hooks/setup.md +7 -7
- package/.claude/commands/memory/neural.md +10 -5
- package/.claude/commands/memory/usage.md +9 -5
- package/.claude/commands/monitoring/agents.md +7 -5
- package/.claude/commands/monitoring/status.md +8 -5
- package/.claude/commands/optimization/auto-topology.md +13 -1
- package/.claude/commands/optimization/parallel-execution.md +7 -1
- package/.claude/commands/sparc/analyzer.md +28 -2
- package/.claude/commands/sparc/architect.md +27 -1
- package/.claude/commands/sparc/batch-executor.md +27 -1
- package/.claude/commands/sparc/coder.md +27 -1
- package/.claude/commands/sparc/debugger.md +27 -1
- package/.claude/commands/sparc/designer.md +27 -1
- package/.claude/commands/sparc/documenter.md +27 -1
- package/.claude/commands/sparc/innovator.md +27 -1
- package/.claude/commands/sparc/memory-manager.md +27 -1
- package/.claude/commands/sparc/optimizer.md +27 -1
- package/.claude/commands/sparc/orchestrator.md +106 -2
- package/.claude/commands/sparc/researcher.md +27 -1
- package/.claude/commands/sparc/reviewer.md +27 -1
- package/.claude/commands/sparc/sparc-modes.md +137 -5
- package/.claude/commands/sparc/swarm-coordinator.md +27 -1
- package/.claude/commands/sparc/tdd.md +27 -1
- package/.claude/commands/sparc/tester.md +27 -1
- package/.claude/commands/sparc/workflow-manager.md +27 -1
- package/.claude/commands/swarm/analysis.md +82 -5
- package/.claude/commands/swarm/development.md +83 -6
- package/.claude/commands/swarm/examples.md +141 -3
- package/.claude/commands/swarm/maintenance.md +92 -8
- package/.claude/commands/swarm/optimization.md +107 -9
- package/.claude/commands/swarm/research.md +126 -8
- package/.claude/commands/swarm/testing.md +121 -9
- package/.claude/commands/training/neural-patterns.md +27 -2
- package/.claude/commands/training/specialization.md +13 -3
- package/.claude/commands/workflows/development.md +43 -4
- package/.claude/commands/workflows/research.md +26 -2
- package/CHANGELOG.md +59 -1
- package/README.md +8 -0
- package/bin/claude-flow +1 -1
- package/dist/adapters/cliffy-node.d.ts.map +1 -1
- package/dist/adapters/cliffy-node.js +13 -7
- package/dist/adapters/cliffy-node.js.map +1 -1
- package/dist/agents/agent-manager.d.ts.map +1 -1
- package/dist/agents/agent-manager.js +77 -65
- package/dist/agents/agent-manager.js.map +1 -1
- package/dist/agents/agent-registry.d.ts.map +1 -1
- package/dist/agents/agent-registry.js +38 -30
- package/dist/agents/agent-registry.js.map +1 -1
- package/dist/api/claude-client.d.ts.map +1 -1
- package/dist/api/claude-client.js +22 -16
- package/dist/api/claude-client.js.map +1 -1
- package/dist/cli/agents/analyst.d.ts.map +1 -1
- package/dist/cli/agents/analyst.js +94 -114
- package/dist/cli/agents/analyst.js.map +1 -1
- package/dist/cli/agents/architect.d.ts.map +1 -1
- package/dist/cli/agents/architect.js +100 -114
- package/dist/cli/agents/architect.js.map +1 -1
- package/dist/cli/agents/base-agent.d.ts.map +1 -1
- package/dist/cli/agents/base-agent.js +27 -27
- package/dist/cli/agents/base-agent.js.map +1 -1
- package/dist/cli/agents/capabilities.d.ts.map +1 -1
- package/dist/cli/agents/capabilities.js +49 -51
- package/dist/cli/agents/capabilities.js.map +1 -1
- package/dist/cli/agents/coder.d.ts.map +1 -1
- package/dist/cli/agents/coder.js +92 -98
- package/dist/cli/agents/coder.js.map +1 -1
- package/dist/cli/agents/coordinator.d.ts.map +1 -1
- package/dist/cli/agents/coordinator.js +59 -64
- package/dist/cli/agents/coordinator.js.map +1 -1
- package/dist/cli/agents/hive-agents.d.ts.map +1 -1
- package/dist/cli/agents/hive-agents.js +22 -24
- package/dist/cli/agents/hive-agents.js.map +1 -1
- package/dist/cli/agents/index.d.ts.map +1 -1
- package/dist/cli/agents/index.js +17 -17
- package/dist/cli/agents/index.js.map +1 -1
- package/dist/cli/agents/researcher.d.ts.map +1 -1
- package/dist/cli/agents/researcher.js +41 -61
- package/dist/cli/agents/researcher.js.map +1 -1
- package/dist/cli/agents/tester.d.ts.map +1 -1
- package/dist/cli/agents/tester.js +78 -90
- package/dist/cli/agents/tester.js.map +1 -1
- package/dist/cli/cli-core.d.ts +4 -1
- package/dist/cli/cli-core.d.ts.map +1 -1
- package/dist/cli/cli-core.js +40 -39
- package/dist/cli/cli-core.js.map +1 -1
- package/dist/cli/command-registry.d.ts.map +1 -1
- package/dist/cli/command-registry.js +55 -64
- package/dist/cli/command-registry.js.map +1 -1
- package/dist/cli/commands/advanced-memory-commands.d.ts.map +1 -1
- package/dist/cli/commands/advanced-memory-commands.js +49 -40
- package/dist/cli/commands/advanced-memory-commands.js.map +1 -1
- package/dist/cli/commands/agent-simple.d.ts +3 -0
- package/dist/cli/commands/agent-simple.d.ts.map +1 -1
- package/dist/cli/commands/agent-simple.js +30 -27
- package/dist/cli/commands/agent-simple.js.map +1 -1
- package/dist/cli/commands/agent.d.ts.map +1 -1
- package/dist/cli/commands/agent.js +53 -40
- package/dist/cli/commands/agent.js.map +1 -1
- package/dist/cli/commands/claude-api.js +4 -4
- package/dist/cli/commands/claude-api.js.map +1 -1
- package/dist/cli/commands/claude.d.ts.map +1 -1
- package/dist/cli/commands/claude.js +2 -2
- package/dist/cli/commands/claude.js.map +1 -1
- package/dist/cli/commands/config-integration.d.ts +7 -1
- package/dist/cli/commands/config-integration.d.ts.map +1 -1
- package/dist/cli/commands/config-integration.js +18 -9
- package/dist/cli/commands/config-integration.js.map +1 -1
- package/dist/cli/commands/config.d.ts.map +1 -1
- package/dist/cli/commands/config.js +2 -3
- package/dist/cli/commands/config.js.map +1 -1
- package/dist/cli/commands/enterprise.d.ts.map +1 -1
- package/dist/cli/commands/enterprise.js +115 -95
- package/dist/cli/commands/enterprise.js.map +1 -1
- package/dist/cli/commands/help-new.js +49 -49
- package/dist/cli/commands/help-new.js.map +1 -1
- package/dist/cli/commands/help.d.ts.map +1 -1
- package/dist/cli/commands/help.js +122 -125
- package/dist/cli/commands/help.js.map +1 -1
- package/dist/cli/commands/hive-mind/index.d.ts +1 -1
- package/dist/cli/commands/hive-mind/index.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/index.js +1 -1
- package/dist/cli/commands/hive-mind/index.js.map +1 -1
- package/dist/cli/commands/hive-mind/init.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/init.js.map +1 -1
- package/dist/cli/commands/hive-mind/optimize-memory.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/optimize-memory.js +35 -26
- package/dist/cli/commands/hive-mind/optimize-memory.js.map +1 -1
- package/dist/cli/commands/hive-mind/pause.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/pause.js +8 -6
- package/dist/cli/commands/hive-mind/pause.js.map +1 -1
- package/dist/cli/commands/hive-mind/ps.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/ps.js +17 -12
- package/dist/cli/commands/hive-mind/ps.js.map +1 -1
- package/dist/cli/commands/hive-mind/resume.js +12 -10
- package/dist/cli/commands/hive-mind/resume.js.map +1 -1
- package/dist/cli/commands/hive-mind/spawn.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/spawn.js +20 -11
- package/dist/cli/commands/hive-mind/spawn.js.map +1 -1
- package/dist/cli/commands/hive-mind/status.js +17 -22
- package/dist/cli/commands/hive-mind/status.js.map +1 -1
- package/dist/cli/commands/hive-mind/stop.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/stop.js +23 -15
- package/dist/cli/commands/hive-mind/stop.js.map +1 -1
- package/dist/cli/commands/hive-mind/task.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/task.js +25 -19
- package/dist/cli/commands/hive-mind/task.js.map +1 -1
- package/dist/cli/commands/hive-mind/wizard.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/wizard.js +86 -68
- package/dist/cli/commands/hive-mind/wizard.js.map +1 -1
- package/dist/cli/commands/hive.js +73 -38
- package/dist/cli/commands/hive.js.map +1 -1
- package/dist/cli/commands/hook-validator.d.ts.map +1 -1
- package/dist/cli/commands/hook-validator.js +4 -2
- package/dist/cli/commands/hook-validator.js.map +1 -1
- package/dist/cli/commands/hook.d.ts.map +1 -1
- package/dist/cli/commands/hook.js +8 -8
- package/dist/cli/commands/hook.js.map +1 -1
- package/dist/cli/commands/index.d.ts +1 -1
- package/dist/cli/commands/index.d.ts.map +1 -1
- package/dist/cli/commands/index.js +850 -784
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/mcp.d.ts.map +1 -1
- package/dist/cli/commands/mcp.js +8 -16
- package/dist/cli/commands/mcp.js.map +1 -1
- package/dist/cli/commands/memory.d.ts.map +1 -1
- package/dist/cli/commands/memory.js +8 -8
- package/dist/cli/commands/memory.js.map +1 -1
- package/dist/cli/commands/migrate.d.ts.map +1 -1
- package/dist/cli/commands/migrate.js +3 -3
- package/dist/cli/commands/migrate.js.map +1 -1
- package/dist/cli/commands/monitor.d.ts.map +1 -1
- package/dist/cli/commands/monitor.js +50 -34
- package/dist/cli/commands/monitor.js.map +1 -1
- package/dist/cli/commands/ruv-swarm.d.ts +7 -1
- package/dist/cli/commands/ruv-swarm.d.ts.map +1 -1
- package/dist/cli/commands/ruv-swarm.js +6 -6
- package/dist/cli/commands/ruv-swarm.js.map +1 -1
- package/dist/cli/commands/session.d.ts.map +1 -1
- package/dist/cli/commands/session.js +22 -17
- package/dist/cli/commands/session.js.map +1 -1
- package/dist/cli/commands/sparc.d.ts +1 -1
- package/dist/cli/commands/sparc.d.ts.map +1 -1
- package/dist/cli/commands/sparc.js +146 -126
- package/dist/cli/commands/sparc.js.map +1 -1
- package/dist/cli/commands/start/event-emitter.js +1 -1
- package/dist/cli/commands/start/event-emitter.js.map +1 -1
- package/dist/cli/commands/start/process-manager.d.ts.map +1 -1
- package/dist/cli/commands/start/process-manager.js +20 -18
- package/dist/cli/commands/start/process-manager.js.map +1 -1
- package/dist/cli/commands/start/process-ui-simple.d.ts +4 -0
- package/dist/cli/commands/start/process-ui-simple.d.ts.map +1 -1
- package/dist/cli/commands/start/process-ui-simple.js +2 -2
- package/dist/cli/commands/start/process-ui-simple.js.map +1 -1
- package/dist/cli/commands/start/start-command.d.ts.map +1 -1
- package/dist/cli/commands/start/start-command.js +27 -15
- package/dist/cli/commands/start/start-command.js.map +1 -1
- package/dist/cli/commands/start/system-monitor.d.ts +3 -0
- package/dist/cli/commands/start/system-monitor.d.ts.map +1 -1
- package/dist/cli/commands/start/system-monitor.js +16 -18
- package/dist/cli/commands/start/system-monitor.js.map +1 -1
- package/dist/cli/commands/status.d.ts.map +1 -1
- package/dist/cli/commands/status.js +28 -33
- package/dist/cli/commands/status.js.map +1 -1
- package/dist/cli/commands/swarm-spawn.d.ts.map +1 -1
- package/dist/cli/commands/swarm-spawn.js +1 -1
- package/dist/cli/commands/swarm-spawn.js.map +1 -1
- package/dist/cli/commands/swarm.d.ts +4 -1
- package/dist/cli/commands/swarm.d.ts.map +1 -1
- package/dist/cli/commands/swarm.js +23 -18
- package/dist/cli/commands/swarm.js.map +1 -1
- package/dist/cli/commands/task.d.ts.map +1 -1
- package/dist/cli/commands/task.js.map +1 -1
- package/dist/cli/commands/workflow.d.ts.map +1 -1
- package/dist/cli/commands/workflow.js +49 -45
- package/dist/cli/commands/workflow.js.map +1 -1
- package/dist/cli/completion.d.ts +3 -0
- package/dist/cli/completion.d.ts.map +1 -1
- package/dist/cli/completion.js +15 -5
- package/dist/cli/completion.js.map +1 -1
- package/dist/cli/formatter.d.ts +3 -0
- package/dist/cli/formatter.d.ts.map +1 -1
- package/dist/cli/formatter.js +3 -3
- package/dist/cli/formatter.js.map +1 -1
- package/dist/cli/help-formatter.d.ts.map +1 -1
- package/dist/cli/help-formatter.js +8 -14
- package/dist/cli/help-formatter.js.map +1 -1
- package/dist/cli/index-remote.d.ts +4 -0
- package/dist/cli/index-remote.d.ts.map +1 -1
- package/dist/cli/index-remote.js +1 -1
- package/dist/cli/index-remote.js.map +1 -1
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +32 -34
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/init/batch-tools.d.ts.map +1 -1
- package/dist/cli/init/batch-tools.js.map +1 -1
- package/dist/cli/init/claude-config.d.ts.map +1 -1
- package/dist/cli/init/claude-config.js +111 -106
- package/dist/cli/init/claude-config.js.map +1 -1
- package/dist/cli/init/directory-structure.d.ts.map +1 -1
- package/dist/cli/init/directory-structure.js +3 -3
- package/dist/cli/init/directory-structure.js.map +1 -1
- package/dist/cli/init/index.d.ts.map +1 -1
- package/dist/cli/init/index.js +1 -1
- package/dist/cli/init/index.js.map +1 -1
- package/dist/cli/init/sparc-environment.d.ts.map +1 -1
- package/dist/cli/init/sparc-environment.js +69 -69
- package/dist/cli/init/sparc-environment.js.map +1 -1
- package/dist/cli/init/swarm-commands.d.ts.map +1 -1
- package/dist/cli/init/swarm-commands.js +1 -1
- package/dist/cli/init/swarm-commands.js.map +1 -1
- package/dist/cli/main.d.ts +3 -0
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +6 -6
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/node-compat.d.ts.map +1 -1
- package/dist/cli/node-compat.js +24 -18
- package/dist/cli/node-compat.js.map +1 -1
- package/dist/cli/node-repl.d.ts +4 -0
- package/dist/cli/node-repl.d.ts.map +1 -1
- package/dist/cli/node-repl.js +24 -30
- package/dist/cli/node-repl.js.map +1 -1
- package/dist/cli/repl.d.ts.map +1 -1
- package/dist/cli/repl.js +81 -70
- package/dist/cli/repl.js.map +1 -1
- package/dist/cli/runtime-detector.d.ts.map +1 -1
- package/dist/cli/runtime-detector.js +11 -7
- package/dist/cli/runtime-detector.js.map +1 -1
- package/dist/cli/simple-cli.d.ts +4 -0
- package/dist/cli/simple-cli.d.ts.map +1 -1
- package/dist/cli/simple-cli.js +109 -95
- package/dist/cli/simple-cli.js.map +1 -1
- package/dist/cli/simple-commands/analysis.d.ts.map +1 -1
- package/dist/cli/simple-commands/analysis.js +18 -11
- package/dist/cli/simple-commands/analysis.js.map +1 -1
- package/dist/cli/simple-commands/automation.js +32 -17
- package/dist/cli/simple-commands/automation.js.map +1 -1
- package/dist/cli/simple-commands/batch-manager.js +44 -39
- package/dist/cli/simple-commands/batch-manager.js.map +1 -1
- package/dist/cli/simple-commands/config.d.ts.map +1 -1
- package/dist/cli/simple-commands/config.js +22 -21
- package/dist/cli/simple-commands/config.js.map +1 -1
- package/dist/cli/simple-commands/coordination.d.ts.map +1 -1
- package/dist/cli/simple-commands/coordination.js +12 -12
- package/dist/cli/simple-commands/coordination.js.map +1 -1
- package/dist/cli/simple-commands/fix-hook-variables.d.ts.map +1 -1
- package/dist/cli/simple-commands/fix-hook-variables.js +36 -30
- package/dist/cli/simple-commands/fix-hook-variables.js.map +1 -1
- package/dist/cli/simple-commands/github.d.ts.map +1 -1
- package/dist/cli/simple-commands/github.js +15 -15
- package/dist/cli/simple-commands/github.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.js +12 -10
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/communication.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/communication.js +42 -45
- package/dist/cli/simple-commands/hive-mind/communication.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/core.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/core.js +97 -89
- package/dist/cli/simple-commands/hive-mind/core.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/db-optimizer.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/db-optimizer.js +114 -59
- package/dist/cli/simple-commands/hive-mind/db-optimizer.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.d.ts +66 -0
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js +402 -105
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/memory.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/memory.js +105 -75
- package/dist/cli/simple-commands/hive-mind/memory.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.js +45 -43
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/queen.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/queen.js +101 -88
- package/dist/cli/simple-commands/hive-mind/queen.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/session-manager.js +75 -53
- package/dist/cli/simple-commands/hive-mind/session-manager.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind-optimize.js +18 -18
- package/dist/cli/simple-commands/hive-mind-optimize.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind.js +278 -140
- package/dist/cli/simple-commands/hive-mind.js.map +1 -1
- package/dist/cli/simple-commands/hook-safety.d.ts.map +1 -1
- package/dist/cli/simple-commands/hook-safety.js +19 -19
- package/dist/cli/simple-commands/hook-safety.js.map +1 -1
- package/dist/cli/simple-commands/hooks.d.ts.map +1 -1
- package/dist/cli/simple-commands/hooks.js +85 -71
- package/dist/cli/simple-commands/hooks.js.map +1 -1
- package/dist/cli/simple-commands/init/batch-init.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/batch-init.js +62 -55
- package/dist/cli/simple-commands/init/batch-init.js.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.js +2 -2
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.js.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js +58 -50
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.js.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.js +34 -28
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.js.map +1 -1
- package/dist/cli/simple-commands/init/executable-wrapper.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/executable-wrapper.js +7 -4
- package/dist/cli/simple-commands/init/executable-wrapper.js.map +1 -1
- package/dist/cli/simple-commands/init/gitignore-updater.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/gitignore-updater.js +10 -9
- package/dist/cli/simple-commands/init/gitignore-updater.js.map +1 -1
- package/dist/cli/simple-commands/init/help.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/help.js.map +1 -1
- package/dist/cli/simple-commands/init/index.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/index.js +159 -103
- package/dist/cli/simple-commands/init/index.js.map +1 -1
- package/dist/cli/simple-commands/init/performance-monitor.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/performance-monitor.js +17 -18
- package/dist/cli/simple-commands/init/performance-monitor.js.map +1 -1
- package/dist/cli/simple-commands/init/rollback/backup-manager.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/rollback/backup-manager.js +19 -25
- package/dist/cli/simple-commands/init/rollback/backup-manager.js.map +1 -1
- package/dist/cli/simple-commands/init/rollback/index.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/rollback/index.js +18 -15
- package/dist/cli/simple-commands/init/rollback/index.js.map +1 -1
- package/dist/cli/simple-commands/init/rollback/recovery-manager.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/rollback/recovery-manager.js +49 -68
- package/dist/cli/simple-commands/init/rollback/recovery-manager.js.map +1 -1
- package/dist/cli/simple-commands/init/rollback/rollback-executor.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/rollback/rollback-executor.js +16 -24
- package/dist/cli/simple-commands/init/rollback/rollback-executor.js.map +1 -1
- package/dist/cli/simple-commands/init/rollback/state-tracker.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/rollback/state-tracker.js +25 -25
- package/dist/cli/simple-commands/init/rollback/state-tracker.js.map +1 -1
- package/dist/cli/simple-commands/init/sparc/roomodes-config.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/sparc/roomodes-config.js +57 -57
- package/dist/cli/simple-commands/init/sparc/roomodes-config.js.map +1 -1
- package/dist/cli/simple-commands/init/sparc/workflows.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/sparc/workflows.js +21 -21
- package/dist/cli/simple-commands/init/sparc/workflows.js.map +1 -1
- package/dist/cli/simple-commands/init/sparc-structure.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/sparc-structure.js +1 -1
- package/dist/cli/simple-commands/init/sparc-structure.js.map +1 -1
- package/dist/cli/simple-commands/init/templates/enhanced-templates.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/templates/enhanced-templates.js +69 -78
- package/dist/cli/simple-commands/init/templates/enhanced-templates.js.map +1 -1
- package/dist/cli/simple-commands/init/templates/sparc-modes.js +2 -2
- package/dist/cli/simple-commands/init/validation/config-validator.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/validation/config-validator.js +12 -16
- package/dist/cli/simple-commands/init/validation/config-validator.js.map +1 -1
- package/dist/cli/simple-commands/init/validation/health-checker.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/validation/health-checker.js +39 -41
- package/dist/cli/simple-commands/init/validation/health-checker.js.map +1 -1
- package/dist/cli/simple-commands/init/validation/index.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/validation/index.js +8 -8
- package/dist/cli/simple-commands/init/validation/index.js.map +1 -1
- package/dist/cli/simple-commands/init/validation/mode-validator.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/validation/mode-validator.js +12 -12
- package/dist/cli/simple-commands/init/validation/mode-validator.js.map +1 -1
- package/dist/cli/simple-commands/init/validation/post-init-validator.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/validation/post-init-validator.js +13 -13
- package/dist/cli/simple-commands/init/validation/post-init-validator.js.map +1 -1
- package/dist/cli/simple-commands/init/validation/pre-init-validator.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/validation/pre-init-validator.js +19 -24
- package/dist/cli/simple-commands/init/validation/pre-init-validator.js.map +1 -1
- package/dist/cli/simple-commands/mcp.js +2 -2
- package/dist/cli/simple-commands/mcp.js.map +1 -1
- package/dist/cli/simple-commands/memory.js +4 -4
- package/dist/cli/simple-commands/memory.js.map +1 -1
- package/dist/cli/simple-commands/migrate-hooks.d.ts.map +1 -1
- package/dist/cli/simple-commands/migrate-hooks.js +3 -3
- package/dist/cli/simple-commands/migrate-hooks.js.map +1 -1
- package/dist/cli/simple-commands/monitor.d.ts.map +1 -1
- package/dist/cli/simple-commands/monitor.js +34 -26
- package/dist/cli/simple-commands/monitor.js.map +1 -1
- package/dist/cli/simple-commands/process-ui-enhanced.d.ts.map +1 -1
- package/dist/cli/simple-commands/process-ui-enhanced.js +53 -39
- package/dist/cli/simple-commands/process-ui-enhanced.js.map +1 -1
- package/dist/cli/simple-commands/sparc-modes/index.js +11 -11
- package/dist/cli/simple-commands/sparc-modes/index.js.map +1 -1
- package/dist/cli/simple-commands/sparc-modes/swarm.js +50 -50
- package/dist/cli/simple-commands/sparc.d.ts.map +1 -1
- package/dist/cli/simple-commands/sparc.js +21 -11
- package/dist/cli/simple-commands/sparc.js.map +1 -1
- package/dist/cli/simple-commands/start-ui.d.ts.map +1 -1
- package/dist/cli/simple-commands/start-ui.js +5 -3
- package/dist/cli/simple-commands/start-ui.js.map +1 -1
- package/dist/cli/simple-commands/start-wrapper.d.ts.map +1 -1
- package/dist/cli/simple-commands/start-wrapper.js +1 -1
- package/dist/cli/simple-commands/start-wrapper.js.map +1 -1
- package/dist/cli/simple-commands/status.js +14 -14
- package/dist/cli/simple-commands/status.js.map +1 -1
- package/dist/cli/simple-commands/swarm-executor.d.ts.map +1 -1
- package/dist/cli/simple-commands/swarm-executor.js +19 -19
- package/dist/cli/simple-commands/swarm-executor.js.map +1 -1
- package/dist/cli/simple-commands/swarm-metrics-integration.d.ts.map +1 -1
- package/dist/cli/simple-commands/swarm-metrics-integration.js +30 -21
- package/dist/cli/simple-commands/swarm-metrics-integration.js.map +1 -1
- package/dist/cli/simple-commands/swarm-webui-integration.d.ts.map +1 -1
- package/dist/cli/simple-commands/swarm-webui-integration.js +30 -18
- package/dist/cli/simple-commands/swarm-webui-integration.js.map +1 -1
- package/dist/cli/simple-commands/swarm.d.ts.map +1 -1
- package/dist/cli/simple-commands/swarm.js +78 -67
- package/dist/cli/simple-commands/swarm.js.map +1 -1
- package/dist/cli/simple-commands/training.d.ts.map +1 -1
- package/dist/cli/simple-commands/training.js +7 -7
- package/dist/cli/simple-commands/training.js.map +1 -1
- package/dist/cli/simple-commands/web-server.d.ts.map +1 -1
- package/dist/cli/simple-commands/web-server.js +68 -66
- package/dist/cli/simple-commands/web-server.js.map +1 -1
- package/dist/cli/simple-mcp.d.ts.map +1 -1
- package/dist/cli/simple-mcp.js +2 -4
- package/dist/cli/simple-mcp.js.map +1 -1
- package/dist/cli/simple-orchestrator.d.ts +3 -0
- package/dist/cli/simple-orchestrator.d.ts.map +1 -1
- package/dist/cli/simple-orchestrator.js +36 -35
- package/dist/cli/simple-orchestrator.js.map +1 -1
- package/dist/cli/ui/compatible-ui.d.ts +4 -0
- package/dist/cli/ui/compatible-ui.d.ts.map +1 -1
- package/dist/cli/ui/compatible-ui.js +9 -8
- package/dist/cli/ui/compatible-ui.js.map +1 -1
- package/dist/cli/ui/fallback-handler.d.ts.map +1 -1
- package/dist/cli/ui/fallback-handler.js +4 -4
- package/dist/cli/ui/fallback-handler.js.map +1 -1
- package/dist/cli/ui/index.d.ts +2 -2
- package/dist/cli/ui/index.d.ts.map +1 -1
- package/dist/cli/ui/index.js +3 -3
- package/dist/cli/ui/index.js.map +1 -1
- package/dist/cli/utils/environment-detector.d.ts.map +1 -1
- package/dist/cli/utils/environment-detector.js +13 -11
- package/dist/cli/utils/environment-detector.js.map +1 -1
- package/dist/cli/utils/interactive-detector.d.ts.map +1 -1
- package/dist/cli/utils/interactive-detector.js +1 -1
- package/dist/cli/utils/interactive-detector.js.map +1 -1
- package/dist/cli/utils/prompt-defaults.d.ts.map +1 -1
- package/dist/cli/utils/prompt-defaults.js +6 -7
- package/dist/cli/utils/prompt-defaults.js.map +1 -1
- package/dist/cli/utils/safe-interactive.d.ts.map +1 -1
- package/dist/cli/utils/safe-interactive.js +7 -6
- package/dist/cli/utils/safe-interactive.js.map +1 -1
- package/dist/cli/utils.d.ts.map +1 -1
- package/dist/cli/utils.js +58 -50
- package/dist/cli/utils.js.map +1 -1
- package/dist/cli/validation-helper.d.ts.map +1 -1
- package/dist/cli/validation-helper.js.map +1 -1
- package/dist/communication/message-bus.d.ts.map +1 -1
- package/dist/communication/message-bus.js +80 -74
- package/dist/communication/message-bus.js.map +1 -1
- package/dist/config/config-manager.d.ts +3 -0
- package/dist/config/config-manager.d.ts.map +1 -1
- package/dist/config/config-manager.js +23 -6
- package/dist/config/config-manager.js.map +1 -1
- package/dist/config/ruv-swarm-config.d.ts +6 -0
- package/dist/config/ruv-swarm-config.d.ts.map +1 -1
- package/dist/config/ruv-swarm-config.js +37 -22
- package/dist/config/ruv-swarm-config.js.map +1 -1
- package/dist/config/ruv-swarm-integration.d.ts.map +1 -1
- package/dist/config/ruv-swarm-integration.js +21 -21
- package/dist/config/ruv-swarm-integration.js.map +1 -1
- package/dist/constants/agent-types.d.ts +4 -4
- package/dist/constants/agent-types.d.ts.map +1 -1
- package/dist/constants/agent-types.js +4 -4
- package/dist/constants/agent-types.js.map +1 -1
- package/dist/coordination/advanced-scheduler.d.ts.map +1 -1
- package/dist/coordination/advanced-scheduler.js +6 -10
- package/dist/coordination/advanced-scheduler.js.map +1 -1
- package/dist/coordination/advanced-task-executor.d.ts.map +1 -1
- package/dist/coordination/advanced-task-executor.js +33 -33
- package/dist/coordination/advanced-task-executor.js.map +1 -1
- package/dist/coordination/background-executor.d.ts.map +1 -1
- package/dist/coordination/background-executor.js +17 -16
- package/dist/coordination/background-executor.js.map +1 -1
- package/dist/coordination/circuit-breaker.d.ts.map +1 -1
- package/dist/coordination/circuit-breaker.js +3 -0
- package/dist/coordination/circuit-breaker.js.map +1 -1
- package/dist/coordination/conflict-resolution.d.ts.map +1 -1
- package/dist/coordination/conflict-resolution.js +10 -8
- package/dist/coordination/conflict-resolution.js.map +1 -1
- package/dist/coordination/dependency-graph.d.ts.map +1 -1
- package/dist/coordination/dependency-graph.js +4 -3
- package/dist/coordination/dependency-graph.js.map +1 -1
- package/dist/coordination/hive-orchestrator.d.ts.map +1 -1
- package/dist/coordination/hive-orchestrator.js +29 -25
- package/dist/coordination/hive-orchestrator.js.map +1 -1
- package/dist/coordination/hive-protocol.d.ts.map +1 -1
- package/dist/coordination/hive-protocol.js +22 -23
- package/dist/coordination/hive-protocol.js.map +1 -1
- package/dist/coordination/index.d.ts +1 -1
- package/dist/coordination/index.d.ts.map +1 -1
- package/dist/coordination/index.js +1 -1
- package/dist/coordination/index.js.map +1 -1
- package/dist/coordination/load-balancer.d.ts.map +1 -1
- package/dist/coordination/load-balancer.js +55 -56
- package/dist/coordination/load-balancer.js.map +1 -1
- package/dist/coordination/manager.d.ts.map +1 -1
- package/dist/coordination/manager.js +2 -8
- package/dist/coordination/manager.js.map +1 -1
- package/dist/coordination/messaging.d.ts.map +1 -1
- package/dist/coordination/messaging.js +4 -4
- package/dist/coordination/messaging.js.map +1 -1
- package/dist/coordination/metrics.d.ts.map +1 -1
- package/dist/coordination/metrics.js +11 -9
- package/dist/coordination/metrics.js.map +1 -1
- package/dist/coordination/resources.d.ts.map +1 -1
- package/dist/coordination/resources.js +10 -6
- package/dist/coordination/resources.js.map +1 -1
- package/dist/coordination/scheduler.d.ts.map +1 -1
- package/dist/coordination/scheduler.js +4 -4
- package/dist/coordination/scheduler.js.map +1 -1
- package/dist/coordination/swarm-coordinator.d.ts.map +1 -1
- package/dist/coordination/swarm-coordinator.js +32 -34
- package/dist/coordination/swarm-coordinator.js.map +1 -1
- package/dist/coordination/swarm-monitor.d.ts.map +1 -1
- package/dist/coordination/swarm-monitor.js +17 -17
- package/dist/coordination/swarm-monitor.js.map +1 -1
- package/dist/coordination/work-stealing.d.ts.map +1 -1
- package/dist/coordination/work-stealing.js +3 -0
- package/dist/coordination/work-stealing.js.map +1 -1
- package/dist/core/config.d.ts +4 -0
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +28 -31
- package/dist/core/config.js.map +1 -1
- package/dist/core/event-bus.d.ts +3 -0
- package/dist/core/event-bus.d.ts.map +1 -1
- package/dist/core/event-bus.js.map +1 -1
- package/dist/core/json-persistence.d.ts +3 -0
- package/dist/core/json-persistence.d.ts.map +1 -1
- package/dist/core/json-persistence.js +19 -23
- package/dist/core/json-persistence.js.map +1 -1
- package/dist/core/logger.d.ts +3 -0
- package/dist/core/logger.d.ts.map +1 -1
- package/dist/core/logger.js +2 -6
- package/dist/core/logger.js.map +1 -1
- package/dist/core/orchestrator-fixed.d.ts.map +1 -1
- package/dist/core/orchestrator-fixed.js +4 -1
- package/dist/core/orchestrator-fixed.js.map +1 -1
- package/dist/core/orchestrator.d.ts.map +1 -1
- package/dist/core/orchestrator.js +66 -33
- package/dist/core/orchestrator.js.map +1 -1
- package/dist/core/persistence.d.ts +3 -0
- package/dist/core/persistence.d.ts.map +1 -1
- package/dist/core/persistence.js +25 -19
- package/dist/core/persistence.js.map +1 -1
- package/dist/enterprise/analytics-manager.d.ts.map +1 -1
- package/dist/enterprise/analytics-manager.js +141 -134
- package/dist/enterprise/analytics-manager.js.map +1 -1
- package/dist/enterprise/audit-manager.d.ts.map +1 -1
- package/dist/enterprise/audit-manager.js +144 -122
- package/dist/enterprise/audit-manager.js.map +1 -1
- package/dist/enterprise/cloud-manager.d.ts.map +1 -1
- package/dist/enterprise/cloud-manager.js +104 -99
- package/dist/enterprise/cloud-manager.js.map +1 -1
- package/dist/enterprise/deployment-manager.d.ts.map +1 -1
- package/dist/enterprise/deployment-manager.js +104 -97
- package/dist/enterprise/deployment-manager.js.map +1 -1
- package/dist/enterprise/index.d.ts +6 -6
- package/dist/enterprise/index.d.ts.map +1 -1
- package/dist/enterprise/project-manager.d.ts.map +1 -1
- package/dist/enterprise/project-manager.js +74 -66
- package/dist/enterprise/project-manager.js.map +1 -1
- package/dist/enterprise/security-manager.d.ts.map +1 -1
- package/dist/enterprise/security-manager.js +137 -129
- package/dist/enterprise/security-manager.js.map +1 -1
- package/dist/hive-mind/core/Agent.d.ts.map +1 -1
- package/dist/hive-mind/core/Agent.js +36 -36
- package/dist/hive-mind/core/Agent.js.map +1 -1
- package/dist/hive-mind/core/Communication.d.ts.map +1 -1
- package/dist/hive-mind/core/Communication.js +17 -17
- package/dist/hive-mind/core/Communication.js.map +1 -1
- package/dist/hive-mind/core/DatabaseManager.d.ts.map +1 -1
- package/dist/hive-mind/core/DatabaseManager.js +104 -58
- package/dist/hive-mind/core/DatabaseManager.js.map +1 -1
- package/dist/hive-mind/core/HiveMind.d.ts.map +1 -1
- package/dist/hive-mind/core/HiveMind.js +35 -35
- package/dist/hive-mind/core/HiveMind.js.map +1 -1
- package/dist/hive-mind/core/Memory.d.ts.map +1 -1
- package/dist/hive-mind/core/Memory.js +78 -71
- package/dist/hive-mind/core/Memory.js.map +1 -1
- package/dist/hive-mind/core/MemoryMonitor.d.ts.map +1 -1
- package/dist/hive-mind/core/MemoryMonitor.js +38 -38
- package/dist/hive-mind/core/MemoryMonitor.js.map +1 -1
- package/dist/hive-mind/core/Queen.d.ts.map +1 -1
- package/dist/hive-mind/core/Queen.js +110 -47
- package/dist/hive-mind/core/Queen.js.map +1 -1
- package/dist/hive-mind/integration/ConsensusEngine.d.ts.map +1 -1
- package/dist/hive-mind/integration/ConsensusEngine.js +25 -23
- package/dist/hive-mind/integration/ConsensusEngine.js.map +1 -1
- package/dist/hive-mind/integration/MCPToolWrapper.d.ts.map +1 -1
- package/dist/hive-mind/integration/MCPToolWrapper.js.map +1 -1
- package/dist/hive-mind/integration/SwarmOrchestrator.d.ts.map +1 -1
- package/dist/hive-mind/integration/SwarmOrchestrator.js +60 -58
- package/dist/hive-mind/integration/SwarmOrchestrator.js.map +1 -1
- package/dist/hive-mind/types.d.ts.map +1 -1
- package/dist/integration/mock-components.d.ts.map +1 -1
- package/dist/integration/mock-components.js +21 -21
- package/dist/integration/mock-components.js.map +1 -1
- package/dist/integration/system-integration.d.ts.map +1 -1
- package/dist/integration/system-integration.js +13 -11
- package/dist/integration/system-integration.js.map +1 -1
- package/dist/mcp/auth.d.ts +1 -1
- package/dist/mcp/auth.d.ts.map +1 -1
- package/dist/mcp/auth.js +8 -1
- package/dist/mcp/auth.js.map +1 -1
- package/dist/mcp/claude-code-wrapper.d.ts.map +1 -1
- package/dist/mcp/claude-code-wrapper.js +169 -68
- package/dist/mcp/claude-code-wrapper.js.map +1 -1
- package/dist/mcp/claude-flow-tools.d.ts.map +1 -1
- package/dist/mcp/claude-flow-tools.js +42 -3
- package/dist/mcp/claude-flow-tools.js.map +1 -1
- package/dist/mcp/client.d.ts.map +1 -1
- package/dist/mcp/client.js.map +1 -1
- package/dist/mcp/index.d.ts +6 -6
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +9 -9
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/integrate-wrapper.d.ts.map +1 -1
- package/dist/mcp/integrate-wrapper.js +5 -7
- package/dist/mcp/integrate-wrapper.js.map +1 -1
- package/dist/mcp/lifecycle-manager.d.ts.map +1 -1
- package/dist/mcp/lifecycle-manager.js +8 -7
- package/dist/mcp/lifecycle-manager.js.map +1 -1
- package/dist/mcp/load-balancer.d.ts.map +1 -1
- package/dist/mcp/load-balancer.js +5 -1
- package/dist/mcp/load-balancer.js.map +1 -1
- package/dist/mcp/orchestration-integration.d.ts.map +1 -1
- package/dist/mcp/orchestration-integration.js +22 -9
- package/dist/mcp/orchestration-integration.js.map +1 -1
- package/dist/mcp/performance-monitor.d.ts.map +1 -1
- package/dist/mcp/performance-monitor.js +22 -19
- package/dist/mcp/performance-monitor.js.map +1 -1
- package/dist/mcp/protocol-manager.d.ts.map +1 -1
- package/dist/mcp/protocol-manager.js +8 -19
- package/dist/mcp/protocol-manager.js.map +1 -1
- package/dist/mcp/recovery/connection-health-monitor.d.ts.map +1 -1
- package/dist/mcp/recovery/connection-health-monitor.js +5 -5
- package/dist/mcp/recovery/connection-health-monitor.js.map +1 -1
- package/dist/mcp/recovery/connection-state-manager.d.ts +4 -0
- package/dist/mcp/recovery/connection-state-manager.d.ts.map +1 -1
- package/dist/mcp/recovery/connection-state-manager.js +13 -13
- package/dist/mcp/recovery/connection-state-manager.js.map +1 -1
- package/dist/mcp/recovery/fallback-coordinator.d.ts.map +1 -1
- package/dist/mcp/recovery/fallback-coordinator.js +5 -5
- package/dist/mcp/recovery/fallback-coordinator.js.map +1 -1
- package/dist/mcp/recovery/index.d.ts +4 -4
- package/dist/mcp/recovery/index.d.ts.map +1 -1
- package/dist/mcp/recovery/index.js +4 -4
- package/dist/mcp/recovery/index.js.map +1 -1
- package/dist/mcp/recovery/reconnection-manager.d.ts.map +1 -1
- package/dist/mcp/recovery/reconnection-manager.js +1 -1
- package/dist/mcp/recovery/reconnection-manager.js.map +1 -1
- package/dist/mcp/recovery/recovery-manager.d.ts.map +1 -1
- package/dist/mcp/recovery/recovery-manager.js +2 -4
- package/dist/mcp/recovery/recovery-manager.js.map +1 -1
- package/dist/mcp/router.d.ts.map +1 -1
- package/dist/mcp/router.js +3 -0
- package/dist/mcp/router.js.map +1 -1
- package/dist/mcp/ruv-swarm-tools.d.ts.map +1 -1
- package/dist/mcp/ruv-swarm-tools.js +132 -102
- package/dist/mcp/ruv-swarm-tools.js.map +1 -1
- package/dist/mcp/server-with-wrapper.d.ts +3 -0
- package/dist/mcp/server-with-wrapper.d.ts.map +1 -1
- package/dist/mcp/server-with-wrapper.js +2 -3
- package/dist/mcp/server-with-wrapper.js.map +1 -1
- package/dist/mcp/server-wrapper-mode.d.ts +5 -0
- package/dist/mcp/server-wrapper-mode.d.ts.map +1 -1
- package/dist/mcp/server-wrapper-mode.js +2 -3
- package/dist/mcp/server-wrapper-mode.js.map +1 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +12 -7
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/session-manager.d.ts.map +1 -1
- package/dist/mcp/session-manager.js +4 -3
- package/dist/mcp/session-manager.js.map +1 -1
- package/dist/mcp/sparc-modes.d.ts.map +1 -1
- package/dist/mcp/sparc-modes.js +15 -15
- package/dist/mcp/sparc-modes.js.map +1 -1
- package/dist/mcp/swarm-tools.d.ts.map +1 -1
- package/dist/mcp/swarm-tools.js +100 -80
- package/dist/mcp/swarm-tools.js.map +1 -1
- package/dist/mcp/tools.d.ts.map +1 -1
- package/dist/mcp/tools.js +28 -12
- package/dist/mcp/tools.js.map +1 -1
- package/dist/mcp/transports/base.d.ts.map +1 -1
- package/dist/mcp/transports/base.js +3 -0
- package/dist/mcp/transports/base.js.map +1 -1
- package/dist/mcp/transports/http.d.ts +3 -0
- package/dist/mcp/transports/http.d.ts.map +1 -1
- package/dist/mcp/transports/http.js +3 -3
- package/dist/mcp/transports/http.js.map +1 -1
- package/dist/mcp/transports/stdio.d.ts +3 -0
- package/dist/mcp/transports/stdio.d.ts.map +1 -1
- package/dist/mcp/transports/stdio.js +3 -0
- package/dist/mcp/transports/stdio.js.map +1 -1
- package/dist/memory/advanced-memory-manager.d.ts.map +1 -1
- package/dist/memory/advanced-memory-manager.js +109 -100
- package/dist/memory/advanced-memory-manager.js.map +1 -1
- package/dist/memory/backends/base.d.ts.map +1 -1
- package/dist/memory/backends/base.js +3 -0
- package/dist/memory/backends/base.js.map +1 -1
- package/dist/memory/backends/markdown.d.ts +3 -0
- package/dist/memory/backends/markdown.d.ts.map +1 -1
- package/dist/memory/backends/markdown.js +8 -8
- package/dist/memory/backends/markdown.js.map +1 -1
- package/dist/memory/backends/sqlite.d.ts +3 -0
- package/dist/memory/backends/sqlite.d.ts.map +1 -1
- package/dist/memory/backends/sqlite.js +6 -2
- package/dist/memory/backends/sqlite.js.map +1 -1
- package/dist/memory/cache.d.ts.map +1 -1
- package/dist/memory/cache.js +5 -3
- package/dist/memory/cache.js.map +1 -1
- package/dist/memory/distributed-memory.d.ts.map +1 -1
- package/dist/memory/distributed-memory.js +27 -28
- package/dist/memory/distributed-memory.js.map +1 -1
- package/dist/memory/fallback-store.d.ts +1 -0
- package/dist/memory/fallback-store.d.ts.map +1 -1
- package/dist/memory/fallback-store.js +25 -3
- package/dist/memory/fallback-store.js.map +1 -1
- package/dist/memory/in-memory-store.d.ts.map +1 -1
- package/dist/memory/in-memory-store.js +8 -8
- package/dist/memory/in-memory-store.js.map +1 -1
- package/dist/memory/indexer.d.ts.map +1 -1
- package/dist/memory/indexer.js +4 -1
- package/dist/memory/indexer.js.map +1 -1
- package/dist/memory/manager.d.ts.map +1 -1
- package/dist/memory/manager.js +17 -20
- package/dist/memory/manager.js.map +1 -1
- package/dist/memory/sqlite-store.d.ts +34 -0
- package/dist/memory/sqlite-store.d.ts.map +1 -0
- package/dist/memory/sqlite-store.js +14 -11
- package/dist/memory/sqlite-store.js.map +1 -1
- 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 +157 -0
- package/dist/memory/sqlite-wrapper.js.map +1 -0
- package/dist/memory/swarm-memory.d.ts.map +1 -1
- package/dist/memory/swarm-memory.js +37 -44
- package/dist/memory/swarm-memory.js.map +1 -1
- package/dist/migration/index.d.ts +4 -0
- package/dist/migration/index.d.ts.map +1 -1
- package/dist/migration/index.js +8 -8
- package/dist/migration/index.js.map +1 -1
- package/dist/migration/logger.d.ts.map +1 -1
- package/dist/migration/logger.js +5 -5
- package/dist/migration/logger.js.map +1 -1
- package/dist/migration/migration-analyzer.d.ts +3 -0
- package/dist/migration/migration-analyzer.d.ts.map +1 -1
- package/dist/migration/migration-analyzer.js +25 -20
- package/dist/migration/migration-analyzer.js.map +1 -1
- package/dist/migration/migration-runner.d.ts.map +1 -1
- package/dist/migration/migration-runner.js +35 -29
- package/dist/migration/migration-runner.js.map +1 -1
- package/dist/migration/migration-validator.d.ts +3 -0
- package/dist/migration/migration-validator.d.ts.map +1 -1
- package/dist/migration/migration-validator.js +22 -26
- package/dist/migration/migration-validator.js.map +1 -1
- package/dist/migration/progress-reporter.d.ts +3 -0
- package/dist/migration/progress-reporter.d.ts.map +1 -1
- package/dist/migration/progress-reporter.js +8 -8
- package/dist/migration/progress-reporter.js.map +1 -1
- package/dist/migration/rollback-manager.d.ts +3 -0
- package/dist/migration/rollback-manager.d.ts.map +1 -1
- package/dist/migration/rollback-manager.js +29 -26
- package/dist/migration/rollback-manager.js.map +1 -1
- package/dist/monitoring/diagnostics.d.ts.map +1 -1
- package/dist/monitoring/diagnostics.js +49 -37
- package/dist/monitoring/diagnostics.js.map +1 -1
- package/dist/monitoring/health-check.d.ts.map +1 -1
- package/dist/monitoring/health-check.js +24 -25
- package/dist/monitoring/health-check.js.map +1 -1
- package/dist/monitoring/real-time-monitor.d.ts.map +1 -1
- package/dist/monitoring/real-time-monitor.js +71 -58
- package/dist/monitoring/real-time-monitor.js.map +1 -1
- package/dist/resources/resource-manager.d.ts.map +1 -1
- package/dist/resources/resource-manager.js +96 -83
- package/dist/resources/resource-manager.js.map +1 -1
- package/dist/swarm/claude-flow-executor.d.ts.map +1 -1
- package/dist/swarm/claude-flow-executor.js +37 -31
- package/dist/swarm/claude-flow-executor.js.map +1 -1
- package/dist/swarm/coordinator.d.ts.map +1 -1
- package/dist/swarm/coordinator.js +330 -280
- package/dist/swarm/coordinator.js.map +1 -1
- package/dist/swarm/direct-executor.d.ts.map +1 -1
- package/dist/swarm/direct-executor.js +44 -37
- package/dist/swarm/direct-executor.js.map +1 -1
- package/dist/swarm/executor-v2.d.ts.map +1 -1
- package/dist/swarm/executor-v2.js +28 -27
- package/dist/swarm/executor-v2.js.map +1 -1
- package/dist/swarm/executor.d.ts +3 -0
- package/dist/swarm/executor.d.ts.map +1 -1
- package/dist/swarm/executor.js +58 -52
- package/dist/swarm/executor.js.map +1 -1
- package/dist/swarm/index.d.ts.map +1 -1
- package/dist/swarm/index.js +2 -2
- package/dist/swarm/index.js.map +1 -1
- package/dist/swarm/json-output-aggregator.d.ts.map +1 -1
- package/dist/swarm/json-output-aggregator.js +20 -19
- package/dist/swarm/json-output-aggregator.js.map +1 -1
- package/dist/swarm/memory.d.ts.map +1 -1
- package/dist/swarm/memory.js +67 -67
- package/dist/swarm/memory.js.map +1 -1
- package/dist/swarm/optimizations/async-file-manager.d.ts +4 -0
- package/dist/swarm/optimizations/async-file-manager.d.ts.map +1 -1
- package/dist/swarm/optimizations/async-file-manager.js +19 -23
- package/dist/swarm/optimizations/async-file-manager.js.map +1 -1
- package/dist/swarm/optimizations/circular-buffer.d.ts.map +1 -1
- package/dist/swarm/optimizations/circular-buffer.js +2 -4
- package/dist/swarm/optimizations/circular-buffer.js.map +1 -1
- package/dist/swarm/optimizations/connection-pool.d.ts.map +1 -1
- package/dist/swarm/optimizations/connection-pool.js +12 -13
- package/dist/swarm/optimizations/connection-pool.js.map +1 -1
- package/dist/swarm/optimizations/index.js +2 -2
- package/dist/swarm/optimizations/optimized-executor.d.ts.map +1 -1
- package/dist/swarm/optimizations/optimized-executor.js +23 -29
- package/dist/swarm/optimizations/optimized-executor.js.map +1 -1
- package/dist/swarm/optimizations/ttl-map.d.ts.map +1 -1
- package/dist/swarm/optimizations/ttl-map.js +4 -4
- package/dist/swarm/optimizations/ttl-map.js.map +1 -1
- package/dist/swarm/prompt-cli.d.ts.map +1 -1
- package/dist/swarm/prompt-cli.js +18 -13
- package/dist/swarm/prompt-cli.js.map +1 -1
- package/dist/swarm/prompt-copier-enhanced.d.ts.map +1 -1
- package/dist/swarm/prompt-copier-enhanced.js +12 -12
- package/dist/swarm/prompt-copier-enhanced.js.map +1 -1
- package/dist/swarm/prompt-copier.d.ts.map +1 -1
- package/dist/swarm/prompt-copier.js +15 -18
- package/dist/swarm/prompt-copier.js.map +1 -1
- package/dist/swarm/prompt-manager.d.ts.map +1 -1
- package/dist/swarm/prompt-manager.js +27 -21
- package/dist/swarm/prompt-manager.js.map +1 -1
- package/dist/swarm/prompt-utils.d.ts.map +1 -1
- package/dist/swarm/prompt-utils.js +34 -32
- package/dist/swarm/prompt-utils.js.map +1 -1
- package/dist/swarm/sparc-executor.d.ts.map +1 -1
- package/dist/swarm/sparc-executor.js +189 -123
- package/dist/swarm/sparc-executor.js.map +1 -1
- package/dist/swarm/strategies/auto.d.ts.map +1 -1
- package/dist/swarm/strategies/auto.js +105 -86
- package/dist/swarm/strategies/auto.js.map +1 -1
- package/dist/swarm/strategies/base.d.ts.map +1 -1
- package/dist/swarm/strategies/base.js +14 -11
- package/dist/swarm/strategies/base.js.map +1 -1
- package/dist/swarm/strategies/research.d.ts.map +1 -1
- package/dist/swarm/strategies/research.js +76 -71
- package/dist/swarm/strategies/research.js.map +1 -1
- package/dist/swarm/types.d.ts.map +1 -1
- package/dist/swarm/types.js +3 -0
- package/dist/swarm/types.js.map +1 -1
- package/dist/swarm/workers/copy-worker.js +4 -4
- package/dist/swarm/workers/copy-worker.js.map +1 -1
- package/dist/task/commands.d.ts.map +1 -1
- package/dist/task/commands.js +11 -7
- package/dist/task/commands.js.map +1 -1
- package/dist/task/coordination.d.ts.map +1 -1
- package/dist/task/coordination.js +75 -70
- package/dist/task/coordination.js.map +1 -1
- package/dist/task/engine.d.ts.map +1 -1
- package/dist/task/engine.js +34 -32
- package/dist/task/engine.js.map +1 -1
- package/dist/task/index.d.ts +3 -3
- package/dist/task/index.d.ts.map +1 -1
- package/dist/task/index.js +11 -11
- package/dist/task/index.js.map +1 -1
- package/dist/terminal/adapters/native.d.ts.map +1 -1
- package/dist/terminal/adapters/native.js +6 -6
- package/dist/terminal/adapters/native.js.map +1 -1
- package/dist/terminal/adapters/vscode.d.ts +3 -0
- package/dist/terminal/adapters/vscode.d.ts.map +1 -1
- package/dist/terminal/adapters/vscode.js +6 -4
- package/dist/terminal/adapters/vscode.js.map +1 -1
- package/dist/terminal/manager.d.ts.map +1 -1
- package/dist/terminal/manager.js +6 -8
- package/dist/terminal/manager.js.map +1 -1
- package/dist/terminal/pool.d.ts.map +1 -1
- package/dist/terminal/pool.js +3 -0
- package/dist/terminal/pool.js.map +1 -1
- package/dist/terminal/session.d.ts.map +1 -1
- package/dist/terminal/session.js +6 -2
- package/dist/terminal/session.js.map +1 -1
- package/dist/ui/hive-dashboard.d.ts.map +1 -1
- package/dist/ui/hive-dashboard.js +52 -33
- package/dist/ui/hive-dashboard.js.map +1 -1
- package/dist/utils/error-handler.d.ts.map +1 -1
- package/dist/utils/error-handler.js +1 -1
- package/dist/utils/error-handler.js.map +1 -1
- package/dist/utils/errors.d.ts.map +1 -1
- package/dist/utils/errors.js.map +1 -1
- package/dist/utils/helpers.d.ts +3 -0
- package/dist/utils/helpers.d.ts.map +1 -1
- package/dist/utils/helpers.js +5 -8
- package/dist/utils/helpers.js.map +1 -1
- package/dist/utils/npx-isolated-cache.js +3 -3
- package/dist/utils/npx-isolated-cache.js.map +1 -1
- package/dist/utils/paths.d.ts.map +1 -1
- package/dist/utils/paths.js +8 -4
- package/dist/utils/paths.js.map +1 -1
- package/dist/utils/type-guards.d.ts +1 -1
- package/dist/utils/type-guards.d.ts.map +1 -1
- package/dist/utils/type-guards.js +11 -10
- package/dist/utils/type-guards.js.map +1 -1
- package/package.json +7 -6
- package/src/adapters/cliffy-node.ts +27 -22
- package/src/agents/agent-manager.ts +145 -121
- package/src/agents/agent-registry.ts +77 -70
- package/src/api/claude-api-errors.ts +248 -0
- package/src/api/claude-client-enhanced.ts +616 -0
- package/src/api/claude-client.ts +338 -49
- package/src/api/routes/analysis.js +750 -735
- package/src/cli/__tests__/command-registry.test.js +42 -32
- package/src/cli/__tests__/simple-cli.test.js +42 -37
- package/src/cli/__tests__/utils.test.js +9 -9
- package/src/cli/agents/README.md +30 -4
- package/src/cli/agents/analyst.ts +161 -163
- package/src/cli/agents/architect.ts +126 -131
- package/src/cli/agents/base-agent.ts +48 -47
- package/src/cli/agents/capabilities.ts +87 -85
- package/src/cli/agents/coder.ts +127 -120
- package/src/cli/agents/coordinator.ts +72 -72
- package/src/cli/agents/hive-agents.ts +96 -70
- package/src/cli/agents/index.ts +70 -55
- package/src/cli/agents/researcher.ts +63 -74
- package/src/cli/agents/tester.ts +91 -98
- package/src/cli/cli-core.ts +56 -47
- package/src/cli/command-registry.js +82 -83
- package/src/cli/commands/advanced-memory-commands.ts +210 -142
- package/src/cli/commands/agent-simple.ts +146 -114
- package/src/cli/commands/agent.ts +119 -95
- package/src/cli/commands/claude-api.ts +19 -15
- package/src/cli/commands/claude.ts +96 -88
- package/src/cli/commands/config-integration.ts +120 -101
- package/src/cli/commands/config.ts +10 -8
- package/src/cli/commands/enterprise.ts +323 -187
- package/src/cli/commands/help-new.ts +57 -55
- package/src/cli/commands/help.ts +162 -159
- package/src/cli/commands/hive-mind/index.ts +3 -3
- package/src/cli/commands/hive-mind/init.ts +19 -12
- package/src/cli/commands/hive-mind/optimize-memory.ts +83 -53
- package/src/cli/commands/hive-mind/pause.ts +27 -25
- package/src/cli/commands/hive-mind/ps.ts +43 -37
- package/src/cli/commands/hive-mind/resume.ts +26 -26
- package/src/cli/commands/hive-mind/spawn.ts +37 -29
- package/src/cli/commands/hive-mind/status.ts +51 -51
- package/src/cli/commands/hive-mind/stop.ts +56 -51
- package/src/cli/commands/hive-mind/task.ts +65 -54
- package/src/cli/commands/hive-mind/wizard.ts +181 -167
- package/src/cli/commands/hive.ts +136 -96
- package/src/cli/commands/hook-types.ts +2 -2
- package/src/cli/commands/hook-validator.ts +8 -4
- package/src/cli/commands/hook.ts +44 -42
- package/src/cli/commands/index.ts +1162 -1031
- package/src/cli/commands/mcp.ts +105 -94
- package/src/cli/commands/memory.ts +24 -21
- package/src/cli/commands/migrate.ts +24 -24
- package/src/cli/commands/monitor.ts +123 -93
- package/src/cli/commands/ruv-swarm.ts +131 -122
- package/src/cli/commands/session.ts +60 -45
- package/src/cli/commands/sparc.ts +170 -139
- package/src/cli/commands/start/event-emitter.ts +2 -2
- package/src/cli/commands/start/index.ts +1 -1
- package/src/cli/commands/start/process-manager.ts +30 -47
- package/src/cli/commands/start/process-ui-simple.ts +60 -49
- package/src/cli/commands/start/process-ui.ts +1 -1
- package/src/cli/commands/start/start-command.ts +104 -75
- package/src/cli/commands/start/system-monitor.ts +35 -41
- package/src/cli/commands/start/types.ts +3 -3
- package/src/cli/commands/start.ts +1 -1
- package/src/cli/commands/status.ts +67 -67
- package/src/cli/commands/swarm-spawn.ts +21 -12
- package/src/cli/commands/swarm.ts +221 -150
- package/src/cli/commands/task.ts +55 -55
- package/src/cli/commands/workflow.ts +174 -157
- package/src/cli/completion.ts +34 -19
- package/src/cli/create-enhanced-task.js +49 -17
- package/src/cli/formatter.ts +38 -37
- package/src/cli/help-formatter.js +23 -33
- package/src/cli/help-formatter.ts +24 -34
- package/src/cli/help-text.js +71 -61
- package/src/cli/index-remote.ts +12 -9
- package/src/cli/index.ts +77 -67
- package/src/cli/init/batch-tools.ts +4 -5
- package/src/cli/init/claude-config.ts +125 -118
- package/src/cli/init/directory-structure.ts +10 -11
- package/src/cli/init/index.ts +13 -13
- package/src/cli/init/sparc-environment.ts +90 -74
- package/src/cli/init/swarm-commands.ts +5 -6
- package/src/cli/init/utils.ts +1 -1
- package/src/cli/main.ts +9 -10
- package/src/cli/node-compat.js +26 -19
- package/src/cli/node-repl.ts +104 -87
- package/src/cli/repl.ts +190 -158
- package/src/cli/runtime-detector.js +24 -19
- package/src/cli/simple-cli.js +460 -385
- package/src/cli/simple-cli.ts +426 -366
- package/src/cli/simple-commands/__tests__/agent.test.js +49 -55
- package/src/cli/simple-commands/__tests__/memory.test.js +4 -401
- package/src/cli/simple-commands/__tests__/swarm.test.js +49 -55
- package/src/cli/simple-commands/__tests__/task.test.js +4 -478
- package/src/cli/simple-commands/agent.js +27 -27
- package/src/cli/simple-commands/analysis.js +179 -161
- package/src/cli/simple-commands/automation.js +226 -205
- package/src/cli/simple-commands/batch-manager.js +98 -88
- package/src/cli/simple-commands/config.js +65 -60
- package/src/cli/simple-commands/coordination.js +220 -184
- package/src/cli/simple-commands/enhanced-ui-views.js +142 -115
- package/src/cli/simple-commands/enhanced-webui-complete.js +267 -167
- package/src/cli/simple-commands/fix-hook-variables.js +73 -67
- package/src/cli/simple-commands/github/gh-coordinator.js +63 -53
- package/src/cli/simple-commands/github/github-api.js +45 -47
- package/src/cli/simple-commands/github.js +33 -34
- package/src/cli/simple-commands/hive-mind/auto-save-middleware.js +50 -46
- package/src/cli/simple-commands/hive-mind/communication.js +198 -185
- package/src/cli/simple-commands/hive-mind/core.js +289 -304
- package/src/cli/simple-commands/hive-mind/db-optimizer.js +278 -168
- package/src/cli/simple-commands/hive-mind/mcp-wrapper.js +676 -263
- package/src/cli/simple-commands/hive-mind/memory.js +356 -287
- package/src/cli/simple-commands/hive-mind/performance-optimizer.js +88 -79
- package/src/cli/simple-commands/hive-mind/performance-test.js +61 -49
- package/src/cli/simple-commands/hive-mind/queen.js +223 -213
- package/src/cli/simple-commands/hive-mind/session-manager.js +522 -240
- package/src/cli/simple-commands/hive-mind-optimize.js +69 -65
- package/src/cli/simple-commands/hive-mind-wizard.js +213 -211
- package/src/cli/simple-commands/hive-mind.js +790 -443
- package/src/cli/simple-commands/hive.js +12 -12
- package/src/cli/simple-commands/hook-safety.js +114 -111
- package/src/cli/simple-commands/hooks.js +1077 -1017
- package/src/cli/simple-commands/init/README.md +8 -1
- package/src/cli/simple-commands/init/VALIDATION_ROLLBACK.md +27 -1
- package/src/cli/simple-commands/init/batch-init.js +105 -100
- package/src/cli/simple-commands/init/claude-commands/claude-flow-commands.js +6 -6
- package/src/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.js +6 -6
- package/src/cli/simple-commands/init/claude-commands/optimized-slash-commands.js +64 -37
- package/src/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js +85 -71
- package/src/cli/simple-commands/init/claude-commands/slash-commands.js +40 -19
- package/src/cli/simple-commands/init/claude-commands/sparc-commands.js +149 -63
- package/src/cli/simple-commands/init/copy-revised-templates.js +175 -0
- package/src/cli/simple-commands/init/executable-wrapper.js +13 -10
- package/src/cli/simple-commands/init/gitignore-updater.js +22 -22
- package/src/cli/simple-commands/init/help.js +4 -2
- package/src/cli/simple-commands/init/index.js +451 -428
- package/src/cli/simple-commands/init/performance-monitor.js +71 -64
- package/src/cli/simple-commands/init/rollback/backup-manager.js +44 -64
- package/src/cli/simple-commands/init/rollback/index.js +31 -39
- package/src/cli/simple-commands/init/rollback/recovery-manager.js +71 -101
- package/src/cli/simple-commands/init/rollback/rollback-executor.js +34 -53
- package/src/cli/simple-commands/init/rollback/state-tracker.js +38 -49
- package/src/cli/simple-commands/init/sparc/roo-readme.js +1 -1
- package/src/cli/simple-commands/init/sparc/roomodes-config.js +99 -77
- package/src/cli/simple-commands/init/sparc/workflows.js +37 -33
- package/src/cli/simple-commands/init/sparc-structure.js +9 -10
- package/src/cli/simple-commands/init/template-copier.js +583 -0
- package/src/cli/simple-commands/init/templates/CLAUDE.md +94 -26
- package/src/cli/simple-commands/init/templates/claude-flow-universal +9 -7
- package/src/cli/simple-commands/init/templates/claude-md.js +1 -1
- package/src/cli/simple-commands/init/templates/commands/analysis/bottleneck-detect.md +15 -3
- package/src/cli/simple-commands/init/templates/commands/automation/auto-agent.md +12 -2
- package/src/cli/simple-commands/init/templates/commands/coordination/swarm-init.md +10 -1
- package/src/cli/simple-commands/init/templates/commands/github/github-swarm.md +18 -5
- package/src/cli/simple-commands/init/templates/commands/hooks/notification.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/post-command.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/post-edit.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/post-task.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/pre-command.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/pre-edit.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/pre-search.md +13 -6
- package/src/cli/simple-commands/init/templates/commands/hooks/pre-task.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/session-end.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/session-restore.md +13 -5
- package/src/cli/simple-commands/init/templates/commands/hooks/session-start.md +12 -1
- package/src/cli/simple-commands/init/templates/coordination-md.js +1 -1
- package/src/cli/simple-commands/init/templates/coordination.md +16 -0
- package/src/cli/simple-commands/init/templates/enhanced-templates.js +116 -113
- package/src/cli/simple-commands/init/templates/memory-bank-md.js +1 -1
- package/src/cli/simple-commands/init/templates/memory-bank.md +16 -0
- package/src/cli/simple-commands/init/templates/readme-files.js +1 -1
- package/src/cli/simple-commands/init/templates/safe-hook-patterns.js +176 -127
- package/src/cli/simple-commands/init/templates/settings.json +2 -5
- package/src/cli/simple-commands/init/templates/settings.json.enhanced +35 -0
- package/src/cli/simple-commands/init/templates/sparc-modes.js +637 -26
- package/src/cli/simple-commands/init/validation/config-validator.js +17 -28
- package/src/cli/simple-commands/init/validation/health-checker.js +54 -62
- package/src/cli/simple-commands/init/validation/index.js +18 -23
- package/src/cli/simple-commands/init/validation/mode-validator.js +22 -32
- package/src/cli/simple-commands/init/validation/post-init-validator.js +25 -26
- package/src/cli/simple-commands/init/validation/pre-init-validator.js +32 -36
- package/src/cli/simple-commands/init/validation/test-runner.js +55 -63
- package/src/cli/simple-commands/init.js +1 -1
- package/src/cli/simple-commands/mcp-integration-layer.js +179 -110
- package/src/cli/simple-commands/mcp.js +55 -48
- package/src/cli/simple-commands/memory.js +62 -56
- package/src/cli/simple-commands/migrate-hooks.js +9 -10
- package/src/cli/simple-commands/monitor.js +87 -67
- package/src/cli/simple-commands/process-ui-enhanced.js +207 -155
- package/src/cli/simple-commands/process-ui.js +65 -56
- package/src/cli/simple-commands/realtime-update-system.js +136 -129
- package/src/cli/simple-commands/sparc/architecture.js +352 -251
- package/src/cli/simple-commands/sparc/commands.js +122 -94
- package/src/cli/simple-commands/sparc/completion.js +274 -199
- package/src/cli/simple-commands/sparc/coordinator.js +217 -169
- package/src/cli/simple-commands/sparc/index.js +40 -36
- package/src/cli/simple-commands/sparc/phase-base.js +72 -58
- package/src/cli/simple-commands/sparc/pseudocode.js +275 -159
- package/src/cli/simple-commands/sparc/refinement.js +306 -212
- package/src/cli/simple-commands/sparc/specification.js +164 -94
- package/src/cli/simple-commands/sparc-modes/architect.js +1 -1
- package/src/cli/simple-commands/sparc-modes/ask.js +1 -1
- package/src/cli/simple-commands/sparc-modes/code.js +1 -1
- package/src/cli/simple-commands/sparc-modes/debug.js +1 -1
- package/src/cli/simple-commands/sparc-modes/devops.js +1 -1
- package/src/cli/simple-commands/sparc-modes/docs-writer.js +1 -1
- package/src/cli/simple-commands/sparc-modes/generic.js +1 -1
- package/src/cli/simple-commands/sparc-modes/index.js +15 -15
- package/src/cli/simple-commands/sparc-modes/integration.js +1 -1
- package/src/cli/simple-commands/sparc-modes/mcp.js +1 -1
- package/src/cli/simple-commands/sparc-modes/monitoring.js +1 -1
- package/src/cli/simple-commands/sparc-modes/optimization.js +1 -1
- package/src/cli/simple-commands/sparc-modes/security-review.js +1 -1
- package/src/cli/simple-commands/sparc-modes/sparc-orchestrator.js +1 -1
- package/src/cli/simple-commands/sparc-modes/spec-pseudocode.js +1 -1
- package/src/cli/simple-commands/sparc-modes/supabase-admin.js +1 -1
- package/src/cli/simple-commands/sparc-modes/swarm.js +52 -52
- package/src/cli/simple-commands/sparc-modes/tdd.js +1 -1
- package/src/cli/simple-commands/sparc-modes/tutorial.js +1 -1
- package/src/cli/simple-commands/sparc.js +87 -69
- package/src/cli/simple-commands/start-ui.js +21 -20
- package/src/cli/simple-commands/start-wrapper.js +29 -31
- package/src/cli/simple-commands/start.js +1 -1
- package/src/cli/simple-commands/status.js +53 -47
- package/src/cli/simple-commands/swarm-executor.js +47 -57
- package/src/cli/simple-commands/swarm-metrics-integration.js +119 -79
- package/src/cli/simple-commands/swarm-ui.js +120 -118
- package/src/cli/simple-commands/swarm-webui-integration.js +48 -27
- package/src/cli/simple-commands/swarm.js +216 -181
- package/src/cli/simple-commands/task.js +29 -29
- package/src/cli/simple-commands/timestamp-fix.js +28 -25
- package/src/cli/simple-commands/tool-execution-framework.js +115 -118
- package/src/cli/simple-commands/training.js +219 -194
- package/src/cli/simple-commands/web-server.js +118 -117
- package/src/cli/simple-commands/webui-validator.js +4 -3
- package/src/cli/simple-mcp.ts +14 -17
- package/src/cli/simple-orchestrator.ts +113 -101
- package/src/cli/swarm-standalone.js +20 -21
- package/src/cli/ui/compatible-ui.ts +55 -44
- package/src/cli/ui/fallback-handler.ts +19 -16
- package/src/cli/ui/index.ts +14 -15
- package/src/cli/utils/environment-detector.ts +75 -67
- package/src/cli/utils/interactive-detector.js +17 -11
- package/src/cli/utils/prompt-defaults.ts +32 -28
- package/src/cli/utils/safe-interactive.js +21 -20
- package/src/cli/utils.js +127 -110
- package/src/cli/validation-helper.js +16 -21
- package/src/cli/validation-helper.ts +21 -34
- package/src/communication/message-bus.ts +137 -124
- package/src/config/config-manager.ts +62 -30
- package/src/config/ruv-swarm-config.ts +105 -86
- package/src/config/ruv-swarm-integration.ts +38 -38
- package/src/constants/agent-types.ts +9 -8
- package/src/coordination/README.md +54 -31
- package/src/coordination/advanced-scheduler.ts +23 -26
- package/src/coordination/advanced-task-executor.ts +74 -68
- package/src/coordination/background-executor.ts +33 -30
- package/src/coordination/circuit-breaker.ts +26 -27
- package/src/coordination/conflict-resolution.ts +18 -27
- package/src/coordination/dependency-graph.ts +15 -18
- package/src/coordination/hive-orchestrator.ts +111 -81
- package/src/coordination/hive-protocol.ts +68 -77
- package/src/coordination/index.ts +3 -7
- package/src/coordination/load-balancer.ts +115 -105
- package/src/coordination/manager.ts +38 -51
- package/src/coordination/messaging.ts +19 -29
- package/src/coordination/metrics.ts +57 -60
- package/src/coordination/resources.ts +32 -37
- package/src/coordination/scheduler.ts +29 -30
- package/src/coordination/swarm-coordinator.ts +81 -70
- package/src/coordination/swarm-monitor.ts +90 -69
- package/src/coordination/work-stealing.ts +6 -13
- package/src/core/config.ts +148 -143
- package/src/core/event-bus.ts +5 -6
- package/src/core/json-persistence.ts +27 -34
- package/src/core/logger.ts +13 -16
- package/src/core/orchestrator-fixed.ts +33 -32
- package/src/core/orchestrator.ts +166 -159
- package/src/core/persistence.ts +47 -36
- package/src/enterprise/analytics-manager.ts +242 -233
- package/src/enterprise/audit-manager.ts +238 -184
- package/src/enterprise/cloud-manager.ts +167 -151
- package/src/enterprise/deployment-manager.ts +223 -180
- package/src/enterprise/index.ts +7 -7
- package/src/enterprise/project-manager.ts +151 -133
- package/src/enterprise/security-manager.ts +278 -223
- package/src/hive-mind/core/Agent.ts +112 -109
- package/src/hive-mind/core/Communication.ts +67 -69
- package/src/hive-mind/core/DatabaseManager.ts +371 -179
- package/src/hive-mind/core/HiveMind.ts +100 -96
- package/src/hive-mind/core/Memory.ts +304 -295
- package/src/hive-mind/core/MemoryMonitor.ts +46 -47
- package/src/hive-mind/core/Queen.ts +187 -114
- package/src/hive-mind/index.ts +2 -2
- package/src/hive-mind/integration/ConsensusEngine.ts +88 -92
- package/src/hive-mind/integration/MCPToolWrapper.ts +20 -72
- package/src/hive-mind/integration/SwarmOrchestrator.ts +173 -165
- package/src/hive-mind/types.ts +24 -12
- package/src/integration/mock-components.ts +42 -30
- package/src/integration/system-integration.ts +79 -78
- package/src/integration/types.ts +7 -7
- package/src/mcp/README.md +23 -4
- package/src/mcp/auth.ts +25 -18
- package/src/mcp/claude-code-wrapper.ts +257 -150
- package/src/mcp/claude-flow-tools.ts +52 -13
- package/src/mcp/client.ts +15 -13
- package/src/mcp/index.ts +22 -27
- package/src/mcp/integrate-wrapper.ts +18 -18
- package/src/mcp/lifecycle-manager.ts +30 -27
- package/src/mcp/load-balancer.ts +10 -11
- package/src/mcp/mcp-server.js +662 -351
- package/src/mcp/orchestration-integration.ts +32 -17
- package/src/mcp/performance-monitor.ts +65 -51
- package/src/mcp/protocol-manager.ts +36 -52
- package/src/mcp/recovery/connection-health-monitor.ts +40 -35
- package/src/mcp/recovery/connection-state-manager.ts +52 -50
- package/src/mcp/recovery/fallback-coordinator.ts +24 -24
- package/src/mcp/recovery/index.ts +23 -4
- package/src/mcp/recovery/reconnection-manager.ts +14 -15
- package/src/mcp/recovery/recovery-manager.ts +52 -68
- package/src/mcp/router.ts +1 -2
- package/src/mcp/ruv-swarm-tools.ts +167 -138
- package/src/mcp/ruv-swarm-wrapper.js +31 -23
- package/src/mcp/server-with-wrapper.ts +4 -5
- package/src/mcp/server-wrapper-mode.ts +5 -6
- package/src/mcp/server.ts +45 -40
- package/src/mcp/session-manager.ts +8 -11
- package/src/mcp/sparc-modes.ts +29 -28
- package/src/mcp/swarm-tools.ts +131 -114
- package/src/mcp/tests/mcp-integration.test.ts +49 -55
- package/src/mcp/tools.ts +53 -38
- package/src/mcp/transports/base.ts +4 -5
- package/src/mcp/transports/http.ts +45 -42
- package/src/mcp/transports/stdio.ts +9 -12
- package/src/memory/README.md +37 -27
- package/src/memory/advanced-memory-manager.ts +336 -279
- package/src/memory/backends/base.ts +4 -5
- package/src/memory/backends/markdown.ts +16 -22
- package/src/memory/backends/sqlite.ts +40 -18
- package/src/memory/cache.ts +18 -18
- package/src/memory/distributed-memory.ts +84 -92
- package/src/memory/enhanced-examples.js +68 -59
- package/src/memory/enhanced-memory.js +99 -80
- package/src/memory/fallback-store.js +49 -8
- package/src/memory/in-memory-store.js +31 -27
- package/src/memory/index.js +4 -4
- package/src/memory/indexer.ts +6 -10
- package/src/memory/manager.ts +45 -59
- package/src/memory/migration.js +107 -90
- package/src/memory/shared-memory.js +155 -157
- package/src/memory/sqlite-store.js +78 -62
- package/src/memory/sqlite-wrapper.js +173 -0
- package/src/memory/swarm-memory.js +138 -131
- package/src/memory/swarm-memory.ts +74 -75
- package/src/memory/test-example.js +28 -30
- package/src/migration/README.md +25 -9
- package/src/migration/index.ts +13 -14
- package/src/migration/logger.ts +9 -7
- package/src/migration/migration-analyzer.ts +66 -52
- package/src/migration/migration-manifest.json +2 -6
- package/src/migration/migration-runner.ts +86 -63
- package/src/migration/migration-validator.ts +93 -68
- package/src/migration/package.json +1 -1
- package/src/migration/progress-reporter.ts +25 -21
- package/src/migration/rollback-manager.ts +79 -63
- package/src/migration/tests/migration-system.test.ts +4 -491
- package/src/migration/tsconfig.json +3 -10
- package/src/migration/types.ts +1 -1
- package/src/monitoring/diagnostics.ts +123 -97
- package/src/monitoring/health-check.ts +45 -51
- package/src/monitoring/real-time-monitor.ts +105 -92
- package/src/resources/resource-manager.ts +205 -159
- package/src/swarm/__tests__/integration.test.ts +59 -65
- package/src/swarm/__tests__/prompt-copier.test.ts +27 -27
- package/src/swarm/claude-flow-executor.ts +50 -49
- package/src/swarm/coordinator.ts +727 -635
- package/src/swarm/direct-executor.ts +80 -86
- package/src/swarm/executor-v2.ts +81 -66
- package/src/swarm/executor.ts +124 -124
- package/src/swarm/index.ts +7 -8
- package/src/swarm/json-output-aggregator.ts +56 -40
- package/src/swarm/memory.ts +152 -147
- package/src/swarm/optimizations/README.md +20 -12
- package/src/swarm/optimizations/__tests__/optimization.test.ts +84 -87
- package/src/swarm/optimizations/async-file-manager.ts +70 -80
- package/src/swarm/optimizations/circular-buffer.ts +37 -37
- package/src/swarm/optimizations/connection-pool.ts +64 -64
- package/src/swarm/optimizations/index.ts +4 -4
- package/src/swarm/optimizations/migration-guide.md +27 -16
- package/src/swarm/optimizations/optimized-executor.ts +104 -114
- package/src/swarm/optimizations/ttl-map.ts +66 -63
- package/src/swarm/prompt-cli.ts +48 -42
- package/src/swarm/prompt-copier-enhanced.ts +54 -55
- package/src/swarm/prompt-copier.ts +59 -65
- package/src/swarm/prompt-copying-README.md +49 -33
- package/src/swarm/prompt-manager.ts +69 -63
- package/src/swarm/prompt-utils.ts +71 -66
- package/src/swarm/sparc-executor.ts +298 -225
- package/src/swarm/strategies/auto.ts +367 -252
- package/src/swarm/strategies/base.ts +24 -20
- package/src/swarm/strategies/research.ts +144 -124
- package/src/swarm/types.ts +340 -309
- package/src/swarm/workers/copy-worker.ts +12 -13
- package/src/task/README.md +99 -70
- package/src/task/commands.ts +16 -8
- package/src/task/coordination.ts +209 -162
- package/src/task/engine.ts +81 -65
- package/src/task/index.ts +28 -31
- package/src/templates/claude-optimized/.claude/BATCHTOOLS_BEST_PRACTICES.md +479 -481
- package/src/templates/claude-optimized/.claude/BATCHTOOLS_GUIDE.md +210 -188
- package/src/templates/claude-optimized/.claude/MIGRATION_GUIDE.md +151 -105
- package/src/templates/claude-optimized/.claude/PERFORMANCE_BENCHMARKS.md +102 -87
- package/src/templates/claude-optimized/.claude/commands/claude-flow-help.md +18 -1
- package/src/templates/claude-optimized/.claude/commands/claude-flow-memory.md +17 -1
- package/src/templates/claude-optimized/.claude/commands/claude-flow-swarm.md +21 -1
- package/src/templates/claude-optimized/.claude/commands/sparc/architect.md +11 -4
- package/src/templates/claude-optimized/.claude/commands/sparc/ask.md +16 -10
- package/src/templates/claude-optimized/.claude/commands/sparc/code.md +26 -7
- package/src/templates/claude-optimized/.claude/commands/sparc/debug.md +14 -4
- package/src/templates/claude-optimized/.claude/commands/sparc/devops.md +23 -10
- package/src/templates/claude-optimized/.claude/commands/sparc/docs-writer.md +8 -4
- package/src/templates/claude-optimized/.claude/commands/sparc/integration.md +43 -27
- package/src/templates/claude-optimized/.claude/commands/sparc/mcp.md +15 -1
- package/src/templates/claude-optimized/.claude/commands/sparc/post-deployment-monitoring-mode.md +45 -30
- package/src/templates/claude-optimized/.claude/commands/sparc/refinement-optimization-mode.md +23 -13
- package/src/templates/claude-optimized/.claude/commands/sparc/security-review.md +31 -17
- package/src/templates/claude-optimized/.claude/commands/sparc/sparc.md +54 -47
- package/src/templates/claude-optimized/.claude/commands/sparc/spec-pseudocode.md +27 -17
- package/src/templates/claude-optimized/.claude/commands/sparc/supabase-admin.md +18 -4
- package/src/templates/claude-optimized/.claude/commands/sparc/tdd.md +23 -9
- package/src/templates/claude-optimized/.claude/commands/sparc/tutorial.md +22 -16
- package/src/templates/claude-optimized/.claude/commands/sparc.md +20 -1
- package/src/templates/claude-optimized/README.md +10 -1
- package/src/templates/claude-optimized/SUMMARY.md +23 -1
- package/src/templates/claude-optimized/deploy-to-project.js +22 -10
- package/src/templates/claude-optimized/install-template.js +14 -10
- package/src/templates/claude-optimized/manifest.json +1 -1
- package/src/templates/claude-optimized/package.json +1 -1
- package/src/templates/claude-optimized/template-manager.js +8 -8
- package/src/templates/claude-optimized/validate-template.js +33 -23
- package/src/terminal/adapters/base.ts +1 -1
- package/src/terminal/adapters/native.ts +47 -47
- package/src/terminal/adapters/vscode.ts +21 -28
- package/src/terminal/manager.ts +27 -22
- package/src/terminal/pool.ts +24 -27
- package/src/terminal/session.ts +18 -18
- package/src/terminal/vscode-bridge.ts +21 -21
- package/src/tests/validation-consistency.test.ts +4 -4
- package/src/types/cliffy.d.ts +11 -14
- package/src/types/global.d.ts +1 -2
- package/src/types/index.ts +2 -2
- package/src/types/mcp.d.ts +11 -17
- package/src/types/vscode.d.ts +18 -5
- package/src/ui/console/README-analysis-tools.md +52 -2
- package/src/ui/console/README.md +33 -1
- package/src/ui/console/WORKFLOW_DESIGNER_README.md +81 -22
- package/src/ui/console/analysis-tools.html +282 -261
- package/src/ui/console/analytics.html +329 -326
- package/src/ui/console/index.html +221 -209
- package/src/ui/console/js/analysis-tools.js +815 -754
- package/src/ui/console/js/command-handler.js +226 -196
- package/src/ui/console/js/console.js +117 -119
- package/src/ui/console/js/daa-tools.js +797 -787
- package/src/ui/console/js/memory-interface.js +676 -638
- package/src/ui/console/js/memory-test.js +49 -46
- package/src/ui/console/js/memory-tools.js +181 -159
- package/src/ui/console/js/settings.js +124 -103
- package/src/ui/console/js/terminal-emulator.js +147 -130
- package/src/ui/console/js/websocket-client.js +71 -71
- package/src/ui/console/js/workflow-designer.js +1126 -1110
- package/src/ui/console/neural-networks-demo.md +45 -16
- package/src/ui/console/styles/analysis-tools.css +571 -561
- package/src/ui/console/styles/console.css +16 -12
- package/src/ui/console/styles/daa-tools.css +322 -319
- package/src/ui/console/styles/responsive.css +71 -70
- package/src/ui/console/styles/settings.css +12 -12
- package/src/ui/console/styles/workflow-designer.css +628 -584
- package/src/ui/console/test-neural-networks.js +59 -54
- package/src/ui/console/test-neural.html +194 -196
- package/src/ui/console/workflow-designer-demo.html +433 -424
- package/src/ui/hive-dashboard.ts +74 -52
- package/src/ui/web-ui/EnhancedProcessUI.js +570 -424
- package/src/ui/web-ui/EnhancedWebUI.js +65 -65
- package/src/ui/web-ui/README.md +16 -16
- package/src/ui/web-ui/components/ComponentLibrary.js +173 -124
- package/src/ui/web-ui/core/EventBus.js +27 -25
- package/src/ui/web-ui/core/MCPIntegrationLayer.js +294 -108
- package/src/ui/web-ui/core/StateManager.js +43 -46
- package/src/ui/web-ui/core/UIManager.js +120 -70
- package/src/ui/web-ui/core/ViewManager.js +16 -19
- package/src/ui/web-ui/index.js +101 -48
- package/src/ui/web-ui/neural-panel-test.js +109 -108
- package/src/ui/web-ui/test-github-view.js +11 -12
- package/src/ui/web-ui/test-neural-panel.html +219 -205
- package/src/ui/web-ui/views/DAAView.js +88 -85
- package/src/ui/web-ui/views/GitHubIntegrationTest.js +42 -42
- package/src/ui/web-ui/views/GitHubIntegrationView.js +59 -53
- package/src/ui/web-ui/views/NeuralNetworkView.js +20 -21
- package/src/ui/web-ui/views/WorkflowAutomationView.js +31 -32
- package/src/utils/error-handler.js +1 -1
- package/src/utils/error-handler.ts +9 -5
- package/src/utils/errors.ts +20 -18
- package/src/utils/formatters.ts +6 -6
- package/src/utils/helpers.ts +53 -55
- package/src/utils/npx-isolated-cache.js +16 -16
- package/src/utils/paths.ts +9 -6
- package/src/utils/timezone-utils.js +16 -16
- package/src/utils/type-guards.ts +37 -26
- package/src/utils/types.ts +2 -2
|
@@ -22,7 +22,7 @@ const colors = {
|
|
|
22
22
|
dim: (text) => `\x1b[2m${text}\x1b[0m`,
|
|
23
23
|
bright: (text) => `\x1b[97m${text}\x1b[0m`,
|
|
24
24
|
orange: (text) => `\x1b[38;5;208m${text}\x1b[0m`,
|
|
25
|
-
purple: (text) => `\x1b[35m${text}\x1b[0m
|
|
25
|
+
purple: (text) => `\x1b[35m${text}\x1b[0m`,
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
const PROCESSES = [
|
|
@@ -33,7 +33,7 @@ const PROCESSES = [
|
|
|
33
33
|
{ id: 'mcp-server', name: 'MCP Server', description: 'Model Context Protocol server' },
|
|
34
34
|
{ id: 'coordinator', name: 'Coordinator', description: 'Task coordination service' },
|
|
35
35
|
{ id: 'enhanced-ui', name: 'Enhanced UI', description: 'Advanced web interface system' },
|
|
36
|
-
{ id: 'neural-engine', name: 'Neural Engine', description: 'AI neural network processor' }
|
|
36
|
+
{ id: 'neural-engine', name: 'Neural Engine', description: 'AI neural network processor' },
|
|
37
37
|
];
|
|
38
38
|
|
|
39
39
|
// Enhanced view modes with new categories
|
|
@@ -51,7 +51,7 @@ const VIEWS = {
|
|
|
51
51
|
SYSTEM: 'system',
|
|
52
52
|
CLI: 'cli',
|
|
53
53
|
LOGS: 'logs',
|
|
54
|
-
HELP: 'help'
|
|
54
|
+
HELP: 'help',
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
// Tool category information
|
|
@@ -63,7 +63,7 @@ const TOOL_CATEGORIES = {
|
|
|
63
63
|
github: { icon: '🐙', name: 'GitHub Integration', count: 8, color: colors.magenta },
|
|
64
64
|
daa: { icon: '🤖', name: 'Dynamic Agents', count: 8, color: colors.purple },
|
|
65
65
|
system: { icon: '🛠️', name: 'System Utilities', count: 6, color: colors.orange },
|
|
66
|
-
cli: { icon: '⌨️', name: 'CLI Commands', count: 9, color: colors.white }
|
|
66
|
+
cli: { icon: '⌨️', name: 'CLI Commands', count: 9, color: colors.white },
|
|
67
67
|
};
|
|
68
68
|
|
|
69
69
|
export class EnhancedProcessUI {
|
|
@@ -77,7 +77,7 @@ export class EnhancedProcessUI {
|
|
|
77
77
|
this.memoryStats = {
|
|
78
78
|
totalEntries: 0,
|
|
79
79
|
totalSize: 0,
|
|
80
|
-
namespaces: []
|
|
80
|
+
namespaces: [],
|
|
81
81
|
};
|
|
82
82
|
this.logs = [];
|
|
83
83
|
this.systemStats = {
|
|
@@ -88,39 +88,39 @@ export class EnhancedProcessUI {
|
|
|
88
88
|
memoryUsage: 0,
|
|
89
89
|
cpuUsage: 0,
|
|
90
90
|
toolsAvailable: 71,
|
|
91
|
-
enhancedMode: false
|
|
91
|
+
enhancedMode: false,
|
|
92
92
|
};
|
|
93
|
-
|
|
93
|
+
|
|
94
94
|
// Enhanced UI integration
|
|
95
95
|
this.enhancedWebUI = null;
|
|
96
96
|
this.toolExecutions = new Map();
|
|
97
97
|
this.recentTools = [];
|
|
98
98
|
this.toolStats = new Map();
|
|
99
|
-
|
|
99
|
+
|
|
100
100
|
// Initialize integrations
|
|
101
101
|
this.swarmIntegration = new SwarmWebUIIntegration(this);
|
|
102
|
-
|
|
102
|
+
|
|
103
103
|
// Initialize process states
|
|
104
|
-
PROCESSES.forEach(p => {
|
|
104
|
+
PROCESSES.forEach((p) => {
|
|
105
105
|
this.processes.set(p.id, {
|
|
106
106
|
...p,
|
|
107
107
|
status: 'stopped',
|
|
108
108
|
pid: null,
|
|
109
109
|
uptime: 0,
|
|
110
110
|
cpu: Math.random() * 5,
|
|
111
|
-
memory: Math.random() * 100
|
|
111
|
+
memory: Math.random() * 100,
|
|
112
112
|
});
|
|
113
113
|
});
|
|
114
|
-
|
|
114
|
+
|
|
115
115
|
// Start system uptime counter
|
|
116
116
|
setInterval(() => {
|
|
117
117
|
this.systemStats.uptime++;
|
|
118
118
|
}, 1000);
|
|
119
|
-
|
|
119
|
+
|
|
120
120
|
// Initialize enhanced features
|
|
121
121
|
this.initializeEnhancedFeatures();
|
|
122
122
|
}
|
|
123
|
-
|
|
123
|
+
|
|
124
124
|
/**
|
|
125
125
|
* Initialize enhanced features
|
|
126
126
|
*/
|
|
@@ -129,47 +129,46 @@ export class EnhancedProcessUI {
|
|
|
129
129
|
// Initialize enhanced web UI
|
|
130
130
|
this.enhancedWebUI = new EnhancedWebUI();
|
|
131
131
|
await this.enhancedWebUI.initialize(this);
|
|
132
|
-
|
|
132
|
+
|
|
133
133
|
this.systemStats.enhancedMode = true;
|
|
134
134
|
this.addLog('success', 'Enhanced UI features initialized');
|
|
135
|
-
|
|
135
|
+
|
|
136
136
|
// Set enhanced UI process as running
|
|
137
137
|
const enhancedUIProcess = this.processes.get('enhanced-ui');
|
|
138
138
|
if (enhancedUIProcess) {
|
|
139
139
|
enhancedUIProcess.status = 'running';
|
|
140
140
|
enhancedUIProcess.pid = Math.floor(Math.random() * 10000) + 1000;
|
|
141
141
|
}
|
|
142
|
-
|
|
143
142
|
} catch (error) {
|
|
144
143
|
this.addLog('warning', 'Enhanced UI fallback mode enabled');
|
|
145
144
|
console.warn('Enhanced UI initialization warning:', error);
|
|
146
145
|
}
|
|
147
|
-
|
|
146
|
+
|
|
148
147
|
// Initialize swarm (this will create mock data)
|
|
149
148
|
await this.initializeSwarm();
|
|
150
|
-
|
|
149
|
+
|
|
151
150
|
// Initialize tool statistics
|
|
152
151
|
this.initializeToolStats();
|
|
153
152
|
}
|
|
154
|
-
|
|
153
|
+
|
|
155
154
|
/**
|
|
156
155
|
* Initialize tool statistics
|
|
157
156
|
*/
|
|
158
157
|
initializeToolStats() {
|
|
159
|
-
Object.keys(TOOL_CATEGORIES).forEach(category => {
|
|
158
|
+
Object.keys(TOOL_CATEGORIES).forEach((category) => {
|
|
160
159
|
this.toolStats.set(category, {
|
|
161
160
|
executions: 0,
|
|
162
161
|
lastUsed: null,
|
|
163
162
|
avgDuration: 0,
|
|
164
|
-
successRate: 100
|
|
163
|
+
successRate: 100,
|
|
165
164
|
});
|
|
166
165
|
});
|
|
167
166
|
}
|
|
168
|
-
|
|
167
|
+
|
|
169
168
|
async initializeSwarm() {
|
|
170
169
|
// Initialize swarm with mock data
|
|
171
170
|
await this.swarmIntegration.initializeSwarm('hierarchical', 8);
|
|
172
|
-
|
|
171
|
+
|
|
173
172
|
// Enhanced memory namespaces
|
|
174
173
|
this.memoryStats = {
|
|
175
174
|
totalEntries: 156,
|
|
@@ -180,33 +179,33 @@ export class EnhancedProcessUI {
|
|
|
180
179
|
{ name: 'agents', entries: 28, size: '389 KB' },
|
|
181
180
|
{ name: 'tasks', entries: 24, size: '334 KB' },
|
|
182
181
|
{ name: 'workflows', entries: 18, size: '267 KB' },
|
|
183
|
-
{ name: 'monitoring', entries: 9, size: '245 KB' }
|
|
184
|
-
]
|
|
182
|
+
{ name: 'monitoring', entries: 9, size: '245 KB' },
|
|
183
|
+
],
|
|
185
184
|
};
|
|
186
|
-
|
|
185
|
+
|
|
187
186
|
// Enhanced initial logs
|
|
188
187
|
this.logs = [
|
|
189
188
|
{ time: new Date(), level: 'info', message: 'System initialized with enhanced features' },
|
|
190
189
|
{ time: new Date(), level: 'success', message: 'All 71+ tools loaded successfully' },
|
|
191
190
|
{ time: new Date(), level: 'success', message: 'Enhanced UI architecture active' },
|
|
192
191
|
{ time: new Date(), level: 'info', message: 'Swarm orchestration ready' },
|
|
193
|
-
{ time: new Date(), level: 'success', message: 'Neural engine online' }
|
|
192
|
+
{ time: new Date(), level: 'success', message: 'Neural engine online' },
|
|
194
193
|
];
|
|
195
194
|
}
|
|
196
|
-
|
|
195
|
+
|
|
197
196
|
async start() {
|
|
198
197
|
// Clear screen
|
|
199
198
|
console.clear();
|
|
200
|
-
|
|
199
|
+
|
|
201
200
|
// Show enhanced welcome
|
|
202
201
|
printSuccess('🧠 Claude-Flow Enhanced UI v2.0.0');
|
|
203
202
|
console.log(colors.dim('Enhanced with 71+ MCP tools and advanced features'));
|
|
204
203
|
console.log('─'.repeat(80));
|
|
205
204
|
console.log();
|
|
206
|
-
|
|
205
|
+
|
|
207
206
|
// Initial render
|
|
208
207
|
this.render();
|
|
209
|
-
|
|
208
|
+
|
|
210
209
|
// Main UI loop
|
|
211
210
|
while (this.running) {
|
|
212
211
|
await this.handleInput();
|
|
@@ -215,14 +214,14 @@ export class EnhancedProcessUI {
|
|
|
215
214
|
}
|
|
216
215
|
}
|
|
217
216
|
}
|
|
218
|
-
|
|
217
|
+
|
|
219
218
|
render() {
|
|
220
219
|
// Clear screen and move cursor to top
|
|
221
220
|
console.log('\x1b[2J\x1b[H');
|
|
222
|
-
|
|
221
|
+
|
|
223
222
|
// Header with enhanced navigation
|
|
224
223
|
this.renderEnhancedHeader();
|
|
225
|
-
|
|
224
|
+
|
|
226
225
|
// Main content based on current view
|
|
227
226
|
switch (this.currentView) {
|
|
228
227
|
case VIEWS.OVERVIEW:
|
|
@@ -268,19 +267,24 @@ export class EnhancedProcessUI {
|
|
|
268
267
|
this.renderEnhancedHelpView();
|
|
269
268
|
break;
|
|
270
269
|
}
|
|
271
|
-
|
|
270
|
+
|
|
272
271
|
// Enhanced footer with tool information
|
|
273
272
|
this.renderEnhancedFooter();
|
|
274
273
|
}
|
|
275
|
-
|
|
274
|
+
|
|
276
275
|
renderEnhancedHeader() {
|
|
277
|
-
const enhancedStatus = this.systemStats.enhancedMode
|
|
278
|
-
colors.green('ENHANCED')
|
|
279
|
-
|
|
276
|
+
const enhancedStatus = this.systemStats.enhancedMode
|
|
277
|
+
? colors.green('ENHANCED')
|
|
278
|
+
: colors.yellow('FALLBACK');
|
|
279
|
+
|
|
280
280
|
console.log(colors.cyan(colors.bold('🧠 Claude-Flow Enhanced Process Manager')));
|
|
281
|
-
console.log(
|
|
281
|
+
console.log(
|
|
282
|
+
colors.dim(
|
|
283
|
+
`Mode: ${enhancedStatus} | Tools: ${this.systemStats.toolsAvailable}+ | Uptime: ${this.formatUptime(this.systemStats.uptime)}`,
|
|
284
|
+
),
|
|
285
|
+
);
|
|
282
286
|
console.log(colors.gray('─'.repeat(80)));
|
|
283
|
-
|
|
287
|
+
|
|
284
288
|
// Enhanced navigation tabs with tool counts
|
|
285
289
|
const tabs = [
|
|
286
290
|
{ key: '0', view: VIEWS.OVERVIEW, label: 'Overview', icon: '🏠' },
|
|
@@ -293,86 +297,123 @@ export class EnhancedProcessUI {
|
|
|
293
297
|
{ key: '7', view: VIEWS.WORKFLOW, label: 'Workflow (11)', icon: '🔄' },
|
|
294
298
|
{ key: '8', view: VIEWS.GITHUB, label: 'GitHub (8)', icon: '🐙' },
|
|
295
299
|
{ key: '9', view: VIEWS.LOGS, label: 'Logs', icon: '📜' },
|
|
296
|
-
{ key: '?', view: VIEWS.HELP, label: 'Help', icon: '❓' }
|
|
300
|
+
{ key: '?', view: VIEWS.HELP, label: 'Help', icon: '❓' },
|
|
297
301
|
];
|
|
298
|
-
|
|
302
|
+
|
|
299
303
|
let tabLine = '';
|
|
300
304
|
tabs.forEach((tab, index) => {
|
|
301
305
|
const isActive = this.currentView === tab.view;
|
|
302
|
-
const label = isActive
|
|
306
|
+
const label = isActive
|
|
307
|
+
? colors.yellow(`[${tab.icon} ${tab.label}]`)
|
|
308
|
+
: colors.gray(`${tab.icon} ${tab.label}`);
|
|
303
309
|
tabLine += ` ${colors.bold(tab.key)}:${label}`;
|
|
304
|
-
|
|
310
|
+
|
|
305
311
|
// Add line break every 4 tabs for better layout
|
|
306
312
|
if ((index + 1) % 4 === 0 && index < tabs.length - 1) {
|
|
307
313
|
tabLine += '\n';
|
|
308
314
|
}
|
|
309
315
|
});
|
|
310
|
-
|
|
316
|
+
|
|
311
317
|
console.log(tabLine);
|
|
312
318
|
console.log(colors.gray('─'.repeat(80)));
|
|
313
319
|
console.log();
|
|
314
320
|
}
|
|
315
|
-
|
|
321
|
+
|
|
316
322
|
renderOverviewView() {
|
|
317
323
|
console.log(colors.white(colors.bold('🏠 System Overview')));
|
|
318
324
|
console.log();
|
|
319
|
-
|
|
325
|
+
|
|
320
326
|
// Quick stats grid
|
|
321
327
|
const stats = [
|
|
322
|
-
{
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
328
|
+
{
|
|
329
|
+
label: 'Tools Available',
|
|
330
|
+
value: this.systemStats.toolsAvailable + '+',
|
|
331
|
+
icon: '🔧',
|
|
332
|
+
color: colors.cyan,
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
label: 'Active Agents',
|
|
336
|
+
value: this.agents.filter((a) => a.status === 'working').length,
|
|
337
|
+
icon: '🤖',
|
|
338
|
+
color: colors.green,
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
label: 'Running Processes',
|
|
342
|
+
value: Array.from(this.processes.values()).filter((p) => p.status === 'running').length,
|
|
343
|
+
icon: '⚙️',
|
|
344
|
+
color: colors.blue,
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
label: 'Memory Namespaces',
|
|
348
|
+
value: this.memoryStats.namespaces.length,
|
|
349
|
+
icon: '💾',
|
|
350
|
+
color: colors.magenta,
|
|
351
|
+
},
|
|
326
352
|
];
|
|
327
|
-
|
|
328
|
-
const statsLine1 = stats
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
353
|
+
|
|
354
|
+
const statsLine1 = stats
|
|
355
|
+
.slice(0, 2)
|
|
356
|
+
.map((stat) => `${stat.icon} ${stat.color(stat.value)} ${colors.gray(stat.label)}`)
|
|
357
|
+
.join(' | ');
|
|
358
|
+
|
|
359
|
+
const statsLine2 = stats
|
|
360
|
+
.slice(2, 4)
|
|
361
|
+
.map((stat) => `${stat.icon} ${stat.color(stat.value)} ${colors.gray(stat.label)}`)
|
|
362
|
+
.join(' | ');
|
|
363
|
+
|
|
336
364
|
console.log(` ${statsLine1}`);
|
|
337
365
|
console.log(` ${statsLine2}`);
|
|
338
366
|
console.log();
|
|
339
|
-
|
|
367
|
+
|
|
340
368
|
// Tool categories overview
|
|
341
369
|
console.log(colors.cyan('🔧 Tool Categories'));
|
|
342
370
|
console.log();
|
|
343
|
-
|
|
371
|
+
|
|
344
372
|
const categories = Object.entries(TOOL_CATEGORIES);
|
|
345
|
-
categories.forEach(([
|
|
373
|
+
categories.forEach(([id, category], index) => {
|
|
346
374
|
const stats = this.toolStats.get(id);
|
|
347
|
-
const usageInfo =
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
375
|
+
const usageInfo =
|
|
376
|
+
stats && stats.executions > 0
|
|
377
|
+
? colors.dim(` (${stats.executions} uses)`)
|
|
378
|
+
: colors.dim(' (unused)');
|
|
379
|
+
|
|
380
|
+
console.log(
|
|
381
|
+
` ${category.icon} ${category.color(category.name)}: ${colors.yellow(category.count)} tools${usageInfo}`,
|
|
382
|
+
);
|
|
351
383
|
});
|
|
352
|
-
|
|
384
|
+
|
|
353
385
|
console.log();
|
|
354
|
-
|
|
386
|
+
|
|
355
387
|
// Recent activity
|
|
356
388
|
console.log(colors.cyan('🔔 Recent Activity'));
|
|
357
|
-
this.logs.slice(-5).forEach(log => {
|
|
389
|
+
this.logs.slice(-5).forEach((log) => {
|
|
358
390
|
const time = log.time.toLocaleTimeString();
|
|
359
391
|
const icon = log.level === 'success' ? '✓' : log.level === 'warning' ? '⚠' : 'ℹ';
|
|
360
|
-
const color =
|
|
392
|
+
const color =
|
|
393
|
+
log.level === 'success'
|
|
394
|
+
? colors.green
|
|
395
|
+
: log.level === 'warning'
|
|
396
|
+
? colors.yellow
|
|
397
|
+
: colors.blue;
|
|
361
398
|
console.log(` ${colors.gray(time)} ${color(icon)} ${log.message}`);
|
|
362
399
|
});
|
|
363
|
-
|
|
400
|
+
|
|
364
401
|
console.log();
|
|
365
|
-
|
|
402
|
+
|
|
366
403
|
// Quick actions
|
|
367
404
|
console.log(colors.cyan('⚡ Quick Actions'));
|
|
368
|
-
console.log(
|
|
369
|
-
|
|
405
|
+
console.log(
|
|
406
|
+
` ${colors.yellow('N')} Neural Tools ${colors.yellow('M')} Memory Tools ${colors.yellow('W')} Workflows ${colors.yellow('G')} GitHub`,
|
|
407
|
+
);
|
|
408
|
+
console.log(
|
|
409
|
+
` ${colors.yellow('D')} Diagnostics ${colors.yellow('S')} Swarm Control ${colors.yellow('T')} Train Model ${colors.yellow('A')} Analytics`,
|
|
410
|
+
);
|
|
370
411
|
}
|
|
371
|
-
|
|
412
|
+
|
|
372
413
|
renderNeuralView() {
|
|
373
414
|
console.log(colors.white(colors.bold('🧠 Neural Network Operations')));
|
|
374
415
|
console.log();
|
|
375
|
-
|
|
416
|
+
|
|
376
417
|
const neuralTools = [
|
|
377
418
|
{ key: 'T', name: 'neural_train', desc: 'Train neural patterns with WASM SIMD' },
|
|
378
419
|
{ key: 'P', name: 'neural_predict', desc: 'Make AI predictions' },
|
|
@@ -388,32 +429,36 @@ export class EnhancedProcessUI {
|
|
|
388
429
|
{ key: 'F', name: 'transfer_learn', desc: 'Transfer learning' },
|
|
389
430
|
{ key: 'X', name: 'neural_explain', desc: 'AI explainability' },
|
|
390
431
|
{ key: 'W', name: 'wasm_optimize', desc: 'WASM SIMD optimization' },
|
|
391
|
-
{ key: 'I', name: 'inference_run', desc: 'Run neural inference' }
|
|
432
|
+
{ key: 'I', name: 'inference_run', desc: 'Run neural inference' },
|
|
392
433
|
];
|
|
393
|
-
|
|
434
|
+
|
|
394
435
|
console.log(colors.cyan('Available Neural Tools (15):'));
|
|
395
|
-
neuralTools.forEach(tool => {
|
|
436
|
+
neuralTools.forEach((tool) => {
|
|
396
437
|
const stats = this.getToolStats(tool.name);
|
|
397
438
|
const usage = stats ? colors.dim(` (${stats.executions} uses)`) : '';
|
|
398
|
-
console.log(
|
|
439
|
+
console.log(
|
|
440
|
+
` ${colors.yellow(tool.key)}: ${colors.white(tool.name)} - ${colors.gray(tool.desc)}${usage}`,
|
|
441
|
+
);
|
|
399
442
|
});
|
|
400
|
-
|
|
443
|
+
|
|
401
444
|
console.log();
|
|
402
445
|
console.log(colors.cyan('🎯 Recent Neural Operations:'));
|
|
403
|
-
const recentNeural = this.recentTools.filter(
|
|
446
|
+
const recentNeural = this.recentTools.filter(
|
|
447
|
+
(t) => t.startsWith('neural_') || t.includes('model_'),
|
|
448
|
+
);
|
|
404
449
|
if (recentNeural.length > 0) {
|
|
405
|
-
recentNeural.slice(-3).forEach(tool => {
|
|
450
|
+
recentNeural.slice(-3).forEach((tool) => {
|
|
406
451
|
console.log(` ✓ ${colors.green(tool)}`);
|
|
407
452
|
});
|
|
408
453
|
} else {
|
|
409
454
|
console.log(` ${colors.gray('No recent neural operations')}`);
|
|
410
455
|
}
|
|
411
456
|
}
|
|
412
|
-
|
|
457
|
+
|
|
413
458
|
renderMonitoringView() {
|
|
414
459
|
console.log(colors.white(colors.bold('📊 Monitoring & Analysis')));
|
|
415
460
|
console.log();
|
|
416
|
-
|
|
461
|
+
|
|
417
462
|
const monitoringTools = [
|
|
418
463
|
{ key: 'P', name: 'performance_report', desc: 'Generate performance reports' },
|
|
419
464
|
{ key: 'B', name: 'bottleneck_analyze', desc: 'Identify performance bottlenecks' },
|
|
@@ -427,31 +472,41 @@ export class EnhancedProcessUI {
|
|
|
427
472
|
{ key: 'R', name: 'trend_analysis', desc: 'Analyze performance trends' },
|
|
428
473
|
{ key: 'K', name: 'benchmark_run', desc: 'Performance benchmarks' },
|
|
429
474
|
{ key: 'S', name: 'swarm_monitor', desc: 'Real-time swarm monitoring' },
|
|
430
|
-
{ key: 'A', name: 'agent_metrics', desc: 'Agent performance metrics' }
|
|
475
|
+
{ key: 'A', name: 'agent_metrics', desc: 'Agent performance metrics' },
|
|
431
476
|
];
|
|
432
|
-
|
|
477
|
+
|
|
433
478
|
console.log(colors.cyan('Available Monitoring Tools (13):'));
|
|
434
|
-
monitoringTools.slice(0, 7).forEach(tool => {
|
|
479
|
+
monitoringTools.slice(0, 7).forEach((tool) => {
|
|
435
480
|
const stats = this.getToolStats(tool.name);
|
|
436
481
|
const usage = stats ? colors.dim(` (${stats.executions} uses)`) : '';
|
|
437
|
-
console.log(
|
|
482
|
+
console.log(
|
|
483
|
+
` ${colors.yellow(tool.key)}: ${colors.white(tool.name)} - ${colors.gray(tool.desc)}${usage}`,
|
|
484
|
+
);
|
|
438
485
|
});
|
|
439
|
-
|
|
486
|
+
|
|
440
487
|
console.log(' ' + colors.gray('... and 6 more tools'));
|
|
441
|
-
|
|
488
|
+
|
|
442
489
|
// Live system metrics
|
|
443
490
|
console.log();
|
|
444
491
|
console.log(colors.cyan('📈 Live System Metrics:'));
|
|
445
|
-
console.log(
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
console.log(
|
|
492
|
+
console.log(
|
|
493
|
+
` CPU: ${this.getUsageBar(this.systemStats.cpuUsage, 100)} ${this.systemStats.cpuUsage.toFixed(1)}%`,
|
|
494
|
+
);
|
|
495
|
+
console.log(
|
|
496
|
+
` Memory: ${this.getUsageBar(this.systemStats.memoryUsage, 100)} ${this.systemStats.memoryUsage.toFixed(1)}%`,
|
|
497
|
+
);
|
|
498
|
+
console.log(
|
|
499
|
+
` Agents: ${colors.green(this.agents.filter((a) => a.status === 'working').length)}/${this.agents.length} active`,
|
|
500
|
+
);
|
|
501
|
+
console.log(
|
|
502
|
+
` Tasks: ${colors.yellow(this.tasks.filter((t) => t.status === 'in_progress').length)} in progress`,
|
|
503
|
+
);
|
|
449
504
|
}
|
|
450
|
-
|
|
505
|
+
|
|
451
506
|
renderWorkflowView() {
|
|
452
507
|
console.log(colors.white(colors.bold('🔄 Workflow & Automation')));
|
|
453
508
|
console.log();
|
|
454
|
-
|
|
509
|
+
|
|
455
510
|
const workflowTools = [
|
|
456
511
|
{ key: 'C', name: 'workflow_create', desc: 'Create custom workflows' },
|
|
457
512
|
{ key: 'E', name: 'workflow_execute', desc: 'Execute predefined workflows' },
|
|
@@ -463,35 +518,43 @@ export class EnhancedProcessUI {
|
|
|
463
518
|
{ key: 'B', name: 'batch_process', desc: 'Batch processing' },
|
|
464
519
|
{ key: 'L', name: 'parallel_execute', desc: 'Execute tasks in parallel' },
|
|
465
520
|
{ key: 'R', name: 'sparc_mode', desc: 'Run SPARC development modes' },
|
|
466
|
-
{ key: 'O', name: 'task_orchestrate', desc: 'Orchestrate complex workflows' }
|
|
521
|
+
{ key: 'O', name: 'task_orchestrate', desc: 'Orchestrate complex workflows' },
|
|
467
522
|
];
|
|
468
|
-
|
|
523
|
+
|
|
469
524
|
console.log(colors.cyan('Available Workflow Tools (11):'));
|
|
470
|
-
workflowTools.forEach(tool => {
|
|
525
|
+
workflowTools.forEach((tool) => {
|
|
471
526
|
const stats = this.getToolStats(tool.name);
|
|
472
527
|
const usage = stats ? colors.dim(` (${stats.executions} uses)`) : '';
|
|
473
|
-
console.log(
|
|
528
|
+
console.log(
|
|
529
|
+
` ${colors.yellow(tool.key)}: ${colors.white(tool.name)} - ${colors.gray(tool.desc)}${usage}`,
|
|
530
|
+
);
|
|
474
531
|
});
|
|
475
|
-
|
|
532
|
+
|
|
476
533
|
console.log();
|
|
477
534
|
console.log(colors.cyan('🎯 Active Workflows:'));
|
|
478
535
|
// Show active workflows/automations
|
|
479
|
-
const activeWorkflows = this.tasks.filter(
|
|
536
|
+
const activeWorkflows = this.tasks.filter(
|
|
537
|
+
(t) => t.description.includes('workflow') || t.description.includes('automation'),
|
|
538
|
+
);
|
|
480
539
|
if (activeWorkflows.length > 0) {
|
|
481
|
-
activeWorkflows.slice(-3).forEach(workflow => {
|
|
482
|
-
const status =
|
|
483
|
-
|
|
540
|
+
activeWorkflows.slice(-3).forEach((workflow) => {
|
|
541
|
+
const status =
|
|
542
|
+
workflow.status === 'completed'
|
|
543
|
+
? colors.green('✓')
|
|
544
|
+
: workflow.status === 'in_progress'
|
|
545
|
+
? colors.yellow('◐')
|
|
546
|
+
: colors.gray('○');
|
|
484
547
|
console.log(` ${status} ${workflow.description}`);
|
|
485
548
|
});
|
|
486
549
|
} else {
|
|
487
550
|
console.log(` ${colors.gray('No active workflows')}`);
|
|
488
551
|
}
|
|
489
552
|
}
|
|
490
|
-
|
|
553
|
+
|
|
491
554
|
renderGitHubView() {
|
|
492
555
|
console.log(colors.white(colors.bold('🐙 GitHub Integration')));
|
|
493
556
|
console.log();
|
|
494
|
-
|
|
557
|
+
|
|
495
558
|
const githubTools = [
|
|
496
559
|
{ key: 'A', name: 'github_repo_analyze', desc: 'Repository analysis' },
|
|
497
560
|
{ key: 'P', name: 'github_pr_manage', desc: 'Pull request management' },
|
|
@@ -500,16 +563,18 @@ export class EnhancedProcessUI {
|
|
|
500
563
|
{ key: 'W', name: 'github_workflow_auto', desc: 'Workflow automation' },
|
|
501
564
|
{ key: 'C', name: 'github_code_review', desc: 'Automated code review' },
|
|
502
565
|
{ key: 'S', name: 'github_sync_coord', desc: 'Multi-repo sync coordination' },
|
|
503
|
-
{ key: 'M', name: 'github_metrics', desc: 'Repository metrics' }
|
|
566
|
+
{ key: 'M', name: 'github_metrics', desc: 'Repository metrics' },
|
|
504
567
|
];
|
|
505
|
-
|
|
568
|
+
|
|
506
569
|
console.log(colors.cyan('Available GitHub Tools (8):'));
|
|
507
|
-
githubTools.forEach(tool => {
|
|
570
|
+
githubTools.forEach((tool) => {
|
|
508
571
|
const stats = this.getToolStats(tool.name);
|
|
509
572
|
const usage = stats ? colors.dim(` (${stats.executions} uses)`) : '';
|
|
510
|
-
console.log(
|
|
573
|
+
console.log(
|
|
574
|
+
` ${colors.yellow(tool.key)}: ${colors.white(tool.name)} - ${colors.gray(tool.desc)}${usage}`,
|
|
575
|
+
);
|
|
511
576
|
});
|
|
512
|
-
|
|
577
|
+
|
|
513
578
|
console.log();
|
|
514
579
|
console.log(colors.cyan('📊 GitHub Integration Status:'));
|
|
515
580
|
console.log(` Repository: ${colors.green('claude-code-flow')}`);
|
|
@@ -517,11 +582,11 @@ export class EnhancedProcessUI {
|
|
|
517
582
|
console.log(` Status: ${colors.green('Connected')}`);
|
|
518
583
|
console.log(` Last Sync: ${colors.gray('Recently')}`);
|
|
519
584
|
}
|
|
520
|
-
|
|
585
|
+
|
|
521
586
|
renderDAAView() {
|
|
522
587
|
console.log(colors.white(colors.bold('🤖 Dynamic Agent Architecture')));
|
|
523
588
|
console.log();
|
|
524
|
-
|
|
589
|
+
|
|
525
590
|
const daaTools = [
|
|
526
591
|
{ key: 'C', name: 'daa_agent_create', desc: 'Create dynamic agents' },
|
|
527
592
|
{ key: 'M', name: 'daa_capability_match', desc: 'Match capabilities to tasks' },
|
|
@@ -530,44 +595,50 @@ export class EnhancedProcessUI {
|
|
|
530
595
|
{ key: 'O', name: 'daa_communication', desc: 'Inter-agent communication' },
|
|
531
596
|
{ key: 'N', name: 'daa_consensus', desc: 'Consensus mechanisms' },
|
|
532
597
|
{ key: 'F', name: 'daa_fault_tolerance', desc: 'Fault tolerance & recovery' },
|
|
533
|
-
{ key: 'P', name: 'daa_optimization', desc: 'Performance optimization' }
|
|
598
|
+
{ key: 'P', name: 'daa_optimization', desc: 'Performance optimization' },
|
|
534
599
|
];
|
|
535
|
-
|
|
600
|
+
|
|
536
601
|
console.log(colors.cyan('Available DAA Tools (8):'));
|
|
537
|
-
daaTools.forEach(tool => {
|
|
602
|
+
daaTools.forEach((tool) => {
|
|
538
603
|
const stats = this.getToolStats(tool.name);
|
|
539
604
|
const usage = stats ? colors.dim(` (${stats.executions} uses)`) : '';
|
|
540
|
-
console.log(
|
|
605
|
+
console.log(
|
|
606
|
+
` ${colors.yellow(tool.key)}: ${colors.white(tool.name)} - ${colors.gray(tool.desc)}${usage}`,
|
|
607
|
+
);
|
|
541
608
|
});
|
|
542
|
-
|
|
609
|
+
|
|
543
610
|
console.log();
|
|
544
611
|
console.log(colors.cyan('🔗 Agent Network Status:'));
|
|
545
612
|
console.log(` Total Agents: ${colors.green(this.agents.length)}`);
|
|
546
|
-
console.log(
|
|
547
|
-
|
|
613
|
+
console.log(
|
|
614
|
+
` Active: ${colors.yellow(this.agents.filter((a) => a.status === 'working').length)}`,
|
|
615
|
+
);
|
|
616
|
+
console.log(` Idle: ${colors.gray(this.agents.filter((a) => a.status === 'idle').length)}`);
|
|
548
617
|
console.log(` Consensus: ${colors.green('Healthy')}`);
|
|
549
618
|
}
|
|
550
|
-
|
|
619
|
+
|
|
551
620
|
renderSystemView() {
|
|
552
621
|
console.log(colors.white(colors.bold('🛠️ System Utilities')));
|
|
553
622
|
console.log();
|
|
554
|
-
|
|
623
|
+
|
|
555
624
|
const systemTools = [
|
|
556
625
|
{ key: 'S', name: 'security_scan', desc: 'Security scanning' },
|
|
557
626
|
{ key: 'B', name: 'backup_create', desc: 'Create system backups' },
|
|
558
627
|
{ key: 'R', name: 'restore_system', desc: 'System restoration' },
|
|
559
628
|
{ key: 'L', name: 'log_analysis', desc: 'Log analysis & insights' },
|
|
560
629
|
{ key: 'D', name: 'diagnostic_run', desc: 'System diagnostics' },
|
|
561
|
-
{ key: 'C', name: 'config_manage', desc: 'Configuration management' }
|
|
630
|
+
{ key: 'C', name: 'config_manage', desc: 'Configuration management' },
|
|
562
631
|
];
|
|
563
|
-
|
|
632
|
+
|
|
564
633
|
console.log(colors.cyan('Available System Tools (6):'));
|
|
565
|
-
systemTools.forEach(tool => {
|
|
634
|
+
systemTools.forEach((tool) => {
|
|
566
635
|
const stats = this.getToolStats(tool.name);
|
|
567
636
|
const usage = stats ? colors.dim(` (${stats.executions} uses)`) : '';
|
|
568
|
-
console.log(
|
|
637
|
+
console.log(
|
|
638
|
+
` ${colors.yellow(tool.key)}: ${colors.white(tool.name)} - ${colors.gray(tool.desc)}${usage}`,
|
|
639
|
+
);
|
|
569
640
|
});
|
|
570
|
-
|
|
641
|
+
|
|
571
642
|
console.log();
|
|
572
643
|
console.log(colors.cyan('🔧 System Health:'));
|
|
573
644
|
console.log(` Overall Status: ${colors.green('Healthy')}`);
|
|
@@ -575,11 +646,11 @@ export class EnhancedProcessUI {
|
|
|
575
646
|
console.log(` Last Backup: ${colors.gray('2 hours ago')}`);
|
|
576
647
|
console.log(` Disk Usage: ${this.getUsageBar(65, 100)} 65%`);
|
|
577
648
|
}
|
|
578
|
-
|
|
649
|
+
|
|
579
650
|
renderCLIView() {
|
|
580
651
|
console.log(colors.white(colors.bold('⌨️ CLI Command Bridge')));
|
|
581
652
|
console.log();
|
|
582
|
-
|
|
653
|
+
|
|
583
654
|
const cliCommands = [
|
|
584
655
|
{ key: 'H', name: 'hive-mind', desc: 'Hive mind orchestration wizard' },
|
|
585
656
|
{ key: 'G', name: 'github', desc: 'GitHub operations' },
|
|
@@ -589,129 +660,166 @@ export class EnhancedProcessUI {
|
|
|
589
660
|
{ key: 'C', name: 'coordination', desc: 'Swarm coordination' },
|
|
590
661
|
{ key: 'K', name: 'hooks', desc: 'Hook management' },
|
|
591
662
|
{ key: 'M', name: 'mcp', desc: 'MCP server control' },
|
|
592
|
-
{ key: 'F', name: 'config', desc: 'Configuration management' }
|
|
663
|
+
{ key: 'F', name: 'config', desc: 'Configuration management' },
|
|
593
664
|
];
|
|
594
|
-
|
|
665
|
+
|
|
595
666
|
console.log(colors.cyan('Available CLI Commands (9):'));
|
|
596
|
-
cliCommands.forEach(cmd => {
|
|
597
|
-
console.log(
|
|
667
|
+
cliCommands.forEach((cmd) => {
|
|
668
|
+
console.log(
|
|
669
|
+
` ${colors.yellow(cmd.key)}: ${colors.white(cmd.name)} - ${colors.gray(cmd.desc)}`,
|
|
670
|
+
);
|
|
598
671
|
});
|
|
599
|
-
|
|
672
|
+
|
|
600
673
|
console.log();
|
|
601
674
|
console.log(colors.cyan('🎯 CLI Integration Status:'));
|
|
602
675
|
console.log(` Bridge Mode: ${colors.green('Active')}`);
|
|
603
676
|
console.log(` Commands Available: ${colors.yellow('All')}`);
|
|
604
677
|
console.log(` Last Command: ${colors.gray('N/A')}`);
|
|
605
678
|
}
|
|
606
|
-
|
|
679
|
+
|
|
607
680
|
// Keep existing methods but add enhanced functionality
|
|
608
681
|
renderProcessView() {
|
|
609
682
|
console.log(colors.white(colors.bold('⚙️ Process Management')));
|
|
610
683
|
console.log();
|
|
611
|
-
|
|
684
|
+
|
|
612
685
|
let index = 0;
|
|
613
686
|
for (const [id, process] of this.processes) {
|
|
614
687
|
const selected = index === this.selectedIndex;
|
|
615
688
|
const prefix = selected ? colors.yellow('▶ ') : ' ';
|
|
616
689
|
const status = this.getStatusIcon(process.status);
|
|
617
690
|
const name = selected ? colors.yellow(process.name) : colors.white(process.name);
|
|
618
|
-
|
|
691
|
+
|
|
619
692
|
console.log(`${prefix}${status} ${name}`);
|
|
620
693
|
console.log(` ${colors.gray(process.description)}`);
|
|
621
|
-
|
|
694
|
+
|
|
622
695
|
if (process.status === 'running') {
|
|
623
|
-
const stats = colors.dim(
|
|
696
|
+
const stats = colors.dim(
|
|
697
|
+
`PID: ${process.pid} | Uptime: ${this.formatUptime(process.uptime)} | CPU: ${process.cpu.toFixed(1)}% | Mem: ${process.memory.toFixed(0)}MB`,
|
|
698
|
+
);
|
|
624
699
|
console.log(` ${stats}`);
|
|
625
700
|
}
|
|
626
701
|
console.log();
|
|
627
|
-
|
|
702
|
+
|
|
628
703
|
index++;
|
|
629
704
|
}
|
|
630
|
-
|
|
705
|
+
|
|
631
706
|
// Enhanced stats
|
|
632
|
-
const running = Array.from(this.processes.values()).filter(
|
|
707
|
+
const running = Array.from(this.processes.values()).filter(
|
|
708
|
+
(p) => p.status === 'running',
|
|
709
|
+
).length;
|
|
633
710
|
console.log(colors.gray('─'.repeat(80)));
|
|
634
|
-
console.log(
|
|
711
|
+
console.log(
|
|
712
|
+
colors.white(
|
|
713
|
+
`Total: ${this.processes.size} | Running: ${colors.green(running)} | Stopped: ${colors.gray(this.processes.size - running)} | Enhanced: ${this.systemStats.enhancedMode ? colors.green('Yes') : colors.yellow('Fallback')}`,
|
|
714
|
+
),
|
|
715
|
+
);
|
|
635
716
|
}
|
|
636
|
-
|
|
717
|
+
|
|
637
718
|
// Enhanced status view
|
|
638
719
|
renderStatusView() {
|
|
639
720
|
console.log(colors.white(colors.bold('📊 Enhanced System Status')));
|
|
640
721
|
console.log();
|
|
641
|
-
|
|
722
|
+
|
|
642
723
|
// System overview
|
|
643
724
|
console.log(colors.cyan('📊 System Overview'));
|
|
644
725
|
console.log(` Uptime: ${colors.green(this.formatUptime(this.systemStats.uptime))}`);
|
|
645
|
-
console.log(
|
|
726
|
+
console.log(
|
|
727
|
+
` Mode: ${this.systemStats.enhancedMode ? colors.green('Enhanced') : colors.yellow('Fallback')}`,
|
|
728
|
+
);
|
|
646
729
|
console.log(` Process Health: ${this.getHealthBar()}`);
|
|
647
730
|
console.log(` Tools Available: ${colors.cyan(this.systemStats.toolsAvailable + '+')}`);
|
|
648
731
|
console.log();
|
|
649
|
-
|
|
732
|
+
|
|
650
733
|
// Resource usage
|
|
651
734
|
console.log(colors.cyan('💻 Resource Usage'));
|
|
652
|
-
console.log(
|
|
653
|
-
|
|
654
|
-
|
|
735
|
+
console.log(
|
|
736
|
+
` CPU Usage: ${this.getUsageBar(this.systemStats.cpuUsage, 100)} ${this.systemStats.cpuUsage.toFixed(1)}%`,
|
|
737
|
+
);
|
|
738
|
+
console.log(
|
|
739
|
+
` Memory: ${this.getUsageBar(this.systemStats.memoryUsage, 100)} ${this.systemStats.memoryUsage.toFixed(1)}%`,
|
|
740
|
+
);
|
|
741
|
+
console.log(
|
|
742
|
+
` Memory Bank: ${colors.green(this.memoryStats.totalSize)} (${this.memoryStats.totalEntries} entries)`,
|
|
743
|
+
);
|
|
655
744
|
console.log();
|
|
656
|
-
|
|
745
|
+
|
|
657
746
|
// Enhanced metrics
|
|
658
747
|
console.log(colors.cyan('🔧 Tool Usage'));
|
|
659
748
|
let totalToolUsage = 0;
|
|
660
|
-
this.toolStats.forEach(stats => totalToolUsage += stats.executions);
|
|
749
|
+
this.toolStats.forEach((stats) => (totalToolUsage += stats.executions));
|
|
661
750
|
console.log(` Total Executions: ${colors.yellow(totalToolUsage)}`);
|
|
662
|
-
|
|
751
|
+
|
|
663
752
|
const topCategories = Array.from(this.toolStats.entries())
|
|
664
753
|
.sort((a, b) => b[1].executions - a[1].executions)
|
|
665
754
|
.slice(0, 3);
|
|
666
|
-
|
|
755
|
+
|
|
667
756
|
topCategories.forEach(([category, stats]) => {
|
|
668
757
|
const info = TOOL_CATEGORIES[category];
|
|
669
758
|
if (info && stats.executions > 0) {
|
|
670
759
|
console.log(` ${info.icon} ${info.name}: ${colors.green(stats.executions)} uses`);
|
|
671
760
|
}
|
|
672
761
|
});
|
|
673
|
-
|
|
762
|
+
|
|
674
763
|
console.log();
|
|
675
|
-
|
|
764
|
+
|
|
676
765
|
// Activity metrics (existing code continues...)
|
|
677
766
|
console.log(colors.cyan('📈 Activity Metrics'));
|
|
678
|
-
console.log(
|
|
767
|
+
console.log(
|
|
768
|
+
` Active Agents: ${colors.yellow(this.agents.filter((a) => a.status === 'working').length)}/${this.agents.length}`,
|
|
769
|
+
);
|
|
679
770
|
console.log(` Total Tasks: ${this.tasks.length}`);
|
|
680
|
-
console.log(
|
|
681
|
-
|
|
682
|
-
|
|
771
|
+
console.log(
|
|
772
|
+
` Completed: ${colors.green(this.tasks.filter((t) => t.status === 'completed').length)}`,
|
|
773
|
+
);
|
|
774
|
+
console.log(
|
|
775
|
+
` In Progress: ${colors.yellow(this.tasks.filter((t) => t.status === 'in_progress').length)}`,
|
|
776
|
+
);
|
|
777
|
+
console.log(
|
|
778
|
+
` Pending: ${colors.gray(this.tasks.filter((t) => t.status === 'pending').length)}`,
|
|
779
|
+
);
|
|
683
780
|
console.log();
|
|
684
|
-
|
|
781
|
+
|
|
685
782
|
// Recent events
|
|
686
783
|
console.log(colors.cyan('🔔 Recent Events'));
|
|
687
|
-
this.logs.slice(-3).forEach(log => {
|
|
784
|
+
this.logs.slice(-3).forEach((log) => {
|
|
688
785
|
const time = log.time.toLocaleTimeString();
|
|
689
786
|
const icon = log.level === 'success' ? '✓' : log.level === 'warning' ? '⚠' : 'ℹ';
|
|
690
|
-
const color =
|
|
787
|
+
const color =
|
|
788
|
+
log.level === 'success'
|
|
789
|
+
? colors.green
|
|
790
|
+
: log.level === 'warning'
|
|
791
|
+
? colors.yellow
|
|
792
|
+
: colors.blue;
|
|
691
793
|
console.log(` ${colors.gray(time)} ${color(icon)} ${log.message}`);
|
|
692
794
|
});
|
|
693
795
|
}
|
|
694
|
-
|
|
796
|
+
|
|
695
797
|
// Keep existing methods...
|
|
696
798
|
renderOrchestrationView() {
|
|
697
799
|
console.log(colors.white(colors.bold('🐝 Enhanced Swarm Orchestration')));
|
|
698
800
|
console.log();
|
|
699
|
-
|
|
801
|
+
|
|
700
802
|
// Swarm metrics
|
|
701
803
|
const metrics = this.swarmIntegration.getSwarmMetrics();
|
|
702
804
|
if (metrics) {
|
|
703
805
|
console.log(colors.cyan('🐝 Swarm Status'));
|
|
704
806
|
console.log(` Swarm ID: ${colors.yellow(metrics.swarmId)}`);
|
|
705
|
-
console.log(
|
|
706
|
-
|
|
807
|
+
console.log(
|
|
808
|
+
` Agents: ${colors.green(metrics.agents.active)}/${metrics.agents.total} active`,
|
|
809
|
+
);
|
|
810
|
+
console.log(
|
|
811
|
+
` Tasks: ${colors.yellow(metrics.tasks.inProgress)} in progress, ${colors.green(metrics.tasks.completed)} completed`,
|
|
812
|
+
);
|
|
707
813
|
console.log(` Efficiency: ${colors.cyan(metrics.efficiency + '%')}`);
|
|
708
|
-
console.log(
|
|
814
|
+
console.log(
|
|
815
|
+
` Enhanced Mode: ${this.systemStats.enhancedMode ? colors.green('Active') : colors.yellow('Fallback')}`,
|
|
816
|
+
);
|
|
709
817
|
console.log();
|
|
710
818
|
}
|
|
711
|
-
|
|
819
|
+
|
|
712
820
|
// Rest of orchestration view...
|
|
713
821
|
// (Continue with existing orchestration code)
|
|
714
|
-
|
|
822
|
+
|
|
715
823
|
// Agents section
|
|
716
824
|
console.log(colors.cyan('🤖 Active Agents'));
|
|
717
825
|
console.log();
|
|
@@ -720,7 +828,7 @@ export class EnhancedProcessUI {
|
|
|
720
828
|
const prefix = selected ? colors.yellow('▶ ') : ' ';
|
|
721
829
|
const statusIcon = agent.status === 'working' ? colors.green('●') : colors.gray('○');
|
|
722
830
|
const name = selected ? colors.yellow(agent.name) : colors.white(agent.name);
|
|
723
|
-
|
|
831
|
+
|
|
724
832
|
console.log(`${prefix}${statusIcon} ${name} (${agent.type})`);
|
|
725
833
|
console.log(` ID: ${agent.id} | Tasks: ${agent.tasks} | Status: ${agent.status}`);
|
|
726
834
|
if (agent.capabilities && agent.capabilities.length > 0) {
|
|
@@ -728,47 +836,54 @@ export class EnhancedProcessUI {
|
|
|
728
836
|
}
|
|
729
837
|
console.log();
|
|
730
838
|
});
|
|
731
|
-
|
|
839
|
+
|
|
732
840
|
if (this.agents.length > 5) {
|
|
733
841
|
console.log(colors.gray(` ... and ${this.agents.length - 5} more agents`));
|
|
734
842
|
}
|
|
735
|
-
|
|
843
|
+
|
|
736
844
|
console.log(colors.gray('─'.repeat(40)));
|
|
737
|
-
|
|
845
|
+
|
|
738
846
|
// Tasks section
|
|
739
847
|
console.log(colors.cyan('📋 Task Queue'));
|
|
740
848
|
console.log();
|
|
741
|
-
this.tasks.slice(0, 5).forEach(task => {
|
|
742
|
-
const statusColor =
|
|
743
|
-
|
|
849
|
+
this.tasks.slice(0, 5).forEach((task) => {
|
|
850
|
+
const statusColor =
|
|
851
|
+
task.status === 'completed'
|
|
852
|
+
? colors.green
|
|
853
|
+
: task.status === 'in_progress'
|
|
854
|
+
? colors.yellow
|
|
855
|
+
: colors.gray;
|
|
744
856
|
const status = statusColor(`[${task.status}]`);
|
|
745
|
-
const priority =
|
|
746
|
-
|
|
747
|
-
|
|
857
|
+
const priority =
|
|
858
|
+
task.priority === 'high'
|
|
859
|
+
? colors.red(`[${task.priority}]`)
|
|
860
|
+
: task.priority === 'medium'
|
|
861
|
+
? colors.yellow(`[${task.priority}]`)
|
|
862
|
+
: colors.gray(`[${task.priority}]`);
|
|
748
863
|
console.log(` ${status} ${priority} ${task.description}`);
|
|
749
864
|
if (task.assignedTo) {
|
|
750
|
-
const agent = this.agents.find(a => a.id === task.assignedTo);
|
|
865
|
+
const agent = this.agents.find((a) => a.id === task.assignedTo);
|
|
751
866
|
console.log(` Assigned to: ${agent ? agent.name : task.assignedTo}`);
|
|
752
867
|
}
|
|
753
868
|
});
|
|
754
|
-
|
|
869
|
+
|
|
755
870
|
if (this.tasks.length > 5) {
|
|
756
871
|
console.log(colors.gray(` ... and ${this.tasks.length - 5} more tasks`));
|
|
757
872
|
}
|
|
758
873
|
}
|
|
759
|
-
|
|
874
|
+
|
|
760
875
|
// Enhanced memory view
|
|
761
876
|
renderMemoryView() {
|
|
762
877
|
console.log(colors.white(colors.bold('💾 Enhanced Memory Bank Management')));
|
|
763
878
|
console.log();
|
|
764
|
-
|
|
879
|
+
|
|
765
880
|
// Overview
|
|
766
881
|
console.log(colors.cyan('💾 Memory Overview'));
|
|
767
882
|
console.log(` Total Entries: ${colors.yellow(this.memoryStats.totalEntries)}`);
|
|
768
883
|
console.log(` Total Size: ${colors.yellow(this.memoryStats.totalSize)}`);
|
|
769
884
|
console.log(` Namespaces: ${colors.cyan(this.memoryStats.namespaces.length)}`);
|
|
770
885
|
console.log();
|
|
771
|
-
|
|
886
|
+
|
|
772
887
|
// Enhanced namespaces
|
|
773
888
|
console.log(colors.cyan('📁 Enhanced Namespaces'));
|
|
774
889
|
console.log();
|
|
@@ -777,34 +892,40 @@ export class EnhancedProcessUI {
|
|
|
777
892
|
const prefix = selected ? colors.yellow('▶ ') : ' ';
|
|
778
893
|
const name = selected ? colors.yellow(ns.name) : colors.white(ns.name);
|
|
779
894
|
const typeIcon = this.getNamespaceIcon(ns.name);
|
|
780
|
-
|
|
895
|
+
|
|
781
896
|
console.log(`${prefix}${typeIcon} ${name}`);
|
|
782
897
|
console.log(` Entries: ${colors.cyan(ns.entries)} | Size: ${colors.green(ns.size)}`);
|
|
783
898
|
console.log();
|
|
784
899
|
});
|
|
785
|
-
|
|
900
|
+
|
|
786
901
|
// Enhanced operations
|
|
787
902
|
console.log(colors.gray('─'.repeat(40)));
|
|
788
903
|
console.log(colors.cyan('🔄 Available Operations'));
|
|
789
|
-
console.log(
|
|
790
|
-
|
|
904
|
+
console.log(
|
|
905
|
+
` ${colors.yellow('S')} Store Data | ${colors.yellow('G')} Get Data | ${colors.yellow('B')} Backup | ${colors.yellow('R')} Restore`,
|
|
906
|
+
);
|
|
907
|
+
console.log(
|
|
908
|
+
` ${colors.yellow('C')} Compress | ${colors.yellow('Y')} Sync | ${colors.yellow('A')} Analytics | ${colors.yellow('N')} Manage Namespaces`,
|
|
909
|
+
);
|
|
791
910
|
}
|
|
792
|
-
|
|
911
|
+
|
|
793
912
|
renderLogsView() {
|
|
794
913
|
console.log(colors.white(colors.bold('📜 Enhanced System Logs')));
|
|
795
914
|
console.log();
|
|
796
|
-
|
|
915
|
+
|
|
797
916
|
// Enhanced log filters
|
|
798
|
-
console.log(
|
|
917
|
+
console.log(
|
|
918
|
+
colors.cyan('🔍 Filters: ') + colors.gray('[A]ll [I]nfo [S]uccess [W]arning [E]rror [T]ools'),
|
|
919
|
+
);
|
|
799
920
|
console.log(colors.gray('─'.repeat(80)));
|
|
800
921
|
console.log();
|
|
801
|
-
|
|
922
|
+
|
|
802
923
|
// Display logs with enhanced formatting
|
|
803
924
|
const displayLogs = this.logs.slice(-15);
|
|
804
|
-
displayLogs.forEach(log => {
|
|
925
|
+
displayLogs.forEach((log) => {
|
|
805
926
|
const time = log.time.toLocaleTimeString();
|
|
806
927
|
let icon, color;
|
|
807
|
-
|
|
928
|
+
|
|
808
929
|
switch (log.level) {
|
|
809
930
|
case 'success':
|
|
810
931
|
icon = '✓';
|
|
@@ -826,23 +947,25 @@ export class EnhancedProcessUI {
|
|
|
826
947
|
icon = 'ℹ';
|
|
827
948
|
color = colors.blue;
|
|
828
949
|
}
|
|
829
|
-
|
|
950
|
+
|
|
830
951
|
console.log(`${colors.gray(time)} ${color(icon)} ${log.message}`);
|
|
831
952
|
});
|
|
832
|
-
|
|
953
|
+
|
|
833
954
|
if (this.logs.length > 15) {
|
|
834
955
|
console.log();
|
|
835
956
|
console.log(colors.gray(`Showing last 15 of ${this.logs.length} logs`));
|
|
836
957
|
}
|
|
837
958
|
}
|
|
838
|
-
|
|
959
|
+
|
|
839
960
|
renderEnhancedHelpView() {
|
|
840
961
|
console.log(colors.white(colors.bold('❓ Enhanced Help & Documentation')));
|
|
841
962
|
console.log();
|
|
842
|
-
|
|
963
|
+
|
|
843
964
|
console.log(colors.cyan('🎯 Enhanced Navigation'));
|
|
844
965
|
console.log(` ${colors.yellow('0')} Overview Dashboard`);
|
|
845
|
-
console.log(
|
|
966
|
+
console.log(
|
|
967
|
+
` ${colors.yellow('1-4')} Core views (Processes, Status, Orchestration, Memory)`,
|
|
968
|
+
);
|
|
846
969
|
console.log(` ${colors.yellow('5')} Neural Network Tools (15 tools)`);
|
|
847
970
|
console.log(` ${colors.yellow('6')} Monitoring & Analysis (13 tools)`);
|
|
848
971
|
console.log(` ${colors.yellow('7')} Workflow & Automation (11 tools)`);
|
|
@@ -851,32 +974,34 @@ export class EnhancedProcessUI {
|
|
|
851
974
|
console.log(` ${colors.yellow('Tab')} Cycle through views`);
|
|
852
975
|
console.log(` ${colors.yellow('↑/↓')} Navigate items (when available)`);
|
|
853
976
|
console.log();
|
|
854
|
-
|
|
977
|
+
|
|
855
978
|
console.log(colors.cyan('🔧 Enhanced Tool Categories'));
|
|
856
979
|
Object.entries(TOOL_CATEGORIES).forEach(([id, category]) => {
|
|
857
|
-
console.log(
|
|
980
|
+
console.log(
|
|
981
|
+
` ${category.icon} ${category.color(category.name)}: ${colors.yellow(category.count)} tools`,
|
|
982
|
+
);
|
|
858
983
|
});
|
|
859
984
|
console.log();
|
|
860
|
-
|
|
985
|
+
|
|
861
986
|
console.log(colors.cyan('⚡ Process Controls'));
|
|
862
987
|
console.log(` ${colors.yellow('Space')} Toggle selected process`);
|
|
863
988
|
console.log(` ${colors.yellow('A')} Start all processes`);
|
|
864
989
|
console.log(` ${colors.yellow('Z')} Stop all processes`);
|
|
865
990
|
console.log(` ${colors.yellow('R')} Restart all processes`);
|
|
866
991
|
console.log();
|
|
867
|
-
|
|
992
|
+
|
|
868
993
|
console.log(colors.cyan('🧠 Neural Network Quick Actions'));
|
|
869
994
|
console.log(` ${colors.yellow('N')} Open Neural Tools`);
|
|
870
995
|
console.log(` ${colors.yellow('T')} Train Model`);
|
|
871
996
|
console.log(` ${colors.yellow('P')} Make Prediction`);
|
|
872
997
|
console.log();
|
|
873
|
-
|
|
998
|
+
|
|
874
999
|
console.log(colors.cyan('🔄 Workflow & Automation'));
|
|
875
1000
|
console.log(` ${colors.yellow('W')} Open Workflow Tools`);
|
|
876
1001
|
console.log(` ${colors.yellow('C')} Create Workflow`);
|
|
877
1002
|
console.log(` ${colors.yellow('E')} Execute Workflow`);
|
|
878
1003
|
console.log();
|
|
879
|
-
|
|
1004
|
+
|
|
880
1005
|
console.log(colors.cyan('🔧 Other Enhanced Features'));
|
|
881
1006
|
console.log(` ${colors.yellow('M')} Memory Analytics`);
|
|
882
1007
|
console.log(` ${colors.yellow('D')} System Diagnostics`);
|
|
@@ -885,18 +1010,18 @@ export class EnhancedProcessUI {
|
|
|
885
1010
|
console.log(` ${colors.yellow('H/?')} Show this help`);
|
|
886
1011
|
console.log(` ${colors.yellow('Q')} Quit`);
|
|
887
1012
|
console.log();
|
|
888
|
-
|
|
1013
|
+
|
|
889
1014
|
console.log(colors.cyan('💡 Tips'));
|
|
890
1015
|
console.log(` • ${colors.gray('Enhanced mode provides 71+ MCP tools')}`);
|
|
891
1016
|
console.log(` • ${colors.gray('Use keyboard shortcuts for quick access')}`);
|
|
892
1017
|
console.log(` • ${colors.gray('Tool statistics track usage and performance')}`);
|
|
893
1018
|
console.log(` • ${colors.gray('Memory bank supports multiple namespaces')}`);
|
|
894
1019
|
}
|
|
895
|
-
|
|
1020
|
+
|
|
896
1021
|
renderEnhancedFooter() {
|
|
897
1022
|
console.log();
|
|
898
1023
|
console.log(colors.gray('─'.repeat(80)));
|
|
899
|
-
|
|
1024
|
+
|
|
900
1025
|
// Context-sensitive controls with enhanced options
|
|
901
1026
|
let controls = '';
|
|
902
1027
|
switch (this.currentView) {
|
|
@@ -930,90 +1055,91 @@ export class EnhancedProcessUI {
|
|
|
930
1055
|
default:
|
|
931
1056
|
controls = `${colors.yellow('Tab')} Next View | ${colors.yellow('0')} Overview | ${colors.yellow('?')} Help`;
|
|
932
1057
|
}
|
|
933
|
-
|
|
934
|
-
const enhancedStatus = this.systemStats.enhancedMode
|
|
935
|
-
colors.green('Enhanced')
|
|
936
|
-
|
|
1058
|
+
|
|
1059
|
+
const enhancedStatus = this.systemStats.enhancedMode
|
|
1060
|
+
? colors.green('Enhanced')
|
|
1061
|
+
: colors.yellow('Fallback');
|
|
1062
|
+
|
|
937
1063
|
console.log(`${controls} | ${colors.yellow('Q')} Quit | Mode: ${enhancedStatus}`);
|
|
938
1064
|
console.log(colors.gray('─'.repeat(80)));
|
|
939
1065
|
}
|
|
940
|
-
|
|
1066
|
+
|
|
941
1067
|
// Enhanced input handling
|
|
942
1068
|
async handleInput() {
|
|
943
1069
|
const terminal = compat.terminal;
|
|
944
|
-
|
|
1070
|
+
|
|
945
1071
|
await terminal.write('\nCommand: ');
|
|
946
|
-
|
|
1072
|
+
|
|
947
1073
|
const buf = new Uint8Array(1024);
|
|
948
1074
|
const n = await terminal.read(buf);
|
|
949
1075
|
if (n === null) return;
|
|
950
|
-
|
|
1076
|
+
|
|
951
1077
|
const rawInput = terminal.decoder.decode(buf.subarray(0, n)).trim();
|
|
952
1078
|
const input = rawInput.split('\n')[0].toLowerCase();
|
|
953
|
-
|
|
1079
|
+
|
|
954
1080
|
// Enhanced global commands
|
|
955
1081
|
switch (input) {
|
|
956
1082
|
case 'q':
|
|
957
1083
|
case 'quit':
|
|
958
1084
|
await this.shutdown();
|
|
959
1085
|
return;
|
|
960
|
-
|
|
1086
|
+
|
|
961
1087
|
case '0':
|
|
962
1088
|
this.currentView = VIEWS.OVERVIEW;
|
|
963
1089
|
this.selectedIndex = 0;
|
|
964
1090
|
break;
|
|
965
|
-
|
|
1091
|
+
|
|
966
1092
|
case '1':
|
|
967
1093
|
this.currentView = VIEWS.PROCESSES;
|
|
968
1094
|
this.selectedIndex = 0;
|
|
969
1095
|
break;
|
|
970
|
-
|
|
1096
|
+
|
|
971
1097
|
case '2':
|
|
972
1098
|
this.currentView = VIEWS.STATUS;
|
|
973
1099
|
this.selectedIndex = 0;
|
|
974
1100
|
break;
|
|
975
|
-
|
|
1101
|
+
|
|
976
1102
|
case '3':
|
|
977
1103
|
this.currentView = VIEWS.ORCHESTRATION;
|
|
978
1104
|
this.selectedIndex = 0;
|
|
979
1105
|
break;
|
|
980
|
-
|
|
1106
|
+
|
|
981
1107
|
case '4':
|
|
982
1108
|
this.currentView = VIEWS.MEMORY;
|
|
983
1109
|
this.selectedIndex = 0;
|
|
984
1110
|
break;
|
|
985
|
-
|
|
1111
|
+
|
|
986
1112
|
case '5':
|
|
987
1113
|
this.currentView = VIEWS.NEURAL;
|
|
988
1114
|
this.selectedIndex = 0;
|
|
989
1115
|
break;
|
|
990
|
-
|
|
1116
|
+
|
|
991
1117
|
case '6':
|
|
992
1118
|
this.currentView = VIEWS.MONITORING;
|
|
993
1119
|
this.selectedIndex = 0;
|
|
994
1120
|
break;
|
|
995
|
-
|
|
1121
|
+
|
|
996
1122
|
case '7':
|
|
997
1123
|
this.currentView = VIEWS.WORKFLOW;
|
|
998
1124
|
this.selectedIndex = 0;
|
|
999
1125
|
break;
|
|
1000
|
-
|
|
1126
|
+
|
|
1001
1127
|
case '8':
|
|
1002
1128
|
this.currentView = VIEWS.GITHUB;
|
|
1003
1129
|
this.selectedIndex = 0;
|
|
1004
1130
|
break;
|
|
1005
|
-
|
|
1131
|
+
|
|
1006
1132
|
case '9':
|
|
1007
1133
|
this.currentView = VIEWS.LOGS;
|
|
1008
1134
|
this.selectedIndex = 0;
|
|
1009
1135
|
break;
|
|
1010
|
-
|
|
1136
|
+
|
|
1011
1137
|
case '?':
|
|
1012
1138
|
case 'h':
|
|
1013
1139
|
case 'help':
|
|
1014
1140
|
this.currentView = VIEWS.HELP;
|
|
1015
1141
|
break;
|
|
1016
|
-
|
|
1142
|
+
|
|
1017
1143
|
case 'tab':
|
|
1018
1144
|
case '\t':
|
|
1019
1145
|
// Enhanced view cycling
|
|
@@ -1022,7 +1148,7 @@ export class EnhancedProcessUI {
|
|
|
1022
1148
|
this.currentView = viewKeys[(currentIndex + 1) % viewKeys.length];
|
|
1023
1149
|
this.selectedIndex = 0;
|
|
1024
1150
|
break;
|
|
1025
|
-
|
|
1151
|
+
|
|
1026
1152
|
// Quick action shortcuts
|
|
1027
1153
|
case 'n':
|
|
1028
1154
|
if (this.currentView === VIEWS.OVERVIEW) {
|
|
@@ -1031,7 +1157,7 @@ export class EnhancedProcessUI {
|
|
|
1031
1157
|
await this.handleViewSpecificInput(input);
|
|
1032
1158
|
}
|
|
1033
1159
|
break;
|
|
1034
|
-
|
|
1160
|
+
|
|
1035
1161
|
case 'm':
|
|
1036
1162
|
if (this.currentView === VIEWS.OVERVIEW) {
|
|
1037
1163
|
this.currentView = VIEWS.MEMORY;
|
|
@@ -1039,7 +1165,7 @@ export class EnhancedProcessUI {
|
|
|
1039
1165
|
await this.handleViewSpecificInput(input);
|
|
1040
1166
|
}
|
|
1041
1167
|
break;
|
|
1042
|
-
|
|
1168
|
+
|
|
1043
1169
|
case 'w':
|
|
1044
1170
|
if (this.currentView === VIEWS.OVERVIEW) {
|
|
1045
1171
|
this.currentView = VIEWS.WORKFLOW;
|
|
@@ -1047,7 +1173,7 @@ export class EnhancedProcessUI {
|
|
|
1047
1173
|
await this.handleViewSpecificInput(input);
|
|
1048
1174
|
}
|
|
1049
1175
|
break;
|
|
1050
|
-
|
|
1176
|
+
|
|
1051
1177
|
case 'g':
|
|
1052
1178
|
if (this.currentView === VIEWS.OVERVIEW) {
|
|
1053
1179
|
this.currentView = VIEWS.GITHUB;
|
|
@@ -1055,16 +1181,16 @@ export class EnhancedProcessUI {
|
|
|
1055
1181
|
await this.handleViewSpecificInput(input);
|
|
1056
1182
|
}
|
|
1057
1183
|
break;
|
|
1058
|
-
|
|
1184
|
+
|
|
1059
1185
|
default:
|
|
1060
1186
|
// View-specific commands
|
|
1061
1187
|
await this.handleViewSpecificInput(input);
|
|
1062
1188
|
}
|
|
1063
|
-
|
|
1189
|
+
|
|
1064
1190
|
// Update system stats
|
|
1065
1191
|
this.updateSystemStats();
|
|
1066
1192
|
}
|
|
1067
|
-
|
|
1193
|
+
|
|
1068
1194
|
// Enhanced view-specific input handling
|
|
1069
1195
|
async handleViewSpecificInput(input) {
|
|
1070
1196
|
switch (this.currentView) {
|
|
@@ -1103,12 +1229,12 @@ export class EnhancedProcessUI {
|
|
|
1103
1229
|
break;
|
|
1104
1230
|
}
|
|
1105
1231
|
}
|
|
1106
|
-
|
|
1232
|
+
|
|
1107
1233
|
// Enhanced tool execution with statistics
|
|
1108
1234
|
async executeEnhancedTool(toolName, params = {}) {
|
|
1109
1235
|
try {
|
|
1110
1236
|
const startTime = Date.now();
|
|
1111
|
-
|
|
1237
|
+
|
|
1112
1238
|
// Execute through enhanced UI if available
|
|
1113
1239
|
let result;
|
|
1114
1240
|
if (this.enhancedWebUI) {
|
|
@@ -1117,221 +1243,225 @@ export class EnhancedProcessUI {
|
|
|
1117
1243
|
// Fallback execution
|
|
1118
1244
|
result = await this.mockToolExecution(toolName, params);
|
|
1119
1245
|
}
|
|
1120
|
-
|
|
1246
|
+
|
|
1121
1247
|
const duration = Date.now() - startTime;
|
|
1122
|
-
|
|
1248
|
+
|
|
1123
1249
|
// Update statistics
|
|
1124
1250
|
this.updateToolStats(toolName, duration, true);
|
|
1125
|
-
|
|
1251
|
+
|
|
1126
1252
|
// Add to recent tools
|
|
1127
1253
|
this.recentTools.push(toolName);
|
|
1128
1254
|
if (this.recentTools.length > 20) {
|
|
1129
1255
|
this.recentTools = this.recentTools.slice(-20);
|
|
1130
1256
|
}
|
|
1131
|
-
|
|
1257
|
+
|
|
1132
1258
|
// Log execution
|
|
1133
1259
|
this.addLog('tool', `Executed ${toolName} (${duration}ms)`);
|
|
1134
|
-
|
|
1260
|
+
|
|
1135
1261
|
return result;
|
|
1136
|
-
|
|
1137
1262
|
} catch (error) {
|
|
1138
1263
|
this.updateToolStats(toolName, 0, false);
|
|
1139
1264
|
this.addLog('error', `Failed to execute ${toolName}: ${error.message}`);
|
|
1140
1265
|
throw error;
|
|
1141
1266
|
}
|
|
1142
1267
|
}
|
|
1143
|
-
|
|
1268
|
+
|
|
1144
1269
|
// Mock tool execution for fallback
|
|
1145
1270
|
async mockToolExecution(toolName, params) {
|
|
1146
1271
|
// Simulate execution delay
|
|
1147
|
-
await new Promise(resolve => setTimeout(resolve, 100 + Math.random() * 500));
|
|
1148
|
-
|
|
1272
|
+
await new Promise((resolve) => setTimeout(resolve, 100 + Math.random() * 500));
|
|
1273
|
+
|
|
1149
1274
|
return {
|
|
1150
1275
|
success: true,
|
|
1151
1276
|
tool: toolName,
|
|
1152
1277
|
params,
|
|
1153
1278
|
result: `Mock result for ${toolName}`,
|
|
1154
|
-
timestamp: Date.now()
|
|
1279
|
+
timestamp: Date.now(),
|
|
1155
1280
|
};
|
|
1156
1281
|
}
|
|
1157
|
-
|
|
1282
|
+
|
|
1158
1283
|
// Update tool statistics
|
|
1159
1284
|
updateToolStats(toolName, duration, success) {
|
|
1160
1285
|
const category = this.getToolCategory(toolName);
|
|
1161
1286
|
if (!category) return;
|
|
1162
|
-
|
|
1287
|
+
|
|
1163
1288
|
const stats = this.toolStats.get(category) || {
|
|
1164
1289
|
executions: 0,
|
|
1165
1290
|
lastUsed: null,
|
|
1166
1291
|
avgDuration: 0,
|
|
1167
|
-
successRate: 100
|
|
1292
|
+
successRate: 100,
|
|
1168
1293
|
};
|
|
1169
|
-
|
|
1294
|
+
|
|
1170
1295
|
stats.executions++;
|
|
1171
1296
|
stats.lastUsed = Date.now();
|
|
1172
|
-
|
|
1297
|
+
|
|
1173
1298
|
if (success) {
|
|
1174
|
-
stats.avgDuration =
|
|
1299
|
+
stats.avgDuration =
|
|
1300
|
+
(stats.avgDuration * (stats.executions - 1) + duration) / stats.executions;
|
|
1175
1301
|
} else {
|
|
1176
|
-
stats.successRate = (
|
|
1302
|
+
stats.successRate = (stats.successRate * (stats.executions - 1) + 0) / stats.executions;
|
|
1177
1303
|
}
|
|
1178
|
-
|
|
1304
|
+
|
|
1179
1305
|
this.toolStats.set(category, stats);
|
|
1180
1306
|
}
|
|
1181
|
-
|
|
1307
|
+
|
|
1182
1308
|
// Get tool category
|
|
1183
1309
|
getToolCategory(toolName) {
|
|
1184
1310
|
for (const [category, info] of Object.entries(TOOL_CATEGORIES)) {
|
|
1185
1311
|
// Simple pattern matching - in real implementation would be more sophisticated
|
|
1186
|
-
if (
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
(
|
|
1192
|
-
|
|
1193
|
-
(
|
|
1312
|
+
if (
|
|
1313
|
+
toolName.includes(category) ||
|
|
1314
|
+
(category === 'neural' && (toolName.includes('neural_') || toolName.includes('model_'))) ||
|
|
1315
|
+
(category === 'memory' && toolName.includes('memory_')) ||
|
|
1316
|
+
(category === 'monitoring' &&
|
|
1317
|
+
(toolName.includes('performance_') || toolName.includes('health_'))) ||
|
|
1318
|
+
(category === 'workflow' &&
|
|
1319
|
+
(toolName.includes('workflow_') || toolName.includes('automation_'))) ||
|
|
1320
|
+
(category === 'github' && toolName.includes('github_')) ||
|
|
1321
|
+
(category === 'daa' && toolName.includes('daa_')) ||
|
|
1322
|
+
(category === 'system' && (toolName.includes('security_') || toolName.includes('backup_')))
|
|
1323
|
+
) {
|
|
1194
1324
|
return category;
|
|
1195
1325
|
}
|
|
1196
1326
|
}
|
|
1197
1327
|
return null;
|
|
1198
1328
|
}
|
|
1199
|
-
|
|
1329
|
+
|
|
1200
1330
|
// Get tool statistics
|
|
1201
1331
|
getToolStats(toolName) {
|
|
1202
1332
|
const category = this.getToolCategory(toolName);
|
|
1203
1333
|
return category ? this.toolStats.get(category) : null;
|
|
1204
1334
|
}
|
|
1205
|
-
|
|
1335
|
+
|
|
1206
1336
|
// Enhanced input handlers for new views
|
|
1207
1337
|
async handleNeuralInput(input) {
|
|
1208
1338
|
const actions = {
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1339
|
+
t: () => this.executeEnhancedTool('neural_train'),
|
|
1340
|
+
p: () => this.executeEnhancedTool('neural_predict'),
|
|
1341
|
+
s: () => this.executeEnhancedTool('neural_status'),
|
|
1342
|
+
a: () => this.executeEnhancedTool('neural_patterns'),
|
|
1343
|
+
l: () => this.executeEnhancedTool('model_load'),
|
|
1344
|
+
v: () => this.executeEnhancedTool('model_save'),
|
|
1345
|
+
r: () => this.executeEnhancedTool('pattern_recognize'),
|
|
1346
|
+
c: () => this.executeEnhancedTool('cognitive_analyze'),
|
|
1347
|
+
d: () => this.executeEnhancedTool('learning_adapt'),
|
|
1348
|
+
z: () => this.executeEnhancedTool('neural_compress'),
|
|
1349
|
+
e: () => this.executeEnhancedTool('ensemble_create'),
|
|
1350
|
+
f: () => this.executeEnhancedTool('transfer_learn'),
|
|
1351
|
+
x: () => this.executeEnhancedTool('neural_explain'),
|
|
1352
|
+
w: () => this.executeEnhancedTool('wasm_optimize'),
|
|
1353
|
+
i: () => this.executeEnhancedTool('inference_run'),
|
|
1224
1354
|
};
|
|
1225
|
-
|
|
1355
|
+
|
|
1226
1356
|
if (actions[input]) {
|
|
1227
1357
|
await actions[input]();
|
|
1228
1358
|
}
|
|
1229
1359
|
}
|
|
1230
|
-
|
|
1360
|
+
|
|
1231
1361
|
async handleMonitoringInput(input) {
|
|
1232
1362
|
const actions = {
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1363
|
+
p: () => this.executeEnhancedTool('performance_report'),
|
|
1364
|
+
b: () => this.executeEnhancedTool('bottleneck_analyze'),
|
|
1365
|
+
t: () => this.executeEnhancedTool('token_usage'),
|
|
1366
|
+
m: () => this.executeEnhancedTool('metrics_collect'),
|
|
1367
|
+
h: () => this.executeEnhancedTool('health_check'),
|
|
1368
|
+
e: () => this.executeEnhancedTool('error_analysis'),
|
|
1369
|
+
u: () => this.executeEnhancedTool('usage_stats'),
|
|
1370
|
+
q: () => this.executeEnhancedTool('quality_assess'),
|
|
1371
|
+
c: () => this.executeEnhancedTool('cost_analysis'),
|
|
1372
|
+
r: () => this.executeEnhancedTool('trend_analysis'),
|
|
1373
|
+
k: () => this.executeEnhancedTool('benchmark_run'),
|
|
1374
|
+
s: () => this.executeEnhancedTool('swarm_monitor'),
|
|
1375
|
+
a: () => this.executeEnhancedTool('agent_metrics'),
|
|
1246
1376
|
};
|
|
1247
|
-
|
|
1377
|
+
|
|
1248
1378
|
if (actions[input]) {
|
|
1249
1379
|
await actions[input]();
|
|
1250
1380
|
}
|
|
1251
1381
|
}
|
|
1252
|
-
|
|
1382
|
+
|
|
1253
1383
|
async handleWorkflowInput(input) {
|
|
1254
1384
|
const actions = {
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1385
|
+
c: () => this.executeEnhancedTool('workflow_create'),
|
|
1386
|
+
e: () => this.executeEnhancedTool('workflow_execute'),
|
|
1387
|
+
a: () => this.executeEnhancedTool('automation_setup'),
|
|
1388
|
+
p: () => this.executeEnhancedTool('pipeline_create'),
|
|
1389
|
+
s: () => this.executeEnhancedTool('scheduler_manage'),
|
|
1390
|
+
t: () => this.executeEnhancedTool('trigger_setup'),
|
|
1391
|
+
w: () => this.executeEnhancedTool('workflow_template'),
|
|
1392
|
+
b: () => this.executeEnhancedTool('batch_process'),
|
|
1393
|
+
l: () => this.executeEnhancedTool('parallel_execute'),
|
|
1394
|
+
r: () => this.executeEnhancedTool('sparc_mode'),
|
|
1395
|
+
o: () => this.executeEnhancedTool('task_orchestrate'),
|
|
1266
1396
|
};
|
|
1267
|
-
|
|
1397
|
+
|
|
1268
1398
|
if (actions[input]) {
|
|
1269
1399
|
await actions[input]();
|
|
1270
1400
|
}
|
|
1271
1401
|
}
|
|
1272
|
-
|
|
1402
|
+
|
|
1273
1403
|
async handleGitHubInput(input) {
|
|
1274
1404
|
const actions = {
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1405
|
+
a: () => this.executeEnhancedTool('github_repo_analyze'),
|
|
1406
|
+
p: () => this.executeEnhancedTool('github_pr_manage'),
|
|
1407
|
+
i: () => this.executeEnhancedTool('github_issue_track'),
|
|
1408
|
+
r: () => this.executeEnhancedTool('github_release_coord'),
|
|
1409
|
+
w: () => this.executeEnhancedTool('github_workflow_auto'),
|
|
1410
|
+
c: () => this.executeEnhancedTool('github_code_review'),
|
|
1411
|
+
s: () => this.executeEnhancedTool('github_sync_coord'),
|
|
1412
|
+
m: () => this.executeEnhancedTool('github_metrics'),
|
|
1283
1413
|
};
|
|
1284
|
-
|
|
1414
|
+
|
|
1285
1415
|
if (actions[input]) {
|
|
1286
1416
|
await actions[input]();
|
|
1287
1417
|
}
|
|
1288
1418
|
}
|
|
1289
|
-
|
|
1419
|
+
|
|
1290
1420
|
async handleDAAInput(input) {
|
|
1291
1421
|
const actions = {
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1422
|
+
c: () => this.executeEnhancedTool('daa_agent_create'),
|
|
1423
|
+
m: () => this.executeEnhancedTool('daa_capability_match'),
|
|
1424
|
+
r: () => this.executeEnhancedTool('daa_resource_alloc'),
|
|
1425
|
+
l: () => this.executeEnhancedTool('daa_lifecycle_manage'),
|
|
1426
|
+
o: () => this.executeEnhancedTool('daa_communication'),
|
|
1427
|
+
n: () => this.executeEnhancedTool('daa_consensus'),
|
|
1428
|
+
f: () => this.executeEnhancedTool('daa_fault_tolerance'),
|
|
1429
|
+
p: () => this.executeEnhancedTool('daa_optimization'),
|
|
1300
1430
|
};
|
|
1301
|
-
|
|
1431
|
+
|
|
1302
1432
|
if (actions[input]) {
|
|
1303
1433
|
await actions[input]();
|
|
1304
1434
|
}
|
|
1305
1435
|
}
|
|
1306
|
-
|
|
1436
|
+
|
|
1307
1437
|
async handleSystemInput(input) {
|
|
1308
1438
|
const actions = {
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1439
|
+
s: () => this.executeEnhancedTool('security_scan'),
|
|
1440
|
+
b: () => this.executeEnhancedTool('backup_create'),
|
|
1441
|
+
r: () => this.executeEnhancedTool('restore_system'),
|
|
1442
|
+
l: () => this.executeEnhancedTool('log_analysis'),
|
|
1443
|
+
d: () => this.executeEnhancedTool('diagnostic_run'),
|
|
1444
|
+
c: () => this.executeEnhancedTool('config_manage'),
|
|
1315
1445
|
};
|
|
1316
|
-
|
|
1446
|
+
|
|
1317
1447
|
if (actions[input]) {
|
|
1318
1448
|
await actions[input]();
|
|
1319
1449
|
}
|
|
1320
1450
|
}
|
|
1321
|
-
|
|
1451
|
+
|
|
1322
1452
|
async handleCLIInput(input) {
|
|
1323
1453
|
const commands = {
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1454
|
+
h: 'hive-mind',
|
|
1455
|
+
g: 'github',
|
|
1456
|
+
t: 'training',
|
|
1457
|
+
a: 'analysis',
|
|
1458
|
+
u: 'automation',
|
|
1459
|
+
c: 'coordination',
|
|
1460
|
+
k: 'hooks',
|
|
1461
|
+
m: 'mcp',
|
|
1462
|
+
f: 'config',
|
|
1333
1463
|
};
|
|
1334
|
-
|
|
1464
|
+
|
|
1335
1465
|
if (commands[input]) {
|
|
1336
1466
|
this.addLog('info', `Executing CLI command: ${commands[input]}`);
|
|
1337
1467
|
// In real implementation, would bridge to actual CLI commands
|
|
@@ -1339,25 +1469,25 @@ export class EnhancedProcessUI {
|
|
|
1339
1469
|
console.log('Command execution would be bridged to actual CLI...');
|
|
1340
1470
|
}
|
|
1341
1471
|
}
|
|
1342
|
-
|
|
1472
|
+
|
|
1343
1473
|
// Enhanced memory input handling
|
|
1344
1474
|
async handleEnhancedMemoryInput(input) {
|
|
1345
1475
|
const actions = {
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1476
|
+
s: () => this.executeEnhancedTool('memory_usage', { action: 'store' }),
|
|
1477
|
+
g: () => this.executeEnhancedTool('memory_usage', { action: 'retrieve' }),
|
|
1478
|
+
b: () => this.executeEnhancedTool('memory_backup'),
|
|
1479
|
+
r: () => this.executeEnhancedTool('memory_restore'),
|
|
1480
|
+
c: () => this.executeEnhancedTool('memory_compress'),
|
|
1481
|
+
y: () => this.executeEnhancedTool('memory_sync'),
|
|
1482
|
+
a: () => this.executeEnhancedTool('memory_analytics'),
|
|
1483
|
+
n: () => this.executeEnhancedTool('memory_namespace'),
|
|
1354
1484
|
};
|
|
1355
|
-
|
|
1485
|
+
|
|
1356
1486
|
if (actions[input]) {
|
|
1357
1487
|
await actions[input]();
|
|
1358
1488
|
}
|
|
1359
1489
|
}
|
|
1360
|
-
|
|
1490
|
+
|
|
1361
1491
|
// Helper methods
|
|
1362
1492
|
getNamespaceIcon(name) {
|
|
1363
1493
|
const icons = {
|
|
@@ -1366,17 +1496,23 @@ export class EnhancedProcessUI {
|
|
|
1366
1496
|
agents: '🤖',
|
|
1367
1497
|
tasks: '📋',
|
|
1368
1498
|
workflows: '🔄',
|
|
1369
|
-
monitoring: '📊'
|
|
1499
|
+
monitoring: '📊',
|
|
1370
1500
|
};
|
|
1371
1501
|
return icons[name] || '📁';
|
|
1372
1502
|
}
|
|
1373
|
-
|
|
1503
|
+
|
|
1374
1504
|
// Enhanced system stats update
|
|
1375
1505
|
updateSystemStats() {
|
|
1376
1506
|
// Update random stats for demo
|
|
1377
|
-
this.systemStats.cpuUsage = Math.min(
|
|
1378
|
-
|
|
1379
|
-
|
|
1507
|
+
this.systemStats.cpuUsage = Math.min(
|
|
1508
|
+
100,
|
|
1509
|
+
Math.max(0, this.systemStats.cpuUsage + (Math.random() - 0.5) * 10),
|
|
1510
|
+
);
|
|
1511
|
+
this.systemStats.memoryUsage = Math.min(
|
|
1512
|
+
100,
|
|
1513
|
+
Math.max(0, this.systemStats.memoryUsage + (Math.random() - 0.5) * 5),
|
|
1514
|
+
);
|
|
1515
|
+
|
|
1380
1516
|
// Update process stats
|
|
1381
1517
|
for (const [id, process] of this.processes) {
|
|
1382
1518
|
if (process.status === 'running') {
|
|
@@ -1385,41 +1521,48 @@ export class EnhancedProcessUI {
|
|
|
1385
1521
|
process.memory = Math.min(200, Math.max(10, process.memory + (Math.random() - 0.5) * 5));
|
|
1386
1522
|
}
|
|
1387
1523
|
}
|
|
1388
|
-
|
|
1524
|
+
|
|
1389
1525
|
// Update enhanced stats
|
|
1390
|
-
this.systemStats.activeAgents = this.agents.filter(a => a.status === 'working').length;
|
|
1526
|
+
this.systemStats.activeAgents = this.agents.filter((a) => a.status === 'working').length;
|
|
1391
1527
|
this.systemStats.totalTasks = this.tasks.length;
|
|
1392
|
-
this.systemStats.completedTasks = this.tasks.filter(t => t.status === 'completed').length;
|
|
1528
|
+
this.systemStats.completedTasks = this.tasks.filter((t) => t.status === 'completed').length;
|
|
1393
1529
|
}
|
|
1394
|
-
|
|
1530
|
+
|
|
1395
1531
|
// Enhanced shutdown
|
|
1396
1532
|
async shutdown() {
|
|
1397
1533
|
this.running = false;
|
|
1398
1534
|
console.clear();
|
|
1399
|
-
|
|
1535
|
+
|
|
1400
1536
|
if (this.enhancedWebUI) {
|
|
1401
1537
|
await this.enhancedWebUI.shutdown();
|
|
1402
1538
|
}
|
|
1403
|
-
|
|
1539
|
+
|
|
1404
1540
|
printSuccess('Enhanced UI shutdown complete. Goodbye!');
|
|
1405
1541
|
compat.terminal.exit(0);
|
|
1406
1542
|
}
|
|
1407
|
-
|
|
1543
|
+
|
|
1408
1544
|
// Keep all existing methods from original class...
|
|
1409
1545
|
// (getStatusIcon, getHealthBar, getUsageBar, formatUptime, etc.)
|
|
1410
|
-
|
|
1546
|
+
|
|
1411
1547
|
getStatusIcon(status) {
|
|
1412
1548
|
switch (status) {
|
|
1413
|
-
case 'running':
|
|
1414
|
-
|
|
1415
|
-
case '
|
|
1416
|
-
|
|
1417
|
-
|
|
1549
|
+
case 'running':
|
|
1550
|
+
return colors.green('●');
|
|
1551
|
+
case 'stopped':
|
|
1552
|
+
return colors.gray('○');
|
|
1553
|
+
case 'error':
|
|
1554
|
+
return colors.red('✗');
|
|
1555
|
+
case 'starting':
|
|
1556
|
+
return colors.yellow('◐');
|
|
1557
|
+
default:
|
|
1558
|
+
return colors.gray('?');
|
|
1418
1559
|
}
|
|
1419
1560
|
}
|
|
1420
|
-
|
|
1561
|
+
|
|
1421
1562
|
getHealthBar() {
|
|
1422
|
-
const running = Array.from(this.processes.values()).filter(
|
|
1563
|
+
const running = Array.from(this.processes.values()).filter(
|
|
1564
|
+
(p) => p.status === 'running',
|
|
1565
|
+
).length;
|
|
1423
1566
|
const total = this.processes.size;
|
|
1424
1567
|
const percentage = (running / total) * 100;
|
|
1425
1568
|
const filled = Math.round(percentage / 10);
|
|
@@ -1427,7 +1570,7 @@ export class EnhancedProcessUI {
|
|
|
1427
1570
|
const color = percentage >= 80 ? colors.green : percentage >= 50 ? colors.yellow : colors.red;
|
|
1428
1571
|
return color(bar) + ` ${percentage.toFixed(0)}%`;
|
|
1429
1572
|
}
|
|
1430
|
-
|
|
1573
|
+
|
|
1431
1574
|
getUsageBar(value, max) {
|
|
1432
1575
|
const percentage = (value / max) * 100;
|
|
1433
1576
|
const filled = Math.round(percentage / 10);
|
|
@@ -1435,7 +1578,7 @@ export class EnhancedProcessUI {
|
|
|
1435
1578
|
const color = percentage >= 80 ? colors.red : percentage >= 50 ? colors.yellow : colors.green;
|
|
1436
1579
|
return color(bar);
|
|
1437
1580
|
}
|
|
1438
|
-
|
|
1581
|
+
|
|
1439
1582
|
formatUptime(seconds) {
|
|
1440
1583
|
if (seconds < 60) return `${seconds}s`;
|
|
1441
1584
|
if (seconds < 3600) return `${Math.floor(seconds / 60)}m ${seconds % 60}s`;
|
|
@@ -1443,54 +1586,54 @@ export class EnhancedProcessUI {
|
|
|
1443
1586
|
const minutes = Math.floor((seconds % 3600) / 60);
|
|
1444
1587
|
return `${hours}h ${minutes}m`;
|
|
1445
1588
|
}
|
|
1446
|
-
|
|
1589
|
+
|
|
1447
1590
|
addLog(level, message) {
|
|
1448
1591
|
this.logs.push({
|
|
1449
1592
|
time: new Date(),
|
|
1450
1593
|
level,
|
|
1451
|
-
message
|
|
1594
|
+
message,
|
|
1452
1595
|
});
|
|
1453
|
-
|
|
1596
|
+
|
|
1454
1597
|
// Keep logs manageable
|
|
1455
1598
|
if (this.logs.length > 100) {
|
|
1456
1599
|
this.logs = this.logs.slice(-100);
|
|
1457
1600
|
}
|
|
1458
1601
|
}
|
|
1459
|
-
|
|
1602
|
+
|
|
1460
1603
|
// Continue with existing methods...
|
|
1461
1604
|
async handleProcessInput(input) {
|
|
1462
1605
|
switch (input) {
|
|
1463
1606
|
case 'a':
|
|
1464
1607
|
await this.startAll();
|
|
1465
1608
|
break;
|
|
1466
|
-
|
|
1609
|
+
|
|
1467
1610
|
case 'z':
|
|
1468
1611
|
await this.stopAll();
|
|
1469
1612
|
break;
|
|
1470
|
-
|
|
1613
|
+
|
|
1471
1614
|
case 'r':
|
|
1472
1615
|
await this.restartAll();
|
|
1473
1616
|
break;
|
|
1474
|
-
|
|
1617
|
+
|
|
1475
1618
|
case ' ':
|
|
1476
1619
|
case 'space':
|
|
1477
1620
|
case 'enter':
|
|
1478
1621
|
case '':
|
|
1479
1622
|
await this.toggleSelected();
|
|
1480
1623
|
break;
|
|
1481
|
-
|
|
1624
|
+
|
|
1482
1625
|
case 'up':
|
|
1483
1626
|
case 'k':
|
|
1484
1627
|
this.selectedIndex = Math.max(0, this.selectedIndex - 1);
|
|
1485
1628
|
break;
|
|
1486
|
-
|
|
1629
|
+
|
|
1487
1630
|
case 'down':
|
|
1488
1631
|
case 'j':
|
|
1489
1632
|
this.selectedIndex = Math.min(this.processes.size - 1, this.selectedIndex + 1);
|
|
1490
1633
|
break;
|
|
1491
1634
|
}
|
|
1492
1635
|
}
|
|
1493
|
-
|
|
1636
|
+
|
|
1494
1637
|
async handleOrchestrationInput(input) {
|
|
1495
1638
|
switch (input) {
|
|
1496
1639
|
case 'n':
|
|
@@ -1499,7 +1642,7 @@ export class EnhancedProcessUI {
|
|
|
1499
1642
|
const randomType = agentTypes[Math.floor(Math.random() * agentTypes.length)];
|
|
1500
1643
|
await this.swarmIntegration.spawnAgent(randomType);
|
|
1501
1644
|
break;
|
|
1502
|
-
|
|
1645
|
+
|
|
1503
1646
|
case 't':
|
|
1504
1647
|
// Create new task
|
|
1505
1648
|
const sampleTasks = [
|
|
@@ -1507,16 +1650,16 @@ export class EnhancedProcessUI {
|
|
|
1507
1650
|
'Analyze performance bottlenecks',
|
|
1508
1651
|
'Create workflow automation',
|
|
1509
1652
|
'Review GitHub integration',
|
|
1510
|
-
'Test DAA consensus mechanism'
|
|
1653
|
+
'Test DAA consensus mechanism',
|
|
1511
1654
|
];
|
|
1512
1655
|
const randomTask = sampleTasks[Math.floor(Math.random() * sampleTasks.length)];
|
|
1513
1656
|
await this.swarmIntegration.createTask(randomTask, 'medium');
|
|
1514
1657
|
break;
|
|
1515
|
-
|
|
1658
|
+
|
|
1516
1659
|
case 'd':
|
|
1517
1660
|
// Complete selected task (simulate)
|
|
1518
1661
|
if (this.tasks.length > 0) {
|
|
1519
|
-
const pendingTasks = this.tasks.filter(t => t.status === 'in_progress');
|
|
1662
|
+
const pendingTasks = this.tasks.filter((t) => t.status === 'in_progress');
|
|
1520
1663
|
if (pendingTasks.length > 0) {
|
|
1521
1664
|
const taskToComplete = pendingTasks[0];
|
|
1522
1665
|
await this.swarmIntegration.completeTask(taskToComplete.id);
|
|
@@ -1525,34 +1668,37 @@ export class EnhancedProcessUI {
|
|
|
1525
1668
|
}
|
|
1526
1669
|
}
|
|
1527
1670
|
break;
|
|
1528
|
-
|
|
1671
|
+
|
|
1529
1672
|
case 's':
|
|
1530
1673
|
// Show swarm metrics
|
|
1531
1674
|
const metrics = this.swarmIntegration.getSwarmMetrics();
|
|
1532
1675
|
if (metrics) {
|
|
1533
|
-
this.addLog(
|
|
1676
|
+
this.addLog(
|
|
1677
|
+
'info',
|
|
1678
|
+
`Swarm efficiency: ${metrics.efficiency}% (${metrics.tasks.completed}/${metrics.tasks.total} tasks completed)`,
|
|
1679
|
+
);
|
|
1534
1680
|
}
|
|
1535
1681
|
break;
|
|
1536
1682
|
}
|
|
1537
1683
|
}
|
|
1538
|
-
|
|
1684
|
+
|
|
1539
1685
|
async handleLogsInput(input) {
|
|
1540
1686
|
switch (input) {
|
|
1541
1687
|
case 'l':
|
|
1542
1688
|
this.logs = [];
|
|
1543
1689
|
this.addLog('info', 'Logs cleared');
|
|
1544
1690
|
break;
|
|
1545
|
-
|
|
1691
|
+
|
|
1546
1692
|
case 'f':
|
|
1547
1693
|
this.addLog('info', 'Log filtering not yet implemented');
|
|
1548
1694
|
break;
|
|
1549
|
-
|
|
1695
|
+
|
|
1550
1696
|
case 'e':
|
|
1551
1697
|
this.addLog('info', 'Log export feature available in enhanced mode');
|
|
1552
1698
|
break;
|
|
1553
1699
|
}
|
|
1554
1700
|
}
|
|
1555
|
-
|
|
1701
|
+
|
|
1556
1702
|
async toggleSelected() {
|
|
1557
1703
|
const process = Array.from(this.processes.values())[this.selectedIndex];
|
|
1558
1704
|
if (process.status === 'stopped') {
|
|
@@ -1561,36 +1707,36 @@ export class EnhancedProcessUI {
|
|
|
1561
1707
|
await this.stopProcess(process.id);
|
|
1562
1708
|
}
|
|
1563
1709
|
}
|
|
1564
|
-
|
|
1710
|
+
|
|
1565
1711
|
async startProcess(id) {
|
|
1566
1712
|
const process = this.processes.get(id);
|
|
1567
1713
|
if (!process) return;
|
|
1568
|
-
|
|
1714
|
+
|
|
1569
1715
|
this.addLog('info', `Starting ${process.name}...`);
|
|
1570
1716
|
process.status = 'starting';
|
|
1571
|
-
|
|
1572
|
-
await new Promise(resolve => setTimeout(resolve, 500));
|
|
1573
|
-
|
|
1717
|
+
|
|
1718
|
+
await new Promise((resolve) => setTimeout(resolve, 500));
|
|
1719
|
+
|
|
1574
1720
|
process.status = 'running';
|
|
1575
1721
|
process.pid = Math.floor(Math.random() * 10000) + 1000;
|
|
1576
1722
|
process.uptime = 0;
|
|
1577
|
-
|
|
1723
|
+
|
|
1578
1724
|
this.addLog('success', `${process.name} started successfully`);
|
|
1579
1725
|
}
|
|
1580
|
-
|
|
1726
|
+
|
|
1581
1727
|
async stopProcess(id) {
|
|
1582
1728
|
const process = this.processes.get(id);
|
|
1583
1729
|
if (!process) return;
|
|
1584
|
-
|
|
1730
|
+
|
|
1585
1731
|
this.addLog('info', `Stopping ${process.name}...`);
|
|
1586
1732
|
process.status = 'stopped';
|
|
1587
1733
|
process.pid = null;
|
|
1588
1734
|
process.uptime = 0;
|
|
1589
|
-
|
|
1590
|
-
await new Promise(resolve => setTimeout(resolve, 300));
|
|
1735
|
+
|
|
1736
|
+
await new Promise((resolve) => setTimeout(resolve, 300));
|
|
1591
1737
|
this.addLog('success', `${process.name} stopped`);
|
|
1592
1738
|
}
|
|
1593
|
-
|
|
1739
|
+
|
|
1594
1740
|
async startAll() {
|
|
1595
1741
|
this.addLog('info', 'Starting all processes...');
|
|
1596
1742
|
for (const [id, process] of this.processes) {
|
|
@@ -1600,7 +1746,7 @@ export class EnhancedProcessUI {
|
|
|
1600
1746
|
}
|
|
1601
1747
|
this.addLog('success', 'All processes started');
|
|
1602
1748
|
}
|
|
1603
|
-
|
|
1749
|
+
|
|
1604
1750
|
async stopAll() {
|
|
1605
1751
|
this.addLog('info', 'Stopping all processes...');
|
|
1606
1752
|
for (const [id, process] of this.processes) {
|
|
@@ -1610,10 +1756,10 @@ export class EnhancedProcessUI {
|
|
|
1610
1756
|
}
|
|
1611
1757
|
this.addLog('success', 'All processes stopped');
|
|
1612
1758
|
}
|
|
1613
|
-
|
|
1759
|
+
|
|
1614
1760
|
async restartAll() {
|
|
1615
1761
|
await this.stopAll();
|
|
1616
|
-
await new Promise(resolve => setTimeout(resolve, 500));
|
|
1762
|
+
await new Promise((resolve) => setTimeout(resolve, 500));
|
|
1617
1763
|
await this.startAll();
|
|
1618
1764
|
}
|
|
1619
1765
|
}
|
|
@@ -1623,4 +1769,4 @@ export async function launchEnhancedUI() {
|
|
|
1623
1769
|
await ui.start();
|
|
1624
1770
|
}
|
|
1625
1771
|
|
|
1626
|
-
export default EnhancedProcessUI;
|
|
1772
|
+
export default EnhancedProcessUI;
|