claude-flow 3.0.0-alpha.7 → 3.0.0-alpha.9

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 (924) hide show
  1. package/README.md +991 -900
  2. package/{v3/@claude-flow/cli/dist → dist}/src/commands/daemon.d.ts.map +1 -1
  3. package/{v3/@claude-flow/cli/dist → dist}/src/commands/daemon.js +182 -8
  4. package/dist/src/commands/daemon.js.map +1 -0
  5. package/{v3/@claude-flow/cli/dist → dist}/src/index.d.ts +1 -1
  6. package/{v3/@claude-flow/cli/dist → dist}/src/index.d.ts.map +1 -1
  7. package/{v3/@claude-flow/cli/dist → dist}/src/index.js +21 -0
  8. package/dist/src/index.js.map +1 -0
  9. package/{v3/@claude-flow/cli/dist → dist}/src/output.d.ts +16 -0
  10. package/dist/src/output.d.ts.map +1 -0
  11. package/{v3/@claude-flow/cli/dist → dist}/src/output.js +42 -0
  12. package/dist/src/output.js.map +1 -0
  13. package/{v3/@claude-flow/cli/dist → dist}/src/services/worker-daemon.d.ts +29 -2
  14. package/dist/src/services/worker-daemon.d.ts.map +1 -0
  15. package/{v3/@claude-flow/cli/dist → dist}/src/services/worker-daemon.js +123 -20
  16. package/dist/src/services/worker-daemon.js.map +1 -0
  17. package/dist/tsconfig.tsbuildinfo +1 -0
  18. package/package.json +13 -57
  19. package/src/commands/agent.ts +955 -0
  20. package/src/commands/config.ts +452 -0
  21. package/src/commands/daemon.ts +598 -0
  22. package/src/commands/hive-mind.ts +928 -0
  23. package/src/commands/hooks.ts +2603 -0
  24. package/src/commands/index.ts +118 -0
  25. package/src/commands/init.ts +597 -0
  26. package/src/commands/mcp.ts +753 -0
  27. package/src/commands/memory.ts +1161 -0
  28. package/src/commands/migrate.ts +447 -0
  29. package/src/commands/process.ts +695 -0
  30. package/src/commands/session.ts +891 -0
  31. package/src/commands/start.ts +457 -0
  32. package/src/commands/status.ts +736 -0
  33. package/src/commands/swarm.ts +648 -0
  34. package/src/commands/task.ts +792 -0
  35. package/src/commands/workflow.ts +742 -0
  36. package/src/config-adapter.ts +210 -0
  37. package/src/index.ts +427 -0
  38. package/src/infrastructure/in-memory-repositories.ts +310 -0
  39. package/src/init/claudemd-generator.ts +631 -0
  40. package/src/init/executor.ts +762 -0
  41. package/src/init/helpers-generator.ts +628 -0
  42. package/src/init/index.ts +60 -0
  43. package/src/init/mcp-generator.ts +83 -0
  44. package/src/init/settings-generator.ts +284 -0
  45. package/src/init/statusline-generator.ts +211 -0
  46. package/src/init/types.ts +447 -0
  47. package/src/mcp-client.ts +241 -0
  48. package/src/mcp-server.ts +577 -0
  49. package/src/mcp-tools/agent-tools.ts +466 -0
  50. package/src/mcp-tools/config-tools.ts +370 -0
  51. package/src/mcp-tools/hive-mind-tools.ts +521 -0
  52. package/src/mcp-tools/hooks-tools.ts +1888 -0
  53. package/src/mcp-tools/index.ts +16 -0
  54. package/src/mcp-tools/memory-tools.ts +270 -0
  55. package/src/mcp-tools/session-tools.ts +359 -0
  56. package/src/mcp-tools/swarm-tools.ts +105 -0
  57. package/src/mcp-tools/task-tools.ts +347 -0
  58. package/src/mcp-tools/types.ts +33 -0
  59. package/src/mcp-tools/workflow-tools.ts +573 -0
  60. package/src/output.ts +639 -0
  61. package/src/parser.ts +417 -0
  62. package/src/prompt.ts +619 -0
  63. package/src/services/index.ts +15 -0
  64. package/src/services/worker-daemon.ts +726 -0
  65. package/src/types.ts +287 -0
  66. package/.claude/.claude-flow/metrics/system-metrics.json +0 -2606
  67. package/.claude/agents/MIGRATION_SUMMARY.md +0 -222
  68. package/.claude/agents/README.md +0 -89
  69. package/.claude/agents/analysis/analyze-code-quality.md +0 -180
  70. package/.claude/agents/analysis/code-analyzer.md +0 -209
  71. package/.claude/agents/analysis/code-review/analyze-code-quality.md +0 -180
  72. package/.claude/agents/architecture/system-design/arch-system-design.md +0 -156
  73. package/.claude/agents/base-template-generator.md +0 -42
  74. package/.claude/agents/consensus/README.md +0 -253
  75. package/.claude/agents/consensus/byzantine-coordinator.md +0 -63
  76. package/.claude/agents/consensus/crdt-synchronizer.md +0 -997
  77. package/.claude/agents/consensus/gossip-coordinator.md +0 -63
  78. package/.claude/agents/consensus/performance-benchmarker.md +0 -851
  79. package/.claude/agents/consensus/quorum-manager.md +0 -823
  80. package/.claude/agents/consensus/raft-manager.md +0 -63
  81. package/.claude/agents/consensus/security-manager.md +0 -622
  82. package/.claude/agents/core/coder.md +0 -266
  83. package/.claude/agents/core/planner.md +0 -168
  84. package/.claude/agents/core/researcher.md +0 -190
  85. package/.claude/agents/core/reviewer.md +0 -326
  86. package/.claude/agents/core/tester.md +0 -319
  87. package/.claude/agents/custom/test-long-runner.md +0 -44
  88. package/.claude/agents/data/ml/data-ml-model.md +0 -193
  89. package/.claude/agents/database-specialist.yaml +0 -21
  90. package/.claude/agents/development/backend/dev-backend-api.md +0 -142
  91. package/.claude/agents/development/dev-backend-api.md +0 -345
  92. package/.claude/agents/devops/ci-cd/ops-cicd-github.md +0 -164
  93. package/.claude/agents/documentation/api-docs/docs-api-openapi.md +0 -174
  94. package/.claude/agents/flow-nexus/app-store.md +0 -88
  95. package/.claude/agents/flow-nexus/authentication.md +0 -69
  96. package/.claude/agents/flow-nexus/challenges.md +0 -81
  97. package/.claude/agents/flow-nexus/neural-network.md +0 -88
  98. package/.claude/agents/flow-nexus/payments.md +0 -83
  99. package/.claude/agents/flow-nexus/sandbox.md +0 -76
  100. package/.claude/agents/flow-nexus/swarm.md +0 -76
  101. package/.claude/agents/flow-nexus/user-tools.md +0 -96
  102. package/.claude/agents/flow-nexus/workflow.md +0 -84
  103. package/.claude/agents/github/code-review-swarm.md +0 -538
  104. package/.claude/agents/github/github-modes.md +0 -173
  105. package/.claude/agents/github/issue-tracker.md +0 -319
  106. package/.claude/agents/github/multi-repo-swarm.md +0 -553
  107. package/.claude/agents/github/pr-manager.md +0 -191
  108. package/.claude/agents/github/project-board-sync.md +0 -509
  109. package/.claude/agents/github/release-manager.md +0 -367
  110. package/.claude/agents/github/release-swarm.md +0 -583
  111. package/.claude/agents/github/repo-architect.md +0 -398
  112. package/.claude/agents/github/swarm-issue.md +0 -573
  113. package/.claude/agents/github/swarm-pr.md +0 -428
  114. package/.claude/agents/github/sync-coordinator.md +0 -452
  115. package/.claude/agents/github/workflow-automation.md +0 -635
  116. package/.claude/agents/goal/agent.md +0 -816
  117. package/.claude/agents/goal/code-goal-planner.md +0 -446
  118. package/.claude/agents/goal/goal-planner.md +0 -168
  119. package/.claude/agents/hive-mind/collective-intelligence-coordinator.md +0 -130
  120. package/.claude/agents/hive-mind/queen-coordinator.md +0 -203
  121. package/.claude/agents/hive-mind/scout-explorer.md +0 -242
  122. package/.claude/agents/hive-mind/swarm-memory-manager.md +0 -193
  123. package/.claude/agents/hive-mind/worker-specialist.md +0 -217
  124. package/.claude/agents/index.yaml +0 -17
  125. package/.claude/agents/neural/safla-neural.md +0 -74
  126. package/.claude/agents/optimization/README.md +0 -250
  127. package/.claude/agents/optimization/benchmark-suite.md +0 -665
  128. package/.claude/agents/optimization/load-balancer.md +0 -431
  129. package/.claude/agents/optimization/performance-monitor.md +0 -672
  130. package/.claude/agents/optimization/resource-allocator.md +0 -674
  131. package/.claude/agents/optimization/topology-optimizer.md +0 -808
  132. package/.claude/agents/payments/agentic-payments.md +0 -126
  133. package/.claude/agents/project-coordinator.yaml +0 -15
  134. package/.claude/agents/python-specialist.yaml +0 -21
  135. package/.claude/agents/reasoning/agent.md +0 -816
  136. package/.claude/agents/reasoning/goal-planner.md +0 -73
  137. package/.claude/agents/security-auditor.yaml +0 -20
  138. package/.claude/agents/sona/sona-learning-optimizer.md +0 -496
  139. package/.claude/agents/sparc/architecture.md +0 -472
  140. package/.claude/agents/sparc/pseudocode.md +0 -318
  141. package/.claude/agents/sparc/refinement.md +0 -525
  142. package/.claude/agents/sparc/specification.md +0 -276
  143. package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +0 -226
  144. package/.claude/agents/sublinear/consensus-coordinator.md +0 -338
  145. package/.claude/agents/sublinear/matrix-optimizer.md +0 -185
  146. package/.claude/agents/sublinear/pagerank-analyzer.md +0 -299
  147. package/.claude/agents/sublinear/performance-optimizer.md +0 -368
  148. package/.claude/agents/sublinear/trading-predictor.md +0 -246
  149. package/.claude/agents/swarm/README.md +0 -190
  150. package/.claude/agents/swarm/adaptive-coordinator.md +0 -396
  151. package/.claude/agents/swarm/hierarchical-coordinator.md +0 -327
  152. package/.claude/agents/swarm/mesh-coordinator.md +0 -392
  153. package/.claude/agents/templates/automation-smart-agent.md +0 -205
  154. package/.claude/agents/templates/coordinator-swarm-init.md +0 -105
  155. package/.claude/agents/templates/github-pr-manager.md +0 -177
  156. package/.claude/agents/templates/implementer-sparc-coder.md +0 -259
  157. package/.claude/agents/templates/memory-coordinator.md +0 -187
  158. package/.claude/agents/templates/migration-plan.md +0 -746
  159. package/.claude/agents/templates/orchestrator-task.md +0 -139
  160. package/.claude/agents/templates/performance-analyzer.md +0 -199
  161. package/.claude/agents/templates/sparc-coordinator.md +0 -183
  162. package/.claude/agents/testing/production-validator.md +0 -395
  163. package/.claude/agents/testing/tdd-london-swarm.md +0 -244
  164. package/.claude/agents/testing/unit/tdd-london-swarm.md +0 -244
  165. package/.claude/agents/testing/validation/production-validator.md +0 -395
  166. package/.claude/agents/typescript-specialist.yaml +0 -21
  167. package/.claude/agents/v3/database-specialist.yaml +0 -21
  168. package/.claude/agents/v3/index.yaml +0 -17
  169. package/.claude/agents/v3/project-coordinator.yaml +0 -15
  170. package/.claude/agents/v3/python-specialist.yaml +0 -21
  171. package/.claude/agents/v3/test-architect.yaml +0 -20
  172. package/.claude/agents/v3/typescript-specialist.yaml +0 -21
  173. package/.claude/agents/v3/v3-integration-architect.md +0 -346
  174. package/.claude/agents/v3/v3-memory-specialist.md +0 -318
  175. package/.claude/agents/v3/v3-performance-engineer.md +0 -397
  176. package/.claude/agents/v3/v3-queen-coordinator.md +0 -98
  177. package/.claude/agents/v3/v3-security-architect.md +0 -174
  178. package/.claude/checkpoints/1767754460.json +0 -8
  179. package/.claude/commands/agents/README.md +0 -10
  180. package/.claude/commands/agents/agent-capabilities.md +0 -21
  181. package/.claude/commands/agents/agent-coordination.md +0 -28
  182. package/.claude/commands/agents/agent-spawning.md +0 -28
  183. package/.claude/commands/agents/agent-types.md +0 -26
  184. package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +0 -54
  185. package/.claude/commands/analysis/README.md +0 -9
  186. package/.claude/commands/analysis/bottleneck-detect.md +0 -162
  187. package/.claude/commands/analysis/performance-bottlenecks.md +0 -59
  188. package/.claude/commands/analysis/performance-report.md +0 -25
  189. package/.claude/commands/analysis/token-efficiency.md +0 -45
  190. package/.claude/commands/analysis/token-usage.md +0 -25
  191. package/.claude/commands/automation/README.md +0 -9
  192. package/.claude/commands/automation/auto-agent.md +0 -122
  193. package/.claude/commands/automation/self-healing.md +0 -106
  194. package/.claude/commands/automation/session-memory.md +0 -90
  195. package/.claude/commands/automation/smart-agents.md +0 -73
  196. package/.claude/commands/automation/smart-spawn.md +0 -25
  197. package/.claude/commands/automation/workflow-select.md +0 -25
  198. package/.claude/commands/claude-flow-help.md +0 -103
  199. package/.claude/commands/claude-flow-memory.md +0 -107
  200. package/.claude/commands/claude-flow-swarm.md +0 -205
  201. package/.claude/commands/coordination/README.md +0 -9
  202. package/.claude/commands/coordination/agent-spawn.md +0 -25
  203. package/.claude/commands/coordination/init.md +0 -44
  204. package/.claude/commands/coordination/orchestrate.md +0 -43
  205. package/.claude/commands/coordination/spawn.md +0 -45
  206. package/.claude/commands/coordination/swarm-init.md +0 -85
  207. package/.claude/commands/coordination/task-orchestrate.md +0 -25
  208. package/.claude/commands/flow-nexus/app-store.md +0 -124
  209. package/.claude/commands/flow-nexus/challenges.md +0 -120
  210. package/.claude/commands/flow-nexus/login-registration.md +0 -65
  211. package/.claude/commands/flow-nexus/neural-network.md +0 -134
  212. package/.claude/commands/flow-nexus/payments.md +0 -116
  213. package/.claude/commands/flow-nexus/sandbox.md +0 -83
  214. package/.claude/commands/flow-nexus/swarm.md +0 -87
  215. package/.claude/commands/flow-nexus/user-tools.md +0 -152
  216. package/.claude/commands/flow-nexus/workflow.md +0 -115
  217. package/.claude/commands/github/README.md +0 -11
  218. package/.claude/commands/github/code-review-swarm.md +0 -514
  219. package/.claude/commands/github/code-review.md +0 -25
  220. package/.claude/commands/github/github-modes.md +0 -147
  221. package/.claude/commands/github/github-swarm.md +0 -121
  222. package/.claude/commands/github/issue-tracker.md +0 -292
  223. package/.claude/commands/github/issue-triage.md +0 -25
  224. package/.claude/commands/github/multi-repo-swarm.md +0 -519
  225. package/.claude/commands/github/pr-enhance.md +0 -26
  226. package/.claude/commands/github/pr-manager.md +0 -170
  227. package/.claude/commands/github/project-board-sync.md +0 -471
  228. package/.claude/commands/github/release-manager.md +0 -338
  229. package/.claude/commands/github/release-swarm.md +0 -544
  230. package/.claude/commands/github/repo-analyze.md +0 -25
  231. package/.claude/commands/github/repo-architect.md +0 -367
  232. package/.claude/commands/github/swarm-issue.md +0 -482
  233. package/.claude/commands/github/swarm-pr.md +0 -285
  234. package/.claude/commands/github/sync-coordinator.md +0 -301
  235. package/.claude/commands/github/workflow-automation.md +0 -442
  236. package/.claude/commands/hive-mind/README.md +0 -17
  237. package/.claude/commands/hive-mind/hive-mind-consensus.md +0 -8
  238. package/.claude/commands/hive-mind/hive-mind-init.md +0 -18
  239. package/.claude/commands/hive-mind/hive-mind-memory.md +0 -8
  240. package/.claude/commands/hive-mind/hive-mind-metrics.md +0 -8
  241. package/.claude/commands/hive-mind/hive-mind-resume.md +0 -8
  242. package/.claude/commands/hive-mind/hive-mind-sessions.md +0 -8
  243. package/.claude/commands/hive-mind/hive-mind-spawn.md +0 -21
  244. package/.claude/commands/hive-mind/hive-mind-status.md +0 -8
  245. package/.claude/commands/hive-mind/hive-mind-stop.md +0 -8
  246. package/.claude/commands/hive-mind/hive-mind-wizard.md +0 -8
  247. package/.claude/commands/hive-mind/hive-mind.md +0 -27
  248. package/.claude/commands/hooks/README.md +0 -11
  249. package/.claude/commands/hooks/overview.md +0 -58
  250. package/.claude/commands/hooks/post-edit.md +0 -117
  251. package/.claude/commands/hooks/post-task.md +0 -112
  252. package/.claude/commands/hooks/pre-edit.md +0 -113
  253. package/.claude/commands/hooks/pre-task.md +0 -111
  254. package/.claude/commands/hooks/session-end.md +0 -118
  255. package/.claude/commands/hooks/setup.md +0 -103
  256. package/.claude/commands/memory/README.md +0 -9
  257. package/.claude/commands/memory/memory-persist.md +0 -25
  258. package/.claude/commands/memory/memory-search.md +0 -25
  259. package/.claude/commands/memory/memory-usage.md +0 -25
  260. package/.claude/commands/memory/neural.md +0 -47
  261. package/.claude/commands/monitoring/README.md +0 -9
  262. package/.claude/commands/monitoring/agent-metrics.md +0 -25
  263. package/.claude/commands/monitoring/agents.md +0 -44
  264. package/.claude/commands/monitoring/real-time-view.md +0 -25
  265. package/.claude/commands/monitoring/status.md +0 -46
  266. package/.claude/commands/monitoring/swarm-monitor.md +0 -25
  267. package/.claude/commands/optimization/README.md +0 -9
  268. package/.claude/commands/optimization/auto-topology.md +0 -62
  269. package/.claude/commands/optimization/cache-manage.md +0 -25
  270. package/.claude/commands/optimization/parallel-execute.md +0 -25
  271. package/.claude/commands/optimization/parallel-execution.md +0 -50
  272. package/.claude/commands/optimization/topology-optimize.md +0 -25
  273. package/.claude/commands/pair/README.md +0 -261
  274. package/.claude/commands/pair/commands.md +0 -546
  275. package/.claude/commands/pair/config.md +0 -510
  276. package/.claude/commands/pair/examples.md +0 -512
  277. package/.claude/commands/pair/modes.md +0 -348
  278. package/.claude/commands/pair/session.md +0 -407
  279. package/.claude/commands/pair/start.md +0 -209
  280. package/.claude/commands/sparc/analyzer.md +0 -52
  281. package/.claude/commands/sparc/architect.md +0 -53
  282. package/.claude/commands/sparc/ask.md +0 -97
  283. package/.claude/commands/sparc/batch-executor.md +0 -54
  284. package/.claude/commands/sparc/code.md +0 -89
  285. package/.claude/commands/sparc/coder.md +0 -54
  286. package/.claude/commands/sparc/debug.md +0 -83
  287. package/.claude/commands/sparc/debugger.md +0 -54
  288. package/.claude/commands/sparc/designer.md +0 -53
  289. package/.claude/commands/sparc/devops.md +0 -109
  290. package/.claude/commands/sparc/docs-writer.md +0 -80
  291. package/.claude/commands/sparc/documenter.md +0 -54
  292. package/.claude/commands/sparc/innovator.md +0 -54
  293. package/.claude/commands/sparc/integration.md +0 -83
  294. package/.claude/commands/sparc/mcp.md +0 -117
  295. package/.claude/commands/sparc/memory-manager.md +0 -54
  296. package/.claude/commands/sparc/optimizer.md +0 -54
  297. package/.claude/commands/sparc/orchestrator.md +0 -132
  298. package/.claude/commands/sparc/post-deployment-monitoring-mode.md +0 -83
  299. package/.claude/commands/sparc/refinement-optimization-mode.md +0 -83
  300. package/.claude/commands/sparc/researcher.md +0 -54
  301. package/.claude/commands/sparc/reviewer.md +0 -54
  302. package/.claude/commands/sparc/security-review.md +0 -80
  303. package/.claude/commands/sparc/sparc-modes.md +0 -174
  304. package/.claude/commands/sparc/sparc.md +0 -111
  305. package/.claude/commands/sparc/spec-pseudocode.md +0 -80
  306. package/.claude/commands/sparc/supabase-admin.md +0 -348
  307. package/.claude/commands/sparc/swarm-coordinator.md +0 -54
  308. package/.claude/commands/sparc/tdd.md +0 -54
  309. package/.claude/commands/sparc/tester.md +0 -54
  310. package/.claude/commands/sparc/tutorial.md +0 -79
  311. package/.claude/commands/sparc/workflow-manager.md +0 -54
  312. package/.claude/commands/sparc.md +0 -166
  313. package/.claude/commands/stream-chain/pipeline.md +0 -121
  314. package/.claude/commands/stream-chain/run.md +0 -70
  315. package/.claude/commands/swarm/README.md +0 -15
  316. package/.claude/commands/swarm/analysis.md +0 -95
  317. package/.claude/commands/swarm/development.md +0 -96
  318. package/.claude/commands/swarm/examples.md +0 -168
  319. package/.claude/commands/swarm/maintenance.md +0 -102
  320. package/.claude/commands/swarm/optimization.md +0 -117
  321. package/.claude/commands/swarm/research.md +0 -136
  322. package/.claude/commands/swarm/swarm-analysis.md +0 -8
  323. package/.claude/commands/swarm/swarm-background.md +0 -8
  324. package/.claude/commands/swarm/swarm-init.md +0 -19
  325. package/.claude/commands/swarm/swarm-modes.md +0 -8
  326. package/.claude/commands/swarm/swarm-monitor.md +0 -8
  327. package/.claude/commands/swarm/swarm-spawn.md +0 -19
  328. package/.claude/commands/swarm/swarm-status.md +0 -8
  329. package/.claude/commands/swarm/swarm-strategies.md +0 -8
  330. package/.claude/commands/swarm/swarm.md +0 -27
  331. package/.claude/commands/swarm/testing.md +0 -131
  332. package/.claude/commands/training/README.md +0 -9
  333. package/.claude/commands/training/model-update.md +0 -25
  334. package/.claude/commands/training/neural-patterns.md +0 -74
  335. package/.claude/commands/training/neural-train.md +0 -25
  336. package/.claude/commands/training/pattern-learn.md +0 -25
  337. package/.claude/commands/training/specialization.md +0 -63
  338. package/.claude/commands/truth/start.md +0 -143
  339. package/.claude/commands/verify/check.md +0 -50
  340. package/.claude/commands/verify/start.md +0 -128
  341. package/.claude/commands/workflows/README.md +0 -9
  342. package/.claude/commands/workflows/development.md +0 -78
  343. package/.claude/commands/workflows/research.md +0 -63
  344. package/.claude/commands/workflows/workflow-create.md +0 -25
  345. package/.claude/commands/workflows/workflow-execute.md +0 -25
  346. package/.claude/commands/workflows/workflow-export.md +0 -25
  347. package/.claude/config/v3-dependency-optimization.json +0 -266
  348. package/.claude/config/v3-performance-targets.json +0 -251
  349. package/.claude/helpers/README.md +0 -97
  350. package/.claude/helpers/adr-compliance.sh +0 -186
  351. package/.claude/helpers/auto-commit.sh +0 -178
  352. package/.claude/helpers/checkpoint-manager.sh +0 -251
  353. package/.claude/helpers/daemon-manager.sh +0 -252
  354. package/.claude/helpers/ddd-tracker.sh +0 -144
  355. package/.claude/helpers/github-safe.js +0 -106
  356. package/.claude/helpers/github-setup.sh +0 -28
  357. package/.claude/helpers/guidance-hook.sh +0 -13
  358. package/.claude/helpers/guidance-hooks.sh +0 -102
  359. package/.claude/helpers/health-monitor.sh +0 -108
  360. package/.claude/helpers/learning-hooks.sh +0 -329
  361. package/.claude/helpers/learning-optimizer.sh +0 -127
  362. package/.claude/helpers/learning-service.mjs +0 -1097
  363. package/.claude/helpers/metrics-db.mjs +0 -474
  364. package/.claude/helpers/pattern-consolidator.sh +0 -86
  365. package/.claude/helpers/perf-worker.sh +0 -160
  366. package/.claude/helpers/quick-start.sh +0 -19
  367. package/.claude/helpers/security-scanner.sh +0 -127
  368. package/.claude/helpers/setup-mcp.sh +0 -18
  369. package/.claude/helpers/standard-checkpoint-hooks.sh +0 -189
  370. package/.claude/helpers/swarm-comms.sh +0 -353
  371. package/.claude/helpers/swarm-hooks.sh +0 -761
  372. package/.claude/helpers/swarm-monitor.sh +0 -211
  373. package/.claude/helpers/sync-v3-metrics.sh +0 -245
  374. package/.claude/helpers/update-v3-progress.sh +0 -166
  375. package/.claude/helpers/v3-quick-status.sh +0 -58
  376. package/.claude/helpers/v3.sh +0 -111
  377. package/.claude/helpers/validate-v3-config.sh +0 -216
  378. package/.claude/helpers/worker-manager.sh +0 -170
  379. package/.claude/mcp.json +0 -13
  380. package/.claude/settings.json +0 -526
  381. package/.claude/settings.local.json +0 -10
  382. package/.claude/skills/.claude-flow/metrics/agent-metrics.json +0 -1
  383. package/.claude/skills/.claude-flow/metrics/performance.json +0 -87
  384. package/.claude/skills/.claude-flow/metrics/task-metrics.json +0 -10
  385. package/.claude/skills/agentdb-advanced/SKILL.md +0 -550
  386. package/.claude/skills/agentdb-learning/SKILL.md +0 -545
  387. package/.claude/skills/agentdb-memory-patterns/SKILL.md +0 -339
  388. package/.claude/skills/agentdb-optimization/SKILL.md +0 -509
  389. package/.claude/skills/agentdb-vector-search/SKILL.md +0 -339
  390. package/.claude/skills/agentic-jujutsu/SKILL.md +0 -645
  391. package/.claude/skills/flow-nexus-neural/SKILL.md +0 -738
  392. package/.claude/skills/flow-nexus-platform/SKILL.md +0 -1157
  393. package/.claude/skills/flow-nexus-swarm/SKILL.md +0 -610
  394. package/.claude/skills/github-code-review/SKILL.md +0 -1140
  395. package/.claude/skills/github-multi-repo/SKILL.md +0 -874
  396. package/.claude/skills/github-project-management/SKILL.md +0 -1277
  397. package/.claude/skills/github-release-management/SKILL.md +0 -1081
  398. package/.claude/skills/github-workflow-automation/SKILL.md +0 -1065
  399. package/.claude/skills/hive-mind-advanced/SKILL.md +0 -712
  400. package/.claude/skills/hooks-automation/SKILL.md +0 -1201
  401. package/.claude/skills/pair-programming/SKILL.md +0 -1202
  402. package/.claude/skills/performance-analysis/SKILL.md +0 -563
  403. package/.claude/skills/reasoningbank-agentdb/SKILL.md +0 -446
  404. package/.claude/skills/reasoningbank-intelligence/SKILL.md +0 -201
  405. package/.claude/skills/skill-builder/.claude-flow/metrics/agent-metrics.json +0 -1
  406. package/.claude/skills/skill-builder/.claude-flow/metrics/performance.json +0 -87
  407. package/.claude/skills/skill-builder/.claude-flow/metrics/task-metrics.json +0 -10
  408. package/.claude/skills/skill-builder/SKILL.md +0 -910
  409. package/.claude/skills/sparc-methodology/SKILL.md +0 -1115
  410. package/.claude/skills/stream-chain/SKILL.md +0 -563
  411. package/.claude/skills/swarm-advanced/SKILL.md +0 -973
  412. package/.claude/skills/swarm-orchestration/SKILL.md +0 -179
  413. package/.claude/skills/v3-cli-modernization/SKILL.md +0 -872
  414. package/.claude/skills/v3-core-implementation/SKILL.md +0 -797
  415. package/.claude/skills/v3-ddd-architecture/SKILL.md +0 -442
  416. package/.claude/skills/v3-integration-deep/SKILL.md +0 -241
  417. package/.claude/skills/v3-mcp-optimization/SKILL.md +0 -777
  418. package/.claude/skills/v3-memory-unification/SKILL.md +0 -174
  419. package/.claude/skills/v3-performance-optimization/SKILL.md +0 -390
  420. package/.claude/skills/v3-security-overhaul/SKILL.md +0 -82
  421. package/.claude/skills/v3-swarm-coordination/SKILL.md +0 -340
  422. package/.claude/skills/verification-quality/SKILL.md +0 -649
  423. package/.claude/skills/worker-benchmarks/skill.md +0 -135
  424. package/.claude/skills/worker-integration/skill.md +0 -154
  425. package/.claude/statusline-command.sh +0 -176
  426. package/.claude/statusline.mjs +0 -109
  427. package/.claude/statusline.sh +0 -375
  428. package/.claude-plugin/README.md +0 -720
  429. package/.claude-plugin/docs/INSTALLATION.md +0 -261
  430. package/.claude-plugin/docs/PLUGIN_SUMMARY.md +0 -361
  431. package/.claude-plugin/docs/QUICKSTART.md +0 -361
  432. package/.claude-plugin/docs/STRUCTURE.md +0 -128
  433. package/.claude-plugin/hooks/hooks.json +0 -74
  434. package/.claude-plugin/marketplace.json +0 -96
  435. package/.claude-plugin/plugin.json +0 -71
  436. package/.claude-plugin/scripts/install.sh +0 -234
  437. package/.claude-plugin/scripts/uninstall.sh +0 -36
  438. package/.claude-plugin/scripts/verify.sh +0 -108
  439. package/v3/@claude-flow/cli/README.md +0 -1186
  440. package/v3/@claude-flow/cli/dist/src/commands/daemon.js.map +0 -1
  441. package/v3/@claude-flow/cli/dist/src/index.js.map +0 -1
  442. package/v3/@claude-flow/cli/dist/src/output.d.ts.map +0 -1
  443. package/v3/@claude-flow/cli/dist/src/output.js.map +0 -1
  444. package/v3/@claude-flow/cli/dist/src/services/worker-daemon.d.ts.map +0 -1
  445. package/v3/@claude-flow/cli/dist/src/services/worker-daemon.js.map +0 -1
  446. package/v3/@claude-flow/cli/dist/tsconfig.tsbuildinfo +0 -1
  447. package/v3/@claude-flow/cli/package.json +0 -29
  448. package/v3/@claude-flow/shared/README.md +0 -323
  449. package/v3/@claude-flow/shared/dist/core/config/defaults.d.ts +0 -41
  450. package/v3/@claude-flow/shared/dist/core/config/defaults.d.ts.map +0 -1
  451. package/v3/@claude-flow/shared/dist/core/config/defaults.js +0 -186
  452. package/v3/@claude-flow/shared/dist/core/config/defaults.js.map +0 -1
  453. package/v3/@claude-flow/shared/dist/core/config/index.d.ts +0 -8
  454. package/v3/@claude-flow/shared/dist/core/config/index.d.ts.map +0 -1
  455. package/v3/@claude-flow/shared/dist/core/config/index.js +0 -12
  456. package/v3/@claude-flow/shared/dist/core/config/index.js.map +0 -1
  457. package/v3/@claude-flow/shared/dist/core/config/loader.d.ts +0 -45
  458. package/v3/@claude-flow/shared/dist/core/config/loader.d.ts.map +0 -1
  459. package/v3/@claude-flow/shared/dist/core/config/loader.js +0 -222
  460. package/v3/@claude-flow/shared/dist/core/config/loader.js.map +0 -1
  461. package/v3/@claude-flow/shared/dist/core/config/schema.d.ts +0 -1134
  462. package/v3/@claude-flow/shared/dist/core/config/schema.d.ts.map +0 -1
  463. package/v3/@claude-flow/shared/dist/core/config/schema.js +0 -158
  464. package/v3/@claude-flow/shared/dist/core/config/schema.js.map +0 -1
  465. package/v3/@claude-flow/shared/dist/core/config/validator.d.ts +0 -92
  466. package/v3/@claude-flow/shared/dist/core/config/validator.d.ts.map +0 -1
  467. package/v3/@claude-flow/shared/dist/core/config/validator.js +0 -147
  468. package/v3/@claude-flow/shared/dist/core/config/validator.js.map +0 -1
  469. package/v3/@claude-flow/shared/dist/core/event-bus.d.ts +0 -31
  470. package/v3/@claude-flow/shared/dist/core/event-bus.d.ts.map +0 -1
  471. package/v3/@claude-flow/shared/dist/core/event-bus.js +0 -197
  472. package/v3/@claude-flow/shared/dist/core/event-bus.js.map +0 -1
  473. package/v3/@claude-flow/shared/dist/core/index.d.ts +0 -15
  474. package/v3/@claude-flow/shared/dist/core/index.d.ts.map +0 -1
  475. package/v3/@claude-flow/shared/dist/core/index.js +0 -19
  476. package/v3/@claude-flow/shared/dist/core/index.js.map +0 -1
  477. package/v3/@claude-flow/shared/dist/core/interfaces/agent.interface.d.ts +0 -200
  478. package/v3/@claude-flow/shared/dist/core/interfaces/agent.interface.d.ts.map +0 -1
  479. package/v3/@claude-flow/shared/dist/core/interfaces/agent.interface.js +0 -6
  480. package/v3/@claude-flow/shared/dist/core/interfaces/agent.interface.js.map +0 -1
  481. package/v3/@claude-flow/shared/dist/core/interfaces/coordinator.interface.d.ts +0 -310
  482. package/v3/@claude-flow/shared/dist/core/interfaces/coordinator.interface.d.ts.map +0 -1
  483. package/v3/@claude-flow/shared/dist/core/interfaces/coordinator.interface.js +0 -7
  484. package/v3/@claude-flow/shared/dist/core/interfaces/coordinator.interface.js.map +0 -1
  485. package/v3/@claude-flow/shared/dist/core/interfaces/event.interface.d.ts +0 -224
  486. package/v3/@claude-flow/shared/dist/core/interfaces/event.interface.d.ts.map +0 -1
  487. package/v3/@claude-flow/shared/dist/core/interfaces/event.interface.js +0 -46
  488. package/v3/@claude-flow/shared/dist/core/interfaces/event.interface.js.map +0 -1
  489. package/v3/@claude-flow/shared/dist/core/interfaces/index.d.ts +0 -10
  490. package/v3/@claude-flow/shared/dist/core/interfaces/index.d.ts.map +0 -1
  491. package/v3/@claude-flow/shared/dist/core/interfaces/index.js +0 -15
  492. package/v3/@claude-flow/shared/dist/core/interfaces/index.js.map +0 -1
  493. package/v3/@claude-flow/shared/dist/core/interfaces/memory.interface.d.ts +0 -298
  494. package/v3/@claude-flow/shared/dist/core/interfaces/memory.interface.d.ts.map +0 -1
  495. package/v3/@claude-flow/shared/dist/core/interfaces/memory.interface.js +0 -7
  496. package/v3/@claude-flow/shared/dist/core/interfaces/memory.interface.js.map +0 -1
  497. package/v3/@claude-flow/shared/dist/core/interfaces/task.interface.d.ts +0 -185
  498. package/v3/@claude-flow/shared/dist/core/interfaces/task.interface.d.ts.map +0 -1
  499. package/v3/@claude-flow/shared/dist/core/interfaces/task.interface.js +0 -6
  500. package/v3/@claude-flow/shared/dist/core/interfaces/task.interface.js.map +0 -1
  501. package/v3/@claude-flow/shared/dist/core/orchestrator/event-coordinator.d.ts +0 -35
  502. package/v3/@claude-flow/shared/dist/core/orchestrator/event-coordinator.d.ts.map +0 -1
  503. package/v3/@claude-flow/shared/dist/core/orchestrator/event-coordinator.js +0 -101
  504. package/v3/@claude-flow/shared/dist/core/orchestrator/event-coordinator.js.map +0 -1
  505. package/v3/@claude-flow/shared/dist/core/orchestrator/health-monitor.d.ts +0 -60
  506. package/v3/@claude-flow/shared/dist/core/orchestrator/health-monitor.d.ts.map +0 -1
  507. package/v3/@claude-flow/shared/dist/core/orchestrator/health-monitor.js +0 -166
  508. package/v3/@claude-flow/shared/dist/core/orchestrator/health-monitor.js.map +0 -1
  509. package/v3/@claude-flow/shared/dist/core/orchestrator/index.d.ts +0 -46
  510. package/v3/@claude-flow/shared/dist/core/orchestrator/index.d.ts.map +0 -1
  511. package/v3/@claude-flow/shared/dist/core/orchestrator/index.js +0 -64
  512. package/v3/@claude-flow/shared/dist/core/orchestrator/index.js.map +0 -1
  513. package/v3/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.d.ts +0 -56
  514. package/v3/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.d.ts.map +0 -1
  515. package/v3/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.js +0 -195
  516. package/v3/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.js.map +0 -1
  517. package/v3/@claude-flow/shared/dist/core/orchestrator/session-manager.d.ts +0 -83
  518. package/v3/@claude-flow/shared/dist/core/orchestrator/session-manager.d.ts.map +0 -1
  519. package/v3/@claude-flow/shared/dist/core/orchestrator/session-manager.js +0 -193
  520. package/v3/@claude-flow/shared/dist/core/orchestrator/session-manager.js.map +0 -1
  521. package/v3/@claude-flow/shared/dist/core/orchestrator/task-manager.d.ts +0 -49
  522. package/v3/@claude-flow/shared/dist/core/orchestrator/task-manager.d.ts.map +0 -1
  523. package/v3/@claude-flow/shared/dist/core/orchestrator/task-manager.js +0 -253
  524. package/v3/@claude-flow/shared/dist/core/orchestrator/task-manager.js.map +0 -1
  525. package/v3/@claude-flow/shared/dist/events/domain-events.d.ts +0 -282
  526. package/v3/@claude-flow/shared/dist/events/domain-events.d.ts.map +0 -1
  527. package/v3/@claude-flow/shared/dist/events/domain-events.js +0 -165
  528. package/v3/@claude-flow/shared/dist/events/domain-events.js.map +0 -1
  529. package/v3/@claude-flow/shared/dist/events/event-store.d.ts +0 -126
  530. package/v3/@claude-flow/shared/dist/events/event-store.d.ts.map +0 -1
  531. package/v3/@claude-flow/shared/dist/events/event-store.js +0 -416
  532. package/v3/@claude-flow/shared/dist/events/event-store.js.map +0 -1
  533. package/v3/@claude-flow/shared/dist/events/event-store.test.d.ts +0 -8
  534. package/v3/@claude-flow/shared/dist/events/event-store.test.d.ts.map +0 -1
  535. package/v3/@claude-flow/shared/dist/events/event-store.test.js +0 -293
  536. package/v3/@claude-flow/shared/dist/events/event-store.test.js.map +0 -1
  537. package/v3/@claude-flow/shared/dist/events/example-usage.d.ts +0 -10
  538. package/v3/@claude-flow/shared/dist/events/example-usage.d.ts.map +0 -1
  539. package/v3/@claude-flow/shared/dist/events/example-usage.js +0 -193
  540. package/v3/@claude-flow/shared/dist/events/example-usage.js.map +0 -1
  541. package/v3/@claude-flow/shared/dist/events/index.d.ts +0 -19
  542. package/v3/@claude-flow/shared/dist/events/index.d.ts.map +0 -1
  543. package/v3/@claude-flow/shared/dist/events/index.js +0 -20
  544. package/v3/@claude-flow/shared/dist/events/index.js.map +0 -1
  545. package/v3/@claude-flow/shared/dist/events/projections.d.ts +0 -177
  546. package/v3/@claude-flow/shared/dist/events/projections.d.ts.map +0 -1
  547. package/v3/@claude-flow/shared/dist/events/projections.js +0 -421
  548. package/v3/@claude-flow/shared/dist/events/projections.js.map +0 -1
  549. package/v3/@claude-flow/shared/dist/events/state-reconstructor.d.ts +0 -101
  550. package/v3/@claude-flow/shared/dist/events/state-reconstructor.d.ts.map +0 -1
  551. package/v3/@claude-flow/shared/dist/events/state-reconstructor.js +0 -263
  552. package/v3/@claude-flow/shared/dist/events/state-reconstructor.js.map +0 -1
  553. package/v3/@claude-flow/shared/dist/events.d.ts +0 -80
  554. package/v3/@claude-flow/shared/dist/events.d.ts.map +0 -1
  555. package/v3/@claude-flow/shared/dist/events.js +0 -249
  556. package/v3/@claude-flow/shared/dist/events.js.map +0 -1
  557. package/v3/@claude-flow/shared/dist/hooks/example-usage.d.ts +0 -42
  558. package/v3/@claude-flow/shared/dist/hooks/example-usage.d.ts.map +0 -1
  559. package/v3/@claude-flow/shared/dist/hooks/example-usage.js +0 -351
  560. package/v3/@claude-flow/shared/dist/hooks/example-usage.js.map +0 -1
  561. package/v3/@claude-flow/shared/dist/hooks/executor.d.ts +0 -100
  562. package/v3/@claude-flow/shared/dist/hooks/executor.d.ts.map +0 -1
  563. package/v3/@claude-flow/shared/dist/hooks/executor.js +0 -264
  564. package/v3/@claude-flow/shared/dist/hooks/executor.js.map +0 -1
  565. package/v3/@claude-flow/shared/dist/hooks/hooks.test.d.ts +0 -9
  566. package/v3/@claude-flow/shared/dist/hooks/hooks.test.d.ts.map +0 -1
  567. package/v3/@claude-flow/shared/dist/hooks/hooks.test.js +0 -322
  568. package/v3/@claude-flow/shared/dist/hooks/hooks.test.js.map +0 -1
  569. package/v3/@claude-flow/shared/dist/hooks/index.d.ts +0 -52
  570. package/v3/@claude-flow/shared/dist/hooks/index.d.ts.map +0 -1
  571. package/v3/@claude-flow/shared/dist/hooks/index.js +0 -51
  572. package/v3/@claude-flow/shared/dist/hooks/index.js.map +0 -1
  573. package/v3/@claude-flow/shared/dist/hooks/registry.d.ts +0 -133
  574. package/v3/@claude-flow/shared/dist/hooks/registry.d.ts.map +0 -1
  575. package/v3/@claude-flow/shared/dist/hooks/registry.js +0 -277
  576. package/v3/@claude-flow/shared/dist/hooks/registry.js.map +0 -1
  577. package/v3/@claude-flow/shared/dist/hooks/safety/bash-safety.d.ts +0 -105
  578. package/v3/@claude-flow/shared/dist/hooks/safety/bash-safety.d.ts.map +0 -1
  579. package/v3/@claude-flow/shared/dist/hooks/safety/bash-safety.js +0 -481
  580. package/v3/@claude-flow/shared/dist/hooks/safety/bash-safety.js.map +0 -1
  581. package/v3/@claude-flow/shared/dist/hooks/safety/file-organization.d.ts +0 -144
  582. package/v3/@claude-flow/shared/dist/hooks/safety/file-organization.d.ts.map +0 -1
  583. package/v3/@claude-flow/shared/dist/hooks/safety/file-organization.js +0 -328
  584. package/v3/@claude-flow/shared/dist/hooks/safety/file-organization.js.map +0 -1
  585. package/v3/@claude-flow/shared/dist/hooks/safety/git-commit.d.ts +0 -158
  586. package/v3/@claude-flow/shared/dist/hooks/safety/git-commit.d.ts.map +0 -1
  587. package/v3/@claude-flow/shared/dist/hooks/safety/git-commit.js +0 -450
  588. package/v3/@claude-flow/shared/dist/hooks/safety/git-commit.js.map +0 -1
  589. package/v3/@claude-flow/shared/dist/hooks/safety/index.d.ts +0 -17
  590. package/v3/@claude-flow/shared/dist/hooks/safety/index.d.ts.map +0 -1
  591. package/v3/@claude-flow/shared/dist/hooks/safety/index.js +0 -17
  592. package/v3/@claude-flow/shared/dist/hooks/safety/index.js.map +0 -1
  593. package/v3/@claude-flow/shared/dist/hooks/session-hooks.d.ts +0 -234
  594. package/v3/@claude-flow/shared/dist/hooks/session-hooks.d.ts.map +0 -1
  595. package/v3/@claude-flow/shared/dist/hooks/session-hooks.js +0 -334
  596. package/v3/@claude-flow/shared/dist/hooks/session-hooks.js.map +0 -1
  597. package/v3/@claude-flow/shared/dist/hooks/task-hooks.d.ts +0 -163
  598. package/v3/@claude-flow/shared/dist/hooks/task-hooks.d.ts.map +0 -1
  599. package/v3/@claude-flow/shared/dist/hooks/task-hooks.js +0 -326
  600. package/v3/@claude-flow/shared/dist/hooks/task-hooks.js.map +0 -1
  601. package/v3/@claude-flow/shared/dist/hooks/types.d.ts +0 -267
  602. package/v3/@claude-flow/shared/dist/hooks/types.d.ts.map +0 -1
  603. package/v3/@claude-flow/shared/dist/hooks/types.js +0 -62
  604. package/v3/@claude-flow/shared/dist/hooks/types.js.map +0 -1
  605. package/v3/@claude-flow/shared/dist/hooks/verify-exports.test.d.ts +0 -9
  606. package/v3/@claude-flow/shared/dist/hooks/verify-exports.test.d.ts.map +0 -1
  607. package/v3/@claude-flow/shared/dist/hooks/verify-exports.test.js +0 -93
  608. package/v3/@claude-flow/shared/dist/hooks/verify-exports.test.js.map +0 -1
  609. package/v3/@claude-flow/shared/dist/index.d.ts +0 -19
  610. package/v3/@claude-flow/shared/dist/index.d.ts.map +0 -1
  611. package/v3/@claude-flow/shared/dist/index.js +0 -46
  612. package/v3/@claude-flow/shared/dist/index.js.map +0 -1
  613. package/v3/@claude-flow/shared/dist/mcp/connection-pool.d.ts +0 -98
  614. package/v3/@claude-flow/shared/dist/mcp/connection-pool.d.ts.map +0 -1
  615. package/v3/@claude-flow/shared/dist/mcp/connection-pool.js +0 -364
  616. package/v3/@claude-flow/shared/dist/mcp/connection-pool.js.map +0 -1
  617. package/v3/@claude-flow/shared/dist/mcp/index.d.ts +0 -69
  618. package/v3/@claude-flow/shared/dist/mcp/index.d.ts.map +0 -1
  619. package/v3/@claude-flow/shared/dist/mcp/index.js +0 -84
  620. package/v3/@claude-flow/shared/dist/mcp/index.js.map +0 -1
  621. package/v3/@claude-flow/shared/dist/mcp/server.d.ts +0 -166
  622. package/v3/@claude-flow/shared/dist/mcp/server.d.ts.map +0 -1
  623. package/v3/@claude-flow/shared/dist/mcp/server.js +0 -593
  624. package/v3/@claude-flow/shared/dist/mcp/server.js.map +0 -1
  625. package/v3/@claude-flow/shared/dist/mcp/session-manager.d.ts +0 -136
  626. package/v3/@claude-flow/shared/dist/mcp/session-manager.d.ts.map +0 -1
  627. package/v3/@claude-flow/shared/dist/mcp/session-manager.js +0 -335
  628. package/v3/@claude-flow/shared/dist/mcp/session-manager.js.map +0 -1
  629. package/v3/@claude-flow/shared/dist/mcp/tool-registry.d.ts +0 -178
  630. package/v3/@claude-flow/shared/dist/mcp/tool-registry.d.ts.map +0 -1
  631. package/v3/@claude-flow/shared/dist/mcp/tool-registry.js +0 -439
  632. package/v3/@claude-flow/shared/dist/mcp/tool-registry.js.map +0 -1
  633. package/v3/@claude-flow/shared/dist/mcp/transport/http.d.ts +0 -104
  634. package/v3/@claude-flow/shared/dist/mcp/transport/http.d.ts.map +0 -1
  635. package/v3/@claude-flow/shared/dist/mcp/transport/http.js +0 -476
  636. package/v3/@claude-flow/shared/dist/mcp/transport/http.js.map +0 -1
  637. package/v3/@claude-flow/shared/dist/mcp/transport/index.d.ts +0 -102
  638. package/v3/@claude-flow/shared/dist/mcp/transport/index.d.ts.map +0 -1
  639. package/v3/@claude-flow/shared/dist/mcp/transport/index.js +0 -238
  640. package/v3/@claude-flow/shared/dist/mcp/transport/index.js.map +0 -1
  641. package/v3/@claude-flow/shared/dist/mcp/transport/stdio.d.ts +0 -104
  642. package/v3/@claude-flow/shared/dist/mcp/transport/stdio.d.ts.map +0 -1
  643. package/v3/@claude-flow/shared/dist/mcp/transport/stdio.js +0 -263
  644. package/v3/@claude-flow/shared/dist/mcp/transport/stdio.js.map +0 -1
  645. package/v3/@claude-flow/shared/dist/mcp/transport/websocket.d.ts +0 -133
  646. package/v3/@claude-flow/shared/dist/mcp/transport/websocket.d.ts.map +0 -1
  647. package/v3/@claude-flow/shared/dist/mcp/transport/websocket.js +0 -396
  648. package/v3/@claude-flow/shared/dist/mcp/transport/websocket.js.map +0 -1
  649. package/v3/@claude-flow/shared/dist/mcp/types.d.ts +0 -438
  650. package/v3/@claude-flow/shared/dist/mcp/types.d.ts.map +0 -1
  651. package/v3/@claude-flow/shared/dist/mcp/types.js +0 -54
  652. package/v3/@claude-flow/shared/dist/mcp/types.js.map +0 -1
  653. package/v3/@claude-flow/shared/dist/plugin-interface.d.ts +0 -544
  654. package/v3/@claude-flow/shared/dist/plugin-interface.d.ts.map +0 -1
  655. package/v3/@claude-flow/shared/dist/plugin-interface.js +0 -23
  656. package/v3/@claude-flow/shared/dist/plugin-interface.js.map +0 -1
  657. package/v3/@claude-flow/shared/dist/plugin-loader.d.ts +0 -139
  658. package/v3/@claude-flow/shared/dist/plugin-loader.d.ts.map +0 -1
  659. package/v3/@claude-flow/shared/dist/plugin-loader.js +0 -434
  660. package/v3/@claude-flow/shared/dist/plugin-loader.js.map +0 -1
  661. package/v3/@claude-flow/shared/dist/plugin-registry.d.ts +0 -183
  662. package/v3/@claude-flow/shared/dist/plugin-registry.d.ts.map +0 -1
  663. package/v3/@claude-flow/shared/dist/plugin-registry.js +0 -457
  664. package/v3/@claude-flow/shared/dist/plugin-registry.js.map +0 -1
  665. package/v3/@claude-flow/shared/dist/plugins/index.d.ts +0 -10
  666. package/v3/@claude-flow/shared/dist/plugins/index.d.ts.map +0 -1
  667. package/v3/@claude-flow/shared/dist/plugins/index.js +0 -10
  668. package/v3/@claude-flow/shared/dist/plugins/index.js.map +0 -1
  669. package/v3/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.d.ts +0 -106
  670. package/v3/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.d.ts.map +0 -1
  671. package/v3/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.js +0 -241
  672. package/v3/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.js.map +0 -1
  673. package/v3/@claude-flow/shared/dist/plugins/official/index.d.ts +0 -10
  674. package/v3/@claude-flow/shared/dist/plugins/official/index.d.ts.map +0 -1
  675. package/v3/@claude-flow/shared/dist/plugins/official/index.js +0 -10
  676. package/v3/@claude-flow/shared/dist/plugins/official/index.js.map +0 -1
  677. package/v3/@claude-flow/shared/dist/plugins/official/maestro-plugin.d.ts +0 -121
  678. package/v3/@claude-flow/shared/dist/plugins/official/maestro-plugin.d.ts.map +0 -1
  679. package/v3/@claude-flow/shared/dist/plugins/official/maestro-plugin.js +0 -355
  680. package/v3/@claude-flow/shared/dist/plugins/official/maestro-plugin.js.map +0 -1
  681. package/v3/@claude-flow/shared/dist/plugins/types.d.ts +0 -93
  682. package/v3/@claude-flow/shared/dist/plugins/types.d.ts.map +0 -1
  683. package/v3/@claude-flow/shared/dist/plugins/types.js +0 -9
  684. package/v3/@claude-flow/shared/dist/plugins/types.js.map +0 -1
  685. package/v3/@claude-flow/shared/dist/resilience/bulkhead.d.ts +0 -105
  686. package/v3/@claude-flow/shared/dist/resilience/bulkhead.d.ts.map +0 -1
  687. package/v3/@claude-flow/shared/dist/resilience/bulkhead.js +0 -206
  688. package/v3/@claude-flow/shared/dist/resilience/bulkhead.js.map +0 -1
  689. package/v3/@claude-flow/shared/dist/resilience/circuit-breaker.d.ts +0 -132
  690. package/v3/@claude-flow/shared/dist/resilience/circuit-breaker.d.ts.map +0 -1
  691. package/v3/@claude-flow/shared/dist/resilience/circuit-breaker.js +0 -233
  692. package/v3/@claude-flow/shared/dist/resilience/circuit-breaker.js.map +0 -1
  693. package/v3/@claude-flow/shared/dist/resilience/index.d.ts +0 -19
  694. package/v3/@claude-flow/shared/dist/resilience/index.d.ts.map +0 -1
  695. package/v3/@claude-flow/shared/dist/resilience/index.js +0 -19
  696. package/v3/@claude-flow/shared/dist/resilience/index.js.map +0 -1
  697. package/v3/@claude-flow/shared/dist/resilience/rate-limiter.d.ts +0 -168
  698. package/v3/@claude-flow/shared/dist/resilience/rate-limiter.d.ts.map +0 -1
  699. package/v3/@claude-flow/shared/dist/resilience/rate-limiter.js +0 -314
  700. package/v3/@claude-flow/shared/dist/resilience/rate-limiter.js.map +0 -1
  701. package/v3/@claude-flow/shared/dist/resilience/retry.d.ts +0 -91
  702. package/v3/@claude-flow/shared/dist/resilience/retry.d.ts.map +0 -1
  703. package/v3/@claude-flow/shared/dist/resilience/retry.js +0 -159
  704. package/v3/@claude-flow/shared/dist/resilience/retry.js.map +0 -1
  705. package/v3/@claude-flow/shared/dist/security/index.d.ts +0 -10
  706. package/v3/@claude-flow/shared/dist/security/index.d.ts.map +0 -1
  707. package/v3/@claude-flow/shared/dist/security/index.js +0 -12
  708. package/v3/@claude-flow/shared/dist/security/index.js.map +0 -1
  709. package/v3/@claude-flow/shared/dist/security/input-validation.d.ts +0 -73
  710. package/v3/@claude-flow/shared/dist/security/input-validation.d.ts.map +0 -1
  711. package/v3/@claude-flow/shared/dist/security/input-validation.js +0 -201
  712. package/v3/@claude-flow/shared/dist/security/input-validation.js.map +0 -1
  713. package/v3/@claude-flow/shared/dist/security/secure-random.d.ts +0 -92
  714. package/v3/@claude-flow/shared/dist/security/secure-random.d.ts.map +0 -1
  715. package/v3/@claude-flow/shared/dist/security/secure-random.js +0 -142
  716. package/v3/@claude-flow/shared/dist/security/secure-random.js.map +0 -1
  717. package/v3/@claude-flow/shared/dist/types/agent.types.d.ts +0 -137
  718. package/v3/@claude-flow/shared/dist/types/agent.types.d.ts.map +0 -1
  719. package/v3/@claude-flow/shared/dist/types/agent.types.js +0 -6
  720. package/v3/@claude-flow/shared/dist/types/agent.types.js.map +0 -1
  721. package/v3/@claude-flow/shared/dist/types/index.d.ts +0 -11
  722. package/v3/@claude-flow/shared/dist/types/index.d.ts.map +0 -1
  723. package/v3/@claude-flow/shared/dist/types/index.js +0 -17
  724. package/v3/@claude-flow/shared/dist/types/index.js.map +0 -1
  725. package/v3/@claude-flow/shared/dist/types/mcp.types.d.ts +0 -266
  726. package/v3/@claude-flow/shared/dist/types/mcp.types.d.ts.map +0 -1
  727. package/v3/@claude-flow/shared/dist/types/mcp.types.js +0 -7
  728. package/v3/@claude-flow/shared/dist/types/mcp.types.js.map +0 -1
  729. package/v3/@claude-flow/shared/dist/types/memory.types.d.ts +0 -236
  730. package/v3/@claude-flow/shared/dist/types/memory.types.d.ts.map +0 -1
  731. package/v3/@claude-flow/shared/dist/types/memory.types.js +0 -7
  732. package/v3/@claude-flow/shared/dist/types/memory.types.js.map +0 -1
  733. package/v3/@claude-flow/shared/dist/types/swarm.types.d.ts +0 -186
  734. package/v3/@claude-flow/shared/dist/types/swarm.types.d.ts.map +0 -1
  735. package/v3/@claude-flow/shared/dist/types/swarm.types.js +0 -65
  736. package/v3/@claude-flow/shared/dist/types/swarm.types.js.map +0 -1
  737. package/v3/@claude-flow/shared/dist/types/task.types.d.ts +0 -178
  738. package/v3/@claude-flow/shared/dist/types/task.types.d.ts.map +0 -1
  739. package/v3/@claude-flow/shared/dist/types/task.types.js +0 -32
  740. package/v3/@claude-flow/shared/dist/types/task.types.js.map +0 -1
  741. package/v3/@claude-flow/shared/dist/types.d.ts +0 -197
  742. package/v3/@claude-flow/shared/dist/types.d.ts.map +0 -1
  743. package/v3/@claude-flow/shared/dist/types.js +0 -21
  744. package/v3/@claude-flow/shared/dist/types.js.map +0 -1
  745. package/v3/@claude-flow/shared/dist/utils/secure-logger.d.ts +0 -69
  746. package/v3/@claude-flow/shared/dist/utils/secure-logger.d.ts.map +0 -1
  747. package/v3/@claude-flow/shared/dist/utils/secure-logger.js +0 -208
  748. package/v3/@claude-flow/shared/dist/utils/secure-logger.js.map +0 -1
  749. package/v3/@claude-flow/shared/package.json +0 -34
  750. package/v3/README.md +0 -493
  751. /package/{v3/@claude-flow/cli/bin → bin}/cli.js +0 -0
  752. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/agent.d.ts +0 -0
  753. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/agent.d.ts.map +0 -0
  754. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/agent.js +0 -0
  755. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/agent.js.map +0 -0
  756. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/config.d.ts +0 -0
  757. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/config.d.ts.map +0 -0
  758. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/config.js +0 -0
  759. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/config.js.map +0 -0
  760. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/daemon.d.ts +0 -0
  761. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hive-mind.d.ts +0 -0
  762. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hive-mind.d.ts.map +0 -0
  763. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hive-mind.js +0 -0
  764. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hive-mind.js.map +0 -0
  765. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hooks.d.ts +0 -0
  766. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hooks.d.ts.map +0 -0
  767. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hooks.js +0 -0
  768. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hooks.js.map +0 -0
  769. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/index.d.ts +0 -0
  770. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/index.d.ts.map +0 -0
  771. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/index.js +0 -0
  772. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/index.js.map +0 -0
  773. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/init.d.ts +0 -0
  774. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/init.d.ts.map +0 -0
  775. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/init.js +0 -0
  776. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/init.js.map +0 -0
  777. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/mcp.d.ts +0 -0
  778. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/mcp.d.ts.map +0 -0
  779. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/mcp.js +0 -0
  780. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/mcp.js.map +0 -0
  781. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/memory.d.ts +0 -0
  782. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/memory.d.ts.map +0 -0
  783. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/memory.js +0 -0
  784. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/memory.js.map +0 -0
  785. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/migrate.d.ts +0 -0
  786. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/migrate.d.ts.map +0 -0
  787. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/migrate.js +0 -0
  788. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/migrate.js.map +0 -0
  789. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/process.d.ts +0 -0
  790. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/process.d.ts.map +0 -0
  791. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/process.js +0 -0
  792. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/process.js.map +0 -0
  793. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/session.d.ts +0 -0
  794. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/session.d.ts.map +0 -0
  795. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/session.js +0 -0
  796. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/session.js.map +0 -0
  797. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/start.d.ts +0 -0
  798. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/start.d.ts.map +0 -0
  799. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/start.js +0 -0
  800. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/start.js.map +0 -0
  801. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/status.d.ts +0 -0
  802. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/status.d.ts.map +0 -0
  803. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/status.js +0 -0
  804. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/status.js.map +0 -0
  805. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/swarm.d.ts +0 -0
  806. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/swarm.d.ts.map +0 -0
  807. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/swarm.js +0 -0
  808. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/swarm.js.map +0 -0
  809. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/task.d.ts +0 -0
  810. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/task.d.ts.map +0 -0
  811. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/task.js +0 -0
  812. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/task.js.map +0 -0
  813. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/workflow.d.ts +0 -0
  814. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/workflow.d.ts.map +0 -0
  815. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/workflow.js +0 -0
  816. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/workflow.js.map +0 -0
  817. /package/{v3/@claude-flow/cli/dist → dist}/src/config-adapter.d.ts +0 -0
  818. /package/{v3/@claude-flow/cli/dist → dist}/src/config-adapter.d.ts.map +0 -0
  819. /package/{v3/@claude-flow/cli/dist → dist}/src/config-adapter.js +0 -0
  820. /package/{v3/@claude-flow/cli/dist → dist}/src/config-adapter.js.map +0 -0
  821. /package/{v3/@claude-flow/cli/dist → dist}/src/infrastructure/in-memory-repositories.d.ts +0 -0
  822. /package/{v3/@claude-flow/cli/dist → dist}/src/infrastructure/in-memory-repositories.d.ts.map +0 -0
  823. /package/{v3/@claude-flow/cli/dist → dist}/src/infrastructure/in-memory-repositories.js +0 -0
  824. /package/{v3/@claude-flow/cli/dist → dist}/src/infrastructure/in-memory-repositories.js.map +0 -0
  825. /package/{v3/@claude-flow/cli/dist → dist}/src/init/claudemd-generator.d.ts +0 -0
  826. /package/{v3/@claude-flow/cli/dist → dist}/src/init/claudemd-generator.d.ts.map +0 -0
  827. /package/{v3/@claude-flow/cli/dist → dist}/src/init/claudemd-generator.js +0 -0
  828. /package/{v3/@claude-flow/cli/dist → dist}/src/init/claudemd-generator.js.map +0 -0
  829. /package/{v3/@claude-flow/cli/dist → dist}/src/init/executor.d.ts +0 -0
  830. /package/{v3/@claude-flow/cli/dist → dist}/src/init/executor.d.ts.map +0 -0
  831. /package/{v3/@claude-flow/cli/dist → dist}/src/init/executor.js +0 -0
  832. /package/{v3/@claude-flow/cli/dist → dist}/src/init/executor.js.map +0 -0
  833. /package/{v3/@claude-flow/cli/dist → dist}/src/init/helpers-generator.d.ts +0 -0
  834. /package/{v3/@claude-flow/cli/dist → dist}/src/init/helpers-generator.d.ts.map +0 -0
  835. /package/{v3/@claude-flow/cli/dist → dist}/src/init/helpers-generator.js +0 -0
  836. /package/{v3/@claude-flow/cli/dist → dist}/src/init/helpers-generator.js.map +0 -0
  837. /package/{v3/@claude-flow/cli/dist → dist}/src/init/index.d.ts +0 -0
  838. /package/{v3/@claude-flow/cli/dist → dist}/src/init/index.d.ts.map +0 -0
  839. /package/{v3/@claude-flow/cli/dist → dist}/src/init/index.js +0 -0
  840. /package/{v3/@claude-flow/cli/dist → dist}/src/init/index.js.map +0 -0
  841. /package/{v3/@claude-flow/cli/dist → dist}/src/init/mcp-generator.d.ts +0 -0
  842. /package/{v3/@claude-flow/cli/dist → dist}/src/init/mcp-generator.d.ts.map +0 -0
  843. /package/{v3/@claude-flow/cli/dist → dist}/src/init/mcp-generator.js +0 -0
  844. /package/{v3/@claude-flow/cli/dist → dist}/src/init/mcp-generator.js.map +0 -0
  845. /package/{v3/@claude-flow/cli/dist → dist}/src/init/settings-generator.d.ts +0 -0
  846. /package/{v3/@claude-flow/cli/dist → dist}/src/init/settings-generator.d.ts.map +0 -0
  847. /package/{v3/@claude-flow/cli/dist → dist}/src/init/settings-generator.js +0 -0
  848. /package/{v3/@claude-flow/cli/dist → dist}/src/init/settings-generator.js.map +0 -0
  849. /package/{v3/@claude-flow/cli/dist → dist}/src/init/statusline-generator.d.ts +0 -0
  850. /package/{v3/@claude-flow/cli/dist → dist}/src/init/statusline-generator.d.ts.map +0 -0
  851. /package/{v3/@claude-flow/cli/dist → dist}/src/init/statusline-generator.js +0 -0
  852. /package/{v3/@claude-flow/cli/dist → dist}/src/init/statusline-generator.js.map +0 -0
  853. /package/{v3/@claude-flow/cli/dist → dist}/src/init/types.d.ts +0 -0
  854. /package/{v3/@claude-flow/cli/dist → dist}/src/init/types.d.ts.map +0 -0
  855. /package/{v3/@claude-flow/cli/dist → dist}/src/init/types.js +0 -0
  856. /package/{v3/@claude-flow/cli/dist → dist}/src/init/types.js.map +0 -0
  857. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-client.d.ts +0 -0
  858. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-client.d.ts.map +0 -0
  859. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-client.js +0 -0
  860. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-client.js.map +0 -0
  861. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-server.d.ts +0 -0
  862. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-server.d.ts.map +0 -0
  863. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-server.js +0 -0
  864. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-server.js.map +0 -0
  865. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/agent-tools.d.ts +0 -0
  866. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/agent-tools.d.ts.map +0 -0
  867. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/agent-tools.js +0 -0
  868. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/agent-tools.js.map +0 -0
  869. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/config-tools.d.ts +0 -0
  870. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/config-tools.d.ts.map +0 -0
  871. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/config-tools.js +0 -0
  872. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/config-tools.js.map +0 -0
  873. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hive-mind-tools.d.ts +0 -0
  874. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hive-mind-tools.d.ts.map +0 -0
  875. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hive-mind-tools.js +0 -0
  876. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hive-mind-tools.js.map +0 -0
  877. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hooks-tools.d.ts +0 -0
  878. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hooks-tools.d.ts.map +0 -0
  879. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hooks-tools.js +0 -0
  880. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hooks-tools.js.map +0 -0
  881. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/index.d.ts +0 -0
  882. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/index.d.ts.map +0 -0
  883. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/index.js +0 -0
  884. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/index.js.map +0 -0
  885. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/memory-tools.d.ts +0 -0
  886. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/memory-tools.d.ts.map +0 -0
  887. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/memory-tools.js +0 -0
  888. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/memory-tools.js.map +0 -0
  889. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/session-tools.d.ts +0 -0
  890. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/session-tools.d.ts.map +0 -0
  891. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/session-tools.js +0 -0
  892. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/session-tools.js.map +0 -0
  893. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/swarm-tools.d.ts +0 -0
  894. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/swarm-tools.d.ts.map +0 -0
  895. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/swarm-tools.js +0 -0
  896. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/swarm-tools.js.map +0 -0
  897. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/task-tools.d.ts +0 -0
  898. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/task-tools.d.ts.map +0 -0
  899. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/task-tools.js +0 -0
  900. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/task-tools.js.map +0 -0
  901. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/types.d.ts +0 -0
  902. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/types.d.ts.map +0 -0
  903. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/types.js +0 -0
  904. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/types.js.map +0 -0
  905. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/workflow-tools.d.ts +0 -0
  906. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/workflow-tools.d.ts.map +0 -0
  907. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/workflow-tools.js +0 -0
  908. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/workflow-tools.js.map +0 -0
  909. /package/{v3/@claude-flow/cli/dist → dist}/src/parser.d.ts +0 -0
  910. /package/{v3/@claude-flow/cli/dist → dist}/src/parser.d.ts.map +0 -0
  911. /package/{v3/@claude-flow/cli/dist → dist}/src/parser.js +0 -0
  912. /package/{v3/@claude-flow/cli/dist → dist}/src/parser.js.map +0 -0
  913. /package/{v3/@claude-flow/cli/dist → dist}/src/prompt.d.ts +0 -0
  914. /package/{v3/@claude-flow/cli/dist → dist}/src/prompt.d.ts.map +0 -0
  915. /package/{v3/@claude-flow/cli/dist → dist}/src/prompt.js +0 -0
  916. /package/{v3/@claude-flow/cli/dist → dist}/src/prompt.js.map +0 -0
  917. /package/{v3/@claude-flow/cli/dist → dist}/src/services/index.d.ts +0 -0
  918. /package/{v3/@claude-flow/cli/dist → dist}/src/services/index.d.ts.map +0 -0
  919. /package/{v3/@claude-flow/cli/dist → dist}/src/services/index.js +0 -0
  920. /package/{v3/@claude-flow/cli/dist → dist}/src/services/index.js.map +0 -0
  921. /package/{v3/@claude-flow/cli/dist → dist}/src/types.d.ts +0 -0
  922. /package/{v3/@claude-flow/cli/dist → dist}/src/types.d.ts.map +0 -0
  923. /package/{v3/@claude-flow/cli/dist → dist}/src/types.js +0 -0
  924. /package/{v3/@claude-flow/cli/dist → dist}/src/types.js.map +0 -0
@@ -1,593 +0,0 @@
1
- /**
2
- * V3 MCP Server Implementation
3
- *
4
- * Optimized MCP server with:
5
- * - Connection pooling for efficient resource usage
6
- * - Fast tool registration (<10ms)
7
- * - Optimized request routing (<50ms overhead)
8
- * - Multiple transport support (stdio, http, websocket, in-process)
9
- * - Session management with timeout handling
10
- * - Comprehensive metrics and monitoring
11
- *
12
- * Performance Targets:
13
- * - Server startup: <400ms
14
- * - Tool registration: <10ms
15
- * - Tool execution: <50ms overhead
16
- */
17
- import { EventEmitter } from 'events';
18
- import { platform, arch } from 'os';
19
- import { MCPServerError, ErrorCodes, } from './types.js';
20
- import { createToolRegistry } from './tool-registry.js';
21
- import { createSessionManager } from './session-manager.js';
22
- import { createConnectionPool } from './connection-pool.js';
23
- import { createTransport, createTransportManager } from './transport/index.js';
24
- /**
25
- * Default server configuration
26
- */
27
- const DEFAULT_CONFIG = {
28
- name: 'Claude-Flow MCP Server V3',
29
- version: '3.0.0',
30
- transport: 'stdio',
31
- host: 'localhost',
32
- port: 3000,
33
- enableMetrics: true,
34
- enableCaching: true,
35
- cacheTTL: 10000,
36
- logLevel: 'info',
37
- requestTimeout: 30000,
38
- maxRequestSize: 10 * 1024 * 1024,
39
- };
40
- /**
41
- * V3 MCP Server
42
- */
43
- export class MCPServer extends EventEmitter {
44
- logger;
45
- orchestrator;
46
- swarmCoordinator;
47
- config;
48
- toolRegistry;
49
- sessionManager;
50
- connectionPool;
51
- transportManager;
52
- transport;
53
- running = false;
54
- startTime;
55
- startupDuration;
56
- currentSession;
57
- // Server information
58
- serverInfo = {
59
- name: 'Claude-Flow MCP Server V3',
60
- version: '3.0.0',
61
- };
62
- // Protocol version
63
- protocolVersion = {
64
- major: 2024,
65
- minor: 11,
66
- patch: 5,
67
- };
68
- // Server capabilities
69
- capabilities = {
70
- logging: { level: 'info' },
71
- tools: { listChanged: true },
72
- resources: { listChanged: false, subscribe: false },
73
- prompts: { listChanged: false },
74
- };
75
- // Request statistics
76
- requestStats = {
77
- total: 0,
78
- successful: 0,
79
- failed: 0,
80
- totalResponseTime: 0,
81
- };
82
- constructor(config, logger, orchestrator, swarmCoordinator) {
83
- super();
84
- this.logger = logger;
85
- this.orchestrator = orchestrator;
86
- this.swarmCoordinator = swarmCoordinator;
87
- this.config = { ...DEFAULT_CONFIG, ...config };
88
- // Initialize components
89
- this.toolRegistry = createToolRegistry(logger);
90
- this.sessionManager = createSessionManager(logger, {
91
- maxSessions: 100,
92
- sessionTimeout: 30 * 60 * 1000,
93
- });
94
- this.transportManager = createTransportManager(logger);
95
- // Initialize connection pool if enabled
96
- if (this.config.connectionPool) {
97
- this.connectionPool = createConnectionPool(this.config.connectionPool, logger, this.config.transport);
98
- }
99
- // Setup event handlers
100
- this.setupEventHandlers();
101
- }
102
- /**
103
- * Start the MCP server
104
- */
105
- async start() {
106
- if (this.running) {
107
- throw new MCPServerError('Server already running');
108
- }
109
- const startTime = performance.now();
110
- this.startTime = new Date();
111
- this.logger.info('Starting MCP server', {
112
- name: this.config.name,
113
- version: this.config.version,
114
- transport: this.config.transport,
115
- });
116
- try {
117
- // Create and start transport
118
- this.transport = createTransport(this.config.transport, this.logger, {
119
- type: this.config.transport,
120
- host: this.config.host,
121
- port: this.config.port,
122
- corsEnabled: this.config.corsEnabled,
123
- corsOrigins: this.config.corsOrigins,
124
- auth: this.config.auth,
125
- maxRequestSize: String(this.config.maxRequestSize),
126
- requestTimeout: this.config.requestTimeout,
127
- });
128
- // Setup request handler
129
- this.transport.onRequest(async (request) => {
130
- return await this.handleRequest(request);
131
- });
132
- // Setup notification handler
133
- this.transport.onNotification(async (notification) => {
134
- await this.handleNotification(notification);
135
- });
136
- // Start transport
137
- await this.transport.start();
138
- // Register built-in tools
139
- await this.registerBuiltInTools();
140
- this.running = true;
141
- this.startupDuration = performance.now() - startTime;
142
- this.logger.info('MCP server started', {
143
- startupTime: `${this.startupDuration.toFixed(2)}ms`,
144
- tools: this.toolRegistry.getToolCount(),
145
- });
146
- this.emit('server:started', {
147
- startupTime: this.startupDuration,
148
- tools: this.toolRegistry.getToolCount(),
149
- });
150
- }
151
- catch (error) {
152
- this.logger.error('Failed to start MCP server', { error });
153
- throw new MCPServerError('Failed to start server', ErrorCodes.INTERNAL_ERROR, { error });
154
- }
155
- }
156
- /**
157
- * Stop the MCP server
158
- */
159
- async stop() {
160
- if (!this.running) {
161
- return;
162
- }
163
- this.logger.info('Stopping MCP server');
164
- try {
165
- // Stop transport
166
- if (this.transport) {
167
- await this.transport.stop();
168
- this.transport = undefined;
169
- }
170
- // Clear sessions
171
- this.sessionManager.clearAll();
172
- // Clear connection pool
173
- if (this.connectionPool) {
174
- await this.connectionPool.clear();
175
- }
176
- this.running = false;
177
- this.currentSession = undefined;
178
- this.logger.info('MCP server stopped');
179
- this.emit('server:stopped');
180
- }
181
- catch (error) {
182
- this.logger.error('Error stopping MCP server', { error });
183
- throw error;
184
- }
185
- }
186
- /**
187
- * Register a tool
188
- */
189
- registerTool(tool) {
190
- return this.toolRegistry.register(tool);
191
- }
192
- /**
193
- * Register multiple tools
194
- */
195
- registerTools(tools) {
196
- return this.toolRegistry.registerBatch(tools);
197
- }
198
- /**
199
- * Unregister a tool
200
- */
201
- unregisterTool(name) {
202
- return this.toolRegistry.unregister(name);
203
- }
204
- /**
205
- * Get health status
206
- */
207
- async getHealthStatus() {
208
- try {
209
- const transportHealth = this.transport
210
- ? await this.transport.getHealthStatus()
211
- : { healthy: false, error: 'Transport not initialized' };
212
- const sessionMetrics = this.sessionManager.getSessionMetrics();
213
- const poolStats = this.connectionPool?.getStats();
214
- const metrics = {
215
- registeredTools: this.toolRegistry.getToolCount(),
216
- totalRequests: this.requestStats.total,
217
- successfulRequests: this.requestStats.successful,
218
- failedRequests: this.requestStats.failed,
219
- totalSessions: sessionMetrics.total,
220
- activeSessions: sessionMetrics.active,
221
- ...(transportHealth.metrics || {}),
222
- };
223
- if (poolStats) {
224
- metrics.poolConnections = poolStats.totalConnections;
225
- metrics.poolIdleConnections = poolStats.idleConnections;
226
- metrics.poolBusyConnections = poolStats.busyConnections;
227
- }
228
- return {
229
- healthy: this.running && transportHealth.healthy,
230
- error: transportHealth.error,
231
- metrics,
232
- };
233
- }
234
- catch (error) {
235
- return {
236
- healthy: false,
237
- error: error instanceof Error ? error.message : 'Unknown error',
238
- };
239
- }
240
- }
241
- /**
242
- * Get server metrics
243
- */
244
- getMetrics() {
245
- const sessionMetrics = this.sessionManager.getSessionMetrics();
246
- const registryStats = this.toolRegistry.getStats();
247
- return {
248
- totalRequests: this.requestStats.total,
249
- successfulRequests: this.requestStats.successful,
250
- failedRequests: this.requestStats.failed,
251
- averageResponseTime: this.requestStats.total > 0
252
- ? this.requestStats.totalResponseTime / this.requestStats.total
253
- : 0,
254
- activeSessions: sessionMetrics.active,
255
- toolInvocations: Object.fromEntries(registryStats.topTools.map((t) => [t.name, t.calls])),
256
- errors: {},
257
- lastReset: this.startTime || new Date(),
258
- startupTime: this.startupDuration,
259
- uptime: this.startTime ? Date.now() - this.startTime.getTime() : 0,
260
- };
261
- }
262
- /**
263
- * Get all sessions
264
- */
265
- getSessions() {
266
- return this.sessionManager.getActiveSessions();
267
- }
268
- /**
269
- * Get session by ID
270
- */
271
- getSession(sessionId) {
272
- return this.sessionManager.getSession(sessionId);
273
- }
274
- /**
275
- * Terminate a session
276
- */
277
- terminateSession(sessionId) {
278
- const result = this.sessionManager.closeSession(sessionId, 'Terminated by server');
279
- if (this.currentSession?.id === sessionId) {
280
- this.currentSession = undefined;
281
- }
282
- return result;
283
- }
284
- /**
285
- * Handle incoming request
286
- */
287
- async handleRequest(request) {
288
- const startTime = performance.now();
289
- this.requestStats.total++;
290
- this.logger.debug('Handling request', {
291
- id: request.id,
292
- method: request.method,
293
- });
294
- try {
295
- // Handle initialization
296
- if (request.method === 'initialize') {
297
- return await this.handleInitialize(request);
298
- }
299
- // Get or create session
300
- const session = this.getOrCreateSession();
301
- // Check initialization
302
- if (!session.isInitialized && request.method !== 'initialized') {
303
- return this.createErrorResponse(request.id, ErrorCodes.SERVER_NOT_INITIALIZED, 'Server not initialized');
304
- }
305
- // Update session activity
306
- this.sessionManager.updateActivity(session.id);
307
- // Route request
308
- const response = await this.routeRequest(request);
309
- const duration = performance.now() - startTime;
310
- this.requestStats.successful++;
311
- this.requestStats.totalResponseTime += duration;
312
- this.logger.debug('Request completed', {
313
- id: request.id,
314
- method: request.method,
315
- duration: `${duration.toFixed(2)}ms`,
316
- });
317
- return response;
318
- }
319
- catch (error) {
320
- const duration = performance.now() - startTime;
321
- this.requestStats.failed++;
322
- this.requestStats.totalResponseTime += duration;
323
- this.logger.error('Request failed', {
324
- id: request.id,
325
- method: request.method,
326
- error,
327
- });
328
- return this.createErrorResponse(request.id, ErrorCodes.INTERNAL_ERROR, error instanceof Error ? error.message : 'Internal error');
329
- }
330
- }
331
- /**
332
- * Handle notification
333
- */
334
- async handleNotification(notification) {
335
- this.logger.debug('Handling notification', { method: notification.method });
336
- switch (notification.method) {
337
- case 'initialized':
338
- this.logger.info('Client initialized notification received');
339
- break;
340
- case 'notifications/cancelled':
341
- this.logger.debug('Request cancelled', notification.params);
342
- break;
343
- default:
344
- this.logger.debug('Unknown notification', { method: notification.method });
345
- }
346
- }
347
- /**
348
- * Handle initialize request
349
- */
350
- async handleInitialize(request) {
351
- const params = request.params;
352
- if (!params) {
353
- return this.createErrorResponse(request.id, ErrorCodes.INVALID_PARAMS, 'Invalid params');
354
- }
355
- // Create and initialize session
356
- const session = this.sessionManager.createSession(this.config.transport);
357
- this.sessionManager.initializeSession(session.id, params);
358
- this.currentSession = session;
359
- const result = {
360
- protocolVersion: this.protocolVersion,
361
- capabilities: this.capabilities,
362
- serverInfo: this.serverInfo,
363
- instructions: 'Claude-Flow MCP Server V3 ready for tool execution',
364
- };
365
- this.logger.info('Session initialized', {
366
- sessionId: session.id,
367
- clientInfo: params.clientInfo,
368
- });
369
- return {
370
- jsonrpc: '2.0',
371
- id: request.id,
372
- result,
373
- };
374
- }
375
- /**
376
- * Route request to appropriate handler
377
- */
378
- async routeRequest(request) {
379
- switch (request.method) {
380
- case 'tools/list':
381
- return this.handleToolsList(request);
382
- case 'tools/call':
383
- return this.handleToolsCall(request);
384
- case 'resources/list':
385
- return this.handleResourcesList(request);
386
- case 'prompts/list':
387
- return this.handlePromptsList(request);
388
- case 'ping':
389
- return {
390
- jsonrpc: '2.0',
391
- id: request.id,
392
- result: { pong: true, timestamp: Date.now() },
393
- };
394
- default:
395
- // Try to execute as tool call (backwards compatibility)
396
- if (this.toolRegistry.hasTool(request.method)) {
397
- return this.handleToolExecution(request);
398
- }
399
- return this.createErrorResponse(request.id, ErrorCodes.METHOD_NOT_FOUND, `Method not found: ${request.method}`);
400
- }
401
- }
402
- /**
403
- * Handle tools/list request
404
- */
405
- handleToolsList(request) {
406
- const tools = this.toolRegistry.listTools().map((t) => ({
407
- name: t.name,
408
- description: t.description,
409
- inputSchema: this.toolRegistry.getTool(t.name)?.inputSchema,
410
- }));
411
- return {
412
- jsonrpc: '2.0',
413
- id: request.id,
414
- result: { tools },
415
- };
416
- }
417
- /**
418
- * Handle tools/call request
419
- */
420
- async handleToolsCall(request) {
421
- const params = request.params;
422
- if (!params?.name) {
423
- return this.createErrorResponse(request.id, ErrorCodes.INVALID_PARAMS, 'Tool name is required');
424
- }
425
- const context = {
426
- sessionId: this.currentSession?.id || 'unknown',
427
- requestId: request.id,
428
- orchestrator: this.orchestrator,
429
- swarmCoordinator: this.swarmCoordinator,
430
- };
431
- const result = await this.toolRegistry.execute(params.name, params.arguments || {}, context);
432
- return {
433
- jsonrpc: '2.0',
434
- id: request.id,
435
- result,
436
- };
437
- }
438
- /**
439
- * Handle direct tool execution (backwards compatibility)
440
- */
441
- async handleToolExecution(request) {
442
- const context = {
443
- sessionId: this.currentSession?.id || 'unknown',
444
- requestId: request.id,
445
- orchestrator: this.orchestrator,
446
- swarmCoordinator: this.swarmCoordinator,
447
- };
448
- const result = await this.toolRegistry.execute(request.method, request.params || {}, context);
449
- return {
450
- jsonrpc: '2.0',
451
- id: request.id,
452
- result,
453
- };
454
- }
455
- /**
456
- * Handle resources/list request
457
- */
458
- handleResourcesList(request) {
459
- return {
460
- jsonrpc: '2.0',
461
- id: request.id,
462
- result: { resources: [] },
463
- };
464
- }
465
- /**
466
- * Handle prompts/list request
467
- */
468
- handlePromptsList(request) {
469
- return {
470
- jsonrpc: '2.0',
471
- id: request.id,
472
- result: { prompts: [] },
473
- };
474
- }
475
- /**
476
- * Get or create current session
477
- */
478
- getOrCreateSession() {
479
- if (this.currentSession) {
480
- return this.currentSession;
481
- }
482
- const session = this.sessionManager.createSession(this.config.transport);
483
- this.currentSession = session;
484
- return session;
485
- }
486
- /**
487
- * Create error response
488
- */
489
- createErrorResponse(id, code, message) {
490
- return {
491
- jsonrpc: '2.0',
492
- id,
493
- error: { code, message },
494
- };
495
- }
496
- /**
497
- * Register built-in tools
498
- */
499
- async registerBuiltInTools() {
500
- // System info tool
501
- this.registerTool({
502
- name: 'system/info',
503
- description: 'Get system information',
504
- inputSchema: { type: 'object', properties: {} },
505
- handler: async () => ({
506
- name: this.serverInfo.name,
507
- version: this.serverInfo.version,
508
- platform: platform(),
509
- arch: arch(),
510
- runtime: 'Node.js',
511
- uptime: this.startTime ? Date.now() - this.startTime.getTime() : 0,
512
- }),
513
- category: 'system',
514
- });
515
- // Health check tool
516
- this.registerTool({
517
- name: 'system/health',
518
- description: 'Get system health status',
519
- inputSchema: { type: 'object', properties: {} },
520
- handler: async () => await this.getHealthStatus(),
521
- category: 'system',
522
- cacheable: true,
523
- cacheTTL: 2000,
524
- });
525
- // Metrics tool
526
- this.registerTool({
527
- name: 'system/metrics',
528
- description: 'Get server metrics',
529
- inputSchema: { type: 'object', properties: {} },
530
- handler: async () => this.getMetrics(),
531
- category: 'system',
532
- cacheable: true,
533
- cacheTTL: 1000,
534
- });
535
- // Tools list tool
536
- this.registerTool({
537
- name: 'tools/list-detailed',
538
- description: 'List all registered tools with details',
539
- inputSchema: {
540
- type: 'object',
541
- properties: {
542
- category: { type: 'string', description: 'Filter by category' },
543
- },
544
- },
545
- handler: async (input) => {
546
- const params = input;
547
- if (params.category) {
548
- return this.toolRegistry.getByCategory(params.category);
549
- }
550
- return this.toolRegistry.listTools();
551
- },
552
- category: 'system',
553
- });
554
- this.logger.info('Built-in tools registered', {
555
- count: 4,
556
- });
557
- }
558
- /**
559
- * Setup event handlers
560
- */
561
- setupEventHandlers() {
562
- // Tool events
563
- this.toolRegistry.on('tool:registered', (name) => {
564
- this.emit('tool:registered', name);
565
- });
566
- this.toolRegistry.on('tool:called', (data) => {
567
- this.emit('tool:called', data);
568
- });
569
- this.toolRegistry.on('tool:completed', (data) => {
570
- this.emit('tool:completed', data);
571
- });
572
- this.toolRegistry.on('tool:error', (data) => {
573
- this.emit('tool:error', data);
574
- });
575
- // Session events
576
- this.sessionManager.on('session:created', (session) => {
577
- this.emit('session:created', session);
578
- });
579
- this.sessionManager.on('session:closed', (data) => {
580
- this.emit('session:closed', data);
581
- });
582
- this.sessionManager.on('session:expired', (session) => {
583
- this.emit('session:expired', session);
584
- });
585
- }
586
- }
587
- /**
588
- * Create an MCP server instance
589
- */
590
- export function createMCPServer(config, logger, orchestrator, swarmCoordinator) {
591
- return new MCPServer(config, logger, orchestrator, swarmCoordinator);
592
- }
593
- //# sourceMappingURL=server.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/mcp/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,EAYL,cAAc,EACd,UAAU,GAKX,MAAM,YAAY,CAAC;AACpB,OAAO,EAAgB,kBAAkB,EAAE,MAAM,oBA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