claude-flow 3.0.0-alpha.8 → 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 (922) 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/dist/tsconfig.tsbuildinfo +1 -0
  14. package/package.json +13 -57
  15. package/src/commands/agent.ts +955 -0
  16. package/src/commands/config.ts +452 -0
  17. package/src/commands/daemon.ts +598 -0
  18. package/src/commands/hive-mind.ts +928 -0
  19. package/src/commands/hooks.ts +2603 -0
  20. package/src/commands/index.ts +118 -0
  21. package/src/commands/init.ts +597 -0
  22. package/src/commands/mcp.ts +753 -0
  23. package/src/commands/memory.ts +1161 -0
  24. package/src/commands/migrate.ts +447 -0
  25. package/src/commands/process.ts +695 -0
  26. package/src/commands/session.ts +891 -0
  27. package/src/commands/start.ts +457 -0
  28. package/src/commands/status.ts +736 -0
  29. package/src/commands/swarm.ts +648 -0
  30. package/src/commands/task.ts +792 -0
  31. package/src/commands/workflow.ts +742 -0
  32. package/src/config-adapter.ts +210 -0
  33. package/src/index.ts +427 -0
  34. package/src/infrastructure/in-memory-repositories.ts +310 -0
  35. package/src/init/claudemd-generator.ts +631 -0
  36. package/src/init/executor.ts +762 -0
  37. package/src/init/helpers-generator.ts +628 -0
  38. package/src/init/index.ts +60 -0
  39. package/src/init/mcp-generator.ts +83 -0
  40. package/src/init/settings-generator.ts +284 -0
  41. package/src/init/statusline-generator.ts +211 -0
  42. package/src/init/types.ts +447 -0
  43. package/src/mcp-client.ts +241 -0
  44. package/src/mcp-server.ts +577 -0
  45. package/src/mcp-tools/agent-tools.ts +466 -0
  46. package/src/mcp-tools/config-tools.ts +370 -0
  47. package/src/mcp-tools/hive-mind-tools.ts +521 -0
  48. package/src/mcp-tools/hooks-tools.ts +1888 -0
  49. package/src/mcp-tools/index.ts +16 -0
  50. package/src/mcp-tools/memory-tools.ts +270 -0
  51. package/src/mcp-tools/session-tools.ts +359 -0
  52. package/src/mcp-tools/swarm-tools.ts +105 -0
  53. package/src/mcp-tools/task-tools.ts +347 -0
  54. package/src/mcp-tools/types.ts +33 -0
  55. package/src/mcp-tools/workflow-tools.ts +573 -0
  56. package/src/output.ts +639 -0
  57. package/src/parser.ts +417 -0
  58. package/src/prompt.ts +619 -0
  59. package/src/services/index.ts +15 -0
  60. package/src/services/worker-daemon.ts +726 -0
  61. package/src/types.ts +287 -0
  62. package/.claude/.claude-flow/metrics/system-metrics.json +0 -2606
  63. package/.claude/agents/MIGRATION_SUMMARY.md +0 -222
  64. package/.claude/agents/README.md +0 -89
  65. package/.claude/agents/analysis/analyze-code-quality.md +0 -180
  66. package/.claude/agents/analysis/code-analyzer.md +0 -209
  67. package/.claude/agents/analysis/code-review/analyze-code-quality.md +0 -180
  68. package/.claude/agents/architecture/system-design/arch-system-design.md +0 -156
  69. package/.claude/agents/base-template-generator.md +0 -42
  70. package/.claude/agents/consensus/README.md +0 -253
  71. package/.claude/agents/consensus/byzantine-coordinator.md +0 -63
  72. package/.claude/agents/consensus/crdt-synchronizer.md +0 -997
  73. package/.claude/agents/consensus/gossip-coordinator.md +0 -63
  74. package/.claude/agents/consensus/performance-benchmarker.md +0 -851
  75. package/.claude/agents/consensus/quorum-manager.md +0 -823
  76. package/.claude/agents/consensus/raft-manager.md +0 -63
  77. package/.claude/agents/consensus/security-manager.md +0 -622
  78. package/.claude/agents/core/coder.md +0 -266
  79. package/.claude/agents/core/planner.md +0 -168
  80. package/.claude/agents/core/researcher.md +0 -190
  81. package/.claude/agents/core/reviewer.md +0 -326
  82. package/.claude/agents/core/tester.md +0 -319
  83. package/.claude/agents/custom/test-long-runner.md +0 -44
  84. package/.claude/agents/data/ml/data-ml-model.md +0 -193
  85. package/.claude/agents/database-specialist.yaml +0 -21
  86. package/.claude/agents/development/backend/dev-backend-api.md +0 -142
  87. package/.claude/agents/development/dev-backend-api.md +0 -345
  88. package/.claude/agents/devops/ci-cd/ops-cicd-github.md +0 -164
  89. package/.claude/agents/documentation/api-docs/docs-api-openapi.md +0 -174
  90. package/.claude/agents/flow-nexus/app-store.md +0 -88
  91. package/.claude/agents/flow-nexus/authentication.md +0 -69
  92. package/.claude/agents/flow-nexus/challenges.md +0 -81
  93. package/.claude/agents/flow-nexus/neural-network.md +0 -88
  94. package/.claude/agents/flow-nexus/payments.md +0 -83
  95. package/.claude/agents/flow-nexus/sandbox.md +0 -76
  96. package/.claude/agents/flow-nexus/swarm.md +0 -76
  97. package/.claude/agents/flow-nexus/user-tools.md +0 -96
  98. package/.claude/agents/flow-nexus/workflow.md +0 -84
  99. package/.claude/agents/github/code-review-swarm.md +0 -538
  100. package/.claude/agents/github/github-modes.md +0 -173
  101. package/.claude/agents/github/issue-tracker.md +0 -319
  102. package/.claude/agents/github/multi-repo-swarm.md +0 -553
  103. package/.claude/agents/github/pr-manager.md +0 -191
  104. package/.claude/agents/github/project-board-sync.md +0 -509
  105. package/.claude/agents/github/release-manager.md +0 -367
  106. package/.claude/agents/github/release-swarm.md +0 -583
  107. package/.claude/agents/github/repo-architect.md +0 -398
  108. package/.claude/agents/github/swarm-issue.md +0 -573
  109. package/.claude/agents/github/swarm-pr.md +0 -428
  110. package/.claude/agents/github/sync-coordinator.md +0 -452
  111. package/.claude/agents/github/workflow-automation.md +0 -635
  112. package/.claude/agents/goal/agent.md +0 -816
  113. package/.claude/agents/goal/code-goal-planner.md +0 -446
  114. package/.claude/agents/goal/goal-planner.md +0 -168
  115. package/.claude/agents/hive-mind/collective-intelligence-coordinator.md +0 -130
  116. package/.claude/agents/hive-mind/queen-coordinator.md +0 -203
  117. package/.claude/agents/hive-mind/scout-explorer.md +0 -242
  118. package/.claude/agents/hive-mind/swarm-memory-manager.md +0 -193
  119. package/.claude/agents/hive-mind/worker-specialist.md +0 -217
  120. package/.claude/agents/index.yaml +0 -17
  121. package/.claude/agents/neural/safla-neural.md +0 -74
  122. package/.claude/agents/optimization/README.md +0 -250
  123. package/.claude/agents/optimization/benchmark-suite.md +0 -665
  124. package/.claude/agents/optimization/load-balancer.md +0 -431
  125. package/.claude/agents/optimization/performance-monitor.md +0 -672
  126. package/.claude/agents/optimization/resource-allocator.md +0 -674
  127. package/.claude/agents/optimization/topology-optimizer.md +0 -808
  128. package/.claude/agents/payments/agentic-payments.md +0 -126
  129. package/.claude/agents/project-coordinator.yaml +0 -15
  130. package/.claude/agents/python-specialist.yaml +0 -21
  131. package/.claude/agents/reasoning/agent.md +0 -816
  132. package/.claude/agents/reasoning/goal-planner.md +0 -73
  133. package/.claude/agents/security-auditor.yaml +0 -20
  134. package/.claude/agents/sona/sona-learning-optimizer.md +0 -496
  135. package/.claude/agents/sparc/architecture.md +0 -472
  136. package/.claude/agents/sparc/pseudocode.md +0 -318
  137. package/.claude/agents/sparc/refinement.md +0 -525
  138. package/.claude/agents/sparc/specification.md +0 -276
  139. package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +0 -226
  140. package/.claude/agents/sublinear/consensus-coordinator.md +0 -338
  141. package/.claude/agents/sublinear/matrix-optimizer.md +0 -185
  142. package/.claude/agents/sublinear/pagerank-analyzer.md +0 -299
  143. package/.claude/agents/sublinear/performance-optimizer.md +0 -368
  144. package/.claude/agents/sublinear/trading-predictor.md +0 -246
  145. package/.claude/agents/swarm/README.md +0 -190
  146. package/.claude/agents/swarm/adaptive-coordinator.md +0 -396
  147. package/.claude/agents/swarm/hierarchical-coordinator.md +0 -327
  148. package/.claude/agents/swarm/mesh-coordinator.md +0 -392
  149. package/.claude/agents/templates/automation-smart-agent.md +0 -205
  150. package/.claude/agents/templates/coordinator-swarm-init.md +0 -105
  151. package/.claude/agents/templates/github-pr-manager.md +0 -177
  152. package/.claude/agents/templates/implementer-sparc-coder.md +0 -259
  153. package/.claude/agents/templates/memory-coordinator.md +0 -187
  154. package/.claude/agents/templates/migration-plan.md +0 -746
  155. package/.claude/agents/templates/orchestrator-task.md +0 -139
  156. package/.claude/agents/templates/performance-analyzer.md +0 -199
  157. package/.claude/agents/templates/sparc-coordinator.md +0 -183
  158. package/.claude/agents/testing/production-validator.md +0 -395
  159. package/.claude/agents/testing/tdd-london-swarm.md +0 -244
  160. package/.claude/agents/testing/unit/tdd-london-swarm.md +0 -244
  161. package/.claude/agents/testing/validation/production-validator.md +0 -395
  162. package/.claude/agents/typescript-specialist.yaml +0 -21
  163. package/.claude/agents/v3/database-specialist.yaml +0 -21
  164. package/.claude/agents/v3/index.yaml +0 -17
  165. package/.claude/agents/v3/project-coordinator.yaml +0 -15
  166. package/.claude/agents/v3/python-specialist.yaml +0 -21
  167. package/.claude/agents/v3/test-architect.yaml +0 -20
  168. package/.claude/agents/v3/typescript-specialist.yaml +0 -21
  169. package/.claude/agents/v3/v3-integration-architect.md +0 -346
  170. package/.claude/agents/v3/v3-memory-specialist.md +0 -318
  171. package/.claude/agents/v3/v3-performance-engineer.md +0 -397
  172. package/.claude/agents/v3/v3-queen-coordinator.md +0 -98
  173. package/.claude/agents/v3/v3-security-architect.md +0 -174
  174. package/.claude/checkpoints/1767754460.json +0 -8
  175. package/.claude/commands/agents/README.md +0 -10
  176. package/.claude/commands/agents/agent-capabilities.md +0 -21
  177. package/.claude/commands/agents/agent-coordination.md +0 -28
  178. package/.claude/commands/agents/agent-spawning.md +0 -28
  179. package/.claude/commands/agents/agent-types.md +0 -26
  180. package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +0 -54
  181. package/.claude/commands/analysis/README.md +0 -9
  182. package/.claude/commands/analysis/bottleneck-detect.md +0 -162
  183. package/.claude/commands/analysis/performance-bottlenecks.md +0 -59
  184. package/.claude/commands/analysis/performance-report.md +0 -25
  185. package/.claude/commands/analysis/token-efficiency.md +0 -45
  186. package/.claude/commands/analysis/token-usage.md +0 -25
  187. package/.claude/commands/automation/README.md +0 -9
  188. package/.claude/commands/automation/auto-agent.md +0 -122
  189. package/.claude/commands/automation/self-healing.md +0 -106
  190. package/.claude/commands/automation/session-memory.md +0 -90
  191. package/.claude/commands/automation/smart-agents.md +0 -73
  192. package/.claude/commands/automation/smart-spawn.md +0 -25
  193. package/.claude/commands/automation/workflow-select.md +0 -25
  194. package/.claude/commands/claude-flow-help.md +0 -103
  195. package/.claude/commands/claude-flow-memory.md +0 -107
  196. package/.claude/commands/claude-flow-swarm.md +0 -205
  197. package/.claude/commands/coordination/README.md +0 -9
  198. package/.claude/commands/coordination/agent-spawn.md +0 -25
  199. package/.claude/commands/coordination/init.md +0 -44
  200. package/.claude/commands/coordination/orchestrate.md +0 -43
  201. package/.claude/commands/coordination/spawn.md +0 -45
  202. package/.claude/commands/coordination/swarm-init.md +0 -85
  203. package/.claude/commands/coordination/task-orchestrate.md +0 -25
  204. package/.claude/commands/flow-nexus/app-store.md +0 -124
  205. package/.claude/commands/flow-nexus/challenges.md +0 -120
  206. package/.claude/commands/flow-nexus/login-registration.md +0 -65
  207. package/.claude/commands/flow-nexus/neural-network.md +0 -134
  208. package/.claude/commands/flow-nexus/payments.md +0 -116
  209. package/.claude/commands/flow-nexus/sandbox.md +0 -83
  210. package/.claude/commands/flow-nexus/swarm.md +0 -87
  211. package/.claude/commands/flow-nexus/user-tools.md +0 -152
  212. package/.claude/commands/flow-nexus/workflow.md +0 -115
  213. package/.claude/commands/github/README.md +0 -11
  214. package/.claude/commands/github/code-review-swarm.md +0 -514
  215. package/.claude/commands/github/code-review.md +0 -25
  216. package/.claude/commands/github/github-modes.md +0 -147
  217. package/.claude/commands/github/github-swarm.md +0 -121
  218. package/.claude/commands/github/issue-tracker.md +0 -292
  219. package/.claude/commands/github/issue-triage.md +0 -25
  220. package/.claude/commands/github/multi-repo-swarm.md +0 -519
  221. package/.claude/commands/github/pr-enhance.md +0 -26
  222. package/.claude/commands/github/pr-manager.md +0 -170
  223. package/.claude/commands/github/project-board-sync.md +0 -471
  224. package/.claude/commands/github/release-manager.md +0 -338
  225. package/.claude/commands/github/release-swarm.md +0 -544
  226. package/.claude/commands/github/repo-analyze.md +0 -25
  227. package/.claude/commands/github/repo-architect.md +0 -367
  228. package/.claude/commands/github/swarm-issue.md +0 -482
  229. package/.claude/commands/github/swarm-pr.md +0 -285
  230. package/.claude/commands/github/sync-coordinator.md +0 -301
  231. package/.claude/commands/github/workflow-automation.md +0 -442
  232. package/.claude/commands/hive-mind/README.md +0 -17
  233. package/.claude/commands/hive-mind/hive-mind-consensus.md +0 -8
  234. package/.claude/commands/hive-mind/hive-mind-init.md +0 -18
  235. package/.claude/commands/hive-mind/hive-mind-memory.md +0 -8
  236. package/.claude/commands/hive-mind/hive-mind-metrics.md +0 -8
  237. package/.claude/commands/hive-mind/hive-mind-resume.md +0 -8
  238. package/.claude/commands/hive-mind/hive-mind-sessions.md +0 -8
  239. package/.claude/commands/hive-mind/hive-mind-spawn.md +0 -21
  240. package/.claude/commands/hive-mind/hive-mind-status.md +0 -8
  241. package/.claude/commands/hive-mind/hive-mind-stop.md +0 -8
  242. package/.claude/commands/hive-mind/hive-mind-wizard.md +0 -8
  243. package/.claude/commands/hive-mind/hive-mind.md +0 -27
  244. package/.claude/commands/hooks/README.md +0 -11
  245. package/.claude/commands/hooks/overview.md +0 -58
  246. package/.claude/commands/hooks/post-edit.md +0 -117
  247. package/.claude/commands/hooks/post-task.md +0 -112
  248. package/.claude/commands/hooks/pre-edit.md +0 -113
  249. package/.claude/commands/hooks/pre-task.md +0 -111
  250. package/.claude/commands/hooks/session-end.md +0 -118
  251. package/.claude/commands/hooks/setup.md +0 -103
  252. package/.claude/commands/memory/README.md +0 -9
  253. package/.claude/commands/memory/memory-persist.md +0 -25
  254. package/.claude/commands/memory/memory-search.md +0 -25
  255. package/.claude/commands/memory/memory-usage.md +0 -25
  256. package/.claude/commands/memory/neural.md +0 -47
  257. package/.claude/commands/monitoring/README.md +0 -9
  258. package/.claude/commands/monitoring/agent-metrics.md +0 -25
  259. package/.claude/commands/monitoring/agents.md +0 -44
  260. package/.claude/commands/monitoring/real-time-view.md +0 -25
  261. package/.claude/commands/monitoring/status.md +0 -46
  262. package/.claude/commands/monitoring/swarm-monitor.md +0 -25
  263. package/.claude/commands/optimization/README.md +0 -9
  264. package/.claude/commands/optimization/auto-topology.md +0 -62
  265. package/.claude/commands/optimization/cache-manage.md +0 -25
  266. package/.claude/commands/optimization/parallel-execute.md +0 -25
  267. package/.claude/commands/optimization/parallel-execution.md +0 -50
  268. package/.claude/commands/optimization/topology-optimize.md +0 -25
  269. package/.claude/commands/pair/README.md +0 -261
  270. package/.claude/commands/pair/commands.md +0 -546
  271. package/.claude/commands/pair/config.md +0 -510
  272. package/.claude/commands/pair/examples.md +0 -512
  273. package/.claude/commands/pair/modes.md +0 -348
  274. package/.claude/commands/pair/session.md +0 -407
  275. package/.claude/commands/pair/start.md +0 -209
  276. package/.claude/commands/sparc/analyzer.md +0 -52
  277. package/.claude/commands/sparc/architect.md +0 -53
  278. package/.claude/commands/sparc/ask.md +0 -97
  279. package/.claude/commands/sparc/batch-executor.md +0 -54
  280. package/.claude/commands/sparc/code.md +0 -89
  281. package/.claude/commands/sparc/coder.md +0 -54
  282. package/.claude/commands/sparc/debug.md +0 -83
  283. package/.claude/commands/sparc/debugger.md +0 -54
  284. package/.claude/commands/sparc/designer.md +0 -53
  285. package/.claude/commands/sparc/devops.md +0 -109
  286. package/.claude/commands/sparc/docs-writer.md +0 -80
  287. package/.claude/commands/sparc/documenter.md +0 -54
  288. package/.claude/commands/sparc/innovator.md +0 -54
  289. package/.claude/commands/sparc/integration.md +0 -83
  290. package/.claude/commands/sparc/mcp.md +0 -117
  291. package/.claude/commands/sparc/memory-manager.md +0 -54
  292. package/.claude/commands/sparc/optimizer.md +0 -54
  293. package/.claude/commands/sparc/orchestrator.md +0 -132
  294. package/.claude/commands/sparc/post-deployment-monitoring-mode.md +0 -83
  295. package/.claude/commands/sparc/refinement-optimization-mode.md +0 -83
  296. package/.claude/commands/sparc/researcher.md +0 -54
  297. package/.claude/commands/sparc/reviewer.md +0 -54
  298. package/.claude/commands/sparc/security-review.md +0 -80
  299. package/.claude/commands/sparc/sparc-modes.md +0 -174
  300. package/.claude/commands/sparc/sparc.md +0 -111
  301. package/.claude/commands/sparc/spec-pseudocode.md +0 -80
  302. package/.claude/commands/sparc/supabase-admin.md +0 -348
  303. package/.claude/commands/sparc/swarm-coordinator.md +0 -54
  304. package/.claude/commands/sparc/tdd.md +0 -54
  305. package/.claude/commands/sparc/tester.md +0 -54
  306. package/.claude/commands/sparc/tutorial.md +0 -79
  307. package/.claude/commands/sparc/workflow-manager.md +0 -54
  308. package/.claude/commands/sparc.md +0 -166
  309. package/.claude/commands/stream-chain/pipeline.md +0 -121
  310. package/.claude/commands/stream-chain/run.md +0 -70
  311. package/.claude/commands/swarm/README.md +0 -15
  312. package/.claude/commands/swarm/analysis.md +0 -95
  313. package/.claude/commands/swarm/development.md +0 -96
  314. package/.claude/commands/swarm/examples.md +0 -168
  315. package/.claude/commands/swarm/maintenance.md +0 -102
  316. package/.claude/commands/swarm/optimization.md +0 -117
  317. package/.claude/commands/swarm/research.md +0 -136
  318. package/.claude/commands/swarm/swarm-analysis.md +0 -8
  319. package/.claude/commands/swarm/swarm-background.md +0 -8
  320. package/.claude/commands/swarm/swarm-init.md +0 -19
  321. package/.claude/commands/swarm/swarm-modes.md +0 -8
  322. package/.claude/commands/swarm/swarm-monitor.md +0 -8
  323. package/.claude/commands/swarm/swarm-spawn.md +0 -19
  324. package/.claude/commands/swarm/swarm-status.md +0 -8
  325. package/.claude/commands/swarm/swarm-strategies.md +0 -8
  326. package/.claude/commands/swarm/swarm.md +0 -27
  327. package/.claude/commands/swarm/testing.md +0 -131
  328. package/.claude/commands/training/README.md +0 -9
  329. package/.claude/commands/training/model-update.md +0 -25
  330. package/.claude/commands/training/neural-patterns.md +0 -74
  331. package/.claude/commands/training/neural-train.md +0 -25
  332. package/.claude/commands/training/pattern-learn.md +0 -25
  333. package/.claude/commands/training/specialization.md +0 -63
  334. package/.claude/commands/truth/start.md +0 -143
  335. package/.claude/commands/verify/check.md +0 -50
  336. package/.claude/commands/verify/start.md +0 -128
  337. package/.claude/commands/workflows/README.md +0 -9
  338. package/.claude/commands/workflows/development.md +0 -78
  339. package/.claude/commands/workflows/research.md +0 -63
  340. package/.claude/commands/workflows/workflow-create.md +0 -25
  341. package/.claude/commands/workflows/workflow-execute.md +0 -25
  342. package/.claude/commands/workflows/workflow-export.md +0 -25
  343. package/.claude/config/v3-dependency-optimization.json +0 -266
  344. package/.claude/config/v3-performance-targets.json +0 -251
  345. package/.claude/helpers/README.md +0 -97
  346. package/.claude/helpers/adr-compliance.sh +0 -186
  347. package/.claude/helpers/auto-commit.sh +0 -178
  348. package/.claude/helpers/checkpoint-manager.sh +0 -251
  349. package/.claude/helpers/daemon-manager.sh +0 -252
  350. package/.claude/helpers/ddd-tracker.sh +0 -144
  351. package/.claude/helpers/github-safe.js +0 -106
  352. package/.claude/helpers/github-setup.sh +0 -28
  353. package/.claude/helpers/guidance-hook.sh +0 -13
  354. package/.claude/helpers/guidance-hooks.sh +0 -102
  355. package/.claude/helpers/health-monitor.sh +0 -108
  356. package/.claude/helpers/learning-hooks.sh +0 -329
  357. package/.claude/helpers/learning-optimizer.sh +0 -127
  358. package/.claude/helpers/learning-service.mjs +0 -1097
  359. package/.claude/helpers/metrics-db.mjs +0 -474
  360. package/.claude/helpers/pattern-consolidator.sh +0 -86
  361. package/.claude/helpers/perf-worker.sh +0 -160
  362. package/.claude/helpers/quick-start.sh +0 -19
  363. package/.claude/helpers/security-scanner.sh +0 -127
  364. package/.claude/helpers/setup-mcp.sh +0 -18
  365. package/.claude/helpers/standard-checkpoint-hooks.sh +0 -189
  366. package/.claude/helpers/swarm-comms.sh +0 -353
  367. package/.claude/helpers/swarm-hooks.sh +0 -761
  368. package/.claude/helpers/swarm-monitor.sh +0 -211
  369. package/.claude/helpers/sync-v3-metrics.sh +0 -245
  370. package/.claude/helpers/update-v3-progress.sh +0 -166
  371. package/.claude/helpers/v3-quick-status.sh +0 -58
  372. package/.claude/helpers/v3.sh +0 -111
  373. package/.claude/helpers/validate-v3-config.sh +0 -216
  374. package/.claude/helpers/worker-manager.sh +0 -170
  375. package/.claude/mcp.json +0 -13
  376. package/.claude/settings.json +0 -526
  377. package/.claude/settings.local.json +0 -10
  378. package/.claude/skills/.claude-flow/metrics/agent-metrics.json +0 -1
  379. package/.claude/skills/.claude-flow/metrics/performance.json +0 -87
  380. package/.claude/skills/.claude-flow/metrics/task-metrics.json +0 -10
  381. package/.claude/skills/agentdb-advanced/SKILL.md +0 -550
  382. package/.claude/skills/agentdb-learning/SKILL.md +0 -545
  383. package/.claude/skills/agentdb-memory-patterns/SKILL.md +0 -339
  384. package/.claude/skills/agentdb-optimization/SKILL.md +0 -509
  385. package/.claude/skills/agentdb-vector-search/SKILL.md +0 -339
  386. package/.claude/skills/agentic-jujutsu/SKILL.md +0 -645
  387. package/.claude/skills/flow-nexus-neural/SKILL.md +0 -738
  388. package/.claude/skills/flow-nexus-platform/SKILL.md +0 -1157
  389. package/.claude/skills/flow-nexus-swarm/SKILL.md +0 -610
  390. package/.claude/skills/github-code-review/SKILL.md +0 -1140
  391. package/.claude/skills/github-multi-repo/SKILL.md +0 -874
  392. package/.claude/skills/github-project-management/SKILL.md +0 -1277
  393. package/.claude/skills/github-release-management/SKILL.md +0 -1081
  394. package/.claude/skills/github-workflow-automation/SKILL.md +0 -1065
  395. package/.claude/skills/hive-mind-advanced/SKILL.md +0 -712
  396. package/.claude/skills/hooks-automation/SKILL.md +0 -1201
  397. package/.claude/skills/pair-programming/SKILL.md +0 -1202
  398. package/.claude/skills/performance-analysis/SKILL.md +0 -563
  399. package/.claude/skills/reasoningbank-agentdb/SKILL.md +0 -446
  400. package/.claude/skills/reasoningbank-intelligence/SKILL.md +0 -201
  401. package/.claude/skills/skill-builder/.claude-flow/metrics/agent-metrics.json +0 -1
  402. package/.claude/skills/skill-builder/.claude-flow/metrics/performance.json +0 -87
  403. package/.claude/skills/skill-builder/.claude-flow/metrics/task-metrics.json +0 -10
  404. package/.claude/skills/skill-builder/SKILL.md +0 -910
  405. package/.claude/skills/sparc-methodology/SKILL.md +0 -1115
  406. package/.claude/skills/stream-chain/SKILL.md +0 -563
  407. package/.claude/skills/swarm-advanced/SKILL.md +0 -973
  408. package/.claude/skills/swarm-orchestration/SKILL.md +0 -179
  409. package/.claude/skills/v3-cli-modernization/SKILL.md +0 -872
  410. package/.claude/skills/v3-core-implementation/SKILL.md +0 -797
  411. package/.claude/skills/v3-ddd-architecture/SKILL.md +0 -442
  412. package/.claude/skills/v3-integration-deep/SKILL.md +0 -241
  413. package/.claude/skills/v3-mcp-optimization/SKILL.md +0 -777
  414. package/.claude/skills/v3-memory-unification/SKILL.md +0 -174
  415. package/.claude/skills/v3-performance-optimization/SKILL.md +0 -390
  416. package/.claude/skills/v3-security-overhaul/SKILL.md +0 -82
  417. package/.claude/skills/v3-swarm-coordination/SKILL.md +0 -340
  418. package/.claude/skills/verification-quality/SKILL.md +0 -649
  419. package/.claude/skills/worker-benchmarks/skill.md +0 -135
  420. package/.claude/skills/worker-integration/skill.md +0 -154
  421. package/.claude/statusline-command.sh +0 -176
  422. package/.claude/statusline.mjs +0 -109
  423. package/.claude/statusline.sh +0 -375
  424. package/.claude-plugin/README.md +0 -720
  425. package/.claude-plugin/docs/INSTALLATION.md +0 -261
  426. package/.claude-plugin/docs/PLUGIN_SUMMARY.md +0 -361
  427. package/.claude-plugin/docs/QUICKSTART.md +0 -361
  428. package/.claude-plugin/docs/STRUCTURE.md +0 -128
  429. package/.claude-plugin/hooks/hooks.json +0 -74
  430. package/.claude-plugin/marketplace.json +0 -96
  431. package/.claude-plugin/plugin.json +0 -71
  432. package/.claude-plugin/scripts/install.sh +0 -234
  433. package/.claude-plugin/scripts/uninstall.sh +0 -36
  434. package/.claude-plugin/scripts/verify.sh +0 -108
  435. package/v3/@claude-flow/cli/README.md +0 -1186
  436. package/v3/@claude-flow/cli/dist/src/commands/daemon.js.map +0 -1
  437. package/v3/@claude-flow/cli/dist/src/index.js.map +0 -1
  438. package/v3/@claude-flow/cli/dist/src/output.d.ts.map +0 -1
  439. package/v3/@claude-flow/cli/dist/src/output.js.map +0 -1
  440. package/v3/@claude-flow/cli/dist/tsconfig.tsbuildinfo +0 -1
  441. package/v3/@claude-flow/cli/package.json +0 -29
  442. package/v3/@claude-flow/shared/README.md +0 -323
  443. package/v3/@claude-flow/shared/dist/core/config/defaults.d.ts +0 -41
  444. package/v3/@claude-flow/shared/dist/core/config/defaults.d.ts.map +0 -1
  445. package/v3/@claude-flow/shared/dist/core/config/defaults.js +0 -186
  446. package/v3/@claude-flow/shared/dist/core/config/defaults.js.map +0 -1
  447. package/v3/@claude-flow/shared/dist/core/config/index.d.ts +0 -8
  448. package/v3/@claude-flow/shared/dist/core/config/index.d.ts.map +0 -1
  449. package/v3/@claude-flow/shared/dist/core/config/index.js +0 -12
  450. package/v3/@claude-flow/shared/dist/core/config/index.js.map +0 -1
  451. package/v3/@claude-flow/shared/dist/core/config/loader.d.ts +0 -45
  452. package/v3/@claude-flow/shared/dist/core/config/loader.d.ts.map +0 -1
  453. package/v3/@claude-flow/shared/dist/core/config/loader.js +0 -222
  454. package/v3/@claude-flow/shared/dist/core/config/loader.js.map +0 -1
  455. package/v3/@claude-flow/shared/dist/core/config/schema.d.ts +0 -1134
  456. package/v3/@claude-flow/shared/dist/core/config/schema.d.ts.map +0 -1
  457. package/v3/@claude-flow/shared/dist/core/config/schema.js +0 -158
  458. package/v3/@claude-flow/shared/dist/core/config/schema.js.map +0 -1
  459. package/v3/@claude-flow/shared/dist/core/config/validator.d.ts +0 -92
  460. package/v3/@claude-flow/shared/dist/core/config/validator.d.ts.map +0 -1
  461. package/v3/@claude-flow/shared/dist/core/config/validator.js +0 -147
  462. package/v3/@claude-flow/shared/dist/core/config/validator.js.map +0 -1
  463. package/v3/@claude-flow/shared/dist/core/event-bus.d.ts +0 -31
  464. package/v3/@claude-flow/shared/dist/core/event-bus.d.ts.map +0 -1
  465. package/v3/@claude-flow/shared/dist/core/event-bus.js +0 -197
  466. package/v3/@claude-flow/shared/dist/core/event-bus.js.map +0 -1
  467. package/v3/@claude-flow/shared/dist/core/index.d.ts +0 -15
  468. package/v3/@claude-flow/shared/dist/core/index.d.ts.map +0 -1
  469. package/v3/@claude-flow/shared/dist/core/index.js +0 -19
  470. package/v3/@claude-flow/shared/dist/core/index.js.map +0 -1
  471. package/v3/@claude-flow/shared/dist/core/interfaces/agent.interface.d.ts +0 -200
  472. package/v3/@claude-flow/shared/dist/core/interfaces/agent.interface.d.ts.map +0 -1
  473. package/v3/@claude-flow/shared/dist/core/interfaces/agent.interface.js +0 -6
  474. package/v3/@claude-flow/shared/dist/core/interfaces/agent.interface.js.map +0 -1
  475. package/v3/@claude-flow/shared/dist/core/interfaces/coordinator.interface.d.ts +0 -310
  476. package/v3/@claude-flow/shared/dist/core/interfaces/coordinator.interface.d.ts.map +0 -1
  477. package/v3/@claude-flow/shared/dist/core/interfaces/coordinator.interface.js +0 -7
  478. package/v3/@claude-flow/shared/dist/core/interfaces/coordinator.interface.js.map +0 -1
  479. package/v3/@claude-flow/shared/dist/core/interfaces/event.interface.d.ts +0 -224
  480. package/v3/@claude-flow/shared/dist/core/interfaces/event.interface.d.ts.map +0 -1
  481. package/v3/@claude-flow/shared/dist/core/interfaces/event.interface.js +0 -46
  482. package/v3/@claude-flow/shared/dist/core/interfaces/event.interface.js.map +0 -1
  483. package/v3/@claude-flow/shared/dist/core/interfaces/index.d.ts +0 -10
  484. package/v3/@claude-flow/shared/dist/core/interfaces/index.d.ts.map +0 -1
  485. package/v3/@claude-flow/shared/dist/core/interfaces/index.js +0 -15
  486. package/v3/@claude-flow/shared/dist/core/interfaces/index.js.map +0 -1
  487. package/v3/@claude-flow/shared/dist/core/interfaces/memory.interface.d.ts +0 -298
  488. package/v3/@claude-flow/shared/dist/core/interfaces/memory.interface.d.ts.map +0 -1
  489. package/v3/@claude-flow/shared/dist/core/interfaces/memory.interface.js +0 -7
  490. package/v3/@claude-flow/shared/dist/core/interfaces/memory.interface.js.map +0 -1
  491. package/v3/@claude-flow/shared/dist/core/interfaces/task.interface.d.ts +0 -185
  492. package/v3/@claude-flow/shared/dist/core/interfaces/task.interface.d.ts.map +0 -1
  493. package/v3/@claude-flow/shared/dist/core/interfaces/task.interface.js +0 -6
  494. package/v3/@claude-flow/shared/dist/core/interfaces/task.interface.js.map +0 -1
  495. package/v3/@claude-flow/shared/dist/core/orchestrator/event-coordinator.d.ts +0 -35
  496. package/v3/@claude-flow/shared/dist/core/orchestrator/event-coordinator.d.ts.map +0 -1
  497. package/v3/@claude-flow/shared/dist/core/orchestrator/event-coordinator.js +0 -101
  498. package/v3/@claude-flow/shared/dist/core/orchestrator/event-coordinator.js.map +0 -1
  499. package/v3/@claude-flow/shared/dist/core/orchestrator/health-monitor.d.ts +0 -60
  500. package/v3/@claude-flow/shared/dist/core/orchestrator/health-monitor.d.ts.map +0 -1
  501. package/v3/@claude-flow/shared/dist/core/orchestrator/health-monitor.js +0 -166
  502. package/v3/@claude-flow/shared/dist/core/orchestrator/health-monitor.js.map +0 -1
  503. package/v3/@claude-flow/shared/dist/core/orchestrator/index.d.ts +0 -46
  504. package/v3/@claude-flow/shared/dist/core/orchestrator/index.d.ts.map +0 -1
  505. package/v3/@claude-flow/shared/dist/core/orchestrator/index.js +0 -64
  506. package/v3/@claude-flow/shared/dist/core/orchestrator/index.js.map +0 -1
  507. package/v3/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.d.ts +0 -56
  508. package/v3/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.d.ts.map +0 -1
  509. package/v3/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.js +0 -195
  510. package/v3/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.js.map +0 -1
  511. package/v3/@claude-flow/shared/dist/core/orchestrator/session-manager.d.ts +0 -83
  512. package/v3/@claude-flow/shared/dist/core/orchestrator/session-manager.d.ts.map +0 -1
  513. package/v3/@claude-flow/shared/dist/core/orchestrator/session-manager.js +0 -193
  514. package/v3/@claude-flow/shared/dist/core/orchestrator/session-manager.js.map +0 -1
  515. package/v3/@claude-flow/shared/dist/core/orchestrator/task-manager.d.ts +0 -49
  516. package/v3/@claude-flow/shared/dist/core/orchestrator/task-manager.d.ts.map +0 -1
  517. package/v3/@claude-flow/shared/dist/core/orchestrator/task-manager.js +0 -253
  518. package/v3/@claude-flow/shared/dist/core/orchestrator/task-manager.js.map +0 -1
  519. package/v3/@claude-flow/shared/dist/events/domain-events.d.ts +0 -282
  520. package/v3/@claude-flow/shared/dist/events/domain-events.d.ts.map +0 -1
  521. package/v3/@claude-flow/shared/dist/events/domain-events.js +0 -165
  522. package/v3/@claude-flow/shared/dist/events/domain-events.js.map +0 -1
  523. package/v3/@claude-flow/shared/dist/events/event-store.d.ts +0 -126
  524. package/v3/@claude-flow/shared/dist/events/event-store.d.ts.map +0 -1
  525. package/v3/@claude-flow/shared/dist/events/event-store.js +0 -416
  526. package/v3/@claude-flow/shared/dist/events/event-store.js.map +0 -1
  527. package/v3/@claude-flow/shared/dist/events/event-store.test.d.ts +0 -8
  528. package/v3/@claude-flow/shared/dist/events/event-store.test.d.ts.map +0 -1
  529. package/v3/@claude-flow/shared/dist/events/event-store.test.js +0 -293
  530. package/v3/@claude-flow/shared/dist/events/event-store.test.js.map +0 -1
  531. package/v3/@claude-flow/shared/dist/events/example-usage.d.ts +0 -10
  532. package/v3/@claude-flow/shared/dist/events/example-usage.d.ts.map +0 -1
  533. package/v3/@claude-flow/shared/dist/events/example-usage.js +0 -193
  534. package/v3/@claude-flow/shared/dist/events/example-usage.js.map +0 -1
  535. package/v3/@claude-flow/shared/dist/events/index.d.ts +0 -19
  536. package/v3/@claude-flow/shared/dist/events/index.d.ts.map +0 -1
  537. package/v3/@claude-flow/shared/dist/events/index.js +0 -20
  538. package/v3/@claude-flow/shared/dist/events/index.js.map +0 -1
  539. package/v3/@claude-flow/shared/dist/events/projections.d.ts +0 -177
  540. package/v3/@claude-flow/shared/dist/events/projections.d.ts.map +0 -1
  541. package/v3/@claude-flow/shared/dist/events/projections.js +0 -421
  542. package/v3/@claude-flow/shared/dist/events/projections.js.map +0 -1
  543. package/v3/@claude-flow/shared/dist/events/state-reconstructor.d.ts +0 -101
  544. package/v3/@claude-flow/shared/dist/events/state-reconstructor.d.ts.map +0 -1
  545. package/v3/@claude-flow/shared/dist/events/state-reconstructor.js +0 -263
  546. package/v3/@claude-flow/shared/dist/events/state-reconstructor.js.map +0 -1
  547. package/v3/@claude-flow/shared/dist/events.d.ts +0 -80
  548. package/v3/@claude-flow/shared/dist/events.d.ts.map +0 -1
  549. package/v3/@claude-flow/shared/dist/events.js +0 -249
  550. package/v3/@claude-flow/shared/dist/events.js.map +0 -1
  551. package/v3/@claude-flow/shared/dist/hooks/example-usage.d.ts +0 -42
  552. package/v3/@claude-flow/shared/dist/hooks/example-usage.d.ts.map +0 -1
  553. package/v3/@claude-flow/shared/dist/hooks/example-usage.js +0 -351
  554. package/v3/@claude-flow/shared/dist/hooks/example-usage.js.map +0 -1
  555. package/v3/@claude-flow/shared/dist/hooks/executor.d.ts +0 -100
  556. package/v3/@claude-flow/shared/dist/hooks/executor.d.ts.map +0 -1
  557. package/v3/@claude-flow/shared/dist/hooks/executor.js +0 -264
  558. package/v3/@claude-flow/shared/dist/hooks/executor.js.map +0 -1
  559. package/v3/@claude-flow/shared/dist/hooks/hooks.test.d.ts +0 -9
  560. package/v3/@claude-flow/shared/dist/hooks/hooks.test.d.ts.map +0 -1
  561. package/v3/@claude-flow/shared/dist/hooks/hooks.test.js +0 -322
  562. package/v3/@claude-flow/shared/dist/hooks/hooks.test.js.map +0 -1
  563. package/v3/@claude-flow/shared/dist/hooks/index.d.ts +0 -52
  564. package/v3/@claude-flow/shared/dist/hooks/index.d.ts.map +0 -1
  565. package/v3/@claude-flow/shared/dist/hooks/index.js +0 -51
  566. package/v3/@claude-flow/shared/dist/hooks/index.js.map +0 -1
  567. package/v3/@claude-flow/shared/dist/hooks/registry.d.ts +0 -133
  568. package/v3/@claude-flow/shared/dist/hooks/registry.d.ts.map +0 -1
  569. package/v3/@claude-flow/shared/dist/hooks/registry.js +0 -277
  570. package/v3/@claude-flow/shared/dist/hooks/registry.js.map +0 -1
  571. package/v3/@claude-flow/shared/dist/hooks/safety/bash-safety.d.ts +0 -105
  572. package/v3/@claude-flow/shared/dist/hooks/safety/bash-safety.d.ts.map +0 -1
  573. package/v3/@claude-flow/shared/dist/hooks/safety/bash-safety.js +0 -481
  574. package/v3/@claude-flow/shared/dist/hooks/safety/bash-safety.js.map +0 -1
  575. package/v3/@claude-flow/shared/dist/hooks/safety/file-organization.d.ts +0 -144
  576. package/v3/@claude-flow/shared/dist/hooks/safety/file-organization.d.ts.map +0 -1
  577. package/v3/@claude-flow/shared/dist/hooks/safety/file-organization.js +0 -328
  578. package/v3/@claude-flow/shared/dist/hooks/safety/file-organization.js.map +0 -1
  579. package/v3/@claude-flow/shared/dist/hooks/safety/git-commit.d.ts +0 -158
  580. package/v3/@claude-flow/shared/dist/hooks/safety/git-commit.d.ts.map +0 -1
  581. package/v3/@claude-flow/shared/dist/hooks/safety/git-commit.js +0 -450
  582. package/v3/@claude-flow/shared/dist/hooks/safety/git-commit.js.map +0 -1
  583. package/v3/@claude-flow/shared/dist/hooks/safety/index.d.ts +0 -17
  584. package/v3/@claude-flow/shared/dist/hooks/safety/index.d.ts.map +0 -1
  585. package/v3/@claude-flow/shared/dist/hooks/safety/index.js +0 -17
  586. package/v3/@claude-flow/shared/dist/hooks/safety/index.js.map +0 -1
  587. package/v3/@claude-flow/shared/dist/hooks/session-hooks.d.ts +0 -234
  588. package/v3/@claude-flow/shared/dist/hooks/session-hooks.d.ts.map +0 -1
  589. package/v3/@claude-flow/shared/dist/hooks/session-hooks.js +0 -334
  590. package/v3/@claude-flow/shared/dist/hooks/session-hooks.js.map +0 -1
  591. package/v3/@claude-flow/shared/dist/hooks/task-hooks.d.ts +0 -163
  592. package/v3/@claude-flow/shared/dist/hooks/task-hooks.d.ts.map +0 -1
  593. package/v3/@claude-flow/shared/dist/hooks/task-hooks.js +0 -326
  594. package/v3/@claude-flow/shared/dist/hooks/task-hooks.js.map +0 -1
  595. package/v3/@claude-flow/shared/dist/hooks/types.d.ts +0 -267
  596. package/v3/@claude-flow/shared/dist/hooks/types.d.ts.map +0 -1
  597. package/v3/@claude-flow/shared/dist/hooks/types.js +0 -62
  598. package/v3/@claude-flow/shared/dist/hooks/types.js.map +0 -1
  599. package/v3/@claude-flow/shared/dist/hooks/verify-exports.test.d.ts +0 -9
  600. package/v3/@claude-flow/shared/dist/hooks/verify-exports.test.d.ts.map +0 -1
  601. package/v3/@claude-flow/shared/dist/hooks/verify-exports.test.js +0 -93
  602. package/v3/@claude-flow/shared/dist/hooks/verify-exports.test.js.map +0 -1
  603. package/v3/@claude-flow/shared/dist/index.d.ts +0 -19
  604. package/v3/@claude-flow/shared/dist/index.d.ts.map +0 -1
  605. package/v3/@claude-flow/shared/dist/index.js +0 -46
  606. package/v3/@claude-flow/shared/dist/index.js.map +0 -1
  607. package/v3/@claude-flow/shared/dist/mcp/connection-pool.d.ts +0 -98
  608. package/v3/@claude-flow/shared/dist/mcp/connection-pool.d.ts.map +0 -1
  609. package/v3/@claude-flow/shared/dist/mcp/connection-pool.js +0 -364
  610. package/v3/@claude-flow/shared/dist/mcp/connection-pool.js.map +0 -1
  611. package/v3/@claude-flow/shared/dist/mcp/index.d.ts +0 -69
  612. package/v3/@claude-flow/shared/dist/mcp/index.d.ts.map +0 -1
  613. package/v3/@claude-flow/shared/dist/mcp/index.js +0 -84
  614. package/v3/@claude-flow/shared/dist/mcp/index.js.map +0 -1
  615. package/v3/@claude-flow/shared/dist/mcp/server.d.ts +0 -166
  616. package/v3/@claude-flow/shared/dist/mcp/server.d.ts.map +0 -1
  617. package/v3/@claude-flow/shared/dist/mcp/server.js +0 -593
  618. package/v3/@claude-flow/shared/dist/mcp/server.js.map +0 -1
  619. package/v3/@claude-flow/shared/dist/mcp/session-manager.d.ts +0 -136
  620. package/v3/@claude-flow/shared/dist/mcp/session-manager.d.ts.map +0 -1
  621. package/v3/@claude-flow/shared/dist/mcp/session-manager.js +0 -335
  622. package/v3/@claude-flow/shared/dist/mcp/session-manager.js.map +0 -1
  623. package/v3/@claude-flow/shared/dist/mcp/tool-registry.d.ts +0 -178
  624. package/v3/@claude-flow/shared/dist/mcp/tool-registry.d.ts.map +0 -1
  625. package/v3/@claude-flow/shared/dist/mcp/tool-registry.js +0 -439
  626. package/v3/@claude-flow/shared/dist/mcp/tool-registry.js.map +0 -1
  627. package/v3/@claude-flow/shared/dist/mcp/transport/http.d.ts +0 -104
  628. package/v3/@claude-flow/shared/dist/mcp/transport/http.d.ts.map +0 -1
  629. package/v3/@claude-flow/shared/dist/mcp/transport/http.js +0 -476
  630. package/v3/@claude-flow/shared/dist/mcp/transport/http.js.map +0 -1
  631. package/v3/@claude-flow/shared/dist/mcp/transport/index.d.ts +0 -102
  632. package/v3/@claude-flow/shared/dist/mcp/transport/index.d.ts.map +0 -1
  633. package/v3/@claude-flow/shared/dist/mcp/transport/index.js +0 -238
  634. package/v3/@claude-flow/shared/dist/mcp/transport/index.js.map +0 -1
  635. package/v3/@claude-flow/shared/dist/mcp/transport/stdio.d.ts +0 -104
  636. package/v3/@claude-flow/shared/dist/mcp/transport/stdio.d.ts.map +0 -1
  637. package/v3/@claude-flow/shared/dist/mcp/transport/stdio.js +0 -263
  638. package/v3/@claude-flow/shared/dist/mcp/transport/stdio.js.map +0 -1
  639. package/v3/@claude-flow/shared/dist/mcp/transport/websocket.d.ts +0 -133
  640. package/v3/@claude-flow/shared/dist/mcp/transport/websocket.d.ts.map +0 -1
  641. package/v3/@claude-flow/shared/dist/mcp/transport/websocket.js +0 -396
  642. package/v3/@claude-flow/shared/dist/mcp/transport/websocket.js.map +0 -1
  643. package/v3/@claude-flow/shared/dist/mcp/types.d.ts +0 -438
  644. package/v3/@claude-flow/shared/dist/mcp/types.d.ts.map +0 -1
  645. package/v3/@claude-flow/shared/dist/mcp/types.js +0 -54
  646. package/v3/@claude-flow/shared/dist/mcp/types.js.map +0 -1
  647. package/v3/@claude-flow/shared/dist/plugin-interface.d.ts +0 -544
  648. package/v3/@claude-flow/shared/dist/plugin-interface.d.ts.map +0 -1
  649. package/v3/@claude-flow/shared/dist/plugin-interface.js +0 -23
  650. package/v3/@claude-flow/shared/dist/plugin-interface.js.map +0 -1
  651. package/v3/@claude-flow/shared/dist/plugin-loader.d.ts +0 -139
  652. package/v3/@claude-flow/shared/dist/plugin-loader.d.ts.map +0 -1
  653. package/v3/@claude-flow/shared/dist/plugin-loader.js +0 -434
  654. package/v3/@claude-flow/shared/dist/plugin-loader.js.map +0 -1
  655. package/v3/@claude-flow/shared/dist/plugin-registry.d.ts +0 -183
  656. package/v3/@claude-flow/shared/dist/plugin-registry.d.ts.map +0 -1
  657. package/v3/@claude-flow/shared/dist/plugin-registry.js +0 -457
  658. package/v3/@claude-flow/shared/dist/plugin-registry.js.map +0 -1
  659. package/v3/@claude-flow/shared/dist/plugins/index.d.ts +0 -10
  660. package/v3/@claude-flow/shared/dist/plugins/index.d.ts.map +0 -1
  661. package/v3/@claude-flow/shared/dist/plugins/index.js +0 -10
  662. package/v3/@claude-flow/shared/dist/plugins/index.js.map +0 -1
  663. package/v3/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.d.ts +0 -106
  664. package/v3/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.d.ts.map +0 -1
  665. package/v3/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.js +0 -241
  666. package/v3/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.js.map +0 -1
  667. package/v3/@claude-flow/shared/dist/plugins/official/index.d.ts +0 -10
  668. package/v3/@claude-flow/shared/dist/plugins/official/index.d.ts.map +0 -1
  669. package/v3/@claude-flow/shared/dist/plugins/official/index.js +0 -10
  670. package/v3/@claude-flow/shared/dist/plugins/official/index.js.map +0 -1
  671. package/v3/@claude-flow/shared/dist/plugins/official/maestro-plugin.d.ts +0 -121
  672. package/v3/@claude-flow/shared/dist/plugins/official/maestro-plugin.d.ts.map +0 -1
  673. package/v3/@claude-flow/shared/dist/plugins/official/maestro-plugin.js +0 -355
  674. package/v3/@claude-flow/shared/dist/plugins/official/maestro-plugin.js.map +0 -1
  675. package/v3/@claude-flow/shared/dist/plugins/types.d.ts +0 -93
  676. package/v3/@claude-flow/shared/dist/plugins/types.d.ts.map +0 -1
  677. package/v3/@claude-flow/shared/dist/plugins/types.js +0 -9
  678. package/v3/@claude-flow/shared/dist/plugins/types.js.map +0 -1
  679. package/v3/@claude-flow/shared/dist/resilience/bulkhead.d.ts +0 -105
  680. package/v3/@claude-flow/shared/dist/resilience/bulkhead.d.ts.map +0 -1
  681. package/v3/@claude-flow/shared/dist/resilience/bulkhead.js +0 -206
  682. package/v3/@claude-flow/shared/dist/resilience/bulkhead.js.map +0 -1
  683. package/v3/@claude-flow/shared/dist/resilience/circuit-breaker.d.ts +0 -132
  684. package/v3/@claude-flow/shared/dist/resilience/circuit-breaker.d.ts.map +0 -1
  685. package/v3/@claude-flow/shared/dist/resilience/circuit-breaker.js +0 -233
  686. package/v3/@claude-flow/shared/dist/resilience/circuit-breaker.js.map +0 -1
  687. package/v3/@claude-flow/shared/dist/resilience/index.d.ts +0 -19
  688. package/v3/@claude-flow/shared/dist/resilience/index.d.ts.map +0 -1
  689. package/v3/@claude-flow/shared/dist/resilience/index.js +0 -19
  690. package/v3/@claude-flow/shared/dist/resilience/index.js.map +0 -1
  691. package/v3/@claude-flow/shared/dist/resilience/rate-limiter.d.ts +0 -168
  692. package/v3/@claude-flow/shared/dist/resilience/rate-limiter.d.ts.map +0 -1
  693. package/v3/@claude-flow/shared/dist/resilience/rate-limiter.js +0 -314
  694. package/v3/@claude-flow/shared/dist/resilience/rate-limiter.js.map +0 -1
  695. package/v3/@claude-flow/shared/dist/resilience/retry.d.ts +0 -91
  696. package/v3/@claude-flow/shared/dist/resilience/retry.d.ts.map +0 -1
  697. package/v3/@claude-flow/shared/dist/resilience/retry.js +0 -159
  698. package/v3/@claude-flow/shared/dist/resilience/retry.js.map +0 -1
  699. package/v3/@claude-flow/shared/dist/security/index.d.ts +0 -10
  700. package/v3/@claude-flow/shared/dist/security/index.d.ts.map +0 -1
  701. package/v3/@claude-flow/shared/dist/security/index.js +0 -12
  702. package/v3/@claude-flow/shared/dist/security/index.js.map +0 -1
  703. package/v3/@claude-flow/shared/dist/security/input-validation.d.ts +0 -73
  704. package/v3/@claude-flow/shared/dist/security/input-validation.d.ts.map +0 -1
  705. package/v3/@claude-flow/shared/dist/security/input-validation.js +0 -201
  706. package/v3/@claude-flow/shared/dist/security/input-validation.js.map +0 -1
  707. package/v3/@claude-flow/shared/dist/security/secure-random.d.ts +0 -92
  708. package/v3/@claude-flow/shared/dist/security/secure-random.d.ts.map +0 -1
  709. package/v3/@claude-flow/shared/dist/security/secure-random.js +0 -142
  710. package/v3/@claude-flow/shared/dist/security/secure-random.js.map +0 -1
  711. package/v3/@claude-flow/shared/dist/types/agent.types.d.ts +0 -137
  712. package/v3/@claude-flow/shared/dist/types/agent.types.d.ts.map +0 -1
  713. package/v3/@claude-flow/shared/dist/types/agent.types.js +0 -6
  714. package/v3/@claude-flow/shared/dist/types/agent.types.js.map +0 -1
  715. package/v3/@claude-flow/shared/dist/types/index.d.ts +0 -11
  716. package/v3/@claude-flow/shared/dist/types/index.d.ts.map +0 -1
  717. package/v3/@claude-flow/shared/dist/types/index.js +0 -17
  718. package/v3/@claude-flow/shared/dist/types/index.js.map +0 -1
  719. package/v3/@claude-flow/shared/dist/types/mcp.types.d.ts +0 -266
  720. package/v3/@claude-flow/shared/dist/types/mcp.types.d.ts.map +0 -1
  721. package/v3/@claude-flow/shared/dist/types/mcp.types.js +0 -7
  722. package/v3/@claude-flow/shared/dist/types/mcp.types.js.map +0 -1
  723. package/v3/@claude-flow/shared/dist/types/memory.types.d.ts +0 -236
  724. package/v3/@claude-flow/shared/dist/types/memory.types.d.ts.map +0 -1
  725. package/v3/@claude-flow/shared/dist/types/memory.types.js +0 -7
  726. package/v3/@claude-flow/shared/dist/types/memory.types.js.map +0 -1
  727. package/v3/@claude-flow/shared/dist/types/swarm.types.d.ts +0 -186
  728. package/v3/@claude-flow/shared/dist/types/swarm.types.d.ts.map +0 -1
  729. package/v3/@claude-flow/shared/dist/types/swarm.types.js +0 -65
  730. package/v3/@claude-flow/shared/dist/types/swarm.types.js.map +0 -1
  731. package/v3/@claude-flow/shared/dist/types/task.types.d.ts +0 -178
  732. package/v3/@claude-flow/shared/dist/types/task.types.d.ts.map +0 -1
  733. package/v3/@claude-flow/shared/dist/types/task.types.js +0 -32
  734. package/v3/@claude-flow/shared/dist/types/task.types.js.map +0 -1
  735. package/v3/@claude-flow/shared/dist/types.d.ts +0 -197
  736. package/v3/@claude-flow/shared/dist/types.d.ts.map +0 -1
  737. package/v3/@claude-flow/shared/dist/types.js +0 -21
  738. package/v3/@claude-flow/shared/dist/types.js.map +0 -1
  739. package/v3/@claude-flow/shared/dist/utils/secure-logger.d.ts +0 -69
  740. package/v3/@claude-flow/shared/dist/utils/secure-logger.d.ts.map +0 -1
  741. package/v3/@claude-flow/shared/dist/utils/secure-logger.js +0 -208
  742. package/v3/@claude-flow/shared/dist/utils/secure-logger.js.map +0 -1
  743. package/v3/@claude-flow/shared/package.json +0 -34
  744. package/v3/README.md +0 -493
  745. /package/{v3/@claude-flow/cli/bin → bin}/cli.js +0 -0
  746. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/agent.d.ts +0 -0
  747. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/agent.d.ts.map +0 -0
  748. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/agent.js +0 -0
  749. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/agent.js.map +0 -0
  750. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/config.d.ts +0 -0
  751. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/config.d.ts.map +0 -0
  752. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/config.js +0 -0
  753. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/config.js.map +0 -0
  754. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/daemon.d.ts +0 -0
  755. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hive-mind.d.ts +0 -0
  756. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hive-mind.d.ts.map +0 -0
  757. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hive-mind.js +0 -0
  758. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hive-mind.js.map +0 -0
  759. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hooks.d.ts +0 -0
  760. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hooks.d.ts.map +0 -0
  761. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hooks.js +0 -0
  762. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hooks.js.map +0 -0
  763. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/index.d.ts +0 -0
  764. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/index.d.ts.map +0 -0
  765. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/index.js +0 -0
  766. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/index.js.map +0 -0
  767. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/init.d.ts +0 -0
  768. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/init.d.ts.map +0 -0
  769. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/init.js +0 -0
  770. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/init.js.map +0 -0
  771. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/mcp.d.ts +0 -0
  772. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/mcp.d.ts.map +0 -0
  773. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/mcp.js +0 -0
  774. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/mcp.js.map +0 -0
  775. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/memory.d.ts +0 -0
  776. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/memory.d.ts.map +0 -0
  777. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/memory.js +0 -0
  778. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/memory.js.map +0 -0
  779. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/migrate.d.ts +0 -0
  780. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/migrate.d.ts.map +0 -0
  781. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/migrate.js +0 -0
  782. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/migrate.js.map +0 -0
  783. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/process.d.ts +0 -0
  784. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/process.d.ts.map +0 -0
  785. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/process.js +0 -0
  786. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/process.js.map +0 -0
  787. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/session.d.ts +0 -0
  788. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/session.d.ts.map +0 -0
  789. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/session.js +0 -0
  790. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/session.js.map +0 -0
  791. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/start.d.ts +0 -0
  792. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/start.d.ts.map +0 -0
  793. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/start.js +0 -0
  794. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/start.js.map +0 -0
  795. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/status.d.ts +0 -0
  796. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/status.d.ts.map +0 -0
  797. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/status.js +0 -0
  798. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/status.js.map +0 -0
  799. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/swarm.d.ts +0 -0
  800. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/swarm.d.ts.map +0 -0
  801. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/swarm.js +0 -0
  802. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/swarm.js.map +0 -0
  803. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/task.d.ts +0 -0
  804. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/task.d.ts.map +0 -0
  805. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/task.js +0 -0
  806. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/task.js.map +0 -0
  807. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/workflow.d.ts +0 -0
  808. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/workflow.d.ts.map +0 -0
  809. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/workflow.js +0 -0
  810. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/workflow.js.map +0 -0
  811. /package/{v3/@claude-flow/cli/dist → dist}/src/config-adapter.d.ts +0 -0
  812. /package/{v3/@claude-flow/cli/dist → dist}/src/config-adapter.d.ts.map +0 -0
  813. /package/{v3/@claude-flow/cli/dist → dist}/src/config-adapter.js +0 -0
  814. /package/{v3/@claude-flow/cli/dist → dist}/src/config-adapter.js.map +0 -0
  815. /package/{v3/@claude-flow/cli/dist → dist}/src/infrastructure/in-memory-repositories.d.ts +0 -0
  816. /package/{v3/@claude-flow/cli/dist → dist}/src/infrastructure/in-memory-repositories.d.ts.map +0 -0
  817. /package/{v3/@claude-flow/cli/dist → dist}/src/infrastructure/in-memory-repositories.js +0 -0
  818. /package/{v3/@claude-flow/cli/dist → dist}/src/infrastructure/in-memory-repositories.js.map +0 -0
  819. /package/{v3/@claude-flow/cli/dist → dist}/src/init/claudemd-generator.d.ts +0 -0
  820. /package/{v3/@claude-flow/cli/dist → dist}/src/init/claudemd-generator.d.ts.map +0 -0
  821. /package/{v3/@claude-flow/cli/dist → dist}/src/init/claudemd-generator.js +0 -0
  822. /package/{v3/@claude-flow/cli/dist → dist}/src/init/claudemd-generator.js.map +0 -0
  823. /package/{v3/@claude-flow/cli/dist → dist}/src/init/executor.d.ts +0 -0
  824. /package/{v3/@claude-flow/cli/dist → dist}/src/init/executor.d.ts.map +0 -0
  825. /package/{v3/@claude-flow/cli/dist → dist}/src/init/executor.js +0 -0
  826. /package/{v3/@claude-flow/cli/dist → dist}/src/init/executor.js.map +0 -0
  827. /package/{v3/@claude-flow/cli/dist → dist}/src/init/helpers-generator.d.ts +0 -0
  828. /package/{v3/@claude-flow/cli/dist → dist}/src/init/helpers-generator.d.ts.map +0 -0
  829. /package/{v3/@claude-flow/cli/dist → dist}/src/init/helpers-generator.js +0 -0
  830. /package/{v3/@claude-flow/cli/dist → dist}/src/init/helpers-generator.js.map +0 -0
  831. /package/{v3/@claude-flow/cli/dist → dist}/src/init/index.d.ts +0 -0
  832. /package/{v3/@claude-flow/cli/dist → dist}/src/init/index.d.ts.map +0 -0
  833. /package/{v3/@claude-flow/cli/dist → dist}/src/init/index.js +0 -0
  834. /package/{v3/@claude-flow/cli/dist → dist}/src/init/index.js.map +0 -0
  835. /package/{v3/@claude-flow/cli/dist → dist}/src/init/mcp-generator.d.ts +0 -0
  836. /package/{v3/@claude-flow/cli/dist → dist}/src/init/mcp-generator.d.ts.map +0 -0
  837. /package/{v3/@claude-flow/cli/dist → dist}/src/init/mcp-generator.js +0 -0
  838. /package/{v3/@claude-flow/cli/dist → dist}/src/init/mcp-generator.js.map +0 -0
  839. /package/{v3/@claude-flow/cli/dist → dist}/src/init/settings-generator.d.ts +0 -0
  840. /package/{v3/@claude-flow/cli/dist → dist}/src/init/settings-generator.d.ts.map +0 -0
  841. /package/{v3/@claude-flow/cli/dist → dist}/src/init/settings-generator.js +0 -0
  842. /package/{v3/@claude-flow/cli/dist → dist}/src/init/settings-generator.js.map +0 -0
  843. /package/{v3/@claude-flow/cli/dist → dist}/src/init/statusline-generator.d.ts +0 -0
  844. /package/{v3/@claude-flow/cli/dist → dist}/src/init/statusline-generator.d.ts.map +0 -0
  845. /package/{v3/@claude-flow/cli/dist → dist}/src/init/statusline-generator.js +0 -0
  846. /package/{v3/@claude-flow/cli/dist → dist}/src/init/statusline-generator.js.map +0 -0
  847. /package/{v3/@claude-flow/cli/dist → dist}/src/init/types.d.ts +0 -0
  848. /package/{v3/@claude-flow/cli/dist → dist}/src/init/types.d.ts.map +0 -0
  849. /package/{v3/@claude-flow/cli/dist → dist}/src/init/types.js +0 -0
  850. /package/{v3/@claude-flow/cli/dist → dist}/src/init/types.js.map +0 -0
  851. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-client.d.ts +0 -0
  852. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-client.d.ts.map +0 -0
  853. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-client.js +0 -0
  854. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-client.js.map +0 -0
  855. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-server.d.ts +0 -0
  856. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-server.d.ts.map +0 -0
  857. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-server.js +0 -0
  858. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-server.js.map +0 -0
  859. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/agent-tools.d.ts +0 -0
  860. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/agent-tools.d.ts.map +0 -0
  861. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/agent-tools.js +0 -0
  862. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/agent-tools.js.map +0 -0
  863. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/config-tools.d.ts +0 -0
  864. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/config-tools.d.ts.map +0 -0
  865. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/config-tools.js +0 -0
  866. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/config-tools.js.map +0 -0
  867. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hive-mind-tools.d.ts +0 -0
  868. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hive-mind-tools.d.ts.map +0 -0
  869. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hive-mind-tools.js +0 -0
  870. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hive-mind-tools.js.map +0 -0
  871. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hooks-tools.d.ts +0 -0
  872. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hooks-tools.d.ts.map +0 -0
  873. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hooks-tools.js +0 -0
  874. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hooks-tools.js.map +0 -0
  875. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/index.d.ts +0 -0
  876. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/index.d.ts.map +0 -0
  877. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/index.js +0 -0
  878. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/index.js.map +0 -0
  879. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/memory-tools.d.ts +0 -0
  880. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/memory-tools.d.ts.map +0 -0
  881. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/memory-tools.js +0 -0
  882. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/memory-tools.js.map +0 -0
  883. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/session-tools.d.ts +0 -0
  884. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/session-tools.d.ts.map +0 -0
  885. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/session-tools.js +0 -0
  886. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/session-tools.js.map +0 -0
  887. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/swarm-tools.d.ts +0 -0
  888. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/swarm-tools.d.ts.map +0 -0
  889. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/swarm-tools.js +0 -0
  890. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/swarm-tools.js.map +0 -0
  891. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/task-tools.d.ts +0 -0
  892. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/task-tools.d.ts.map +0 -0
  893. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/task-tools.js +0 -0
  894. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/task-tools.js.map +0 -0
  895. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/types.d.ts +0 -0
  896. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/types.d.ts.map +0 -0
  897. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/types.js +0 -0
  898. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/types.js.map +0 -0
  899. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/workflow-tools.d.ts +0 -0
  900. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/workflow-tools.d.ts.map +0 -0
  901. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/workflow-tools.js +0 -0
  902. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/workflow-tools.js.map +0 -0
  903. /package/{v3/@claude-flow/cli/dist → dist}/src/parser.d.ts +0 -0
  904. /package/{v3/@claude-flow/cli/dist → dist}/src/parser.d.ts.map +0 -0
  905. /package/{v3/@claude-flow/cli/dist → dist}/src/parser.js +0 -0
  906. /package/{v3/@claude-flow/cli/dist → dist}/src/parser.js.map +0 -0
  907. /package/{v3/@claude-flow/cli/dist → dist}/src/prompt.d.ts +0 -0
  908. /package/{v3/@claude-flow/cli/dist → dist}/src/prompt.d.ts.map +0 -0
  909. /package/{v3/@claude-flow/cli/dist → dist}/src/prompt.js +0 -0
  910. /package/{v3/@claude-flow/cli/dist → dist}/src/prompt.js.map +0 -0
  911. /package/{v3/@claude-flow/cli/dist → dist}/src/services/index.d.ts +0 -0
  912. /package/{v3/@claude-flow/cli/dist → dist}/src/services/index.d.ts.map +0 -0
  913. /package/{v3/@claude-flow/cli/dist → dist}/src/services/index.js +0 -0
  914. /package/{v3/@claude-flow/cli/dist → dist}/src/services/index.js.map +0 -0
  915. /package/{v3/@claude-flow/cli/dist → dist}/src/services/worker-daemon.d.ts +0 -0
  916. /package/{v3/@claude-flow/cli/dist → dist}/src/services/worker-daemon.d.ts.map +0 -0
  917. /package/{v3/@claude-flow/cli/dist → dist}/src/services/worker-daemon.js +0 -0
  918. /package/{v3/@claude-flow/cli/dist → dist}/src/services/worker-daemon.js.map +0 -0
  919. /package/{v3/@claude-flow/cli/dist → dist}/src/types.d.ts +0 -0
  920. /package/{v3/@claude-flow/cli/dist → dist}/src/types.d.ts.map +0 -0
  921. /package/{v3/@claude-flow/cli/dist → dist}/src/types.js +0 -0
  922. /package/{v3/@claude-flow/cli/dist → dist}/src/types.js.map +0 -0
@@ -1,133 +0,0 @@
1
- /**
2
- * V3 MCP WebSocket Transport
3
- *
4
- * Standalone WebSocket transport for MCP communication:
5
- * - Native WebSocket server without HTTP dependency
6
- * - Binary message support for efficiency
7
- * - Heartbeat/ping-pong for connection health
8
- * - Automatic reconnection handling
9
- *
10
- * Performance Targets:
11
- * - Message latency: <3ms
12
- * - Connection overhead: <10ms
13
- */
14
- import { EventEmitter } from 'events';
15
- import { WebSocket } from 'ws';
16
- import { ITransport, TransportType, MCPNotification, RequestHandler, NotificationHandler, TransportHealthStatus, ILogger, AuthConfig } from '../types.js';
17
- /**
18
- * WebSocket Transport Configuration
19
- */
20
- export interface WebSocketTransportConfig {
21
- host: string;
22
- port: number;
23
- path?: string;
24
- maxConnections?: number;
25
- heartbeatInterval?: number;
26
- heartbeatTimeout?: number;
27
- maxMessageSize?: number;
28
- auth?: AuthConfig;
29
- enableBinaryMode?: boolean;
30
- }
31
- /**
32
- * Client connection info
33
- */
34
- interface ClientConnection {
35
- id: string;
36
- ws: WebSocket;
37
- createdAt: Date;
38
- lastActivity: Date;
39
- messageCount: number;
40
- isAlive: boolean;
41
- isAuthenticated: boolean;
42
- }
43
- /**
44
- * WebSocket Transport Implementation
45
- */
46
- export declare class WebSocketTransport extends EventEmitter implements ITransport {
47
- private readonly logger;
48
- private readonly config;
49
- readonly type: TransportType;
50
- private requestHandler?;
51
- private notificationHandler?;
52
- private server?;
53
- private wss?;
54
- private clients;
55
- private heartbeatTimer?;
56
- private running;
57
- private connectionCounter;
58
- private messagesReceived;
59
- private messagesSent;
60
- private errors;
61
- private totalConnections;
62
- constructor(logger: ILogger, config: WebSocketTransportConfig);
63
- /**
64
- * Start the transport
65
- */
66
- start(): Promise<void>;
67
- /**
68
- * Stop the transport
69
- */
70
- stop(): Promise<void>;
71
- /**
72
- * Register request handler
73
- */
74
- onRequest(handler: RequestHandler): void;
75
- /**
76
- * Register notification handler
77
- */
78
- onNotification(handler: NotificationHandler): void;
79
- /**
80
- * Get health status
81
- */
82
- getHealthStatus(): Promise<TransportHealthStatus>;
83
- /**
84
- * Send notification to all connected clients
85
- */
86
- sendNotification(notification: MCPNotification): Promise<void>;
87
- /**
88
- * Send notification to specific client
89
- */
90
- sendToClient(clientId: string, notification: MCPNotification): Promise<boolean>;
91
- /**
92
- * Get connected clients
93
- */
94
- getClients(): string[];
95
- /**
96
- * Get client info
97
- */
98
- getClientInfo(clientId: string): ClientConnection | undefined;
99
- /**
100
- * Disconnect specific client
101
- */
102
- disconnectClient(clientId: string, reason?: string): boolean;
103
- /**
104
- * Setup WebSocket handlers
105
- */
106
- private setupWebSocketHandlers;
107
- /**
108
- * Handle incoming message
109
- */
110
- private handleMessage;
111
- /**
112
- * Parse incoming message
113
- */
114
- private parseMessage;
115
- /**
116
- * Serialize outgoing message
117
- */
118
- private serializeMessage;
119
- /**
120
- * Start heartbeat interval
121
- */
122
- private startHeartbeat;
123
- /**
124
- * Stop heartbeat interval
125
- */
126
- private stopHeartbeat;
127
- }
128
- /**
129
- * Create WebSocket transport
130
- */
131
- export declare function createWebSocketTransport(logger: ILogger, config: WebSocketTransportConfig): WebSocketTransport;
132
- export {};
133
- //# sourceMappingURL=websocket.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"websocket.d.ts","sourceRoot":"","sources":["../../../src/mcp/transport/websocket.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAmB,SAAS,EAAW,MAAM,IAAI,CAAC;AAEzD,OAAO,EACL,UAAU,EACV,aAAa,EAGb,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,qBAAqB,EACrB,OAAO,EACP,UAAU,EACX,MAAM,aAAa,CAAC;AAErB;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CA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AI,IAAI,OAAO,CAAC,IAAI,CAAC;IAqC3B;;OAEG;IACH,SAAS,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAIxC;;OAEG;IACH,cAAc,CAAC,OAAO,EAAE,mBAAmB,GAAG,IAAI;IAIlD;;OAEG;IACG,eAAe,IAAI,OAAO,CAAC,qBAAqB,CAAC;IAavD;;OAEG;IACG,gBAAgB,CAAC,YAAY,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAgBpE;;OAEG;IACG,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC;IAiBrF;;OAEG;IACH,UAAU,IAAI,MAAM,EAAE;IAItB;;OAEG;IACH,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;IAI7D;;OAEG;IACH,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,SAA2B,GAAG,OAAO;IAc9E;;OAEG;IACH,OAAO,CAAC,sBAAsB;IA+D9B;;OAEG;YACW,aAAa;IA0E3B;;OAEG;IACH,OAAO,CAAC,YAAY;IAQpB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAQxB;;OAEG;IACH,OAAO,CAAC,cAAc;IAwBtB;;OAEG;IACH,OAAO,CAAC,aAAa;CAMtB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,wBAAwB,GAC/B,kBAAkB,CAEpB"}
@@ -1,396 +0,0 @@
1
- /**
2
- * V3 MCP WebSocket Transport
3
- *
4
- * Standalone WebSocket transport for MCP communication:
5
- * - Native WebSocket server without HTTP dependency
6
- * - Binary message support for efficiency
7
- * - Heartbeat/ping-pong for connection health
8
- * - Automatic reconnection handling
9
- *
10
- * Performance Targets:
11
- * - Message latency: <3ms
12
- * - Connection overhead: <10ms
13
- */
14
- import { EventEmitter } from 'events';
15
- import { WebSocketServer, WebSocket } from 'ws';
16
- import { createServer } from 'http';
17
- /**
18
- * WebSocket Transport Implementation
19
- */
20
- export class WebSocketTransport extends EventEmitter {
21
- logger;
22
- config;
23
- type = 'websocket';
24
- requestHandler;
25
- notificationHandler;
26
- server;
27
- wss;
28
- clients = new Map();
29
- heartbeatTimer;
30
- running = false;
31
- connectionCounter = 0;
32
- // Statistics
33
- messagesReceived = 0;
34
- messagesSent = 0;
35
- errors = 0;
36
- totalConnections = 0;
37
- constructor(logger, config) {
38
- super();
39
- this.logger = logger;
40
- this.config = config;
41
- }
42
- /**
43
- * Start the transport
44
- */
45
- async start() {
46
- if (this.running) {
47
- throw new Error('WebSocket transport already running');
48
- }
49
- this.logger.info('Starting WebSocket transport', {
50
- host: this.config.host,
51
- port: this.config.port,
52
- path: this.config.path || '/ws',
53
- });
54
- // Create HTTP server for WebSocket upgrade
55
- this.server = createServer((req, res) => {
56
- // Simple HTTP response for non-WebSocket requests
57
- res.writeHead(426, { 'Content-Type': 'text/plain' });
58
- res.end('Upgrade Required - WebSocket connection expected');
59
- });
60
- // Create WebSocket server
61
- this.wss = new WebSocketServer({
62
- server: this.server,
63
- path: this.config.path || '/ws',
64
- maxPayload: this.config.maxMessageSize || 10 * 1024 * 1024,
65
- perMessageDeflate: true, // Enable compression
66
- });
67
- this.setupWebSocketHandlers();
68
- this.startHeartbeat();
69
- // Start server
70
- await new Promise((resolve, reject) => {
71
- this.server.listen(this.config.port, this.config.host, () => {
72
- resolve();
73
- });
74
- this.server.on('error', reject);
75
- });
76
- this.running = true;
77
- this.logger.info('WebSocket transport started', {
78
- url: `ws://${this.config.host}:${this.config.port}${this.config.path || '/ws'}`,
79
- });
80
- }
81
- /**
82
- * Stop the transport
83
- */
84
- async stop() {
85
- if (!this.running) {
86
- return;
87
- }
88
- this.logger.info('Stopping WebSocket transport');
89
- this.running = false;
90
- this.stopHeartbeat();
91
- // Close all client connections
92
- for (const client of this.clients.values()) {
93
- try {
94
- client.ws.close(1000, 'Server shutting down');
95
- }
96
- catch {
97
- // Ignore errors
98
- }
99
- }
100
- this.clients.clear();
101
- // Close WebSocket server
102
- if (this.wss) {
103
- this.wss.close();
104
- this.wss = undefined;
105
- }
106
- // Close HTTP server
107
- if (this.server) {
108
- await new Promise((resolve) => {
109
- this.server.close(() => resolve());
110
- });
111
- this.server = undefined;
112
- }
113
- this.logger.info('WebSocket transport stopped');
114
- }
115
- /**
116
- * Register request handler
117
- */
118
- onRequest(handler) {
119
- this.requestHandler = handler;
120
- }
121
- /**
122
- * Register notification handler
123
- */
124
- onNotification(handler) {
125
- this.notificationHandler = handler;
126
- }
127
- /**
128
- * Get health status
129
- */
130
- async getHealthStatus() {
131
- return {
132
- healthy: this.running,
133
- metrics: {
134
- messagesReceived: this.messagesReceived,
135
- messagesSent: this.messagesSent,
136
- errors: this.errors,
137
- activeConnections: this.clients.size,
138
- totalConnections: this.totalConnections,
139
- },
140
- };
141
- }
142
- /**
143
- * Send notification to all connected clients
144
- */
145
- async sendNotification(notification) {
146
- const message = this.serializeMessage(notification);
147
- for (const client of this.clients.values()) {
148
- try {
149
- if (client.ws.readyState === WebSocket.OPEN) {
150
- client.ws.send(message);
151
- this.messagesSent++;
152
- }
153
- }
154
- catch (error) {
155
- this.logger.error('Failed to send notification', { clientId: client.id, error });
156
- this.errors++;
157
- }
158
- }
159
- }
160
- /**
161
- * Send notification to specific client
162
- */
163
- async sendToClient(clientId, notification) {
164
- const client = this.clients.get(clientId);
165
- if (!client || client.ws.readyState !== WebSocket.OPEN) {
166
- return false;
167
- }
168
- try {
169
- client.ws.send(this.serializeMessage(notification));
170
- this.messagesSent++;
171
- return true;
172
- }
173
- catch (error) {
174
- this.logger.error('Failed to send to client', { clientId, error });
175
- this.errors++;
176
- return false;
177
- }
178
- }
179
- /**
180
- * Get connected clients
181
- */
182
- getClients() {
183
- return Array.from(this.clients.keys());
184
- }
185
- /**
186
- * Get client info
187
- */
188
- getClientInfo(clientId) {
189
- return this.clients.get(clientId);
190
- }
191
- /**
192
- * Disconnect specific client
193
- */
194
- disconnectClient(clientId, reason = 'Disconnected by server') {
195
- const client = this.clients.get(clientId);
196
- if (!client) {
197
- return false;
198
- }
199
- try {
200
- client.ws.close(1000, reason);
201
- return true;
202
- }
203
- catch {
204
- return false;
205
- }
206
- }
207
- /**
208
- * Setup WebSocket handlers
209
- */
210
- setupWebSocketHandlers() {
211
- if (!this.wss)
212
- return;
213
- this.wss.on('connection', (ws, req) => {
214
- // Check max connections
215
- if (this.config.maxConnections && this.clients.size >= this.config.maxConnections) {
216
- this.logger.warn('Max connections reached, rejecting client');
217
- ws.close(1013, 'Server at capacity');
218
- return;
219
- }
220
- const clientId = `client-${++this.connectionCounter}`;
221
- const client = {
222
- id: clientId,
223
- ws,
224
- createdAt: new Date(),
225
- lastActivity: new Date(),
226
- messageCount: 0,
227
- isAlive: true,
228
- isAuthenticated: !this.config.auth?.enabled,
229
- };
230
- this.clients.set(clientId, client);
231
- this.totalConnections++;
232
- this.logger.info('Client connected', {
233
- id: clientId,
234
- total: this.clients.size,
235
- });
236
- // Setup message handler
237
- ws.on('message', async (data) => {
238
- await this.handleMessage(client, data);
239
- });
240
- // Setup pong handler for heartbeat
241
- ws.on('pong', () => {
242
- client.isAlive = true;
243
- });
244
- // Setup close handler
245
- ws.on('close', (code, reason) => {
246
- this.clients.delete(clientId);
247
- this.logger.info('Client disconnected', {
248
- id: clientId,
249
- code,
250
- reason: reason.toString(),
251
- total: this.clients.size,
252
- });
253
- this.emit('client:disconnected', clientId);
254
- });
255
- // Setup error handler
256
- ws.on('error', (error) => {
257
- this.logger.error('Client error', { id: clientId, error });
258
- this.errors++;
259
- this.clients.delete(clientId);
260
- });
261
- this.emit('client:connected', clientId);
262
- });
263
- }
264
- /**
265
- * Handle incoming message
266
- */
267
- async handleMessage(client, data) {
268
- client.lastActivity = new Date();
269
- client.messageCount++;
270
- this.messagesReceived++;
271
- try {
272
- const message = this.parseMessage(data);
273
- // Check authentication for non-authenticated clients
274
- if (!client.isAuthenticated && this.config.auth?.enabled) {
275
- if (message.method !== 'authenticate') {
276
- client.ws.send(this.serializeMessage({
277
- jsonrpc: '2.0',
278
- id: message.id || null,
279
- error: { code: -32001, message: 'Authentication required' },
280
- }));
281
- return;
282
- }
283
- }
284
- if (message.jsonrpc !== '2.0') {
285
- client.ws.send(this.serializeMessage({
286
- jsonrpc: '2.0',
287
- id: message.id || null,
288
- error: { code: -32600, message: 'Invalid JSON-RPC version' },
289
- }));
290
- return;
291
- }
292
- if (message.id === undefined) {
293
- // Notification
294
- if (this.notificationHandler) {
295
- await this.notificationHandler(message);
296
- }
297
- }
298
- else {
299
- // Request
300
- if (!this.requestHandler) {
301
- client.ws.send(this.serializeMessage({
302
- jsonrpc: '2.0',
303
- id: message.id,
304
- error: { code: -32603, message: 'No request handler' },
305
- }));
306
- return;
307
- }
308
- const startTime = performance.now();
309
- const response = await this.requestHandler(message);
310
- const duration = performance.now() - startTime;
311
- this.logger.debug('Request processed', {
312
- clientId: client.id,
313
- method: message.method,
314
- duration: `${duration.toFixed(2)}ms`,
315
- });
316
- client.ws.send(this.serializeMessage(response));
317
- this.messagesSent++;
318
- }
319
- }
320
- catch (error) {
321
- this.errors++;
322
- this.logger.error('Message handling error', { clientId: client.id, error });
323
- try {
324
- client.ws.send(this.serializeMessage({
325
- jsonrpc: '2.0',
326
- id: null,
327
- error: { code: -32700, message: 'Parse error' },
328
- }));
329
- }
330
- catch {
331
- // Ignore send errors
332
- }
333
- }
334
- }
335
- /**
336
- * Parse incoming message
337
- */
338
- parseMessage(data) {
339
- if (this.config.enableBinaryMode && Buffer.isBuffer(data)) {
340
- // Could implement binary protocol here
341
- return JSON.parse(data.toString());
342
- }
343
- return JSON.parse(data.toString());
344
- }
345
- /**
346
- * Serialize outgoing message
347
- */
348
- serializeMessage(message) {
349
- if (this.config.enableBinaryMode) {
350
- // Could implement binary protocol here
351
- return JSON.stringify(message);
352
- }
353
- return JSON.stringify(message);
354
- }
355
- /**
356
- * Start heartbeat interval
357
- */
358
- startHeartbeat() {
359
- const interval = this.config.heartbeatInterval || 30000; // 30 seconds
360
- const timeout = this.config.heartbeatTimeout || 10000; // 10 seconds
361
- this.heartbeatTimer = setInterval(() => {
362
- for (const client of this.clients.values()) {
363
- if (!client.isAlive) {
364
- // Client didn't respond to last ping
365
- this.logger.warn('Client heartbeat timeout', { id: client.id });
366
- client.ws.terminate();
367
- this.clients.delete(client.id);
368
- continue;
369
- }
370
- client.isAlive = false;
371
- try {
372
- client.ws.ping();
373
- }
374
- catch {
375
- // Ignore ping errors
376
- }
377
- }
378
- }, interval);
379
- }
380
- /**
381
- * Stop heartbeat interval
382
- */
383
- stopHeartbeat() {
384
- if (this.heartbeatTimer) {
385
- clearInterval(this.heartbeatTimer);
386
- this.heartbeatTimer = undefined;
387
- }
388
- }
389
- }
390
- /**
391
- * Create WebSocket transport
392
- */
393
- export function createWebSocketTransport(logger, config) {
394
- return new WebSocketTransport(logger, config);
395
- }
396
- //# sourceMappingURL=websocket.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"websocket.js","sourceRoot":"","sources":["../../../src/mcp/transport/websocket.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAW,MAAM,IAAI,CAAC;AACzD,OAAO,EAAE,YAAY,EAAU,MAAM,MAAM,CAAC;AA0C5C;;GAEG;AACH,MAAM,OAAO,kBAAmB,SAAQ,YAAY;IAmB/B;IACA;IAnBH,IAAI,GAAkB,WAAW,CAAC;IAE1C,cAAc,CAAkB;IAChC,mBAAmB,CAAuB;IAC1C,MAAM,CAAU;IAChB,GAAG,CAAmB;IACtB,OAAO,GAAkC,IAAI,GAAG,EAAE,CAAC;IACnD,cAAc,CAAkB;IAChC,OAAO,GAAG,KAAK,CAAC;IAChB,iBAAiB,GAAG,CAAC,CAAC;IAE9B,aAAa;IACL,gBAAgB,GAAG,CAAC,CAAC;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