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,49 @@
1
+ /**
2
+ * Agent MCP Tools for CLI
3
+ *
4
+ * Tool definitions for agent lifecycle management with file persistence.
5
+ * Includes model routing integration for intelligent model selection.
6
+ */
7
+ import type { MCPTool } from './types.js';
8
+ interface IExecutionBridge {
9
+ initialize(): Promise<void>;
10
+ shutdown(): Promise<void>;
11
+ dispatchTask(event: {
12
+ taskId: string;
13
+ agentType: string;
14
+ agentName?: string;
15
+ prompt: string;
16
+ priority?: 'critical' | 'high' | 'normal' | 'low';
17
+ timeoutMs?: number;
18
+ context?: Record<string, unknown>;
19
+ }): Promise<{
20
+ taskId: string;
21
+ agentId: string;
22
+ success: boolean;
23
+ output: string;
24
+ error?: string;
25
+ durationMs: number;
26
+ timedOut: boolean;
27
+ tokenUsage?: {
28
+ inputTokens: number;
29
+ outputTokens: number;
30
+ totalTokens: number;
31
+ };
32
+ }>;
33
+ listAgents(): Array<{
34
+ id: string;
35
+ config: {
36
+ type: string;
37
+ name: string;
38
+ };
39
+ status: string;
40
+ }>;
41
+ getMetrics(): Record<string, unknown>;
42
+ }
43
+ /** Get or create the execution bridge singleton */
44
+ export declare function getExecutionBridge(): IExecutionBridge | null;
45
+ /** Set the execution bridge (called by swarm_init) */
46
+ export declare function setExecutionBridge(bridge: IExecutionBridge): void;
47
+ export declare const agentTools: MCPTool[];
48
+ export {};
49
+ //# sourceMappingURL=agent-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-tools.d.ts","sourceRoot":"","sources":["../../../src/mcp-tools/agent-tools.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAG1C,UAAU,gBAAgB;IACxB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1B,YAAY,CAAC,KAAK,EAAE;QAClB,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;QAClD,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACnC,GAAG,OAAO,CAAC;QACV,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,MAAM,CAAC;QACnB,QAAQ,EAAE,OAAO,CAAC;QAClB,UAAU,CAAC,EAAE;YAAE,WAAW,EAAE,MAAM,CAAC;YAAC,YAAY,EAAE,MAAM,CAAC;YAAC,WAAW,EAAE,MAAM,CAAA;SAAE,CAAC;KACjF,CAAC,CAAC;IACH,UAAU,IAAI,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC5F,UAAU,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACvC;AAKD,mDAAmD;AACnD,wBAAgB,kBAAkB,IAAI,gBAAgB,GAAG,IAAI,CAE5D;AAED,sDAAsD;AACtD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI,CAEjE;AAuKD,eAAO,MAAM,UAAU,EAAE,OAAO,EA2f/B,CAAC"}
@@ -0,0 +1,622 @@
1
+ /**
2
+ * Agent MCP Tools for CLI
3
+ *
4
+ * Tool definitions for agent lifecycle management with file persistence.
5
+ * Includes model routing integration for intelligent model selection.
6
+ */
7
+ import { existsSync, readFileSync, writeFileSync, mkdirSync } from 'node:fs';
8
+ import { join } from 'node:path';
9
+ // Lazy-loaded execution bridge (initialized by swarm_init)
10
+ let executionBridge = null;
11
+ /** Get or create the execution bridge singleton */
12
+ export function getExecutionBridge() {
13
+ return executionBridge;
14
+ }
15
+ /** Set the execution bridge (called by swarm_init) */
16
+ export function setExecutionBridge(bridge) {
17
+ executionBridge = bridge;
18
+ }
19
+ // Storage paths
20
+ const STORAGE_DIR = '.claude-flow';
21
+ const AGENT_DIR = 'agents';
22
+ const AGENT_FILE = 'store.json';
23
+ function getAgentDir() {
24
+ return join(process.cwd(), STORAGE_DIR, AGENT_DIR);
25
+ }
26
+ function getAgentPath() {
27
+ return join(getAgentDir(), AGENT_FILE);
28
+ }
29
+ function ensureAgentDir() {
30
+ const dir = getAgentDir();
31
+ if (!existsSync(dir)) {
32
+ mkdirSync(dir, { recursive: true });
33
+ }
34
+ }
35
+ function loadAgentStore() {
36
+ try {
37
+ const path = getAgentPath();
38
+ if (existsSync(path)) {
39
+ const data = readFileSync(path, 'utf-8');
40
+ return JSON.parse(data);
41
+ }
42
+ }
43
+ catch {
44
+ // Return empty store on error
45
+ }
46
+ return { agents: {}, version: '3.0.0' };
47
+ }
48
+ function saveAgentStore(store) {
49
+ ensureAgentDir();
50
+ writeFileSync(getAgentPath(), JSON.stringify(store, null, 2), 'utf-8');
51
+ }
52
+ // Default model mappings for agent types (can be overridden)
53
+ const AGENT_TYPE_MODEL_DEFAULTS = {
54
+ // Complex agents → opus
55
+ 'architect': 'opus',
56
+ 'security-architect': 'opus',
57
+ 'system-architect': 'opus',
58
+ 'core-architect': 'opus',
59
+ // Medium complexity → sonnet
60
+ 'coder': 'sonnet',
61
+ 'reviewer': 'sonnet',
62
+ 'researcher': 'sonnet',
63
+ 'tester': 'sonnet',
64
+ 'analyst': 'sonnet',
65
+ // Simple/fast agents → haiku
66
+ 'formatter': 'haiku',
67
+ 'linter': 'haiku',
68
+ 'documenter': 'haiku',
69
+ };
70
+ // Lazy-loaded model router
71
+ let modelRouterInstance = null;
72
+ async function getModelRouter() {
73
+ if (!modelRouterInstance) {
74
+ try {
75
+ const { getModelRouter } = await import('../ruvector/model-router.js');
76
+ modelRouterInstance = getModelRouter();
77
+ }
78
+ catch (e) {
79
+ // Log but don't fail - model router is optional
80
+ console.error('[agent-tools] Model router load failed:', e.message);
81
+ }
82
+ }
83
+ return modelRouterInstance;
84
+ }
85
+ /**
86
+ * Determine model for agent based on (ADR-026 3-tier routing):
87
+ * 1. Explicit model in config
88
+ * 2. Enhanced task-based routing with Agent Booster AST (if task provided)
89
+ * 3. Agent type defaults
90
+ * 4. Fallback to sonnet
91
+ */
92
+ async function determineAgentModel(agentType, config, task) {
93
+ // 1. Explicit model in config
94
+ if (config.model && ['haiku', 'sonnet', 'opus', 'inherit'].includes(config.model)) {
95
+ return { model: config.model, routedBy: 'explicit' };
96
+ }
97
+ // 2. Enhanced task-based routing with Agent Booster AST
98
+ if (task) {
99
+ try {
100
+ // Try enhanced router first (includes Agent Booster detection)
101
+ const { getEnhancedModelRouter } = await import('../ruvector/enhanced-model-router.js');
102
+ const enhancedRouter = getEnhancedModelRouter();
103
+ const routeResult = await enhancedRouter.route(task, { filePath: config.filePath });
104
+ if (routeResult.tier === 1 && routeResult.canSkipLLM) {
105
+ // Agent Booster can handle this task
106
+ return {
107
+ model: 'haiku', // Use haiku as fallback if AB fails
108
+ routedBy: 'agent-booster',
109
+ canSkipLLM: true,
110
+ agentBoosterIntent: routeResult.agentBoosterIntent?.type,
111
+ tier: 1,
112
+ };
113
+ }
114
+ return {
115
+ model: routeResult.model,
116
+ routedBy: 'router',
117
+ tier: routeResult.tier,
118
+ };
119
+ }
120
+ catch {
121
+ // Enhanced router not available, try basic router
122
+ const router = await getModelRouter();
123
+ if (router) {
124
+ try {
125
+ const result = await router.route(task);
126
+ return { model: result.model, routedBy: 'router' };
127
+ }
128
+ catch {
129
+ // Fall through to defaults on router error
130
+ }
131
+ }
132
+ }
133
+ }
134
+ // 3. Agent type defaults
135
+ const defaultModel = AGENT_TYPE_MODEL_DEFAULTS[agentType];
136
+ if (defaultModel) {
137
+ return { model: defaultModel, routedBy: 'default' };
138
+ }
139
+ // 4. Fallback to sonnet (balanced)
140
+ return { model: 'sonnet', routedBy: 'default' };
141
+ }
142
+ export const agentTools = [
143
+ {
144
+ name: 'agent_spawn',
145
+ description: 'Spawn a new agent with intelligent model selection',
146
+ category: 'agent',
147
+ inputSchema: {
148
+ type: 'object',
149
+ properties: {
150
+ agentType: { type: 'string', description: 'Type of agent to spawn' },
151
+ agentId: { type: 'string', description: 'Optional custom agent ID' },
152
+ config: { type: 'object', description: 'Agent configuration' },
153
+ domain: { type: 'string', description: 'Agent domain' },
154
+ model: {
155
+ type: 'string',
156
+ enum: ['haiku', 'sonnet', 'opus', 'inherit'],
157
+ description: 'Claude model to use (haiku=fast/cheap, sonnet=balanced, opus=most capable)'
158
+ },
159
+ task: { type: 'string', description: 'Task description for intelligent model routing' },
160
+ },
161
+ required: ['agentType'],
162
+ },
163
+ handler: async (input) => {
164
+ const store = loadAgentStore();
165
+ const agentId = input.agentId || `agent-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
166
+ const agentType = input.agentType;
167
+ const config = input.config || {};
168
+ // Add explicit model to config if provided
169
+ if (input.model) {
170
+ config.model = input.model;
171
+ }
172
+ // Get task from either top-level or config (CLI passes it in config.task)
173
+ const task = input.task || config.task || undefined;
174
+ // Determine model using ADR-026 3-tier routing logic
175
+ const routingResult = await determineAgentModel(agentType, config, task);
176
+ const agent = {
177
+ agentId,
178
+ agentType,
179
+ status: 'idle',
180
+ health: 1.0,
181
+ taskCount: 0,
182
+ config,
183
+ createdAt: new Date().toISOString(),
184
+ domain: input.domain,
185
+ model: routingResult.model,
186
+ modelRoutedBy: routingResult.routedBy,
187
+ };
188
+ store.agents[agentId] = agent;
189
+ saveAgentStore(store);
190
+ // Include Agent Booster routing info if applicable
191
+ const response = {
192
+ success: true,
193
+ agentId,
194
+ agentType: agent.agentType,
195
+ model: agent.model,
196
+ modelRoutedBy: routingResult.routedBy,
197
+ status: 'spawned',
198
+ createdAt: agent.createdAt,
199
+ };
200
+ // Add Agent Booster info if task can skip LLM
201
+ if (routingResult.canSkipLLM) {
202
+ response.canSkipLLM = true;
203
+ response.agentBoosterIntent = routingResult.agentBoosterIntent;
204
+ response.tier = routingResult.tier;
205
+ response.note = `Agent Booster can handle "${routingResult.agentBoosterIntent}" - use agent_booster_edit_file MCP tool`;
206
+ }
207
+ else if (routingResult.tier) {
208
+ response.tier = routingResult.tier;
209
+ }
210
+ return response;
211
+ },
212
+ },
213
+ {
214
+ name: 'agent_terminate',
215
+ description: 'Terminate an agent',
216
+ category: 'agent',
217
+ inputSchema: {
218
+ type: 'object',
219
+ properties: {
220
+ agentId: { type: 'string', description: 'ID of agent to terminate' },
221
+ force: { type: 'boolean', description: 'Force immediate termination' },
222
+ },
223
+ required: ['agentId'],
224
+ },
225
+ handler: async (input) => {
226
+ const store = loadAgentStore();
227
+ const agentId = input.agentId;
228
+ if (store.agents[agentId]) {
229
+ store.agents[agentId].status = 'terminated';
230
+ saveAgentStore(store);
231
+ return {
232
+ success: true,
233
+ agentId,
234
+ terminated: true,
235
+ terminatedAt: new Date().toISOString(),
236
+ };
237
+ }
238
+ return {
239
+ success: false,
240
+ agentId,
241
+ error: 'Agent not found',
242
+ };
243
+ },
244
+ },
245
+ {
246
+ name: 'agent_status',
247
+ description: 'Get agent status',
248
+ category: 'agent',
249
+ inputSchema: {
250
+ type: 'object',
251
+ properties: {
252
+ agentId: { type: 'string', description: 'ID of agent' },
253
+ },
254
+ required: ['agentId'],
255
+ },
256
+ handler: async (input) => {
257
+ const store = loadAgentStore();
258
+ const agentId = input.agentId;
259
+ const agent = store.agents[agentId];
260
+ if (agent) {
261
+ return {
262
+ agentId: agent.agentId,
263
+ agentType: agent.agentType,
264
+ status: agent.status,
265
+ health: agent.health,
266
+ taskCount: agent.taskCount,
267
+ createdAt: agent.createdAt,
268
+ domain: agent.domain,
269
+ };
270
+ }
271
+ return {
272
+ agentId,
273
+ status: 'not_found',
274
+ error: 'Agent not found',
275
+ };
276
+ },
277
+ },
278
+ {
279
+ name: 'agent_list',
280
+ description: 'List all agents',
281
+ category: 'agent',
282
+ inputSchema: {
283
+ type: 'object',
284
+ properties: {
285
+ status: { type: 'string', description: 'Filter by status' },
286
+ domain: { type: 'string', description: 'Filter by domain' },
287
+ includeTerminated: { type: 'boolean', description: 'Include terminated agents' },
288
+ },
289
+ },
290
+ handler: async (input) => {
291
+ const store = loadAgentStore();
292
+ let agents = Object.values(store.agents);
293
+ // Filter by status
294
+ if (input.status) {
295
+ agents = agents.filter(a => a.status === input.status);
296
+ }
297
+ else if (!input.includeTerminated) {
298
+ agents = agents.filter(a => a.status !== 'terminated');
299
+ }
300
+ // Filter by domain
301
+ if (input.domain) {
302
+ agents = agents.filter(a => a.domain === input.domain);
303
+ }
304
+ return {
305
+ agents: agents.map(a => ({
306
+ agentId: a.agentId,
307
+ agentType: a.agentType,
308
+ status: a.status,
309
+ health: a.health,
310
+ taskCount: a.taskCount,
311
+ createdAt: a.createdAt,
312
+ domain: a.domain,
313
+ })),
314
+ total: agents.length,
315
+ filters: {
316
+ status: input.status,
317
+ domain: input.domain,
318
+ includeTerminated: input.includeTerminated,
319
+ },
320
+ };
321
+ },
322
+ },
323
+ {
324
+ name: 'agent_pool',
325
+ description: 'Manage agent pool',
326
+ category: 'agent',
327
+ inputSchema: {
328
+ type: 'object',
329
+ properties: {
330
+ action: { type: 'string', enum: ['status', 'scale', 'drain', 'fill'], description: 'Pool action' },
331
+ targetSize: { type: 'number', description: 'Target pool size (for scale action)' },
332
+ agentType: { type: 'string', description: 'Agent type filter' },
333
+ },
334
+ required: ['action'],
335
+ },
336
+ handler: async (input) => {
337
+ const store = loadAgentStore();
338
+ const agents = Object.values(store.agents).filter(a => a.status !== 'terminated');
339
+ const action = input.action || 'status'; // Default to status
340
+ if (action === 'status') {
341
+ const byType = {};
342
+ const byStatus = {};
343
+ for (const agent of agents) {
344
+ byType[agent.agentType] = (byType[agent.agentType] || 0) + 1;
345
+ byStatus[agent.status] = (byStatus[agent.status] || 0) + 1;
346
+ }
347
+ const idleAgents = agents.filter(a => a.status === 'idle').length;
348
+ const busyAgents = agents.filter(a => a.status === 'busy').length;
349
+ const utilization = agents.length > 0 ? busyAgents / agents.length : 0;
350
+ return {
351
+ action,
352
+ // CLI expected fields
353
+ poolId: 'agent-pool-default',
354
+ currentSize: agents.length,
355
+ minSize: input.min || 0,
356
+ maxSize: input.max || 100,
357
+ autoScale: input.autoScale ?? false,
358
+ utilization,
359
+ agents: agents.map(a => ({
360
+ id: a.agentId,
361
+ type: a.agentType,
362
+ status: a.status,
363
+ })),
364
+ // Additional fields
365
+ id: 'agent-pool-default',
366
+ size: agents.length,
367
+ totalAgents: agents.length,
368
+ byType,
369
+ byStatus,
370
+ avgHealth: agents.length > 0 ? agents.reduce((sum, a) => sum + a.health, 0) / agents.length : 0,
371
+ };
372
+ }
373
+ if (action === 'scale') {
374
+ const targetSize = input.targetSize || 5;
375
+ const agentType = input.agentType || 'worker';
376
+ const currentSize = agents.filter(a => a.agentType === agentType).length;
377
+ const delta = targetSize - currentSize;
378
+ const added = [];
379
+ const removed = [];
380
+ if (delta > 0) {
381
+ for (let i = 0; i < delta; i++) {
382
+ const agentId = `agent-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
383
+ store.agents[agentId] = {
384
+ agentId,
385
+ agentType,
386
+ status: 'idle',
387
+ health: 1.0,
388
+ taskCount: 0,
389
+ config: {},
390
+ createdAt: new Date().toISOString(),
391
+ };
392
+ added.push(agentId);
393
+ }
394
+ }
395
+ else if (delta < 0) {
396
+ const toRemove = agents.filter(a => a.agentType === agentType && a.status === 'idle').slice(0, -delta);
397
+ for (const agent of toRemove) {
398
+ store.agents[agent.agentId].status = 'terminated';
399
+ removed.push(agent.agentId);
400
+ }
401
+ }
402
+ saveAgentStore(store);
403
+ return {
404
+ action,
405
+ agentType,
406
+ previousSize: currentSize,
407
+ targetSize,
408
+ newSize: currentSize + delta,
409
+ added,
410
+ removed,
411
+ };
412
+ }
413
+ if (action === 'drain') {
414
+ const agentType = input.agentType;
415
+ let drained = 0;
416
+ for (const agent of agents) {
417
+ if (!agentType || agent.agentType === agentType) {
418
+ if (agent.status === 'idle') {
419
+ store.agents[agent.agentId].status = 'terminated';
420
+ drained++;
421
+ }
422
+ }
423
+ }
424
+ saveAgentStore(store);
425
+ return {
426
+ action,
427
+ agentType: agentType || 'all',
428
+ drained,
429
+ remaining: agents.length - drained,
430
+ };
431
+ }
432
+ return { action, error: 'Unknown action' };
433
+ },
434
+ },
435
+ {
436
+ name: 'agent_health',
437
+ description: 'Check agent health',
438
+ category: 'agent',
439
+ inputSchema: {
440
+ type: 'object',
441
+ properties: {
442
+ agentId: { type: 'string', description: 'Specific agent ID (optional)' },
443
+ threshold: { type: 'number', description: 'Health threshold (0-1)' },
444
+ },
445
+ },
446
+ handler: async (input) => {
447
+ const store = loadAgentStore();
448
+ const agents = Object.values(store.agents).filter(a => a.status !== 'terminated');
449
+ const threshold = input.threshold || 0.5;
450
+ if (input.agentId) {
451
+ const agent = store.agents[input.agentId];
452
+ if (agent) {
453
+ return {
454
+ agentId: agent.agentId,
455
+ health: agent.health,
456
+ status: agent.status,
457
+ healthy: agent.health >= threshold,
458
+ taskCount: agent.taskCount,
459
+ uptime: Date.now() - new Date(agent.createdAt).getTime(),
460
+ };
461
+ }
462
+ return { agentId: input.agentId, error: 'Agent not found' };
463
+ }
464
+ const healthyAgents = agents.filter(a => a.health >= threshold);
465
+ const degradedAgents = agents.filter(a => a.health >= 0.3 && a.health < threshold);
466
+ const unhealthyAgents = agents.filter(a => a.health < 0.3);
467
+ const avgHealth = agents.length > 0 ? agents.reduce((sum, a) => sum + a.health, 0) / agents.length : 1;
468
+ const avgCpu = agents.length > 0 ? 35 + Math.random() * 30 : 0; // Simulated CPU
469
+ const avgMemory = avgHealth * 0.6; // Correlated with health
470
+ return {
471
+ // CLI expected fields
472
+ agents: agents.map(a => {
473
+ const uptime = Date.now() - new Date(a.createdAt).getTime();
474
+ return {
475
+ id: a.agentId,
476
+ type: a.agentType,
477
+ health: a.health >= threshold ? 'healthy' : (a.health >= 0.3 ? 'degraded' : 'unhealthy'),
478
+ uptime,
479
+ memory: { used: Math.floor(256 * (1 - a.health * 0.3)), limit: 512 },
480
+ cpu: 20 + Math.floor(a.health * 40),
481
+ tasks: { active: a.taskCount > 0 ? 1 : 0, queued: 0, completed: a.taskCount, failed: 0 },
482
+ latency: { avg: 50 + Math.floor((1 - a.health) * 100), p99: 150 + Math.floor((1 - a.health) * 200) },
483
+ errors: { count: a.health < threshold ? 1 : 0 },
484
+ };
485
+ }),
486
+ overall: {
487
+ healthy: healthyAgents.length,
488
+ degraded: degradedAgents.length,
489
+ unhealthy: unhealthyAgents.length,
490
+ avgCpu,
491
+ avgMemory,
492
+ score: Math.round(avgHealth * 100),
493
+ issues: unhealthyAgents.length,
494
+ },
495
+ // Additional fields
496
+ total: agents.length,
497
+ healthyCount: healthyAgents.length,
498
+ unhealthyCount: unhealthyAgents.length,
499
+ threshold,
500
+ avgHealth,
501
+ unhealthyAgents: unhealthyAgents.map(a => ({
502
+ agentId: a.agentId,
503
+ health: a.health,
504
+ status: a.status,
505
+ })),
506
+ };
507
+ },
508
+ },
509
+ {
510
+ name: 'agent_update',
511
+ description: 'Update agent status or config',
512
+ category: 'agent',
513
+ inputSchema: {
514
+ type: 'object',
515
+ properties: {
516
+ agentId: { type: 'string', description: 'ID of agent' },
517
+ status: { type: 'string', description: 'New status' },
518
+ health: { type: 'number', description: 'Health value (0-1)' },
519
+ taskCount: { type: 'number', description: 'Task count' },
520
+ config: { type: 'object', description: 'Config updates' },
521
+ },
522
+ required: ['agentId'],
523
+ },
524
+ handler: async (input) => {
525
+ const store = loadAgentStore();
526
+ const agentId = input.agentId;
527
+ const agent = store.agents[agentId];
528
+ if (agent) {
529
+ if (input.status)
530
+ agent.status = input.status;
531
+ if (typeof input.health === 'number')
532
+ agent.health = input.health;
533
+ if (typeof input.taskCount === 'number')
534
+ agent.taskCount = input.taskCount;
535
+ if (input.config) {
536
+ agent.config = { ...agent.config, ...input.config };
537
+ }
538
+ saveAgentStore(store);
539
+ return {
540
+ success: true,
541
+ agentId,
542
+ updated: true,
543
+ agent: {
544
+ agentId: agent.agentId,
545
+ status: agent.status,
546
+ health: agent.health,
547
+ taskCount: agent.taskCount,
548
+ },
549
+ };
550
+ }
551
+ return {
552
+ success: false,
553
+ agentId,
554
+ error: 'Agent not found',
555
+ };
556
+ },
557
+ },
558
+ {
559
+ name: 'agent_execute',
560
+ description: 'Execute a task on a spawned agent using real Claude subprocess. Requires swarm_init with execute=true first.',
561
+ category: 'agent',
562
+ inputSchema: {
563
+ type: 'object',
564
+ properties: {
565
+ agentId: { type: 'string', description: 'ID of the agent to execute on (or agentType to auto-select)' },
566
+ agentType: { type: 'string', description: 'Agent type (used to find/spawn agent if agentId not provided)' },
567
+ prompt: { type: 'string', description: 'Task prompt to execute' },
568
+ taskId: { type: 'string', description: 'Optional task ID' },
569
+ timeoutMs: { type: 'number', description: 'Timeout in milliseconds' },
570
+ maxBudgetUsd: { type: 'number', description: 'Maximum budget in USD' },
571
+ },
572
+ required: ['prompt'],
573
+ },
574
+ handler: async (input) => {
575
+ const bridge = getExecutionBridge();
576
+ if (!bridge) {
577
+ return {
578
+ success: false,
579
+ error: 'Execution bridge not initialized. Call swarm_init with execute=true first, or use Claude Code Task tool for agent execution.',
580
+ hint: 'The MCP agent tools track metadata. For real execution, use Claude Code\'s Task tool to spawn agents.',
581
+ };
582
+ }
583
+ const taskId = input.taskId || `task-${Date.now()}`;
584
+ const agentType = input.agentType || input.agentId || 'coder';
585
+ try {
586
+ const result = await bridge.dispatchTask({
587
+ taskId,
588
+ agentType,
589
+ agentName: input.agentId,
590
+ prompt: input.prompt,
591
+ timeoutMs: input.timeoutMs,
592
+ context: {},
593
+ });
594
+ // Update the JSON store too
595
+ const store = loadAgentStore();
596
+ const agentRecord = Object.values(store.agents).find(a => a.agentType === agentType);
597
+ if (agentRecord) {
598
+ agentRecord.taskCount = (agentRecord.taskCount || 0) + 1;
599
+ agentRecord.status = result.success ? 'idle' : 'busy';
600
+ saveAgentStore(store);
601
+ }
602
+ return {
603
+ success: result.success,
604
+ taskId: result.taskId,
605
+ agentId: result.agentId,
606
+ output: result.output.slice(0, 2000), // Truncate for MCP response
607
+ error: result.error,
608
+ durationMs: result.durationMs,
609
+ timedOut: result.timedOut,
610
+ tokenUsage: result.tokenUsage,
611
+ };
612
+ }
613
+ catch (err) {
614
+ return {
615
+ success: false,
616
+ error: err instanceof Error ? err.message : String(err),
617
+ };
618
+ }
619
+ },
620
+ },
621
+ ];
622
+ //# sourceMappingURL=agent-tools.js.map