claude-flow 2.0.0-alpha.61 → 2.0.0-alpha.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +59 -1
- 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.map +1 -1
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js +182 -103
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/memory.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/memory.js +105 -75
- package/dist/cli/simple-commands/hive-mind/memory.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.js +45 -43
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/queen.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/queen.js +101 -88
- package/dist/cli/simple-commands/hive-mind/queen.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/session-manager.js +75 -53
- package/dist/cli/simple-commands/hive-mind/session-manager.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind-optimize.js +18 -18
- package/dist/cli/simple-commands/hive-mind-optimize.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind.js +195 -135
- 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.map +1 -1
- package/dist/memory/fallback-store.js.map +1 -1
- package/dist/memory/in-memory-store.d.ts.map +1 -1
- package/dist/memory/in-memory-store.js +8 -8
- package/dist/memory/in-memory-store.js.map +1 -1
- package/dist/memory/indexer.d.ts.map +1 -1
- package/dist/memory/indexer.js +4 -1
- package/dist/memory/indexer.js.map +1 -1
- package/dist/memory/manager.d.ts.map +1 -1
- package/dist/memory/manager.js +17 -20
- package/dist/memory/manager.js.map +1 -1
- package/dist/memory/sqlite-store.js +12 -8
- package/dist/memory/sqlite-store.js.map +1 -1
- package/dist/memory/swarm-memory.d.ts.map +1 -1
- package/dist/memory/swarm-memory.js +37 -44
- package/dist/memory/swarm-memory.js.map +1 -1
- package/dist/migration/index.d.ts +4 -0
- package/dist/migration/index.d.ts.map +1 -1
- package/dist/migration/index.js +8 -8
- package/dist/migration/index.js.map +1 -1
- package/dist/migration/logger.d.ts.map +1 -1
- package/dist/migration/logger.js +5 -5
- package/dist/migration/logger.js.map +1 -1
- package/dist/migration/migration-analyzer.d.ts +3 -0
- package/dist/migration/migration-analyzer.d.ts.map +1 -1
- package/dist/migration/migration-analyzer.js +25 -20
- package/dist/migration/migration-analyzer.js.map +1 -1
- package/dist/migration/migration-runner.d.ts.map +1 -1
- package/dist/migration/migration-runner.js +35 -29
- package/dist/migration/migration-runner.js.map +1 -1
- package/dist/migration/migration-validator.d.ts +3 -0
- package/dist/migration/migration-validator.d.ts.map +1 -1
- package/dist/migration/migration-validator.js +22 -26
- package/dist/migration/migration-validator.js.map +1 -1
- package/dist/migration/progress-reporter.d.ts +3 -0
- package/dist/migration/progress-reporter.d.ts.map +1 -1
- package/dist/migration/progress-reporter.js +8 -8
- package/dist/migration/progress-reporter.js.map +1 -1
- package/dist/migration/rollback-manager.d.ts +3 -0
- package/dist/migration/rollback-manager.d.ts.map +1 -1
- package/dist/migration/rollback-manager.js +29 -26
- package/dist/migration/rollback-manager.js.map +1 -1
- package/dist/monitoring/diagnostics.d.ts.map +1 -1
- package/dist/monitoring/diagnostics.js +49 -37
- package/dist/monitoring/diagnostics.js.map +1 -1
- package/dist/monitoring/health-check.d.ts.map +1 -1
- package/dist/monitoring/health-check.js +24 -25
- package/dist/monitoring/health-check.js.map +1 -1
- package/dist/monitoring/real-time-monitor.d.ts.map +1 -1
- package/dist/monitoring/real-time-monitor.js +71 -58
- package/dist/monitoring/real-time-monitor.js.map +1 -1
- package/dist/resources/resource-manager.d.ts.map +1 -1
- package/dist/resources/resource-manager.js +96 -83
- package/dist/resources/resource-manager.js.map +1 -1
- package/dist/swarm/claude-flow-executor.d.ts.map +1 -1
- package/dist/swarm/claude-flow-executor.js +37 -31
- package/dist/swarm/claude-flow-executor.js.map +1 -1
- package/dist/swarm/coordinator.d.ts.map +1 -1
- package/dist/swarm/coordinator.js +330 -280
- package/dist/swarm/coordinator.js.map +1 -1
- package/dist/swarm/direct-executor.d.ts.map +1 -1
- package/dist/swarm/direct-executor.js +44 -37
- package/dist/swarm/direct-executor.js.map +1 -1
- package/dist/swarm/executor-v2.d.ts.map +1 -1
- package/dist/swarm/executor-v2.js +28 -27
- package/dist/swarm/executor-v2.js.map +1 -1
- package/dist/swarm/executor.d.ts +3 -0
- package/dist/swarm/executor.d.ts.map +1 -1
- package/dist/swarm/executor.js +58 -52
- package/dist/swarm/executor.js.map +1 -1
- package/dist/swarm/index.d.ts.map +1 -1
- package/dist/swarm/index.js +2 -2
- package/dist/swarm/index.js.map +1 -1
- package/dist/swarm/json-output-aggregator.d.ts.map +1 -1
- package/dist/swarm/json-output-aggregator.js +20 -19
- package/dist/swarm/json-output-aggregator.js.map +1 -1
- package/dist/swarm/memory.d.ts.map +1 -1
- package/dist/swarm/memory.js +67 -67
- package/dist/swarm/memory.js.map +1 -1
- package/dist/swarm/optimizations/async-file-manager.d.ts +4 -0
- package/dist/swarm/optimizations/async-file-manager.d.ts.map +1 -1
- package/dist/swarm/optimizations/async-file-manager.js +19 -23
- package/dist/swarm/optimizations/async-file-manager.js.map +1 -1
- package/dist/swarm/optimizations/circular-buffer.d.ts.map +1 -1
- package/dist/swarm/optimizations/circular-buffer.js +2 -4
- package/dist/swarm/optimizations/circular-buffer.js.map +1 -1
- package/dist/swarm/optimizations/connection-pool.d.ts.map +1 -1
- package/dist/swarm/optimizations/connection-pool.js +12 -13
- package/dist/swarm/optimizations/connection-pool.js.map +1 -1
- package/dist/swarm/optimizations/index.js +2 -2
- package/dist/swarm/optimizations/optimized-executor.d.ts.map +1 -1
- package/dist/swarm/optimizations/optimized-executor.js +23 -29
- package/dist/swarm/optimizations/optimized-executor.js.map +1 -1
- package/dist/swarm/optimizations/ttl-map.d.ts.map +1 -1
- package/dist/swarm/optimizations/ttl-map.js +4 -4
- package/dist/swarm/optimizations/ttl-map.js.map +1 -1
- package/dist/swarm/prompt-cli.d.ts.map +1 -1
- package/dist/swarm/prompt-cli.js +18 -13
- package/dist/swarm/prompt-cli.js.map +1 -1
- package/dist/swarm/prompt-copier-enhanced.d.ts.map +1 -1
- package/dist/swarm/prompt-copier-enhanced.js +12 -12
- package/dist/swarm/prompt-copier-enhanced.js.map +1 -1
- package/dist/swarm/prompt-copier.d.ts.map +1 -1
- package/dist/swarm/prompt-copier.js +15 -18
- package/dist/swarm/prompt-copier.js.map +1 -1
- package/dist/swarm/prompt-manager.d.ts.map +1 -1
- package/dist/swarm/prompt-manager.js +27 -21
- package/dist/swarm/prompt-manager.js.map +1 -1
- package/dist/swarm/prompt-utils.d.ts.map +1 -1
- package/dist/swarm/prompt-utils.js +34 -32
- package/dist/swarm/prompt-utils.js.map +1 -1
- package/dist/swarm/sparc-executor.d.ts.map +1 -1
- package/dist/swarm/sparc-executor.js +189 -123
- package/dist/swarm/sparc-executor.js.map +1 -1
- package/dist/swarm/strategies/auto.d.ts.map +1 -1
- package/dist/swarm/strategies/auto.js +105 -86
- package/dist/swarm/strategies/auto.js.map +1 -1
- package/dist/swarm/strategies/base.d.ts.map +1 -1
- package/dist/swarm/strategies/base.js +14 -11
- package/dist/swarm/strategies/base.js.map +1 -1
- package/dist/swarm/strategies/research.d.ts.map +1 -1
- package/dist/swarm/strategies/research.js +76 -71
- package/dist/swarm/strategies/research.js.map +1 -1
- package/dist/swarm/types.d.ts.map +1 -1
- package/dist/swarm/types.js +3 -0
- package/dist/swarm/types.js.map +1 -1
- package/dist/swarm/workers/copy-worker.js +4 -4
- package/dist/swarm/workers/copy-worker.js.map +1 -1
- package/dist/task/commands.d.ts.map +1 -1
- package/dist/task/commands.js +11 -7
- package/dist/task/commands.js.map +1 -1
- package/dist/task/coordination.d.ts.map +1 -1
- package/dist/task/coordination.js +75 -70
- package/dist/task/coordination.js.map +1 -1
- package/dist/task/engine.d.ts.map +1 -1
- package/dist/task/engine.js +34 -32
- package/dist/task/engine.js.map +1 -1
- package/dist/task/index.d.ts +3 -3
- package/dist/task/index.d.ts.map +1 -1
- package/dist/task/index.js +11 -11
- package/dist/task/index.js.map +1 -1
- package/dist/terminal/adapters/native.d.ts.map +1 -1
- package/dist/terminal/adapters/native.js +6 -6
- package/dist/terminal/adapters/native.js.map +1 -1
- package/dist/terminal/adapters/vscode.d.ts +3 -0
- package/dist/terminal/adapters/vscode.d.ts.map +1 -1
- package/dist/terminal/adapters/vscode.js +6 -4
- package/dist/terminal/adapters/vscode.js.map +1 -1
- package/dist/terminal/manager.d.ts.map +1 -1
- package/dist/terminal/manager.js +6 -8
- package/dist/terminal/manager.js.map +1 -1
- package/dist/terminal/pool.d.ts.map +1 -1
- package/dist/terminal/pool.js +3 -0
- package/dist/terminal/pool.js.map +1 -1
- package/dist/terminal/session.d.ts.map +1 -1
- package/dist/terminal/session.js +6 -2
- package/dist/terminal/session.js.map +1 -1
- package/dist/ui/hive-dashboard.d.ts.map +1 -1
- package/dist/ui/hive-dashboard.js +52 -33
- package/dist/ui/hive-dashboard.js.map +1 -1
- package/dist/utils/error-handler.d.ts.map +1 -1
- package/dist/utils/error-handler.js +1 -1
- package/dist/utils/error-handler.js.map +1 -1
- package/dist/utils/errors.d.ts.map +1 -1
- package/dist/utils/errors.js.map +1 -1
- package/dist/utils/helpers.d.ts +3 -0
- package/dist/utils/helpers.d.ts.map +1 -1
- package/dist/utils/helpers.js +5 -8
- package/dist/utils/helpers.js.map +1 -1
- package/dist/utils/npx-isolated-cache.js +3 -3
- package/dist/utils/npx-isolated-cache.js.map +1 -1
- package/dist/utils/paths.d.ts.map +1 -1
- package/dist/utils/paths.js +8 -4
- package/dist/utils/paths.js.map +1 -1
- package/dist/utils/type-guards.d.ts +1 -1
- package/dist/utils/type-guards.d.ts.map +1 -1
- package/dist/utils/type-guards.js +11 -10
- package/dist/utils/type-guards.js.map +1 -1
- package/package.json +7 -6
- package/src/adapters/cliffy-node.ts +27 -22
- package/src/agents/agent-manager.ts +145 -121
- package/src/agents/agent-registry.ts +77 -70
- package/src/api/claude-client.ts +59 -38
- package/src/api/routes/analysis.js +750 -735
- package/src/cli/__tests__/command-registry.test.js +42 -32
- package/src/cli/__tests__/simple-cli.test.js +42 -37
- package/src/cli/__tests__/utils.test.js +9 -9
- package/src/cli/agents/README.md +30 -4
- package/src/cli/agents/analyst.ts +161 -163
- package/src/cli/agents/architect.ts +126 -131
- package/src/cli/agents/base-agent.ts +48 -47
- package/src/cli/agents/capabilities.ts +87 -85
- package/src/cli/agents/coder.ts +127 -120
- package/src/cli/agents/coordinator.ts +72 -72
- package/src/cli/agents/hive-agents.ts +96 -70
- package/src/cli/agents/index.ts +70 -55
- package/src/cli/agents/researcher.ts +63 -74
- package/src/cli/agents/tester.ts +91 -98
- package/src/cli/cli-core.ts +56 -47
- package/src/cli/command-registry.js +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 +69 -60
- 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 +197 -185
- package/src/cli/simple-commands/enhanced-ui-views.js +142 -115
- package/src/cli/simple-commands/enhanced-webui-complete.js +267 -167
- package/src/cli/simple-commands/fix-hook-variables.js +73 -67
- package/src/cli/simple-commands/github/gh-coordinator.js +63 -53
- package/src/cli/simple-commands/github/github-api.js +45 -47
- package/src/cli/simple-commands/github.js +33 -34
- package/src/cli/simple-commands/hive-mind/auto-save-middleware.js +44 -40
- package/src/cli/simple-commands/hive-mind/communication.js +198 -185
- package/src/cli/simple-commands/hive-mind/core.js +289 -304
- package/src/cli/simple-commands/hive-mind/db-optimizer.js +278 -168
- package/src/cli/simple-commands/hive-mind/mcp-wrapper.js +352 -258
- package/src/cli/simple-commands/hive-mind/memory.js +356 -287
- package/src/cli/simple-commands/hive-mind/performance-optimizer.js +88 -79
- package/src/cli/simple-commands/hive-mind/performance-test.js +61 -49
- package/src/cli/simple-commands/hive-mind/queen.js +223 -213
- package/src/cli/simple-commands/hive-mind/session-manager.js +217 -157
- package/src/cli/simple-commands/hive-mind-optimize.js +69 -65
- package/src/cli/simple-commands/hive-mind-wizard.js +213 -211
- package/src/cli/simple-commands/hive-mind.js +598 -432
- package/src/cli/simple-commands/hive.js +12 -12
- package/src/cli/simple-commands/hook-safety.js +114 -111
- package/src/cli/simple-commands/hooks.js +1077 -1017
- package/src/cli/simple-commands/init/README.md +8 -1
- package/src/cli/simple-commands/init/VALIDATION_ROLLBACK.md +27 -1
- package/src/cli/simple-commands/init/batch-init.js +105 -100
- package/src/cli/simple-commands/init/claude-commands/claude-flow-commands.js +6 -6
- package/src/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.js +6 -6
- package/src/cli/simple-commands/init/claude-commands/optimized-slash-commands.js +20 -18
- package/src/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js +85 -71
- package/src/cli/simple-commands/init/claude-commands/slash-commands.js +6 -7
- package/src/cli/simple-commands/init/claude-commands/sparc-commands.js +42 -33
- package/src/cli/simple-commands/init/executable-wrapper.js +13 -10
- package/src/cli/simple-commands/init/gitignore-updater.js +22 -22
- package/src/cli/simple-commands/init/help.js +4 -2
- package/src/cli/simple-commands/init/index.js +405 -303
- package/src/cli/simple-commands/init/performance-monitor.js +71 -64
- package/src/cli/simple-commands/init/rollback/backup-manager.js +44 -64
- package/src/cli/simple-commands/init/rollback/index.js +31 -39
- package/src/cli/simple-commands/init/rollback/recovery-manager.js +71 -101
- package/src/cli/simple-commands/init/rollback/rollback-executor.js +34 -53
- package/src/cli/simple-commands/init/rollback/state-tracker.js +38 -49
- package/src/cli/simple-commands/init/sparc/roo-readme.js +1 -1
- package/src/cli/simple-commands/init/sparc/roomodes-config.js +99 -77
- package/src/cli/simple-commands/init/sparc/workflows.js +37 -33
- package/src/cli/simple-commands/init/sparc-structure.js +9 -10
- package/src/cli/simple-commands/init/templates/CLAUDE.md +94 -26
- package/src/cli/simple-commands/init/templates/claude-flow-universal +9 -7
- package/src/cli/simple-commands/init/templates/claude-md.js +1 -1
- package/src/cli/simple-commands/init/templates/commands/analysis/bottleneck-detect.md +15 -3
- package/src/cli/simple-commands/init/templates/commands/automation/auto-agent.md +12 -2
- package/src/cli/simple-commands/init/templates/commands/coordination/swarm-init.md +10 -1
- package/src/cli/simple-commands/init/templates/commands/github/github-swarm.md +18 -5
- package/src/cli/simple-commands/init/templates/commands/hooks/notification.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/post-command.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/post-edit.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/post-task.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/pre-command.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/pre-edit.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/pre-search.md +13 -6
- package/src/cli/simple-commands/init/templates/commands/hooks/pre-task.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/session-end.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/session-restore.md +13 -5
- package/src/cli/simple-commands/init/templates/commands/hooks/session-start.md +12 -1
- package/src/cli/simple-commands/init/templates/coordination-md.js +1 -1
- package/src/cli/simple-commands/init/templates/enhanced-templates.js +116 -113
- package/src/cli/simple-commands/init/templates/memory-bank-md.js +1 -1
- package/src/cli/simple-commands/init/templates/readme-files.js +1 -1
- package/src/cli/simple-commands/init/templates/safe-hook-patterns.js +176 -127
- package/src/cli/simple-commands/init/templates/settings.json +2 -5
- package/src/cli/simple-commands/init/templates/sparc-modes.js +3 -3
- package/src/cli/simple-commands/init/validation/config-validator.js +17 -28
- package/src/cli/simple-commands/init/validation/health-checker.js +54 -62
- package/src/cli/simple-commands/init/validation/index.js +18 -23
- package/src/cli/simple-commands/init/validation/mode-validator.js +22 -32
- package/src/cli/simple-commands/init/validation/post-init-validator.js +25 -26
- package/src/cli/simple-commands/init/validation/pre-init-validator.js +32 -36
- package/src/cli/simple-commands/init/validation/test-runner.js +55 -63
- package/src/cli/simple-commands/init.js +1 -1
- package/src/cli/simple-commands/mcp-integration-layer.js +179 -110
- package/src/cli/simple-commands/mcp.js +55 -48
- package/src/cli/simple-commands/memory.js +62 -56
- package/src/cli/simple-commands/migrate-hooks.js +9 -10
- package/src/cli/simple-commands/monitor.js +87 -67
- package/src/cli/simple-commands/process-ui-enhanced.js +207 -155
- package/src/cli/simple-commands/process-ui.js +65 -56
- package/src/cli/simple-commands/realtime-update-system.js +136 -129
- package/src/cli/simple-commands/sparc/architecture.js +352 -251
- package/src/cli/simple-commands/sparc/commands.js +122 -94
- package/src/cli/simple-commands/sparc/completion.js +274 -199
- package/src/cli/simple-commands/sparc/coordinator.js +217 -169
- package/src/cli/simple-commands/sparc/index.js +40 -36
- package/src/cli/simple-commands/sparc/phase-base.js +72 -58
- package/src/cli/simple-commands/sparc/pseudocode.js +275 -159
- package/src/cli/simple-commands/sparc/refinement.js +306 -212
- package/src/cli/simple-commands/sparc/specification.js +164 -94
- package/src/cli/simple-commands/sparc-modes/architect.js +1 -1
- package/src/cli/simple-commands/sparc-modes/ask.js +1 -1
- package/src/cli/simple-commands/sparc-modes/code.js +1 -1
- package/src/cli/simple-commands/sparc-modes/debug.js +1 -1
- package/src/cli/simple-commands/sparc-modes/devops.js +1 -1
- package/src/cli/simple-commands/sparc-modes/docs-writer.js +1 -1
- package/src/cli/simple-commands/sparc-modes/generic.js +1 -1
- package/src/cli/simple-commands/sparc-modes/index.js +15 -15
- package/src/cli/simple-commands/sparc-modes/integration.js +1 -1
- package/src/cli/simple-commands/sparc-modes/mcp.js +1 -1
- package/src/cli/simple-commands/sparc-modes/monitoring.js +1 -1
- package/src/cli/simple-commands/sparc-modes/optimization.js +1 -1
- package/src/cli/simple-commands/sparc-modes/security-review.js +1 -1
- package/src/cli/simple-commands/sparc-modes/sparc-orchestrator.js +1 -1
- package/src/cli/simple-commands/sparc-modes/spec-pseudocode.js +1 -1
- package/src/cli/simple-commands/sparc-modes/supabase-admin.js +1 -1
- package/src/cli/simple-commands/sparc-modes/swarm.js +52 -52
- package/src/cli/simple-commands/sparc-modes/tdd.js +1 -1
- package/src/cli/simple-commands/sparc-modes/tutorial.js +1 -1
- package/src/cli/simple-commands/sparc.js +87 -69
- package/src/cli/simple-commands/start-ui.js +21 -20
- package/src/cli/simple-commands/start-wrapper.js +29 -31
- package/src/cli/simple-commands/start.js +1 -1
- package/src/cli/simple-commands/status.js +53 -47
- package/src/cli/simple-commands/swarm-executor.js +47 -57
- package/src/cli/simple-commands/swarm-metrics-integration.js +119 -79
- package/src/cli/simple-commands/swarm-ui.js +120 -118
- package/src/cli/simple-commands/swarm-webui-integration.js +48 -27
- package/src/cli/simple-commands/swarm.js +216 -181
- package/src/cli/simple-commands/task.js +29 -29
- package/src/cli/simple-commands/timestamp-fix.js +28 -25
- package/src/cli/simple-commands/tool-execution-framework.js +115 -118
- package/src/cli/simple-commands/training.js +219 -194
- package/src/cli/simple-commands/web-server.js +118 -117
- package/src/cli/simple-commands/webui-validator.js +4 -3
- package/src/cli/simple-mcp.ts +14 -17
- package/src/cli/simple-orchestrator.ts +113 -101
- package/src/cli/swarm-standalone.js +20 -21
- package/src/cli/ui/compatible-ui.ts +55 -44
- package/src/cli/ui/fallback-handler.ts +19 -16
- package/src/cli/ui/index.ts +14 -15
- package/src/cli/utils/environment-detector.ts +75 -67
- package/src/cli/utils/interactive-detector.js +17 -11
- package/src/cli/utils/prompt-defaults.ts +32 -28
- package/src/cli/utils/safe-interactive.js +21 -20
- package/src/cli/utils.js +127 -110
- package/src/cli/validation-helper.js +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 +299 -166
- package/src/hive-mind/core/HiveMind.ts +100 -96
- package/src/hive-mind/core/Memory.ts +304 -295
- package/src/hive-mind/core/MemoryMonitor.ts +46 -47
- package/src/hive-mind/core/Queen.ts +187 -114
- package/src/hive-mind/index.ts +2 -2
- package/src/hive-mind/integration/ConsensusEngine.ts +88 -92
- package/src/hive-mind/integration/MCPToolWrapper.ts +20 -72
- package/src/hive-mind/integration/SwarmOrchestrator.ts +173 -165
- package/src/hive-mind/types.ts +24 -12
- package/src/integration/mock-components.ts +42 -30
- package/src/integration/system-integration.ts +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 +19 -15
- package/src/memory/cache.ts +18 -18
- package/src/memory/distributed-memory.ts +84 -92
- package/src/memory/enhanced-examples.js +68 -59
- package/src/memory/enhanced-memory.js +99 -80
- package/src/memory/fallback-store.js +16 -7
- package/src/memory/in-memory-store.js +31 -27
- package/src/memory/index.js +4 -4
- package/src/memory/indexer.ts +6 -10
- package/src/memory/manager.ts +45 -59
- package/src/memory/migration.js +107 -90
- package/src/memory/shared-memory.js +155 -157
- package/src/memory/sqlite-store.js +76 -59
- package/src/memory/swarm-memory.js +138 -131
- package/src/memory/swarm-memory.ts +74 -75
- package/src/memory/test-example.js +28 -30
- package/src/migration/README.md +25 -9
- package/src/migration/index.ts +13 -14
- package/src/migration/logger.ts +9 -7
- package/src/migration/migration-analyzer.ts +66 -52
- package/src/migration/migration-manifest.json +2 -6
- package/src/migration/migration-runner.ts +86 -63
- package/src/migration/migration-validator.ts +93 -68
- package/src/migration/package.json +1 -1
- package/src/migration/progress-reporter.ts +25 -21
- package/src/migration/rollback-manager.ts +79 -63
- package/src/migration/tests/migration-system.test.ts +4 -491
- package/src/migration/tsconfig.json +3 -10
- package/src/migration/types.ts +1 -1
- package/src/monitoring/diagnostics.ts +123 -97
- package/src/monitoring/health-check.ts +45 -51
- package/src/monitoring/real-time-monitor.ts +105 -92
- package/src/resources/resource-manager.ts +205 -159
- package/src/swarm/__tests__/integration.test.ts +59 -65
- package/src/swarm/__tests__/prompt-copier.test.ts +27 -27
- package/src/swarm/claude-flow-executor.ts +50 -49
- package/src/swarm/coordinator.ts +727 -635
- package/src/swarm/direct-executor.ts +80 -86
- package/src/swarm/executor-v2.ts +81 -66
- package/src/swarm/executor.ts +124 -124
- package/src/swarm/index.ts +7 -8
- package/src/swarm/json-output-aggregator.ts +56 -40
- package/src/swarm/memory.ts +152 -147
- package/src/swarm/optimizations/README.md +20 -12
- package/src/swarm/optimizations/__tests__/optimization.test.ts +84 -87
- package/src/swarm/optimizations/async-file-manager.ts +70 -80
- package/src/swarm/optimizations/circular-buffer.ts +37 -37
- package/src/swarm/optimizations/connection-pool.ts +64 -64
- package/src/swarm/optimizations/index.ts +4 -4
- package/src/swarm/optimizations/migration-guide.md +27 -16
- package/src/swarm/optimizations/optimized-executor.ts +104 -114
- package/src/swarm/optimizations/ttl-map.ts +66 -63
- package/src/swarm/prompt-cli.ts +48 -42
- package/src/swarm/prompt-copier-enhanced.ts +54 -55
- package/src/swarm/prompt-copier.ts +59 -65
- package/src/swarm/prompt-copying-README.md +49 -33
- package/src/swarm/prompt-manager.ts +69 -63
- package/src/swarm/prompt-utils.ts +71 -66
- package/src/swarm/sparc-executor.ts +298 -225
- package/src/swarm/strategies/auto.ts +367 -252
- package/src/swarm/strategies/base.ts +24 -20
- package/src/swarm/strategies/research.ts +144 -124
- package/src/swarm/types.ts +340 -309
- package/src/swarm/workers/copy-worker.ts +12 -13
- package/src/task/README.md +99 -70
- package/src/task/commands.ts +16 -8
- package/src/task/coordination.ts +209 -162
- package/src/task/engine.ts +81 -65
- package/src/task/index.ts +28 -31
- package/src/templates/claude-optimized/.claude/BATCHTOOLS_BEST_PRACTICES.md +479 -481
- package/src/templates/claude-optimized/.claude/BATCHTOOLS_GUIDE.md +210 -188
- package/src/templates/claude-optimized/.claude/MIGRATION_GUIDE.md +151 -105
- package/src/templates/claude-optimized/.claude/PERFORMANCE_BENCHMARKS.md +102 -87
- package/src/templates/claude-optimized/.claude/commands/claude-flow-help.md +18 -1
- package/src/templates/claude-optimized/.claude/commands/claude-flow-memory.md +17 -1
- package/src/templates/claude-optimized/.claude/commands/claude-flow-swarm.md +21 -1
- package/src/templates/claude-optimized/.claude/commands/sparc/architect.md +11 -4
- package/src/templates/claude-optimized/.claude/commands/sparc/ask.md +16 -10
- package/src/templates/claude-optimized/.claude/commands/sparc/code.md +26 -7
- package/src/templates/claude-optimized/.claude/commands/sparc/debug.md +14 -4
- package/src/templates/claude-optimized/.claude/commands/sparc/devops.md +23 -10
- package/src/templates/claude-optimized/.claude/commands/sparc/docs-writer.md +8 -4
- package/src/templates/claude-optimized/.claude/commands/sparc/integration.md +43 -27
- package/src/templates/claude-optimized/.claude/commands/sparc/mcp.md +15 -1
- package/src/templates/claude-optimized/.claude/commands/sparc/post-deployment-monitoring-mode.md +45 -30
- package/src/templates/claude-optimized/.claude/commands/sparc/refinement-optimization-mode.md +23 -13
- package/src/templates/claude-optimized/.claude/commands/sparc/security-review.md +31 -17
- package/src/templates/claude-optimized/.claude/commands/sparc/sparc.md +54 -47
- package/src/templates/claude-optimized/.claude/commands/sparc/spec-pseudocode.md +27 -17
- package/src/templates/claude-optimized/.claude/commands/sparc/supabase-admin.md +18 -4
- package/src/templates/claude-optimized/.claude/commands/sparc/tdd.md +23 -9
- package/src/templates/claude-optimized/.claude/commands/sparc/tutorial.md +22 -16
- package/src/templates/claude-optimized/.claude/commands/sparc.md +20 -1
- package/src/templates/claude-optimized/README.md +10 -1
- package/src/templates/claude-optimized/SUMMARY.md +23 -1
- package/src/templates/claude-optimized/deploy-to-project.js +22 -10
- package/src/templates/claude-optimized/install-template.js +14 -10
- package/src/templates/claude-optimized/manifest.json +1 -1
- package/src/templates/claude-optimized/package.json +1 -1
- package/src/templates/claude-optimized/template-manager.js +8 -8
- package/src/templates/claude-optimized/validate-template.js +33 -23
- package/src/terminal/adapters/base.ts +1 -1
- package/src/terminal/adapters/native.ts +47 -47
- package/src/terminal/adapters/vscode.ts +21 -28
- package/src/terminal/manager.ts +27 -22
- package/src/terminal/pool.ts +24 -27
- package/src/terminal/session.ts +18 -18
- package/src/terminal/vscode-bridge.ts +21 -21
- package/src/tests/validation-consistency.test.ts +4 -4
- package/src/types/cliffy.d.ts +11 -14
- package/src/types/global.d.ts +1 -2
- package/src/types/index.ts +2 -2
- package/src/types/mcp.d.ts +11 -17
- package/src/types/vscode.d.ts +18 -5
- package/src/ui/console/README-analysis-tools.md +52 -2
- package/src/ui/console/README.md +33 -1
- package/src/ui/console/WORKFLOW_DESIGNER_README.md +81 -22
- package/src/ui/console/analysis-tools.html +282 -261
- package/src/ui/console/analytics.html +329 -326
- package/src/ui/console/index.html +221 -209
- package/src/ui/console/js/analysis-tools.js +815 -754
- package/src/ui/console/js/command-handler.js +226 -196
- package/src/ui/console/js/console.js +117 -119
- package/src/ui/console/js/daa-tools.js +797 -787
- package/src/ui/console/js/memory-interface.js +676 -638
- package/src/ui/console/js/memory-test.js +49 -46
- package/src/ui/console/js/memory-tools.js +181 -159
- package/src/ui/console/js/settings.js +124 -103
- package/src/ui/console/js/terminal-emulator.js +147 -130
- package/src/ui/console/js/websocket-client.js +71 -71
- package/src/ui/console/js/workflow-designer.js +1126 -1110
- package/src/ui/console/neural-networks-demo.md +45 -16
- package/src/ui/console/styles/analysis-tools.css +571 -561
- package/src/ui/console/styles/console.css +16 -12
- package/src/ui/console/styles/daa-tools.css +322 -319
- package/src/ui/console/styles/responsive.css +71 -70
- package/src/ui/console/styles/settings.css +12 -12
- package/src/ui/console/styles/workflow-designer.css +628 -584
- package/src/ui/console/test-neural-networks.js +59 -54
- package/src/ui/console/test-neural.html +194 -196
- package/src/ui/console/workflow-designer-demo.html +433 -424
- package/src/ui/hive-dashboard.ts +74 -52
- package/src/ui/web-ui/EnhancedProcessUI.js +570 -424
- package/src/ui/web-ui/EnhancedWebUI.js +65 -65
- package/src/ui/web-ui/README.md +16 -16
- package/src/ui/web-ui/components/ComponentLibrary.js +173 -124
- package/src/ui/web-ui/core/EventBus.js +27 -25
- package/src/ui/web-ui/core/MCPIntegrationLayer.js +294 -108
- package/src/ui/web-ui/core/StateManager.js +43 -46
- package/src/ui/web-ui/core/UIManager.js +120 -70
- package/src/ui/web-ui/core/ViewManager.js +16 -19
- package/src/ui/web-ui/index.js +101 -48
- package/src/ui/web-ui/neural-panel-test.js +109 -108
- package/src/ui/web-ui/test-github-view.js +11 -12
- package/src/ui/web-ui/test-neural-panel.html +219 -205
- package/src/ui/web-ui/views/DAAView.js +88 -85
- package/src/ui/web-ui/views/GitHubIntegrationTest.js +42 -42
- package/src/ui/web-ui/views/GitHubIntegrationView.js +59 -53
- package/src/ui/web-ui/views/NeuralNetworkView.js +20 -21
- package/src/ui/web-ui/views/WorkflowAutomationView.js +31 -32
- package/src/utils/error-handler.js +1 -1
- package/src/utils/error-handler.ts +9 -5
- package/src/utils/errors.ts +20 -18
- package/src/utils/formatters.ts +6 -6
- package/src/utils/helpers.ts +53 -55
- package/src/utils/npx-isolated-cache.js +16 -16
- package/src/utils/paths.ts +9 -6
- package/src/utils/timezone-utils.js +16 -16
- package/src/utils/type-guards.ts +37 -26
- package/src/utils/types.ts +2 -2
|
@@ -17,9 +17,9 @@ export class SparcCompletion extends SparcPhase {
|
|
|
17
17
|
*/
|
|
18
18
|
async execute() {
|
|
19
19
|
console.log('🏁 Starting Completion Phase');
|
|
20
|
-
|
|
20
|
+
|
|
21
21
|
await this.initializePhase();
|
|
22
|
-
|
|
22
|
+
|
|
23
23
|
const result = {
|
|
24
24
|
integration: null,
|
|
25
25
|
deployment: null,
|
|
@@ -34,7 +34,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
34
34
|
validated: false,
|
|
35
35
|
documented: false,
|
|
36
36
|
deployed: false,
|
|
37
|
-
ready: false
|
|
37
|
+
ready: false,
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
try {
|
|
@@ -43,44 +43,52 @@ export class SparcCompletion extends SparcPhase {
|
|
|
43
43
|
const pseudocode = await this.retrieveFromMemory('pseudocode_complete');
|
|
44
44
|
const architecture = await this.retrieveFromMemory('architecture_complete');
|
|
45
45
|
const refinement = await this.retrieveFromMemory('refinement_complete');
|
|
46
|
-
|
|
46
|
+
|
|
47
47
|
if (!specification || !pseudocode || !architecture || !refinement) {
|
|
48
48
|
throw new Error('All previous SPARC phases must be completed first');
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
// System integration
|
|
52
|
-
result.integration = await this.performSystemIntegration(
|
|
53
|
-
|
|
52
|
+
result.integration = await this.performSystemIntegration(
|
|
53
|
+
specification,
|
|
54
|
+
architecture,
|
|
55
|
+
refinement,
|
|
56
|
+
);
|
|
57
|
+
|
|
54
58
|
// Final validation
|
|
55
59
|
result.validation = await this.performFinalValidation(specification, refinement);
|
|
56
60
|
result.validated = result.validation.passed;
|
|
57
|
-
|
|
61
|
+
|
|
58
62
|
// Documentation finalization
|
|
59
|
-
result.documentation = await this.finalizeDocumentation(
|
|
63
|
+
result.documentation = await this.finalizeDocumentation(
|
|
64
|
+
specification,
|
|
65
|
+
architecture,
|
|
66
|
+
refinement,
|
|
67
|
+
);
|
|
60
68
|
result.documented = result.documentation.complete;
|
|
61
|
-
|
|
69
|
+
|
|
62
70
|
// Deployment preparation and execution
|
|
63
71
|
result.deployment = await this.performDeployment(architecture, refinement);
|
|
64
72
|
result.deployed = result.deployment.successful;
|
|
65
|
-
|
|
73
|
+
|
|
66
74
|
// Monitoring setup
|
|
67
75
|
result.monitoring = await this.setupMonitoring(architecture, refinement);
|
|
68
|
-
|
|
76
|
+
|
|
69
77
|
// Cleanup and optimization
|
|
70
78
|
result.cleanup = await this.performCleanup(refinement);
|
|
71
|
-
|
|
79
|
+
|
|
72
80
|
// Knowledge transfer and handover
|
|
73
81
|
result.handover = await this.performHandover(result);
|
|
74
|
-
|
|
82
|
+
|
|
75
83
|
// Capture lessons learned
|
|
76
84
|
result.lessons = await this.captureLessons(specification, architecture, refinement);
|
|
77
|
-
|
|
85
|
+
|
|
78
86
|
// Calculate final metrics
|
|
79
87
|
result.metrics = await this.calculateFinalMetrics(result);
|
|
80
|
-
|
|
88
|
+
|
|
81
89
|
// Generate deliverables list
|
|
82
90
|
result.deliverables = await this.generateDeliverables(result);
|
|
83
|
-
|
|
91
|
+
|
|
84
92
|
// Final readiness check
|
|
85
93
|
result.ready = this.assessReadiness(result);
|
|
86
94
|
|
|
@@ -92,7 +100,6 @@ export class SparcCompletion extends SparcPhase {
|
|
|
92
100
|
|
|
93
101
|
console.log('✅ Completion phase finished');
|
|
94
102
|
return result;
|
|
95
|
-
|
|
96
103
|
} catch (error) {
|
|
97
104
|
console.error('❌ Completion phase failed:', error.message);
|
|
98
105
|
throw error;
|
|
@@ -110,14 +117,18 @@ export class SparcCompletion extends SparcPhase {
|
|
|
110
117
|
testResults: [],
|
|
111
118
|
performance: {},
|
|
112
119
|
issues: [],
|
|
113
|
-
status: 'in_progress'
|
|
120
|
+
status: 'in_progress',
|
|
114
121
|
};
|
|
115
122
|
|
|
116
123
|
console.log('🔗 Performing system integration...');
|
|
117
124
|
|
|
118
125
|
// Integrate all components
|
|
119
126
|
for (const component of architecture.components) {
|
|
120
|
-
const componentIntegration = await this.integrateComponent(
|
|
127
|
+
const componentIntegration = await this.integrateComponent(
|
|
128
|
+
component,
|
|
129
|
+
architecture,
|
|
130
|
+
refinement,
|
|
131
|
+
);
|
|
121
132
|
integration.components.push(componentIntegration);
|
|
122
133
|
}
|
|
123
134
|
|
|
@@ -156,7 +167,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
156
167
|
dependencies: [],
|
|
157
168
|
status: 'integrated',
|
|
158
169
|
issues: [],
|
|
159
|
-
performance: {}
|
|
170
|
+
performance: {},
|
|
160
171
|
};
|
|
161
172
|
|
|
162
173
|
// Check dependency integration
|
|
@@ -165,7 +176,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
165
176
|
name: dependency,
|
|
166
177
|
available: true,
|
|
167
178
|
compatible: true,
|
|
168
|
-
version: '1.0.0'
|
|
179
|
+
version: '1.0.0',
|
|
169
180
|
};
|
|
170
181
|
componentIntegration.dependencies.push(depIntegration);
|
|
171
182
|
}
|
|
@@ -173,14 +184,14 @@ export class SparcCompletion extends SparcPhase {
|
|
|
173
184
|
// Test component interfaces
|
|
174
185
|
for (const interfaceName of component.interfaces) {
|
|
175
186
|
// Simulate interface testing
|
|
176
|
-
await new Promise(resolve => setTimeout(resolve, 100));
|
|
187
|
+
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
177
188
|
}
|
|
178
189
|
|
|
179
190
|
// Measure component performance
|
|
180
191
|
componentIntegration.performance = {
|
|
181
192
|
initializationTime: 50 + Math.random() * 100,
|
|
182
193
|
memoryUsage: 10 + Math.random() * 20,
|
|
183
|
-
responsiveness: 'good'
|
|
194
|
+
responsiveness: 'good',
|
|
184
195
|
};
|
|
185
196
|
|
|
186
197
|
return componentIntegration;
|
|
@@ -196,11 +207,11 @@ export class SparcCompletion extends SparcPhase {
|
|
|
196
207
|
status: 'passed',
|
|
197
208
|
responseTime: 50 + Math.random() * 100,
|
|
198
209
|
statusCode: 200,
|
|
199
|
-
issues: []
|
|
210
|
+
issues: [],
|
|
200
211
|
};
|
|
201
212
|
|
|
202
213
|
// Simulate API testing
|
|
203
|
-
await new Promise(resolve => setTimeout(resolve, 100));
|
|
214
|
+
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
204
215
|
|
|
205
216
|
return interfaceTest;
|
|
206
217
|
}
|
|
@@ -217,7 +228,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
217
228
|
status: 'valid',
|
|
218
229
|
latency: 10 + Math.random() * 20,
|
|
219
230
|
throughput: '1000 req/s',
|
|
220
|
-
issues: []
|
|
231
|
+
issues: [],
|
|
221
232
|
};
|
|
222
233
|
|
|
223
234
|
return flowTest;
|
|
@@ -233,7 +244,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
233
244
|
failed: 0,
|
|
234
245
|
duration: 0,
|
|
235
246
|
coverage: 0,
|
|
236
|
-
suites: []
|
|
247
|
+
suites: [],
|
|
237
248
|
};
|
|
238
249
|
|
|
239
250
|
for (const component of components) {
|
|
@@ -243,7 +254,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
243
254
|
passed: 3,
|
|
244
255
|
failed: 0,
|
|
245
256
|
duration: 1000 + Math.random() * 2000,
|
|
246
|
-
issues: []
|
|
257
|
+
issues: [],
|
|
247
258
|
};
|
|
248
259
|
|
|
249
260
|
testResults.suites.push(suite);
|
|
@@ -271,9 +282,9 @@ export class SparcCompletion extends SparcPhase {
|
|
|
271
282
|
{
|
|
272
283
|
component: 'Database connections',
|
|
273
284
|
impact: 'Medium',
|
|
274
|
-
recommendation: 'Optimize connection pooling'
|
|
275
|
-
}
|
|
276
|
-
]
|
|
285
|
+
recommendation: 'Optimize connection pooling',
|
|
286
|
+
},
|
|
287
|
+
],
|
|
277
288
|
};
|
|
278
289
|
}
|
|
279
290
|
|
|
@@ -297,7 +308,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
297
308
|
type: 'performance',
|
|
298
309
|
severity: 'warning',
|
|
299
310
|
message: `Slow API response: ${interfaceTest.path} (${interfaceTest.responseTime}ms)`,
|
|
300
|
-
component: interfaceTest.path
|
|
311
|
+
component: interfaceTest.path,
|
|
301
312
|
});
|
|
302
313
|
}
|
|
303
314
|
}
|
|
@@ -308,7 +319,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
308
319
|
type: 'test_failure',
|
|
309
320
|
severity: 'error',
|
|
310
321
|
message: `${integration.testResults.failed} integration tests failed`,
|
|
311
|
-
component: 'integration_tests'
|
|
322
|
+
component: 'integration_tests',
|
|
312
323
|
});
|
|
313
324
|
}
|
|
314
325
|
|
|
@@ -328,7 +339,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
328
339
|
compatibility: null,
|
|
329
340
|
overall: null,
|
|
330
341
|
passed: false,
|
|
331
|
-
score: 0
|
|
342
|
+
score: 0,
|
|
332
343
|
};
|
|
333
344
|
|
|
334
345
|
console.log('✅ Performing final validation...');
|
|
@@ -371,7 +382,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
371
382
|
fulfilled: true,
|
|
372
383
|
evidence: `Implementation satisfies: ${requirement}`,
|
|
373
384
|
confidence: 90 + Math.random() * 10,
|
|
374
|
-
testCoverage: 95 + Math.random() * 5
|
|
385
|
+
testCoverage: 95 + Math.random() * 5,
|
|
375
386
|
};
|
|
376
387
|
|
|
377
388
|
requirementValidation.push(validation);
|
|
@@ -394,7 +405,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
394
405
|
then: criteria.then,
|
|
395
406
|
satisfied: true,
|
|
396
407
|
testResult: 'passed',
|
|
397
|
-
evidence: 'Automated tests confirm criteria satisfaction'
|
|
408
|
+
evidence: 'Automated tests confirm criteria satisfaction',
|
|
398
409
|
};
|
|
399
410
|
|
|
400
411
|
criteriaValidation.push(validation);
|
|
@@ -412,41 +423,41 @@ export class SparcCompletion extends SparcPhase {
|
|
|
412
423
|
required: 200,
|
|
413
424
|
actual: refinement.performance.responseTime.average,
|
|
414
425
|
passed: refinement.performance.responseTime.average <= 200,
|
|
415
|
-
score: Math.max(0, 100 - (refinement.performance.responseTime.average - 200) / 2)
|
|
426
|
+
score: Math.max(0, 100 - (refinement.performance.responseTime.average - 200) / 2),
|
|
416
427
|
},
|
|
417
428
|
throughput: {
|
|
418
429
|
required: 1000,
|
|
419
430
|
actual: refinement.performance.throughput.requestsPerSecond,
|
|
420
431
|
passed: refinement.performance.throughput.requestsPerSecond >= 1000,
|
|
421
|
-
score: Math.min(100, (refinement.performance.throughput.requestsPerSecond / 1000) * 100)
|
|
432
|
+
score: Math.min(100, (refinement.performance.throughput.requestsPerSecond / 1000) * 100),
|
|
422
433
|
},
|
|
423
434
|
resourceUsage: {
|
|
424
435
|
cpu: {
|
|
425
436
|
required: 80,
|
|
426
437
|
actual: refinement.performance.resource.cpuUsage,
|
|
427
438
|
passed: refinement.performance.resource.cpuUsage <= 80,
|
|
428
|
-
score: Math.max(0, 100 - refinement.performance.resource.cpuUsage)
|
|
439
|
+
score: Math.max(0, 100 - refinement.performance.resource.cpuUsage),
|
|
429
440
|
},
|
|
430
441
|
memory: {
|
|
431
442
|
required: 80,
|
|
432
443
|
actual: refinement.performance.resource.memoryUsage,
|
|
433
444
|
passed: refinement.performance.resource.memoryUsage <= 80,
|
|
434
|
-
score: Math.max(0, 100 - refinement.performance.resource.memoryUsage)
|
|
435
|
-
}
|
|
445
|
+
score: Math.max(0, 100 - refinement.performance.resource.memoryUsage),
|
|
446
|
+
},
|
|
436
447
|
},
|
|
437
448
|
overall: {
|
|
438
449
|
score: 0,
|
|
439
|
-
passed: false
|
|
440
|
-
}
|
|
450
|
+
passed: false,
|
|
451
|
+
},
|
|
441
452
|
};
|
|
442
453
|
|
|
443
454
|
// Calculate overall performance score
|
|
444
|
-
performanceValidation.overall.score =
|
|
445
|
-
performanceValidation.responseTime.score +
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
455
|
+
performanceValidation.overall.score =
|
|
456
|
+
(performanceValidation.responseTime.score +
|
|
457
|
+
performanceValidation.throughput.score +
|
|
458
|
+
performanceValidation.resourceUsage.cpu.score +
|
|
459
|
+
performanceValidation.resourceUsage.memory.score) /
|
|
460
|
+
4;
|
|
450
461
|
|
|
451
462
|
performanceValidation.overall.passed = performanceValidation.overall.score >= 80;
|
|
452
463
|
|
|
@@ -460,18 +471,18 @@ export class SparcCompletion extends SparcPhase {
|
|
|
460
471
|
const securityValidation = {
|
|
461
472
|
vulnerabilities: {
|
|
462
473
|
critical: 0,
|
|
463
|
-
high: refinement.security.vulnerabilities.filter(v => v.severity === 'High').length,
|
|
464
|
-
medium: refinement.security.vulnerabilities.filter(v => v.severity === 'Medium').length,
|
|
465
|
-
low: refinement.security.vulnerabilities.filter(v => v.severity === 'Low').length
|
|
474
|
+
high: refinement.security.vulnerabilities.filter((v) => v.severity === 'High').length,
|
|
475
|
+
medium: refinement.security.vulnerabilities.filter((v) => v.severity === 'Medium').length,
|
|
476
|
+
low: refinement.security.vulnerabilities.filter((v) => v.severity === 'Low').length,
|
|
466
477
|
},
|
|
467
478
|
compliance: {
|
|
468
479
|
owasp: refinement.security.compliance.owasp === 'Compliant',
|
|
469
480
|
gdpr: refinement.security.compliance.gdpr === 'Compliant',
|
|
470
|
-
iso27001: refinement.security.compliance.iso27001 === 'Compliant'
|
|
481
|
+
iso27001: refinement.security.compliance.iso27001 === 'Compliant',
|
|
471
482
|
},
|
|
472
483
|
score: refinement.security.score,
|
|
473
484
|
passed: refinement.security.score >= 80,
|
|
474
|
-
recommendations: refinement.security.recommendations
|
|
485
|
+
recommendations: refinement.security.recommendations,
|
|
475
486
|
};
|
|
476
487
|
|
|
477
488
|
return securityValidation;
|
|
@@ -485,22 +496,22 @@ export class SparcCompletion extends SparcPhase {
|
|
|
485
496
|
accessibility: {
|
|
486
497
|
score: 95,
|
|
487
498
|
passed: true,
|
|
488
|
-
standards: 'WCAG 2.1 AA compliant'
|
|
499
|
+
standards: 'WCAG 2.1 AA compliant',
|
|
489
500
|
},
|
|
490
501
|
userExperience: {
|
|
491
502
|
score: 90,
|
|
492
503
|
passed: true,
|
|
493
|
-
feedback: 'Intuitive interface with clear navigation'
|
|
504
|
+
feedback: 'Intuitive interface with clear navigation',
|
|
494
505
|
},
|
|
495
506
|
documentation: {
|
|
496
507
|
score: 88,
|
|
497
508
|
passed: true,
|
|
498
|
-
completeness: 'User guide and API documentation complete'
|
|
509
|
+
completeness: 'User guide and API documentation complete',
|
|
499
510
|
},
|
|
500
511
|
overall: {
|
|
501
512
|
score: 91,
|
|
502
|
-
passed: true
|
|
503
|
-
}
|
|
513
|
+
passed: true,
|
|
514
|
+
},
|
|
504
515
|
};
|
|
505
516
|
}
|
|
506
517
|
|
|
@@ -514,24 +525,24 @@ export class SparcCompletion extends SparcPhase {
|
|
|
514
525
|
firefox: true,
|
|
515
526
|
safari: true,
|
|
516
527
|
edge: true,
|
|
517
|
-
score: 100
|
|
528
|
+
score: 100,
|
|
518
529
|
},
|
|
519
530
|
platforms: {
|
|
520
531
|
windows: true,
|
|
521
532
|
macos: true,
|
|
522
533
|
linux: true,
|
|
523
|
-
score: 100
|
|
534
|
+
score: 100,
|
|
524
535
|
},
|
|
525
536
|
devices: {
|
|
526
537
|
desktop: true,
|
|
527
538
|
tablet: true,
|
|
528
539
|
mobile: true,
|
|
529
|
-
score: 100
|
|
540
|
+
score: 100,
|
|
530
541
|
},
|
|
531
542
|
overall: {
|
|
532
543
|
score: 100,
|
|
533
|
-
passed: true
|
|
534
|
-
}
|
|
544
|
+
passed: true,
|
|
545
|
+
},
|
|
535
546
|
};
|
|
536
547
|
}
|
|
537
548
|
|
|
@@ -545,27 +556,33 @@ export class SparcCompletion extends SparcPhase {
|
|
|
545
556
|
performance: 0.2,
|
|
546
557
|
security: 0.15,
|
|
547
558
|
usability: 0.05,
|
|
548
|
-
compatibility: 0.05
|
|
559
|
+
compatibility: 0.05,
|
|
549
560
|
};
|
|
550
561
|
|
|
551
562
|
const scores = {
|
|
552
|
-
requirements:
|
|
553
|
-
|
|
563
|
+
requirements:
|
|
564
|
+
(validation.requirements.filter((r) => r.fulfilled).length /
|
|
565
|
+
validation.requirements.length) *
|
|
566
|
+
100,
|
|
567
|
+
acceptanceCriteria:
|
|
568
|
+
(validation.acceptanceCriteria.filter((c) => c.satisfied).length /
|
|
569
|
+
validation.acceptanceCriteria.length) *
|
|
570
|
+
100,
|
|
554
571
|
performance: validation.performance.overall.score,
|
|
555
572
|
security: validation.security.score,
|
|
556
573
|
usability: validation.usability.overall.score,
|
|
557
|
-
compatibility: validation.compatibility.overall.score
|
|
574
|
+
compatibility: validation.compatibility.overall.score,
|
|
558
575
|
};
|
|
559
576
|
|
|
560
577
|
const overallScore = Object.entries(weights).reduce((total, [category, weight]) => {
|
|
561
|
-
return total +
|
|
578
|
+
return total + scores[category] * weight;
|
|
562
579
|
}, 0);
|
|
563
580
|
|
|
564
581
|
return {
|
|
565
582
|
score: overallScore,
|
|
566
583
|
passed: overallScore >= 80,
|
|
567
584
|
breakdown: scores,
|
|
568
|
-
weights: weights
|
|
585
|
+
weights: weights,
|
|
569
586
|
};
|
|
570
587
|
}
|
|
571
588
|
|
|
@@ -581,7 +598,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
581
598
|
changeLog: null,
|
|
582
599
|
licenseInfo: null,
|
|
583
600
|
complete: false,
|
|
584
|
-
coverage: 0
|
|
601
|
+
coverage: 0,
|
|
585
602
|
};
|
|
586
603
|
|
|
587
604
|
console.log('📚 Finalizing documentation...');
|
|
@@ -606,7 +623,8 @@ export class SparcCompletion extends SparcPhase {
|
|
|
606
623
|
|
|
607
624
|
// Calculate documentation coverage
|
|
608
625
|
const totalDocs = 6;
|
|
609
|
-
const completedDocs =
|
|
626
|
+
const completedDocs =
|
|
627
|
+
Object.values(documentation).filter((doc) => doc !== null && doc !== false).length - 2; // Exclude complete and coverage
|
|
610
628
|
documentation.coverage = (completedDocs / totalDocs) * 100;
|
|
611
629
|
documentation.complete = documentation.coverage >= 90;
|
|
612
630
|
|
|
@@ -622,35 +640,35 @@ export class SparcCompletion extends SparcPhase {
|
|
|
622
640
|
version: '1.0.0',
|
|
623
641
|
sections: [],
|
|
624
642
|
pageCount: 0,
|
|
625
|
-
completeness: 100
|
|
643
|
+
completeness: 100,
|
|
626
644
|
};
|
|
627
645
|
|
|
628
646
|
userGuide.sections = [
|
|
629
647
|
{
|
|
630
648
|
title: 'Getting Started',
|
|
631
649
|
content: 'Introduction and quick start guide',
|
|
632
|
-
pages: 3
|
|
650
|
+
pages: 3,
|
|
633
651
|
},
|
|
634
652
|
{
|
|
635
653
|
title: 'Basic Operations',
|
|
636
654
|
content: 'Core functionality and common use cases',
|
|
637
|
-
pages: 5
|
|
655
|
+
pages: 5,
|
|
638
656
|
},
|
|
639
657
|
{
|
|
640
658
|
title: 'Advanced Features',
|
|
641
659
|
content: 'Advanced configuration and customization',
|
|
642
|
-
pages: 4
|
|
660
|
+
pages: 4,
|
|
643
661
|
},
|
|
644
662
|
{
|
|
645
663
|
title: 'Troubleshooting',
|
|
646
664
|
content: 'Common issues and solutions',
|
|
647
|
-
pages: 2
|
|
665
|
+
pages: 2,
|
|
648
666
|
},
|
|
649
667
|
{
|
|
650
668
|
title: 'FAQ',
|
|
651
669
|
content: 'Frequently asked questions',
|
|
652
|
-
pages: 2
|
|
653
|
-
}
|
|
670
|
+
pages: 2,
|
|
671
|
+
},
|
|
654
672
|
];
|
|
655
673
|
|
|
656
674
|
userGuide.pageCount = userGuide.sections.reduce((total, section) => total + section.pages, 0);
|
|
@@ -670,7 +688,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
670
688
|
endpoints: architecture.apiDesign.endpoints.length,
|
|
671
689
|
schemas: architecture.apiDesign.schemas.length,
|
|
672
690
|
examples: architecture.apiDesign.endpoints.length * 2,
|
|
673
|
-
completeness: 100
|
|
691
|
+
completeness: 100,
|
|
674
692
|
};
|
|
675
693
|
|
|
676
694
|
return apiDoc;
|
|
@@ -689,10 +707,10 @@ export class SparcCompletion extends SparcPhase {
|
|
|
689
707
|
'Application deployment',
|
|
690
708
|
'Configuration management',
|
|
691
709
|
'Health checks and monitoring',
|
|
692
|
-
'Troubleshooting deployment issues'
|
|
710
|
+
'Troubleshooting deployment issues',
|
|
693
711
|
],
|
|
694
712
|
automation: 'Docker and CI/CD pipeline included',
|
|
695
|
-
completeness: 100
|
|
713
|
+
completeness: 100,
|
|
696
714
|
};
|
|
697
715
|
|
|
698
716
|
return deploymentGuide;
|
|
@@ -708,24 +726,27 @@ export class SparcCompletion extends SparcPhase {
|
|
|
708
726
|
{
|
|
709
727
|
category: 'Performance Issues',
|
|
710
728
|
issues: refinement.performance.bottlenecks.length,
|
|
711
|
-
solutions: refinement.performance.recommendations.length
|
|
729
|
+
solutions: refinement.performance.recommendations.length,
|
|
712
730
|
},
|
|
713
731
|
{
|
|
714
732
|
category: 'Security Concerns',
|
|
715
733
|
issues: refinement.security.vulnerabilities.length,
|
|
716
|
-
solutions: refinement.security.recommendations.length
|
|
734
|
+
solutions: refinement.security.recommendations.length,
|
|
717
735
|
},
|
|
718
736
|
{
|
|
719
737
|
category: 'Common Errors',
|
|
720
738
|
issues: 5,
|
|
721
|
-
solutions: 5
|
|
722
|
-
}
|
|
739
|
+
solutions: 5,
|
|
740
|
+
},
|
|
723
741
|
],
|
|
724
742
|
totalIssues: 0,
|
|
725
|
-
completeness: 100
|
|
743
|
+
completeness: 100,
|
|
726
744
|
};
|
|
727
745
|
|
|
728
|
-
troubleshootingGuide.totalIssues = troubleshootingGuide.sections.reduce(
|
|
746
|
+
troubleshootingGuide.totalIssues = troubleshootingGuide.sections.reduce(
|
|
747
|
+
(total, section) => total + section.issues,
|
|
748
|
+
0,
|
|
749
|
+
);
|
|
729
750
|
|
|
730
751
|
return troubleshootingGuide;
|
|
731
752
|
}
|
|
@@ -743,9 +764,9 @@ export class SparcCompletion extends SparcPhase {
|
|
|
743
764
|
'Core functionality implemented',
|
|
744
765
|
'API endpoints available',
|
|
745
766
|
'Documentation complete',
|
|
746
|
-
'Security measures in place'
|
|
767
|
+
'Security measures in place',
|
|
747
768
|
],
|
|
748
|
-
completeness: 100
|
|
769
|
+
completeness: 100,
|
|
749
770
|
};
|
|
750
771
|
}
|
|
751
772
|
|
|
@@ -759,7 +780,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
759
780
|
copyright: `© ${new Date().getFullYear()} Project Team`,
|
|
760
781
|
permissions: ['Commercial use', 'Modification', 'Distribution', 'Private use'],
|
|
761
782
|
limitations: ['Liability', 'Warranty'],
|
|
762
|
-
completeness: 100
|
|
783
|
+
completeness: 100,
|
|
763
784
|
};
|
|
764
785
|
}
|
|
765
786
|
|
|
@@ -774,7 +795,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
774
795
|
successful: false,
|
|
775
796
|
rollback: null,
|
|
776
797
|
monitoring: null,
|
|
777
|
-
healthChecks: []
|
|
798
|
+
healthChecks: [],
|
|
778
799
|
};
|
|
779
800
|
|
|
780
801
|
console.log('🚀 Performing deployment...');
|
|
@@ -792,7 +813,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
792
813
|
deployment.monitoring = await this.configureDeploymentMonitoring();
|
|
793
814
|
|
|
794
815
|
// Check deployment status
|
|
795
|
-
deployment.successful = deployment.environments.every(env => env.status === 'deployed');
|
|
816
|
+
deployment.successful = deployment.environments.every((env) => env.status === 'deployed');
|
|
796
817
|
deployment.status = deployment.successful ? 'deployed' : 'failed';
|
|
797
818
|
|
|
798
819
|
// Prepare rollback plan if needed
|
|
@@ -815,12 +836,12 @@ export class SparcCompletion extends SparcPhase {
|
|
|
815
836
|
duration: 0,
|
|
816
837
|
url: null,
|
|
817
838
|
healthCheck: null,
|
|
818
|
-
rollbackUrl: null
|
|
839
|
+
rollbackUrl: null,
|
|
819
840
|
};
|
|
820
841
|
|
|
821
842
|
// Simulate deployment process
|
|
822
843
|
const deploymentTime = environment.name === 'production' ? 5000 : 2000;
|
|
823
|
-
await new Promise(resolve => setTimeout(resolve, deploymentTime));
|
|
844
|
+
await new Promise((resolve) => setTimeout(resolve, deploymentTime));
|
|
824
845
|
|
|
825
846
|
envDeployment.endTime = Date.now();
|
|
826
847
|
envDeployment.duration = envDeployment.endTime - envDeployment.startTime;
|
|
@@ -845,22 +866,22 @@ export class SparcCompletion extends SparcPhase {
|
|
|
845
866
|
endpoint: '/health',
|
|
846
867
|
interval: '30s',
|
|
847
868
|
timeout: '5s',
|
|
848
|
-
expectedStatus: 200
|
|
869
|
+
expectedStatus: 200,
|
|
849
870
|
},
|
|
850
871
|
{
|
|
851
872
|
name: 'Database Connection',
|
|
852
873
|
endpoint: '/health/db',
|
|
853
874
|
interval: '60s',
|
|
854
875
|
timeout: '10s',
|
|
855
|
-
expectedStatus: 200
|
|
876
|
+
expectedStatus: 200,
|
|
856
877
|
},
|
|
857
878
|
{
|
|
858
879
|
name: 'API Responsiveness',
|
|
859
880
|
endpoint: '/health/api',
|
|
860
881
|
interval: '30s',
|
|
861
882
|
timeout: '5s',
|
|
862
|
-
expectedStatus: 200
|
|
863
|
-
}
|
|
883
|
+
expectedStatus: 200,
|
|
884
|
+
},
|
|
864
885
|
];
|
|
865
886
|
}
|
|
866
887
|
|
|
@@ -869,25 +890,15 @@ export class SparcCompletion extends SparcPhase {
|
|
|
869
890
|
*/
|
|
870
891
|
async configureDeploymentMonitoring() {
|
|
871
892
|
return {
|
|
872
|
-
metrics: [
|
|
873
|
-
'CPU usage',
|
|
874
|
-
'Memory usage',
|
|
875
|
-
'Request rate',
|
|
876
|
-
'Response time',
|
|
877
|
-
'Error rate'
|
|
878
|
-
],
|
|
893
|
+
metrics: ['CPU usage', 'Memory usage', 'Request rate', 'Response time', 'Error rate'],
|
|
879
894
|
alerts: [
|
|
880
895
|
'High error rate (>5%)',
|
|
881
896
|
'Slow response time (>500ms)',
|
|
882
897
|
'High resource usage (>80%)',
|
|
883
|
-
'Health check failures'
|
|
884
|
-
],
|
|
885
|
-
dashboards: [
|
|
886
|
-
'Application Performance',
|
|
887
|
-
'Infrastructure Metrics',
|
|
888
|
-
'Business Metrics'
|
|
898
|
+
'Health check failures',
|
|
889
899
|
],
|
|
890
|
-
|
|
900
|
+
dashboards: ['Application Performance', 'Infrastructure Metrics', 'Business Metrics'],
|
|
901
|
+
retention: '30 days',
|
|
891
902
|
};
|
|
892
903
|
}
|
|
893
904
|
|
|
@@ -896,7 +907,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
896
907
|
*/
|
|
897
908
|
async runHealthCheck(endpoint) {
|
|
898
909
|
// Simulate health check
|
|
899
|
-
await new Promise(resolve => setTimeout(resolve, 1000));
|
|
910
|
+
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
900
911
|
|
|
901
912
|
return {
|
|
902
913
|
status: 'healthy',
|
|
@@ -906,8 +917,8 @@ export class SparcCompletion extends SparcPhase {
|
|
|
906
917
|
{ name: 'Application', status: 'healthy' },
|
|
907
918
|
{ name: 'Database', status: 'healthy' },
|
|
908
919
|
{ name: 'Cache', status: 'healthy' },
|
|
909
|
-
{ name: 'External APIs', status: 'healthy' }
|
|
910
|
-
]
|
|
920
|
+
{ name: 'External APIs', status: 'healthy' },
|
|
921
|
+
],
|
|
911
922
|
};
|
|
912
923
|
}
|
|
913
924
|
|
|
@@ -923,14 +934,14 @@ export class SparcCompletion extends SparcPhase {
|
|
|
923
934
|
'Deploy previous version',
|
|
924
935
|
'Update load balancer',
|
|
925
936
|
'Verify health checks',
|
|
926
|
-
'Notify stakeholders'
|
|
937
|
+
'Notify stakeholders',
|
|
927
938
|
],
|
|
928
939
|
triggers: [
|
|
929
940
|
'Health check failures',
|
|
930
941
|
'High error rate',
|
|
931
942
|
'Performance degradation',
|
|
932
|
-
'Manual trigger'
|
|
933
|
-
]
|
|
943
|
+
'Manual trigger',
|
|
944
|
+
],
|
|
934
945
|
};
|
|
935
946
|
}
|
|
936
947
|
|
|
@@ -944,7 +955,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
944
955
|
business: null,
|
|
945
956
|
alerts: null,
|
|
946
957
|
dashboards: null,
|
|
947
|
-
logging: null
|
|
958
|
+
logging: null,
|
|
948
959
|
};
|
|
949
960
|
|
|
950
961
|
console.log('📊 Setting up monitoring...');
|
|
@@ -954,7 +965,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
954
965
|
metrics: ['CPU', 'Memory', 'Disk', 'Network'],
|
|
955
966
|
tools: ['Prometheus', 'Grafana'],
|
|
956
967
|
retention: '30 days',
|
|
957
|
-
alerting: 'PagerDuty integration'
|
|
968
|
+
alerting: 'PagerDuty integration',
|
|
958
969
|
};
|
|
959
970
|
|
|
960
971
|
// Application monitoring
|
|
@@ -962,14 +973,14 @@ export class SparcCompletion extends SparcPhase {
|
|
|
962
973
|
metrics: ['Response time', 'Throughput', 'Error rate', 'Availability'],
|
|
963
974
|
tracing: 'Distributed tracing enabled',
|
|
964
975
|
profiling: 'Performance profiling',
|
|
965
|
-
alerts: 'Automated alerting rules'
|
|
976
|
+
alerts: 'Automated alerting rules',
|
|
966
977
|
};
|
|
967
978
|
|
|
968
979
|
// Business monitoring
|
|
969
980
|
monitoring.business = {
|
|
970
981
|
metrics: ['User activity', 'Feature usage', 'Conversion rates'],
|
|
971
982
|
analytics: 'Business intelligence dashboards',
|
|
972
|
-
reporting: 'Automated daily/weekly reports'
|
|
983
|
+
reporting: 'Automated daily/weekly reports',
|
|
973
984
|
};
|
|
974
985
|
|
|
975
986
|
// Alert configuration
|
|
@@ -978,20 +989,20 @@ export class SparcCompletion extends SparcPhase {
|
|
|
978
989
|
name: 'High Error Rate',
|
|
979
990
|
condition: 'error_rate > 5%',
|
|
980
991
|
severity: 'critical',
|
|
981
|
-
notification: 'immediate'
|
|
992
|
+
notification: 'immediate',
|
|
982
993
|
},
|
|
983
994
|
{
|
|
984
995
|
name: 'Slow Response Time',
|
|
985
996
|
condition: 'response_time > 500ms',
|
|
986
997
|
severity: 'warning',
|
|
987
|
-
notification: '5 minutes'
|
|
998
|
+
notification: '5 minutes',
|
|
988
999
|
},
|
|
989
1000
|
{
|
|
990
1001
|
name: 'High Resource Usage',
|
|
991
1002
|
condition: 'cpu_usage > 80%',
|
|
992
1003
|
severity: 'warning',
|
|
993
|
-
notification: '10 minutes'
|
|
994
|
-
}
|
|
1004
|
+
notification: '10 minutes',
|
|
1005
|
+
},
|
|
995
1006
|
];
|
|
996
1007
|
|
|
997
1008
|
// Dashboard setup
|
|
@@ -999,7 +1010,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
999
1010
|
'System Overview',
|
|
1000
1011
|
'Application Performance',
|
|
1001
1012
|
'Security Metrics',
|
|
1002
|
-
'Business KPIs'
|
|
1013
|
+
'Business KPIs',
|
|
1003
1014
|
];
|
|
1004
1015
|
|
|
1005
1016
|
// Logging configuration
|
|
@@ -1007,7 +1018,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1007
1018
|
centralized: 'ELK Stack',
|
|
1008
1019
|
retention: '90 days',
|
|
1009
1020
|
searchable: true,
|
|
1010
|
-
structured: 'JSON format'
|
|
1021
|
+
structured: 'JSON format',
|
|
1011
1022
|
};
|
|
1012
1023
|
|
|
1013
1024
|
return monitoring;
|
|
@@ -1022,7 +1033,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1022
1033
|
unusedDependencies: 0,
|
|
1023
1034
|
codeOptimization: null,
|
|
1024
1035
|
resourceOptimization: null,
|
|
1025
|
-
securityHardening: null
|
|
1036
|
+
securityHardening: null,
|
|
1026
1037
|
};
|
|
1027
1038
|
|
|
1028
1039
|
console.log('🧹 Performing cleanup...');
|
|
@@ -1069,7 +1080,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1069
1080
|
bundleSize: 'Reduced by 15%',
|
|
1070
1081
|
loadTime: 'Improved by 20%',
|
|
1071
1082
|
memoryUsage: 'Optimized allocation patterns',
|
|
1072
|
-
cacheStrategy: 'Enhanced caching rules'
|
|
1083
|
+
cacheStrategy: 'Enhanced caching rules',
|
|
1073
1084
|
};
|
|
1074
1085
|
}
|
|
1075
1086
|
|
|
@@ -1081,7 +1092,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1081
1092
|
containers: 'Rightsized container resources',
|
|
1082
1093
|
databases: 'Optimized query performance',
|
|
1083
1094
|
networks: 'Improved connection pooling',
|
|
1084
|
-
storage: 'Implemented data compression'
|
|
1095
|
+
storage: 'Implemented data compression',
|
|
1085
1096
|
};
|
|
1086
1097
|
}
|
|
1087
1098
|
|
|
@@ -1093,7 +1104,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1093
1104
|
headers: 'Security headers configured',
|
|
1094
1105
|
tls: 'TLS 1.3 enabled',
|
|
1095
1106
|
secrets: 'Secrets rotation implemented',
|
|
1096
|
-
access: 'Principle of least privilege applied'
|
|
1107
|
+
access: 'Principle of least privilege applied',
|
|
1097
1108
|
};
|
|
1098
1109
|
}
|
|
1099
1110
|
|
|
@@ -1106,17 +1117,25 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1106
1117
|
documentation: null,
|
|
1107
1118
|
training: null,
|
|
1108
1119
|
support: null,
|
|
1109
|
-
maintenance: null
|
|
1120
|
+
maintenance: null,
|
|
1110
1121
|
};
|
|
1111
1122
|
|
|
1112
1123
|
console.log('🤝 Performing knowledge handover...');
|
|
1113
1124
|
|
|
1114
1125
|
// Identify stakeholders
|
|
1115
1126
|
handover.stakeholders = [
|
|
1116
|
-
{
|
|
1117
|
-
|
|
1127
|
+
{
|
|
1128
|
+
role: 'Product Owner',
|
|
1129
|
+
contact: 'product@example.com',
|
|
1130
|
+
responsibility: 'Product decisions',
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
role: 'Development Team',
|
|
1134
|
+
contact: 'dev@example.com',
|
|
1135
|
+
responsibility: 'Ongoing development',
|
|
1136
|
+
},
|
|
1118
1137
|
{ role: 'Operations Team', contact: 'ops@example.com', responsibility: 'System operations' },
|
|
1119
|
-
{ role: 'Support Team', contact: 'support@example.com', responsibility: 'User support' }
|
|
1138
|
+
{ role: 'Support Team', contact: 'support@example.com', responsibility: 'User support' },
|
|
1120
1139
|
];
|
|
1121
1140
|
|
|
1122
1141
|
// Prepare handover documentation
|
|
@@ -1124,7 +1143,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1124
1143
|
systemOverview: 'Complete system architecture and design',
|
|
1125
1144
|
operationalGuides: 'Deployment and maintenance procedures',
|
|
1126
1145
|
troubleshooting: 'Common issues and resolution steps',
|
|
1127
|
-
contacts: 'Key personnel and escalation procedures'
|
|
1146
|
+
contacts: 'Key personnel and escalation procedures',
|
|
1128
1147
|
};
|
|
1129
1148
|
|
|
1130
1149
|
// Training plan
|
|
@@ -1133,10 +1152,10 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1133
1152
|
'System architecture overview',
|
|
1134
1153
|
'Deployment procedures',
|
|
1135
1154
|
'Monitoring and alerting',
|
|
1136
|
-
'Troubleshooting common issues'
|
|
1155
|
+
'Troubleshooting common issues',
|
|
1137
1156
|
],
|
|
1138
1157
|
duration: '2 days',
|
|
1139
|
-
participants: handover.stakeholders.length
|
|
1158
|
+
participants: handover.stakeholders.length,
|
|
1140
1159
|
};
|
|
1141
1160
|
|
|
1142
1161
|
// Support transition
|
|
@@ -1144,7 +1163,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1144
1163
|
period: '30 days',
|
|
1145
1164
|
availability: 'Business hours',
|
|
1146
1165
|
escalation: 'Immediate response for critical issues',
|
|
1147
|
-
knowledge: 'Transfer complete'
|
|
1166
|
+
knowledge: 'Transfer complete',
|
|
1148
1167
|
};
|
|
1149
1168
|
|
|
1150
1169
|
// Maintenance plan
|
|
@@ -1152,7 +1171,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1152
1171
|
schedule: 'Weekly updates, monthly reviews',
|
|
1153
1172
|
responsibilities: 'Clearly defined for each team',
|
|
1154
1173
|
procedures: 'Documented and tested',
|
|
1155
|
-
contacts: 'Emergency contacts available'
|
|
1174
|
+
contacts: 'Emergency contacts available',
|
|
1156
1175
|
};
|
|
1157
1176
|
|
|
1158
1177
|
return handover;
|
|
@@ -1167,7 +1186,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1167
1186
|
challenges: [],
|
|
1168
1187
|
improvements: [],
|
|
1169
1188
|
recommendations: [],
|
|
1170
|
-
metrics: null
|
|
1189
|
+
metrics: null,
|
|
1171
1190
|
};
|
|
1172
1191
|
|
|
1173
1192
|
// Document successes
|
|
@@ -1175,7 +1194,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1175
1194
|
'TDD approach resulted in high test coverage',
|
|
1176
1195
|
'Modular architecture facilitated parallel development',
|
|
1177
1196
|
'Continuous integration caught issues early',
|
|
1178
|
-
'Regular stakeholder communication prevented scope creep'
|
|
1197
|
+
'Regular stakeholder communication prevented scope creep',
|
|
1179
1198
|
];
|
|
1180
1199
|
|
|
1181
1200
|
// Document challenges
|
|
@@ -1183,7 +1202,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1183
1202
|
'Initial requirement ambiguity required multiple clarifications',
|
|
1184
1203
|
'Third-party API integration took longer than expected',
|
|
1185
1204
|
'Performance optimization required additional iteration',
|
|
1186
|
-
'Security requirements evolved during development'
|
|
1205
|
+
'Security requirements evolved during development',
|
|
1187
1206
|
];
|
|
1188
1207
|
|
|
1189
1208
|
// Document improvements for future projects
|
|
@@ -1191,7 +1210,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1191
1210
|
'Establish clearer requirements upfront',
|
|
1192
1211
|
'Allocate more time for third-party integrations',
|
|
1193
1212
|
'Include performance testing earlier in the cycle',
|
|
1194
|
-
'Involve security team from the beginning'
|
|
1213
|
+
'Involve security team from the beginning',
|
|
1195
1214
|
];
|
|
1196
1215
|
|
|
1197
1216
|
// Recommendations for similar projects
|
|
@@ -1199,7 +1218,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1199
1218
|
'Use SPARC methodology for structured development',
|
|
1200
1219
|
'Implement automated testing from day one',
|
|
1201
1220
|
'Plan for 20% buffer time in estimates',
|
|
1202
|
-
'Regular architecture reviews prevent technical debt'
|
|
1221
|
+
'Regular architecture reviews prevent technical debt',
|
|
1203
1222
|
];
|
|
1204
1223
|
|
|
1205
1224
|
// Capture project metrics
|
|
@@ -1207,7 +1226,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1207
1226
|
totalDuration: Date.now() - this.startTime,
|
|
1208
1227
|
phaseDurations: this.calculatePhaseDurations(),
|
|
1209
1228
|
qualityMetrics: this.extractQualityMetrics(refinement),
|
|
1210
|
-
teamProductivity: this.calculateProductivity()
|
|
1229
|
+
teamProductivity: this.calculateProductivity(),
|
|
1211
1230
|
};
|
|
1212
1231
|
|
|
1213
1232
|
return lessons;
|
|
@@ -1223,7 +1242,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1223
1242
|
pseudocode: '1 day',
|
|
1224
1243
|
architecture: '3 days',
|
|
1225
1244
|
refinement: '5 days',
|
|
1226
|
-
completion: '2 days'
|
|
1245
|
+
completion: '2 days',
|
|
1227
1246
|
};
|
|
1228
1247
|
}
|
|
1229
1248
|
|
|
@@ -1235,7 +1254,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1235
1254
|
codeQuality: refinement.codeQuality.overall,
|
|
1236
1255
|
testCoverage: refinement.testResults.coverage,
|
|
1237
1256
|
performance: refinement.performance.responseTime.average,
|
|
1238
|
-
security: refinement.security.score
|
|
1257
|
+
security: refinement.security.score,
|
|
1239
1258
|
};
|
|
1240
1259
|
}
|
|
1241
1260
|
|
|
@@ -1248,7 +1267,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1248
1267
|
testsWritten: 150,
|
|
1249
1268
|
bugsFound: 12,
|
|
1250
1269
|
bugsFixed: 12,
|
|
1251
|
-
features: 8
|
|
1270
|
+
features: 8,
|
|
1252
1271
|
};
|
|
1253
1272
|
}
|
|
1254
1273
|
|
|
@@ -1262,7 +1281,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1262
1281
|
performance: null,
|
|
1263
1282
|
security: null,
|
|
1264
1283
|
completion: null,
|
|
1265
|
-
satisfaction: null
|
|
1284
|
+
satisfaction: null,
|
|
1266
1285
|
};
|
|
1267
1286
|
|
|
1268
1287
|
// Overall project metrics
|
|
@@ -1270,7 +1289,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1270
1289
|
success: result.validated && result.documented && result.deployed,
|
|
1271
1290
|
completeness: this.calculateCompleteness(result),
|
|
1272
1291
|
timeline: 'On schedule',
|
|
1273
|
-
budget: 'Within budget'
|
|
1292
|
+
budget: 'Within budget',
|
|
1274
1293
|
};
|
|
1275
1294
|
|
|
1276
1295
|
// Quality metrics
|
|
@@ -1278,7 +1297,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1278
1297
|
codeQuality: result.validation.performance.overall.score,
|
|
1279
1298
|
testCoverage: 95,
|
|
1280
1299
|
documentation: result.documentation.coverage,
|
|
1281
|
-
maintainability: 90
|
|
1300
|
+
maintainability: 90,
|
|
1282
1301
|
};
|
|
1283
1302
|
|
|
1284
1303
|
// Performance metrics
|
|
@@ -1286,15 +1305,15 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1286
1305
|
responseTime: result.validation.performance.responseTime.actual,
|
|
1287
1306
|
throughput: result.validation.performance.throughput.actual,
|
|
1288
1307
|
resourceEfficiency: 85,
|
|
1289
|
-
scalability: 'Horizontal scaling capable'
|
|
1308
|
+
scalability: 'Horizontal scaling capable',
|
|
1290
1309
|
};
|
|
1291
1310
|
|
|
1292
1311
|
// Security metrics
|
|
1293
1312
|
metrics.security = {
|
|
1294
1313
|
vulnerabilities: result.validation.security.vulnerabilities,
|
|
1295
|
-
compliance: Object.values(result.validation.security.compliance).filter(c => c).length,
|
|
1314
|
+
compliance: Object.values(result.validation.security.compliance).filter((c) => c).length,
|
|
1296
1315
|
score: result.validation.security.score,
|
|
1297
|
-
posture: 'Strong'
|
|
1316
|
+
posture: 'Strong',
|
|
1298
1317
|
};
|
|
1299
1318
|
|
|
1300
1319
|
// Completion metrics
|
|
@@ -1302,7 +1321,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1302
1321
|
deliverables: result.deliverables.length,
|
|
1303
1322
|
requirements: 100, // Percentage fulfilled
|
|
1304
1323
|
acceptance: 'All criteria met',
|
|
1305
|
-
handover: 'Complete'
|
|
1324
|
+
handover: 'Complete',
|
|
1306
1325
|
};
|
|
1307
1326
|
|
|
1308
1327
|
// Stakeholder satisfaction
|
|
@@ -1310,7 +1329,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1310
1329
|
product: 95,
|
|
1311
1330
|
technical: 90,
|
|
1312
1331
|
operational: 88,
|
|
1313
|
-
overall: 91
|
|
1332
|
+
overall: 91,
|
|
1314
1333
|
};
|
|
1315
1334
|
|
|
1316
1335
|
return metrics;
|
|
@@ -1327,7 +1346,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1327
1346
|
result.deployment?.successful,
|
|
1328
1347
|
result.monitoring !== null,
|
|
1329
1348
|
result.cleanup !== null,
|
|
1330
|
-
result.handover !== null
|
|
1349
|
+
result.handover !== null,
|
|
1331
1350
|
];
|
|
1332
1351
|
|
|
1333
1352
|
const completed = components.filter(Boolean).length;
|
|
@@ -1344,57 +1363,59 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1344
1363
|
type: 'code',
|
|
1345
1364
|
location: 'Git repository',
|
|
1346
1365
|
status: 'delivered',
|
|
1347
|
-
description: 'Complete application source code with tests'
|
|
1366
|
+
description: 'Complete application source code with tests',
|
|
1348
1367
|
},
|
|
1349
1368
|
{
|
|
1350
1369
|
name: 'API Documentation',
|
|
1351
1370
|
type: 'documentation',
|
|
1352
1371
|
location: 'Documentation portal',
|
|
1353
1372
|
status: 'delivered',
|
|
1354
|
-
description: 'Complete API reference and examples'
|
|
1373
|
+
description: 'Complete API reference and examples',
|
|
1355
1374
|
},
|
|
1356
1375
|
{
|
|
1357
1376
|
name: 'User Guide',
|
|
1358
1377
|
type: 'documentation',
|
|
1359
1378
|
location: 'Documentation portal',
|
|
1360
1379
|
status: 'delivered',
|
|
1361
|
-
description: 'Comprehensive user manual'
|
|
1380
|
+
description: 'Comprehensive user manual',
|
|
1362
1381
|
},
|
|
1363
1382
|
{
|
|
1364
1383
|
name: 'Deployment Guide',
|
|
1365
1384
|
type: 'documentation',
|
|
1366
1385
|
location: 'Documentation portal',
|
|
1367
1386
|
status: 'delivered',
|
|
1368
|
-
description: 'Step-by-step deployment instructions'
|
|
1387
|
+
description: 'Step-by-step deployment instructions',
|
|
1369
1388
|
},
|
|
1370
1389
|
{
|
|
1371
1390
|
name: 'Production Application',
|
|
1372
1391
|
type: 'application',
|
|
1373
|
-
location:
|
|
1392
|
+
location:
|
|
1393
|
+
result.deployment?.environments?.find((e) => e.name === 'production')?.url ||
|
|
1394
|
+
'Production environment',
|
|
1374
1395
|
status: result.deployment?.successful ? 'delivered' : 'pending',
|
|
1375
|
-
description: 'Fully deployed and operational application'
|
|
1396
|
+
description: 'Fully deployed and operational application',
|
|
1376
1397
|
},
|
|
1377
1398
|
{
|
|
1378
1399
|
name: 'Monitoring Dashboard',
|
|
1379
1400
|
type: 'monitoring',
|
|
1380
1401
|
location: 'Monitoring platform',
|
|
1381
1402
|
status: 'delivered',
|
|
1382
|
-
description: 'Real-time system monitoring and alerting'
|
|
1403
|
+
description: 'Real-time system monitoring and alerting',
|
|
1383
1404
|
},
|
|
1384
1405
|
{
|
|
1385
1406
|
name: 'Test Suite',
|
|
1386
1407
|
type: 'testing',
|
|
1387
1408
|
location: 'CI/CD pipeline',
|
|
1388
1409
|
status: 'delivered',
|
|
1389
|
-
description: 'Automated test suite with high coverage'
|
|
1410
|
+
description: 'Automated test suite with high coverage',
|
|
1390
1411
|
},
|
|
1391
1412
|
{
|
|
1392
1413
|
name: 'Backup and Recovery Plan',
|
|
1393
1414
|
type: 'operations',
|
|
1394
1415
|
location: 'Operations documentation',
|
|
1395
1416
|
status: 'delivered',
|
|
1396
|
-
description: 'Disaster recovery and backup procedures'
|
|
1397
|
-
}
|
|
1417
|
+
description: 'Disaster recovery and backup procedures',
|
|
1418
|
+
},
|
|
1398
1419
|
];
|
|
1399
1420
|
|
|
1400
1421
|
return deliverables;
|
|
@@ -1410,7 +1431,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1410
1431
|
result.deployed,
|
|
1411
1432
|
result.integration?.status === 'completed',
|
|
1412
1433
|
result.monitoring !== null,
|
|
1413
|
-
result.handover !== null
|
|
1434
|
+
result.handover !== null,
|
|
1414
1435
|
];
|
|
1415
1436
|
|
|
1416
1437
|
const passedChecks = readinessChecks.filter(Boolean).length;
|
|
@@ -1430,7 +1451,7 @@ export class SparcCompletion extends SparcPhase {
|
|
|
1430
1451
|
The SPARC methodology implementation has been successfully completed. The project delivered a fully functional system that meets all specified requirements with high quality standards.
|
|
1431
1452
|
|
|
1432
1453
|
### Key Achievements
|
|
1433
|
-
- ✅ **Requirements Fulfilled**: ${result.validation.requirements.filter(r => r.fulfilled).length}/${result.validation.requirements.length} (100%)
|
|
1454
|
+
- ✅ **Requirements Fulfilled**: ${result.validation.requirements.filter((r) => r.fulfilled).length}/${result.validation.requirements.length} (100%)
|
|
1434
1455
|
- ✅ **Quality Score**: ${result.validation.overall.score.toFixed(1)}/100
|
|
1435
1456
|
- ✅ **Test Coverage**: ${result.integration.testResults.coverage.toFixed(1)}%
|
|
1436
1457
|
- ✅ **Security Score**: ${result.validation.security.score}/100
|
|
@@ -1443,21 +1464,29 @@ The SPARC methodology implementation has been successfully completed. The projec
|
|
|
1443
1464
|
### System Integration Status: ${result.integration.status}
|
|
1444
1465
|
|
|
1445
1466
|
#### Components Integrated
|
|
1446
|
-
${result.integration.components
|
|
1467
|
+
${result.integration.components
|
|
1468
|
+
.map(
|
|
1469
|
+
(comp, index) => `
|
|
1447
1470
|
${index + 1}. **${comp.component}**
|
|
1448
1471
|
- Status: ${comp.status}
|
|
1449
1472
|
- Dependencies: ${comp.dependencies.length}
|
|
1450
1473
|
- Performance: ${comp.performance.responsiveness}
|
|
1451
1474
|
- Issues: ${comp.issues.length}
|
|
1452
|
-
|
|
1475
|
+
`,
|
|
1476
|
+
)
|
|
1477
|
+
.join('\n')}
|
|
1453
1478
|
|
|
1454
1479
|
#### API Interfaces Tested
|
|
1455
|
-
${result.integration.interfaces
|
|
1480
|
+
${result.integration.interfaces
|
|
1481
|
+
.map(
|
|
1482
|
+
(iface, index) => `
|
|
1456
1483
|
${index + 1}. **${iface.method} ${iface.path}**
|
|
1457
1484
|
- Status: ${iface.status}
|
|
1458
1485
|
- Response Time: ${iface.responseTime.toFixed(1)}ms
|
|
1459
1486
|
- Status Code: ${iface.statusCode}
|
|
1460
|
-
|
|
1487
|
+
`,
|
|
1488
|
+
)
|
|
1489
|
+
.join('\n')}
|
|
1461
1490
|
|
|
1462
1491
|
#### Integration Test Results
|
|
1463
1492
|
- **Total Tests**: ${result.integration.testResults.total}
|
|
@@ -1473,35 +1502,51 @@ ${index + 1}. **${iface.method} ${iface.path}**
|
|
|
1473
1502
|
- **Memory Usage**: ${result.integration.performance.memoryUsage.toFixed(1)}%
|
|
1474
1503
|
- **CPU Usage**: ${result.integration.performance.cpuUsage.toFixed(1)}%
|
|
1475
1504
|
|
|
1476
|
-
${
|
|
1505
|
+
${
|
|
1506
|
+
result.integration.issues.length > 0
|
|
1507
|
+
? `
|
|
1477
1508
|
#### Integration Issues Found
|
|
1478
|
-
${result.integration.issues
|
|
1509
|
+
${result.integration.issues
|
|
1510
|
+
.map(
|
|
1511
|
+
(issue, index) => `
|
|
1479
1512
|
${index + 1}. **${issue.type}** (${issue.severity})
|
|
1480
1513
|
- Message: ${issue.message}
|
|
1481
1514
|
- Component: ${issue.component}
|
|
1482
|
-
|
|
1515
|
+
`,
|
|
1516
|
+
)
|
|
1517
|
+
.join('\n')}`
|
|
1518
|
+
: '#### No Integration Issues Found ✅'
|
|
1519
|
+
}
|
|
1483
1520
|
|
|
1484
1521
|
## Final Validation Results
|
|
1485
1522
|
|
|
1486
1523
|
### Overall Validation Score: ${result.validation.score}/100 (${result.validation.passed ? 'PASSED' : 'FAILED'})
|
|
1487
1524
|
|
|
1488
1525
|
#### Requirements Validation
|
|
1489
|
-
${result.validation.requirements
|
|
1526
|
+
${result.validation.requirements
|
|
1527
|
+
.map(
|
|
1528
|
+
(req, index) => `
|
|
1490
1529
|
${index + 1}. **${req.requirement}**
|
|
1491
1530
|
- Fulfilled: ${req.fulfilled ? '✅' : '❌'}
|
|
1492
1531
|
- Confidence: ${req.confidence.toFixed(1)}%
|
|
1493
1532
|
- Test Coverage: ${req.testCoverage.toFixed(1)}%
|
|
1494
|
-
|
|
1533
|
+
`,
|
|
1534
|
+
)
|
|
1535
|
+
.join('\n')}
|
|
1495
1536
|
|
|
1496
1537
|
#### Acceptance Criteria Validation
|
|
1497
|
-
${result.validation.acceptanceCriteria
|
|
1538
|
+
${result.validation.acceptanceCriteria
|
|
1539
|
+
.map(
|
|
1540
|
+
(criteria, index) => `
|
|
1498
1541
|
${index + 1}. **${criteria.criteria}**
|
|
1499
1542
|
- Given: ${criteria.given}
|
|
1500
1543
|
- When: ${criteria.when}
|
|
1501
1544
|
- Then: ${criteria.then}
|
|
1502
1545
|
- Satisfied: ${criteria.satisfied ? '✅' : '❌'}
|
|
1503
1546
|
- Test Result: ${criteria.testResult}
|
|
1504
|
-
|
|
1547
|
+
`,
|
|
1548
|
+
)
|
|
1549
|
+
.join('\n')}
|
|
1505
1550
|
|
|
1506
1551
|
#### Performance Validation
|
|
1507
1552
|
- **Response Time**: ${result.validation.performance.responseTime.actual}ms (Required: ≤${result.validation.performance.responseTime.required}ms) ${result.validation.performance.responseTime.passed ? '✅' : '❌'}
|
|
@@ -1536,37 +1581,53 @@ ${index + 1}. **${criteria.criteria}**
|
|
|
1536
1581
|
### Documentation Coverage: ${result.documentation.coverage.toFixed(1)}%
|
|
1537
1582
|
|
|
1538
1583
|
#### Documentation Deliverables
|
|
1539
|
-
${Object.entries(result.documentation)
|
|
1584
|
+
${Object.entries(result.documentation)
|
|
1585
|
+
.filter(
|
|
1586
|
+
([key, value]) =>
|
|
1587
|
+
value && typeof value === 'object' && key !== 'complete' && key !== 'coverage',
|
|
1588
|
+
)
|
|
1589
|
+
.map(
|
|
1590
|
+
([key, doc]) => `
|
|
1540
1591
|
**${key.charAt(0).toUpperCase() + key.slice(1)}**
|
|
1541
1592
|
- Title: ${doc.title}
|
|
1542
1593
|
- Completeness: ${doc.completeness}%
|
|
1543
1594
|
${doc.version ? `- Version: ${doc.version}` : ''}
|
|
1544
1595
|
${doc.pageCount ? `- Pages: ${doc.pageCount}` : ''}
|
|
1545
1596
|
${doc.sections ? `- Sections: ${Array.isArray(doc.sections) ? doc.sections.length : Object.keys(doc.sections).length}` : ''}
|
|
1546
|
-
|
|
1597
|
+
`,
|
|
1598
|
+
)
|
|
1599
|
+
.join('\n')}
|
|
1547
1600
|
|
|
1548
1601
|
## Deployment Results
|
|
1549
1602
|
|
|
1550
1603
|
### Deployment Status: ${result.deployment.status} (${result.deployment.successful ? 'Successful' : 'Failed'})
|
|
1551
1604
|
|
|
1552
1605
|
#### Environment Deployments
|
|
1553
|
-
${result.deployment.environments
|
|
1606
|
+
${result.deployment.environments
|
|
1607
|
+
.map(
|
|
1608
|
+
(env, index) => `
|
|
1554
1609
|
${index + 1}. **${env.name}**
|
|
1555
1610
|
- Status: ${env.status}
|
|
1556
1611
|
- Duration: ${(env.duration / 1000).toFixed(1)}s
|
|
1557
1612
|
- URL: ${env.url}
|
|
1558
1613
|
- Health Check: ${env.healthCheckResult.status}
|
|
1559
1614
|
- Response Time: ${env.healthCheckResult.responseTime.toFixed(1)}ms
|
|
1560
|
-
|
|
1615
|
+
`,
|
|
1616
|
+
)
|
|
1617
|
+
.join('\n')}
|
|
1561
1618
|
|
|
1562
1619
|
#### Health Checks Configured
|
|
1563
|
-
${result.deployment.healthChecks
|
|
1620
|
+
${result.deployment.healthChecks
|
|
1621
|
+
.map(
|
|
1622
|
+
(check, index) => `
|
|
1564
1623
|
${index + 1}. **${check.name}**
|
|
1565
1624
|
- Endpoint: ${check.endpoint}
|
|
1566
1625
|
- Interval: ${check.interval}
|
|
1567
1626
|
- Timeout: ${check.timeout}
|
|
1568
1627
|
- Expected Status: ${check.expectedStatus}
|
|
1569
|
-
|
|
1628
|
+
`,
|
|
1629
|
+
)
|
|
1630
|
+
.join('\n')}
|
|
1570
1631
|
|
|
1571
1632
|
#### Monitoring Configuration
|
|
1572
1633
|
**Metrics**: ${result.deployment.monitoring.metrics.join(', ')}
|
|
@@ -1594,12 +1655,16 @@ ${index + 1}. **${check.name}**
|
|
|
1594
1655
|
- **Reporting**: ${result.monitoring.business.reporting}
|
|
1595
1656
|
|
|
1596
1657
|
### Alert Configuration
|
|
1597
|
-
${result.monitoring.alerts
|
|
1658
|
+
${result.monitoring.alerts
|
|
1659
|
+
.map(
|
|
1660
|
+
(alert, index) => `
|
|
1598
1661
|
${index + 1}. **${alert.name}**
|
|
1599
1662
|
- Condition: ${alert.condition}
|
|
1600
1663
|
- Severity: ${alert.severity}
|
|
1601
1664
|
- Notification: ${alert.notification}
|
|
1602
|
-
|
|
1665
|
+
`,
|
|
1666
|
+
)
|
|
1667
|
+
.join('\n')}
|
|
1603
1668
|
|
|
1604
1669
|
## Cleanup Results
|
|
1605
1670
|
|
|
@@ -1628,11 +1693,15 @@ ${index + 1}. **${alert.name}**
|
|
|
1628
1693
|
## Knowledge Handover
|
|
1629
1694
|
|
|
1630
1695
|
### Stakeholders
|
|
1631
|
-
${result.handover.stakeholders
|
|
1696
|
+
${result.handover.stakeholders
|
|
1697
|
+
.map(
|
|
1698
|
+
(stakeholder, index) => `
|
|
1632
1699
|
${index + 1}. **${stakeholder.role}**
|
|
1633
1700
|
- Contact: ${stakeholder.contact}
|
|
1634
1701
|
- Responsibility: ${stakeholder.responsibility}
|
|
1635
|
-
|
|
1702
|
+
`,
|
|
1703
|
+
)
|
|
1704
|
+
.join('\n')}
|
|
1636
1705
|
|
|
1637
1706
|
### Training Plan
|
|
1638
1707
|
- **Sessions**: ${result.handover.training.sessions.join(', ')}
|
|
@@ -1705,13 +1774,17 @@ ${result.lessons.recommendations.map((recommendation, index) => `${index + 1}. $
|
|
|
1705
1774
|
|
|
1706
1775
|
## Deliverables
|
|
1707
1776
|
|
|
1708
|
-
${result.deliverables
|
|
1777
|
+
${result.deliverables
|
|
1778
|
+
.map(
|
|
1779
|
+
(deliverable, index) => `
|
|
1709
1780
|
### ${index + 1}. ${deliverable.name}
|
|
1710
1781
|
- **Type**: ${deliverable.type}
|
|
1711
1782
|
- **Location**: ${deliverable.location}
|
|
1712
1783
|
- **Status**: ${deliverable.status}
|
|
1713
1784
|
- **Description**: ${deliverable.description}
|
|
1714
|
-
|
|
1785
|
+
`,
|
|
1786
|
+
)
|
|
1787
|
+
.join('\n')}
|
|
1715
1788
|
|
|
1716
1789
|
## Project Readiness Assessment
|
|
1717
1790
|
|
|
@@ -1724,9 +1797,11 @@ The project has undergone comprehensive validation across all SPARC phases:
|
|
|
1724
1797
|
- **R**efinement: Code quality assured through TDD
|
|
1725
1798
|
- **C**ompletion: Final validation and deployment successful
|
|
1726
1799
|
|
|
1727
|
-
${
|
|
1728
|
-
|
|
1729
|
-
|
|
1800
|
+
${
|
|
1801
|
+
result.ready
|
|
1802
|
+
? '✅ **The system is ready for production use with full stakeholder confidence.**'
|
|
1803
|
+
: '⚠️ **Some areas require attention before full production readiness.**'
|
|
1804
|
+
}
|
|
1730
1805
|
|
|
1731
1806
|
## Conclusion
|
|
1732
1807
|
|
|
@@ -1753,4 +1828,4 @@ The implementation demonstrates the effectiveness of the SPARC methodology in de
|
|
|
1753
1828
|
}
|
|
1754
1829
|
}
|
|
1755
1830
|
|
|
1756
|
-
export default SparcCompletion;
|
|
1831
|
+
export default SparcCompletion;
|