claude-flow 2.0.0-alpha.45 → 2.0.0-alpha.49

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 (1411) hide show
  1. package/bin/claude-flow +1 -1
  2. package/package.json +1 -1
  3. package/src/cli/help-text.js +1 -1
  4. package/src/cli/index.ts +1 -1
  5. package/src/cli/node-repl.ts +2 -2
  6. package/src/cli/simple-cli.js +1 -1
  7. package/src/cli/simple-commands/init/index.js +14 -7
  8. package/src/cli/simple-commands/init/templates/CLAUDE.md +103 -22
  9. package/src/cli/simple-commands/init/templates/claude-md.js +182 -0
  10. package/src/mcp/mcp-server.js +1 -1
  11. package/src/memory/enhanced-memory-v2.js +320 -0
  12. package/src/memory/enhanced-memory.js +236 -264
  13. package/src/memory/enhanced-memory.js.bak +348 -0
  14. package/src/memory/fallback-store.js +93 -0
  15. package/src/memory/in-memory-store.js +210 -0
  16. package/dist/__tests__/features/mocks/MockFeatureManager.d.ts +0 -26
  17. package/dist/__tests__/features/mocks/MockFeatureManager.d.ts.map +0 -1
  18. package/dist/__tests__/features/mocks/MockFeatureManager.js +0 -200
  19. package/dist/__tests__/features/mocks/MockFeatureManager.js.map +0 -1
  20. package/dist/__tests__/features/setup.d.ts +0 -24
  21. package/dist/__tests__/features/setup.d.ts.map +0 -1
  22. package/dist/__tests__/features/setup.js +0 -42
  23. package/dist/__tests__/features/setup.js.map +0 -1
  24. package/dist/__tests__/features/utils/test-helpers.d.ts +0 -96
  25. package/dist/__tests__/features/utils/test-helpers.d.ts.map +0 -1
  26. package/dist/__tests__/features/utils/test-helpers.js +0 -281
  27. package/dist/__tests__/features/utils/test-helpers.js.map +0 -1
  28. package/dist/adapters/cliffy-node.d.ts +0 -45
  29. package/dist/adapters/cliffy-node.d.ts.map +0 -1
  30. package/dist/adapters/cliffy-node.js +0 -61
  31. package/dist/adapters/cliffy-node.js.map +0 -1
  32. package/dist/agents/agent-manager.d.ts +0 -191
  33. package/dist/agents/agent-manager.d.ts.map +0 -1
  34. package/dist/agents/agent-manager.js +0 -969
  35. package/dist/agents/agent-manager.js.map +0 -1
  36. package/dist/agents/agent-registry.d.ts +0 -112
  37. package/dist/agents/agent-registry.d.ts.map +0 -1
  38. package/dist/agents/agent-registry.js +0 -341
  39. package/dist/agents/agent-registry.js.map +0 -1
  40. package/dist/cli/agents/analyst.d.ts +0 -28
  41. package/dist/cli/agents/analyst.d.ts.map +0 -1
  42. package/dist/cli/agents/analyst.js +0 -718
  43. package/dist/cli/agents/analyst.js.map +0 -1
  44. package/dist/cli/agents/architect.d.ts +0 -27
  45. package/dist/cli/agents/architect.d.ts.map +0 -1
  46. package/dist/cli/agents/architect.js +0 -729
  47. package/dist/cli/agents/architect.js.map +0 -1
  48. package/dist/cli/agents/base-agent.d.ts +0 -80
  49. package/dist/cli/agents/base-agent.d.ts.map +0 -1
  50. package/dist/cli/agents/base-agent.js +0 -385
  51. package/dist/cli/agents/base-agent.js.map +0 -1
  52. package/dist/cli/agents/capabilities.d.ts +0 -106
  53. package/dist/cli/agents/capabilities.d.ts.map +0 -1
  54. package/dist/cli/agents/capabilities.js +0 -556
  55. package/dist/cli/agents/capabilities.js.map +0 -1
  56. package/dist/cli/agents/coder.d.ts +0 -34
  57. package/dist/cli/agents/coder.d.ts.map +0 -1
  58. package/dist/cli/agents/coder.js +0 -806
  59. package/dist/cli/agents/coder.js.map +0 -1
  60. package/dist/cli/agents/coordinator.d.ts +0 -25
  61. package/dist/cli/agents/coordinator.d.ts.map +0 -1
  62. package/dist/cli/agents/coordinator.js +0 -454
  63. package/dist/cli/agents/coordinator.js.map +0 -1
  64. package/dist/cli/agents/hive-agents.d.ts +0 -85
  65. package/dist/cli/agents/hive-agents.d.ts.map +0 -1
  66. package/dist/cli/agents/hive-agents.js +0 -549
  67. package/dist/cli/agents/hive-agents.js.map +0 -1
  68. package/dist/cli/agents/index.d.ts +0 -111
  69. package/dist/cli/agents/index.d.ts.map +0 -1
  70. package/dist/cli/agents/index.js +0 -276
  71. package/dist/cli/agents/index.js.map +0 -1
  72. package/dist/cli/agents/researcher.d.ts +0 -24
  73. package/dist/cli/agents/researcher.d.ts.map +0 -1
  74. package/dist/cli/agents/researcher.js +0 -356
  75. package/dist/cli/agents/researcher.js.map +0 -1
  76. package/dist/cli/agents/tester.d.ts +0 -27
  77. package/dist/cli/agents/tester.d.ts.map +0 -1
  78. package/dist/cli/agents/tester.js +0 -594
  79. package/dist/cli/agents/tester.js.map +0 -1
  80. package/dist/cli/cli-core.d.ts +0 -49
  81. package/dist/cli/cli-core.d.ts.map +0 -1
  82. package/dist/cli/cli-core.js +0 -263
  83. package/dist/cli/cli-core.js.map +0 -1
  84. package/dist/cli/command-registry.d.ts +0 -10
  85. package/dist/cli/command-registry.d.ts.map +0 -1
  86. package/dist/cli/command-registry.js +0 -703
  87. package/dist/cli/command-registry.js.map +0 -1
  88. package/dist/cli/commands/advanced-memory-commands.d.ts +0 -2
  89. package/dist/cli/commands/advanced-memory-commands.d.ts.map +0 -1
  90. package/dist/cli/commands/advanced-memory-commands.js +0 -849
  91. package/dist/cli/commands/advanced-memory-commands.js.map +0 -1
  92. package/dist/cli/commands/agent-simple.d.ts +0 -12
  93. package/dist/cli/commands/agent-simple.d.ts.map +0 -1
  94. package/dist/cli/commands/agent-simple.js +0 -353
  95. package/dist/cli/commands/agent-simple.js.map +0 -1
  96. package/dist/cli/commands/agent.d.ts +0 -7
  97. package/dist/cli/commands/agent.d.ts.map +0 -1
  98. package/dist/cli/commands/agent.js +0 -369
  99. package/dist/cli/commands/agent.js.map +0 -1
  100. package/dist/cli/commands/claude.d.ts +0 -3
  101. package/dist/cli/commands/claude.d.ts.map +0 -1
  102. package/dist/cli/commands/claude.js +0 -154
  103. package/dist/cli/commands/claude.js.map +0 -1
  104. package/dist/cli/commands/config-integration.d.ts +0 -10
  105. package/dist/cli/commands/config-integration.d.ts.map +0 -1
  106. package/dist/cli/commands/config-integration.js +0 -416
  107. package/dist/cli/commands/config-integration.js.map +0 -1
  108. package/dist/cli/commands/config.d.ts +0 -5
  109. package/dist/cli/commands/config.d.ts.map +0 -1
  110. package/dist/cli/commands/config.js +0 -89
  111. package/dist/cli/commands/config.js.map +0 -1
  112. package/dist/cli/commands/enterprise.d.ts +0 -3
  113. package/dist/cli/commands/enterprise.d.ts.map +0 -1
  114. package/dist/cli/commands/enterprise.js +0 -1486
  115. package/dist/cli/commands/enterprise.js.map +0 -1
  116. package/dist/cli/commands/features.d.ts +0 -3
  117. package/dist/cli/commands/features.d.ts.map +0 -1
  118. package/dist/cli/commands/features.js +0 -77
  119. package/dist/cli/commands/features.js.map +0 -1
  120. package/dist/cli/commands/help.d.ts +0 -6
  121. package/dist/cli/commands/help.d.ts.map +0 -1
  122. package/dist/cli/commands/help.js +0 -786
  123. package/dist/cli/commands/help.js.map +0 -1
  124. package/dist/cli/commands/hive-mind/index.d.ts +0 -15
  125. package/dist/cli/commands/hive-mind/index.d.ts.map +0 -1
  126. package/dist/cli/commands/hive-mind/index.js +0 -22
  127. package/dist/cli/commands/hive-mind/index.js.map +0 -1
  128. package/dist/cli/commands/hive-mind/init.d.ts +0 -10
  129. package/dist/cli/commands/hive-mind/init.d.ts.map +0 -1
  130. package/dist/cli/commands/hive-mind/init.js +0 -68
  131. package/dist/cli/commands/hive-mind/init.js.map +0 -1
  132. package/dist/cli/commands/hive-mind/optimize-memory.d.ts +0 -8
  133. package/dist/cli/commands/hive-mind/optimize-memory.d.ts.map +0 -1
  134. package/dist/cli/commands/hive-mind/optimize-memory.js +0 -391
  135. package/dist/cli/commands/hive-mind/optimize-memory.js.map +0 -1
  136. package/dist/cli/commands/hive-mind/spawn.d.ts +0 -10
  137. package/dist/cli/commands/hive-mind/spawn.d.ts.map +0 -1
  138. package/dist/cli/commands/hive-mind/spawn.js +0 -147
  139. package/dist/cli/commands/hive-mind/spawn.js.map +0 -1
  140. package/dist/cli/commands/hive-mind/status.d.ts +0 -10
  141. package/dist/cli/commands/hive-mind/status.d.ts.map +0 -1
  142. package/dist/cli/commands/hive-mind/status.js +0 -209
  143. package/dist/cli/commands/hive-mind/status.js.map +0 -1
  144. package/dist/cli/commands/hive-mind/task.d.ts +0 -10
  145. package/dist/cli/commands/hive-mind/task.d.ts.map +0 -1
  146. package/dist/cli/commands/hive-mind/task.js +0 -288
  147. package/dist/cli/commands/hive-mind/task.js.map +0 -1
  148. package/dist/cli/commands/hive-mind/wizard.d.ts +0 -10
  149. package/dist/cli/commands/hive-mind/wizard.d.ts.map +0 -1
  150. package/dist/cli/commands/hive-mind/wizard.js +0 -513
  151. package/dist/cli/commands/hive-mind/wizard.js.map +0 -1
  152. package/dist/cli/commands/hive.d.ts +0 -6
  153. package/dist/cli/commands/hive.d.ts.map +0 -1
  154. package/dist/cli/commands/hive.js +0 -374
  155. package/dist/cli/commands/hive.js.map +0 -1
  156. package/dist/cli/commands/hook-types.d.ts +0 -95
  157. package/dist/cli/commands/hook-types.d.ts.map +0 -1
  158. package/dist/cli/commands/hook-types.js +0 -5
  159. package/dist/cli/commands/hook-types.js.map +0 -1
  160. package/dist/cli/commands/hook-validator.d.ts +0 -18
  161. package/dist/cli/commands/hook-validator.d.ts.map +0 -1
  162. package/dist/cli/commands/hook-validator.js +0 -165
  163. package/dist/cli/commands/hook-validator.js.map +0 -1
  164. package/dist/cli/commands/hook.d.ts +0 -8
  165. package/dist/cli/commands/hook.d.ts.map +0 -1
  166. package/dist/cli/commands/hook.js +0 -299
  167. package/dist/cli/commands/hook.js.map +0 -1
  168. package/dist/cli/commands/index.d.ts +0 -3
  169. package/dist/cli/commands/index.d.ts.map +0 -1
  170. package/dist/cli/commands/index.js +0 -2450
  171. package/dist/cli/commands/index.js.map +0 -1
  172. package/dist/cli/commands/mcp.d.ts +0 -6
  173. package/dist/cli/commands/mcp.d.ts.map +0 -1
  174. package/dist/cli/commands/mcp.js +0 -177
  175. package/dist/cli/commands/mcp.js.map +0 -1
  176. package/dist/cli/commands/memory.d.ts +0 -30
  177. package/dist/cli/commands/memory.d.ts.map +0 -1
  178. package/dist/cli/commands/memory.js +0 -225
  179. package/dist/cli/commands/memory.js.map +0 -1
  180. package/dist/cli/commands/migrate.d.ts +0 -6
  181. package/dist/cli/commands/migrate.d.ts.map +0 -1
  182. package/dist/cli/commands/migrate.js +0 -139
  183. package/dist/cli/commands/migrate.js.map +0 -1
  184. package/dist/cli/commands/monitor.d.ts +0 -6
  185. package/dist/cli/commands/monitor.d.ts.map +0 -1
  186. package/dist/cli/commands/monitor.js +0 -477
  187. package/dist/cli/commands/monitor.js.map +0 -1
  188. package/dist/cli/commands/ruv-swarm.d.ts +0 -10
  189. package/dist/cli/commands/ruv-swarm.d.ts.map +0 -1
  190. package/dist/cli/commands/ruv-swarm.js +0 -563
  191. package/dist/cli/commands/ruv-swarm.js.map +0 -1
  192. package/dist/cli/commands/session.d.ts +0 -6
  193. package/dist/cli/commands/session.d.ts.map +0 -1
  194. package/dist/cli/commands/session.js +0 -543
  195. package/dist/cli/commands/session.js.map +0 -1
  196. package/dist/cli/commands/sparc.d.ts +0 -3
  197. package/dist/cli/commands/sparc.d.ts.map +0 -1
  198. package/dist/cli/commands/sparc.js +0 -452
  199. package/dist/cli/commands/sparc.js.map +0 -1
  200. package/dist/cli/commands/start/event-emitter.d.ts +0 -13
  201. package/dist/cli/commands/start/event-emitter.d.ts.map +0 -1
  202. package/dist/cli/commands/start/event-emitter.js +0 -35
  203. package/dist/cli/commands/start/event-emitter.js.map +0 -1
  204. package/dist/cli/commands/start/index.d.ts +0 -10
  205. package/dist/cli/commands/start/index.d.ts.map +0 -1
  206. package/dist/cli/commands/start/index.js +0 -9
  207. package/dist/cli/commands/start/index.js.map +0 -1
  208. package/dist/cli/commands/start/process-manager.d.ts +0 -31
  209. package/dist/cli/commands/start/process-manager.d.ts.map +0 -1
  210. package/dist/cli/commands/start/process-manager.js +0 -281
  211. package/dist/cli/commands/start/process-manager.js.map +0 -1
  212. package/dist/cli/commands/start/process-ui-simple.d.ts +0 -25
  213. package/dist/cli/commands/start/process-ui-simple.d.ts.map +0 -1
  214. package/dist/cli/commands/start/process-ui-simple.js +0 -334
  215. package/dist/cli/commands/start/process-ui-simple.js.map +0 -1
  216. package/dist/cli/commands/start/process-ui.d.ts +0 -5
  217. package/dist/cli/commands/start/process-ui.d.ts.map +0 -1
  218. package/dist/cli/commands/start/process-ui.js +0 -5
  219. package/dist/cli/commands/start/process-ui.js.map +0 -1
  220. package/dist/cli/commands/start/start-command.d.ts +0 -6
  221. package/dist/cli/commands/start/start-command.d.ts.map +0 -1
  222. package/dist/cli/commands/start/start-command.js +0 -450
  223. package/dist/cli/commands/start/start-command.js.map +0 -1
  224. package/dist/cli/commands/start/system-monitor.d.ts +0 -22
  225. package/dist/cli/commands/start/system-monitor.d.ts.map +0 -1
  226. package/dist/cli/commands/start/system-monitor.js +0 -267
  227. package/dist/cli/commands/start/system-monitor.js.map +0 -1
  228. package/dist/cli/commands/start/types.d.ts +0 -64
  229. package/dist/cli/commands/start/types.d.ts.map +0 -1
  230. package/dist/cli/commands/start/types.js +0 -22
  231. package/dist/cli/commands/start/types.js.map +0 -1
  232. package/dist/cli/commands/start.d.ts +0 -6
  233. package/dist/cli/commands/start.d.ts.map +0 -1
  234. package/dist/cli/commands/start.js +0 -6
  235. package/dist/cli/commands/start.js.map +0 -1
  236. package/dist/cli/commands/status.d.ts +0 -6
  237. package/dist/cli/commands/status.d.ts.map +0 -1
  238. package/dist/cli/commands/status.js +0 -312
  239. package/dist/cli/commands/status.js.map +0 -1
  240. package/dist/cli/commands/swarm-new.d.ts +0 -3
  241. package/dist/cli/commands/swarm-new.d.ts.map +0 -1
  242. package/dist/cli/commands/swarm-new.js +0 -1399
  243. package/dist/cli/commands/swarm-new.js.map +0 -1
  244. package/dist/cli/commands/swarm-spawn.d.ts +0 -24
  245. package/dist/cli/commands/swarm-spawn.d.ts.map +0 -1
  246. package/dist/cli/commands/swarm-spawn.js +0 -56
  247. package/dist/cli/commands/swarm-spawn.js.map +0 -1
  248. package/dist/cli/commands/swarm.d.ts +0 -3
  249. package/dist/cli/commands/swarm.d.ts.map +0 -1
  250. package/dist/cli/commands/swarm.js +0 -460
  251. package/dist/cli/commands/swarm.js.map +0 -1
  252. package/dist/cli/commands/task.d.ts +0 -6
  253. package/dist/cli/commands/task.d.ts.map +0 -1
  254. package/dist/cli/commands/task.js +0 -75
  255. package/dist/cli/commands/task.js.map +0 -1
  256. package/dist/cli/commands/workflow.d.ts +0 -6
  257. package/dist/cli/commands/workflow.d.ts.map +0 -1
  258. package/dist/cli/commands/workflow.js +0 -620
  259. package/dist/cli/commands/workflow.js.map +0 -1
  260. package/dist/cli/completion.d.ts +0 -16
  261. package/dist/cli/completion.d.ts.map +0 -1
  262. package/dist/cli/completion.js +0 -535
  263. package/dist/cli/completion.js.map +0 -1
  264. package/dist/cli/formatter.d.ts +0 -66
  265. package/dist/cli/formatter.d.ts.map +0 -1
  266. package/dist/cli/formatter.js +0 -277
  267. package/dist/cli/formatter.js.map +0 -1
  268. package/dist/cli/index-remote.d.ts +0 -3
  269. package/dist/cli/index-remote.d.ts.map +0 -1
  270. package/dist/cli/index-remote.js +0 -126
  271. package/dist/cli/index-remote.js.map +0 -1
  272. package/dist/cli/index.d.ts +0 -7
  273. package/dist/cli/index.d.ts.map +0 -1
  274. package/dist/cli/index.js +0 -197
  275. package/dist/cli/index.js.map +0 -1
  276. package/dist/cli/init/batch-tools.d.ts +0 -2
  277. package/dist/cli/init/batch-tools.d.ts.map +0 -1
  278. package/dist/cli/init/batch-tools.js +0 -387
  279. package/dist/cli/init/batch-tools.js.map +0 -1
  280. package/dist/cli/init/claude-config.d.ts +0 -3
  281. package/dist/cli/init/claude-config.d.ts.map +0 -1
  282. package/dist/cli/init/claude-config.js +0 -289
  283. package/dist/cli/init/claude-config.js.map +0 -1
  284. package/dist/cli/init/directory-structure.d.ts +0 -2
  285. package/dist/cli/init/directory-structure.d.ts.map +0 -1
  286. package/dist/cli/init/directory-structure.js +0 -144
  287. package/dist/cli/init/directory-structure.js.map +0 -1
  288. package/dist/cli/init/index.d.ts +0 -6
  289. package/dist/cli/init/index.d.ts.map +0 -1
  290. package/dist/cli/init/index.js +0 -52
  291. package/dist/cli/init/index.js.map +0 -1
  292. package/dist/cli/init/sparc-environment.d.ts +0 -2
  293. package/dist/cli/init/sparc-environment.d.ts.map +0 -1
  294. package/dist/cli/init/sparc-environment.js +0 -426
  295. package/dist/cli/init/sparc-environment.js.map +0 -1
  296. package/dist/cli/init/swarm-commands.d.ts +0 -2
  297. package/dist/cli/init/swarm-commands.d.ts.map +0 -1
  298. package/dist/cli/init/swarm-commands.js +0 -795
  299. package/dist/cli/init/swarm-commands.js.map +0 -1
  300. package/dist/cli/init/utils.d.ts +0 -5
  301. package/dist/cli/init/utils.d.ts.map +0 -1
  302. package/dist/cli/init/utils.js +0 -14
  303. package/dist/cli/init/utils.js.map +0 -1
  304. package/dist/cli/main.d.ts +0 -3
  305. package/dist/cli/main.d.ts.map +0 -1
  306. package/dist/cli/main.js +0 -26
  307. package/dist/cli/main.js.map +0 -1
  308. package/dist/cli/node-compat.d.ts +0 -66
  309. package/dist/cli/node-compat.d.ts.map +0 -1
  310. package/dist/cli/node-compat.js +0 -130
  311. package/dist/cli/node-compat.js.map +0 -1
  312. package/dist/cli/node-repl.d.ts +0 -5
  313. package/dist/cli/node-repl.d.ts.map +0 -1
  314. package/dist/cli/node-repl.js +0 -677
  315. package/dist/cli/node-repl.js.map +0 -1
  316. package/dist/cli/repl.d.ts +0 -5
  317. package/dist/cli/repl.d.ts.map +0 -1
  318. package/dist/cli/repl.js +0 -909
  319. package/dist/cli/repl.js.map +0 -1
  320. package/dist/cli/runtime-detector.d.ts +0 -128
  321. package/dist/cli/runtime-detector.d.ts.map +0 -1
  322. package/dist/cli/runtime-detector.js +0 -263
  323. package/dist/cli/runtime-detector.js.map +0 -1
  324. package/dist/cli/simple-cli.d.ts +0 -3
  325. package/dist/cli/simple-cli.d.ts.map +0 -1
  326. package/dist/cli/simple-cli.js +0 -3059
  327. package/dist/cli/simple-cli.js.map +0 -1
  328. package/dist/cli/simple-commands/agent.d.ts +0 -2
  329. package/dist/cli/simple-commands/agent.d.ts.map +0 -1
  330. package/dist/cli/simple-commands/agent.js +0 -175
  331. package/dist/cli/simple-commands/agent.js.map +0 -1
  332. package/dist/cli/simple-commands/analysis.d.ts +0 -2
  333. package/dist/cli/simple-commands/analysis.d.ts.map +0 -1
  334. package/dist/cli/simple-commands/analysis.js +0 -200
  335. package/dist/cli/simple-commands/analysis.js.map +0 -1
  336. package/dist/cli/simple-commands/automation.d.ts +0 -2
  337. package/dist/cli/simple-commands/automation.d.ts.map +0 -1
  338. package/dist/cli/simple-commands/automation.js +0 -231
  339. package/dist/cli/simple-commands/automation.js.map +0 -1
  340. package/dist/cli/simple-commands/batch-manager.d.ts +0 -2
  341. package/dist/cli/simple-commands/batch-manager.d.ts.map +0 -1
  342. package/dist/cli/simple-commands/batch-manager.js +0 -284
  343. package/dist/cli/simple-commands/batch-manager.js.map +0 -1
  344. package/dist/cli/simple-commands/config.d.ts +0 -2
  345. package/dist/cli/simple-commands/config.d.ts.map +0 -1
  346. package/dist/cli/simple-commands/config.js +0 -277
  347. package/dist/cli/simple-commands/config.js.map +0 -1
  348. package/dist/cli/simple-commands/coordination.d.ts +0 -2
  349. package/dist/cli/simple-commands/coordination.d.ts.map +0 -1
  350. package/dist/cli/simple-commands/coordination.js +0 -229
  351. package/dist/cli/simple-commands/coordination.js.map +0 -1
  352. package/dist/cli/simple-commands/features.d.ts +0 -2
  353. package/dist/cli/simple-commands/features.d.ts.map +0 -1
  354. package/dist/cli/simple-commands/features.js +0 -92
  355. package/dist/cli/simple-commands/features.js.map +0 -1
  356. package/dist/cli/simple-commands/github.d.ts +0 -3
  357. package/dist/cli/simple-commands/github.d.ts.map +0 -1
  358. package/dist/cli/simple-commands/github.js +0 -289
  359. package/dist/cli/simple-commands/github.js.map +0 -1
  360. package/dist/cli/simple-commands/hive-mind/communication.d.ts +0 -176
  361. package/dist/cli/simple-commands/hive-mind/communication.d.ts.map +0 -1
  362. package/dist/cli/simple-commands/hive-mind/communication.js +0 -614
  363. package/dist/cli/simple-commands/hive-mind/communication.js.map +0 -1
  364. package/dist/cli/simple-commands/hive-mind/core.d.ts +0 -306
  365. package/dist/cli/simple-commands/hive-mind/core.d.ts.map +0 -1
  366. package/dist/cli/simple-commands/hive-mind/core.js +0 -832
  367. package/dist/cli/simple-commands/hive-mind/core.js.map +0 -1
  368. package/dist/cli/simple-commands/hive-mind/db-optimizer.d.ts +0 -32
  369. package/dist/cli/simple-commands/hive-mind/db-optimizer.d.ts.map +0 -1
  370. package/dist/cli/simple-commands/hive-mind/db-optimizer.js +0 -647
  371. package/dist/cli/simple-commands/hive-mind/db-optimizer.js.map +0 -1
  372. package/dist/cli/simple-commands/hive-mind/mcp-wrapper.d.ts +0 -204
  373. package/dist/cli/simple-commands/hive-mind/mcp-wrapper.d.ts.map +0 -1
  374. package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js +0 -857
  375. package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js.map +0 -1
  376. package/dist/cli/simple-commands/hive-mind/memory.d.ts +0 -334
  377. package/dist/cli/simple-commands/hive-mind/memory.d.ts.map +0 -1
  378. package/dist/cli/simple-commands/hive-mind/memory.js +0 -1038
  379. package/dist/cli/simple-commands/hive-mind/memory.js.map +0 -1
  380. package/dist/cli/simple-commands/hive-mind/performance-optimizer.d.ts +0 -256
  381. package/dist/cli/simple-commands/hive-mind/performance-optimizer.d.ts.map +0 -1
  382. package/dist/cli/simple-commands/hive-mind/performance-optimizer.js +0 -518
  383. package/dist/cli/simple-commands/hive-mind/performance-optimizer.js.map +0 -1
  384. package/dist/cli/simple-commands/hive-mind/queen.d.ts +0 -294
  385. package/dist/cli/simple-commands/hive-mind/queen.d.ts.map +0 -1
  386. package/dist/cli/simple-commands/hive-mind/queen.js +0 -684
  387. package/dist/cli/simple-commands/hive-mind/queen.js.map +0 -1
  388. package/dist/cli/simple-commands/hive-mind-optimize.d.ts +0 -6
  389. package/dist/cli/simple-commands/hive-mind-optimize.d.ts.map +0 -1
  390. package/dist/cli/simple-commands/hive-mind-optimize.js +0 -317
  391. package/dist/cli/simple-commands/hive-mind-optimize.js.map +0 -1
  392. package/dist/cli/simple-commands/hive-mind.d.ts +0 -18
  393. package/dist/cli/simple-commands/hive-mind.d.ts.map +0 -1
  394. package/dist/cli/simple-commands/hive-mind.js +0 -1847
  395. package/dist/cli/simple-commands/hive-mind.js.map +0 -1
  396. package/dist/cli/simple-commands/hook-safety.d.ts +0 -177
  397. package/dist/cli/simple-commands/hook-safety.d.ts.map +0 -1
  398. package/dist/cli/simple-commands/hook-safety.js +0 -590
  399. package/dist/cli/simple-commands/hook-safety.js.map +0 -1
  400. package/dist/cli/simple-commands/hooks.d.ts +0 -3
  401. package/dist/cli/simple-commands/hooks.d.ts.map +0 -1
  402. package/dist/cli/simple-commands/hooks.js +0 -586
  403. package/dist/cli/simple-commands/hooks.js.map +0 -1
  404. package/dist/cli/simple-commands/init/batch-init.d.ts +0 -137
  405. package/dist/cli/simple-commands/init/batch-init.d.ts.map +0 -1
  406. package/dist/cli/simple-commands/init/batch-init.js +0 -550
  407. package/dist/cli/simple-commands/init/batch-init.js.map +0 -1
  408. package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.d.ts +0 -2
  409. package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.d.ts.map +0 -1
  410. package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.js +0 -432
  411. package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.js.map +0 -1
  412. package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.d.ts +0 -2
  413. package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.d.ts.map +0 -1
  414. package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.js +0 -870
  415. package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.js.map +0 -1
  416. package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.d.ts +0 -2
  417. package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.d.ts.map +0 -1
  418. package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.js +0 -309
  419. package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.js.map +0 -1
  420. package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.d.ts +0 -3
  421. package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.d.ts.map +0 -1
  422. package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js +0 -480
  423. package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js.map +0 -1
  424. package/dist/cli/simple-commands/init/claude-commands/slash-commands.d.ts +0 -2
  425. package/dist/cli/simple-commands/init/claude-commands/slash-commands.d.ts.map +0 -1
  426. package/dist/cli/simple-commands/init/claude-commands/slash-commands.js +0 -29
  427. package/dist/cli/simple-commands/init/claude-commands/slash-commands.js.map +0 -1
  428. package/dist/cli/simple-commands/init/claude-commands/sparc-commands.d.ts +0 -3
  429. package/dist/cli/simple-commands/init/claude-commands/sparc-commands.d.ts.map +0 -1
  430. package/dist/cli/simple-commands/init/claude-commands/sparc-commands.js +0 -205
  431. package/dist/cli/simple-commands/init/claude-commands/sparc-commands.js.map +0 -1
  432. package/dist/cli/simple-commands/init/executable-wrapper.d.ts +0 -2
  433. package/dist/cli/simple-commands/init/executable-wrapper.d.ts.map +0 -1
  434. package/dist/cli/simple-commands/init/executable-wrapper.js +0 -113
  435. package/dist/cli/simple-commands/init/executable-wrapper.js.map +0 -1
  436. package/dist/cli/simple-commands/init/help.d.ts +0 -2
  437. package/dist/cli/simple-commands/init/help.d.ts.map +0 -1
  438. package/dist/cli/simple-commands/init/help.js +0 -92
  439. package/dist/cli/simple-commands/init/help.js.map +0 -1
  440. package/dist/cli/simple-commands/init/index.d.ts +0 -2
  441. package/dist/cli/simple-commands/init/index.d.ts.map +0 -1
  442. package/dist/cli/simple-commands/init/index.js +0 -1042
  443. package/dist/cli/simple-commands/init/index.js.map +0 -1
  444. package/dist/cli/simple-commands/init/performance-monitor.d.ts +0 -73
  445. package/dist/cli/simple-commands/init/performance-monitor.d.ts.map +0 -1
  446. package/dist/cli/simple-commands/init/performance-monitor.js +0 -278
  447. package/dist/cli/simple-commands/init/performance-monitor.js.map +0 -1
  448. package/dist/cli/simple-commands/init/rollback/backup-manager.d.ts +0 -95
  449. package/dist/cli/simple-commands/init/rollback/backup-manager.d.ts.map +0 -1
  450. package/dist/cli/simple-commands/init/rollback/backup-manager.js +0 -491
  451. package/dist/cli/simple-commands/init/rollback/backup-manager.js.map +0 -1
  452. package/dist/cli/simple-commands/init/rollback/index.d.ts +0 -114
  453. package/dist/cli/simple-commands/init/rollback/index.d.ts.map +0 -1
  454. package/dist/cli/simple-commands/init/rollback/index.js +0 -350
  455. package/dist/cli/simple-commands/init/rollback/index.js.map +0 -1
  456. package/dist/cli/simple-commands/init/rollback/recovery-manager.d.ts +0 -161
  457. package/dist/cli/simple-commands/init/rollback/recovery-manager.d.ts.map +0 -1
  458. package/dist/cli/simple-commands/init/rollback/recovery-manager.js +0 -705
  459. package/dist/cli/simple-commands/init/rollback/recovery-manager.js.map +0 -1
  460. package/dist/cli/simple-commands/init/rollback/rollback-executor.d.ts +0 -112
  461. package/dist/cli/simple-commands/init/rollback/rollback-executor.d.ts.map +0 -1
  462. package/dist/cli/simple-commands/init/rollback/rollback-executor.js +0 -487
  463. package/dist/cli/simple-commands/init/rollback/rollback-executor.js.map +0 -1
  464. package/dist/cli/simple-commands/init/rollback/state-tracker.d.ts +0 -121
  465. package/dist/cli/simple-commands/init/rollback/state-tracker.d.ts.map +0 -1
  466. package/dist/cli/simple-commands/init/rollback/state-tracker.js +0 -431
  467. package/dist/cli/simple-commands/init/rollback/state-tracker.js.map +0 -1
  468. package/dist/cli/simple-commands/init/sparc/roo-readme.d.ts +0 -2
  469. package/dist/cli/simple-commands/init/sparc/roo-readme.d.ts.map +0 -1
  470. package/dist/cli/simple-commands/init/sparc/roo-readme.js +0 -61
  471. package/dist/cli/simple-commands/init/sparc/roo-readme.js.map +0 -1
  472. package/dist/cli/simple-commands/init/sparc/roomodes-config.d.ts +0 -2
  473. package/dist/cli/simple-commands/init/sparc/roomodes-config.d.ts.map +0 -1
  474. package/dist/cli/simple-commands/init/sparc/roomodes-config.js +0 -80
  475. package/dist/cli/simple-commands/init/sparc/roomodes-config.js.map +0 -1
  476. package/dist/cli/simple-commands/init/sparc/workflows.d.ts +0 -2
  477. package/dist/cli/simple-commands/init/sparc/workflows.d.ts.map +0 -1
  478. package/dist/cli/simple-commands/init/sparc/workflows.js +0 -36
  479. package/dist/cli/simple-commands/init/sparc/workflows.js.map +0 -1
  480. package/dist/cli/simple-commands/init/sparc-structure.d.ts +0 -2
  481. package/dist/cli/simple-commands/init/sparc-structure.d.ts.map +0 -1
  482. package/dist/cli/simple-commands/init/sparc-structure.js +0 -61
  483. package/dist/cli/simple-commands/init/sparc-structure.js.map +0 -1
  484. package/dist/cli/simple-commands/init/templates/claude-md.d.ts +0 -5
  485. package/dist/cli/simple-commands/init/templates/claude-md.d.ts.map +0 -1
  486. package/dist/cli/simple-commands/init/templates/claude-md.js +0 -464
  487. package/dist/cli/simple-commands/init/templates/claude-md.js.map +0 -1
  488. package/dist/cli/simple-commands/init/templates/coordination-md.d.ts +0 -4
  489. package/dist/cli/simple-commands/init/templates/coordination-md.d.ts.map +0 -1
  490. package/dist/cli/simple-commands/init/templates/coordination-md.js +0 -338
  491. package/dist/cli/simple-commands/init/templates/coordination-md.js.map +0 -1
  492. package/dist/cli/simple-commands/init/templates/enhanced-templates.d.ts +0 -18
  493. package/dist/cli/simple-commands/init/templates/enhanced-templates.d.ts.map +0 -1
  494. package/dist/cli/simple-commands/init/templates/enhanced-templates.js +0 -1315
  495. package/dist/cli/simple-commands/init/templates/enhanced-templates.js.map +0 -1
  496. package/dist/cli/simple-commands/init/templates/memory-bank-md.d.ts +0 -4
  497. package/dist/cli/simple-commands/init/templates/memory-bank-md.d.ts.map +0 -1
  498. package/dist/cli/simple-commands/init/templates/memory-bank-md.js +0 -257
  499. package/dist/cli/simple-commands/init/templates/memory-bank-md.js.map +0 -1
  500. package/dist/cli/simple-commands/init/templates/readme-files.d.ts +0 -3
  501. package/dist/cli/simple-commands/init/templates/readme-files.d.ts.map +0 -1
  502. package/dist/cli/simple-commands/init/templates/readme-files.js +0 -71
  503. package/dist/cli/simple-commands/init/templates/readme-files.js.map +0 -1
  504. package/dist/cli/simple-commands/init/templates/sparc-modes.d.ts +0 -30
  505. package/dist/cli/simple-commands/init/templates/sparc-modes.d.ts.map +0 -1
  506. package/dist/cli/simple-commands/init/templates/sparc-modes.js +0 -764
  507. package/dist/cli/simple-commands/init/templates/sparc-modes.js.map +0 -1
  508. package/dist/cli/simple-commands/init/validation/config-validator.d.ts +0 -63
  509. package/dist/cli/simple-commands/init/validation/config-validator.d.ts.map +0 -1
  510. package/dist/cli/simple-commands/init/validation/config-validator.js +0 -311
  511. package/dist/cli/simple-commands/init/validation/config-validator.js.map +0 -1
  512. package/dist/cli/simple-commands/init/validation/health-checker.d.ts +0 -117
  513. package/dist/cli/simple-commands/init/validation/health-checker.d.ts.map +0 -1
  514. package/dist/cli/simple-commands/init/validation/health-checker.js +0 -540
  515. package/dist/cli/simple-commands/init/validation/health-checker.js.map +0 -1
  516. package/dist/cli/simple-commands/init/validation/index.d.ts +0 -55
  517. package/dist/cli/simple-commands/init/validation/index.d.ts.map +0 -1
  518. package/dist/cli/simple-commands/init/validation/index.js +0 -347
  519. package/dist/cli/simple-commands/init/validation/index.js.map +0 -1
  520. package/dist/cli/simple-commands/init/validation/mode-validator.d.ts +0 -76
  521. package/dist/cli/simple-commands/init/validation/mode-validator.d.ts.map +0 -1
  522. package/dist/cli/simple-commands/init/validation/mode-validator.js +0 -342
  523. package/dist/cli/simple-commands/init/validation/mode-validator.js.map +0 -1
  524. package/dist/cli/simple-commands/init/validation/post-init-validator.d.ts +0 -62
  525. package/dist/cli/simple-commands/init/validation/post-init-validator.d.ts.map +0 -1
  526. package/dist/cli/simple-commands/init/validation/post-init-validator.js +0 -348
  527. package/dist/cli/simple-commands/init/validation/post-init-validator.js.map +0 -1
  528. package/dist/cli/simple-commands/init/validation/pre-init-validator.d.ts +0 -86
  529. package/dist/cli/simple-commands/init/validation/pre-init-validator.d.ts.map +0 -1
  530. package/dist/cli/simple-commands/init/validation/pre-init-validator.js +0 -265
  531. package/dist/cli/simple-commands/init/validation/pre-init-validator.js.map +0 -1
  532. package/dist/cli/simple-commands/mcp.d.ts +0 -2
  533. package/dist/cli/simple-commands/mcp.d.ts.map +0 -1
  534. package/dist/cli/simple-commands/mcp.js +0 -358
  535. package/dist/cli/simple-commands/mcp.js.map +0 -1
  536. package/dist/cli/simple-commands/memory.d.ts +0 -2
  537. package/dist/cli/simple-commands/memory.d.ts.map +0 -1
  538. package/dist/cli/simple-commands/memory.js +0 -277
  539. package/dist/cli/simple-commands/memory.js.map +0 -1
  540. package/dist/cli/simple-commands/monitor.d.ts +0 -3
  541. package/dist/cli/simple-commands/monitor.d.ts.map +0 -1
  542. package/dist/cli/simple-commands/monitor.js +0 -157
  543. package/dist/cli/simple-commands/monitor.js.map +0 -1
  544. package/dist/cli/simple-commands/process-ui-enhanced.d.ts +0 -55
  545. package/dist/cli/simple-commands/process-ui-enhanced.d.ts.map +0 -1
  546. package/dist/cli/simple-commands/process-ui-enhanced.js +0 -666
  547. package/dist/cli/simple-commands/process-ui-enhanced.js.map +0 -1
  548. package/dist/cli/simple-commands/sparc-modes/architect.d.ts +0 -2
  549. package/dist/cli/simple-commands/sparc-modes/architect.d.ts.map +0 -1
  550. package/dist/cli/simple-commands/sparc-modes/architect.js +0 -126
  551. package/dist/cli/simple-commands/sparc-modes/architect.js.map +0 -1
  552. package/dist/cli/simple-commands/sparc-modes/ask.d.ts +0 -2
  553. package/dist/cli/simple-commands/sparc-modes/ask.d.ts.map +0 -1
  554. package/dist/cli/simple-commands/sparc-modes/ask.js +0 -127
  555. package/dist/cli/simple-commands/sparc-modes/ask.js.map +0 -1
  556. package/dist/cli/simple-commands/sparc-modes/code.d.ts +0 -2
  557. package/dist/cli/simple-commands/sparc-modes/code.d.ts.map +0 -1
  558. package/dist/cli/simple-commands/sparc-modes/code.js +0 -149
  559. package/dist/cli/simple-commands/sparc-modes/code.js.map +0 -1
  560. package/dist/cli/simple-commands/sparc-modes/debug.d.ts +0 -2
  561. package/dist/cli/simple-commands/sparc-modes/debug.d.ts.map +0 -1
  562. package/dist/cli/simple-commands/sparc-modes/debug.js +0 -113
  563. package/dist/cli/simple-commands/sparc-modes/debug.js.map +0 -1
  564. package/dist/cli/simple-commands/sparc-modes/devops.d.ts +0 -2
  565. package/dist/cli/simple-commands/sparc-modes/devops.d.ts.map +0 -1
  566. package/dist/cli/simple-commands/sparc-modes/devops.js +0 -138
  567. package/dist/cli/simple-commands/sparc-modes/devops.js.map +0 -1
  568. package/dist/cli/simple-commands/sparc-modes/docs-writer.d.ts +0 -2
  569. package/dist/cli/simple-commands/sparc-modes/docs-writer.d.ts.map +0 -1
  570. package/dist/cli/simple-commands/sparc-modes/docs-writer.js +0 -39
  571. package/dist/cli/simple-commands/sparc-modes/docs-writer.js.map +0 -1
  572. package/dist/cli/simple-commands/sparc-modes/generic.d.ts +0 -2
  573. package/dist/cli/simple-commands/sparc-modes/generic.d.ts.map +0 -1
  574. package/dist/cli/simple-commands/sparc-modes/generic.js +0 -35
  575. package/dist/cli/simple-commands/sparc-modes/generic.js.map +0 -1
  576. package/dist/cli/simple-commands/sparc-modes/index.d.ts +0 -17
  577. package/dist/cli/simple-commands/sparc-modes/index.d.ts.map +0 -1
  578. package/dist/cli/simple-commands/sparc-modes/index.js +0 -196
  579. package/dist/cli/simple-commands/sparc-modes/index.js.map +0 -1
  580. package/dist/cli/simple-commands/sparc-modes/integration.d.ts +0 -2
  581. package/dist/cli/simple-commands/sparc-modes/integration.d.ts.map +0 -1
  582. package/dist/cli/simple-commands/sparc-modes/integration.js +0 -56
  583. package/dist/cli/simple-commands/sparc-modes/integration.js.map +0 -1
  584. package/dist/cli/simple-commands/sparc-modes/mcp.d.ts +0 -2
  585. package/dist/cli/simple-commands/sparc-modes/mcp.d.ts.map +0 -1
  586. package/dist/cli/simple-commands/sparc-modes/mcp.js +0 -39
  587. package/dist/cli/simple-commands/sparc-modes/mcp.js.map +0 -1
  588. package/dist/cli/simple-commands/sparc-modes/monitoring.d.ts +0 -2
  589. package/dist/cli/simple-commands/sparc-modes/monitoring.d.ts.map +0 -1
  590. package/dist/cli/simple-commands/sparc-modes/monitoring.js +0 -39
  591. package/dist/cli/simple-commands/sparc-modes/monitoring.js.map +0 -1
  592. package/dist/cli/simple-commands/sparc-modes/optimization.d.ts +0 -2
  593. package/dist/cli/simple-commands/sparc-modes/optimization.d.ts.map +0 -1
  594. package/dist/cli/simple-commands/sparc-modes/optimization.js +0 -39
  595. package/dist/cli/simple-commands/sparc-modes/optimization.js.map +0 -1
  596. package/dist/cli/simple-commands/sparc-modes/security-review.d.ts +0 -2
  597. package/dist/cli/simple-commands/sparc-modes/security-review.d.ts.map +0 -1
  598. package/dist/cli/simple-commands/sparc-modes/security-review.js +0 -131
  599. package/dist/cli/simple-commands/sparc-modes/security-review.js.map +0 -1
  600. package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.d.ts +0 -2
  601. package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.d.ts.map +0 -1
  602. package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.js +0 -168
  603. package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.js.map +0 -1
  604. package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.d.ts +0 -2
  605. package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.d.ts.map +0 -1
  606. package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.js +0 -39
  607. package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.js.map +0 -1
  608. package/dist/cli/simple-commands/sparc-modes/supabase-admin.d.ts +0 -2
  609. package/dist/cli/simple-commands/sparc-modes/supabase-admin.d.ts.map +0 -1
  610. package/dist/cli/simple-commands/sparc-modes/supabase-admin.js +0 -150
  611. package/dist/cli/simple-commands/sparc-modes/supabase-admin.js.map +0 -1
  612. package/dist/cli/simple-commands/sparc-modes/swarm.d.ts +0 -81
  613. package/dist/cli/simple-commands/sparc-modes/swarm.d.ts.map +0 -1
  614. package/dist/cli/simple-commands/sparc-modes/swarm.js +0 -428
  615. package/dist/cli/simple-commands/sparc-modes/swarm.js.map +0 -1
  616. package/dist/cli/simple-commands/sparc-modes/tdd.d.ts +0 -2
  617. package/dist/cli/simple-commands/sparc-modes/tdd.d.ts.map +0 -1
  618. package/dist/cli/simple-commands/sparc-modes/tdd.js +0 -113
  619. package/dist/cli/simple-commands/sparc-modes/tdd.js.map +0 -1
  620. package/dist/cli/simple-commands/sparc-modes/tutorial.d.ts +0 -2
  621. package/dist/cli/simple-commands/sparc-modes/tutorial.d.ts.map +0 -1
  622. package/dist/cli/simple-commands/sparc-modes/tutorial.js +0 -278
  623. package/dist/cli/simple-commands/sparc-modes/tutorial.js.map +0 -1
  624. package/dist/cli/simple-commands/sparc.d.ts +0 -2
  625. package/dist/cli/simple-commands/sparc.d.ts.map +0 -1
  626. package/dist/cli/simple-commands/sparc.js +0 -468
  627. package/dist/cli/simple-commands/sparc.js.map +0 -1
  628. package/dist/cli/simple-commands/start-ui.d.ts +0 -2
  629. package/dist/cli/simple-commands/start-ui.d.ts.map +0 -1
  630. package/dist/cli/simple-commands/start-ui.js +0 -133
  631. package/dist/cli/simple-commands/start-ui.js.map +0 -1
  632. package/dist/cli/simple-commands/start-wrapper.d.ts +0 -2
  633. package/dist/cli/simple-commands/start-wrapper.d.ts.map +0 -1
  634. package/dist/cli/simple-commands/start-wrapper.js +0 -263
  635. package/dist/cli/simple-commands/start-wrapper.js.map +0 -1
  636. package/dist/cli/simple-commands/start.d.ts +0 -2
  637. package/dist/cli/simple-commands/start.d.ts.map +0 -1
  638. package/dist/cli/simple-commands/start.js +0 -3
  639. package/dist/cli/simple-commands/start.js.map +0 -1
  640. package/dist/cli/simple-commands/status.d.ts +0 -2
  641. package/dist/cli/simple-commands/status.d.ts.map +0 -1
  642. package/dist/cli/simple-commands/status.js +0 -273
  643. package/dist/cli/simple-commands/status.js.map +0 -1
  644. package/dist/cli/simple-commands/swarm-executor.d.ts +0 -68
  645. package/dist/cli/simple-commands/swarm-executor.d.ts.map +0 -1
  646. package/dist/cli/simple-commands/swarm-executor.js +0 -212
  647. package/dist/cli/simple-commands/swarm-executor.js.map +0 -1
  648. package/dist/cli/simple-commands/swarm-metrics-integration.d.ts +0 -69
  649. package/dist/cli/simple-commands/swarm-metrics-integration.d.ts.map +0 -1
  650. package/dist/cli/simple-commands/swarm-metrics-integration.js +0 -285
  651. package/dist/cli/simple-commands/swarm-metrics-integration.js.map +0 -1
  652. package/dist/cli/simple-commands/swarm-webui-integration.d.ts +0 -68
  653. package/dist/cli/simple-commands/swarm-webui-integration.d.ts.map +0 -1
  654. package/dist/cli/simple-commands/swarm-webui-integration.js +0 -253
  655. package/dist/cli/simple-commands/swarm-webui-integration.js.map +0 -1
  656. package/dist/cli/simple-commands/swarm.d.ts +0 -2
  657. package/dist/cli/simple-commands/swarm.d.ts.map +0 -1
  658. package/dist/cli/simple-commands/swarm.js +0 -1675
  659. package/dist/cli/simple-commands/swarm.js.map +0 -1
  660. package/dist/cli/simple-commands/task.d.ts +0 -2
  661. package/dist/cli/simple-commands/task.d.ts.map +0 -1
  662. package/dist/cli/simple-commands/task.js +0 -145
  663. package/dist/cli/simple-commands/task.js.map +0 -1
  664. package/dist/cli/simple-commands/training.d.ts +0 -2
  665. package/dist/cli/simple-commands/training.d.ts.map +0 -1
  666. package/dist/cli/simple-commands/training.js +0 -240
  667. package/dist/cli/simple-commands/training.js.map +0 -1
  668. package/dist/cli/simple-commands/web-server.d.ts +0 -152
  669. package/dist/cli/simple-commands/web-server.d.ts.map +0 -1
  670. package/dist/cli/simple-commands/web-server.js +0 -814
  671. package/dist/cli/simple-commands/web-server.js.map +0 -1
  672. package/dist/cli/simple-mcp.d.ts +0 -6
  673. package/dist/cli/simple-mcp.d.ts.map +0 -1
  674. package/dist/cli/simple-mcp.js +0 -107
  675. package/dist/cli/simple-mcp.js.map +0 -1
  676. package/dist/cli/simple-orchestrator.d.ts +0 -16
  677. package/dist/cli/simple-orchestrator.d.ts.map +0 -1
  678. package/dist/cli/simple-orchestrator.js +0 -833
  679. package/dist/cli/simple-orchestrator.js.map +0 -1
  680. package/dist/cli/ui/compatible-ui.d.ts +0 -45
  681. package/dist/cli/ui/compatible-ui.d.ts.map +0 -1
  682. package/dist/cli/ui/compatible-ui.js +0 -318
  683. package/dist/cli/ui/compatible-ui.js.map +0 -1
  684. package/dist/cli/ui/fallback-handler.d.ts +0 -26
  685. package/dist/cli/ui/fallback-handler.d.ts.map +0 -1
  686. package/dist/cli/ui/fallback-handler.js +0 -166
  687. package/dist/cli/ui/fallback-handler.js.map +0 -1
  688. package/dist/cli/ui/index.d.ts +0 -11
  689. package/dist/cli/ui/index.d.ts.map +0 -1
  690. package/dist/cli/ui/index.js +0 -33
  691. package/dist/cli/ui/index.js.map +0 -1
  692. package/dist/cli/utils/environment-detector.d.ts +0 -54
  693. package/dist/cli/utils/environment-detector.d.ts.map +0 -1
  694. package/dist/cli/utils/environment-detector.js +0 -265
  695. package/dist/cli/utils/environment-detector.js.map +0 -1
  696. package/dist/cli/utils/interactive-detector.d.ts +0 -25
  697. package/dist/cli/utils/interactive-detector.d.ts.map +0 -1
  698. package/dist/cli/utils/interactive-detector.js +0 -129
  699. package/dist/cli/utils/interactive-detector.js.map +0 -1
  700. package/dist/cli/utils/prompt-defaults.d.ts +0 -82
  701. package/dist/cli/utils/prompt-defaults.d.ts.map +0 -1
  702. package/dist/cli/utils/prompt-defaults.js +0 -253
  703. package/dist/cli/utils/prompt-defaults.js.map +0 -1
  704. package/dist/cli/utils/safe-interactive.d.ts +0 -30
  705. package/dist/cli/utils/safe-interactive.d.ts.map +0 -1
  706. package/dist/cli/utils/safe-interactive.js +0 -133
  707. package/dist/cli/utils/safe-interactive.js.map +0 -1
  708. package/dist/cli/utils.d.ts +0 -74
  709. package/dist/cli/utils.d.ts.map +0 -1
  710. package/dist/cli/utils.js +0 -570
  711. package/dist/cli/utils.js.map +0 -1
  712. package/dist/communication/message-bus.d.ts +0 -283
  713. package/dist/communication/message-bus.d.ts.map +0 -1
  714. package/dist/communication/message-bus.js +0 -959
  715. package/dist/communication/message-bus.js.map +0 -1
  716. package/dist/config/config-manager.d.ts +0 -174
  717. package/dist/config/config-manager.d.ts.map +0 -1
  718. package/dist/config/config-manager.js +0 -443
  719. package/dist/config/config-manager.js.map +0 -1
  720. package/dist/config/ruv-swarm-config.d.ts +0 -167
  721. package/dist/config/ruv-swarm-config.d.ts.map +0 -1
  722. package/dist/config/ruv-swarm-config.js +0 -274
  723. package/dist/config/ruv-swarm-config.js.map +0 -1
  724. package/dist/config/ruv-swarm-integration.d.ts +0 -93
  725. package/dist/config/ruv-swarm-integration.d.ts.map +0 -1
  726. package/dist/config/ruv-swarm-integration.js +0 -292
  727. package/dist/config/ruv-swarm-integration.js.map +0 -1
  728. package/dist/constants/agent-types.d.ts +0 -46
  729. package/dist/constants/agent-types.d.ts.map +0 -1
  730. package/dist/constants/agent-types.js +0 -50
  731. package/dist/constants/agent-types.js.map +0 -1
  732. package/dist/coordination/advanced-scheduler.d.ts +0 -121
  733. package/dist/coordination/advanced-scheduler.d.ts.map +0 -1
  734. package/dist/coordination/advanced-scheduler.js +0 -386
  735. package/dist/coordination/advanced-scheduler.js.map +0 -1
  736. package/dist/coordination/advanced-task-executor.d.ts +0 -100
  737. package/dist/coordination/advanced-task-executor.d.ts.map +0 -1
  738. package/dist/coordination/advanced-task-executor.js +0 -463
  739. package/dist/coordination/advanced-task-executor.js.map +0 -1
  740. package/dist/coordination/background-executor.d.ts +0 -69
  741. package/dist/coordination/background-executor.d.ts.map +0 -1
  742. package/dist/coordination/background-executor.js +0 -362
  743. package/dist/coordination/background-executor.js.map +0 -1
  744. package/dist/coordination/circuit-breaker.d.ts +0 -124
  745. package/dist/coordination/circuit-breaker.d.ts.map +0 -1
  746. package/dist/coordination/circuit-breaker.js +0 -298
  747. package/dist/coordination/circuit-breaker.js.map +0 -1
  748. package/dist/coordination/conflict-resolution.d.ts +0 -133
  749. package/dist/coordination/conflict-resolution.d.ts.map +0 -1
  750. package/dist/coordination/conflict-resolution.js +0 -358
  751. package/dist/coordination/conflict-resolution.js.map +0 -1
  752. package/dist/coordination/dependency-graph.d.ts +0 -78
  753. package/dist/coordination/dependency-graph.d.ts.map +0 -1
  754. package/dist/coordination/dependency-graph.js +0 -386
  755. package/dist/coordination/dependency-graph.js.map +0 -1
  756. package/dist/coordination/hive-orchestrator.d.ts +0 -118
  757. package/dist/coordination/hive-orchestrator.d.ts.map +0 -1
  758. package/dist/coordination/hive-orchestrator.js +0 -321
  759. package/dist/coordination/hive-orchestrator.js.map +0 -1
  760. package/dist/coordination/hive-protocol.d.ts +0 -117
  761. package/dist/coordination/hive-protocol.d.ts.map +0 -1
  762. package/dist/coordination/hive-protocol.js +0 -373
  763. package/dist/coordination/hive-protocol.js.map +0 -1
  764. package/dist/coordination/index.d.ts +0 -14
  765. package/dist/coordination/index.d.ts.map +0 -1
  766. package/dist/coordination/index.js +0 -21
  767. package/dist/coordination/index.js.map +0 -1
  768. package/dist/coordination/load-balancer.d.ts +0 -139
  769. package/dist/coordination/load-balancer.d.ts.map +0 -1
  770. package/dist/coordination/load-balancer.js +0 -700
  771. package/dist/coordination/load-balancer.js.map +0 -1
  772. package/dist/coordination/manager.d.ts +0 -66
  773. package/dist/coordination/manager.d.ts.map +0 -1
  774. package/dist/coordination/manager.js +0 -360
  775. package/dist/coordination/manager.js.map +0 -1
  776. package/dist/coordination/messaging.d.ts +0 -37
  777. package/dist/coordination/messaging.d.ts.map +0 -1
  778. package/dist/coordination/messaging.js +0 -219
  779. package/dist/coordination/messaging.js.map +0 -1
  780. package/dist/coordination/metrics.d.ts +0 -153
  781. package/dist/coordination/metrics.d.ts.map +0 -1
  782. package/dist/coordination/metrics.js +0 -434
  783. package/dist/coordination/metrics.js.map +0 -1
  784. package/dist/coordination/resources.d.ts +0 -36
  785. package/dist/coordination/resources.d.ts.map +0 -1
  786. package/dist/coordination/resources.js +0 -250
  787. package/dist/coordination/resources.js.map +0 -1
  788. package/dist/coordination/scheduler.d.ts +0 -48
  789. package/dist/coordination/scheduler.d.ts.map +0 -1
  790. package/dist/coordination/scheduler.js +0 -308
  791. package/dist/coordination/scheduler.js.map +0 -1
  792. package/dist/coordination/swarm-coordinator.d.ts +0 -116
  793. package/dist/coordination/swarm-coordinator.d.ts.map +0 -1
  794. package/dist/coordination/swarm-coordinator.js +0 -565
  795. package/dist/coordination/swarm-coordinator.js.map +0 -1
  796. package/dist/coordination/swarm-monitor.d.ts +0 -101
  797. package/dist/coordination/swarm-monitor.d.ts.map +0 -1
  798. package/dist/coordination/swarm-monitor.js +0 -340
  799. package/dist/coordination/swarm-monitor.js.map +0 -1
  800. package/dist/coordination/work-stealing.d.ts +0 -44
  801. package/dist/coordination/work-stealing.d.ts.map +0 -1
  802. package/dist/coordination/work-stealing.js +0 -155
  803. package/dist/coordination/work-stealing.js.map +0 -1
  804. package/dist/core/config.d.ts +0 -239
  805. package/dist/core/config.d.ts.map +0 -1
  806. package/dist/core/config.js +0 -1128
  807. package/dist/core/config.js.map +0 -1
  808. package/dist/core/event-bus.d.ts +0 -60
  809. package/dist/core/event-bus.d.ts.map +0 -1
  810. package/dist/core/event-bus.js +0 -153
  811. package/dist/core/event-bus.js.map +0 -1
  812. package/dist/core/json-persistence.d.ts +0 -52
  813. package/dist/core/json-persistence.d.ts.map +0 -1
  814. package/dist/core/json-persistence.js +0 -115
  815. package/dist/core/json-persistence.js.map +0 -1
  816. package/dist/core/logger.d.ts +0 -57
  817. package/dist/core/logger.d.ts.map +0 -1
  818. package/dist/core/logger.js +0 -253
  819. package/dist/core/logger.js.map +0 -1
  820. package/dist/core/orchestrator-fixed.d.ts +0 -81
  821. package/dist/core/orchestrator-fixed.d.ts.map +0 -1
  822. package/dist/core/orchestrator-fixed.js +0 -210
  823. package/dist/core/orchestrator-fixed.js.map +0 -1
  824. package/dist/core/orchestrator.d.ts +0 -103
  825. package/dist/core/orchestrator.d.ts.map +0 -1
  826. package/dist/core/orchestrator.js +0 -965
  827. package/dist/core/orchestrator.js.map +0 -1
  828. package/dist/core/persistence.d.ts +0 -50
  829. package/dist/core/persistence.d.ts.map +0 -1
  830. package/dist/core/persistence.js +0 -186
  831. package/dist/core/persistence.js.map +0 -1
  832. package/dist/enterprise/analytics-manager.d.ts +0 -489
  833. package/dist/enterprise/analytics-manager.d.ts.map +0 -1
  834. package/dist/enterprise/analytics-manager.js +0 -949
  835. package/dist/enterprise/analytics-manager.js.map +0 -1
  836. package/dist/enterprise/audit-manager.d.ts +0 -459
  837. package/dist/enterprise/audit-manager.d.ts.map +0 -1
  838. package/dist/enterprise/audit-manager.js +0 -992
  839. package/dist/enterprise/audit-manager.js.map +0 -1
  840. package/dist/enterprise/cloud-manager.d.ts +0 -435
  841. package/dist/enterprise/cloud-manager.d.ts.map +0 -1
  842. package/dist/enterprise/cloud-manager.js +0 -784
  843. package/dist/enterprise/cloud-manager.js.map +0 -1
  844. package/dist/enterprise/deployment-manager.d.ts +0 -328
  845. package/dist/enterprise/deployment-manager.d.ts.map +0 -1
  846. package/dist/enterprise/deployment-manager.js +0 -823
  847. package/dist/enterprise/deployment-manager.js.map +0 -1
  848. package/dist/enterprise/index.d.ts +0 -13
  849. package/dist/enterprise/index.d.ts.map +0 -1
  850. package/dist/enterprise/index.js +0 -7
  851. package/dist/enterprise/index.js.map +0 -1
  852. package/dist/enterprise/project-manager.d.ts +0 -228
  853. package/dist/enterprise/project-manager.d.ts.map +0 -1
  854. package/dist/enterprise/project-manager.js +0 -529
  855. package/dist/enterprise/project-manager.js.map +0 -1
  856. package/dist/enterprise/security-manager.d.ts +0 -422
  857. package/dist/enterprise/security-manager.d.ts.map +0 -1
  858. package/dist/enterprise/security-manager.js +0 -902
  859. package/dist/enterprise/security-manager.js.map +0 -1
  860. package/dist/features/adapters/CliFeatureAdapter.d.ts +0 -36
  861. package/dist/features/adapters/CliFeatureAdapter.d.ts.map +0 -1
  862. package/dist/features/adapters/CliFeatureAdapter.js +0 -311
  863. package/dist/features/adapters/CliFeatureAdapter.js.map +0 -1
  864. package/dist/features/adapters/McpFeatureAdapter.d.ts +0 -61
  865. package/dist/features/adapters/McpFeatureAdapter.d.ts.map +0 -1
  866. package/dist/features/adapters/McpFeatureAdapter.js +0 -487
  867. package/dist/features/adapters/McpFeatureAdapter.js.map +0 -1
  868. package/dist/features/adapters/index.d.ts +0 -7
  869. package/dist/features/adapters/index.d.ts.map +0 -1
  870. package/dist/features/adapters/index.js +0 -7
  871. package/dist/features/adapters/index.js.map +0 -1
  872. package/dist/features/built-in/index.d.ts +0 -53
  873. package/dist/features/built-in/index.d.ts.map +0 -1
  874. package/dist/features/built-in/index.js +0 -286
  875. package/dist/features/built-in/index.js.map +0 -1
  876. package/dist/features/core/FeatureManager.d.ts +0 -37
  877. package/dist/features/core/FeatureManager.d.ts.map +0 -1
  878. package/dist/features/core/FeatureManager.js +0 -291
  879. package/dist/features/core/FeatureManager.js.map +0 -1
  880. package/dist/features/core/FeatureRegistry.d.ts +0 -24
  881. package/dist/features/core/FeatureRegistry.d.ts.map +0 -1
  882. package/dist/features/core/FeatureRegistry.js +0 -75
  883. package/dist/features/core/FeatureRegistry.js.map +0 -1
  884. package/dist/features/core/configuration-manager.d.ts +0 -16
  885. package/dist/features/core/configuration-manager.d.ts.map +0 -1
  886. package/dist/features/core/configuration-manager.js +0 -94
  887. package/dist/features/core/configuration-manager.js.map +0 -1
  888. package/dist/features/core/feature-manager.d.ts +0 -23
  889. package/dist/features/core/feature-manager.d.ts.map +0 -1
  890. package/dist/features/core/feature-manager.js +0 -163
  891. package/dist/features/core/feature-manager.js.map +0 -1
  892. package/dist/features/core/feature-registry.d.ts +0 -16
  893. package/dist/features/core/feature-registry.d.ts.map +0 -1
  894. package/dist/features/core/feature-registry.js +0 -175
  895. package/dist/features/core/feature-registry.js.map +0 -1
  896. package/dist/features/core/feature.d.ts +0 -25
  897. package/dist/features/core/feature.d.ts.map +0 -1
  898. package/dist/features/core/feature.js +0 -113
  899. package/dist/features/core/feature.js.map +0 -1
  900. package/dist/features/core/index.d.ts +0 -10
  901. package/dist/features/core/index.d.ts.map +0 -1
  902. package/dist/features/core/index.js +0 -11
  903. package/dist/features/core/index.js.map +0 -1
  904. package/dist/features/core/transparency-layer.d.ts +0 -16
  905. package/dist/features/core/transparency-layer.d.ts.map +0 -1
  906. package/dist/features/core/transparency-layer.js +0 -61
  907. package/dist/features/core/transparency-layer.js.map +0 -1
  908. package/dist/features/hooks/command-hooks.d.ts +0 -40
  909. package/dist/features/hooks/command-hooks.d.ts.map +0 -1
  910. package/dist/features/hooks/command-hooks.js +0 -159
  911. package/dist/features/hooks/command-hooks.js.map +0 -1
  912. package/dist/features/index.d.ts +0 -6
  913. package/dist/features/index.d.ts.map +0 -1
  914. package/dist/features/index.js +0 -8
  915. package/dist/features/index.js.map +0 -1
  916. package/dist/features/initializer.d.ts +0 -17
  917. package/dist/features/initializer.d.ts.map +0 -1
  918. package/dist/features/initializer.js +0 -41
  919. package/dist/features/initializer.js.map +0 -1
  920. package/dist/features/tests/manual-test.d.ts +0 -6
  921. package/dist/features/tests/manual-test.d.ts.map +0 -1
  922. package/dist/features/tests/manual-test.js +0 -130
  923. package/dist/features/tests/manual-test.js.map +0 -1
  924. package/dist/features/types/IFeature.d.ts +0 -148
  925. package/dist/features/types/IFeature.d.ts.map +0 -1
  926. package/dist/features/types/IFeature.js +0 -43
  927. package/dist/features/types/IFeature.js.map +0 -1
  928. package/dist/features/types/IFeatureAdapter.d.ts +0 -298
  929. package/dist/features/types/IFeatureAdapter.d.ts.map +0 -1
  930. package/dist/features/types/IFeatureAdapter.js +0 -2
  931. package/dist/features/types/IFeatureAdapter.js.map +0 -1
  932. package/dist/features/types/IFeatureConfiguration.d.ts +0 -380
  933. package/dist/features/types/IFeatureConfiguration.d.ts.map +0 -1
  934. package/dist/features/types/IFeatureConfiguration.js +0 -2
  935. package/dist/features/types/IFeatureConfiguration.js.map +0 -1
  936. package/dist/features/types/IFeatureManager.d.ts +0 -216
  937. package/dist/features/types/IFeatureManager.d.ts.map +0 -1
  938. package/dist/features/types/IFeatureManager.js +0 -2
  939. package/dist/features/types/IFeatureManager.js.map +0 -1
  940. package/dist/features/types/IFeatureMetrics.d.ts +0 -543
  941. package/dist/features/types/IFeatureMetrics.d.ts.map +0 -1
  942. package/dist/features/types/IFeatureMetrics.js +0 -25
  943. package/dist/features/types/IFeatureMetrics.js.map +0 -1
  944. package/dist/features/types/ITransparencyLayer.d.ts +0 -552
  945. package/dist/features/types/ITransparencyLayer.d.ts.map +0 -1
  946. package/dist/features/types/ITransparencyLayer.js +0 -60
  947. package/dist/features/types/ITransparencyLayer.js.map +0 -1
  948. package/dist/features/types/feature-types.d.ts +0 -153
  949. package/dist/features/types/feature-types.d.ts.map +0 -1
  950. package/dist/features/types/feature-types.js +0 -40
  951. package/dist/features/types/feature-types.js.map +0 -1
  952. package/dist/features/types/index.d.ts +0 -13
  953. package/dist/features/types/index.d.ts.map +0 -1
  954. package/dist/features/types/index.js +0 -16
  955. package/dist/features/types/index.js.map +0 -1
  956. package/dist/features/types/type-guards.d.ts +0 -100
  957. package/dist/features/types/type-guards.d.ts.map +0 -1
  958. package/dist/features/types/type-guards.js +0 -212
  959. package/dist/features/types/type-guards.js.map +0 -1
  960. package/dist/features/types/utility-types.d.ts +0 -440
  961. package/dist/features/types/utility-types.d.ts.map +0 -1
  962. package/dist/features/types/utility-types.js +0 -2
  963. package/dist/features/types/utility-types.js.map +0 -1
  964. package/dist/hive-mind/core/Agent.d.ts +0 -137
  965. package/dist/hive-mind/core/Agent.d.ts.map +0 -1
  966. package/dist/hive-mind/core/Agent.js +0 -567
  967. package/dist/hive-mind/core/Agent.js.map +0 -1
  968. package/dist/hive-mind/core/Communication.d.ts +0 -116
  969. package/dist/hive-mind/core/Communication.d.ts.map +0 -1
  970. package/dist/hive-mind/core/Communication.js +0 -407
  971. package/dist/hive-mind/core/Communication.js.map +0 -1
  972. package/dist/hive-mind/core/DatabaseManager.d.ts +0 -93
  973. package/dist/hive-mind/core/DatabaseManager.d.ts.map +0 -1
  974. package/dist/hive-mind/core/DatabaseManager.js +0 -551
  975. package/dist/hive-mind/core/DatabaseManager.js.map +0 -1
  976. package/dist/hive-mind/core/HiveMind.d.ts +0 -90
  977. package/dist/hive-mind/core/HiveMind.d.ts.map +0 -1
  978. package/dist/hive-mind/core/HiveMind.js +0 -439
  979. package/dist/hive-mind/core/HiveMind.js.map +0 -1
  980. package/dist/hive-mind/core/Memory.d.ts +0 -235
  981. package/dist/hive-mind/core/Memory.d.ts.map +0 -1
  982. package/dist/hive-mind/core/Memory.js +0 -1185
  983. package/dist/hive-mind/core/Memory.js.map +0 -1
  984. package/dist/hive-mind/core/MemoryMonitor.d.ts +0 -183
  985. package/dist/hive-mind/core/MemoryMonitor.d.ts.map +0 -1
  986. package/dist/hive-mind/core/MemoryMonitor.js +0 -547
  987. package/dist/hive-mind/core/MemoryMonitor.js.map +0 -1
  988. package/dist/hive-mind/core/Queen.d.ts +0 -115
  989. package/dist/hive-mind/core/Queen.d.ts.map +0 -1
  990. package/dist/hive-mind/core/Queen.js +0 -586
  991. package/dist/hive-mind/core/Queen.js.map +0 -1
  992. package/dist/hive-mind/index.d.ts +0 -17
  993. package/dist/hive-mind/index.d.ts.map +0 -1
  994. package/dist/hive-mind/index.js +0 -21
  995. package/dist/hive-mind/index.js.map +0 -1
  996. package/dist/hive-mind/integration/ConsensusEngine.d.ts +0 -117
  997. package/dist/hive-mind/integration/ConsensusEngine.d.ts.map +0 -1
  998. package/dist/hive-mind/integration/ConsensusEngine.js +0 -476
  999. package/dist/hive-mind/integration/ConsensusEngine.js.map +0 -1
  1000. package/dist/hive-mind/integration/MCPToolWrapper.d.ts +0 -172
  1001. package/dist/hive-mind/integration/MCPToolWrapper.d.ts.map +0 -1
  1002. package/dist/hive-mind/integration/MCPToolWrapper.js +0 -217
  1003. package/dist/hive-mind/integration/MCPToolWrapper.js.map +0 -1
  1004. package/dist/hive-mind/integration/SwarmOrchestrator.d.ts +0 -172
  1005. package/dist/hive-mind/integration/SwarmOrchestrator.d.ts.map +0 -1
  1006. package/dist/hive-mind/integration/SwarmOrchestrator.js +0 -746
  1007. package/dist/hive-mind/integration/SwarmOrchestrator.js.map +0 -1
  1008. package/dist/hive-mind/types.d.ts +0 -298
  1009. package/dist/hive-mind/types.d.ts.map +0 -1
  1010. package/dist/hive-mind/types.js +0 -7
  1011. package/dist/hive-mind/types.js.map +0 -1
  1012. package/dist/integration/mock-components.d.ts +0 -107
  1013. package/dist/integration/mock-components.d.ts.map +0 -1
  1014. package/dist/integration/mock-components.js +0 -357
  1015. package/dist/integration/mock-components.js.map +0 -1
  1016. package/dist/integration/system-integration.d.ts +0 -84
  1017. package/dist/integration/system-integration.d.ts.map +0 -1
  1018. package/dist/integration/system-integration.js +0 -429
  1019. package/dist/integration/system-integration.js.map +0 -1
  1020. package/dist/integration/types.d.ts +0 -119
  1021. package/dist/integration/types.d.ts.map +0 -1
  1022. package/dist/integration/types.js +0 -5
  1023. package/dist/integration/types.js.map +0 -1
  1024. package/dist/mcp/auth.d.ts +0 -80
  1025. package/dist/mcp/auth.d.ts.map +0 -1
  1026. package/dist/mcp/auth.js +0 -343
  1027. package/dist/mcp/auth.js.map +0 -1
  1028. package/dist/mcp/claude-code-wrapper.d.ts +0 -26
  1029. package/dist/mcp/claude-code-wrapper.d.ts.map +0 -1
  1030. package/dist/mcp/claude-code-wrapper.js +0 -598
  1031. package/dist/mcp/claude-code-wrapper.js.map +0 -1
  1032. package/dist/mcp/claude-flow-tools.d.ts +0 -13
  1033. package/dist/mcp/claude-flow-tools.d.ts.map +0 -1
  1034. package/dist/mcp/claude-flow-tools.js +0 -1142
  1035. package/dist/mcp/claude-flow-tools.js.map +0 -1
  1036. package/dist/mcp/client.d.ts +0 -41
  1037. package/dist/mcp/client.d.ts.map +0 -1
  1038. package/dist/mcp/client.js +0 -194
  1039. package/dist/mcp/client.js.map +0 -1
  1040. package/dist/mcp/feature-tools.d.ts +0 -24
  1041. package/dist/mcp/feature-tools.d.ts.map +0 -1
  1042. package/dist/mcp/feature-tools.js +0 -65
  1043. package/dist/mcp/feature-tools.js.map +0 -1
  1044. package/dist/mcp/index.d.ts +0 -134
  1045. package/dist/mcp/index.d.ts.map +0 -1
  1046. package/dist/mcp/index.js +0 -212
  1047. package/dist/mcp/index.js.map +0 -1
  1048. package/dist/mcp/integrate-wrapper.d.ts +0 -16
  1049. package/dist/mcp/integrate-wrapper.d.ts.map +0 -1
  1050. package/dist/mcp/integrate-wrapper.js +0 -77
  1051. package/dist/mcp/integrate-wrapper.js.map +0 -1
  1052. package/dist/mcp/lifecycle-manager.d.ts +0 -121
  1053. package/dist/mcp/lifecycle-manager.d.ts.map +0 -1
  1054. package/dist/mcp/lifecycle-manager.js +0 -365
  1055. package/dist/mcp/lifecycle-manager.js.map +0 -1
  1056. package/dist/mcp/load-balancer.d.ts +0 -88
  1057. package/dist/mcp/load-balancer.d.ts.map +0 -1
  1058. package/dist/mcp/load-balancer.js +0 -389
  1059. package/dist/mcp/load-balancer.js.map +0 -1
  1060. package/dist/mcp/orchestration-integration.d.ts +0 -135
  1061. package/dist/mcp/orchestration-integration.d.ts.map +0 -1
  1062. package/dist/mcp/orchestration-integration.js +0 -722
  1063. package/dist/mcp/orchestration-integration.js.map +0 -1
  1064. package/dist/mcp/performance-monitor.d.ts +0 -164
  1065. package/dist/mcp/performance-monitor.d.ts.map +0 -1
  1066. package/dist/mcp/performance-monitor.js +0 -478
  1067. package/dist/mcp/performance-monitor.js.map +0 -1
  1068. package/dist/mcp/protocol-manager.d.ts +0 -88
  1069. package/dist/mcp/protocol-manager.d.ts.map +0 -1
  1070. package/dist/mcp/protocol-manager.js +0 -358
  1071. package/dist/mcp/protocol-manager.js.map +0 -1
  1072. package/dist/mcp/recovery/connection-health-monitor.d.ts +0 -69
  1073. package/dist/mcp/recovery/connection-health-monitor.d.ts.map +0 -1
  1074. package/dist/mcp/recovery/connection-health-monitor.js +0 -241
  1075. package/dist/mcp/recovery/connection-health-monitor.js.map +0 -1
  1076. package/dist/mcp/recovery/connection-state-manager.d.ts +0 -102
  1077. package/dist/mcp/recovery/connection-state-manager.d.ts.map +0 -1
  1078. package/dist/mcp/recovery/connection-state-manager.js +0 -318
  1079. package/dist/mcp/recovery/connection-state-manager.js.map +0 -1
  1080. package/dist/mcp/recovery/fallback-coordinator.d.ts +0 -79
  1081. package/dist/mcp/recovery/fallback-coordinator.d.ts.map +0 -1
  1082. package/dist/mcp/recovery/fallback-coordinator.js +0 -278
  1083. package/dist/mcp/recovery/fallback-coordinator.js.map +0 -1
  1084. package/dist/mcp/recovery/index.d.ts +0 -10
  1085. package/dist/mcp/recovery/index.d.ts.map +0 -1
  1086. package/dist/mcp/recovery/index.js +0 -10
  1087. package/dist/mcp/recovery/index.js.map +0 -1
  1088. package/dist/mcp/recovery/reconnection-manager.d.ts +0 -69
  1089. package/dist/mcp/recovery/reconnection-manager.d.ts.map +0 -1
  1090. package/dist/mcp/recovery/reconnection-manager.js +0 -226
  1091. package/dist/mcp/recovery/reconnection-manager.js.map +0 -1
  1092. package/dist/mcp/recovery/recovery-manager.d.ts +0 -93
  1093. package/dist/mcp/recovery/recovery-manager.d.ts.map +0 -1
  1094. package/dist/mcp/recovery/recovery-manager.js +0 -250
  1095. package/dist/mcp/recovery/recovery-manager.js.map +0 -1
  1096. package/dist/mcp/router.d.ts +0 -54
  1097. package/dist/mcp/router.d.ts.map +0 -1
  1098. package/dist/mcp/router.js +0 -201
  1099. package/dist/mcp/router.js.map +0 -1
  1100. package/dist/mcp/ruv-swarm-tools.d.ts +0 -58
  1101. package/dist/mcp/ruv-swarm-tools.d.ts.map +0 -1
  1102. package/dist/mcp/ruv-swarm-tools.js +0 -518
  1103. package/dist/mcp/ruv-swarm-tools.js.map +0 -1
  1104. package/dist/mcp/server-with-wrapper.d.ts +0 -3
  1105. package/dist/mcp/server-with-wrapper.d.ts.map +0 -1
  1106. package/dist/mcp/server-with-wrapper.js +0 -36
  1107. package/dist/mcp/server-with-wrapper.js.map +0 -1
  1108. package/dist/mcp/server-wrapper-mode.d.ts +0 -3
  1109. package/dist/mcp/server-wrapper-mode.d.ts.map +0 -1
  1110. package/dist/mcp/server-wrapper-mode.js +0 -28
  1111. package/dist/mcp/server-wrapper-mode.js.map +0 -1
  1112. package/dist/mcp/server.d.ts +0 -75
  1113. package/dist/mcp/server.d.ts.map +0 -1
  1114. package/dist/mcp/server.js +0 -533
  1115. package/dist/mcp/server.js.map +0 -1
  1116. package/dist/mcp/session-manager.d.ts +0 -60
  1117. package/dist/mcp/session-manager.d.ts.map +0 -1
  1118. package/dist/mcp/session-manager.js +0 -322
  1119. package/dist/mcp/session-manager.js.map +0 -1
  1120. package/dist/mcp/sparc-modes.d.ts +0 -12
  1121. package/dist/mcp/sparc-modes.d.ts.map +0 -1
  1122. package/dist/mcp/sparc-modes.js +0 -370
  1123. package/dist/mcp/sparc-modes.js.map +0 -1
  1124. package/dist/mcp/swarm-tools.d.ts +0 -87
  1125. package/dist/mcp/swarm-tools.d.ts.map +0 -1
  1126. package/dist/mcp/swarm-tools.js +0 -711
  1127. package/dist/mcp/swarm-tools.js.map +0 -1
  1128. package/dist/mcp/tools.d.ts +0 -145
  1129. package/dist/mcp/tools.d.ts.map +0 -1
  1130. package/dist/mcp/tools.js +0 -418
  1131. package/dist/mcp/tools.js.map +0 -1
  1132. package/dist/mcp/transports/base.d.ts +0 -22
  1133. package/dist/mcp/transports/base.d.ts.map +0 -1
  1134. package/dist/mcp/transports/base.js +0 -2
  1135. package/dist/mcp/transports/base.js.map +0 -1
  1136. package/dist/mcp/transports/http.d.ts +0 -45
  1137. package/dist/mcp/transports/http.d.ts.map +0 -1
  1138. package/dist/mcp/transports/http.js +0 -400
  1139. package/dist/mcp/transports/http.js.map +0 -1
  1140. package/dist/mcp/transports/stdio.d.ts +0 -34
  1141. package/dist/mcp/transports/stdio.d.ts.map +0 -1
  1142. package/dist/mcp/transports/stdio.js +0 -203
  1143. package/dist/mcp/transports/stdio.js.map +0 -1
  1144. package/dist/memory/advanced-memory-manager.d.ts +0 -303
  1145. package/dist/memory/advanced-memory-manager.d.ts.map +0 -1
  1146. package/dist/memory/advanced-memory-manager.js +0 -1458
  1147. package/dist/memory/advanced-memory-manager.js.map +0 -1
  1148. package/dist/memory/backends/base.d.ts +0 -21
  1149. package/dist/memory/backends/base.d.ts.map +0 -1
  1150. package/dist/memory/backends/base.js +0 -2
  1151. package/dist/memory/backends/base.js.map +0 -1
  1152. package/dist/memory/backends/markdown.d.ts +0 -32
  1153. package/dist/memory/backends/markdown.d.ts.map +0 -1
  1154. package/dist/memory/backends/markdown.js +0 -223
  1155. package/dist/memory/backends/markdown.js.map +0 -1
  1156. package/dist/memory/backends/sqlite.d.ts +0 -29
  1157. package/dist/memory/backends/sqlite.d.ts.map +0 -1
  1158. package/dist/memory/backends/sqlite.js +0 -272
  1159. package/dist/memory/backends/sqlite.js.map +0 -1
  1160. package/dist/memory/cache.d.ts +0 -65
  1161. package/dist/memory/cache.d.ts.map +0 -1
  1162. package/dist/memory/cache.js +0 -186
  1163. package/dist/memory/cache.js.map +0 -1
  1164. package/dist/memory/distributed-memory.d.ts +0 -188
  1165. package/dist/memory/distributed-memory.d.ts.map +0 -1
  1166. package/dist/memory/distributed-memory.js +0 -711
  1167. package/dist/memory/distributed-memory.js.map +0 -1
  1168. package/dist/memory/indexer.d.ts +0 -52
  1169. package/dist/memory/indexer.d.ts.map +0 -1
  1170. package/dist/memory/indexer.js +0 -188
  1171. package/dist/memory/indexer.js.map +0 -1
  1172. package/dist/memory/manager.d.ts +0 -58
  1173. package/dist/memory/manager.d.ts.map +0 -1
  1174. package/dist/memory/manager.js +0 -426
  1175. package/dist/memory/manager.js.map +0 -1
  1176. package/dist/memory/shared-memory.js +0 -656
  1177. package/dist/memory/shared-memory.js.map +0 -1
  1178. package/dist/memory/sqlite-store.js +0 -263
  1179. package/dist/memory/sqlite-store.js.map +0 -1
  1180. package/dist/memory/swarm-memory.d.ts +0 -91
  1181. package/dist/memory/swarm-memory.d.ts.map +0 -1
  1182. package/dist/memory/swarm-memory.js +0 -461
  1183. package/dist/memory/swarm-memory.js.map +0 -1
  1184. package/dist/migration/index.d.ts +0 -3
  1185. package/dist/migration/index.d.ts.map +0 -1
  1186. package/dist/migration/index.js +0 -166
  1187. package/dist/migration/index.js.map +0 -1
  1188. package/dist/migration/logger.d.ts +0 -26
  1189. package/dist/migration/logger.d.ts.map +0 -1
  1190. package/dist/migration/logger.js +0 -145
  1191. package/dist/migration/logger.js.map +0 -1
  1192. package/dist/migration/migration-analyzer.d.ts +0 -15
  1193. package/dist/migration/migration-analyzer.d.ts.map +0 -1
  1194. package/dist/migration/migration-analyzer.js +0 -279
  1195. package/dist/migration/migration-analyzer.js.map +0 -1
  1196. package/dist/migration/migration-runner.d.ts +0 -26
  1197. package/dist/migration/migration-runner.d.ts.map +0 -1
  1198. package/dist/migration/migration-runner.js +0 -499
  1199. package/dist/migration/migration-runner.js.map +0 -1
  1200. package/dist/migration/migration-validator.d.ts +0 -14
  1201. package/dist/migration/migration-validator.d.ts.map +0 -1
  1202. package/dist/migration/migration-validator.js +0 -313
  1203. package/dist/migration/migration-validator.js.map +0 -1
  1204. package/dist/migration/progress-reporter.d.ts +0 -25
  1205. package/dist/migration/progress-reporter.d.ts.map +0 -1
  1206. package/dist/migration/progress-reporter.js +0 -163
  1207. package/dist/migration/progress-reporter.js.map +0 -1
  1208. package/dist/migration/rollback-manager.d.ts +0 -21
  1209. package/dist/migration/rollback-manager.d.ts.map +0 -1
  1210. package/dist/migration/rollback-manager.js +0 -348
  1211. package/dist/migration/rollback-manager.js.map +0 -1
  1212. package/dist/migration/types.d.ts +0 -103
  1213. package/dist/migration/types.d.ts.map +0 -1
  1214. package/dist/migration/types.js +0 -6
  1215. package/dist/migration/types.js.map +0 -1
  1216. package/dist/monitoring/diagnostics.d.ts +0 -109
  1217. package/dist/monitoring/diagnostics.d.ts.map +0 -1
  1218. package/dist/monitoring/diagnostics.js +0 -545
  1219. package/dist/monitoring/diagnostics.js.map +0 -1
  1220. package/dist/monitoring/health-check.d.ts +0 -91
  1221. package/dist/monitoring/health-check.d.ts.map +0 -1
  1222. package/dist/monitoring/health-check.js +0 -371
  1223. package/dist/monitoring/health-check.js.map +0 -1
  1224. package/dist/monitoring/real-time-monitor.d.ts +0 -230
  1225. package/dist/monitoring/real-time-monitor.d.ts.map +0 -1
  1226. package/dist/monitoring/real-time-monitor.js +0 -839
  1227. package/dist/monitoring/real-time-monitor.js.map +0 -1
  1228. package/dist/resources/resource-manager.d.ts +0 -390
  1229. package/dist/resources/resource-manager.d.ts.map +0 -1
  1230. package/dist/resources/resource-manager.js +0 -1220
  1231. package/dist/resources/resource-manager.js.map +0 -1
  1232. package/dist/swarm/claude-flow-executor.d.ts +0 -28
  1233. package/dist/swarm/claude-flow-executor.d.ts.map +0 -1
  1234. package/dist/swarm/claude-flow-executor.js +0 -210
  1235. package/dist/swarm/claude-flow-executor.js.map +0 -1
  1236. package/dist/swarm/coordinator.d.ts +0 -134
  1237. package/dist/swarm/coordinator.d.ts.map +0 -1
  1238. package/dist/swarm/coordinator.js +0 -2607
  1239. package/dist/swarm/coordinator.js.map +0 -1
  1240. package/dist/swarm/direct-executor.d.ts +0 -48
  1241. package/dist/swarm/direct-executor.d.ts.map +0 -1
  1242. package/dist/swarm/direct-executor.js +0 -1113
  1243. package/dist/swarm/direct-executor.js.map +0 -1
  1244. package/dist/swarm/executor-v2.d.ts +0 -23
  1245. package/dist/swarm/executor-v2.d.ts.map +0 -1
  1246. package/dist/swarm/executor-v2.js +0 -320
  1247. package/dist/swarm/executor-v2.js.map +0 -1
  1248. package/dist/swarm/executor.d.ts +0 -117
  1249. package/dist/swarm/executor.d.ts.map +0 -1
  1250. package/dist/swarm/executor.js +0 -791
  1251. package/dist/swarm/executor.js.map +0 -1
  1252. package/dist/swarm/index.d.ts +0 -31
  1253. package/dist/swarm/index.d.ts.map +0 -1
  1254. package/dist/swarm/index.js +0 -42
  1255. package/dist/swarm/index.js.map +0 -1
  1256. package/dist/swarm/memory.d.ts +0 -176
  1257. package/dist/swarm/memory.d.ts.map +0 -1
  1258. package/dist/swarm/memory.js +0 -1068
  1259. package/dist/swarm/memory.js.map +0 -1
  1260. package/dist/swarm/optimizations/async-file-manager.d.ts +0 -49
  1261. package/dist/swarm/optimizations/async-file-manager.d.ts.map +0 -1
  1262. package/dist/swarm/optimizations/async-file-manager.js +0 -248
  1263. package/dist/swarm/optimizations/async-file-manager.js.map +0 -1
  1264. package/dist/swarm/optimizations/circular-buffer.d.ts +0 -46
  1265. package/dist/swarm/optimizations/circular-buffer.d.ts.map +0 -1
  1266. package/dist/swarm/optimizations/circular-buffer.js +0 -159
  1267. package/dist/swarm/optimizations/circular-buffer.js.map +0 -1
  1268. package/dist/swarm/optimizations/connection-pool.d.ts +0 -54
  1269. package/dist/swarm/optimizations/connection-pool.d.ts.map +0 -1
  1270. package/dist/swarm/optimizations/connection-pool.js +0 -227
  1271. package/dist/swarm/optimizations/connection-pool.js.map +0 -1
  1272. package/dist/swarm/optimizations/index.d.ts +0 -24
  1273. package/dist/swarm/optimizations/index.d.ts.map +0 -1
  1274. package/dist/swarm/optimizations/index.js +0 -30
  1275. package/dist/swarm/optimizations/index.js.map +0 -1
  1276. package/dist/swarm/optimizations/optimized-executor.d.ts +0 -109
  1277. package/dist/swarm/optimizations/optimized-executor.d.ts.map +0 -1
  1278. package/dist/swarm/optimizations/optimized-executor.js +0 -321
  1279. package/dist/swarm/optimizations/optimized-executor.js.map +0 -1
  1280. package/dist/swarm/optimizations/ttl-map.d.ts +0 -78
  1281. package/dist/swarm/optimizations/ttl-map.d.ts.map +0 -1
  1282. package/dist/swarm/optimizations/ttl-map.js +0 -229
  1283. package/dist/swarm/optimizations/ttl-map.js.map +0 -1
  1284. package/dist/swarm/prompt-cli.d.ts +0 -5
  1285. package/dist/swarm/prompt-cli.d.ts.map +0 -1
  1286. package/dist/swarm/prompt-cli.js +0 -256
  1287. package/dist/swarm/prompt-cli.js.map +0 -1
  1288. package/dist/swarm/prompt-copier-enhanced.d.ts +0 -17
  1289. package/dist/swarm/prompt-copier-enhanced.d.ts.map +0 -1
  1290. package/dist/swarm/prompt-copier-enhanced.js +0 -190
  1291. package/dist/swarm/prompt-copier-enhanced.js.map +0 -1
  1292. package/dist/swarm/prompt-copier.d.ts +0 -76
  1293. package/dist/swarm/prompt-copier.d.ts.map +0 -1
  1294. package/dist/swarm/prompt-copier.js +0 -380
  1295. package/dist/swarm/prompt-copier.js.map +0 -1
  1296. package/dist/swarm/prompt-manager.d.ts +0 -72
  1297. package/dist/swarm/prompt-manager.d.ts.map +0 -1
  1298. package/dist/swarm/prompt-manager.js +0 -270
  1299. package/dist/swarm/prompt-manager.js.map +0 -1
  1300. package/dist/swarm/prompt-utils.d.ts +0 -52
  1301. package/dist/swarm/prompt-utils.d.ts.map +0 -1
  1302. package/dist/swarm/prompt-utils.js +0 -265
  1303. package/dist/swarm/prompt-utils.js.map +0 -1
  1304. package/dist/swarm/sparc-executor.d.ts +0 -105
  1305. package/dist/swarm/sparc-executor.d.ts.map +0 -1
  1306. package/dist/swarm/sparc-executor.js +0 -1364
  1307. package/dist/swarm/sparc-executor.js.map +0 -1
  1308. package/dist/swarm/strategies/auto.d.ts +0 -57
  1309. package/dist/swarm/strategies/auto.d.ts.map +0 -1
  1310. package/dist/swarm/strategies/auto.js +0 -623
  1311. package/dist/swarm/strategies/auto.js.map +0 -1
  1312. package/dist/swarm/strategies/base.d.ts +0 -78
  1313. package/dist/swarm/strategies/base.d.ts.map +0 -1
  1314. package/dist/swarm/strategies/base.js +0 -108
  1315. package/dist/swarm/strategies/base.js.map +0 -1
  1316. package/dist/swarm/strategies/research.d.ts +0 -75
  1317. package/dist/swarm/strategies/research.d.ts.map +0 -1
  1318. package/dist/swarm/strategies/research.js +0 -841
  1319. package/dist/swarm/strategies/research.js.map +0 -1
  1320. package/dist/swarm/strategies/strategy-metrics-patch.d.ts +0 -11
  1321. package/dist/swarm/strategies/strategy-metrics-patch.d.ts.map +0 -1
  1322. package/dist/swarm/strategies/strategy-metrics-patch.js +0 -2
  1323. package/dist/swarm/strategies/strategy-metrics-patch.js.map +0 -1
  1324. package/dist/swarm/types.d.ts +0 -578
  1325. package/dist/swarm/types.d.ts.map +0 -1
  1326. package/dist/swarm/types.js +0 -51
  1327. package/dist/swarm/types.js.map +0 -1
  1328. package/dist/swarm/workers/copy-worker.d.ts +0 -2
  1329. package/dist/swarm/workers/copy-worker.d.ts.map +0 -1
  1330. package/dist/swarm/workers/copy-worker.js +0 -56
  1331. package/dist/swarm/workers/copy-worker.js.map +0 -1
  1332. package/dist/task/commands.d.ts +0 -60
  1333. package/dist/task/commands.d.ts.map +0 -1
  1334. package/dist/task/commands.js +0 -107
  1335. package/dist/task/commands.js.map +0 -1
  1336. package/dist/task/coordination.d.ts +0 -109
  1337. package/dist/task/coordination.d.ts.map +0 -1
  1338. package/dist/task/coordination.js +0 -629
  1339. package/dist/task/coordination.js.map +0 -1
  1340. package/dist/task/engine.d.ts +0 -198
  1341. package/dist/task/engine.d.ts.map +0 -1
  1342. package/dist/task/engine.js +0 -498
  1343. package/dist/task/engine.js.map +0 -1
  1344. package/dist/task/index.d.ts +0 -103
  1345. package/dist/task/index.d.ts.map +0 -1
  1346. package/dist/task/index.js +0 -276
  1347. package/dist/task/index.js.map +0 -1
  1348. package/dist/task/types.d.ts +0 -56
  1349. package/dist/task/types.d.ts.map +0 -1
  1350. package/dist/task/types.js +0 -2
  1351. package/dist/task/types.js.map +0 -1
  1352. package/dist/terminal/adapters/base.d.ts +0 -40
  1353. package/dist/terminal/adapters/base.d.ts.map +0 -1
  1354. package/dist/terminal/adapters/base.js +0 -5
  1355. package/dist/terminal/adapters/base.js.map +0 -1
  1356. package/dist/terminal/adapters/native.d.ts +0 -19
  1357. package/dist/terminal/adapters/native.d.ts.map +0 -1
  1358. package/dist/terminal/adapters/native.js +0 -414
  1359. package/dist/terminal/adapters/native.js.map +0 -1
  1360. package/dist/terminal/adapters/vscode.d.ts +0 -20
  1361. package/dist/terminal/adapters/vscode.d.ts.map +0 -1
  1362. package/dist/terminal/adapters/vscode.js +0 -265
  1363. package/dist/terminal/adapters/vscode.js.map +0 -1
  1364. package/dist/terminal/manager.d.ts +0 -59
  1365. package/dist/terminal/manager.d.ts.map +0 -1
  1366. package/dist/terminal/manager.js +0 -237
  1367. package/dist/terminal/manager.js.map +0 -1
  1368. package/dist/terminal/pool.d.ts +0 -32
  1369. package/dist/terminal/pool.d.ts.map +0 -1
  1370. package/dist/terminal/pool.js +0 -205
  1371. package/dist/terminal/pool.js.map +0 -1
  1372. package/dist/terminal/session.d.ts +0 -41
  1373. package/dist/terminal/session.d.ts.map +0 -1
  1374. package/dist/terminal/session.js +0 -206
  1375. package/dist/terminal/session.js.map +0 -1
  1376. package/dist/types/index.d.ts +0 -28
  1377. package/dist/types/index.d.ts.map +0 -1
  1378. package/dist/types/index.js +0 -15
  1379. package/dist/types/index.js.map +0 -1
  1380. package/dist/ui/hive-dashboard.d.ts +0 -140
  1381. package/dist/ui/hive-dashboard.d.ts.map +0 -1
  1382. package/dist/ui/hive-dashboard.js +0 -281
  1383. package/dist/ui/hive-dashboard.js.map +0 -1
  1384. package/dist/utils/error-handler.d.ts +0 -14
  1385. package/dist/utils/error-handler.d.ts.map +0 -1
  1386. package/dist/utils/error-handler.js +0 -29
  1387. package/dist/utils/error-handler.js.map +0 -1
  1388. package/dist/utils/errors.d.ts +0 -121
  1389. package/dist/utils/errors.d.ts.map +0 -1
  1390. package/dist/utils/errors.js +0 -194
  1391. package/dist/utils/errors.js.map +0 -1
  1392. package/dist/utils/formatters.d.ts +0 -15
  1393. package/dist/utils/formatters.d.ts.map +0 -1
  1394. package/dist/utils/formatters.js +0 -75
  1395. package/dist/utils/formatters.js.map +0 -1
  1396. package/dist/utils/helpers.d.ts +0 -131
  1397. package/dist/utils/helpers.d.ts.map +0 -1
  1398. package/dist/utils/helpers.js +0 -447
  1399. package/dist/utils/helpers.js.map +0 -1
  1400. package/dist/utils/paths.d.ts +0 -4
  1401. package/dist/utils/paths.d.ts.map +0 -1
  1402. package/dist/utils/paths.js +0 -39
  1403. package/dist/utils/paths.js.map +0 -1
  1404. package/dist/utils/type-guards.d.ts +0 -117
  1405. package/dist/utils/type-guards.d.ts.map +0 -1
  1406. package/dist/utils/type-guards.js +0 -165
  1407. package/dist/utils/type-guards.js.map +0 -1
  1408. package/dist/utils/types.d.ts +0 -512
  1409. package/dist/utils/types.d.ts.map +0 -1
  1410. package/dist/utils/types.js +0 -37
  1411. package/dist/utils/types.js.map +0 -1
@@ -1,1675 +0,0 @@
1
- /**
2
- * Swarm command wrapper for simple CLI
3
- */
4
- import { args, mkdirAsync, writeTextFile, exit, cwd } from '../node-compat.js';
5
- import { spawn, execSync } from 'child_process';
6
- import { existsSync, chmodSync, statSync } from 'fs';
7
- import { open } from 'fs/promises';
8
- import process from 'process';
9
- import path from 'path';
10
- function showSwarmHelp() {
11
- console.log(`
12
- 🐝 Claude Flow Advanced Swarm System
13
-
14
- USAGE:
15
- claude-flow swarm <objective> [options]
16
-
17
- EXAMPLES:
18
- claude-flow swarm "Build a REST API with authentication"
19
- claude-flow swarm "Research cloud architecture patterns" --strategy research
20
- claude-flow swarm "Analyze database performance" --max-agents 3 --parallel
21
- claude-flow swarm "Develop user registration feature" --mode distributed
22
- claude-flow swarm "Optimize React app performance" --strategy optimization
23
- claude-flow swarm "Create microservice" --executor # Use built-in executor
24
-
25
- DEFAULT BEHAVIOR:
26
- Swarm now opens Claude Code by default with comprehensive MCP tool instructions
27
- including memory coordination, agent management, and task orchestration.
28
-
29
- Use --executor flag to run with the built-in executor instead of Claude Code
30
-
31
- STRATEGIES:
32
- auto Automatically determine best approach (default)
33
- research Research and information gathering
34
- development Software development and coding
35
- analysis Data analysis and insights
36
- testing Testing and quality assurance
37
- optimization Performance optimization
38
- maintenance System maintenance
39
-
40
- MODES:
41
- centralized Single coordinator (default)
42
- distributed Multiple coordinators
43
- hierarchical Tree structure coordination
44
- mesh Peer-to-peer coordination
45
- hybrid Mixed coordination strategies
46
-
47
- KEY FEATURES:
48
- 🤖 Intelligent agent management with specialized types
49
- ⚡ Timeout-free background task execution
50
- 🧠 Distributed memory sharing between agents
51
- 🔄 Work stealing and advanced load balancing
52
- 🛡️ Circuit breaker patterns for fault tolerance
53
- 📊 Real-time monitoring and comprehensive metrics
54
- 🎛️ Multiple coordination strategies and algorithms
55
- 💾 Persistent state with backup and recovery
56
- 🔒 Security features with encryption options
57
- 🖥️ Interactive terminal UI for management
58
-
59
- OPTIONS:
60
- --strategy <type> Execution strategy (default: auto)
61
- --mode <type> Coordination mode (default: centralized)
62
- --max-agents <n> Maximum agents (default: 5)
63
- --timeout <minutes> Timeout in minutes (default: 60)
64
- --task-timeout-minutes <n> Task execution timeout in minutes (default: 59)
65
- --parallel Enable parallel execution
66
- --distributed Enable distributed coordination
67
- --monitor Enable real-time monitoring
68
- --ui Launch terminal UI interface
69
- --background Run in background mode
70
- --review Enable peer review
71
- --testing Enable automated testing
72
- --encryption Enable encryption
73
- --verbose Enable detailed logging
74
- --dry-run Show configuration without executing
75
- --executor Use built-in executor instead of Claude Code
76
- --auto (Deprecated: auto-permissions enabled by default)
77
- --no-auto-permissions Disable automatic --dangerously-skip-permissions
78
-
79
- ADVANCED OPTIONS:
80
- --quality-threshold <n> Quality threshold 0-1 (default: 0.8)
81
- --memory-namespace <name> Memory namespace (default: swarm)
82
- --agent-selection <type> Agent selection strategy
83
- --task-scheduling <type> Task scheduling algorithm
84
- --load-balancing <type> Load balancing method
85
- --fault-tolerance <type> Fault tolerance strategy
86
-
87
- For complete documentation and examples:
88
- https://github.com/ruvnet/claude-code-flow/docs/swarm.md
89
- `);
90
- }
91
- export async function swarmCommand(args, flags) {
92
- const objective = (args || []).join(' ').trim();
93
- if (!objective) {
94
- console.error("❌ Usage: swarm <objective>");
95
- showSwarmHelp();
96
- return;
97
- }
98
- // Check if we should use the old executor (opt-in with --executor flag)
99
- if (flags && flags.executor) {
100
- // Continue with the old swarm executor implementation below
101
- }
102
- else {
103
- // Default behavior: spawn Claude Code with comprehensive swarm MCP instructions
104
- try {
105
- const { execSync, spawn } = await import('child_process');
106
- // Check if claude command exists
107
- let claudeAvailable = false;
108
- try {
109
- execSync('which claude', { stdio: 'ignore' });
110
- claudeAvailable = true;
111
- }
112
- catch {
113
- console.log('⚠️ Claude Code CLI not found in PATH');
114
- console.log('Install it with: npm install -g @anthropic-ai/claude-code');
115
- console.log('\nWould spawn Claude Code with swarm objective:');
116
- console.log(`📋 Objective: ${objective}`);
117
- console.log('\nTo use the built-in executor instead: claude-flow swarm "objective" --executor');
118
- return;
119
- }
120
- // Claude is available, use it to run swarm
121
- console.log('🐝 Launching Claude Flow Swarm System...');
122
- console.log(`📋 Objective: ${objective}`);
123
- console.log(`🎯 Strategy: ${flags.strategy || 'auto'}`);
124
- console.log(`🏗️ Mode: ${flags.mode || 'centralized'}`);
125
- console.log(`🤖 Max Agents: ${flags['max-agents'] || 5}\n`);
126
- const strategy = flags.strategy || 'auto';
127
- const mode = flags.mode || 'centralized';
128
- const maxAgents = flags['max-agents'] || 5;
129
- // Get strategy-specific guidance
130
- const strategyGuidance = getStrategyGuidance(strategy, objective);
131
- const modeGuidance = getModeGuidance(mode);
132
- const agentRecommendations = getAgentRecommendations(strategy, maxAgents, objective);
133
- const enableSparc = flags.sparc !== false && (strategy === 'development' || strategy === 'auto');
134
- const swarmPrompt = `You are orchestrating a Claude Flow Swarm with advanced MCP tool coordination.
135
-
136
- 🎯 OBJECTIVE: ${objective}
137
-
138
- 🐝 SWARM CONFIGURATION:
139
- - Strategy: ${strategy}
140
- - Mode: ${mode}
141
- - Max Agents: ${maxAgents}
142
- - Timeout: ${flags.timeout || 60} minutes
143
- - Parallel Execution: MANDATORY (Always use BatchTool)
144
- - Review Mode: ${flags.review || false}
145
- - Testing Mode: ${flags.testing || false}
146
-
147
- 🚨 CRITICAL: PARALLEL EXECUTION IS MANDATORY! 🚨
148
-
149
- 📋 CLAUDE-FLOW SWARM BATCHTOOL INSTRUCTIONS
150
-
151
- ⚡ THE GOLDEN RULE:
152
- If you need to do X operations, they should be in 1 message, not X messages.
153
-
154
- 🎯 MANDATORY PATTERNS FOR CLAUDE-FLOW SWARMS:
155
-
156
- 1️⃣ **SWARM INITIALIZATION** - Everything in ONE BatchTool:
157
- \`\`\`javascript
158
- [Single Message with Multiple Tools]:
159
- // Spawn ALL agents at once
160
- mcp__claude-flow__agent_spawn {"type": "coordinator", "name": "SwarmLead"}
161
- mcp__claude-flow__agent_spawn {"type": "researcher", "name": "DataAnalyst"}
162
- mcp__claude-flow__agent_spawn {"type": "coder", "name": "BackendDev"}
163
- mcp__claude-flow__agent_spawn {"type": "coder", "name": "FrontendDev"}
164
- mcp__claude-flow__agent_spawn {"type": "tester", "name": "QAEngineer"}
165
-
166
- // Initialize ALL memory keys
167
- mcp__claude-flow__memory_store {"key": "swarm/objective", "value": "${objective}"}
168
- mcp__claude-flow__memory_store {"key": "swarm/config", "value": {"strategy": "${strategy}", "mode": "${mode}"}}
169
-
170
- // Create task hierarchy
171
- mcp__claude-flow__task_create {"name": "${objective}", "type": "parent", "id": "main"}
172
- mcp__claude-flow__task_create {"name": "Research Phase", "parent": "main"}
173
- mcp__claude-flow__task_create {"name": "Design Phase", "parent": "main"}
174
- mcp__claude-flow__task_create {"name": "Implementation", "parent": "main"}
175
-
176
- // Initialize comprehensive todo list
177
- TodoWrite {"todos": [
178
- {"id": "1", "content": "Initialize ${maxAgents} agent swarm", "status": "completed", "priority": "high"},
179
- {"id": "2", "content": "Analyze: ${objective}", "status": "in_progress", "priority": "high"},
180
- {"id": "3", "content": "Design architecture", "status": "pending", "priority": "high"},
181
- {"id": "4", "content": "Implement solution", "status": "pending", "priority": "high"},
182
- {"id": "5", "content": "Test and validate", "status": "pending", "priority": "medium"}
183
- ]}
184
- \`\`\`
185
-
186
- 2️⃣ **TASK COORDINATION** - Batch ALL assignments:
187
- \`\`\`javascript
188
- [Single Message]:
189
- // Assign all tasks
190
- mcp__claude-flow__task_assign {"taskId": "research-1", "agentId": "researcher-1"}
191
- mcp__claude-flow__task_assign {"taskId": "design-1", "agentId": "architect-1"}
192
- mcp__claude-flow__task_assign {"taskId": "code-1", "agentId": "coder-1"}
193
- mcp__claude-flow__task_assign {"taskId": "code-2", "agentId": "coder-2"}
194
-
195
- // Communicate to all agents
196
- mcp__claude-flow__agent_communicate {"to": "all", "message": "Begin phase 1"}
197
-
198
- // Update multiple task statuses
199
- mcp__claude-flow__task_update {"taskId": "research-1", "status": "in_progress"}
200
- mcp__claude-flow__task_update {"taskId": "design-1", "status": "pending"}
201
- \`\`\`
202
-
203
- 3️⃣ **MEMORY COORDINATION** - Store/retrieve in batches:
204
- \`\`\`javascript
205
- [Single Message]:
206
- // Store multiple findings
207
- mcp__claude-flow__memory_store {"key": "research/requirements", "value": {...}}
208
- mcp__claude-flow__memory_store {"key": "research/constraints", "value": {...}}
209
- mcp__claude-flow__memory_store {"key": "architecture/decisions", "value": {...}}
210
-
211
- // Retrieve related data
212
- mcp__claude-flow__memory_retrieve {"key": "research/*"}
213
- mcp__claude-flow__memory_search {"pattern": "architecture"}
214
- \`\`\`
215
-
216
- 4️⃣ **FILE & CODE OPERATIONS** - Parallel execution:
217
- \`\`\`javascript
218
- [Single Message]:
219
- // Read multiple files
220
- Read {"file_path": "/src/index.js"}
221
- Read {"file_path": "/src/config.js"}
222
- Read {"file_path": "/package.json"}
223
-
224
- // Write multiple files
225
- Write {"file_path": "/src/api/auth.js", "content": "..."}
226
- Write {"file_path": "/src/api/users.js", "content": "..."}
227
- Write {"file_path": "/tests/auth.test.js", "content": "..."}
228
-
229
- // Update memory with results
230
- mcp__claude-flow__memory_store {"key": "code/api/auth", "value": "implemented"}
231
- mcp__claude-flow__memory_store {"key": "code/api/users", "value": "implemented"}
232
- \`\`\`
233
-
234
- 5️⃣ **MONITORING & STATUS** - Combined checks:
235
- \`\`\`javascript
236
- [Single Message]:
237
- mcp__claude-flow__swarm_monitor {}
238
- mcp__claude-flow__swarm_status {}
239
- mcp__claude-flow__agent_list {"status": "active"}
240
- mcp__claude-flow__task_status {"includeCompleted": false}
241
- TodoRead {}
242
- \`\`\`
243
-
244
- ❌ NEVER DO THIS (Sequential = SLOW):
245
- \`\`\`
246
- Message 1: mcp__claude-flow__agent_spawn
247
- Message 2: mcp__claude-flow__agent_spawn
248
- Message 3: TodoWrite (one todo)
249
- Message 4: Read file
250
- Message 5: mcp__claude-flow__memory_store
251
- \`\`\`
252
-
253
- ✅ ALWAYS DO THIS (Batch = FAST):
254
- \`\`\`
255
- Message 1: [All operations in one message]
256
- \`\`\`
257
-
258
- 💡 BATCHTOOL BEST PRACTICES:
259
- - Group by operation type (all spawns, all reads, all writes)
260
- - Use TodoWrite with 5-10 todos at once
261
- - Combine file operations when analyzing codebases
262
- - Store multiple memory items per message
263
- - Never send more than one message for related operations
264
-
265
- ${strategyGuidance}
266
-
267
- ${modeGuidance}
268
-
269
- ${agentRecommendations}
270
-
271
- 📋 MANDATORY PARALLEL WORKFLOW:
272
-
273
- 1. **INITIAL SPAWN (Single BatchTool Message):**
274
- - Spawn ALL agents at once
275
- - Create ALL initial todos at once
276
- - Store initial memory state
277
- - Create task hierarchy
278
-
279
- Example:
280
- \`\`\`
281
- [BatchTool]:
282
- mcp__claude-flow__agent_spawn (coordinator)
283
- mcp__claude-flow__agent_spawn (architect)
284
- mcp__claude-flow__agent_spawn (coder-1)
285
- mcp__claude-flow__agent_spawn (coder-2)
286
- mcp__claude-flow__agent_spawn (tester)
287
- mcp__claude-flow__memory_store { key: "init", value: {...} }
288
- mcp__claude-flow__task_create { name: "Main", subtasks: [...] }
289
- TodoWrite { todos: [5-10 todos at once] }
290
- \`\`\`
291
-
292
- 2. **TASK EXECUTION (Parallel Batches):**
293
- - Assign multiple tasks in one batch
294
- - Update multiple statuses together
295
- - Store multiple results simultaneously
296
-
297
- 3. **MONITORING (Combined Operations):**
298
- - Check all agent statuses together
299
- - Retrieve multiple memory items
300
- - Update all progress markers
301
-
302
- 🔧 AVAILABLE MCP TOOLS FOR SWARM COORDINATION:
303
-
304
- 📊 MONITORING & STATUS:
305
- - mcp__claude-flow__swarm_status - Check current swarm status and agent activity
306
- - mcp__claude-flow__swarm_monitor - Real-time monitoring of swarm execution
307
- - mcp__claude-flow__agent_list - List all active agents and their capabilities
308
- - mcp__claude-flow__task_status - Check task progress and dependencies
309
-
310
- 🧠 MEMORY & KNOWLEDGE:
311
- - mcp__claude-flow__memory_store - Store knowledge in swarm collective memory
312
- - mcp__claude-flow__memory_retrieve - Retrieve shared knowledge from memory
313
- - mcp__claude-flow__memory_search - Search collective memory by pattern
314
- - mcp__claude-flow__memory_sync - Synchronize memory across agents
315
-
316
- 🤖 AGENT MANAGEMENT:
317
- - mcp__claude-flow__agent_spawn - Spawn specialized agents for tasks
318
- - mcp__claude-flow__agent_assign - Assign tasks to specific agents
319
- - mcp__claude-flow__agent_communicate - Send messages between agents
320
- - mcp__claude-flow__agent_coordinate - Coordinate agent activities
321
-
322
- 📋 TASK ORCHESTRATION:
323
- - mcp__claude-flow__task_create - Create new tasks with dependencies
324
- - mcp__claude-flow__task_assign - Assign tasks to agents
325
- - mcp__claude-flow__task_update - Update task status and progress
326
- - mcp__claude-flow__task_complete - Mark tasks as complete with results
327
-
328
- 🎛️ COORDINATION MODES:
329
- 1. CENTRALIZED (default): Single coordinator manages all agents
330
- - Use when: Clear hierarchy needed, simple workflows
331
- - Tools: agent_assign, task_create, swarm_monitor
332
-
333
- 2. DISTRIBUTED: Multiple coordinators share responsibility
334
- - Use when: Large scale tasks, fault tolerance needed
335
- - Tools: agent_coordinate, memory_sync, task_update
336
-
337
- 3. HIERARCHICAL: Tree structure with team leads
338
- - Use when: Complex projects with sub-teams
339
- - Tools: agent_spawn (with parent), task_create (with subtasks)
340
-
341
- 4. MESH: Peer-to-peer agent coordination
342
- - Use when: Maximum flexibility, self-organizing teams
343
- - Tools: agent_communicate, memory_store/retrieve
344
-
345
- ⚡ EXECUTION WORKFLOW - ALWAYS USE BATCHTOOL:
346
- ${enableSparc ? `
347
- 1. SPARC METHODOLOGY WITH PARALLEL EXECUTION:
348
-
349
- S - Specification Phase (Single BatchTool):
350
- \`\`\`
351
- [BatchTool]:
352
- mcp__claude-flow__memory_store { key: "specs/requirements", value: {...} }
353
- mcp__claude-flow__task_create { name: "Requirement 1" }
354
- mcp__claude-flow__task_create { name: "Requirement 2" }
355
- mcp__claude-flow__task_create { name: "Requirement 3" }
356
- mcp__claude-flow__agent_spawn { type: "researcher", name: "SpecAnalyst" }
357
- \`\`\`
358
-
359
- P - Pseudocode Phase (Single BatchTool):
360
- \`\`\`
361
- [BatchTool]:
362
- mcp__claude-flow__memory_store { key: "pseudocode/main", value: {...} }
363
- mcp__claude-flow__task_create { name: "Design API" }
364
- mcp__claude-flow__task_create { name: "Design Data Model" }
365
- mcp__claude-flow__agent_communicate { to: "all", message: "Review design" }
366
- \`\`\`
367
-
368
- A - Architecture Phase (Single BatchTool):
369
- \`\`\`
370
- [BatchTool]:
371
- mcp__claude-flow__agent_spawn { type: "architect", name: "LeadArchitect" }
372
- mcp__claude-flow__memory_store { key: "architecture/decisions", value: {...} }
373
- mcp__claude-flow__task_create { name: "Backend", subtasks: [...] }
374
- mcp__claude-flow__task_create { name: "Frontend", subtasks: [...] }
375
- \`\`\`
376
-
377
- R - Refinement Phase (Single BatchTool):
378
- \`\`\`
379
- [BatchTool]:
380
- mcp__claude-flow__swarm_monitor {}
381
- mcp__claude-flow__task_update { taskId: "1", progress: 50 }
382
- mcp__claude-flow__task_update { taskId: "2", progress: 75 }
383
- mcp__claude-flow__memory_store { key: "learnings/iteration1", value: {...} }
384
- \`\`\`
385
-
386
- C - Completion Phase (Single BatchTool):
387
- \`\`\`
388
- [BatchTool]:
389
- mcp__claude-flow__task_complete { taskId: "1", results: {...} }
390
- mcp__claude-flow__task_complete { taskId: "2", results: {...} }
391
- mcp__claude-flow__memory_retrieve { pattern: "**/*" }
392
- TodoWrite { todos: [{content: "Final review", status: "completed"}] }
393
- \`\`\`
394
- ` : `
395
- 1. STANDARD SWARM EXECUTION WITH PARALLEL OPERATIONS:
396
-
397
- Initial Setup (Single BatchTool):
398
- \`\`\`
399
- [BatchTool]:
400
- mcp__claude-flow__task_create { name: "Main", subtasks: [...] }
401
- mcp__claude-flow__agent_spawn { type: "coordinator" }
402
- mcp__claude-flow__agent_spawn { type: "coder" }
403
- mcp__claude-flow__agent_spawn { type: "tester" }
404
- mcp__claude-flow__memory_store { key: "init", value: {...} }
405
- \`\`\`
406
-
407
- Task Assignment (Single BatchTool):
408
- \`\`\`
409
- [BatchTool]:
410
- mcp__claude-flow__task_assign { taskId: "1", agentId: "agent-1" }
411
- mcp__claude-flow__task_assign { taskId: "2", agentId: "agent-2" }
412
- mcp__claude-flow__task_assign { taskId: "3", agentId: "agent-3" }
413
- \`\`\`
414
-
415
- Monitoring & Updates (Single BatchTool):
416
- \`\`\`
417
- [BatchTool]:
418
- mcp__claude-flow__swarm_monitor {}
419
- mcp__claude-flow__agent_communicate { to: "all", message: "Status update" }
420
- mcp__claude-flow__memory_store { key: "progress", value: {...} }
421
- \`\`\`
422
- `}
423
-
424
- 🤝 AGENT TYPES & THEIR MCP TOOL USAGE:
425
-
426
- COORDINATOR:
427
- - Primary tools: swarm_monitor, agent_assign, task_create
428
- - Monitors overall progress and assigns work
429
- - Uses memory_store for decisions and memory_retrieve for context
430
-
431
- RESEARCHER:
432
- - Primary tools: memory_search, memory_store
433
- - Gathers information and stores findings
434
- - Uses agent_communicate to share discoveries
435
-
436
- CODER:
437
- - Primary tools: task_update, memory_retrieve, memory_store
438
- - Implements solutions and updates progress
439
- - Retrieves specs from memory, stores code artifacts
440
-
441
- ANALYST:
442
- - Primary tools: memory_search, swarm_monitor
443
- - Analyzes data and patterns
444
- - Stores insights and recommendations
445
-
446
- TESTER:
447
- - Primary tools: task_status, agent_communicate
448
- - Validates implementations
449
- - Reports issues via task_update
450
-
451
- 📝 EXAMPLE MCP TOOL USAGE PATTERNS:
452
-
453
- 1. Starting a swarm:
454
- mcp__claude-flow__agent_spawn {"type": "coordinator", "name": "SwarmLead"}
455
- mcp__claude-flow__memory_store {"key": "objective", "value": "${objective}"}
456
- mcp__claude-flow__task_create {"name": "Main Objective", "type": "parent"}
457
-
458
- 2. Spawning worker agents:
459
- mcp__claude-flow__agent_spawn {"type": "researcher", "capabilities": ["web-search"]}
460
- mcp__claude-flow__agent_spawn {"type": "coder", "capabilities": ["python", "testing"]}
461
- mcp__claude-flow__task_assign {"taskId": "task-123", "agentId": "agent-456"}
462
-
463
- 3. Coordinating work:
464
- mcp__claude-flow__agent_communicate {"to": "agent-123", "message": "Begin phase 2"}
465
- mcp__claude-flow__memory_store {"key": "phase1/results", "value": {...}}
466
- mcp__claude-flow__task_update {"taskId": "task-123", "progress": 75}
467
-
468
- 4. Monitoring progress:
469
- mcp__claude-flow__swarm_monitor {}
470
- mcp__claude-flow__task_status {"includeCompleted": true}
471
- mcp__claude-flow__agent_list {"status": "active"}
472
-
473
- 💾 MEMORY PATTERNS:
474
-
475
- Use hierarchical keys for organization:
476
- - "specs/requirements" - Store specifications
477
- - "architecture/decisions" - Architecture choices
478
- - "code/modules/[name]" - Code artifacts
479
- - "tests/results/[id]" - Test outcomes
480
- - "docs/api/[endpoint]" - Documentation
481
-
482
- 🚀 BEGIN SWARM EXECUTION:
483
-
484
- Start by spawning a coordinator agent and creating the initial task structure. Use the MCP tools to orchestrate the swarm, coordinate agents, and track progress. Remember to store important decisions and artifacts in collective memory for other agents to access.
485
-
486
- The swarm should be self-documenting - use memory_store to save all important information, decisions, and results throughout the execution.`;
487
- // Pass the prompt directly as an argument to claude
488
- const claudeArgs = [swarmPrompt];
489
- // Add auto-permission flag by default for swarm mode (unless explicitly disabled)
490
- if (flags['dangerously-skip-permissions'] !== false && !flags['no-auto-permissions']) {
491
- claudeArgs.push('--dangerously-skip-permissions');
492
- console.log('🔓 Using --dangerously-skip-permissions by default for seamless swarm execution');
493
- }
494
- // Spawn claude with the prompt as the first argument
495
- const claudeProcess = spawn('claude', claudeArgs, {
496
- stdio: 'inherit',
497
- shell: false
498
- });
499
- console.log('✓ Claude Code launched with swarm coordination prompt!');
500
- console.log('\n🚀 The swarm coordination instructions have been injected into Claude Code');
501
- console.log(' The prompt includes:');
502
- console.log(' • Strategy-specific guidance for', strategy);
503
- console.log(' • Coordination patterns for', mode, 'mode');
504
- console.log(' • Recommended agents and MCP tool usage');
505
- console.log(' • Complete workflow documentation\n');
506
- // Handle process events
507
- claudeProcess.on('error', (err) => {
508
- console.error('❌ Failed to launch Claude Code:', err.message);
509
- });
510
- // Don't wait for completion - let it run
511
- return;
512
- }
513
- catch (error) {
514
- console.error('❌ Failed to spawn Claude Code:', error.message);
515
- console.log('\nFalling back to built-in executor...');
516
- // Fall through to executor implementation
517
- }
518
- }
519
- // Check if we should run in background mode
520
- if (flags && flags.background && !process.env.CLAUDE_SWARM_NO_BG) {
521
- // Check if we're in Deno environment
522
- if (typeof Deno !== 'undefined') {
523
- // In Deno, spawn a new process for true background execution
524
- const objective = (args || []).join(' ').trim();
525
- const swarmId = `swarm_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
526
- const swarmRunDir = `./swarm-runs/${swarmId}`;
527
- // Create swarm directory
528
- await mkdirAsync(swarmRunDir, { recursive: true });
529
- console.log(`🐝 Launching swarm in background mode...`);
530
- console.log(`📋 Objective: ${objective}`);
531
- console.log(`🆔 Swarm ID: ${swarmId}`);
532
- console.log(`📁 Results: ${swarmRunDir}`);
533
- // Build command args without background flag (to prevent infinite loop)
534
- const commandArgs = ['run', '--allow-all', import.meta.url, objective];
535
- const newFlags = { ...flags };
536
- delete newFlags.background; // Remove background flag
537
- for (const [key, value] of Object.entries(newFlags)) {
538
- commandArgs.push(`--${key}`);
539
- if (value !== true) {
540
- commandArgs.push(String(value));
541
- }
542
- }
543
- // Create log file
544
- const logFile = `${swarmRunDir}/swarm.log`;
545
- const logHandle = await open(logFile, 'w');
546
- // Create a script to run the swarm without background flag
547
- const scriptContent = `#!/usr/bin/env -S deno run --allow-all
548
- import { swarmCommand } from "${import.meta.url}";
549
- import { Deno, cwd, exit, existsSync } from '../node-compat.js';
550
- import process from 'process';
551
-
552
- // Remove background flag to prevent recursion
553
- const flags = ${JSON.stringify(newFlags)};
554
- const args = ${JSON.stringify(args)};
555
-
556
- // Set env to prevent background spawning
557
- process.env.CLAUDE_SWARM_NO_BG = 'true';
558
-
559
- // Run the swarm
560
- await swarmCommand(args, flags);
561
- `;
562
- const scriptPath = `${swarmRunDir}/run-swarm.js`;
563
- await writeTextFile(scriptPath, scriptContent);
564
- // Save process info first
565
- await writeTextFile(`${swarmRunDir}/process.json`, JSON.stringify({
566
- swarmId: swarmId,
567
- objective: objective,
568
- startTime: new Date().toISOString(),
569
- logFile: logFile,
570
- status: 'starting'
571
- }, null, 2));
572
- // Close log handle before spawning
573
- logHandle.close();
574
- // Use the bash script for true background execution
575
- const binDir = new URL('../../../bin/', import.meta.url).pathname;
576
- const bgScriptPath = `${binDir}claude-flow-swarm-bg`;
577
- try {
578
- // Check if the background script exists
579
- statSync(bgScriptPath);
580
- // Build command args for the background script
581
- const bgArgs = [objective];
582
- for (const [key, value] of Object.entries(newFlags)) {
583
- bgArgs.push(`--${key}`);
584
- if (value !== true) {
585
- bgArgs.push(String(value));
586
- }
587
- }
588
- // Use the bash background script
589
- const bgProcess = spawn(bgScriptPath, bgArgs, {
590
- stdio: ['ignore', 'pipe', 'pipe']
591
- });
592
- // Read and display output
593
- const decoder = new TextDecoder();
594
- const output = await bgProcess.output();
595
- console.log(decoder.decode(output.stdout));
596
- // Exit immediately after launching
597
- exit(0);
598
- }
599
- catch (error) {
600
- // Fallback: create a double-fork pattern using a shell script
601
- console.log(`\n⚠️ Background script not found, using fallback method`);
602
- // Create a shell script that will run the swarm
603
- const shellScript = `#!/bin/bash
604
- # Double fork to detach from parent
605
- (
606
- (
607
- node "${scriptPath}" > "${logFile}" 2>&1 &
608
- echo $! > "${swarmRunDir}/swarm.pid"
609
- ) &
610
- )
611
- exit 0
612
- `;
613
- const shellScriptPath = `${swarmRunDir}/launch-background.sh`;
614
- await writeTextFile(shellScriptPath, shellScript);
615
- chmodSync(shellScriptPath, 0o755);
616
- // Execute the shell script
617
- const shellProcess = spawn("bash", [shellScriptPath], {
618
- stdio: 'ignore',
619
- detached: true
620
- });
621
- shellProcess.unref();
622
- console.log(`\n✅ Swarm launched in background!`);
623
- console.log(`📄 Logs: tail -f ${logFile}`);
624
- console.log(`📊 Status: claude-flow swarm status ${swarmId}`);
625
- console.log(`\nThe swarm will continue running independently.`);
626
- // Exit immediately
627
- exit(0);
628
- }
629
- }
630
- // Node.js environment - use background script
631
- const { execSync } = await import('child_process');
632
- const path = await import('path');
633
- const fs = await import('fs');
634
- const objective = (args || []).join(' ').trim();
635
- // Get the claude-flow-swarm-bg script path
636
- const bgScriptPath = path.join(path.dirname(new URL(import.meta.url).pathname), '../../../bin/claude-flow-swarm-bg');
637
- // Check if background script exists
638
- if (fs.existsSync(bgScriptPath)) {
639
- // Build command args
640
- const commandArgs = [objective];
641
- for (const [key, value] of Object.entries(flags)) {
642
- if (key !== 'background') { // Skip background flag
643
- commandArgs.push(`--${key}`);
644
- if (value !== true) {
645
- commandArgs.push(String(value));
646
- }
647
- }
648
- }
649
- // Execute the background script
650
- try {
651
- execSync(`"${bgScriptPath}" ${commandArgs.map(arg => `"${arg}"`).join(' ')}`, {
652
- stdio: 'inherit'
653
- });
654
- }
655
- catch (error) {
656
- console.error('Failed to launch background swarm:', error.message);
657
- }
658
- }
659
- else {
660
- // Fallback to simple message
661
- console.log(`🐝 Background mode requested`);
662
- console.log(`📋 Objective: ${objective}`);
663
- console.log(`\n⚠️ Background execution requires the claude-flow-swarm-bg script.`);
664
- console.log(`\nFor true background execution, use:`);
665
- console.log(` nohup claude-flow swarm "${objective}" ${Object.entries(flags).filter(([k, v]) => k !== 'background' && v).map(([k, v]) => `--${k}${v !== true ? ` ${v}` : ''}`).join(' ')} > swarm.log 2>&1 &`);
666
- }
667
- return;
668
- }
669
- try {
670
- // Try to load the compiled JavaScript module first
671
- let swarmAction;
672
- try {
673
- // Try the compiled version first (for production/npm packages)
674
- const distPath = new URL('../../../dist/cli/commands/swarm-new.js', import.meta.url);
675
- const module = await import(distPath);
676
- swarmAction = module.swarmAction;
677
- }
678
- catch (distError) {
679
- // If dist version not found, try TypeScript version (for development)
680
- try {
681
- const module = await import('../commands/swarm-new.ts');
682
- swarmAction = module.swarmAction;
683
- }
684
- catch (tsError) {
685
- // Neither version found, throw the original error
686
- throw distError;
687
- }
688
- }
689
- // Create command context compatible with TypeScript version
690
- const ctx = {
691
- args: args || [],
692
- flags: flags || {},
693
- command: 'swarm'
694
- };
695
- await swarmAction(ctx);
696
- }
697
- catch (error) {
698
- // If import fails (e.g., in node_modules), provide inline implementation
699
- if (error.code === 'ERR_MODULE_NOT_FOUND' || error.code === 'ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING' || error.code === 'ERR_UNKNOWN_FILE_EXTENSION') {
700
- // Provide a basic swarm implementation that works without TypeScript imports
701
- const objective = (args || []).join(' ').trim();
702
- if (!objective) {
703
- console.error("❌ Usage: swarm <objective>");
704
- showSwarmHelp();
705
- return;
706
- }
707
- // Try to use the swarm executor directly
708
- try {
709
- const { executeSwarm } = await import('./swarm-executor.js');
710
- const result = await executeSwarm(objective, flags);
711
- // If execution was successful, exit
712
- if (result && result.success) {
713
- return;
714
- }
715
- }
716
- catch (execError) {
717
- console.log(`⚠️ Swarm executor error: ${execError.message}`);
718
- // If swarm executor fails, try to create files directly
719
- try {
720
- await createSwarmFiles(objective, flags);
721
- return;
722
- }
723
- catch (createError) {
724
- console.log(`⚠️ Direct file creation error: ${createError.message}`);
725
- // Continue with fallback implementation
726
- }
727
- }
728
- // Provide a basic inline swarm implementation for npm packages
729
- console.log('🐝 Launching swarm system...');
730
- console.log(`📋 Objective: ${objective}`);
731
- console.log(`🎯 Strategy: ${flags.strategy || 'auto'}`);
732
- console.log(`🏗️ Mode: ${flags.mode || 'centralized'}`);
733
- console.log(`🤖 Max Agents: ${flags['max-agents'] || 5}`);
734
- console.log();
735
- // Generate swarm ID
736
- const swarmId = `swarm_${Math.random().toString(36).substring(2, 11)}_${Math.random().toString(36).substring(2, 11)}`;
737
- if (flags['dry-run']) {
738
- console.log(`🆔 Swarm ID: ${swarmId}`);
739
- console.log(`📊 Max Tasks: ${flags['max-tasks'] || 100}`);
740
- console.log(`⏰ Timeout: ${flags.timeout || 60} minutes`);
741
- console.log(`🔄 Parallel: ${flags.parallel || false}`);
742
- console.log(`🌐 Distributed: ${flags.distributed || false}`);
743
- console.log(`🔍 Monitoring: ${flags.monitor || false}`);
744
- console.log(`👥 Review Mode: ${flags.review || false}`);
745
- console.log(`🧪 Testing: ${flags.testing || false}`);
746
- console.log(`🧠 Memory Namespace: ${flags['memory-namespace'] || 'swarm'}`);
747
- console.log(`💾 Persistence: ${flags.persistence !== false}`);
748
- console.log(`🔒 Encryption: ${flags.encryption || false}`);
749
- console.log(`📊 Quality Threshold: ${flags['quality-threshold'] || 0.8}`);
750
- console.log();
751
- console.log('🎛️ Coordination Strategy:');
752
- console.log(` • Agent Selection: ${flags['agent-selection'] || 'capability-based'}`);
753
- console.log(` • Task Scheduling: ${flags['task-scheduling'] || 'priority'}`);
754
- console.log(` • Load Balancing: ${flags['load-balancing'] || 'work-stealing'}`);
755
- console.log(` • Fault Tolerance: ${flags['fault-tolerance'] || 'retry'}`);
756
- console.log(` • Communication: ${flags.communication || 'event-driven'}`);
757
- console.log('⚠️ DRY RUN - Advanced Swarm Configuration');
758
- return;
759
- }
760
- // For actual execution in npm context, try to find and run swarm-demo.ts
761
- try {
762
- const path = await import('path');
763
- const { fileURLToPath } = await import('url');
764
- const fs = await import('fs');
765
- const { spawn } = await import('child_process');
766
- const __filename = fileURLToPath(import.meta.url);
767
- const __dirname = path.dirname(__filename);
768
- // Look for swarm-demo.ts in the package
769
- const possiblePaths = [
770
- path.join(__dirname, '../../../swarm-demo.ts'),
771
- path.join(__dirname, '../../swarm-demo.ts'),
772
- ];
773
- let swarmDemoPath = null;
774
- for (const p of possiblePaths) {
775
- if (fs.existsSync(p)) {
776
- swarmDemoPath = p;
777
- break;
778
- }
779
- }
780
- if (swarmDemoPath && Deno) {
781
- // Run swarm-demo.ts directly with Deno
782
- const swarmArgs = [objective];
783
- for (const [key, value] of Object.entries(flags || {})) {
784
- swarmArgs.push(`--${key}`);
785
- if (value !== true) {
786
- swarmArgs.push(String(value));
787
- }
788
- }
789
- console.log('🚀 Starting advanced swarm execution...');
790
- const swarmProcess = spawn('node', [swarmDemoPath, ...swarmArgs], {
791
- stdio: 'inherit'
792
- });
793
- swarmProcess.on('error', (err) => {
794
- console.error('❌ Failed to launch swarm:', err.message);
795
- });
796
- swarmProcess.on('exit', (code) => {
797
- if (code !== 0) {
798
- console.error(`❌ Swarm exited with code ${code}`);
799
- }
800
- });
801
- return;
802
- }
803
- }
804
- catch (e) {
805
- // Fallback to basic message if can't run swarm-demo.ts
806
- }
807
- // Try to use Claude wrapper approach like SPARC does
808
- try {
809
- const { execSync } = await import('child_process');
810
- // Check if claude command exists
811
- try {
812
- execSync('which claude', { stdio: 'ignore' });
813
- }
814
- catch (e) {
815
- // Claude not found, show fallback message
816
- console.log(`✅ Swarm initialized with ID: ${swarmId}`);
817
- console.log('\n⚠️ Note: Advanced swarm features require Claude or local installation.');
818
- console.log('Install Claude: https://claude.ai/code');
819
- console.log('Or install locally: npm install -g claude-flow@latest');
820
- console.log('\nThe swarm system would coordinate the following:');
821
- console.log('1. Agent spawning and task distribution');
822
- console.log('2. Parallel execution of subtasks');
823
- console.log('3. Memory sharing between agents');
824
- console.log('4. Progress monitoring and reporting');
825
- console.log('5. Result aggregation and quality checks');
826
- return;
827
- }
828
- // Claude is available, use it to run swarm
829
- console.log('🚀 Launching swarm via Claude wrapper...');
830
- if (flags.sparc !== false) {
831
- console.log('🧪 SPARC methodology enabled - using full TDD workflow');
832
- }
833
- // Build the prompt for Claude using SPARC methodology
834
- const enableSparc = flags.sparc !== false;
835
- const swarmPrompt = `Execute a swarm coordination task using ${enableSparc ? 'the full SPARC methodology' : 'standard approach'}:
836
-
837
- OBJECTIVE: ${objective}
838
-
839
- CONFIGURATION:
840
- - Strategy: ${flags.strategy || 'auto'}
841
- - Mode: ${flags.mode || 'centralized'}
842
- - Max Agents: ${flags['max-agents'] || 5}
843
- - Memory Namespace: ${flags['memory-namespace'] || 'swarm'}
844
- - Quality Threshold: ${flags['quality-threshold'] || 0.8}
845
- ${enableSparc ? '- SPARC Enabled: YES - Use full Specification, Pseudocode, Architecture, Refinement (TDD), Completion methodology' : ''}
846
-
847
- ${enableSparc ? `
848
- SPARC METHODOLOGY REQUIREMENTS:
849
-
850
- 1. SPECIFICATION PHASE:
851
- - Create detailed requirements and acceptance criteria
852
- - Define user stories with clear objectives
853
- - Document functional and non-functional requirements
854
- - Establish quality metrics and success criteria
855
-
856
- 2. PSEUDOCODE PHASE:
857
- - Design algorithms and data structures
858
- - Create flow diagrams and logic patterns
859
- - Define interfaces and contracts
860
- - Plan error handling strategies
861
-
862
- 3. ARCHITECTURE PHASE:
863
- - Design system architecture with proper components
864
- - Define APIs and service boundaries
865
- - Plan database schemas if applicable
866
- - Create deployment architecture
867
-
868
- 4. REFINEMENT PHASE (TDD):
869
- - RED: Write comprehensive failing tests first
870
- - GREEN: Implement minimal code to pass tests
871
- - REFACTOR: Optimize and clean up implementation
872
- - Ensure >80% test coverage
873
-
874
- 5. COMPLETION PHASE:
875
- - Integrate all components
876
- - Create comprehensive documentation
877
- - Perform end-to-end testing
878
- - Validate against original requirements
879
- ` : ''}
880
-
881
- EXECUTION APPROACH:
882
- 1. Analyze the objective and break it down into specific tasks
883
- 2. Create a comprehensive implementation plan
884
- 3. ${enableSparc ? 'Follow SPARC phases sequentially with proper artifacts for each phase' : 'Implement the solution directly'}
885
- 4. Generate production-ready code with proper structure
886
- 5. Include all necessary files (source code, tests, configs, documentation)
887
- 6. Ensure the implementation is complete and functional
888
-
889
- TARGET DIRECTORY:
890
- Extract from the objective or use a sensible default. Create all files in the appropriate directory structure.
891
-
892
- IMPORTANT:
893
- - Create actual, working implementations - not templates or placeholders
894
- - Include comprehensive tests using appropriate testing frameworks
895
- - Add proper error handling and logging
896
- - Include configuration files (package.json, requirements.txt, etc.)
897
- - Create detailed README with setup and usage instructions
898
- - Follow best practices for the technology stack
899
- - Make the code production-ready, not just examples
900
-
901
- Begin execution now. Create all necessary files and provide a complete, working solution.`;
902
- // Execute Claude non-interactively by piping the prompt
903
- const { spawn } = await import('child_process');
904
- const claudeArgs = [];
905
- // Add auto-permission flag by default for swarm mode (unless explicitly disabled)
906
- if (flags['dangerously-skip-permissions'] !== false && !flags['no-auto-permissions']) {
907
- claudeArgs.push('--dangerously-skip-permissions');
908
- }
909
- // Spawn claude process
910
- const claudeProcess = spawn('claude', claudeArgs, {
911
- stdio: ['pipe', 'inherit', 'inherit'],
912
- shell: false
913
- });
914
- // Write the prompt to stdin and close it
915
- claudeProcess.stdin.write(swarmPrompt);
916
- claudeProcess.stdin.end();
917
- // Wait for the process to complete
918
- await new Promise((resolve, reject) => {
919
- claudeProcess.on('close', (code) => {
920
- if (code === 0) {
921
- resolve();
922
- }
923
- else {
924
- reject(new Error(`Claude process exited with code ${code}`));
925
- }
926
- });
927
- claudeProcess.on('error', (err) => {
928
- reject(err);
929
- });
930
- });
931
- }
932
- catch (error) {
933
- // Fallback if Claude execution fails
934
- console.log(`✅ Swarm initialized with ID: ${swarmId}`);
935
- console.log('\n⚠️ Note: Advanced swarm features require Claude or local installation.');
936
- console.log('Install Claude: https://claude.ai/code');
937
- console.log('Or install locally: npm install -g claude-flow@latest');
938
- console.log('\nThe swarm system would coordinate the following:');
939
- console.log('1. Agent spawning and task distribution');
940
- console.log('2. Parallel execution of subtasks');
941
- console.log('3. Memory sharing between agents');
942
- console.log('4. Progress monitoring and reporting');
943
- console.log('5. Result aggregation and quality checks');
944
- }
945
- return;
946
- }
947
- console.error('Swarm command error:', error);
948
- // Fallback to comprehensive help if there's an import error
949
- console.log(`
950
- 🐝 Claude Flow Advanced Swarm System
951
-
952
- USAGE:
953
- claude-flow swarm <objective> [options]
954
-
955
- EXAMPLES:
956
- claude-flow swarm "Build a REST API" --strategy development
957
- claude-flow swarm "Research cloud architecture" --strategy research --ui
958
- claude-flow swarm "Analyze data trends" --strategy analysis --parallel
959
- claude-flow swarm "Optimize performance" --distributed --monitor
960
-
961
- STRATEGIES:
962
- auto Automatically determine best approach (default)
963
- research Research and information gathering
964
- development Software development and coding
965
- analysis Data analysis and insights
966
- testing Testing and quality assurance
967
- optimization Performance optimization
968
- maintenance System maintenance
969
-
970
- MODES:
971
- centralized Single coordinator (default)
972
- distributed Multiple coordinators
973
- hierarchical Tree structure coordination
974
- mesh Peer-to-peer coordination
975
- hybrid Mixed coordination strategies
976
-
977
- KEY FEATURES:
978
- 🤖 Intelligent agent management with specialized types
979
- ⚡ Timeout-free background task execution
980
- 🧠 Distributed memory sharing between agents
981
- 🔄 Work stealing and advanced load balancing
982
- 🛡️ Circuit breaker patterns for fault tolerance
983
- 📊 Real-time monitoring and comprehensive metrics
984
- 🎛️ Multiple coordination strategies and algorithms
985
- 💾 Persistent state with backup and recovery
986
- 🔒 Security features with encryption options
987
- 🖥️ Interactive terminal UI for management
988
-
989
- OPTIONS:
990
- --strategy <type> Execution strategy (default: auto)
991
- --mode <type> Coordination mode (default: centralized)
992
- --max-agents <n> Maximum agents (default: 5)
993
- --timeout <minutes> Timeout in minutes (default: 60)
994
- --task-timeout-minutes <n> Task execution timeout in minutes (default: 59)
995
- --parallel Enable parallel execution
996
- --distributed Enable distributed coordination
997
- --monitor Enable real-time monitoring
998
- --ui Launch terminal UI interface
999
- --background Run in background mode
1000
- --review Enable peer review
1001
- --testing Enable automated testing
1002
- --encryption Enable encryption
1003
- --verbose Enable detailed logging
1004
- --dry-run Show configuration without executing
1005
- --executor Use built-in executor instead of Claude Code
1006
- --auto (Deprecated: auto-permissions enabled by default)
1007
- --no-auto-permissions Disable automatic --dangerously-skip-permissions
1008
-
1009
- ADVANCED OPTIONS:
1010
- --quality-threshold <n> Quality threshold 0-1 (default: 0.8)
1011
- --memory-namespace <name> Memory namespace (default: swarm)
1012
- --agent-selection <type> Agent selection strategy
1013
- --task-scheduling <type> Task scheduling algorithm
1014
- --load-balancing <type> Load balancing method
1015
- --fault-tolerance <type> Fault tolerance strategy
1016
-
1017
- For complete documentation and examples:
1018
- https://github.com/ruvnet/claude-code-flow/docs/swarm.md
1019
- `);
1020
- }
1021
- }
1022
- // Function to create swarm files directly
1023
- async function createSwarmFiles(objective, flags) {
1024
- const fs = await import('fs');
1025
- const path = await import('path');
1026
- const swarmId = `swarm_${Math.random().toString(36).substring(2, 11)}_${Math.random().toString(36).substring(2, 11)}`;
1027
- console.log(`🐝 Swarm Execution Started: ${swarmId}`);
1028
- console.log(`📋 Objective: ${objective}`);
1029
- console.log(`🎯 Strategy: ${flags.strategy || 'auto'}`);
1030
- // Extract target directory from objective
1031
- const targetMatch = objective.match(/in\s+([^\s]+)\/?$/i);
1032
- let targetDir = targetMatch ? targetMatch[1] : 'output';
1033
- // Resolve relative paths
1034
- if (!targetDir.startsWith('/')) {
1035
- targetDir = path.join(process.cwd(), targetDir);
1036
- }
1037
- console.log(`📁 Target directory: ${targetDir}`);
1038
- // Ensure target directory exists
1039
- await fs.promises.mkdir(targetDir, { recursive: true });
1040
- // Determine what to build based on objective
1041
- const isRestAPI = objective.toLowerCase().includes('rest api') ||
1042
- objective.toLowerCase().includes('api');
1043
- if (isRestAPI) {
1044
- // Create REST API
1045
- const apiDir = path.join(targetDir, 'rest-api');
1046
- await fs.promises.mkdir(apiDir, { recursive: true });
1047
- console.log(`\n🏗️ Creating REST API...`);
1048
- console.log(` 🤖 Agent developer-1: Creating server implementation`);
1049
- // Create server.js
1050
- const serverCode = `const express = require('express');
1051
- const app = express();
1052
- const port = process.env.PORT || 3000;
1053
-
1054
- // Middleware
1055
- app.use(express.json());
1056
- app.use(express.urlencoded({ extended: true }));
1057
-
1058
- // Health check endpoint
1059
- app.get('/health', (req, res) => {
1060
- res.json({
1061
- status: 'healthy',
1062
- service: 'REST API',
1063
- swarmId: '${swarmId}',
1064
- created: new Date().toISOString()
1065
- });
1066
- });
1067
-
1068
- // Sample endpoints
1069
- app.get('/api/v1/items', (req, res) => {
1070
- res.json({
1071
- items: [
1072
- { id: 1, name: 'Item 1', description: 'First item' },
1073
- { id: 2, name: 'Item 2', description: 'Second item' }
1074
- ],
1075
- total: 2
1076
- });
1077
- });
1078
-
1079
- app.get('/api/v1/items/:id', (req, res) => {
1080
- const id = parseInt(req.params.id);
1081
- res.json({
1082
- id,
1083
- name: \`Item \${id}\`,
1084
- description: \`Description for item \${id}\`
1085
- });
1086
- });
1087
-
1088
- app.post('/api/v1/items', (req, res) => {
1089
- const newItem = {
1090
- id: Date.now(),
1091
- ...req.body,
1092
- createdAt: new Date().toISOString()
1093
- };
1094
- res.status(201).json(newItem);
1095
- });
1096
-
1097
- // Start server
1098
- app.listen(port, () => {
1099
- console.log(\`REST API server running on port \${port}\`);
1100
- console.log('Created by Claude Flow Swarm');
1101
- });
1102
-
1103
- module.exports = app;
1104
- `;
1105
- await fs.promises.writeFile(path.join(apiDir, 'server.js'), serverCode);
1106
- console.log(` ✅ Created: server.js`);
1107
- // Create package.json
1108
- const packageJson = {
1109
- name: "rest-api",
1110
- version: "1.0.0",
1111
- description: "REST API created by Claude Flow Swarm",
1112
- main: "server.js",
1113
- scripts: {
1114
- start: "node server.js",
1115
- dev: "nodemon server.js",
1116
- test: "jest"
1117
- },
1118
- keywords: ["rest", "api", "swarm", "claude-flow"],
1119
- author: "Claude Flow Swarm",
1120
- license: "MIT",
1121
- dependencies: {
1122
- express: "^4.18.2"
1123
- },
1124
- devDependencies: {
1125
- nodemon: "^3.0.1",
1126
- jest: "^29.7.0",
1127
- supertest: "^6.3.3"
1128
- },
1129
- swarmMetadata: {
1130
- swarmId,
1131
- strategy: flags.strategy || 'development',
1132
- created: new Date().toISOString()
1133
- }
1134
- };
1135
- await fs.promises.writeFile(path.join(apiDir, 'package.json'), JSON.stringify(packageJson, null, 2));
1136
- console.log(` ✅ Created: package.json`);
1137
- // Create README
1138
- const readme = `# REST API
1139
-
1140
- This REST API was created by the Claude Flow Swarm system.
1141
-
1142
- ## Swarm Details
1143
- - Swarm ID: ${swarmId}
1144
- - Strategy: ${flags.strategy || 'development'}
1145
- - Generated: ${new Date().toISOString()}
1146
-
1147
- ## Installation
1148
-
1149
- \`\`\`bash
1150
- npm install
1151
- \`\`\`
1152
-
1153
- ## Usage
1154
-
1155
- Start the server:
1156
- \`\`\`bash
1157
- npm start
1158
- \`\`\`
1159
-
1160
- ## API Endpoints
1161
-
1162
- - \`GET /health\` - Health check
1163
- - \`GET /api/v1/items\` - Get all items
1164
- - \`GET /api/v1/items/:id\` - Get item by ID
1165
- - \`POST /api/v1/items\` - Create new item
1166
-
1167
- ---
1168
- Created by Claude Flow Swarm
1169
- `;
1170
- await fs.promises.writeFile(path.join(apiDir, 'README.md'), readme);
1171
- console.log(` ✅ Created: README.md`);
1172
- console.log(`\n✅ Swarm completed successfully!`);
1173
- console.log(`📁 Files created in: ${apiDir}`);
1174
- console.log(`🆔 Swarm ID: ${swarmId}`);
1175
- }
1176
- else {
1177
- // Create generic application
1178
- console.log(`\n🏗️ Creating application...`);
1179
- const appCode = `// Application created by Claude Flow Swarm
1180
- // Objective: ${objective}
1181
- // Swarm ID: ${swarmId}
1182
-
1183
- function main() {
1184
- console.log('Executing swarm objective: ${objective}');
1185
- console.log('Implementation would be based on the specific requirements');
1186
- }
1187
-
1188
- main();
1189
- `;
1190
- await fs.promises.writeFile(path.join(targetDir, 'app.js'), appCode);
1191
- console.log(` ✅ Created: app.js`);
1192
- const packageJson = {
1193
- name: "swarm-app",
1194
- version: "1.0.0",
1195
- description: `Application created by Claude Flow Swarm: ${objective}`,
1196
- main: "app.js",
1197
- scripts: {
1198
- start: "node app.js"
1199
- },
1200
- swarmMetadata: {
1201
- swarmId,
1202
- objective,
1203
- created: new Date().toISOString()
1204
- }
1205
- };
1206
- await fs.promises.writeFile(path.join(targetDir, 'package.json'), JSON.stringify(packageJson, null, 2));
1207
- console.log(` ✅ Created: package.json`);
1208
- console.log(`\n✅ Swarm completed successfully!`);
1209
- console.log(`📁 Files created in: ${targetDir}`);
1210
- console.log(`🆔 Swarm ID: ${swarmId}`);
1211
- }
1212
- }
1213
- /**
1214
- * Get strategy-specific guidance for swarm execution
1215
- */
1216
- function getStrategyGuidance(strategy, objective) {
1217
- const guidanceMap = {
1218
- 'auto': `🤖 AUTO STRATEGY - INTELLIGENT TASK ANALYSIS:
1219
- The swarm will analyze "${objective}" and automatically determine the best approach.
1220
-
1221
- ANALYSIS APPROACH:
1222
- 1. Task Decomposition: Break down the objective into subtasks
1223
- 2. Skill Matching: Identify required capabilities and expertise
1224
- 3. Agent Selection: Spawn appropriate agent types based on needs
1225
- 4. Workflow Design: Create optimal execution flow
1226
-
1227
- MCP TOOL PATTERN:
1228
- - Start with memory_store to save the objective analysis
1229
- - Use task_create to build a hierarchical task structure
1230
- - Spawn agents with agent_spawn based on detected requirements
1231
- - Monitor with swarm_monitor and adjust strategy as needed`,
1232
- 'research': `🔬 RESEARCH STRATEGY - INFORMATION GATHERING & ANALYSIS:
1233
- Optimized for: "${objective}"
1234
-
1235
- RESEARCH PHASES:
1236
- 1. Discovery: Broad information gathering
1237
- 2. Analysis: Deep dive into findings
1238
- 3. Synthesis: Combine insights
1239
- 4. Reporting: Document conclusions
1240
-
1241
- RECOMMENDED AGENTS:
1242
- - Lead Researcher: Coordinates research efforts
1243
- - Data Analysts: Process and analyze findings
1244
- - Subject Experts: Domain-specific investigation
1245
- - Documentation Specialist: Compile reports
1246
-
1247
- MCP TOOL USAGE:
1248
- - memory_store: Save all research findings with structured keys
1249
- - memory_search: Find related information across research
1250
- - agent_communicate: Share discoveries between researchers
1251
- - task_create: Break research into focused sub-investigations`,
1252
- 'development': `💻 DEVELOPMENT STRATEGY - SOFTWARE CREATION:
1253
- Building: "${objective}"
1254
-
1255
- DEVELOPMENT WORKFLOW:
1256
- 1. Architecture: Design system structure
1257
- 2. Implementation: Build components
1258
- 3. Integration: Connect systems
1259
- 4. Testing: Validate functionality
1260
- 5. Documentation: Create guides
1261
-
1262
- RECOMMENDED AGENTS:
1263
- - System Architect: Overall design
1264
- - Backend Developers: API/server implementation
1265
- - Frontend Developers: UI/UX implementation
1266
- - DevOps Engineer: Infrastructure setup
1267
- - QA Engineers: Testing and validation
1268
-
1269
- MCP TOOL USAGE:
1270
- - memory_store: Save architecture decisions, code modules
1271
- - task_create: Create implementation tasks with dependencies
1272
- - agent_assign: Assign specific components to developers
1273
- - swarm_monitor: Track build progress and blockers`,
1274
- 'analysis': `📊 ANALYSIS STRATEGY - DATA EXAMINATION:
1275
- Analyzing: "${objective}"
1276
-
1277
- ANALYSIS FRAMEWORK:
1278
- 1. Data Collection: Gather relevant information
1279
- 2. Processing: Clean and prepare data
1280
- 3. Analysis: Apply analytical methods
1281
- 4. Visualization: Create insights
1282
- 5. Recommendations: Actionable outcomes
1283
-
1284
- RECOMMENDED AGENTS:
1285
- - Lead Analyst: Coordinate analysis efforts
1286
- - Data Engineers: Prepare data pipelines
1287
- - Statistical Analysts: Apply analytical methods
1288
- - Visualization Experts: Create dashboards
1289
- - Business Analysts: Translate to recommendations
1290
-
1291
- MCP TOOL USAGE:
1292
- - memory_store: Save datasets and analysis results
1293
- - memory_retrieve: Access historical analysis
1294
- - task_create: Define analysis pipelines
1295
- - agent_coordinate: Sync analysis phases`,
1296
- 'testing': `🧪 TESTING STRATEGY - QUALITY ASSURANCE:
1297
- Testing: "${objective}"
1298
-
1299
- TESTING PHASES:
1300
- 1. Test Planning: Define test scenarios
1301
- 2. Test Development: Create test cases
1302
- 3. Execution: Run test suites
1303
- 4. Bug Tracking: Document issues
1304
- 5. Regression: Ensure fixes work
1305
-
1306
- RECOMMENDED AGENTS:
1307
- - Test Lead: Coordinate testing efforts
1308
- - Unit Testers: Component-level testing
1309
- - Integration Testers: System-level testing
1310
- - Performance Testers: Load and stress testing
1311
- - Security Testers: Vulnerability assessment
1312
-
1313
- MCP TOOL USAGE:
1314
- - task_create: Create test cases and scenarios
1315
- - memory_store: Save test results and bug reports
1316
- - agent_communicate: Report bugs to developers
1317
- - swarm_monitor: Track testing coverage and progress`,
1318
- 'optimization': `⚡ OPTIMIZATION STRATEGY - PERFORMANCE IMPROVEMENT:
1319
- Optimizing: "${objective}"
1320
-
1321
- OPTIMIZATION PROCESS:
1322
- 1. Profiling: Identify bottlenecks
1323
- 2. Analysis: Understand root causes
1324
- 3. Implementation: Apply optimizations
1325
- 4. Validation: Measure improvements
1326
- 5. Documentation: Record changes
1327
-
1328
- RECOMMENDED AGENTS:
1329
- - Performance Lead: Coordinate optimization
1330
- - System Profilers: Identify bottlenecks
1331
- - Algorithm Experts: Optimize logic
1332
- - Database Specialists: Query optimization
1333
- - Infrastructure Engineers: System tuning
1334
-
1335
- MCP TOOL USAGE:
1336
- - memory_store: Save performance baselines and results
1337
- - task_create: Create optimization tasks by priority
1338
- - swarm_monitor: Track performance improvements
1339
- - agent_communicate: Coordinate optimization efforts`,
1340
- 'maintenance': `🔧 MAINTENANCE STRATEGY - SYSTEM UPKEEP:
1341
- Maintaining: "${objective}"
1342
-
1343
- MAINTENANCE WORKFLOW:
1344
- 1. Assessment: Evaluate current state
1345
- 2. Planning: Prioritize updates
1346
- 3. Implementation: Apply changes
1347
- 4. Testing: Verify stability
1348
- 5. Documentation: Update records
1349
-
1350
- RECOMMENDED AGENTS:
1351
- - Maintenance Lead: Coordinate efforts
1352
- - System Administrators: Infrastructure updates
1353
- - Security Engineers: Patch vulnerabilities
1354
- - Database Administrators: Data maintenance
1355
- - Documentation Writers: Update guides
1356
-
1357
- MCP TOOL USAGE:
1358
- - memory_retrieve: Access system history
1359
- - task_create: Schedule maintenance tasks
1360
- - agent_assign: Delegate specific updates
1361
- - memory_store: Document all changes`
1362
- };
1363
- return guidanceMap[strategy] || guidanceMap['auto'];
1364
- }
1365
- /**
1366
- * Get mode-specific guidance for coordination
1367
- */
1368
- function getModeGuidance(mode) {
1369
- const modeMap = {
1370
- 'centralized': `🎯 CENTRALIZED MODE - SINGLE COORDINATOR:
1371
- All decisions flow through one coordinator agent.
1372
-
1373
- COORDINATION PATTERN:
1374
- - Spawn a single COORDINATOR as the first agent
1375
- - All other agents report to the coordinator
1376
- - Coordinator assigns tasks and monitors progress
1377
- - Use agent_assign for task delegation
1378
- - Use swarm_monitor for oversight
1379
-
1380
- BENEFITS:
1381
- - Clear chain of command
1382
- - Consistent decision making
1383
- - Simple communication flow
1384
- - Easy progress tracking
1385
-
1386
- BEST FOR:
1387
- - Small to medium projects
1388
- - Well-defined objectives
1389
- - Clear task dependencies`,
1390
- 'distributed': `🌐 DISTRIBUTED MODE - MULTIPLE COORDINATORS:
1391
- Multiple coordinators share responsibility by domain.
1392
-
1393
- COORDINATION PATTERN:
1394
- - Spawn domain-specific coordinators (e.g., frontend-lead, backend-lead)
1395
- - Each coordinator manages their domain agents
1396
- - Use agent_coordinate for inter-coordinator sync
1397
- - Use memory_sync to share state
1398
- - Implement consensus protocols for decisions
1399
-
1400
- BENEFITS:
1401
- - Fault tolerance
1402
- - Parallel decision making
1403
- - Domain expertise
1404
- - Scalability
1405
-
1406
- BEST FOR:
1407
- - Large projects
1408
- - Multiple workstreams
1409
- - Complex systems
1410
- - High availability needs`,
1411
- 'hierarchical': `🏗️ HIERARCHICAL MODE - TREE STRUCTURE:
1412
- Agents organized in management layers.
1413
-
1414
- COORDINATION PATTERN:
1415
- - Spawn top-level coordinator
1416
- - Spawn team leads under coordinator
1417
- - Spawn workers under team leads
1418
- - Use parent parameter in agent_spawn
1419
- - Tasks flow down, results flow up
1420
-
1421
- BENEFITS:
1422
- - Clear reporting structure
1423
- - Efficient for large teams
1424
- - Natural work breakdown
1425
- - Manageable span of control
1426
-
1427
- BEST FOR:
1428
- - Enterprise projects
1429
- - Multi-team efforts
1430
- - Complex hierarchies
1431
- - Phased deliveries`,
1432
- 'mesh': `🔗 MESH MODE - PEER-TO-PEER:
1433
- Agents coordinate directly without central authority.
1434
-
1435
- COORDINATION PATTERN:
1436
- - All agents are peers
1437
- - Use agent_communicate for direct messaging
1438
- - Consensus through voting or protocols
1439
- - Self-organizing teams
1440
- - Emergent leadership
1441
-
1442
- BENEFITS:
1443
- - Maximum flexibility
1444
- - Fast local decisions
1445
- - Resilient to failures
1446
- - Creative solutions
1447
-
1448
- BEST FOR:
1449
- - Research projects
1450
- - Exploratory work
1451
- - Innovation tasks
1452
- - Small expert teams`,
1453
- 'hybrid': `🎨 HYBRID MODE - MIXED STRATEGIES:
1454
- Combine different coordination patterns as needed.
1455
-
1456
- COORDINATION PATTERN:
1457
- - Start with one mode, adapt as needed
1458
- - Mix hierarchical for structure with mesh for innovation
1459
- - Use distributed for resilience with centralized for control
1460
- - Dynamic reorganization based on task needs
1461
-
1462
- BENEFITS:
1463
- - Adaptability
1464
- - Best of all modes
1465
- - Task-appropriate structure
1466
- - Evolution over time
1467
-
1468
- BEST FOR:
1469
- - Complex projects
1470
- - Uncertain requirements
1471
- - Long-term efforts
1472
- - Diverse objectives`
1473
- };
1474
- return modeMap[mode] || modeMap['centralized'];
1475
- }
1476
- /**
1477
- * Get agent recommendations based on strategy
1478
- */
1479
- function getAgentRecommendations(strategy, maxAgents, objective) {
1480
- const recommendations = {
1481
- 'auto': `
1482
- 🤖 RECOMMENDED AGENT COMPOSITION (Auto-detected):
1483
- ⚡ SPAWN ALL AGENTS IN ONE BATCH - Copy this entire block:
1484
-
1485
- \`\`\`
1486
- [BatchTool - Single Message]:
1487
- mcp__claude-flow__agent_spawn {"type": "coordinator", "name": "SwarmLead"}
1488
- mcp__claude-flow__agent_spawn {"type": "researcher", "name": "RequirementsAnalyst"}
1489
- mcp__claude-flow__agent_spawn {"type": "architect", "name": "SystemDesigner"}
1490
- mcp__claude-flow__memory_store {"key": "swarm/objective", "value": "${objective}"}
1491
- mcp__claude-flow__task_create {"name": "Analyze Requirements", "assignTo": "RequirementsAnalyst"}
1492
- mcp__claude-flow__task_create {"name": "Design Architecture", "assignTo": "SystemDesigner", "dependsOn": ["Analyze Requirements"]}
1493
- TodoWrite {"todos": [
1494
- {"id": "1", "content": "Initialize swarm coordination", "status": "completed", "priority": "high"},
1495
- {"id": "2", "content": "Analyze objective requirements", "status": "in_progress", "priority": "high"},
1496
- {"id": "3", "content": "Design system architecture", "status": "pending", "priority": "high"},
1497
- {"id": "4", "content": "Spawn additional agents as needed", "status": "pending", "priority": "medium"}
1498
- ]}
1499
- \`\`\``,
1500
- 'research': `
1501
- 🔬 RECOMMENDED RESEARCH AGENTS:
1502
- ⚡ SPAWN ALL AGENTS IN ONE BATCH - Copy this entire block:
1503
-
1504
- \`\`\`
1505
- [BatchTool - Single Message]:
1506
- mcp__claude-flow__agent_spawn {"type": "coordinator", "name": "ResearchLead"}
1507
- mcp__claude-flow__agent_spawn {"type": "researcher", "name": "PrimaryInvestigator"}
1508
- mcp__claude-flow__agent_spawn {"type": "analyst", "name": "DataScientist"}
1509
- mcp__claude-flow__agent_spawn {"type": "researcher", "name": "LiteratureExpert"}
1510
- mcp__claude-flow__agent_spawn {"type": "analyst", "name": "InsightsCompiler"}
1511
- mcp__claude-flow__memory_store {"key": "research/objective", "value": "${objective}"}
1512
- mcp__claude-flow__task_create {"name": "Literature Review", "assignTo": "LiteratureExpert"}
1513
- mcp__claude-flow__task_create {"name": "Primary Research", "assignTo": "PrimaryInvestigator"}
1514
- mcp__claude-flow__task_create {"name": "Data Analysis", "assignTo": "DataScientist"}
1515
- mcp__claude-flow__task_create {"name": "Compile Insights", "assignTo": "InsightsCompiler", "dependsOn": ["Literature Review", "Primary Research", "Data Analysis"]}
1516
- TodoWrite {"todos": [
1517
- {"id": "1", "content": "Initialize research swarm", "status": "completed", "priority": "high"},
1518
- {"id": "2", "content": "Conduct literature review", "status": "in_progress", "priority": "high"},
1519
- {"id": "3", "content": "Execute primary research", "status": "in_progress", "priority": "high"},
1520
- {"id": "4", "content": "Analyze collected data", "status": "pending", "priority": "high"},
1521
- {"id": "5", "content": "Compile and synthesize insights", "status": "pending", "priority": "medium"}
1522
- ]}
1523
- \`\`\``,
1524
- 'development': `
1525
- 💻 RECOMMENDED DEVELOPMENT AGENTS:
1526
- ⚡ SPAWN ALL AGENTS IN ONE BATCH - Copy this entire block:
1527
-
1528
- \`\`\`
1529
- [BatchTool - Single Message]:
1530
- mcp__claude-flow__agent_spawn {"type": "coordinator", "name": "TechLead"}
1531
- mcp__claude-flow__agent_spawn {"type": "architect", "name": "SystemArchitect"}
1532
- mcp__claude-flow__agent_spawn {"type": "coder", "name": "BackendDev"}
1533
- mcp__claude-flow__agent_spawn {"type": "coder", "name": "FrontendDev"}
1534
- mcp__claude-flow__agent_spawn {"type": "tester", "name": "QAEngineer"}
1535
- mcp__claude-flow__memory_store {"key": "dev/objective", "value": "${objective}"}
1536
- mcp__claude-flow__task_create {"name": "System Architecture", "assignTo": "SystemArchitect"}
1537
- mcp__claude-flow__task_create {"name": "Backend Implementation", "assignTo": "BackendDev", "dependsOn": ["System Architecture"]}
1538
- mcp__claude-flow__task_create {"name": "Frontend Implementation", "assignTo": "FrontendDev", "dependsOn": ["System Architecture"]}
1539
- mcp__claude-flow__task_create {"name": "Testing Suite", "assignTo": "QAEngineer", "dependsOn": ["Backend Implementation", "Frontend Implementation"]}
1540
- TodoWrite {"todos": [
1541
- {"id": "1", "content": "Initialize development swarm", "status": "completed", "priority": "high"},
1542
- {"id": "2", "content": "Design system architecture", "status": "in_progress", "priority": "high"},
1543
- {"id": "3", "content": "Implement backend services", "status": "pending", "priority": "high"},
1544
- {"id": "4", "content": "Implement frontend UI", "status": "pending", "priority": "high"},
1545
- {"id": "5", "content": "Create comprehensive tests", "status": "pending", "priority": "medium"}
1546
- ]}
1547
- \`\`\``,
1548
- 'analysis': `
1549
- 📊 RECOMMENDED ANALYSIS AGENTS:
1550
- ⚡ SPAWN ALL AGENTS IN ONE BATCH - Copy this entire block:
1551
-
1552
- \`\`\`
1553
- [BatchTool - Single Message]:
1554
- mcp__claude-flow__agent_spawn {"type": "coordinator", "name": "AnalysisLead"}
1555
- mcp__claude-flow__agent_spawn {"type": "analyst", "name": "DataEngineer"}
1556
- mcp__claude-flow__agent_spawn {"type": "analyst", "name": "StatisticalExpert"}
1557
- mcp__claude-flow__agent_spawn {"type": "coder", "name": "VisualizationDev"}
1558
- mcp__claude-flow__agent_spawn {"type": "analyst", "name": "BusinessAnalyst"}
1559
- mcp__claude-flow__memory_store {"key": "analysis/objective", "value": "${objective}"}
1560
- mcp__claude-flow__task_create {"name": "Data Pipeline Setup", "assignTo": "DataEngineer"}
1561
- mcp__claude-flow__task_create {"name": "Statistical Analysis", "assignTo": "StatisticalExpert", "dependsOn": ["Data Pipeline Setup"]}
1562
- mcp__claude-flow__task_create {"name": "Create Visualizations", "assignTo": "VisualizationDev", "dependsOn": ["Statistical Analysis"]}
1563
- mcp__claude-flow__task_create {"name": "Business Insights", "assignTo": "BusinessAnalyst", "dependsOn": ["Statistical Analysis"]}
1564
- TodoWrite {"todos": [
1565
- {"id": "1", "content": "Initialize analysis swarm", "status": "completed", "priority": "high"},
1566
- {"id": "2", "content": "Setup data pipelines", "status": "in_progress", "priority": "high"},
1567
- {"id": "3", "content": "Perform statistical analysis", "status": "pending", "priority": "high"},
1568
- {"id": "4", "content": "Create data visualizations", "status": "pending", "priority": "medium"},
1569
- {"id": "5", "content": "Generate business insights", "status": "pending", "priority": "medium"}
1570
- ]}
1571
- \`\`\``,
1572
- 'testing': `
1573
- 🧪 RECOMMENDED TESTING AGENTS:
1574
- ⚡ SPAWN ALL AGENTS IN ONE BATCH - Copy this entire block:
1575
-
1576
- \`\`\`
1577
- [BatchTool - Single Message]:
1578
- mcp__claude-flow__agent_spawn {"type": "coordinator", "name": "QALead"}
1579
- mcp__claude-flow__agent_spawn {"type": "tester", "name": "UnitTestEngineer"}
1580
- mcp__claude-flow__agent_spawn {"type": "tester", "name": "IntegrationTester"}
1581
- mcp__claude-flow__agent_spawn {"type": "tester", "name": "PerformanceTester"}
1582
- mcp__claude-flow__agent_spawn {"type": "tester", "name": "SecurityAuditor"}
1583
- mcp__claude-flow__memory_store {"key": "testing/objective", "value": "${objective}"}
1584
- mcp__claude-flow__task_create {"name": "Unit Test Suite", "assignTo": "UnitTestEngineer"}
1585
- mcp__claude-flow__task_create {"name": "Integration Tests", "assignTo": "IntegrationTester"}
1586
- mcp__claude-flow__task_create {"name": "Performance Tests", "assignTo": "PerformanceTester"}
1587
- mcp__claude-flow__task_create {"name": "Security Audit", "assignTo": "SecurityAuditor"}
1588
- TodoWrite {"todos": [
1589
- {"id": "1", "content": "Initialize testing swarm", "status": "completed", "priority": "high"},
1590
- {"id": "2", "content": "Create unit tests", "status": "in_progress", "priority": "high"},
1591
- {"id": "3", "content": "Create integration tests", "status": "in_progress", "priority": "high"},
1592
- {"id": "4", "content": "Run performance tests", "status": "pending", "priority": "medium"},
1593
- {"id": "5", "content": "Execute security audit", "status": "pending", "priority": "high"}
1594
- ]}
1595
- \`\`\``,
1596
- 'optimization': `
1597
- ⚡ RECOMMENDED OPTIMIZATION AGENTS:
1598
- ⚡ SPAWN ALL AGENTS IN ONE BATCH - Copy this entire block:
1599
-
1600
- \`\`\`
1601
- [BatchTool - Single Message]:
1602
- mcp__claude-flow__agent_spawn {"type": "coordinator", "name": "OptimizationLead"}
1603
- mcp__claude-flow__agent_spawn {"type": "analyst", "name": "PerformanceProfiler"}
1604
- mcp__claude-flow__agent_spawn {"type": "coder", "name": "AlgorithmExpert"}
1605
- mcp__claude-flow__agent_spawn {"type": "analyst", "name": "DatabaseOptimizer"}
1606
- mcp__claude-flow__agent_spawn {"type": "coder", "name": "SystemsTuner"}
1607
- mcp__claude-flow__memory_store {"key": "optimization/objective", "value": "${objective}"}
1608
- mcp__claude-flow__task_create {"name": "Performance Profiling", "assignTo": "PerformanceProfiler"}
1609
- mcp__claude-flow__task_create {"name": "Algorithm Optimization", "assignTo": "AlgorithmExpert", "dependsOn": ["Performance Profiling"]}
1610
- mcp__claude-flow__task_create {"name": "Database Optimization", "assignTo": "DatabaseOptimizer", "dependsOn": ["Performance Profiling"]}
1611
- mcp__claude-flow__task_create {"name": "System Tuning", "assignTo": "SystemsTuner", "dependsOn": ["Performance Profiling"]}
1612
- TodoWrite {"todos": [
1613
- {"id": "1", "content": "Initialize optimization swarm", "status": "completed", "priority": "high"},
1614
- {"id": "2", "content": "Profile system performance", "status": "in_progress", "priority": "high"},
1615
- {"id": "3", "content": "Optimize algorithms", "status": "pending", "priority": "high"},
1616
- {"id": "4", "content": "Optimize database queries", "status": "pending", "priority": "high"},
1617
- {"id": "5", "content": "Tune system parameters", "status": "pending", "priority": "medium"}
1618
- ]}
1619
- \`\`\``,
1620
- 'maintenance': `
1621
- 🔧 RECOMMENDED MAINTENANCE AGENTS:
1622
- ⚡ SPAWN ALL AGENTS IN ONE BATCH - Copy this entire block:
1623
-
1624
- \`\`\`
1625
- [BatchTool - Single Message]:
1626
- mcp__claude-flow__agent_spawn {"type": "coordinator", "name": "MaintenanceLead"}
1627
- mcp__claude-flow__agent_spawn {"type": "analyst", "name": "SystemAuditor"}
1628
- mcp__claude-flow__agent_spawn {"type": "coder", "name": "PatchDeveloper"}
1629
- mcp__claude-flow__agent_spawn {"type": "tester", "name": "RegressionTester"}
1630
- mcp__claude-flow__agent_spawn {"type": "analyst", "name": "DocumentationUpdater"}
1631
- mcp__claude-flow__memory_store {"key": "maintenance/objective", "value": "${objective}"}
1632
- mcp__claude-flow__task_create {"name": "System Audit", "assignTo": "SystemAuditor"}
1633
- mcp__claude-flow__task_create {"name": "Develop Patches", "assignTo": "PatchDeveloper", "dependsOn": ["System Audit"]}
1634
- mcp__claude-flow__task_create {"name": "Regression Testing", "assignTo": "RegressionTester", "dependsOn": ["Develop Patches"]}
1635
- mcp__claude-flow__task_create {"name": "Update Documentation", "assignTo": "DocumentationUpdater", "dependsOn": ["Develop Patches"]}
1636
- TodoWrite {"todos": [
1637
- {"id": "1", "content": "Initialize maintenance swarm", "status": "completed", "priority": "high"},
1638
- {"id": "2", "content": "Audit system health", "status": "in_progress", "priority": "high"},
1639
- {"id": "3", "content": "Develop necessary patches", "status": "pending", "priority": "high"},
1640
- {"id": "4", "content": "Run regression tests", "status": "pending", "priority": "high"},
1641
- {"id": "5", "content": "Update documentation", "status": "pending", "priority": "medium"}
1642
- ]}
1643
- \`\`\``
1644
- };
1645
- return recommendations[strategy] || recommendations['auto'];
1646
- }
1647
- // Allow direct execution
1648
- if (import.meta.main) {
1649
- // When called directly as a script, parse all arguments
1650
- const args = [];
1651
- const flags = {};
1652
- // Parse arguments and flags
1653
- for (let i = 0; i < args.length; i++) {
1654
- const arg = args[i];
1655
- if (arg.startsWith('--')) {
1656
- const flagName = arg.substring(2);
1657
- const nextArg = args[i + 1];
1658
- if (nextArg && !nextArg.startsWith('--')) {
1659
- flags[flagName] = nextArg;
1660
- i++; // Skip the next argument
1661
- }
1662
- else {
1663
- flags[flagName] = true;
1664
- }
1665
- }
1666
- else {
1667
- args.push(arg);
1668
- }
1669
- }
1670
- // The objective is all non-flag arguments joined
1671
- const objective = args.join(' ');
1672
- // Execute the swarm command
1673
- await swarmCommand([objective], flags);
1674
- }
1675
- //# sourceMappingURL=swarm.js.map