@claude-flow/shared 3.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (541) hide show
  1. package/.agentic-flow/intelligence.json +16 -0
  2. package/README.md +323 -0
  3. package/__tests__/coverage/base.css +224 -0
  4. package/__tests__/coverage/block-navigation.js +87 -0
  5. package/__tests__/coverage/coverage-final.json +50 -0
  6. package/__tests__/coverage/favicon.png +0 -0
  7. package/__tests__/coverage/index.html +326 -0
  8. package/__tests__/coverage/lcov-report/base.css +224 -0
  9. package/__tests__/coverage/lcov-report/block-navigation.js +87 -0
  10. package/__tests__/coverage/lcov-report/favicon.png +0 -0
  11. package/__tests__/coverage/lcov-report/index.html +326 -0
  12. package/__tests__/coverage/lcov-report/prettify.css +1 -0
  13. package/__tests__/coverage/lcov-report/prettify.js +2 -0
  14. package/__tests__/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  15. package/__tests__/coverage/lcov-report/sorter.js +210 -0
  16. package/__tests__/coverage/lcov-report/src/core/config/defaults.ts.html +706 -0
  17. package/__tests__/coverage/lcov-report/src/core/config/index.html +161 -0
  18. package/__tests__/coverage/lcov-report/src/core/config/loader.ts.html +898 -0
  19. package/__tests__/coverage/lcov-report/src/core/config/schema.ts.html +649 -0
  20. package/__tests__/coverage/lcov-report/src/core/config/validator.ts.html +712 -0
  21. package/__tests__/coverage/lcov-report/src/core/event-bus.ts.html +793 -0
  22. package/__tests__/coverage/lcov-report/src/core/index.html +116 -0
  23. package/__tests__/coverage/lcov-report/src/core/interfaces/event.interface.ts.html +886 -0
  24. package/__tests__/coverage/lcov-report/src/core/interfaces/index.html +116 -0
  25. package/__tests__/coverage/lcov-report/src/core/orchestrator/event-coordinator.ts.html +451 -0
  26. package/__tests__/coverage/lcov-report/src/core/orchestrator/health-monitor.ts.html +727 -0
  27. package/__tests__/coverage/lcov-report/src/core/orchestrator/index.html +176 -0
  28. package/__tests__/coverage/lcov-report/src/core/orchestrator/lifecycle-manager.ts.html +874 -0
  29. package/__tests__/coverage/lcov-report/src/core/orchestrator/session-manager.ts.html +922 -0
  30. package/__tests__/coverage/lcov-report/src/core/orchestrator/task-manager.ts.html +1036 -0
  31. package/__tests__/coverage/lcov-report/src/events/domain-events.ts.html +1837 -0
  32. package/__tests__/coverage/lcov-report/src/events/event-store.ts.html +1849 -0
  33. package/__tests__/coverage/lcov-report/src/events/example-usage.ts.html +964 -0
  34. package/__tests__/coverage/lcov-report/src/events/index.html +176 -0
  35. package/__tests__/coverage/lcov-report/src/events/projections.ts.html +1768 -0
  36. package/__tests__/coverage/lcov-report/src/events/state-reconstructor.ts.html +1132 -0
  37. package/__tests__/coverage/lcov-report/src/events.ts.html +1186 -0
  38. package/__tests__/coverage/lcov-report/src/hooks/example-usage.ts.html +1582 -0
  39. package/__tests__/coverage/lcov-report/src/hooks/executor.ts.html +1222 -0
  40. package/__tests__/coverage/lcov-report/src/hooks/index.html +191 -0
  41. package/__tests__/coverage/lcov-report/src/hooks/registry.ts.html +1084 -0
  42. package/__tests__/coverage/lcov-report/src/hooks/safety/bash-safety.ts.html +1897 -0
  43. package/__tests__/coverage/lcov-report/src/hooks/safety/file-organization.ts.html +1504 -0
  44. package/__tests__/coverage/lcov-report/src/hooks/safety/git-commit.ts.html +1954 -0
  45. package/__tests__/coverage/lcov-report/src/hooks/safety/index.html +146 -0
  46. package/__tests__/coverage/lcov-report/src/hooks/session-hooks.ts.html +1762 -0
  47. package/__tests__/coverage/lcov-report/src/hooks/task-hooks.ts.html +1624 -0
  48. package/__tests__/coverage/lcov-report/src/hooks/types.ts.html +1156 -0
  49. package/__tests__/coverage/lcov-report/src/index.html +176 -0
  50. package/__tests__/coverage/lcov-report/src/mcp/connection-pool.ts.html +1399 -0
  51. package/__tests__/coverage/lcov-report/src/mcp/index.html +176 -0
  52. package/__tests__/coverage/lcov-report/src/mcp/server.ts.html +2407 -0
  53. package/__tests__/coverage/lcov-report/src/mcp/session-manager.ts.html +1369 -0
  54. package/__tests__/coverage/lcov-report/src/mcp/tool-registry.ts.html +1783 -0
  55. package/__tests__/coverage/lcov-report/src/mcp/transport/http.ts.html +1756 -0
  56. package/__tests__/coverage/lcov-report/src/mcp/transport/index.html +146 -0
  57. package/__tests__/coverage/lcov-report/src/mcp/transport/stdio.ts.html +1057 -0
  58. package/__tests__/coverage/lcov-report/src/mcp/transport/websocket.ts.html +1537 -0
  59. package/__tests__/coverage/lcov-report/src/mcp/types.ts.html +1780 -0
  60. package/__tests__/coverage/lcov-report/src/plugin-interface.ts.html +2074 -0
  61. package/__tests__/coverage/lcov-report/src/plugin-loader.ts.html +1999 -0
  62. package/__tests__/coverage/lcov-report/src/plugin-registry.ts.html +1897 -0
  63. package/__tests__/coverage/lcov-report/src/plugins/official/hive-mind-plugin.ts.html +1075 -0
  64. package/__tests__/coverage/lcov-report/src/plugins/official/index.html +131 -0
  65. package/__tests__/coverage/lcov-report/src/plugins/official/maestro-plugin.ts.html +1609 -0
  66. package/__tests__/coverage/lcov-report/src/resilience/bulkhead.ts.html +916 -0
  67. package/__tests__/coverage/lcov-report/src/resilience/circuit-breaker.ts.html +1063 -0
  68. package/__tests__/coverage/lcov-report/src/resilience/index.html +161 -0
  69. package/__tests__/coverage/lcov-report/src/resilience/rate-limiter.ts.html +1345 -0
  70. package/__tests__/coverage/lcov-report/src/resilience/retry.ts.html +757 -0
  71. package/__tests__/coverage/lcov-report/src/security/index.html +131 -0
  72. package/__tests__/coverage/lcov-report/src/security/input-validation.ts.html +880 -0
  73. package/__tests__/coverage/lcov-report/src/security/secure-random.ts.html +562 -0
  74. package/__tests__/coverage/lcov-report/src/types/index.html +131 -0
  75. package/__tests__/coverage/lcov-report/src/types/swarm.types.ts.html +850 -0
  76. package/__tests__/coverage/lcov-report/src/types/task.types.ts.html +700 -0
  77. package/__tests__/coverage/lcov-report/src/types.ts.html +1186 -0
  78. package/__tests__/coverage/lcov-report/src/utils/index.html +116 -0
  79. package/__tests__/coverage/lcov-report/src/utils/secure-logger.ts.html +856 -0
  80. package/__tests__/coverage/lcov.info +19877 -0
  81. package/__tests__/coverage/prettify.css +1 -0
  82. package/__tests__/coverage/prettify.js +2 -0
  83. package/__tests__/coverage/sort-arrow-sprite.png +0 -0
  84. package/__tests__/coverage/sorter.js +210 -0
  85. package/__tests__/coverage/src/core/config/defaults.ts.html +706 -0
  86. package/__tests__/coverage/src/core/config/index.html +161 -0
  87. package/__tests__/coverage/src/core/config/loader.ts.html +898 -0
  88. package/__tests__/coverage/src/core/config/schema.ts.html +649 -0
  89. package/__tests__/coverage/src/core/config/validator.ts.html +712 -0
  90. package/__tests__/coverage/src/core/event-bus.ts.html +793 -0
  91. package/__tests__/coverage/src/core/index.html +116 -0
  92. package/__tests__/coverage/src/core/interfaces/event.interface.ts.html +886 -0
  93. package/__tests__/coverage/src/core/interfaces/index.html +116 -0
  94. package/__tests__/coverage/src/core/orchestrator/event-coordinator.ts.html +451 -0
  95. package/__tests__/coverage/src/core/orchestrator/health-monitor.ts.html +727 -0
  96. package/__tests__/coverage/src/core/orchestrator/index.html +176 -0
  97. package/__tests__/coverage/src/core/orchestrator/lifecycle-manager.ts.html +874 -0
  98. package/__tests__/coverage/src/core/orchestrator/session-manager.ts.html +922 -0
  99. package/__tests__/coverage/src/core/orchestrator/task-manager.ts.html +1036 -0
  100. package/__tests__/coverage/src/events/domain-events.ts.html +1837 -0
  101. package/__tests__/coverage/src/events/event-store.ts.html +1849 -0
  102. package/__tests__/coverage/src/events/example-usage.ts.html +964 -0
  103. package/__tests__/coverage/src/events/index.html +176 -0
  104. package/__tests__/coverage/src/events/projections.ts.html +1768 -0
  105. package/__tests__/coverage/src/events/state-reconstructor.ts.html +1132 -0
  106. package/__tests__/coverage/src/events.ts.html +1186 -0
  107. package/__tests__/coverage/src/hooks/example-usage.ts.html +1582 -0
  108. package/__tests__/coverage/src/hooks/executor.ts.html +1222 -0
  109. package/__tests__/coverage/src/hooks/index.html +191 -0
  110. package/__tests__/coverage/src/hooks/registry.ts.html +1084 -0
  111. package/__tests__/coverage/src/hooks/safety/bash-safety.ts.html +1897 -0
  112. package/__tests__/coverage/src/hooks/safety/file-organization.ts.html +1504 -0
  113. package/__tests__/coverage/src/hooks/safety/git-commit.ts.html +1954 -0
  114. package/__tests__/coverage/src/hooks/safety/index.html +146 -0
  115. package/__tests__/coverage/src/hooks/session-hooks.ts.html +1762 -0
  116. package/__tests__/coverage/src/hooks/task-hooks.ts.html +1624 -0
  117. package/__tests__/coverage/src/hooks/types.ts.html +1156 -0
  118. package/__tests__/coverage/src/index.html +176 -0
  119. package/__tests__/coverage/src/mcp/connection-pool.ts.html +1399 -0
  120. package/__tests__/coverage/src/mcp/index.html +176 -0
  121. package/__tests__/coverage/src/mcp/server.ts.html +2407 -0
  122. package/__tests__/coverage/src/mcp/session-manager.ts.html +1369 -0
  123. package/__tests__/coverage/src/mcp/tool-registry.ts.html +1783 -0
  124. package/__tests__/coverage/src/mcp/transport/http.ts.html +1756 -0
  125. package/__tests__/coverage/src/mcp/transport/index.html +146 -0
  126. package/__tests__/coverage/src/mcp/transport/stdio.ts.html +1057 -0
  127. package/__tests__/coverage/src/mcp/transport/websocket.ts.html +1537 -0
  128. package/__tests__/coverage/src/mcp/types.ts.html +1780 -0
  129. package/__tests__/coverage/src/plugin-interface.ts.html +2074 -0
  130. package/__tests__/coverage/src/plugin-loader.ts.html +1999 -0
  131. package/__tests__/coverage/src/plugin-registry.ts.html +1897 -0
  132. package/__tests__/coverage/src/plugins/official/hive-mind-plugin.ts.html +1075 -0
  133. package/__tests__/coverage/src/plugins/official/index.html +131 -0
  134. package/__tests__/coverage/src/plugins/official/maestro-plugin.ts.html +1609 -0
  135. package/__tests__/coverage/src/resilience/bulkhead.ts.html +916 -0
  136. package/__tests__/coverage/src/resilience/circuit-breaker.ts.html +1063 -0
  137. package/__tests__/coverage/src/resilience/index.html +161 -0
  138. package/__tests__/coverage/src/resilience/rate-limiter.ts.html +1345 -0
  139. package/__tests__/coverage/src/resilience/retry.ts.html +757 -0
  140. package/__tests__/coverage/src/security/index.html +131 -0
  141. package/__tests__/coverage/src/security/input-validation.ts.html +880 -0
  142. package/__tests__/coverage/src/security/secure-random.ts.html +562 -0
  143. package/__tests__/coverage/src/types/index.html +131 -0
  144. package/__tests__/coverage/src/types/swarm.types.ts.html +850 -0
  145. package/__tests__/coverage/src/types/task.types.ts.html +700 -0
  146. package/__tests__/coverage/src/types.ts.html +1186 -0
  147. package/__tests__/coverage/src/utils/index.html +116 -0
  148. package/__tests__/coverage/src/utils/secure-logger.ts.html +856 -0
  149. package/__tests__/hooks/bash-safety.test.ts +289 -0
  150. package/__tests__/hooks/file-organization.test.ts +335 -0
  151. package/__tests__/hooks/git-commit.test.ts +336 -0
  152. package/__tests__/hooks/index.ts +23 -0
  153. package/__tests__/hooks/session-hooks.test.ts +357 -0
  154. package/__tests__/hooks/task-hooks.test.ts +193 -0
  155. package/dist/core/config/defaults.d.ts +41 -0
  156. package/dist/core/config/defaults.d.ts.map +1 -0
  157. package/dist/core/config/defaults.js +186 -0
  158. package/dist/core/config/defaults.js.map +1 -0
  159. package/dist/core/config/index.d.ts +8 -0
  160. package/dist/core/config/index.d.ts.map +1 -0
  161. package/dist/core/config/index.js +12 -0
  162. package/dist/core/config/index.js.map +1 -0
  163. package/dist/core/config/loader.d.ts +45 -0
  164. package/dist/core/config/loader.d.ts.map +1 -0
  165. package/dist/core/config/loader.js +222 -0
  166. package/dist/core/config/loader.js.map +1 -0
  167. package/dist/core/config/schema.d.ts +1134 -0
  168. package/dist/core/config/schema.d.ts.map +1 -0
  169. package/dist/core/config/schema.js +158 -0
  170. package/dist/core/config/schema.js.map +1 -0
  171. package/dist/core/config/validator.d.ts +92 -0
  172. package/dist/core/config/validator.d.ts.map +1 -0
  173. package/dist/core/config/validator.js +147 -0
  174. package/dist/core/config/validator.js.map +1 -0
  175. package/dist/core/event-bus.d.ts +31 -0
  176. package/dist/core/event-bus.d.ts.map +1 -0
  177. package/dist/core/event-bus.js +197 -0
  178. package/dist/core/event-bus.js.map +1 -0
  179. package/dist/core/index.d.ts +15 -0
  180. package/dist/core/index.d.ts.map +1 -0
  181. package/dist/core/index.js +19 -0
  182. package/dist/core/index.js.map +1 -0
  183. package/dist/core/interfaces/agent.interface.d.ts +200 -0
  184. package/dist/core/interfaces/agent.interface.d.ts.map +1 -0
  185. package/dist/core/interfaces/agent.interface.js +6 -0
  186. package/dist/core/interfaces/agent.interface.js.map +1 -0
  187. package/dist/core/interfaces/coordinator.interface.d.ts +310 -0
  188. package/dist/core/interfaces/coordinator.interface.d.ts.map +1 -0
  189. package/dist/core/interfaces/coordinator.interface.js +7 -0
  190. package/dist/core/interfaces/coordinator.interface.js.map +1 -0
  191. package/dist/core/interfaces/event.interface.d.ts +224 -0
  192. package/dist/core/interfaces/event.interface.d.ts.map +1 -0
  193. package/dist/core/interfaces/event.interface.js +46 -0
  194. package/dist/core/interfaces/event.interface.js.map +1 -0
  195. package/dist/core/interfaces/index.d.ts +10 -0
  196. package/dist/core/interfaces/index.d.ts.map +1 -0
  197. package/dist/core/interfaces/index.js +15 -0
  198. package/dist/core/interfaces/index.js.map +1 -0
  199. package/dist/core/interfaces/memory.interface.d.ts +298 -0
  200. package/dist/core/interfaces/memory.interface.d.ts.map +1 -0
  201. package/dist/core/interfaces/memory.interface.js +7 -0
  202. package/dist/core/interfaces/memory.interface.js.map +1 -0
  203. package/dist/core/interfaces/task.interface.d.ts +185 -0
  204. package/dist/core/interfaces/task.interface.d.ts.map +1 -0
  205. package/dist/core/interfaces/task.interface.js +6 -0
  206. package/dist/core/interfaces/task.interface.js.map +1 -0
  207. package/dist/core/orchestrator/event-coordinator.d.ts +35 -0
  208. package/dist/core/orchestrator/event-coordinator.d.ts.map +1 -0
  209. package/dist/core/orchestrator/event-coordinator.js +101 -0
  210. package/dist/core/orchestrator/event-coordinator.js.map +1 -0
  211. package/dist/core/orchestrator/health-monitor.d.ts +60 -0
  212. package/dist/core/orchestrator/health-monitor.d.ts.map +1 -0
  213. package/dist/core/orchestrator/health-monitor.js +166 -0
  214. package/dist/core/orchestrator/health-monitor.js.map +1 -0
  215. package/dist/core/orchestrator/index.d.ts +46 -0
  216. package/dist/core/orchestrator/index.d.ts.map +1 -0
  217. package/dist/core/orchestrator/index.js +64 -0
  218. package/dist/core/orchestrator/index.js.map +1 -0
  219. package/dist/core/orchestrator/lifecycle-manager.d.ts +56 -0
  220. package/dist/core/orchestrator/lifecycle-manager.d.ts.map +1 -0
  221. package/dist/core/orchestrator/lifecycle-manager.js +195 -0
  222. package/dist/core/orchestrator/lifecycle-manager.js.map +1 -0
  223. package/dist/core/orchestrator/session-manager.d.ts +83 -0
  224. package/dist/core/orchestrator/session-manager.d.ts.map +1 -0
  225. package/dist/core/orchestrator/session-manager.js +193 -0
  226. package/dist/core/orchestrator/session-manager.js.map +1 -0
  227. package/dist/core/orchestrator/task-manager.d.ts +49 -0
  228. package/dist/core/orchestrator/task-manager.d.ts.map +1 -0
  229. package/dist/core/orchestrator/task-manager.js +253 -0
  230. package/dist/core/orchestrator/task-manager.js.map +1 -0
  231. package/dist/events/domain-events.d.ts +282 -0
  232. package/dist/events/domain-events.d.ts.map +1 -0
  233. package/dist/events/domain-events.js +165 -0
  234. package/dist/events/domain-events.js.map +1 -0
  235. package/dist/events/event-store.d.ts +126 -0
  236. package/dist/events/event-store.d.ts.map +1 -0
  237. package/dist/events/event-store.js +416 -0
  238. package/dist/events/event-store.js.map +1 -0
  239. package/dist/events/event-store.test.d.ts +8 -0
  240. package/dist/events/event-store.test.d.ts.map +1 -0
  241. package/dist/events/event-store.test.js +293 -0
  242. package/dist/events/event-store.test.js.map +1 -0
  243. package/dist/events/example-usage.d.ts +10 -0
  244. package/dist/events/example-usage.d.ts.map +1 -0
  245. package/dist/events/example-usage.js +193 -0
  246. package/dist/events/example-usage.js.map +1 -0
  247. package/dist/events/index.d.ts +19 -0
  248. package/dist/events/index.d.ts.map +1 -0
  249. package/dist/events/index.js +20 -0
  250. package/dist/events/index.js.map +1 -0
  251. package/dist/events/projections.d.ts +177 -0
  252. package/dist/events/projections.d.ts.map +1 -0
  253. package/dist/events/projections.js +421 -0
  254. package/dist/events/projections.js.map +1 -0
  255. package/dist/events/state-reconstructor.d.ts +101 -0
  256. package/dist/events/state-reconstructor.d.ts.map +1 -0
  257. package/dist/events/state-reconstructor.js +263 -0
  258. package/dist/events/state-reconstructor.js.map +1 -0
  259. package/dist/events.d.ts +80 -0
  260. package/dist/events.d.ts.map +1 -0
  261. package/dist/events.js +249 -0
  262. package/dist/events.js.map +1 -0
  263. package/dist/hooks/example-usage.d.ts +42 -0
  264. package/dist/hooks/example-usage.d.ts.map +1 -0
  265. package/dist/hooks/example-usage.js +351 -0
  266. package/dist/hooks/example-usage.js.map +1 -0
  267. package/dist/hooks/executor.d.ts +100 -0
  268. package/dist/hooks/executor.d.ts.map +1 -0
  269. package/dist/hooks/executor.js +264 -0
  270. package/dist/hooks/executor.js.map +1 -0
  271. package/dist/hooks/hooks.test.d.ts +9 -0
  272. package/dist/hooks/hooks.test.d.ts.map +1 -0
  273. package/dist/hooks/hooks.test.js +322 -0
  274. package/dist/hooks/hooks.test.js.map +1 -0
  275. package/dist/hooks/index.d.ts +52 -0
  276. package/dist/hooks/index.d.ts.map +1 -0
  277. package/dist/hooks/index.js +51 -0
  278. package/dist/hooks/index.js.map +1 -0
  279. package/dist/hooks/registry.d.ts +133 -0
  280. package/dist/hooks/registry.d.ts.map +1 -0
  281. package/dist/hooks/registry.js +277 -0
  282. package/dist/hooks/registry.js.map +1 -0
  283. package/dist/hooks/safety/bash-safety.d.ts +105 -0
  284. package/dist/hooks/safety/bash-safety.d.ts.map +1 -0
  285. package/dist/hooks/safety/bash-safety.js +481 -0
  286. package/dist/hooks/safety/bash-safety.js.map +1 -0
  287. package/dist/hooks/safety/file-organization.d.ts +144 -0
  288. package/dist/hooks/safety/file-organization.d.ts.map +1 -0
  289. package/dist/hooks/safety/file-organization.js +328 -0
  290. package/dist/hooks/safety/file-organization.js.map +1 -0
  291. package/dist/hooks/safety/git-commit.d.ts +158 -0
  292. package/dist/hooks/safety/git-commit.d.ts.map +1 -0
  293. package/dist/hooks/safety/git-commit.js +450 -0
  294. package/dist/hooks/safety/git-commit.js.map +1 -0
  295. package/dist/hooks/safety/index.d.ts +17 -0
  296. package/dist/hooks/safety/index.d.ts.map +1 -0
  297. package/dist/hooks/safety/index.js +17 -0
  298. package/dist/hooks/safety/index.js.map +1 -0
  299. package/dist/hooks/session-hooks.d.ts +234 -0
  300. package/dist/hooks/session-hooks.d.ts.map +1 -0
  301. package/dist/hooks/session-hooks.js +334 -0
  302. package/dist/hooks/session-hooks.js.map +1 -0
  303. package/dist/hooks/task-hooks.d.ts +163 -0
  304. package/dist/hooks/task-hooks.d.ts.map +1 -0
  305. package/dist/hooks/task-hooks.js +326 -0
  306. package/dist/hooks/task-hooks.js.map +1 -0
  307. package/dist/hooks/types.d.ts +267 -0
  308. package/dist/hooks/types.d.ts.map +1 -0
  309. package/dist/hooks/types.js +62 -0
  310. package/dist/hooks/types.js.map +1 -0
  311. package/dist/hooks/verify-exports.test.d.ts +9 -0
  312. package/dist/hooks/verify-exports.test.d.ts.map +1 -0
  313. package/dist/hooks/verify-exports.test.js +93 -0
  314. package/dist/hooks/verify-exports.test.js.map +1 -0
  315. package/dist/index.d.ts +19 -0
  316. package/dist/index.d.ts.map +1 -0
  317. package/dist/index.js +46 -0
  318. package/dist/index.js.map +1 -0
  319. package/dist/mcp/connection-pool.d.ts +98 -0
  320. package/dist/mcp/connection-pool.d.ts.map +1 -0
  321. package/dist/mcp/connection-pool.js +364 -0
  322. package/dist/mcp/connection-pool.js.map +1 -0
  323. package/dist/mcp/index.d.ts +69 -0
  324. package/dist/mcp/index.d.ts.map +1 -0
  325. package/dist/mcp/index.js +84 -0
  326. package/dist/mcp/index.js.map +1 -0
  327. package/dist/mcp/server.d.ts +166 -0
  328. package/dist/mcp/server.d.ts.map +1 -0
  329. package/dist/mcp/server.js +593 -0
  330. package/dist/mcp/server.js.map +1 -0
  331. package/dist/mcp/session-manager.d.ts +136 -0
  332. package/dist/mcp/session-manager.d.ts.map +1 -0
  333. package/dist/mcp/session-manager.js +335 -0
  334. package/dist/mcp/session-manager.js.map +1 -0
  335. package/dist/mcp/tool-registry.d.ts +178 -0
  336. package/dist/mcp/tool-registry.d.ts.map +1 -0
  337. package/dist/mcp/tool-registry.js +439 -0
  338. package/dist/mcp/tool-registry.js.map +1 -0
  339. package/dist/mcp/transport/http.d.ts +104 -0
  340. package/dist/mcp/transport/http.d.ts.map +1 -0
  341. package/dist/mcp/transport/http.js +476 -0
  342. package/dist/mcp/transport/http.js.map +1 -0
  343. package/dist/mcp/transport/index.d.ts +102 -0
  344. package/dist/mcp/transport/index.d.ts.map +1 -0
  345. package/dist/mcp/transport/index.js +238 -0
  346. package/dist/mcp/transport/index.js.map +1 -0
  347. package/dist/mcp/transport/stdio.d.ts +104 -0
  348. package/dist/mcp/transport/stdio.d.ts.map +1 -0
  349. package/dist/mcp/transport/stdio.js +263 -0
  350. package/dist/mcp/transport/stdio.js.map +1 -0
  351. package/dist/mcp/transport/websocket.d.ts +133 -0
  352. package/dist/mcp/transport/websocket.d.ts.map +1 -0
  353. package/dist/mcp/transport/websocket.js +396 -0
  354. package/dist/mcp/transport/websocket.js.map +1 -0
  355. package/dist/mcp/types.d.ts +438 -0
  356. package/dist/mcp/types.d.ts.map +1 -0
  357. package/dist/mcp/types.js +54 -0
  358. package/dist/mcp/types.js.map +1 -0
  359. package/dist/plugin-interface.d.ts +544 -0
  360. package/dist/plugin-interface.d.ts.map +1 -0
  361. package/dist/plugin-interface.js +23 -0
  362. package/dist/plugin-interface.js.map +1 -0
  363. package/dist/plugin-loader.d.ts +139 -0
  364. package/dist/plugin-loader.d.ts.map +1 -0
  365. package/dist/plugin-loader.js +434 -0
  366. package/dist/plugin-loader.js.map +1 -0
  367. package/dist/plugin-registry.d.ts +183 -0
  368. package/dist/plugin-registry.d.ts.map +1 -0
  369. package/dist/plugin-registry.js +457 -0
  370. package/dist/plugin-registry.js.map +1 -0
  371. package/dist/plugins/index.d.ts +10 -0
  372. package/dist/plugins/index.d.ts.map +1 -0
  373. package/dist/plugins/index.js +10 -0
  374. package/dist/plugins/index.js.map +1 -0
  375. package/dist/plugins/official/hive-mind-plugin.d.ts +106 -0
  376. package/dist/plugins/official/hive-mind-plugin.d.ts.map +1 -0
  377. package/dist/plugins/official/hive-mind-plugin.js +241 -0
  378. package/dist/plugins/official/hive-mind-plugin.js.map +1 -0
  379. package/dist/plugins/official/index.d.ts +10 -0
  380. package/dist/plugins/official/index.d.ts.map +1 -0
  381. package/dist/plugins/official/index.js +10 -0
  382. package/dist/plugins/official/index.js.map +1 -0
  383. package/dist/plugins/official/maestro-plugin.d.ts +121 -0
  384. package/dist/plugins/official/maestro-plugin.d.ts.map +1 -0
  385. package/dist/plugins/official/maestro-plugin.js +355 -0
  386. package/dist/plugins/official/maestro-plugin.js.map +1 -0
  387. package/dist/plugins/types.d.ts +93 -0
  388. package/dist/plugins/types.d.ts.map +1 -0
  389. package/dist/plugins/types.js +9 -0
  390. package/dist/plugins/types.js.map +1 -0
  391. package/dist/resilience/bulkhead.d.ts +105 -0
  392. package/dist/resilience/bulkhead.d.ts.map +1 -0
  393. package/dist/resilience/bulkhead.js +206 -0
  394. package/dist/resilience/bulkhead.js.map +1 -0
  395. package/dist/resilience/circuit-breaker.d.ts +132 -0
  396. package/dist/resilience/circuit-breaker.d.ts.map +1 -0
  397. package/dist/resilience/circuit-breaker.js +233 -0
  398. package/dist/resilience/circuit-breaker.js.map +1 -0
  399. package/dist/resilience/index.d.ts +19 -0
  400. package/dist/resilience/index.d.ts.map +1 -0
  401. package/dist/resilience/index.js +19 -0
  402. package/dist/resilience/index.js.map +1 -0
  403. package/dist/resilience/rate-limiter.d.ts +168 -0
  404. package/dist/resilience/rate-limiter.d.ts.map +1 -0
  405. package/dist/resilience/rate-limiter.js +314 -0
  406. package/dist/resilience/rate-limiter.js.map +1 -0
  407. package/dist/resilience/retry.d.ts +91 -0
  408. package/dist/resilience/retry.d.ts.map +1 -0
  409. package/dist/resilience/retry.js +159 -0
  410. package/dist/resilience/retry.js.map +1 -0
  411. package/dist/security/index.d.ts +10 -0
  412. package/dist/security/index.d.ts.map +1 -0
  413. package/dist/security/index.js +12 -0
  414. package/dist/security/index.js.map +1 -0
  415. package/dist/security/input-validation.d.ts +73 -0
  416. package/dist/security/input-validation.d.ts.map +1 -0
  417. package/dist/security/input-validation.js +201 -0
  418. package/dist/security/input-validation.js.map +1 -0
  419. package/dist/security/secure-random.d.ts +92 -0
  420. package/dist/security/secure-random.d.ts.map +1 -0
  421. package/dist/security/secure-random.js +142 -0
  422. package/dist/security/secure-random.js.map +1 -0
  423. package/dist/types/agent.types.d.ts +137 -0
  424. package/dist/types/agent.types.d.ts.map +1 -0
  425. package/dist/types/agent.types.js +6 -0
  426. package/dist/types/agent.types.js.map +1 -0
  427. package/dist/types/index.d.ts +11 -0
  428. package/dist/types/index.d.ts.map +1 -0
  429. package/dist/types/index.js +17 -0
  430. package/dist/types/index.js.map +1 -0
  431. package/dist/types/mcp.types.d.ts +266 -0
  432. package/dist/types/mcp.types.d.ts.map +1 -0
  433. package/dist/types/mcp.types.js +7 -0
  434. package/dist/types/mcp.types.js.map +1 -0
  435. package/dist/types/memory.types.d.ts +236 -0
  436. package/dist/types/memory.types.d.ts.map +1 -0
  437. package/dist/types/memory.types.js +7 -0
  438. package/dist/types/memory.types.js.map +1 -0
  439. package/dist/types/swarm.types.d.ts +186 -0
  440. package/dist/types/swarm.types.d.ts.map +1 -0
  441. package/dist/types/swarm.types.js +65 -0
  442. package/dist/types/swarm.types.js.map +1 -0
  443. package/dist/types/task.types.d.ts +178 -0
  444. package/dist/types/task.types.d.ts.map +1 -0
  445. package/dist/types/task.types.js +32 -0
  446. package/dist/types/task.types.js.map +1 -0
  447. package/dist/types.d.ts +197 -0
  448. package/dist/types.d.ts.map +1 -0
  449. package/dist/types.js +21 -0
  450. package/dist/types.js.map +1 -0
  451. package/dist/utils/secure-logger.d.ts +69 -0
  452. package/dist/utils/secure-logger.d.ts.map +1 -0
  453. package/dist/utils/secure-logger.js +208 -0
  454. package/dist/utils/secure-logger.js.map +1 -0
  455. package/docs/EVENTS_IMPLEMENTATION_SUMMARY.md +388 -0
  456. package/docs/EVENTS_QUICK_REFERENCE.md +470 -0
  457. package/docs/EVENTS_README.md +352 -0
  458. package/package.json +34 -0
  459. package/src/core/config/defaults.ts +207 -0
  460. package/src/core/config/index.ts +15 -0
  461. package/src/core/config/loader.ts +271 -0
  462. package/src/core/config/schema.ts +188 -0
  463. package/src/core/config/validator.ts +209 -0
  464. package/src/core/event-bus.ts +236 -0
  465. package/src/core/index.ts +22 -0
  466. package/src/core/interfaces/agent.interface.ts +251 -0
  467. package/src/core/interfaces/coordinator.interface.ts +363 -0
  468. package/src/core/interfaces/event.interface.ts +267 -0
  469. package/src/core/interfaces/index.ts +19 -0
  470. package/src/core/interfaces/memory.interface.ts +332 -0
  471. package/src/core/interfaces/task.interface.ts +223 -0
  472. package/src/core/orchestrator/event-coordinator.ts +122 -0
  473. package/src/core/orchestrator/health-monitor.ts +214 -0
  474. package/src/core/orchestrator/index.ts +89 -0
  475. package/src/core/orchestrator/lifecycle-manager.ts +263 -0
  476. package/src/core/orchestrator/session-manager.ts +279 -0
  477. package/src/core/orchestrator/task-manager.ts +317 -0
  478. package/src/events/domain-events.ts +584 -0
  479. package/src/events/event-store.test.ts +387 -0
  480. package/src/events/event-store.ts +588 -0
  481. package/src/events/example-usage.ts +293 -0
  482. package/src/events/index.ts +90 -0
  483. package/src/events/projections.ts +561 -0
  484. package/src/events/state-reconstructor.ts +349 -0
  485. package/src/events.ts +367 -0
  486. package/src/hooks/INTEGRATION.md +658 -0
  487. package/src/hooks/README.md +532 -0
  488. package/src/hooks/example-usage.ts +499 -0
  489. package/src/hooks/executor.ts +379 -0
  490. package/src/hooks/hooks.test.ts +421 -0
  491. package/src/hooks/index.ts +131 -0
  492. package/src/hooks/registry.ts +333 -0
  493. package/src/hooks/safety/bash-safety.ts +604 -0
  494. package/src/hooks/safety/file-organization.ts +473 -0
  495. package/src/hooks/safety/git-commit.ts +623 -0
  496. package/src/hooks/safety/index.ts +46 -0
  497. package/src/hooks/session-hooks.ts +559 -0
  498. package/src/hooks/task-hooks.ts +513 -0
  499. package/src/hooks/types.ts +357 -0
  500. package/src/hooks/verify-exports.test.ts +125 -0
  501. package/src/index.ts +190 -0
  502. package/src/mcp/connection-pool.ts +438 -0
  503. package/src/mcp/index.ts +183 -0
  504. package/src/mcp/server.ts +774 -0
  505. package/src/mcp/session-manager.ts +428 -0
  506. package/src/mcp/tool-registry.ts +566 -0
  507. package/src/mcp/transport/http.ts +557 -0
  508. package/src/mcp/transport/index.ts +294 -0
  509. package/src/mcp/transport/stdio.ts +324 -0
  510. package/src/mcp/transport/websocket.ts +484 -0
  511. package/src/mcp/types.ts +565 -0
  512. package/src/plugin-interface.ts +663 -0
  513. package/src/plugin-loader.ts +638 -0
  514. package/src/plugin-registry.ts +604 -0
  515. package/src/plugins/index.ts +34 -0
  516. package/src/plugins/official/hive-mind-plugin.ts +330 -0
  517. package/src/plugins/official/index.ts +24 -0
  518. package/src/plugins/official/maestro-plugin.ts +508 -0
  519. package/src/plugins/types.ts +108 -0
  520. package/src/resilience/bulkhead.ts +277 -0
  521. package/src/resilience/circuit-breaker.ts +326 -0
  522. package/src/resilience/index.ts +26 -0
  523. package/src/resilience/rate-limiter.ts +420 -0
  524. package/src/resilience/retry.ts +224 -0
  525. package/src/security/index.ts +39 -0
  526. package/src/security/input-validation.ts +265 -0
  527. package/src/security/secure-random.ts +159 -0
  528. package/src/types/agent.types.ts +144 -0
  529. package/src/types/index.ts +22 -0
  530. package/src/types/mcp.types.ts +300 -0
  531. package/src/types/memory.types.ts +263 -0
  532. package/src/types/swarm.types.ts +255 -0
  533. package/src/types/task.types.ts +205 -0
  534. package/src/types.ts +367 -0
  535. package/src/utils/secure-logger.d.ts +69 -0
  536. package/src/utils/secure-logger.d.ts.map +1 -0
  537. package/src/utils/secure-logger.js +208 -0
  538. package/src/utils/secure-logger.js.map +1 -0
  539. package/src/utils/secure-logger.ts +257 -0
  540. package/tsconfig.json +9 -0
  541. package/tsconfig.tsbuildinfo +1 -0
@@ -0,0 +1,183 @@
1
+ /**
2
+ * V3 Plugin Registry
3
+ * Domain-Driven Design - Plugin-Based Architecture (ADR-004)
4
+ *
5
+ * Central registry for tracking plugin state, metadata, and registrations
6
+ */
7
+ import type { ClaudeFlowPlugin, PluginInfo, PluginLifecycleState, PluginContext, AgentTypeDefinition, TaskTypeDefinition, MCPToolDefinition, CLICommandDefinition, MemoryBackendFactory } from './plugin-interface.js';
8
+ /**
9
+ * Plugin registry for managing plugin lifecycle and registrations
10
+ */
11
+ export declare class PluginRegistry {
12
+ private plugins;
13
+ private agentTypes;
14
+ private taskTypes;
15
+ private mcpTools;
16
+ private cliCommands;
17
+ private memoryBackends;
18
+ /**
19
+ * Register a plugin in the registry
20
+ */
21
+ registerPlugin(plugin: ClaudeFlowPlugin, initialState: PluginLifecycleState, context: PluginContext): void;
22
+ /**
23
+ * Unregister a plugin from the registry
24
+ */
25
+ unregisterPlugin(pluginName: string): boolean;
26
+ /**
27
+ * Get a plugin by name
28
+ */
29
+ getPlugin(pluginName: string): PluginInfo | undefined;
30
+ /**
31
+ * Get all registered plugins
32
+ */
33
+ getAllPlugins(): Map<string, PluginInfo>;
34
+ /**
35
+ * Get all plugin names
36
+ */
37
+ getPluginNames(): string[];
38
+ /**
39
+ * Check if a plugin is registered
40
+ */
41
+ hasPlugin(pluginName: string): boolean;
42
+ /**
43
+ * Get plugins by state
44
+ */
45
+ getPluginsByState(state: PluginLifecycleState): PluginInfo[];
46
+ /**
47
+ * Get plugin count
48
+ */
49
+ getPluginCount(): number;
50
+ /**
51
+ * Update plugin state
52
+ */
53
+ updatePluginState(pluginName: string, state: PluginLifecycleState, error?: Error): void;
54
+ /**
55
+ * Collect and update plugin metrics
56
+ */
57
+ collectPluginMetrics(pluginName: string): void;
58
+ /**
59
+ * Get plugin status summary
60
+ */
61
+ getStatusSummary(): PluginRegistryStatus;
62
+ /**
63
+ * Register agent types from a plugin
64
+ */
65
+ registerAgentTypes(pluginName: string): void;
66
+ /**
67
+ * Unregister agent types from a plugin
68
+ */
69
+ unregisterPluginAgentTypes(pluginName: string): void;
70
+ /**
71
+ * Get agent type definition
72
+ */
73
+ getAgentType(type: string): AgentTypeDefinition | undefined;
74
+ /**
75
+ * Get all agent types
76
+ */
77
+ getAllAgentTypes(): AgentTypeDefinition[];
78
+ /**
79
+ * Get agent types by plugin
80
+ */
81
+ getAgentTypesByPlugin(pluginName: string): AgentTypeDefinition[];
82
+ /**
83
+ * Register task types from a plugin
84
+ */
85
+ registerTaskTypes(pluginName: string): void;
86
+ /**
87
+ * Unregister task types from a plugin
88
+ */
89
+ unregisterPluginTaskTypes(pluginName: string): void;
90
+ /**
91
+ * Get task type definition
92
+ */
93
+ getTaskType(type: string): TaskTypeDefinition | undefined;
94
+ /**
95
+ * Get all task types
96
+ */
97
+ getAllTaskTypes(): TaskTypeDefinition[];
98
+ /**
99
+ * Get task types by plugin
100
+ */
101
+ getTaskTypesByPlugin(pluginName: string): TaskTypeDefinition[];
102
+ /**
103
+ * Register MCP tools from a plugin
104
+ */
105
+ registerMCPTools(pluginName: string): void;
106
+ /**
107
+ * Unregister MCP tools from a plugin
108
+ */
109
+ unregisterPluginMCPTools(pluginName: string): void;
110
+ /**
111
+ * Get MCP tool definition
112
+ */
113
+ getMCPTool(name: string): MCPToolDefinition | undefined;
114
+ /**
115
+ * Get all MCP tools
116
+ */
117
+ getAllMCPTools(): MCPToolDefinition[];
118
+ /**
119
+ * Get MCP tools by plugin
120
+ */
121
+ getMCPToolsByPlugin(pluginName: string): MCPToolDefinition[];
122
+ /**
123
+ * Register CLI commands from a plugin
124
+ */
125
+ registerCLICommands(pluginName: string): void;
126
+ /**
127
+ * Unregister CLI commands from a plugin
128
+ */
129
+ unregisterPluginCLICommands(pluginName: string): void;
130
+ /**
131
+ * Get CLI command definition
132
+ */
133
+ getCLICommand(name: string): CLICommandDefinition | undefined;
134
+ /**
135
+ * Get all CLI commands
136
+ */
137
+ getAllCLICommands(): CLICommandDefinition[];
138
+ /**
139
+ * Get CLI commands by plugin
140
+ */
141
+ getCLICommandsByPlugin(pluginName: string): CLICommandDefinition[];
142
+ /**
143
+ * Register memory backends from a plugin
144
+ */
145
+ registerMemoryBackends(pluginName: string): void;
146
+ /**
147
+ * Unregister memory backends from a plugin
148
+ */
149
+ unregisterPluginMemoryBackends(pluginName: string): void;
150
+ /**
151
+ * Get memory backend factory
152
+ */
153
+ getMemoryBackend(name: string): MemoryBackendFactory | undefined;
154
+ /**
155
+ * Get all memory backends
156
+ */
157
+ getAllMemoryBackends(): MemoryBackendFactory[];
158
+ /**
159
+ * Get memory backends by plugin
160
+ */
161
+ getMemoryBackendsByPlugin(pluginName: string): MemoryBackendFactory[];
162
+ /**
163
+ * Register all extension points from a plugin
164
+ */
165
+ registerAllFromPlugin(pluginName: string): void;
166
+ /**
167
+ * Clear all registrations (for testing)
168
+ */
169
+ clear(): void;
170
+ }
171
+ /**
172
+ * Plugin registry status summary
173
+ */
174
+ export interface PluginRegistryStatus {
175
+ totalPlugins: number;
176
+ states: Record<PluginLifecycleState, number>;
177
+ agentTypesRegistered: number;
178
+ taskTypesRegistered: number;
179
+ mcpToolsRegistered: number;
180
+ cliCommandsRegistered: number;
181
+ memoryBackendsRegistered: number;
182
+ }
183
+ //# sourceMappingURL=plugin-registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-registry.d.ts","sourceRoot":"","sources":["../src/plugin-registry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,gBAAgB,EAChB,UAAU,EACV,oBAAoB,EACpB,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM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AI,EAAE,MAAM,GAAG,oBAAoB,GAAG,SAAS;IAIhE;;OAEG;IACH,oBAAoB,IAAI,oBAAoB,EAAE;IAI9C;;OAEG;IACH,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,oBAAoB,EAAE;IAUrE;;OAEG;IACH,qBAAqB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAS/C;;OAEG;IACH,KAAK,IAAI,IAAI;CAQd;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;IAC7C,oBAAoB,EAAE,MAAM,CAAC;IAC7B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,wBAAwB,EAAE,MAAM,CAAC;CAClC"}
@@ -0,0 +1,457 @@
1
+ /**
2
+ * V3 Plugin Registry
3
+ * Domain-Driven Design - Plugin-Based Architecture (ADR-004)
4
+ *
5
+ * Central registry for tracking plugin state, metadata, and registrations
6
+ */
7
+ import { PluginError } from './plugin-interface.js';
8
+ /**
9
+ * Plugin registry for managing plugin lifecycle and registrations
10
+ */
11
+ export class PluginRegistry {
12
+ plugins = new Map();
13
+ agentTypes = new Map();
14
+ taskTypes = new Map();
15
+ mcpTools = new Map();
16
+ cliCommands = new Map();
17
+ memoryBackends = new Map();
18
+ /**
19
+ * Register a plugin in the registry
20
+ */
21
+ registerPlugin(plugin, initialState, context) {
22
+ if (this.plugins.has(plugin.name)) {
23
+ throw new PluginError(`Plugin '${plugin.name}' is already registered`, plugin.name, 'DUPLICATE_PLUGIN');
24
+ }
25
+ const info = {
26
+ plugin,
27
+ state: initialState,
28
+ context,
29
+ metrics: {
30
+ agentTypesRegistered: 0,
31
+ taskTypesRegistered: 0,
32
+ mcpToolsRegistered: 0,
33
+ cliCommandsRegistered: 0,
34
+ memoryBackendsRegistered: 0,
35
+ },
36
+ };
37
+ this.plugins.set(plugin.name, info);
38
+ }
39
+ /**
40
+ * Unregister a plugin from the registry
41
+ */
42
+ unregisterPlugin(pluginName) {
43
+ const info = this.plugins.get(pluginName);
44
+ if (!info) {
45
+ return false;
46
+ }
47
+ // Unregister all plugin's registrations
48
+ this.unregisterPluginAgentTypes(pluginName);
49
+ this.unregisterPluginTaskTypes(pluginName);
50
+ this.unregisterPluginMCPTools(pluginName);
51
+ this.unregisterPluginCLICommands(pluginName);
52
+ this.unregisterPluginMemoryBackends(pluginName);
53
+ // Remove plugin
54
+ return this.plugins.delete(pluginName);
55
+ }
56
+ /**
57
+ * Get a plugin by name
58
+ */
59
+ getPlugin(pluginName) {
60
+ return this.plugins.get(pluginName);
61
+ }
62
+ /**
63
+ * Get all registered plugins
64
+ */
65
+ getAllPlugins() {
66
+ return new Map(this.plugins);
67
+ }
68
+ /**
69
+ * Get all plugin names
70
+ */
71
+ getPluginNames() {
72
+ return Array.from(this.plugins.keys());
73
+ }
74
+ /**
75
+ * Check if a plugin is registered
76
+ */
77
+ hasPlugin(pluginName) {
78
+ return this.plugins.has(pluginName);
79
+ }
80
+ /**
81
+ * Get plugins by state
82
+ */
83
+ getPluginsByState(state) {
84
+ return Array.from(this.plugins.values()).filter((info) => info.state === state);
85
+ }
86
+ /**
87
+ * Get plugin count
88
+ */
89
+ getPluginCount() {
90
+ return this.plugins.size;
91
+ }
92
+ /**
93
+ * Update plugin state
94
+ */
95
+ updatePluginState(pluginName, state, error) {
96
+ const info = this.plugins.get(pluginName);
97
+ if (!info) {
98
+ throw new PluginError(`Plugin '${pluginName}' not found`, pluginName, 'INVALID_PLUGIN');
99
+ }
100
+ info.state = state;
101
+ if (state === 'initialized') {
102
+ info.initializedAt = new Date();
103
+ }
104
+ else if (state === 'shutdown') {
105
+ info.shutdownAt = new Date();
106
+ }
107
+ else if (state === 'error') {
108
+ info.error = error;
109
+ }
110
+ }
111
+ /**
112
+ * Collect and update plugin metrics
113
+ */
114
+ collectPluginMetrics(pluginName) {
115
+ const info = this.plugins.get(pluginName);
116
+ if (!info || !info.metrics) {
117
+ return;
118
+ }
119
+ const plugin = info.plugin;
120
+ // Count registered items
121
+ info.metrics.agentTypesRegistered = plugin.registerAgentTypes?.()?.length || 0;
122
+ info.metrics.taskTypesRegistered = plugin.registerTaskTypes?.()?.length || 0;
123
+ info.metrics.mcpToolsRegistered = plugin.registerMCPTools?.()?.length || 0;
124
+ info.metrics.cliCommandsRegistered = plugin.registerCLICommands?.()?.length || 0;
125
+ info.metrics.memoryBackendsRegistered = plugin.registerMemoryBackends?.()?.length || 0;
126
+ }
127
+ /**
128
+ * Get plugin status summary
129
+ */
130
+ getStatusSummary() {
131
+ const states = Array.from(this.plugins.values()).reduce((acc, info) => {
132
+ acc[info.state] = (acc[info.state] || 0) + 1;
133
+ return acc;
134
+ }, {});
135
+ return {
136
+ totalPlugins: this.plugins.size,
137
+ states,
138
+ agentTypesRegistered: this.agentTypes.size,
139
+ taskTypesRegistered: this.taskTypes.size,
140
+ mcpToolsRegistered: this.mcpTools.size,
141
+ cliCommandsRegistered: this.cliCommands.size,
142
+ memoryBackendsRegistered: this.memoryBackends.size,
143
+ };
144
+ }
145
+ // =============================================================================
146
+ // Agent Type Registry
147
+ // =============================================================================
148
+ /**
149
+ * Register agent types from a plugin
150
+ */
151
+ registerAgentTypes(pluginName) {
152
+ const info = this.plugins.get(pluginName);
153
+ if (!info) {
154
+ throw new PluginError(`Plugin '${pluginName}' not found`, pluginName, 'INVALID_PLUGIN');
155
+ }
156
+ const agentTypes = info.plugin.registerAgentTypes?.();
157
+ if (!agentTypes || agentTypes.length === 0) {
158
+ return;
159
+ }
160
+ for (const definition of agentTypes) {
161
+ if (this.agentTypes.has(definition.type)) {
162
+ throw new PluginError(`Agent type '${definition.type}' is already registered by plugin '${this.agentTypes.get(definition.type)?.plugin}'`, pluginName, 'DUPLICATE_PLUGIN');
163
+ }
164
+ this.agentTypes.set(definition.type, { plugin: pluginName, definition });
165
+ }
166
+ }
167
+ /**
168
+ * Unregister agent types from a plugin
169
+ */
170
+ unregisterPluginAgentTypes(pluginName) {
171
+ for (const [type, entry] of Array.from(this.agentTypes.entries())) {
172
+ if (entry.plugin === pluginName) {
173
+ this.agentTypes.delete(type);
174
+ }
175
+ }
176
+ }
177
+ /**
178
+ * Get agent type definition
179
+ */
180
+ getAgentType(type) {
181
+ return this.agentTypes.get(type)?.definition;
182
+ }
183
+ /**
184
+ * Get all agent types
185
+ */
186
+ getAllAgentTypes() {
187
+ return Array.from(this.agentTypes.values()).map((entry) => entry.definition);
188
+ }
189
+ /**
190
+ * Get agent types by plugin
191
+ */
192
+ getAgentTypesByPlugin(pluginName) {
193
+ return Array.from(this.agentTypes.values())
194
+ .filter((entry) => entry.plugin === pluginName)
195
+ .map((entry) => entry.definition);
196
+ }
197
+ // =============================================================================
198
+ // Task Type Registry
199
+ // =============================================================================
200
+ /**
201
+ * Register task types from a plugin
202
+ */
203
+ registerTaskTypes(pluginName) {
204
+ const info = this.plugins.get(pluginName);
205
+ if (!info) {
206
+ throw new PluginError(`Plugin '${pluginName}' not found`, pluginName, 'INVALID_PLUGIN');
207
+ }
208
+ const taskTypes = info.plugin.registerTaskTypes?.();
209
+ if (!taskTypes || taskTypes.length === 0) {
210
+ return;
211
+ }
212
+ for (const definition of taskTypes) {
213
+ if (this.taskTypes.has(definition.type)) {
214
+ throw new PluginError(`Task type '${definition.type}' is already registered by plugin '${this.taskTypes.get(definition.type)?.plugin}'`, pluginName, 'DUPLICATE_PLUGIN');
215
+ }
216
+ this.taskTypes.set(definition.type, { plugin: pluginName, definition });
217
+ }
218
+ }
219
+ /**
220
+ * Unregister task types from a plugin
221
+ */
222
+ unregisterPluginTaskTypes(pluginName) {
223
+ for (const [type, entry] of Array.from(this.taskTypes.entries())) {
224
+ if (entry.plugin === pluginName) {
225
+ this.taskTypes.delete(type);
226
+ }
227
+ }
228
+ }
229
+ /**
230
+ * Get task type definition
231
+ */
232
+ getTaskType(type) {
233
+ return this.taskTypes.get(type)?.definition;
234
+ }
235
+ /**
236
+ * Get all task types
237
+ */
238
+ getAllTaskTypes() {
239
+ return Array.from(this.taskTypes.values()).map((entry) => entry.definition);
240
+ }
241
+ /**
242
+ * Get task types by plugin
243
+ */
244
+ getTaskTypesByPlugin(pluginName) {
245
+ return Array.from(this.taskTypes.values())
246
+ .filter((entry) => entry.plugin === pluginName)
247
+ .map((entry) => entry.definition);
248
+ }
249
+ // =============================================================================
250
+ // MCP Tool Registry
251
+ // =============================================================================
252
+ /**
253
+ * Register MCP tools from a plugin
254
+ */
255
+ registerMCPTools(pluginName) {
256
+ const info = this.plugins.get(pluginName);
257
+ if (!info) {
258
+ throw new PluginError(`Plugin '${pluginName}' not found`, pluginName, 'INVALID_PLUGIN');
259
+ }
260
+ const mcpTools = info.plugin.registerMCPTools?.();
261
+ if (!mcpTools || mcpTools.length === 0) {
262
+ return;
263
+ }
264
+ for (const definition of mcpTools) {
265
+ if (this.mcpTools.has(definition.name)) {
266
+ throw new PluginError(`MCP tool '${definition.name}' is already registered by plugin '${this.mcpTools.get(definition.name)?.plugin}'`, pluginName, 'DUPLICATE_PLUGIN');
267
+ }
268
+ // Add plugin metadata
269
+ definition.pluginName = pluginName;
270
+ this.mcpTools.set(definition.name, { plugin: pluginName, definition });
271
+ }
272
+ }
273
+ /**
274
+ * Unregister MCP tools from a plugin
275
+ */
276
+ unregisterPluginMCPTools(pluginName) {
277
+ for (const [name, entry] of Array.from(this.mcpTools.entries())) {
278
+ if (entry.plugin === pluginName) {
279
+ this.mcpTools.delete(name);
280
+ }
281
+ }
282
+ }
283
+ /**
284
+ * Get MCP tool definition
285
+ */
286
+ getMCPTool(name) {
287
+ return this.mcpTools.get(name)?.definition;
288
+ }
289
+ /**
290
+ * Get all MCP tools
291
+ */
292
+ getAllMCPTools() {
293
+ return Array.from(this.mcpTools.values()).map((entry) => entry.definition);
294
+ }
295
+ /**
296
+ * Get MCP tools by plugin
297
+ */
298
+ getMCPToolsByPlugin(pluginName) {
299
+ return Array.from(this.mcpTools.values())
300
+ .filter((entry) => entry.plugin === pluginName)
301
+ .map((entry) => entry.definition);
302
+ }
303
+ // =============================================================================
304
+ // CLI Command Registry
305
+ // =============================================================================
306
+ /**
307
+ * Register CLI commands from a plugin
308
+ */
309
+ registerCLICommands(pluginName) {
310
+ const info = this.plugins.get(pluginName);
311
+ if (!info) {
312
+ throw new PluginError(`Plugin '${pluginName}' not found`, pluginName, 'INVALID_PLUGIN');
313
+ }
314
+ const cliCommands = info.plugin.registerCLICommands?.();
315
+ if (!cliCommands || cliCommands.length === 0) {
316
+ return;
317
+ }
318
+ for (const definition of cliCommands) {
319
+ if (this.cliCommands.has(definition.name)) {
320
+ throw new PluginError(`CLI command '${definition.name}' is already registered by plugin '${this.cliCommands.get(definition.name)?.plugin}'`, pluginName, 'DUPLICATE_PLUGIN');
321
+ }
322
+ this.cliCommands.set(definition.name, { plugin: pluginName, definition });
323
+ // Register aliases
324
+ if (definition.aliases) {
325
+ for (const alias of definition.aliases) {
326
+ if (this.cliCommands.has(alias)) {
327
+ throw new PluginError(`CLI command alias '${alias}' is already registered`, pluginName, 'DUPLICATE_PLUGIN');
328
+ }
329
+ this.cliCommands.set(alias, { plugin: pluginName, definition });
330
+ }
331
+ }
332
+ }
333
+ }
334
+ /**
335
+ * Unregister CLI commands from a plugin
336
+ */
337
+ unregisterPluginCLICommands(pluginName) {
338
+ for (const [name, entry] of Array.from(this.cliCommands.entries())) {
339
+ if (entry.plugin === pluginName) {
340
+ this.cliCommands.delete(name);
341
+ }
342
+ }
343
+ }
344
+ /**
345
+ * Get CLI command definition
346
+ */
347
+ getCLICommand(name) {
348
+ return this.cliCommands.get(name)?.definition;
349
+ }
350
+ /**
351
+ * Get all CLI commands
352
+ */
353
+ getAllCLICommands() {
354
+ const seen = new Set();
355
+ return Array.from(this.cliCommands.values())
356
+ .map((entry) => entry.definition)
357
+ .filter((def) => {
358
+ if (seen.has(def))
359
+ return false;
360
+ seen.add(def);
361
+ return true;
362
+ });
363
+ }
364
+ /**
365
+ * Get CLI commands by plugin
366
+ */
367
+ getCLICommandsByPlugin(pluginName) {
368
+ const seen = new Set();
369
+ return Array.from(this.cliCommands.values())
370
+ .filter((entry) => entry.plugin === pluginName)
371
+ .map((entry) => entry.definition)
372
+ .filter((def) => {
373
+ if (seen.has(def))
374
+ return false;
375
+ seen.add(def);
376
+ return true;
377
+ });
378
+ }
379
+ // =============================================================================
380
+ // Memory Backend Registry
381
+ // =============================================================================
382
+ /**
383
+ * Register memory backends from a plugin
384
+ */
385
+ registerMemoryBackends(pluginName) {
386
+ const info = this.plugins.get(pluginName);
387
+ if (!info) {
388
+ throw new PluginError(`Plugin '${pluginName}' not found`, pluginName, 'INVALID_PLUGIN');
389
+ }
390
+ const memoryBackends = info.plugin.registerMemoryBackends?.();
391
+ if (!memoryBackends || memoryBackends.length === 0) {
392
+ return;
393
+ }
394
+ for (const factory of memoryBackends) {
395
+ if (this.memoryBackends.has(factory.name)) {
396
+ throw new PluginError(`Memory backend '${factory.name}' is already registered by plugin '${this.memoryBackends.get(factory.name)?.plugin}'`, pluginName, 'DUPLICATE_PLUGIN');
397
+ }
398
+ this.memoryBackends.set(factory.name, { plugin: pluginName, factory });
399
+ }
400
+ }
401
+ /**
402
+ * Unregister memory backends from a plugin
403
+ */
404
+ unregisterPluginMemoryBackends(pluginName) {
405
+ for (const [name, entry] of Array.from(this.memoryBackends.entries())) {
406
+ if (entry.plugin === pluginName) {
407
+ this.memoryBackends.delete(name);
408
+ }
409
+ }
410
+ }
411
+ /**
412
+ * Get memory backend factory
413
+ */
414
+ getMemoryBackend(name) {
415
+ return this.memoryBackends.get(name)?.factory;
416
+ }
417
+ /**
418
+ * Get all memory backends
419
+ */
420
+ getAllMemoryBackends() {
421
+ return Array.from(this.memoryBackends.values()).map((entry) => entry.factory);
422
+ }
423
+ /**
424
+ * Get memory backends by plugin
425
+ */
426
+ getMemoryBackendsByPlugin(pluginName) {
427
+ return Array.from(this.memoryBackends.values())
428
+ .filter((entry) => entry.plugin === pluginName)
429
+ .map((entry) => entry.factory);
430
+ }
431
+ // =============================================================================
432
+ // Bulk Registration
433
+ // =============================================================================
434
+ /**
435
+ * Register all extension points from a plugin
436
+ */
437
+ registerAllFromPlugin(pluginName) {
438
+ this.registerAgentTypes(pluginName);
439
+ this.registerTaskTypes(pluginName);
440
+ this.registerMCPTools(pluginName);
441
+ this.registerCLICommands(pluginName);
442
+ this.registerMemoryBackends(pluginName);
443
+ this.collectPluginMetrics(pluginName);
444
+ }
445
+ /**
446
+ * Clear all registrations (for testing)
447
+ */
448
+ clear() {
449
+ this.plugins.clear();
450
+ this.agentTypes.clear();
451
+ this.taskTypes.clear();
452
+ this.mcpTools.clear();
453
+ this.cliCommands.clear();
454
+ this.memoryBackends.clear();
455
+ }
456
+ }
457
+ //# sourceMappingURL=plugin-registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-registry.js","sourceRoot":"","sources":["../src/plugin-registry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAaH,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD;;GAEG;AACH,MAAM,OAAO,cAAc;IACjB,OAAO,GAAG,IAAI,GAAG,EAAsB,CAAC;IACxC,UAAU,GAAG,IAAI,GAAG,EAA+D,CAAC;IACpF,SAAS,GAAG,IAAI,GAAG,EAA8D,CAAC;IAClF,QAAQ,GAAG,IAAI,GAAG,EAA6D,CAAC;IAChF,WAAW,GAAG,IAAI,GAAG,EAAgE,CAAC;IACtF,cAAc,GAAG,IAAI,GAAG,EAA6D,CAAC;IAE9F;;OAEG;IACH,cAAc,CACZ,MAAwB,EACxB,YAAkC,EAClC,OAAsB;QAEtB,IAAI,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;YAClC,MAAM,IAAI,WAAW,CACnB,WAAW,MAAM,CAAC,IAAI,yBAAyB,EAC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QAAQ,CAAC,KAAK,EAAE,CAAC;QACtB,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;QACzB,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC;IAC9B,CAAC;CACF"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Plugins System - ADR-004 Implementation
3
+ *
4
+ * Plugin architecture for extending Claude Flow functionality.
5
+ *
6
+ * @module v3/shared/plugins
7
+ */
8
+ export type { PluginConfig, PluginContext, PluginEvent, PluginEventHandler, ClaudeFlowPlugin, PluginMetadata, IPluginRegistry, IPluginLoader, } from './types.js';
9
+ export { HiveMindPlugin, createHiveMindPlugin, type HiveMindConfig, type CollectiveDecision, type EmergentPattern, MaestroPlugin, createMaestroPlugin, type MaestroConfig, type WorkflowStep, type Workflow, type OrchestrationResult, } from './official/index.js';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugins/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,YAAY,EACV,YAAY,EACZ,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,aAAa,GACd,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,aAAa,EACb,mBAAmB,EACnB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,mBAAmB,GACzB,MAAM,qBAAqB,CAAC"}