claude-flow 2.7.0 → 2.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1071) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/bin/claude-flow +1 -1
  3. package/dist/src/cli/simple-cli.js +104 -0
  4. package/dist/src/cli/simple-cli.js.map +1 -1
  5. package/dist/src/cli/simple-commands/config.js +115 -257
  6. package/dist/src/cli/simple-commands/config.js.map +1 -1
  7. package/dist/src/cli/validation-helper.js.map +1 -1
  8. package/dist/src/mcp/mcp-server.js +261 -3
  9. package/dist/src/mcp/mcp-server.js.map +1 -1
  10. package/dist/src/utils/key-redactor.js.map +1 -1
  11. package/dist/src/utils/metrics-reader.js +41 -29
  12. package/dist/src/utils/metrics-reader.js.map +1 -1
  13. package/docs/PATTERN_PERSISTENCE_FIX.md +328 -0
  14. package/docs/RELEASE_v2.7.1.md +244 -0
  15. package/docs/skills-tutorial.md +2 -2
  16. package/package.json +1 -1
  17. package/src/mcp/mcp-server.js +302 -2
  18. package/dist/agents/agent-loader.d.ts +0 -103
  19. package/dist/agents/agent-loader.d.ts.map +0 -1
  20. package/dist/agents/agent-loader.js +0 -220
  21. package/dist/agents/agent-loader.js.map +0 -1
  22. package/dist/agents/agent-manager.d.ts +0 -191
  23. package/dist/agents/agent-manager.d.ts.map +0 -1
  24. package/dist/agents/agent-manager.js +0 -1405
  25. package/dist/agents/agent-manager.js.map +0 -1
  26. package/dist/api/claude-api-errors.d.ts +0 -115
  27. package/dist/api/claude-api-errors.d.ts.map +0 -1
  28. package/dist/api/claude-api-errors.js +0 -198
  29. package/dist/api/claude-api-errors.js.map +0 -1
  30. package/dist/api/claude-client.d.ts +0 -197
  31. package/dist/api/claude-client.d.ts.map +0 -1
  32. package/dist/api/claude-client.js +0 -525
  33. package/dist/api/claude-client.js.map +0 -1
  34. package/dist/cli/cli-core.d.ts +0 -52
  35. package/dist/cli/cli-core.d.ts.map +0 -1
  36. package/dist/cli/cli-core.js +0 -264
  37. package/dist/cli/cli-core.js.map +0 -1
  38. package/dist/cli/command-registry.d.ts +0 -10
  39. package/dist/cli/command-registry.d.ts.map +0 -1
  40. package/dist/cli/command-registry.js +0 -1126
  41. package/dist/cli/command-registry.js.map +0 -1
  42. package/dist/cli/commander-fix.d.ts +0 -4
  43. package/dist/cli/commander-fix.d.ts.map +0 -1
  44. package/dist/cli/commander-fix.js +0 -6
  45. package/dist/cli/commander-fix.js.map +0 -1
  46. package/dist/cli/commands/agent.d.ts +0 -6
  47. package/dist/cli/commands/agent.d.ts.map +0 -1
  48. package/dist/cli/commands/agent.js +0 -382
  49. package/dist/cli/commands/agent.js.map +0 -1
  50. package/dist/cli/commands/config.d.ts +0 -4
  51. package/dist/cli/commands/config.d.ts.map +0 -1
  52. package/dist/cli/commands/config.js +0 -88
  53. package/dist/cli/commands/config.js.map +0 -1
  54. package/dist/cli/commands/enterprise.d.ts +0 -3
  55. package/dist/cli/commands/enterprise.d.ts.map +0 -1
  56. package/dist/cli/commands/enterprise.js +0 -1506
  57. package/dist/cli/commands/enterprise.js.map +0 -1
  58. package/dist/cli/commands/help.d.ts +0 -6
  59. package/dist/cli/commands/help.d.ts.map +0 -1
  60. package/dist/cli/commands/help.js +0 -936
  61. package/dist/cli/commands/help.js.map +0 -1
  62. package/dist/cli/commands/hive-mind/index.d.ts +0 -18
  63. package/dist/cli/commands/hive-mind/index.d.ts.map +0 -1
  64. package/dist/cli/commands/hive-mind/index.js +0 -30
  65. package/dist/cli/commands/hive-mind/index.js.map +0 -1
  66. package/dist/cli/commands/hive-mind/init.d.ts +0 -9
  67. package/dist/cli/commands/hive-mind/init.d.ts.map +0 -1
  68. package/dist/cli/commands/hive-mind/init.js +0 -68
  69. package/dist/cli/commands/hive-mind/init.js.map +0 -1
  70. package/dist/cli/commands/hive-mind/pause.d.ts +0 -8
  71. package/dist/cli/commands/hive-mind/pause.d.ts.map +0 -1
  72. package/dist/cli/commands/hive-mind/pause.js +0 -81
  73. package/dist/cli/commands/hive-mind/pause.js.map +0 -1
  74. package/dist/cli/commands/hive-mind/ps.d.ts +0 -8
  75. package/dist/cli/commands/hive-mind/ps.d.ts.map +0 -1
  76. package/dist/cli/commands/hive-mind/ps.js +0 -120
  77. package/dist/cli/commands/hive-mind/ps.js.map +0 -1
  78. package/dist/cli/commands/hive-mind/resume.d.ts +0 -8
  79. package/dist/cli/commands/hive-mind/resume.d.ts.map +0 -1
  80. package/dist/cli/commands/hive-mind/resume.js +0 -62
  81. package/dist/cli/commands/hive-mind/resume.js.map +0 -1
  82. package/dist/cli/commands/hive-mind/spawn.d.ts +0 -9
  83. package/dist/cli/commands/hive-mind/spawn.d.ts.map +0 -1
  84. package/dist/cli/commands/hive-mind/spawn.js +0 -174
  85. package/dist/cli/commands/hive-mind/spawn.js.map +0 -1
  86. package/dist/cli/commands/hive-mind/status.d.ts +0 -9
  87. package/dist/cli/commands/hive-mind/status.d.ts.map +0 -1
  88. package/dist/cli/commands/hive-mind/status.js +0 -204
  89. package/dist/cli/commands/hive-mind/status.js.map +0 -1
  90. package/dist/cli/commands/hive-mind/stop.d.ts +0 -8
  91. package/dist/cli/commands/hive-mind/stop.d.ts.map +0 -1
  92. package/dist/cli/commands/hive-mind/stop.js +0 -125
  93. package/dist/cli/commands/hive-mind/stop.js.map +0 -1
  94. package/dist/cli/commands/hive-mind/task.d.ts +0 -9
  95. package/dist/cli/commands/hive-mind/task.d.ts.map +0 -1
  96. package/dist/cli/commands/hive-mind/task.js +0 -294
  97. package/dist/cli/commands/hive-mind/task.js.map +0 -1
  98. package/dist/cli/commands/hive-mind/wizard.d.ts +0 -9
  99. package/dist/cli/commands/hive-mind/wizard.d.ts.map +0 -1
  100. package/dist/cli/commands/hive-mind/wizard.js +0 -531
  101. package/dist/cli/commands/hive-mind/wizard.js.map +0 -1
  102. package/dist/cli/commands/hive.d.ts +0 -6
  103. package/dist/cli/commands/hive.d.ts.map +0 -1
  104. package/dist/cli/commands/hive.js +0 -409
  105. package/dist/cli/commands/hive.js.map +0 -1
  106. package/dist/cli/commands/index.d.ts +0 -3
  107. package/dist/cli/commands/index.d.ts.map +0 -1
  108. package/dist/cli/commands/index.js +0 -2624
  109. package/dist/cli/commands/index.js.map +0 -1
  110. package/dist/cli/commands/mcp.d.ts +0 -5
  111. package/dist/cli/commands/mcp.d.ts.map +0 -1
  112. package/dist/cli/commands/mcp.js +0 -169
  113. package/dist/cli/commands/mcp.js.map +0 -1
  114. package/dist/cli/commands/memory.d.ts +0 -26
  115. package/dist/cli/commands/memory.d.ts.map +0 -1
  116. package/dist/cli/commands/memory.js +0 -225
  117. package/dist/cli/commands/memory.js.map +0 -1
  118. package/dist/cli/commands/migrate.d.ts +0 -5
  119. package/dist/cli/commands/migrate.d.ts.map +0 -1
  120. package/dist/cli/commands/migrate.js +0 -139
  121. package/dist/cli/commands/migrate.js.map +0 -1
  122. package/dist/cli/commands/monitor.d.ts +0 -5
  123. package/dist/cli/commands/monitor.d.ts.map +0 -1
  124. package/dist/cli/commands/monitor.js +0 -493
  125. package/dist/cli/commands/monitor.js.map +0 -1
  126. package/dist/cli/commands/session.d.ts +0 -5
  127. package/dist/cli/commands/session.d.ts.map +0 -1
  128. package/dist/cli/commands/session.js +0 -548
  129. package/dist/cli/commands/session.js.map +0 -1
  130. package/dist/cli/commands/sparc.d.ts +0 -3
  131. package/dist/cli/commands/sparc.d.ts.map +0 -1
  132. package/dist/cli/commands/sparc.js +0 -472
  133. package/dist/cli/commands/sparc.js.map +0 -1
  134. package/dist/cli/commands/start/event-emitter.d.ts +0 -13
  135. package/dist/cli/commands/start/event-emitter.d.ts.map +0 -1
  136. package/dist/cli/commands/start/event-emitter.js +0 -35
  137. package/dist/cli/commands/start/event-emitter.js.map +0 -1
  138. package/dist/cli/commands/start/index.d.ts +0 -10
  139. package/dist/cli/commands/start/index.d.ts.map +0 -1
  140. package/dist/cli/commands/start/index.js +0 -9
  141. package/dist/cli/commands/start/index.js.map +0 -1
  142. package/dist/cli/commands/start/process-manager.d.ts +0 -31
  143. package/dist/cli/commands/start/process-manager.d.ts.map +0 -1
  144. package/dist/cli/commands/start/process-manager.js +0 -283
  145. package/dist/cli/commands/start/process-manager.js.map +0 -1
  146. package/dist/cli/commands/start/process-ui-simple.d.ts +0 -29
  147. package/dist/cli/commands/start/process-ui-simple.d.ts.map +0 -1
  148. package/dist/cli/commands/start/process-ui-simple.js +0 -334
  149. package/dist/cli/commands/start/process-ui-simple.js.map +0 -1
  150. package/dist/cli/commands/start/process-ui.d.ts +0 -5
  151. package/dist/cli/commands/start/process-ui.d.ts.map +0 -1
  152. package/dist/cli/commands/start/process-ui.js +0 -5
  153. package/dist/cli/commands/start/process-ui.js.map +0 -1
  154. package/dist/cli/commands/start/start-command.d.ts +0 -2
  155. package/dist/cli/commands/start/start-command.d.ts.map +0 -1
  156. package/dist/cli/commands/start/start-command.js +0 -462
  157. package/dist/cli/commands/start/start-command.js.map +0 -1
  158. package/dist/cli/commands/start/system-monitor.d.ts +0 -25
  159. package/dist/cli/commands/start/system-monitor.d.ts.map +0 -1
  160. package/dist/cli/commands/start/system-monitor.js +0 -265
  161. package/dist/cli/commands/start/system-monitor.js.map +0 -1
  162. package/dist/cli/commands/start/types.d.ts +0 -64
  163. package/dist/cli/commands/start/types.d.ts.map +0 -1
  164. package/dist/cli/commands/start/types.js +0 -22
  165. package/dist/cli/commands/start/types.js.map +0 -1
  166. package/dist/cli/commands/start.d.ts +0 -6
  167. package/dist/cli/commands/start.d.ts.map +0 -1
  168. package/dist/cli/commands/start.js +0 -6
  169. package/dist/cli/commands/start.js.map +0 -1
  170. package/dist/cli/commands/status.d.ts +0 -2
  171. package/dist/cli/commands/status.d.ts.map +0 -1
  172. package/dist/cli/commands/status.js +0 -304
  173. package/dist/cli/commands/status.js.map +0 -1
  174. package/dist/cli/commands/swarm.d.ts +0 -6
  175. package/dist/cli/commands/swarm.d.ts.map +0 -1
  176. package/dist/cli/commands/swarm.js +0 -465
  177. package/dist/cli/commands/swarm.js.map +0 -1
  178. package/dist/cli/commands/task.d.ts +0 -2
  179. package/dist/cli/commands/task.d.ts.map +0 -1
  180. package/dist/cli/commands/task.js +0 -75
  181. package/dist/cli/commands/task.js.map +0 -1
  182. package/dist/cli/commands/workflow.d.ts +0 -2
  183. package/dist/cli/commands/workflow.d.ts.map +0 -1
  184. package/dist/cli/commands/workflow.js +0 -624
  185. package/dist/cli/commands/workflow.js.map +0 -1
  186. package/dist/cli/completion.d.ts +0 -19
  187. package/dist/cli/completion.d.ts.map +0 -1
  188. package/dist/cli/completion.js +0 -545
  189. package/dist/cli/completion.js.map +0 -1
  190. package/dist/cli/formatter.d.ts +0 -69
  191. package/dist/cli/formatter.d.ts.map +0 -1
  192. package/dist/cli/formatter.js +0 -277
  193. package/dist/cli/formatter.js.map +0 -1
  194. package/dist/cli/help-formatter.d.ts +0 -49
  195. package/dist/cli/help-formatter.d.ts.map +0 -1
  196. package/dist/cli/help-formatter.js +0 -108
  197. package/dist/cli/help-formatter.js.map +0 -1
  198. package/dist/cli/help-text.d.ts +0 -25
  199. package/dist/cli/help-text.d.ts.map +0 -1
  200. package/dist/cli/help-text.js +0 -1051
  201. package/dist/cli/help-text.js.map +0 -1
  202. package/dist/cli/index-remote.d.ts +0 -7
  203. package/dist/cli/index-remote.d.ts.map +0 -1
  204. package/dist/cli/index-remote.js +0 -125
  205. package/dist/cli/index-remote.js.map +0 -1
  206. package/dist/cli/index.d.ts +0 -7
  207. package/dist/cli/index.d.ts.map +0 -1
  208. package/dist/cli/index.js +0 -189
  209. package/dist/cli/index.js.map +0 -1
  210. package/dist/cli/node-compat.d.ts +0 -81
  211. package/dist/cli/node-compat.d.ts.map +0 -1
  212. package/dist/cli/node-compat.js +0 -229
  213. package/dist/cli/node-compat.js.map +0 -1
  214. package/dist/cli/repl.d.ts +0 -5
  215. package/dist/cli/repl.d.ts.map +0 -1
  216. package/dist/cli/repl.js +0 -949
  217. package/dist/cli/repl.js.map +0 -1
  218. package/dist/cli/runtime-detector.d.ts +0 -128
  219. package/dist/cli/runtime-detector.d.ts.map +0 -1
  220. package/dist/cli/runtime-detector.js +0 -267
  221. package/dist/cli/runtime-detector.js.map +0 -1
  222. package/dist/cli/simple-cli.d.ts +0 -7
  223. package/dist/cli/simple-cli.d.ts.map +0 -1
  224. package/dist/cli/simple-cli.js +0 -3085
  225. package/dist/cli/simple-cli.js.map +0 -1
  226. package/dist/cli/simple-commands/agent.d.ts +0 -6
  227. package/dist/cli/simple-commands/agent.d.ts.map +0 -1
  228. package/dist/cli/simple-commands/agent.js +0 -128
  229. package/dist/cli/simple-commands/agent.js.map +0 -1
  230. package/dist/cli/simple-commands/analysis.d.ts +0 -2
  231. package/dist/cli/simple-commands/analysis.d.ts.map +0 -1
  232. package/dist/cli/simple-commands/analysis.js +0 -473
  233. package/dist/cli/simple-commands/analysis.js.map +0 -1
  234. package/dist/cli/simple-commands/automation-executor.d.ts +0 -188
  235. package/dist/cli/simple-commands/automation-executor.d.ts.map +0 -1
  236. package/dist/cli/simple-commands/automation-executor.js +0 -1383
  237. package/dist/cli/simple-commands/automation-executor.js.map +0 -1
  238. package/dist/cli/simple-commands/automation.d.ts +0 -2
  239. package/dist/cli/simple-commands/automation.d.ts.map +0 -1
  240. package/dist/cli/simple-commands/automation.js +0 -531
  241. package/dist/cli/simple-commands/automation.js.map +0 -1
  242. package/dist/cli/simple-commands/batch-manager.d.ts +0 -2
  243. package/dist/cli/simple-commands/batch-manager.d.ts.map +0 -1
  244. package/dist/cli/simple-commands/batch-manager.js +0 -290
  245. package/dist/cli/simple-commands/batch-manager.js.map +0 -1
  246. package/dist/cli/simple-commands/claude-telemetry.d.ts +0 -14
  247. package/dist/cli/simple-commands/claude-telemetry.d.ts.map +0 -1
  248. package/dist/cli/simple-commands/claude-telemetry.js +0 -263
  249. package/dist/cli/simple-commands/claude-telemetry.js.map +0 -1
  250. package/dist/cli/simple-commands/config.d.ts +0 -6
  251. package/dist/cli/simple-commands/config.d.ts.map +0 -1
  252. package/dist/cli/simple-commands/config.js +0 -116
  253. package/dist/cli/simple-commands/config.js.map +0 -1
  254. package/dist/cli/simple-commands/coordination.d.ts +0 -2
  255. package/dist/cli/simple-commands/coordination.d.ts.map +0 -1
  256. package/dist/cli/simple-commands/coordination.js +0 -249
  257. package/dist/cli/simple-commands/coordination.js.map +0 -1
  258. package/dist/cli/simple-commands/env-template.d.ts +0 -42
  259. package/dist/cli/simple-commands/env-template.d.ts.map +0 -1
  260. package/dist/cli/simple-commands/env-template.js +0 -183
  261. package/dist/cli/simple-commands/env-template.js.map +0 -1
  262. package/dist/cli/simple-commands/fix-hook-variables.d.ts +0 -16
  263. package/dist/cli/simple-commands/fix-hook-variables.d.ts.map +0 -1
  264. package/dist/cli/simple-commands/fix-hook-variables.js +0 -320
  265. package/dist/cli/simple-commands/fix-hook-variables.js.map +0 -1
  266. package/dist/cli/simple-commands/github/init.d.ts +0 -6
  267. package/dist/cli/simple-commands/github/init.d.ts.map +0 -1
  268. package/dist/cli/simple-commands/github/init.js +0 -506
  269. package/dist/cli/simple-commands/github/init.js.map +0 -1
  270. package/dist/cli/simple-commands/github.d.ts +0 -3
  271. package/dist/cli/simple-commands/github.d.ts.map +0 -1
  272. package/dist/cli/simple-commands/github.js +0 -356
  273. package/dist/cli/simple-commands/github.js.map +0 -1
  274. package/dist/cli/simple-commands/goal.d.ts +0 -3
  275. package/dist/cli/simple-commands/goal.d.ts.map +0 -1
  276. package/dist/cli/simple-commands/goal.js +0 -136
  277. package/dist/cli/simple-commands/goal.js.map +0 -1
  278. package/dist/cli/simple-commands/hive-mind/auto-save-middleware.d.ts +0 -68
  279. package/dist/cli/simple-commands/hive-mind/auto-save-middleware.d.ts.map +0 -1
  280. package/dist/cli/simple-commands/hive-mind/auto-save-middleware.js +0 -264
  281. package/dist/cli/simple-commands/hive-mind/auto-save-middleware.js.map +0 -1
  282. package/dist/cli/simple-commands/hive-mind/communication.d.ts +0 -176
  283. package/dist/cli/simple-commands/hive-mind/communication.d.ts.map +0 -1
  284. package/dist/cli/simple-commands/hive-mind/communication.js +0 -611
  285. package/dist/cli/simple-commands/hive-mind/communication.js.map +0 -1
  286. package/dist/cli/simple-commands/hive-mind/core.d.ts +0 -306
  287. package/dist/cli/simple-commands/hive-mind/core.d.ts.map +0 -1
  288. package/dist/cli/simple-commands/hive-mind/core.js +0 -839
  289. package/dist/cli/simple-commands/hive-mind/core.js.map +0 -1
  290. package/dist/cli/simple-commands/hive-mind/db-optimizer.d.ts +0 -32
  291. package/dist/cli/simple-commands/hive-mind/db-optimizer.d.ts.map +0 -1
  292. package/dist/cli/simple-commands/hive-mind/db-optimizer.js +0 -702
  293. package/dist/cli/simple-commands/hive-mind/db-optimizer.js.map +0 -1
  294. package/dist/cli/simple-commands/hive-mind/mcp-wrapper.d.ts +0 -270
  295. package/dist/cli/simple-commands/hive-mind/mcp-wrapper.d.ts.map +0 -1
  296. package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js +0 -1211
  297. package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js.map +0 -1
  298. package/dist/cli/simple-commands/hive-mind/memory.d.ts +0 -334
  299. package/dist/cli/simple-commands/hive-mind/memory.d.ts.map +0 -1
  300. package/dist/cli/simple-commands/hive-mind/memory.js +0 -1068
  301. package/dist/cli/simple-commands/hive-mind/memory.js.map +0 -1
  302. package/dist/cli/simple-commands/hive-mind/metrics-reader.js +0 -274
  303. package/dist/cli/simple-commands/hive-mind/metrics-reader.js.map +0 -1
  304. package/dist/cli/simple-commands/hive-mind/performance-optimizer.d.ts +0 -256
  305. package/dist/cli/simple-commands/hive-mind/performance-optimizer.d.ts.map +0 -1
  306. package/dist/cli/simple-commands/hive-mind/performance-optimizer.js +0 -520
  307. package/dist/cli/simple-commands/hive-mind/performance-optimizer.js.map +0 -1
  308. package/dist/cli/simple-commands/hive-mind/queen.d.ts +0 -235
  309. package/dist/cli/simple-commands/hive-mind/queen.d.ts.map +0 -1
  310. package/dist/cli/simple-commands/hive-mind/queen.js +0 -697
  311. package/dist/cli/simple-commands/hive-mind/queen.js.map +0 -1
  312. package/dist/cli/simple-commands/hive-mind/session-manager.d.ts +0 -140
  313. package/dist/cli/simple-commands/hive-mind/session-manager.d.ts.map +0 -1
  314. package/dist/cli/simple-commands/hive-mind/session-manager.js +0 -1000
  315. package/dist/cli/simple-commands/hive-mind/session-manager.js.map +0 -1
  316. package/dist/cli/simple-commands/hive-mind-optimize.d.ts +0 -6
  317. package/dist/cli/simple-commands/hive-mind-optimize.d.ts.map +0 -1
  318. package/dist/cli/simple-commands/hive-mind-optimize.js +0 -317
  319. package/dist/cli/simple-commands/hive-mind-optimize.js.map +0 -1
  320. package/dist/cli/simple-commands/hive-mind.d.ts +0 -22
  321. package/dist/cli/simple-commands/hive-mind.d.ts.map +0 -1
  322. package/dist/cli/simple-commands/hive-mind.js +0 -2722
  323. package/dist/cli/simple-commands/hive-mind.js.map +0 -1
  324. package/dist/cli/simple-commands/hook-safety.d.ts +0 -177
  325. package/dist/cli/simple-commands/hook-safety.d.ts.map +0 -1
  326. package/dist/cli/simple-commands/hook-safety.js +0 -590
  327. package/dist/cli/simple-commands/hook-safety.js.map +0 -1
  328. package/dist/cli/simple-commands/hooks.d.ts +0 -3
  329. package/dist/cli/simple-commands/hooks.d.ts.map +0 -1
  330. package/dist/cli/simple-commands/hooks.js +0 -1298
  331. package/dist/cli/simple-commands/hooks.js.map +0 -1
  332. package/dist/cli/simple-commands/init/agent-copier.d.ts +0 -65
  333. package/dist/cli/simple-commands/init/agent-copier.d.ts.map +0 -1
  334. package/dist/cli/simple-commands/init/agent-copier.js +0 -320
  335. package/dist/cli/simple-commands/init/agent-copier.js.map +0 -1
  336. package/dist/cli/simple-commands/init/batch-init.d.ts +0 -137
  337. package/dist/cli/simple-commands/init/batch-init.d.ts.map +0 -1
  338. package/dist/cli/simple-commands/init/batch-init.js +0 -558
  339. package/dist/cli/simple-commands/init/batch-init.js.map +0 -1
  340. package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.d.ts +0 -2
  341. package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.d.ts.map +0 -1
  342. package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.js +0 -433
  343. package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.js.map +0 -1
  344. package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.d.ts +0 -2
  345. package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.d.ts.map +0 -1
  346. package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.js +0 -871
  347. package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.js.map +0 -1
  348. package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.d.ts +0 -2
  349. package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.d.ts.map +0 -1
  350. package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.js +0 -332
  351. package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.js.map +0 -1
  352. package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.d.ts +0 -3
  353. package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.d.ts.map +0 -1
  354. package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js +0 -488
  355. package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js.map +0 -1
  356. package/dist/cli/simple-commands/init/claude-commands/slash-commands.d.ts +0 -2
  357. package/dist/cli/simple-commands/init/claude-commands/slash-commands.d.ts.map +0 -1
  358. package/dist/cli/simple-commands/init/claude-commands/slash-commands.js +0 -51
  359. package/dist/cli/simple-commands/init/claude-commands/slash-commands.js.map +0 -1
  360. package/dist/cli/simple-commands/init/claude-commands/sparc-commands.d.ts +0 -3
  361. package/dist/cli/simple-commands/init/claude-commands/sparc-commands.d.ts.map +0 -1
  362. package/dist/cli/simple-commands/init/claude-commands/sparc-commands.js +0 -288
  363. package/dist/cli/simple-commands/init/claude-commands/sparc-commands.js.map +0 -1
  364. package/dist/cli/simple-commands/init/copy-revised-templates.d.ts +0 -29
  365. package/dist/cli/simple-commands/init/copy-revised-templates.d.ts.map +0 -1
  366. package/dist/cli/simple-commands/init/copy-revised-templates.js +0 -166
  367. package/dist/cli/simple-commands/init/copy-revised-templates.js.map +0 -1
  368. package/dist/cli/simple-commands/init/executable-wrapper.d.ts +0 -2
  369. package/dist/cli/simple-commands/init/executable-wrapper.d.ts.map +0 -1
  370. package/dist/cli/simple-commands/init/executable-wrapper.js +0 -116
  371. package/dist/cli/simple-commands/init/executable-wrapper.js.map +0 -1
  372. package/dist/cli/simple-commands/init/gitignore-updater.d.ts +0 -23
  373. package/dist/cli/simple-commands/init/gitignore-updater.d.ts.map +0 -1
  374. package/dist/cli/simple-commands/init/gitignore-updater.js +0 -128
  375. package/dist/cli/simple-commands/init/gitignore-updater.js.map +0 -1
  376. package/dist/cli/simple-commands/init/help.d.ts +0 -2
  377. package/dist/cli/simple-commands/init/help.d.ts.map +0 -1
  378. package/dist/cli/simple-commands/init/help.js +0 -131
  379. package/dist/cli/simple-commands/init/help.js.map +0 -1
  380. package/dist/cli/simple-commands/init/hive-mind-init.d.ts +0 -152
  381. package/dist/cli/simple-commands/init/hive-mind-init.d.ts.map +0 -1
  382. package/dist/cli/simple-commands/init/hive-mind-init.js +0 -699
  383. package/dist/cli/simple-commands/init/hive-mind-init.js.map +0 -1
  384. package/dist/cli/simple-commands/init/index.d.ts +0 -2
  385. package/dist/cli/simple-commands/init/index.d.ts.map +0 -1
  386. package/dist/cli/simple-commands/init/index.js +0 -1784
  387. package/dist/cli/simple-commands/init/index.js.map +0 -1
  388. package/dist/cli/simple-commands/init/performance-monitor.d.ts +0 -73
  389. package/dist/cli/simple-commands/init/performance-monitor.d.ts.map +0 -1
  390. package/dist/cli/simple-commands/init/performance-monitor.js +0 -277
  391. package/dist/cli/simple-commands/init/performance-monitor.js.map +0 -1
  392. package/dist/cli/simple-commands/init/rollback/backup-manager.d.ts +0 -95
  393. package/dist/cli/simple-commands/init/rollback/backup-manager.d.ts.map +0 -1
  394. package/dist/cli/simple-commands/init/rollback/backup-manager.js +0 -486
  395. package/dist/cli/simple-commands/init/rollback/backup-manager.js.map +0 -1
  396. package/dist/cli/simple-commands/init/rollback/index.d.ts +0 -114
  397. package/dist/cli/simple-commands/init/rollback/index.d.ts.map +0 -1
  398. package/dist/cli/simple-commands/init/rollback/index.js +0 -353
  399. package/dist/cli/simple-commands/init/rollback/index.js.map +0 -1
  400. package/dist/cli/simple-commands/init/rollback/recovery-manager.d.ts +0 -161
  401. package/dist/cli/simple-commands/init/rollback/recovery-manager.d.ts.map +0 -1
  402. package/dist/cli/simple-commands/init/rollback/recovery-manager.js +0 -686
  403. package/dist/cli/simple-commands/init/rollback/recovery-manager.js.map +0 -1
  404. package/dist/cli/simple-commands/init/rollback/rollback-executor.d.ts +0 -112
  405. package/dist/cli/simple-commands/init/rollback/rollback-executor.d.ts.map +0 -1
  406. package/dist/cli/simple-commands/init/rollback/rollback-executor.js +0 -480
  407. package/dist/cli/simple-commands/init/rollback/rollback-executor.js.map +0 -1
  408. package/dist/cli/simple-commands/init/rollback/state-tracker.d.ts +0 -121
  409. package/dist/cli/simple-commands/init/rollback/state-tracker.d.ts.map +0 -1
  410. package/dist/cli/simple-commands/init/rollback/state-tracker.js +0 -432
  411. package/dist/cli/simple-commands/init/rollback/state-tracker.js.map +0 -1
  412. package/dist/cli/simple-commands/init/skills-copier.d.ts +0 -41
  413. package/dist/cli/simple-commands/init/skills-copier.d.ts.map +0 -1
  414. package/dist/cli/simple-commands/init/skills-copier.js +0 -192
  415. package/dist/cli/simple-commands/init/skills-copier.js.map +0 -1
  416. package/dist/cli/simple-commands/init/sparc/roo-readme.d.ts +0 -2
  417. package/dist/cli/simple-commands/init/sparc/roo-readme.d.ts.map +0 -1
  418. package/dist/cli/simple-commands/init/sparc/roo-readme.js +0 -61
  419. package/dist/cli/simple-commands/init/sparc/roo-readme.js.map +0 -1
  420. package/dist/cli/simple-commands/init/sparc/roomodes-config.d.ts +0 -2
  421. package/dist/cli/simple-commands/init/sparc/roomodes-config.d.ts.map +0 -1
  422. package/dist/cli/simple-commands/init/sparc/roomodes-config.js +0 -80
  423. package/dist/cli/simple-commands/init/sparc/roomodes-config.js.map +0 -1
  424. package/dist/cli/simple-commands/init/sparc/workflows.d.ts +0 -2
  425. package/dist/cli/simple-commands/init/sparc/workflows.d.ts.map +0 -1
  426. package/dist/cli/simple-commands/init/sparc/workflows.js +0 -36
  427. package/dist/cli/simple-commands/init/sparc/workflows.js.map +0 -1
  428. package/dist/cli/simple-commands/init/sparc-structure.d.ts +0 -2
  429. package/dist/cli/simple-commands/init/sparc-structure.d.ts.map +0 -1
  430. package/dist/cli/simple-commands/init/sparc-structure.js +0 -63
  431. package/dist/cli/simple-commands/init/sparc-structure.js.map +0 -1
  432. package/dist/cli/simple-commands/init/template-copier.d.ts +0 -27
  433. package/dist/cli/simple-commands/init/template-copier.d.ts.map +0 -1
  434. package/dist/cli/simple-commands/init/template-copier.js +0 -538
  435. package/dist/cli/simple-commands/init/template-copier.js.map +0 -1
  436. package/dist/cli/simple-commands/init/templates/claude-md.d.ts +0 -6
  437. package/dist/cli/simple-commands/init/templates/claude-md.d.ts.map +0 -1
  438. package/dist/cli/simple-commands/init/templates/claude-md.js +0 -1097
  439. package/dist/cli/simple-commands/init/templates/claude-md.js.map +0 -1
  440. package/dist/cli/simple-commands/init/templates/coordination-md.d.ts +0 -4
  441. package/dist/cli/simple-commands/init/templates/coordination-md.d.ts.map +0 -1
  442. package/dist/cli/simple-commands/init/templates/coordination-md.js +0 -338
  443. package/dist/cli/simple-commands/init/templates/coordination-md.js.map +0 -1
  444. package/dist/cli/simple-commands/init/templates/enhanced-templates.d.ts +0 -21
  445. package/dist/cli/simple-commands/init/templates/enhanced-templates.d.ts.map +0 -1
  446. package/dist/cli/simple-commands/init/templates/enhanced-templates.js +0 -2304
  447. package/dist/cli/simple-commands/init/templates/enhanced-templates.js.map +0 -1
  448. package/dist/cli/simple-commands/init/templates/memory-bank-md.d.ts +0 -4
  449. package/dist/cli/simple-commands/init/templates/memory-bank-md.d.ts.map +0 -1
  450. package/dist/cli/simple-commands/init/templates/memory-bank-md.js +0 -257
  451. package/dist/cli/simple-commands/init/templates/memory-bank-md.js.map +0 -1
  452. package/dist/cli/simple-commands/init/templates/readme-files.d.ts +0 -3
  453. package/dist/cli/simple-commands/init/templates/readme-files.d.ts.map +0 -1
  454. package/dist/cli/simple-commands/init/templates/readme-files.js +0 -71
  455. package/dist/cli/simple-commands/init/templates/readme-files.js.map +0 -1
  456. package/dist/cli/simple-commands/init/templates/sparc-modes.d.ts +0 -30
  457. package/dist/cli/simple-commands/init/templates/sparc-modes.d.ts.map +0 -1
  458. package/dist/cli/simple-commands/init/templates/sparc-modes.js +0 -1375
  459. package/dist/cli/simple-commands/init/templates/sparc-modes.js.map +0 -1
  460. package/dist/cli/simple-commands/init/templates/verification-claude-md.d.ts +0 -3
  461. package/dist/cli/simple-commands/init/templates/verification-claude-md.d.ts.map +0 -1
  462. package/dist/cli/simple-commands/init/templates/verification-claude-md.js +0 -432
  463. package/dist/cli/simple-commands/init/templates/verification-claude-md.js.map +0 -1
  464. package/dist/cli/simple-commands/init/validation/config-validator.d.ts +0 -63
  465. package/dist/cli/simple-commands/init/validation/config-validator.d.ts.map +0 -1
  466. package/dist/cli/simple-commands/init/validation/config-validator.js +0 -308
  467. package/dist/cli/simple-commands/init/validation/config-validator.js.map +0 -1
  468. package/dist/cli/simple-commands/init/validation/health-checker.d.ts +0 -117
  469. package/dist/cli/simple-commands/init/validation/health-checker.d.ts.map +0 -1
  470. package/dist/cli/simple-commands/init/validation/health-checker.js +0 -539
  471. package/dist/cli/simple-commands/init/validation/health-checker.js.map +0 -1
  472. package/dist/cli/simple-commands/init/validation/index.d.ts +0 -55
  473. package/dist/cli/simple-commands/init/validation/index.d.ts.map +0 -1
  474. package/dist/cli/simple-commands/init/validation/index.js +0 -347
  475. package/dist/cli/simple-commands/init/validation/index.js.map +0 -1
  476. package/dist/cli/simple-commands/init/validation/mode-validator.d.ts +0 -76
  477. package/dist/cli/simple-commands/init/validation/mode-validator.d.ts.map +0 -1
  478. package/dist/cli/simple-commands/init/validation/mode-validator.js +0 -343
  479. package/dist/cli/simple-commands/init/validation/mode-validator.js.map +0 -1
  480. package/dist/cli/simple-commands/init/validation/post-init-validator.d.ts +0 -62
  481. package/dist/cli/simple-commands/init/validation/post-init-validator.d.ts.map +0 -1
  482. package/dist/cli/simple-commands/init/validation/post-init-validator.js +0 -349
  483. package/dist/cli/simple-commands/init/validation/post-init-validator.js.map +0 -1
  484. package/dist/cli/simple-commands/init/validation/pre-init-validator.d.ts +0 -86
  485. package/dist/cli/simple-commands/init/validation/pre-init-validator.d.ts.map +0 -1
  486. package/dist/cli/simple-commands/init/validation/pre-init-validator.js +0 -260
  487. package/dist/cli/simple-commands/init/validation/pre-init-validator.js.map +0 -1
  488. package/dist/cli/simple-commands/inject-memory-protocol.d.ts +0 -34
  489. package/dist/cli/simple-commands/inject-memory-protocol.d.ts.map +0 -1
  490. package/dist/cli/simple-commands/inject-memory-protocol.js +0 -229
  491. package/dist/cli/simple-commands/inject-memory-protocol.js.map +0 -1
  492. package/dist/cli/simple-commands/mcp.d.ts +0 -2
  493. package/dist/cli/simple-commands/mcp.d.ts.map +0 -1
  494. package/dist/cli/simple-commands/mcp.js +0 -369
  495. package/dist/cli/simple-commands/mcp.js.map +0 -1
  496. package/dist/cli/simple-commands/memory-consolidation.d.ts +0 -73
  497. package/dist/cli/simple-commands/memory-consolidation.d.ts.map +0 -1
  498. package/dist/cli/simple-commands/memory-consolidation.js +0 -537
  499. package/dist/cli/simple-commands/memory-consolidation.js.map +0 -1
  500. package/dist/cli/simple-commands/memory.d.ts +0 -2
  501. package/dist/cli/simple-commands/memory.d.ts.map +0 -1
  502. package/dist/cli/simple-commands/memory.js +0 -778
  503. package/dist/cli/simple-commands/memory.js.map +0 -1
  504. package/dist/cli/simple-commands/migrate-hooks.d.ts +0 -10
  505. package/dist/cli/simple-commands/migrate-hooks.d.ts.map +0 -1
  506. package/dist/cli/simple-commands/migrate-hooks.js +0 -57
  507. package/dist/cli/simple-commands/migrate-hooks.js.map +0 -1
  508. package/dist/cli/simple-commands/monitor.d.ts +0 -3
  509. package/dist/cli/simple-commands/monitor.d.ts.map +0 -1
  510. package/dist/cli/simple-commands/monitor.js +0 -366
  511. package/dist/cli/simple-commands/monitor.js.map +0 -1
  512. package/dist/cli/simple-commands/neural.d.ts +0 -3
  513. package/dist/cli/simple-commands/neural.d.ts.map +0 -1
  514. package/dist/cli/simple-commands/neural.js +0 -137
  515. package/dist/cli/simple-commands/neural.js.map +0 -1
  516. package/dist/cli/simple-commands/pair.d.ts +0 -3
  517. package/dist/cli/simple-commands/pair.d.ts.map +0 -1
  518. package/dist/cli/simple-commands/pair.js +0 -735
  519. package/dist/cli/simple-commands/pair.js.map +0 -1
  520. package/dist/cli/simple-commands/performance-hooks.d.ts +0 -20
  521. package/dist/cli/simple-commands/performance-hooks.d.ts.map +0 -1
  522. package/dist/cli/simple-commands/performance-hooks.js +0 -127
  523. package/dist/cli/simple-commands/performance-hooks.js.map +0 -1
  524. package/dist/cli/simple-commands/performance-metrics.d.ts +0 -153
  525. package/dist/cli/simple-commands/performance-metrics.d.ts.map +0 -1
  526. package/dist/cli/simple-commands/performance-metrics.js +0 -759
  527. package/dist/cli/simple-commands/performance-metrics.js.map +0 -1
  528. package/dist/cli/simple-commands/process-ui-enhanced.d.ts +0 -55
  529. package/dist/cli/simple-commands/process-ui-enhanced.d.ts.map +0 -1
  530. package/dist/cli/simple-commands/process-ui-enhanced.js +0 -680
  531. package/dist/cli/simple-commands/process-ui-enhanced.js.map +0 -1
  532. package/dist/cli/simple-commands/proxy.d.ts +0 -5
  533. package/dist/cli/simple-commands/proxy.d.ts.map +0 -1
  534. package/dist/cli/simple-commands/proxy.js +0 -346
  535. package/dist/cli/simple-commands/proxy.js.map +0 -1
  536. package/dist/cli/simple-commands/sparc-modes/architect.d.ts +0 -2
  537. package/dist/cli/simple-commands/sparc-modes/architect.d.ts.map +0 -1
  538. package/dist/cli/simple-commands/sparc-modes/architect.js +0 -126
  539. package/dist/cli/simple-commands/sparc-modes/architect.js.map +0 -1
  540. package/dist/cli/simple-commands/sparc-modes/ask.d.ts +0 -2
  541. package/dist/cli/simple-commands/sparc-modes/ask.d.ts.map +0 -1
  542. package/dist/cli/simple-commands/sparc-modes/ask.js +0 -127
  543. package/dist/cli/simple-commands/sparc-modes/ask.js.map +0 -1
  544. package/dist/cli/simple-commands/sparc-modes/code.d.ts +0 -2
  545. package/dist/cli/simple-commands/sparc-modes/code.d.ts.map +0 -1
  546. package/dist/cli/simple-commands/sparc-modes/code.js +0 -149
  547. package/dist/cli/simple-commands/sparc-modes/code.js.map +0 -1
  548. package/dist/cli/simple-commands/sparc-modes/debug.d.ts +0 -2
  549. package/dist/cli/simple-commands/sparc-modes/debug.d.ts.map +0 -1
  550. package/dist/cli/simple-commands/sparc-modes/debug.js +0 -113
  551. package/dist/cli/simple-commands/sparc-modes/debug.js.map +0 -1
  552. package/dist/cli/simple-commands/sparc-modes/devops.d.ts +0 -2
  553. package/dist/cli/simple-commands/sparc-modes/devops.d.ts.map +0 -1
  554. package/dist/cli/simple-commands/sparc-modes/devops.js +0 -138
  555. package/dist/cli/simple-commands/sparc-modes/devops.js.map +0 -1
  556. package/dist/cli/simple-commands/sparc-modes/docs-writer.d.ts +0 -2
  557. package/dist/cli/simple-commands/sparc-modes/docs-writer.d.ts.map +0 -1
  558. package/dist/cli/simple-commands/sparc-modes/docs-writer.js +0 -39
  559. package/dist/cli/simple-commands/sparc-modes/docs-writer.js.map +0 -1
  560. package/dist/cli/simple-commands/sparc-modes/generic.d.ts +0 -2
  561. package/dist/cli/simple-commands/sparc-modes/generic.d.ts.map +0 -1
  562. package/dist/cli/simple-commands/sparc-modes/generic.js +0 -35
  563. package/dist/cli/simple-commands/sparc-modes/generic.js.map +0 -1
  564. package/dist/cli/simple-commands/sparc-modes/index.d.ts +0 -17
  565. package/dist/cli/simple-commands/sparc-modes/index.d.ts.map +0 -1
  566. package/dist/cli/simple-commands/sparc-modes/index.js +0 -196
  567. package/dist/cli/simple-commands/sparc-modes/index.js.map +0 -1
  568. package/dist/cli/simple-commands/sparc-modes/integration.d.ts +0 -2
  569. package/dist/cli/simple-commands/sparc-modes/integration.d.ts.map +0 -1
  570. package/dist/cli/simple-commands/sparc-modes/integration.js +0 -56
  571. package/dist/cli/simple-commands/sparc-modes/integration.js.map +0 -1
  572. package/dist/cli/simple-commands/sparc-modes/mcp.d.ts +0 -2
  573. package/dist/cli/simple-commands/sparc-modes/mcp.d.ts.map +0 -1
  574. package/dist/cli/simple-commands/sparc-modes/mcp.js +0 -39
  575. package/dist/cli/simple-commands/sparc-modes/mcp.js.map +0 -1
  576. package/dist/cli/simple-commands/sparc-modes/monitoring.d.ts +0 -2
  577. package/dist/cli/simple-commands/sparc-modes/monitoring.d.ts.map +0 -1
  578. package/dist/cli/simple-commands/sparc-modes/monitoring.js +0 -39
  579. package/dist/cli/simple-commands/sparc-modes/monitoring.js.map +0 -1
  580. package/dist/cli/simple-commands/sparc-modes/optimization.d.ts +0 -2
  581. package/dist/cli/simple-commands/sparc-modes/optimization.d.ts.map +0 -1
  582. package/dist/cli/simple-commands/sparc-modes/optimization.js +0 -39
  583. package/dist/cli/simple-commands/sparc-modes/optimization.js.map +0 -1
  584. package/dist/cli/simple-commands/sparc-modes/security-review.d.ts +0 -2
  585. package/dist/cli/simple-commands/sparc-modes/security-review.d.ts.map +0 -1
  586. package/dist/cli/simple-commands/sparc-modes/security-review.js +0 -131
  587. package/dist/cli/simple-commands/sparc-modes/security-review.js.map +0 -1
  588. package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.d.ts +0 -2
  589. package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.d.ts.map +0 -1
  590. package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.js +0 -168
  591. package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.js.map +0 -1
  592. package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.d.ts +0 -2
  593. package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.d.ts.map +0 -1
  594. package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.js +0 -39
  595. package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.js.map +0 -1
  596. package/dist/cli/simple-commands/sparc-modes/supabase-admin.d.ts +0 -2
  597. package/dist/cli/simple-commands/sparc-modes/supabase-admin.d.ts.map +0 -1
  598. package/dist/cli/simple-commands/sparc-modes/supabase-admin.js +0 -150
  599. package/dist/cli/simple-commands/sparc-modes/supabase-admin.js.map +0 -1
  600. package/dist/cli/simple-commands/sparc-modes/swarm.d.ts +0 -81
  601. package/dist/cli/simple-commands/sparc-modes/swarm.d.ts.map +0 -1
  602. package/dist/cli/simple-commands/sparc-modes/swarm.js +0 -428
  603. package/dist/cli/simple-commands/sparc-modes/swarm.js.map +0 -1
  604. package/dist/cli/simple-commands/sparc-modes/tdd.d.ts +0 -2
  605. package/dist/cli/simple-commands/sparc-modes/tdd.d.ts.map +0 -1
  606. package/dist/cli/simple-commands/sparc-modes/tdd.js +0 -113
  607. package/dist/cli/simple-commands/sparc-modes/tdd.js.map +0 -1
  608. package/dist/cli/simple-commands/sparc-modes/tutorial.d.ts +0 -2
  609. package/dist/cli/simple-commands/sparc-modes/tutorial.d.ts.map +0 -1
  610. package/dist/cli/simple-commands/sparc-modes/tutorial.js +0 -278
  611. package/dist/cli/simple-commands/sparc-modes/tutorial.js.map +0 -1
  612. package/dist/cli/simple-commands/sparc.d.ts +0 -2
  613. package/dist/cli/simple-commands/sparc.d.ts.map +0 -1
  614. package/dist/cli/simple-commands/sparc.js +0 -477
  615. package/dist/cli/simple-commands/sparc.js.map +0 -1
  616. package/dist/cli/simple-commands/start-ui.d.ts +0 -2
  617. package/dist/cli/simple-commands/start-ui.d.ts.map +0 -1
  618. package/dist/cli/simple-commands/start-ui.js +0 -135
  619. package/dist/cli/simple-commands/start-ui.js.map +0 -1
  620. package/dist/cli/simple-commands/start-wrapper.d.ts +0 -2
  621. package/dist/cli/simple-commands/start-wrapper.d.ts.map +0 -1
  622. package/dist/cli/simple-commands/start-wrapper.js +0 -264
  623. package/dist/cli/simple-commands/start-wrapper.js.map +0 -1
  624. package/dist/cli/simple-commands/start.d.ts +0 -2
  625. package/dist/cli/simple-commands/start.d.ts.map +0 -1
  626. package/dist/cli/simple-commands/start.js +0 -3
  627. package/dist/cli/simple-commands/start.js.map +0 -1
  628. package/dist/cli/simple-commands/status.d.ts +0 -2
  629. package/dist/cli/simple-commands/status.d.ts.map +0 -1
  630. package/dist/cli/simple-commands/status.js +0 -292
  631. package/dist/cli/simple-commands/status.js.map +0 -1
  632. package/dist/cli/simple-commands/stream-chain.d.ts +0 -7
  633. package/dist/cli/simple-commands/stream-chain.d.ts.map +0 -1
  634. package/dist/cli/simple-commands/stream-chain.js +0 -433
  635. package/dist/cli/simple-commands/stream-chain.js.map +0 -1
  636. package/dist/cli/simple-commands/stream-processor.d.ts +0 -32
  637. package/dist/cli/simple-commands/stream-processor.d.ts.map +0 -1
  638. package/dist/cli/simple-commands/stream-processor.js +0 -318
  639. package/dist/cli/simple-commands/stream-processor.js.map +0 -1
  640. package/dist/cli/simple-commands/swarm-executor.d.ts +0 -68
  641. package/dist/cli/simple-commands/swarm-executor.d.ts.map +0 -1
  642. package/dist/cli/simple-commands/swarm-executor.js +0 -218
  643. package/dist/cli/simple-commands/swarm-executor.js.map +0 -1
  644. package/dist/cli/simple-commands/swarm-metrics-integration.d.ts +0 -69
  645. package/dist/cli/simple-commands/swarm-metrics-integration.d.ts.map +0 -1
  646. package/dist/cli/simple-commands/swarm-metrics-integration.js +0 -294
  647. package/dist/cli/simple-commands/swarm-metrics-integration.js.map +0 -1
  648. package/dist/cli/simple-commands/swarm-webui-integration.d.ts +0 -68
  649. package/dist/cli/simple-commands/swarm-webui-integration.d.ts.map +0 -1
  650. package/dist/cli/simple-commands/swarm-webui-integration.js +0 -265
  651. package/dist/cli/simple-commands/swarm-webui-integration.js.map +0 -1
  652. package/dist/cli/simple-commands/swarm.d.ts +0 -2
  653. package/dist/cli/simple-commands/swarm.d.ts.map +0 -1
  654. package/dist/cli/simple-commands/swarm.js +0 -2104
  655. package/dist/cli/simple-commands/swarm.js.map +0 -1
  656. package/dist/cli/simple-commands/task.d.ts +0 -2
  657. package/dist/cli/simple-commands/task.d.ts.map +0 -1
  658. package/dist/cli/simple-commands/task.js +0 -250
  659. package/dist/cli/simple-commands/task.js.map +0 -1
  660. package/dist/cli/simple-commands/token-tracker.d.ts +0 -73
  661. package/dist/cli/simple-commands/token-tracker.d.ts.map +0 -1
  662. package/dist/cli/simple-commands/token-tracker.js +0 -319
  663. package/dist/cli/simple-commands/token-tracker.js.map +0 -1
  664. package/dist/cli/simple-commands/training-pipeline.d.ts +0 -166
  665. package/dist/cli/simple-commands/training-pipeline.d.ts.map +0 -1
  666. package/dist/cli/simple-commands/training-pipeline.js +0 -760
  667. package/dist/cli/simple-commands/training-pipeline.js.map +0 -1
  668. package/dist/cli/simple-commands/training.d.ts +0 -2
  669. package/dist/cli/simple-commands/training.d.ts.map +0 -1
  670. package/dist/cli/simple-commands/training.js +0 -240
  671. package/dist/cli/simple-commands/training.js.map +0 -1
  672. package/dist/cli/simple-commands/verification-training-integration.d.ts +0 -181
  673. package/dist/cli/simple-commands/verification-training-integration.d.ts.map +0 -1
  674. package/dist/cli/simple-commands/verification-training-integration.js +0 -561
  675. package/dist/cli/simple-commands/verification-training-integration.js.map +0 -1
  676. package/dist/cli/simple-commands/verification.d.ts +0 -10
  677. package/dist/cli/simple-commands/verification.d.ts.map +0 -1
  678. package/dist/cli/simple-commands/verification.js +0 -476
  679. package/dist/cli/simple-commands/verification.js.map +0 -1
  680. package/dist/cli/simple-commands/web-server.d.ts +0 -152
  681. package/dist/cli/simple-commands/web-server.d.ts.map +0 -1
  682. package/dist/cli/simple-commands/web-server.js +0 -816
  683. package/dist/cli/simple-commands/web-server.js.map +0 -1
  684. package/dist/cli/utils/interactive-detector.d.ts +0 -25
  685. package/dist/cli/utils/interactive-detector.d.ts.map +0 -1
  686. package/dist/cli/utils/interactive-detector.js +0 -129
  687. package/dist/cli/utils/interactive-detector.js.map +0 -1
  688. package/dist/cli/utils/safe-interactive.d.ts +0 -30
  689. package/dist/cli/utils/safe-interactive.d.ts.map +0 -1
  690. package/dist/cli/utils/safe-interactive.js +0 -134
  691. package/dist/cli/utils/safe-interactive.js.map +0 -1
  692. package/dist/cli/utils.d.ts +0 -75
  693. package/dist/cli/utils.d.ts.map +0 -1
  694. package/dist/cli/utils.js +0 -567
  695. package/dist/cli/utils.js.map +0 -1
  696. package/dist/config/config-manager.d.ts +0 -212
  697. package/dist/config/config-manager.d.ts.map +0 -1
  698. package/dist/config/config-manager.js +0 -550
  699. package/dist/config/config-manager.js.map +0 -1
  700. package/dist/constants/agent-types.d.ts +0 -57
  701. package/dist/constants/agent-types.d.ts.map +0 -1
  702. package/dist/constants/agent-types.js +0 -57
  703. package/dist/constants/agent-types.js.map +0 -1
  704. package/dist/coordination/advanced-scheduler.d.ts +0 -121
  705. package/dist/coordination/advanced-scheduler.d.ts.map +0 -1
  706. package/dist/coordination/advanced-scheduler.js +0 -382
  707. package/dist/coordination/advanced-scheduler.js.map +0 -1
  708. package/dist/coordination/background-executor.d.ts +0 -69
  709. package/dist/coordination/background-executor.d.ts.map +0 -1
  710. package/dist/coordination/background-executor.js +0 -363
  711. package/dist/coordination/background-executor.js.map +0 -1
  712. package/dist/coordination/circuit-breaker.d.ts +0 -124
  713. package/dist/coordination/circuit-breaker.d.ts.map +0 -1
  714. package/dist/coordination/circuit-breaker.js +0 -301
  715. package/dist/coordination/circuit-breaker.js.map +0 -1
  716. package/dist/coordination/conflict-resolution.d.ts +0 -133
  717. package/dist/coordination/conflict-resolution.d.ts.map +0 -1
  718. package/dist/coordination/conflict-resolution.js +0 -360
  719. package/dist/coordination/conflict-resolution.js.map +0 -1
  720. package/dist/coordination/dependency-graph.d.ts +0 -78
  721. package/dist/coordination/dependency-graph.d.ts.map +0 -1
  722. package/dist/coordination/dependency-graph.js +0 -387
  723. package/dist/coordination/dependency-graph.js.map +0 -1
  724. package/dist/coordination/manager.d.ts +0 -66
  725. package/dist/coordination/manager.d.ts.map +0 -1
  726. package/dist/coordination/manager.js +0 -354
  727. package/dist/coordination/manager.js.map +0 -1
  728. package/dist/coordination/messaging.d.ts +0 -37
  729. package/dist/coordination/messaging.d.ts.map +0 -1
  730. package/dist/coordination/messaging.js +0 -219
  731. package/dist/coordination/messaging.js.map +0 -1
  732. package/dist/coordination/metrics.d.ts +0 -153
  733. package/dist/coordination/metrics.d.ts.map +0 -1
  734. package/dist/coordination/metrics.js +0 -436
  735. package/dist/coordination/metrics.js.map +0 -1
  736. package/dist/coordination/resources.d.ts +0 -36
  737. package/dist/coordination/resources.d.ts.map +0 -1
  738. package/dist/coordination/resources.js +0 -254
  739. package/dist/coordination/resources.js.map +0 -1
  740. package/dist/coordination/scheduler.d.ts +0 -48
  741. package/dist/coordination/scheduler.d.ts.map +0 -1
  742. package/dist/coordination/scheduler.js +0 -308
  743. package/dist/coordination/scheduler.js.map +0 -1
  744. package/dist/coordination/swarm-coordinator.d.ts +0 -116
  745. package/dist/coordination/swarm-coordinator.d.ts.map +0 -1
  746. package/dist/coordination/swarm-coordinator.js +0 -563
  747. package/dist/coordination/swarm-coordinator.js.map +0 -1
  748. package/dist/coordination/swarm-monitor.d.ts +0 -101
  749. package/dist/coordination/swarm-monitor.d.ts.map +0 -1
  750. package/dist/coordination/swarm-monitor.js +0 -340
  751. package/dist/coordination/swarm-monitor.js.map +0 -1
  752. package/dist/coordination/work-stealing.d.ts +0 -44
  753. package/dist/coordination/work-stealing.d.ts.map +0 -1
  754. package/dist/coordination/work-stealing.js +0 -158
  755. package/dist/coordination/work-stealing.js.map +0 -1
  756. package/dist/core/config.d.ts +0 -243
  757. package/dist/core/config.d.ts.map +0 -1
  758. package/dist/core/config.js +0 -1125
  759. package/dist/core/config.js.map +0 -1
  760. package/dist/core/event-bus.d.ts +0 -63
  761. package/dist/core/event-bus.d.ts.map +0 -1
  762. package/dist/core/event-bus.js +0 -153
  763. package/dist/core/event-bus.js.map +0 -1
  764. package/dist/core/json-persistence.d.ts +0 -55
  765. package/dist/core/json-persistence.d.ts.map +0 -1
  766. package/dist/core/json-persistence.js +0 -111
  767. package/dist/core/json-persistence.js.map +0 -1
  768. package/dist/core/logger.d.ts +0 -62
  769. package/dist/core/logger.d.ts.map +0 -1
  770. package/dist/core/logger.js +0 -252
  771. package/dist/core/logger.js.map +0 -1
  772. package/dist/core/orchestrator-fixed.d.ts +0 -81
  773. package/dist/core/orchestrator-fixed.d.ts.map +0 -1
  774. package/dist/core/orchestrator-fixed.js +0 -213
  775. package/dist/core/orchestrator-fixed.js.map +0 -1
  776. package/dist/core/orchestrator.d.ts +0 -141
  777. package/dist/core/orchestrator.d.ts.map +0 -1
  778. package/dist/core/orchestrator.js +0 -1166
  779. package/dist/core/orchestrator.js.map +0 -1
  780. package/dist/core/version.d.ts +0 -10
  781. package/dist/core/version.d.ts.map +0 -1
  782. package/dist/core/version.js +0 -36
  783. package/dist/core/version.js.map +0 -1
  784. package/dist/enterprise/analytics-manager.d.ts +0 -489
  785. package/dist/enterprise/analytics-manager.d.ts.map +0 -1
  786. package/dist/enterprise/analytics-manager.js +0 -956
  787. package/dist/enterprise/analytics-manager.js.map +0 -1
  788. package/dist/enterprise/audit-manager.d.ts +0 -459
  789. package/dist/enterprise/audit-manager.d.ts.map +0 -1
  790. package/dist/enterprise/audit-manager.js +0 -1014
  791. package/dist/enterprise/audit-manager.js.map +0 -1
  792. package/dist/enterprise/cloud-manager.d.ts +0 -435
  793. package/dist/enterprise/cloud-manager.d.ts.map +0 -1
  794. package/dist/enterprise/cloud-manager.js +0 -789
  795. package/dist/enterprise/cloud-manager.js.map +0 -1
  796. package/dist/enterprise/deployment-manager.d.ts +0 -328
  797. package/dist/enterprise/deployment-manager.d.ts.map +0 -1
  798. package/dist/enterprise/deployment-manager.js +0 -830
  799. package/dist/enterprise/deployment-manager.js.map +0 -1
  800. package/dist/enterprise/project-manager.d.ts +0 -228
  801. package/dist/enterprise/project-manager.d.ts.map +0 -1
  802. package/dist/enterprise/project-manager.js +0 -537
  803. package/dist/enterprise/project-manager.js.map +0 -1
  804. package/dist/enterprise/security-manager.d.ts +0 -422
  805. package/dist/enterprise/security-manager.d.ts.map +0 -1
  806. package/dist/enterprise/security-manager.js +0 -910
  807. package/dist/enterprise/security-manager.js.map +0 -1
  808. package/dist/execution/agent-executor.d.ts +0 -80
  809. package/dist/execution/agent-executor.d.ts.map +0 -1
  810. package/dist/execution/agent-executor.js +0 -220
  811. package/dist/execution/agent-executor.js.map +0 -1
  812. package/dist/execution/provider-manager.d.ts +0 -65
  813. package/dist/execution/provider-manager.d.ts.map +0 -1
  814. package/dist/execution/provider-manager.js +0 -144
  815. package/dist/execution/provider-manager.js.map +0 -1
  816. package/dist/hive-mind/core/Agent.d.ts +0 -137
  817. package/dist/hive-mind/core/Agent.d.ts.map +0 -1
  818. package/dist/hive-mind/core/Agent.js +0 -567
  819. package/dist/hive-mind/core/Agent.js.map +0 -1
  820. package/dist/hive-mind/core/Communication.d.ts +0 -116
  821. package/dist/hive-mind/core/Communication.d.ts.map +0 -1
  822. package/dist/hive-mind/core/Communication.js +0 -407
  823. package/dist/hive-mind/core/Communication.js.map +0 -1
  824. package/dist/hive-mind/core/DatabaseManager.d.ts +0 -99
  825. package/dist/hive-mind/core/DatabaseManager.d.ts.map +0 -1
  826. package/dist/hive-mind/core/DatabaseManager.js +0 -648
  827. package/dist/hive-mind/core/DatabaseManager.js.map +0 -1
  828. package/dist/hive-mind/core/HiveMind.d.ts +0 -90
  829. package/dist/hive-mind/core/HiveMind.d.ts.map +0 -1
  830. package/dist/hive-mind/core/HiveMind.js +0 -455
  831. package/dist/hive-mind/core/HiveMind.js.map +0 -1
  832. package/dist/hive-mind/core/Memory.d.ts +0 -235
  833. package/dist/hive-mind/core/Memory.d.ts.map +0 -1
  834. package/dist/hive-mind/core/Memory.js +0 -1192
  835. package/dist/hive-mind/core/Memory.js.map +0 -1
  836. package/dist/hive-mind/core/Queen.d.ts +0 -115
  837. package/dist/hive-mind/core/Queen.d.ts.map +0 -1
  838. package/dist/hive-mind/core/Queen.js +0 -649
  839. package/dist/hive-mind/core/Queen.js.map +0 -1
  840. package/dist/hive-mind/integration/ConsensusEngine.d.ts +0 -117
  841. package/dist/hive-mind/integration/ConsensusEngine.d.ts.map +0 -1
  842. package/dist/hive-mind/integration/ConsensusEngine.js +0 -478
  843. package/dist/hive-mind/integration/ConsensusEngine.js.map +0 -1
  844. package/dist/hive-mind/integration/MCPToolWrapper.d.ts +0 -172
  845. package/dist/hive-mind/integration/MCPToolWrapper.d.ts.map +0 -1
  846. package/dist/hive-mind/integration/MCPToolWrapper.js +0 -217
  847. package/dist/hive-mind/integration/MCPToolWrapper.js.map +0 -1
  848. package/dist/hive-mind/integration/SwarmOrchestrator.d.ts +0 -172
  849. package/dist/hive-mind/integration/SwarmOrchestrator.d.ts.map +0 -1
  850. package/dist/hive-mind/integration/SwarmOrchestrator.js +0 -748
  851. package/dist/hive-mind/integration/SwarmOrchestrator.js.map +0 -1
  852. package/dist/hive-mind/types.d.ts +0 -314
  853. package/dist/hive-mind/types.d.ts.map +0 -1
  854. package/dist/hive-mind/types.js +0 -7
  855. package/dist/hive-mind/types.js.map +0 -1
  856. package/dist/mcp/auth.d.ts +0 -80
  857. package/dist/mcp/auth.d.ts.map +0 -1
  858. package/dist/mcp/auth.js +0 -350
  859. package/dist/mcp/auth.js.map +0 -1
  860. package/dist/mcp/claude-flow-tools.d.ts +0 -13
  861. package/dist/mcp/claude-flow-tools.d.ts.map +0 -1
  862. package/dist/mcp/claude-flow-tools.js +0 -1398
  863. package/dist/mcp/claude-flow-tools.js.map +0 -1
  864. package/dist/mcp/load-balancer.d.ts +0 -88
  865. package/dist/mcp/load-balancer.d.ts.map +0 -1
  866. package/dist/mcp/load-balancer.js +0 -393
  867. package/dist/mcp/load-balancer.js.map +0 -1
  868. package/dist/mcp/router.d.ts +0 -54
  869. package/dist/mcp/router.d.ts.map +0 -1
  870. package/dist/mcp/router.js +0 -204
  871. package/dist/mcp/router.js.map +0 -1
  872. package/dist/mcp/ruv-swarm-tools.d.ts +0 -58
  873. package/dist/mcp/ruv-swarm-tools.d.ts.map +0 -1
  874. package/dist/mcp/ruv-swarm-tools.js +0 -568
  875. package/dist/mcp/ruv-swarm-tools.js.map +0 -1
  876. package/dist/mcp/server.d.ts +0 -75
  877. package/dist/mcp/server.d.ts.map +0 -1
  878. package/dist/mcp/server.js +0 -538
  879. package/dist/mcp/server.js.map +0 -1
  880. package/dist/mcp/session-manager.d.ts +0 -60
  881. package/dist/mcp/session-manager.d.ts.map +0 -1
  882. package/dist/mcp/session-manager.js +0 -323
  883. package/dist/mcp/session-manager.js.map +0 -1
  884. package/dist/mcp/swarm-tools.d.ts +0 -87
  885. package/dist/mcp/swarm-tools.d.ts.map +0 -1
  886. package/dist/mcp/swarm-tools.js +0 -731
  887. package/dist/mcp/swarm-tools.js.map +0 -1
  888. package/dist/mcp/tools.d.ts +0 -145
  889. package/dist/mcp/tools.d.ts.map +0 -1
  890. package/dist/mcp/tools.js +0 -434
  891. package/dist/mcp/tools.js.map +0 -1
  892. package/dist/mcp/transports/base.d.ts +0 -22
  893. package/dist/mcp/transports/base.d.ts.map +0 -1
  894. package/dist/mcp/transports/base.js +0 -5
  895. package/dist/mcp/transports/base.js.map +0 -1
  896. package/dist/mcp/transports/http.d.ts +0 -48
  897. package/dist/mcp/transports/http.d.ts.map +0 -1
  898. package/dist/mcp/transports/http.js +0 -400
  899. package/dist/mcp/transports/http.js.map +0 -1
  900. package/dist/mcp/transports/stdio.d.ts +0 -37
  901. package/dist/mcp/transports/stdio.d.ts.map +0 -1
  902. package/dist/mcp/transports/stdio.js +0 -206
  903. package/dist/mcp/transports/stdio.js.map +0 -1
  904. package/dist/memory/advanced-serializer.d.ts +0 -159
  905. package/dist/memory/advanced-serializer.d.ts.map +0 -1
  906. package/dist/memory/advanced-serializer.js +0 -564
  907. package/dist/memory/advanced-serializer.js.map +0 -1
  908. package/dist/memory/backends/base.d.ts +0 -21
  909. package/dist/memory/backends/base.d.ts.map +0 -1
  910. package/dist/memory/backends/base.js +0 -5
  911. package/dist/memory/backends/base.js.map +0 -1
  912. package/dist/memory/backends/markdown.d.ts +0 -35
  913. package/dist/memory/backends/markdown.d.ts.map +0 -1
  914. package/dist/memory/backends/markdown.js +0 -223
  915. package/dist/memory/backends/markdown.js.map +0 -1
  916. package/dist/memory/backends/sqlite.d.ts +0 -33
  917. package/dist/memory/backends/sqlite.d.ts.map +0 -1
  918. package/dist/memory/backends/sqlite.js +0 -291
  919. package/dist/memory/backends/sqlite.js.map +0 -1
  920. package/dist/memory/cache.d.ts +0 -65
  921. package/dist/memory/cache.d.ts.map +0 -1
  922. package/dist/memory/cache.js +0 -188
  923. package/dist/memory/cache.js.map +0 -1
  924. package/dist/memory/distributed-memory.d.ts +0 -188
  925. package/dist/memory/distributed-memory.d.ts.map +0 -1
  926. package/dist/memory/distributed-memory.js +0 -710
  927. package/dist/memory/distributed-memory.js.map +0 -1
  928. package/dist/memory/enhanced-session-serializer.d.ts +0 -115
  929. package/dist/memory/enhanced-session-serializer.d.ts.map +0 -1
  930. package/dist/memory/enhanced-session-serializer.js +0 -478
  931. package/dist/memory/enhanced-session-serializer.js.map +0 -1
  932. package/dist/memory/fallback-store.d.ts +0 -28
  933. package/dist/memory/fallback-store.d.ts.map +0 -1
  934. package/dist/memory/fallback-store.js +0 -101
  935. package/dist/memory/fallback-store.js.map +0 -1
  936. package/dist/memory/in-memory-store.d.ts +0 -37
  937. package/dist/memory/in-memory-store.d.ts.map +0 -1
  938. package/dist/memory/in-memory-store.js +0 -174
  939. package/dist/memory/in-memory-store.js.map +0 -1
  940. package/dist/memory/indexer.d.ts +0 -52
  941. package/dist/memory/indexer.d.ts.map +0 -1
  942. package/dist/memory/indexer.js +0 -191
  943. package/dist/memory/indexer.js.map +0 -1
  944. package/dist/memory/manager.d.ts +0 -58
  945. package/dist/memory/manager.d.ts.map +0 -1
  946. package/dist/memory/manager.js +0 -423
  947. package/dist/memory/manager.js.map +0 -1
  948. package/dist/memory/sqlite-store.d.ts +0 -34
  949. package/dist/memory/sqlite-store.d.ts.map +0 -1
  950. package/dist/memory/sqlite-store.js +0 -268
  951. package/dist/memory/sqlite-store.js.map +0 -1
  952. package/dist/memory/sqlite-wrapper.d.ts +0 -38
  953. package/dist/memory/sqlite-wrapper.d.ts.map +0 -1
  954. package/dist/memory/sqlite-wrapper.js +0 -152
  955. package/dist/memory/sqlite-wrapper.js.map +0 -1
  956. package/dist/memory/swarm-memory.d.ts +0 -91
  957. package/dist/memory/swarm-memory.d.ts.map +0 -1
  958. package/dist/memory/swarm-memory.js +0 -454
  959. package/dist/memory/swarm-memory.js.map +0 -1
  960. package/dist/memory/unified-memory-manager.d.ts +0 -116
  961. package/dist/memory/unified-memory-manager.d.ts.map +0 -1
  962. package/dist/memory/unified-memory-manager.js +0 -397
  963. package/dist/memory/unified-memory-manager.js.map +0 -1
  964. package/dist/migration/logger.d.ts +0 -26
  965. package/dist/migration/logger.d.ts.map +0 -1
  966. package/dist/migration/logger.js +0 -145
  967. package/dist/migration/logger.js.map +0 -1
  968. package/dist/migration/migration-analyzer.d.ts +0 -18
  969. package/dist/migration/migration-analyzer.d.ts.map +0 -1
  970. package/dist/migration/migration-analyzer.js +0 -284
  971. package/dist/migration/migration-analyzer.js.map +0 -1
  972. package/dist/migration/migration-runner.d.ts +0 -26
  973. package/dist/migration/migration-runner.d.ts.map +0 -1
  974. package/dist/migration/migration-runner.js +0 -505
  975. package/dist/migration/migration-runner.js.map +0 -1
  976. package/dist/migration/migration-validator.d.ts +0 -17
  977. package/dist/migration/migration-validator.d.ts.map +0 -1
  978. package/dist/migration/migration-validator.js +0 -309
  979. package/dist/migration/migration-validator.js.map +0 -1
  980. package/dist/migration/progress-reporter.d.ts +0 -28
  981. package/dist/migration/progress-reporter.d.ts.map +0 -1
  982. package/dist/migration/progress-reporter.js +0 -163
  983. package/dist/migration/progress-reporter.js.map +0 -1
  984. package/dist/migration/rollback-manager.d.ts +0 -24
  985. package/dist/migration/rollback-manager.d.ts.map +0 -1
  986. package/dist/migration/rollback-manager.js +0 -351
  987. package/dist/migration/rollback-manager.js.map +0 -1
  988. package/dist/migration/types.d.ts +0 -103
  989. package/dist/migration/types.d.ts.map +0 -1
  990. package/dist/migration/types.js +0 -6
  991. package/dist/migration/types.js.map +0 -1
  992. package/dist/reasoningbank/reasoningbank-adapter.d.ts +0 -93
  993. package/dist/reasoningbank/reasoningbank-adapter.d.ts.map +0 -1
  994. package/dist/reasoningbank/reasoningbank-adapter.js +0 -365
  995. package/dist/reasoningbank/reasoningbank-adapter.js.map +0 -1
  996. package/dist/sdk/query-control.d.ts +0 -131
  997. package/dist/sdk/query-control.d.ts.map +0 -1
  998. package/dist/sdk/query-control.js +0 -363
  999. package/dist/sdk/query-control.js.map +0 -1
  1000. package/dist/sdk/session-forking.d.ts +0 -109
  1001. package/dist/sdk/session-forking.d.ts.map +0 -1
  1002. package/dist/sdk/session-forking.js +0 -275
  1003. package/dist/sdk/session-forking.js.map +0 -1
  1004. package/dist/swarm/types.d.ts +0 -578
  1005. package/dist/swarm/types.d.ts.map +0 -1
  1006. package/dist/swarm/types.js +0 -54
  1007. package/dist/swarm/types.js.map +0 -1
  1008. package/dist/terminal/adapters/base.d.ts +0 -40
  1009. package/dist/terminal/adapters/base.d.ts.map +0 -1
  1010. package/dist/terminal/adapters/base.js +0 -5
  1011. package/dist/terminal/adapters/base.js.map +0 -1
  1012. package/dist/terminal/adapters/native.d.ts +0 -19
  1013. package/dist/terminal/adapters/native.d.ts.map +0 -1
  1014. package/dist/terminal/adapters/native.js +0 -414
  1015. package/dist/terminal/adapters/native.js.map +0 -1
  1016. package/dist/terminal/adapters/vscode.d.ts +0 -23
  1017. package/dist/terminal/adapters/vscode.d.ts.map +0 -1
  1018. package/dist/terminal/adapters/vscode.js +0 -267
  1019. package/dist/terminal/adapters/vscode.js.map +0 -1
  1020. package/dist/terminal/manager.d.ts +0 -59
  1021. package/dist/terminal/manager.d.ts.map +0 -1
  1022. package/dist/terminal/manager.js +0 -235
  1023. package/dist/terminal/manager.js.map +0 -1
  1024. package/dist/terminal/pool.d.ts +0 -32
  1025. package/dist/terminal/pool.d.ts.map +0 -1
  1026. package/dist/terminal/pool.js +0 -208
  1027. package/dist/terminal/pool.js.map +0 -1
  1028. package/dist/terminal/session.d.ts +0 -41
  1029. package/dist/terminal/session.d.ts.map +0 -1
  1030. package/dist/terminal/session.js +0 -210
  1031. package/dist/terminal/session.js.map +0 -1
  1032. package/dist/utils/error-handler.d.ts +0 -14
  1033. package/dist/utils/error-handler.d.ts.map +0 -1
  1034. package/dist/utils/error-handler.js +0 -29
  1035. package/dist/utils/error-handler.js.map +0 -1
  1036. package/dist/utils/errors.d.ts +0 -121
  1037. package/dist/utils/errors.d.ts.map +0 -1
  1038. package/dist/utils/errors.js +0 -194
  1039. package/dist/utils/errors.js.map +0 -1
  1040. package/dist/utils/formatters.d.ts +0 -15
  1041. package/dist/utils/formatters.d.ts.map +0 -1
  1042. package/dist/utils/formatters.js +0 -75
  1043. package/dist/utils/formatters.js.map +0 -1
  1044. package/dist/utils/helpers.d.ts +0 -134
  1045. package/dist/utils/helpers.d.ts.map +0 -1
  1046. package/dist/utils/helpers.js +0 -444
  1047. package/dist/utils/helpers.js.map +0 -1
  1048. package/dist/utils/key-redactor.d.ts +0 -46
  1049. package/dist/utils/key-redactor.d.ts.map +0 -1
  1050. package/dist/utils/key-redactor.js +0 -153
  1051. package/dist/utils/key-redactor.js.map +0 -1
  1052. package/dist/utils/metrics-reader.d.ts +0 -67
  1053. package/dist/utils/metrics-reader.d.ts.map +0 -1
  1054. package/dist/utils/metrics-reader.js +0 -201
  1055. package/dist/utils/metrics-reader.js.map +0 -1
  1056. package/dist/utils/npx-isolated-cache.d.ts +0 -17
  1057. package/dist/utils/npx-isolated-cache.d.ts.map +0 -1
  1058. package/dist/utils/npx-isolated-cache.js +0 -140
  1059. package/dist/utils/npx-isolated-cache.js.map +0 -1
  1060. package/dist/utils/project-root.d.ts +0 -35
  1061. package/dist/utils/project-root.d.ts.map +0 -1
  1062. package/dist/utils/project-root.js +0 -115
  1063. package/dist/utils/project-root.js.map +0 -1
  1064. package/dist/utils/type-guards.d.ts +0 -117
  1065. package/dist/utils/type-guards.d.ts.map +0 -1
  1066. package/dist/utils/type-guards.js +0 -166
  1067. package/dist/utils/type-guards.js.map +0 -1
  1068. package/dist/utils/types.d.ts +0 -568
  1069. package/dist/utils/types.d.ts.map +0 -1
  1070. package/dist/utils/types.js +0 -37
  1071. package/dist/utils/types.js.map +0 -1
@@ -1,1126 +0,0 @@
1
- // command-registry.js - Extensible command registration system
2
- import process from 'process';
3
- import { initCommand } from './simple-commands/init/index.js';
4
- import { memoryCommand } from './simple-commands/memory.js';
5
- import { memoryConsolidationCommand } from './simple-commands/memory-consolidation.js';
6
- import { sparcCommand } from './simple-commands/sparc.js';
7
- import { agentCommand } from './simple-commands/agent.js';
8
- import { taskCommand } from './simple-commands/task.js';
9
- import { configCommand } from './simple-commands/config.js';
10
- import { statusCommand } from './simple-commands/status.js';
11
- import { mcpCommand } from './simple-commands/mcp.js';
12
- import { proxyCommand } from './simple-commands/proxy.js';
13
- import { monitorCommand } from './simple-commands/monitor.js';
14
- import { startCommand } from './simple-commands/start.js';
15
- import { swarmCommand } from './simple-commands/swarm.js';
16
- import { batchManagerCommand } from './simple-commands/batch-manager.js';
17
- import { githubCommand } from './simple-commands/github.js';
18
- import { trainingAction } from './simple-commands/training.js';
19
- import { analysisAction } from './simple-commands/analysis.js';
20
- import { automationAction } from './simple-commands/automation.js';
21
- import { coordinationAction } from './simple-commands/coordination.js';
22
- import { hooksAction } from './simple-commands/hooks.js';
23
- import { hookSafetyCommand } from './simple-commands/hook-safety.js';
24
- import { hiveMindCommand } from './simple-commands/hive-mind.js';
25
- import { HelpFormatter } from './help-formatter.js';
26
- import hiveMindOptimizeCommand from './simple-commands/hive-mind-optimize.js';
27
- import { neuralCommand } from './simple-commands/neural.js';
28
- import { goalCommand } from './simple-commands/goal.js';
29
- import { showUnifiedMetrics, fixTaskAttribution, } from './simple-commands/swarm-metrics-integration.js';
30
- import { migrateHooksCommand, migrateHooksCommandConfig } from './simple-commands/migrate-hooks.js';
31
- import { fixHookVariablesCommand, fixHookVariablesCommandConfig, } from './simple-commands/fix-hook-variables.js';
32
- import { initializePerformanceTracking, trackCommandExecution } from './simple-commands/performance-hooks.js';
33
- // Maestro commands integrated with clean implementation
34
- // Note: Maestro TypeScript commands now integrated directly in ./commands/maestro.ts
35
- // Note: TypeScript imports commented out for Node.js compatibility
36
- // import { ruvSwarmAction } from './commands/ruv-swarm.ts';
37
- // import { configIntegrationAction } from './commands/config-integration.ts';
38
- // Command registry for extensible CLI
39
- export const commandRegistry = new Map();
40
- // Register core commands
41
- export function registerCoreCommands() {
42
- commandRegistry.set('init', {
43
- handler: initCommand,
44
- description: 'Initialize Claude Code integration files and SPARC development environment',
45
- usage: 'init [--force] [--minimal] [--sparc]',
46
- examples: [
47
- 'npx claude-flow@latest init --sparc # Recommended: Full SPARC setup',
48
- 'init --sparc # Initialize with SPARC modes',
49
- 'init --force --minimal # Minimal setup, overwrite existing',
50
- 'init --sparc --force # Force SPARC setup',
51
- ],
52
- details: `
53
- The --sparc flag creates a complete development environment:
54
- • .roomodes file containing 17 specialized SPARC modes
55
- • CLAUDE.md for AI-readable project instructions
56
- • Pre-configured modes: architect, code, tdd, debug, security, and more
57
- • Ready for TDD workflows and automated code generation
58
-
59
- First-time users should run: npx claude-flow@latest init --sparc`,
60
- });
61
- commandRegistry.set('start', {
62
- handler: startCommand,
63
- description: 'Start the Claude-Flow orchestration system',
64
- usage: 'start [--daemon] [--port <port>] [--verbose] [--ui] [--web]',
65
- examples: [
66
- 'start # Start in interactive mode',
67
- 'start --daemon # Start as background daemon',
68
- 'start --port 8080 # Use custom MCP port',
69
- 'start --verbose # Show detailed system activity',
70
- 'start --ui # Launch terminal-based UI',
71
- 'start --web # Launch web-based UI',
72
- ],
73
- });
74
- // Add start-ui as a convenient alias for launching the UI
75
- commandRegistry.set('start-ui', {
76
- handler: async (args, flags) => {
77
- // Import and use the direct UI launcher
78
- const { launchUI } = await import('./simple-commands/start-ui.js');
79
- // Pass the full raw arguments from process.argv
80
- const fullArgs = process.argv.slice(3); // Skip node, script, and command
81
- return launchUI(fullArgs);
82
- },
83
- description: 'Start the UI interface (web UI by default)',
84
- usage: 'start-ui [--port <port>] [--terminal]',
85
- examples: [
86
- 'start-ui # Launch web-based UI (default)',
87
- 'start-ui --port 3000 # Use custom port',
88
- 'start-ui --terminal # Launch terminal-based UI instead',
89
- ],
90
- });
91
- commandRegistry.set('memory', {
92
- handler: memoryCommand,
93
- description: 'Memory management operations',
94
- usage: 'memory <subcommand> [options]',
95
- examples: [
96
- 'memory store key "value"',
97
- 'memory query search_term',
98
- 'memory stats',
99
- 'memory export backup.json',
100
- ],
101
- });
102
- commandRegistry.set('memory-consolidate', {
103
- handler: memoryConsolidationCommand,
104
- description: 'Consolidate fragmented memory stores into unified database',
105
- usage: 'memory-consolidate <command> [options]',
106
- examples: [
107
- 'memory-consolidate scan # Scan for all memory stores',
108
- 'memory-consolidate plan # Create consolidation plan',
109
- 'memory-consolidate execute --force # Execute consolidation',
110
- 'memory-consolidate report # Generate report',
111
- ],
112
- details: `
113
- Memory Consolidation Features:
114
- • Discovers all memory storage locations (JSON & SQLite)
115
- • Creates automatic backups before consolidation
116
- • Merges all stores into unified SQLite database
117
- • Optimizes with indices for better performance
118
- • Maintains backward compatibility
119
-
120
- Benefits:
121
- • Single source of truth for all memory data
122
- • Improved query performance with indices
123
- • Reduced disk fragmentation
124
- • Easier backup and restore
125
- • Cross-session persistence`,
126
- });
127
- commandRegistry.set('sparc', {
128
- handler: sparcCommand,
129
- description: 'SPARC development mode operations',
130
- usage: 'sparc [subcommand] [options]',
131
- examples: [
132
- 'sparc "orchestrate full app development" # Default: sparc orchestrator',
133
- 'sparc modes # List available modes',
134
- 'sparc run code "implement feature" # Run specific mode',
135
- 'sparc tdd "feature description" # TDD workflow',
136
- 'sparc info architect # Mode details',
137
- ],
138
- });
139
- // Note: Maestro commands are now handled by TypeScript module
140
- // See src/cli/commands/maestro.ts for the clean implementation
141
- commandRegistry.set('maestro', {
142
- handler: () => {
143
- console.log('⚠️ Maestro commands have been moved to TypeScript.');
144
- console.log('Please use: npx claude-flow maestro help');
145
- console.log('Or import from: ./commands/maestro.js after compilation');
146
- },
147
- description: 'Maestro: Specs-Driven Development with Hive Mind Integration',
148
- usage: 'maestro <subcommand> [options]',
149
- examples: [
150
- 'maestro create-spec my-feature --request "Implement user auth"',
151
- 'maestro generate-design my-feature',
152
- 'maestro generate-tasks my-feature',
153
- 'maestro implement-task my-feature 1',
154
- 'maestro approve-phase my-feature',
155
- 'maestro status my-feature --detailed',
156
- 'maestro init-steering api-design',
157
- 'maestro help',
158
- ],
159
- });
160
- commandRegistry.set('agent', {
161
- handler: agentCommand,
162
- description: 'Manage AI agents, memory, and agentic-flow integration (NEW in v2.6.0)',
163
- usage: 'agent <subcommand> [options]',
164
- examples: [
165
- 'agent run coder "Build REST API" --optimize # Multi-provider execution',
166
- 'agent agents # List 66+ available agents',
167
- 'agent memory init # Initialize ReasoningBank',
168
- 'agent config wizard # Configure API keys',
169
- 'agent mcp start --daemon # Start MCP server',
170
- 'agent spawn researcher --name "DataBot" # Internal agent management',
171
- ],
172
- details: `
173
- Agent management features:
174
- • Multi-provider execution (Anthropic, OpenRouter, ONNX, Gemini)
175
- • ReasoningBank memory system (70% → 88% success improvement)
176
- • Model optimization (85-98% cost savings)
177
- • MCP server management (213+ tools)
178
- • Configuration management (API keys, models, settings)
179
- • Custom agent creation and management
180
- • Internal agent hierarchies and coordination
181
-
182
- Subcommands:
183
- run - Execute agents with multi-provider support
184
- agents - List all 66+ available agents
185
- create - Create custom agents
186
- info - Show agent information
187
- conflicts - Check for agent conflicts
188
- memory - ReasoningBank memory management
189
- config - Configuration management
190
- mcp - MCP server management
191
- spawn - Internal agent management
192
- list - List internal agents
193
-
194
- See 'claude-flow help agent' for full documentation.`,
195
- });
196
- commandRegistry.set('proxy', {
197
- handler: proxyCommand,
198
- description: 'OpenRouter proxy server for 85-98% cost savings (NEW in v2.6.0)',
199
- usage: 'proxy <subcommand> [options]',
200
- examples: [
201
- 'proxy start --daemon # Start proxy server',
202
- 'proxy status --verbose # Check status',
203
- 'proxy config # Configuration guide',
204
- 'proxy logs --follow # View logs',
205
- ],
206
- details: `
207
- OpenRouter Proxy Features:
208
- • Transparent API translation (Anthropic → OpenRouter)
209
- • 85-98% cost savings vs direct Anthropic API
210
- • Works with Claude Code out of the box
211
- • Zero code changes required
212
- • Supports all OpenRouter models
213
-
214
- Cost Savings Examples:
215
- • Claude 3.5 Sonnet: $3.00 → $0.30 per million tokens (90% savings)
216
- • Claude 3 Opus: $15.00 → $2.25 per million tokens (85% savings)
217
- • DeepSeek R1: Free (100% savings)
218
-
219
- Setup:
220
- 1. Get OpenRouter API key: https://openrouter.ai/keys
221
- 2. claude-flow agent config set OPENROUTER_API_KEY sk-or-xxx
222
- 3. claude-flow proxy start --daemon
223
- 4. export ANTHROPIC_BASE_URL=http://localhost:8080
224
- 5. Use Claude Code normally → automatic savings!
225
-
226
- Commands:
227
- start - Start proxy server
228
- stop - Stop proxy server
229
- restart - Restart proxy server
230
- status - Get server status
231
- logs - View server logs
232
- config - Configuration guide`,
233
- });
234
- commandRegistry.set('task', {
235
- handler: taskCommand,
236
- description: 'Manage tasks and workflows',
237
- usage: 'task <subcommand> [options]',
238
- examples: [
239
- 'task create research "Market analysis"',
240
- 'task list --filter running',
241
- 'task workflow examples/dev-flow.json',
242
- 'task coordination status',
243
- ],
244
- });
245
- commandRegistry.set('config', {
246
- handler: configCommand,
247
- description: 'Manage system configuration',
248
- usage: 'config <subcommand> [options]',
249
- examples: [
250
- 'config init',
251
- 'config set terminal.poolSize 15',
252
- 'config get orchestrator.maxConcurrentTasks',
253
- 'config validate',
254
- ],
255
- });
256
- commandRegistry.set('status', {
257
- handler: statusCommand,
258
- description: 'Show system status and health',
259
- usage: 'status [--verbose] [--json]',
260
- examples: ['status', 'status --verbose', 'status --json'],
261
- });
262
- commandRegistry.set('mcp', {
263
- handler: mcpCommand,
264
- description: 'Manage MCP server and tools',
265
- usage: 'mcp <subcommand> [options]',
266
- examples: ['mcp status', 'mcp start --port 8080', 'mcp tools --verbose', 'mcp auth setup'],
267
- });
268
- commandRegistry.set('monitor', {
269
- handler: monitorCommand,
270
- description: 'Real-time system monitoring',
271
- usage: 'monitor [--watch] [--interval <ms>]',
272
- examples: [
273
- 'monitor',
274
- 'monitor --watch',
275
- 'monitor --interval 1000 --watch',
276
- 'monitor --format json',
277
- ],
278
- });
279
- commandRegistry.set('swarm', {
280
- handler: swarmCommand,
281
- description: 'Swarm-based AI agent coordination',
282
- usage: 'swarm <objective> [options]',
283
- examples: [
284
- 'swarm "Build a REST API"',
285
- 'swarm "Research cloud architecture" --strategy research',
286
- 'swarm "Analyze data" --max-agents 3 --parallel',
287
- 'swarm "Development task" --ui --monitor --background',
288
- ],
289
- });
290
- commandRegistry.set('hive-mind', {
291
- handler: hiveMindCommand,
292
- description: '🧠 Advanced Hive Mind swarm intelligence with collective decision-making',
293
- usage: 'hive-mind <subcommand> [options]',
294
- examples: [
295
- 'hive-mind init # Initialize hive mind system',
296
- 'hive-mind spawn "Build microservices" # Create swarm with objective',
297
- 'hive-mind wizard # Interactive setup wizard',
298
- 'hive-mind status # View active swarms',
299
- 'hive-mind consensus # View consensus decisions',
300
- 'hive-mind metrics # Performance analytics',
301
- ],
302
- customHelp: true, // Use command's own help function
303
- details: `
304
- Hive Mind System Features:
305
- • Queen-led coordination with specialized worker agents
306
- • Collective memory and knowledge sharing
307
- • Consensus building for critical decisions
308
- • Auto-scaling based on workload
309
- • Parallel task execution with work stealing
310
- • Real-time monitoring and metrics
311
- • SQLite-backed persistence
312
- • MCP tool integration for 87+ operations
313
-
314
- Queen Types:
315
- • Strategic - Long-term planning and optimization
316
- • Tactical - Task prioritization and rapid response
317
- • Adaptive - Learning and strategy evolution
318
-
319
- Worker Types:
320
- • Researcher, Coder, Analyst, Tester
321
- • Architect, Reviewer, Optimizer, Documenter
322
-
323
- Use 'hive-mind wizard' for interactive setup or 'hive-mind help' for full documentation.`,
324
- });
325
- commandRegistry.set('hive-mind-optimize', {
326
- handler: hiveMindOptimizeCommand,
327
- description: '🔧 Optimize hive mind database for better performance',
328
- usage: 'hive-mind-optimize [options]',
329
- examples: [
330
- 'hive-mind-optimize # Interactive optimization wizard',
331
- 'hive-mind-optimize --auto # Auto-optimize with defaults',
332
- 'hive-mind-optimize --report # Generate optimization report',
333
- 'hive-mind-optimize --clean-memory --memory-days 60',
334
- 'hive-mind-optimize --auto --vacuum --archive-tasks',
335
- ],
336
- details: `
337
- Hive Mind Database Optimization Features:
338
- • Safe, backward-compatible optimizations
339
- • Performance indexes for 50% faster queries
340
- • Memory cleanup and archiving
341
- • Task archival for space management
342
- • Behavioral pattern tracking
343
- • Database integrity checking
344
-
345
- Optimization Levels:
346
- • v1.0 → v1.1: Basic performance indexes
347
- • v1.1 → v1.2: Advanced query optimization
348
- • v1.2 → v1.3: Performance tracking tables
349
- • v1.3 → v1.4: Memory optimization features
350
- • v1.4 → v1.5: Behavioral analysis tracking
351
-
352
- Safety Features:
353
- • Automatic backups before major operations
354
- • All changes are backward-compatible
355
- • Existing data is always preserved
356
- • Rollback capability on errors`,
357
- });
358
- commandRegistry.set('swarm-metrics', {
359
- handler: async (args, flags) => {
360
- const subcommand = args[0];
361
- if (subcommand === 'fix') {
362
- return await fixTaskAttribution();
363
- }
364
- else {
365
- return await showUnifiedMetrics();
366
- }
367
- },
368
- description: 'Unified swarm metrics and task attribution diagnostics',
369
- usage: 'swarm-metrics [fix] [options]',
370
- examples: [
371
- 'swarm-metrics # Show unified metrics from all swarm systems',
372
- 'swarm-metrics fix # Fix task attribution issues between systems',
373
- ],
374
- details: `
375
- Swarm Metrics Integration Features:
376
- • Unified view of hive-mind and ruv-swarm metrics
377
- • Task attribution diagnosis and repair
378
- • Cross-system swarm performance comparison
379
- • Database integration status checking
380
- • Automatic sample task creation for empty swarms
381
-
382
- This command helps resolve issues where:
383
- • Overall task statistics show correctly but per-swarm shows 0/0
384
- • Multiple swarm systems are not properly integrated
385
- • Task assignments are missing or incorrectly attributed
386
-
387
- Use 'swarm-metrics fix' to automatically repair attribution issues.`,
388
- });
389
- commandRegistry.set('batch', {
390
- handler: batchManagerCommand,
391
- description: 'Batch operation management and configuration utilities',
392
- usage: 'batch <command> [options]',
393
- examples: [
394
- 'batch create-config my-batch.json',
395
- 'batch create-config --interactive',
396
- 'batch validate-config my-batch.json',
397
- 'batch estimate my-batch.json',
398
- 'batch list-templates',
399
- 'batch list-environments',
400
- ],
401
- details: `
402
- Batch operations support:
403
- • Multiple project initialization with templates
404
- • Environment-specific configurations (dev, staging, prod)
405
- • Parallel processing with resource management
406
- • Progress tracking and detailed reporting
407
- • Configuration validation and estimation tools
408
-
409
- Use with init command:
410
- claude-flow init --batch-init project1,project2,project3
411
- claude-flow init --config batch-config.json --parallel`,
412
- });
413
- commandRegistry.set('github', {
414
- handler: githubCommand,
415
- description: 'GitHub workflow automation with 6 specialized modes',
416
- usage: 'github <mode> <objective> [options]',
417
- examples: [
418
- 'github pr-manager "create feature PR with automated testing"',
419
- 'github gh-coordinator "setup CI/CD pipeline" --auto-approve',
420
- 'github release-manager "prepare v2.0.0 release"',
421
- 'github repo-architect "optimize repository structure"',
422
- 'github issue-tracker "analyze project roadmap issues"',
423
- 'github sync-coordinator "sync package versions across repos"',
424
- ],
425
- details: `
426
- GitHub automation modes:
427
- • gh-coordinator: GitHub workflow orchestration and coordination
428
- • pr-manager: Pull request management with multi-reviewer coordination
429
- • issue-tracker: Issue management and project coordination
430
- • release-manager: Release coordination and deployment pipelines
431
- • repo-architect: Repository structure optimization
432
- • sync-coordinator: Multi-package synchronization and version alignment
433
-
434
- Advanced features:
435
- • Multi-reviewer coordination with automated scheduling
436
- • Intelligent issue categorization and assignment
437
- • Automated testing integration and quality gates
438
- • Release pipeline orchestration with rollback capabilities`,
439
- });
440
- commandRegistry.set('training', {
441
- handler: trainingAction,
442
- description: 'Neural pattern learning and model updates',
443
- usage: 'training <command> [options]',
444
- examples: [
445
- 'training neural-train --data recent --model task-predictor',
446
- 'training pattern-learn --operation "file-creation" --outcome "success"',
447
- 'training model-update --agent-type coordinator --operation-result "efficient"',
448
- ],
449
- details: `
450
- Neural training commands:
451
- • neural-train: Train neural patterns from operations
452
- • pattern-learn: Learn from specific operation outcomes
453
- • model-update: Update agent models with new insights
454
-
455
- Improves task selection accuracy, agent performance prediction, and coordination efficiency.`,
456
- });
457
- commandRegistry.set('analysis', {
458
- handler: analysisAction,
459
- description: 'Performance and usage analytics',
460
- usage: 'analysis <command> [options]',
461
- examples: [
462
- 'analysis bottleneck-detect --scope system',
463
- 'analysis performance-report --timeframe 7d --format detailed',
464
- 'analysis token-usage --breakdown --cost-analysis',
465
- ],
466
- details: `
467
- Analysis commands:
468
- • bottleneck-detect: Detect performance bottlenecks in the system
469
- • performance-report: Generate comprehensive performance reports
470
- • token-usage: Analyze token consumption and costs
471
-
472
- Helps with performance optimization, cost management, and resource allocation.`,
473
- });
474
- commandRegistry.set('automation', {
475
- handler: automationAction,
476
- description: 'Intelligent agent and workflow management with MLE-STAR and Claude integration',
477
- usage: 'automation <command> [options]',
478
- examples: [
479
- 'automation auto-agent --task-complexity enterprise --swarm-id swarm-123',
480
- 'automation smart-spawn --requirement "web-development" --max-agents 8',
481
- 'automation workflow-select --project-type api --priority speed',
482
- 'automation run-workflow my-workflow.json --claude --non-interactive',
483
- 'automation mle-star --dataset data/train.csv --target price --claude',
484
- ],
485
- details: `
486
- Automation commands:
487
- • auto-agent: Automatically spawn optimal agents based on task complexity
488
- • smart-spawn: Intelligently spawn agents based on specific requirements
489
- • workflow-select: Select and configure optimal workflows for project types
490
- • run-workflow: Execute workflows from JSON/YAML files with Claude integration
491
- • mle-star: Run MLE-STAR Machine Learning Engineering workflow (flagship)
492
-
493
- New features:
494
- • Claude CLI integration for actual execution
495
- • MLE-STAR methodology for ML engineering
496
- • Non-interactive mode for CI/CD integration
497
- • Comprehensive workflow templates
498
-
499
- Provides optimal resource allocation, intelligent agent selection, and complete automation workflows.`,
500
- });
501
- commandRegistry.set('coordination', {
502
- handler: coordinationAction,
503
- description: 'Swarm and agent orchestration',
504
- usage: 'coordination <command> [options]',
505
- examples: [
506
- 'coordination swarm-init --topology hierarchical --max-agents 8',
507
- 'coordination agent-spawn --type developer --name "api-dev" --swarm-id swarm-123',
508
- 'coordination task-orchestrate --task "Build REST API" --strategy parallel',
509
- ],
510
- details: `
511
- Coordination commands:
512
- • swarm-init: Initialize swarm coordination infrastructure
513
- • agent-spawn: Spawn and coordinate new agents
514
- • task-orchestrate: Orchestrate task execution across agents
515
-
516
- Enables intelligent task distribution, agent synchronization, and shared memory coordination.`,
517
- });
518
- commandRegistry.set('hooks', {
519
- handler: hooksAction,
520
- description: 'Lifecycle event management',
521
- usage: 'hooks <command> [options]',
522
- examples: [
523
- 'hooks pre-task --description "Build API" --task-id task-123',
524
- 'hooks post-task --task-id task-123 --analyze-performance --generate-insights',
525
- 'hooks session-end --export-metrics --generate-summary',
526
- ],
527
- details: `
528
- Hooks commands:
529
- • pre-task: Execute before task begins (preparation & setup)
530
- • post-task: Execute after task completion (analysis & cleanup)
531
- • pre-edit: Execute before file modifications (backup & validation)
532
- • post-edit: Execute after file modifications (tracking & coordination)
533
- • session-end: Execute at session termination (cleanup & export)
534
-
535
- Enables automated preparation & cleanup, performance tracking, and coordination synchronization.`,
536
- });
537
- commandRegistry.set('hook-safety', {
538
- handler: hookSafetyCommand,
539
- description: '🚨 Critical hook safety system - Prevent infinite loops & financial damage',
540
- usage: 'hook-safety <command> [options]',
541
- examples: [
542
- 'hook-safety validate # Check for dangerous hook configurations',
543
- 'hook-safety validate --config ~/.claude/settings.json',
544
- 'hook-safety status # View safety status and context',
545
- 'hook-safety reset # Reset circuit breakers',
546
- 'hook-safety safe-mode # Enable safe mode (skip all hooks)',
547
- ],
548
- details: `
549
- 🚨 CRITICAL: Stop hooks calling 'claude' commands create INFINITE LOOPS that can:
550
- • Bypass API rate limits
551
- • Cost thousands of dollars per day
552
- • Make your system unresponsive
553
-
554
- Hook Safety commands:
555
- • validate: Check Claude Code settings for dangerous patterns
556
- • status: Show current safety status and execution context
557
- • reset: Reset circuit breakers and execution counters
558
- • safe-mode: Enable/disable safe mode (skips all hooks)
559
-
560
- SAFE ALTERNATIVES:
561
- • Use PostToolUse hooks instead of Stop hooks
562
- • Implement flag-based update patterns
563
- • Use 'claude --skip-hooks' for manual updates
564
- • Create conditional execution scripts
565
-
566
- For more information: https://github.com/ruvnet/claude-flow/issues/166`,
567
- });
568
- commandRegistry.set('migrate-hooks', migrateHooksCommandConfig);
569
- commandRegistry.set('fix-hook-variables', {
570
- handler: fixHookVariablesCommand,
571
- ...fixHookVariablesCommandConfig,
572
- });
573
- // Verification system commands
574
- commandRegistry.set('verify', {
575
- handler: async (args, flags) => {
576
- try {
577
- const { verificationCommand } = await import('./simple-commands/verification.js');
578
- return await verificationCommand(args, flags);
579
- }
580
- catch (error) {
581
- console.error('❌ Error loading verification module:', error.message);
582
- console.log('Error details:', error);
583
- }
584
- },
585
- description: '🔍 Verification and truth enforcement system',
586
- usage: 'verify <subcommand> [options]',
587
- examples: [
588
- 'verify status # Show verification system status',
589
- 'verify check --taskId task-123 # Run verification checks',
590
- 'verify validate --taskId task-456 # Validate task results',
591
- 'verify config # Manage verification config',
592
- 'verify cleanup --force # Clean up old verification data',
593
- ],
594
- details: `
595
- Verification system commands:
596
- • status: Show current system status and health
597
- • check: Run verification checks on tasks
598
- • validate: Validate task completion and results
599
- • config: Manage verification configuration
600
- • cleanup: Clean up old verification data
601
- • pre-task: Execute pre-task verification
602
- • post-task: Execute post-task validation
603
- • integration: Run integration tests
604
- • truth: Execute truth telemetry checks
605
- • rollback: Trigger rollback if needed
606
-
607
- Truth enforcement features:
608
- • 0.95 minimum truth threshold
609
- • Cross-agent integration testing
610
- • Automated rollback on failures
611
- • Cryptographic verification
612
- • Byzantine fault tolerance`,
613
- });
614
- commandRegistry.set('truth', {
615
- handler: async (args, flags) => {
616
- try {
617
- const { truthCommand } = await import('./simple-commands/verification.js');
618
- return await truthCommand(args, flags);
619
- }
620
- catch (error) {
621
- console.error('❌ Error loading verification module:', error.message);
622
- console.log('Error details:', error);
623
- }
624
- },
625
- description: '🎯 Truth telemetry and accuracy scoring',
626
- usage: 'truth [options]',
627
- examples: [
628
- 'truth # Show current truth scores',
629
- 'truth --taskId task-123 # Check truth for specific task',
630
- 'truth --threshold 0.95 # Set minimum truth threshold',
631
- 'truth --report # Generate truth report',
632
- ],
633
- details: `
634
- Truth scoring system:
635
- • Real-time truth metrics collection
636
- • Agent performance scoring
637
- • System-wide truth accuracy tracking
638
- • Automated alerting for threshold violations
639
- • Dashboard data export functionality
640
-
641
- Target metrics:
642
- • >95% truth accuracy rate
643
- • <10% human intervention rate
644
- • >90% integration success rate
645
- • <5% automated rollback frequency`,
646
- });
647
- commandRegistry.set('neural', {
648
- handler: neuralCommand,
649
- description: '🧠 Neural module commands for SAFLA self-learning systems',
650
- usage: 'neural <command> [options]',
651
- examples: [
652
- 'neural init # Initialize neural module',
653
- 'neural init --force # Force overwrite existing',
654
- 'neural init --target ./agents # Custom location',
655
- ],
656
- details: `
657
- Neural Module Features:
658
- • Self-Aware Feedback Loop Algorithm (SAFLA)
659
- • 4-tier memory system (Vector, Episodic, Semantic, Working)
660
- • 172,000+ ops/sec processing with WASM optimization
661
- • 60% memory compression while maintaining recall
662
- • Cross-session learning and persistence
663
- • Distributed neural training with MCP integration`,
664
- });
665
- commandRegistry.set('goal', {
666
- handler: goalCommand,
667
- description: '🎯 Goal module commands for GOAP intelligent planning',
668
- usage: 'goal <command> [options]',
669
- examples: [
670
- 'goal init # Initialize goal module',
671
- 'goal init --force # Force overwrite existing',
672
- 'goal init --target ./agents # Custom location',
673
- ],
674
- details: `
675
- Goal Module Features:
676
- • Goal-Oriented Action Planning (GOAP) algorithm
677
- • A* pathfinding for optimal plan generation
678
- • OODA loop execution monitoring
679
- • Adaptive replanning on failures
680
- • Mixed LLM + code execution
681
- • Cost-optimized action sequences`,
682
- });
683
- commandRegistry.set('pair', {
684
- handler: async (args, flags) => {
685
- try {
686
- const pairCommand = (await import('./simple-commands/pair.js')).default;
687
- return await pairCommand(args, flags);
688
- }
689
- catch (error) {
690
- console.error('❌ Error loading pair module:', error.message);
691
- console.log('Error details:', error);
692
- }
693
- },
694
- description: '👥 Interactive pair programming with AI assistance',
695
- usage: 'pair [options]',
696
- examples: [
697
- 'pair --start # Start pair programming session',
698
- 'pair --start --mode driver # You write, AI assists',
699
- 'pair --start --verify --test # Enable verification and testing',
700
- 'pair --status # Show session status',
701
- 'pair --end # End current session',
702
- ],
703
- details: `
704
- Pair programming features:
705
- • Three modes: driver, navigator, switch
706
- • Real-time code assistance
707
- • Optional verification and testing
708
- • Session persistence
709
- • Background execution support`,
710
- });
711
- commandRegistry.set('verify-train', {
712
- handler: async (args, flags) => {
713
- try {
714
- const { verificationTrainingCommand } = await import('./simple-commands/verification-training-integration.js');
715
- return await verificationTrainingCommand(args, flags);
716
- }
717
- catch (error) {
718
- console.error('❌ Error loading verification-training module:', error.message);
719
- console.log('Error details:', error);
720
- }
721
- },
722
- description: '🧠 Verification-Training integration for continuous improvement',
723
- usage: 'verify-train <command> [options]',
724
- examples: [
725
- 'verify-train status # Show training status',
726
- 'verify-train feed # Feed verification data to training',
727
- 'verify-train predict coder # Predict verification outcome',
728
- 'verify-train recommend # Get agent recommendations',
729
- 'verify-train train # Trigger neural training',
730
- ],
731
- details: `
732
- Verification-Training Integration:
733
- • Feeds verification results to training system
734
- • Learns from agent performance over time
735
- • Predicts verification outcomes
736
- • Recommends best agents for tasks
737
- • Improves reliability through continuous learning`,
738
- });
739
- commandRegistry.set('train-pipeline', {
740
- handler: async (args, flags) => {
741
- try {
742
- // Always use real execution - no more simulation
743
- const { trainingPipelineCommand } = await import('./simple-commands/training-pipeline.js');
744
- return await trainingPipelineCommand(args, flags);
745
- }
746
- catch (error) {
747
- console.error('❌ Error loading training-pipeline module:', error.message);
748
- console.log('Error details:', error);
749
- }
750
- },
751
- description: '🚀 Real training pipeline with actual code execution and learning',
752
- usage: 'train-pipeline <command> [options]',
753
- examples: [
754
- 'train-pipeline run # Run training with real code',
755
- 'train-pipeline run --complexity hard --iterations 5',
756
- 'train-pipeline generate # Generate real training tasks',
757
- 'train-pipeline validate # Validate current performance',
758
- 'train-pipeline status # Show pipeline status with real metrics',
759
- ],
760
- details: `
761
- Real Training Pipeline Features:
762
- • Creates actual code files and tests
763
- • Runs real npm test commands
764
- • Learns from actual test results
765
- • Validates improvements with real metrics
766
- • Applies learned optimizations to production
767
-
768
- Pipeline Stages:
769
- 1. Generate real code tasks (easy/medium/hard)
770
- 2. Execute with different strategies using npm
771
- 3. Learn from real test results
772
- 4. Validate actual improvements
773
- 5. Apply to production configuration
774
-
775
- Options:
776
- --complexity <level> Task complexity (easy/medium/hard)
777
- --iterations <n> Number of training iterations`,
778
- });
779
- commandRegistry.set('stream-chain', {
780
- handler: async (args, flags) => {
781
- try {
782
- const { streamChainCommand } = await import('./simple-commands/stream-chain.js');
783
- return await streamChainCommand(args, flags);
784
- }
785
- catch (error) {
786
- console.error('❌ Error loading stream-chain module:', error.message);
787
- console.log('Error details:', error);
788
- }
789
- },
790
- description: '🔗 Connect multiple Claude instances via stream-json for chained workflows',
791
- usage: 'stream-chain <subcommand> [options]',
792
- examples: [
793
- 'stream-chain run "analyze" "design" "implement" # Custom chain',
794
- 'stream-chain demo # Run demo chain',
795
- 'stream-chain pipeline analysis # Run analysis pipeline',
796
- 'stream-chain test # Test stream connection',
797
- 'stream-chain help # Show detailed help',
798
- ],
799
- details: `
800
- 📚 SUBCOMMANDS
801
- run <p1> <p2> [...] Execute custom chain (min 2 prompts)
802
- demo Run 3-step demo chain
803
- pipeline <type> Run predefined pipeline (analysis/refactor/test/optimize)
804
- test Test stream connection
805
- help Show comprehensive documentation
806
-
807
- ⚙️ OPTIONS
808
- --verbose Show detailed execution info
809
- --timeout <seconds> Timeout per step (default: 30)
810
- --debug Enable debug mode
811
-
812
- 🔄 STREAM CHAINING
813
- Chains multiple Claude Code calls with context preservation:
814
- • Step 1 outputs stream-json → Step 2 receives context → Step 3...
815
- • 100% context preservation between steps
816
- • Real execution with Claude Code (not simulated)
817
-
818
- 🚀 PIPELINES
819
- analysis - Analyze → Identify issues → Generate report
820
- refactor - Find opportunities → Create plan → Apply changes
821
- test - Analyze coverage → Design cases → Generate tests
822
- optimize - Profile code → Find bottlenecks → Apply optimizations
823
-
824
- ⚡ PERFORMANCE
825
- • Latency: ~10-30s per step
826
- • Context: Full preservation
827
- • Streaming: No intermediate files
828
-
829
- 📖 For full documentation: stream-chain help`,
830
- });
831
- commandRegistry.set('hive', {
832
- handler: async (args, flags) => {
833
- try {
834
- // Try to load the hive command module
835
- const { hiveAction } = await import('./commands/hive.js');
836
- return hiveAction({ args, flags, command: 'hive' });
837
- }
838
- catch (error) {
839
- // Fallback to simple implementation if module not found
840
- console.log('🐝 Hive Mind - Advanced Multi-Agent Coordination');
841
- console.log('');
842
- console.log('The Hive Mind system provides:');
843
- console.log(' • Consensus-based decision making');
844
- console.log(' • Distributed task orchestration');
845
- console.log(' • Quality-driven execution');
846
- console.log(' • Real-time swarm monitoring');
847
- console.log('');
848
- console.log('Usage: hive <objective> [options]');
849
- console.log('');
850
- console.log('For full functionality, ensure the hive module is properly built.');
851
- }
852
- },
853
- description: 'Hive Mind - Advanced multi-agent swarm with consensus',
854
- usage: 'hive <objective> [options]',
855
- examples: [
856
- 'hive "Build microservices architecture"',
857
- 'hive "Optimize database performance" --consensus unanimous',
858
- 'hive "Develop ML pipeline" --topology mesh --monitor',
859
- 'hive "Create REST API" --sparc --max-agents 8',
860
- 'hive "Research cloud patterns" --background --quality-threshold 0.9',
861
- ],
862
- details: `
863
- Hive Mind features:
864
- • 👑 Queen-led orchestration with specialized agents
865
- • 🗳️ Consensus mechanisms (quorum, unanimous, weighted, leader)
866
- • 🏗️ Multiple topologies (hierarchical, mesh, ring, star)
867
- • 📊 Real-time monitoring dashboard
868
- • 🧪 SPARC methodology integration
869
- • 💾 Distributed memory and knowledge sharing
870
-
871
- Agent types:
872
- • Queen: Orchestrator and decision maker
873
- • Architect: System design and planning
874
- • Worker: Implementation and execution
875
- • Scout: Research and exploration
876
- • Guardian: Quality and validation
877
-
878
- Options:
879
- --topology <type> Swarm topology (default: hierarchical)
880
- --consensus <type> Decision mechanism (default: quorum)
881
- --max-agents <n> Maximum agents (default: 8)
882
- --quality-threshold <n> Min quality 0-1 (default: 0.8)
883
- --sparc Use SPARC methodology
884
- --monitor Real-time monitoring
885
- --background Run in background`,
886
- });
887
- // Temporarily commented out for Node.js compatibility
888
- /*
889
- commandRegistry.set('ruv-swarm', {
890
- handler: ruvSwarmAction,
891
- description: 'Advanced AI swarm coordination with neural capabilities',
892
- usage: 'ruv-swarm <command> [options]',
893
- examples: [
894
- 'ruv-swarm init --topology mesh --max-agents 8',
895
- 'ruv-swarm spawn researcher --name "AI Researcher"',
896
- 'ruv-swarm orchestrate "Build a REST API"',
897
- 'ruv-swarm neural train --iterations 20',
898
- 'ruv-swarm benchmark --type swarm',
899
- 'ruv-swarm config show',
900
- 'ruv-swarm status --verbose'
901
- ],
902
- details: `
903
- Advanced swarm coordination features:
904
- • 84.8% SWE-Bench solve rate
905
- • 32.3% token reduction through coordination
906
- • 2.8-4.4x speed improvement via parallel execution
907
- • 27+ neural models for cognitive approaches
908
- • Persistent memory across sessions
909
- • Automatic topology optimization
910
-
911
- Commands:
912
- init - Initialize swarm with specified topology
913
- status - Get current swarm status and metrics
914
- spawn - Spawn specialized agents (researcher, coder, analyst, etc.)
915
- orchestrate - Coordinate complex tasks across agents
916
- neural - Neural pattern training and management
917
- benchmark - Performance testing and optimization
918
- config - Configuration management
919
- memory - Memory usage and coordination data`
920
- });
921
- */
922
- // Additional ruv-swarm coordination commands - temporarily commented out
923
- /*
924
- commandRegistry.set('swarm-init', {
925
- handler: async (args, flags) => {
926
- const { ruvSwarmAction } = await import('./commands/ruv-swarm.js');
927
- return ruvSwarmAction({ args: ['init', ...args], flags });
928
- },
929
- description: 'Quick swarm initialization with topology selection',
930
- usage: 'swarm-init [--topology <type>] [--max-agents <n>] [--strategy <type>]',
931
- examples: [
932
- 'swarm-init --topology mesh --max-agents 8',
933
- 'swarm-init --topology hierarchical --strategy specialized',
934
- 'swarm-init --topology star --max-agents 5 --strategy balanced'
935
- ]
936
- });
937
-
938
- commandRegistry.set('neural-spawn', {
939
- handler: async (args, flags) => {
940
- const { ruvSwarmAction } = await import('./commands/ruv-swarm.js');
941
- return ruvSwarmAction({ args: ['spawn', ...args], flags });
942
- },
943
- description: 'Spawn neural agents with cognitive capabilities',
944
- usage: 'neural-spawn <type> [--name <name>] [--capabilities <list>]',
945
- examples: [
946
- 'neural-spawn researcher --name "Data Analyst"',
947
- 'neural-spawn coder --capabilities "typescript,react,api"',
948
- 'neural-spawn coordinator --name "Project Manager"'
949
- ]
950
- });
951
-
952
- commandRegistry.set('memory-coordinate', {
953
- handler: async (args, flags) => {
954
- const { ruvSwarmAction } = await import('./commands/ruv-swarm.js');
955
- return ruvSwarmAction({ args: ['memory', ...args], flags });
956
- },
957
- description: 'Coordinate memory across swarm agents',
958
- usage: 'memory-coordinate [--detail <level>] [--sync] [--compress]',
959
- examples: [
960
- 'memory-coordinate --detail summary',
961
- 'memory-coordinate --detail detailed --sync',
962
- 'memory-coordinate --compress --sync'
963
- ]
964
- });
965
-
966
- commandRegistry.set('config-integration', {
967
- handler: configIntegrationAction,
968
- description: 'Enhanced configuration management with ruv-swarm integration',
969
- usage: 'config-integration <command> [options]',
970
- examples: [
971
- 'config-integration setup --enable-ruv-swarm',
972
- 'config-integration preset development',
973
- 'config-integration sync --force',
974
- 'config-integration status --verbose',
975
- 'config-integration export my-config.json',
976
- 'config-integration validate --fix'
977
- ],
978
- details: `
979
- Advanced configuration management features:
980
- • Unified configuration across Claude-Flow and ruv-swarm
981
- • Configuration presets for different environments
982
- • Automatic synchronization between config systems
983
- • Import/export capabilities with validation
984
- • Real-time status monitoring and validation
985
-
986
- Presets:
987
- development - Hierarchical topology, specialized strategy, 8 agents
988
- research - Mesh topology, adaptive strategy, 12 agents
989
- production - Star topology, balanced strategy, 6 agents
990
-
991
- Commands:
992
- setup - Initialize ruv-swarm integration
993
- sync - Synchronize configurations
994
- status - Show integration status
995
- validate - Validate all configurations
996
- preset - Apply configuration preset
997
- export - Export unified configuration
998
- import - Import and apply configuration`
999
- });
1000
- */
1001
- }
1002
- // Register a new command
1003
- export function registerCommand(name, command) {
1004
- if (commandRegistry.has(name)) {
1005
- console.warn(`Command '${name}' already exists and will be overwritten`);
1006
- }
1007
- commandRegistry.set(name, {
1008
- handler: command.handler,
1009
- description: command.description || 'No description available',
1010
- usage: command.usage || `${name} [options]`,
1011
- examples: command.examples || [],
1012
- hidden: command.hidden || false,
1013
- });
1014
- }
1015
- // Get command handler
1016
- export function getCommand(name) {
1017
- return commandRegistry.get(name);
1018
- }
1019
- // List all registered commands
1020
- export function listCommands(includeHidden = false) {
1021
- const commands = [];
1022
- for (const [name, command] of commandRegistry.entries()) {
1023
- if (includeHidden || !command.hidden) {
1024
- commands.push({
1025
- name,
1026
- ...command,
1027
- });
1028
- }
1029
- }
1030
- return commands.sort((a, b) => a.name.localeCompare(b.name));
1031
- }
1032
- // Check if command exists
1033
- export function hasCommand(name) {
1034
- return commandRegistry.has(name);
1035
- }
1036
- // Execute a command
1037
- export async function executeCommand(name, subArgs, flags) {
1038
- const command = commandRegistry.get(name);
1039
- if (!command) {
1040
- throw new Error(`Unknown command: ${name}`);
1041
- }
1042
- try {
1043
- // Track command execution for performance metrics
1044
- await trackCommandExecution(name, command.handler, subArgs, flags);
1045
- }
1046
- catch (err) {
1047
- throw new Error(`Command '${name}' failed: ${err.message}`);
1048
- }
1049
- }
1050
- // Helper to show command help
1051
- export function showCommandHelp(name) {
1052
- const command = commandRegistry.get(name);
1053
- if (!command) {
1054
- console.log(HelpFormatter.formatError(`Unknown command: ${name}`, 'claude-flow', 'claude-flow <command> [options]'));
1055
- return;
1056
- }
1057
- // If command has custom help, call it with help flag
1058
- if (command.customHelp) {
1059
- command.handler(['--help'], { help: true });
1060
- return;
1061
- }
1062
- // Convert command info to standardized format
1063
- const helpInfo = {
1064
- name: `claude-flow ${name}`,
1065
- description: HelpFormatter.stripFormatting(command.description),
1066
- usage: `claude-flow ${command.usage}`,
1067
- details: command.details, // Pass through the details section
1068
- };
1069
- // Parse examples
1070
- if (command.examples && command.examples.length > 0) {
1071
- helpInfo.examples = command.examples.map((ex) => {
1072
- if (ex.startsWith('npx')) {
1073
- return ex;
1074
- }
1075
- return `claude-flow ${ex}`;
1076
- });
1077
- }
1078
- // Parse options from details if available
1079
- if (command.details) {
1080
- const optionsMatch = command.details.match(/Options:([\s\S]*?)(?=\n\n|$)/);
1081
- if (optionsMatch) {
1082
- const optionsText = optionsMatch[1];
1083
- const options = [];
1084
- const optionLines = optionsText.split('\n').filter((line) => line.trim());
1085
- for (const line of optionLines) {
1086
- const match = line.match(/^\s*(--.+?)\s{2,}(.+)$/);
1087
- if (match) {
1088
- let [_, flags, description] = match;
1089
- // Check for default value in description
1090
- const defaultMatch = description.match(/\(default: (.+?)\)/);
1091
- const option = {
1092
- flags: flags.trim(),
1093
- description: description.replace(/\(default: .+?\)/, '').trim(),
1094
- };
1095
- if (defaultMatch) {
1096
- option.defaultValue = defaultMatch[1];
1097
- }
1098
- options.push(option);
1099
- }
1100
- }
1101
- if (options.length > 0) {
1102
- helpInfo.options = options;
1103
- }
1104
- }
1105
- }
1106
- console.log(HelpFormatter.formatHelp(helpInfo));
1107
- }
1108
- // Helper to show all commands
1109
- export function showAllCommands() {
1110
- const commands = listCommands();
1111
- console.log('Available commands:');
1112
- console.log();
1113
- for (const command of commands) {
1114
- console.log(` ${command.name.padEnd(12)} ${command.description}`);
1115
- }
1116
- console.log();
1117
- console.log('Use "claude-flow help <command>" for detailed usage information');
1118
- }
1119
- // Initialize the command registry
1120
- registerCoreCommands();
1121
- // Initialize performance tracking
1122
- initializePerformanceTracking().catch(err => {
1123
- // Performance tracking is optional, don't fail if it errors
1124
- console.error('Failed to initialize performance tracking:', err.message);
1125
- });
1126
- //# sourceMappingURL=command-registry.js.map