claude-flow 2.0.0-alpha.60 → 2.0.0-alpha.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1428) hide show
  1. package/.claude/commands/sparc/analyzer.md +24 -77
  2. package/.claude/commands/sparc/architect.md +25 -76
  3. package/.claude/commands/sparc/batch-executor.md +28 -78
  4. package/.claude/commands/sparc/coder.md +28 -79
  5. package/.claude/commands/sparc/debugger.md +26 -76
  6. package/.claude/commands/sparc/designer.md +25 -75
  7. package/.claude/commands/sparc/documenter.md +26 -75
  8. package/.claude/commands/sparc/innovator.md +26 -76
  9. package/.claude/commands/sparc/memory-manager.md +28 -77
  10. package/.claude/commands/sparc/optimizer.md +26 -76
  11. package/.claude/commands/sparc/orchestrator.md +23 -74
  12. package/.claude/commands/sparc/researcher.md +26 -77
  13. package/.claude/commands/sparc/reviewer.md +26 -76
  14. package/.claude/commands/sparc/sparc-modes.md +38 -358
  15. package/.claude/commands/sparc/swarm-coordinator.md +28 -77
  16. package/.claude/commands/sparc/tdd.md +28 -78
  17. package/.claude/commands/sparc/tester.md +26 -76
  18. package/.claude/commands/sparc/workflow-manager.md +28 -77
  19. package/.claude/commands/swarm/analysis.md +14 -17
  20. package/.claude/commands/swarm/development.md +14 -16
  21. package/.claude/commands/swarm/examples.md +20 -53
  22. package/.claude/commands/swarm/maintenance.md +14 -17
  23. package/.claude/commands/swarm/optimization.md +15 -17
  24. package/.claude/commands/swarm/research.md +14 -17
  25. package/.claude/commands/swarm/testing.md +15 -17
  26. package/.claude/config.json +32 -11
  27. package/CHANGELOG.md +113 -0
  28. package/bin/claude-flow +1 -1
  29. package/dist/adapters/cliffy-node.d.ts.map +1 -1
  30. package/dist/adapters/cliffy-node.js +13 -7
  31. package/dist/adapters/cliffy-node.js.map +1 -1
  32. package/dist/agents/agent-manager.d.ts.map +1 -1
  33. package/dist/agents/agent-manager.js +77 -65
  34. package/dist/agents/agent-manager.js.map +1 -1
  35. package/dist/agents/agent-registry.d.ts.map +1 -1
  36. package/dist/agents/agent-registry.js +38 -30
  37. package/dist/agents/agent-registry.js.map +1 -1
  38. package/dist/api/claude-client.d.ts.map +1 -1
  39. package/dist/api/claude-client.js +22 -16
  40. package/dist/api/claude-client.js.map +1 -1
  41. package/dist/cli/agents/analyst.d.ts.map +1 -1
  42. package/dist/cli/agents/analyst.js +94 -114
  43. package/dist/cli/agents/analyst.js.map +1 -1
  44. package/dist/cli/agents/architect.d.ts.map +1 -1
  45. package/dist/cli/agents/architect.js +100 -114
  46. package/dist/cli/agents/architect.js.map +1 -1
  47. package/dist/cli/agents/base-agent.d.ts.map +1 -1
  48. package/dist/cli/agents/base-agent.js +27 -27
  49. package/dist/cli/agents/base-agent.js.map +1 -1
  50. package/dist/cli/agents/capabilities.d.ts.map +1 -1
  51. package/dist/cli/agents/capabilities.js +49 -51
  52. package/dist/cli/agents/capabilities.js.map +1 -1
  53. package/dist/cli/agents/coder.d.ts.map +1 -1
  54. package/dist/cli/agents/coder.js +92 -98
  55. package/dist/cli/agents/coder.js.map +1 -1
  56. package/dist/cli/agents/coordinator.d.ts.map +1 -1
  57. package/dist/cli/agents/coordinator.js +59 -64
  58. package/dist/cli/agents/coordinator.js.map +1 -1
  59. package/dist/cli/agents/hive-agents.d.ts.map +1 -1
  60. package/dist/cli/agents/hive-agents.js +22 -24
  61. package/dist/cli/agents/hive-agents.js.map +1 -1
  62. package/dist/cli/agents/index.d.ts.map +1 -1
  63. package/dist/cli/agents/index.js +17 -17
  64. package/dist/cli/agents/index.js.map +1 -1
  65. package/dist/cli/agents/researcher.d.ts.map +1 -1
  66. package/dist/cli/agents/researcher.js +41 -61
  67. package/dist/cli/agents/researcher.js.map +1 -1
  68. package/dist/cli/agents/tester.d.ts.map +1 -1
  69. package/dist/cli/agents/tester.js +78 -90
  70. package/dist/cli/agents/tester.js.map +1 -1
  71. package/dist/cli/cli-core.d.ts +4 -1
  72. package/dist/cli/cli-core.d.ts.map +1 -1
  73. package/dist/cli/cli-core.js +40 -39
  74. package/dist/cli/cli-core.js.map +1 -1
  75. package/dist/cli/command-registry.d.ts.map +1 -1
  76. package/dist/cli/command-registry.js +99 -74
  77. package/dist/cli/command-registry.js.map +1 -1
  78. package/dist/cli/commands/advanced-memory-commands.d.ts.map +1 -1
  79. package/dist/cli/commands/advanced-memory-commands.js +49 -40
  80. package/dist/cli/commands/advanced-memory-commands.js.map +1 -1
  81. package/dist/cli/commands/agent-simple.d.ts +3 -0
  82. package/dist/cli/commands/agent-simple.d.ts.map +1 -1
  83. package/dist/cli/commands/agent-simple.js +30 -27
  84. package/dist/cli/commands/agent-simple.js.map +1 -1
  85. package/dist/cli/commands/agent.d.ts.map +1 -1
  86. package/dist/cli/commands/agent.js +53 -40
  87. package/dist/cli/commands/agent.js.map +1 -1
  88. package/dist/cli/commands/claude-api.js +4 -4
  89. package/dist/cli/commands/claude-api.js.map +1 -1
  90. package/dist/cli/commands/claude.d.ts.map +1 -1
  91. package/dist/cli/commands/claude.js +2 -2
  92. package/dist/cli/commands/claude.js.map +1 -1
  93. package/dist/cli/commands/config-integration.d.ts +7 -1
  94. package/dist/cli/commands/config-integration.d.ts.map +1 -1
  95. package/dist/cli/commands/config-integration.js +18 -9
  96. package/dist/cli/commands/config-integration.js.map +1 -1
  97. package/dist/cli/commands/config.d.ts.map +1 -1
  98. package/dist/cli/commands/config.js +2 -3
  99. package/dist/cli/commands/config.js.map +1 -1
  100. package/dist/cli/commands/enterprise.d.ts.map +1 -1
  101. package/dist/cli/commands/enterprise.js +115 -95
  102. package/dist/cli/commands/enterprise.js.map +1 -1
  103. package/dist/cli/commands/help-new.d.ts +7 -0
  104. package/dist/cli/commands/help-new.d.ts.map +1 -0
  105. package/dist/cli/commands/help-new.js +236 -0
  106. package/dist/cli/commands/help-new.js.map +1 -0
  107. package/dist/cli/commands/help.d.ts +2 -1
  108. package/dist/cli/commands/help.d.ts.map +1 -1
  109. package/dist/cli/commands/help.js +283 -133
  110. package/dist/cli/commands/help.js.map +1 -1
  111. package/dist/cli/commands/hive-mind/index.d.ts +1 -1
  112. package/dist/cli/commands/hive-mind/index.d.ts.map +1 -1
  113. package/dist/cli/commands/hive-mind/index.js +1 -1
  114. package/dist/cli/commands/hive-mind/index.js.map +1 -1
  115. package/dist/cli/commands/hive-mind/init.d.ts.map +1 -1
  116. package/dist/cli/commands/hive-mind/init.js.map +1 -1
  117. package/dist/cli/commands/hive-mind/optimize-memory.d.ts.map +1 -1
  118. package/dist/cli/commands/hive-mind/optimize-memory.js +35 -26
  119. package/dist/cli/commands/hive-mind/optimize-memory.js.map +1 -1
  120. package/dist/cli/commands/hive-mind/pause.d.ts.map +1 -1
  121. package/dist/cli/commands/hive-mind/pause.js +8 -6
  122. package/dist/cli/commands/hive-mind/pause.js.map +1 -1
  123. package/dist/cli/commands/hive-mind/ps.d.ts.map +1 -1
  124. package/dist/cli/commands/hive-mind/ps.js +17 -12
  125. package/dist/cli/commands/hive-mind/ps.js.map +1 -1
  126. package/dist/cli/commands/hive-mind/resume.js +12 -10
  127. package/dist/cli/commands/hive-mind/resume.js.map +1 -1
  128. package/dist/cli/commands/hive-mind/spawn.d.ts.map +1 -1
  129. package/dist/cli/commands/hive-mind/spawn.js +20 -11
  130. package/dist/cli/commands/hive-mind/spawn.js.map +1 -1
  131. package/dist/cli/commands/hive-mind/status.js +17 -22
  132. package/dist/cli/commands/hive-mind/status.js.map +1 -1
  133. package/dist/cli/commands/hive-mind/stop.d.ts.map +1 -1
  134. package/dist/cli/commands/hive-mind/stop.js +23 -15
  135. package/dist/cli/commands/hive-mind/stop.js.map +1 -1
  136. package/dist/cli/commands/hive-mind/task.d.ts.map +1 -1
  137. package/dist/cli/commands/hive-mind/task.js +25 -19
  138. package/dist/cli/commands/hive-mind/task.js.map +1 -1
  139. package/dist/cli/commands/hive-mind/wizard.d.ts.map +1 -1
  140. package/dist/cli/commands/hive-mind/wizard.js +86 -68
  141. package/dist/cli/commands/hive-mind/wizard.js.map +1 -1
  142. package/dist/cli/commands/hive.js +73 -38
  143. package/dist/cli/commands/hive.js.map +1 -1
  144. package/dist/cli/commands/hook-validator.d.ts.map +1 -1
  145. package/dist/cli/commands/hook-validator.js +4 -2
  146. package/dist/cli/commands/hook-validator.js.map +1 -1
  147. package/dist/cli/commands/hook.d.ts.map +1 -1
  148. package/dist/cli/commands/hook.js +8 -8
  149. package/dist/cli/commands/hook.js.map +1 -1
  150. package/dist/cli/commands/index.d.ts +1 -1
  151. package/dist/cli/commands/index.d.ts.map +1 -1
  152. package/dist/cli/commands/index.js +850 -784
  153. package/dist/cli/commands/index.js.map +1 -1
  154. package/dist/cli/commands/mcp.d.ts.map +1 -1
  155. package/dist/cli/commands/mcp.js +8 -16
  156. package/dist/cli/commands/mcp.js.map +1 -1
  157. package/dist/cli/commands/memory.d.ts.map +1 -1
  158. package/dist/cli/commands/memory.js +8 -8
  159. package/dist/cli/commands/memory.js.map +1 -1
  160. package/dist/cli/commands/migrate.d.ts.map +1 -1
  161. package/dist/cli/commands/migrate.js +3 -3
  162. package/dist/cli/commands/migrate.js.map +1 -1
  163. package/dist/cli/commands/monitor.d.ts.map +1 -1
  164. package/dist/cli/commands/monitor.js +50 -34
  165. package/dist/cli/commands/monitor.js.map +1 -1
  166. package/dist/cli/commands/ruv-swarm.d.ts +7 -1
  167. package/dist/cli/commands/ruv-swarm.d.ts.map +1 -1
  168. package/dist/cli/commands/ruv-swarm.js +6 -6
  169. package/dist/cli/commands/ruv-swarm.js.map +1 -1
  170. package/dist/cli/commands/session.d.ts.map +1 -1
  171. package/dist/cli/commands/session.js +22 -17
  172. package/dist/cli/commands/session.js.map +1 -1
  173. package/dist/cli/commands/sparc.d.ts +1 -1
  174. package/dist/cli/commands/sparc.d.ts.map +1 -1
  175. package/dist/cli/commands/sparc.js +146 -126
  176. package/dist/cli/commands/sparc.js.map +1 -1
  177. package/dist/cli/commands/start/event-emitter.js +1 -1
  178. package/dist/cli/commands/start/event-emitter.js.map +1 -1
  179. package/dist/cli/commands/start/process-manager.d.ts.map +1 -1
  180. package/dist/cli/commands/start/process-manager.js +20 -18
  181. package/dist/cli/commands/start/process-manager.js.map +1 -1
  182. package/dist/cli/commands/start/process-ui-simple.d.ts +4 -0
  183. package/dist/cli/commands/start/process-ui-simple.d.ts.map +1 -1
  184. package/dist/cli/commands/start/process-ui-simple.js +2 -2
  185. package/dist/cli/commands/start/process-ui-simple.js.map +1 -1
  186. package/dist/cli/commands/start/start-command.d.ts.map +1 -1
  187. package/dist/cli/commands/start/start-command.js +27 -15
  188. package/dist/cli/commands/start/start-command.js.map +1 -1
  189. package/dist/cli/commands/start/system-monitor.d.ts +3 -0
  190. package/dist/cli/commands/start/system-monitor.d.ts.map +1 -1
  191. package/dist/cli/commands/start/system-monitor.js +16 -18
  192. package/dist/cli/commands/start/system-monitor.js.map +1 -1
  193. package/dist/cli/commands/status.d.ts.map +1 -1
  194. package/dist/cli/commands/status.js +28 -33
  195. package/dist/cli/commands/status.js.map +1 -1
  196. package/dist/cli/commands/swarm-spawn.d.ts.map +1 -1
  197. package/dist/cli/commands/swarm-spawn.js +1 -1
  198. package/dist/cli/commands/swarm-spawn.js.map +1 -1
  199. package/dist/cli/commands/swarm.d.ts +4 -1
  200. package/dist/cli/commands/swarm.d.ts.map +1 -1
  201. package/dist/cli/commands/swarm.js +23 -18
  202. package/dist/cli/commands/swarm.js.map +1 -1
  203. package/dist/cli/commands/task.d.ts.map +1 -1
  204. package/dist/cli/commands/task.js.map +1 -1
  205. package/dist/cli/commands/workflow.d.ts.map +1 -1
  206. package/dist/cli/commands/workflow.js +49 -45
  207. package/dist/cli/commands/workflow.js.map +1 -1
  208. package/dist/cli/completion.d.ts +3 -0
  209. package/dist/cli/completion.d.ts.map +1 -1
  210. package/dist/cli/completion.js +15 -5
  211. package/dist/cli/completion.js.map +1 -1
  212. package/dist/cli/formatter.d.ts +3 -0
  213. package/dist/cli/formatter.d.ts.map +1 -1
  214. package/dist/cli/formatter.js +3 -3
  215. package/dist/cli/formatter.js.map +1 -1
  216. package/dist/cli/help-formatter.d.ts +49 -0
  217. package/dist/cli/help-formatter.d.ts.map +1 -0
  218. package/dist/cli/help-formatter.js +108 -0
  219. package/dist/cli/help-formatter.js.map +1 -0
  220. package/dist/cli/index-remote.d.ts +4 -0
  221. package/dist/cli/index-remote.d.ts.map +1 -1
  222. package/dist/cli/index-remote.js +1 -1
  223. package/dist/cli/index-remote.js.map +1 -1
  224. package/dist/cli/index.d.ts +1 -1
  225. package/dist/cli/index.d.ts.map +1 -1
  226. package/dist/cli/index.js +32 -34
  227. package/dist/cli/index.js.map +1 -1
  228. package/dist/cli/init/batch-tools.d.ts.map +1 -1
  229. package/dist/cli/init/batch-tools.js.map +1 -1
  230. package/dist/cli/init/claude-config.d.ts.map +1 -1
  231. package/dist/cli/init/claude-config.js +111 -106
  232. package/dist/cli/init/claude-config.js.map +1 -1
  233. package/dist/cli/init/directory-structure.d.ts.map +1 -1
  234. package/dist/cli/init/directory-structure.js +3 -3
  235. package/dist/cli/init/directory-structure.js.map +1 -1
  236. package/dist/cli/init/index.d.ts.map +1 -1
  237. package/dist/cli/init/index.js +1 -1
  238. package/dist/cli/init/index.js.map +1 -1
  239. package/dist/cli/init/sparc-environment.d.ts.map +1 -1
  240. package/dist/cli/init/sparc-environment.js +69 -69
  241. package/dist/cli/init/sparc-environment.js.map +1 -1
  242. package/dist/cli/init/swarm-commands.d.ts.map +1 -1
  243. package/dist/cli/init/swarm-commands.js +1 -1
  244. package/dist/cli/init/swarm-commands.js.map +1 -1
  245. package/dist/cli/main.d.ts +3 -0
  246. package/dist/cli/main.d.ts.map +1 -1
  247. package/dist/cli/main.js +6 -6
  248. package/dist/cli/main.js.map +1 -1
  249. package/dist/cli/node-compat.d.ts.map +1 -1
  250. package/dist/cli/node-compat.js +24 -18
  251. package/dist/cli/node-compat.js.map +1 -1
  252. package/dist/cli/node-repl.d.ts +4 -0
  253. package/dist/cli/node-repl.d.ts.map +1 -1
  254. package/dist/cli/node-repl.js +24 -30
  255. package/dist/cli/node-repl.js.map +1 -1
  256. package/dist/cli/repl.d.ts.map +1 -1
  257. package/dist/cli/repl.js +81 -70
  258. package/dist/cli/repl.js.map +1 -1
  259. package/dist/cli/runtime-detector.d.ts.map +1 -1
  260. package/dist/cli/runtime-detector.js +11 -7
  261. package/dist/cli/runtime-detector.js.map +1 -1
  262. package/dist/cli/simple-cli.d.ts +4 -0
  263. package/dist/cli/simple-cli.d.ts.map +1 -1
  264. package/dist/cli/simple-cli.js +109 -95
  265. package/dist/cli/simple-cli.js.map +1 -1
  266. package/dist/cli/simple-commands/analysis.d.ts.map +1 -1
  267. package/dist/cli/simple-commands/analysis.js +18 -11
  268. package/dist/cli/simple-commands/analysis.js.map +1 -1
  269. package/dist/cli/simple-commands/automation.js +32 -17
  270. package/dist/cli/simple-commands/automation.js.map +1 -1
  271. package/dist/cli/simple-commands/batch-manager.js +44 -39
  272. package/dist/cli/simple-commands/batch-manager.js.map +1 -1
  273. package/dist/cli/simple-commands/config.d.ts.map +1 -1
  274. package/dist/cli/simple-commands/config.js +22 -21
  275. package/dist/cli/simple-commands/config.js.map +1 -1
  276. package/dist/cli/simple-commands/coordination.d.ts.map +1 -1
  277. package/dist/cli/simple-commands/coordination.js +12 -12
  278. package/dist/cli/simple-commands/coordination.js.map +1 -1
  279. package/dist/cli/simple-commands/fix-hook-variables.d.ts.map +1 -1
  280. package/dist/cli/simple-commands/fix-hook-variables.js +36 -30
  281. package/dist/cli/simple-commands/fix-hook-variables.js.map +1 -1
  282. package/dist/cli/simple-commands/github.d.ts.map +1 -1
  283. package/dist/cli/simple-commands/github.js +15 -15
  284. package/dist/cli/simple-commands/github.js.map +1 -1
  285. package/dist/cli/simple-commands/hive-mind/auto-save-middleware.d.ts.map +1 -1
  286. package/dist/cli/simple-commands/hive-mind/auto-save-middleware.js +12 -10
  287. package/dist/cli/simple-commands/hive-mind/auto-save-middleware.js.map +1 -1
  288. package/dist/cli/simple-commands/hive-mind/communication.d.ts.map +1 -1
  289. package/dist/cli/simple-commands/hive-mind/communication.js +42 -45
  290. package/dist/cli/simple-commands/hive-mind/communication.js.map +1 -1
  291. package/dist/cli/simple-commands/hive-mind/core.d.ts.map +1 -1
  292. package/dist/cli/simple-commands/hive-mind/core.js +97 -89
  293. package/dist/cli/simple-commands/hive-mind/core.js.map +1 -1
  294. package/dist/cli/simple-commands/hive-mind/db-optimizer.d.ts.map +1 -1
  295. package/dist/cli/simple-commands/hive-mind/db-optimizer.js +114 -59
  296. package/dist/cli/simple-commands/hive-mind/db-optimizer.js.map +1 -1
  297. package/dist/cli/simple-commands/hive-mind/mcp-wrapper.d.ts.map +1 -1
  298. package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js +182 -103
  299. package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js.map +1 -1
  300. package/dist/cli/simple-commands/hive-mind/memory.d.ts.map +1 -1
  301. package/dist/cli/simple-commands/hive-mind/memory.js +105 -75
  302. package/dist/cli/simple-commands/hive-mind/memory.js.map +1 -1
  303. package/dist/cli/simple-commands/hive-mind/performance-optimizer.d.ts.map +1 -1
  304. package/dist/cli/simple-commands/hive-mind/performance-optimizer.js +45 -43
  305. package/dist/cli/simple-commands/hive-mind/performance-optimizer.js.map +1 -1
  306. package/dist/cli/simple-commands/hive-mind/queen.d.ts.map +1 -1
  307. package/dist/cli/simple-commands/hive-mind/queen.js +101 -88
  308. package/dist/cli/simple-commands/hive-mind/queen.js.map +1 -1
  309. package/dist/cli/simple-commands/hive-mind/session-manager.js +75 -53
  310. package/dist/cli/simple-commands/hive-mind/session-manager.js.map +1 -1
  311. package/dist/cli/simple-commands/hive-mind-optimize.js +18 -18
  312. package/dist/cli/simple-commands/hive-mind-optimize.js.map +1 -1
  313. package/dist/cli/simple-commands/hive-mind.d.ts.map +1 -1
  314. package/dist/cli/simple-commands/hive-mind.js +207 -144
  315. package/dist/cli/simple-commands/hive-mind.js.map +1 -1
  316. package/dist/cli/simple-commands/hook-safety.d.ts.map +1 -1
  317. package/dist/cli/simple-commands/hook-safety.js +19 -19
  318. package/dist/cli/simple-commands/hook-safety.js.map +1 -1
  319. package/dist/cli/simple-commands/hooks.d.ts.map +1 -1
  320. package/dist/cli/simple-commands/hooks.js +85 -71
  321. package/dist/cli/simple-commands/hooks.js.map +1 -1
  322. package/dist/cli/simple-commands/init/batch-init.d.ts.map +1 -1
  323. package/dist/cli/simple-commands/init/batch-init.js +62 -55
  324. package/dist/cli/simple-commands/init/batch-init.js.map +1 -1
  325. package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.d.ts.map +1 -1
  326. package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.js +2 -2
  327. package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.js.map +1 -1
  328. package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.d.ts.map +1 -1
  329. package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js +58 -50
  330. package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js.map +1 -1
  331. package/dist/cli/simple-commands/init/claude-commands/slash-commands.d.ts.map +1 -1
  332. package/dist/cli/simple-commands/init/claude-commands/slash-commands.js.map +1 -1
  333. package/dist/cli/simple-commands/init/claude-commands/sparc-commands.d.ts.map +1 -1
  334. package/dist/cli/simple-commands/init/claude-commands/sparc-commands.js +34 -28
  335. package/dist/cli/simple-commands/init/claude-commands/sparc-commands.js.map +1 -1
  336. package/dist/cli/simple-commands/init/executable-wrapper.d.ts.map +1 -1
  337. package/dist/cli/simple-commands/init/executable-wrapper.js +7 -4
  338. package/dist/cli/simple-commands/init/executable-wrapper.js.map +1 -1
  339. package/dist/cli/simple-commands/init/gitignore-updater.d.ts.map +1 -1
  340. package/dist/cli/simple-commands/init/gitignore-updater.js +10 -9
  341. package/dist/cli/simple-commands/init/gitignore-updater.js.map +1 -1
  342. package/dist/cli/simple-commands/init/help.d.ts.map +1 -1
  343. package/dist/cli/simple-commands/init/help.js.map +1 -1
  344. package/dist/cli/simple-commands/init/index.d.ts.map +1 -1
  345. package/dist/cli/simple-commands/init/index.js +159 -103
  346. package/dist/cli/simple-commands/init/index.js.map +1 -1
  347. package/dist/cli/simple-commands/init/performance-monitor.d.ts.map +1 -1
  348. package/dist/cli/simple-commands/init/performance-monitor.js +17 -18
  349. package/dist/cli/simple-commands/init/performance-monitor.js.map +1 -1
  350. package/dist/cli/simple-commands/init/rollback/backup-manager.d.ts.map +1 -1
  351. package/dist/cli/simple-commands/init/rollback/backup-manager.js +19 -25
  352. package/dist/cli/simple-commands/init/rollback/backup-manager.js.map +1 -1
  353. package/dist/cli/simple-commands/init/rollback/index.d.ts.map +1 -1
  354. package/dist/cli/simple-commands/init/rollback/index.js +18 -15
  355. package/dist/cli/simple-commands/init/rollback/index.js.map +1 -1
  356. package/dist/cli/simple-commands/init/rollback/recovery-manager.d.ts.map +1 -1
  357. package/dist/cli/simple-commands/init/rollback/recovery-manager.js +49 -68
  358. package/dist/cli/simple-commands/init/rollback/recovery-manager.js.map +1 -1
  359. package/dist/cli/simple-commands/init/rollback/rollback-executor.d.ts.map +1 -1
  360. package/dist/cli/simple-commands/init/rollback/rollback-executor.js +16 -24
  361. package/dist/cli/simple-commands/init/rollback/rollback-executor.js.map +1 -1
  362. package/dist/cli/simple-commands/init/rollback/state-tracker.d.ts.map +1 -1
  363. package/dist/cli/simple-commands/init/rollback/state-tracker.js +25 -25
  364. package/dist/cli/simple-commands/init/rollback/state-tracker.js.map +1 -1
  365. package/dist/cli/simple-commands/init/sparc/roomodes-config.d.ts.map +1 -1
  366. package/dist/cli/simple-commands/init/sparc/roomodes-config.js +57 -57
  367. package/dist/cli/simple-commands/init/sparc/roomodes-config.js.map +1 -1
  368. package/dist/cli/simple-commands/init/sparc/workflows.d.ts.map +1 -1
  369. package/dist/cli/simple-commands/init/sparc/workflows.js +21 -21
  370. package/dist/cli/simple-commands/init/sparc/workflows.js.map +1 -1
  371. package/dist/cli/simple-commands/init/sparc-structure.d.ts.map +1 -1
  372. package/dist/cli/simple-commands/init/sparc-structure.js +1 -1
  373. package/dist/cli/simple-commands/init/sparc-structure.js.map +1 -1
  374. package/dist/cli/simple-commands/init/templates/enhanced-templates.d.ts.map +1 -1
  375. package/dist/cli/simple-commands/init/templates/enhanced-templates.js +69 -78
  376. package/dist/cli/simple-commands/init/templates/enhanced-templates.js.map +1 -1
  377. package/dist/cli/simple-commands/init/templates/sparc-modes.js +2 -2
  378. package/dist/cli/simple-commands/init/validation/config-validator.d.ts.map +1 -1
  379. package/dist/cli/simple-commands/init/validation/config-validator.js +12 -16
  380. package/dist/cli/simple-commands/init/validation/config-validator.js.map +1 -1
  381. package/dist/cli/simple-commands/init/validation/health-checker.d.ts.map +1 -1
  382. package/dist/cli/simple-commands/init/validation/health-checker.js +39 -41
  383. package/dist/cli/simple-commands/init/validation/health-checker.js.map +1 -1
  384. package/dist/cli/simple-commands/init/validation/index.d.ts.map +1 -1
  385. package/dist/cli/simple-commands/init/validation/index.js +8 -8
  386. package/dist/cli/simple-commands/init/validation/index.js.map +1 -1
  387. package/dist/cli/simple-commands/init/validation/mode-validator.d.ts.map +1 -1
  388. package/dist/cli/simple-commands/init/validation/mode-validator.js +12 -12
  389. package/dist/cli/simple-commands/init/validation/mode-validator.js.map +1 -1
  390. package/dist/cli/simple-commands/init/validation/post-init-validator.d.ts.map +1 -1
  391. package/dist/cli/simple-commands/init/validation/post-init-validator.js +13 -13
  392. package/dist/cli/simple-commands/init/validation/post-init-validator.js.map +1 -1
  393. package/dist/cli/simple-commands/init/validation/pre-init-validator.d.ts.map +1 -1
  394. package/dist/cli/simple-commands/init/validation/pre-init-validator.js +19 -24
  395. package/dist/cli/simple-commands/init/validation/pre-init-validator.js.map +1 -1
  396. package/dist/cli/simple-commands/mcp.js +2 -2
  397. package/dist/cli/simple-commands/mcp.js.map +1 -1
  398. package/dist/cli/simple-commands/memory.js +4 -4
  399. package/dist/cli/simple-commands/memory.js.map +1 -1
  400. package/dist/cli/simple-commands/migrate-hooks.d.ts.map +1 -1
  401. package/dist/cli/simple-commands/migrate-hooks.js +3 -3
  402. package/dist/cli/simple-commands/migrate-hooks.js.map +1 -1
  403. package/dist/cli/simple-commands/monitor.d.ts.map +1 -1
  404. package/dist/cli/simple-commands/monitor.js +34 -26
  405. package/dist/cli/simple-commands/monitor.js.map +1 -1
  406. package/dist/cli/simple-commands/process-ui-enhanced.d.ts.map +1 -1
  407. package/dist/cli/simple-commands/process-ui-enhanced.js +53 -39
  408. package/dist/cli/simple-commands/process-ui-enhanced.js.map +1 -1
  409. package/dist/cli/simple-commands/sparc-modes/index.js +11 -11
  410. package/dist/cli/simple-commands/sparc-modes/index.js.map +1 -1
  411. package/dist/cli/simple-commands/sparc-modes/swarm.js +50 -50
  412. package/dist/cli/simple-commands/sparc.d.ts.map +1 -1
  413. package/dist/cli/simple-commands/sparc.js +21 -11
  414. package/dist/cli/simple-commands/sparc.js.map +1 -1
  415. package/dist/cli/simple-commands/start-ui.d.ts.map +1 -1
  416. package/dist/cli/simple-commands/start-ui.js +5 -3
  417. package/dist/cli/simple-commands/start-ui.js.map +1 -1
  418. package/dist/cli/simple-commands/start-wrapper.d.ts.map +1 -1
  419. package/dist/cli/simple-commands/start-wrapper.js +1 -1
  420. package/dist/cli/simple-commands/start-wrapper.js.map +1 -1
  421. package/dist/cli/simple-commands/status.js +14 -14
  422. package/dist/cli/simple-commands/status.js.map +1 -1
  423. package/dist/cli/simple-commands/swarm-executor.d.ts.map +1 -1
  424. package/dist/cli/simple-commands/swarm-executor.js +19 -19
  425. package/dist/cli/simple-commands/swarm-executor.js.map +1 -1
  426. package/dist/cli/simple-commands/swarm-metrics-integration.d.ts.map +1 -1
  427. package/dist/cli/simple-commands/swarm-metrics-integration.js +30 -21
  428. package/dist/cli/simple-commands/swarm-metrics-integration.js.map +1 -1
  429. package/dist/cli/simple-commands/swarm-webui-integration.d.ts.map +1 -1
  430. package/dist/cli/simple-commands/swarm-webui-integration.js +30 -18
  431. package/dist/cli/simple-commands/swarm-webui-integration.js.map +1 -1
  432. package/dist/cli/simple-commands/swarm.d.ts +1 -1
  433. package/dist/cli/simple-commands/swarm.d.ts.map +1 -1
  434. package/dist/cli/simple-commands/swarm.js +81 -76
  435. package/dist/cli/simple-commands/swarm.js.map +1 -1
  436. package/dist/cli/simple-commands/training.d.ts.map +1 -1
  437. package/dist/cli/simple-commands/training.js +7 -7
  438. package/dist/cli/simple-commands/training.js.map +1 -1
  439. package/dist/cli/simple-commands/web-server.d.ts.map +1 -1
  440. package/dist/cli/simple-commands/web-server.js +68 -66
  441. package/dist/cli/simple-commands/web-server.js.map +1 -1
  442. package/dist/cli/simple-mcp.d.ts.map +1 -1
  443. package/dist/cli/simple-mcp.js +2 -4
  444. package/dist/cli/simple-mcp.js.map +1 -1
  445. package/dist/cli/simple-orchestrator.d.ts +3 -0
  446. package/dist/cli/simple-orchestrator.d.ts.map +1 -1
  447. package/dist/cli/simple-orchestrator.js +36 -35
  448. package/dist/cli/simple-orchestrator.js.map +1 -1
  449. package/dist/cli/ui/compatible-ui.d.ts +4 -0
  450. package/dist/cli/ui/compatible-ui.d.ts.map +1 -1
  451. package/dist/cli/ui/compatible-ui.js +9 -8
  452. package/dist/cli/ui/compatible-ui.js.map +1 -1
  453. package/dist/cli/ui/fallback-handler.d.ts.map +1 -1
  454. package/dist/cli/ui/fallback-handler.js +4 -4
  455. package/dist/cli/ui/fallback-handler.js.map +1 -1
  456. package/dist/cli/ui/index.d.ts +2 -2
  457. package/dist/cli/ui/index.d.ts.map +1 -1
  458. package/dist/cli/ui/index.js +3 -3
  459. package/dist/cli/ui/index.js.map +1 -1
  460. package/dist/cli/utils/environment-detector.d.ts.map +1 -1
  461. package/dist/cli/utils/environment-detector.js +13 -11
  462. package/dist/cli/utils/environment-detector.js.map +1 -1
  463. package/dist/cli/utils/interactive-detector.d.ts.map +1 -1
  464. package/dist/cli/utils/interactive-detector.js +1 -1
  465. package/dist/cli/utils/interactive-detector.js.map +1 -1
  466. package/dist/cli/utils/prompt-defaults.d.ts.map +1 -1
  467. package/dist/cli/utils/prompt-defaults.js +6 -7
  468. package/dist/cli/utils/prompt-defaults.js.map +1 -1
  469. package/dist/cli/utils/safe-interactive.d.ts.map +1 -1
  470. package/dist/cli/utils/safe-interactive.js +7 -6
  471. package/dist/cli/utils/safe-interactive.js.map +1 -1
  472. package/dist/cli/utils.d.ts.map +1 -1
  473. package/dist/cli/utils.js +58 -50
  474. package/dist/cli/utils.js.map +1 -1
  475. package/dist/cli/validation-helper.d.ts +27 -0
  476. package/dist/cli/validation-helper.d.ts.map +1 -0
  477. package/dist/cli/validation-helper.js +72 -0
  478. package/dist/cli/validation-helper.js.map +1 -0
  479. package/dist/communication/message-bus.d.ts.map +1 -1
  480. package/dist/communication/message-bus.js +80 -74
  481. package/dist/communication/message-bus.js.map +1 -1
  482. package/dist/config/config-manager.d.ts +3 -0
  483. package/dist/config/config-manager.d.ts.map +1 -1
  484. package/dist/config/config-manager.js +23 -6
  485. package/dist/config/config-manager.js.map +1 -1
  486. package/dist/config/ruv-swarm-config.d.ts +6 -0
  487. package/dist/config/ruv-swarm-config.d.ts.map +1 -1
  488. package/dist/config/ruv-swarm-config.js +37 -22
  489. package/dist/config/ruv-swarm-config.js.map +1 -1
  490. package/dist/config/ruv-swarm-integration.d.ts.map +1 -1
  491. package/dist/config/ruv-swarm-integration.js +21 -21
  492. package/dist/config/ruv-swarm-integration.js.map +1 -1
  493. package/dist/constants/agent-types.d.ts +4 -4
  494. package/dist/constants/agent-types.d.ts.map +1 -1
  495. package/dist/constants/agent-types.js +4 -4
  496. package/dist/constants/agent-types.js.map +1 -1
  497. package/dist/coordination/advanced-scheduler.d.ts.map +1 -1
  498. package/dist/coordination/advanced-scheduler.js +6 -10
  499. package/dist/coordination/advanced-scheduler.js.map +1 -1
  500. package/dist/coordination/advanced-task-executor.d.ts.map +1 -1
  501. package/dist/coordination/advanced-task-executor.js +33 -33
  502. package/dist/coordination/advanced-task-executor.js.map +1 -1
  503. package/dist/coordination/background-executor.d.ts.map +1 -1
  504. package/dist/coordination/background-executor.js +17 -16
  505. package/dist/coordination/background-executor.js.map +1 -1
  506. package/dist/coordination/circuit-breaker.d.ts.map +1 -1
  507. package/dist/coordination/circuit-breaker.js +3 -0
  508. package/dist/coordination/circuit-breaker.js.map +1 -1
  509. package/dist/coordination/conflict-resolution.d.ts.map +1 -1
  510. package/dist/coordination/conflict-resolution.js +10 -8
  511. package/dist/coordination/conflict-resolution.js.map +1 -1
  512. package/dist/coordination/dependency-graph.d.ts.map +1 -1
  513. package/dist/coordination/dependency-graph.js +4 -3
  514. package/dist/coordination/dependency-graph.js.map +1 -1
  515. package/dist/coordination/hive-orchestrator.d.ts.map +1 -1
  516. package/dist/coordination/hive-orchestrator.js +29 -25
  517. package/dist/coordination/hive-orchestrator.js.map +1 -1
  518. package/dist/coordination/hive-protocol.d.ts.map +1 -1
  519. package/dist/coordination/hive-protocol.js +22 -23
  520. package/dist/coordination/hive-protocol.js.map +1 -1
  521. package/dist/coordination/index.d.ts +1 -1
  522. package/dist/coordination/index.d.ts.map +1 -1
  523. package/dist/coordination/index.js +1 -1
  524. package/dist/coordination/index.js.map +1 -1
  525. package/dist/coordination/load-balancer.d.ts.map +1 -1
  526. package/dist/coordination/load-balancer.js +55 -56
  527. package/dist/coordination/load-balancer.js.map +1 -1
  528. package/dist/coordination/manager.d.ts.map +1 -1
  529. package/dist/coordination/manager.js +2 -8
  530. package/dist/coordination/manager.js.map +1 -1
  531. package/dist/coordination/messaging.d.ts.map +1 -1
  532. package/dist/coordination/messaging.js +4 -4
  533. package/dist/coordination/messaging.js.map +1 -1
  534. package/dist/coordination/metrics.d.ts.map +1 -1
  535. package/dist/coordination/metrics.js +11 -9
  536. package/dist/coordination/metrics.js.map +1 -1
  537. package/dist/coordination/resources.d.ts.map +1 -1
  538. package/dist/coordination/resources.js +10 -6
  539. package/dist/coordination/resources.js.map +1 -1
  540. package/dist/coordination/scheduler.d.ts.map +1 -1
  541. package/dist/coordination/scheduler.js +4 -4
  542. package/dist/coordination/scheduler.js.map +1 -1
  543. package/dist/coordination/swarm-coordinator.d.ts.map +1 -1
  544. package/dist/coordination/swarm-coordinator.js +32 -34
  545. package/dist/coordination/swarm-coordinator.js.map +1 -1
  546. package/dist/coordination/swarm-monitor.d.ts.map +1 -1
  547. package/dist/coordination/swarm-monitor.js +17 -17
  548. package/dist/coordination/swarm-monitor.js.map +1 -1
  549. package/dist/coordination/work-stealing.d.ts.map +1 -1
  550. package/dist/coordination/work-stealing.js +3 -0
  551. package/dist/coordination/work-stealing.js.map +1 -1
  552. package/dist/core/config.d.ts +4 -0
  553. package/dist/core/config.d.ts.map +1 -1
  554. package/dist/core/config.js +28 -31
  555. package/dist/core/config.js.map +1 -1
  556. package/dist/core/event-bus.d.ts +3 -0
  557. package/dist/core/event-bus.d.ts.map +1 -1
  558. package/dist/core/event-bus.js.map +1 -1
  559. package/dist/core/json-persistence.d.ts +3 -0
  560. package/dist/core/json-persistence.d.ts.map +1 -1
  561. package/dist/core/json-persistence.js +19 -23
  562. package/dist/core/json-persistence.js.map +1 -1
  563. package/dist/core/logger.d.ts +3 -0
  564. package/dist/core/logger.d.ts.map +1 -1
  565. package/dist/core/logger.js +2 -6
  566. package/dist/core/logger.js.map +1 -1
  567. package/dist/core/orchestrator-fixed.d.ts.map +1 -1
  568. package/dist/core/orchestrator-fixed.js +4 -1
  569. package/dist/core/orchestrator-fixed.js.map +1 -1
  570. package/dist/core/orchestrator.d.ts.map +1 -1
  571. package/dist/core/orchestrator.js +66 -33
  572. package/dist/core/orchestrator.js.map +1 -1
  573. package/dist/core/persistence.d.ts +3 -0
  574. package/dist/core/persistence.d.ts.map +1 -1
  575. package/dist/core/persistence.js +25 -19
  576. package/dist/core/persistence.js.map +1 -1
  577. package/dist/enterprise/analytics-manager.d.ts.map +1 -1
  578. package/dist/enterprise/analytics-manager.js +141 -134
  579. package/dist/enterprise/analytics-manager.js.map +1 -1
  580. package/dist/enterprise/audit-manager.d.ts.map +1 -1
  581. package/dist/enterprise/audit-manager.js +144 -122
  582. package/dist/enterprise/audit-manager.js.map +1 -1
  583. package/dist/enterprise/cloud-manager.d.ts.map +1 -1
  584. package/dist/enterprise/cloud-manager.js +104 -99
  585. package/dist/enterprise/cloud-manager.js.map +1 -1
  586. package/dist/enterprise/deployment-manager.d.ts.map +1 -1
  587. package/dist/enterprise/deployment-manager.js +104 -97
  588. package/dist/enterprise/deployment-manager.js.map +1 -1
  589. package/dist/enterprise/index.d.ts +6 -6
  590. package/dist/enterprise/index.d.ts.map +1 -1
  591. package/dist/enterprise/project-manager.d.ts.map +1 -1
  592. package/dist/enterprise/project-manager.js +74 -66
  593. package/dist/enterprise/project-manager.js.map +1 -1
  594. package/dist/enterprise/security-manager.d.ts.map +1 -1
  595. package/dist/enterprise/security-manager.js +137 -129
  596. package/dist/enterprise/security-manager.js.map +1 -1
  597. package/dist/hive-mind/core/Agent.d.ts.map +1 -1
  598. package/dist/hive-mind/core/Agent.js +36 -36
  599. package/dist/hive-mind/core/Agent.js.map +1 -1
  600. package/dist/hive-mind/core/Communication.d.ts.map +1 -1
  601. package/dist/hive-mind/core/Communication.js +17 -17
  602. package/dist/hive-mind/core/Communication.js.map +1 -1
  603. package/dist/hive-mind/core/DatabaseManager.d.ts.map +1 -1
  604. package/dist/hive-mind/core/DatabaseManager.js +104 -58
  605. package/dist/hive-mind/core/DatabaseManager.js.map +1 -1
  606. package/dist/hive-mind/core/HiveMind.d.ts.map +1 -1
  607. package/dist/hive-mind/core/HiveMind.js +35 -35
  608. package/dist/hive-mind/core/HiveMind.js.map +1 -1
  609. package/dist/hive-mind/core/Memory.d.ts.map +1 -1
  610. package/dist/hive-mind/core/Memory.js +78 -71
  611. package/dist/hive-mind/core/Memory.js.map +1 -1
  612. package/dist/hive-mind/core/MemoryMonitor.d.ts.map +1 -1
  613. package/dist/hive-mind/core/MemoryMonitor.js +38 -38
  614. package/dist/hive-mind/core/MemoryMonitor.js.map +1 -1
  615. package/dist/hive-mind/core/Queen.d.ts.map +1 -1
  616. package/dist/hive-mind/core/Queen.js +110 -47
  617. package/dist/hive-mind/core/Queen.js.map +1 -1
  618. package/dist/hive-mind/integration/ConsensusEngine.d.ts.map +1 -1
  619. package/dist/hive-mind/integration/ConsensusEngine.js +25 -23
  620. package/dist/hive-mind/integration/ConsensusEngine.js.map +1 -1
  621. package/dist/hive-mind/integration/MCPToolWrapper.d.ts.map +1 -1
  622. package/dist/hive-mind/integration/MCPToolWrapper.js.map +1 -1
  623. package/dist/hive-mind/integration/SwarmOrchestrator.d.ts.map +1 -1
  624. package/dist/hive-mind/integration/SwarmOrchestrator.js +60 -58
  625. package/dist/hive-mind/integration/SwarmOrchestrator.js.map +1 -1
  626. package/dist/hive-mind/types.d.ts.map +1 -1
  627. package/dist/integration/mock-components.d.ts.map +1 -1
  628. package/dist/integration/mock-components.js +21 -21
  629. package/dist/integration/mock-components.js.map +1 -1
  630. package/dist/integration/system-integration.d.ts.map +1 -1
  631. package/dist/integration/system-integration.js +29 -12
  632. package/dist/integration/system-integration.js.map +1 -1
  633. package/dist/mcp/auth.d.ts +1 -1
  634. package/dist/mcp/auth.d.ts.map +1 -1
  635. package/dist/mcp/auth.js +8 -1
  636. package/dist/mcp/auth.js.map +1 -1
  637. package/dist/mcp/claude-code-wrapper.d.ts.map +1 -1
  638. package/dist/mcp/claude-code-wrapper.js +169 -68
  639. package/dist/mcp/claude-code-wrapper.js.map +1 -1
  640. package/dist/mcp/claude-flow-tools.d.ts.map +1 -1
  641. package/dist/mcp/claude-flow-tools.js +42 -3
  642. package/dist/mcp/claude-flow-tools.js.map +1 -1
  643. package/dist/mcp/client.d.ts.map +1 -1
  644. package/dist/mcp/client.js.map +1 -1
  645. package/dist/mcp/index.d.ts +6 -6
  646. package/dist/mcp/index.d.ts.map +1 -1
  647. package/dist/mcp/index.js +9 -9
  648. package/dist/mcp/index.js.map +1 -1
  649. package/dist/mcp/integrate-wrapper.d.ts.map +1 -1
  650. package/dist/mcp/integrate-wrapper.js +5 -7
  651. package/dist/mcp/integrate-wrapper.js.map +1 -1
  652. package/dist/mcp/lifecycle-manager.d.ts.map +1 -1
  653. package/dist/mcp/lifecycle-manager.js +8 -7
  654. package/dist/mcp/lifecycle-manager.js.map +1 -1
  655. package/dist/mcp/load-balancer.d.ts.map +1 -1
  656. package/dist/mcp/load-balancer.js +5 -1
  657. package/dist/mcp/load-balancer.js.map +1 -1
  658. package/dist/mcp/orchestration-integration.d.ts.map +1 -1
  659. package/dist/mcp/orchestration-integration.js +22 -9
  660. package/dist/mcp/orchestration-integration.js.map +1 -1
  661. package/dist/mcp/performance-monitor.d.ts.map +1 -1
  662. package/dist/mcp/performance-monitor.js +22 -19
  663. package/dist/mcp/performance-monitor.js.map +1 -1
  664. package/dist/mcp/protocol-manager.d.ts.map +1 -1
  665. package/dist/mcp/protocol-manager.js +8 -19
  666. package/dist/mcp/protocol-manager.js.map +1 -1
  667. package/dist/mcp/recovery/connection-health-monitor.d.ts.map +1 -1
  668. package/dist/mcp/recovery/connection-health-monitor.js +5 -5
  669. package/dist/mcp/recovery/connection-health-monitor.js.map +1 -1
  670. package/dist/mcp/recovery/connection-state-manager.d.ts +4 -0
  671. package/dist/mcp/recovery/connection-state-manager.d.ts.map +1 -1
  672. package/dist/mcp/recovery/connection-state-manager.js +13 -13
  673. package/dist/mcp/recovery/connection-state-manager.js.map +1 -1
  674. package/dist/mcp/recovery/fallback-coordinator.d.ts.map +1 -1
  675. package/dist/mcp/recovery/fallback-coordinator.js +5 -5
  676. package/dist/mcp/recovery/fallback-coordinator.js.map +1 -1
  677. package/dist/mcp/recovery/index.d.ts +4 -4
  678. package/dist/mcp/recovery/index.d.ts.map +1 -1
  679. package/dist/mcp/recovery/index.js +4 -4
  680. package/dist/mcp/recovery/index.js.map +1 -1
  681. package/dist/mcp/recovery/reconnection-manager.d.ts.map +1 -1
  682. package/dist/mcp/recovery/reconnection-manager.js +1 -1
  683. package/dist/mcp/recovery/reconnection-manager.js.map +1 -1
  684. package/dist/mcp/recovery/recovery-manager.d.ts.map +1 -1
  685. package/dist/mcp/recovery/recovery-manager.js +2 -4
  686. package/dist/mcp/recovery/recovery-manager.js.map +1 -1
  687. package/dist/mcp/router.d.ts.map +1 -1
  688. package/dist/mcp/router.js +3 -0
  689. package/dist/mcp/router.js.map +1 -1
  690. package/dist/mcp/ruv-swarm-tools.d.ts.map +1 -1
  691. package/dist/mcp/ruv-swarm-tools.js +132 -102
  692. package/dist/mcp/ruv-swarm-tools.js.map +1 -1
  693. package/dist/mcp/server-with-wrapper.d.ts +3 -0
  694. package/dist/mcp/server-with-wrapper.d.ts.map +1 -1
  695. package/dist/mcp/server-with-wrapper.js +2 -3
  696. package/dist/mcp/server-with-wrapper.js.map +1 -1
  697. package/dist/mcp/server-wrapper-mode.d.ts +5 -0
  698. package/dist/mcp/server-wrapper-mode.d.ts.map +1 -1
  699. package/dist/mcp/server-wrapper-mode.js +2 -3
  700. package/dist/mcp/server-wrapper-mode.js.map +1 -1
  701. package/dist/mcp/server.d.ts.map +1 -1
  702. package/dist/mcp/server.js +12 -7
  703. package/dist/mcp/server.js.map +1 -1
  704. package/dist/mcp/session-manager.d.ts.map +1 -1
  705. package/dist/mcp/session-manager.js +4 -3
  706. package/dist/mcp/session-manager.js.map +1 -1
  707. package/dist/mcp/sparc-modes.d.ts.map +1 -1
  708. package/dist/mcp/sparc-modes.js +15 -15
  709. package/dist/mcp/sparc-modes.js.map +1 -1
  710. package/dist/mcp/swarm-tools.d.ts.map +1 -1
  711. package/dist/mcp/swarm-tools.js +100 -80
  712. package/dist/mcp/swarm-tools.js.map +1 -1
  713. package/dist/mcp/tools.d.ts.map +1 -1
  714. package/dist/mcp/tools.js +28 -12
  715. package/dist/mcp/tools.js.map +1 -1
  716. package/dist/mcp/transports/base.d.ts.map +1 -1
  717. package/dist/mcp/transports/base.js +3 -0
  718. package/dist/mcp/transports/base.js.map +1 -1
  719. package/dist/mcp/transports/http.d.ts +3 -0
  720. package/dist/mcp/transports/http.d.ts.map +1 -1
  721. package/dist/mcp/transports/http.js +3 -3
  722. package/dist/mcp/transports/http.js.map +1 -1
  723. package/dist/mcp/transports/stdio.d.ts +3 -0
  724. package/dist/mcp/transports/stdio.d.ts.map +1 -1
  725. package/dist/mcp/transports/stdio.js +3 -0
  726. package/dist/mcp/transports/stdio.js.map +1 -1
  727. package/dist/memory/advanced-memory-manager.d.ts.map +1 -1
  728. package/dist/memory/advanced-memory-manager.js +109 -100
  729. package/dist/memory/advanced-memory-manager.js.map +1 -1
  730. package/dist/memory/backends/base.d.ts.map +1 -1
  731. package/dist/memory/backends/base.js +3 -0
  732. package/dist/memory/backends/base.js.map +1 -1
  733. package/dist/memory/backends/markdown.d.ts +3 -0
  734. package/dist/memory/backends/markdown.d.ts.map +1 -1
  735. package/dist/memory/backends/markdown.js +8 -8
  736. package/dist/memory/backends/markdown.js.map +1 -1
  737. package/dist/memory/backends/sqlite.d.ts +3 -0
  738. package/dist/memory/backends/sqlite.d.ts.map +1 -1
  739. package/dist/memory/backends/sqlite.js +6 -2
  740. package/dist/memory/backends/sqlite.js.map +1 -1
  741. package/dist/memory/cache.d.ts.map +1 -1
  742. package/dist/memory/cache.js +5 -3
  743. package/dist/memory/cache.js.map +1 -1
  744. package/dist/memory/distributed-memory.d.ts.map +1 -1
  745. package/dist/memory/distributed-memory.js +27 -28
  746. package/dist/memory/distributed-memory.js.map +1 -1
  747. package/dist/memory/fallback-store.d.ts.map +1 -1
  748. package/dist/memory/fallback-store.js.map +1 -1
  749. package/dist/memory/in-memory-store.d.ts.map +1 -1
  750. package/dist/memory/in-memory-store.js +8 -8
  751. package/dist/memory/in-memory-store.js.map +1 -1
  752. package/dist/memory/indexer.d.ts.map +1 -1
  753. package/dist/memory/indexer.js +4 -1
  754. package/dist/memory/indexer.js.map +1 -1
  755. package/dist/memory/manager.d.ts.map +1 -1
  756. package/dist/memory/manager.js +17 -20
  757. package/dist/memory/manager.js.map +1 -1
  758. package/dist/memory/sqlite-store.js +12 -8
  759. package/dist/memory/sqlite-store.js.map +1 -1
  760. package/dist/memory/swarm-memory.d.ts.map +1 -1
  761. package/dist/memory/swarm-memory.js +37 -44
  762. package/dist/memory/swarm-memory.js.map +1 -1
  763. package/dist/migration/index.d.ts +4 -0
  764. package/dist/migration/index.d.ts.map +1 -1
  765. package/dist/migration/index.js +8 -8
  766. package/dist/migration/index.js.map +1 -1
  767. package/dist/migration/logger.d.ts.map +1 -1
  768. package/dist/migration/logger.js +5 -5
  769. package/dist/migration/logger.js.map +1 -1
  770. package/dist/migration/migration-analyzer.d.ts +3 -0
  771. package/dist/migration/migration-analyzer.d.ts.map +1 -1
  772. package/dist/migration/migration-analyzer.js +25 -20
  773. package/dist/migration/migration-analyzer.js.map +1 -1
  774. package/dist/migration/migration-runner.d.ts.map +1 -1
  775. package/dist/migration/migration-runner.js +35 -29
  776. package/dist/migration/migration-runner.js.map +1 -1
  777. package/dist/migration/migration-validator.d.ts +3 -0
  778. package/dist/migration/migration-validator.d.ts.map +1 -1
  779. package/dist/migration/migration-validator.js +22 -26
  780. package/dist/migration/migration-validator.js.map +1 -1
  781. package/dist/migration/progress-reporter.d.ts +3 -0
  782. package/dist/migration/progress-reporter.d.ts.map +1 -1
  783. package/dist/migration/progress-reporter.js +8 -8
  784. package/dist/migration/progress-reporter.js.map +1 -1
  785. package/dist/migration/rollback-manager.d.ts +3 -0
  786. package/dist/migration/rollback-manager.d.ts.map +1 -1
  787. package/dist/migration/rollback-manager.js +29 -26
  788. package/dist/migration/rollback-manager.js.map +1 -1
  789. package/dist/monitoring/diagnostics.d.ts.map +1 -1
  790. package/dist/monitoring/diagnostics.js +49 -37
  791. package/dist/monitoring/diagnostics.js.map +1 -1
  792. package/dist/monitoring/health-check.d.ts.map +1 -1
  793. package/dist/monitoring/health-check.js +24 -25
  794. package/dist/monitoring/health-check.js.map +1 -1
  795. package/dist/monitoring/real-time-monitor.d.ts.map +1 -1
  796. package/dist/monitoring/real-time-monitor.js +71 -58
  797. package/dist/monitoring/real-time-monitor.js.map +1 -1
  798. package/dist/resources/resource-manager.d.ts.map +1 -1
  799. package/dist/resources/resource-manager.js +96 -83
  800. package/dist/resources/resource-manager.js.map +1 -1
  801. package/dist/swarm/claude-flow-executor.d.ts.map +1 -1
  802. package/dist/swarm/claude-flow-executor.js +37 -31
  803. package/dist/swarm/claude-flow-executor.js.map +1 -1
  804. package/dist/swarm/coordinator.d.ts.map +1 -1
  805. package/dist/swarm/coordinator.js +330 -280
  806. package/dist/swarm/coordinator.js.map +1 -1
  807. package/dist/swarm/direct-executor.d.ts.map +1 -1
  808. package/dist/swarm/direct-executor.js +44 -37
  809. package/dist/swarm/direct-executor.js.map +1 -1
  810. package/dist/swarm/executor-v2.d.ts.map +1 -1
  811. package/dist/swarm/executor-v2.js +28 -27
  812. package/dist/swarm/executor-v2.js.map +1 -1
  813. package/dist/swarm/executor.d.ts +3 -0
  814. package/dist/swarm/executor.d.ts.map +1 -1
  815. package/dist/swarm/executor.js +58 -52
  816. package/dist/swarm/executor.js.map +1 -1
  817. package/dist/swarm/index.d.ts.map +1 -1
  818. package/dist/swarm/index.js +2 -2
  819. package/dist/swarm/index.js.map +1 -1
  820. package/dist/swarm/json-output-aggregator.d.ts.map +1 -1
  821. package/dist/swarm/json-output-aggregator.js +20 -19
  822. package/dist/swarm/json-output-aggregator.js.map +1 -1
  823. package/dist/swarm/memory.d.ts.map +1 -1
  824. package/dist/swarm/memory.js +67 -67
  825. package/dist/swarm/memory.js.map +1 -1
  826. package/dist/swarm/optimizations/async-file-manager.d.ts +4 -0
  827. package/dist/swarm/optimizations/async-file-manager.d.ts.map +1 -1
  828. package/dist/swarm/optimizations/async-file-manager.js +19 -23
  829. package/dist/swarm/optimizations/async-file-manager.js.map +1 -1
  830. package/dist/swarm/optimizations/circular-buffer.d.ts.map +1 -1
  831. package/dist/swarm/optimizations/circular-buffer.js +2 -4
  832. package/dist/swarm/optimizations/circular-buffer.js.map +1 -1
  833. package/dist/swarm/optimizations/connection-pool.d.ts.map +1 -1
  834. package/dist/swarm/optimizations/connection-pool.js +12 -13
  835. package/dist/swarm/optimizations/connection-pool.js.map +1 -1
  836. package/dist/swarm/optimizations/index.js +2 -2
  837. package/dist/swarm/optimizations/optimized-executor.d.ts.map +1 -1
  838. package/dist/swarm/optimizations/optimized-executor.js +23 -29
  839. package/dist/swarm/optimizations/optimized-executor.js.map +1 -1
  840. package/dist/swarm/optimizations/ttl-map.d.ts.map +1 -1
  841. package/dist/swarm/optimizations/ttl-map.js +4 -4
  842. package/dist/swarm/optimizations/ttl-map.js.map +1 -1
  843. package/dist/swarm/prompt-cli.d.ts.map +1 -1
  844. package/dist/swarm/prompt-cli.js +18 -13
  845. package/dist/swarm/prompt-cli.js.map +1 -1
  846. package/dist/swarm/prompt-copier-enhanced.d.ts.map +1 -1
  847. package/dist/swarm/prompt-copier-enhanced.js +12 -12
  848. package/dist/swarm/prompt-copier-enhanced.js.map +1 -1
  849. package/dist/swarm/prompt-copier.d.ts.map +1 -1
  850. package/dist/swarm/prompt-copier.js +15 -18
  851. package/dist/swarm/prompt-copier.js.map +1 -1
  852. package/dist/swarm/prompt-manager.d.ts.map +1 -1
  853. package/dist/swarm/prompt-manager.js +27 -21
  854. package/dist/swarm/prompt-manager.js.map +1 -1
  855. package/dist/swarm/prompt-utils.d.ts.map +1 -1
  856. package/dist/swarm/prompt-utils.js +34 -32
  857. package/dist/swarm/prompt-utils.js.map +1 -1
  858. package/dist/swarm/sparc-executor.d.ts.map +1 -1
  859. package/dist/swarm/sparc-executor.js +189 -123
  860. package/dist/swarm/sparc-executor.js.map +1 -1
  861. package/dist/swarm/strategies/auto.d.ts.map +1 -1
  862. package/dist/swarm/strategies/auto.js +105 -86
  863. package/dist/swarm/strategies/auto.js.map +1 -1
  864. package/dist/swarm/strategies/base.d.ts.map +1 -1
  865. package/dist/swarm/strategies/base.js +14 -11
  866. package/dist/swarm/strategies/base.js.map +1 -1
  867. package/dist/swarm/strategies/research.d.ts.map +1 -1
  868. package/dist/swarm/strategies/research.js +76 -71
  869. package/dist/swarm/strategies/research.js.map +1 -1
  870. package/dist/swarm/types.d.ts.map +1 -1
  871. package/dist/swarm/types.js +3 -0
  872. package/dist/swarm/types.js.map +1 -1
  873. package/dist/swarm/workers/copy-worker.js +4 -4
  874. package/dist/swarm/workers/copy-worker.js.map +1 -1
  875. package/dist/task/commands.d.ts.map +1 -1
  876. package/dist/task/commands.js +11 -7
  877. package/dist/task/commands.js.map +1 -1
  878. package/dist/task/coordination.d.ts.map +1 -1
  879. package/dist/task/coordination.js +75 -70
  880. package/dist/task/coordination.js.map +1 -1
  881. package/dist/task/engine.d.ts.map +1 -1
  882. package/dist/task/engine.js +34 -32
  883. package/dist/task/engine.js.map +1 -1
  884. package/dist/task/index.d.ts +3 -3
  885. package/dist/task/index.d.ts.map +1 -1
  886. package/dist/task/index.js +11 -11
  887. package/dist/task/index.js.map +1 -1
  888. package/dist/terminal/adapters/native.d.ts.map +1 -1
  889. package/dist/terminal/adapters/native.js +6 -6
  890. package/dist/terminal/adapters/native.js.map +1 -1
  891. package/dist/terminal/adapters/vscode.d.ts +3 -0
  892. package/dist/terminal/adapters/vscode.d.ts.map +1 -1
  893. package/dist/terminal/adapters/vscode.js +6 -4
  894. package/dist/terminal/adapters/vscode.js.map +1 -1
  895. package/dist/terminal/manager.d.ts.map +1 -1
  896. package/dist/terminal/manager.js +6 -8
  897. package/dist/terminal/manager.js.map +1 -1
  898. package/dist/terminal/pool.d.ts.map +1 -1
  899. package/dist/terminal/pool.js +3 -0
  900. package/dist/terminal/pool.js.map +1 -1
  901. package/dist/terminal/session.d.ts.map +1 -1
  902. package/dist/terminal/session.js +6 -2
  903. package/dist/terminal/session.js.map +1 -1
  904. package/dist/ui/hive-dashboard.d.ts.map +1 -1
  905. package/dist/ui/hive-dashboard.js +52 -33
  906. package/dist/ui/hive-dashboard.js.map +1 -1
  907. package/dist/utils/error-handler.d.ts.map +1 -1
  908. package/dist/utils/error-handler.js +1 -1
  909. package/dist/utils/error-handler.js.map +1 -1
  910. package/dist/utils/errors.d.ts.map +1 -1
  911. package/dist/utils/errors.js.map +1 -1
  912. package/dist/utils/helpers.d.ts +3 -0
  913. package/dist/utils/helpers.d.ts.map +1 -1
  914. package/dist/utils/helpers.js +5 -8
  915. package/dist/utils/helpers.js.map +1 -1
  916. package/dist/utils/npx-isolated-cache.js +3 -3
  917. package/dist/utils/npx-isolated-cache.js.map +1 -1
  918. package/dist/utils/paths.d.ts.map +1 -1
  919. package/dist/utils/paths.js +8 -4
  920. package/dist/utils/paths.js.map +1 -1
  921. package/dist/utils/type-guards.d.ts +1 -1
  922. package/dist/utils/type-guards.d.ts.map +1 -1
  923. package/dist/utils/type-guards.js +11 -10
  924. package/dist/utils/type-guards.js.map +1 -1
  925. package/package.json +7 -6
  926. package/src/adapters/cliffy-node.ts +27 -22
  927. package/src/agents/agent-manager.ts +145 -121
  928. package/src/agents/agent-registry.ts +77 -70
  929. package/src/api/claude-client.ts +59 -38
  930. package/src/api/routes/analysis.js +750 -735
  931. package/src/cli/__tests__/command-registry.test.js +42 -32
  932. package/src/cli/__tests__/simple-cli.test.js +42 -37
  933. package/src/cli/__tests__/utils.test.js +9 -9
  934. package/src/cli/agents/README.md +30 -4
  935. package/src/cli/agents/analyst.ts +161 -163
  936. package/src/cli/agents/architect.ts +126 -131
  937. package/src/cli/agents/base-agent.ts +48 -47
  938. package/src/cli/agents/capabilities.ts +87 -85
  939. package/src/cli/agents/coder.ts +127 -120
  940. package/src/cli/agents/coordinator.ts +72 -72
  941. package/src/cli/agents/hive-agents.ts +96 -70
  942. package/src/cli/agents/index.ts +70 -55
  943. package/src/cli/agents/researcher.ts +63 -74
  944. package/src/cli/agents/tester.ts +91 -98
  945. package/src/cli/cli-core.ts +56 -47
  946. package/src/cli/command-registry.js +125 -83
  947. package/src/cli/commands/advanced-memory-commands.ts +210 -142
  948. package/src/cli/commands/agent-simple.ts +146 -114
  949. package/src/cli/commands/agent.ts +119 -95
  950. package/src/cli/commands/claude-api.ts +19 -15
  951. package/src/cli/commands/claude.ts +96 -88
  952. package/src/cli/commands/config-integration.ts +120 -101
  953. package/src/cli/commands/config.ts +10 -8
  954. package/src/cli/commands/enterprise.ts +323 -187
  955. package/src/cli/commands/help-new.ts +246 -0
  956. package/src/cli/commands/help.ts +326 -183
  957. package/src/cli/commands/hive-mind/index.ts +3 -3
  958. package/src/cli/commands/hive-mind/init.ts +19 -12
  959. package/src/cli/commands/hive-mind/optimize-memory.ts +83 -53
  960. package/src/cli/commands/hive-mind/pause.ts +27 -25
  961. package/src/cli/commands/hive-mind/ps.ts +43 -37
  962. package/src/cli/commands/hive-mind/resume.ts +26 -26
  963. package/src/cli/commands/hive-mind/spawn.ts +37 -29
  964. package/src/cli/commands/hive-mind/status.ts +51 -51
  965. package/src/cli/commands/hive-mind/stop.ts +56 -51
  966. package/src/cli/commands/hive-mind/task.ts +65 -54
  967. package/src/cli/commands/hive-mind/wizard.ts +181 -167
  968. package/src/cli/commands/hive.ts +136 -96
  969. package/src/cli/commands/hook-types.ts +2 -2
  970. package/src/cli/commands/hook-validator.ts +8 -4
  971. package/src/cli/commands/hook.ts +44 -42
  972. package/src/cli/commands/index.ts +1162 -1031
  973. package/src/cli/commands/mcp.ts +105 -94
  974. package/src/cli/commands/memory.ts +24 -21
  975. package/src/cli/commands/migrate.ts +24 -24
  976. package/src/cli/commands/monitor.ts +123 -93
  977. package/src/cli/commands/ruv-swarm.ts +131 -122
  978. package/src/cli/commands/session.ts +60 -45
  979. package/src/cli/commands/sparc.ts +170 -139
  980. package/src/cli/commands/start/event-emitter.ts +2 -2
  981. package/src/cli/commands/start/index.ts +1 -1
  982. package/src/cli/commands/start/process-manager.ts +30 -47
  983. package/src/cli/commands/start/process-ui-simple.ts +60 -49
  984. package/src/cli/commands/start/process-ui.ts +1 -1
  985. package/src/cli/commands/start/start-command.ts +104 -75
  986. package/src/cli/commands/start/system-monitor.ts +35 -41
  987. package/src/cli/commands/start/types.ts +3 -3
  988. package/src/cli/commands/start.ts +1 -1
  989. package/src/cli/commands/status.ts +67 -67
  990. package/src/cli/commands/swarm-spawn.ts +21 -12
  991. package/src/cli/commands/swarm.ts +221 -150
  992. package/src/cli/commands/task.ts +55 -55
  993. package/src/cli/commands/workflow.ts +174 -157
  994. package/src/cli/completion.ts +34 -19
  995. package/src/cli/create-enhanced-task.js +49 -17
  996. package/src/cli/formatter.ts +38 -37
  997. package/src/cli/help-formatter.js +145 -0
  998. package/src/cli/help-formatter.ts +173 -0
  999. package/src/cli/help-text.js +273 -6
  1000. package/src/cli/index-remote.ts +12 -9
  1001. package/src/cli/index.ts +77 -67
  1002. package/src/cli/init/batch-tools.ts +4 -5
  1003. package/src/cli/init/claude-config.ts +125 -118
  1004. package/src/cli/init/directory-structure.ts +10 -11
  1005. package/src/cli/init/index.ts +13 -13
  1006. package/src/cli/init/sparc-environment.ts +90 -74
  1007. package/src/cli/init/swarm-commands.ts +5 -6
  1008. package/src/cli/init/utils.ts +1 -1
  1009. package/src/cli/main.ts +9 -10
  1010. package/src/cli/node-compat.js +26 -19
  1011. package/src/cli/node-repl.ts +104 -87
  1012. package/src/cli/repl.ts +190 -158
  1013. package/src/cli/runtime-detector.js +24 -19
  1014. package/src/cli/simple-cli.js +479 -394
  1015. package/src/cli/simple-cli.ts +426 -366
  1016. package/src/cli/simple-commands/__tests__/agent.test.js +49 -55
  1017. package/src/cli/simple-commands/__tests__/memory.test.js +4 -401
  1018. package/src/cli/simple-commands/__tests__/swarm.test.js +49 -55
  1019. package/src/cli/simple-commands/__tests__/task.test.js +4 -478
  1020. package/src/cli/simple-commands/agent.js +27 -27
  1021. package/src/cli/simple-commands/analysis.js +179 -161
  1022. package/src/cli/simple-commands/automation.js +226 -205
  1023. package/src/cli/simple-commands/batch-manager.js +98 -88
  1024. package/src/cli/simple-commands/config.js +65 -60
  1025. package/src/cli/simple-commands/coordination.js +197 -185
  1026. package/src/cli/simple-commands/enhanced-ui-views.js +142 -115
  1027. package/src/cli/simple-commands/enhanced-webui-complete.js +267 -167
  1028. package/src/cli/simple-commands/fix-hook-variables.js +73 -67
  1029. package/src/cli/simple-commands/github/gh-coordinator.js +63 -53
  1030. package/src/cli/simple-commands/github/github-api.js +45 -47
  1031. package/src/cli/simple-commands/github.js +33 -34
  1032. package/src/cli/simple-commands/hive-mind/auto-save-middleware.js +44 -40
  1033. package/src/cli/simple-commands/hive-mind/communication.js +198 -185
  1034. package/src/cli/simple-commands/hive-mind/core.js +289 -304
  1035. package/src/cli/simple-commands/hive-mind/db-optimizer.js +278 -168
  1036. package/src/cli/simple-commands/hive-mind/mcp-wrapper.js +352 -258
  1037. package/src/cli/simple-commands/hive-mind/memory.js +356 -287
  1038. package/src/cli/simple-commands/hive-mind/performance-optimizer.js +88 -79
  1039. package/src/cli/simple-commands/hive-mind/performance-test.js +61 -49
  1040. package/src/cli/simple-commands/hive-mind/queen.js +223 -213
  1041. package/src/cli/simple-commands/hive-mind/session-manager.js +217 -157
  1042. package/src/cli/simple-commands/hive-mind-optimize.js +69 -65
  1043. package/src/cli/simple-commands/hive-mind-wizard.js +213 -211
  1044. package/src/cli/simple-commands/hive-mind.js +602 -435
  1045. package/src/cli/simple-commands/hive.js +12 -12
  1046. package/src/cli/simple-commands/hook-safety.js +114 -111
  1047. package/src/cli/simple-commands/hooks.js +1077 -1017
  1048. package/src/cli/simple-commands/init/README.md +8 -1
  1049. package/src/cli/simple-commands/init/VALIDATION_ROLLBACK.md +27 -1
  1050. package/src/cli/simple-commands/init/batch-init.js +105 -100
  1051. package/src/cli/simple-commands/init/claude-commands/claude-flow-commands.js +6 -6
  1052. package/src/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.js +6 -6
  1053. package/src/cli/simple-commands/init/claude-commands/optimized-slash-commands.js +20 -18
  1054. package/src/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js +85 -71
  1055. package/src/cli/simple-commands/init/claude-commands/slash-commands.js +6 -7
  1056. package/src/cli/simple-commands/init/claude-commands/sparc-commands.js +42 -33
  1057. package/src/cli/simple-commands/init/executable-wrapper.js +13 -10
  1058. package/src/cli/simple-commands/init/gitignore-updater.js +22 -22
  1059. package/src/cli/simple-commands/init/help.js +4 -2
  1060. package/src/cli/simple-commands/init/index.js +405 -303
  1061. package/src/cli/simple-commands/init/performance-monitor.js +71 -64
  1062. package/src/cli/simple-commands/init/rollback/backup-manager.js +44 -64
  1063. package/src/cli/simple-commands/init/rollback/index.js +31 -39
  1064. package/src/cli/simple-commands/init/rollback/recovery-manager.js +71 -101
  1065. package/src/cli/simple-commands/init/rollback/rollback-executor.js +34 -53
  1066. package/src/cli/simple-commands/init/rollback/state-tracker.js +38 -49
  1067. package/src/cli/simple-commands/init/sparc/roo-readme.js +1 -1
  1068. package/src/cli/simple-commands/init/sparc/roomodes-config.js +99 -77
  1069. package/src/cli/simple-commands/init/sparc/workflows.js +37 -33
  1070. package/src/cli/simple-commands/init/sparc-structure.js +9 -10
  1071. package/src/cli/simple-commands/init/templates/CLAUDE.md +94 -26
  1072. package/src/cli/simple-commands/init/templates/claude-flow-universal +9 -7
  1073. package/src/cli/simple-commands/init/templates/claude-md.js +1 -1
  1074. package/src/cli/simple-commands/init/templates/commands/analysis/bottleneck-detect.md +15 -3
  1075. package/src/cli/simple-commands/init/templates/commands/automation/auto-agent.md +12 -2
  1076. package/src/cli/simple-commands/init/templates/commands/coordination/swarm-init.md +10 -1
  1077. package/src/cli/simple-commands/init/templates/commands/github/github-swarm.md +18 -5
  1078. package/src/cli/simple-commands/init/templates/commands/hooks/notification.md +12 -1
  1079. package/src/cli/simple-commands/init/templates/commands/hooks/post-command.md +12 -1
  1080. package/src/cli/simple-commands/init/templates/commands/hooks/post-edit.md +12 -1
  1081. package/src/cli/simple-commands/init/templates/commands/hooks/post-task.md +12 -1
  1082. package/src/cli/simple-commands/init/templates/commands/hooks/pre-command.md +12 -1
  1083. package/src/cli/simple-commands/init/templates/commands/hooks/pre-edit.md +12 -1
  1084. package/src/cli/simple-commands/init/templates/commands/hooks/pre-search.md +13 -6
  1085. package/src/cli/simple-commands/init/templates/commands/hooks/pre-task.md +12 -1
  1086. package/src/cli/simple-commands/init/templates/commands/hooks/session-end.md +12 -1
  1087. package/src/cli/simple-commands/init/templates/commands/hooks/session-restore.md +13 -5
  1088. package/src/cli/simple-commands/init/templates/commands/hooks/session-start.md +12 -1
  1089. package/src/cli/simple-commands/init/templates/coordination-md.js +1 -1
  1090. package/src/cli/simple-commands/init/templates/enhanced-templates.js +116 -113
  1091. package/src/cli/simple-commands/init/templates/memory-bank-md.js +1 -1
  1092. package/src/cli/simple-commands/init/templates/readme-files.js +1 -1
  1093. package/src/cli/simple-commands/init/templates/safe-hook-patterns.js +176 -127
  1094. package/src/cli/simple-commands/init/templates/settings.json +2 -5
  1095. package/src/cli/simple-commands/init/templates/sparc-modes.js +3 -3
  1096. package/src/cli/simple-commands/init/validation/config-validator.js +17 -28
  1097. package/src/cli/simple-commands/init/validation/health-checker.js +54 -62
  1098. package/src/cli/simple-commands/init/validation/index.js +18 -23
  1099. package/src/cli/simple-commands/init/validation/mode-validator.js +22 -32
  1100. package/src/cli/simple-commands/init/validation/post-init-validator.js +25 -26
  1101. package/src/cli/simple-commands/init/validation/pre-init-validator.js +32 -36
  1102. package/src/cli/simple-commands/init/validation/test-runner.js +55 -63
  1103. package/src/cli/simple-commands/init.js +1 -1
  1104. package/src/cli/simple-commands/mcp-integration-layer.js +179 -110
  1105. package/src/cli/simple-commands/mcp.js +55 -48
  1106. package/src/cli/simple-commands/memory.js +62 -56
  1107. package/src/cli/simple-commands/migrate-hooks.js +9 -10
  1108. package/src/cli/simple-commands/monitor.js +87 -67
  1109. package/src/cli/simple-commands/process-ui-enhanced.js +207 -155
  1110. package/src/cli/simple-commands/process-ui.js +65 -56
  1111. package/src/cli/simple-commands/realtime-update-system.js +136 -129
  1112. package/src/cli/simple-commands/sparc/architecture.js +352 -251
  1113. package/src/cli/simple-commands/sparc/commands.js +122 -94
  1114. package/src/cli/simple-commands/sparc/completion.js +274 -199
  1115. package/src/cli/simple-commands/sparc/coordinator.js +217 -169
  1116. package/src/cli/simple-commands/sparc/index.js +40 -36
  1117. package/src/cli/simple-commands/sparc/phase-base.js +72 -58
  1118. package/src/cli/simple-commands/sparc/pseudocode.js +275 -159
  1119. package/src/cli/simple-commands/sparc/refinement.js +306 -212
  1120. package/src/cli/simple-commands/sparc/specification.js +164 -94
  1121. package/src/cli/simple-commands/sparc-modes/architect.js +1 -1
  1122. package/src/cli/simple-commands/sparc-modes/ask.js +1 -1
  1123. package/src/cli/simple-commands/sparc-modes/code.js +1 -1
  1124. package/src/cli/simple-commands/sparc-modes/debug.js +1 -1
  1125. package/src/cli/simple-commands/sparc-modes/devops.js +1 -1
  1126. package/src/cli/simple-commands/sparc-modes/docs-writer.js +1 -1
  1127. package/src/cli/simple-commands/sparc-modes/generic.js +1 -1
  1128. package/src/cli/simple-commands/sparc-modes/index.js +15 -15
  1129. package/src/cli/simple-commands/sparc-modes/integration.js +1 -1
  1130. package/src/cli/simple-commands/sparc-modes/mcp.js +1 -1
  1131. package/src/cli/simple-commands/sparc-modes/monitoring.js +1 -1
  1132. package/src/cli/simple-commands/sparc-modes/optimization.js +1 -1
  1133. package/src/cli/simple-commands/sparc-modes/security-review.js +1 -1
  1134. package/src/cli/simple-commands/sparc-modes/sparc-orchestrator.js +1 -1
  1135. package/src/cli/simple-commands/sparc-modes/spec-pseudocode.js +1 -1
  1136. package/src/cli/simple-commands/sparc-modes/supabase-admin.js +1 -1
  1137. package/src/cli/simple-commands/sparc-modes/swarm.js +52 -52
  1138. package/src/cli/simple-commands/sparc-modes/tdd.js +1 -1
  1139. package/src/cli/simple-commands/sparc-modes/tutorial.js +1 -1
  1140. package/src/cli/simple-commands/sparc.js +87 -69
  1141. package/src/cli/simple-commands/start-ui.js +21 -20
  1142. package/src/cli/simple-commands/start-wrapper.js +29 -31
  1143. package/src/cli/simple-commands/start.js +1 -1
  1144. package/src/cli/simple-commands/status.js +53 -47
  1145. package/src/cli/simple-commands/swarm-executor.js +47 -57
  1146. package/src/cli/simple-commands/swarm-metrics-integration.js +119 -79
  1147. package/src/cli/simple-commands/swarm-ui.js +120 -118
  1148. package/src/cli/simple-commands/swarm-webui-integration.js +48 -27
  1149. package/src/cli/simple-commands/swarm.js +216 -181
  1150. package/src/cli/simple-commands/task.js +29 -29
  1151. package/src/cli/simple-commands/timestamp-fix.js +28 -25
  1152. package/src/cli/simple-commands/tool-execution-framework.js +115 -118
  1153. package/src/cli/simple-commands/training.js +219 -194
  1154. package/src/cli/simple-commands/web-server.js +118 -117
  1155. package/src/cli/simple-commands/webui-validator.js +4 -3
  1156. package/src/cli/simple-mcp.ts +14 -17
  1157. package/src/cli/simple-orchestrator.ts +113 -101
  1158. package/src/cli/swarm-standalone.js +20 -21
  1159. package/src/cli/ui/compatible-ui.ts +55 -44
  1160. package/src/cli/ui/fallback-handler.ts +19 -16
  1161. package/src/cli/ui/index.ts +14 -15
  1162. package/src/cli/utils/environment-detector.ts +75 -67
  1163. package/src/cli/utils/interactive-detector.js +17 -11
  1164. package/src/cli/utils/prompt-defaults.ts +32 -28
  1165. package/src/cli/utils/safe-interactive.js +21 -20
  1166. package/src/cli/utils.js +127 -110
  1167. package/src/cli/validation-helper.js +113 -0
  1168. package/src/cli/validation-helper.ts +128 -0
  1169. package/src/communication/message-bus.ts +137 -124
  1170. package/src/config/config-manager.ts +62 -30
  1171. package/src/config/ruv-swarm-config.ts +105 -86
  1172. package/src/config/ruv-swarm-integration.ts +38 -38
  1173. package/src/constants/agent-types.ts +9 -8
  1174. package/src/coordination/README.md +54 -31
  1175. package/src/coordination/advanced-scheduler.ts +23 -26
  1176. package/src/coordination/advanced-task-executor.ts +74 -68
  1177. package/src/coordination/background-executor.ts +33 -30
  1178. package/src/coordination/circuit-breaker.ts +26 -27
  1179. package/src/coordination/conflict-resolution.ts +18 -27
  1180. package/src/coordination/dependency-graph.ts +15 -18
  1181. package/src/coordination/hive-orchestrator.ts +111 -81
  1182. package/src/coordination/hive-protocol.ts +68 -77
  1183. package/src/coordination/index.ts +3 -7
  1184. package/src/coordination/load-balancer.ts +115 -105
  1185. package/src/coordination/manager.ts +38 -51
  1186. package/src/coordination/messaging.ts +19 -29
  1187. package/src/coordination/metrics.ts +57 -60
  1188. package/src/coordination/resources.ts +32 -37
  1189. package/src/coordination/scheduler.ts +29 -30
  1190. package/src/coordination/swarm-coordinator.ts +81 -70
  1191. package/src/coordination/swarm-monitor.ts +90 -69
  1192. package/src/coordination/work-stealing.ts +6 -13
  1193. package/src/core/config.ts +148 -143
  1194. package/src/core/event-bus.ts +5 -6
  1195. package/src/core/json-persistence.ts +27 -34
  1196. package/src/core/logger.ts +13 -16
  1197. package/src/core/orchestrator-fixed.ts +33 -32
  1198. package/src/core/orchestrator.ts +166 -159
  1199. package/src/core/persistence.ts +47 -36
  1200. package/src/enterprise/analytics-manager.ts +242 -233
  1201. package/src/enterprise/audit-manager.ts +238 -184
  1202. package/src/enterprise/cloud-manager.ts +167 -151
  1203. package/src/enterprise/deployment-manager.ts +223 -180
  1204. package/src/enterprise/index.ts +7 -7
  1205. package/src/enterprise/project-manager.ts +151 -133
  1206. package/src/enterprise/security-manager.ts +278 -223
  1207. package/src/hive-mind/core/Agent.ts +112 -109
  1208. package/src/hive-mind/core/Communication.ts +67 -69
  1209. package/src/hive-mind/core/DatabaseManager.ts +299 -166
  1210. package/src/hive-mind/core/HiveMind.ts +100 -96
  1211. package/src/hive-mind/core/Memory.ts +304 -295
  1212. package/src/hive-mind/core/MemoryMonitor.ts +46 -47
  1213. package/src/hive-mind/core/Queen.ts +187 -114
  1214. package/src/hive-mind/index.ts +2 -2
  1215. package/src/hive-mind/integration/ConsensusEngine.ts +88 -92
  1216. package/src/hive-mind/integration/MCPToolWrapper.ts +20 -72
  1217. package/src/hive-mind/integration/SwarmOrchestrator.ts +173 -165
  1218. package/src/hive-mind/types.ts +24 -12
  1219. package/src/integration/mock-components.ts +42 -30
  1220. package/src/integration/system-integration.ts +93 -69
  1221. package/src/integration/types.ts +7 -7
  1222. package/src/mcp/README.md +23 -4
  1223. package/src/mcp/auth.ts +25 -18
  1224. package/src/mcp/claude-code-wrapper.ts +257 -150
  1225. package/src/mcp/claude-flow-tools.ts +52 -13
  1226. package/src/mcp/client.ts +15 -13
  1227. package/src/mcp/index.ts +22 -27
  1228. package/src/mcp/integrate-wrapper.ts +18 -18
  1229. package/src/mcp/lifecycle-manager.ts +30 -27
  1230. package/src/mcp/load-balancer.ts +10 -11
  1231. package/src/mcp/mcp-server.js +755 -370
  1232. package/src/mcp/orchestration-integration.ts +32 -17
  1233. package/src/mcp/performance-monitor.ts +65 -51
  1234. package/src/mcp/protocol-manager.ts +36 -52
  1235. package/src/mcp/recovery/connection-health-monitor.ts +40 -35
  1236. package/src/mcp/recovery/connection-state-manager.ts +52 -50
  1237. package/src/mcp/recovery/fallback-coordinator.ts +24 -24
  1238. package/src/mcp/recovery/index.ts +23 -4
  1239. package/src/mcp/recovery/reconnection-manager.ts +14 -15
  1240. package/src/mcp/recovery/recovery-manager.ts +52 -68
  1241. package/src/mcp/router.ts +1 -2
  1242. package/src/mcp/ruv-swarm-tools.ts +167 -138
  1243. package/src/mcp/ruv-swarm-wrapper.js +31 -23
  1244. package/src/mcp/server-with-wrapper.ts +4 -5
  1245. package/src/mcp/server-wrapper-mode.ts +5 -6
  1246. package/src/mcp/server.ts +45 -40
  1247. package/src/mcp/session-manager.ts +8 -11
  1248. package/src/mcp/sparc-modes.ts +29 -28
  1249. package/src/mcp/swarm-tools.ts +131 -114
  1250. package/src/mcp/tests/mcp-integration.test.ts +49 -55
  1251. package/src/mcp/tools.ts +53 -38
  1252. package/src/mcp/transports/base.ts +4 -5
  1253. package/src/mcp/transports/http.ts +45 -42
  1254. package/src/mcp/transports/stdio.ts +9 -12
  1255. package/src/memory/README.md +37 -27
  1256. package/src/memory/advanced-memory-manager.ts +336 -279
  1257. package/src/memory/backends/base.ts +4 -5
  1258. package/src/memory/backends/markdown.ts +16 -22
  1259. package/src/memory/backends/sqlite.ts +19 -15
  1260. package/src/memory/cache.ts +18 -18
  1261. package/src/memory/distributed-memory.ts +84 -92
  1262. package/src/memory/enhanced-examples.js +68 -59
  1263. package/src/memory/enhanced-memory.js +99 -80
  1264. package/src/memory/fallback-store.js +16 -7
  1265. package/src/memory/in-memory-store.js +31 -27
  1266. package/src/memory/index.js +4 -4
  1267. package/src/memory/indexer.ts +6 -10
  1268. package/src/memory/manager.ts +45 -59
  1269. package/src/memory/migration.js +107 -90
  1270. package/src/memory/shared-memory.js +155 -157
  1271. package/src/memory/sqlite-store.js +76 -59
  1272. package/src/memory/swarm-memory.js +138 -131
  1273. package/src/memory/swarm-memory.ts +74 -75
  1274. package/src/memory/test-example.js +28 -30
  1275. package/src/migration/README.md +25 -9
  1276. package/src/migration/index.ts +13 -14
  1277. package/src/migration/logger.ts +9 -7
  1278. package/src/migration/migration-analyzer.ts +66 -52
  1279. package/src/migration/migration-manifest.json +2 -6
  1280. package/src/migration/migration-runner.ts +86 -63
  1281. package/src/migration/migration-validator.ts +93 -68
  1282. package/src/migration/package.json +1 -1
  1283. package/src/migration/progress-reporter.ts +25 -21
  1284. package/src/migration/rollback-manager.ts +79 -63
  1285. package/src/migration/tests/migration-system.test.ts +4 -491
  1286. package/src/migration/tsconfig.json +3 -10
  1287. package/src/migration/types.ts +1 -1
  1288. package/src/monitoring/diagnostics.ts +123 -97
  1289. package/src/monitoring/health-check.ts +45 -51
  1290. package/src/monitoring/real-time-monitor.ts +105 -92
  1291. package/src/resources/resource-manager.ts +205 -159
  1292. package/src/swarm/__tests__/integration.test.ts +59 -65
  1293. package/src/swarm/__tests__/prompt-copier.test.ts +27 -27
  1294. package/src/swarm/claude-flow-executor.ts +50 -49
  1295. package/src/swarm/coordinator.ts +727 -635
  1296. package/src/swarm/direct-executor.ts +80 -86
  1297. package/src/swarm/executor-v2.ts +81 -66
  1298. package/src/swarm/executor.ts +124 -124
  1299. package/src/swarm/index.ts +7 -8
  1300. package/src/swarm/json-output-aggregator.ts +56 -40
  1301. package/src/swarm/memory.ts +152 -147
  1302. package/src/swarm/optimizations/README.md +20 -12
  1303. package/src/swarm/optimizations/__tests__/optimization.test.ts +84 -87
  1304. package/src/swarm/optimizations/async-file-manager.ts +70 -80
  1305. package/src/swarm/optimizations/circular-buffer.ts +37 -37
  1306. package/src/swarm/optimizations/connection-pool.ts +64 -64
  1307. package/src/swarm/optimizations/index.ts +4 -4
  1308. package/src/swarm/optimizations/migration-guide.md +27 -16
  1309. package/src/swarm/optimizations/optimized-executor.ts +104 -114
  1310. package/src/swarm/optimizations/ttl-map.ts +66 -63
  1311. package/src/swarm/prompt-cli.ts +48 -42
  1312. package/src/swarm/prompt-copier-enhanced.ts +54 -55
  1313. package/src/swarm/prompt-copier.ts +59 -65
  1314. package/src/swarm/prompt-copying-README.md +49 -33
  1315. package/src/swarm/prompt-manager.ts +69 -63
  1316. package/src/swarm/prompt-utils.ts +71 -66
  1317. package/src/swarm/sparc-executor.ts +298 -225
  1318. package/src/swarm/strategies/auto.ts +367 -252
  1319. package/src/swarm/strategies/base.ts +24 -20
  1320. package/src/swarm/strategies/research.ts +144 -124
  1321. package/src/swarm/types.ts +340 -309
  1322. package/src/swarm/workers/copy-worker.ts +12 -13
  1323. package/src/task/README.md +99 -70
  1324. package/src/task/commands.ts +16 -8
  1325. package/src/task/coordination.ts +209 -162
  1326. package/src/task/engine.ts +81 -65
  1327. package/src/task/index.ts +28 -31
  1328. package/src/templates/claude-optimized/.claude/BATCHTOOLS_BEST_PRACTICES.md +479 -481
  1329. package/src/templates/claude-optimized/.claude/BATCHTOOLS_GUIDE.md +210 -188
  1330. package/src/templates/claude-optimized/.claude/MIGRATION_GUIDE.md +151 -105
  1331. package/src/templates/claude-optimized/.claude/PERFORMANCE_BENCHMARKS.md +102 -87
  1332. package/src/templates/claude-optimized/.claude/commands/claude-flow-help.md +18 -1
  1333. package/src/templates/claude-optimized/.claude/commands/claude-flow-memory.md +17 -1
  1334. package/src/templates/claude-optimized/.claude/commands/claude-flow-swarm.md +21 -1
  1335. package/src/templates/claude-optimized/.claude/commands/sparc/architect.md +11 -4
  1336. package/src/templates/claude-optimized/.claude/commands/sparc/ask.md +16 -10
  1337. package/src/templates/claude-optimized/.claude/commands/sparc/code.md +26 -7
  1338. package/src/templates/claude-optimized/.claude/commands/sparc/debug.md +14 -4
  1339. package/src/templates/claude-optimized/.claude/commands/sparc/devops.md +23 -10
  1340. package/src/templates/claude-optimized/.claude/commands/sparc/docs-writer.md +8 -4
  1341. package/src/templates/claude-optimized/.claude/commands/sparc/integration.md +43 -27
  1342. package/src/templates/claude-optimized/.claude/commands/sparc/mcp.md +15 -1
  1343. package/src/templates/claude-optimized/.claude/commands/sparc/post-deployment-monitoring-mode.md +45 -30
  1344. package/src/templates/claude-optimized/.claude/commands/sparc/refinement-optimization-mode.md +23 -13
  1345. package/src/templates/claude-optimized/.claude/commands/sparc/security-review.md +31 -17
  1346. package/src/templates/claude-optimized/.claude/commands/sparc/sparc.md +54 -47
  1347. package/src/templates/claude-optimized/.claude/commands/sparc/spec-pseudocode.md +27 -17
  1348. package/src/templates/claude-optimized/.claude/commands/sparc/supabase-admin.md +18 -4
  1349. package/src/templates/claude-optimized/.claude/commands/sparc/tdd.md +23 -9
  1350. package/src/templates/claude-optimized/.claude/commands/sparc/tutorial.md +22 -16
  1351. package/src/templates/claude-optimized/.claude/commands/sparc.md +20 -1
  1352. package/src/templates/claude-optimized/README.md +10 -1
  1353. package/src/templates/claude-optimized/SUMMARY.md +23 -1
  1354. package/src/templates/claude-optimized/deploy-to-project.js +22 -10
  1355. package/src/templates/claude-optimized/install-template.js +14 -10
  1356. package/src/templates/claude-optimized/manifest.json +1 -1
  1357. package/src/templates/claude-optimized/package.json +1 -1
  1358. package/src/templates/claude-optimized/template-manager.js +8 -8
  1359. package/src/templates/claude-optimized/validate-template.js +33 -23
  1360. package/src/terminal/adapters/base.ts +1 -1
  1361. package/src/terminal/adapters/native.ts +47 -47
  1362. package/src/terminal/adapters/vscode.ts +21 -28
  1363. package/src/terminal/manager.ts +27 -22
  1364. package/src/terminal/pool.ts +24 -27
  1365. package/src/terminal/session.ts +18 -18
  1366. package/src/terminal/vscode-bridge.ts +21 -21
  1367. package/src/tests/validation-consistency.test.ts +4 -4
  1368. package/src/types/cliffy.d.ts +11 -14
  1369. package/src/types/global.d.ts +1 -2
  1370. package/src/types/index.ts +2 -2
  1371. package/src/types/mcp.d.ts +11 -17
  1372. package/src/types/vscode.d.ts +18 -5
  1373. package/src/ui/console/README-analysis-tools.md +52 -2
  1374. package/src/ui/console/README.md +33 -1
  1375. package/src/ui/console/WORKFLOW_DESIGNER_README.md +81 -22
  1376. package/src/ui/console/analysis-tools.html +282 -261
  1377. package/src/ui/console/analytics.html +329 -326
  1378. package/src/ui/console/index.html +221 -209
  1379. package/src/ui/console/js/analysis-tools.js +815 -754
  1380. package/src/ui/console/js/command-handler.js +226 -196
  1381. package/src/ui/console/js/console.js +117 -119
  1382. package/src/ui/console/js/daa-tools.js +797 -787
  1383. package/src/ui/console/js/memory-interface.js +676 -638
  1384. package/src/ui/console/js/memory-test.js +49 -46
  1385. package/src/ui/console/js/memory-tools.js +181 -159
  1386. package/src/ui/console/js/settings.js +124 -103
  1387. package/src/ui/console/js/terminal-emulator.js +147 -130
  1388. package/src/ui/console/js/websocket-client.js +71 -71
  1389. package/src/ui/console/js/workflow-designer.js +1126 -1110
  1390. package/src/ui/console/neural-networks-demo.md +45 -16
  1391. package/src/ui/console/styles/analysis-tools.css +571 -561
  1392. package/src/ui/console/styles/console.css +16 -12
  1393. package/src/ui/console/styles/daa-tools.css +322 -319
  1394. package/src/ui/console/styles/responsive.css +71 -70
  1395. package/src/ui/console/styles/settings.css +12 -12
  1396. package/src/ui/console/styles/workflow-designer.css +628 -584
  1397. package/src/ui/console/test-neural-networks.js +59 -54
  1398. package/src/ui/console/test-neural.html +194 -196
  1399. package/src/ui/console/workflow-designer-demo.html +433 -424
  1400. package/src/ui/hive-dashboard.ts +74 -52
  1401. package/src/ui/web-ui/EnhancedProcessUI.js +570 -424
  1402. package/src/ui/web-ui/EnhancedWebUI.js +65 -65
  1403. package/src/ui/web-ui/README.md +16 -16
  1404. package/src/ui/web-ui/components/ComponentLibrary.js +173 -124
  1405. package/src/ui/web-ui/core/EventBus.js +27 -25
  1406. package/src/ui/web-ui/core/MCPIntegrationLayer.js +294 -108
  1407. package/src/ui/web-ui/core/StateManager.js +43 -46
  1408. package/src/ui/web-ui/core/UIManager.js +120 -70
  1409. package/src/ui/web-ui/core/ViewManager.js +16 -19
  1410. package/src/ui/web-ui/index.js +101 -48
  1411. package/src/ui/web-ui/neural-panel-test.js +109 -108
  1412. package/src/ui/web-ui/test-github-view.js +11 -12
  1413. package/src/ui/web-ui/test-neural-panel.html +219 -205
  1414. package/src/ui/web-ui/views/DAAView.js +88 -85
  1415. package/src/ui/web-ui/views/GitHubIntegrationTest.js +42 -42
  1416. package/src/ui/web-ui/views/GitHubIntegrationView.js +59 -53
  1417. package/src/ui/web-ui/views/NeuralNetworkView.js +20 -21
  1418. package/src/ui/web-ui/views/WorkflowAutomationView.js +31 -32
  1419. package/src/utils/error-handler.js +1 -1
  1420. package/src/utils/error-handler.ts +9 -5
  1421. package/src/utils/errors.ts +20 -18
  1422. package/src/utils/formatters.ts +6 -6
  1423. package/src/utils/helpers.ts +53 -55
  1424. package/src/utils/npx-isolated-cache.js +16 -16
  1425. package/src/utils/paths.ts +9 -6
  1426. package/src/utils/timezone-utils.js +16 -16
  1427. package/src/utils/type-guards.ts +37 -26
  1428. package/src/utils/types.ts +2 -2
@@ -8,51 +8,55 @@ export class CommandHandler {
8
8
  this.terminal = terminal;
9
9
  this.wsClient = wsClient;
10
10
  this.isProcessing = false;
11
-
11
+
12
12
  // Built-in commands
13
13
  this.builtinCommands = {
14
- 'help': this.showHelp.bind(this),
15
- 'clear': this.clearConsole.bind(this),
16
- 'status': this.showStatus.bind(this),
17
- 'connect': this.connectToServer.bind(this),
18
- 'disconnect': this.disconnectFromServer.bind(this),
19
- 'tools': this.listTools.bind(this),
20
- 'health': this.checkHealth.bind(this),
21
- 'history': this.showHistory.bind(this),
22
- 'export': this.exportSession.bind(this),
23
- 'theme': this.changeTheme.bind(this),
24
- 'version': this.showVersion.bind(this)
14
+ help: this.showHelp.bind(this),
15
+ clear: this.clearConsole.bind(this),
16
+ status: this.showStatus.bind(this),
17
+ connect: this.connectToServer.bind(this),
18
+ disconnect: this.disconnectFromServer.bind(this),
19
+ tools: this.listTools.bind(this),
20
+ health: this.checkHealth.bind(this),
21
+ history: this.showHistory.bind(this),
22
+ export: this.exportSession.bind(this),
23
+ theme: this.changeTheme.bind(this),
24
+ version: this.showVersion.bind(this),
25
25
  };
26
-
26
+
27
27
  // Claude Flow commands
28
28
  this.claudeFlowCommands = {
29
29
  'claude-flow': this.executeClaudeFlow.bind(this),
30
- 'swarm': this.executeSwarm.bind(this),
31
- 'init': this.initializeProject.bind(this),
32
- 'config': this.manageConfig.bind(this),
33
- 'memory': this.manageMemory.bind(this),
34
- 'agents': this.manageAgents.bind(this),
35
- 'benchmark': this.runBenchmark.bind(this),
36
- 'sparc': this.executeSparc.bind(this)
30
+ swarm: this.executeSwarm.bind(this),
31
+ init: this.initializeProject.bind(this),
32
+ config: this.manageConfig.bind(this),
33
+ memory: this.manageMemory.bind(this),
34
+ agents: this.manageAgents.bind(this),
35
+ benchmark: this.runBenchmark.bind(this),
36
+ sparc: this.executeSparc.bind(this),
37
37
  };
38
-
38
+
39
39
  // Direct SPARC mode commands
40
40
  this.sparcModeCommands = {
41
- 'coder': this.executeSparcMode.bind(this, 'coder'),
42
- 'architect': this.executeSparcMode.bind(this, 'architect'),
43
- 'analyst': this.executeSparcMode.bind(this, 'analyst'),
44
- 'researcher': this.executeSparcMode.bind(this, 'researcher'),
45
- 'reviewer': this.executeSparcMode.bind(this, 'reviewer'),
46
- 'tester': this.executeSparcMode.bind(this, 'tester'),
47
- 'debugger': this.executeSparcMode.bind(this, 'debugger'),
48
- 'documenter': this.executeSparcMode.bind(this, 'documenter'),
49
- 'optimizer': this.executeSparcMode.bind(this, 'optimizer'),
50
- 'designer': this.executeSparcMode.bind(this, 'designer')
41
+ coder: this.executeSparcMode.bind(this, 'coder'),
42
+ architect: this.executeSparcMode.bind(this, 'architect'),
43
+ analyst: this.executeSparcMode.bind(this, 'analyst'),
44
+ researcher: this.executeSparcMode.bind(this, 'researcher'),
45
+ reviewer: this.executeSparcMode.bind(this, 'reviewer'),
46
+ tester: this.executeSparcMode.bind(this, 'tester'),
47
+ debugger: this.executeSparcMode.bind(this, 'debugger'),
48
+ documenter: this.executeSparcMode.bind(this, 'documenter'),
49
+ optimizer: this.executeSparcMode.bind(this, 'optimizer'),
50
+ designer: this.executeSparcMode.bind(this, 'designer'),
51
+ };
52
+
53
+ this.allCommands = {
54
+ ...this.builtinCommands,
55
+ ...this.claudeFlowCommands,
56
+ ...this.sparcModeCommands,
51
57
  };
52
-
53
- this.allCommands = { ...this.builtinCommands, ...this.claudeFlowCommands, ...this.sparcModeCommands };
54
58
  }
55
-
59
+
56
60
  /**
57
61
  * Process a command
58
62
  */
@@ -61,13 +65,13 @@ export class CommandHandler {
61
65
  this.terminal.writeWarning('Another command is still processing. Please wait...');
62
66
  return;
63
67
  }
64
-
68
+
65
69
  this.isProcessing = true;
66
70
  this.terminal.setLocked(true);
67
-
71
+
68
72
  try {
69
73
  const { cmd, args } = this.parseCommand(command);
70
-
74
+
71
75
  if (this.allCommands[cmd]) {
72
76
  await this.allCommands[cmd](args);
73
77
  } else {
@@ -81,7 +85,7 @@ export class CommandHandler {
81
85
  this.terminal.setLocked(false);
82
86
  }
83
87
  }
84
-
88
+
85
89
  /**
86
90
  * Parse command string into command and arguments
87
91
  */
@@ -89,10 +93,10 @@ export class CommandHandler {
89
93
  const parts = commandString.trim().split(/\s+/);
90
94
  const cmd = parts[0].toLowerCase();
91
95
  const args = parts.slice(1);
92
-
96
+
93
97
  return { cmd, args };
94
98
  }
95
-
99
+
96
100
  /**
97
101
  * Show help information
98
102
  */
@@ -106,83 +110,97 @@ export class CommandHandler {
106
110
  }
107
111
  return;
108
112
  }
109
-
113
+
110
114
  this.terminal.writeInfo('Claude Flow Console Commands:');
111
115
  this.terminal.writeLine('');
112
-
116
+
113
117
  this.terminal.writeInfo('Built-in Commands:');
114
- Object.keys(this.builtinCommands).forEach(cmd => {
118
+ Object.keys(this.builtinCommands).forEach((cmd) => {
115
119
  this.terminal.writeLine(` ${cmd.padEnd(12)} - ${this.getCommandDescription(cmd)}`);
116
120
  });
117
-
121
+
118
122
  this.terminal.writeLine('');
119
123
  this.terminal.writeInfo('Claude Flow Commands:');
120
- Object.keys(this.claudeFlowCommands).forEach(cmd => {
124
+ Object.keys(this.claudeFlowCommands).forEach((cmd) => {
121
125
  this.terminal.writeLine(` ${cmd.padEnd(12)} - ${this.getCommandDescription(cmd)}`);
122
126
  });
123
-
127
+
124
128
  this.terminal.writeLine('');
125
129
  this.terminal.writeInfo('Tool Commands (from tools list):');
126
130
  this.terminal.writeLine(' system/health - Get system health status');
127
- this.terminal.writeLine(' memory/manage - Manage memory (list, store <key> <value>, retrieve <key>)');
128
- this.terminal.writeLine(' agents/manage - Manage agents (list, create <type>, status <id>)');
129
- this.terminal.writeLine(' swarm/orchestrate - Swarm operations (status, create, start, stop)');
130
- this.terminal.writeLine(' sparc/execute - Execute SPARC modes (coder, architect, etc.)');
131
- this.terminal.writeLine(' benchmark/run - Run benchmarks (default, memory, cpu, network)');
131
+ this.terminal.writeLine(
132
+ ' memory/manage - Manage memory (list, store <key> <value>, retrieve <key>)',
133
+ );
134
+ this.terminal.writeLine(
135
+ ' agents/manage - Manage agents (list, create <type>, status <id>)',
136
+ );
137
+ this.terminal.writeLine(
138
+ ' swarm/orchestrate - Swarm operations (status, create, start, stop)',
139
+ );
140
+ this.terminal.writeLine(
141
+ ' sparc/execute - Execute SPARC modes (coder, architect, etc.)',
142
+ );
143
+ this.terminal.writeLine(
144
+ ' benchmark/run - Run benchmarks (default, memory, cpu, network)',
145
+ );
132
146
  this.terminal.writeLine(' claude-flow/execute - Execute Claude Flow commands');
133
-
147
+
134
148
  this.terminal.writeLine('');
135
- this.terminal.writeInfo('Use "help <command>" for detailed information about a specific command.');
136
- this.terminal.writeInfo('Use Ctrl+L to clear console, Ctrl+C to interrupt, Tab for autocomplete.');
149
+ this.terminal.writeInfo(
150
+ 'Use "help <command>" for detailed information about a specific command.',
151
+ );
152
+ this.terminal.writeInfo(
153
+ 'Use Ctrl+L to clear console, Ctrl+C to interrupt, Tab for autocomplete.',
154
+ );
137
155
  }
138
-
156
+
139
157
  /**
140
158
  * Get command description
141
159
  */
142
160
  getCommandDescription(command) {
143
161
  const descriptions = {
144
- 'help': 'Show help information',
145
- 'clear': 'Clear console output',
146
- 'status': 'Show connection and system status',
147
- 'connect': 'Connect to Claude Code server',
148
- 'disconnect': 'Disconnect from server',
149
- 'tools': 'List available tools',
150
- 'health': 'Check server health',
151
- 'history': 'Show command history',
152
- 'export': 'Export session data',
153
- 'theme': 'Change console theme',
154
- 'version': 'Show version information',
162
+ help: 'Show help information',
163
+ clear: 'Clear console output',
164
+ status: 'Show connection and system status',
165
+ connect: 'Connect to Claude Code server',
166
+ disconnect: 'Disconnect from server',
167
+ tools: 'List available tools',
168
+ health: 'Check server health',
169
+ history: 'Show command history',
170
+ export: 'Export session data',
171
+ theme: 'Change console theme',
172
+ version: 'Show version information',
155
173
  'claude-flow': 'Execute Claude Flow commands',
156
- 'swarm': 'Manage and execute swarms',
157
- 'init': 'Initialize new project',
158
- 'config': 'Manage configuration',
159
- 'memory': 'Manage memory and data',
160
- 'agents': 'Manage agents',
161
- 'benchmark': 'Run benchmarks',
162
- 'sparc': 'Execute SPARC mode commands'
174
+ swarm: 'Manage and execute swarms',
175
+ init: 'Initialize new project',
176
+ config: 'Manage configuration',
177
+ memory: 'Manage memory and data',
178
+ agents: 'Manage agents',
179
+ benchmark: 'Run benchmarks',
180
+ sparc: 'Execute SPARC mode commands',
163
181
  };
164
-
182
+
165
183
  return descriptions[command] || 'No description available';
166
184
  }
167
-
185
+
168
186
  /**
169
187
  * Show detailed command help
170
188
  */
171
189
  showCommandHelp(command) {
172
190
  const helpText = {
173
- 'help': `
191
+ help: `
174
192
  Usage: help [command]
175
193
  Show help information for all commands or a specific command.
176
194
 
177
195
  Examples:
178
196
  help - Show all commands
179
197
  help claude-flow - Show help for claude-flow command`,
180
-
181
- 'clear': `
198
+
199
+ clear: `
182
200
  Usage: clear
183
201
  Clear the console output. You can also use Ctrl+L.`,
184
-
185
- 'connect': `
202
+
203
+ connect: `
186
204
  Usage: connect [url] [token]
187
205
  Connect to Claude Code server.
188
206
 
@@ -194,7 +212,7 @@ Examples:
194
212
  connect
195
213
  connect ws://localhost:3000/ws
196
214
  connect ws://localhost:3000/ws my-auth-token`,
197
-
215
+
198
216
  'claude-flow': `
199
217
  Usage: claude-flow <subcommand> [options]
200
218
  Execute Claude Flow commands.
@@ -209,8 +227,8 @@ Examples:
209
227
  claude-flow start coder
210
228
  claude-flow status
211
229
  claude-flow modes`,
212
-
213
- 'swarm': `
230
+
231
+ swarm: `
214
232
  Usage: swarm <action> [options]
215
233
  Manage and execute swarms.
216
234
 
@@ -224,16 +242,16 @@ Actions:
224
242
  Examples:
225
243
  swarm create my-swarm
226
244
  swarm start my-swarm
227
- swarm list`
245
+ swarm list`,
228
246
  };
229
-
247
+
230
248
  if (helpText[command]) {
231
249
  this.terminal.writeInfo(helpText[command].trim());
232
250
  } else {
233
251
  this.terminal.writeInfo(`No detailed help available for: ${command}`);
234
252
  }
235
253
  }
236
-
254
+
237
255
  /**
238
256
  * Clear console
239
257
  */
@@ -241,38 +259,38 @@ Examples:
241
259
  this.terminal.clear();
242
260
  this.terminal.writeSuccess('Console cleared');
243
261
  }
244
-
262
+
245
263
  /**
246
264
  * Show status
247
265
  */
248
266
  async showStatus() {
249
267
  const wsStatus = this.wsClient.getStatus();
250
268
  const terminalStats = this.terminal.getStats();
251
-
269
+
252
270
  this.terminal.writeInfo('System Status:');
253
271
  this.terminal.writeLine('');
254
-
272
+
255
273
  this.terminal.writeInfo('Connection:');
256
274
  this.terminal.writeLine(` Status: ${wsStatus.connected ? 'Connected' : 'Disconnected'}`);
257
275
  this.terminal.writeLine(` URL: ${wsStatus.url || 'Not set'}`);
258
276
  this.terminal.writeLine(` Reconnect attempts: ${wsStatus.reconnectAttempts}`);
259
277
  this.terminal.writeLine(` Queued messages: ${wsStatus.queuedMessages}`);
260
278
  this.terminal.writeLine(` Pending requests: ${wsStatus.pendingRequests}`);
261
-
279
+
262
280
  this.terminal.writeLine('');
263
281
  this.terminal.writeInfo('Terminal:');
264
282
  this.terminal.writeLine(` Total lines: ${terminalStats.totalLines}`);
265
283
  this.terminal.writeLine(` History size: ${terminalStats.historySize}`);
266
284
  this.terminal.writeLine(` Input locked: ${terminalStats.isLocked}`);
267
285
  this.terminal.writeLine(` Current prompt: ${terminalStats.currentPrompt}`);
268
-
286
+
269
287
  if (wsStatus.connected) {
270
288
  try {
271
289
  const healthStatus = await this.wsClient.getHealthStatus();
272
290
  this.terminal.writeLine('');
273
291
  this.terminal.writeInfo('Server Health:');
274
292
  this.terminal.writeLine(` Status: ${healthStatus.healthy ? 'Healthy' : 'Unhealthy'}`);
275
-
293
+
276
294
  if (healthStatus.metrics) {
277
295
  Object.entries(healthStatus.metrics).forEach(([key, value]) => {
278
296
  this.terminal.writeLine(` ${key}: ${value}`);
@@ -283,29 +301,29 @@ Examples:
283
301
  }
284
302
  }
285
303
  }
286
-
304
+
287
305
  /**
288
306
  * Connect to server
289
307
  */
290
308
  async connectToServer(args) {
291
309
  const url = args[0] || 'ws://localhost:3000/ws';
292
310
  const token = args[1] || '';
293
-
311
+
294
312
  this.terminal.writeInfo(`Connecting to ${url}...`);
295
-
313
+
296
314
  try {
297
315
  await this.wsClient.connect(url, token);
298
-
316
+
299
317
  // Initialize session
300
318
  await this.wsClient.initializeSession();
301
-
319
+
302
320
  this.terminal.writeSuccess('Connected successfully');
303
321
  this.terminal.setPrompt('claude-flow>');
304
322
  } catch (error) {
305
323
  this.terminal.writeError(`Connection failed: ${error.message}`);
306
324
  }
307
325
  }
308
-
326
+
309
327
  /**
310
328
  * Disconnect from server
311
329
  */
@@ -314,7 +332,7 @@ Examples:
314
332
  this.terminal.writeSuccess('Disconnected from server');
315
333
  this.terminal.setPrompt('offline>');
316
334
  }
317
-
335
+
318
336
  /**
319
337
  * List available tools
320
338
  */
@@ -323,16 +341,18 @@ Examples:
323
341
  this.terminal.writeError('Not connected to server');
324
342
  return;
325
343
  }
326
-
344
+
327
345
  try {
328
346
  const tools = await this.wsClient.getAvailableTools();
329
-
347
+
330
348
  this.terminal.writeInfo('Available Tools:');
331
349
  this.terminal.writeLine('');
332
-
350
+
333
351
  if (tools && tools.length > 0) {
334
- tools.forEach(tool => {
335
- this.terminal.writeLine(` ${tool.name.padEnd(20)} - ${tool.description || 'No description'}`);
352
+ tools.forEach((tool) => {
353
+ this.terminal.writeLine(
354
+ ` ${tool.name.padEnd(20)} - ${tool.description || 'No description'}`,
355
+ );
336
356
  });
337
357
  } else {
338
358
  this.terminal.writeWarning('No tools available');
@@ -341,7 +361,7 @@ Examples:
341
361
  this.terminal.writeError(`Failed to list tools: ${error.message}`);
342
362
  }
343
363
  }
344
-
364
+
345
365
  /**
346
366
  * Check server health
347
367
  */
@@ -350,16 +370,16 @@ Examples:
350
370
  this.terminal.writeError('Not connected to server');
351
371
  return;
352
372
  }
353
-
373
+
354
374
  try {
355
375
  const health = await this.wsClient.getHealthStatus();
356
-
376
+
357
377
  if (health.healthy) {
358
378
  this.terminal.writeSuccess('Server is healthy');
359
379
  } else {
360
380
  this.terminal.writeError(`Server is unhealthy: ${health.error || 'Unknown error'}`);
361
381
  }
362
-
382
+
363
383
  if (health.metrics) {
364
384
  this.terminal.writeLine('');
365
385
  this.terminal.writeInfo('Metrics:');
@@ -371,37 +391,37 @@ Examples:
371
391
  this.terminal.writeError(`Health check failed: ${error.message}`);
372
392
  }
373
393
  }
374
-
394
+
375
395
  /**
376
396
  * Show command history
377
397
  */
378
398
  async showHistory() {
379
399
  const history = this.terminal.history;
380
-
400
+
381
401
  if (history.length === 0) {
382
402
  this.terminal.writeInfo('No command history');
383
403
  return;
384
404
  }
385
-
405
+
386
406
  this.terminal.writeInfo('Command History:');
387
407
  history.forEach((cmd, index) => {
388
408
  this.terminal.writeLine(` ${(index + 1).toString().padStart(3)}: ${cmd}`);
389
409
  });
390
410
  }
391
-
411
+
392
412
  /**
393
413
  * Export session data
394
414
  */
395
415
  async exportSession(args) {
396
416
  const format = args[0] || 'json';
397
-
417
+
398
418
  const sessionData = {
399
419
  timestamp: new Date().toISOString(),
400
420
  terminal: this.terminal.exportHistory(),
401
421
  history: this.terminal.history,
402
- status: this.wsClient.getStatus()
422
+ status: this.wsClient.getStatus(),
403
423
  };
404
-
424
+
405
425
  if (format === 'json') {
406
426
  const blob = new Blob([JSON.stringify(sessionData, null, 2)], { type: 'application/json' });
407
427
  this.downloadFile(blob, `console-session-${Date.now()}.json`);
@@ -410,29 +430,29 @@ Examples:
410
430
  this.terminal.writeError(`Unsupported export format: ${format}`);
411
431
  }
412
432
  }
413
-
433
+
414
434
  /**
415
435
  * Change theme
416
436
  */
417
437
  async changeTheme(args) {
418
438
  const theme = args[0];
419
439
  const validThemes = ['dark', 'light', 'classic', 'matrix'];
420
-
440
+
421
441
  if (!theme) {
422
442
  this.terminal.writeInfo(`Available themes: ${validThemes.join(', ')}`);
423
443
  return;
424
444
  }
425
-
445
+
426
446
  if (!validThemes.includes(theme)) {
427
447
  this.terminal.writeError(`Invalid theme: ${theme}`);
428
448
  return;
429
449
  }
430
-
450
+
431
451
  document.documentElement.setAttribute('data-theme', theme);
432
452
  localStorage.setItem('console_theme', theme);
433
453
  this.terminal.writeSuccess(`Theme changed to: ${theme}`);
434
454
  }
435
-
455
+
436
456
  /**
437
457
  * Show version information
438
458
  */
@@ -441,7 +461,7 @@ Examples:
441
461
  this.terminal.writeLine('Advanced swarm orchestration platform');
442
462
  this.terminal.writeLine('Built with modern web technologies');
443
463
  }
444
-
464
+
445
465
  /**
446
466
  * Execute Claude Flow command
447
467
  */
@@ -450,21 +470,21 @@ Examples:
450
470
  this.terminal.writeError('Not connected to server');
451
471
  return;
452
472
  }
453
-
473
+
454
474
  if (args.length === 0) {
455
475
  this.terminal.writeError('Usage: claude-flow <subcommand> [options]');
456
476
  return;
457
477
  }
458
-
478
+
459
479
  const subcommand = args[0];
460
480
  const subArgs = args.slice(1);
461
-
481
+
462
482
  try {
463
483
  const result = await this.wsClient.executeCommand('claude-flow', {
464
484
  subcommand,
465
- args: subArgs
485
+ args: subArgs,
466
486
  });
467
-
487
+
468
488
  this.terminal.writeSuccess(`Claude Flow ${subcommand} executed successfully`);
469
489
  if (result && result.output) {
470
490
  this.terminal.writeLine(result.output);
@@ -473,7 +493,7 @@ Examples:
473
493
  this.terminal.writeError(`Claude Flow command failed: ${error.message}`);
474
494
  }
475
495
  }
476
-
496
+
477
497
  /**
478
498
  * Execute swarm command
479
499
  */
@@ -482,16 +502,16 @@ Examples:
482
502
  this.terminal.writeError('Not connected to server');
483
503
  return;
484
504
  }
485
-
505
+
486
506
  try {
487
507
  const action = args[0] || 'status';
488
508
  this.terminal.writeInfo(`Executing swarm ${action}...`);
489
-
509
+
490
510
  const result = await this.wsClient.sendRequest('tools/call', {
491
511
  name: 'swarm/status',
492
- arguments: { action, args: args.slice(1) }
512
+ arguments: { action, args: args.slice(1) },
493
513
  });
494
-
514
+
495
515
  if (result && result.content && result.content[0]) {
496
516
  this.terminal.writeSuccess(result.content[0].text);
497
517
  } else {
@@ -501,7 +521,7 @@ Examples:
501
521
  this.terminal.writeError(`Swarm command failed: ${error.message}`);
502
522
  }
503
523
  }
504
-
524
+
505
525
  /**
506
526
  * Initialize project
507
527
  */
@@ -510,17 +530,17 @@ Examples:
510
530
  this.terminal.writeError('Not connected to server');
511
531
  return;
512
532
  }
513
-
533
+
514
534
  this.terminal.writeWarning('Project initialization not yet implemented in web console');
515
535
  }
516
-
536
+
517
537
  /**
518
538
  * Manage configuration
519
539
  */
520
540
  async manageConfig(args) {
521
541
  this.terminal.writeInfo('Use the Settings panel (⚙️ button) to manage configuration');
522
542
  }
523
-
543
+
524
544
  /**
525
545
  * Manage memory
526
546
  */
@@ -529,19 +549,19 @@ Examples:
529
549
  this.terminal.writeError('Not connected to server');
530
550
  return;
531
551
  }
532
-
552
+
533
553
  try {
534
554
  const operation = args[0] || 'list';
535
555
  const key = args[1];
536
556
  const value = args.slice(2).join(' ');
537
-
557
+
538
558
  this.terminal.writeInfo(`Executing memory ${operation}...`);
539
-
559
+
540
560
  const result = await this.wsClient.sendRequest('tools/call', {
541
561
  name: 'memory/manage',
542
- arguments: { operation, key, value }
562
+ arguments: { operation, key, value },
543
563
  });
544
-
564
+
545
565
  if (result && result.content && result.content[0]) {
546
566
  this.terminal.writeSuccess(result.content[0].text);
547
567
  } else {
@@ -551,7 +571,7 @@ Examples:
551
571
  this.terminal.writeError(`Memory command failed: ${error.message}`);
552
572
  }
553
573
  }
554
-
574
+
555
575
  /**
556
576
  * Manage agents
557
577
  */
@@ -560,19 +580,19 @@ Examples:
560
580
  this.terminal.writeError('Not connected to server');
561
581
  return;
562
582
  }
563
-
583
+
564
584
  try {
565
585
  const action = args[0] || 'list';
566
586
  const agentType = args[1];
567
587
  const agentId = args[1];
568
-
588
+
569
589
  this.terminal.writeInfo(`Executing agents ${action}...`);
570
-
590
+
571
591
  const result = await this.wsClient.sendRequest('tools/call', {
572
592
  name: 'agents/manage',
573
- arguments: { action, agentType, agentId }
593
+ arguments: { action, agentType, agentId },
574
594
  });
575
-
595
+
576
596
  if (result && result.content && result.content[0]) {
577
597
  this.terminal.writeSuccess(result.content[0].text);
578
598
  } else {
@@ -582,7 +602,7 @@ Examples:
582
602
  this.terminal.writeError(`Agent command failed: ${error.message}`);
583
603
  }
584
604
  }
585
-
605
+
586
606
  /**
587
607
  * Run benchmark
588
608
  */
@@ -591,18 +611,18 @@ Examples:
591
611
  this.terminal.writeError('Not connected to server');
592
612
  return;
593
613
  }
594
-
614
+
595
615
  try {
596
616
  const suite = args[0] || 'default';
597
617
  const iterations = parseInt(args[1]) || 10;
598
-
618
+
599
619
  this.terminal.writeInfo(`Running benchmark suite: ${suite}...`);
600
-
620
+
601
621
  const result = await this.wsClient.sendRequest('tools/call', {
602
622
  name: 'benchmark/run',
603
- arguments: { suite, iterations }
623
+ arguments: { suite, iterations },
604
624
  });
605
-
625
+
606
626
  if (result && result.content && result.content[0]) {
607
627
  this.terminal.writeSuccess(result.content[0].text);
608
628
  } else {
@@ -612,7 +632,7 @@ Examples:
612
632
  this.terminal.writeError(`Benchmark failed: ${error.message}`);
613
633
  }
614
634
  }
615
-
635
+
616
636
  /**
617
637
  * Execute SPARC mode
618
638
  */
@@ -621,29 +641,39 @@ Examples:
621
641
  this.terminal.writeError('Not connected to server');
622
642
  return;
623
643
  }
624
-
644
+
625
645
  if (args.length === 0) {
626
646
  this.terminal.writeInfo('Available SPARC modes:');
627
- const modes = ['coder', 'architect', 'analyst', 'researcher', 'reviewer',
628
- 'tester', 'debugger', 'documenter', 'optimizer', 'designer'];
629
- modes.forEach(mode => {
647
+ const modes = [
648
+ 'coder',
649
+ 'architect',
650
+ 'analyst',
651
+ 'researcher',
652
+ 'reviewer',
653
+ 'tester',
654
+ 'debugger',
655
+ 'documenter',
656
+ 'optimizer',
657
+ 'designer',
658
+ ];
659
+ modes.forEach((mode) => {
630
660
  this.terminal.writeLine(` ${mode}`);
631
661
  });
632
662
  return;
633
663
  }
634
-
664
+
635
665
  try {
636
666
  const mode = args[0];
637
667
  const task = args.slice(1).join(' ') || 'General task execution';
638
668
  const options = {};
639
-
669
+
640
670
  this.terminal.writeInfo(`Executing SPARC mode: ${mode}...`);
641
-
671
+
642
672
  const result = await this.wsClient.sendRequest('tools/call', {
643
673
  name: 'sparc/execute',
644
- arguments: { mode, task, options }
674
+ arguments: { mode, task, options },
645
675
  });
646
-
676
+
647
677
  if (result && result.content && result.content[0]) {
648
678
  this.terminal.writeSuccess(result.content[0].text);
649
679
  } else {
@@ -653,7 +683,7 @@ Examples:
653
683
  this.terminal.writeError(`SPARC execution failed: ${error.message}`);
654
684
  }
655
685
  }
656
-
686
+
657
687
  /**
658
688
  * Execute specific SPARC mode
659
689
  */
@@ -662,18 +692,18 @@ Examples:
662
692
  this.terminal.writeError('Not connected to server');
663
693
  return;
664
694
  }
665
-
695
+
666
696
  try {
667
697
  const task = args.join(' ') || `Execute ${mode} mode tasks`;
668
698
  const options = {};
669
-
699
+
670
700
  this.terminal.writeInfo(`Executing SPARC ${mode} mode...`);
671
-
701
+
672
702
  const result = await this.wsClient.sendRequest('tools/call', {
673
703
  name: 'sparc/execute',
674
- arguments: { mode, task, options }
704
+ arguments: { mode, task, options },
675
705
  });
676
-
706
+
677
707
  if (result && result.content && result.content[0]) {
678
708
  this.terminal.writeSuccess(result.content[0].text);
679
709
  } else {
@@ -683,7 +713,7 @@ Examples:
683
713
  this.terminal.writeError(`SPARC ${mode} execution failed: ${error.message}`);
684
714
  }
685
715
  }
686
-
716
+
687
717
  /**
688
718
  * Execute remote command via WebSocket
689
719
  */
@@ -692,17 +722,17 @@ Examples:
692
722
  this.terminal.writeError('Not connected to server. Use "connect" command first.');
693
723
  return;
694
724
  }
695
-
725
+
696
726
  try {
697
727
  // Check if this is a tool name (contains slash)
698
728
  if (command.includes('/')) {
699
729
  return await this.executeToolDirect(command, args);
700
730
  }
701
-
731
+
702
732
  this.terminal.writeInfo(`Executing remote command: ${command}`);
703
-
733
+
704
734
  const result = await this.wsClient.executeCommand(command, { args });
705
-
735
+
706
736
  if (result && result.output) {
707
737
  this.terminal.writeLine(result.output);
708
738
  } else {
@@ -719,69 +749,69 @@ Examples:
719
749
  async executeToolDirect(toolName, args) {
720
750
  try {
721
751
  this.terminal.writeInfo(`Executing tool: ${toolName}...`);
722
-
752
+
723
753
  // Prepare arguments based on tool
724
754
  let toolArgs = {};
725
-
755
+
726
756
  switch (toolName) {
727
757
  case 'system/health':
728
758
  toolArgs = { detailed: args.includes('--detailed') };
729
759
  break;
730
-
760
+
731
761
  case 'memory/manage':
732
762
  toolArgs = {
733
763
  operation: args[0] || 'list',
734
764
  key: args[1],
735
- value: args.slice(2).join(' ')
765
+ value: args.slice(2).join(' '),
736
766
  };
737
767
  break;
738
-
768
+
739
769
  case 'agents/manage':
740
770
  toolArgs = {
741
771
  action: args[0] || 'list',
742
772
  agentType: args[1],
743
- agentId: args[1]
773
+ agentId: args[1],
744
774
  };
745
775
  break;
746
-
776
+
747
777
  case 'swarm/orchestrate':
748
778
  toolArgs = {
749
779
  action: args[0] || 'status',
750
- args: args.slice(1)
780
+ args: args.slice(1),
751
781
  };
752
782
  break;
753
-
783
+
754
784
  case 'sparc/execute':
755
785
  toolArgs = {
756
786
  mode: args[0] || 'coder',
757
787
  task: args.slice(1).join(' ') || 'General task execution',
758
- options: {}
788
+ options: {},
759
789
  };
760
790
  break;
761
-
791
+
762
792
  case 'benchmark/run':
763
793
  toolArgs = {
764
794
  suite: args[0] || 'default',
765
- iterations: parseInt(args[1]) || 10
795
+ iterations: parseInt(args[1]) || 10,
766
796
  };
767
797
  break;
768
-
798
+
769
799
  case 'claude-flow/execute':
770
800
  toolArgs = {
771
801
  command: args[0] || 'status',
772
- args: args.slice(1)
802
+ args: args.slice(1),
773
803
  };
774
804
  break;
775
-
805
+
776
806
  default:
777
807
  toolArgs = { args };
778
808
  }
779
-
809
+
780
810
  const result = await this.wsClient.sendRequest('tools/call', {
781
811
  name: toolName,
782
- arguments: toolArgs
812
+ arguments: toolArgs,
783
813
  });
784
-
814
+
785
815
  if (result && result.content && result.content[0]) {
786
816
  this.terminal.writeSuccess(result.content[0].text);
787
817
  } else {
@@ -791,7 +821,7 @@ Examples:
791
821
  this.terminal.writeError(`Tool execution failed: ${error.message}`);
792
822
  }
793
823
  }
794
-
824
+
795
825
  /**
796
826
  * Download file helper
797
827
  */
@@ -805,19 +835,19 @@ Examples:
805
835
  document.body.removeChild(a);
806
836
  URL.revokeObjectURL(url);
807
837
  }
808
-
838
+
809
839
  /**
810
840
  * Get command suggestions
811
841
  */
812
842
  getCommandSuggestions(input) {
813
843
  const allCommands = Object.keys(this.allCommands);
814
- return allCommands.filter(cmd => cmd.startsWith(input.toLowerCase()));
844
+ return allCommands.filter((cmd) => cmd.startsWith(input.toLowerCase()));
815
845
  }
816
-
846
+
817
847
  /**
818
848
  * Check if command exists
819
849
  */
820
850
  hasCommand(command) {
821
851
  return this.allCommands.hasOwnProperty(command.toLowerCase());
822
852
  }
823
- }
853
+ }