claude-flow-novice 1.3.6 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (347) hide show
  1. package/.claude/agents/analysis/code-analyzer.md +3 -20
  2. package/.claude/agents/analysis/code-review/analyze-code-quality.md +1 -1
  3. package/.claude/agents/analyst.md +208 -550
  4. package/.claude/agents/architect.md +136 -469
  5. package/.claude/agents/architecture/system-architect.md +20 -1
  6. package/.claude/agents/architecture/system-design/arch-system-design.md +1 -1
  7. package/.claude/agents/base-template-generator.md +24 -1
  8. package/.claude/agents/coder.md +87 -303
  9. package/.claude/agents/consensus/byzantine-coordinator.md +4 -21
  10. package/.claude/agents/consensus/consensus-builder.md +3 -20
  11. package/.claude/agents/consensus/crdt-synchronizer.md +4 -21
  12. package/.claude/agents/consensus/gossip-coordinator.md +4 -21
  13. package/.claude/agents/consensus/performance-benchmarker.md +4 -21
  14. package/.claude/agents/consensus/quorum-manager.md +4 -21
  15. package/.claude/agents/consensus/raft-manager.md +4 -21
  16. package/.claude/agents/consensus/security-manager.md +4 -21
  17. package/.claude/agents/coordinator.md +22 -11
  18. package/.claude/agents/data/ml/data-ml-model.md +2 -2
  19. package/.claude/agents/development/backend/dev-backend-api.md +2 -2
  20. package/.claude/agents/devops/ci-cd/ops-cicd-github.md +2 -2
  21. package/.claude/agents/devops/devops-engineer.md +134 -402
  22. package/.claude/agents/documentation/api-docs/docs-api-openapi.md +2 -2
  23. package/.claude/agents/github/code-review-swarm.md +1 -1
  24. package/.claude/agents/github/github-specialist.md +856 -0
  25. package/.claude/agents/github/pr-manager.md +1 -1
  26. package/.claude/agents/github/release-manager.md +1 -1
  27. package/.claude/agents/neural/neural-pattern-agent.md +762 -0
  28. package/.claude/agents/optimization/benchmark-suite.md +1 -1
  29. package/.claude/agents/optimization/perf-analyzer.md +1 -1
  30. package/.claude/agents/optimization/performance-monitor.md +1 -1
  31. package/.claude/agents/planner.md +135 -0
  32. package/.claude/agents/researcher.md +22 -9
  33. package/.claude/agents/reviewer.md +291 -0
  34. package/.claude/agents/security/security-specialist.md +1 -1
  35. package/.claude/agents/sparc/architecture.md +1 -1
  36. package/.claude/agents/sparc/pseudocode.md +1 -1
  37. package/.claude/agents/sparc/refinement.md +1 -1
  38. package/.claude/agents/sparc/specification.md +1 -1
  39. package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +2 -2
  40. package/.claude/agents/tester.md +21 -11
  41. package/.claude/agents/testing/unit/tdd-london-swarm.md +1 -1
  42. package/.claude/agents/testing/validation/production-validator.md +1 -1
  43. package/.claude/commands/claude-soul.js +1 -1
  44. package/.claude/commands/fullstack.md +134 -0
  45. package/.claude/commands/index.js +4 -0
  46. package/.claude/hooks.json +12 -15
  47. package/{.claude → .claude-flow-novice/.claude}/agents/MIGRATION_SUMMARY.md +1 -1
  48. package/.claude-flow-novice/.claude/agents/analysis/code-analyzer.md +192 -0
  49. package/.claude-flow-novice/.claude/agents/analysis/code-review/analyze-code-quality.md +180 -0
  50. package/.claude-flow-novice/.claude/agents/analyst.md +300 -0
  51. package/.claude-flow-novice/.claude/agents/architect.md +557 -0
  52. package/.claude-flow-novice/.claude/agents/architecture/system-architect.md +630 -0
  53. package/.claude-flow-novice/.claude/agents/architecture/system-design/arch-system-design.md +156 -0
  54. package/.claude-flow-novice/.claude/agents/base-template-generator.md +65 -0
  55. package/.claude-flow-novice/.claude/agents/coder.md +180 -0
  56. package/.claude-flow-novice/.claude/agents/consensus/byzantine-coordinator.md +46 -0
  57. package/.claude-flow-novice/.claude/agents/consensus/consensus-builder.md +225 -0
  58. package/.claude-flow-novice/.claude/agents/consensus/crdt-synchronizer.md +980 -0
  59. package/.claude-flow-novice/.claude/agents/consensus/gossip-coordinator.md +46 -0
  60. package/.claude-flow-novice/.claude/agents/consensus/performance-benchmarker.md +834 -0
  61. package/.claude-flow-novice/.claude/agents/consensus/quorum-manager.md +806 -0
  62. package/.claude-flow-novice/.claude/agents/consensus/raft-manager.md +46 -0
  63. package/.claude-flow-novice/.claude/agents/consensus/security-manager.md +605 -0
  64. package/.claude-flow-novice/.claude/agents/coordinator.md +842 -0
  65. package/.claude-flow-novice/.claude/agents/data/ml/data-ml-model.md +193 -0
  66. package/.claude-flow-novice/.claude/agents/development/backend/dev-backend-api.md +142 -0
  67. package/.claude-flow-novice/.claude/agents/devops/ci-cd/ops-cicd-github.md +164 -0
  68. package/.claude-flow-novice/.claude/agents/devops/devops-engineer.md +638 -0
  69. package/.claude-flow-novice/.claude/agents/documentation/api-docs/docs-api-openapi.md +174 -0
  70. package/.claude-flow-novice/.claude/agents/github/code-review-swarm.md +538 -0
  71. package/.claude-flow-novice/.claude/agents/github/github-modes.md +173 -0
  72. package/.claude-flow-novice/.claude/agents/github/github-specialist.md +856 -0
  73. package/.claude-flow-novice/.claude/agents/github/issue-tracker.md +319 -0
  74. package/.claude-flow-novice/.claude/agents/github/multi-repo-swarm.md +553 -0
  75. package/.claude-flow-novice/.claude/agents/github/pr-manager.md +191 -0
  76. package/.claude-flow-novice/.claude/agents/github/project-board-sync.md +509 -0
  77. package/.claude-flow-novice/.claude/agents/github/release-manager.md +367 -0
  78. package/.claude-flow-novice/.claude/agents/github/release-swarm.md +583 -0
  79. package/.claude-flow-novice/.claude/agents/github/repo-architect.md +398 -0
  80. package/.claude-flow-novice/.claude/agents/github/swarm-issue.md +573 -0
  81. package/.claude-flow-novice/.claude/agents/github/swarm-pr.md +428 -0
  82. package/.claude-flow-novice/.claude/agents/github/sync-coordinator.md +452 -0
  83. package/.claude-flow-novice/.claude/agents/github/workflow-automation.md +635 -0
  84. package/.claude-flow-novice/.claude/agents/goal/goal-planner.md +73 -0
  85. package/.claude-flow-novice/.claude/agents/neural/neural-pattern-agent.md +762 -0
  86. package/.claude-flow-novice/.claude/agents/neural/safla-neural.md +74 -0
  87. package/.claude-flow-novice/.claude/agents/optimization/benchmark-suite.md +665 -0
  88. package/.claude-flow-novice/.claude/agents/optimization/load-balancer.md +431 -0
  89. package/.claude-flow-novice/.claude/agents/optimization/perf-analyzer.md +725 -0
  90. package/.claude-flow-novice/.claude/agents/optimization/performance-monitor.md +672 -0
  91. package/.claude-flow-novice/.claude/agents/optimization/resource-allocator.md +674 -0
  92. package/.claude-flow-novice/.claude/agents/optimization/topology-optimizer.md +808 -0
  93. package/.claude-flow-novice/.claude/agents/planner.md +135 -0
  94. package/.claude-flow-novice/.claude/agents/researcher.md +185 -0
  95. package/.claude-flow-novice/.claude/agents/reviewer.md +291 -0
  96. package/.claude-flow-novice/.claude/agents/security/security-specialist.md +978 -0
  97. package/.claude-flow-novice/.claude/agents/sparc/architecture.md +472 -0
  98. package/.claude-flow-novice/.claude/agents/sparc/pseudocode.md +318 -0
  99. package/.claude-flow-novice/.claude/agents/sparc/refinement.md +525 -0
  100. package/.claude-flow-novice/.claude/agents/sparc/specification.md +276 -0
  101. package/.claude-flow-novice/.claude/agents/specialized/mobile/spec-mobile-react-native.md +226 -0
  102. package/.claude-flow-novice/.claude/agents/sublinear/consciousness-evolution-agent.md +499 -0
  103. package/.claude-flow-novice/.claude/agents/sublinear/matrix-solver-agent.md +113 -0
  104. package/.claude-flow-novice/.claude/agents/sublinear/nanosecond-scheduler-agent.md +644 -0
  105. package/.claude-flow-novice/.claude/agents/sublinear/pagerank-agent.md +699 -0
  106. package/.claude-flow-novice/.claude/agents/sublinear/phi-calculator-agent.md +749 -0
  107. package/.claude-flow-novice/.claude/agents/sublinear/psycho-symbolic-agent.md +543 -0
  108. package/.claude-flow-novice/.claude/agents/sublinear/sublinear.md +816 -0
  109. package/.claude-flow-novice/.claude/agents/sublinear/temporal-advantage-agent.md +360 -0
  110. package/.claude-flow-novice/.claude/agents/swarm/adaptive-coordinator-enhanced.md +746 -0
  111. package/.claude-flow-novice/.claude/agents/swarm/adaptive-coordinator.md +396 -0
  112. package/.claude-flow-novice/.claude/agents/swarm/hierarchical-coordinator.md +300 -0
  113. package/.claude-flow-novice/.claude/agents/swarm/mesh-coordinator.md +435 -0
  114. package/.claude-flow-novice/.claude/agents/templates/automation-smart-agent.md +205 -0
  115. package/.claude-flow-novice/.claude/agents/templates/coordinator-swarm-init.md +90 -0
  116. package/.claude-flow-novice/.claude/agents/templates/github-pr-manager.md +177 -0
  117. package/.claude-flow-novice/.claude/agents/templates/implementer-sparc-coder.md +259 -0
  118. package/.claude-flow-novice/.claude/agents/templates/memory-coordinator.md +187 -0
  119. package/.claude-flow-novice/.claude/agents/templates/migration-plan.md +746 -0
  120. package/.claude-flow-novice/.claude/agents/templates/orchestrator-task.md +139 -0
  121. package/.claude-flow-novice/.claude/agents/templates/performance-analyzer.md +199 -0
  122. package/.claude-flow-novice/.claude/agents/templates/sparc-coordinator.md +183 -0
  123. package/.claude-flow-novice/.claude/agents/tester.md +663 -0
  124. package/.claude-flow-novice/.claude/agents/testing/e2e/playwright-agent.md +249 -0
  125. package/.claude-flow-novice/.claude/agents/testing/unit/tdd-london-swarm.md +244 -0
  126. package/.claude-flow-novice/.claude/agents/testing/validation/production-validator.md +395 -0
  127. package/.claude-flow-novice/dist/index.js +12 -24
  128. package/.claude-flow-novice/dist/index.js.map +1 -0
  129. package/.claude-flow-novice/dist/src/agents/agent-manager.js +123 -69
  130. package/.claude-flow-novice/dist/src/agents/agent-manager.js.map +1 -1
  131. package/.claude-flow-novice/dist/src/agents/github/utils/hook-integration.js +7 -7
  132. package/.claude-flow-novice/dist/src/agents/github/utils/hook-integration.js.map +1 -1
  133. package/.claude-flow-novice/dist/src/agents/stage3-integration-validator.js +485 -0
  134. package/.claude-flow-novice/dist/src/agents/stage3-integration-validator.js.map +1 -0
  135. package/.claude-flow-novice/dist/src/agents/unified-ultra-fast-agent-manager.js +630 -0
  136. package/.claude-flow-novice/dist/src/agents/unified-ultra-fast-agent-manager.js.map +1 -0
  137. package/.claude-flow-novice/dist/src/cli/commands/agent.js +1 -1
  138. package/.claude-flow-novice/dist/src/cli/commands/agent.js.map +1 -1
  139. package/.claude-flow-novice/dist/src/cli/commands/config-integration.js +6 -6
  140. package/.claude-flow-novice/dist/src/cli/commands/enterprise.js +18 -18
  141. package/.claude-flow-novice/dist/src/cli/commands/enterprise.js.map +1 -1
  142. package/.claude-flow-novice/dist/src/cli/commands/goal-init.js +4 -4
  143. package/.claude-flow-novice/dist/src/cli/commands/help-new.js +23 -23
  144. package/.claude-flow-novice/dist/src/cli/commands/help-new.js.map +1 -1
  145. package/.claude-flow-novice/dist/src/cli/commands/help.js +74 -74
  146. package/.claude-flow-novice/dist/src/cli/commands/help.js.map +1 -1
  147. package/.claude-flow-novice/dist/src/cli/commands/hive-mind/pause.js +2 -2
  148. package/.claude-flow-novice/dist/src/cli/commands/hive-mind/pause.js.map +1 -1
  149. package/.claude-flow-novice/dist/src/cli/commands/hive.js +4 -4
  150. package/.claude-flow-novice/dist/src/cli/commands/index.js +103 -132
  151. package/.claude-flow-novice/dist/src/cli/commands/index.js.map +1 -1
  152. package/.claude-flow-novice/dist/src/cli/commands/mcp.js +1 -1
  153. package/.claude-flow-novice/dist/src/cli/commands/migrate.js +4 -4
  154. package/.claude-flow-novice/dist/src/cli/commands/migrate.js.map +1 -1
  155. package/.claude-flow-novice/dist/src/cli/commands/monitor.js +1 -1
  156. package/.claude-flow-novice/dist/src/cli/commands/neural-init.js +4 -4
  157. package/.claude-flow-novice/dist/src/cli/commands/ruv-swarm.js +8 -8
  158. package/.claude-flow-novice/dist/src/cli/commands/sparc.js +12 -12
  159. package/.claude-flow-novice/dist/src/cli/commands/sparc.js.map +1 -1
  160. package/.claude-flow-novice/dist/src/cli/commands/start/start-command.js +3 -3
  161. package/.claude-flow-novice/dist/src/cli/commands/status.js +1 -1
  162. package/.claude-flow-novice/dist/src/cli/commands/swarm.js +7 -7
  163. package/.claude-flow-novice/dist/src/cli/commands/swarm.js.map +1 -1
  164. package/.claude-flow-novice/dist/src/cli/commands/verification.js +18 -18
  165. package/.claude-flow-novice/dist/src/cli/completion.js +54 -54
  166. package/.claude-flow-novice/dist/src/cli/completion.js.map +1 -1
  167. package/.claude-flow-novice/dist/src/cli/consolidated/ConsolidatedCLI.js +11 -11
  168. package/.claude-flow-novice/dist/src/cli/consolidated/ConsolidatedCLI.js.map +1 -1
  169. package/.claude-flow-novice/dist/src/cli/consolidated/core/CommandHandlers.js +31 -31
  170. package/.claude-flow-novice/dist/src/cli/consolidated/core/TierManager.js +39 -39
  171. package/.claude-flow-novice/dist/src/cli/consolidated/core/TierManager.js.map +1 -1
  172. package/.claude-flow-novice/dist/src/cli/consolidated/help/InteractiveHelp.js +25 -25
  173. package/.claude-flow-novice/dist/src/cli/consolidated/help/InteractiveHelp.js.map +1 -1
  174. package/.claude-flow-novice/dist/src/cli/consolidated/routing/CommandRouter.js +8 -8
  175. package/.claude-flow-novice/dist/src/cli/consolidated/routing/CommandRouter.js.map +1 -1
  176. package/.claude-flow-novice/dist/src/cli/consolidated/utils/IntelligentDefaults.js +6 -6
  177. package/.claude-flow-novice/dist/src/cli/consolidated/utils/IntelligentDefaults.js.map +1 -1
  178. package/.claude-flow-novice/dist/src/cli/consolidated/utils/PerformanceOptimizer.js +7 -7
  179. package/.claude-flow-novice/dist/src/cli/consolidated/utils/PerformanceOptimizer.js.map +1 -1
  180. package/.claude-flow-novice/dist/src/cli/index-remote.js +10 -10
  181. package/.claude-flow-novice/dist/src/cli/index.js +1 -1
  182. package/.claude-flow-novice/dist/src/cli/init/directory-structure.js +8 -8
  183. package/.claude-flow-novice/dist/src/cli/init/index.js +3 -3
  184. package/.claude-flow-novice/dist/src/cli/init/sparc-environment.js +67 -67
  185. package/.claude-flow-novice/dist/src/cli/init/swarm-commands.js +18 -18
  186. package/.claude-flow-novice/dist/src/cli/node-repl.js +2 -2
  187. package/.claude-flow-novice/dist/src/cli/repl.js +1 -1
  188. package/.claude-flow-novice/dist/src/cli/simple-cli.js +68 -68
  189. package/.claude-flow-novice/dist/src/cli/simple-cli.js.map +1 -1
  190. package/.claude-flow-novice/dist/src/cli/simple-commands/session-start-soul.js +271 -0
  191. package/.claude-flow-novice/dist/src/cli/simple-orchestrator.js +7 -7
  192. package/.claude-flow-novice/dist/src/cli/simple-orchestrator.js.map +1 -1
  193. package/.claude-flow-novice/dist/src/cli/ui/fallback-handler.js +7 -7
  194. package/.claude-flow-novice/dist/src/communication/enhanced-event-bus.js +816 -0
  195. package/.claude-flow-novice/dist/src/communication/enhanced-event-bus.js.map +1 -0
  196. package/.claude-flow-novice/dist/src/communication/failure-recovery-system.js +812 -0
  197. package/.claude-flow-novice/dist/src/communication/failure-recovery-system.js.map +1 -0
  198. package/.claude-flow-novice/dist/src/communication/optimized-serialization.js +369 -0
  199. package/.claude-flow-novice/dist/src/communication/optimized-serialization.js.map +1 -0
  200. package/.claude-flow-novice/dist/src/communication/performance-optimizations.js +526 -0
  201. package/.claude-flow-novice/dist/src/communication/performance-optimizations.js.map +1 -0
  202. package/.claude-flow-novice/dist/src/communication/performance-validator.js +532 -0
  203. package/.claude-flow-novice/dist/src/communication/performance-validator.js.map +1 -0
  204. package/.claude-flow-novice/dist/src/communication/priority-message-queue.js +525 -0
  205. package/.claude-flow-novice/dist/src/communication/priority-message-queue.js.map +1 -0
  206. package/.claude-flow-novice/dist/src/communication/shared-buffer-bus.js +218 -0
  207. package/.claude-flow-novice/dist/src/communication/shared-buffer-bus.js.map +1 -0
  208. package/.claude-flow-novice/dist/src/communication/ultra-fast-communication-bus.js +521 -0
  209. package/.claude-flow-novice/dist/src/communication/ultra-fast-communication-bus.js.map +1 -0
  210. package/.claude-flow-novice/dist/src/communication/ultra-fast-serialization.js +563 -0
  211. package/.claude-flow-novice/dist/src/communication/ultra-fast-serialization.js.map +1 -0
  212. package/.claude-flow-novice/dist/src/communication/websocket-cluster.js +344 -0
  213. package/.claude-flow-novice/dist/src/communication/websocket-cluster.js.map +1 -0
  214. package/.claude-flow-novice/dist/src/communication/zero-copy-structures.js +369 -0
  215. package/.claude-flow-novice/dist/src/communication/zero-copy-structures.js.map +1 -0
  216. package/.claude-flow-novice/dist/src/config/config-manager.js +1 -1
  217. package/.claude-flow-novice/dist/src/config/config-manager.js.map +1 -1
  218. package/.claude-flow-novice/dist/src/config/core/intelligent-configuration-manager.js +1 -1
  219. package/.claude-flow-novice/dist/src/config/integration/hooks-integration.js +6 -6
  220. package/.claude-flow-novice/dist/src/config/integration/hooks-integration.js.map +1 -1
  221. package/.claude-flow-novice/dist/src/config/migration/config-migration.js +1 -1
  222. package/.claude-flow-novice/dist/src/config/ruv-swarm-integration.js +1 -1
  223. package/.claude-flow-novice/dist/src/config/utils/zero-config-setup.js +1 -1
  224. package/.claude-flow-novice/dist/src/config/utils/zero-config-setup.js.map +1 -1
  225. package/.claude-flow-novice/dist/src/config/web-portal-config.js +0 -9
  226. package/.claude-flow-novice/dist/src/config/web-portal-config.js.map +1 -1
  227. package/.claude-flow-novice/dist/src/config/zero-config-setup.js +18 -18
  228. package/.claude-flow-novice/dist/src/config/zero-config-setup.js.map +1 -1
  229. package/.claude-flow-novice/dist/src/core/logger.js +33 -10
  230. package/.claude-flow-novice/dist/src/core/logger.js.map +1 -1
  231. package/.claude-flow-novice/dist/src/migration/index.js +1 -1
  232. package/.claude-flow-novice/dist/src/migration/index.js.map +1 -1
  233. package/.claude-flow-novice/dist/src/migration/migration-runner.js +4 -4
  234. package/.claude-flow-novice/dist/src/migration/migration-runner.js.map +1 -1
  235. package/.claude-flow-novice/dist/src/monitoring/agent-health-monitor.js +430 -0
  236. package/.claude-flow-novice/dist/src/monitoring/agent-health-monitor.js.map +1 -0
  237. package/.claude-flow-novice/dist/src/slash-commands/claude-soul.js +248 -365
  238. package/.claude-flow-novice/dist/src/slash-commands/register-all-commands.js +1 -1
  239. package/.claude-flow-novice/dist/src/swarm/claude-code-interface.js +1 -1
  240. package/.claude-flow-novice/dist/src/swarm/claude-flow-executor.js +1 -1
  241. package/.claude-flow-novice/dist/src/swarm/consensus-coordinator.js +471 -0
  242. package/.claude-flow-novice/dist/src/swarm/consensus-coordinator.js.map +1 -0
  243. package/.claude-flow-novice/dist/src/swarm/hive-mind-integration.js +1 -1
  244. package/.claude-flow-novice/dist/src/swarm/large-scale-coordinator.js +543 -0
  245. package/.claude-flow-novice/dist/src/swarm/large-scale-coordinator.js.map +1 -0
  246. package/.claude-flow-novice/dist/src/swarm/optimizations/connection-pool.js +1 -1
  247. package/.claude-flow-novice/dist/src/swarm/optimizations/optimized-executor.js +1 -1
  248. package/.claude-flow-novice/dist/src/swarm/types.js.map +1 -1
  249. package/.claude-flow-novice/dist/src/swarm-fullstack/integrations/communication-bridge.js +709 -0
  250. package/.claude-flow-novice/dist/src/swarm-fullstack/integrations/communication-bridge.js.map +1 -0
  251. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/api-contract-validator.js +612 -0
  252. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/api-contract-validator.js.map +1 -0
  253. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/backend-test-orchestrator.js +679 -0
  254. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/backend-test-orchestrator.js.map +1 -0
  255. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/frontend-test-orchestrator.js +654 -0
  256. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/frontend-test-orchestrator.js.map +1 -0
  257. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/visual-regression.js +402 -0
  258. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/visual-regression.js.map +1 -0
  259. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/convergence-detector.js +459 -0
  260. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/convergence-detector.js.map +1 -0
  261. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/fix-coordinator.js +513 -0
  262. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/fix-coordinator.js.map +1 -0
  263. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/index.js +19 -0
  264. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/index.js.map +1 -0
  265. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/iterative-build-test.js +568 -0
  266. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/iterative-build-test.js.map +1 -0
  267. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/regression-test-manager.js +418 -0
  268. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/regression-test-manager.js.map +1 -0
  269. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/test-result-analyzer.js +530 -0
  270. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/test-result-analyzer.js.map +1 -0
  271. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/workflow-metrics.js +250 -0
  272. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/workflow-metrics.js.map +1 -0
  273. package/.claude-flow-novice/dist/src/task/index.js +7 -7
  274. package/.claude-flow-novice/dist/src/validation/fullstack-integration-validator.js +420 -0
  275. package/.claude-flow-novice/dist/src/validation/fullstack-integration-validator.js.map +1 -0
  276. package/.claude-flow-novice/dist/src/validation/production-validator.js +1435 -0
  277. package/.claude-flow-novice/dist/src/validation/production-validator.js.map +1 -0
  278. package/.claude-flow-novice/dist/src/verification/cli-integration.js +3 -3
  279. package/.claude-flow-novice/dist/src/verification/hooks.js +1 -1
  280. package/CHANGELOG.md +26 -0
  281. package/CLAUDE.md +1967 -68
  282. package/README.md +0 -1
  283. package/config/build/babel.config.cjs +19 -11
  284. package/config/typescript/tsconfig.json +1 -1
  285. package/examples/claude-api-error-handling.ts +2 -2
  286. package/examples/frontend-testing-demo.ts +470 -0
  287. package/examples/litellm/config/config.yaml +1 -1
  288. package/package.json +13 -7
  289. package/scripts/build/unified-builder.sh +6 -6
  290. package/scripts/build/validate-agents.js +238 -0
  291. package/scripts/run-production-validation.ts +590 -0
  292. package/scripts/test/test-coordination-features.ts +2 -2
  293. package/scripts/validate-stage3-performance.ts +377 -0
  294. package/src/cli/simple-commands/hooks.js +1 -0
  295. package/src/cli/simple-commands/init/agent-copier.js +0 -2
  296. package/src/cli/simple-commands/init/index.js +5 -97
  297. package/src/cli/simple-commands/init/templates/CLAUDE.md +163 -1158
  298. package/src/cli/simple-commands/init/templates/claude-md.js +38 -157
  299. package/src/swarm-fullstack/integrations/communication-bridge.ts +931 -0
  300. package/src/swarm-fullstack/testing/api-contract-validator.ts +909 -0
  301. package/src/swarm-fullstack/testing/backend-test-orchestrator.ts +791 -0
  302. package/src/swarm-fullstack/testing/frontend-test-orchestrator.ts +853 -0
  303. package/src/swarm-fullstack/testing/visual-regression.ts +507 -0
  304. package/src/swarm-fullstack/workflows/convergence-detector.ts +736 -0
  305. package/src/swarm-fullstack/workflows/fix-coordinator.ts +677 -0
  306. package/src/swarm-fullstack/workflows/index.ts +75 -0
  307. package/src/swarm-fullstack/workflows/iterative-build-test.ts +829 -0
  308. package/src/swarm-fullstack/workflows/regression-test-manager.ts +590 -0
  309. package/src/swarm-fullstack/workflows/test-result-analyzer.ts +739 -0
  310. package/src/swarm-fullstack/workflows/workflow-metrics.ts +399 -0
  311. package/wiki/command-reference/README.md +1 -2
  312. package/wiki/command-reference/mcp-tools/README.md +1 -1
  313. package/wiki/getting-started/claude-code-mcp/README.md +1 -2
  314. package/wiki/getting-started/installation/README.md +2 -10
  315. package/.claude/commands/flow-nexus/app-store.md +0 -124
  316. package/.claude/commands/flow-nexus/challenges.md +0 -120
  317. package/.claude/commands/flow-nexus/login-registration.md +0 -65
  318. package/.claude/commands/flow-nexus/neural-network.md +0 -134
  319. package/.claude/commands/flow-nexus/payments.md +0 -116
  320. package/.claude/commands/flow-nexus/sandbox.md +0 -83
  321. package/.claude/commands/flow-nexus/swarm.md +0 -87
  322. package/.claude/commands/flow-nexus/user-tools.md +0 -152
  323. package/.claude/commands/flow-nexus/workflow.md +0 -115
  324. package/.claude-flow-novice/dist/cli/index.js +0 -45
  325. package/.claude-flow-novice/dist/core/index.js +0 -22
  326. package/.claude-flow-novice/dist/mcp/mcp-server-novice.js +0 -595
  327. package/.claude-flow-novice/dist/mcp/mcp-server-sdk.js +0 -649
  328. package/.claude-flow-novice/dist/mcp/mcp-server-with-slash-commands.js +0 -776
  329. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/claude-md.js +0 -1101
  330. package/src/cli/simple-commands/init/templates/CLAUDE.md.optimized +0 -265
  331. /package/{.claude → .claude-flow-novice/.claude}/agents/README.md +0 -0
  332. /package/{.claude → .claude-flow-novice/.claude}/agents/backend-dev.json +0 -0
  333. /package/{.claude → .claude-flow-novice/.claude}/agents/code-analyzer.json +0 -0
  334. /package/{.claude → .claude-flow-novice/.claude}/agents/coder.json +0 -0
  335. /package/{.claude → .claude-flow-novice/.claude}/agents/consensus/README.md +0 -0
  336. /package/{.claude → .claude-flow-novice/.claude}/agents/core/coder.md +0 -0
  337. /package/{.claude → .claude-flow-novice/.claude}/agents/core/planner.md +0 -0
  338. /package/{.claude → .claude-flow-novice/.claude}/agents/core/researcher.md +0 -0
  339. /package/{.claude → .claude-flow-novice/.claude}/agents/core/reviewer.md +0 -0
  340. /package/{.claude → .claude-flow-novice/.claude}/agents/core/tester.md +0 -0
  341. /package/{.claude → .claude-flow-novice/.claude}/agents/optimization/README.md +0 -0
  342. /package/{.claude → .claude-flow-novice/.claude}/agents/planner.json +0 -0
  343. /package/{.claude → .claude-flow-novice/.claude}/agents/researcher.json +0 -0
  344. /package/{.claude → .claude-flow-novice/.claude}/agents/reviewer.json +0 -0
  345. /package/{.claude → .claude-flow-novice/.claude}/agents/swarm/README.md +0 -0
  346. /package/{.claude → .claude-flow-novice/.claude}/agents/system-architect.json +0 -0
  347. /package/{.claude → .claude-flow-novice/.claude}/agents/tester.json +0 -0
@@ -0,0 +1,377 @@
1
+ #!/usr/bin/env tsx
2
+ /**
3
+ * Stage 3 Performance Validation Script
4
+ * CLI tool to validate unified system performance targets
5
+ */
6
+
7
+ import { performance } from 'perf_hooks';
8
+ import { stage3Validator } from '../src/agents/stage3-integration-validator.js';
9
+
10
+ interface CliOptions {
11
+ scenario?: string;
12
+ verbose?: boolean;
13
+ output?: 'console' | 'json' | 'csv';
14
+ timeout?: number;
15
+ help?: boolean;
16
+ }
17
+
18
+ class Stage3PerformanceCLI {
19
+ private options: CliOptions = {};
20
+
21
+ constructor() {
22
+ this.parseArguments();
23
+ }
24
+
25
+ private parseArguments(): void {
26
+ const args = process.argv.slice(2);
27
+
28
+ for (let i = 0; i < args.length; i++) {
29
+ const arg = args[i];
30
+
31
+ switch (arg) {
32
+ case '--help':
33
+ case '-h':
34
+ this.options.help = true;
35
+ break;
36
+
37
+ case '--verbose':
38
+ case '-v':
39
+ this.options.verbose = true;
40
+ break;
41
+
42
+ case '--scenario':
43
+ case '-s':
44
+ this.options.scenario = args[++i];
45
+ break;
46
+
47
+ case '--output':
48
+ case '-o':
49
+ this.options.output = args[++i] as 'console' | 'json' | 'csv';
50
+ break;
51
+
52
+ case '--timeout':
53
+ case '-t':
54
+ this.options.timeout = parseInt(args[++i], 10);
55
+ break;
56
+
57
+ default:
58
+ console.warn(`Unknown option: ${arg}`);
59
+ }
60
+ }
61
+ }
62
+
63
+ private showHelp(): void {
64
+ console.log(`
65
+ šŸŽÆ Stage 3 Performance Validation Tool
66
+
67
+ Usage: tsx scripts/validate-stage3-performance.ts [options]
68
+
69
+ Options:
70
+ -h, --help Show this help message
71
+ -v, --verbose Enable verbose output
72
+ -s, --scenario NAME Run specific scenario only
73
+ -o, --output FORMAT Output format: console, json, csv (default: console)
74
+ -t, --timeout MS Set timeout in milliseconds (default: 300000)
75
+
76
+ Scenarios:
77
+ - Baseline Performance (100 agents, 500 messages, 200 tasks)
78
+ - High Concurrency (1000 agents, 5000 messages, 2000 tasks)
79
+ - Peak Load (5000 agents, 25000 messages, 10000 tasks)
80
+ - Ultra High Load (10000 agents, 50000 messages, 20000 tasks)
81
+ - Sustained Load (2000 agents + 60s duration)
82
+ - Communication Intensive (500 agents, 50000 messages)
83
+ - Task Execution Heavy (1000 agents, 25000 tasks)
84
+
85
+ Performance Targets:
86
+ āœ… Agent spawn time: <100ms P95
87
+ āœ… Communication latency: <5ms P95
88
+ āœ… Concurrent agents: Up to 10,000
89
+ āœ… Memory usage: <2GB peak
90
+ āœ… Success rate: >80%
91
+
92
+ Examples:
93
+ tsx scripts/validate-stage3-performance.ts --verbose
94
+ tsx scripts/validate-stage3-performance.ts --scenario "High Concurrency"
95
+ tsx scripts/validate-stage3-performance.ts --output json > results.json
96
+ `);
97
+ }
98
+
99
+ async run(): Promise<void> {
100
+ if (this.options.help) {
101
+ this.showHelp();
102
+ return;
103
+ }
104
+
105
+ console.log('šŸš€ Starting Stage 3 Performance Validation');
106
+ console.log('==========================================');
107
+
108
+ if (this.options.verbose) {
109
+ console.log('Configuration:');
110
+ console.log(` Scenario filter: ${this.options.scenario || 'all'}`);
111
+ console.log(` Output format: ${this.options.output || 'console'}`);
112
+ console.log(` Timeout: ${this.options.timeout || 300000}ms`);
113
+ console.log('');
114
+ }
115
+
116
+ try {
117
+ const startTime = performance.now();
118
+
119
+ if (this.options.scenario) {
120
+ await this.runSpecificScenario(this.options.scenario);
121
+ } else {
122
+ await this.runFullValidation();
123
+ }
124
+
125
+ const totalTime = performance.now() - startTime;
126
+
127
+ if (this.options.verbose) {
128
+ console.log(`\nā±ļø Total validation time: ${(totalTime / 1000).toFixed(2)}s`);
129
+ }
130
+
131
+ } catch (error) {
132
+ console.error('āŒ Validation failed:', error instanceof Error ? error.message : String(error));
133
+ process.exit(1);
134
+ }
135
+ }
136
+
137
+ private async runFullValidation(): Promise<void> {
138
+ const result = await stage3Validator.validateStage3();
139
+
140
+ this.outputResults(result.results);
141
+
142
+ if (result.passed) {
143
+ console.log('\nšŸŽ‰ STAGE 3 VALIDATION: PASSED');
144
+ console.log('All performance targets met!');
145
+ process.exit(0);
146
+ } else {
147
+ console.log('\nāŒ STAGE 3 VALIDATION: FAILED');
148
+ console.log('Some performance targets not met.');
149
+ process.exit(1);
150
+ }
151
+ }
152
+
153
+ private async runSpecificScenario(scenarioName: string): Promise<void> {
154
+ // Create a test scenario based on the name
155
+ const scenarios = {
156
+ 'Baseline Performance': {
157
+ name: 'Baseline Performance',
158
+ description: 'Basic system functionality validation',
159
+ agentCount: 100,
160
+ messageCount: 500,
161
+ taskCount: 200,
162
+ targets: {
163
+ spawnTimeP95Ms: 80,
164
+ communicationP95Ms: 3,
165
+ concurrentAgents: 100,
166
+ memoryLimitMB: 200,
167
+ successRate: 0.95
168
+ }
169
+ },
170
+ 'High Concurrency': {
171
+ name: 'High Concurrency',
172
+ description: 'Test system with 1000+ concurrent agents',
173
+ agentCount: 1000,
174
+ messageCount: 5000,
175
+ taskCount: 2000,
176
+ targets: {
177
+ spawnTimeP95Ms: 100,
178
+ communicationP95Ms: 5,
179
+ concurrentAgents: 1000,
180
+ memoryLimitMB: 500,
181
+ successRate: 0.90
182
+ }
183
+ },
184
+ 'Peak Load': {
185
+ name: 'Peak Load',
186
+ description: 'Maximum system capacity test',
187
+ agentCount: 5000,
188
+ messageCount: 25000,
189
+ taskCount: 10000,
190
+ targets: {
191
+ spawnTimeP95Ms: 150,
192
+ communicationP95Ms: 8,
193
+ concurrentAgents: 5000,
194
+ memoryLimitMB: 1000,
195
+ successRate: 0.85
196
+ }
197
+ },
198
+ 'Ultra High Load': {
199
+ name: 'Ultra High Load',
200
+ description: 'Stress test with 10k+ agents',
201
+ agentCount: 10000,
202
+ messageCount: 50000,
203
+ taskCount: 20000,
204
+ targets: {
205
+ spawnTimeP95Ms: 200,
206
+ communicationP95Ms: 10,
207
+ concurrentAgents: 10000,
208
+ memoryLimitMB: 2000,
209
+ successRate: 0.80
210
+ }
211
+ }
212
+ };
213
+
214
+ const scenario = scenarios[scenarioName as keyof typeof scenarios];
215
+ if (!scenario) {
216
+ console.error(`āŒ Unknown scenario: ${scenarioName}`);
217
+ console.log('Available scenarios:', Object.keys(scenarios).join(', '));
218
+ process.exit(1);
219
+ }
220
+
221
+ console.log(`šŸŽÆ Running scenario: ${scenario.name}`);
222
+ console.log(`šŸ“ ${scenario.description}`);
223
+ console.log(`šŸ“Š ${scenario.agentCount} agents, ${scenario.messageCount} messages, ${scenario.taskCount} tasks\n`);
224
+
225
+ // Initialize validator and run scenario
226
+ const validator = stage3Validator;
227
+ await (validator as any).agentManager.initialize();
228
+
229
+ try {
230
+ const result = await (validator as any).executeValidationScenario(scenario);
231
+ this.outputResults([result]);
232
+
233
+ if (result.passed) {
234
+ console.log(`\nāœ… Scenario "${scenarioName}": PASSED`);
235
+ process.exit(0);
236
+ } else {
237
+ console.log(`\nāŒ Scenario "${scenarioName}": FAILED`);
238
+ process.exit(1);
239
+ }
240
+ } finally {
241
+ await (validator as any).agentManager.shutdown();
242
+ }
243
+ }
244
+
245
+ private outputResults(results: any[]): void {
246
+ switch (this.options.output) {
247
+ case 'json':
248
+ this.outputJSON(results);
249
+ break;
250
+ case 'csv':
251
+ this.outputCSV(results);
252
+ break;
253
+ default:
254
+ this.outputConsole(results);
255
+ }
256
+ }
257
+
258
+ private outputConsole(results: any[]): void {
259
+ console.log('\nšŸ“Š Performance Validation Results');
260
+ console.log('================================');
261
+
262
+ results.forEach((result, index) => {
263
+ const status = result.passed ? 'āœ… PASS' : 'āŒ FAIL';
264
+ const statusIcon = result.passed ? '🟢' : 'šŸ”“';
265
+
266
+ console.log(`\n${statusIcon} ${index + 1}. ${result.scenario}: ${status}`);
267
+
268
+ if (this.options.verbose) {
269
+ console.log(` Description: ${result.scenario}`);
270
+ console.log(` Duration: ${(result.details.totalTime / 1000).toFixed(2)}s`);
271
+ }
272
+
273
+ // Performance metrics
274
+ console.log(` šŸ“ˆ Performance Metrics:`);
275
+ console.log(` Spawn Time P95: ${result.metrics.spawnTimeP95.toFixed(2)}ms`);
276
+ console.log(` Communication P95: ${result.metrics.communicationP95.toFixed(2)}ms`);
277
+ console.log(` Concurrent Agents: ${result.metrics.concurrentAgents.toLocaleString()}`);
278
+ console.log(` Memory Usage: ${result.metrics.memoryUsage.toFixed(2)}MB`);
279
+ console.log(` Success Rate: ${(result.metrics.successRate * 100).toFixed(1)}%`);
280
+ console.log(` Throughput: ${result.metrics.throughput.toFixed(0)} ops/sec`);
281
+
282
+ // Operation details
283
+ if (this.options.verbose) {
284
+ console.log(` šŸ”§ Operation Details:`);
285
+ console.log(` Agents Spawned: ${result.details.agentsSpawned.toLocaleString()}`);
286
+ console.log(` Messages Sent: ${result.details.messagesSent.toLocaleString()}`);
287
+ console.log(` Tasks Executed: ${result.details.tasksExecuted.toLocaleString()}`);
288
+ console.log(` Errors: ${result.details.errors}`);
289
+ }
290
+ });
291
+
292
+ // Summary
293
+ const passedCount = results.filter(r => r.passed).length;
294
+ const totalCount = results.length;
295
+ const overallSuccessRate = (passedCount / totalCount) * 100;
296
+
297
+ console.log('\nšŸ“‹ Summary');
298
+ console.log('==========');
299
+ console.log(`Overall Result: ${passedCount}/${totalCount} scenarios passed`);
300
+ console.log(`Success Rate: ${overallSuccessRate.toFixed(1)}%`);
301
+
302
+ if (passedCount === totalCount) {
303
+ console.log('šŸŽ‰ All performance targets met!');
304
+ } else {
305
+ console.log('āš ļø Some performance targets not met.');
306
+ }
307
+ }
308
+
309
+ private outputJSON(results: any[]): void {
310
+ const output = {
311
+ timestamp: new Date().toISOString(),
312
+ validation: 'Stage 3 Performance',
313
+ summary: {
314
+ total: results.length,
315
+ passed: results.filter(r => r.passed).length,
316
+ failed: results.filter(r => !r.passed).length,
317
+ successRate: (results.filter(r => r.passed).length / results.length) * 100
318
+ },
319
+ results
320
+ };
321
+
322
+ console.log(JSON.stringify(output, null, 2));
323
+ }
324
+
325
+ private outputCSV(results: any[]): void {
326
+ // CSV header
327
+ const headers = [
328
+ 'Scenario',
329
+ 'Status',
330
+ 'Spawn Time P95 (ms)',
331
+ 'Communication P95 (ms)',
332
+ 'Concurrent Agents',
333
+ 'Memory Usage (MB)',
334
+ 'Success Rate (%)',
335
+ 'Throughput (ops/sec)',
336
+ 'Total Time (s)',
337
+ 'Agents Spawned',
338
+ 'Messages Sent',
339
+ 'Tasks Executed',
340
+ 'Errors'
341
+ ];
342
+
343
+ console.log(headers.join(','));
344
+
345
+ // CSV data
346
+ results.forEach(result => {
347
+ const row = [
348
+ `"${result.scenario}"`,
349
+ result.passed ? 'PASS' : 'FAIL',
350
+ result.metrics.spawnTimeP95.toFixed(2),
351
+ result.metrics.communicationP95.toFixed(2),
352
+ result.metrics.concurrentAgents,
353
+ result.metrics.memoryUsage.toFixed(2),
354
+ (result.metrics.successRate * 100).toFixed(1),
355
+ result.metrics.throughput.toFixed(0),
356
+ (result.details.totalTime / 1000).toFixed(2),
357
+ result.details.agentsSpawned,
358
+ result.details.messagesSent,
359
+ result.details.tasksExecuted,
360
+ result.details.errors
361
+ ];
362
+
363
+ console.log(row.join(','));
364
+ });
365
+ }
366
+ }
367
+
368
+ // Run CLI if called directly
369
+ if (import.meta.url === `file://${process.argv[1]}`) {
370
+ const cli = new Stage3PerformanceCLI();
371
+ cli.run().catch(error => {
372
+ console.error('Fatal error:', error);
373
+ process.exit(1);
374
+ });
375
+ }
376
+
377
+ export { Stage3PerformanceCLI };
@@ -7,6 +7,7 @@ import {
7
7
  } from '../utils.js';
8
8
  import { SqliteMemoryStore } from '../../memory/sqlite-store.js';
9
9
  import { executeSessionStartSoulHook, executeSessionEndSoulHook } from './hooks/session-start-soul.js';
10
+ import { enhancedPostEditHook } from '../../hooks/enhanced-post-edit-pipeline.js';
10
11
 
11
12
  // Initialize memory store
12
13
  let memoryStore = null;
@@ -163,9 +163,7 @@ export async function createAgentDirectories(targetDir, dryRun = false) {
163
163
  '.claude/agents/documentation/api-docs',
164
164
  '.claude/agents/specialized',
165
165
  '.claude/agents/specialized/mobile',
166
- '.claude/agents/flow-nexus',
167
166
  '.claude/commands',
168
- '.claude/commands/flow-nexus',
169
167
  ];
170
168
 
171
169
  if (dryRun) {
@@ -210,10 +210,7 @@ export async function initCommand(subArgs, flags) {
210
210
  const hasVerificationFlags =
211
211
  subArgs.includes('--verify') || subArgs.includes('--pair') || flags.verify || flags.pair;
212
212
 
213
- // Handle Flow Nexus minimal init
214
- if (flags['flow-nexus']) {
215
- return await flowNexusMinimalInit(flags, subArgs);
216
- }
213
+ // Flow-nexus mode removed
217
214
 
218
215
  // Default to enhanced Claude Flow v2 init unless other modes are specified
219
216
  // Use --basic flag for old behavior, or verification flags for verification mode
@@ -612,7 +609,7 @@ export async function initCommand(subArgs, flags) {
612
609
  console.log(' šŸ“‹ Then add MCP servers manually with:');
613
610
  console.log(' claude mcp add claude-flow-novice claude-flow-novice mcp start');
614
611
  console.log(' claude mcp add ruv-swarm npx ruv-swarm mcp start');
615
- console.log(' claude mcp add flow-nexus npx flow-nexus@latest mcp start');
612
+ // Flow-nexus integration removed
616
613
  }
617
614
  }
618
615
  } catch (err) {
@@ -1694,7 +1691,7 @@ ${commands.map((cmd) => `- [${cmd}](./${cmd}.md)`).join('\n')}
1694
1691
  console.log('\n šŸ“‹ To add MCP servers manually:');
1695
1692
  console.log(' claude mcp add claude-flow-novice npx claude-flow-novice mcp start');
1696
1693
  console.log(' claude mcp add ruv-swarm npx ruv-swarm@latest mcp start');
1697
- console.log(' claude mcp add flow-nexus npx flow-nexus@latest mcp start');
1694
+ // Flow-nexus integration removed
1698
1695
  console.log('\n šŸ’” MCP servers are defined in .mcp.json (project scope)');
1699
1696
  }
1700
1697
  } else if (!dryRun && !isClaudeCodeInstalled()) {
@@ -1704,7 +1701,7 @@ ${commands.map((cmd) => `- [${cmd}](./${cmd}.md)`).join('\n')}
1704
1701
  console.log('\n šŸ“‹ After installing, add MCP servers:');
1705
1702
  console.log(' claude mcp add claude-flow-novice npx claude-flow-novice mcp start');
1706
1703
  console.log(' claude mcp add ruv-swarm npx ruv-swarm@latest mcp start');
1707
- console.log(' claude mcp add flow-nexus npx flow-nexus@latest mcp start');
1704
+ // Flow-nexus integration removed
1708
1705
  console.log('\n šŸ’” MCP servers are defined in .mcp.json (project scope)');
1709
1706
  }
1710
1707
 
@@ -1861,93 +1858,4 @@ ${commands.map((cmd) => `- [${cmd}](./${cmd}.md)`).join('\n')}
1861
1858
  }
1862
1859
  }
1863
1860
 
1864
- /**
1865
- * Flow Nexus minimal initialization - only creates Flow Nexus CLAUDE.md, commands, and agents
1866
- */
1867
- async function flowNexusMinimalInit(flags, subArgs) {
1868
- console.log('🌐 Flow Nexus: Initializing minimal setup...');
1869
-
1870
- try {
1871
- const force = flags.force || flags.f;
1872
-
1873
- // Import functions we need
1874
- const { createFlowNexusClaudeMd } = await import('./templates/claude-md.js');
1875
- const { promises: fs } = await import('fs');
1876
-
1877
- // Create Flow Nexus CLAUDE.md
1878
- console.log('šŸ“ Creating Flow Nexus CLAUDE.md...');
1879
- const flowNexusClaudeMd = createFlowNexusClaudeMd();
1880
- await fs.writeFile('CLAUDE.md', flowNexusClaudeMd);
1881
- console.log(' āœ… Created CLAUDE.md with Flow Nexus integration');
1882
-
1883
- // Create .claude/commands/flow-nexus directory and copy commands
1884
- console.log('šŸ“ Setting up Flow Nexus commands...');
1885
- await fs.mkdir('.claude/commands/flow-nexus', { recursive: true });
1886
-
1887
- // Copy Flow Nexus command files
1888
- const { fileURLToPath } = await import('url');
1889
- const { dirname, join } = await import('path');
1890
- const __filename = fileURLToPath(import.meta.url);
1891
- const __dirname = dirname(__filename);
1892
- const sourceCommandsDir = join(__dirname, '../../../../.claude/commands/flow-nexus');
1893
- try {
1894
- const commandFiles = await fs.readdir(sourceCommandsDir);
1895
- let copiedCommands = 0;
1896
-
1897
- for (const file of commandFiles) {
1898
- if (file.endsWith('.md')) {
1899
- const sourcePath = `${sourceCommandsDir}/${file}`;
1900
- const destPath = `.claude/commands/flow-nexus/${file}`;
1901
- const content = await fs.readFile(sourcePath, 'utf8');
1902
- await fs.writeFile(destPath, content);
1903
- copiedCommands++;
1904
- }
1905
- }
1906
-
1907
- console.log(` āœ… Copied ${copiedCommands} Flow Nexus command files`);
1908
- } catch (err) {
1909
- console.log(' āš ļø Could not copy Flow Nexus commands:', err.message);
1910
- }
1911
-
1912
- // Create .claude/agents/flow-nexus directory and copy agents
1913
- console.log('šŸ¤– Setting up Flow Nexus agents...');
1914
- await fs.mkdir('.claude/agents/flow-nexus', { recursive: true });
1915
-
1916
- // Copy Flow Nexus agent files
1917
- const sourceAgentsDir = join(__dirname, '../../../../.claude/agents/flow-nexus');
1918
- try {
1919
- const agentFiles = await fs.readdir(sourceAgentsDir);
1920
- let copiedAgents = 0;
1921
-
1922
- for (const file of agentFiles) {
1923
- if (file.endsWith('.md')) {
1924
- const sourcePath = `${sourceAgentsDir}/${file}`;
1925
- const destPath = `.claude/agents/flow-nexus/${file}`;
1926
- const content = await fs.readFile(sourcePath, 'utf8');
1927
- await fs.writeFile(destPath, content);
1928
- copiedAgents++;
1929
- }
1930
- }
1931
-
1932
- console.log(` āœ… Copied ${copiedAgents} Flow Nexus agent files`);
1933
- } catch (err) {
1934
- console.log(' āš ļø Could not copy Flow Nexus agents:', err.message);
1935
- }
1936
-
1937
- console.log('\nšŸŽ‰ Flow Nexus minimal initialization complete!');
1938
- console.log('šŸ“š Created: CLAUDE.md with Flow Nexus documentation');
1939
- console.log('šŸ“ Created: .claude/commands/flow-nexus/ directory with command documentation');
1940
- console.log('šŸ¤– Created: .claude/agents/flow-nexus/ directory with specialized agents');
1941
- console.log('');
1942
- console.log('šŸ’” Quick Start:');
1943
- console.log(' 1. Register: mcp__flow-nexus__user_register({ email, password })');
1944
- console.log(' 2. Login: mcp__flow-nexus__user_login({ email, password })');
1945
- console.log(' 3. Deploy: mcp__flow-nexus__swarm_init({ topology: "mesh", maxAgents: 5 })');
1946
- console.log('');
1947
- console.log('šŸ”— Use Flow Nexus MCP tools in Claude Code for full functionality');
1948
- } catch (err) {
1949
- console.log(`āŒ Flow Nexus initialization failed: ${err.message}`);
1950
- console.log('Stack trace:', err.stack);
1951
- process.exit(1);
1952
- }
1953
- }
1861
+ // Flow Nexus initialization removed