claude-flow 2.0.0-alpha.61 → 2.0.0-alpha.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +54 -0
- package/.claude/commands/analysis/token-efficiency.md +2 -1
- package/.claude/commands/automation/self-healing.md +47 -2
- package/.claude/commands/automation/session-memory.md +39 -10
- package/.claude/commands/automation/smart-agents.md +36 -8
- package/.claude/commands/github/code-review-swarm.md +80 -15
- package/.claude/commands/github/github-modes.md +14 -14
- package/.claude/commands/github/issue-tracker.md +19 -16
- package/.claude/commands/github/multi-repo-swarm.md +114 -16
- package/.claude/commands/github/pr-manager.md +5 -4
- package/.claude/commands/github/project-board-sync.md +38 -5
- package/.claude/commands/github/release-manager.md +19 -19
- package/.claude/commands/github/release-swarm.md +102 -13
- package/.claude/commands/github/repo-architect.md +6 -6
- package/.claude/commands/github/swarm-issue.md +139 -17
- package/.claude/commands/github/swarm-pr.md +49 -15
- package/.claude/commands/github/sync-coordinator.md +33 -33
- package/.claude/commands/github/workflow-automation.md +37 -10
- package/.claude/commands/hooks/overview.md +2 -2
- package/.claude/commands/hooks/setup.md +7 -7
- package/.claude/commands/memory/neural.md +10 -5
- package/.claude/commands/memory/usage.md +9 -5
- package/.claude/commands/monitoring/agents.md +7 -5
- package/.claude/commands/monitoring/status.md +8 -5
- package/.claude/commands/optimization/auto-topology.md +13 -1
- package/.claude/commands/optimization/parallel-execution.md +7 -1
- package/.claude/commands/sparc/analyzer.md +28 -2
- package/.claude/commands/sparc/architect.md +27 -1
- package/.claude/commands/sparc/batch-executor.md +27 -1
- package/.claude/commands/sparc/coder.md +27 -1
- package/.claude/commands/sparc/debugger.md +27 -1
- package/.claude/commands/sparc/designer.md +27 -1
- package/.claude/commands/sparc/documenter.md +27 -1
- package/.claude/commands/sparc/innovator.md +27 -1
- package/.claude/commands/sparc/memory-manager.md +27 -1
- package/.claude/commands/sparc/optimizer.md +27 -1
- package/.claude/commands/sparc/orchestrator.md +106 -2
- package/.claude/commands/sparc/researcher.md +27 -1
- package/.claude/commands/sparc/reviewer.md +27 -1
- package/.claude/commands/sparc/sparc-modes.md +137 -5
- package/.claude/commands/sparc/swarm-coordinator.md +27 -1
- package/.claude/commands/sparc/tdd.md +27 -1
- package/.claude/commands/sparc/tester.md +27 -1
- package/.claude/commands/sparc/workflow-manager.md +27 -1
- package/.claude/commands/swarm/analysis.md +82 -5
- package/.claude/commands/swarm/development.md +83 -6
- package/.claude/commands/swarm/examples.md +141 -3
- package/.claude/commands/swarm/maintenance.md +92 -8
- package/.claude/commands/swarm/optimization.md +107 -9
- package/.claude/commands/swarm/research.md +126 -8
- package/.claude/commands/swarm/testing.md +121 -9
- package/.claude/commands/training/neural-patterns.md +27 -2
- package/.claude/commands/training/specialization.md +13 -3
- package/.claude/commands/workflows/development.md +43 -4
- package/.claude/commands/workflows/research.md +26 -2
- package/CHANGELOG.md +59 -1
- package/README.md +8 -0
- package/bin/claude-flow +1 -1
- package/dist/adapters/cliffy-node.d.ts.map +1 -1
- package/dist/adapters/cliffy-node.js +13 -7
- package/dist/adapters/cliffy-node.js.map +1 -1
- package/dist/agents/agent-manager.d.ts.map +1 -1
- package/dist/agents/agent-manager.js +77 -65
- package/dist/agents/agent-manager.js.map +1 -1
- package/dist/agents/agent-registry.d.ts.map +1 -1
- package/dist/agents/agent-registry.js +38 -30
- package/dist/agents/agent-registry.js.map +1 -1
- package/dist/api/claude-client.d.ts.map +1 -1
- package/dist/api/claude-client.js +22 -16
- package/dist/api/claude-client.js.map +1 -1
- package/dist/cli/agents/analyst.d.ts.map +1 -1
- package/dist/cli/agents/analyst.js +94 -114
- package/dist/cli/agents/analyst.js.map +1 -1
- package/dist/cli/agents/architect.d.ts.map +1 -1
- package/dist/cli/agents/architect.js +100 -114
- package/dist/cli/agents/architect.js.map +1 -1
- package/dist/cli/agents/base-agent.d.ts.map +1 -1
- package/dist/cli/agents/base-agent.js +27 -27
- package/dist/cli/agents/base-agent.js.map +1 -1
- package/dist/cli/agents/capabilities.d.ts.map +1 -1
- package/dist/cli/agents/capabilities.js +49 -51
- package/dist/cli/agents/capabilities.js.map +1 -1
- package/dist/cli/agents/coder.d.ts.map +1 -1
- package/dist/cli/agents/coder.js +92 -98
- package/dist/cli/agents/coder.js.map +1 -1
- package/dist/cli/agents/coordinator.d.ts.map +1 -1
- package/dist/cli/agents/coordinator.js +59 -64
- package/dist/cli/agents/coordinator.js.map +1 -1
- package/dist/cli/agents/hive-agents.d.ts.map +1 -1
- package/dist/cli/agents/hive-agents.js +22 -24
- package/dist/cli/agents/hive-agents.js.map +1 -1
- package/dist/cli/agents/index.d.ts.map +1 -1
- package/dist/cli/agents/index.js +17 -17
- package/dist/cli/agents/index.js.map +1 -1
- package/dist/cli/agents/researcher.d.ts.map +1 -1
- package/dist/cli/agents/researcher.js +41 -61
- package/dist/cli/agents/researcher.js.map +1 -1
- package/dist/cli/agents/tester.d.ts.map +1 -1
- package/dist/cli/agents/tester.js +78 -90
- package/dist/cli/agents/tester.js.map +1 -1
- package/dist/cli/cli-core.d.ts +4 -1
- package/dist/cli/cli-core.d.ts.map +1 -1
- package/dist/cli/cli-core.js +40 -39
- package/dist/cli/cli-core.js.map +1 -1
- package/dist/cli/command-registry.d.ts.map +1 -1
- package/dist/cli/command-registry.js +55 -64
- package/dist/cli/command-registry.js.map +1 -1
- package/dist/cli/commands/advanced-memory-commands.d.ts.map +1 -1
- package/dist/cli/commands/advanced-memory-commands.js +49 -40
- package/dist/cli/commands/advanced-memory-commands.js.map +1 -1
- package/dist/cli/commands/agent-simple.d.ts +3 -0
- package/dist/cli/commands/agent-simple.d.ts.map +1 -1
- package/dist/cli/commands/agent-simple.js +30 -27
- package/dist/cli/commands/agent-simple.js.map +1 -1
- package/dist/cli/commands/agent.d.ts.map +1 -1
- package/dist/cli/commands/agent.js +53 -40
- package/dist/cli/commands/agent.js.map +1 -1
- package/dist/cli/commands/claude-api.js +4 -4
- package/dist/cli/commands/claude-api.js.map +1 -1
- package/dist/cli/commands/claude.d.ts.map +1 -1
- package/dist/cli/commands/claude.js +2 -2
- package/dist/cli/commands/claude.js.map +1 -1
- package/dist/cli/commands/config-integration.d.ts +7 -1
- package/dist/cli/commands/config-integration.d.ts.map +1 -1
- package/dist/cli/commands/config-integration.js +18 -9
- package/dist/cli/commands/config-integration.js.map +1 -1
- package/dist/cli/commands/config.d.ts.map +1 -1
- package/dist/cli/commands/config.js +2 -3
- package/dist/cli/commands/config.js.map +1 -1
- package/dist/cli/commands/enterprise.d.ts.map +1 -1
- package/dist/cli/commands/enterprise.js +115 -95
- package/dist/cli/commands/enterprise.js.map +1 -1
- package/dist/cli/commands/help-new.js +49 -49
- package/dist/cli/commands/help-new.js.map +1 -1
- package/dist/cli/commands/help.d.ts.map +1 -1
- package/dist/cli/commands/help.js +122 -125
- package/dist/cli/commands/help.js.map +1 -1
- package/dist/cli/commands/hive-mind/index.d.ts +1 -1
- package/dist/cli/commands/hive-mind/index.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/index.js +1 -1
- package/dist/cli/commands/hive-mind/index.js.map +1 -1
- package/dist/cli/commands/hive-mind/init.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/init.js.map +1 -1
- package/dist/cli/commands/hive-mind/optimize-memory.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/optimize-memory.js +35 -26
- package/dist/cli/commands/hive-mind/optimize-memory.js.map +1 -1
- package/dist/cli/commands/hive-mind/pause.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/pause.js +8 -6
- package/dist/cli/commands/hive-mind/pause.js.map +1 -1
- package/dist/cli/commands/hive-mind/ps.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/ps.js +17 -12
- package/dist/cli/commands/hive-mind/ps.js.map +1 -1
- package/dist/cli/commands/hive-mind/resume.js +12 -10
- package/dist/cli/commands/hive-mind/resume.js.map +1 -1
- package/dist/cli/commands/hive-mind/spawn.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/spawn.js +20 -11
- package/dist/cli/commands/hive-mind/spawn.js.map +1 -1
- package/dist/cli/commands/hive-mind/status.js +17 -22
- package/dist/cli/commands/hive-mind/status.js.map +1 -1
- package/dist/cli/commands/hive-mind/stop.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/stop.js +23 -15
- package/dist/cli/commands/hive-mind/stop.js.map +1 -1
- package/dist/cli/commands/hive-mind/task.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/task.js +25 -19
- package/dist/cli/commands/hive-mind/task.js.map +1 -1
- package/dist/cli/commands/hive-mind/wizard.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/wizard.js +86 -68
- package/dist/cli/commands/hive-mind/wizard.js.map +1 -1
- package/dist/cli/commands/hive.js +73 -38
- package/dist/cli/commands/hive.js.map +1 -1
- package/dist/cli/commands/hook-validator.d.ts.map +1 -1
- package/dist/cli/commands/hook-validator.js +4 -2
- package/dist/cli/commands/hook-validator.js.map +1 -1
- package/dist/cli/commands/hook.d.ts.map +1 -1
- package/dist/cli/commands/hook.js +8 -8
- package/dist/cli/commands/hook.js.map +1 -1
- package/dist/cli/commands/index.d.ts +1 -1
- package/dist/cli/commands/index.d.ts.map +1 -1
- package/dist/cli/commands/index.js +850 -784
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/mcp.d.ts.map +1 -1
- package/dist/cli/commands/mcp.js +8 -16
- package/dist/cli/commands/mcp.js.map +1 -1
- package/dist/cli/commands/memory.d.ts.map +1 -1
- package/dist/cli/commands/memory.js +8 -8
- package/dist/cli/commands/memory.js.map +1 -1
- package/dist/cli/commands/migrate.d.ts.map +1 -1
- package/dist/cli/commands/migrate.js +3 -3
- package/dist/cli/commands/migrate.js.map +1 -1
- package/dist/cli/commands/monitor.d.ts.map +1 -1
- package/dist/cli/commands/monitor.js +50 -34
- package/dist/cli/commands/monitor.js.map +1 -1
- package/dist/cli/commands/ruv-swarm.d.ts +7 -1
- package/dist/cli/commands/ruv-swarm.d.ts.map +1 -1
- package/dist/cli/commands/ruv-swarm.js +6 -6
- package/dist/cli/commands/ruv-swarm.js.map +1 -1
- package/dist/cli/commands/session.d.ts.map +1 -1
- package/dist/cli/commands/session.js +22 -17
- package/dist/cli/commands/session.js.map +1 -1
- package/dist/cli/commands/sparc.d.ts +1 -1
- package/dist/cli/commands/sparc.d.ts.map +1 -1
- package/dist/cli/commands/sparc.js +146 -126
- package/dist/cli/commands/sparc.js.map +1 -1
- package/dist/cli/commands/start/event-emitter.js +1 -1
- package/dist/cli/commands/start/event-emitter.js.map +1 -1
- package/dist/cli/commands/start/process-manager.d.ts.map +1 -1
- package/dist/cli/commands/start/process-manager.js +20 -18
- package/dist/cli/commands/start/process-manager.js.map +1 -1
- package/dist/cli/commands/start/process-ui-simple.d.ts +4 -0
- package/dist/cli/commands/start/process-ui-simple.d.ts.map +1 -1
- package/dist/cli/commands/start/process-ui-simple.js +2 -2
- package/dist/cli/commands/start/process-ui-simple.js.map +1 -1
- package/dist/cli/commands/start/start-command.d.ts.map +1 -1
- package/dist/cli/commands/start/start-command.js +27 -15
- package/dist/cli/commands/start/start-command.js.map +1 -1
- package/dist/cli/commands/start/system-monitor.d.ts +3 -0
- package/dist/cli/commands/start/system-monitor.d.ts.map +1 -1
- package/dist/cli/commands/start/system-monitor.js +16 -18
- package/dist/cli/commands/start/system-monitor.js.map +1 -1
- package/dist/cli/commands/status.d.ts.map +1 -1
- package/dist/cli/commands/status.js +28 -33
- package/dist/cli/commands/status.js.map +1 -1
- package/dist/cli/commands/swarm-spawn.d.ts.map +1 -1
- package/dist/cli/commands/swarm-spawn.js +1 -1
- package/dist/cli/commands/swarm-spawn.js.map +1 -1
- package/dist/cli/commands/swarm.d.ts +4 -1
- package/dist/cli/commands/swarm.d.ts.map +1 -1
- package/dist/cli/commands/swarm.js +23 -18
- package/dist/cli/commands/swarm.js.map +1 -1
- package/dist/cli/commands/task.d.ts.map +1 -1
- package/dist/cli/commands/task.js.map +1 -1
- package/dist/cli/commands/workflow.d.ts.map +1 -1
- package/dist/cli/commands/workflow.js +49 -45
- package/dist/cli/commands/workflow.js.map +1 -1
- package/dist/cli/completion.d.ts +3 -0
- package/dist/cli/completion.d.ts.map +1 -1
- package/dist/cli/completion.js +15 -5
- package/dist/cli/completion.js.map +1 -1
- package/dist/cli/formatter.d.ts +3 -0
- package/dist/cli/formatter.d.ts.map +1 -1
- package/dist/cli/formatter.js +3 -3
- package/dist/cli/formatter.js.map +1 -1
- package/dist/cli/help-formatter.d.ts.map +1 -1
- package/dist/cli/help-formatter.js +8 -14
- package/dist/cli/help-formatter.js.map +1 -1
- package/dist/cli/index-remote.d.ts +4 -0
- package/dist/cli/index-remote.d.ts.map +1 -1
- package/dist/cli/index-remote.js +1 -1
- package/dist/cli/index-remote.js.map +1 -1
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +32 -34
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/init/batch-tools.d.ts.map +1 -1
- package/dist/cli/init/batch-tools.js.map +1 -1
- package/dist/cli/init/claude-config.d.ts.map +1 -1
- package/dist/cli/init/claude-config.js +111 -106
- package/dist/cli/init/claude-config.js.map +1 -1
- package/dist/cli/init/directory-structure.d.ts.map +1 -1
- package/dist/cli/init/directory-structure.js +3 -3
- package/dist/cli/init/directory-structure.js.map +1 -1
- package/dist/cli/init/index.d.ts.map +1 -1
- package/dist/cli/init/index.js +1 -1
- package/dist/cli/init/index.js.map +1 -1
- package/dist/cli/init/sparc-environment.d.ts.map +1 -1
- package/dist/cli/init/sparc-environment.js +69 -69
- package/dist/cli/init/sparc-environment.js.map +1 -1
- package/dist/cli/init/swarm-commands.d.ts.map +1 -1
- package/dist/cli/init/swarm-commands.js +1 -1
- package/dist/cli/init/swarm-commands.js.map +1 -1
- package/dist/cli/main.d.ts +3 -0
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +6 -6
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/node-compat.d.ts.map +1 -1
- package/dist/cli/node-compat.js +24 -18
- package/dist/cli/node-compat.js.map +1 -1
- package/dist/cli/node-repl.d.ts +4 -0
- package/dist/cli/node-repl.d.ts.map +1 -1
- package/dist/cli/node-repl.js +24 -30
- package/dist/cli/node-repl.js.map +1 -1
- package/dist/cli/repl.d.ts.map +1 -1
- package/dist/cli/repl.js +81 -70
- package/dist/cli/repl.js.map +1 -1
- package/dist/cli/runtime-detector.d.ts.map +1 -1
- package/dist/cli/runtime-detector.js +11 -7
- package/dist/cli/runtime-detector.js.map +1 -1
- package/dist/cli/simple-cli.d.ts +4 -0
- package/dist/cli/simple-cli.d.ts.map +1 -1
- package/dist/cli/simple-cli.js +109 -95
- package/dist/cli/simple-cli.js.map +1 -1
- package/dist/cli/simple-commands/analysis.d.ts.map +1 -1
- package/dist/cli/simple-commands/analysis.js +18 -11
- package/dist/cli/simple-commands/analysis.js.map +1 -1
- package/dist/cli/simple-commands/automation.js +32 -17
- package/dist/cli/simple-commands/automation.js.map +1 -1
- package/dist/cli/simple-commands/batch-manager.js +44 -39
- package/dist/cli/simple-commands/batch-manager.js.map +1 -1
- package/dist/cli/simple-commands/config.d.ts.map +1 -1
- package/dist/cli/simple-commands/config.js +22 -21
- package/dist/cli/simple-commands/config.js.map +1 -1
- package/dist/cli/simple-commands/coordination.d.ts.map +1 -1
- package/dist/cli/simple-commands/coordination.js +12 -12
- package/dist/cli/simple-commands/coordination.js.map +1 -1
- package/dist/cli/simple-commands/fix-hook-variables.d.ts.map +1 -1
- package/dist/cli/simple-commands/fix-hook-variables.js +36 -30
- package/dist/cli/simple-commands/fix-hook-variables.js.map +1 -1
- package/dist/cli/simple-commands/github.d.ts.map +1 -1
- package/dist/cli/simple-commands/github.js +15 -15
- package/dist/cli/simple-commands/github.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.js +12 -10
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/communication.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/communication.js +42 -45
- package/dist/cli/simple-commands/hive-mind/communication.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/core.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/core.js +97 -89
- package/dist/cli/simple-commands/hive-mind/core.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/db-optimizer.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/db-optimizer.js +114 -59
- package/dist/cli/simple-commands/hive-mind/db-optimizer.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.d.ts +66 -0
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js +402 -105
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/memory.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/memory.js +105 -75
- package/dist/cli/simple-commands/hive-mind/memory.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.js +45 -43
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/queen.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/queen.js +101 -88
- package/dist/cli/simple-commands/hive-mind/queen.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/session-manager.js +75 -53
- package/dist/cli/simple-commands/hive-mind/session-manager.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind-optimize.js +18 -18
- package/dist/cli/simple-commands/hive-mind-optimize.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind.js +278 -140
- package/dist/cli/simple-commands/hive-mind.js.map +1 -1
- package/dist/cli/simple-commands/hook-safety.d.ts.map +1 -1
- package/dist/cli/simple-commands/hook-safety.js +19 -19
- package/dist/cli/simple-commands/hook-safety.js.map +1 -1
- package/dist/cli/simple-commands/hooks.d.ts.map +1 -1
- package/dist/cli/simple-commands/hooks.js +85 -71
- package/dist/cli/simple-commands/hooks.js.map +1 -1
- package/dist/cli/simple-commands/init/batch-init.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/batch-init.js +62 -55
- package/dist/cli/simple-commands/init/batch-init.js.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.js +2 -2
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.js.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js +58 -50
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.js.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.js +34 -28
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.js.map +1 -1
- package/dist/cli/simple-commands/init/executable-wrapper.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/executable-wrapper.js +7 -4
- package/dist/cli/simple-commands/init/executable-wrapper.js.map +1 -1
- package/dist/cli/simple-commands/init/gitignore-updater.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/gitignore-updater.js +10 -9
- package/dist/cli/simple-commands/init/gitignore-updater.js.map +1 -1
- package/dist/cli/simple-commands/init/help.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/help.js.map +1 -1
- package/dist/cli/simple-commands/init/index.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/index.js +159 -103
- package/dist/cli/simple-commands/init/index.js.map +1 -1
- package/dist/cli/simple-commands/init/performance-monitor.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/performance-monitor.js +17 -18
- package/dist/cli/simple-commands/init/performance-monitor.js.map +1 -1
- package/dist/cli/simple-commands/init/rollback/backup-manager.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/rollback/backup-manager.js +19 -25
- package/dist/cli/simple-commands/init/rollback/backup-manager.js.map +1 -1
- package/dist/cli/simple-commands/init/rollback/index.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/rollback/index.js +18 -15
- package/dist/cli/simple-commands/init/rollback/index.js.map +1 -1
- package/dist/cli/simple-commands/init/rollback/recovery-manager.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/rollback/recovery-manager.js +49 -68
- package/dist/cli/simple-commands/init/rollback/recovery-manager.js.map +1 -1
- package/dist/cli/simple-commands/init/rollback/rollback-executor.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/rollback/rollback-executor.js +16 -24
- package/dist/cli/simple-commands/init/rollback/rollback-executor.js.map +1 -1
- package/dist/cli/simple-commands/init/rollback/state-tracker.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/rollback/state-tracker.js +25 -25
- package/dist/cli/simple-commands/init/rollback/state-tracker.js.map +1 -1
- package/dist/cli/simple-commands/init/sparc/roomodes-config.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/sparc/roomodes-config.js +57 -57
- package/dist/cli/simple-commands/init/sparc/roomodes-config.js.map +1 -1
- package/dist/cli/simple-commands/init/sparc/workflows.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/sparc/workflows.js +21 -21
- package/dist/cli/simple-commands/init/sparc/workflows.js.map +1 -1
- package/dist/cli/simple-commands/init/sparc-structure.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/sparc-structure.js +1 -1
- package/dist/cli/simple-commands/init/sparc-structure.js.map +1 -1
- package/dist/cli/simple-commands/init/templates/enhanced-templates.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/templates/enhanced-templates.js +69 -78
- package/dist/cli/simple-commands/init/templates/enhanced-templates.js.map +1 -1
- package/dist/cli/simple-commands/init/templates/sparc-modes.js +2 -2
- package/dist/cli/simple-commands/init/validation/config-validator.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/validation/config-validator.js +12 -16
- package/dist/cli/simple-commands/init/validation/config-validator.js.map +1 -1
- package/dist/cli/simple-commands/init/validation/health-checker.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/validation/health-checker.js +39 -41
- package/dist/cli/simple-commands/init/validation/health-checker.js.map +1 -1
- package/dist/cli/simple-commands/init/validation/index.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/validation/index.js +8 -8
- package/dist/cli/simple-commands/init/validation/index.js.map +1 -1
- package/dist/cli/simple-commands/init/validation/mode-validator.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/validation/mode-validator.js +12 -12
- package/dist/cli/simple-commands/init/validation/mode-validator.js.map +1 -1
- package/dist/cli/simple-commands/init/validation/post-init-validator.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/validation/post-init-validator.js +13 -13
- package/dist/cli/simple-commands/init/validation/post-init-validator.js.map +1 -1
- package/dist/cli/simple-commands/init/validation/pre-init-validator.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/validation/pre-init-validator.js +19 -24
- package/dist/cli/simple-commands/init/validation/pre-init-validator.js.map +1 -1
- package/dist/cli/simple-commands/mcp.js +2 -2
- package/dist/cli/simple-commands/mcp.js.map +1 -1
- package/dist/cli/simple-commands/memory.js +4 -4
- package/dist/cli/simple-commands/memory.js.map +1 -1
- package/dist/cli/simple-commands/migrate-hooks.d.ts.map +1 -1
- package/dist/cli/simple-commands/migrate-hooks.js +3 -3
- package/dist/cli/simple-commands/migrate-hooks.js.map +1 -1
- package/dist/cli/simple-commands/monitor.d.ts.map +1 -1
- package/dist/cli/simple-commands/monitor.js +34 -26
- package/dist/cli/simple-commands/monitor.js.map +1 -1
- package/dist/cli/simple-commands/process-ui-enhanced.d.ts.map +1 -1
- package/dist/cli/simple-commands/process-ui-enhanced.js +53 -39
- package/dist/cli/simple-commands/process-ui-enhanced.js.map +1 -1
- package/dist/cli/simple-commands/sparc-modes/index.js +11 -11
- package/dist/cli/simple-commands/sparc-modes/index.js.map +1 -1
- package/dist/cli/simple-commands/sparc-modes/swarm.js +50 -50
- package/dist/cli/simple-commands/sparc.d.ts.map +1 -1
- package/dist/cli/simple-commands/sparc.js +21 -11
- package/dist/cli/simple-commands/sparc.js.map +1 -1
- package/dist/cli/simple-commands/start-ui.d.ts.map +1 -1
- package/dist/cli/simple-commands/start-ui.js +5 -3
- package/dist/cli/simple-commands/start-ui.js.map +1 -1
- package/dist/cli/simple-commands/start-wrapper.d.ts.map +1 -1
- package/dist/cli/simple-commands/start-wrapper.js +1 -1
- package/dist/cli/simple-commands/start-wrapper.js.map +1 -1
- package/dist/cli/simple-commands/status.js +14 -14
- package/dist/cli/simple-commands/status.js.map +1 -1
- package/dist/cli/simple-commands/swarm-executor.d.ts.map +1 -1
- package/dist/cli/simple-commands/swarm-executor.js +19 -19
- package/dist/cli/simple-commands/swarm-executor.js.map +1 -1
- package/dist/cli/simple-commands/swarm-metrics-integration.d.ts.map +1 -1
- package/dist/cli/simple-commands/swarm-metrics-integration.js +30 -21
- package/dist/cli/simple-commands/swarm-metrics-integration.js.map +1 -1
- package/dist/cli/simple-commands/swarm-webui-integration.d.ts.map +1 -1
- package/dist/cli/simple-commands/swarm-webui-integration.js +30 -18
- package/dist/cli/simple-commands/swarm-webui-integration.js.map +1 -1
- package/dist/cli/simple-commands/swarm.d.ts.map +1 -1
- package/dist/cli/simple-commands/swarm.js +78 -67
- package/dist/cli/simple-commands/swarm.js.map +1 -1
- package/dist/cli/simple-commands/training.d.ts.map +1 -1
- package/dist/cli/simple-commands/training.js +7 -7
- package/dist/cli/simple-commands/training.js.map +1 -1
- package/dist/cli/simple-commands/web-server.d.ts.map +1 -1
- package/dist/cli/simple-commands/web-server.js +68 -66
- package/dist/cli/simple-commands/web-server.js.map +1 -1
- package/dist/cli/simple-mcp.d.ts.map +1 -1
- package/dist/cli/simple-mcp.js +2 -4
- package/dist/cli/simple-mcp.js.map +1 -1
- package/dist/cli/simple-orchestrator.d.ts +3 -0
- package/dist/cli/simple-orchestrator.d.ts.map +1 -1
- package/dist/cli/simple-orchestrator.js +36 -35
- package/dist/cli/simple-orchestrator.js.map +1 -1
- package/dist/cli/ui/compatible-ui.d.ts +4 -0
- package/dist/cli/ui/compatible-ui.d.ts.map +1 -1
- package/dist/cli/ui/compatible-ui.js +9 -8
- package/dist/cli/ui/compatible-ui.js.map +1 -1
- package/dist/cli/ui/fallback-handler.d.ts.map +1 -1
- package/dist/cli/ui/fallback-handler.js +4 -4
- package/dist/cli/ui/fallback-handler.js.map +1 -1
- package/dist/cli/ui/index.d.ts +2 -2
- package/dist/cli/ui/index.d.ts.map +1 -1
- package/dist/cli/ui/index.js +3 -3
- package/dist/cli/ui/index.js.map +1 -1
- package/dist/cli/utils/environment-detector.d.ts.map +1 -1
- package/dist/cli/utils/environment-detector.js +13 -11
- package/dist/cli/utils/environment-detector.js.map +1 -1
- package/dist/cli/utils/interactive-detector.d.ts.map +1 -1
- package/dist/cli/utils/interactive-detector.js +1 -1
- package/dist/cli/utils/interactive-detector.js.map +1 -1
- package/dist/cli/utils/prompt-defaults.d.ts.map +1 -1
- package/dist/cli/utils/prompt-defaults.js +6 -7
- package/dist/cli/utils/prompt-defaults.js.map +1 -1
- package/dist/cli/utils/safe-interactive.d.ts.map +1 -1
- package/dist/cli/utils/safe-interactive.js +7 -6
- package/dist/cli/utils/safe-interactive.js.map +1 -1
- package/dist/cli/utils.d.ts.map +1 -1
- package/dist/cli/utils.js +58 -50
- package/dist/cli/utils.js.map +1 -1
- package/dist/cli/validation-helper.d.ts.map +1 -1
- package/dist/cli/validation-helper.js.map +1 -1
- package/dist/communication/message-bus.d.ts.map +1 -1
- package/dist/communication/message-bus.js +80 -74
- package/dist/communication/message-bus.js.map +1 -1
- package/dist/config/config-manager.d.ts +3 -0
- package/dist/config/config-manager.d.ts.map +1 -1
- package/dist/config/config-manager.js +23 -6
- package/dist/config/config-manager.js.map +1 -1
- package/dist/config/ruv-swarm-config.d.ts +6 -0
- package/dist/config/ruv-swarm-config.d.ts.map +1 -1
- package/dist/config/ruv-swarm-config.js +37 -22
- package/dist/config/ruv-swarm-config.js.map +1 -1
- package/dist/config/ruv-swarm-integration.d.ts.map +1 -1
- package/dist/config/ruv-swarm-integration.js +21 -21
- package/dist/config/ruv-swarm-integration.js.map +1 -1
- package/dist/constants/agent-types.d.ts +4 -4
- package/dist/constants/agent-types.d.ts.map +1 -1
- package/dist/constants/agent-types.js +4 -4
- package/dist/constants/agent-types.js.map +1 -1
- package/dist/coordination/advanced-scheduler.d.ts.map +1 -1
- package/dist/coordination/advanced-scheduler.js +6 -10
- package/dist/coordination/advanced-scheduler.js.map +1 -1
- package/dist/coordination/advanced-task-executor.d.ts.map +1 -1
- package/dist/coordination/advanced-task-executor.js +33 -33
- package/dist/coordination/advanced-task-executor.js.map +1 -1
- package/dist/coordination/background-executor.d.ts.map +1 -1
- package/dist/coordination/background-executor.js +17 -16
- package/dist/coordination/background-executor.js.map +1 -1
- package/dist/coordination/circuit-breaker.d.ts.map +1 -1
- package/dist/coordination/circuit-breaker.js +3 -0
- package/dist/coordination/circuit-breaker.js.map +1 -1
- package/dist/coordination/conflict-resolution.d.ts.map +1 -1
- package/dist/coordination/conflict-resolution.js +10 -8
- package/dist/coordination/conflict-resolution.js.map +1 -1
- package/dist/coordination/dependency-graph.d.ts.map +1 -1
- package/dist/coordination/dependency-graph.js +4 -3
- package/dist/coordination/dependency-graph.js.map +1 -1
- package/dist/coordination/hive-orchestrator.d.ts.map +1 -1
- package/dist/coordination/hive-orchestrator.js +29 -25
- package/dist/coordination/hive-orchestrator.js.map +1 -1
- package/dist/coordination/hive-protocol.d.ts.map +1 -1
- package/dist/coordination/hive-protocol.js +22 -23
- package/dist/coordination/hive-protocol.js.map +1 -1
- package/dist/coordination/index.d.ts +1 -1
- package/dist/coordination/index.d.ts.map +1 -1
- package/dist/coordination/index.js +1 -1
- package/dist/coordination/index.js.map +1 -1
- package/dist/coordination/load-balancer.d.ts.map +1 -1
- package/dist/coordination/load-balancer.js +55 -56
- package/dist/coordination/load-balancer.js.map +1 -1
- package/dist/coordination/manager.d.ts.map +1 -1
- package/dist/coordination/manager.js +2 -8
- package/dist/coordination/manager.js.map +1 -1
- package/dist/coordination/messaging.d.ts.map +1 -1
- package/dist/coordination/messaging.js +4 -4
- package/dist/coordination/messaging.js.map +1 -1
- package/dist/coordination/metrics.d.ts.map +1 -1
- package/dist/coordination/metrics.js +11 -9
- package/dist/coordination/metrics.js.map +1 -1
- package/dist/coordination/resources.d.ts.map +1 -1
- package/dist/coordination/resources.js +10 -6
- package/dist/coordination/resources.js.map +1 -1
- package/dist/coordination/scheduler.d.ts.map +1 -1
- package/dist/coordination/scheduler.js +4 -4
- package/dist/coordination/scheduler.js.map +1 -1
- package/dist/coordination/swarm-coordinator.d.ts.map +1 -1
- package/dist/coordination/swarm-coordinator.js +32 -34
- package/dist/coordination/swarm-coordinator.js.map +1 -1
- package/dist/coordination/swarm-monitor.d.ts.map +1 -1
- package/dist/coordination/swarm-monitor.js +17 -17
- package/dist/coordination/swarm-monitor.js.map +1 -1
- package/dist/coordination/work-stealing.d.ts.map +1 -1
- package/dist/coordination/work-stealing.js +3 -0
- package/dist/coordination/work-stealing.js.map +1 -1
- package/dist/core/config.d.ts +4 -0
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +28 -31
- package/dist/core/config.js.map +1 -1
- package/dist/core/event-bus.d.ts +3 -0
- package/dist/core/event-bus.d.ts.map +1 -1
- package/dist/core/event-bus.js.map +1 -1
- package/dist/core/json-persistence.d.ts +3 -0
- package/dist/core/json-persistence.d.ts.map +1 -1
- package/dist/core/json-persistence.js +19 -23
- package/dist/core/json-persistence.js.map +1 -1
- package/dist/core/logger.d.ts +3 -0
- package/dist/core/logger.d.ts.map +1 -1
- package/dist/core/logger.js +2 -6
- package/dist/core/logger.js.map +1 -1
- package/dist/core/orchestrator-fixed.d.ts.map +1 -1
- package/dist/core/orchestrator-fixed.js +4 -1
- package/dist/core/orchestrator-fixed.js.map +1 -1
- package/dist/core/orchestrator.d.ts.map +1 -1
- package/dist/core/orchestrator.js +66 -33
- package/dist/core/orchestrator.js.map +1 -1
- package/dist/core/persistence.d.ts +3 -0
- package/dist/core/persistence.d.ts.map +1 -1
- package/dist/core/persistence.js +25 -19
- package/dist/core/persistence.js.map +1 -1
- package/dist/enterprise/analytics-manager.d.ts.map +1 -1
- package/dist/enterprise/analytics-manager.js +141 -134
- package/dist/enterprise/analytics-manager.js.map +1 -1
- package/dist/enterprise/audit-manager.d.ts.map +1 -1
- package/dist/enterprise/audit-manager.js +144 -122
- package/dist/enterprise/audit-manager.js.map +1 -1
- package/dist/enterprise/cloud-manager.d.ts.map +1 -1
- package/dist/enterprise/cloud-manager.js +104 -99
- package/dist/enterprise/cloud-manager.js.map +1 -1
- package/dist/enterprise/deployment-manager.d.ts.map +1 -1
- package/dist/enterprise/deployment-manager.js +104 -97
- package/dist/enterprise/deployment-manager.js.map +1 -1
- package/dist/enterprise/index.d.ts +6 -6
- package/dist/enterprise/index.d.ts.map +1 -1
- package/dist/enterprise/project-manager.d.ts.map +1 -1
- package/dist/enterprise/project-manager.js +74 -66
- package/dist/enterprise/project-manager.js.map +1 -1
- package/dist/enterprise/security-manager.d.ts.map +1 -1
- package/dist/enterprise/security-manager.js +137 -129
- package/dist/enterprise/security-manager.js.map +1 -1
- package/dist/hive-mind/core/Agent.d.ts.map +1 -1
- package/dist/hive-mind/core/Agent.js +36 -36
- package/dist/hive-mind/core/Agent.js.map +1 -1
- package/dist/hive-mind/core/Communication.d.ts.map +1 -1
- package/dist/hive-mind/core/Communication.js +17 -17
- package/dist/hive-mind/core/Communication.js.map +1 -1
- package/dist/hive-mind/core/DatabaseManager.d.ts.map +1 -1
- package/dist/hive-mind/core/DatabaseManager.js +104 -58
- package/dist/hive-mind/core/DatabaseManager.js.map +1 -1
- package/dist/hive-mind/core/HiveMind.d.ts.map +1 -1
- package/dist/hive-mind/core/HiveMind.js +35 -35
- package/dist/hive-mind/core/HiveMind.js.map +1 -1
- package/dist/hive-mind/core/Memory.d.ts.map +1 -1
- package/dist/hive-mind/core/Memory.js +78 -71
- package/dist/hive-mind/core/Memory.js.map +1 -1
- package/dist/hive-mind/core/MemoryMonitor.d.ts.map +1 -1
- package/dist/hive-mind/core/MemoryMonitor.js +38 -38
- package/dist/hive-mind/core/MemoryMonitor.js.map +1 -1
- package/dist/hive-mind/core/Queen.d.ts.map +1 -1
- package/dist/hive-mind/core/Queen.js +110 -47
- package/dist/hive-mind/core/Queen.js.map +1 -1
- package/dist/hive-mind/integration/ConsensusEngine.d.ts.map +1 -1
- package/dist/hive-mind/integration/ConsensusEngine.js +25 -23
- package/dist/hive-mind/integration/ConsensusEngine.js.map +1 -1
- package/dist/hive-mind/integration/MCPToolWrapper.d.ts.map +1 -1
- package/dist/hive-mind/integration/MCPToolWrapper.js.map +1 -1
- package/dist/hive-mind/integration/SwarmOrchestrator.d.ts.map +1 -1
- package/dist/hive-mind/integration/SwarmOrchestrator.js +60 -58
- package/dist/hive-mind/integration/SwarmOrchestrator.js.map +1 -1
- package/dist/hive-mind/types.d.ts.map +1 -1
- package/dist/integration/mock-components.d.ts.map +1 -1
- package/dist/integration/mock-components.js +21 -21
- package/dist/integration/mock-components.js.map +1 -1
- package/dist/integration/system-integration.d.ts.map +1 -1
- package/dist/integration/system-integration.js +13 -11
- package/dist/integration/system-integration.js.map +1 -1
- package/dist/mcp/auth.d.ts +1 -1
- package/dist/mcp/auth.d.ts.map +1 -1
- package/dist/mcp/auth.js +8 -1
- package/dist/mcp/auth.js.map +1 -1
- package/dist/mcp/claude-code-wrapper.d.ts.map +1 -1
- package/dist/mcp/claude-code-wrapper.js +169 -68
- package/dist/mcp/claude-code-wrapper.js.map +1 -1
- package/dist/mcp/claude-flow-tools.d.ts.map +1 -1
- package/dist/mcp/claude-flow-tools.js +42 -3
- package/dist/mcp/claude-flow-tools.js.map +1 -1
- package/dist/mcp/client.d.ts.map +1 -1
- package/dist/mcp/client.js.map +1 -1
- package/dist/mcp/index.d.ts +6 -6
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +9 -9
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/integrate-wrapper.d.ts.map +1 -1
- package/dist/mcp/integrate-wrapper.js +5 -7
- package/dist/mcp/integrate-wrapper.js.map +1 -1
- package/dist/mcp/lifecycle-manager.d.ts.map +1 -1
- package/dist/mcp/lifecycle-manager.js +8 -7
- package/dist/mcp/lifecycle-manager.js.map +1 -1
- package/dist/mcp/load-balancer.d.ts.map +1 -1
- package/dist/mcp/load-balancer.js +5 -1
- package/dist/mcp/load-balancer.js.map +1 -1
- package/dist/mcp/orchestration-integration.d.ts.map +1 -1
- package/dist/mcp/orchestration-integration.js +22 -9
- package/dist/mcp/orchestration-integration.js.map +1 -1
- package/dist/mcp/performance-monitor.d.ts.map +1 -1
- package/dist/mcp/performance-monitor.js +22 -19
- package/dist/mcp/performance-monitor.js.map +1 -1
- package/dist/mcp/protocol-manager.d.ts.map +1 -1
- package/dist/mcp/protocol-manager.js +8 -19
- package/dist/mcp/protocol-manager.js.map +1 -1
- package/dist/mcp/recovery/connection-health-monitor.d.ts.map +1 -1
- package/dist/mcp/recovery/connection-health-monitor.js +5 -5
- package/dist/mcp/recovery/connection-health-monitor.js.map +1 -1
- package/dist/mcp/recovery/connection-state-manager.d.ts +4 -0
- package/dist/mcp/recovery/connection-state-manager.d.ts.map +1 -1
- package/dist/mcp/recovery/connection-state-manager.js +13 -13
- package/dist/mcp/recovery/connection-state-manager.js.map +1 -1
- package/dist/mcp/recovery/fallback-coordinator.d.ts.map +1 -1
- package/dist/mcp/recovery/fallback-coordinator.js +5 -5
- package/dist/mcp/recovery/fallback-coordinator.js.map +1 -1
- package/dist/mcp/recovery/index.d.ts +4 -4
- package/dist/mcp/recovery/index.d.ts.map +1 -1
- package/dist/mcp/recovery/index.js +4 -4
- package/dist/mcp/recovery/index.js.map +1 -1
- package/dist/mcp/recovery/reconnection-manager.d.ts.map +1 -1
- package/dist/mcp/recovery/reconnection-manager.js +1 -1
- package/dist/mcp/recovery/reconnection-manager.js.map +1 -1
- package/dist/mcp/recovery/recovery-manager.d.ts.map +1 -1
- package/dist/mcp/recovery/recovery-manager.js +2 -4
- package/dist/mcp/recovery/recovery-manager.js.map +1 -1
- package/dist/mcp/router.d.ts.map +1 -1
- package/dist/mcp/router.js +3 -0
- package/dist/mcp/router.js.map +1 -1
- package/dist/mcp/ruv-swarm-tools.d.ts.map +1 -1
- package/dist/mcp/ruv-swarm-tools.js +132 -102
- package/dist/mcp/ruv-swarm-tools.js.map +1 -1
- package/dist/mcp/server-with-wrapper.d.ts +3 -0
- package/dist/mcp/server-with-wrapper.d.ts.map +1 -1
- package/dist/mcp/server-with-wrapper.js +2 -3
- package/dist/mcp/server-with-wrapper.js.map +1 -1
- package/dist/mcp/server-wrapper-mode.d.ts +5 -0
- package/dist/mcp/server-wrapper-mode.d.ts.map +1 -1
- package/dist/mcp/server-wrapper-mode.js +2 -3
- package/dist/mcp/server-wrapper-mode.js.map +1 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +12 -7
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/session-manager.d.ts.map +1 -1
- package/dist/mcp/session-manager.js +4 -3
- package/dist/mcp/session-manager.js.map +1 -1
- package/dist/mcp/sparc-modes.d.ts.map +1 -1
- package/dist/mcp/sparc-modes.js +15 -15
- package/dist/mcp/sparc-modes.js.map +1 -1
- package/dist/mcp/swarm-tools.d.ts.map +1 -1
- package/dist/mcp/swarm-tools.js +100 -80
- package/dist/mcp/swarm-tools.js.map +1 -1
- package/dist/mcp/tools.d.ts.map +1 -1
- package/dist/mcp/tools.js +28 -12
- package/dist/mcp/tools.js.map +1 -1
- package/dist/mcp/transports/base.d.ts.map +1 -1
- package/dist/mcp/transports/base.js +3 -0
- package/dist/mcp/transports/base.js.map +1 -1
- package/dist/mcp/transports/http.d.ts +3 -0
- package/dist/mcp/transports/http.d.ts.map +1 -1
- package/dist/mcp/transports/http.js +3 -3
- package/dist/mcp/transports/http.js.map +1 -1
- package/dist/mcp/transports/stdio.d.ts +3 -0
- package/dist/mcp/transports/stdio.d.ts.map +1 -1
- package/dist/mcp/transports/stdio.js +3 -0
- package/dist/mcp/transports/stdio.js.map +1 -1
- package/dist/memory/advanced-memory-manager.d.ts.map +1 -1
- package/dist/memory/advanced-memory-manager.js +109 -100
- package/dist/memory/advanced-memory-manager.js.map +1 -1
- package/dist/memory/backends/base.d.ts.map +1 -1
- package/dist/memory/backends/base.js +3 -0
- package/dist/memory/backends/base.js.map +1 -1
- package/dist/memory/backends/markdown.d.ts +3 -0
- package/dist/memory/backends/markdown.d.ts.map +1 -1
- package/dist/memory/backends/markdown.js +8 -8
- package/dist/memory/backends/markdown.js.map +1 -1
- package/dist/memory/backends/sqlite.d.ts +3 -0
- package/dist/memory/backends/sqlite.d.ts.map +1 -1
- package/dist/memory/backends/sqlite.js +6 -2
- package/dist/memory/backends/sqlite.js.map +1 -1
- package/dist/memory/cache.d.ts.map +1 -1
- package/dist/memory/cache.js +5 -3
- package/dist/memory/cache.js.map +1 -1
- package/dist/memory/distributed-memory.d.ts.map +1 -1
- package/dist/memory/distributed-memory.js +27 -28
- package/dist/memory/distributed-memory.js.map +1 -1
- package/dist/memory/fallback-store.d.ts +1 -0
- package/dist/memory/fallback-store.d.ts.map +1 -1
- package/dist/memory/fallback-store.js +25 -3
- package/dist/memory/fallback-store.js.map +1 -1
- package/dist/memory/in-memory-store.d.ts.map +1 -1
- package/dist/memory/in-memory-store.js +8 -8
- package/dist/memory/in-memory-store.js.map +1 -1
- package/dist/memory/indexer.d.ts.map +1 -1
- package/dist/memory/indexer.js +4 -1
- package/dist/memory/indexer.js.map +1 -1
- package/dist/memory/manager.d.ts.map +1 -1
- package/dist/memory/manager.js +17 -20
- package/dist/memory/manager.js.map +1 -1
- package/dist/memory/sqlite-store.d.ts +34 -0
- package/dist/memory/sqlite-store.d.ts.map +1 -0
- package/dist/memory/sqlite-store.js +14 -11
- package/dist/memory/sqlite-store.js.map +1 -1
- package/dist/memory/sqlite-wrapper.d.ts +38 -0
- package/dist/memory/sqlite-wrapper.d.ts.map +1 -0
- package/dist/memory/sqlite-wrapper.js +157 -0
- package/dist/memory/sqlite-wrapper.js.map +1 -0
- package/dist/memory/swarm-memory.d.ts.map +1 -1
- package/dist/memory/swarm-memory.js +37 -44
- package/dist/memory/swarm-memory.js.map +1 -1
- package/dist/migration/index.d.ts +4 -0
- package/dist/migration/index.d.ts.map +1 -1
- package/dist/migration/index.js +8 -8
- package/dist/migration/index.js.map +1 -1
- package/dist/migration/logger.d.ts.map +1 -1
- package/dist/migration/logger.js +5 -5
- package/dist/migration/logger.js.map +1 -1
- package/dist/migration/migration-analyzer.d.ts +3 -0
- package/dist/migration/migration-analyzer.d.ts.map +1 -1
- package/dist/migration/migration-analyzer.js +25 -20
- package/dist/migration/migration-analyzer.js.map +1 -1
- package/dist/migration/migration-runner.d.ts.map +1 -1
- package/dist/migration/migration-runner.js +35 -29
- package/dist/migration/migration-runner.js.map +1 -1
- package/dist/migration/migration-validator.d.ts +3 -0
- package/dist/migration/migration-validator.d.ts.map +1 -1
- package/dist/migration/migration-validator.js +22 -26
- package/dist/migration/migration-validator.js.map +1 -1
- package/dist/migration/progress-reporter.d.ts +3 -0
- package/dist/migration/progress-reporter.d.ts.map +1 -1
- package/dist/migration/progress-reporter.js +8 -8
- package/dist/migration/progress-reporter.js.map +1 -1
- package/dist/migration/rollback-manager.d.ts +3 -0
- package/dist/migration/rollback-manager.d.ts.map +1 -1
- package/dist/migration/rollback-manager.js +29 -26
- package/dist/migration/rollback-manager.js.map +1 -1
- package/dist/monitoring/diagnostics.d.ts.map +1 -1
- package/dist/monitoring/diagnostics.js +49 -37
- package/dist/monitoring/diagnostics.js.map +1 -1
- package/dist/monitoring/health-check.d.ts.map +1 -1
- package/dist/monitoring/health-check.js +24 -25
- package/dist/monitoring/health-check.js.map +1 -1
- package/dist/monitoring/real-time-monitor.d.ts.map +1 -1
- package/dist/monitoring/real-time-monitor.js +71 -58
- package/dist/monitoring/real-time-monitor.js.map +1 -1
- package/dist/resources/resource-manager.d.ts.map +1 -1
- package/dist/resources/resource-manager.js +96 -83
- package/dist/resources/resource-manager.js.map +1 -1
- package/dist/swarm/claude-flow-executor.d.ts.map +1 -1
- package/dist/swarm/claude-flow-executor.js +37 -31
- package/dist/swarm/claude-flow-executor.js.map +1 -1
- package/dist/swarm/coordinator.d.ts.map +1 -1
- package/dist/swarm/coordinator.js +330 -280
- package/dist/swarm/coordinator.js.map +1 -1
- package/dist/swarm/direct-executor.d.ts.map +1 -1
- package/dist/swarm/direct-executor.js +44 -37
- package/dist/swarm/direct-executor.js.map +1 -1
- package/dist/swarm/executor-v2.d.ts.map +1 -1
- package/dist/swarm/executor-v2.js +28 -27
- package/dist/swarm/executor-v2.js.map +1 -1
- package/dist/swarm/executor.d.ts +3 -0
- package/dist/swarm/executor.d.ts.map +1 -1
- package/dist/swarm/executor.js +58 -52
- package/dist/swarm/executor.js.map +1 -1
- package/dist/swarm/index.d.ts.map +1 -1
- package/dist/swarm/index.js +2 -2
- package/dist/swarm/index.js.map +1 -1
- package/dist/swarm/json-output-aggregator.d.ts.map +1 -1
- package/dist/swarm/json-output-aggregator.js +20 -19
- package/dist/swarm/json-output-aggregator.js.map +1 -1
- package/dist/swarm/memory.d.ts.map +1 -1
- package/dist/swarm/memory.js +67 -67
- package/dist/swarm/memory.js.map +1 -1
- package/dist/swarm/optimizations/async-file-manager.d.ts +4 -0
- package/dist/swarm/optimizations/async-file-manager.d.ts.map +1 -1
- package/dist/swarm/optimizations/async-file-manager.js +19 -23
- package/dist/swarm/optimizations/async-file-manager.js.map +1 -1
- package/dist/swarm/optimizations/circular-buffer.d.ts.map +1 -1
- package/dist/swarm/optimizations/circular-buffer.js +2 -4
- package/dist/swarm/optimizations/circular-buffer.js.map +1 -1
- package/dist/swarm/optimizations/connection-pool.d.ts.map +1 -1
- package/dist/swarm/optimizations/connection-pool.js +12 -13
- package/dist/swarm/optimizations/connection-pool.js.map +1 -1
- package/dist/swarm/optimizations/index.js +2 -2
- package/dist/swarm/optimizations/optimized-executor.d.ts.map +1 -1
- package/dist/swarm/optimizations/optimized-executor.js +23 -29
- package/dist/swarm/optimizations/optimized-executor.js.map +1 -1
- package/dist/swarm/optimizations/ttl-map.d.ts.map +1 -1
- package/dist/swarm/optimizations/ttl-map.js +4 -4
- package/dist/swarm/optimizations/ttl-map.js.map +1 -1
- package/dist/swarm/prompt-cli.d.ts.map +1 -1
- package/dist/swarm/prompt-cli.js +18 -13
- package/dist/swarm/prompt-cli.js.map +1 -1
- package/dist/swarm/prompt-copier-enhanced.d.ts.map +1 -1
- package/dist/swarm/prompt-copier-enhanced.js +12 -12
- package/dist/swarm/prompt-copier-enhanced.js.map +1 -1
- package/dist/swarm/prompt-copier.d.ts.map +1 -1
- package/dist/swarm/prompt-copier.js +15 -18
- package/dist/swarm/prompt-copier.js.map +1 -1
- package/dist/swarm/prompt-manager.d.ts.map +1 -1
- package/dist/swarm/prompt-manager.js +27 -21
- package/dist/swarm/prompt-manager.js.map +1 -1
- package/dist/swarm/prompt-utils.d.ts.map +1 -1
- package/dist/swarm/prompt-utils.js +34 -32
- package/dist/swarm/prompt-utils.js.map +1 -1
- package/dist/swarm/sparc-executor.d.ts.map +1 -1
- package/dist/swarm/sparc-executor.js +189 -123
- package/dist/swarm/sparc-executor.js.map +1 -1
- package/dist/swarm/strategies/auto.d.ts.map +1 -1
- package/dist/swarm/strategies/auto.js +105 -86
- package/dist/swarm/strategies/auto.js.map +1 -1
- package/dist/swarm/strategies/base.d.ts.map +1 -1
- package/dist/swarm/strategies/base.js +14 -11
- package/dist/swarm/strategies/base.js.map +1 -1
- package/dist/swarm/strategies/research.d.ts.map +1 -1
- package/dist/swarm/strategies/research.js +76 -71
- package/dist/swarm/strategies/research.js.map +1 -1
- package/dist/swarm/types.d.ts.map +1 -1
- package/dist/swarm/types.js +3 -0
- package/dist/swarm/types.js.map +1 -1
- package/dist/swarm/workers/copy-worker.js +4 -4
- package/dist/swarm/workers/copy-worker.js.map +1 -1
- package/dist/task/commands.d.ts.map +1 -1
- package/dist/task/commands.js +11 -7
- package/dist/task/commands.js.map +1 -1
- package/dist/task/coordination.d.ts.map +1 -1
- package/dist/task/coordination.js +75 -70
- package/dist/task/coordination.js.map +1 -1
- package/dist/task/engine.d.ts.map +1 -1
- package/dist/task/engine.js +34 -32
- package/dist/task/engine.js.map +1 -1
- package/dist/task/index.d.ts +3 -3
- package/dist/task/index.d.ts.map +1 -1
- package/dist/task/index.js +11 -11
- package/dist/task/index.js.map +1 -1
- package/dist/terminal/adapters/native.d.ts.map +1 -1
- package/dist/terminal/adapters/native.js +6 -6
- package/dist/terminal/adapters/native.js.map +1 -1
- package/dist/terminal/adapters/vscode.d.ts +3 -0
- package/dist/terminal/adapters/vscode.d.ts.map +1 -1
- package/dist/terminal/adapters/vscode.js +6 -4
- package/dist/terminal/adapters/vscode.js.map +1 -1
- package/dist/terminal/manager.d.ts.map +1 -1
- package/dist/terminal/manager.js +6 -8
- package/dist/terminal/manager.js.map +1 -1
- package/dist/terminal/pool.d.ts.map +1 -1
- package/dist/terminal/pool.js +3 -0
- package/dist/terminal/pool.js.map +1 -1
- package/dist/terminal/session.d.ts.map +1 -1
- package/dist/terminal/session.js +6 -2
- package/dist/terminal/session.js.map +1 -1
- package/dist/ui/hive-dashboard.d.ts.map +1 -1
- package/dist/ui/hive-dashboard.js +52 -33
- package/dist/ui/hive-dashboard.js.map +1 -1
- package/dist/utils/error-handler.d.ts.map +1 -1
- package/dist/utils/error-handler.js +1 -1
- package/dist/utils/error-handler.js.map +1 -1
- package/dist/utils/errors.d.ts.map +1 -1
- package/dist/utils/errors.js.map +1 -1
- package/dist/utils/helpers.d.ts +3 -0
- package/dist/utils/helpers.d.ts.map +1 -1
- package/dist/utils/helpers.js +5 -8
- package/dist/utils/helpers.js.map +1 -1
- package/dist/utils/npx-isolated-cache.js +3 -3
- package/dist/utils/npx-isolated-cache.js.map +1 -1
- package/dist/utils/paths.d.ts.map +1 -1
- package/dist/utils/paths.js +8 -4
- package/dist/utils/paths.js.map +1 -1
- package/dist/utils/type-guards.d.ts +1 -1
- package/dist/utils/type-guards.d.ts.map +1 -1
- package/dist/utils/type-guards.js +11 -10
- package/dist/utils/type-guards.js.map +1 -1
- package/package.json +7 -6
- package/src/adapters/cliffy-node.ts +27 -22
- package/src/agents/agent-manager.ts +145 -121
- package/src/agents/agent-registry.ts +77 -70
- package/src/api/claude-api-errors.ts +248 -0
- package/src/api/claude-client-enhanced.ts +616 -0
- package/src/api/claude-client.ts +338 -49
- package/src/api/routes/analysis.js +750 -735
- package/src/cli/__tests__/command-registry.test.js +42 -32
- package/src/cli/__tests__/simple-cli.test.js +42 -37
- package/src/cli/__tests__/utils.test.js +9 -9
- package/src/cli/agents/README.md +30 -4
- package/src/cli/agents/analyst.ts +161 -163
- package/src/cli/agents/architect.ts +126 -131
- package/src/cli/agents/base-agent.ts +48 -47
- package/src/cli/agents/capabilities.ts +87 -85
- package/src/cli/agents/coder.ts +127 -120
- package/src/cli/agents/coordinator.ts +72 -72
- package/src/cli/agents/hive-agents.ts +96 -70
- package/src/cli/agents/index.ts +70 -55
- package/src/cli/agents/researcher.ts +63 -74
- package/src/cli/agents/tester.ts +91 -98
- package/src/cli/cli-core.ts +56 -47
- package/src/cli/command-registry.js +82 -83
- package/src/cli/commands/advanced-memory-commands.ts +210 -142
- package/src/cli/commands/agent-simple.ts +146 -114
- package/src/cli/commands/agent.ts +119 -95
- package/src/cli/commands/claude-api.ts +19 -15
- package/src/cli/commands/claude.ts +96 -88
- package/src/cli/commands/config-integration.ts +120 -101
- package/src/cli/commands/config.ts +10 -8
- package/src/cli/commands/enterprise.ts +323 -187
- package/src/cli/commands/help-new.ts +57 -55
- package/src/cli/commands/help.ts +162 -159
- package/src/cli/commands/hive-mind/index.ts +3 -3
- package/src/cli/commands/hive-mind/init.ts +19 -12
- package/src/cli/commands/hive-mind/optimize-memory.ts +83 -53
- package/src/cli/commands/hive-mind/pause.ts +27 -25
- package/src/cli/commands/hive-mind/ps.ts +43 -37
- package/src/cli/commands/hive-mind/resume.ts +26 -26
- package/src/cli/commands/hive-mind/spawn.ts +37 -29
- package/src/cli/commands/hive-mind/status.ts +51 -51
- package/src/cli/commands/hive-mind/stop.ts +56 -51
- package/src/cli/commands/hive-mind/task.ts +65 -54
- package/src/cli/commands/hive-mind/wizard.ts +181 -167
- package/src/cli/commands/hive.ts +136 -96
- package/src/cli/commands/hook-types.ts +2 -2
- package/src/cli/commands/hook-validator.ts +8 -4
- package/src/cli/commands/hook.ts +44 -42
- package/src/cli/commands/index.ts +1162 -1031
- package/src/cli/commands/mcp.ts +105 -94
- package/src/cli/commands/memory.ts +24 -21
- package/src/cli/commands/migrate.ts +24 -24
- package/src/cli/commands/monitor.ts +123 -93
- package/src/cli/commands/ruv-swarm.ts +131 -122
- package/src/cli/commands/session.ts +60 -45
- package/src/cli/commands/sparc.ts +170 -139
- package/src/cli/commands/start/event-emitter.ts +2 -2
- package/src/cli/commands/start/index.ts +1 -1
- package/src/cli/commands/start/process-manager.ts +30 -47
- package/src/cli/commands/start/process-ui-simple.ts +60 -49
- package/src/cli/commands/start/process-ui.ts +1 -1
- package/src/cli/commands/start/start-command.ts +104 -75
- package/src/cli/commands/start/system-monitor.ts +35 -41
- package/src/cli/commands/start/types.ts +3 -3
- package/src/cli/commands/start.ts +1 -1
- package/src/cli/commands/status.ts +67 -67
- package/src/cli/commands/swarm-spawn.ts +21 -12
- package/src/cli/commands/swarm.ts +221 -150
- package/src/cli/commands/task.ts +55 -55
- package/src/cli/commands/workflow.ts +174 -157
- package/src/cli/completion.ts +34 -19
- package/src/cli/create-enhanced-task.js +49 -17
- package/src/cli/formatter.ts +38 -37
- package/src/cli/help-formatter.js +23 -33
- package/src/cli/help-formatter.ts +24 -34
- package/src/cli/help-text.js +71 -61
- package/src/cli/index-remote.ts +12 -9
- package/src/cli/index.ts +77 -67
- package/src/cli/init/batch-tools.ts +4 -5
- package/src/cli/init/claude-config.ts +125 -118
- package/src/cli/init/directory-structure.ts +10 -11
- package/src/cli/init/index.ts +13 -13
- package/src/cli/init/sparc-environment.ts +90 -74
- package/src/cli/init/swarm-commands.ts +5 -6
- package/src/cli/init/utils.ts +1 -1
- package/src/cli/main.ts +9 -10
- package/src/cli/node-compat.js +26 -19
- package/src/cli/node-repl.ts +104 -87
- package/src/cli/repl.ts +190 -158
- package/src/cli/runtime-detector.js +24 -19
- package/src/cli/simple-cli.js +460 -385
- package/src/cli/simple-cli.ts +426 -366
- package/src/cli/simple-commands/__tests__/agent.test.js +49 -55
- package/src/cli/simple-commands/__tests__/memory.test.js +4 -401
- package/src/cli/simple-commands/__tests__/swarm.test.js +49 -55
- package/src/cli/simple-commands/__tests__/task.test.js +4 -478
- package/src/cli/simple-commands/agent.js +27 -27
- package/src/cli/simple-commands/analysis.js +179 -161
- package/src/cli/simple-commands/automation.js +226 -205
- package/src/cli/simple-commands/batch-manager.js +98 -88
- package/src/cli/simple-commands/config.js +65 -60
- package/src/cli/simple-commands/coordination.js +220 -184
- package/src/cli/simple-commands/enhanced-ui-views.js +142 -115
- package/src/cli/simple-commands/enhanced-webui-complete.js +267 -167
- package/src/cli/simple-commands/fix-hook-variables.js +73 -67
- package/src/cli/simple-commands/github/gh-coordinator.js +63 -53
- package/src/cli/simple-commands/github/github-api.js +45 -47
- package/src/cli/simple-commands/github.js +33 -34
- package/src/cli/simple-commands/hive-mind/auto-save-middleware.js +50 -46
- package/src/cli/simple-commands/hive-mind/communication.js +198 -185
- package/src/cli/simple-commands/hive-mind/core.js +289 -304
- package/src/cli/simple-commands/hive-mind/db-optimizer.js +278 -168
- package/src/cli/simple-commands/hive-mind/mcp-wrapper.js +676 -263
- package/src/cli/simple-commands/hive-mind/memory.js +356 -287
- package/src/cli/simple-commands/hive-mind/performance-optimizer.js +88 -79
- package/src/cli/simple-commands/hive-mind/performance-test.js +61 -49
- package/src/cli/simple-commands/hive-mind/queen.js +223 -213
- package/src/cli/simple-commands/hive-mind/session-manager.js +522 -240
- package/src/cli/simple-commands/hive-mind-optimize.js +69 -65
- package/src/cli/simple-commands/hive-mind-wizard.js +213 -211
- package/src/cli/simple-commands/hive-mind.js +790 -443
- package/src/cli/simple-commands/hive.js +12 -12
- package/src/cli/simple-commands/hook-safety.js +114 -111
- package/src/cli/simple-commands/hooks.js +1077 -1017
- package/src/cli/simple-commands/init/README.md +8 -1
- package/src/cli/simple-commands/init/VALIDATION_ROLLBACK.md +27 -1
- package/src/cli/simple-commands/init/batch-init.js +105 -100
- package/src/cli/simple-commands/init/claude-commands/claude-flow-commands.js +6 -6
- package/src/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.js +6 -6
- package/src/cli/simple-commands/init/claude-commands/optimized-slash-commands.js +64 -37
- package/src/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js +85 -71
- package/src/cli/simple-commands/init/claude-commands/slash-commands.js +40 -19
- package/src/cli/simple-commands/init/claude-commands/sparc-commands.js +149 -63
- package/src/cli/simple-commands/init/copy-revised-templates.js +175 -0
- package/src/cli/simple-commands/init/executable-wrapper.js +13 -10
- package/src/cli/simple-commands/init/gitignore-updater.js +22 -22
- package/src/cli/simple-commands/init/help.js +4 -2
- package/src/cli/simple-commands/init/index.js +451 -428
- package/src/cli/simple-commands/init/performance-monitor.js +71 -64
- package/src/cli/simple-commands/init/rollback/backup-manager.js +44 -64
- package/src/cli/simple-commands/init/rollback/index.js +31 -39
- package/src/cli/simple-commands/init/rollback/recovery-manager.js +71 -101
- package/src/cli/simple-commands/init/rollback/rollback-executor.js +34 -53
- package/src/cli/simple-commands/init/rollback/state-tracker.js +38 -49
- package/src/cli/simple-commands/init/sparc/roo-readme.js +1 -1
- package/src/cli/simple-commands/init/sparc/roomodes-config.js +99 -77
- package/src/cli/simple-commands/init/sparc/workflows.js +37 -33
- package/src/cli/simple-commands/init/sparc-structure.js +9 -10
- package/src/cli/simple-commands/init/template-copier.js +583 -0
- package/src/cli/simple-commands/init/templates/CLAUDE.md +94 -26
- package/src/cli/simple-commands/init/templates/claude-flow-universal +9 -7
- package/src/cli/simple-commands/init/templates/claude-md.js +1 -1
- package/src/cli/simple-commands/init/templates/commands/analysis/bottleneck-detect.md +15 -3
- package/src/cli/simple-commands/init/templates/commands/automation/auto-agent.md +12 -2
- package/src/cli/simple-commands/init/templates/commands/coordination/swarm-init.md +10 -1
- package/src/cli/simple-commands/init/templates/commands/github/github-swarm.md +18 -5
- package/src/cli/simple-commands/init/templates/commands/hooks/notification.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/post-command.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/post-edit.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/post-task.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/pre-command.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/pre-edit.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/pre-search.md +13 -6
- package/src/cli/simple-commands/init/templates/commands/hooks/pre-task.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/session-end.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/session-restore.md +13 -5
- package/src/cli/simple-commands/init/templates/commands/hooks/session-start.md +12 -1
- package/src/cli/simple-commands/init/templates/coordination-md.js +1 -1
- package/src/cli/simple-commands/init/templates/coordination.md +16 -0
- package/src/cli/simple-commands/init/templates/enhanced-templates.js +116 -113
- package/src/cli/simple-commands/init/templates/memory-bank-md.js +1 -1
- package/src/cli/simple-commands/init/templates/memory-bank.md +16 -0
- package/src/cli/simple-commands/init/templates/readme-files.js +1 -1
- package/src/cli/simple-commands/init/templates/safe-hook-patterns.js +176 -127
- package/src/cli/simple-commands/init/templates/settings.json +2 -5
- package/src/cli/simple-commands/init/templates/settings.json.enhanced +35 -0
- package/src/cli/simple-commands/init/templates/sparc-modes.js +637 -26
- package/src/cli/simple-commands/init/validation/config-validator.js +17 -28
- package/src/cli/simple-commands/init/validation/health-checker.js +54 -62
- package/src/cli/simple-commands/init/validation/index.js +18 -23
- package/src/cli/simple-commands/init/validation/mode-validator.js +22 -32
- package/src/cli/simple-commands/init/validation/post-init-validator.js +25 -26
- package/src/cli/simple-commands/init/validation/pre-init-validator.js +32 -36
- package/src/cli/simple-commands/init/validation/test-runner.js +55 -63
- package/src/cli/simple-commands/init.js +1 -1
- package/src/cli/simple-commands/mcp-integration-layer.js +179 -110
- package/src/cli/simple-commands/mcp.js +55 -48
- package/src/cli/simple-commands/memory.js +62 -56
- package/src/cli/simple-commands/migrate-hooks.js +9 -10
- package/src/cli/simple-commands/monitor.js +87 -67
- package/src/cli/simple-commands/process-ui-enhanced.js +207 -155
- package/src/cli/simple-commands/process-ui.js +65 -56
- package/src/cli/simple-commands/realtime-update-system.js +136 -129
- package/src/cli/simple-commands/sparc/architecture.js +352 -251
- package/src/cli/simple-commands/sparc/commands.js +122 -94
- package/src/cli/simple-commands/sparc/completion.js +274 -199
- package/src/cli/simple-commands/sparc/coordinator.js +217 -169
- package/src/cli/simple-commands/sparc/index.js +40 -36
- package/src/cli/simple-commands/sparc/phase-base.js +72 -58
- package/src/cli/simple-commands/sparc/pseudocode.js +275 -159
- package/src/cli/simple-commands/sparc/refinement.js +306 -212
- package/src/cli/simple-commands/sparc/specification.js +164 -94
- package/src/cli/simple-commands/sparc-modes/architect.js +1 -1
- package/src/cli/simple-commands/sparc-modes/ask.js +1 -1
- package/src/cli/simple-commands/sparc-modes/code.js +1 -1
- package/src/cli/simple-commands/sparc-modes/debug.js +1 -1
- package/src/cli/simple-commands/sparc-modes/devops.js +1 -1
- package/src/cli/simple-commands/sparc-modes/docs-writer.js +1 -1
- package/src/cli/simple-commands/sparc-modes/generic.js +1 -1
- package/src/cli/simple-commands/sparc-modes/index.js +15 -15
- package/src/cli/simple-commands/sparc-modes/integration.js +1 -1
- package/src/cli/simple-commands/sparc-modes/mcp.js +1 -1
- package/src/cli/simple-commands/sparc-modes/monitoring.js +1 -1
- package/src/cli/simple-commands/sparc-modes/optimization.js +1 -1
- package/src/cli/simple-commands/sparc-modes/security-review.js +1 -1
- package/src/cli/simple-commands/sparc-modes/sparc-orchestrator.js +1 -1
- package/src/cli/simple-commands/sparc-modes/spec-pseudocode.js +1 -1
- package/src/cli/simple-commands/sparc-modes/supabase-admin.js +1 -1
- package/src/cli/simple-commands/sparc-modes/swarm.js +52 -52
- package/src/cli/simple-commands/sparc-modes/tdd.js +1 -1
- package/src/cli/simple-commands/sparc-modes/tutorial.js +1 -1
- package/src/cli/simple-commands/sparc.js +87 -69
- package/src/cli/simple-commands/start-ui.js +21 -20
- package/src/cli/simple-commands/start-wrapper.js +29 -31
- package/src/cli/simple-commands/start.js +1 -1
- package/src/cli/simple-commands/status.js +53 -47
- package/src/cli/simple-commands/swarm-executor.js +47 -57
- package/src/cli/simple-commands/swarm-metrics-integration.js +119 -79
- package/src/cli/simple-commands/swarm-ui.js +120 -118
- package/src/cli/simple-commands/swarm-webui-integration.js +48 -27
- package/src/cli/simple-commands/swarm.js +216 -181
- package/src/cli/simple-commands/task.js +29 -29
- package/src/cli/simple-commands/timestamp-fix.js +28 -25
- package/src/cli/simple-commands/tool-execution-framework.js +115 -118
- package/src/cli/simple-commands/training.js +219 -194
- package/src/cli/simple-commands/web-server.js +118 -117
- package/src/cli/simple-commands/webui-validator.js +4 -3
- package/src/cli/simple-mcp.ts +14 -17
- package/src/cli/simple-orchestrator.ts +113 -101
- package/src/cli/swarm-standalone.js +20 -21
- package/src/cli/ui/compatible-ui.ts +55 -44
- package/src/cli/ui/fallback-handler.ts +19 -16
- package/src/cli/ui/index.ts +14 -15
- package/src/cli/utils/environment-detector.ts +75 -67
- package/src/cli/utils/interactive-detector.js +17 -11
- package/src/cli/utils/prompt-defaults.ts +32 -28
- package/src/cli/utils/safe-interactive.js +21 -20
- package/src/cli/utils.js +127 -110
- package/src/cli/validation-helper.js +16 -21
- package/src/cli/validation-helper.ts +21 -34
- package/src/communication/message-bus.ts +137 -124
- package/src/config/config-manager.ts +62 -30
- package/src/config/ruv-swarm-config.ts +105 -86
- package/src/config/ruv-swarm-integration.ts +38 -38
- package/src/constants/agent-types.ts +9 -8
- package/src/coordination/README.md +54 -31
- package/src/coordination/advanced-scheduler.ts +23 -26
- package/src/coordination/advanced-task-executor.ts +74 -68
- package/src/coordination/background-executor.ts +33 -30
- package/src/coordination/circuit-breaker.ts +26 -27
- package/src/coordination/conflict-resolution.ts +18 -27
- package/src/coordination/dependency-graph.ts +15 -18
- package/src/coordination/hive-orchestrator.ts +111 -81
- package/src/coordination/hive-protocol.ts +68 -77
- package/src/coordination/index.ts +3 -7
- package/src/coordination/load-balancer.ts +115 -105
- package/src/coordination/manager.ts +38 -51
- package/src/coordination/messaging.ts +19 -29
- package/src/coordination/metrics.ts +57 -60
- package/src/coordination/resources.ts +32 -37
- package/src/coordination/scheduler.ts +29 -30
- package/src/coordination/swarm-coordinator.ts +81 -70
- package/src/coordination/swarm-monitor.ts +90 -69
- package/src/coordination/work-stealing.ts +6 -13
- package/src/core/config.ts +148 -143
- package/src/core/event-bus.ts +5 -6
- package/src/core/json-persistence.ts +27 -34
- package/src/core/logger.ts +13 -16
- package/src/core/orchestrator-fixed.ts +33 -32
- package/src/core/orchestrator.ts +166 -159
- package/src/core/persistence.ts +47 -36
- package/src/enterprise/analytics-manager.ts +242 -233
- package/src/enterprise/audit-manager.ts +238 -184
- package/src/enterprise/cloud-manager.ts +167 -151
- package/src/enterprise/deployment-manager.ts +223 -180
- package/src/enterprise/index.ts +7 -7
- package/src/enterprise/project-manager.ts +151 -133
- package/src/enterprise/security-manager.ts +278 -223
- package/src/hive-mind/core/Agent.ts +112 -109
- package/src/hive-mind/core/Communication.ts +67 -69
- package/src/hive-mind/core/DatabaseManager.ts +371 -179
- package/src/hive-mind/core/HiveMind.ts +100 -96
- package/src/hive-mind/core/Memory.ts +304 -295
- package/src/hive-mind/core/MemoryMonitor.ts +46 -47
- package/src/hive-mind/core/Queen.ts +187 -114
- package/src/hive-mind/index.ts +2 -2
- package/src/hive-mind/integration/ConsensusEngine.ts +88 -92
- package/src/hive-mind/integration/MCPToolWrapper.ts +20 -72
- package/src/hive-mind/integration/SwarmOrchestrator.ts +173 -165
- package/src/hive-mind/types.ts +24 -12
- package/src/integration/mock-components.ts +42 -30
- package/src/integration/system-integration.ts +79 -78
- package/src/integration/types.ts +7 -7
- package/src/mcp/README.md +23 -4
- package/src/mcp/auth.ts +25 -18
- package/src/mcp/claude-code-wrapper.ts +257 -150
- package/src/mcp/claude-flow-tools.ts +52 -13
- package/src/mcp/client.ts +15 -13
- package/src/mcp/index.ts +22 -27
- package/src/mcp/integrate-wrapper.ts +18 -18
- package/src/mcp/lifecycle-manager.ts +30 -27
- package/src/mcp/load-balancer.ts +10 -11
- package/src/mcp/mcp-server.js +662 -351
- package/src/mcp/orchestration-integration.ts +32 -17
- package/src/mcp/performance-monitor.ts +65 -51
- package/src/mcp/protocol-manager.ts +36 -52
- package/src/mcp/recovery/connection-health-monitor.ts +40 -35
- package/src/mcp/recovery/connection-state-manager.ts +52 -50
- package/src/mcp/recovery/fallback-coordinator.ts +24 -24
- package/src/mcp/recovery/index.ts +23 -4
- package/src/mcp/recovery/reconnection-manager.ts +14 -15
- package/src/mcp/recovery/recovery-manager.ts +52 -68
- package/src/mcp/router.ts +1 -2
- package/src/mcp/ruv-swarm-tools.ts +167 -138
- package/src/mcp/ruv-swarm-wrapper.js +31 -23
- package/src/mcp/server-with-wrapper.ts +4 -5
- package/src/mcp/server-wrapper-mode.ts +5 -6
- package/src/mcp/server.ts +45 -40
- package/src/mcp/session-manager.ts +8 -11
- package/src/mcp/sparc-modes.ts +29 -28
- package/src/mcp/swarm-tools.ts +131 -114
- package/src/mcp/tests/mcp-integration.test.ts +49 -55
- package/src/mcp/tools.ts +53 -38
- package/src/mcp/transports/base.ts +4 -5
- package/src/mcp/transports/http.ts +45 -42
- package/src/mcp/transports/stdio.ts +9 -12
- package/src/memory/README.md +37 -27
- package/src/memory/advanced-memory-manager.ts +336 -279
- package/src/memory/backends/base.ts +4 -5
- package/src/memory/backends/markdown.ts +16 -22
- package/src/memory/backends/sqlite.ts +40 -18
- package/src/memory/cache.ts +18 -18
- package/src/memory/distributed-memory.ts +84 -92
- package/src/memory/enhanced-examples.js +68 -59
- package/src/memory/enhanced-memory.js +99 -80
- package/src/memory/fallback-store.js +49 -8
- package/src/memory/in-memory-store.js +31 -27
- package/src/memory/index.js +4 -4
- package/src/memory/indexer.ts +6 -10
- package/src/memory/manager.ts +45 -59
- package/src/memory/migration.js +107 -90
- package/src/memory/shared-memory.js +155 -157
- package/src/memory/sqlite-store.js +78 -62
- package/src/memory/sqlite-wrapper.js +173 -0
- package/src/memory/swarm-memory.js +138 -131
- package/src/memory/swarm-memory.ts +74 -75
- package/src/memory/test-example.js +28 -30
- package/src/migration/README.md +25 -9
- package/src/migration/index.ts +13 -14
- package/src/migration/logger.ts +9 -7
- package/src/migration/migration-analyzer.ts +66 -52
- package/src/migration/migration-manifest.json +2 -6
- package/src/migration/migration-runner.ts +86 -63
- package/src/migration/migration-validator.ts +93 -68
- package/src/migration/package.json +1 -1
- package/src/migration/progress-reporter.ts +25 -21
- package/src/migration/rollback-manager.ts +79 -63
- package/src/migration/tests/migration-system.test.ts +4 -491
- package/src/migration/tsconfig.json +3 -10
- package/src/migration/types.ts +1 -1
- package/src/monitoring/diagnostics.ts +123 -97
- package/src/monitoring/health-check.ts +45 -51
- package/src/monitoring/real-time-monitor.ts +105 -92
- package/src/resources/resource-manager.ts +205 -159
- package/src/swarm/__tests__/integration.test.ts +59 -65
- package/src/swarm/__tests__/prompt-copier.test.ts +27 -27
- package/src/swarm/claude-flow-executor.ts +50 -49
- package/src/swarm/coordinator.ts +727 -635
- package/src/swarm/direct-executor.ts +80 -86
- package/src/swarm/executor-v2.ts +81 -66
- package/src/swarm/executor.ts +124 -124
- package/src/swarm/index.ts +7 -8
- package/src/swarm/json-output-aggregator.ts +56 -40
- package/src/swarm/memory.ts +152 -147
- package/src/swarm/optimizations/README.md +20 -12
- package/src/swarm/optimizations/__tests__/optimization.test.ts +84 -87
- package/src/swarm/optimizations/async-file-manager.ts +70 -80
- package/src/swarm/optimizations/circular-buffer.ts +37 -37
- package/src/swarm/optimizations/connection-pool.ts +64 -64
- package/src/swarm/optimizations/index.ts +4 -4
- package/src/swarm/optimizations/migration-guide.md +27 -16
- package/src/swarm/optimizations/optimized-executor.ts +104 -114
- package/src/swarm/optimizations/ttl-map.ts +66 -63
- package/src/swarm/prompt-cli.ts +48 -42
- package/src/swarm/prompt-copier-enhanced.ts +54 -55
- package/src/swarm/prompt-copier.ts +59 -65
- package/src/swarm/prompt-copying-README.md +49 -33
- package/src/swarm/prompt-manager.ts +69 -63
- package/src/swarm/prompt-utils.ts +71 -66
- package/src/swarm/sparc-executor.ts +298 -225
- package/src/swarm/strategies/auto.ts +367 -252
- package/src/swarm/strategies/base.ts +24 -20
- package/src/swarm/strategies/research.ts +144 -124
- package/src/swarm/types.ts +340 -309
- package/src/swarm/workers/copy-worker.ts +12 -13
- package/src/task/README.md +99 -70
- package/src/task/commands.ts +16 -8
- package/src/task/coordination.ts +209 -162
- package/src/task/engine.ts +81 -65
- package/src/task/index.ts +28 -31
- package/src/templates/claude-optimized/.claude/BATCHTOOLS_BEST_PRACTICES.md +479 -481
- package/src/templates/claude-optimized/.claude/BATCHTOOLS_GUIDE.md +210 -188
- package/src/templates/claude-optimized/.claude/MIGRATION_GUIDE.md +151 -105
- package/src/templates/claude-optimized/.claude/PERFORMANCE_BENCHMARKS.md +102 -87
- package/src/templates/claude-optimized/.claude/commands/claude-flow-help.md +18 -1
- package/src/templates/claude-optimized/.claude/commands/claude-flow-memory.md +17 -1
- package/src/templates/claude-optimized/.claude/commands/claude-flow-swarm.md +21 -1
- package/src/templates/claude-optimized/.claude/commands/sparc/architect.md +11 -4
- package/src/templates/claude-optimized/.claude/commands/sparc/ask.md +16 -10
- package/src/templates/claude-optimized/.claude/commands/sparc/code.md +26 -7
- package/src/templates/claude-optimized/.claude/commands/sparc/debug.md +14 -4
- package/src/templates/claude-optimized/.claude/commands/sparc/devops.md +23 -10
- package/src/templates/claude-optimized/.claude/commands/sparc/docs-writer.md +8 -4
- package/src/templates/claude-optimized/.claude/commands/sparc/integration.md +43 -27
- package/src/templates/claude-optimized/.claude/commands/sparc/mcp.md +15 -1
- package/src/templates/claude-optimized/.claude/commands/sparc/post-deployment-monitoring-mode.md +45 -30
- package/src/templates/claude-optimized/.claude/commands/sparc/refinement-optimization-mode.md +23 -13
- package/src/templates/claude-optimized/.claude/commands/sparc/security-review.md +31 -17
- package/src/templates/claude-optimized/.claude/commands/sparc/sparc.md +54 -47
- package/src/templates/claude-optimized/.claude/commands/sparc/spec-pseudocode.md +27 -17
- package/src/templates/claude-optimized/.claude/commands/sparc/supabase-admin.md +18 -4
- package/src/templates/claude-optimized/.claude/commands/sparc/tdd.md +23 -9
- package/src/templates/claude-optimized/.claude/commands/sparc/tutorial.md +22 -16
- package/src/templates/claude-optimized/.claude/commands/sparc.md +20 -1
- package/src/templates/claude-optimized/README.md +10 -1
- package/src/templates/claude-optimized/SUMMARY.md +23 -1
- package/src/templates/claude-optimized/deploy-to-project.js +22 -10
- package/src/templates/claude-optimized/install-template.js +14 -10
- package/src/templates/claude-optimized/manifest.json +1 -1
- package/src/templates/claude-optimized/package.json +1 -1
- package/src/templates/claude-optimized/template-manager.js +8 -8
- package/src/templates/claude-optimized/validate-template.js +33 -23
- package/src/terminal/adapters/base.ts +1 -1
- package/src/terminal/adapters/native.ts +47 -47
- package/src/terminal/adapters/vscode.ts +21 -28
- package/src/terminal/manager.ts +27 -22
- package/src/terminal/pool.ts +24 -27
- package/src/terminal/session.ts +18 -18
- package/src/terminal/vscode-bridge.ts +21 -21
- package/src/tests/validation-consistency.test.ts +4 -4
- package/src/types/cliffy.d.ts +11 -14
- package/src/types/global.d.ts +1 -2
- package/src/types/index.ts +2 -2
- package/src/types/mcp.d.ts +11 -17
- package/src/types/vscode.d.ts +18 -5
- package/src/ui/console/README-analysis-tools.md +52 -2
- package/src/ui/console/README.md +33 -1
- package/src/ui/console/WORKFLOW_DESIGNER_README.md +81 -22
- package/src/ui/console/analysis-tools.html +282 -261
- package/src/ui/console/analytics.html +329 -326
- package/src/ui/console/index.html +221 -209
- package/src/ui/console/js/analysis-tools.js +815 -754
- package/src/ui/console/js/command-handler.js +226 -196
- package/src/ui/console/js/console.js +117 -119
- package/src/ui/console/js/daa-tools.js +797 -787
- package/src/ui/console/js/memory-interface.js +676 -638
- package/src/ui/console/js/memory-test.js +49 -46
- package/src/ui/console/js/memory-tools.js +181 -159
- package/src/ui/console/js/settings.js +124 -103
- package/src/ui/console/js/terminal-emulator.js +147 -130
- package/src/ui/console/js/websocket-client.js +71 -71
- package/src/ui/console/js/workflow-designer.js +1126 -1110
- package/src/ui/console/neural-networks-demo.md +45 -16
- package/src/ui/console/styles/analysis-tools.css +571 -561
- package/src/ui/console/styles/console.css +16 -12
- package/src/ui/console/styles/daa-tools.css +322 -319
- package/src/ui/console/styles/responsive.css +71 -70
- package/src/ui/console/styles/settings.css +12 -12
- package/src/ui/console/styles/workflow-designer.css +628 -584
- package/src/ui/console/test-neural-networks.js +59 -54
- package/src/ui/console/test-neural.html +194 -196
- package/src/ui/console/workflow-designer-demo.html +433 -424
- package/src/ui/hive-dashboard.ts +74 -52
- package/src/ui/web-ui/EnhancedProcessUI.js +570 -424
- package/src/ui/web-ui/EnhancedWebUI.js +65 -65
- package/src/ui/web-ui/README.md +16 -16
- package/src/ui/web-ui/components/ComponentLibrary.js +173 -124
- package/src/ui/web-ui/core/EventBus.js +27 -25
- package/src/ui/web-ui/core/MCPIntegrationLayer.js +294 -108
- package/src/ui/web-ui/core/StateManager.js +43 -46
- package/src/ui/web-ui/core/UIManager.js +120 -70
- package/src/ui/web-ui/core/ViewManager.js +16 -19
- package/src/ui/web-ui/index.js +101 -48
- package/src/ui/web-ui/neural-panel-test.js +109 -108
- package/src/ui/web-ui/test-github-view.js +11 -12
- package/src/ui/web-ui/test-neural-panel.html +219 -205
- package/src/ui/web-ui/views/DAAView.js +88 -85
- package/src/ui/web-ui/views/GitHubIntegrationTest.js +42 -42
- package/src/ui/web-ui/views/GitHubIntegrationView.js +59 -53
- package/src/ui/web-ui/views/NeuralNetworkView.js +20 -21
- package/src/ui/web-ui/views/WorkflowAutomationView.js +31 -32
- package/src/utils/error-handler.js +1 -1
- package/src/utils/error-handler.ts +9 -5
- package/src/utils/errors.ts +20 -18
- package/src/utils/formatters.ts +6 -6
- package/src/utils/helpers.ts +53 -55
- package/src/utils/npx-isolated-cache.js +16 -16
- package/src/utils/paths.ts +9 -6
- package/src/utils/timezone-utils.js +16 -16
- package/src/utils/type-guards.ts +37 -26
- package/src/utils/types.ts +2 -2
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { getErrorMessage } from '../utils/error-handler.js';
|
|
2
1
|
/**
|
|
3
2
|
* SPARC-Enhanced Task Executor for Swarm
|
|
4
3
|
* Implements the full SPARC methodology with TDD
|
|
@@ -30,10 +29,12 @@ export class SparcTaskExecutor {
|
|
|
30
29
|
private phases: Map<string, SparcPhase> = new Map();
|
|
31
30
|
|
|
32
31
|
constructor(config: SparcExecutorConfig = {}) {
|
|
33
|
-
this.logger =
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
this.logger =
|
|
33
|
+
config.logger ||
|
|
34
|
+
new Logger(
|
|
35
|
+
{ level: 'info', format: 'text', destination: 'console' },
|
|
36
|
+
{ component: 'SparcTaskExecutor' },
|
|
37
|
+
);
|
|
37
38
|
this.enableTDD = config.enableTDD ?? true;
|
|
38
39
|
this.qualityThreshold = config.qualityThreshold ?? 0.8;
|
|
39
40
|
this.enableMemory = config.enableMemory ?? true;
|
|
@@ -42,44 +43,59 @@ export class SparcTaskExecutor {
|
|
|
42
43
|
|
|
43
44
|
private initializePhases() {
|
|
44
45
|
this.phases = new Map([
|
|
45
|
-
[
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
46
|
+
[
|
|
47
|
+
'specification',
|
|
48
|
+
{
|
|
49
|
+
name: 'Specification',
|
|
50
|
+
description: 'Define detailed requirements and acceptance criteria',
|
|
51
|
+
outputs: ['requirements.md', 'user-stories.md', 'acceptance-criteria.md'],
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
[
|
|
55
|
+
'pseudocode',
|
|
56
|
+
{
|
|
57
|
+
name: 'Pseudocode',
|
|
58
|
+
description: 'Create algorithmic logic and data structures',
|
|
59
|
+
outputs: ['algorithms.md', 'data-structures.md', 'flow-diagrams.md'],
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
[
|
|
63
|
+
'architecture',
|
|
64
|
+
{
|
|
65
|
+
name: 'Architecture',
|
|
66
|
+
description: 'Design system architecture and components',
|
|
67
|
+
outputs: ['architecture.md', 'component-diagram.md', 'api-design.md'],
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
[
|
|
71
|
+
'refinement',
|
|
72
|
+
{
|
|
73
|
+
name: 'Refinement (TDD)',
|
|
74
|
+
description: 'Implement with Test-Driven Development',
|
|
75
|
+
outputs: ['tests/', 'src/', 'coverage/'],
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
[
|
|
79
|
+
'completion',
|
|
80
|
+
{
|
|
81
|
+
name: 'Completion',
|
|
82
|
+
description: 'Integration, documentation, and validation',
|
|
83
|
+
outputs: ['README.md', 'docs/', 'examples/'],
|
|
84
|
+
},
|
|
85
|
+
],
|
|
70
86
|
]);
|
|
71
87
|
}
|
|
72
88
|
|
|
73
89
|
async executeTask(
|
|
74
90
|
task: TaskDefinition,
|
|
75
91
|
agent: AgentState,
|
|
76
|
-
targetDir?: string
|
|
92
|
+
targetDir?: string,
|
|
77
93
|
): Promise<TaskResult> {
|
|
78
94
|
this.logger.info('Executing SPARC-enhanced task', {
|
|
79
95
|
taskId: task.id.id,
|
|
80
96
|
taskName: task.name,
|
|
81
97
|
agentType: agent.type,
|
|
82
|
-
targetDir
|
|
98
|
+
targetDir,
|
|
83
99
|
});
|
|
84
100
|
|
|
85
101
|
const startTime = Date.now();
|
|
@@ -105,7 +121,7 @@ export class SparcTaskExecutor {
|
|
|
105
121
|
executionTime,
|
|
106
122
|
targetDir,
|
|
107
123
|
sparcPhase: result.phase,
|
|
108
|
-
quality: result.quality || 1.0
|
|
124
|
+
quality: result.quality || 1.0,
|
|
109
125
|
},
|
|
110
126
|
quality: result.quality || 1.0,
|
|
111
127
|
completeness: result.completeness || 1.0,
|
|
@@ -116,14 +132,14 @@ export class SparcTaskExecutor {
|
|
|
116
132
|
maxMemory: 0,
|
|
117
133
|
diskIO: 0,
|
|
118
134
|
networkIO: 0,
|
|
119
|
-
fileHandles: 0
|
|
135
|
+
fileHandles: 0,
|
|
120
136
|
},
|
|
121
|
-
validated: true
|
|
137
|
+
validated: true,
|
|
122
138
|
};
|
|
123
139
|
} catch (error) {
|
|
124
140
|
this.logger.error('SPARC task execution failed', {
|
|
125
141
|
taskId: task.id.id,
|
|
126
|
-
error:
|
|
142
|
+
error: error instanceof Error ? error.message : String(error),
|
|
127
143
|
});
|
|
128
144
|
throw error;
|
|
129
145
|
}
|
|
@@ -132,10 +148,10 @@ export class SparcTaskExecutor {
|
|
|
132
148
|
private async executeSparcPhase(
|
|
133
149
|
task: TaskDefinition,
|
|
134
150
|
agent: AgentState,
|
|
135
|
-
targetDir?: string
|
|
151
|
+
targetDir?: string,
|
|
136
152
|
): Promise<any> {
|
|
137
153
|
const objective = task.description.toLowerCase();
|
|
138
|
-
|
|
154
|
+
|
|
139
155
|
// Map agent types to SPARC phases
|
|
140
156
|
switch (agent.type) {
|
|
141
157
|
case 'analyst':
|
|
@@ -143,32 +159,32 @@ export class SparcTaskExecutor {
|
|
|
143
159
|
return this.executeSpecificationPhase(task, targetDir);
|
|
144
160
|
}
|
|
145
161
|
return this.executeAnalysisPhase(task, targetDir);
|
|
146
|
-
|
|
162
|
+
|
|
147
163
|
case 'researcher':
|
|
148
164
|
return this.executePseudocodePhase(task, targetDir);
|
|
149
|
-
|
|
165
|
+
|
|
150
166
|
case 'architect':
|
|
151
167
|
case 'coordinator':
|
|
152
168
|
if (task.name.includes('Architecture') || objective.includes('design')) {
|
|
153
169
|
return this.executeArchitecturePhase(task, targetDir);
|
|
154
170
|
}
|
|
155
171
|
return this.executeCoordinationPhase(task, targetDir);
|
|
156
|
-
|
|
172
|
+
|
|
157
173
|
case 'coder':
|
|
158
174
|
if (this.enableTDD && task.name.includes('Implement')) {
|
|
159
175
|
return this.executeTDDPhase(task, targetDir);
|
|
160
176
|
}
|
|
161
177
|
return this.executeImplementationPhase(task, targetDir);
|
|
162
|
-
|
|
178
|
+
|
|
163
179
|
case 'tester':
|
|
164
180
|
return this.executeTestingPhase(task, targetDir);
|
|
165
|
-
|
|
181
|
+
|
|
166
182
|
case 'reviewer':
|
|
167
183
|
return this.executeReviewPhase(task, targetDir);
|
|
168
|
-
|
|
184
|
+
|
|
169
185
|
case 'documenter':
|
|
170
186
|
return this.executeDocumentationPhase(task, targetDir);
|
|
171
|
-
|
|
187
|
+
|
|
172
188
|
default:
|
|
173
189
|
return this.executeGenericPhase(task, targetDir);
|
|
174
190
|
}
|
|
@@ -176,10 +192,10 @@ export class SparcTaskExecutor {
|
|
|
176
192
|
|
|
177
193
|
private async executeSpecificationPhase(task: TaskDefinition, targetDir?: string): Promise<any> {
|
|
178
194
|
this.logger.info('Executing Specification phase', { taskName: task.name });
|
|
179
|
-
|
|
195
|
+
|
|
180
196
|
const objective = task.description;
|
|
181
197
|
const appType = this.determineAppType(objective);
|
|
182
|
-
|
|
198
|
+
|
|
183
199
|
const specifications = {
|
|
184
200
|
phase: 'specification',
|
|
185
201
|
requirements: this.generateRequirements(objective, appType),
|
|
@@ -187,26 +203,26 @@ export class SparcTaskExecutor {
|
|
|
187
203
|
acceptanceCriteria: this.generateAcceptanceCriteria(appType),
|
|
188
204
|
constraints: this.identifyConstraints(objective),
|
|
189
205
|
quality: 0.9,
|
|
190
|
-
completeness: 0.95
|
|
206
|
+
completeness: 0.95,
|
|
191
207
|
};
|
|
192
208
|
|
|
193
209
|
if (targetDir) {
|
|
194
210
|
const specsDir = path.join(targetDir, 'specs');
|
|
195
211
|
await fs.mkdir(specsDir, { recursive: true });
|
|
196
|
-
|
|
212
|
+
|
|
197
213
|
await fs.writeFile(
|
|
198
214
|
path.join(specsDir, 'requirements.md'),
|
|
199
|
-
this.formatRequirements(specifications.requirements)
|
|
215
|
+
this.formatRequirements(specifications.requirements),
|
|
200
216
|
);
|
|
201
|
-
|
|
217
|
+
|
|
202
218
|
await fs.writeFile(
|
|
203
219
|
path.join(specsDir, 'user-stories.md'),
|
|
204
|
-
this.formatUserStories(specifications.userStories)
|
|
220
|
+
this.formatUserStories(specifications.userStories),
|
|
205
221
|
);
|
|
206
|
-
|
|
222
|
+
|
|
207
223
|
await fs.writeFile(
|
|
208
224
|
path.join(specsDir, 'acceptance-criteria.md'),
|
|
209
|
-
this.formatAcceptanceCriteria(specifications.acceptanceCriteria)
|
|
225
|
+
this.formatAcceptanceCriteria(specifications.acceptanceCriteria),
|
|
210
226
|
);
|
|
211
227
|
}
|
|
212
228
|
|
|
@@ -215,30 +231,30 @@ export class SparcTaskExecutor {
|
|
|
215
231
|
|
|
216
232
|
private async executePseudocodePhase(task: TaskDefinition, targetDir?: string): Promise<any> {
|
|
217
233
|
this.logger.info('Executing Pseudocode phase', { taskName: task.name });
|
|
218
|
-
|
|
234
|
+
|
|
219
235
|
const appType = this.determineAppType(task.description);
|
|
220
|
-
|
|
236
|
+
|
|
221
237
|
const pseudocode = {
|
|
222
238
|
phase: 'pseudocode',
|
|
223
239
|
algorithms: this.generateAlgorithms(appType),
|
|
224
240
|
dataStructures: this.generateDataStructures(appType),
|
|
225
241
|
flowDiagrams: this.generateFlowDiagrams(appType),
|
|
226
242
|
quality: 0.85,
|
|
227
|
-
completeness: 0.9
|
|
243
|
+
completeness: 0.9,
|
|
228
244
|
};
|
|
229
245
|
|
|
230
246
|
if (targetDir) {
|
|
231
247
|
const designDir = path.join(targetDir, 'design');
|
|
232
248
|
await fs.mkdir(designDir, { recursive: true });
|
|
233
|
-
|
|
249
|
+
|
|
234
250
|
await fs.writeFile(
|
|
235
251
|
path.join(designDir, 'algorithms.md'),
|
|
236
|
-
this.formatAlgorithms(pseudocode.algorithms)
|
|
252
|
+
this.formatAlgorithms(pseudocode.algorithms),
|
|
237
253
|
);
|
|
238
|
-
|
|
254
|
+
|
|
239
255
|
await fs.writeFile(
|
|
240
256
|
path.join(designDir, 'data-structures.md'),
|
|
241
|
-
this.formatDataStructures(pseudocode.dataStructures)
|
|
257
|
+
this.formatDataStructures(pseudocode.dataStructures),
|
|
242
258
|
);
|
|
243
259
|
}
|
|
244
260
|
|
|
@@ -247,9 +263,9 @@ export class SparcTaskExecutor {
|
|
|
247
263
|
|
|
248
264
|
private async executeArchitecturePhase(task: TaskDefinition, targetDir?: string): Promise<any> {
|
|
249
265
|
this.logger.info('Executing Architecture phase', { taskName: task.name });
|
|
250
|
-
|
|
266
|
+
|
|
251
267
|
const appType = this.determineAppType(task.description);
|
|
252
|
-
|
|
268
|
+
|
|
253
269
|
const architecture = {
|
|
254
270
|
phase: 'architecture',
|
|
255
271
|
components: this.designComponents(appType),
|
|
@@ -257,21 +273,21 @@ export class SparcTaskExecutor {
|
|
|
257
273
|
patterns: this.selectPatterns(appType),
|
|
258
274
|
infrastructure: this.designInfrastructure(appType),
|
|
259
275
|
quality: 0.9,
|
|
260
|
-
completeness: 0.85
|
|
276
|
+
completeness: 0.85,
|
|
261
277
|
};
|
|
262
278
|
|
|
263
279
|
if (targetDir) {
|
|
264
280
|
const archDir = path.join(targetDir, 'architecture');
|
|
265
281
|
await fs.mkdir(archDir, { recursive: true });
|
|
266
|
-
|
|
282
|
+
|
|
267
283
|
await fs.writeFile(
|
|
268
284
|
path.join(archDir, 'architecture.md'),
|
|
269
|
-
this.formatArchitecture(architecture)
|
|
285
|
+
this.formatArchitecture(architecture),
|
|
270
286
|
);
|
|
271
|
-
|
|
287
|
+
|
|
272
288
|
await fs.writeFile(
|
|
273
289
|
path.join(archDir, 'component-diagram.md'),
|
|
274
|
-
this.formatComponentDiagram(architecture.components)
|
|
290
|
+
this.formatComponentDiagram(architecture.components),
|
|
275
291
|
);
|
|
276
292
|
}
|
|
277
293
|
|
|
@@ -280,19 +296,19 @@ export class SparcTaskExecutor {
|
|
|
280
296
|
|
|
281
297
|
private async executeTDDPhase(task: TaskDefinition, targetDir?: string): Promise<any> {
|
|
282
298
|
this.logger.info('Executing TDD phase (Red-Green-Refactor)', { taskName: task.name });
|
|
283
|
-
|
|
299
|
+
|
|
284
300
|
const appType = this.determineAppType(task.description);
|
|
285
301
|
const language = this.detectLanguage(task.description);
|
|
286
|
-
|
|
302
|
+
|
|
287
303
|
// Red Phase: Write failing tests first
|
|
288
304
|
const tests = await this.generateFailingTests(appType, language);
|
|
289
|
-
|
|
305
|
+
|
|
290
306
|
// Green Phase: Implement minimal code to pass tests
|
|
291
307
|
const implementation = await this.generateMinimalImplementation(appType, language, tests);
|
|
292
|
-
|
|
308
|
+
|
|
293
309
|
// Refactor Phase: Optimize and clean up
|
|
294
310
|
const refactored = await this.refactorImplementation(implementation, tests);
|
|
295
|
-
|
|
311
|
+
|
|
296
312
|
const tddResult = {
|
|
297
313
|
phase: 'refinement-tdd',
|
|
298
314
|
tests,
|
|
@@ -300,19 +316,19 @@ export class SparcTaskExecutor {
|
|
|
300
316
|
coverage: this.calculateCoverage(tests, refactored),
|
|
301
317
|
quality: 0.95,
|
|
302
318
|
completeness: 0.9,
|
|
303
|
-
artifacts: {}
|
|
319
|
+
artifacts: {},
|
|
304
320
|
};
|
|
305
321
|
|
|
306
322
|
if (targetDir) {
|
|
307
323
|
// Create proper project structure
|
|
308
324
|
await this.createProjectStructure(targetDir, appType, language);
|
|
309
|
-
|
|
325
|
+
|
|
310
326
|
// Write test files
|
|
311
327
|
await this.writeTestFiles(targetDir, tests, language);
|
|
312
|
-
|
|
328
|
+
|
|
313
329
|
// Write implementation files
|
|
314
330
|
await this.writeImplementationFiles(targetDir, refactored, language);
|
|
315
|
-
|
|
331
|
+
|
|
316
332
|
// Generate additional files
|
|
317
333
|
await this.generateProjectFiles(targetDir, appType, language);
|
|
318
334
|
}
|
|
@@ -322,7 +338,7 @@ export class SparcTaskExecutor {
|
|
|
322
338
|
|
|
323
339
|
private async executeTestingPhase(task: TaskDefinition, targetDir?: string): Promise<any> {
|
|
324
340
|
this.logger.info('Executing Testing phase', { taskName: task.name });
|
|
325
|
-
|
|
341
|
+
|
|
326
342
|
const testPlan = {
|
|
327
343
|
phase: 'testing',
|
|
328
344
|
unitTests: this.generateUnitTests(task),
|
|
@@ -331,17 +347,14 @@ export class SparcTaskExecutor {
|
|
|
331
347
|
performanceTests: this.generatePerformanceTests(task),
|
|
332
348
|
coverage: { target: 80, current: 0 },
|
|
333
349
|
quality: 0.9,
|
|
334
|
-
completeness: 0.85
|
|
350
|
+
completeness: 0.85,
|
|
335
351
|
};
|
|
336
352
|
|
|
337
353
|
if (targetDir) {
|
|
338
354
|
const testsDir = path.join(targetDir, 'tests');
|
|
339
355
|
await fs.mkdir(testsDir, { recursive: true });
|
|
340
|
-
|
|
341
|
-
await fs.writeFile(
|
|
342
|
-
path.join(testsDir, 'test-plan.md'),
|
|
343
|
-
this.formatTestPlan(testPlan)
|
|
344
|
-
);
|
|
356
|
+
|
|
357
|
+
await fs.writeFile(path.join(testsDir, 'test-plan.md'), this.formatTestPlan(testPlan));
|
|
345
358
|
}
|
|
346
359
|
|
|
347
360
|
return testPlan;
|
|
@@ -349,7 +362,7 @@ export class SparcTaskExecutor {
|
|
|
349
362
|
|
|
350
363
|
private async executeReviewPhase(task: TaskDefinition, targetDir?: string): Promise<any> {
|
|
351
364
|
this.logger.info('Executing Review phase', { taskName: task.name });
|
|
352
|
-
|
|
365
|
+
|
|
353
366
|
const review = {
|
|
354
367
|
phase: 'review',
|
|
355
368
|
codeQuality: this.assessCodeQuality(task),
|
|
@@ -358,14 +371,11 @@ export class SparcTaskExecutor {
|
|
|
358
371
|
maintainability: this.assessMaintainability(task),
|
|
359
372
|
recommendations: this.generateRecommendations(task),
|
|
360
373
|
quality: 0.88,
|
|
361
|
-
completeness: 0.9
|
|
374
|
+
completeness: 0.9,
|
|
362
375
|
};
|
|
363
376
|
|
|
364
377
|
if (targetDir) {
|
|
365
|
-
await fs.writeFile(
|
|
366
|
-
path.join(targetDir, 'review-report.md'),
|
|
367
|
-
this.formatReviewReport(review)
|
|
368
|
-
);
|
|
378
|
+
await fs.writeFile(path.join(targetDir, 'review-report.md'), this.formatReviewReport(review));
|
|
369
379
|
}
|
|
370
380
|
|
|
371
381
|
return review;
|
|
@@ -373,7 +383,7 @@ export class SparcTaskExecutor {
|
|
|
373
383
|
|
|
374
384
|
private async executeDocumentationPhase(task: TaskDefinition, targetDir?: string): Promise<any> {
|
|
375
385
|
this.logger.info('Executing Documentation phase', { taskName: task.name });
|
|
376
|
-
|
|
386
|
+
|
|
377
387
|
const documentation = {
|
|
378
388
|
phase: 'documentation',
|
|
379
389
|
readme: this.generateReadme(task),
|
|
@@ -381,27 +391,18 @@ export class SparcTaskExecutor {
|
|
|
381
391
|
userGuide: this.generateUserGuide(task),
|
|
382
392
|
developerGuide: this.generateDeveloperGuide(task),
|
|
383
393
|
quality: 0.92,
|
|
384
|
-
completeness: 0.95
|
|
394
|
+
completeness: 0.95,
|
|
385
395
|
};
|
|
386
396
|
|
|
387
397
|
if (targetDir) {
|
|
388
398
|
const docsDir = path.join(targetDir, 'docs');
|
|
389
399
|
await fs.mkdir(docsDir, { recursive: true });
|
|
390
|
-
|
|
391
|
-
await fs.writeFile(
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
await fs.writeFile(
|
|
397
|
-
path.join(docsDir, 'api-reference.md'),
|
|
398
|
-
documentation.apiDocs
|
|
399
|
-
);
|
|
400
|
-
|
|
401
|
-
await fs.writeFile(
|
|
402
|
-
path.join(docsDir, 'user-guide.md'),
|
|
403
|
-
documentation.userGuide
|
|
404
|
-
);
|
|
400
|
+
|
|
401
|
+
await fs.writeFile(path.join(targetDir, 'README.md'), documentation.readme);
|
|
402
|
+
|
|
403
|
+
await fs.writeFile(path.join(docsDir, 'api-reference.md'), documentation.apiDocs);
|
|
404
|
+
|
|
405
|
+
await fs.writeFile(path.join(docsDir, 'user-guide.md'), documentation.userGuide);
|
|
405
406
|
}
|
|
406
407
|
|
|
407
408
|
return documentation;
|
|
@@ -423,7 +424,8 @@ export class SparcTaskExecutor {
|
|
|
423
424
|
|
|
424
425
|
private detectLanguage(description: string): string {
|
|
425
426
|
const desc = description.toLowerCase();
|
|
426
|
-
if (desc.includes('python') || desc.includes('flask') || desc.includes('pandas'))
|
|
427
|
+
if (desc.includes('python') || desc.includes('flask') || desc.includes('pandas'))
|
|
428
|
+
return 'python';
|
|
427
429
|
if (desc.includes('typescript') || desc.includes('ts')) return 'typescript';
|
|
428
430
|
if (desc.includes('java')) return 'java';
|
|
429
431
|
return 'javascript';
|
|
@@ -434,75 +436,129 @@ export class SparcTaskExecutor {
|
|
|
434
436
|
functional: this.getFunctionalRequirements(appType),
|
|
435
437
|
nonFunctional: this.getNonFunctionalRequirements(appType),
|
|
436
438
|
technical: this.getTechnicalRequirements(appType),
|
|
437
|
-
business: this.getBusinessRequirements(appType)
|
|
439
|
+
business: this.getBusinessRequirements(appType),
|
|
438
440
|
};
|
|
439
441
|
}
|
|
440
442
|
|
|
441
443
|
private generateUserStories(appType: string): any[] {
|
|
442
444
|
const stories = {
|
|
443
445
|
'rest-api': [
|
|
444
|
-
{
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
446
|
+
{
|
|
447
|
+
id: 'US001',
|
|
448
|
+
story: 'As a developer, I want to create resources via POST endpoints',
|
|
449
|
+
priority: 'high',
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
id: 'US002',
|
|
453
|
+
story: 'As a developer, I want to retrieve resources via GET endpoints',
|
|
454
|
+
priority: 'high',
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
id: 'US003',
|
|
458
|
+
story: 'As a developer, I want to update resources via PUT/PATCH endpoints',
|
|
459
|
+
priority: 'medium',
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
id: 'US004',
|
|
463
|
+
story: 'As a developer, I want to delete resources via DELETE endpoints',
|
|
464
|
+
priority: 'medium',
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
id: 'US005',
|
|
468
|
+
story: 'As a developer, I want API documentation to understand endpoints',
|
|
469
|
+
priority: 'high',
|
|
470
|
+
},
|
|
449
471
|
],
|
|
450
472
|
'python-web': [
|
|
451
|
-
{
|
|
473
|
+
{
|
|
474
|
+
id: 'US001',
|
|
475
|
+
story: 'As a user, I want to access the web application via browser',
|
|
476
|
+
priority: 'high',
|
|
477
|
+
},
|
|
452
478
|
{ id: 'US002', story: 'As a user, I want to authenticate securely', priority: 'high' },
|
|
453
|
-
{
|
|
479
|
+
{
|
|
480
|
+
id: 'US003',
|
|
481
|
+
story: 'As a user, I want responsive UI on all devices',
|
|
482
|
+
priority: 'medium',
|
|
483
|
+
},
|
|
454
484
|
],
|
|
455
485
|
'data-pipeline': [
|
|
456
|
-
{
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
486
|
+
{
|
|
487
|
+
id: 'US001',
|
|
488
|
+
story: 'As a data analyst, I want to load data from multiple sources',
|
|
489
|
+
priority: 'high',
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
id: 'US002',
|
|
493
|
+
story: 'As a data analyst, I want to transform data efficiently',
|
|
494
|
+
priority: 'high',
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
id: 'US003',
|
|
498
|
+
story: 'As a data analyst, I want to export results in various formats',
|
|
499
|
+
priority: 'medium',
|
|
500
|
+
},
|
|
501
|
+
],
|
|
460
502
|
};
|
|
461
|
-
|
|
462
|
-
return (
|
|
463
|
-
|
|
464
|
-
|
|
503
|
+
|
|
504
|
+
return (
|
|
505
|
+
(stories as any)[appType] || [
|
|
506
|
+
{ id: 'US001', story: 'As a user, I want to use the main functionality', priority: 'high' },
|
|
507
|
+
]
|
|
508
|
+
);
|
|
465
509
|
}
|
|
466
510
|
|
|
467
511
|
private generateAcceptanceCriteria(appType: string): any {
|
|
468
512
|
const criteria = {
|
|
469
513
|
'rest-api': {
|
|
470
|
-
endpoints: [
|
|
471
|
-
|
|
472
|
-
|
|
514
|
+
endpoints: [
|
|
515
|
+
'All CRUD operations return appropriate status codes',
|
|
516
|
+
'API responses follow consistent format',
|
|
517
|
+
],
|
|
518
|
+
performance: [
|
|
519
|
+
'Response time < 200ms for simple queries',
|
|
520
|
+
'Can handle 100 concurrent requests',
|
|
521
|
+
],
|
|
522
|
+
security: ['All endpoints require authentication', 'Input validation on all parameters'],
|
|
473
523
|
},
|
|
474
524
|
'python-web': {
|
|
475
525
|
functionality: ['All pages load without errors', 'Forms validate input correctly'],
|
|
476
526
|
usability: ['UI is responsive on mobile devices', 'Page load time < 3 seconds'],
|
|
477
|
-
compatibility: ['Works on Chrome, Firefox, Safari', 'Supports Python 3.8+']
|
|
478
|
-
}
|
|
479
|
-
};
|
|
480
|
-
|
|
481
|
-
return (criteria as any)[appType] || {
|
|
482
|
-
functionality: ['Core features work as expected'],
|
|
483
|
-
quality: ['Code follows best practices']
|
|
527
|
+
compatibility: ['Works on Chrome, Firefox, Safari', 'Supports Python 3.8+'],
|
|
528
|
+
},
|
|
484
529
|
};
|
|
530
|
+
|
|
531
|
+
return (
|
|
532
|
+
(criteria as any)[appType] || {
|
|
533
|
+
functionality: ['Core features work as expected'],
|
|
534
|
+
quality: ['Code follows best practices'],
|
|
535
|
+
}
|
|
536
|
+
);
|
|
485
537
|
}
|
|
486
538
|
|
|
487
539
|
private async generateFailingTests(appType: string, language: string): Promise<any> {
|
|
488
540
|
const testFramework = this.getTestFramework(language);
|
|
489
|
-
|
|
541
|
+
|
|
490
542
|
const tests = {
|
|
491
543
|
unit: this.generateUnitTestCases(appType, language, testFramework),
|
|
492
544
|
integration: this.generateIntegrationTestCases(appType, language, testFramework),
|
|
493
545
|
fixtures: this.generateTestFixtures(appType),
|
|
494
|
-
mocks: this.generateMocks(appType)
|
|
546
|
+
mocks: this.generateMocks(appType),
|
|
495
547
|
};
|
|
496
|
-
|
|
548
|
+
|
|
497
549
|
return tests;
|
|
498
550
|
}
|
|
499
551
|
|
|
500
|
-
private async generateMinimalImplementation(
|
|
552
|
+
private async generateMinimalImplementation(
|
|
553
|
+
appType: string,
|
|
554
|
+
language: string,
|
|
555
|
+
tests: any,
|
|
556
|
+
): Promise<any> {
|
|
501
557
|
return {
|
|
502
558
|
modules: this.generateModules(appType, language),
|
|
503
559
|
classes: this.generateClasses(appType, language),
|
|
504
560
|
functions: this.generateFunctions(appType, language),
|
|
505
|
-
config: this.generateConfig(appType, language)
|
|
561
|
+
config: this.generateConfig(appType, language),
|
|
506
562
|
};
|
|
507
563
|
}
|
|
508
564
|
|
|
@@ -512,13 +568,17 @@ export class SparcTaskExecutor {
|
|
|
512
568
|
optimized: true,
|
|
513
569
|
patterns: ['SOLID principles applied', 'DRY principle followed'],
|
|
514
570
|
performance: 'Optimized for efficiency',
|
|
515
|
-
maintainability: 'Clean, readable code'
|
|
571
|
+
maintainability: 'Clean, readable code',
|
|
516
572
|
};
|
|
517
573
|
}
|
|
518
574
|
|
|
519
|
-
private async createProjectStructure(
|
|
575
|
+
private async createProjectStructure(
|
|
576
|
+
targetDir: string,
|
|
577
|
+
appType: string,
|
|
578
|
+
language: string,
|
|
579
|
+
): Promise<void> {
|
|
520
580
|
const structure = this.getProjectStructure(appType, language);
|
|
521
|
-
|
|
581
|
+
|
|
522
582
|
for (const dir of structure.directories) {
|
|
523
583
|
await fs.mkdir(path.join(targetDir, dir), { recursive: true });
|
|
524
584
|
}
|
|
@@ -527,7 +587,7 @@ export class SparcTaskExecutor {
|
|
|
527
587
|
private async writeTestFiles(targetDir: string, tests: any, language: string): Promise<void> {
|
|
528
588
|
const testDir = path.join(targetDir, this.getTestDirectory(language));
|
|
529
589
|
await fs.mkdir(testDir, { recursive: true });
|
|
530
|
-
|
|
590
|
+
|
|
531
591
|
// Write unit tests
|
|
532
592
|
for (const [name, content] of Object.entries(tests.unit)) {
|
|
533
593
|
const filename = this.getTestFileName(name as string, language);
|
|
@@ -535,10 +595,14 @@ export class SparcTaskExecutor {
|
|
|
535
595
|
}
|
|
536
596
|
}
|
|
537
597
|
|
|
538
|
-
private async writeImplementationFiles(
|
|
598
|
+
private async writeImplementationFiles(
|
|
599
|
+
targetDir: string,
|
|
600
|
+
implementation: any,
|
|
601
|
+
language: string,
|
|
602
|
+
): Promise<void> {
|
|
539
603
|
const srcDir = path.join(targetDir, this.getSourceDirectory(language));
|
|
540
604
|
await fs.mkdir(srcDir, { recursive: true });
|
|
541
|
-
|
|
605
|
+
|
|
542
606
|
// Write implementation files
|
|
543
607
|
for (const [module, content] of Object.entries(implementation.modules)) {
|
|
544
608
|
const filename = this.getSourceFileName(module as string, language);
|
|
@@ -546,9 +610,13 @@ export class SparcTaskExecutor {
|
|
|
546
610
|
}
|
|
547
611
|
}
|
|
548
612
|
|
|
549
|
-
private async generateProjectFiles(
|
|
613
|
+
private async generateProjectFiles(
|
|
614
|
+
targetDir: string,
|
|
615
|
+
appType: string,
|
|
616
|
+
language: string,
|
|
617
|
+
): Promise<void> {
|
|
550
618
|
const files = await this.getProjectFiles(appType, language);
|
|
551
|
-
|
|
619
|
+
|
|
552
620
|
for (const [filename, content] of Object.entries(files)) {
|
|
553
621
|
await fs.writeFile(path.join(targetDir, filename as string), content as string);
|
|
554
622
|
}
|
|
@@ -561,7 +629,7 @@ export class SparcTaskExecutor {
|
|
|
561
629
|
python: 'pytest',
|
|
562
630
|
javascript: 'jest',
|
|
563
631
|
typescript: 'jest',
|
|
564
|
-
java: 'junit'
|
|
632
|
+
java: 'junit',
|
|
565
633
|
};
|
|
566
634
|
return frameworks[language] || 'generic';
|
|
567
635
|
}
|
|
@@ -570,18 +638,20 @@ export class SparcTaskExecutor {
|
|
|
570
638
|
const structures = {
|
|
571
639
|
'python-rest-api': {
|
|
572
640
|
directories: ['src', 'tests', 'docs', 'config', 'migrations', 'scripts'],
|
|
573
|
-
files: ['requirements.txt', 'setup.py', 'pytest.ini', '.gitignore', 'Dockerfile']
|
|
641
|
+
files: ['requirements.txt', 'setup.py', 'pytest.ini', '.gitignore', 'Dockerfile'],
|
|
574
642
|
},
|
|
575
643
|
'javascript-rest-api': {
|
|
576
644
|
directories: ['src', 'tests', 'docs', 'config', 'public'],
|
|
577
|
-
files: ['package.json', 'tsconfig.json', 'jest.config.js', '.gitignore', 'Dockerfile']
|
|
578
|
-
}
|
|
579
|
-
};
|
|
580
|
-
|
|
581
|
-
return structures[`${language}-${appType}`] || {
|
|
582
|
-
directories: ['src', 'tests', 'docs'],
|
|
583
|
-
files: ['README.md', '.gitignore']
|
|
645
|
+
files: ['package.json', 'tsconfig.json', 'jest.config.js', '.gitignore', 'Dockerfile'],
|
|
646
|
+
},
|
|
584
647
|
};
|
|
648
|
+
|
|
649
|
+
return (
|
|
650
|
+
structures[`${language}-${appType}`] || {
|
|
651
|
+
directories: ['src', 'tests', 'docs'],
|
|
652
|
+
files: ['README.md', '.gitignore'],
|
|
653
|
+
}
|
|
654
|
+
);
|
|
585
655
|
}
|
|
586
656
|
|
|
587
657
|
private getTestDirectory(language: string): string {
|
|
@@ -602,7 +672,7 @@ export class SparcTaskExecutor {
|
|
|
602
672
|
python: 'py',
|
|
603
673
|
javascript: 'js',
|
|
604
674
|
typescript: 'ts',
|
|
605
|
-
java: 'java'
|
|
675
|
+
java: 'java',
|
|
606
676
|
};
|
|
607
677
|
return `${name}.${(extensions as any)[language] || 'js'}`;
|
|
608
678
|
}
|
|
@@ -616,24 +686,24 @@ export class SparcTaskExecutor {
|
|
|
616
686
|
'Support JSON request/response format',
|
|
617
687
|
'Implement proper HTTP status codes',
|
|
618
688
|
'Support pagination for list endpoints',
|
|
619
|
-
'Implement filtering and sorting'
|
|
689
|
+
'Implement filtering and sorting',
|
|
620
690
|
],
|
|
621
691
|
'data-pipeline': [
|
|
622
692
|
'Load data from CSV, JSON, and database sources',
|
|
623
693
|
'Validate and clean input data',
|
|
624
694
|
'Transform data according to business rules',
|
|
625
695
|
'Generate summary statistics',
|
|
626
|
-
'Export results in multiple formats'
|
|
696
|
+
'Export results in multiple formats',
|
|
627
697
|
],
|
|
628
698
|
'ml-app': [
|
|
629
699
|
'Preprocess input data for model',
|
|
630
700
|
'Train model with configurable parameters',
|
|
631
701
|
'Evaluate model performance',
|
|
632
702
|
'Save and load trained models',
|
|
633
|
-
'Provide prediction API'
|
|
634
|
-
]
|
|
703
|
+
'Provide prediction API',
|
|
704
|
+
],
|
|
635
705
|
};
|
|
636
|
-
|
|
706
|
+
|
|
637
707
|
return (requirements as any)[appType] || ['Implement core functionality'];
|
|
638
708
|
}
|
|
639
709
|
|
|
@@ -643,7 +713,7 @@ export class SparcTaskExecutor {
|
|
|
643
713
|
'Support 1000 concurrent users',
|
|
644
714
|
'99.9% uptime availability',
|
|
645
715
|
'Secure authentication and authorization',
|
|
646
|
-
'Comprehensive logging and monitoring'
|
|
716
|
+
'Comprehensive logging and monitoring',
|
|
647
717
|
];
|
|
648
718
|
}
|
|
649
719
|
|
|
@@ -654,17 +724,17 @@ export class SparcTaskExecutor {
|
|
|
654
724
|
'Implement database ORM/ODM',
|
|
655
725
|
'Use environment variables for configuration',
|
|
656
726
|
'Implement proper error handling',
|
|
657
|
-
'Add request validation middleware'
|
|
727
|
+
'Add request validation middleware',
|
|
658
728
|
],
|
|
659
729
|
'data-pipeline': [
|
|
660
730
|
'Use pandas for data manipulation',
|
|
661
731
|
'Implement parallel processing for large datasets',
|
|
662
732
|
'Use appropriate data storage (SQL, NoSQL)',
|
|
663
733
|
'Implement data validation rules',
|
|
664
|
-
'Add progress tracking for long operations'
|
|
665
|
-
]
|
|
734
|
+
'Add progress tracking for long operations',
|
|
735
|
+
],
|
|
666
736
|
};
|
|
667
|
-
|
|
737
|
+
|
|
668
738
|
return (tech as any)[appType] || ['Follow best practices for the technology stack'];
|
|
669
739
|
}
|
|
670
740
|
|
|
@@ -674,14 +744,14 @@ export class SparcTaskExecutor {
|
|
|
674
744
|
'Ensure scalability for future growth',
|
|
675
745
|
'Maintain code quality standards',
|
|
676
746
|
'Provide comprehensive documentation',
|
|
677
|
-
'Enable easy maintenance and updates'
|
|
747
|
+
'Enable easy maintenance and updates',
|
|
678
748
|
];
|
|
679
749
|
}
|
|
680
750
|
|
|
681
751
|
private generateUnitTestCases(appType: string, language: string, framework: string): any {
|
|
682
752
|
if (language === 'python' && appType === 'rest-api') {
|
|
683
753
|
return {
|
|
684
|
-
|
|
754
|
+
test_models: `import pytest
|
|
685
755
|
from src.models import User, Product
|
|
686
756
|
|
|
687
757
|
class TestUserModel:
|
|
@@ -711,7 +781,7 @@ class TestProductModel:
|
|
|
711
781
|
assert product.name == "Test Product"
|
|
712
782
|
assert product.price == 99.99
|
|
713
783
|
`,
|
|
714
|
-
|
|
784
|
+
test_services: `import pytest
|
|
715
785
|
from unittest.mock import Mock, patch
|
|
716
786
|
from src.services import UserService, ProductService
|
|
717
787
|
|
|
@@ -735,20 +805,20 @@ class TestUserService:
|
|
|
735
805
|
user = user_service.get_user(1)
|
|
736
806
|
assert user.id == 1
|
|
737
807
|
assert user.username == "testuser"
|
|
738
|
-
|
|
808
|
+
`,
|
|
739
809
|
};
|
|
740
810
|
}
|
|
741
|
-
|
|
811
|
+
|
|
742
812
|
// Return generic tests for other combinations
|
|
743
813
|
return {
|
|
744
|
-
|
|
814
|
+
test_main: 'Test file content for main functionality',
|
|
745
815
|
};
|
|
746
816
|
}
|
|
747
817
|
|
|
748
818
|
private generateIntegrationTestCases(appType: string, language: string, framework: string): any {
|
|
749
819
|
if (language === 'python' && appType === 'rest-api') {
|
|
750
820
|
return {
|
|
751
|
-
|
|
821
|
+
test_api: `import pytest
|
|
752
822
|
from flask import Flask
|
|
753
823
|
from src.app import create_app
|
|
754
824
|
|
|
@@ -781,12 +851,12 @@ class TestAPI:
|
|
|
781
851
|
response = client.get('/api/users')
|
|
782
852
|
assert response.status_code == 200
|
|
783
853
|
assert isinstance(response.json, list)
|
|
784
|
-
|
|
854
|
+
`,
|
|
785
855
|
};
|
|
786
856
|
}
|
|
787
|
-
|
|
857
|
+
|
|
788
858
|
return {
|
|
789
|
-
|
|
859
|
+
test_integration: 'Integration test content',
|
|
790
860
|
};
|
|
791
861
|
}
|
|
792
862
|
|
|
@@ -794,12 +864,12 @@ class TestAPI:
|
|
|
794
864
|
return {
|
|
795
865
|
users: [
|
|
796
866
|
{ id: 1, username: 'user1', email: 'user1@example.com' },
|
|
797
|
-
{ id: 2, username: 'user2', email: 'user2@example.com' }
|
|
867
|
+
{ id: 2, username: 'user2', email: 'user2@example.com' },
|
|
798
868
|
],
|
|
799
869
|
products: [
|
|
800
870
|
{ id: 1, name: 'Product 1', price: 99.99 },
|
|
801
|
-
{ id: 2, name: 'Product 2', price: 149.99 }
|
|
802
|
-
]
|
|
871
|
+
{ id: 2, name: 'Product 2', price: 149.99 },
|
|
872
|
+
],
|
|
803
873
|
};
|
|
804
874
|
}
|
|
805
875
|
|
|
@@ -807,14 +877,14 @@ class TestAPI:
|
|
|
807
877
|
return {
|
|
808
878
|
database: 'Mock database connection',
|
|
809
879
|
externalAPI: 'Mock external API calls',
|
|
810
|
-
fileSystem: 'Mock file system operations'
|
|
880
|
+
fileSystem: 'Mock file system operations',
|
|
811
881
|
};
|
|
812
882
|
}
|
|
813
883
|
|
|
814
884
|
private generateModules(appType: string, language: string): any {
|
|
815
885
|
if (language === 'python' && appType === 'rest-api') {
|
|
816
886
|
return {
|
|
817
|
-
|
|
887
|
+
app: `from flask import Flask
|
|
818
888
|
from flask_cors import CORS
|
|
819
889
|
from config import Config
|
|
820
890
|
from models import db
|
|
@@ -842,7 +912,7 @@ if __name__ == '__main__':
|
|
|
842
912
|
app = create_app()
|
|
843
913
|
app.run(debug=True)
|
|
844
914
|
`,
|
|
845
|
-
|
|
915
|
+
models: `from flask_sqlalchemy import SQLAlchemy
|
|
846
916
|
from datetime import datetime
|
|
847
917
|
from werkzeug.security import generate_password_hash, check_password_hash
|
|
848
918
|
|
|
@@ -889,7 +959,7 @@ class Product(db.Model):
|
|
|
889
959
|
'created_at': self.created_at.isoformat()
|
|
890
960
|
}
|
|
891
961
|
`,
|
|
892
|
-
|
|
962
|
+
routes: `from flask import Blueprint, request, jsonify
|
|
893
963
|
from models import db, User, Product
|
|
894
964
|
from services import UserService, ProductService
|
|
895
965
|
|
|
@@ -957,7 +1027,7 @@ def create_product():
|
|
|
957
1027
|
product = product_service.create_product(data)
|
|
958
1028
|
return jsonify(product.to_dict()), 201
|
|
959
1029
|
`,
|
|
960
|
-
|
|
1030
|
+
services: `from models import db, User, Product
|
|
961
1031
|
|
|
962
1032
|
class UserService:
|
|
963
1033
|
def create_user(self, data):
|
|
@@ -1016,7 +1086,7 @@ class ProductService:
|
|
|
1016
1086
|
db.session.commit()
|
|
1017
1087
|
return product
|
|
1018
1088
|
`,
|
|
1019
|
-
|
|
1089
|
+
config: `import os
|
|
1020
1090
|
from dotenv import load_dotenv
|
|
1021
1091
|
|
|
1022
1092
|
load_dotenv()
|
|
@@ -1043,26 +1113,26 @@ Config = {
|
|
|
1043
1113
|
'production': ProductionConfig,
|
|
1044
1114
|
'default': DevelopmentConfig
|
|
1045
1115
|
}
|
|
1046
|
-
|
|
1116
|
+
`,
|
|
1047
1117
|
};
|
|
1048
1118
|
}
|
|
1049
|
-
|
|
1119
|
+
|
|
1050
1120
|
return {
|
|
1051
|
-
|
|
1121
|
+
main: 'Main module implementation',
|
|
1052
1122
|
};
|
|
1053
1123
|
}
|
|
1054
1124
|
|
|
1055
1125
|
private generateClasses(appType: string, language: string): any {
|
|
1056
1126
|
return {
|
|
1057
|
-
|
|
1058
|
-
|
|
1127
|
+
BaseClass: 'Base class implementation',
|
|
1128
|
+
ServiceClass: 'Service class implementation',
|
|
1059
1129
|
};
|
|
1060
1130
|
}
|
|
1061
1131
|
|
|
1062
1132
|
private generateFunctions(appType: string, language: string): any {
|
|
1063
1133
|
return {
|
|
1064
|
-
|
|
1065
|
-
|
|
1134
|
+
helpers: 'Helper functions',
|
|
1135
|
+
validators: 'Validation functions',
|
|
1066
1136
|
};
|
|
1067
1137
|
}
|
|
1068
1138
|
|
|
@@ -1070,7 +1140,7 @@ Config = {
|
|
|
1070
1140
|
return {
|
|
1071
1141
|
database: 'Database configuration',
|
|
1072
1142
|
api: 'API configuration',
|
|
1073
|
-
logging: 'Logging configuration'
|
|
1143
|
+
logging: 'Logging configuration',
|
|
1074
1144
|
};
|
|
1075
1145
|
}
|
|
1076
1146
|
|
|
@@ -1128,7 +1198,7 @@ venv/
|
|
|
1128
1198
|
htmlcov/
|
|
1129
1199
|
.pytest_cache/
|
|
1130
1200
|
`,
|
|
1131
|
-
|
|
1201
|
+
Dockerfile: `FROM python:3.9-slim
|
|
1132
1202
|
|
|
1133
1203
|
WORKDIR /app
|
|
1134
1204
|
|
|
@@ -1164,13 +1234,13 @@ services:
|
|
|
1164
1234
|
|
|
1165
1235
|
volumes:
|
|
1166
1236
|
postgres_data:
|
|
1167
|
-
|
|
1237
|
+
`,
|
|
1168
1238
|
};
|
|
1169
1239
|
}
|
|
1170
|
-
|
|
1240
|
+
|
|
1171
1241
|
return {
|
|
1172
1242
|
'package.json': 'Package configuration',
|
|
1173
|
-
'.gitignore': 'Git ignore file'
|
|
1243
|
+
'.gitignore': 'Git ignore file',
|
|
1174
1244
|
};
|
|
1175
1245
|
}
|
|
1176
1246
|
|
|
@@ -1179,7 +1249,7 @@ volumes:
|
|
|
1179
1249
|
overall: 85,
|
|
1180
1250
|
unit: 90,
|
|
1181
1251
|
integration: 80,
|
|
1182
|
-
e2e: 70
|
|
1252
|
+
e2e: 70,
|
|
1183
1253
|
};
|
|
1184
1254
|
}
|
|
1185
1255
|
|
|
@@ -1205,17 +1275,25 @@ ${requirements.business.map((r: string) => `- ${r}`).join('\n')}
|
|
|
1205
1275
|
private formatUserStories(stories: any[]): string {
|
|
1206
1276
|
return `# User Stories
|
|
1207
1277
|
|
|
1208
|
-
${stories
|
|
1278
|
+
${stories
|
|
1279
|
+
.map(
|
|
1280
|
+
(s) => `## ${s.id}: ${s.story}
|
|
1209
1281
|
Priority: ${s.priority}
|
|
1210
|
-
|
|
1282
|
+
`,
|
|
1283
|
+
)
|
|
1284
|
+
.join('\n')}`;
|
|
1211
1285
|
}
|
|
1212
1286
|
|
|
1213
1287
|
private formatAcceptanceCriteria(criteria: any): string {
|
|
1214
1288
|
return `# Acceptance Criteria
|
|
1215
1289
|
|
|
1216
|
-
${Object.entries(criteria)
|
|
1217
|
-
|
|
1218
|
-
|
|
1290
|
+
${Object.entries(criteria)
|
|
1291
|
+
.map(
|
|
1292
|
+
([category, items]) => `## ${category}
|
|
1293
|
+
${(items as string[]).map((item) => `- ${item}`).join('\n')}
|
|
1294
|
+
`,
|
|
1295
|
+
)
|
|
1296
|
+
.join('\n')}`;
|
|
1219
1297
|
}
|
|
1220
1298
|
|
|
1221
1299
|
private formatAlgorithms(algorithms: any): string {
|
|
@@ -1409,7 +1487,7 @@ Please follow our contribution guidelines...
|
|
|
1409
1487
|
complexity: 'Low to Medium',
|
|
1410
1488
|
duplication: 'Minimal',
|
|
1411
1489
|
testCoverage: '85%',
|
|
1412
|
-
linting: 'Passing'
|
|
1490
|
+
linting: 'Passing',
|
|
1413
1491
|
};
|
|
1414
1492
|
}
|
|
1415
1493
|
|
|
@@ -1418,7 +1496,7 @@ Please follow our contribution guidelines...
|
|
|
1418
1496
|
authentication: 'Implemented',
|
|
1419
1497
|
authorization: 'Role-based',
|
|
1420
1498
|
inputValidation: 'Comprehensive',
|
|
1421
|
-
encryption: 'At rest and in transit'
|
|
1499
|
+
encryption: 'At rest and in transit',
|
|
1422
1500
|
};
|
|
1423
1501
|
}
|
|
1424
1502
|
|
|
@@ -1427,7 +1505,7 @@ Please follow our contribution guidelines...
|
|
|
1427
1505
|
responseTime: 'Average 150ms',
|
|
1428
1506
|
throughput: '1000 req/s',
|
|
1429
1507
|
scalability: 'Horizontal scaling ready',
|
|
1430
|
-
caching: 'Implemented'
|
|
1508
|
+
caching: 'Implemented',
|
|
1431
1509
|
};
|
|
1432
1510
|
}
|
|
1433
1511
|
|
|
@@ -1436,7 +1514,7 @@ Please follow our contribution guidelines...
|
|
|
1436
1514
|
readability: 'High',
|
|
1437
1515
|
modularity: 'Well-structured',
|
|
1438
1516
|
documentation: 'Comprehensive',
|
|
1439
|
-
dependencies: 'Up to date'
|
|
1517
|
+
dependencies: 'Up to date',
|
|
1440
1518
|
};
|
|
1441
1519
|
}
|
|
1442
1520
|
|
|
@@ -1446,7 +1524,7 @@ Please follow our contribution guidelines...
|
|
|
1446
1524
|
'Add more comprehensive error handling',
|
|
1447
1525
|
'Implement request logging',
|
|
1448
1526
|
'Add performance monitoring',
|
|
1449
|
-
'Consider using a CDN for static assets'
|
|
1527
|
+
'Consider using a CDN for static assets',
|
|
1450
1528
|
];
|
|
1451
1529
|
}
|
|
1452
1530
|
|
|
@@ -1471,7 +1549,7 @@ Please follow our contribution guidelines...
|
|
|
1471
1549
|
'Must complete within timeline',
|
|
1472
1550
|
'Must stay within budget',
|
|
1473
1551
|
'Must meet performance requirements',
|
|
1474
|
-
'Must be maintainable'
|
|
1552
|
+
'Must be maintainable',
|
|
1475
1553
|
];
|
|
1476
1554
|
}
|
|
1477
1555
|
|
|
@@ -1480,7 +1558,7 @@ Please follow our contribution guidelines...
|
|
|
1480
1558
|
frontend: 'UI Components',
|
|
1481
1559
|
backend: 'API Services',
|
|
1482
1560
|
database: 'Data Layer',
|
|
1483
|
-
infrastructure: 'Cloud Services'
|
|
1561
|
+
infrastructure: 'Cloud Services',
|
|
1484
1562
|
};
|
|
1485
1563
|
}
|
|
1486
1564
|
|
|
@@ -1488,17 +1566,12 @@ Please follow our contribution guidelines...
|
|
|
1488
1566
|
return {
|
|
1489
1567
|
api: 'REST/GraphQL interfaces',
|
|
1490
1568
|
database: 'Data access interfaces',
|
|
1491
|
-
external: 'Third-party integrations'
|
|
1569
|
+
external: 'Third-party integrations',
|
|
1492
1570
|
};
|
|
1493
1571
|
}
|
|
1494
1572
|
|
|
1495
1573
|
private selectPatterns(appType: string): string[] {
|
|
1496
|
-
return [
|
|
1497
|
-
'MVC/MVP Pattern',
|
|
1498
|
-
'Repository Pattern',
|
|
1499
|
-
'Factory Pattern',
|
|
1500
|
-
'Observer Pattern'
|
|
1501
|
-
];
|
|
1574
|
+
return ['MVC/MVP Pattern', 'Repository Pattern', 'Factory Pattern', 'Observer Pattern'];
|
|
1502
1575
|
}
|
|
1503
1576
|
|
|
1504
1577
|
private designInfrastructure(appType: string): any {
|
|
@@ -1506,7 +1579,7 @@ Please follow our contribution guidelines...
|
|
|
1506
1579
|
hosting: 'Cloud platform',
|
|
1507
1580
|
database: 'Managed database service',
|
|
1508
1581
|
caching: 'Redis/Memcached',
|
|
1509
|
-
monitoring: 'APM solution'
|
|
1582
|
+
monitoring: 'APM solution',
|
|
1510
1583
|
};
|
|
1511
1584
|
}
|
|
1512
1585
|
|
|
@@ -1514,7 +1587,7 @@ Please follow our contribution guidelines...
|
|
|
1514
1587
|
return {
|
|
1515
1588
|
dataProcessing: 'Data processing algorithms',
|
|
1516
1589
|
businessLogic: 'Core business logic',
|
|
1517
|
-
optimization: 'Performance optimization'
|
|
1590
|
+
optimization: 'Performance optimization',
|
|
1518
1591
|
};
|
|
1519
1592
|
}
|
|
1520
1593
|
|
|
@@ -1522,7 +1595,7 @@ Please follow our contribution guidelines...
|
|
|
1522
1595
|
return {
|
|
1523
1596
|
models: 'Data models',
|
|
1524
1597
|
schemas: 'Database schemas',
|
|
1525
|
-
interfaces: 'TypeScript interfaces'
|
|
1598
|
+
interfaces: 'TypeScript interfaces',
|
|
1526
1599
|
};
|
|
1527
1600
|
}
|
|
1528
1601
|
|
|
@@ -1530,7 +1603,7 @@ Please follow our contribution guidelines...
|
|
|
1530
1603
|
return {
|
|
1531
1604
|
userFlow: 'User interaction flow',
|
|
1532
1605
|
dataFlow: 'Data processing flow',
|
|
1533
|
-
systemFlow: 'System architecture flow'
|
|
1606
|
+
systemFlow: 'System architecture flow',
|
|
1534
1607
|
};
|
|
1535
1608
|
}
|
|
1536
1609
|
|
|
@@ -1559,7 +1632,7 @@ Please follow our contribution guidelines...
|
|
|
1559
1632
|
phase: 'coordination',
|
|
1560
1633
|
status: 'Task coordinated',
|
|
1561
1634
|
quality: 0.9,
|
|
1562
|
-
completeness: 0.95
|
|
1635
|
+
completeness: 0.95,
|
|
1563
1636
|
};
|
|
1564
1637
|
}
|
|
1565
1638
|
|
|
@@ -1568,7 +1641,7 @@ Please follow our contribution guidelines...
|
|
|
1568
1641
|
phase: 'generic',
|
|
1569
1642
|
status: 'Task completed',
|
|
1570
1643
|
quality: 0.85,
|
|
1571
|
-
completeness: 0.9
|
|
1644
|
+
completeness: 0.9,
|
|
1572
1645
|
};
|
|
1573
1646
|
}
|
|
1574
|
-
}
|
|
1647
|
+
}
|