@claude-flow/cli 3.0.0-alpha.12 → 3.0.0-alpha.120

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 (905) hide show
  1. package/.claude/agents/analysis/analyze-code-quality.md +179 -0
  2. package/.claude/agents/analysis/code-analyzer.md +210 -0
  3. package/.claude/agents/analysis/code-review/analyze-code-quality.md +179 -0
  4. package/.claude/agents/architecture/arch-system-design.md +157 -0
  5. package/.claude/agents/architecture/system-design/arch-system-design.md +155 -0
  6. package/.claude/agents/consensus/byzantine-coordinator.md +63 -0
  7. package/.claude/agents/consensus/crdt-synchronizer.md +997 -0
  8. package/.claude/agents/consensus/gossip-coordinator.md +63 -0
  9. package/.claude/agents/consensus/performance-benchmarker.md +851 -0
  10. package/.claude/agents/consensus/quorum-manager.md +823 -0
  11. package/.claude/agents/consensus/raft-manager.md +63 -0
  12. package/.claude/agents/consensus/security-manager.md +622 -0
  13. package/.claude/agents/core/coder.md +453 -0
  14. package/.claude/agents/core/planner.md +375 -0
  15. package/.claude/agents/core/researcher.md +369 -0
  16. package/.claude/agents/core/reviewer.md +520 -0
  17. package/.claude/agents/core/tester.md +512 -0
  18. package/.claude/agents/custom/test-long-runner.md +44 -0
  19. package/.claude/agents/data/data-ml-model.md +445 -0
  20. package/.claude/agents/data/ml/data-ml-model.md +193 -0
  21. package/.claude/agents/development/backend/dev-backend-api.md +142 -0
  22. package/.claude/agents/development/dev-backend-api.md +345 -0
  23. package/.claude/agents/devops/ci-cd/ops-cicd-github.md +164 -0
  24. package/.claude/agents/devops/ops-cicd-github.md +165 -0
  25. package/.claude/agents/documentation/api-docs/docs-api-openapi.md +174 -0
  26. package/.claude/agents/documentation/docs-api-openapi.md +355 -0
  27. package/.claude/agents/flow-nexus/app-store.md +88 -0
  28. package/.claude/agents/flow-nexus/authentication.md +69 -0
  29. package/.claude/agents/flow-nexus/challenges.md +81 -0
  30. package/.claude/agents/flow-nexus/neural-network.md +88 -0
  31. package/.claude/agents/flow-nexus/payments.md +83 -0
  32. package/.claude/agents/flow-nexus/sandbox.md +76 -0
  33. package/.claude/agents/flow-nexus/swarm.md +76 -0
  34. package/.claude/agents/flow-nexus/user-tools.md +96 -0
  35. package/.claude/agents/flow-nexus/workflow.md +84 -0
  36. package/.claude/agents/github/code-review-swarm.md +377 -0
  37. package/.claude/agents/github/github-modes.md +173 -0
  38. package/.claude/agents/github/issue-tracker.md +576 -0
  39. package/.claude/agents/github/multi-repo-swarm.md +553 -0
  40. package/.claude/agents/github/pr-manager.md +438 -0
  41. package/.claude/agents/github/project-board-sync.md +509 -0
  42. package/.claude/agents/github/release-manager.md +605 -0
  43. package/.claude/agents/github/release-swarm.md +583 -0
  44. package/.claude/agents/github/repo-architect.md +398 -0
  45. package/.claude/agents/github/swarm-issue.md +573 -0
  46. package/.claude/agents/github/swarm-pr.md +428 -0
  47. package/.claude/agents/github/sync-coordinator.md +452 -0
  48. package/.claude/agents/github/workflow-automation.md +903 -0
  49. package/.claude/agents/goal/agent.md +816 -0
  50. package/.claude/agents/goal/goal-planner.md +73 -0
  51. package/.claude/agents/optimization/benchmark-suite.md +665 -0
  52. package/.claude/agents/optimization/load-balancer.md +431 -0
  53. package/.claude/agents/optimization/performance-monitor.md +672 -0
  54. package/.claude/agents/optimization/resource-allocator.md +674 -0
  55. package/.claude/agents/optimization/topology-optimizer.md +808 -0
  56. package/.claude/agents/payments/agentic-payments.md +126 -0
  57. package/.claude/agents/sona/sona-learning-optimizer.md +74 -0
  58. package/.claude/agents/sparc/architecture.md +699 -0
  59. package/.claude/agents/sparc/pseudocode.md +520 -0
  60. package/.claude/agents/sparc/refinement.md +802 -0
  61. package/.claude/agents/sparc/specification.md +478 -0
  62. package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +225 -0
  63. package/.claude/agents/specialized/spec-mobile-react-native.md +227 -0
  64. package/.claude/agents/sublinear/consensus-coordinator.md +338 -0
  65. package/.claude/agents/sublinear/matrix-optimizer.md +185 -0
  66. package/.claude/agents/sublinear/pagerank-analyzer.md +299 -0
  67. package/.claude/agents/sublinear/performance-optimizer.md +368 -0
  68. package/.claude/agents/sublinear/trading-predictor.md +246 -0
  69. package/.claude/agents/swarm/adaptive-coordinator.md +1127 -0
  70. package/.claude/agents/swarm/hierarchical-coordinator.md +710 -0
  71. package/.claude/agents/swarm/mesh-coordinator.md +963 -0
  72. package/.claude/agents/templates/automation-smart-agent.md +205 -0
  73. package/.claude/agents/templates/base-template-generator.md +268 -0
  74. package/.claude/agents/templates/coordinator-swarm-init.md +90 -0
  75. package/.claude/agents/templates/github-pr-manager.md +177 -0
  76. package/.claude/agents/templates/implementer-sparc-coder.md +259 -0
  77. package/.claude/agents/templates/memory-coordinator.md +187 -0
  78. package/.claude/agents/templates/orchestrator-task.md +139 -0
  79. package/.claude/agents/templates/performance-analyzer.md +199 -0
  80. package/.claude/agents/templates/sparc-coordinator.md +514 -0
  81. package/.claude/agents/testing/production-validator.md +395 -0
  82. package/.claude/agents/testing/tdd-london-swarm.md +244 -0
  83. package/.claude/agents/v3/adr-architect.md +184 -0
  84. package/.claude/agents/v3/aidefence-guardian.md +282 -0
  85. package/.claude/agents/v3/claims-authorizer.md +208 -0
  86. package/.claude/agents/v3/collective-intelligence-coordinator.md +993 -0
  87. package/.claude/agents/v3/ddd-domain-expert.md +220 -0
  88. package/.claude/agents/v3/injection-analyst.md +236 -0
  89. package/.claude/agents/v3/memory-specialist.md +995 -0
  90. package/.claude/agents/v3/performance-engineer.md +1233 -0
  91. package/.claude/agents/v3/pii-detector.md +151 -0
  92. package/.claude/agents/v3/reasoningbank-learner.md +213 -0
  93. package/.claude/agents/v3/security-architect-aidefence.md +410 -0
  94. package/.claude/agents/v3/security-architect.md +867 -0
  95. package/.claude/agents/v3/security-auditor.md +771 -0
  96. package/.claude/agents/v3/sparc-orchestrator.md +182 -0
  97. package/.claude/agents/v3/swarm-memory-manager.md +157 -0
  98. package/.claude/agents/v3/v3-integration-architect.md +205 -0
  99. package/.claude/commands/agents/README.md +50 -0
  100. package/.claude/commands/agents/agent-capabilities.md +140 -0
  101. package/.claude/commands/agents/agent-coordination.md +28 -0
  102. package/.claude/commands/agents/agent-spawning.md +28 -0
  103. package/.claude/commands/agents/agent-types.md +216 -0
  104. package/.claude/commands/agents/health.md +139 -0
  105. package/.claude/commands/agents/list.md +100 -0
  106. package/.claude/commands/agents/logs.md +130 -0
  107. package/.claude/commands/agents/metrics.md +122 -0
  108. package/.claude/commands/agents/pool.md +127 -0
  109. package/.claude/commands/agents/spawn.md +140 -0
  110. package/.claude/commands/agents/status.md +115 -0
  111. package/.claude/commands/agents/stop.md +102 -0
  112. package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +54 -0
  113. package/.claude/commands/analysis/README.md +9 -0
  114. package/.claude/commands/analysis/bottleneck-detect.md +162 -0
  115. package/.claude/commands/analysis/performance-bottlenecks.md +59 -0
  116. package/.claude/commands/analysis/performance-report.md +25 -0
  117. package/.claude/commands/analysis/token-efficiency.md +45 -0
  118. package/.claude/commands/analysis/token-usage.md +25 -0
  119. package/.claude/commands/automation/README.md +9 -0
  120. package/.claude/commands/automation/auto-agent.md +122 -0
  121. package/.claude/commands/automation/self-healing.md +106 -0
  122. package/.claude/commands/automation/session-memory.md +90 -0
  123. package/.claude/commands/automation/smart-agents.md +73 -0
  124. package/.claude/commands/automation/smart-spawn.md +25 -0
  125. package/.claude/commands/automation/workflow-select.md +25 -0
  126. package/.claude/commands/claude-flow-help.md +103 -0
  127. package/.claude/commands/claude-flow-memory.md +107 -0
  128. package/.claude/commands/claude-flow-swarm.md +205 -0
  129. package/.claude/commands/coordination/README.md +9 -0
  130. package/.claude/commands/coordination/agent-spawn.md +25 -0
  131. package/.claude/commands/coordination/init.md +44 -0
  132. package/.claude/commands/coordination/orchestrate.md +43 -0
  133. package/.claude/commands/coordination/spawn.md +45 -0
  134. package/.claude/commands/coordination/swarm-init.md +85 -0
  135. package/.claude/commands/coordination/task-orchestrate.md +25 -0
  136. package/.claude/commands/flow-nexus/app-store.md +124 -0
  137. package/.claude/commands/flow-nexus/challenges.md +120 -0
  138. package/.claude/commands/flow-nexus/login-registration.md +65 -0
  139. package/.claude/commands/flow-nexus/neural-network.md +134 -0
  140. package/.claude/commands/flow-nexus/payments.md +116 -0
  141. package/.claude/commands/flow-nexus/sandbox.md +83 -0
  142. package/.claude/commands/flow-nexus/swarm.md +87 -0
  143. package/.claude/commands/flow-nexus/user-tools.md +152 -0
  144. package/.claude/commands/flow-nexus/workflow.md +115 -0
  145. package/.claude/commands/github/README.md +11 -0
  146. package/.claude/commands/github/code-review-swarm.md +514 -0
  147. package/.claude/commands/github/code-review.md +25 -0
  148. package/.claude/commands/github/github-modes.md +147 -0
  149. package/.claude/commands/github/github-swarm.md +121 -0
  150. package/.claude/commands/github/issue-tracker.md +292 -0
  151. package/.claude/commands/github/issue-triage.md +25 -0
  152. package/.claude/commands/github/multi-repo-swarm.md +519 -0
  153. package/.claude/commands/github/pr-enhance.md +26 -0
  154. package/.claude/commands/github/pr-manager.md +170 -0
  155. package/.claude/commands/github/project-board-sync.md +471 -0
  156. package/.claude/commands/github/release-manager.md +338 -0
  157. package/.claude/commands/github/release-swarm.md +544 -0
  158. package/.claude/commands/github/repo-analyze.md +25 -0
  159. package/.claude/commands/github/repo-architect.md +367 -0
  160. package/.claude/commands/github/swarm-issue.md +482 -0
  161. package/.claude/commands/github/swarm-pr.md +285 -0
  162. package/.claude/commands/github/sync-coordinator.md +301 -0
  163. package/.claude/commands/github/workflow-automation.md +442 -0
  164. package/.claude/commands/hive-mind/README.md +17 -0
  165. package/.claude/commands/hive-mind/hive-mind-consensus.md +8 -0
  166. package/.claude/commands/hive-mind/hive-mind-init.md +18 -0
  167. package/.claude/commands/hive-mind/hive-mind-memory.md +8 -0
  168. package/.claude/commands/hive-mind/hive-mind-metrics.md +8 -0
  169. package/.claude/commands/hive-mind/hive-mind-resume.md +8 -0
  170. package/.claude/commands/hive-mind/hive-mind-sessions.md +8 -0
  171. package/.claude/commands/hive-mind/hive-mind-spawn.md +21 -0
  172. package/.claude/commands/hive-mind/hive-mind-status.md +8 -0
  173. package/.claude/commands/hive-mind/hive-mind-stop.md +8 -0
  174. package/.claude/commands/hive-mind/hive-mind-wizard.md +8 -0
  175. package/.claude/commands/hive-mind/hive-mind.md +27 -0
  176. package/.claude/commands/hooks/README.md +11 -0
  177. package/.claude/commands/hooks/overview.md +58 -0
  178. package/.claude/commands/hooks/post-edit.md +117 -0
  179. package/.claude/commands/hooks/post-task.md +112 -0
  180. package/.claude/commands/hooks/pre-edit.md +113 -0
  181. package/.claude/commands/hooks/pre-task.md +111 -0
  182. package/.claude/commands/hooks/session-end.md +118 -0
  183. package/.claude/commands/hooks/setup.md +103 -0
  184. package/.claude/commands/memory/README.md +9 -0
  185. package/.claude/commands/memory/memory-persist.md +25 -0
  186. package/.claude/commands/memory/memory-search.md +25 -0
  187. package/.claude/commands/memory/memory-usage.md +25 -0
  188. package/.claude/commands/memory/neural.md +47 -0
  189. package/.claude/commands/monitoring/README.md +9 -0
  190. package/.claude/commands/monitoring/agent-metrics.md +25 -0
  191. package/.claude/commands/monitoring/agents.md +44 -0
  192. package/.claude/commands/monitoring/real-time-view.md +25 -0
  193. package/.claude/commands/monitoring/status.md +46 -0
  194. package/.claude/commands/monitoring/swarm-monitor.md +25 -0
  195. package/.claude/commands/optimization/README.md +9 -0
  196. package/.claude/commands/optimization/auto-topology.md +62 -0
  197. package/.claude/commands/optimization/cache-manage.md +25 -0
  198. package/.claude/commands/optimization/parallel-execute.md +25 -0
  199. package/.claude/commands/optimization/parallel-execution.md +50 -0
  200. package/.claude/commands/optimization/topology-optimize.md +25 -0
  201. package/.claude/commands/pair/README.md +261 -0
  202. package/.claude/commands/pair/commands.md +546 -0
  203. package/.claude/commands/pair/config.md +510 -0
  204. package/.claude/commands/pair/examples.md +512 -0
  205. package/.claude/commands/pair/modes.md +348 -0
  206. package/.claude/commands/pair/session.md +407 -0
  207. package/.claude/commands/pair/start.md +209 -0
  208. package/.claude/commands/sparc/analyzer.md +52 -0
  209. package/.claude/commands/sparc/architect.md +53 -0
  210. package/.claude/commands/sparc/ask.md +97 -0
  211. package/.claude/commands/sparc/batch-executor.md +54 -0
  212. package/.claude/commands/sparc/code.md +89 -0
  213. package/.claude/commands/sparc/coder.md +54 -0
  214. package/.claude/commands/sparc/debug.md +83 -0
  215. package/.claude/commands/sparc/debugger.md +54 -0
  216. package/.claude/commands/sparc/designer.md +53 -0
  217. package/.claude/commands/sparc/devops.md +109 -0
  218. package/.claude/commands/sparc/docs-writer.md +80 -0
  219. package/.claude/commands/sparc/documenter.md +54 -0
  220. package/.claude/commands/sparc/innovator.md +54 -0
  221. package/.claude/commands/sparc/integration.md +83 -0
  222. package/.claude/commands/sparc/mcp.md +117 -0
  223. package/.claude/commands/sparc/memory-manager.md +54 -0
  224. package/.claude/commands/sparc/optimizer.md +54 -0
  225. package/.claude/commands/sparc/orchestrator.md +132 -0
  226. package/.claude/commands/sparc/post-deployment-monitoring-mode.md +83 -0
  227. package/.claude/commands/sparc/refinement-optimization-mode.md +83 -0
  228. package/.claude/commands/sparc/researcher.md +54 -0
  229. package/.claude/commands/sparc/reviewer.md +54 -0
  230. package/.claude/commands/sparc/security-review.md +80 -0
  231. package/.claude/commands/sparc/sparc-modes.md +174 -0
  232. package/.claude/commands/sparc/sparc.md +111 -0
  233. package/.claude/commands/sparc/spec-pseudocode.md +80 -0
  234. package/.claude/commands/sparc/supabase-admin.md +348 -0
  235. package/.claude/commands/sparc/swarm-coordinator.md +54 -0
  236. package/.claude/commands/sparc/tdd.md +54 -0
  237. package/.claude/commands/sparc/tester.md +54 -0
  238. package/.claude/commands/sparc/tutorial.md +79 -0
  239. package/.claude/commands/sparc/workflow-manager.md +54 -0
  240. package/.claude/commands/sparc.md +166 -0
  241. package/.claude/commands/stream-chain/pipeline.md +121 -0
  242. package/.claude/commands/stream-chain/run.md +70 -0
  243. package/.claude/commands/swarm/README.md +15 -0
  244. package/.claude/commands/swarm/analysis.md +95 -0
  245. package/.claude/commands/swarm/development.md +96 -0
  246. package/.claude/commands/swarm/examples.md +168 -0
  247. package/.claude/commands/swarm/maintenance.md +102 -0
  248. package/.claude/commands/swarm/optimization.md +117 -0
  249. package/.claude/commands/swarm/research.md +136 -0
  250. package/.claude/commands/swarm/swarm-analysis.md +8 -0
  251. package/.claude/commands/swarm/swarm-background.md +8 -0
  252. package/.claude/commands/swarm/swarm-init.md +19 -0
  253. package/.claude/commands/swarm/swarm-modes.md +8 -0
  254. package/.claude/commands/swarm/swarm-monitor.md +8 -0
  255. package/.claude/commands/swarm/swarm-spawn.md +19 -0
  256. package/.claude/commands/swarm/swarm-status.md +8 -0
  257. package/.claude/commands/swarm/swarm-strategies.md +8 -0
  258. package/.claude/commands/swarm/swarm.md +87 -0
  259. package/.claude/commands/swarm/testing.md +131 -0
  260. package/.claude/commands/training/README.md +9 -0
  261. package/.claude/commands/training/model-update.md +25 -0
  262. package/.claude/commands/training/neural-patterns.md +74 -0
  263. package/.claude/commands/training/neural-train.md +25 -0
  264. package/.claude/commands/training/pattern-learn.md +25 -0
  265. package/.claude/commands/training/specialization.md +63 -0
  266. package/.claude/commands/truth/start.md +143 -0
  267. package/.claude/commands/verify/check.md +50 -0
  268. package/.claude/commands/verify/start.md +128 -0
  269. package/.claude/commands/workflows/README.md +9 -0
  270. package/.claude/commands/workflows/development.md +78 -0
  271. package/.claude/commands/workflows/research.md +63 -0
  272. package/.claude/commands/workflows/workflow-create.md +25 -0
  273. package/.claude/commands/workflows/workflow-execute.md +25 -0
  274. package/.claude/commands/workflows/workflow-export.md +25 -0
  275. package/.claude/helpers/README.md +97 -0
  276. package/.claude/helpers/adr-compliance.sh +186 -0
  277. package/.claude/helpers/auto-commit.sh +178 -0
  278. package/.claude/helpers/checkpoint-manager.sh +251 -0
  279. package/.claude/helpers/daemon-manager.sh +252 -0
  280. package/.claude/helpers/ddd-tracker.sh +144 -0
  281. package/.claude/helpers/github-safe.js +106 -0
  282. package/.claude/helpers/github-setup.sh +28 -0
  283. package/.claude/helpers/guidance-hook.sh +13 -0
  284. package/.claude/helpers/guidance-hooks.sh +102 -0
  285. package/.claude/helpers/health-monitor.sh +108 -0
  286. package/.claude/helpers/learning-hooks.sh +329 -0
  287. package/.claude/helpers/learning-optimizer.sh +127 -0
  288. package/.claude/helpers/learning-service.mjs +1144 -0
  289. package/.claude/helpers/memory.js +83 -0
  290. package/.claude/helpers/metrics-db.mjs +488 -0
  291. package/.claude/helpers/pattern-consolidator.sh +86 -0
  292. package/.claude/helpers/perf-worker.sh +160 -0
  293. package/.claude/helpers/post-commit +16 -0
  294. package/.claude/helpers/pre-commit +26 -0
  295. package/.claude/helpers/quick-start.sh +19 -0
  296. package/.claude/helpers/router.js +66 -0
  297. package/.claude/helpers/security-scanner.sh +127 -0
  298. package/.claude/helpers/session.js +127 -0
  299. package/.claude/helpers/setup-mcp.sh +18 -0
  300. package/.claude/helpers/standard-checkpoint-hooks.sh +189 -0
  301. package/.claude/helpers/statusline-hook.sh +21 -0
  302. package/.claude/helpers/statusline.cjs +368 -0
  303. package/.claude/helpers/statusline.js +316 -0
  304. package/.claude/helpers/swarm-comms.sh +353 -0
  305. package/.claude/helpers/swarm-hooks.sh +761 -0
  306. package/.claude/helpers/swarm-monitor.sh +211 -0
  307. package/.claude/helpers/sync-v3-metrics.sh +245 -0
  308. package/.claude/helpers/update-v3-progress.sh +166 -0
  309. package/.claude/helpers/v3-quick-status.sh +58 -0
  310. package/.claude/helpers/v3.sh +111 -0
  311. package/.claude/helpers/validate-v3-config.sh +216 -0
  312. package/.claude/helpers/worker-manager.sh +170 -0
  313. package/.claude/memory.db +0 -0
  314. package/.claude/settings.json +237 -0
  315. package/.claude/skills/agentdb-advanced/SKILL.md +550 -0
  316. package/.claude/skills/agentdb-learning/SKILL.md +545 -0
  317. package/.claude/skills/agentdb-memory-patterns/SKILL.md +339 -0
  318. package/.claude/skills/agentdb-optimization/SKILL.md +509 -0
  319. package/.claude/skills/agentdb-vector-search/SKILL.md +339 -0
  320. package/.claude/skills/agentic-jujutsu/SKILL.md +645 -0
  321. package/.claude/skills/aidefence-scan.md +151 -0
  322. package/.claude/skills/aidefence.yaml +297 -0
  323. package/.claude/skills/flow-nexus-neural/SKILL.md +738 -0
  324. package/.claude/skills/flow-nexus-platform/SKILL.md +1157 -0
  325. package/.claude/skills/flow-nexus-swarm/SKILL.md +610 -0
  326. package/.claude/skills/github-code-review/SKILL.md +1140 -0
  327. package/.claude/skills/github-multi-repo/SKILL.md +874 -0
  328. package/.claude/skills/github-project-management/SKILL.md +1277 -0
  329. package/.claude/skills/github-release-management/SKILL.md +1081 -0
  330. package/.claude/skills/github-workflow-automation/SKILL.md +1065 -0
  331. package/.claude/skills/hive-mind-advanced/SKILL.md +712 -0
  332. package/.claude/skills/hooks-automation/SKILL.md +1201 -0
  333. package/.claude/skills/pair-programming/SKILL.md +1202 -0
  334. package/.claude/skills/performance-analysis/SKILL.md +563 -0
  335. package/.claude/skills/reasoningbank-agentdb/SKILL.md +446 -0
  336. package/.claude/skills/reasoningbank-intelligence/SKILL.md +201 -0
  337. package/.claude/skills/secure-review.md +181 -0
  338. package/{.claude-flow → .claude/skills/skill-builder/.claude-flow}/metrics/performance.json +3 -3
  339. package/.claude/skills/skill-builder/.claude-flow/metrics/task-metrics.json +10 -0
  340. package/.claude/skills/skill-builder/SKILL.md +910 -0
  341. package/.claude/skills/sparc-methodology/SKILL.md +1115 -0
  342. package/.claude/skills/stream-chain/SKILL.md +563 -0
  343. package/.claude/skills/swarm-advanced/SKILL.md +973 -0
  344. package/.claude/skills/swarm-orchestration/SKILL.md +179 -0
  345. package/.claude/skills/v3-cli-modernization/SKILL.md +872 -0
  346. package/.claude/skills/v3-core-implementation/SKILL.md +797 -0
  347. package/.claude/skills/v3-ddd-architecture/SKILL.md +442 -0
  348. package/.claude/skills/v3-integration-deep/SKILL.md +241 -0
  349. package/.claude/skills/v3-mcp-optimization/SKILL.md +777 -0
  350. package/.claude/skills/v3-memory-unification/SKILL.md +174 -0
  351. package/.claude/skills/v3-performance-optimization/SKILL.md +390 -0
  352. package/.claude/skills/v3-security-overhaul/SKILL.md +82 -0
  353. package/.claude/skills/v3-swarm-coordination/SKILL.md +340 -0
  354. package/.claude/skills/verification-quality/SKILL.md +649 -0
  355. package/.claude/skills/worker-benchmarks/skill.md +135 -0
  356. package/.claude/skills/worker-integration/skill.md +154 -0
  357. package/README.md +5218 -972
  358. package/bin/cli.js +144 -6
  359. package/bin/mcp-server.js +189 -0
  360. package/dist/src/commands/analyze.d.ts +19 -0
  361. package/dist/src/commands/analyze.d.ts.map +1 -0
  362. package/dist/src/commands/analyze.js +1823 -0
  363. package/dist/src/commands/analyze.js.map +1 -0
  364. package/dist/src/commands/claims.d.ts.map +1 -1
  365. package/dist/src/commands/claims.js +92 -7
  366. package/dist/src/commands/claims.js.map +1 -1
  367. package/dist/src/commands/daemon.d.ts.map +1 -1
  368. package/dist/src/commands/daemon.js +93 -45
  369. package/dist/src/commands/daemon.js.map +1 -1
  370. package/dist/src/commands/doctor.d.ts.map +1 -1
  371. package/dist/src/commands/doctor.js +255 -36
  372. package/dist/src/commands/doctor.js.map +1 -1
  373. package/dist/src/commands/embeddings.d.ts.map +1 -1
  374. package/dist/src/commands/embeddings.js +1110 -150
  375. package/dist/src/commands/embeddings.js.map +1 -1
  376. package/dist/src/commands/hive-mind.d.ts.map +1 -1
  377. package/dist/src/commands/hive-mind.js +41 -25
  378. package/dist/src/commands/hive-mind.js.map +1 -1
  379. package/dist/src/commands/hooks.d.ts.map +1 -1
  380. package/dist/src/commands/hooks.js +1257 -29
  381. package/dist/src/commands/hooks.js.map +1 -1
  382. package/dist/src/commands/index.d.ts +54 -22
  383. package/dist/src/commands/index.d.ts.map +1 -1
  384. package/dist/src/commands/index.js +204 -68
  385. package/dist/src/commands/index.js.map +1 -1
  386. package/dist/src/commands/init.d.ts.map +1 -1
  387. package/dist/src/commands/init.js +152 -11
  388. package/dist/src/commands/init.js.map +1 -1
  389. package/dist/src/commands/issues.d.ts +21 -0
  390. package/dist/src/commands/issues.d.ts.map +1 -0
  391. package/dist/src/commands/issues.js +567 -0
  392. package/dist/src/commands/issues.js.map +1 -0
  393. package/dist/src/commands/mcp.d.ts.map +1 -1
  394. package/dist/src/commands/mcp.js +49 -11
  395. package/dist/src/commands/mcp.js.map +1 -1
  396. package/dist/src/commands/memory.d.ts.map +1 -1
  397. package/dist/src/commands/memory.js +282 -59
  398. package/dist/src/commands/memory.js.map +1 -1
  399. package/dist/src/commands/migrate.d.ts.map +1 -1
  400. package/dist/src/commands/migrate.js +14 -2
  401. package/dist/src/commands/migrate.js.map +1 -1
  402. package/dist/src/commands/neural.d.ts.map +1 -1
  403. package/dist/src/commands/neural.js +300 -50
  404. package/dist/src/commands/neural.js.map +1 -1
  405. package/dist/src/commands/performance.d.ts.map +1 -1
  406. package/dist/src/commands/performance.js +369 -52
  407. package/dist/src/commands/performance.js.map +1 -1
  408. package/dist/src/commands/plugins.d.ts +1 -0
  409. package/dist/src/commands/plugins.d.ts.map +1 -1
  410. package/dist/src/commands/plugins.js +439 -89
  411. package/dist/src/commands/plugins.js.map +1 -1
  412. package/dist/src/commands/progress.d.ts +11 -0
  413. package/dist/src/commands/progress.d.ts.map +1 -0
  414. package/dist/src/commands/progress.js +259 -0
  415. package/dist/src/commands/progress.js.map +1 -0
  416. package/dist/src/commands/route.d.ts +16 -0
  417. package/dist/src/commands/route.d.ts.map +1 -0
  418. package/dist/src/commands/route.js +813 -0
  419. package/dist/src/commands/route.js.map +1 -0
  420. package/dist/src/commands/security.d.ts.map +1 -1
  421. package/dist/src/commands/security.js +356 -42
  422. package/dist/src/commands/security.js.map +1 -1
  423. package/dist/src/commands/start.d.ts.map +1 -1
  424. package/dist/src/commands/start.js +21 -1
  425. package/dist/src/commands/start.js.map +1 -1
  426. package/dist/src/commands/swarm.d.ts.map +1 -1
  427. package/dist/src/commands/swarm.js +208 -33
  428. package/dist/src/commands/swarm.js.map +1 -1
  429. package/dist/src/commands/transfer-store.d.ts +13 -0
  430. package/dist/src/commands/transfer-store.d.ts.map +1 -0
  431. package/dist/src/commands/transfer-store.js +428 -0
  432. package/dist/src/commands/transfer-store.js.map +1 -0
  433. package/dist/src/commands/update.d.ts +8 -0
  434. package/dist/src/commands/update.d.ts.map +1 -0
  435. package/dist/src/commands/update.js +276 -0
  436. package/dist/src/commands/update.js.map +1 -0
  437. package/dist/src/config-adapter.js +2 -1
  438. package/dist/src/config-adapter.js.map +1 -1
  439. package/dist/src/index.d.ts +19 -0
  440. package/dist/src/index.d.ts.map +1 -1
  441. package/dist/src/index.js +70 -9
  442. package/dist/src/index.js.map +1 -1
  443. package/dist/src/init/claudemd-generator.d.ts.map +1 -1
  444. package/dist/src/init/claudemd-generator.js +595 -410
  445. package/dist/src/init/claudemd-generator.js.map +1 -1
  446. package/dist/src/init/executor.d.ts.map +1 -1
  447. package/dist/src/init/executor.js +534 -33
  448. package/dist/src/init/executor.js.map +1 -1
  449. package/dist/src/init/helpers-generator.js +1 -1
  450. package/dist/src/init/helpers-generator.js.map +1 -1
  451. package/dist/src/init/index.d.ts +1 -1
  452. package/dist/src/init/index.d.ts.map +1 -1
  453. package/dist/src/init/index.js.map +1 -1
  454. package/dist/src/init/mcp-generator.d.ts +9 -0
  455. package/dist/src/init/mcp-generator.d.ts.map +1 -1
  456. package/dist/src/init/mcp-generator.js +57 -28
  457. package/dist/src/init/mcp-generator.js.map +1 -1
  458. package/dist/src/init/settings-generator.d.ts.map +1 -1
  459. package/dist/src/init/settings-generator.js +113 -91
  460. package/dist/src/init/settings-generator.js.map +1 -1
  461. package/dist/src/init/statusline-generator.d.ts +6 -0
  462. package/dist/src/init/statusline-generator.d.ts.map +1 -1
  463. package/dist/src/init/statusline-generator.js +298 -87
  464. package/dist/src/init/statusline-generator.js.map +1 -1
  465. package/dist/src/init/types.d.ts +29 -2
  466. package/dist/src/init/types.d.ts.map +1 -1
  467. package/dist/src/init/types.js +35 -3
  468. package/dist/src/init/types.js.map +1 -1
  469. package/dist/src/mcp-client.d.ts.map +1 -1
  470. package/dist/src/mcp-client.js +28 -0
  471. package/dist/src/mcp-client.js.map +1 -1
  472. package/dist/src/mcp-server.d.ts +9 -1
  473. package/dist/src/mcp-server.d.ts.map +1 -1
  474. package/dist/src/mcp-server.js +194 -46
  475. package/dist/src/mcp-server.js.map +1 -1
  476. package/dist/src/mcp-tools/agent-tools.d.ts +1 -0
  477. package/dist/src/mcp-tools/agent-tools.d.ts.map +1 -1
  478. package/dist/src/mcp-tools/agent-tools.js +127 -4
  479. package/dist/src/mcp-tools/agent-tools.js.map +1 -1
  480. package/dist/src/mcp-tools/analyze-tools.d.ts +38 -0
  481. package/dist/src/mcp-tools/analyze-tools.d.ts.map +1 -0
  482. package/dist/src/mcp-tools/analyze-tools.js +317 -0
  483. package/dist/src/mcp-tools/analyze-tools.js.map +1 -0
  484. package/dist/src/mcp-tools/auto-install.d.ts +83 -0
  485. package/dist/src/mcp-tools/auto-install.d.ts.map +1 -0
  486. package/dist/src/mcp-tools/auto-install.js +131 -0
  487. package/dist/src/mcp-tools/auto-install.js.map +1 -0
  488. package/dist/src/mcp-tools/claims-tools.d.ts +12 -0
  489. package/dist/src/mcp-tools/claims-tools.d.ts.map +1 -0
  490. package/dist/src/mcp-tools/claims-tools.js +732 -0
  491. package/dist/src/mcp-tools/claims-tools.js.map +1 -0
  492. package/dist/src/mcp-tools/coordination-tools.d.ts +13 -0
  493. package/dist/src/mcp-tools/coordination-tools.d.ts.map +1 -0
  494. package/dist/src/mcp-tools/coordination-tools.js +486 -0
  495. package/dist/src/mcp-tools/coordination-tools.js.map +1 -0
  496. package/dist/src/mcp-tools/daa-tools.d.ts +13 -0
  497. package/dist/src/mcp-tools/daa-tools.d.ts.map +1 -0
  498. package/dist/src/mcp-tools/daa-tools.js +426 -0
  499. package/dist/src/mcp-tools/daa-tools.js.map +1 -0
  500. package/dist/src/mcp-tools/embeddings-tools.d.ts +9 -0
  501. package/dist/src/mcp-tools/embeddings-tools.d.ts.map +1 -0
  502. package/dist/src/mcp-tools/embeddings-tools.js +782 -0
  503. package/dist/src/mcp-tools/embeddings-tools.js.map +1 -0
  504. package/dist/src/mcp-tools/github-tools.d.ts +13 -0
  505. package/dist/src/mcp-tools/github-tools.d.ts.map +1 -0
  506. package/dist/src/mcp-tools/github-tools.js +373 -0
  507. package/dist/src/mcp-tools/github-tools.js.map +1 -0
  508. package/dist/src/mcp-tools/hive-mind-tools.d.ts.map +1 -1
  509. package/dist/src/mcp-tools/hive-mind-tools.js +78 -0
  510. package/dist/src/mcp-tools/hive-mind-tools.js.map +1 -1
  511. package/dist/src/mcp-tools/hooks-tools.d.ts +3 -0
  512. package/dist/src/mcp-tools/hooks-tools.d.ts.map +1 -1
  513. package/dist/src/mcp-tools/hooks-tools.js +958 -121
  514. package/dist/src/mcp-tools/hooks-tools.js.map +1 -1
  515. package/dist/src/mcp-tools/index.d.ts +7 -0
  516. package/dist/src/mcp-tools/index.d.ts.map +1 -1
  517. package/dist/src/mcp-tools/index.js +7 -0
  518. package/dist/src/mcp-tools/index.js.map +1 -1
  519. package/dist/src/mcp-tools/neural-tools.d.ts +16 -0
  520. package/dist/src/mcp-tools/neural-tools.d.ts.map +1 -0
  521. package/dist/src/mcp-tools/neural-tools.js +456 -0
  522. package/dist/src/mcp-tools/neural-tools.js.map +1 -0
  523. package/dist/src/mcp-tools/performance-tools.d.ts +16 -0
  524. package/dist/src/mcp-tools/performance-tools.d.ts.map +1 -0
  525. package/dist/src/mcp-tools/performance-tools.js +534 -0
  526. package/dist/src/mcp-tools/performance-tools.js.map +1 -0
  527. package/dist/src/mcp-tools/progress-tools.d.ts +14 -0
  528. package/dist/src/mcp-tools/progress-tools.d.ts.map +1 -0
  529. package/dist/src/mcp-tools/progress-tools.js +348 -0
  530. package/dist/src/mcp-tools/progress-tools.js.map +1 -0
  531. package/dist/src/mcp-tools/security-tools.d.ts +18 -0
  532. package/dist/src/mcp-tools/security-tools.d.ts.map +1 -0
  533. package/dist/src/mcp-tools/security-tools.js +434 -0
  534. package/dist/src/mcp-tools/security-tools.js.map +1 -0
  535. package/dist/src/mcp-tools/system-tools.d.ts +13 -0
  536. package/dist/src/mcp-tools/system-tools.d.ts.map +1 -0
  537. package/dist/src/mcp-tools/system-tools.js +314 -0
  538. package/dist/src/mcp-tools/system-tools.js.map +1 -0
  539. package/dist/src/mcp-tools/terminal-tools.d.ts +13 -0
  540. package/dist/src/mcp-tools/terminal-tools.d.ts.map +1 -0
  541. package/dist/src/mcp-tools/terminal-tools.js +246 -0
  542. package/dist/src/mcp-tools/terminal-tools.js.map +1 -0
  543. package/dist/src/mcp-tools/transfer-tools.d.ts +14 -0
  544. package/dist/src/mcp-tools/transfer-tools.d.ts.map +1 -0
  545. package/dist/src/mcp-tools/transfer-tools.js +396 -0
  546. package/dist/src/mcp-tools/transfer-tools.js.map +1 -0
  547. package/dist/src/memory/ewc-consolidation.d.ts +271 -0
  548. package/dist/src/memory/ewc-consolidation.d.ts.map +1 -0
  549. package/dist/src/memory/ewc-consolidation.js +542 -0
  550. package/dist/src/memory/ewc-consolidation.js.map +1 -0
  551. package/dist/src/memory/intelligence.d.ts +203 -0
  552. package/dist/src/memory/intelligence.d.ts.map +1 -0
  553. package/dist/src/memory/intelligence.js +431 -0
  554. package/dist/src/memory/intelligence.js.map +1 -0
  555. package/dist/src/memory/memory-initializer.d.ts +378 -0
  556. package/dist/src/memory/memory-initializer.d.ts.map +1 -0
  557. package/dist/src/memory/memory-initializer.js +1840 -0
  558. package/dist/src/memory/memory-initializer.js.map +1 -0
  559. package/dist/src/memory/sona-optimizer.d.ts +227 -0
  560. package/dist/src/memory/sona-optimizer.d.ts.map +1 -0
  561. package/dist/src/memory/sona-optimizer.js +633 -0
  562. package/dist/src/memory/sona-optimizer.js.map +1 -0
  563. package/dist/src/parser.d.ts.map +1 -1
  564. package/dist/src/parser.js +27 -3
  565. package/dist/src/parser.js.map +1 -1
  566. package/dist/src/plugins/store/discovery.d.ts +73 -0
  567. package/dist/src/plugins/store/discovery.d.ts.map +1 -0
  568. package/dist/src/plugins/store/discovery.js +568 -0
  569. package/dist/src/plugins/store/discovery.js.map +1 -0
  570. package/dist/src/plugins/store/index.d.ts +76 -0
  571. package/dist/src/plugins/store/index.d.ts.map +1 -0
  572. package/dist/src/plugins/store/index.js +141 -0
  573. package/dist/src/plugins/store/index.js.map +1 -0
  574. package/dist/src/plugins/store/search.d.ts +46 -0
  575. package/dist/src/plugins/store/search.d.ts.map +1 -0
  576. package/dist/src/plugins/store/search.js +230 -0
  577. package/dist/src/plugins/store/search.js.map +1 -0
  578. package/dist/src/plugins/store/types.d.ts +274 -0
  579. package/dist/src/plugins/store/types.d.ts.map +1 -0
  580. package/dist/src/plugins/store/types.js +7 -0
  581. package/dist/src/plugins/store/types.js.map +1 -0
  582. package/dist/src/plugins/tests/demo-plugin-store.d.ts +7 -0
  583. package/dist/src/plugins/tests/demo-plugin-store.d.ts.map +1 -0
  584. package/dist/src/plugins/tests/demo-plugin-store.js +126 -0
  585. package/dist/src/plugins/tests/demo-plugin-store.js.map +1 -0
  586. package/dist/src/plugins/tests/standalone-test.d.ts +12 -0
  587. package/dist/src/plugins/tests/standalone-test.d.ts.map +1 -0
  588. package/dist/src/plugins/tests/standalone-test.js +188 -0
  589. package/dist/src/plugins/tests/standalone-test.js.map +1 -0
  590. package/dist/src/plugins/tests/test-plugin-store.d.ts +7 -0
  591. package/dist/src/plugins/tests/test-plugin-store.d.ts.map +1 -0
  592. package/dist/src/plugins/tests/test-plugin-store.js +206 -0
  593. package/dist/src/plugins/tests/test-plugin-store.js.map +1 -0
  594. package/dist/src/production/circuit-breaker.d.ts +101 -0
  595. package/dist/src/production/circuit-breaker.d.ts.map +1 -0
  596. package/dist/src/production/circuit-breaker.js +241 -0
  597. package/dist/src/production/circuit-breaker.js.map +1 -0
  598. package/dist/src/production/error-handler.d.ts +92 -0
  599. package/dist/src/production/error-handler.d.ts.map +1 -0
  600. package/dist/src/production/error-handler.js +299 -0
  601. package/dist/src/production/error-handler.js.map +1 -0
  602. package/dist/src/production/index.d.ts +23 -0
  603. package/dist/src/production/index.d.ts.map +1 -0
  604. package/dist/src/production/index.js +18 -0
  605. package/dist/src/production/index.js.map +1 -0
  606. package/dist/src/production/monitoring.d.ts +161 -0
  607. package/dist/src/production/monitoring.d.ts.map +1 -0
  608. package/dist/src/production/monitoring.js +356 -0
  609. package/dist/src/production/monitoring.js.map +1 -0
  610. package/dist/src/production/rate-limiter.d.ts +80 -0
  611. package/dist/src/production/rate-limiter.d.ts.map +1 -0
  612. package/dist/src/production/rate-limiter.js +201 -0
  613. package/dist/src/production/rate-limiter.js.map +1 -0
  614. package/dist/src/production/retry.d.ts +48 -0
  615. package/dist/src/production/retry.d.ts.map +1 -0
  616. package/dist/src/production/retry.js +179 -0
  617. package/dist/src/production/retry.js.map +1 -0
  618. package/dist/src/runtime/headless.d.ts +60 -0
  619. package/dist/src/runtime/headless.d.ts.map +1 -0
  620. package/dist/src/runtime/headless.js +284 -0
  621. package/dist/src/runtime/headless.js.map +1 -0
  622. package/dist/src/ruvector/ast-analyzer.d.ts +67 -0
  623. package/dist/src/ruvector/ast-analyzer.d.ts.map +1 -0
  624. package/dist/src/ruvector/ast-analyzer.js +277 -0
  625. package/dist/src/ruvector/ast-analyzer.js.map +1 -0
  626. package/dist/src/ruvector/coverage-router.d.ts +160 -0
  627. package/dist/src/ruvector/coverage-router.d.ts.map +1 -0
  628. package/dist/src/ruvector/coverage-router.js +529 -0
  629. package/dist/src/ruvector/coverage-router.js.map +1 -0
  630. package/dist/src/ruvector/coverage-tools.d.ts +33 -0
  631. package/dist/src/ruvector/coverage-tools.d.ts.map +1 -0
  632. package/dist/src/ruvector/coverage-tools.js +157 -0
  633. package/dist/src/ruvector/coverage-tools.js.map +1 -0
  634. package/dist/src/ruvector/diff-classifier.d.ts +175 -0
  635. package/dist/src/ruvector/diff-classifier.d.ts.map +1 -0
  636. package/dist/src/ruvector/diff-classifier.js +698 -0
  637. package/dist/src/ruvector/diff-classifier.js.map +1 -0
  638. package/dist/src/ruvector/enhanced-model-router.d.ts +146 -0
  639. package/dist/src/ruvector/enhanced-model-router.d.ts.map +1 -0
  640. package/dist/src/ruvector/enhanced-model-router.js +519 -0
  641. package/dist/src/ruvector/enhanced-model-router.js.map +1 -0
  642. package/dist/src/ruvector/flash-attention.d.ts +195 -0
  643. package/dist/src/ruvector/flash-attention.d.ts.map +1 -0
  644. package/dist/src/ruvector/flash-attention.js +643 -0
  645. package/dist/src/ruvector/flash-attention.js.map +1 -0
  646. package/dist/src/ruvector/graph-analyzer.d.ts +187 -0
  647. package/dist/src/ruvector/graph-analyzer.d.ts.map +1 -0
  648. package/dist/src/ruvector/graph-analyzer.js +929 -0
  649. package/dist/src/ruvector/graph-analyzer.js.map +1 -0
  650. package/dist/src/ruvector/index.d.ts +33 -0
  651. package/dist/src/ruvector/index.d.ts.map +1 -0
  652. package/dist/src/ruvector/index.js +59 -0
  653. package/dist/src/ruvector/index.js.map +1 -0
  654. package/dist/src/ruvector/lora-adapter.d.ts +218 -0
  655. package/dist/src/ruvector/lora-adapter.d.ts.map +1 -0
  656. package/dist/src/ruvector/lora-adapter.js +455 -0
  657. package/dist/src/ruvector/lora-adapter.js.map +1 -0
  658. package/dist/src/ruvector/model-router.d.ts +220 -0
  659. package/dist/src/ruvector/model-router.d.ts.map +1 -0
  660. package/dist/src/ruvector/model-router.js +488 -0
  661. package/dist/src/ruvector/model-router.js.map +1 -0
  662. package/dist/src/ruvector/moe-router.d.ts +206 -0
  663. package/dist/src/ruvector/moe-router.d.ts.map +1 -0
  664. package/dist/src/ruvector/moe-router.js +626 -0
  665. package/dist/src/ruvector/moe-router.js.map +1 -0
  666. package/dist/src/ruvector/q-learning-router.d.ts +211 -0
  667. package/dist/src/ruvector/q-learning-router.d.ts.map +1 -0
  668. package/dist/src/ruvector/q-learning-router.js +681 -0
  669. package/dist/src/ruvector/q-learning-router.js.map +1 -0
  670. package/dist/src/ruvector/vector-db.d.ts +69 -0
  671. package/dist/src/ruvector/vector-db.d.ts.map +1 -0
  672. package/dist/src/ruvector/vector-db.js +243 -0
  673. package/dist/src/ruvector/vector-db.js.map +1 -0
  674. package/dist/src/services/claim-service.d.ts +204 -0
  675. package/dist/src/services/claim-service.d.ts.map +1 -0
  676. package/dist/src/services/claim-service.js +818 -0
  677. package/dist/src/services/claim-service.js.map +1 -0
  678. package/dist/src/services/container-worker-pool.d.ts +197 -0
  679. package/dist/src/services/container-worker-pool.d.ts.map +1 -0
  680. package/dist/src/services/container-worker-pool.js +581 -0
  681. package/dist/src/services/container-worker-pool.js.map +1 -0
  682. package/dist/src/services/headless-worker-executor.d.ts +304 -0
  683. package/dist/src/services/headless-worker-executor.d.ts.map +1 -0
  684. package/dist/src/services/headless-worker-executor.js +997 -0
  685. package/dist/src/services/headless-worker-executor.js.map +1 -0
  686. package/dist/src/services/index.d.ts +6 -0
  687. package/dist/src/services/index.d.ts.map +1 -1
  688. package/dist/src/services/index.js +5 -0
  689. package/dist/src/services/index.js.map +1 -1
  690. package/dist/src/services/worker-daemon.d.ts +55 -5
  691. package/dist/src/services/worker-daemon.d.ts.map +1 -1
  692. package/dist/src/services/worker-daemon.js +191 -13
  693. package/dist/src/services/worker-daemon.js.map +1 -1
  694. package/dist/src/services/worker-queue.d.ts +194 -0
  695. package/dist/src/services/worker-queue.d.ts.map +1 -0
  696. package/dist/src/services/worker-queue.js +511 -0
  697. package/dist/src/services/worker-queue.js.map +1 -0
  698. package/dist/src/transfer/anonymization/index.d.ts +25 -0
  699. package/dist/src/transfer/anonymization/index.d.ts.map +1 -0
  700. package/dist/src/transfer/anonymization/index.js +175 -0
  701. package/dist/src/transfer/anonymization/index.js.map +1 -0
  702. package/dist/src/transfer/deploy-seraphine.d.ts +13 -0
  703. package/dist/src/transfer/deploy-seraphine.d.ts.map +1 -0
  704. package/dist/src/transfer/deploy-seraphine.js +205 -0
  705. package/dist/src/transfer/deploy-seraphine.js.map +1 -0
  706. package/dist/src/transfer/export.d.ts +25 -0
  707. package/dist/src/transfer/export.d.ts.map +1 -0
  708. package/dist/src/transfer/export.js +113 -0
  709. package/dist/src/transfer/export.js.map +1 -0
  710. package/dist/src/transfer/index.d.ts +12 -0
  711. package/dist/src/transfer/index.d.ts.map +1 -0
  712. package/dist/src/transfer/index.js +31 -0
  713. package/dist/src/transfer/index.js.map +1 -0
  714. package/dist/src/transfer/ipfs/client.d.ts +31 -0
  715. package/dist/src/transfer/ipfs/client.d.ts.map +1 -0
  716. package/dist/src/transfer/ipfs/client.js +74 -0
  717. package/dist/src/transfer/ipfs/client.js.map +1 -0
  718. package/dist/src/transfer/ipfs/upload.d.ts +95 -0
  719. package/dist/src/transfer/ipfs/upload.d.ts.map +1 -0
  720. package/dist/src/transfer/ipfs/upload.js +413 -0
  721. package/dist/src/transfer/ipfs/upload.js.map +1 -0
  722. package/dist/src/transfer/models/seraphine.d.ts +72 -0
  723. package/dist/src/transfer/models/seraphine.d.ts.map +1 -0
  724. package/dist/src/transfer/models/seraphine.js +373 -0
  725. package/dist/src/transfer/models/seraphine.js.map +1 -0
  726. package/dist/src/transfer/serialization/cfp.d.ts +49 -0
  727. package/dist/src/transfer/serialization/cfp.d.ts.map +1 -0
  728. package/dist/src/transfer/serialization/cfp.js +180 -0
  729. package/dist/src/transfer/serialization/cfp.js.map +1 -0
  730. package/dist/src/transfer/storage/gcs.d.ts +82 -0
  731. package/dist/src/transfer/storage/gcs.d.ts.map +1 -0
  732. package/dist/src/transfer/storage/gcs.js +230 -0
  733. package/dist/src/transfer/storage/gcs.js.map +1 -0
  734. package/dist/src/transfer/storage/index.d.ts +6 -0
  735. package/dist/src/transfer/storage/index.d.ts.map +1 -0
  736. package/dist/src/transfer/storage/index.js +6 -0
  737. package/dist/src/transfer/storage/index.js.map +1 -0
  738. package/dist/src/transfer/store/discovery.d.ts +84 -0
  739. package/dist/src/transfer/store/discovery.d.ts.map +1 -0
  740. package/dist/src/transfer/store/discovery.js +382 -0
  741. package/dist/src/transfer/store/discovery.js.map +1 -0
  742. package/dist/src/transfer/store/download.d.ts +70 -0
  743. package/dist/src/transfer/store/download.d.ts.map +1 -0
  744. package/dist/src/transfer/store/download.js +334 -0
  745. package/dist/src/transfer/store/download.js.map +1 -0
  746. package/dist/src/transfer/store/index.d.ts +84 -0
  747. package/dist/src/transfer/store/index.d.ts.map +1 -0
  748. package/dist/src/transfer/store/index.js +153 -0
  749. package/dist/src/transfer/store/index.js.map +1 -0
  750. package/dist/src/transfer/store/publish.d.ts +76 -0
  751. package/dist/src/transfer/store/publish.d.ts.map +1 -0
  752. package/dist/src/transfer/store/publish.js +294 -0
  753. package/dist/src/transfer/store/publish.js.map +1 -0
  754. package/dist/src/transfer/store/registry.d.ts +58 -0
  755. package/dist/src/transfer/store/registry.d.ts.map +1 -0
  756. package/dist/src/transfer/store/registry.js +285 -0
  757. package/dist/src/transfer/store/registry.js.map +1 -0
  758. package/dist/src/transfer/store/search.d.ts +54 -0
  759. package/dist/src/transfer/store/search.d.ts.map +1 -0
  760. package/dist/src/transfer/store/search.js +232 -0
  761. package/dist/src/transfer/store/search.js.map +1 -0
  762. package/dist/src/transfer/store/tests/standalone-test.d.ts +12 -0
  763. package/dist/src/transfer/store/tests/standalone-test.d.ts.map +1 -0
  764. package/dist/src/transfer/store/tests/standalone-test.js +190 -0
  765. package/dist/src/transfer/store/tests/standalone-test.js.map +1 -0
  766. package/dist/src/transfer/store/types.d.ts +193 -0
  767. package/dist/src/transfer/store/types.d.ts.map +1 -0
  768. package/dist/src/transfer/store/types.js +6 -0
  769. package/dist/src/transfer/store/types.js.map +1 -0
  770. package/dist/src/transfer/test-seraphine.d.ts +6 -0
  771. package/dist/src/transfer/test-seraphine.d.ts.map +1 -0
  772. package/dist/src/transfer/test-seraphine.js +105 -0
  773. package/dist/src/transfer/test-seraphine.js.map +1 -0
  774. package/dist/src/transfer/tests/test-store.d.ts +7 -0
  775. package/dist/src/transfer/tests/test-store.d.ts.map +1 -0
  776. package/dist/src/transfer/tests/test-store.js +214 -0
  777. package/dist/src/transfer/tests/test-store.js.map +1 -0
  778. package/dist/src/transfer/types.d.ts +245 -0
  779. package/dist/src/transfer/types.d.ts.map +1 -0
  780. package/dist/src/transfer/types.js +6 -0
  781. package/dist/src/transfer/types.js.map +1 -0
  782. package/dist/src/types.d.ts +1 -1
  783. package/dist/src/types.d.ts.map +1 -1
  784. package/dist/src/update/checker.d.ts +34 -0
  785. package/dist/src/update/checker.d.ts.map +1 -0
  786. package/dist/src/update/checker.js +190 -0
  787. package/dist/src/update/checker.js.map +1 -0
  788. package/dist/src/update/executor.d.ts +32 -0
  789. package/dist/src/update/executor.d.ts.map +1 -0
  790. package/dist/src/update/executor.js +181 -0
  791. package/dist/src/update/executor.js.map +1 -0
  792. package/dist/src/update/index.d.ts +33 -0
  793. package/dist/src/update/index.d.ts.map +1 -0
  794. package/dist/src/update/index.js +64 -0
  795. package/dist/src/update/index.js.map +1 -0
  796. package/dist/src/update/rate-limiter.d.ts +20 -0
  797. package/dist/src/update/rate-limiter.d.ts.map +1 -0
  798. package/dist/src/update/rate-limiter.js +96 -0
  799. package/dist/src/update/rate-limiter.js.map +1 -0
  800. package/dist/src/update/validator.d.ts +17 -0
  801. package/dist/src/update/validator.d.ts.map +1 -0
  802. package/dist/src/update/validator.js +123 -0
  803. package/dist/src/update/validator.js.map +1 -0
  804. package/dist/tsconfig.tsbuildinfo +1 -1
  805. package/package.json +38 -8
  806. package/.agentic-flow/intelligence.json +0 -17
  807. package/.claude-flow/agents/store.json +0 -16
  808. package/.claude-flow/daemon-state.json +0 -123
  809. package/.claude-flow/daemon-test.log +0 -0
  810. package/.claude-flow/daemon.log +0 -0
  811. package/.claude-flow/daemon2.log +0 -0
  812. package/.claude-flow/daemon3.log +0 -0
  813. package/.claude-flow/hive-mind/state.json +0 -51
  814. package/.claude-flow/metrics/codebase-map.json +0 -11
  815. package/.claude-flow/metrics/consolidation.json +0 -6
  816. package/.claude-flow/metrics/security-audit.json +0 -10
  817. package/.claude-flow/metrics/task-metrics.json +0 -10
  818. package/.claude-flow/metrics/test-gaps.json +0 -6
  819. package/__tests__/README.md +0 -140
  820. package/__tests__/TEST_SUMMARY.md +0 -144
  821. package/__tests__/cli.test.ts +0 -558
  822. package/__tests__/commands.test.ts +0 -726
  823. package/__tests__/config-adapter.test.ts +0 -362
  824. package/__tests__/config-loading.test.ts +0 -106
  825. package/__tests__/coverage/.tmp/coverage-0.json +0 -1
  826. package/__tests__/coverage/.tmp/coverage-1.json +0 -1
  827. package/__tests__/coverage/.tmp/coverage-2.json +0 -1
  828. package/__tests__/coverage/.tmp/coverage-3.json +0 -1
  829. package/__tests__/coverage/.tmp/coverage-4.json +0 -1
  830. package/__tests__/coverage/.tmp/coverage-5.json +0 -1
  831. package/__tests__/mcp-client.test.ts +0 -480
  832. package/__tests__/p1-commands.test.ts +0 -1064
  833. package/agents/architect.yaml +0 -11
  834. package/agents/coder.yaml +0 -11
  835. package/agents/reviewer.yaml +0 -10
  836. package/agents/security-architect.yaml +0 -10
  837. package/agents/tester.yaml +0 -10
  838. package/docs/CONFIG_LOADING.md +0 -236
  839. package/docs/IMPLEMENTATION_COMPLETE.md +0 -421
  840. package/docs/MCP_CLIENT_GUIDE.md +0 -620
  841. package/docs/REFACTORING_SUMMARY.md +0 -247
  842. package/scripts/publish.sh +0 -46
  843. package/src/commands/agent.ts +0 -955
  844. package/src/commands/claims.ts +0 -317
  845. package/src/commands/completions.ts +0 -558
  846. package/src/commands/config.ts +0 -452
  847. package/src/commands/daemon.ts +0 -621
  848. package/src/commands/deployment.ts +0 -323
  849. package/src/commands/doctor.ts +0 -378
  850. package/src/commands/embeddings.ts +0 -686
  851. package/src/commands/hive-mind.ts +0 -928
  852. package/src/commands/hooks.ts +0 -2603
  853. package/src/commands/index.ts +0 -154
  854. package/src/commands/init.ts +0 -597
  855. package/src/commands/mcp.ts +0 -753
  856. package/src/commands/memory.ts +0 -1161
  857. package/src/commands/migrate.ts +0 -447
  858. package/src/commands/neural.ts +0 -253
  859. package/src/commands/performance.ts +0 -292
  860. package/src/commands/plugins.ts +0 -316
  861. package/src/commands/process.ts +0 -695
  862. package/src/commands/providers.ts +0 -259
  863. package/src/commands/security.ts +0 -288
  864. package/src/commands/session.ts +0 -891
  865. package/src/commands/start.ts +0 -457
  866. package/src/commands/status.ts +0 -736
  867. package/src/commands/swarm.ts +0 -648
  868. package/src/commands/task.ts +0 -792
  869. package/src/commands/workflow.ts +0 -742
  870. package/src/config-adapter.ts +0 -210
  871. package/src/index.ts +0 -443
  872. package/src/infrastructure/in-memory-repositories.ts +0 -310
  873. package/src/init/claudemd-generator.ts +0 -631
  874. package/src/init/executor.ts +0 -762
  875. package/src/init/helpers-generator.ts +0 -628
  876. package/src/init/index.ts +0 -60
  877. package/src/init/mcp-generator.ts +0 -83
  878. package/src/init/settings-generator.ts +0 -284
  879. package/src/init/statusline-generator.ts +0 -211
  880. package/src/init/types.ts +0 -447
  881. package/src/mcp-client.ts +0 -241
  882. package/src/mcp-server.ts +0 -577
  883. package/src/mcp-tools/agent-tools.ts +0 -466
  884. package/src/mcp-tools/config-tools.ts +0 -370
  885. package/src/mcp-tools/hive-mind-tools.ts +0 -521
  886. package/src/mcp-tools/hooks-tools.ts +0 -1888
  887. package/src/mcp-tools/index.ts +0 -16
  888. package/src/mcp-tools/memory-tools.ts +0 -270
  889. package/src/mcp-tools/session-tools.ts +0 -359
  890. package/src/mcp-tools/swarm-tools.ts +0 -105
  891. package/src/mcp-tools/task-tools.ts +0 -347
  892. package/src/mcp-tools/types.ts +0 -33
  893. package/src/mcp-tools/workflow-tools.ts +0 -573
  894. package/src/output.ts +0 -639
  895. package/src/parser.ts +0 -417
  896. package/src/prompt.ts +0 -619
  897. package/src/services/index.ts +0 -15
  898. package/src/services/worker-daemon.ts +0 -726
  899. package/src/suggest.ts +0 -245
  900. package/src/types.ts +0 -287
  901. package/tsconfig.json +0 -16
  902. package/tsconfig.tsbuildinfo +0 -1
  903. package/vitest.config.ts +0 -13
  904. /package/{tmp.json → .claude/agents/tmp.json} +0 -0
  905. /package/{.claude-flow → .claude/skills/skill-builder/.claude-flow}/metrics/agent-metrics.json +0 -0
@@ -0,0 +1,665 @@
1
+ ---
2
+ name: Benchmark Suite
3
+ type: agent
4
+ category: optimization
5
+ description: Comprehensive performance benchmarking, regression detection and performance validation
6
+ ---
7
+
8
+ # Benchmark Suite Agent
9
+
10
+ ## Agent Profile
11
+ - **Name**: Benchmark Suite
12
+ - **Type**: Performance Optimization Agent
13
+ - **Specialization**: Comprehensive performance benchmarking and testing
14
+ - **Performance Focus**: Automated benchmarking, regression detection, and performance validation
15
+
16
+ ## Core Capabilities
17
+
18
+ ### 1. Comprehensive Benchmarking Framework
19
+ ```javascript
20
+ // Advanced benchmarking system
21
+ class ComprehensiveBenchmarkSuite {
22
+ constructor() {
23
+ this.benchmarks = {
24
+ // Core performance benchmarks
25
+ throughput: new ThroughputBenchmark(),
26
+ latency: new LatencyBenchmark(),
27
+ scalability: new ScalabilityBenchmark(),
28
+ resource_usage: new ResourceUsageBenchmark(),
29
+
30
+ // Swarm-specific benchmarks
31
+ coordination: new CoordinationBenchmark(),
32
+ load_balancing: new LoadBalancingBenchmark(),
33
+ topology: new TopologyBenchmark(),
34
+ fault_tolerance: new FaultToleranceBenchmark(),
35
+
36
+ // Custom benchmarks
37
+ custom: new CustomBenchmarkManager()
38
+ };
39
+
40
+ this.reporter = new BenchmarkReporter();
41
+ this.comparator = new PerformanceComparator();
42
+ this.analyzer = new BenchmarkAnalyzer();
43
+ }
44
+
45
+ // Execute comprehensive benchmark suite
46
+ async runBenchmarkSuite(config = {}) {
47
+ const suiteConfig = {
48
+ duration: config.duration || 300000, // 5 minutes default
49
+ iterations: config.iterations || 10,
50
+ warmupTime: config.warmupTime || 30000, // 30 seconds
51
+ cooldownTime: config.cooldownTime || 10000, // 10 seconds
52
+ parallel: config.parallel || false,
53
+ baseline: config.baseline || null
54
+ };
55
+
56
+ const results = {
57
+ summary: {},
58
+ detailed: new Map(),
59
+ baseline_comparison: null,
60
+ recommendations: []
61
+ };
62
+
63
+ // Warmup phase
64
+ await this.warmup(suiteConfig.warmupTime);
65
+
66
+ // Execute benchmarks
67
+ if (suiteConfig.parallel) {
68
+ results.detailed = await this.runBenchmarksParallel(suiteConfig);
69
+ } else {
70
+ results.detailed = await this.runBenchmarksSequential(suiteConfig);
71
+ }
72
+
73
+ // Generate summary
74
+ results.summary = this.generateSummary(results.detailed);
75
+
76
+ // Compare with baseline if provided
77
+ if (suiteConfig.baseline) {
78
+ results.baseline_comparison = await this.compareWithBaseline(
79
+ results.detailed,
80
+ suiteConfig.baseline
81
+ );
82
+ }
83
+
84
+ // Generate recommendations
85
+ results.recommendations = await this.generateRecommendations(results);
86
+
87
+ // Cooldown phase
88
+ await this.cooldown(suiteConfig.cooldownTime);
89
+
90
+ return results;
91
+ }
92
+
93
+ // Parallel benchmark execution
94
+ async runBenchmarksParallel(config) {
95
+ const benchmarkPromises = Object.entries(this.benchmarks).map(
96
+ async ([name, benchmark]) => {
97
+ const result = await this.executeBenchmark(benchmark, name, config);
98
+ return [name, result];
99
+ }
100
+ );
101
+
102
+ const results = await Promise.all(benchmarkPromises);
103
+ return new Map(results);
104
+ }
105
+
106
+ // Sequential benchmark execution
107
+ async runBenchmarksSequential(config) {
108
+ const results = new Map();
109
+
110
+ for (const [name, benchmark] of Object.entries(this.benchmarks)) {
111
+ const result = await this.executeBenchmark(benchmark, name, config);
112
+ results.set(name, result);
113
+
114
+ // Brief pause between benchmarks
115
+ await this.sleep(1000);
116
+ }
117
+
118
+ return results;
119
+ }
120
+ }
121
+ ```
122
+
123
+ ### 2. Performance Regression Detection
124
+ ```javascript
125
+ // Advanced regression detection system
126
+ class RegressionDetector {
127
+ constructor() {
128
+ this.detectors = {
129
+ statistical: new StatisticalRegressionDetector(),
130
+ machine_learning: new MLRegressionDetector(),
131
+ threshold: new ThresholdRegressionDetector(),
132
+ trend: new TrendRegressionDetector()
133
+ };
134
+
135
+ this.analyzer = new RegressionAnalyzer();
136
+ this.alerting = new RegressionAlerting();
137
+ }
138
+
139
+ // Detect performance regressions
140
+ async detectRegressions(currentResults, historicalData, config = {}) {
141
+ const regressions = {
142
+ detected: [],
143
+ severity: 'none',
144
+ confidence: 0,
145
+ analysis: {}
146
+ };
147
+
148
+ // Run multiple detection algorithms
149
+ const detectionPromises = Object.entries(this.detectors).map(
150
+ async ([method, detector]) => {
151
+ const detection = await detector.detect(currentResults, historicalData, config);
152
+ return [method, detection];
153
+ }
154
+ );
155
+
156
+ const detectionResults = await Promise.all(detectionPromises);
157
+
158
+ // Aggregate detection results
159
+ for (const [method, detection] of detectionResults) {
160
+ if (detection.regression_detected) {
161
+ regressions.detected.push({
162
+ method,
163
+ ...detection
164
+ });
165
+ }
166
+ }
167
+
168
+ // Calculate overall confidence and severity
169
+ if (regressions.detected.length > 0) {
170
+ regressions.confidence = this.calculateAggregateConfidence(regressions.detected);
171
+ regressions.severity = this.calculateSeverity(regressions.detected);
172
+ regressions.analysis = await this.analyzer.analyze(regressions.detected);
173
+ }
174
+
175
+ return regressions;
176
+ }
177
+
178
+ // Statistical regression detection using change point analysis
179
+ async detectStatisticalRegression(metric, historicalData, sensitivity = 0.95) {
180
+ // Use CUSUM (Cumulative Sum) algorithm for change point detection
181
+ const cusum = this.calculateCUSUM(metric, historicalData);
182
+
183
+ // Detect change points
184
+ const changePoints = this.detectChangePoints(cusum, sensitivity);
185
+
186
+ // Analyze significance of changes
187
+ const analysis = changePoints.map(point => ({
188
+ timestamp: point.timestamp,
189
+ magnitude: point.magnitude,
190
+ direction: point.direction,
191
+ significance: point.significance,
192
+ confidence: point.confidence
193
+ }));
194
+
195
+ return {
196
+ regression_detected: changePoints.length > 0,
197
+ change_points: analysis,
198
+ cusum_statistics: cusum.statistics,
199
+ sensitivity: sensitivity
200
+ };
201
+ }
202
+
203
+ // Machine learning-based regression detection
204
+ async detectMLRegression(metrics, historicalData) {
205
+ // Train anomaly detection model on historical data
206
+ const model = await this.trainAnomalyModel(historicalData);
207
+
208
+ // Predict anomaly scores for current metrics
209
+ const anomalyScores = await model.predict(metrics);
210
+
211
+ // Identify regressions based on anomaly scores
212
+ const threshold = this.calculateDynamicThreshold(anomalyScores);
213
+ const regressions = anomalyScores.filter(score => score.anomaly > threshold);
214
+
215
+ return {
216
+ regression_detected: regressions.length > 0,
217
+ anomaly_scores: anomalyScores,
218
+ threshold: threshold,
219
+ regressions: regressions,
220
+ model_confidence: model.confidence
221
+ };
222
+ }
223
+ }
224
+ ```
225
+
226
+ ### 3. Automated Performance Testing
227
+ ```javascript
228
+ // Comprehensive automated performance testing
229
+ class AutomatedPerformanceTester {
230
+ constructor() {
231
+ this.testSuites = {
232
+ load: new LoadTestSuite(),
233
+ stress: new StressTestSuite(),
234
+ volume: new VolumeTestSuite(),
235
+ endurance: new EnduranceTestSuite(),
236
+ spike: new SpikeTestSuite(),
237
+ configuration: new ConfigurationTestSuite()
238
+ };
239
+
240
+ this.scheduler = new TestScheduler();
241
+ this.orchestrator = new TestOrchestrator();
242
+ this.validator = new ResultValidator();
243
+ }
244
+
245
+ // Execute automated performance test campaign
246
+ async runTestCampaign(config) {
247
+ const campaign = {
248
+ id: this.generateCampaignId(),
249
+ config,
250
+ startTime: Date.now(),
251
+ tests: [],
252
+ results: new Map(),
253
+ summary: null
254
+ };
255
+
256
+ // Schedule test execution
257
+ const schedule = await this.scheduler.schedule(config.tests, config.constraints);
258
+
259
+ // Execute tests according to schedule
260
+ for (const scheduledTest of schedule) {
261
+ const testResult = await this.executeScheduledTest(scheduledTest);
262
+ campaign.tests.push(scheduledTest);
263
+ campaign.results.set(scheduledTest.id, testResult);
264
+
265
+ // Validate results in real-time
266
+ const validation = await this.validator.validate(testResult);
267
+ if (!validation.valid) {
268
+ campaign.summary = {
269
+ status: 'failed',
270
+ reason: validation.reason,
271
+ failedAt: scheduledTest.name
272
+ };
273
+ break;
274
+ }
275
+ }
276
+
277
+ // Generate campaign summary
278
+ if (!campaign.summary) {
279
+ campaign.summary = await this.generateCampaignSummary(campaign);
280
+ }
281
+
282
+ campaign.endTime = Date.now();
283
+ campaign.duration = campaign.endTime - campaign.startTime;
284
+
285
+ return campaign;
286
+ }
287
+
288
+ // Load testing with gradual ramp-up
289
+ async executeLoadTest(config) {
290
+ const loadTest = {
291
+ type: 'load',
292
+ config,
293
+ phases: [],
294
+ metrics: new Map(),
295
+ results: {}
296
+ };
297
+
298
+ // Ramp-up phase
299
+ const rampUpResult = await this.executeRampUp(config.rampUp);
300
+ loadTest.phases.push({ phase: 'ramp-up', result: rampUpResult });
301
+
302
+ // Sustained load phase
303
+ const sustainedResult = await this.executeSustainedLoad(config.sustained);
304
+ loadTest.phases.push({ phase: 'sustained', result: sustainedResult });
305
+
306
+ // Ramp-down phase
307
+ const rampDownResult = await this.executeRampDown(config.rampDown);
308
+ loadTest.phases.push({ phase: 'ramp-down', result: rampDownResult });
309
+
310
+ // Analyze results
311
+ loadTest.results = await this.analyzeLoadTestResults(loadTest.phases);
312
+
313
+ return loadTest;
314
+ }
315
+
316
+ // Stress testing to find breaking points
317
+ async executeStressTest(config) {
318
+ const stressTest = {
319
+ type: 'stress',
320
+ config,
321
+ breakingPoint: null,
322
+ degradationCurve: [],
323
+ results: {}
324
+ };
325
+
326
+ let currentLoad = config.startLoad;
327
+ let systemBroken = false;
328
+
329
+ while (!systemBroken && currentLoad <= config.maxLoad) {
330
+ const testResult = await this.applyLoad(currentLoad, config.duration);
331
+
332
+ stressTest.degradationCurve.push({
333
+ load: currentLoad,
334
+ performance: testResult.performance,
335
+ stability: testResult.stability,
336
+ errors: testResult.errors
337
+ });
338
+
339
+ // Check if system is breaking
340
+ if (this.isSystemBreaking(testResult, config.breakingCriteria)) {
341
+ stressTest.breakingPoint = {
342
+ load: currentLoad,
343
+ performance: testResult.performance,
344
+ reason: this.identifyBreakingReason(testResult)
345
+ };
346
+ systemBroken = true;
347
+ }
348
+
349
+ currentLoad += config.loadIncrement;
350
+ }
351
+
352
+ stressTest.results = await this.analyzeStressTestResults(stressTest);
353
+
354
+ return stressTest;
355
+ }
356
+ }
357
+ ```
358
+
359
+ ### 4. Performance Validation Framework
360
+ ```javascript
361
+ // Comprehensive performance validation
362
+ class PerformanceValidator {
363
+ constructor() {
364
+ this.validators = {
365
+ sla: new SLAValidator(),
366
+ regression: new RegressionValidator(),
367
+ scalability: new ScalabilityValidator(),
368
+ reliability: new ReliabilityValidator(),
369
+ efficiency: new EfficiencyValidator()
370
+ };
371
+
372
+ this.thresholds = new ThresholdManager();
373
+ this.rules = new ValidationRuleEngine();
374
+ }
375
+
376
+ // Validate performance against defined criteria
377
+ async validatePerformance(results, criteria) {
378
+ const validation = {
379
+ overall: {
380
+ passed: true,
381
+ score: 0,
382
+ violations: []
383
+ },
384
+ detailed: new Map(),
385
+ recommendations: []
386
+ };
387
+
388
+ // Run all validators
389
+ const validationPromises = Object.entries(this.validators).map(
390
+ async ([type, validator]) => {
391
+ const result = await validator.validate(results, criteria[type]);
392
+ return [type, result];
393
+ }
394
+ );
395
+
396
+ const validationResults = await Promise.all(validationPromises);
397
+
398
+ // Aggregate validation results
399
+ for (const [type, result] of validationResults) {
400
+ validation.detailed.set(type, result);
401
+
402
+ if (!result.passed) {
403
+ validation.overall.passed = false;
404
+ validation.overall.violations.push(...result.violations);
405
+ }
406
+
407
+ validation.overall.score += result.score * (criteria[type]?.weight || 1);
408
+ }
409
+
410
+ // Normalize overall score
411
+ const totalWeight = Object.values(criteria).reduce((sum, c) => sum + (c.weight || 1), 0);
412
+ validation.overall.score /= totalWeight;
413
+
414
+ // Generate recommendations
415
+ validation.recommendations = await this.generateValidationRecommendations(validation);
416
+
417
+ return validation;
418
+ }
419
+
420
+ // SLA validation
421
+ async validateSLA(results, slaConfig) {
422
+ const slaValidation = {
423
+ passed: true,
424
+ violations: [],
425
+ score: 1.0,
426
+ metrics: {}
427
+ };
428
+
429
+ // Validate each SLA metric
430
+ for (const [metric, threshold] of Object.entries(slaConfig.thresholds)) {
431
+ const actualValue = this.extractMetricValue(results, metric);
432
+ const validation = this.validateThreshold(actualValue, threshold);
433
+
434
+ slaValidation.metrics[metric] = {
435
+ actual: actualValue,
436
+ threshold: threshold.value,
437
+ operator: threshold.operator,
438
+ passed: validation.passed,
439
+ deviation: validation.deviation
440
+ };
441
+
442
+ if (!validation.passed) {
443
+ slaValidation.passed = false;
444
+ slaValidation.violations.push({
445
+ metric,
446
+ actual: actualValue,
447
+ expected: threshold.value,
448
+ severity: threshold.severity || 'medium'
449
+ });
450
+
451
+ // Reduce score based on violation severity
452
+ const severityMultiplier = this.getSeverityMultiplier(threshold.severity);
453
+ slaValidation.score -= (validation.deviation * severityMultiplier);
454
+ }
455
+ }
456
+
457
+ slaValidation.score = Math.max(0, slaValidation.score);
458
+
459
+ return slaValidation;
460
+ }
461
+
462
+ // Scalability validation
463
+ async validateScalability(results, scalabilityConfig) {
464
+ const scalabilityValidation = {
465
+ passed: true,
466
+ violations: [],
467
+ score: 1.0,
468
+ analysis: {}
469
+ };
470
+
471
+ // Linear scalability analysis
472
+ if (scalabilityConfig.linear) {
473
+ const linearityAnalysis = this.analyzeLinearScalability(results);
474
+ scalabilityValidation.analysis.linearity = linearityAnalysis;
475
+
476
+ if (linearityAnalysis.coefficient < scalabilityConfig.linear.minCoefficient) {
477
+ scalabilityValidation.passed = false;
478
+ scalabilityValidation.violations.push({
479
+ type: 'linearity',
480
+ actual: linearityAnalysis.coefficient,
481
+ expected: scalabilityConfig.linear.minCoefficient
482
+ });
483
+ }
484
+ }
485
+
486
+ // Efficiency retention analysis
487
+ if (scalabilityConfig.efficiency) {
488
+ const efficiencyAnalysis = this.analyzeEfficiencyRetention(results);
489
+ scalabilityValidation.analysis.efficiency = efficiencyAnalysis;
490
+
491
+ if (efficiencyAnalysis.retention < scalabilityConfig.efficiency.minRetention) {
492
+ scalabilityValidation.passed = false;
493
+ scalabilityValidation.violations.push({
494
+ type: 'efficiency_retention',
495
+ actual: efficiencyAnalysis.retention,
496
+ expected: scalabilityConfig.efficiency.minRetention
497
+ });
498
+ }
499
+ }
500
+
501
+ return scalabilityValidation;
502
+ }
503
+ }
504
+ ```
505
+
506
+ ## MCP Integration Hooks
507
+
508
+ ### Benchmark Execution Integration
509
+ ```javascript
510
+ // Comprehensive MCP benchmark integration
511
+ const benchmarkIntegration = {
512
+ // Execute performance benchmarks
513
+ async runBenchmarks(config = {}) {
514
+ // Run benchmark suite
515
+ const benchmarkResult = await mcp.benchmark_run({
516
+ suite: config.suite || 'comprehensive'
517
+ });
518
+
519
+ // Collect detailed metrics during benchmarking
520
+ const metrics = await mcp.metrics_collect({
521
+ components: ['system', 'agents', 'coordination', 'memory']
522
+ });
523
+
524
+ // Analyze performance trends
525
+ const trends = await mcp.trend_analysis({
526
+ metric: 'performance',
527
+ period: '24h'
528
+ });
529
+
530
+ // Cost analysis
531
+ const costAnalysis = await mcp.cost_analysis({
532
+ timeframe: '24h'
533
+ });
534
+
535
+ return {
536
+ benchmark: benchmarkResult,
537
+ metrics,
538
+ trends,
539
+ costAnalysis,
540
+ timestamp: Date.now()
541
+ };
542
+ },
543
+
544
+ // Quality assessment
545
+ async assessQuality(criteria) {
546
+ const qualityAssessment = await mcp.quality_assess({
547
+ target: 'swarm-performance',
548
+ criteria: criteria || [
549
+ 'throughput',
550
+ 'latency',
551
+ 'reliability',
552
+ 'scalability',
553
+ 'efficiency'
554
+ ]
555
+ });
556
+
557
+ return qualityAssessment;
558
+ },
559
+
560
+ // Error pattern analysis
561
+ async analyzeErrorPatterns() {
562
+ // Collect system logs
563
+ const logs = await this.collectSystemLogs();
564
+
565
+ // Analyze error patterns
566
+ const errorAnalysis = await mcp.error_analysis({
567
+ logs: logs
568
+ });
569
+
570
+ return errorAnalysis;
571
+ }
572
+ };
573
+ ```
574
+
575
+ ## Operational Commands
576
+
577
+ ### Benchmarking Commands
578
+ ```bash
579
+ # Run comprehensive benchmark suite
580
+ npx claude-flow benchmark-run --suite comprehensive --duration 300
581
+
582
+ # Execute specific benchmark
583
+ npx claude-flow benchmark-run --suite throughput --iterations 10
584
+
585
+ # Compare with baseline
586
+ npx claude-flow benchmark-compare --current <results> --baseline <baseline>
587
+
588
+ # Quality assessment
589
+ npx claude-flow quality-assess --target swarm-performance --criteria throughput,latency
590
+
591
+ # Performance validation
592
+ npx claude-flow validate-performance --results <file> --criteria <file>
593
+ ```
594
+
595
+ ### Regression Detection Commands
596
+ ```bash
597
+ # Detect performance regressions
598
+ npx claude-flow detect-regression --current <results> --historical <data>
599
+
600
+ # Set up automated regression monitoring
601
+ npx claude-flow regression-monitor --enable --sensitivity 0.95
602
+
603
+ # Analyze error patterns
604
+ npx claude-flow error-analysis --logs <log-files>
605
+ ```
606
+
607
+ ## Integration Points
608
+
609
+ ### With Other Optimization Agents
610
+ - **Performance Monitor**: Provides continuous monitoring data for benchmarking
611
+ - **Load Balancer**: Validates load balancing effectiveness through benchmarks
612
+ - **Topology Optimizer**: Tests topology configurations for optimal performance
613
+
614
+ ### With CI/CD Pipeline
615
+ - **Automated Testing**: Integrates with CI/CD for continuous performance validation
616
+ - **Quality Gates**: Provides pass/fail criteria for deployment decisions
617
+ - **Regression Prevention**: Catches performance regressions before production
618
+
619
+ ## Performance Benchmarks
620
+
621
+ ### Standard Benchmark Suite
622
+ ```javascript
623
+ // Comprehensive benchmark definitions
624
+ const standardBenchmarks = {
625
+ // Throughput benchmarks
626
+ throughput: {
627
+ name: 'Throughput Benchmark',
628
+ metrics: ['requests_per_second', 'tasks_per_second', 'messages_per_second'],
629
+ duration: 300000, // 5 minutes
630
+ warmup: 30000, // 30 seconds
631
+ targets: {
632
+ requests_per_second: { min: 1000, optimal: 5000 },
633
+ tasks_per_second: { min: 100, optimal: 500 },
634
+ messages_per_second: { min: 10000, optimal: 50000 }
635
+ }
636
+ },
637
+
638
+ // Latency benchmarks
639
+ latency: {
640
+ name: 'Latency Benchmark',
641
+ metrics: ['p50', 'p90', 'p95', 'p99', 'max'],
642
+ duration: 300000,
643
+ targets: {
644
+ p50: { max: 100 }, // 100ms
645
+ p90: { max: 200 }, // 200ms
646
+ p95: { max: 500 }, // 500ms
647
+ p99: { max: 1000 }, // 1s
648
+ max: { max: 5000 } // 5s
649
+ }
650
+ },
651
+
652
+ // Scalability benchmarks
653
+ scalability: {
654
+ name: 'Scalability Benchmark',
655
+ metrics: ['linear_coefficient', 'efficiency_retention'],
656
+ load_points: [1, 2, 4, 8, 16, 32, 64],
657
+ targets: {
658
+ linear_coefficient: { min: 0.8 },
659
+ efficiency_retention: { min: 0.7 }
660
+ }
661
+ }
662
+ };
663
+ ```
664
+
665
+ This Benchmark Suite agent provides comprehensive automated performance testing, regression detection, and validation capabilities to ensure optimal swarm performance and prevent performance degradation.