getmy-ruflo 3.5.43

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 (732) hide show
  1. package/bin/ruflo.js +29 -0
  2. package/package.json +50 -0
  3. package/v3/@claude-flow/cli/bin/cli.js +156 -0
  4. package/v3/@claude-flow/cli/bin/mcp-server.js +199 -0
  5. package/v3/@claude-flow/cli/bin/mcp-sse-server.js +596 -0
  6. package/v3/@claude-flow/cli/bin/preinstall.cjs +2 -0
  7. package/v3/@claude-flow/cli/dist/src/appliance/gguf-engine.d.ts +91 -0
  8. package/v3/@claude-flow/cli/dist/src/appliance/gguf-engine.d.ts.map +1 -0
  9. package/v3/@claude-flow/cli/dist/src/appliance/gguf-engine.js +425 -0
  10. package/v3/@claude-flow/cli/dist/src/appliance/gguf-engine.js.map +1 -0
  11. package/v3/@claude-flow/cli/dist/src/appliance/ruvllm-bridge.d.ts +102 -0
  12. package/v3/@claude-flow/cli/dist/src/appliance/ruvllm-bridge.d.ts.map +1 -0
  13. package/v3/@claude-flow/cli/dist/src/appliance/ruvllm-bridge.js +292 -0
  14. package/v3/@claude-flow/cli/dist/src/appliance/ruvllm-bridge.js.map +1 -0
  15. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-builder.d.ts +44 -0
  16. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-builder.d.ts.map +1 -0
  17. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-builder.js +329 -0
  18. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-builder.js.map +1 -0
  19. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-distribution.d.ts +97 -0
  20. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-distribution.d.ts.map +1 -0
  21. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-distribution.js +370 -0
  22. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-distribution.js.map +1 -0
  23. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-format.d.ts +111 -0
  24. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-format.d.ts.map +1 -0
  25. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-format.js +393 -0
  26. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-format.js.map +1 -0
  27. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-runner.d.ts +69 -0
  28. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-runner.d.ts.map +1 -0
  29. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-runner.js +237 -0
  30. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-runner.js.map +1 -0
  31. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-signing.d.ts +123 -0
  32. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-signing.d.ts.map +1 -0
  33. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-signing.js +347 -0
  34. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-signing.js.map +1 -0
  35. package/v3/@claude-flow/cli/dist/src/benchmarks/pretrain/index.d.ts +58 -0
  36. package/v3/@claude-flow/cli/dist/src/benchmarks/pretrain/index.d.ts.map +1 -0
  37. package/v3/@claude-flow/cli/dist/src/benchmarks/pretrain/index.js +404 -0
  38. package/v3/@claude-flow/cli/dist/src/benchmarks/pretrain/index.js.map +1 -0
  39. package/v3/@claude-flow/cli/dist/src/commands/agent.d.ts +8 -0
  40. package/v3/@claude-flow/cli/dist/src/commands/agent.d.ts.map +1 -0
  41. package/v3/@claude-flow/cli/dist/src/commands/agent.js +919 -0
  42. package/v3/@claude-flow/cli/dist/src/commands/agent.js.map +1 -0
  43. package/v3/@claude-flow/cli/dist/src/commands/analyze.d.ts +19 -0
  44. package/v3/@claude-flow/cli/dist/src/commands/analyze.d.ts.map +1 -0
  45. package/v3/@claude-flow/cli/dist/src/commands/analyze.js +1823 -0
  46. package/v3/@claude-flow/cli/dist/src/commands/analyze.js.map +1 -0
  47. package/v3/@claude-flow/cli/dist/src/commands/appliance-advanced.d.ts +9 -0
  48. package/v3/@claude-flow/cli/dist/src/commands/appliance-advanced.d.ts.map +1 -0
  49. package/v3/@claude-flow/cli/dist/src/commands/appliance-advanced.js +215 -0
  50. package/v3/@claude-flow/cli/dist/src/commands/appliance-advanced.js.map +1 -0
  51. package/v3/@claude-flow/cli/dist/src/commands/appliance.d.ts +8 -0
  52. package/v3/@claude-flow/cli/dist/src/commands/appliance.d.ts.map +1 -0
  53. package/v3/@claude-flow/cli/dist/src/commands/appliance.js +406 -0
  54. package/v3/@claude-flow/cli/dist/src/commands/appliance.js.map +1 -0
  55. package/v3/@claude-flow/cli/dist/src/commands/benchmark.d.ts +10 -0
  56. package/v3/@claude-flow/cli/dist/src/commands/benchmark.d.ts.map +1 -0
  57. package/v3/@claude-flow/cli/dist/src/commands/benchmark.js +459 -0
  58. package/v3/@claude-flow/cli/dist/src/commands/benchmark.js.map +1 -0
  59. package/v3/@claude-flow/cli/dist/src/commands/claims.d.ts +10 -0
  60. package/v3/@claude-flow/cli/dist/src/commands/claims.d.ts.map +1 -0
  61. package/v3/@claude-flow/cli/dist/src/commands/claims.js +373 -0
  62. package/v3/@claude-flow/cli/dist/src/commands/claims.js.map +1 -0
  63. package/v3/@claude-flow/cli/dist/src/commands/cleanup.d.ts +13 -0
  64. package/v3/@claude-flow/cli/dist/src/commands/cleanup.d.ts.map +1 -0
  65. package/v3/@claude-flow/cli/dist/src/commands/cleanup.js +218 -0
  66. package/v3/@claude-flow/cli/dist/src/commands/cleanup.js.map +1 -0
  67. package/v3/@claude-flow/cli/dist/src/commands/completions.d.ts +10 -0
  68. package/v3/@claude-flow/cli/dist/src/commands/completions.d.ts.map +1 -0
  69. package/v3/@claude-flow/cli/dist/src/commands/completions.js +539 -0
  70. package/v3/@claude-flow/cli/dist/src/commands/completions.js.map +1 -0
  71. package/v3/@claude-flow/cli/dist/src/commands/config.d.ts +8 -0
  72. package/v3/@claude-flow/cli/dist/src/commands/config.d.ts.map +1 -0
  73. package/v3/@claude-flow/cli/dist/src/commands/config.js +406 -0
  74. package/v3/@claude-flow/cli/dist/src/commands/config.js.map +1 -0
  75. package/v3/@claude-flow/cli/dist/src/commands/daemon.d.ts +8 -0
  76. package/v3/@claude-flow/cli/dist/src/commands/daemon.d.ts.map +1 -0
  77. package/v3/@claude-flow/cli/dist/src/commands/daemon.js +656 -0
  78. package/v3/@claude-flow/cli/dist/src/commands/daemon.js.map +1 -0
  79. package/v3/@claude-flow/cli/dist/src/commands/deployment.d.ts +10 -0
  80. package/v3/@claude-flow/cli/dist/src/commands/deployment.d.ts.map +1 -0
  81. package/v3/@claude-flow/cli/dist/src/commands/deployment.js +289 -0
  82. package/v3/@claude-flow/cli/dist/src/commands/deployment.js.map +1 -0
  83. package/v3/@claude-flow/cli/dist/src/commands/doctor.d.ts +10 -0
  84. package/v3/@claude-flow/cli/dist/src/commands/doctor.d.ts.map +1 -0
  85. package/v3/@claude-flow/cli/dist/src/commands/doctor.js +619 -0
  86. package/v3/@claude-flow/cli/dist/src/commands/doctor.js.map +1 -0
  87. package/v3/@claude-flow/cli/dist/src/commands/embeddings.d.ts +18 -0
  88. package/v3/@claude-flow/cli/dist/src/commands/embeddings.d.ts.map +1 -0
  89. package/v3/@claude-flow/cli/dist/src/commands/embeddings.js +1576 -0
  90. package/v3/@claude-flow/cli/dist/src/commands/embeddings.js.map +1 -0
  91. package/v3/@claude-flow/cli/dist/src/commands/guidance.d.ts +8 -0
  92. package/v3/@claude-flow/cli/dist/src/commands/guidance.d.ts.map +1 -0
  93. package/v3/@claude-flow/cli/dist/src/commands/guidance.js +560 -0
  94. package/v3/@claude-flow/cli/dist/src/commands/guidance.js.map +1 -0
  95. package/v3/@claude-flow/cli/dist/src/commands/hive-mind.d.ts +11 -0
  96. package/v3/@claude-flow/cli/dist/src/commands/hive-mind.d.ts.map +1 -0
  97. package/v3/@claude-flow/cli/dist/src/commands/hive-mind.js +1230 -0
  98. package/v3/@claude-flow/cli/dist/src/commands/hive-mind.js.map +1 -0
  99. package/v3/@claude-flow/cli/dist/src/commands/hooks.d.ts +8 -0
  100. package/v3/@claude-flow/cli/dist/src/commands/hooks.d.ts.map +1 -0
  101. package/v3/@claude-flow/cli/dist/src/commands/hooks.js +4441 -0
  102. package/v3/@claude-flow/cli/dist/src/commands/hooks.js.map +1 -0
  103. package/v3/@claude-flow/cli/dist/src/commands/index.d.ts +115 -0
  104. package/v3/@claude-flow/cli/dist/src/commands/index.d.ts.map +1 -0
  105. package/v3/@claude-flow/cli/dist/src/commands/index.js +377 -0
  106. package/v3/@claude-flow/cli/dist/src/commands/index.js.map +1 -0
  107. package/v3/@claude-flow/cli/dist/src/commands/init.d.ts +8 -0
  108. package/v3/@claude-flow/cli/dist/src/commands/init.d.ts.map +1 -0
  109. package/v3/@claude-flow/cli/dist/src/commands/init.js +969 -0
  110. package/v3/@claude-flow/cli/dist/src/commands/init.js.map +1 -0
  111. package/v3/@claude-flow/cli/dist/src/commands/issues.d.ts +21 -0
  112. package/v3/@claude-flow/cli/dist/src/commands/issues.d.ts.map +1 -0
  113. package/v3/@claude-flow/cli/dist/src/commands/issues.js +567 -0
  114. package/v3/@claude-flow/cli/dist/src/commands/issues.js.map +1 -0
  115. package/v3/@claude-flow/cli/dist/src/commands/mcp.d.ts +11 -0
  116. package/v3/@claude-flow/cli/dist/src/commands/mcp.d.ts.map +1 -0
  117. package/v3/@claude-flow/cli/dist/src/commands/mcp.js +779 -0
  118. package/v3/@claude-flow/cli/dist/src/commands/mcp.js.map +1 -0
  119. package/v3/@claude-flow/cli/dist/src/commands/memory.d.ts +8 -0
  120. package/v3/@claude-flow/cli/dist/src/commands/memory.d.ts.map +1 -0
  121. package/v3/@claude-flow/cli/dist/src/commands/memory.js +1292 -0
  122. package/v3/@claude-flow/cli/dist/src/commands/memory.js.map +1 -0
  123. package/v3/@claude-flow/cli/dist/src/commands/migrate.d.ts +8 -0
  124. package/v3/@claude-flow/cli/dist/src/commands/migrate.d.ts.map +1 -0
  125. package/v3/@claude-flow/cli/dist/src/commands/migrate.js +410 -0
  126. package/v3/@claude-flow/cli/dist/src/commands/migrate.js.map +1 -0
  127. package/v3/@claude-flow/cli/dist/src/commands/neural.d.ts +10 -0
  128. package/v3/@claude-flow/cli/dist/src/commands/neural.d.ts.map +1 -0
  129. package/v3/@claude-flow/cli/dist/src/commands/neural.js +1454 -0
  130. package/v3/@claude-flow/cli/dist/src/commands/neural.js.map +1 -0
  131. package/v3/@claude-flow/cli/dist/src/commands/performance.d.ts +10 -0
  132. package/v3/@claude-flow/cli/dist/src/commands/performance.d.ts.map +1 -0
  133. package/v3/@claude-flow/cli/dist/src/commands/performance.js +579 -0
  134. package/v3/@claude-flow/cli/dist/src/commands/performance.js.map +1 -0
  135. package/v3/@claude-flow/cli/dist/src/commands/plugins.d.ts +11 -0
  136. package/v3/@claude-flow/cli/dist/src/commands/plugins.d.ts.map +1 -0
  137. package/v3/@claude-flow/cli/dist/src/commands/plugins.js +820 -0
  138. package/v3/@claude-flow/cli/dist/src/commands/plugins.js.map +1 -0
  139. package/v3/@claude-flow/cli/dist/src/commands/process.d.ts +10 -0
  140. package/v3/@claude-flow/cli/dist/src/commands/process.d.ts.map +1 -0
  141. package/v3/@claude-flow/cli/dist/src/commands/process.js +641 -0
  142. package/v3/@claude-flow/cli/dist/src/commands/process.js.map +1 -0
  143. package/v3/@claude-flow/cli/dist/src/commands/progress.d.ts +11 -0
  144. package/v3/@claude-flow/cli/dist/src/commands/progress.d.ts.map +1 -0
  145. package/v3/@claude-flow/cli/dist/src/commands/progress.js +259 -0
  146. package/v3/@claude-flow/cli/dist/src/commands/progress.js.map +1 -0
  147. package/v3/@claude-flow/cli/dist/src/commands/providers.d.ts +10 -0
  148. package/v3/@claude-flow/cli/dist/src/commands/providers.d.ts.map +1 -0
  149. package/v3/@claude-flow/cli/dist/src/commands/providers.js +232 -0
  150. package/v3/@claude-flow/cli/dist/src/commands/providers.js.map +1 -0
  151. package/v3/@claude-flow/cli/dist/src/commands/route.d.ts +16 -0
  152. package/v3/@claude-flow/cli/dist/src/commands/route.d.ts.map +1 -0
  153. package/v3/@claude-flow/cli/dist/src/commands/route.js +813 -0
  154. package/v3/@claude-flow/cli/dist/src/commands/route.js.map +1 -0
  155. package/v3/@claude-flow/cli/dist/src/commands/ruvector/backup.d.ts +11 -0
  156. package/v3/@claude-flow/cli/dist/src/commands/ruvector/backup.d.ts.map +1 -0
  157. package/v3/@claude-flow/cli/dist/src/commands/ruvector/backup.js +746 -0
  158. package/v3/@claude-flow/cli/dist/src/commands/ruvector/backup.js.map +1 -0
  159. package/v3/@claude-flow/cli/dist/src/commands/ruvector/benchmark.d.ts +11 -0
  160. package/v3/@claude-flow/cli/dist/src/commands/ruvector/benchmark.d.ts.map +1 -0
  161. package/v3/@claude-flow/cli/dist/src/commands/ruvector/benchmark.js +480 -0
  162. package/v3/@claude-flow/cli/dist/src/commands/ruvector/benchmark.js.map +1 -0
  163. package/v3/@claude-flow/cli/dist/src/commands/ruvector/import.d.ts +18 -0
  164. package/v3/@claude-flow/cli/dist/src/commands/ruvector/import.d.ts.map +1 -0
  165. package/v3/@claude-flow/cli/dist/src/commands/ruvector/import.js +349 -0
  166. package/v3/@claude-flow/cli/dist/src/commands/ruvector/import.js.map +1 -0
  167. package/v3/@claude-flow/cli/dist/src/commands/ruvector/index.d.ts +29 -0
  168. package/v3/@claude-flow/cli/dist/src/commands/ruvector/index.d.ts.map +1 -0
  169. package/v3/@claude-flow/cli/dist/src/commands/ruvector/index.js +129 -0
  170. package/v3/@claude-flow/cli/dist/src/commands/ruvector/index.js.map +1 -0
  171. package/v3/@claude-flow/cli/dist/src/commands/ruvector/init.d.ts +11 -0
  172. package/v3/@claude-flow/cli/dist/src/commands/ruvector/init.d.ts.map +1 -0
  173. package/v3/@claude-flow/cli/dist/src/commands/ruvector/init.js +431 -0
  174. package/v3/@claude-flow/cli/dist/src/commands/ruvector/init.js.map +1 -0
  175. package/v3/@claude-flow/cli/dist/src/commands/ruvector/migrate.d.ts +11 -0
  176. package/v3/@claude-flow/cli/dist/src/commands/ruvector/migrate.d.ts.map +1 -0
  177. package/v3/@claude-flow/cli/dist/src/commands/ruvector/migrate.js +481 -0
  178. package/v3/@claude-flow/cli/dist/src/commands/ruvector/migrate.js.map +1 -0
  179. package/v3/@claude-flow/cli/dist/src/commands/ruvector/optimize.d.ts +11 -0
  180. package/v3/@claude-flow/cli/dist/src/commands/ruvector/optimize.d.ts.map +1 -0
  181. package/v3/@claude-flow/cli/dist/src/commands/ruvector/optimize.js +503 -0
  182. package/v3/@claude-flow/cli/dist/src/commands/ruvector/optimize.js.map +1 -0
  183. package/v3/@claude-flow/cli/dist/src/commands/ruvector/setup.d.ts +18 -0
  184. package/v3/@claude-flow/cli/dist/src/commands/ruvector/setup.d.ts.map +1 -0
  185. package/v3/@claude-flow/cli/dist/src/commands/ruvector/setup.js +765 -0
  186. package/v3/@claude-flow/cli/dist/src/commands/ruvector/setup.js.map +1 -0
  187. package/v3/@claude-flow/cli/dist/src/commands/ruvector/status.d.ts +11 -0
  188. package/v3/@claude-flow/cli/dist/src/commands/ruvector/status.d.ts.map +1 -0
  189. package/v3/@claude-flow/cli/dist/src/commands/ruvector/status.js +456 -0
  190. package/v3/@claude-flow/cli/dist/src/commands/ruvector/status.js.map +1 -0
  191. package/v3/@claude-flow/cli/dist/src/commands/security.d.ts +10 -0
  192. package/v3/@claude-flow/cli/dist/src/commands/security.d.ts.map +1 -0
  193. package/v3/@claude-flow/cli/dist/src/commands/security.js +606 -0
  194. package/v3/@claude-flow/cli/dist/src/commands/security.js.map +1 -0
  195. package/v3/@claude-flow/cli/dist/src/commands/session.d.ts +8 -0
  196. package/v3/@claude-flow/cli/dist/src/commands/session.d.ts.map +1 -0
  197. package/v3/@claude-flow/cli/dist/src/commands/session.js +750 -0
  198. package/v3/@claude-flow/cli/dist/src/commands/session.js.map +1 -0
  199. package/v3/@claude-flow/cli/dist/src/commands/start.d.ts +8 -0
  200. package/v3/@claude-flow/cli/dist/src/commands/start.d.ts.map +1 -0
  201. package/v3/@claude-flow/cli/dist/src/commands/start.js +418 -0
  202. package/v3/@claude-flow/cli/dist/src/commands/start.js.map +1 -0
  203. package/v3/@claude-flow/cli/dist/src/commands/status.d.ts +8 -0
  204. package/v3/@claude-flow/cli/dist/src/commands/status.d.ts.map +1 -0
  205. package/v3/@claude-flow/cli/dist/src/commands/status.js +591 -0
  206. package/v3/@claude-flow/cli/dist/src/commands/status.js.map +1 -0
  207. package/v3/@claude-flow/cli/dist/src/commands/swarm.d.ts +8 -0
  208. package/v3/@claude-flow/cli/dist/src/commands/swarm.d.ts.map +1 -0
  209. package/v3/@claude-flow/cli/dist/src/commands/swarm.js +748 -0
  210. package/v3/@claude-flow/cli/dist/src/commands/swarm.js.map +1 -0
  211. package/v3/@claude-flow/cli/dist/src/commands/task.d.ts +8 -0
  212. package/v3/@claude-flow/cli/dist/src/commands/task.d.ts.map +1 -0
  213. package/v3/@claude-flow/cli/dist/src/commands/task.js +671 -0
  214. package/v3/@claude-flow/cli/dist/src/commands/task.js.map +1 -0
  215. package/v3/@claude-flow/cli/dist/src/commands/transfer-store.d.ts +13 -0
  216. package/v3/@claude-flow/cli/dist/src/commands/transfer-store.d.ts.map +1 -0
  217. package/v3/@claude-flow/cli/dist/src/commands/transfer-store.js +428 -0
  218. package/v3/@claude-flow/cli/dist/src/commands/transfer-store.js.map +1 -0
  219. package/v3/@claude-flow/cli/dist/src/commands/update.d.ts +8 -0
  220. package/v3/@claude-flow/cli/dist/src/commands/update.d.ts.map +1 -0
  221. package/v3/@claude-flow/cli/dist/src/commands/update.js +276 -0
  222. package/v3/@claude-flow/cli/dist/src/commands/update.js.map +1 -0
  223. package/v3/@claude-flow/cli/dist/src/commands/workflow.d.ts +8 -0
  224. package/v3/@claude-flow/cli/dist/src/commands/workflow.d.ts.map +1 -0
  225. package/v3/@claude-flow/cli/dist/src/commands/workflow.js +617 -0
  226. package/v3/@claude-flow/cli/dist/src/commands/workflow.js.map +1 -0
  227. package/v3/@claude-flow/cli/dist/src/config-adapter.d.ts +15 -0
  228. package/v3/@claude-flow/cli/dist/src/config-adapter.d.ts.map +1 -0
  229. package/v3/@claude-flow/cli/dist/src/config-adapter.js +186 -0
  230. package/v3/@claude-flow/cli/dist/src/config-adapter.js.map +1 -0
  231. package/v3/@claude-flow/cli/dist/src/index.d.ts +76 -0
  232. package/v3/@claude-flow/cli/dist/src/index.d.ts.map +1 -0
  233. package/v3/@claude-flow/cli/dist/src/index.js +472 -0
  234. package/v3/@claude-flow/cli/dist/src/index.js.map +1 -0
  235. package/v3/@claude-flow/cli/dist/src/infrastructure/in-memory-repositories.d.ts +68 -0
  236. package/v3/@claude-flow/cli/dist/src/infrastructure/in-memory-repositories.d.ts.map +1 -0
  237. package/v3/@claude-flow/cli/dist/src/infrastructure/in-memory-repositories.js +264 -0
  238. package/v3/@claude-flow/cli/dist/src/infrastructure/in-memory-repositories.js.map +1 -0
  239. package/v3/@claude-flow/cli/dist/src/init/claudemd-generator.d.ts +25 -0
  240. package/v3/@claude-flow/cli/dist/src/init/claudemd-generator.d.ts.map +1 -0
  241. package/v3/@claude-flow/cli/dist/src/init/claudemd-generator.js +486 -0
  242. package/v3/@claude-flow/cli/dist/src/init/claudemd-generator.js.map +1 -0
  243. package/v3/@claude-flow/cli/dist/src/init/executor.d.ts +41 -0
  244. package/v3/@claude-flow/cli/dist/src/init/executor.d.ts.map +1 -0
  245. package/v3/@claude-flow/cli/dist/src/init/executor.js +1738 -0
  246. package/v3/@claude-flow/cli/dist/src/init/executor.js.map +1 -0
  247. package/v3/@claude-flow/cli/dist/src/init/helpers-generator.d.ts +60 -0
  248. package/v3/@claude-flow/cli/dist/src/init/helpers-generator.d.ts.map +1 -0
  249. package/v3/@claude-flow/cli/dist/src/init/helpers-generator.js +1181 -0
  250. package/v3/@claude-flow/cli/dist/src/init/helpers-generator.js.map +1 -0
  251. package/v3/@claude-flow/cli/dist/src/init/index.d.ts +13 -0
  252. package/v3/@claude-flow/cli/dist/src/init/index.d.ts.map +1 -0
  253. package/v3/@claude-flow/cli/dist/src/init/index.js +15 -0
  254. package/v3/@claude-flow/cli/dist/src/init/index.js.map +1 -0
  255. package/v3/@claude-flow/cli/dist/src/init/mcp-generator.d.ts +26 -0
  256. package/v3/@claude-flow/cli/dist/src/init/mcp-generator.d.ts.map +1 -0
  257. package/v3/@claude-flow/cli/dist/src/init/mcp-generator.js +116 -0
  258. package/v3/@claude-flow/cli/dist/src/init/mcp-generator.js.map +1 -0
  259. package/v3/@claude-flow/cli/dist/src/init/settings-generator.d.ts +14 -0
  260. package/v3/@claude-flow/cli/dist/src/init/settings-generator.d.ts.map +1 -0
  261. package/v3/@claude-flow/cli/dist/src/init/settings-generator.js +403 -0
  262. package/v3/@claude-flow/cli/dist/src/init/settings-generator.js.map +1 -0
  263. package/v3/@claude-flow/cli/dist/src/init/statusline-generator.d.ts +28 -0
  264. package/v3/@claude-flow/cli/dist/src/init/statusline-generator.d.ts.map +1 -0
  265. package/v3/@claude-flow/cli/dist/src/init/statusline-generator.js +833 -0
  266. package/v3/@claude-flow/cli/dist/src/init/statusline-generator.js.map +1 -0
  267. package/v3/@claude-flow/cli/dist/src/init/types.d.ts +295 -0
  268. package/v3/@claude-flow/cli/dist/src/init/types.d.ts.map +1 -0
  269. package/v3/@claude-flow/cli/dist/src/init/types.js +263 -0
  270. package/v3/@claude-flow/cli/dist/src/init/types.js.map +1 -0
  271. package/v3/@claude-flow/cli/dist/src/mcp-client.d.ts +98 -0
  272. package/v3/@claude-flow/cli/dist/src/mcp-client.d.ts.map +1 -0
  273. package/v3/@claude-flow/cli/dist/src/mcp-client.js +278 -0
  274. package/v3/@claude-flow/cli/dist/src/mcp-client.js.map +1 -0
  275. package/v3/@claude-flow/cli/dist/src/mcp-server.d.ts +161 -0
  276. package/v3/@claude-flow/cli/dist/src/mcp-server.d.ts.map +1 -0
  277. package/v3/@claude-flow/cli/dist/src/mcp-server.js +627 -0
  278. package/v3/@claude-flow/cli/dist/src/mcp-server.js.map +1 -0
  279. package/v3/@claude-flow/cli/dist/src/mcp-tools/agent-tools.d.ts +49 -0
  280. package/v3/@claude-flow/cli/dist/src/mcp-tools/agent-tools.d.ts.map +1 -0
  281. package/v3/@claude-flow/cli/dist/src/mcp-tools/agent-tools.js +622 -0
  282. package/v3/@claude-flow/cli/dist/src/mcp-tools/agent-tools.js.map +1 -0
  283. package/v3/@claude-flow/cli/dist/src/mcp-tools/agentdb-tools.d.ts +30 -0
  284. package/v3/@claude-flow/cli/dist/src/mcp-tools/agentdb-tools.d.ts.map +1 -0
  285. package/v3/@claude-flow/cli/dist/src/mcp-tools/agentdb-tools.js +557 -0
  286. package/v3/@claude-flow/cli/dist/src/mcp-tools/agentdb-tools.js.map +1 -0
  287. package/v3/@claude-flow/cli/dist/src/mcp-tools/analyze-tools.d.ts +38 -0
  288. package/v3/@claude-flow/cli/dist/src/mcp-tools/analyze-tools.d.ts.map +1 -0
  289. package/v3/@claude-flow/cli/dist/src/mcp-tools/analyze-tools.js +317 -0
  290. package/v3/@claude-flow/cli/dist/src/mcp-tools/analyze-tools.js.map +1 -0
  291. package/v3/@claude-flow/cli/dist/src/mcp-tools/auto-install.d.ts +83 -0
  292. package/v3/@claude-flow/cli/dist/src/mcp-tools/auto-install.d.ts.map +1 -0
  293. package/v3/@claude-flow/cli/dist/src/mcp-tools/auto-install.js +131 -0
  294. package/v3/@claude-flow/cli/dist/src/mcp-tools/auto-install.js.map +1 -0
  295. package/v3/@claude-flow/cli/dist/src/mcp-tools/browser-tools.d.ts +10 -0
  296. package/v3/@claude-flow/cli/dist/src/mcp-tools/browser-tools.d.ts.map +1 -0
  297. package/v3/@claude-flow/cli/dist/src/mcp-tools/browser-tools.js +639 -0
  298. package/v3/@claude-flow/cli/dist/src/mcp-tools/browser-tools.js.map +1 -0
  299. package/v3/@claude-flow/cli/dist/src/mcp-tools/claims-tools.d.ts +12 -0
  300. package/v3/@claude-flow/cli/dist/src/mcp-tools/claims-tools.d.ts.map +1 -0
  301. package/v3/@claude-flow/cli/dist/src/mcp-tools/claims-tools.js +732 -0
  302. package/v3/@claude-flow/cli/dist/src/mcp-tools/claims-tools.js.map +1 -0
  303. package/v3/@claude-flow/cli/dist/src/mcp-tools/config-tools.d.ts +8 -0
  304. package/v3/@claude-flow/cli/dist/src/mcp-tools/config-tools.d.ts.map +1 -0
  305. package/v3/@claude-flow/cli/dist/src/mcp-tools/config-tools.js +352 -0
  306. package/v3/@claude-flow/cli/dist/src/mcp-tools/config-tools.js.map +1 -0
  307. package/v3/@claude-flow/cli/dist/src/mcp-tools/coordination-tools.d.ts +13 -0
  308. package/v3/@claude-flow/cli/dist/src/mcp-tools/coordination-tools.d.ts.map +1 -0
  309. package/v3/@claude-flow/cli/dist/src/mcp-tools/coordination-tools.js +827 -0
  310. package/v3/@claude-flow/cli/dist/src/mcp-tools/coordination-tools.js.map +1 -0
  311. package/v3/@claude-flow/cli/dist/src/mcp-tools/daa-tools.d.ts +13 -0
  312. package/v3/@claude-flow/cli/dist/src/mcp-tools/daa-tools.d.ts.map +1 -0
  313. package/v3/@claude-flow/cli/dist/src/mcp-tools/daa-tools.js +426 -0
  314. package/v3/@claude-flow/cli/dist/src/mcp-tools/daa-tools.js.map +1 -0
  315. package/v3/@claude-flow/cli/dist/src/mcp-tools/dev-tools.d.ts +11 -0
  316. package/v3/@claude-flow/cli/dist/src/mcp-tools/dev-tools.d.ts.map +1 -0
  317. package/v3/@claude-flow/cli/dist/src/mcp-tools/dev-tools.js +713 -0
  318. package/v3/@claude-flow/cli/dist/src/mcp-tools/dev-tools.js.map +1 -0
  319. package/v3/@claude-flow/cli/dist/src/mcp-tools/embeddings-tools.d.ts +9 -0
  320. package/v3/@claude-flow/cli/dist/src/mcp-tools/embeddings-tools.d.ts.map +1 -0
  321. package/v3/@claude-flow/cli/dist/src/mcp-tools/embeddings-tools.js +782 -0
  322. package/v3/@claude-flow/cli/dist/src/mcp-tools/embeddings-tools.js.map +1 -0
  323. package/v3/@claude-flow/cli/dist/src/mcp-tools/github-tools.d.ts +13 -0
  324. package/v3/@claude-flow/cli/dist/src/mcp-tools/github-tools.d.ts.map +1 -0
  325. package/v3/@claude-flow/cli/dist/src/mcp-tools/github-tools.js +373 -0
  326. package/v3/@claude-flow/cli/dist/src/mcp-tools/github-tools.js.map +1 -0
  327. package/v3/@claude-flow/cli/dist/src/mcp-tools/hive-mind-tools.d.ts +8 -0
  328. package/v3/@claude-flow/cli/dist/src/mcp-tools/hive-mind-tools.d.ts.map +1 -0
  329. package/v3/@claude-flow/cli/dist/src/mcp-tools/hive-mind-tools.js +811 -0
  330. package/v3/@claude-flow/cli/dist/src/mcp-tools/hive-mind-tools.js.map +1 -0
  331. package/v3/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.d.ts +44 -0
  332. package/v3/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.d.ts.map +1 -0
  333. package/v3/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.js +3112 -0
  334. package/v3/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.js.map +1 -0
  335. package/v3/@claude-flow/cli/dist/src/mcp-tools/index.d.ts +29 -0
  336. package/v3/@claude-flow/cli/dist/src/mcp-tools/index.d.ts.map +1 -0
  337. package/v3/@claude-flow/cli/dist/src/mcp-tools/index.js +28 -0
  338. package/v3/@claude-flow/cli/dist/src/mcp-tools/index.js.map +1 -0
  339. package/v3/@claude-flow/cli/dist/src/mcp-tools/infrastructure-tools.d.ts +10 -0
  340. package/v3/@claude-flow/cli/dist/src/mcp-tools/infrastructure-tools.d.ts.map +1 -0
  341. package/v3/@claude-flow/cli/dist/src/mcp-tools/infrastructure-tools.js +547 -0
  342. package/v3/@claude-flow/cli/dist/src/mcp-tools/infrastructure-tools.js.map +1 -0
  343. package/v3/@claude-flow/cli/dist/src/mcp-tools/memory-tools.d.ts +14 -0
  344. package/v3/@claude-flow/cli/dist/src/mcp-tools/memory-tools.d.ts.map +1 -0
  345. package/v3/@claude-flow/cli/dist/src/mcp-tools/memory-tools.js +512 -0
  346. package/v3/@claude-flow/cli/dist/src/mcp-tools/memory-tools.js.map +1 -0
  347. package/v3/@claude-flow/cli/dist/src/mcp-tools/neural-tools.d.ts +16 -0
  348. package/v3/@claude-flow/cli/dist/src/mcp-tools/neural-tools.d.ts.map +1 -0
  349. package/v3/@claude-flow/cli/dist/src/mcp-tools/neural-tools.js +461 -0
  350. package/v3/@claude-flow/cli/dist/src/mcp-tools/neural-tools.js.map +1 -0
  351. package/v3/@claude-flow/cli/dist/src/mcp-tools/performance-tools.d.ts +16 -0
  352. package/v3/@claude-flow/cli/dist/src/mcp-tools/performance-tools.d.ts.map +1 -0
  353. package/v3/@claude-flow/cli/dist/src/mcp-tools/performance-tools.js +534 -0
  354. package/v3/@claude-flow/cli/dist/src/mcp-tools/performance-tools.js.map +1 -0
  355. package/v3/@claude-flow/cli/dist/src/mcp-tools/plugin-tools.d.ts +19 -0
  356. package/v3/@claude-flow/cli/dist/src/mcp-tools/plugin-tools.d.ts.map +1 -0
  357. package/v3/@claude-flow/cli/dist/src/mcp-tools/plugin-tools.js +135 -0
  358. package/v3/@claude-flow/cli/dist/src/mcp-tools/plugin-tools.js.map +1 -0
  359. package/v3/@claude-flow/cli/dist/src/mcp-tools/process-manager-tools.d.ts +9 -0
  360. package/v3/@claude-flow/cli/dist/src/mcp-tools/process-manager-tools.d.ts.map +1 -0
  361. package/v3/@claude-flow/cli/dist/src/mcp-tools/process-manager-tools.js +516 -0
  362. package/v3/@claude-flow/cli/dist/src/mcp-tools/process-manager-tools.js.map +1 -0
  363. package/v3/@claude-flow/cli/dist/src/mcp-tools/progress-tools.d.ts +14 -0
  364. package/v3/@claude-flow/cli/dist/src/mcp-tools/progress-tools.d.ts.map +1 -0
  365. package/v3/@claude-flow/cli/dist/src/mcp-tools/progress-tools.js +348 -0
  366. package/v3/@claude-flow/cli/dist/src/mcp-tools/progress-tools.js.map +1 -0
  367. package/v3/@claude-flow/cli/dist/src/mcp-tools/refactor-tools.d.ts +10 -0
  368. package/v3/@claude-flow/cli/dist/src/mcp-tools/refactor-tools.d.ts.map +1 -0
  369. package/v3/@claude-flow/cli/dist/src/mcp-tools/refactor-tools.js +471 -0
  370. package/v3/@claude-flow/cli/dist/src/mcp-tools/refactor-tools.js.map +1 -0
  371. package/v3/@claude-flow/cli/dist/src/mcp-tools/ruvllm-tools.d.ts +9 -0
  372. package/v3/@claude-flow/cli/dist/src/mcp-tools/ruvllm-tools.d.ts.map +1 -0
  373. package/v3/@claude-flow/cli/dist/src/mcp-tools/ruvllm-tools.js +283 -0
  374. package/v3/@claude-flow/cli/dist/src/mcp-tools/ruvllm-tools.js.map +1 -0
  375. package/v3/@claude-flow/cli/dist/src/mcp-tools/security-tools.d.ts +18 -0
  376. package/v3/@claude-flow/cli/dist/src/mcp-tools/security-tools.d.ts.map +1 -0
  377. package/v3/@claude-flow/cli/dist/src/mcp-tools/security-tools.js +434 -0
  378. package/v3/@claude-flow/cli/dist/src/mcp-tools/security-tools.js.map +1 -0
  379. package/v3/@claude-flow/cli/dist/src/mcp-tools/session-tools.d.ts +8 -0
  380. package/v3/@claude-flow/cli/dist/src/mcp-tools/session-tools.d.ts.map +1 -0
  381. package/v3/@claude-flow/cli/dist/src/mcp-tools/session-tools.js +315 -0
  382. package/v3/@claude-flow/cli/dist/src/mcp-tools/session-tools.js.map +1 -0
  383. package/v3/@claude-flow/cli/dist/src/mcp-tools/skill-dispatch-tools.d.ts +17 -0
  384. package/v3/@claude-flow/cli/dist/src/mcp-tools/skill-dispatch-tools.d.ts.map +1 -0
  385. package/v3/@claude-flow/cli/dist/src/mcp-tools/skill-dispatch-tools.js +384 -0
  386. package/v3/@claude-flow/cli/dist/src/mcp-tools/skill-dispatch-tools.js.map +1 -0
  387. package/v3/@claude-flow/cli/dist/src/mcp-tools/skills-tools.d.ts +14 -0
  388. package/v3/@claude-flow/cli/dist/src/mcp-tools/skills-tools.d.ts.map +1 -0
  389. package/v3/@claude-flow/cli/dist/src/mcp-tools/skills-tools.js +295 -0
  390. package/v3/@claude-flow/cli/dist/src/mcp-tools/skills-tools.js.map +1 -0
  391. package/v3/@claude-flow/cli/dist/src/mcp-tools/swarm-tools.d.ts +9 -0
  392. package/v3/@claude-flow/cli/dist/src/mcp-tools/swarm-tools.d.ts.map +1 -0
  393. package/v3/@claude-flow/cli/dist/src/mcp-tools/swarm-tools.js +321 -0
  394. package/v3/@claude-flow/cli/dist/src/mcp-tools/swarm-tools.js.map +1 -0
  395. package/v3/@claude-flow/cli/dist/src/mcp-tools/system-tools.d.ts +13 -0
  396. package/v3/@claude-flow/cli/dist/src/mcp-tools/system-tools.d.ts.map +1 -0
  397. package/v3/@claude-flow/cli/dist/src/mcp-tools/system-tools.js +417 -0
  398. package/v3/@claude-flow/cli/dist/src/mcp-tools/system-tools.js.map +1 -0
  399. package/v3/@claude-flow/cli/dist/src/mcp-tools/task-tools.d.ts +8 -0
  400. package/v3/@claude-flow/cli/dist/src/mcp-tools/task-tools.d.ts.map +1 -0
  401. package/v3/@claude-flow/cli/dist/src/mcp-tools/task-tools.js +404 -0
  402. package/v3/@claude-flow/cli/dist/src/mcp-tools/task-tools.js.map +1 -0
  403. package/v3/@claude-flow/cli/dist/src/mcp-tools/terminal-tools.d.ts +15 -0
  404. package/v3/@claude-flow/cli/dist/src/mcp-tools/terminal-tools.d.ts.map +1 -0
  405. package/v3/@claude-flow/cli/dist/src/mcp-tools/terminal-tools.js +339 -0
  406. package/v3/@claude-flow/cli/dist/src/mcp-tools/terminal-tools.js.map +1 -0
  407. package/v3/@claude-flow/cli/dist/src/mcp-tools/transfer-tools.d.ts +14 -0
  408. package/v3/@claude-flow/cli/dist/src/mcp-tools/transfer-tools.d.ts.map +1 -0
  409. package/v3/@claude-flow/cli/dist/src/mcp-tools/transfer-tools.js +396 -0
  410. package/v3/@claude-flow/cli/dist/src/mcp-tools/transfer-tools.js.map +1 -0
  411. package/v3/@claude-flow/cli/dist/src/mcp-tools/types.d.ts +31 -0
  412. package/v3/@claude-flow/cli/dist/src/mcp-tools/types.d.ts.map +1 -0
  413. package/v3/@claude-flow/cli/dist/src/mcp-tools/types.js +7 -0
  414. package/v3/@claude-flow/cli/dist/src/mcp-tools/types.js.map +1 -0
  415. package/v3/@claude-flow/cli/dist/src/mcp-tools/wasm-agent-tools.d.ts +9 -0
  416. package/v3/@claude-flow/cli/dist/src/mcp-tools/wasm-agent-tools.d.ts.map +1 -0
  417. package/v3/@claude-flow/cli/dist/src/mcp-tools/wasm-agent-tools.js +230 -0
  418. package/v3/@claude-flow/cli/dist/src/mcp-tools/wasm-agent-tools.js.map +1 -0
  419. package/v3/@claude-flow/cli/dist/src/mcp-tools/workflow-tools.d.ts +8 -0
  420. package/v3/@claude-flow/cli/dist/src/mcp-tools/workflow-tools.d.ts.map +1 -0
  421. package/v3/@claude-flow/cli/dist/src/mcp-tools/workflow-tools.js +572 -0
  422. package/v3/@claude-flow/cli/dist/src/mcp-tools/workflow-tools.js.map +1 -0
  423. package/v3/@claude-flow/cli/dist/src/memory/ewc-consolidation.d.ts +295 -0
  424. package/v3/@claude-flow/cli/dist/src/memory/ewc-consolidation.d.ts.map +1 -0
  425. package/v3/@claude-flow/cli/dist/src/memory/ewc-consolidation.js +601 -0
  426. package/v3/@claude-flow/cli/dist/src/memory/ewc-consolidation.js.map +1 -0
  427. package/v3/@claude-flow/cli/dist/src/memory/intelligence.d.ts +338 -0
  428. package/v3/@claude-flow/cli/dist/src/memory/intelligence.d.ts.map +1 -0
  429. package/v3/@claude-flow/cli/dist/src/memory/intelligence.js +1023 -0
  430. package/v3/@claude-flow/cli/dist/src/memory/intelligence.js.map +1 -0
  431. package/v3/@claude-flow/cli/dist/src/memory/memory-bridge.d.ts +407 -0
  432. package/v3/@claude-flow/cli/dist/src/memory/memory-bridge.d.ts.map +1 -0
  433. package/v3/@claude-flow/cli/dist/src/memory/memory-bridge.js +1494 -0
  434. package/v3/@claude-flow/cli/dist/src/memory/memory-bridge.js.map +1 -0
  435. package/v3/@claude-flow/cli/dist/src/memory/memory-initializer.d.ts +434 -0
  436. package/v3/@claude-flow/cli/dist/src/memory/memory-initializer.d.ts.map +1 -0
  437. package/v3/@claude-flow/cli/dist/src/memory/memory-initializer.js +2243 -0
  438. package/v3/@claude-flow/cli/dist/src/memory/memory-initializer.js.map +1 -0
  439. package/v3/@claude-flow/cli/dist/src/memory/sona-optimizer.d.ts +227 -0
  440. package/v3/@claude-flow/cli/dist/src/memory/sona-optimizer.d.ts.map +1 -0
  441. package/v3/@claude-flow/cli/dist/src/memory/sona-optimizer.js +633 -0
  442. package/v3/@claude-flow/cli/dist/src/memory/sona-optimizer.js.map +1 -0
  443. package/v3/@claude-flow/cli/dist/src/output.d.ts +133 -0
  444. package/v3/@claude-flow/cli/dist/src/output.d.ts.map +1 -0
  445. package/v3/@claude-flow/cli/dist/src/output.js +514 -0
  446. package/v3/@claude-flow/cli/dist/src/output.js.map +1 -0
  447. package/v3/@claude-flow/cli/dist/src/parser.d.ts +51 -0
  448. package/v3/@claude-flow/cli/dist/src/parser.d.ts.map +1 -0
  449. package/v3/@claude-flow/cli/dist/src/parser.js +423 -0
  450. package/v3/@claude-flow/cli/dist/src/parser.js.map +1 -0
  451. package/v3/@claude-flow/cli/dist/src/plugins/manager.d.ts +133 -0
  452. package/v3/@claude-flow/cli/dist/src/plugins/manager.d.ts.map +1 -0
  453. package/v3/@claude-flow/cli/dist/src/plugins/manager.js +400 -0
  454. package/v3/@claude-flow/cli/dist/src/plugins/manager.js.map +1 -0
  455. package/v3/@claude-flow/cli/dist/src/plugins/store/discovery.d.ts +88 -0
  456. package/v3/@claude-flow/cli/dist/src/plugins/store/discovery.d.ts.map +1 -0
  457. package/v3/@claude-flow/cli/dist/src/plugins/store/discovery.js +1147 -0
  458. package/v3/@claude-flow/cli/dist/src/plugins/store/discovery.js.map +1 -0
  459. package/v3/@claude-flow/cli/dist/src/plugins/store/index.d.ts +76 -0
  460. package/v3/@claude-flow/cli/dist/src/plugins/store/index.d.ts.map +1 -0
  461. package/v3/@claude-flow/cli/dist/src/plugins/store/index.js +141 -0
  462. package/v3/@claude-flow/cli/dist/src/plugins/store/index.js.map +1 -0
  463. package/v3/@claude-flow/cli/dist/src/plugins/store/search.d.ts +46 -0
  464. package/v3/@claude-flow/cli/dist/src/plugins/store/search.d.ts.map +1 -0
  465. package/v3/@claude-flow/cli/dist/src/plugins/store/search.js +230 -0
  466. package/v3/@claude-flow/cli/dist/src/plugins/store/search.js.map +1 -0
  467. package/v3/@claude-flow/cli/dist/src/plugins/store/types.d.ts +274 -0
  468. package/v3/@claude-flow/cli/dist/src/plugins/store/types.d.ts.map +1 -0
  469. package/v3/@claude-flow/cli/dist/src/plugins/store/types.js +7 -0
  470. package/v3/@claude-flow/cli/dist/src/plugins/store/types.js.map +1 -0
  471. package/v3/@claude-flow/cli/dist/src/plugins/tests/demo-plugin-store.d.ts +7 -0
  472. package/v3/@claude-flow/cli/dist/src/plugins/tests/demo-plugin-store.d.ts.map +1 -0
  473. package/v3/@claude-flow/cli/dist/src/plugins/tests/demo-plugin-store.js +126 -0
  474. package/v3/@claude-flow/cli/dist/src/plugins/tests/demo-plugin-store.js.map +1 -0
  475. package/v3/@claude-flow/cli/dist/src/plugins/tests/standalone-test.d.ts +12 -0
  476. package/v3/@claude-flow/cli/dist/src/plugins/tests/standalone-test.d.ts.map +1 -0
  477. package/v3/@claude-flow/cli/dist/src/plugins/tests/standalone-test.js +188 -0
  478. package/v3/@claude-flow/cli/dist/src/plugins/tests/standalone-test.js.map +1 -0
  479. package/v3/@claude-flow/cli/dist/src/plugins/tests/test-plugin-store.d.ts +7 -0
  480. package/v3/@claude-flow/cli/dist/src/plugins/tests/test-plugin-store.d.ts.map +1 -0
  481. package/v3/@claude-flow/cli/dist/src/plugins/tests/test-plugin-store.js +206 -0
  482. package/v3/@claude-flow/cli/dist/src/plugins/tests/test-plugin-store.js.map +1 -0
  483. package/v3/@claude-flow/cli/dist/src/process-supervisor.d.ts +41 -0
  484. package/v3/@claude-flow/cli/dist/src/process-supervisor.d.ts.map +1 -0
  485. package/v3/@claude-flow/cli/dist/src/process-supervisor.js +214 -0
  486. package/v3/@claude-flow/cli/dist/src/process-supervisor.js.map +1 -0
  487. package/v3/@claude-flow/cli/dist/src/production/circuit-breaker.d.ts +101 -0
  488. package/v3/@claude-flow/cli/dist/src/production/circuit-breaker.d.ts.map +1 -0
  489. package/v3/@claude-flow/cli/dist/src/production/circuit-breaker.js +241 -0
  490. package/v3/@claude-flow/cli/dist/src/production/circuit-breaker.js.map +1 -0
  491. package/v3/@claude-flow/cli/dist/src/production/error-handler.d.ts +92 -0
  492. package/v3/@claude-flow/cli/dist/src/production/error-handler.d.ts.map +1 -0
  493. package/v3/@claude-flow/cli/dist/src/production/error-handler.js +299 -0
  494. package/v3/@claude-flow/cli/dist/src/production/error-handler.js.map +1 -0
  495. package/v3/@claude-flow/cli/dist/src/production/index.d.ts +23 -0
  496. package/v3/@claude-flow/cli/dist/src/production/index.d.ts.map +1 -0
  497. package/v3/@claude-flow/cli/dist/src/production/index.js +18 -0
  498. package/v3/@claude-flow/cli/dist/src/production/index.js.map +1 -0
  499. package/v3/@claude-flow/cli/dist/src/production/monitoring.d.ts +161 -0
  500. package/v3/@claude-flow/cli/dist/src/production/monitoring.d.ts.map +1 -0
  501. package/v3/@claude-flow/cli/dist/src/production/monitoring.js +356 -0
  502. package/v3/@claude-flow/cli/dist/src/production/monitoring.js.map +1 -0
  503. package/v3/@claude-flow/cli/dist/src/production/rate-limiter.d.ts +80 -0
  504. package/v3/@claude-flow/cli/dist/src/production/rate-limiter.d.ts.map +1 -0
  505. package/v3/@claude-flow/cli/dist/src/production/rate-limiter.js +201 -0
  506. package/v3/@claude-flow/cli/dist/src/production/rate-limiter.js.map +1 -0
  507. package/v3/@claude-flow/cli/dist/src/production/retry.d.ts +48 -0
  508. package/v3/@claude-flow/cli/dist/src/production/retry.d.ts.map +1 -0
  509. package/v3/@claude-flow/cli/dist/src/production/retry.js +179 -0
  510. package/v3/@claude-flow/cli/dist/src/production/retry.js.map +1 -0
  511. package/v3/@claude-flow/cli/dist/src/prompt.d.ts +44 -0
  512. package/v3/@claude-flow/cli/dist/src/prompt.d.ts.map +1 -0
  513. package/v3/@claude-flow/cli/dist/src/prompt.js +501 -0
  514. package/v3/@claude-flow/cli/dist/src/prompt.js.map +1 -0
  515. package/v3/@claude-flow/cli/dist/src/runtime/headless.d.ts +60 -0
  516. package/v3/@claude-flow/cli/dist/src/runtime/headless.d.ts.map +1 -0
  517. package/v3/@claude-flow/cli/dist/src/runtime/headless.js +284 -0
  518. package/v3/@claude-flow/cli/dist/src/runtime/headless.js.map +1 -0
  519. package/v3/@claude-flow/cli/dist/src/ruvector/agent-wasm.d.ts +182 -0
  520. package/v3/@claude-flow/cli/dist/src/ruvector/agent-wasm.d.ts.map +1 -0
  521. package/v3/@claude-flow/cli/dist/src/ruvector/agent-wasm.js +316 -0
  522. package/v3/@claude-flow/cli/dist/src/ruvector/agent-wasm.js.map +1 -0
  523. package/v3/@claude-flow/cli/dist/src/ruvector/ast-analyzer.d.ts +67 -0
  524. package/v3/@claude-flow/cli/dist/src/ruvector/ast-analyzer.d.ts.map +1 -0
  525. package/v3/@claude-flow/cli/dist/src/ruvector/ast-analyzer.js +277 -0
  526. package/v3/@claude-flow/cli/dist/src/ruvector/ast-analyzer.js.map +1 -0
  527. package/v3/@claude-flow/cli/dist/src/ruvector/coverage-router.d.ts +160 -0
  528. package/v3/@claude-flow/cli/dist/src/ruvector/coverage-router.d.ts.map +1 -0
  529. package/v3/@claude-flow/cli/dist/src/ruvector/coverage-router.js +529 -0
  530. package/v3/@claude-flow/cli/dist/src/ruvector/coverage-router.js.map +1 -0
  531. package/v3/@claude-flow/cli/dist/src/ruvector/coverage-tools.d.ts +33 -0
  532. package/v3/@claude-flow/cli/dist/src/ruvector/coverage-tools.d.ts.map +1 -0
  533. package/v3/@claude-flow/cli/dist/src/ruvector/coverage-tools.js +157 -0
  534. package/v3/@claude-flow/cli/dist/src/ruvector/coverage-tools.js.map +1 -0
  535. package/v3/@claude-flow/cli/dist/src/ruvector/diff-classifier.d.ts +175 -0
  536. package/v3/@claude-flow/cli/dist/src/ruvector/diff-classifier.d.ts.map +1 -0
  537. package/v3/@claude-flow/cli/dist/src/ruvector/diff-classifier.js +698 -0
  538. package/v3/@claude-flow/cli/dist/src/ruvector/diff-classifier.js.map +1 -0
  539. package/v3/@claude-flow/cli/dist/src/ruvector/enhanced-model-router.d.ts +146 -0
  540. package/v3/@claude-flow/cli/dist/src/ruvector/enhanced-model-router.d.ts.map +1 -0
  541. package/v3/@claude-flow/cli/dist/src/ruvector/enhanced-model-router.js +529 -0
  542. package/v3/@claude-flow/cli/dist/src/ruvector/enhanced-model-router.js.map +1 -0
  543. package/v3/@claude-flow/cli/dist/src/ruvector/flash-attention.d.ts +195 -0
  544. package/v3/@claude-flow/cli/dist/src/ruvector/flash-attention.d.ts.map +1 -0
  545. package/v3/@claude-flow/cli/dist/src/ruvector/flash-attention.js +643 -0
  546. package/v3/@claude-flow/cli/dist/src/ruvector/flash-attention.js.map +1 -0
  547. package/v3/@claude-flow/cli/dist/src/ruvector/graph-analyzer.d.ts +187 -0
  548. package/v3/@claude-flow/cli/dist/src/ruvector/graph-analyzer.d.ts.map +1 -0
  549. package/v3/@claude-flow/cli/dist/src/ruvector/graph-analyzer.js +929 -0
  550. package/v3/@claude-flow/cli/dist/src/ruvector/graph-analyzer.js.map +1 -0
  551. package/v3/@claude-flow/cli/dist/src/ruvector/index.d.ts +40 -0
  552. package/v3/@claude-flow/cli/dist/src/ruvector/index.d.ts.map +1 -0
  553. package/v3/@claude-flow/cli/dist/src/ruvector/index.js +76 -0
  554. package/v3/@claude-flow/cli/dist/src/ruvector/index.js.map +1 -0
  555. package/v3/@claude-flow/cli/dist/src/ruvector/lora-adapter.d.ts +218 -0
  556. package/v3/@claude-flow/cli/dist/src/ruvector/lora-adapter.d.ts.map +1 -0
  557. package/v3/@claude-flow/cli/dist/src/ruvector/lora-adapter.js +455 -0
  558. package/v3/@claude-flow/cli/dist/src/ruvector/lora-adapter.js.map +1 -0
  559. package/v3/@claude-flow/cli/dist/src/ruvector/model-router.d.ts +220 -0
  560. package/v3/@claude-flow/cli/dist/src/ruvector/model-router.d.ts.map +1 -0
  561. package/v3/@claude-flow/cli/dist/src/ruvector/model-router.js +488 -0
  562. package/v3/@claude-flow/cli/dist/src/ruvector/model-router.js.map +1 -0
  563. package/v3/@claude-flow/cli/dist/src/ruvector/moe-router.d.ts +206 -0
  564. package/v3/@claude-flow/cli/dist/src/ruvector/moe-router.d.ts.map +1 -0
  565. package/v3/@claude-flow/cli/dist/src/ruvector/moe-router.js +626 -0
  566. package/v3/@claude-flow/cli/dist/src/ruvector/moe-router.js.map +1 -0
  567. package/v3/@claude-flow/cli/dist/src/ruvector/q-learning-router.d.ts +211 -0
  568. package/v3/@claude-flow/cli/dist/src/ruvector/q-learning-router.d.ts.map +1 -0
  569. package/v3/@claude-flow/cli/dist/src/ruvector/q-learning-router.js +681 -0
  570. package/v3/@claude-flow/cli/dist/src/ruvector/q-learning-router.js.map +1 -0
  571. package/v3/@claude-flow/cli/dist/src/ruvector/ruvllm-wasm.d.ts +179 -0
  572. package/v3/@claude-flow/cli/dist/src/ruvector/ruvllm-wasm.d.ts.map +1 -0
  573. package/v3/@claude-flow/cli/dist/src/ruvector/ruvllm-wasm.js +363 -0
  574. package/v3/@claude-flow/cli/dist/src/ruvector/ruvllm-wasm.js.map +1 -0
  575. package/v3/@claude-flow/cli/dist/src/ruvector/semantic-router.d.ts +77 -0
  576. package/v3/@claude-flow/cli/dist/src/ruvector/semantic-router.d.ts.map +1 -0
  577. package/v3/@claude-flow/cli/dist/src/ruvector/semantic-router.js +178 -0
  578. package/v3/@claude-flow/cli/dist/src/ruvector/semantic-router.js.map +1 -0
  579. package/v3/@claude-flow/cli/dist/src/ruvector/vector-db.d.ts +69 -0
  580. package/v3/@claude-flow/cli/dist/src/ruvector/vector-db.d.ts.map +1 -0
  581. package/v3/@claude-flow/cli/dist/src/ruvector/vector-db.js +243 -0
  582. package/v3/@claude-flow/cli/dist/src/ruvector/vector-db.js.map +1 -0
  583. package/v3/@claude-flow/cli/dist/src/services/agentic-flow-bridge.d.ts +54 -0
  584. package/v3/@claude-flow/cli/dist/src/services/agentic-flow-bridge.d.ts.map +1 -0
  585. package/v3/@claude-flow/cli/dist/src/services/agentic-flow-bridge.js +100 -0
  586. package/v3/@claude-flow/cli/dist/src/services/agentic-flow-bridge.js.map +1 -0
  587. package/v3/@claude-flow/cli/dist/src/services/claim-service.d.ts +204 -0
  588. package/v3/@claude-flow/cli/dist/src/services/claim-service.d.ts.map +1 -0
  589. package/v3/@claude-flow/cli/dist/src/services/claim-service.js +818 -0
  590. package/v3/@claude-flow/cli/dist/src/services/claim-service.js.map +1 -0
  591. package/v3/@claude-flow/cli/dist/src/services/container-worker-pool.d.ts +197 -0
  592. package/v3/@claude-flow/cli/dist/src/services/container-worker-pool.d.ts.map +1 -0
  593. package/v3/@claude-flow/cli/dist/src/services/container-worker-pool.js +583 -0
  594. package/v3/@claude-flow/cli/dist/src/services/container-worker-pool.js.map +1 -0
  595. package/v3/@claude-flow/cli/dist/src/services/headless-worker-executor.d.ts +304 -0
  596. package/v3/@claude-flow/cli/dist/src/services/headless-worker-executor.d.ts.map +1 -0
  597. package/v3/@claude-flow/cli/dist/src/services/headless-worker-executor.js +1011 -0
  598. package/v3/@claude-flow/cli/dist/src/services/headless-worker-executor.js.map +1 -0
  599. package/v3/@claude-flow/cli/dist/src/services/index.d.ts +13 -0
  600. package/v3/@claude-flow/cli/dist/src/services/index.d.ts.map +1 -0
  601. package/v3/@claude-flow/cli/dist/src/services/index.js +11 -0
  602. package/v3/@claude-flow/cli/dist/src/services/index.js.map +1 -0
  603. package/v3/@claude-flow/cli/dist/src/services/registry-api.d.ts +58 -0
  604. package/v3/@claude-flow/cli/dist/src/services/registry-api.d.ts.map +1 -0
  605. package/v3/@claude-flow/cli/dist/src/services/registry-api.js +146 -0
  606. package/v3/@claude-flow/cli/dist/src/services/registry-api.js.map +1 -0
  607. package/v3/@claude-flow/cli/dist/src/services/ruvector-training.d.ts +222 -0
  608. package/v3/@claude-flow/cli/dist/src/services/ruvector-training.d.ts.map +1 -0
  609. package/v3/@claude-flow/cli/dist/src/services/ruvector-training.js +688 -0
  610. package/v3/@claude-flow/cli/dist/src/services/ruvector-training.js.map +1 -0
  611. package/v3/@claude-flow/cli/dist/src/services/worker-daemon.d.ts +237 -0
  612. package/v3/@claude-flow/cli/dist/src/services/worker-daemon.d.ts.map +1 -0
  613. package/v3/@claude-flow/cli/dist/src/services/worker-daemon.js +959 -0
  614. package/v3/@claude-flow/cli/dist/src/services/worker-daemon.js.map +1 -0
  615. package/v3/@claude-flow/cli/dist/src/services/worker-queue.d.ts +194 -0
  616. package/v3/@claude-flow/cli/dist/src/services/worker-queue.d.ts.map +1 -0
  617. package/v3/@claude-flow/cli/dist/src/services/worker-queue.js +513 -0
  618. package/v3/@claude-flow/cli/dist/src/services/worker-queue.js.map +1 -0
  619. package/v3/@claude-flow/cli/dist/src/suggest.d.ts +53 -0
  620. package/v3/@claude-flow/cli/dist/src/suggest.d.ts.map +1 -0
  621. package/v3/@claude-flow/cli/dist/src/suggest.js +200 -0
  622. package/v3/@claude-flow/cli/dist/src/suggest.js.map +1 -0
  623. package/v3/@claude-flow/cli/dist/src/transfer/anonymization/index.d.ts +25 -0
  624. package/v3/@claude-flow/cli/dist/src/transfer/anonymization/index.d.ts.map +1 -0
  625. package/v3/@claude-flow/cli/dist/src/transfer/anonymization/index.js +175 -0
  626. package/v3/@claude-flow/cli/dist/src/transfer/anonymization/index.js.map +1 -0
  627. package/v3/@claude-flow/cli/dist/src/transfer/deploy-seraphine.d.ts +13 -0
  628. package/v3/@claude-flow/cli/dist/src/transfer/deploy-seraphine.d.ts.map +1 -0
  629. package/v3/@claude-flow/cli/dist/src/transfer/deploy-seraphine.js +205 -0
  630. package/v3/@claude-flow/cli/dist/src/transfer/deploy-seraphine.js.map +1 -0
  631. package/v3/@claude-flow/cli/dist/src/transfer/export.d.ts +25 -0
  632. package/v3/@claude-flow/cli/dist/src/transfer/export.d.ts.map +1 -0
  633. package/v3/@claude-flow/cli/dist/src/transfer/export.js +113 -0
  634. package/v3/@claude-flow/cli/dist/src/transfer/export.js.map +1 -0
  635. package/v3/@claude-flow/cli/dist/src/transfer/index.d.ts +12 -0
  636. package/v3/@claude-flow/cli/dist/src/transfer/index.d.ts.map +1 -0
  637. package/v3/@claude-flow/cli/dist/src/transfer/index.js +31 -0
  638. package/v3/@claude-flow/cli/dist/src/transfer/index.js.map +1 -0
  639. package/v3/@claude-flow/cli/dist/src/transfer/ipfs/client.d.ts +109 -0
  640. package/v3/@claude-flow/cli/dist/src/transfer/ipfs/client.d.ts.map +1 -0
  641. package/v3/@claude-flow/cli/dist/src/transfer/ipfs/client.js +307 -0
  642. package/v3/@claude-flow/cli/dist/src/transfer/ipfs/client.js.map +1 -0
  643. package/v3/@claude-flow/cli/dist/src/transfer/ipfs/upload.d.ts +95 -0
  644. package/v3/@claude-flow/cli/dist/src/transfer/ipfs/upload.d.ts.map +1 -0
  645. package/v3/@claude-flow/cli/dist/src/transfer/ipfs/upload.js +411 -0
  646. package/v3/@claude-flow/cli/dist/src/transfer/ipfs/upload.js.map +1 -0
  647. package/v3/@claude-flow/cli/dist/src/transfer/models/seraphine.d.ts +72 -0
  648. package/v3/@claude-flow/cli/dist/src/transfer/models/seraphine.d.ts.map +1 -0
  649. package/v3/@claude-flow/cli/dist/src/transfer/models/seraphine.js +373 -0
  650. package/v3/@claude-flow/cli/dist/src/transfer/models/seraphine.js.map +1 -0
  651. package/v3/@claude-flow/cli/dist/src/transfer/serialization/cfp.d.ts +49 -0
  652. package/v3/@claude-flow/cli/dist/src/transfer/serialization/cfp.d.ts.map +1 -0
  653. package/v3/@claude-flow/cli/dist/src/transfer/serialization/cfp.js +183 -0
  654. package/v3/@claude-flow/cli/dist/src/transfer/serialization/cfp.js.map +1 -0
  655. package/v3/@claude-flow/cli/dist/src/transfer/storage/gcs.d.ts +82 -0
  656. package/v3/@claude-flow/cli/dist/src/transfer/storage/gcs.d.ts.map +1 -0
  657. package/v3/@claude-flow/cli/dist/src/transfer/storage/gcs.js +272 -0
  658. package/v3/@claude-flow/cli/dist/src/transfer/storage/gcs.js.map +1 -0
  659. package/v3/@claude-flow/cli/dist/src/transfer/storage/index.d.ts +6 -0
  660. package/v3/@claude-flow/cli/dist/src/transfer/storage/index.d.ts.map +1 -0
  661. package/v3/@claude-flow/cli/dist/src/transfer/storage/index.js +6 -0
  662. package/v3/@claude-flow/cli/dist/src/transfer/storage/index.js.map +1 -0
  663. package/v3/@claude-flow/cli/dist/src/transfer/store/discovery.d.ts +84 -0
  664. package/v3/@claude-flow/cli/dist/src/transfer/store/discovery.d.ts.map +1 -0
  665. package/v3/@claude-flow/cli/dist/src/transfer/store/discovery.js +382 -0
  666. package/v3/@claude-flow/cli/dist/src/transfer/store/discovery.js.map +1 -0
  667. package/v3/@claude-flow/cli/dist/src/transfer/store/download.d.ts +70 -0
  668. package/v3/@claude-flow/cli/dist/src/transfer/store/download.d.ts.map +1 -0
  669. package/v3/@claude-flow/cli/dist/src/transfer/store/download.js +334 -0
  670. package/v3/@claude-flow/cli/dist/src/transfer/store/download.js.map +1 -0
  671. package/v3/@claude-flow/cli/dist/src/transfer/store/index.d.ts +84 -0
  672. package/v3/@claude-flow/cli/dist/src/transfer/store/index.d.ts.map +1 -0
  673. package/v3/@claude-flow/cli/dist/src/transfer/store/index.js +153 -0
  674. package/v3/@claude-flow/cli/dist/src/transfer/store/index.js.map +1 -0
  675. package/v3/@claude-flow/cli/dist/src/transfer/store/publish.d.ts +76 -0
  676. package/v3/@claude-flow/cli/dist/src/transfer/store/publish.d.ts.map +1 -0
  677. package/v3/@claude-flow/cli/dist/src/transfer/store/publish.js +294 -0
  678. package/v3/@claude-flow/cli/dist/src/transfer/store/publish.js.map +1 -0
  679. package/v3/@claude-flow/cli/dist/src/transfer/store/registry.d.ts +58 -0
  680. package/v3/@claude-flow/cli/dist/src/transfer/store/registry.d.ts.map +1 -0
  681. package/v3/@claude-flow/cli/dist/src/transfer/store/registry.js +285 -0
  682. package/v3/@claude-flow/cli/dist/src/transfer/store/registry.js.map +1 -0
  683. package/v3/@claude-flow/cli/dist/src/transfer/store/search.d.ts +54 -0
  684. package/v3/@claude-flow/cli/dist/src/transfer/store/search.d.ts.map +1 -0
  685. package/v3/@claude-flow/cli/dist/src/transfer/store/search.js +232 -0
  686. package/v3/@claude-flow/cli/dist/src/transfer/store/search.js.map +1 -0
  687. package/v3/@claude-flow/cli/dist/src/transfer/store/tests/standalone-test.d.ts +12 -0
  688. package/v3/@claude-flow/cli/dist/src/transfer/store/tests/standalone-test.d.ts.map +1 -0
  689. package/v3/@claude-flow/cli/dist/src/transfer/store/tests/standalone-test.js +190 -0
  690. package/v3/@claude-flow/cli/dist/src/transfer/store/tests/standalone-test.js.map +1 -0
  691. package/v3/@claude-flow/cli/dist/src/transfer/store/types.d.ts +193 -0
  692. package/v3/@claude-flow/cli/dist/src/transfer/store/types.d.ts.map +1 -0
  693. package/v3/@claude-flow/cli/dist/src/transfer/store/types.js +6 -0
  694. package/v3/@claude-flow/cli/dist/src/transfer/store/types.js.map +1 -0
  695. package/v3/@claude-flow/cli/dist/src/transfer/test-seraphine.d.ts +6 -0
  696. package/v3/@claude-flow/cli/dist/src/transfer/test-seraphine.d.ts.map +1 -0
  697. package/v3/@claude-flow/cli/dist/src/transfer/test-seraphine.js +105 -0
  698. package/v3/@claude-flow/cli/dist/src/transfer/test-seraphine.js.map +1 -0
  699. package/v3/@claude-flow/cli/dist/src/transfer/tests/test-store.d.ts +7 -0
  700. package/v3/@claude-flow/cli/dist/src/transfer/tests/test-store.d.ts.map +1 -0
  701. package/v3/@claude-flow/cli/dist/src/transfer/tests/test-store.js +214 -0
  702. package/v3/@claude-flow/cli/dist/src/transfer/tests/test-store.js.map +1 -0
  703. package/v3/@claude-flow/cli/dist/src/transfer/types.d.ts +245 -0
  704. package/v3/@claude-flow/cli/dist/src/transfer/types.d.ts.map +1 -0
  705. package/v3/@claude-flow/cli/dist/src/transfer/types.js +6 -0
  706. package/v3/@claude-flow/cli/dist/src/transfer/types.js.map +1 -0
  707. package/v3/@claude-flow/cli/dist/src/types.d.ts +198 -0
  708. package/v3/@claude-flow/cli/dist/src/types.d.ts.map +1 -0
  709. package/v3/@claude-flow/cli/dist/src/types.js +38 -0
  710. package/v3/@claude-flow/cli/dist/src/types.js.map +1 -0
  711. package/v3/@claude-flow/cli/dist/src/update/checker.d.ts +34 -0
  712. package/v3/@claude-flow/cli/dist/src/update/checker.d.ts.map +1 -0
  713. package/v3/@claude-flow/cli/dist/src/update/checker.js +190 -0
  714. package/v3/@claude-flow/cli/dist/src/update/checker.js.map +1 -0
  715. package/v3/@claude-flow/cli/dist/src/update/executor.d.ts +32 -0
  716. package/v3/@claude-flow/cli/dist/src/update/executor.d.ts.map +1 -0
  717. package/v3/@claude-flow/cli/dist/src/update/executor.js +181 -0
  718. package/v3/@claude-flow/cli/dist/src/update/executor.js.map +1 -0
  719. package/v3/@claude-flow/cli/dist/src/update/index.d.ts +33 -0
  720. package/v3/@claude-flow/cli/dist/src/update/index.d.ts.map +1 -0
  721. package/v3/@claude-flow/cli/dist/src/update/index.js +64 -0
  722. package/v3/@claude-flow/cli/dist/src/update/index.js.map +1 -0
  723. package/v3/@claude-flow/cli/dist/src/update/rate-limiter.d.ts +20 -0
  724. package/v3/@claude-flow/cli/dist/src/update/rate-limiter.d.ts.map +1 -0
  725. package/v3/@claude-flow/cli/dist/src/update/rate-limiter.js +96 -0
  726. package/v3/@claude-flow/cli/dist/src/update/rate-limiter.js.map +1 -0
  727. package/v3/@claude-flow/cli/dist/src/update/validator.d.ts +17 -0
  728. package/v3/@claude-flow/cli/dist/src/update/validator.d.ts.map +1 -0
  729. package/v3/@claude-flow/cli/dist/src/update/validator.js +123 -0
  730. package/v3/@claude-flow/cli/dist/src/update/validator.js.map +1 -0
  731. package/v3/@claude-flow/cli/dist/tsconfig.tsbuildinfo +1 -0
  732. package/v3/@claude-flow/cli/package.json +109 -0
@@ -0,0 +1,919 @@
1
+ /**
2
+ * V3 CLI Agent Command
3
+ * Agent management commands for spawning, listing, and controlling agents
4
+ */
5
+ import { output } from '../output.js';
6
+ import { select, confirm, input } from '../prompt.js';
7
+ import { callMCPTool, MCPClientError } from '../mcp-client.js';
8
+ import * as fs from 'fs';
9
+ import * as path from 'path';
10
+ /**
11
+ * Update swarm-activity.json metrics after agent count changes.
12
+ * The statusline reads this file to display the swarm agent count.
13
+ */
14
+ function updateSwarmActivityMetrics(agentCountDelta) {
15
+ try {
16
+ const metricsDir = path.join(process.cwd(), '.claude-flow', 'metrics');
17
+ const activityPath = path.join(metricsDir, 'swarm-activity.json');
18
+ let data = {
19
+ timestamp: new Date().toISOString(),
20
+ swarm: { active: false, agent_count: 0, coordination_active: false },
21
+ };
22
+ if (fs.existsSync(activityPath)) {
23
+ data = JSON.parse(fs.readFileSync(activityPath, 'utf-8'));
24
+ }
25
+ else {
26
+ fs.mkdirSync(metricsDir, { recursive: true });
27
+ }
28
+ const swarm = data.swarm ?? {};
29
+ const currentCount = Math.max(0, swarm.agent_count || 0);
30
+ const newCount = Math.max(0, currentCount + agentCountDelta);
31
+ swarm.agent_count = newCount;
32
+ swarm.active = newCount > 0;
33
+ swarm.coordination_active = newCount > 0;
34
+ data.swarm = swarm;
35
+ data.timestamp = new Date().toISOString();
36
+ fs.writeFileSync(activityPath, JSON.stringify(data, null, 2));
37
+ }
38
+ catch {
39
+ // Non-critical — don't fail the command if metrics update fails
40
+ }
41
+ }
42
+ // Available agent types with descriptions
43
+ const AGENT_TYPES = [
44
+ { value: 'coder', label: 'Coder', hint: 'Code development with neural patterns' },
45
+ { value: 'researcher', label: 'Researcher', hint: 'Research with web access and data analysis' },
46
+ { value: 'tester', label: 'Tester', hint: 'Comprehensive testing with automation' },
47
+ { value: 'reviewer', label: 'Reviewer', hint: 'Code review with security and quality checks' },
48
+ { value: 'architect', label: 'Architect', hint: 'System design with enterprise patterns' },
49
+ { value: 'coordinator', label: 'Coordinator', hint: 'Multi-agent orchestration and workflow' },
50
+ { value: 'analyst', label: 'Analyst', hint: 'Performance analysis and optimization' },
51
+ { value: 'optimizer', label: 'Optimizer', hint: 'Performance optimization and bottleneck analysis' },
52
+ { value: 'security-architect', label: 'Security Architect', hint: 'Security architecture and threat modeling' },
53
+ { value: 'security-auditor', label: 'Security Auditor', hint: 'CVE remediation and security testing' },
54
+ { value: 'memory-specialist', label: 'Memory Specialist', hint: 'AgentDB unification (150x-12,500x faster)' },
55
+ { value: 'swarm-specialist', label: 'Swarm Specialist', hint: 'Unified coordination engine' },
56
+ { value: 'performance-engineer', label: 'Performance Engineer', hint: '2.49x-7.47x optimization targets' },
57
+ { value: 'core-architect', label: 'Core Architect', hint: 'Domain-driven design restructure' },
58
+ { value: 'test-architect', label: 'Test Architect', hint: 'TDD London School methodology' }
59
+ ];
60
+ // Agent spawn subcommand
61
+ const spawnCommand = {
62
+ name: 'spawn',
63
+ description: 'Spawn a new agent',
64
+ options: [
65
+ {
66
+ name: 'type',
67
+ short: 't',
68
+ description: 'Agent type to spawn',
69
+ type: 'string',
70
+ choices: AGENT_TYPES.map(a => a.value)
71
+ },
72
+ {
73
+ name: 'name',
74
+ short: 'n',
75
+ description: 'Agent name/identifier',
76
+ type: 'string'
77
+ },
78
+ {
79
+ name: 'provider',
80
+ short: 'p',
81
+ description: 'Provider to use (anthropic, openrouter, ollama)',
82
+ type: 'string',
83
+ default: 'anthropic'
84
+ },
85
+ {
86
+ name: 'model',
87
+ short: 'm',
88
+ description: 'Model to use',
89
+ type: 'string'
90
+ },
91
+ {
92
+ name: 'task',
93
+ description: 'Initial task for the agent',
94
+ type: 'string'
95
+ },
96
+ {
97
+ name: 'timeout',
98
+ description: 'Agent timeout in seconds',
99
+ type: 'number',
100
+ default: 300
101
+ },
102
+ {
103
+ name: 'auto-tools',
104
+ description: 'Enable automatic tool usage',
105
+ type: 'boolean',
106
+ default: true
107
+ }
108
+ ],
109
+ examples: [
110
+ { command: 'claude-flow agent spawn --type coder --name bot-1', description: 'Spawn a coder agent' },
111
+ { command: 'claude-flow agent spawn -t researcher --task "Research React 19"', description: 'Spawn researcher with task' }
112
+ ],
113
+ action: async (ctx) => {
114
+ let agentType = ctx.flags.type;
115
+ let agentName = ctx.flags.name;
116
+ // Interactive mode if type not specified
117
+ if (!agentType && ctx.interactive) {
118
+ agentType = await select({
119
+ message: 'Select agent type:',
120
+ options: AGENT_TYPES
121
+ });
122
+ }
123
+ if (!agentType) {
124
+ output.printError('Agent type is required. Use --type or -t flag.');
125
+ return { success: false, exitCode: 1 };
126
+ }
127
+ // Generate name if not provided
128
+ if (!agentName) {
129
+ agentName = `${agentType}-${Date.now().toString(36)}`;
130
+ }
131
+ output.printInfo(`Spawning ${agentType} agent: ${output.highlight(agentName)}`);
132
+ try {
133
+ // Call MCP tool to spawn agent
134
+ const result = await callMCPTool('agent_spawn', {
135
+ agentType,
136
+ id: agentName,
137
+ config: {
138
+ provider: ctx.flags.provider || 'anthropic',
139
+ model: ctx.flags.model,
140
+ task: ctx.flags.task,
141
+ timeout: ctx.flags.timeout,
142
+ autoTools: ctx.flags.autoTools,
143
+ },
144
+ priority: 'normal',
145
+ metadata: {
146
+ name: agentName,
147
+ capabilities: getAgentCapabilities(agentType),
148
+ },
149
+ });
150
+ output.writeln();
151
+ output.printTable({
152
+ columns: [
153
+ { key: 'property', header: 'Property', width: 15 },
154
+ { key: 'value', header: 'Value', width: 40 }
155
+ ],
156
+ data: [
157
+ { property: 'ID', value: result.agentId },
158
+ { property: 'Type', value: result.agentType },
159
+ { property: 'Name', value: agentName },
160
+ { property: 'Status', value: result.status },
161
+ { property: 'Created', value: result.createdAt },
162
+ { property: 'Capabilities', value: getAgentCapabilities(agentType).join(', ') }
163
+ ]
164
+ });
165
+ output.writeln();
166
+ output.printSuccess(`Agent ${agentName} spawned successfully`);
167
+ // Update swarm-activity.json so statusline reflects the new agent count
168
+ updateSwarmActivityMetrics(1);
169
+ if (ctx.flags.format === 'json') {
170
+ output.printJson(result);
171
+ }
172
+ return { success: true, data: result };
173
+ }
174
+ catch (error) {
175
+ if (error instanceof MCPClientError) {
176
+ output.printError(`Failed to spawn agent: ${error.message}`);
177
+ }
178
+ else {
179
+ output.printError(`Unexpected error: ${String(error)}`);
180
+ }
181
+ return { success: false, exitCode: 1 };
182
+ }
183
+ }
184
+ };
185
+ // Agent list subcommand
186
+ const listCommand = {
187
+ name: 'list',
188
+ aliases: ['ls'],
189
+ description: 'List all active agents',
190
+ options: [
191
+ {
192
+ name: 'all',
193
+ short: 'a',
194
+ description: 'Include inactive agents',
195
+ type: 'boolean',
196
+ default: false
197
+ },
198
+ {
199
+ name: 'type',
200
+ short: 't',
201
+ description: 'Filter by agent type',
202
+ type: 'string'
203
+ },
204
+ {
205
+ name: 'status',
206
+ short: 's',
207
+ description: 'Filter by status',
208
+ type: 'string'
209
+ }
210
+ ],
211
+ action: async (ctx) => {
212
+ try {
213
+ // Call MCP tool to list agents
214
+ const result = await callMCPTool('agent_list', {
215
+ status: ctx.flags.all ? 'all' : ctx.flags.status || undefined,
216
+ agentType: ctx.flags.type || undefined,
217
+ limit: 100,
218
+ });
219
+ if (ctx.flags.format === 'json') {
220
+ output.printJson(result);
221
+ return { success: true, data: result };
222
+ }
223
+ output.writeln();
224
+ output.writeln(output.bold('Active Agents'));
225
+ output.writeln();
226
+ if (result.agents.length === 0) {
227
+ output.printInfo('No agents found matching criteria');
228
+ return { success: true, data: result };
229
+ }
230
+ // Format for display
231
+ const displayAgents = result.agents.map(agent => ({
232
+ id: agent.id,
233
+ type: agent.agentType,
234
+ status: agent.status,
235
+ created: new Date(agent.createdAt).toLocaleTimeString(),
236
+ lastActivity: agent.lastActivityAt
237
+ ? new Date(agent.lastActivityAt).toLocaleTimeString()
238
+ : 'N/A',
239
+ }));
240
+ output.printTable({
241
+ columns: [
242
+ { key: 'id', header: 'ID', width: 20 },
243
+ { key: 'type', header: 'Type', width: 15 },
244
+ { key: 'status', header: 'Status', width: 12, format: formatStatus },
245
+ { key: 'created', header: 'Created', width: 12 },
246
+ { key: 'lastActivity', header: 'Last Activity', width: 12 }
247
+ ],
248
+ data: displayAgents
249
+ });
250
+ output.writeln();
251
+ output.printInfo(`Total: ${result.total} agents`);
252
+ return { success: true, data: result };
253
+ }
254
+ catch (error) {
255
+ if (error instanceof MCPClientError) {
256
+ output.printError(`Failed to list agents: ${error.message}`);
257
+ }
258
+ else {
259
+ output.printError(`Unexpected error: ${String(error)}`);
260
+ }
261
+ return { success: false, exitCode: 1 };
262
+ }
263
+ }
264
+ };
265
+ // Agent status subcommand
266
+ const statusCommand = {
267
+ name: 'status',
268
+ description: 'Show detailed status of an agent',
269
+ options: [
270
+ {
271
+ name: 'id',
272
+ description: 'Agent ID',
273
+ type: 'string'
274
+ }
275
+ ],
276
+ action: async (ctx) => {
277
+ let agentId = ctx.args[0] || ctx.flags.id;
278
+ if (!agentId && ctx.interactive) {
279
+ agentId = await input({
280
+ message: 'Enter agent ID:',
281
+ validate: (v) => v.length > 0 || 'Agent ID is required'
282
+ });
283
+ }
284
+ if (!agentId) {
285
+ output.printError('Agent ID is required');
286
+ return { success: false, exitCode: 1 };
287
+ }
288
+ try {
289
+ // Call MCP tool to get agent status
290
+ const status = await callMCPTool('agent_status', {
291
+ agentId,
292
+ includeMetrics: true,
293
+ includeHistory: false,
294
+ });
295
+ if (ctx.flags.format === 'json') {
296
+ output.printJson(status);
297
+ return { success: true, data: status };
298
+ }
299
+ output.writeln();
300
+ output.printBox([
301
+ `Type: ${status.agentType}`,
302
+ `Status: ${formatStatus(status.status)}`,
303
+ `Created: ${new Date(status.createdAt).toLocaleString()}`,
304
+ `Last Activity: ${status.lastActivityAt ? new Date(status.lastActivityAt).toLocaleString() : 'N/A'}`
305
+ ].join('\n'), `Agent: ${status.id}`);
306
+ if (status.metrics) {
307
+ output.writeln();
308
+ output.writeln(output.bold('Metrics'));
309
+ const avgExecTime = status.metrics.averageExecutionTime ?? 0;
310
+ const uptime = status.metrics.uptime ?? 0;
311
+ output.printTable({
312
+ columns: [
313
+ { key: 'metric', header: 'Metric', width: 25 },
314
+ { key: 'value', header: 'Value', width: 15, align: 'right' }
315
+ ],
316
+ data: [
317
+ { metric: 'Tasks Completed', value: status.metrics.tasksCompleted ?? 0 },
318
+ { metric: 'Tasks In Progress', value: status.metrics.tasksInProgress ?? 0 },
319
+ { metric: 'Tasks Failed', value: status.metrics.tasksFailed ?? 0 },
320
+ { metric: 'Avg Execution Time', value: `${avgExecTime.toFixed(2)}ms` },
321
+ { metric: 'Uptime', value: `${(uptime / 1000 / 60).toFixed(1)}m` }
322
+ ]
323
+ });
324
+ }
325
+ return { success: true, data: status };
326
+ }
327
+ catch (error) {
328
+ if (error instanceof MCPClientError) {
329
+ output.printError(`Failed to get agent status: ${error.message}`);
330
+ }
331
+ else {
332
+ output.printError(`Unexpected error: ${String(error)}`);
333
+ }
334
+ return { success: false, exitCode: 1 };
335
+ }
336
+ }
337
+ };
338
+ // Agent stop subcommand
339
+ const stopCommand = {
340
+ name: 'stop',
341
+ aliases: ['kill'],
342
+ description: 'Stop a running agent',
343
+ options: [
344
+ {
345
+ name: 'force',
346
+ short: 'f',
347
+ description: 'Force stop without graceful shutdown',
348
+ type: 'boolean',
349
+ default: false
350
+ },
351
+ {
352
+ name: 'timeout',
353
+ description: 'Graceful shutdown timeout in seconds',
354
+ type: 'number',
355
+ default: 30
356
+ }
357
+ ],
358
+ action: async (ctx) => {
359
+ const agentId = ctx.args[0];
360
+ if (!agentId) {
361
+ output.printError('Agent ID is required');
362
+ return { success: false, exitCode: 1 };
363
+ }
364
+ const force = ctx.flags.force;
365
+ if (!force && ctx.interactive) {
366
+ const confirmed = await confirm({
367
+ message: `Are you sure you want to stop agent ${agentId}?`,
368
+ default: false
369
+ });
370
+ if (!confirmed) {
371
+ output.printInfo('Operation cancelled');
372
+ return { success: true };
373
+ }
374
+ }
375
+ output.printInfo(`Stopping agent ${agentId}...`);
376
+ try {
377
+ // Call MCP tool to terminate agent
378
+ const result = await callMCPTool('agent_terminate', {
379
+ agentId,
380
+ graceful: !force,
381
+ reason: 'Stopped by user via CLI',
382
+ });
383
+ if (!force) {
384
+ output.writeln(output.dim(' Completing current task...'));
385
+ output.writeln(output.dim(' Saving state...'));
386
+ output.writeln(output.dim(' Releasing resources...'));
387
+ }
388
+ output.printSuccess(`Agent ${agentId} stopped successfully`);
389
+ // Update swarm-activity.json so statusline reflects the reduced agent count
390
+ updateSwarmActivityMetrics(-1);
391
+ if (ctx.flags.format === 'json') {
392
+ output.printJson(result);
393
+ }
394
+ return { success: true, data: result };
395
+ }
396
+ catch (error) {
397
+ if (error instanceof MCPClientError) {
398
+ output.printError(`Failed to stop agent: ${error.message}`);
399
+ }
400
+ else {
401
+ output.printError(`Unexpected error: ${String(error)}`);
402
+ }
403
+ return { success: false, exitCode: 1 };
404
+ }
405
+ }
406
+ };
407
+ // Agent metrics subcommand
408
+ const metricsCommand = {
409
+ name: 'metrics',
410
+ description: 'Show agent performance metrics',
411
+ options: [
412
+ {
413
+ name: 'period',
414
+ short: 'p',
415
+ description: 'Time period (1h, 24h, 7d, 30d)',
416
+ type: 'string',
417
+ default: '24h'
418
+ }
419
+ ],
420
+ action: async (ctx) => {
421
+ const agentId = ctx.args[0];
422
+ const period = ctx.flags.period;
423
+ // Collect real metrics from .swarm/ state
424
+ const { existsSync, readFileSync, readdirSync, statSync } = await import('fs');
425
+ const { join } = await import('path');
426
+ let totalAgents = 0;
427
+ let activeAgents = 0;
428
+ let tasksCompleted = 0;
429
+ const typeCounts = {};
430
+ // Read swarm agent state
431
+ const swarmDir = join(process.cwd(), '.swarm');
432
+ const agentsDir = join(swarmDir, 'agents');
433
+ if (existsSync(agentsDir)) {
434
+ try {
435
+ const files = readdirSync(agentsDir).filter(f => f.endsWith('.json'));
436
+ for (const file of files) {
437
+ try {
438
+ const data = JSON.parse(readFileSync(join(agentsDir, file), 'utf-8'));
439
+ totalAgents++;
440
+ const agType = data.type || 'unknown';
441
+ if (!typeCounts[agType])
442
+ typeCounts[agType] = { count: 0, tasks: 0, success: 0 };
443
+ typeCounts[agType].count++;
444
+ if (data.status === 'active' || data.status === 'running')
445
+ activeAgents++;
446
+ if (data.tasksCompleted) {
447
+ typeCounts[agType].tasks += data.tasksCompleted;
448
+ tasksCompleted += data.tasksCompleted;
449
+ }
450
+ if (data.successCount)
451
+ typeCounts[agType].success += data.successCount;
452
+ }
453
+ catch { /* skip malformed */ }
454
+ }
455
+ }
456
+ catch { /* no agents dir */ }
457
+ }
458
+ // Read swarm activity for additional state
459
+ const activityFile = join(swarmDir, 'swarm-activity.json');
460
+ if (existsSync(activityFile)) {
461
+ try {
462
+ const activity = JSON.parse(readFileSync(activityFile, 'utf-8'));
463
+ if (activity.totalAgents && totalAgents === 0)
464
+ totalAgents = activity.totalAgents;
465
+ if (activity.activeAgents && activeAgents === 0)
466
+ activeAgents = activity.activeAgents;
467
+ }
468
+ catch { /* ignore */ }
469
+ }
470
+ // Read memory.db stats
471
+ let vectorCount = 0;
472
+ const dbPath = join(swarmDir, 'memory.db');
473
+ if (existsSync(dbPath)) {
474
+ try {
475
+ const dbSize = statSync(dbPath).size;
476
+ vectorCount = Math.floor(dbSize / 2048);
477
+ }
478
+ catch { /* ignore */ }
479
+ }
480
+ const byType = Object.entries(typeCounts).map(([type, data]) => ({
481
+ type,
482
+ count: data.count,
483
+ tasks: data.tasks,
484
+ successRate: data.tasks > 0 ? `${Math.round((data.success / data.tasks) * 100)}%` : 'N/A'
485
+ }));
486
+ const avgSuccessRate = tasksCompleted > 0
487
+ ? `${Math.round(Object.values(typeCounts).reduce((a, d) => a + d.success, 0) / tasksCompleted * 100)}%`
488
+ : 'N/A';
489
+ const metrics = {
490
+ period,
491
+ summary: {
492
+ totalAgents,
493
+ activeAgents,
494
+ tasksCompleted,
495
+ avgSuccessRate,
496
+ vectorCount,
497
+ note: totalAgents === 0 ? 'No agents spawned yet. Use: agent spawn -t coder' : undefined
498
+ },
499
+ byType,
500
+ performance: {
501
+ memoryVectors: `${vectorCount} vectors`,
502
+ searchBackend: vectorCount > 0 ? 'HNSW-indexed' : 'none'
503
+ }
504
+ };
505
+ if (ctx.flags.format === 'json') {
506
+ output.printJson(metrics);
507
+ return { success: true, data: metrics };
508
+ }
509
+ output.writeln();
510
+ output.writeln(output.bold(`Agent Metrics (${period})`));
511
+ output.writeln();
512
+ output.printTable({
513
+ columns: [
514
+ { key: 'metric', header: 'Metric', width: 20 },
515
+ { key: 'value', header: 'Value', width: 15, align: 'right' }
516
+ ],
517
+ data: [
518
+ { metric: 'Total Agents', value: metrics.summary.totalAgents },
519
+ { metric: 'Active Agents', value: metrics.summary.activeAgents },
520
+ { metric: 'Tasks Completed', value: metrics.summary.tasksCompleted },
521
+ { metric: 'Success Rate', value: metrics.summary.avgSuccessRate },
522
+ { metric: 'Memory Vectors', value: metrics.summary.vectorCount }
523
+ ]
524
+ });
525
+ output.writeln();
526
+ output.writeln(output.bold('By Agent Type'));
527
+ output.printTable({
528
+ columns: [
529
+ { key: 'type', header: 'Type', width: 12 },
530
+ { key: 'count', header: 'Count', width: 8, align: 'right' },
531
+ { key: 'tasks', header: 'Tasks', width: 8, align: 'right' },
532
+ { key: 'successRate', header: 'Success', width: 10, align: 'right' }
533
+ ],
534
+ data: metrics.byType
535
+ });
536
+ if (metrics.summary.note) {
537
+ output.writeln();
538
+ output.writeln(output.dim(metrics.summary.note));
539
+ }
540
+ output.writeln();
541
+ output.writeln(output.bold('Memory'));
542
+ output.printList([
543
+ `Vectors: ${output.success(metrics.performance.memoryVectors)}`,
544
+ `Backend: ${output.success(metrics.performance.searchBackend)}`
545
+ ]);
546
+ return { success: true, data: metrics };
547
+ }
548
+ };
549
+ // Agent pool subcommand
550
+ const poolCommand = {
551
+ name: 'pool',
552
+ description: 'Manage agent pool for scaling',
553
+ options: [
554
+ {
555
+ name: 'size',
556
+ short: 's',
557
+ description: 'Pool size',
558
+ type: 'number'
559
+ },
560
+ {
561
+ name: 'min',
562
+ description: 'Minimum pool size',
563
+ type: 'number',
564
+ default: 1
565
+ },
566
+ {
567
+ name: 'max',
568
+ description: 'Maximum pool size',
569
+ type: 'number',
570
+ default: 10
571
+ },
572
+ {
573
+ name: 'auto-scale',
574
+ short: 'a',
575
+ description: 'Enable auto-scaling',
576
+ type: 'boolean',
577
+ default: true
578
+ }
579
+ ],
580
+ examples: [
581
+ { command: 'claude-flow agent pool --size 5', description: 'Set pool size' },
582
+ { command: 'claude-flow agent pool --min 2 --max 15', description: 'Configure auto-scaling' }
583
+ ],
584
+ action: async (ctx) => {
585
+ try {
586
+ const result = await callMCPTool('agent_pool', {
587
+ size: ctx.flags.size,
588
+ min: ctx.flags.min,
589
+ max: ctx.flags.max,
590
+ autoScale: ctx.flags.autoScale ?? true,
591
+ });
592
+ if (ctx.flags.format === 'json') {
593
+ output.printJson(result);
594
+ return { success: true, data: result };
595
+ }
596
+ output.writeln();
597
+ const utilization = result.utilization ?? 0;
598
+ output.printBox([
599
+ `Pool ID: ${result.poolId ?? 'default'}`,
600
+ `Current Size: ${result.currentSize ?? 0}`,
601
+ `Min/Max: ${result.minSize ?? 0}/${result.maxSize ?? 100}`,
602
+ `Auto-Scale: ${result.autoScale ? 'Yes' : 'No'}`,
603
+ `Utilization: ${(utilization * 100).toFixed(1)}%`
604
+ ].join('\n'), 'Agent Pool');
605
+ const agents = result.agents ?? [];
606
+ if (agents.length > 0) {
607
+ output.writeln();
608
+ output.writeln(output.bold('Pool Agents'));
609
+ output.printTable({
610
+ columns: [
611
+ { key: 'id', header: 'ID', width: 20 },
612
+ { key: 'type', header: 'Type', width: 15 },
613
+ { key: 'status', header: 'Status', width: 12, format: formatStatus }
614
+ ],
615
+ data: agents
616
+ });
617
+ }
618
+ return { success: true, data: result };
619
+ }
620
+ catch (error) {
621
+ if (error instanceof MCPClientError) {
622
+ output.printError(`Pool error: ${error.message}`);
623
+ }
624
+ else {
625
+ output.printError(`Unexpected error: ${String(error)}`);
626
+ }
627
+ return { success: false, exitCode: 1 };
628
+ }
629
+ }
630
+ };
631
+ // Agent health subcommand
632
+ const healthCommand = {
633
+ name: 'health',
634
+ description: 'Show agent health and metrics',
635
+ options: [
636
+ {
637
+ name: 'id',
638
+ short: 'i',
639
+ description: 'Agent ID (all if not specified)',
640
+ type: 'string'
641
+ },
642
+ {
643
+ name: 'detailed',
644
+ short: 'd',
645
+ description: 'Show detailed health metrics',
646
+ type: 'boolean',
647
+ default: false
648
+ },
649
+ {
650
+ name: 'watch',
651
+ short: 'w',
652
+ description: 'Watch mode (refresh every 5s)',
653
+ type: 'boolean',
654
+ default: false
655
+ }
656
+ ],
657
+ examples: [
658
+ { command: 'claude-flow agent health', description: 'Show all agents health' },
659
+ { command: 'claude-flow agent health -i agent-001 -d', description: 'Detailed health for specific agent' }
660
+ ],
661
+ action: async (ctx) => {
662
+ const agentId = ctx.args[0] || ctx.flags.id;
663
+ const detailed = ctx.flags.detailed;
664
+ try {
665
+ const result = await callMCPTool('agent_health', {
666
+ agentId,
667
+ detailed,
668
+ });
669
+ if (ctx.flags.format === 'json') {
670
+ output.printJson(result);
671
+ return { success: true, data: result };
672
+ }
673
+ output.writeln();
674
+ output.writeln(output.bold('Agent Health'));
675
+ output.writeln();
676
+ // Overall summary with null checks
677
+ const overall = result.overall ?? { healthy: 0, degraded: 0, unhealthy: 0, avgCpu: 0, avgMemory: 0 };
678
+ const avgCpu = overall.avgCpu ?? 0;
679
+ const avgMemory = overall.avgMemory ?? 0;
680
+ output.printBox([
681
+ `Healthy: ${output.success(String(overall.healthy ?? 0))}`,
682
+ `Degraded: ${output.warning(String(overall.degraded ?? 0))}`,
683
+ `Unhealthy: ${output.error(String(overall.unhealthy ?? 0))}`,
684
+ `Avg CPU: ${avgCpu.toFixed(1)}%`,
685
+ `Avg Memory: ${(avgMemory * 100).toFixed(1)}%`
686
+ ].join(' | '), 'Overall Status');
687
+ const healthAgents = result.agents ?? [];
688
+ output.writeln();
689
+ output.printTable({
690
+ columns: [
691
+ { key: 'id', header: 'Agent ID', width: 18 },
692
+ { key: 'type', header: 'Type', width: 12 },
693
+ { key: 'health', header: 'Health', width: 10, format: formatHealthStatus },
694
+ { key: 'cpu', header: 'CPU %', width: 8, align: 'right', format: (v) => `${Number(v ?? 0).toFixed(1)}%` },
695
+ { key: 'memory', header: 'Memory', width: 10, align: 'right', format: (v) => {
696
+ const mem = v;
697
+ if (!mem)
698
+ return '0%';
699
+ return `${(mem.used / mem.limit * 100).toFixed(0)}%`;
700
+ } },
701
+ { key: 'tasks', header: 'Tasks', width: 12, align: 'right', format: (v) => {
702
+ const t = v;
703
+ if (!t)
704
+ return '0/0';
705
+ return `${t.active ?? 0}/${t.completed ?? 0}`;
706
+ } }
707
+ ],
708
+ data: healthAgents
709
+ });
710
+ if (detailed && healthAgents.length > 0) {
711
+ output.writeln();
712
+ output.writeln(output.bold('Detailed Metrics'));
713
+ for (const agent of healthAgents) {
714
+ output.writeln();
715
+ output.writeln(output.highlight(agent.id));
716
+ const uptime = agent.uptime ?? 0;
717
+ const latency = agent.latency ?? { avg: 0, p99: 0 };
718
+ const tasks = agent.tasks ?? { completed: 0, failed: 0, queued: 0 };
719
+ const errors = agent.errors ?? { count: 0 };
720
+ output.printList([
721
+ `Uptime: ${(uptime / 1000 / 60).toFixed(1)} min`,
722
+ `Latency: avg ${(latency.avg ?? 0).toFixed(1)}ms, p99 ${(latency.p99 ?? 0).toFixed(1)}ms`,
723
+ `Tasks: ${tasks.completed ?? 0} completed, ${tasks.failed ?? 0} failed, ${tasks.queued ?? 0} queued`,
724
+ `Errors: ${errors.count ?? 0}${errors.lastError ? ` (${errors.lastError})` : ''}`
725
+ ]);
726
+ }
727
+ }
728
+ return { success: true, data: result };
729
+ }
730
+ catch (error) {
731
+ if (error instanceof MCPClientError) {
732
+ output.printError(`Health check error: ${error.message}`);
733
+ }
734
+ else {
735
+ output.printError(`Unexpected error: ${String(error)}`);
736
+ }
737
+ return { success: false, exitCode: 1 };
738
+ }
739
+ }
740
+ };
741
+ // Agent logs subcommand
742
+ const logsCommand = {
743
+ name: 'logs',
744
+ description: 'Show agent activity logs',
745
+ options: [
746
+ {
747
+ name: 'id',
748
+ short: 'i',
749
+ description: 'Agent ID',
750
+ type: 'string'
751
+ },
752
+ {
753
+ name: 'tail',
754
+ short: 'n',
755
+ description: 'Number of recent entries',
756
+ type: 'number',
757
+ default: 50
758
+ },
759
+ {
760
+ name: 'level',
761
+ short: 'l',
762
+ description: 'Minimum log level',
763
+ type: 'string',
764
+ choices: ['debug', 'info', 'warn', 'error'],
765
+ default: 'info'
766
+ },
767
+ {
768
+ name: 'follow',
769
+ short: 'f',
770
+ description: 'Follow log output',
771
+ type: 'boolean',
772
+ default: false
773
+ },
774
+ {
775
+ name: 'since',
776
+ description: 'Show logs since (e.g., "1h", "30m")',
777
+ type: 'string'
778
+ }
779
+ ],
780
+ examples: [
781
+ { command: 'claude-flow agent logs -i agent-001', description: 'Show agent logs' },
782
+ { command: 'claude-flow agent logs -i agent-001 -f', description: 'Follow agent logs' },
783
+ { command: 'claude-flow agent logs -l error --since 1h', description: 'Show errors from last hour' }
784
+ ],
785
+ action: async (ctx) => {
786
+ const agentId = ctx.args[0] || ctx.flags.id;
787
+ const tail = ctx.flags.tail;
788
+ const level = ctx.flags.level;
789
+ if (!agentId) {
790
+ output.printError('Agent ID is required. Use --id or -i');
791
+ return { success: false, exitCode: 1 };
792
+ }
793
+ try {
794
+ const result = await callMCPTool('agent_logs', {
795
+ agentId,
796
+ tail,
797
+ level,
798
+ since: ctx.flags.since,
799
+ });
800
+ if (ctx.flags.format === 'json') {
801
+ output.printJson(result);
802
+ return { success: true, data: result };
803
+ }
804
+ output.writeln();
805
+ output.writeln(output.bold(`Logs for ${agentId}`));
806
+ output.writeln(output.dim(`Showing ${result.entries.length} of ${result.total} entries`));
807
+ output.writeln();
808
+ for (const entry of result.entries) {
809
+ const time = new Date(entry.timestamp).toLocaleTimeString();
810
+ const levelStr = formatLogLevel(entry.level);
811
+ output.writeln(`${output.dim(time)} ${levelStr} ${entry.message}`);
812
+ if (entry.context && Object.keys(entry.context).length > 0) {
813
+ output.writeln(output.dim(` ${JSON.stringify(entry.context)}`));
814
+ }
815
+ }
816
+ return { success: true, data: result };
817
+ }
818
+ catch (error) {
819
+ if (error instanceof MCPClientError) {
820
+ output.printError(`Logs error: ${error.message}`);
821
+ }
822
+ else {
823
+ output.printError(`Unexpected error: ${String(error)}`);
824
+ }
825
+ return { success: false, exitCode: 1 };
826
+ }
827
+ }
828
+ };
829
+ function formatHealthStatus(health) {
830
+ const h = String(health);
831
+ switch (h) {
832
+ case 'healthy':
833
+ return output.success(h);
834
+ case 'degraded':
835
+ return output.warning(h);
836
+ case 'unhealthy':
837
+ return output.error(h);
838
+ default:
839
+ return h;
840
+ }
841
+ }
842
+ function formatLogLevel(level) {
843
+ switch (level) {
844
+ case 'debug':
845
+ return output.dim('[DEBUG]');
846
+ case 'info':
847
+ return '[INFO] ';
848
+ case 'warn':
849
+ return output.warning('[WARN] ');
850
+ case 'error':
851
+ return output.error('[ERROR]');
852
+ default:
853
+ return `[${level.toUpperCase()}]`;
854
+ }
855
+ }
856
+ // Main agent command
857
+ export const agentCommand = {
858
+ name: 'agent',
859
+ description: 'Agent management commands',
860
+ subcommands: [spawnCommand, listCommand, statusCommand, stopCommand, metricsCommand, poolCommand, healthCommand, logsCommand],
861
+ options: [],
862
+ examples: [
863
+ { command: 'claude-flow agent spawn -t coder', description: 'Spawn a coder agent' },
864
+ { command: 'claude-flow agent list', description: 'List all agents' },
865
+ { command: 'claude-flow agent status agent-001', description: 'Show agent status' }
866
+ ],
867
+ action: async (ctx) => {
868
+ // Show help if no subcommand
869
+ output.writeln();
870
+ output.writeln(output.bold('Agent Management Commands'));
871
+ output.writeln();
872
+ output.writeln('Usage: claude-flow agent <subcommand> [options]');
873
+ output.writeln();
874
+ output.writeln('Subcommands:');
875
+ output.printList([
876
+ `${output.highlight('spawn')} - Spawn a new agent`,
877
+ `${output.highlight('list')} - List all active agents`,
878
+ `${output.highlight('status')} - Show detailed agent status`,
879
+ `${output.highlight('stop')} - Stop a running agent`,
880
+ `${output.highlight('metrics')} - Show agent metrics`
881
+ ]);
882
+ output.writeln();
883
+ output.writeln('Run "claude-flow agent <subcommand> --help" for subcommand help');
884
+ return { success: true };
885
+ }
886
+ };
887
+ // Helper functions
888
+ function getAgentCapabilities(type) {
889
+ const capabilities = {
890
+ coder: ['code-generation', 'refactoring', 'debugging', 'testing'],
891
+ researcher: ['web-search', 'data-analysis', 'summarization', 'citation'],
892
+ tester: ['unit-testing', 'integration-testing', 'coverage-analysis', 'automation'],
893
+ reviewer: ['code-review', 'security-audit', 'quality-check', 'documentation'],
894
+ architect: ['system-design', 'pattern-analysis', 'scalability', 'documentation'],
895
+ coordinator: ['task-orchestration', 'agent-management', 'workflow-control'],
896
+ 'security-architect': ['threat-modeling', 'security-patterns', 'compliance', 'audit'],
897
+ 'memory-specialist': ['vector-search', 'agentdb', 'caching', 'optimization'],
898
+ 'performance-engineer': ['benchmarking', 'profiling', 'optimization', 'monitoring']
899
+ };
900
+ return capabilities[type] || ['general'];
901
+ }
902
+ function formatStatus(status) {
903
+ const statusStr = String(status);
904
+ switch (statusStr) {
905
+ case 'active':
906
+ return output.success(statusStr);
907
+ case 'idle':
908
+ return output.warning(statusStr);
909
+ case 'inactive':
910
+ case 'stopped':
911
+ return output.dim(statusStr);
912
+ case 'error':
913
+ return output.error(statusStr);
914
+ default:
915
+ return statusStr;
916
+ }
917
+ }
918
+ export default agentCommand;
919
+ //# sourceMappingURL=agent.js.map