agentic-flow 1.8.15 β†’ 1.9.0

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 (1221) hide show
  1. package/.claude/agents/analysis/code-analyzer.md +1 -1
  2. package/.claude/agents/core/coder.md +57 -2
  3. package/.claude/agents/core/planner.md +53 -1
  4. package/.claude/agents/core/researcher.md +60 -6
  5. package/.claude/agents/core/reviewer.md +55 -1
  6. package/.claude/agents/core/tester.md +54 -1
  7. package/.claude/agents/goal/code-goal-planner.md +446 -0
  8. package/.claude/agents/goal/goal-planner.md +120 -25
  9. package/.claude/agents/hive-mind/collective-intelligence-coordinator.md +130 -0
  10. package/.claude/agents/hive-mind/queen-coordinator.md +203 -0
  11. package/.claude/agents/hive-mind/scout-explorer.md +242 -0
  12. package/.claude/agents/hive-mind/swarm-memory-manager.md +193 -0
  13. package/.claude/agents/hive-mind/worker-specialist.md +217 -0
  14. package/.claude/agents/neural/safla-neural.md +74 -0
  15. package/.claude/agents/reasoning/README.md +452 -0
  16. package/.claude/agents/reasoning/adaptive-learner.md +415 -0
  17. package/.claude/agents/reasoning/context-synthesizer.md +532 -0
  18. package/.claude/agents/reasoning/experience-curator.md +562 -0
  19. package/.claude/agents/reasoning/goal-planner.md +73 -0
  20. package/.claude/agents/reasoning/memory-optimizer.md +579 -0
  21. package/.claude/agents/reasoning/pattern-matcher.md +591 -0
  22. package/.claude/agents/reasoning/reasoning-optimized.md +587 -0
  23. package/.claude/agents/swarm/hierarchical-coordinator.md +75 -4
  24. package/.claude/agents/templates/coordinator-swarm-init.md +19 -4
  25. package/.claude/commands/coordination/README.md +9 -0
  26. package/.claude/commands/coordination/agent-spawn.md +25 -0
  27. package/.claude/commands/coordination/init.md +44 -0
  28. package/.claude/commands/coordination/orchestrate.md +43 -0
  29. package/.claude/commands/coordination/spawn.md +45 -0
  30. package/.claude/commands/coordination/swarm-init.md +85 -0
  31. package/.claude/commands/coordination/task-orchestrate.md +25 -0
  32. package/.claude/commands/hooks/overview.md +84 -10
  33. package/.claude/commands/memory/README.md +9 -0
  34. package/.claude/commands/memory/memory-persist.md +25 -0
  35. package/.claude/commands/memory/memory-search.md +25 -0
  36. package/.claude/commands/memory/memory-usage.md +25 -0
  37. package/.claude/commands/memory/neural.md +47 -0
  38. package/.claude/commands/memory/usage.md +46 -0
  39. package/.claude/settings.json +21 -20
  40. package/.claude/settings.local.json +3 -7
  41. package/.claude/skills/agentdb-advanced/SKILL.md +550 -0
  42. package/.claude/skills/agentdb-learning/SKILL.md +545 -0
  43. package/.claude/skills/agentdb-memory-patterns/SKILL.md +339 -0
  44. package/.claude/skills/agentdb-optimization/SKILL.md +509 -0
  45. package/.claude/skills/agentdb-vector-search/SKILL.md +339 -0
  46. package/.claude/skills/flow-nexus-neural/SKILL.md +738 -0
  47. package/.claude/skills/flow-nexus-platform/SKILL.md +1157 -0
  48. package/.claude/skills/flow-nexus-swarm/SKILL.md +610 -0
  49. package/.claude/skills/github-code-review/SKILL.md +1140 -0
  50. package/.claude/skills/github-multi-repo/SKILL.md +874 -0
  51. package/.claude/skills/github-project-management/SKILL.md +1277 -0
  52. package/.claude/skills/github-release-management/SKILL.md +1081 -0
  53. package/.claude/skills/github-workflow-automation/SKILL.md +1065 -0
  54. package/.claude/skills/hive-mind-advanced/SKILL.md +712 -0
  55. package/.claude/skills/hooks-automation/SKILL.md +1201 -0
  56. package/.claude/skills/pair-programming/SKILL.md +1202 -0
  57. package/.claude/skills/performance-analysis/SKILL.md +563 -0
  58. package/.claude/skills/reasoningbank-agentdb/SKILL.md +446 -0
  59. package/.claude/skills/reasoningbank-intelligence/SKILL.md +201 -0
  60. package/.claude/skills/skill-builder/SKILL.md +910 -0
  61. package/.claude/skills/sparc-methodology/SKILL.md +1115 -0
  62. package/.claude/skills/stream-chain/SKILL.md +563 -0
  63. package/.claude/skills/swarm-advanced/SKILL.md +973 -0
  64. package/.claude/skills/swarm-orchestration/SKILL.md +179 -0
  65. package/.claude/skills/verification-quality/SKILL.md +649 -0
  66. package/.claude/statusline-command.sh +176 -0
  67. package/.claude-flow/metrics/performance.json +87 -0
  68. package/.claude-flow/metrics/system-metrics.json +2138 -0
  69. package/.claude-flow/metrics/task-metrics.json +10 -0
  70. package/.hive-mind/README.md +43 -0
  71. package/.hive-mind/config/queens.json +59 -0
  72. package/.hive-mind/config/workers.json +72 -0
  73. package/.hive-mind/config.json +111 -0
  74. package/.hive-mind/hive.db +0 -0
  75. package/.mcp.json +39 -0
  76. package/.swarm/memory.db +0 -0
  77. package/.swarm/memory.db-shm +0 -0
  78. package/.swarm/memory.db-wal +0 -0
  79. package/CHANGELOG.md +83 -976
  80. package/CLAUDE.md +354 -0
  81. package/README.md +15 -1
  82. package/agentdb.db +0 -0
  83. package/agentic-flow/.agentdb-instructions.md +66 -0
  84. package/agentic-flow/.claude/agents/analysis/code-analyzer.md +209 -0
  85. package/agentic-flow/.claude/agents/analysis/code-review/analyze-code-quality.md +180 -0
  86. package/agentic-flow/.claude/agents/architecture/system-design/arch-system-design.md +156 -0
  87. package/agentic-flow/.claude/agents/base-template-generator.md +42 -0
  88. package/agentic-flow/.claude/agents/consensus/byzantine-coordinator.md +63 -0
  89. package/agentic-flow/.claude/agents/consensus/crdt-synchronizer.md +997 -0
  90. package/agentic-flow/.claude/agents/consensus/gossip-coordinator.md +63 -0
  91. package/agentic-flow/.claude/agents/consensus/performance-benchmarker.md +851 -0
  92. package/agentic-flow/.claude/agents/consensus/quorum-manager.md +823 -0
  93. package/agentic-flow/.claude/agents/consensus/raft-manager.md +63 -0
  94. package/agentic-flow/.claude/agents/consensus/security-manager.md +622 -0
  95. package/agentic-flow/.claude/agents/core/coder.md +211 -0
  96. package/agentic-flow/.claude/agents/core/planner.md +116 -0
  97. package/agentic-flow/.claude/agents/core/researcher.md +136 -0
  98. package/agentic-flow/.claude/agents/core/reviewer.md +272 -0
  99. package/agentic-flow/.claude/agents/core/tester.md +266 -0
  100. package/agentic-flow/.claude/agents/data/ml/data-ml-model.md +193 -0
  101. package/agentic-flow/.claude/agents/development/backend/dev-backend-api.md +142 -0
  102. package/agentic-flow/.claude/agents/devops/ci-cd/ops-cicd-github.md +164 -0
  103. package/agentic-flow/.claude/agents/documentation/api-docs/docs-api-openapi.md +174 -0
  104. package/agentic-flow/.claude/agents/flow-nexus/app-store.md +88 -0
  105. package/agentic-flow/.claude/agents/flow-nexus/authentication.md +69 -0
  106. package/agentic-flow/.claude/agents/flow-nexus/challenges.md +81 -0
  107. package/agentic-flow/.claude/agents/flow-nexus/neural-network.md +88 -0
  108. package/agentic-flow/.claude/agents/flow-nexus/payments.md +83 -0
  109. package/agentic-flow/.claude/agents/flow-nexus/sandbox.md +76 -0
  110. package/agentic-flow/.claude/agents/flow-nexus/swarm.md +76 -0
  111. package/agentic-flow/.claude/agents/flow-nexus/user-tools.md +96 -0
  112. package/agentic-flow/.claude/agents/flow-nexus/workflow.md +84 -0
  113. package/agentic-flow/.claude/agents/github/code-review-swarm.md +538 -0
  114. package/agentic-flow/.claude/agents/github/github-modes.md +173 -0
  115. package/agentic-flow/.claude/agents/github/issue-tracker.md +319 -0
  116. package/agentic-flow/.claude/agents/github/multi-repo-swarm.md +553 -0
  117. package/agentic-flow/.claude/agents/github/pr-manager.md +191 -0
  118. package/agentic-flow/.claude/agents/github/project-board-sync.md +509 -0
  119. package/agentic-flow/.claude/agents/github/release-manager.md +367 -0
  120. package/agentic-flow/.claude/agents/github/release-swarm.md +583 -0
  121. package/agentic-flow/.claude/agents/github/repo-architect.md +398 -0
  122. package/agentic-flow/.claude/agents/github/swarm-issue.md +573 -0
  123. package/agentic-flow/.claude/agents/github/swarm-pr.md +428 -0
  124. package/agentic-flow/.claude/agents/github/sync-coordinator.md +452 -0
  125. package/agentic-flow/.claude/agents/github/workflow-automation.md +635 -0
  126. package/agentic-flow/.claude/agents/goal/agent.md +816 -0
  127. package/agentic-flow/.claude/agents/goal/goal-planner.md +73 -0
  128. package/agentic-flow/.claude/agents/optimization/benchmark-suite.md +665 -0
  129. package/agentic-flow/.claude/agents/optimization/load-balancer.md +431 -0
  130. package/agentic-flow/.claude/agents/optimization/performance-monitor.md +672 -0
  131. package/agentic-flow/.claude/agents/optimization/resource-allocator.md +674 -0
  132. package/agentic-flow/.claude/agents/optimization/topology-optimizer.md +808 -0
  133. package/agentic-flow/.claude/agents/sparc/architecture.md +472 -0
  134. package/agentic-flow/.claude/agents/sparc/pseudocode.md +318 -0
  135. package/agentic-flow/.claude/agents/sparc/refinement.md +525 -0
  136. package/agentic-flow/.claude/agents/sparc/specification.md +276 -0
  137. package/agentic-flow/.claude/agents/specialized/mobile/spec-mobile-react-native.md +226 -0
  138. package/agentic-flow/.claude/agents/swarm/adaptive-coordinator.md +396 -0
  139. package/agentic-flow/.claude/agents/swarm/hierarchical-coordinator.md +256 -0
  140. package/agentic-flow/.claude/agents/swarm/mesh-coordinator.md +392 -0
  141. package/agentic-flow/.claude/agents/templates/automation-smart-agent.md +205 -0
  142. package/agentic-flow/.claude/agents/templates/coordinator-swarm-init.md +90 -0
  143. package/agentic-flow/.claude/agents/templates/github-pr-manager.md +177 -0
  144. package/agentic-flow/.claude/agents/templates/implementer-sparc-coder.md +259 -0
  145. package/agentic-flow/.claude/agents/templates/memory-coordinator.md +187 -0
  146. package/agentic-flow/.claude/agents/templates/migration-plan.md +746 -0
  147. package/agentic-flow/.claude/agents/templates/orchestrator-task.md +139 -0
  148. package/agentic-flow/.claude/agents/templates/performance-analyzer.md +199 -0
  149. package/agentic-flow/.claude/agents/templates/sparc-coordinator.md +183 -0
  150. package/agentic-flow/.claude/agents/testing/unit/tdd-london-swarm.md +244 -0
  151. package/agentic-flow/.claude/agents/testing/validation/production-validator.md +395 -0
  152. package/agentic-flow/.claude/commands/agents/README.md +10 -0
  153. package/agentic-flow/.claude/commands/agents/agent-capabilities.md +21 -0
  154. package/agentic-flow/.claude/commands/agents/agent-coordination.md +28 -0
  155. package/agentic-flow/.claude/commands/agents/agent-spawning.md +28 -0
  156. package/agentic-flow/.claude/commands/agents/agent-types.md +26 -0
  157. package/agentic-flow/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +54 -0
  158. package/agentic-flow/.claude/commands/analysis/README.md +9 -0
  159. package/agentic-flow/.claude/commands/analysis/bottleneck-detect.md +162 -0
  160. package/agentic-flow/.claude/commands/analysis/performance-bottlenecks.md +59 -0
  161. package/agentic-flow/.claude/commands/analysis/performance-report.md +25 -0
  162. package/agentic-flow/.claude/commands/analysis/token-efficiency.md +45 -0
  163. package/agentic-flow/.claude/commands/analysis/token-usage.md +25 -0
  164. package/agentic-flow/.claude/commands/automation/README.md +9 -0
  165. package/agentic-flow/.claude/commands/automation/auto-agent.md +122 -0
  166. package/agentic-flow/.claude/commands/automation/self-healing.md +106 -0
  167. package/agentic-flow/.claude/commands/automation/session-memory.md +90 -0
  168. package/agentic-flow/.claude/commands/automation/smart-agents.md +73 -0
  169. package/agentic-flow/.claude/commands/automation/smart-spawn.md +25 -0
  170. package/agentic-flow/.claude/commands/automation/workflow-select.md +25 -0
  171. package/agentic-flow/.claude/commands/flow-nexus/app-store.md +124 -0
  172. package/agentic-flow/.claude/commands/flow-nexus/challenges.md +120 -0
  173. package/agentic-flow/.claude/commands/flow-nexus/login-registration.md +65 -0
  174. package/agentic-flow/.claude/commands/flow-nexus/neural-network.md +134 -0
  175. package/agentic-flow/.claude/commands/flow-nexus/payments.md +116 -0
  176. package/agentic-flow/.claude/commands/flow-nexus/sandbox.md +83 -0
  177. package/agentic-flow/.claude/commands/flow-nexus/swarm.md +87 -0
  178. package/agentic-flow/.claude/commands/flow-nexus/user-tools.md +152 -0
  179. package/agentic-flow/.claude/commands/flow-nexus/workflow.md +115 -0
  180. package/agentic-flow/.claude/commands/github/README.md +11 -0
  181. package/agentic-flow/.claude/commands/github/code-review-swarm.md +514 -0
  182. package/agentic-flow/.claude/commands/github/code-review.md +25 -0
  183. package/agentic-flow/.claude/commands/github/github-modes.md +147 -0
  184. package/agentic-flow/.claude/commands/github/github-swarm.md +121 -0
  185. package/agentic-flow/.claude/commands/github/issue-tracker.md +292 -0
  186. package/agentic-flow/.claude/commands/github/issue-triage.md +25 -0
  187. package/agentic-flow/.claude/commands/github/multi-repo-swarm.md +519 -0
  188. package/agentic-flow/.claude/commands/github/pr-enhance.md +26 -0
  189. package/agentic-flow/.claude/commands/github/pr-manager.md +170 -0
  190. package/agentic-flow/.claude/commands/github/project-board-sync.md +471 -0
  191. package/agentic-flow/.claude/commands/github/release-manager.md +338 -0
  192. package/agentic-flow/.claude/commands/github/release-swarm.md +544 -0
  193. package/agentic-flow/.claude/commands/github/repo-analyze.md +25 -0
  194. package/agentic-flow/.claude/commands/github/repo-architect.md +367 -0
  195. package/agentic-flow/.claude/commands/github/swarm-issue.md +482 -0
  196. package/agentic-flow/.claude/commands/github/swarm-pr.md +285 -0
  197. package/agentic-flow/.claude/commands/github/sync-coordinator.md +301 -0
  198. package/agentic-flow/.claude/commands/github/workflow-automation.md +442 -0
  199. package/agentic-flow/.claude/commands/hive-mind/README.md +17 -0
  200. package/agentic-flow/.claude/commands/hive-mind/hive-mind-consensus.md +8 -0
  201. package/agentic-flow/.claude/commands/hive-mind/hive-mind-init.md +18 -0
  202. package/agentic-flow/.claude/commands/hive-mind/hive-mind-memory.md +8 -0
  203. package/agentic-flow/.claude/commands/hive-mind/hive-mind-metrics.md +8 -0
  204. package/agentic-flow/.claude/commands/hive-mind/hive-mind-resume.md +8 -0
  205. package/agentic-flow/.claude/commands/hive-mind/hive-mind-sessions.md +8 -0
  206. package/agentic-flow/.claude/commands/hive-mind/hive-mind-spawn.md +21 -0
  207. package/agentic-flow/.claude/commands/hive-mind/hive-mind-status.md +8 -0
  208. package/agentic-flow/.claude/commands/hive-mind/hive-mind-stop.md +8 -0
  209. package/agentic-flow/.claude/commands/hive-mind/hive-mind-wizard.md +8 -0
  210. package/agentic-flow/.claude/commands/hive-mind/hive-mind.md +27 -0
  211. package/agentic-flow/.claude/commands/hooks/README.md +11 -0
  212. package/agentic-flow/.claude/commands/hooks/overview.md +58 -0
  213. package/agentic-flow/.claude/commands/hooks/post-edit.md +117 -0
  214. package/agentic-flow/.claude/commands/hooks/post-task.md +112 -0
  215. package/agentic-flow/.claude/commands/hooks/pre-edit.md +113 -0
  216. package/agentic-flow/.claude/commands/hooks/pre-task.md +111 -0
  217. package/agentic-flow/.claude/commands/hooks/session-end.md +118 -0
  218. package/agentic-flow/.claude/commands/hooks/setup.md +103 -0
  219. package/agentic-flow/.claude/commands/monitoring/README.md +9 -0
  220. package/agentic-flow/.claude/commands/monitoring/agent-metrics.md +25 -0
  221. package/agentic-flow/.claude/commands/monitoring/agents.md +44 -0
  222. package/agentic-flow/.claude/commands/monitoring/real-time-view.md +25 -0
  223. package/agentic-flow/.claude/commands/monitoring/status.md +46 -0
  224. package/agentic-flow/.claude/commands/monitoring/swarm-monitor.md +25 -0
  225. package/agentic-flow/.claude/commands/optimization/README.md +9 -0
  226. package/agentic-flow/.claude/commands/optimization/auto-topology.md +62 -0
  227. package/agentic-flow/.claude/commands/optimization/cache-manage.md +25 -0
  228. package/agentic-flow/.claude/commands/optimization/parallel-execute.md +25 -0
  229. package/agentic-flow/.claude/commands/optimization/parallel-execution.md +50 -0
  230. package/agentic-flow/.claude/commands/optimization/topology-optimize.md +25 -0
  231. package/agentic-flow/.claude/commands/pair/commands.md +546 -0
  232. package/agentic-flow/.claude/commands/pair/config.md +510 -0
  233. package/agentic-flow/.claude/commands/pair/examples.md +512 -0
  234. package/agentic-flow/.claude/commands/pair/modes.md +348 -0
  235. package/agentic-flow/.claude/commands/pair/session.md +407 -0
  236. package/agentic-flow/.claude/commands/pair/start.md +209 -0
  237. package/agentic-flow/.claude/commands/sparc/analyzer.md +52 -0
  238. package/agentic-flow/.claude/commands/sparc/architect.md +53 -0
  239. package/agentic-flow/.claude/commands/sparc/batch-executor.md +54 -0
  240. package/agentic-flow/.claude/commands/sparc/coder.md +54 -0
  241. package/agentic-flow/.claude/commands/sparc/debugger.md +54 -0
  242. package/agentic-flow/.claude/commands/sparc/designer.md +53 -0
  243. package/agentic-flow/.claude/commands/sparc/documenter.md +54 -0
  244. package/agentic-flow/.claude/commands/sparc/innovator.md +54 -0
  245. package/agentic-flow/.claude/commands/sparc/memory-manager.md +54 -0
  246. package/agentic-flow/.claude/commands/sparc/optimizer.md +54 -0
  247. package/agentic-flow/.claude/commands/sparc/orchestrator.md +132 -0
  248. package/agentic-flow/.claude/commands/sparc/researcher.md +54 -0
  249. package/agentic-flow/.claude/commands/sparc/reviewer.md +54 -0
  250. package/agentic-flow/.claude/commands/sparc/sparc-modes.md +174 -0
  251. package/agentic-flow/.claude/commands/sparc/swarm-coordinator.md +54 -0
  252. package/agentic-flow/.claude/commands/sparc/tdd.md +54 -0
  253. package/agentic-flow/.claude/commands/sparc/tester.md +54 -0
  254. package/agentic-flow/.claude/commands/sparc/workflow-manager.md +54 -0
  255. package/agentic-flow/.claude/commands/stream-chain/pipeline.md +121 -0
  256. package/agentic-flow/.claude/commands/stream-chain/run.md +70 -0
  257. package/agentic-flow/.claude/commands/swarm/README.md +15 -0
  258. package/agentic-flow/.claude/commands/swarm/analysis.md +95 -0
  259. package/agentic-flow/.claude/commands/swarm/development.md +96 -0
  260. package/agentic-flow/.claude/commands/swarm/examples.md +168 -0
  261. package/agentic-flow/.claude/commands/swarm/maintenance.md +102 -0
  262. package/agentic-flow/.claude/commands/swarm/optimization.md +117 -0
  263. package/agentic-flow/.claude/commands/swarm/research.md +136 -0
  264. package/agentic-flow/.claude/commands/swarm/swarm-analysis.md +8 -0
  265. package/agentic-flow/.claude/commands/swarm/swarm-background.md +8 -0
  266. package/agentic-flow/.claude/commands/swarm/swarm-init.md +19 -0
  267. package/agentic-flow/.claude/commands/swarm/swarm-modes.md +8 -0
  268. package/agentic-flow/.claude/commands/swarm/swarm-monitor.md +8 -0
  269. package/agentic-flow/.claude/commands/swarm/swarm-spawn.md +19 -0
  270. package/agentic-flow/.claude/commands/swarm/swarm-status.md +8 -0
  271. package/agentic-flow/.claude/commands/swarm/swarm-strategies.md +8 -0
  272. package/agentic-flow/.claude/commands/swarm/swarm.md +27 -0
  273. package/agentic-flow/.claude/commands/swarm/testing.md +131 -0
  274. package/agentic-flow/.claude/commands/training/README.md +9 -0
  275. package/agentic-flow/.claude/commands/training/model-update.md +25 -0
  276. package/agentic-flow/.claude/commands/training/neural-patterns.md +74 -0
  277. package/agentic-flow/.claude/commands/training/neural-train.md +25 -0
  278. package/agentic-flow/.claude/commands/training/pattern-learn.md +25 -0
  279. package/agentic-flow/.claude/commands/training/specialization.md +63 -0
  280. package/agentic-flow/.claude/commands/truth/start.md +143 -0
  281. package/agentic-flow/.claude/commands/verify/check.md +50 -0
  282. package/agentic-flow/.claude/commands/verify/start.md +128 -0
  283. package/agentic-flow/.claude/commands/workflows/README.md +9 -0
  284. package/agentic-flow/.claude/commands/workflows/development.md +78 -0
  285. package/agentic-flow/.claude/commands/workflows/research.md +63 -0
  286. package/agentic-flow/.claude/commands/workflows/workflow-create.md +25 -0
  287. package/agentic-flow/.claude/commands/workflows/workflow-execute.md +25 -0
  288. package/agentic-flow/.claude/commands/workflows/workflow-export.md +25 -0
  289. package/agentic-flow/.claude/helpers/checkpoint-manager.sh +251 -0
  290. package/agentic-flow/.claude/helpers/github-safe.js +106 -0
  291. package/agentic-flow/.claude/helpers/github-setup.sh +28 -0
  292. package/agentic-flow/.claude/helpers/quick-start.sh +19 -0
  293. package/agentic-flow/.claude/helpers/setup-mcp.sh +18 -0
  294. package/agentic-flow/.claude/helpers/standard-checkpoint-hooks.sh +179 -0
  295. package/agentic-flow/.claude/settings.json +114 -0
  296. package/agentic-flow/.claude/settings.local.json +14 -0
  297. package/agentic-flow/.claude/skills/skill-builder/.claude-flow/metrics/agent-metrics.json +1 -0
  298. package/agentic-flow/AGENT-BOOSTER-STATUS.md +292 -0
  299. package/agentic-flow/CHANGELOG-v1.3.0.md +120 -0
  300. package/agentic-flow/CHANGELOG.md +1023 -0
  301. package/agentic-flow/COMPLETION_REPORT_v1.7.1.md +335 -0
  302. package/agentic-flow/DOCKER-VERIFICATION.md +207 -0
  303. package/agentic-flow/IMPLEMENTATION_SUMMARY_v1.7.1.md +241 -0
  304. package/agentic-flow/NPX_AGENTDB_SETUP.md +175 -0
  305. package/agentic-flow/PUBLISH_GUIDE.md +438 -0
  306. package/agentic-flow/PUBLISH_SUMMARY_v1.7.1.md +198 -0
  307. package/agentic-flow/Python/AddTwoNumbers.py +2 -0
  308. package/agentic-flow/README.md +577 -0
  309. package/agentic-flow/RELEASE_NOTES_v1.7.0.md +297 -0
  310. package/agentic-flow/RELEASE_v1.7.1.md +327 -0
  311. package/agentic-flow/SUPABASE-INTEGRATION-COMPLETE.md +357 -0
  312. package/agentic-flow/TESTING_QUICK_START.md +223 -0
  313. package/agentic-flow/TOOL-EMULATION-INTEGRATION-ISSUE.md +669 -0
  314. package/agentic-flow/VALIDATION_v1.7.1.md +234 -0
  315. package/agentic-flow/add_two_numbers.py +2 -0
  316. package/agentic-flow/agentdb.db +0 -0
  317. package/agentic-flow/agentic-flow/.claude-flow/metrics/agent-metrics.json +1 -0
  318. package/agentic-flow/agentic-flow/.claude-flow/metrics/performance.json +87 -0
  319. package/agentic-flow/agentic-flow/.claude-flow/metrics/task-metrics.json +10 -0
  320. package/agentic-flow/app/app.py +0 -0
  321. package/agentic-flow/config/.mcp.json +22 -0
  322. package/agentic-flow/config/router.config.example.json +224 -0
  323. package/agentic-flow/config/router.config.json +224 -0
  324. package/agentic-flow/deployment/.claude-settings.json +14 -0
  325. package/agentic-flow/docker/claude-agent-sdk/docker/claude-agent-sdk/FASTMCP_SUMMARY.md +369 -0
  326. package/agentic-flow/docker/claude-agent-sdk/docker/claude-agent-sdk/docs/ARCHITECTURE.md +385 -0
  327. package/agentic-flow/docker/claude-agent-sdk/docker/claude-agent-sdk/docs/fastmcp-implementation.md +351 -0
  328. package/agentic-flow/docker/claude-agent-sdk/docker/claude-agent-sdk/docs/fastmcp-quick-start.md +358 -0
  329. package/agentic-flow/docker/claude-agent-sdk/docker/claude-agent-sdk/src/mcp/fastmcp/README.md +340 -0
  330. package/agentic-flow/docker/fastmcp-test.Dockerfile +24 -0
  331. package/agentic-flow/docker/federation-test/.claude-flow/metrics/agent-metrics.json +1 -0
  332. package/agentic-flow/docker/federation-test/.claude-flow/metrics/performance.json +87 -0
  333. package/agentic-flow/docker/federation-test/.claude-flow/metrics/task-metrics.json +10 -0
  334. package/agentic-flow/docker/federation-test/README.md +314 -0
  335. package/agentic-flow/docker/federation-test/run-test.sh +65 -0
  336. package/agentic-flow/docker/federation-test/standalone-agent.js +180 -0
  337. package/agentic-flow/docker/federation-test/standalone-hub.js +85 -0
  338. package/agentic-flow/docker/federation-test/test-published-hub.js +66 -0
  339. package/agentic-flow/docker/test-instance/.claude-flow/metrics/agent-metrics.json +1 -0
  340. package/agentic-flow/docker/test-instance/.claude-flow/metrics/performance.json +87 -0
  341. package/agentic-flow/docker/test-instance/.claude-flow/metrics/task-metrics.json +10 -0
  342. package/agentic-flow/docker/test-instance/.env.example +51 -0
  343. package/agentic-flow/docker/test-instance/COMPREHENSIVE_TEST_RESULTS.md +766 -0
  344. package/agentic-flow/docker/test-instance/DOCKER_VALIDATION_SUMMARY.md +417 -0
  345. package/agentic-flow/docker/test-instance/FIX_VALIDATION_REPORT.md +619 -0
  346. package/agentic-flow/docker/test-instance/INDEX.md +282 -0
  347. package/agentic-flow/docker/test-instance/QUICK_START.md +217 -0
  348. package/agentic-flow/docker/test-instance/README.md +266 -0
  349. package/agentic-flow/docker/test-instance/VALIDATION_REPORT.md +424 -0
  350. package/agentic-flow/docker/test-instance/test-model-config.md +69 -0
  351. package/agentic-flow/docker/test-instance/test-runner.sh +91 -0
  352. package/agentic-flow/docker/test-v1.1.10.dockerfile +12 -0
  353. package/agentic-flow/docker/test-validation.sh +37 -0
  354. package/agentic-flow/docker-test.sh +77 -0
  355. package/agentic-flow/docs/.claude-flow/metrics/agent-metrics.json +1 -0
  356. package/agentic-flow/docs/.claude-flow/metrics/performance.json +87 -0
  357. package/agentic-flow/docs/.claude-flow/metrics/task-metrics.json +10 -0
  358. package/agentic-flow/docs/CLAUDE.md +352 -0
  359. package/agentic-flow/docs/INDEX.md +279 -0
  360. package/agentic-flow/docs/LICENSE +21 -0
  361. package/agentic-flow/docs/architecture/EXECUTIVE_SUMMARY.md +310 -0
  362. package/agentic-flow/docs/architecture/IMPROVEMENT_PLAN.md +11 -0
  363. package/agentic-flow/docs/architecture/INTEGRATION-STATUS.md +290 -0
  364. package/agentic-flow/docs/architecture/MULTI_MODEL_ROUTER_PLAN.md +620 -0
  365. package/agentic-flow/docs/architecture/PACKAGE_STRUCTURE.md +199 -0
  366. package/agentic-flow/docs/architecture/QUIC-IMPLEMENTATION-SUMMARY.md +490 -0
  367. package/agentic-flow/docs/architecture/QUIC-SWARM-INTEGRATION.md +593 -0
  368. package/agentic-flow/docs/architecture/QUICK_WINS.md +333 -0
  369. package/agentic-flow/docs/architecture/README.md +15 -0
  370. package/agentic-flow/docs/architecture/RESEARCH_SUMMARY.md +652 -0
  371. package/agentic-flow/docs/guides/.claude-flow/metrics/agent-metrics.json +1 -0
  372. package/agentic-flow/docs/guides/.claude-flow/metrics/performance.json +9 -0
  373. package/agentic-flow/docs/guides/.claude-flow/metrics/task-metrics.json +10 -0
  374. package/agentic-flow/docs/guides/ADDING-MCP-SERVERS-CLI.md +515 -0
  375. package/agentic-flow/docs/guides/ADDING-MCP-SERVERS.md +642 -0
  376. package/agentic-flow/docs/guides/AGENT-BOOSTER.md +435 -0
  377. package/agentic-flow/docs/guides/ALTERNATIVE_LLM_MODELS.md +524 -0
  378. package/agentic-flow/docs/guides/CLAUDE-CODE-INTEGRATION.md +403 -0
  379. package/agentic-flow/docs/guides/DEPLOYMENT.md +906 -0
  380. package/agentic-flow/docs/guides/DOCKER_AGENT_USAGE.md +352 -0
  381. package/agentic-flow/docs/guides/IMPLEMENTATION_EXAMPLES.md +960 -0
  382. package/agentic-flow/docs/guides/MCP-TOOLS.md +1166 -0
  383. package/agentic-flow/docs/guides/MODEL-ID-MAPPING.md +193 -0
  384. package/agentic-flow/docs/guides/MULTI-MODEL-ROUTER.md +702 -0
  385. package/agentic-flow/docs/guides/NPM-PUBLISH.md +218 -0
  386. package/agentic-flow/docs/guides/ONNX-PROXY-IMPLEMENTATION.md +254 -0
  387. package/agentic-flow/docs/guides/ONNX_CLI_USAGE.md +344 -0
  388. package/agentic-flow/docs/guides/ONNX_OPTIMIZATION_GUIDE.md +665 -0
  389. package/agentic-flow/docs/guides/OPENROUTER_DEPLOYMENT.md +495 -0
  390. package/agentic-flow/docs/guides/PROXY-ARCHITECTURE-AND-EXTENSION.md +708 -0
  391. package/agentic-flow/docs/guides/QUIC-SWARM-QUICKSTART.md +543 -0
  392. package/agentic-flow/docs/guides/README.md +17 -0
  393. package/agentic-flow/docs/guides/REASONINGBANK.md +721 -0
  394. package/agentic-flow/docs/guides/STANDALONE_PROXY_GUIDE.md +437 -0
  395. package/agentic-flow/docs/guides/agent-sdk.md +234 -0
  396. package/agentic-flow/docs/reports/QUIC_PHASE1_COMPLETE.md +409 -0
  397. package/agentic-flow/docs/reports/QUIC_PHASE1_COMPLETION.md +323 -0
  398. package/agentic-flow/docs/reviews/quic-implementation-review.md +1076 -0
  399. package/agentic-flow/docs/router/.claude-flow/metrics/agent-metrics.json +1 -0
  400. package/agentic-flow/docs/router/.claude-flow/metrics/performance.json +9 -0
  401. package/agentic-flow/docs/router/.claude-flow/metrics/task-metrics.json +10 -0
  402. package/agentic-flow/examples/PHASE-2-INTEGRATION-GUIDE.md +380 -0
  403. package/agentic-flow/examples/PHASE-2-TEST-REPORT.md +325 -0
  404. package/agentic-flow/examples/REGRESSION-TEST-RESULTS.md +334 -0
  405. package/agentic-flow/examples/TOOL-EMULATION-ARCHITECTURE.md +473 -0
  406. package/agentic-flow/examples/VALIDATION-SUMMARY.md +323 -0
  407. package/agentic-flow/examples/agentdb-memory-patterns/.claude-flow/metrics/agent-metrics.json +1 -0
  408. package/agentic-flow/examples/agentdb-memory-patterns/.claude-flow/metrics/performance.json +87 -0
  409. package/agentic-flow/examples/agentdb-memory-patterns/.claude-flow/metrics/task-metrics.json +10 -0
  410. package/agentic-flow/examples/crispr-cas13-pipeline/.github/workflows/ci.yml +341 -0
  411. package/agentic-flow/examples/crispr-cas13-pipeline/CONTRIBUTING.md +388 -0
  412. package/agentic-flow/examples/crispr-cas13-pipeline/Cargo.lock +5323 -0
  413. package/agentic-flow/examples/crispr-cas13-pipeline/Cargo.toml +105 -0
  414. package/agentic-flow/examples/crispr-cas13-pipeline/DELIVERABLES.md +140 -0
  415. package/agentic-flow/examples/crispr-cas13-pipeline/LICENSE +32 -0
  416. package/agentic-flow/examples/crispr-cas13-pipeline/PROJECT_SUMMARY.md +515 -0
  417. package/agentic-flow/examples/crispr-cas13-pipeline/PUBLISHING_NOTES.md +171 -0
  418. package/agentic-flow/examples/crispr-cas13-pipeline/PUBLISH_CHECKLIST.md +216 -0
  419. package/agentic-flow/examples/crispr-cas13-pipeline/README.md +591 -0
  420. package/agentic-flow/examples/crispr-cas13-pipeline/TEST_SUITE_SUMMARY.md +318 -0
  421. package/agentic-flow/examples/crispr-cas13-pipeline/benches/alignment_benchmark.rs +207 -0
  422. package/agentic-flow/examples/crispr-cas13-pipeline/benches/api_benchmark.rs +346 -0
  423. package/agentic-flow/examples/crispr-cas13-pipeline/benches/comprehensive_benchmarks.rs +362 -0
  424. package/agentic-flow/examples/crispr-cas13-pipeline/benches/immune_analysis_benchmark.rs +369 -0
  425. package/agentic-flow/examples/crispr-cas13-pipeline/benches/offtarget_prediction_benchmark.rs +291 -0
  426. package/agentic-flow/examples/crispr-cas13-pipeline/crates/alignment-engine/Cargo.toml +23 -0
  427. package/agentic-flow/examples/crispr-cas13-pipeline/crates/alignment-engine/src/bwa.rs +255 -0
  428. package/agentic-flow/examples/crispr-cas13-pipeline/crates/alignment-engine/src/error.rs +34 -0
  429. package/agentic-flow/examples/crispr-cas13-pipeline/crates/alignment-engine/src/lib.rs +136 -0
  430. package/agentic-flow/examples/crispr-cas13-pipeline/crates/alignment-engine/src/quality.rs +287 -0
  431. package/agentic-flow/examples/crispr-cas13-pipeline/crates/alignment-engine/tests/alignment_test.rs +230 -0
  432. package/agentic-flow/examples/crispr-cas13-pipeline/crates/api-service/Cargo.toml +32 -0
  433. package/agentic-flow/examples/crispr-cas13-pipeline/crates/api-service/src/error.rs +38 -0
  434. package/agentic-flow/examples/crispr-cas13-pipeline/crates/api-service/src/main.rs +41 -0
  435. package/agentic-flow/examples/crispr-cas13-pipeline/crates/api-service/src/routes.rs +56 -0
  436. package/agentic-flow/examples/crispr-cas13-pipeline/crates/api-service/tests/api_test.rs +306 -0
  437. package/agentic-flow/examples/crispr-cas13-pipeline/crates/data-models/Cargo.toml +17 -0
  438. package/agentic-flow/examples/crispr-cas13-pipeline/crates/data-models/src/error.rs +31 -0
  439. package/agentic-flow/examples/crispr-cas13-pipeline/crates/data-models/src/expression.rs +313 -0
  440. package/agentic-flow/examples/crispr-cas13-pipeline/crates/data-models/src/lib.rs +27 -0
  441. package/agentic-flow/examples/crispr-cas13-pipeline/crates/data-models/src/metadata.rs +302 -0
  442. package/agentic-flow/examples/crispr-cas13-pipeline/crates/data-models/src/sequencing.rs +240 -0
  443. package/agentic-flow/examples/crispr-cas13-pipeline/crates/data-models/src/targets.rs +281 -0
  444. package/agentic-flow/examples/crispr-cas13-pipeline/crates/data-models/tests/models_test.rs +155 -0
  445. package/agentic-flow/examples/crispr-cas13-pipeline/crates/immune-analyzer/Cargo.toml +24 -0
  446. package/agentic-flow/examples/crispr-cas13-pipeline/crates/immune-analyzer/src/deseq.rs +265 -0
  447. package/agentic-flow/examples/crispr-cas13-pipeline/crates/immune-analyzer/src/error.rs +28 -0
  448. package/agentic-flow/examples/crispr-cas13-pipeline/crates/immune-analyzer/src/lib.rs +10 -0
  449. package/agentic-flow/examples/crispr-cas13-pipeline/crates/immune-analyzer/src/normalization.rs +173 -0
  450. package/agentic-flow/examples/crispr-cas13-pipeline/crates/immune-analyzer/src/pathways.rs +195 -0
  451. package/agentic-flow/examples/crispr-cas13-pipeline/crates/immune-analyzer/tests/analysis_test.rs +258 -0
  452. package/agentic-flow/examples/crispr-cas13-pipeline/crates/offtarget-predictor/Cargo.toml +26 -0
  453. package/agentic-flow/examples/crispr-cas13-pipeline/crates/offtarget-predictor/src/error.rs +34 -0
  454. package/agentic-flow/examples/crispr-cas13-pipeline/crates/offtarget-predictor/src/features.rs +272 -0
  455. package/agentic-flow/examples/crispr-cas13-pipeline/crates/offtarget-predictor/src/lib.rs +72 -0
  456. package/agentic-flow/examples/crispr-cas13-pipeline/crates/offtarget-predictor/src/ml_model.rs +264 -0
  457. package/agentic-flow/examples/crispr-cas13-pipeline/crates/offtarget-predictor/src/scoring.rs +292 -0
  458. package/agentic-flow/examples/crispr-cas13-pipeline/crates/offtarget-predictor/tests/prediction_test.rs +245 -0
  459. package/agentic-flow/examples/crispr-cas13-pipeline/crates/processing-orchestrator/Cargo.toml +26 -0
  460. package/agentic-flow/examples/crispr-cas13-pipeline/crates/processing-orchestrator/src/jobs.rs +27 -0
  461. package/agentic-flow/examples/crispr-cas13-pipeline/crates/processing-orchestrator/src/main.rs +35 -0
  462. package/agentic-flow/examples/crispr-cas13-pipeline/crates/processing-orchestrator/src/scheduler.rs +24 -0
  463. package/agentic-flow/examples/crispr-cas13-pipeline/crates/processing-orchestrator/src/workers.rs +17 -0
  464. package/agentic-flow/examples/crispr-cas13-pipeline/docs/ARCHITECTURAL_DECISIONS.md +429 -0
  465. package/agentic-flow/examples/crispr-cas13-pipeline/docs/ARCHITECTURE.md +2964 -0
  466. package/agentic-flow/examples/crispr-cas13-pipeline/docs/ARCHITECTURE_SUMMARY.md +286 -0
  467. package/agentic-flow/examples/crispr-cas13-pipeline/docs/BENCHMARKS.md +380 -0
  468. package/agentic-flow/examples/crispr-cas13-pipeline/docs/PSEUDOCODE.md +354 -0
  469. package/agentic-flow/examples/crispr-cas13-pipeline/docs/REVIEW_REPORT.md +543 -0
  470. package/agentic-flow/examples/crispr-cas13-pipeline/docs/RIGHTS_PRESERVING_PLATFORM.md +342 -0
  471. package/agentic-flow/examples/crispr-cas13-pipeline/docs/SECURITY_AUDIT.md +756 -0
  472. package/agentic-flow/examples/crispr-cas13-pipeline/docs/SPECIFICATION.md +719 -0
  473. package/agentic-flow/examples/crispr-cas13-pipeline/docs/TESTING_GUIDE.md +575 -0
  474. package/agentic-flow/examples/crispr-cas13-pipeline/docs/algorithms/README.md +121 -0
  475. package/agentic-flow/examples/crispr-cas13-pipeline/docs/algorithms/alignment-module.md +868 -0
  476. package/agentic-flow/examples/crispr-cas13-pipeline/docs/algorithms/expression-module.md +928 -0
  477. package/agentic-flow/examples/crispr-cas13-pipeline/docs/algorithms/offtarget-module.md +1030 -0
  478. package/agentic-flow/examples/crispr-cas13-pipeline/docs/algorithms/reporting-module.md +1135 -0
  479. package/agentic-flow/examples/crispr-cas13-pipeline/docs/api-spec.openapi.yaml +1258 -0
  480. package/agentic-flow/examples/crispr-cas13-pipeline/docs/architecture-diagrams/c4-component.md +240 -0
  481. package/agentic-flow/examples/crispr-cas13-pipeline/docs/architecture-diagrams/c4-container.md +223 -0
  482. package/agentic-flow/examples/crispr-cas13-pipeline/docs/architecture-diagrams/c4-context.md +86 -0
  483. package/agentic-flow/examples/crispr-cas13-pipeline/docs/architecture-diagrams/sequence-diagrams.md +499 -0
  484. package/agentic-flow/examples/crispr-cas13-pipeline/docs/data-layer/schema.sql +363 -0
  485. package/agentic-flow/examples/crispr-cas13-pipeline/docs/data-models.yaml +1639 -0
  486. package/agentic-flow/examples/crispr-cas13-pipeline/docs/database-schemas.sql +731 -0
  487. package/agentic-flow/examples/crispr-cas13-pipeline/docs/deployment/alignment-service.yaml +171 -0
  488. package/agentic-flow/examples/crispr-cas13-pipeline/docs/deployment/api-gateway.yaml +253 -0
  489. package/agentic-flow/examples/crispr-cas13-pipeline/docs/deployment/namespace.yaml +26 -0
  490. package/agentic-flow/examples/crispr-cas13-pipeline/docs/deployment/postgresql.yaml +119 -0
  491. package/agentic-flow/examples/crispr-cas13-pipeline/docs/docker/alignment-service/requirements.txt +18 -0
  492. package/agentic-flow/examples/crispr-cas13-pipeline/docs/docker/diff-expr-service/requirements.txt +19 -0
  493. package/agentic-flow/examples/crispr-cas13-pipeline/docs/docker/off-target-service/requirements.txt +27 -0
  494. package/agentic-flow/examples/crispr-cas13-pipeline/docs/flowcharts/README.md +130 -0
  495. package/agentic-flow/examples/crispr-cas13-pipeline/docs/flowcharts/alignment-flowchart.md +221 -0
  496. package/agentic-flow/examples/crispr-cas13-pipeline/docs/flowcharts/expression-flowchart.md +426 -0
  497. package/agentic-flow/examples/crispr-cas13-pipeline/docs/flowcharts/offtarget-flowchart.md +317 -0
  498. package/agentic-flow/examples/crispr-cas13-pipeline/docs/flowcharts/reporting-flowchart.md +502 -0
  499. package/agentic-flow/examples/crispr-cas13-pipeline/docs/mongodb-collections.json +759 -0
  500. package/agentic-flow/examples/crispr-cas13-pipeline/docs/monitoring/alerts.yml +291 -0
  501. package/agentic-flow/examples/crispr-cas13-pipeline/docs/monitoring/grafana-dashboard-system-overview.json +236 -0
  502. package/agentic-flow/examples/crispr-cas13-pipeline/docs/monitoring/prometheus.yml +213 -0
  503. package/agentic-flow/examples/crispr-cas13-pipeline/docs/security/oauth2-authentication.md +478 -0
  504. package/agentic-flow/examples/crispr-cas13-pipeline/src/api/gateway.rs +257 -0
  505. package/agentic-flow/examples/crispr-cas13-pipeline/src/api/mod.rs +1 -0
  506. package/agentic-flow/examples/crispr-cas13-pipeline/src/audit/logger.rs +345 -0
  507. package/agentic-flow/examples/crispr-cas13-pipeline/src/audit/mod.rs +1 -0
  508. package/agentic-flow/examples/crispr-cas13-pipeline/src/governance/mod.rs +1 -0
  509. package/agentic-flow/examples/crispr-cas13-pipeline/src/governance/policy.rs +339 -0
  510. package/agentic-flow/examples/crispr-cas13-pipeline/src/lib.rs +227 -0
  511. package/agentic-flow/examples/crispr-cas13-pipeline/src/main.rs +114 -0
  512. package/agentic-flow/examples/crispr-cas13-pipeline/src/privacy/differential.rs +303 -0
  513. package/agentic-flow/examples/crispr-cas13-pipeline/src/privacy/mod.rs +1 -0
  514. package/agentic-flow/examples/crispr-cas13-pipeline/src/services/grpc.rs +358 -0
  515. package/agentic-flow/examples/crispr-cas13-pipeline/src/services/mod.rs +1 -0
  516. package/agentic-flow/examples/crispr-cas13-pipeline/tests/README.md +336 -0
  517. package/agentic-flow/examples/crispr-cas13-pipeline/tests/TESTING_SUMMARY.md +386 -0
  518. package/agentic-flow/examples/crispr-cas13-pipeline/tests/TEST_COVERAGE_REPORT.md +347 -0
  519. package/agentic-flow/examples/crispr-cas13-pipeline/tests/fixtures/mod.rs +400 -0
  520. package/agentic-flow/examples/crispr-cas13-pipeline/tests/integration/enhanced_integration_tests.rs +432 -0
  521. package/agentic-flow/examples/crispr-cas13-pipeline/tests/integration_test.rs +340 -0
  522. package/agentic-flow/examples/crispr-cas13-pipeline/tests/load_testing_k6.js +269 -0
  523. package/agentic-flow/examples/crispr-cas13-pipeline/tests/load_testing_locust.py +290 -0
  524. package/agentic-flow/examples/crispr-cas13-pipeline/tests/property/enhanced_property_tests.rs +479 -0
  525. package/agentic-flow/examples/crispr-cas13-pipeline/tests/property_tests.rs +371 -0
  526. package/agentic-flow/examples/crispr-cas13-pipeline/tests/rights_preserving_test.rs +251 -0
  527. package/agentic-flow/examples/crispr-cas13-pipeline/tests/unit/alignment_tests.rs +307 -0
  528. package/agentic-flow/examples/crispr-cas13-pipeline/tests/unit/api_service_tests.rs +376 -0
  529. package/agentic-flow/examples/crispr-cas13-pipeline/tests/unit/data_models_tests.rs +283 -0
  530. package/agentic-flow/examples/crispr-cas13-pipeline/tests/unit/immune_analyzer_tests.rs +374 -0
  531. package/agentic-flow/examples/crispr-cas13-pipeline/tests/unit/offtarget_tests.rs +334 -0
  532. package/agentic-flow/examples/crispr-cas13-pipeline/tests/unit/orchestrator_tests.rs +466 -0
  533. package/agentic-flow/examples/federated-agentdb/README.md +494 -0
  534. package/agentic-flow/memory-backup.json +48 -0
  535. package/agentic-flow/package-lock.json +3974 -0
  536. package/agentic-flow/package.json +182 -0
  537. package/agentic-flow/patches/agentdb-fix-imports.patch +13 -0
  538. package/agentic-flow/path/to/file.py +2 -0
  539. package/agentic-flow/path/to/your/script.py +2 -0
  540. package/agentic-flow/python/calculation.py +1 -0
  541. package/agentic-flow/python/operation.py +1 -0
  542. package/agentic-flow/run-agentdb.sh +8 -0
  543. package/agentic-flow/supabase/.temp/cli-latest +1 -0
  544. package/agentic-flow/supabase/.temp/gotrue-version +1 -0
  545. package/agentic-flow/supabase/.temp/pooler-url +1 -0
  546. package/agentic-flow/supabase/.temp/postgres-version +1 -0
  547. package/agentic-flow/supabase/.temp/project-ref +1 -0
  548. package/agentic-flow/supabase/.temp/rest-version +1 -0
  549. package/agentic-flow/supabase/.temp/storage-migration +1 -0
  550. package/agentic-flow/supabase/.temp/storage-version +1 -0
  551. package/agentic-flow/test-tool-commands.sh +26 -0
  552. package/agentic-llm/DEPLOYMENT_STATUS_UPDATE.md +30 -0
  553. package/agentic-llm/MONITOR_SUMMARY.md +116 -0
  554. package/agentic-llm/benchmarks/DEPLOYMENT_SUMMARY.md +106 -0
  555. package/agentic-llm/benchmarks/benchmark.py +419 -0
  556. package/agentic-llm/benchmarks/comparison/optimization_comparison.json +57 -0
  557. package/agentic-llm/benchmarks/finetune_comparison.py +252 -0
  558. package/agentic-llm/benchmarks/results/.gitkeep +2 -0
  559. package/agentic-llm/benchmarks/results/README.md +59 -0
  560. package/agentic-llm/benchmarks/results/agent-booster-results.json +116 -0
  561. package/agentic-llm/benchmarks/results/morph-baseline-results.json +168 -0
  562. package/agentic-llm/benchmarks/run_comparison.py +246 -0
  563. package/agentic-llm/check-training.sh +27 -0
  564. package/agentic-llm/claude_sdk/integration.py +335 -0
  565. package/agentic-llm/cloudrun/cloud_runner.py +390 -0
  566. package/agentic-llm/cloudrun/deploy.sh +83 -0
  567. package/agentic-llm/cloudrun/entrypoint.sh +10 -0
  568. package/agentic-llm/cloudrun/health_server.py +114 -0
  569. package/agentic-llm/cloudrun/setup-secrets.sh +26 -0
  570. package/agentic-llm/cloudrun/upload_to_huggingface.py +277 -0
  571. package/agentic-llm/configs/training_config.json +71 -0
  572. package/agentic-llm/deployment/DEPLOYMENT_INSTRUCTIONS.md +93 -0
  573. package/agentic-llm/deployment/fly.toml +52 -0
  574. package/agentic-llm/docs/BENCHMARK_OPTIMIZATION_GUIDE.md +435 -0
  575. package/agentic-llm/docs/CLOUD_RUN_DEPLOYMENT.md +368 -0
  576. package/agentic-llm/docs/DEPLOYMENT_GUIDE.md +475 -0
  577. package/agentic-llm/docs/DEPLOYMENT_READY.txt +98 -0
  578. package/agentic-llm/docs/DEPLOYMENT_STATUS.md +389 -0
  579. package/agentic-llm/docs/DEPLOYMENT_SUMMARY.md +358 -0
  580. package/agentic-llm/docs/DEPLOY_STATUS.md +69 -0
  581. package/agentic-llm/docs/FINETUNING_GUIDE.md +483 -0
  582. package/agentic-llm/docs/INDEX.md +43 -0
  583. package/agentic-llm/docs/OPTIMIZATION_RESULTS.md +375 -0
  584. package/agentic-llm/docs/PHI4_FINETUNING_RESEARCH.md +1352 -0
  585. package/agentic-llm/docs/QUICKSTART.md +124 -0
  586. package/agentic-llm/docs/README.md +389 -0
  587. package/agentic-llm/docs/TRAINING_MONITOR.md +77 -0
  588. package/agentic-llm/docs/USAGE_GUIDE.md +499 -0
  589. package/agentic-llm/monitor-loop.sh +52 -0
  590. package/agentic-llm/monitor-training.sh +56 -0
  591. package/agentic-llm/quantization/quantize.py +255 -0
  592. package/agentic-llm/requirements.txt +43 -0
  593. package/agentic-llm/scripts/deploy.sh +120 -0
  594. package/agentic-llm/scripts/run_benchmarks.sh +53 -0
  595. package/agentic-llm/scripts/run_finetuning.sh +90 -0
  596. package/agentic-llm/scripts/test_local.sh +77 -0
  597. package/agentic-llm/training/data/mcp_tools_dataset.json +140 -0
  598. package/agentic-llm/training/finetune_mcp.py +306 -0
  599. package/agentic-llm/training/mcp_dataset.py +395 -0
  600. package/agentic-llm/training/train.py +347 -0
  601. package/agentic-llm/validation/data/mcp_validation_set.json +37 -0
  602. package/agentic-llm/validation/mcp_validator.py +267 -0
  603. package/agentic-llm/validation/validator.py +319 -0
  604. package/bench/.claude-flow/metrics/agent-metrics.json +1 -0
  605. package/bench/.claude-flow/metrics/performance.json +9 -0
  606. package/bench/.claude-flow/metrics/task-metrics.json +10 -0
  607. package/bench/BENCHMARK-GUIDE.md +506 -0
  608. package/bench/BENCHMARK-RESULTS-TEMPLATE.md +253 -0
  609. package/bench/COMPLETION-SUMMARY.md +409 -0
  610. package/bench/README.md +217 -0
  611. package/bench/agents/baseline-agent.js +69 -0
  612. package/bench/agents/baseline-agent.ts +78 -0
  613. package/bench/agents/reasoningbank-agent.js +141 -0
  614. package/bench/agents/reasoningbank-agent.ts +173 -0
  615. package/bench/benchmark.js +244 -0
  616. package/bench/benchmark.ts +309 -0
  617. package/bench/config.json +79 -0
  618. package/bench/lib/metrics.js +163 -0
  619. package/bench/lib/metrics.ts +216 -0
  620. package/bench/lib/report-generator.js +252 -0
  621. package/bench/lib/report-generator.ts +266 -0
  622. package/bench/lib/types.js +4 -0
  623. package/bench/lib/types.ts +117 -0
  624. package/bench/package.json +36 -0
  625. package/bench/run-benchmark.sh +67 -0
  626. package/bench/scenarios/api-design-tasks.js +175 -0
  627. package/bench/scenarios/api-design-tasks.ts +199 -0
  628. package/bench/scenarios/coding-tasks.js +199 -0
  629. package/bench/scenarios/coding-tasks.ts +223 -0
  630. package/bench/scenarios/debugging-tasks.js +216 -0
  631. package/bench/scenarios/debugging-tasks.ts +234 -0
  632. package/bench/scenarios/problem-solving-tasks.js +172 -0
  633. package/bench/scenarios/problem-solving-tasks.ts +196 -0
  634. package/bench/tsconfig.json +26 -0
  635. package/benchmarks/quic-transport.bench.ts +584 -0
  636. package/claude-flow +34 -0
  637. package/crates/agentic-flow-quic/.claude-flow/metrics/agent-metrics.json +1 -0
  638. package/crates/agentic-flow-quic/.claude-flow/metrics/performance.json +87 -0
  639. package/crates/agentic-flow-quic/.claude-flow/metrics/task-metrics.json +10 -0
  640. package/crates/agentic-flow-quic/Cargo.toml +66 -0
  641. package/crates/agentic-flow-quic/IMPLEMENTATION.md +299 -0
  642. package/crates/agentic-flow-quic/README.md +75 -0
  643. package/crates/agentic-flow-quic/benches/quic_bench.rs +229 -0
  644. package/crates/agentic-flow-quic/build.rs +23 -0
  645. package/crates/agentic-flow-quic/src/client.rs +242 -0
  646. package/crates/agentic-flow-quic/src/error.rs +100 -0
  647. package/crates/agentic-flow-quic/src/lib.rs +76 -0
  648. package/crates/agentic-flow-quic/src/server.rs +213 -0
  649. package/crates/agentic-flow-quic/src/types.rs +164 -0
  650. package/crates/agentic-flow-quic/src/wasm.rs +143 -0
  651. package/crates/agentic-flow-quic/src/wasm_stub.rs +61 -0
  652. package/crates/agentic-flow-quic/tests/integration_test.rs +254 -0
  653. package/crates/agentic-flow-quic/wasm-pack-build.sh +17 -0
  654. package/crates/sqlite-vector-core/.claude-flow/metrics/agent-metrics.json +1 -0
  655. package/crates/sqlite-vector-core/.claude-flow/metrics/performance.json +87 -0
  656. package/crates/sqlite-vector-core/.claude-flow/metrics/task-metrics.json +10 -0
  657. package/crates/sqlite-vector-core/Cargo.lock +942 -0
  658. package/crates/sqlite-vector-wasm/.claude-flow/metrics/agent-metrics.json +1 -0
  659. package/crates/sqlite-vector-wasm/.claude-flow/metrics/performance.json +87 -0
  660. package/crates/sqlite-vector-wasm/.claude-flow/metrics/task-metrics.json +10 -0
  661. package/crates/sqlite-vector-wasm/Cargo.lock +499 -0
  662. package/docs/.claude-flow/metrics/performance.json +3 -3
  663. package/docs/.claude-flow/metrics/task-metrics.json +3 -3
  664. package/docs/README.md +85 -0
  665. package/docs/REORGANIZATION_PLAN.md +102 -0
  666. package/docs/REORGANIZATION_SUMMARY.md +183 -0
  667. package/docs/agent-integration-guide.md +483 -0
  668. package/docs/api/mcp-tools/mcp-documentation-review.md +834 -0
  669. package/docs/api/mcp-tools/mcp-tools-architecture.md +1082 -0
  670. package/docs/architecture/FEDERATED-AGENTDB-EPHEMERAL-AGENTS.md +680 -0
  671. package/docs/architecture/FEDERATION-CLI-VALIDATION-REPORT.md +491 -0
  672. package/docs/features/README.md +87 -0
  673. package/docs/features/agent-booster/00-INDEX.md +230 -0
  674. package/docs/features/agent-booster/00-OVERVIEW.md +454 -0
  675. package/docs/features/agent-booster/01-ARCHITECTURE.md +699 -0
  676. package/docs/features/agent-booster/02-INTEGRATION.md +771 -0
  677. package/docs/features/agent-booster/03-BENCHMARKS.md +616 -0
  678. package/docs/features/agent-booster/04-NPM-SDK.md +673 -0
  679. package/docs/features/agent-booster/GITHUB-ISSUE.md +523 -0
  680. package/docs/features/agent-booster/README.md +44 -0
  681. package/docs/features/agentdb/AGENTDB-INTEGRATION-COMPLETE.md +590 -0
  682. package/docs/features/agentdb/AGENTDB-LEARNING-SYSTEMS-REPORT.md +783 -0
  683. package/docs/features/agentdb/AGENTDB-MCP-SECURITY-AUDIT.md +877 -0
  684. package/docs/features/agentdb/AGENTDB_INTEGRATION_PLAN.md +776 -0
  685. package/docs/features/agentdb/CAUSAL_RECALL_SEARCH_IMPLEMENTATION.md +141 -0
  686. package/docs/features/agentdb/CLI_GUIDE.md +826 -0
  687. package/docs/features/agentdb/CORE_TOOLS_6-10_IMPLEMENTATION.md +376 -0
  688. package/docs/features/agentdb/LEARNING_TOOLS_6-10.md +474 -0
  689. package/docs/features/agentdb/MCP_TOOLS_IMPLEMENTATION.md +373 -0
  690. package/docs/features/agentdb/README.md +86 -0
  691. package/docs/features/agentdb/TEST_SUITE_SUMMARY.md +222 -0
  692. package/docs/features/agentdb/VERSION_1.3.0_RELEASE.md +199 -0
  693. package/docs/features/agentdb/WASM-VECTOR-IMPLEMENTATION.md +422 -0
  694. package/docs/features/agentdb/agentdb-code-quality-analysis.md +1050 -0
  695. package/docs/features/agentdb/agentdb-tools-verification.md +498 -0
  696. package/docs/features/federation/FEDERATION-CLI-INTEGRATION.md +494 -0
  697. package/docs/features/federation/FEDERATION-IMPLEMENTATION-SUMMARY.md +546 -0
  698. package/docs/features/federation/FEDERATION-TEST-REPORT.md +504 -0
  699. package/docs/features/federation/README.md +35 -0
  700. package/docs/features/quic/BUILD_INSTRUCTIONS.md +220 -0
  701. package/docs/features/quic/FINAL-VALIDATION.md +336 -0
  702. package/docs/features/quic/IMPLEMENTATION-COMPLETE-SUMMARY.md +349 -0
  703. package/docs/features/quic/IMPLEMENTATION_STATUS.md +234 -0
  704. package/docs/features/quic/PERFORMANCE-VALIDATION.md +282 -0
  705. package/docs/features/quic/QUIC-INTEGRATION-SUMMARY.md +545 -0
  706. package/docs/features/quic/QUIC-INTEGRATION.md +502 -0
  707. package/docs/features/quic/QUIC-README.md +226 -0
  708. package/docs/features/quic/QUIC-STATUS-OLD.md +513 -0
  709. package/docs/features/quic/QUIC-STATUS.md +451 -0
  710. package/docs/features/quic/QUIC-VALIDATION-REPORT.md +370 -0
  711. package/docs/features/quic/QUIC_FINAL_STATUS.md +399 -0
  712. package/docs/features/quic/QUIC_IMPLEMENTATION_SUMMARY.md +607 -0
  713. package/docs/features/quic/README-CONDENSED.md +447 -0
  714. package/docs/features/quic/README.md +79 -0
  715. package/docs/features/quic/README_QUIC_PHASE1.md +117 -0
  716. package/docs/features/quic/WASM-INTEGRATION-COMPLETE.md +382 -0
  717. package/docs/features/quic/quic-research.md +1415 -0
  718. package/docs/features/quic/quic-tutorial.md +485 -0
  719. package/docs/features/reasoningbank/MEMORY_VALIDATION_REPORT.md +417 -0
  720. package/docs/features/reasoningbank/README.md +64 -0
  721. package/docs/features/reasoningbank/REASONING-AGENTS.md +482 -0
  722. package/docs/features/reasoningbank/REASONINGBANK-BENCHMARK-RESULTS.md +166 -0
  723. package/docs/features/reasoningbank/REASONINGBANK-BENCHMARK.md +396 -0
  724. package/docs/features/reasoningbank/REASONINGBANK-CLI-INTEGRATION.md +455 -0
  725. package/docs/features/reasoningbank/REASONINGBANK-DEMO.md +419 -0
  726. package/docs/features/reasoningbank/REASONINGBANK-VALIDATION.md +532 -0
  727. package/docs/features/reasoningbank/REASONINGBANK_ARCHITECTURE.md +663 -0
  728. package/docs/features/reasoningbank/REASONINGBANK_BACKENDS.md +375 -0
  729. package/docs/features/reasoningbank/REASONINGBANK_FIXES.md +455 -0
  730. package/docs/features/reasoningbank/REASONINGBANK_IMPLEMENTATION_STATUS.md +478 -0
  731. package/docs/features/reasoningbank/REASONINGBANK_INTEGRATION_PLAN.md +1059 -0
  732. package/docs/features/reasoningbank/REASONINGBANK_INVESTIGATION.md +380 -0
  733. package/docs/features/router/README.md +38 -0
  734. package/docs/features/router/ROUTER_CONFIG_REFERENCE.md +577 -0
  735. package/docs/features/router/ROUTER_USER_GUIDE.md +865 -0
  736. package/docs/features/router/TOP20_MODELS_MATRIX.md +80 -0
  737. package/docs/guides/MCP-AUTHENTICATION.md +2017 -0
  738. package/docs/guides/MCP-QUICKSTART.md +521 -0
  739. package/docs/guides/MCP-TOOLS.md +1050 -850
  740. package/docs/guides/MCP-TROUBLESHOOTING.md +1602 -0
  741. package/docs/guides/NPM_STATS_GUIDE.md +407 -0
  742. package/docs/parallel-execution-implementation.md +525 -0
  743. package/docs/plans/.claude-flow/metrics/agent-metrics.json +1 -0
  744. package/docs/plans/.claude-flow/metrics/performance.json +87 -0
  745. package/docs/plans/.claude-flow/metrics/task-metrics.json +10 -0
  746. package/docs/releases/archive/GITHUB-ISSUE-ADDENDUM-v1.4.6.md +1529 -0
  747. package/docs/releases/archive/GITHUB-ISSUE-BUILD-FIX.md +756 -0
  748. package/docs/releases/archive/GITHUB-ISSUE-REASONINGBANK-BENCHMARK.md +643 -0
  749. package/docs/releases/archive/GITHUB-ISSUE-v1.4.6.md +1453 -0
  750. package/docs/releases/archive/GITHUB-ISSUE-v1.5.0.md +468 -0
  751. package/docs/releases/archive/HOTFIX-v1.2.1.md +315 -0
  752. package/docs/releases/archive/INTEGRATION-COMPLETE.md +291 -0
  753. package/docs/releases/archive/MIGRATION-STATUS.md +118 -0
  754. package/docs/releases/archive/MIGRATION_v1.7.0.md +299 -0
  755. package/docs/releases/archive/NPM-PUBLISH-GUIDE-v1.2.0.md +440 -0
  756. package/docs/releases/archive/PUBLICATION_REPORT_v1.5.11.md +421 -0
  757. package/docs/releases/archive/PUBLISH-COMPLETE-v1.2.0.md +308 -0
  758. package/docs/releases/archive/README.md +82 -0
  759. package/docs/releases/archive/RELEASE-v1.2.0.md +339 -0
  760. package/docs/releases/archive/VALIDATION_REPORT_v1.7.0.md +418 -0
  761. package/docs/releases/archive/ZERO-BUILD-MIGRATION.md +227 -0
  762. package/docs/releases/archive/github-issue-agentdb-integration.md +379 -0
  763. package/docs/releases/archive/v1.4.6-reasoningbank-release.md +541 -0
  764. package/docs/releases/archive/v1.4.7-bugfix.md +212 -0
  765. package/docs/releases/archive/v1.5.14-QUIC-TRANSPORT.md +201 -0
  766. package/docs/releases/archive/v1.5.9-DOCKER-VERIFICATION.md +263 -0
  767. package/docs/releases/archive/v1.5.9-RELEASE-SUMMARY.md +222 -0
  768. package/docs/swarm-optimization-report.md +626 -0
  769. package/index.html +15 -0
  770. package/memory/agents/README.md +31 -0
  771. package/memory/claude-flow@alpha-data.json +5 -0
  772. package/memory/memory-store.json +69 -0
  773. package/memory/sessions/README.md +32 -0
  774. package/package.json +44 -169
  775. package/src/App.css +5 -0
  776. package/src/App.tsx +15 -0
  777. package/src/components/AgentTypes.tsx +122 -0
  778. package/src/components/CoreComponents.tsx +131 -0
  779. package/src/components/Features.tsx +102 -0
  780. package/src/components/Footer.tsx +159 -0
  781. package/src/components/Hero.tsx +87 -0
  782. package/src/components/PerformanceMetrics.tsx +125 -0
  783. package/src/components/QuickStart.tsx +178 -0
  784. package/src/index.css +87 -0
  785. package/src/main.tsx +10 -0
  786. package/src/pages/LandingPage.tsx +23 -0
  787. package/src/transport/quic.ts +258 -0
  788. package/tailwind.config.ts +79 -0
  789. package/vite.config.ts +20 -0
  790. package/dist/agentdb/tests/frontier-features.test.js +0 -665
  791. package/dist/cli/federation-cli.d.ts +0 -53
  792. package/dist/reasoningbank/config/reasoningbank-types.ts +0 -57
  793. package/validation/docker/Dockerfile.reasoningbank-local +0 -24
  794. package/validation/docker/Dockerfile.reasoningbank-test +0 -21
  795. package/validation/docker/README.md +0 -234
  796. package/validation/docker/docker-compose.yml +0 -29
  797. package/validation/docker/test-reasoningbank-npx.mjs +0 -442
  798. package/validation/docker-e2e-validation.sh +0 -212
  799. package/validation/docker-quic-test.sh +0 -42
  800. package/validation/docker-quic-validation.sh +0 -60
  801. package/validation/quic-deep-validation.ts +0 -304
  802. package/validation/test-quic-integration.ts +0 -243
  803. package/validation/test-quic-wasm.ts +0 -94
  804. package/validation/test-regression.mjs +0 -246
  805. package/validation/test-wasm-e2e.ts +0 -354
  806. package/validation/test-wasm-integration.ts +0 -99
  807. package/wasm/quic/agentic_flow_quic.d.ts +0 -37
  808. package/wasm/quic/agentic_flow_quic_bg.wasm.d.ts +0 -19
  809. package/wasm/reasoningbank/reasoningbank_wasm.d.ts +0 -41
  810. package/wasm/reasoningbank/reasoningbank_wasm_bg.wasm.d.ts +0 -20
  811. /package/.claude/agents/{goal β†’ reasoning}/agent.md +0 -0
  812. /package/{.claude/skills/.claude-flow β†’ .claude-flow}/metrics/agent-metrics.json +0 -0
  813. /package/{.claude β†’ agentic-flow/.claude}/agents/MIGRATION_SUMMARY.md +0 -0
  814. /package/{.claude β†’ agentic-flow/.claude}/agents/README.md +0 -0
  815. /package/{.claude β†’ agentic-flow/.claude}/agents/consensus/README.md +0 -0
  816. /package/{.claude β†’ agentic-flow/.claude}/agents/custom/test-long-runner.md +0 -0
  817. /package/{.claude β†’ agentic-flow/.claude}/agents/optimization/README.md +0 -0
  818. /package/{.claude β†’ agentic-flow/.claude}/agents/payments/agentic-payments.md +0 -0
  819. /package/{.claude β†’ agentic-flow/.claude}/agents/sublinear/consensus-coordinator.md +0 -0
  820. /package/{.claude β†’ agentic-flow/.claude}/agents/sublinear/matrix-optimizer.md +0 -0
  821. /package/{.claude β†’ agentic-flow/.claude}/agents/sublinear/pagerank-analyzer.md +0 -0
  822. /package/{.claude β†’ agentic-flow/.claude}/agents/sublinear/performance-optimizer.md +0 -0
  823. /package/{.claude β†’ agentic-flow/.claude}/agents/sublinear/trading-predictor.md +0 -0
  824. /package/{.claude β†’ agentic-flow/.claude}/agents/swarm/README.md +0 -0
  825. /package/{.claude β†’ agentic-flow/.claude}/agents/test-neural.md +0 -0
  826. /package/{.claude β†’ agentic-flow/.claude}/answer.md +0 -0
  827. /package/{.claude β†’ agentic-flow/.claude}/commands/claude-flow-help.md +0 -0
  828. /package/{.claude β†’ agentic-flow/.claude}/commands/claude-flow-memory.md +0 -0
  829. /package/{.claude β†’ agentic-flow/.claude}/commands/claude-flow-swarm.md +0 -0
  830. /package/{.claude β†’ agentic-flow/.claude}/commands/pair/README.md +0 -0
  831. /package/{.claude β†’ agentic-flow/.claude}/commands/sparc/ask.md +0 -0
  832. /package/{.claude β†’ agentic-flow/.claude}/commands/sparc/code.md +0 -0
  833. /package/{.claude β†’ agentic-flow/.claude}/commands/sparc/debug.md +0 -0
  834. /package/{.claude β†’ agentic-flow/.claude}/commands/sparc/devops.md +0 -0
  835. /package/{.claude β†’ agentic-flow/.claude}/commands/sparc/docs-writer.md +0 -0
  836. /package/{.claude β†’ agentic-flow/.claude}/commands/sparc/integration.md +0 -0
  837. /package/{.claude β†’ agentic-flow/.claude}/commands/sparc/mcp.md +0 -0
  838. /package/{.claude β†’ agentic-flow/.claude}/commands/sparc/post-deployment-monitoring-mode.md +0 -0
  839. /package/{.claude β†’ agentic-flow/.claude}/commands/sparc/refinement-optimization-mode.md +0 -0
  840. /package/{.claude β†’ agentic-flow/.claude}/commands/sparc/security-review.md +0 -0
  841. /package/{.claude β†’ agentic-flow/.claude}/commands/sparc/sparc.md +0 -0
  842. /package/{.claude β†’ agentic-flow/.claude}/commands/sparc/spec-pseudocode.md +0 -0
  843. /package/{.claude β†’ agentic-flow/.claude}/commands/sparc/supabase-admin.md +0 -0
  844. /package/{.claude β†’ agentic-flow/.claude}/commands/sparc/tutorial.md +0 -0
  845. /package/{.claude β†’ agentic-flow/.claude}/commands/sparc.md +0 -0
  846. /package/{.claude β†’ agentic-flow/.claude}/mcp.json +0 -0
  847. /package/{.claude β†’ agentic-flow/.claude}/openrouter-models-research.md +0 -0
  848. /package/{.claude β†’ agentic-flow/.claude}/openrouter-quick-reference.md +0 -0
  849. /package/{.claude β†’ agentic-flow/.claude}/settings-backup.json +0 -0
  850. /package/{.claude β†’ agentic-flow/.claude}/settings-optimized.json +0 -0
  851. /package/{.claude β†’ agentic-flow/.claude}/settings-simple.json +0 -0
  852. /package/{.claude/skills/skill-builder β†’ agentic-flow/.claude/skills}/.claude-flow/metrics/agent-metrics.json +0 -0
  853. /package/{.claude β†’ agentic-flow/.claude}/skills/.claude-flow/metrics/performance.json +0 -0
  854. /package/{.claude β†’ agentic-flow/.claude}/skills/.claude-flow/metrics/task-metrics.json +0 -0
  855. /package/{.claude β†’ agentic-flow/.claude}/skills/skill-builder/.claude-flow/metrics/performance.json +0 -0
  856. /package/{.claude β†’ agentic-flow/.claude}/skills/skill-builder/.claude-flow/metrics/task-metrics.json +0 -0
  857. /package/{dist β†’ agentic-flow/dist}/agentdb/benchmarks/comprehensive-benchmark.js +0 -0
  858. /package/{dist β†’ agentic-flow/dist}/agentdb/benchmarks/frontier-benchmark.js +0 -0
  859. /package/{dist β†’ agentic-flow/dist}/agentdb/benchmarks/reflexion-benchmark.js +0 -0
  860. /package/{dist β†’ agentic-flow/dist}/agentdb/cli/agentdb-cli.js +0 -0
  861. /package/{dist β†’ agentic-flow/dist}/agentdb/controllers/CausalMemoryGraph.js +0 -0
  862. /package/{dist β†’ agentic-flow/dist}/agentdb/controllers/CausalRecall.js +0 -0
  863. /package/{dist β†’ agentic-flow/dist}/agentdb/controllers/EmbeddingService.js +0 -0
  864. /package/{dist β†’ agentic-flow/dist}/agentdb/controllers/ExplainableRecall.js +0 -0
  865. /package/{dist β†’ agentic-flow/dist}/agentdb/controllers/NightlyLearner.js +0 -0
  866. /package/{dist β†’ agentic-flow/dist}/agentdb/controllers/ReflexionMemory.js +0 -0
  867. /package/{dist β†’ agentic-flow/dist}/agentdb/controllers/SkillLibrary.js +0 -0
  868. /package/{dist β†’ agentic-flow/dist}/agentdb/controllers/frontier-index.js +0 -0
  869. /package/{dist β†’ agentic-flow/dist}/agentdb/controllers/index.js +0 -0
  870. /package/{dist β†’ agentic-flow/dist}/agentdb/index.js +0 -0
  871. /package/{dist β†’ agentic-flow/dist}/agentdb/optimizations/BatchOperations.js +0 -0
  872. /package/{dist β†’ agentic-flow/dist}/agentdb/optimizations/QueryOptimizer.js +0 -0
  873. /package/{dist β†’ agentic-flow/dist}/agentdb/optimizations/index.js +0 -0
  874. /package/{dist β†’ agentic-flow/dist}/agents/claudeAgent.js +0 -0
  875. /package/{dist β†’ agentic-flow/dist}/agents/claudeAgentDirect.js +0 -0
  876. /package/{dist β†’ agentic-flow/dist}/agents/claudeFlowAgent.js +0 -0
  877. /package/{dist β†’ agentic-flow/dist}/agents/codeReviewAgent.js +0 -0
  878. /package/{dist β†’ agentic-flow/dist}/agents/dataAgent.js +0 -0
  879. /package/{dist β†’ agentic-flow/dist}/agents/directApiAgent.js +0 -0
  880. /package/{dist β†’ agentic-flow/dist}/agents/webResearchAgent.js +0 -0
  881. /package/{dist β†’ agentic-flow/dist}/cli/agent-manager.js +0 -0
  882. /package/{dist β†’ agentic-flow/dist}/cli/claude-code-wrapper.js +0 -0
  883. /package/{dist β†’ agentic-flow/dist}/cli/config-wizard.js +0 -0
  884. /package/{dist β†’ agentic-flow/dist}/cli/federation-cli.js +0 -0
  885. /package/{dist β†’ agentic-flow/dist}/cli/mcp-manager.js +0 -0
  886. /package/{dist β†’ agentic-flow/dist}/cli/mcp.js +0 -0
  887. /package/{dist β†’ agentic-flow/dist}/cli/skills-manager.js +0 -0
  888. /package/{dist β†’ agentic-flow/dist}/cli/update-message.js +0 -0
  889. /package/{dist β†’ agentic-flow/dist}/cli-proxy.js +0 -0
  890. /package/{dist β†’ agentic-flow/dist}/cli-standalone-proxy.js +0 -0
  891. /package/{dist β†’ agentic-flow/dist}/config/claudeFlow.js +0 -0
  892. /package/{dist β†’ agentic-flow/dist}/config/quic.js +0 -0
  893. /package/{dist β†’ agentic-flow/dist}/config/tools.js +0 -0
  894. /package/{dist β†’ agentic-flow/dist}/examples/multi-agent-orchestration.js +0 -0
  895. /package/{dist β†’ agentic-flow/dist}/examples/use-goal-planner.js +0 -0
  896. /package/{dist β†’ agentic-flow/dist}/federation/EphemeralAgent.js +0 -0
  897. /package/{dist β†’ agentic-flow/dist}/federation/FederationHub.js +0 -0
  898. /package/{dist β†’ agentic-flow/dist}/federation/FederationHubClient.js +0 -0
  899. /package/{dist β†’ agentic-flow/dist}/federation/FederationHubServer.js +0 -0
  900. /package/{dist β†’ agentic-flow/dist}/federation/SecurityManager.js +0 -0
  901. /package/{dist β†’ agentic-flow/dist}/federation/debug/agent-debug-stream.js +0 -0
  902. /package/{dist β†’ agentic-flow/dist}/federation/debug/debug-stream.js +0 -0
  903. /package/{dist β†’ agentic-flow/dist}/federation/index.js +0 -0
  904. /package/{dist β†’ agentic-flow/dist}/federation/integrations/realtime-federation.js +0 -0
  905. /package/{dist β†’ agentic-flow/dist}/federation/integrations/supabase-adapter-debug.js +0 -0
  906. /package/{dist β†’ agentic-flow/dist}/federation/integrations/supabase-adapter.js +0 -0
  907. /package/{dist β†’ agentic-flow/dist}/health.js +0 -0
  908. /package/{dist β†’ agentic-flow/dist}/index.js +0 -0
  909. /package/{dist β†’ agentic-flow/dist}/mcp/claudeFlowSdkServer.js +0 -0
  910. /package/{dist β†’ agentic-flow/dist}/mcp/fastmcp/servers/claude-flow-sdk.js +0 -0
  911. /package/{dist β†’ agentic-flow/dist}/mcp/fastmcp/servers/http-sse.js +0 -0
  912. /package/{dist β†’ agentic-flow/dist}/mcp/fastmcp/servers/http-streaming-updated.js +0 -0
  913. /package/{dist β†’ agentic-flow/dist}/mcp/fastmcp/servers/poc-stdio.js +0 -0
  914. /package/{dist β†’ agentic-flow/dist}/mcp/fastmcp/servers/stdio-full.js +0 -0
  915. /package/{dist β†’ agentic-flow/dist}/mcp/fastmcp/tools/agent/add-agent.js +0 -0
  916. /package/{dist β†’ agentic-flow/dist}/mcp/fastmcp/tools/agent/add-command.js +0 -0
  917. /package/{dist β†’ agentic-flow/dist}/mcp/fastmcp/tools/agent/execute.js +0 -0
  918. /package/{dist β†’ agentic-flow/dist}/mcp/fastmcp/tools/agent/list.js +0 -0
  919. /package/{dist β†’ agentic-flow/dist}/mcp/fastmcp/tools/agent/parallel.js +0 -0
  920. /package/{dist β†’ agentic-flow/dist}/mcp/fastmcp/tools/swarm/init.js +0 -0
  921. /package/{dist β†’ agentic-flow/dist}/mcp/fastmcp/tools/swarm/orchestrate.js +0 -0
  922. /package/{dist β†’ agentic-flow/dist}/mcp/fastmcp/tools/swarm/spawn.js +0 -0
  923. /package/{dist β†’ agentic-flow/dist}/mcp/fastmcp/types/index.js +0 -0
  924. /package/{dist β†’ agentic-flow/dist}/mcp/standalone-stdio.js +0 -0
  925. /package/{dist β†’ agentic-flow/dist}/memory/SharedMemoryPool.js +0 -0
  926. /package/{dist β†’ agentic-flow/dist}/memory/index.js +0 -0
  927. /package/{dist β†’ agentic-flow/dist}/proxy/anthropic-to-gemini.js +0 -0
  928. /package/{dist β†’ agentic-flow/dist}/proxy/anthropic-to-onnx.js +0 -0
  929. /package/{dist β†’ agentic-flow/dist}/proxy/anthropic-to-openrouter.js +0 -0
  930. /package/{dist β†’ agentic-flow/dist}/proxy/anthropic-to-requesty.js +0 -0
  931. /package/{dist β†’ agentic-flow/dist}/proxy/provider-instructions.js +0 -0
  932. /package/{dist β†’ agentic-flow/dist}/proxy/quic-proxy.js +0 -0
  933. /package/{dist β†’ agentic-flow/dist}/proxy/tool-emulation.js +0 -0
  934. /package/{dist β†’ agentic-flow/dist}/reasoningbank/AdvancedMemory.js +0 -0
  935. /package/{dist β†’ agentic-flow/dist}/reasoningbank/HybridBackend.js +0 -0
  936. /package/{dist β†’ agentic-flow/dist}/reasoningbank/agentdb-adapter.js +0 -0
  937. /package/{dist β†’ agentic-flow/dist}/reasoningbank/backend-selector.js +0 -0
  938. /package/{dist β†’ agentic-flow/dist}/reasoningbank/benchmark.js +0 -0
  939. /package/{dist β†’ agentic-flow/dist}/reasoningbank/config/reasoningbank-types.js +0 -0
  940. /package/{dist β†’ agentic-flow/dist}/reasoningbank/config/reasoningbank.yaml +0 -0
  941. /package/{dist β†’ agentic-flow/dist}/reasoningbank/core/consolidate.js +0 -0
  942. /package/{dist β†’ agentic-flow/dist}/reasoningbank/core/database.js +0 -0
  943. /package/{dist β†’ agentic-flow/dist}/reasoningbank/core/distill.js +0 -0
  944. /package/{dist β†’ agentic-flow/dist}/reasoningbank/core/judge.js +0 -0
  945. /package/{dist β†’ agentic-flow/dist}/reasoningbank/core/matts.js +0 -0
  946. /package/{dist β†’ agentic-flow/dist}/reasoningbank/core/memory-engine.js +0 -0
  947. /package/{dist β†’ agentic-flow/dist}/reasoningbank/core/retrieve.js +0 -0
  948. /package/{dist β†’ agentic-flow/dist}/reasoningbank/db/queries.js +0 -0
  949. /package/{dist β†’ agentic-flow/dist}/reasoningbank/db/schema.js +0 -0
  950. /package/{dist β†’ agentic-flow/dist}/reasoningbank/demo-comparison.js +0 -0
  951. /package/{dist β†’ agentic-flow/dist}/reasoningbank/hooks/post-task.js +0 -0
  952. /package/{dist β†’ agentic-flow/dist}/reasoningbank/hooks/pre-task.js +0 -0
  953. /package/{dist β†’ agentic-flow/dist}/reasoningbank/index-new.js +0 -0
  954. /package/{dist β†’ agentic-flow/dist}/reasoningbank/index.js +0 -0
  955. /package/{dist β†’ agentic-flow/dist}/reasoningbank/prompts/distill-failure.json +0 -0
  956. /package/{dist β†’ agentic-flow/dist}/reasoningbank/prompts/distill-success.json +0 -0
  957. /package/{dist β†’ agentic-flow/dist}/reasoningbank/prompts/judge.json +0 -0
  958. /package/{dist β†’ agentic-flow/dist}/reasoningbank/prompts/matts-aggregate.json +0 -0
  959. /package/{dist β†’ agentic-flow/dist}/reasoningbank/test-integration.js +0 -0
  960. /package/{dist β†’ agentic-flow/dist}/reasoningbank/test-retrieval.js +0 -0
  961. /package/{dist β†’ agentic-flow/dist}/reasoningbank/test-validation.js +0 -0
  962. /package/{dist β†’ agentic-flow/dist}/reasoningbank/types/index.js +0 -0
  963. /package/{dist β†’ agentic-flow/dist}/reasoningbank/utils/config.js +0 -0
  964. /package/{dist β†’ agentic-flow/dist}/reasoningbank/utils/embeddings.js +0 -0
  965. /package/{dist β†’ agentic-flow/dist}/reasoningbank/utils/mmr.js +0 -0
  966. /package/{dist β†’ agentic-flow/dist}/reasoningbank/utils/pii-scrubber.js +0 -0
  967. /package/{dist β†’ agentic-flow/dist}/reasoningbank/wasm-adapter.js +0 -0
  968. /package/{dist β†’ agentic-flow/dist}/router/model-mapping.js +0 -0
  969. /package/{dist β†’ agentic-flow/dist}/router/providers/anthropic.js +0 -0
  970. /package/{dist β†’ agentic-flow/dist}/router/providers/gemini.js +0 -0
  971. /package/{dist β†’ agentic-flow/dist}/router/providers/onnx-local-optimized.js +0 -0
  972. /package/{dist β†’ agentic-flow/dist}/router/providers/onnx-local.js +0 -0
  973. /package/{dist β†’ agentic-flow/dist}/router/providers/onnx-phi4.js +0 -0
  974. /package/{dist β†’ agentic-flow/dist}/router/providers/onnx.js +0 -0
  975. /package/{dist β†’ agentic-flow/dist}/router/providers/openrouter.js +0 -0
  976. /package/{dist β†’ agentic-flow/dist}/router/router.js +0 -0
  977. /package/{dist β†’ agentic-flow/dist}/router/test-integration.js +0 -0
  978. /package/{dist β†’ agentic-flow/dist}/router/test-onnx-benchmark.js +0 -0
  979. /package/{dist β†’ agentic-flow/dist}/router/test-onnx-integration.js +0 -0
  980. /package/{dist β†’ agentic-flow/dist}/router/test-onnx-local.js +0 -0
  981. /package/{dist β†’ agentic-flow/dist}/router/test-onnx.js +0 -0
  982. /package/{dist β†’ agentic-flow/dist}/router/test-openrouter.js +0 -0
  983. /package/{dist β†’ agentic-flow/dist}/router/test-phi4.js +0 -0
  984. /package/{dist β†’ agentic-flow/dist}/router/types.js +0 -0
  985. /package/{dist β†’ agentic-flow/dist}/swarm/index.js +0 -0
  986. /package/{dist β†’ agentic-flow/dist}/swarm/quic-coordinator.js +0 -0
  987. /package/{dist β†’ agentic-flow/dist}/swarm/transport-router.js +0 -0
  988. /package/{dist β†’ agentic-flow/dist}/transport/index.js +0 -0
  989. /package/{dist β†’ agentic-flow/dist}/transport/quic-handshake.js +0 -0
  990. /package/{dist β†’ agentic-flow/dist}/transport/quic.js +0 -0
  991. /package/{dist β†’ agentic-flow/dist}/utils/agentBoosterPreprocessor.js +0 -0
  992. /package/{dist β†’ agentic-flow/dist}/utils/agentLoader.js +0 -0
  993. /package/{dist β†’ agentic-flow/dist}/utils/agentdb-runtime-patch.js +0 -0
  994. /package/{dist β†’ agentic-flow/dist}/utils/agentdbCommands.js +0 -0
  995. /package/{dist β†’ agentic-flow/dist}/utils/cli.js +0 -0
  996. /package/{dist β†’ agentic-flow/dist}/utils/logger.js +0 -0
  997. /package/{dist β†’ agentic-flow/dist}/utils/math.js +0 -0
  998. /package/{dist β†’ agentic-flow/dist}/utils/mcpCommands.js +0 -0
  999. /package/{dist β†’ agentic-flow/dist}/utils/model-downloader.js +0 -0
  1000. /package/{dist β†’ agentic-flow/dist}/utils/modelCapabilities.js +0 -0
  1001. /package/{dist β†’ agentic-flow/dist}/utils/modelOptimizer.js +0 -0
  1002. /package/{dist β†’ agentic-flow/dist}/utils/reasoningbankCommands.js +0 -0
  1003. /package/{dist β†’ agentic-flow/dist}/utils/retry.js +0 -0
  1004. /package/{docs β†’ agentic-flow/docs}/AGENTDB_TESTING.md +0 -0
  1005. /package/{docs β†’ agentic-flow/docs}/INTEGRATION-COMPLETE.md +0 -0
  1006. /package/{docs β†’ agentic-flow/docs}/QUIC_FINAL_STATUS.md +0 -0
  1007. /package/{docs β†’ agentic-flow/docs}/README_QUIC_PHASE1.md +0 -0
  1008. /package/{docs β†’ agentic-flow/docs}/TEST-V1.7.8.Dockerfile +0 -0
  1009. /package/{docs β†’ agentic-flow/docs}/TEST-V1.7.9-NODE20.Dockerfile +0 -0
  1010. /package/{docs β†’ agentic-flow/docs}/TEST-V1.7.9.Dockerfile +0 -0
  1011. /package/{docs β†’ agentic-flow/docs}/architecture/FEDERATION-DATA-LIFECYCLE.md +0 -0
  1012. /package/{docs β†’ agentic-flow/docs}/archived/COMPLETE_VALIDATION_SUMMARY.md +0 -0
  1013. /package/{docs β†’ agentic-flow/docs}/archived/DOCKER_MCP_VALIDATION.md +0 -0
  1014. /package/{docs β†’ agentic-flow/docs}/archived/DOCKER_OPENROUTER_VALIDATION.md +0 -0
  1015. /package/{docs β†’ agentic-flow/docs}/archived/FASTMCP_COMPLETE.md +0 -0
  1016. /package/{docs β†’ agentic-flow/docs}/archived/FASTMCP_INTEGRATION_STATUS.md +0 -0
  1017. /package/{docs β†’ agentic-flow/docs}/archived/FINAL_SDK_VALIDATION.md +0 -0
  1018. /package/{docs β†’ agentic-flow/docs}/archived/FINAL_SYSTEM_VALIDATION.md +0 -0
  1019. /package/{docs β†’ agentic-flow/docs}/archived/FINAL_VALIDATION_SUMMARY.md +0 -0
  1020. /package/{docs β†’ agentic-flow/docs}/archived/FIXES-APPLIED-STATUS.md +0 -0
  1021. /package/{docs β†’ agentic-flow/docs}/archived/FLOW-NEXUS-COMPLETE.md +0 -0
  1022. /package/{docs β†’ agentic-flow/docs}/archived/HOTFIX_1.1.7.md +0 -0
  1023. /package/{docs β†’ agentic-flow/docs}/archived/INTEGRATION_CONFIRMED.md +0 -0
  1024. /package/{docs β†’ agentic-flow/docs}/archived/MCP_CLI_TOOLS_VALIDATION.md +0 -0
  1025. /package/{docs β†’ agentic-flow/docs}/archived/MCP_INTEGRATION_SUCCESS.md +0 -0
  1026. /package/{docs β†’ agentic-flow/docs}/archived/MCP_PROXY_VALIDATION.md +0 -0
  1027. /package/{docs β†’ agentic-flow/docs}/archived/MODEL_VALIDATION_REPORT.md +0 -0
  1028. /package/{docs β†’ agentic-flow/docs}/archived/ONNX_ENV_VARS.md +0 -0
  1029. /package/{docs β†’ agentic-flow/docs}/archived/ONNX_FINAL_REPORT.md +0 -0
  1030. /package/{docs β†’ agentic-flow/docs}/archived/ONNX_IMPLEMENTATION_COMPLETE.md +0 -0
  1031. /package/{docs β†’ agentic-flow/docs}/archived/ONNX_IMPLEMENTATION_SUMMARY.md +0 -0
  1032. /package/{docs β†’ agentic-flow/docs}/archived/ONNX_INTEGRATION.md +0 -0
  1033. /package/{docs β†’ agentic-flow/docs}/archived/ONNX_OPTIMIZATION_SUMMARY.md +0 -0
  1034. /package/{docs β†’ agentic-flow/docs}/archived/ONNX_PHI4_RESEARCH.md +0 -0
  1035. /package/{docs β†’ agentic-flow/docs}/archived/ONNX_RUNTIME_INTEGRATION_PLAN.md +0 -0
  1036. /package/{docs β†’ agentic-flow/docs}/archived/ONNX_SUCCESS_REPORT.md +0 -0
  1037. /package/{docs β†’ agentic-flow/docs}/archived/ONNX_VS_CLAUDE_QUALITY.md +0 -0
  1038. /package/{docs β†’ agentic-flow/docs}/archived/OPENROUTER-FIX-VALIDATION.md +0 -0
  1039. /package/{docs β†’ agentic-flow/docs}/archived/OPENROUTER-SUCCESS-REPORT.md +0 -0
  1040. /package/{docs β†’ agentic-flow/docs}/archived/OPENROUTER_ISSUES_AND_FIXES.md +0 -0
  1041. /package/{docs β†’ agentic-flow/docs}/archived/OPENROUTER_PROXY_COMPLETE.md +0 -0
  1042. /package/{docs β†’ agentic-flow/docs}/archived/OPENROUTER_VALIDATION_COMPLETE.md +0 -0
  1043. /package/{docs β†’ agentic-flow/docs}/archived/OPTIMIZATION_SUMMARY.md +0 -0
  1044. /package/{docs β†’ agentic-flow/docs}/archived/PACKAGE-COMPLETE.md +0 -0
  1045. /package/{docs β†’ agentic-flow/docs}/archived/PHI4_HYPEROPTIMIZATION_PLAN.md +0 -0
  1046. /package/{docs β†’ agentic-flow/docs}/archived/PROVIDER_INSTRUCTION_OPTIMIZATION.md +0 -0
  1047. /package/{docs β†’ agentic-flow/docs}/archived/PROXY_VALIDATION.md +0 -0
  1048. /package/{docs β†’ agentic-flow/docs}/archived/README.md +0 -0
  1049. /package/{docs β†’ agentic-flow/docs}/archived/README_SDK_VALIDATION.md +0 -0
  1050. /package/{docs β†’ agentic-flow/docs}/archived/README_V1.1.11.md +0 -0
  1051. /package/{docs β†’ agentic-flow/docs}/archived/RELEASE-NOTES-v1.1.13.md +0 -0
  1052. /package/{docs β†’ agentic-flow/docs}/archived/RELEASE-SUMMARY-v1.1.14-beta.1.md +0 -0
  1053. /package/{docs β†’ agentic-flow/docs}/archived/RESEARCH_COMPLETE.txt +0 -0
  1054. /package/{docs β†’ agentic-flow/docs}/archived/ROUTER_VALIDATION.md +0 -0
  1055. /package/{docs β†’ agentic-flow/docs}/archived/SDK-SETUP-COMPLETE.md +0 -0
  1056. /package/{docs β†’ agentic-flow/docs}/archived/SDK_INTEGRATION_COMPLETE.md +0 -0
  1057. /package/{docs β†’ agentic-flow/docs}/archived/TOOL_INSTRUCTION_ENHANCEMENT.md +0 -0
  1058. /package/{docs β†’ agentic-flow/docs}/archived/V1.1.10_VALIDATION.md +0 -0
  1059. /package/{docs β†’ agentic-flow/docs}/archived/V1.1.11_COMPLETE_VALIDATION.md +0 -0
  1060. /package/{docs β†’ agentic-flow/docs}/archived/V1.1.11_MCP_PROXY_FIX.md +0 -0
  1061. /package/{docs β†’ agentic-flow/docs}/archived/V1.1.14-BETA-READY.md +0 -0
  1062. /package/{docs β†’ agentic-flow/docs}/archived/VALIDATION-RESULTS.md +0 -0
  1063. /package/{docs β†’ agentic-flow/docs}/archived/VALIDATION_COMPLETE.md +0 -0
  1064. /package/{docs β†’ agentic-flow/docs}/archived/VALIDATION_SUMMARY.md +0 -0
  1065. /package/{docs β†’ agentic-flow/docs}/archived/claude-flow-integration.md +0 -0
  1066. /package/{docs β†’ agentic-flow/docs}/archived/docker-cli-validation.md +0 -0
  1067. /package/{docs β†’ agentic-flow/docs}/archived/docker-memory-coordination-status.md +0 -0
  1068. /package/{docs β†’ agentic-flow/docs}/archived/mcp-validation-summary.md +0 -0
  1069. /package/{docs β†’ agentic-flow/docs}/archived/quick-wins-validation.md +0 -0
  1070. /package/{docs β†’ agentic-flow/docs}/benchmarks/optimization-guide.md +0 -0
  1071. /package/{docs β†’ agentic-flow/docs}/benchmarks/quic-results.md +0 -0
  1072. /package/{docs β†’ agentic-flow/docs}/federation/AGENT-DEBUG-STREAMING.md +0 -0
  1073. /package/{docs β†’ agentic-flow/docs}/federation/DEBUG-STREAMING-COMPLETE.md +0 -0
  1074. /package/{docs β†’ agentic-flow/docs}/federation/DEBUG-STREAMING.md +0 -0
  1075. /package/{docs β†’ agentic-flow/docs}/federation/DEPLOYMENT-VALIDATION-SUCCESS.md +0 -0
  1076. /package/{docs β†’ agentic-flow/docs}/federation/DOCKER-FEDERATION-DEEP-REVIEW.md +0 -0
  1077. /package/{docs β†’ agentic-flow/docs}/integration-docs/AGENT-BOOSTER-INTEGRATION.md +0 -0
  1078. /package/{docs β†’ agentic-flow/docs}/integration-docs/CLAUDE-FLOW-INTEGRATION-ANALYSIS.md +0 -0
  1079. /package/{docs β†’ agentic-flow/docs}/integration-docs/CLI-INTEGRATION-COMPLETE.md +0 -0
  1080. /package/{docs β†’ agentic-flow/docs}/integration-docs/IMPLEMENTATION_SUMMARY.md +0 -0
  1081. /package/{docs β†’ agentic-flow/docs}/integration-docs/INTEGRATION-QUICK-SUMMARY.md +0 -0
  1082. /package/{docs β†’ agentic-flow/docs}/integration-docs/INTEGRATION-STATUS-CORRECTED.md +0 -0
  1083. /package/{docs β†’ agentic-flow/docs}/integration-docs/INTEGRATION_COMPLETE_SUMMARY.md +0 -0
  1084. /package/{docs β†’ agentic-flow/docs}/integration-docs/QUIC-WASM-INTEGRATION.md +0 -0
  1085. /package/{docs β†’ agentic-flow/docs}/integration-docs/README.md +0 -0
  1086. /package/{docs β†’ agentic-flow/docs}/integration-docs/WASM_ESM_FIX.md +0 -0
  1087. /package/{docs β†’ agentic-flow/docs}/integration-docs/WASM_INTEGRATION_COMPLETE.md +0 -0
  1088. /package/{docs β†’ agentic-flow/docs}/integrations/CLAUDE_AGENTS_INTEGRATION.md +0 -0
  1089. /package/{docs β†’ agentic-flow/docs}/integrations/CLAUDE_FLOW_INTEGRATION.md +0 -0
  1090. /package/{docs β†’ agentic-flow/docs}/integrations/FASTMCP_CLI_INTEGRATION.md +0 -0
  1091. /package/{docs β†’ agentic-flow/docs}/integrations/FLOW-NEXUS-INTEGRATION.md +0 -0
  1092. /package/{docs β†’ agentic-flow/docs}/integrations/README.md +0 -0
  1093. /package/{docs β†’ agentic-flow/docs}/integrations/fastmcp-implementation-plan.md +0 -0
  1094. /package/{docs β†’ agentic-flow/docs}/integrations/fastmcp-poc-integration.md +0 -0
  1095. /package/{docs β†’ agentic-flow/docs}/issues/ISSUE-SUPABASE-INTEGRATION.md +0 -0
  1096. /package/{docs β†’ agentic-flow/docs}/mcp-validation/IMPLEMENTATION-SUMMARY.md +0 -0
  1097. /package/{docs β†’ agentic-flow/docs}/mcp-validation/MCP-CLI-VALIDATION-REPORT.md +0 -0
  1098. /package/{docs β†’ agentic-flow/docs}/mcp-validation/README.md +0 -0
  1099. /package/{docs β†’ agentic-flow/docs}/mcp-validation/strange-loops-test.md +0 -0
  1100. /package/{docs β†’ agentic-flow/docs}/plans/QUIC/BUILD_INSTRUCTIONS.md +0 -0
  1101. /package/{docs β†’ agentic-flow/docs}/plans/QUIC/IMPLEMENTATION_STATUS.md +0 -0
  1102. /package/{docs β†’ agentic-flow/docs}/plans/QUIC/QUIC-INTEGRATION-SUMMARY.md +0 -0
  1103. /package/{docs β†’ agentic-flow/docs}/plans/QUIC/QUIC-INTEGRATION.md +0 -0
  1104. /package/{docs β†’ agentic-flow/docs}/plans/QUIC/QUIC-README.md +0 -0
  1105. /package/{docs β†’ agentic-flow/docs}/plans/QUIC/QUIC_IMPLEMENTATION_SUMMARY.md +0 -0
  1106. /package/{docs β†’ agentic-flow/docs}/plans/QUIC/README-CONDENSED.md +0 -0
  1107. /package/{docs β†’ agentic-flow/docs}/plans/QUIC/quic-research.md +0 -0
  1108. /package/{docs β†’ agentic-flow/docs}/plans/QUIC/quic-tutorial.md +0 -0
  1109. /package/{docs β†’ agentic-flow/docs}/plans/agent-booster/00-INDEX.md +0 -0
  1110. /package/{docs β†’ agentic-flow/docs}/plans/agent-booster/00-OVERVIEW.md +0 -0
  1111. /package/{docs β†’ agentic-flow/docs}/plans/agent-booster/01-ARCHITECTURE.md +0 -0
  1112. /package/{docs β†’ agentic-flow/docs}/plans/agent-booster/02-INTEGRATION.md +0 -0
  1113. /package/{docs β†’ agentic-flow/docs}/plans/agent-booster/03-BENCHMARKS.md +0 -0
  1114. /package/{docs β†’ agentic-flow/docs}/plans/agent-booster/04-NPM-SDK.md +0 -0
  1115. /package/{docs β†’ agentic-flow/docs}/plans/agent-booster/GITHUB-ISSUE.md +0 -0
  1116. /package/{docs β†’ agentic-flow/docs}/plans/agent-booster/README.md +0 -0
  1117. /package/{docs β†’ agentic-flow/docs}/plans/agent-booster-cli-integration.md +0 -0
  1118. /package/{docs β†’ agentic-flow/docs}/plans/requesty/00-overview.md +0 -0
  1119. /package/{docs β†’ agentic-flow/docs}/plans/requesty/01-api-research.md +0 -0
  1120. /package/{docs β†’ agentic-flow/docs}/plans/requesty/02-architecture.md +0 -0
  1121. /package/{docs β†’ agentic-flow/docs}/plans/requesty/03-implementation-phases.md +0 -0
  1122. /package/{docs β†’ agentic-flow/docs}/plans/requesty/04-testing-strategy.md +0 -0
  1123. /package/{docs β†’ agentic-flow/docs}/plans/requesty/05-migration-guide.md +0 -0
  1124. /package/{docs β†’ agentic-flow/docs}/plans/requesty/README.md +0 -0
  1125. /package/{docs β†’ agentic-flow/docs}/quantum-goap/DEPENDENCY_GRAPH.mermaid +0 -0
  1126. /package/{docs β†’ agentic-flow/docs}/quantum-goap/EXECUTION_SUMMARY.md +0 -0
  1127. /package/{docs β†’ agentic-flow/docs}/quantum-goap/GOAP_IMPLEMENTATION_PLAN.md +0 -0
  1128. /package/{docs β†’ agentic-flow/docs}/quantum-goap/QUICK_START.md +0 -0
  1129. /package/{docs β†’ agentic-flow/docs}/quantum-research/QUANTUM_RESEARCH_LITERATURE_REVIEW.md +0 -0
  1130. /package/{docs β†’ agentic-flow/docs}/quantum-research/README.md +0 -0
  1131. /package/{docs β†’ agentic-flow/docs}/quic/FINAL-VALIDATION.md +0 -0
  1132. /package/{docs β†’ agentic-flow/docs}/quic/IMPLEMENTATION-COMPLETE-SUMMARY.md +0 -0
  1133. /package/{docs β†’ agentic-flow/docs}/quic/PERFORMANCE-VALIDATION.md +0 -0
  1134. /package/{docs β†’ agentic-flow/docs}/quic/QUIC-STATUS-OLD.md +0 -0
  1135. /package/{docs β†’ agentic-flow/docs}/quic/QUIC-STATUS.md +0 -0
  1136. /package/{docs β†’ agentic-flow/docs}/quic/QUIC-VALIDATION-REPORT.md +0 -0
  1137. /package/{docs β†’ agentic-flow/docs}/quic/WASM-INTEGRATION-COMPLETE.md +0 -0
  1138. /package/{docs β†’ agentic-flow/docs}/reasoningbank/MEMORY_VALIDATION_REPORT.md +0 -0
  1139. /package/{docs β†’ agentic-flow/docs}/reasoningbank/README.md +0 -0
  1140. /package/{docs β†’ agentic-flow/docs}/reasoningbank/REASONING-AGENTS.md +0 -0
  1141. /package/{docs β†’ agentic-flow/docs}/reasoningbank/REASONINGBANK-BENCHMARK-RESULTS.md +0 -0
  1142. /package/{docs β†’ agentic-flow/docs}/reasoningbank/REASONINGBANK-BENCHMARK.md +0 -0
  1143. /package/{docs β†’ agentic-flow/docs}/reasoningbank/REASONINGBANK-CLI-INTEGRATION.md +0 -0
  1144. /package/{docs β†’ agentic-flow/docs}/reasoningbank/REASONINGBANK-DEMO.md +0 -0
  1145. /package/{docs β†’ agentic-flow/docs}/reasoningbank/REASONINGBANK-VALIDATION.md +0 -0
  1146. /package/{docs β†’ agentic-flow/docs}/reasoningbank/REASONINGBANK_ARCHITECTURE.md +0 -0
  1147. /package/{docs β†’ agentic-flow/docs}/reasoningbank/REASONINGBANK_BACKENDS.md +0 -0
  1148. /package/{docs β†’ agentic-flow/docs}/reasoningbank/REASONINGBANK_FIXES.md +0 -0
  1149. /package/{docs β†’ agentic-flow/docs}/reasoningbank/REASONINGBANK_IMPLEMENTATION_STATUS.md +0 -0
  1150. /package/{docs β†’ agentic-flow/docs}/reasoningbank/REASONINGBANK_INTEGRATION_PLAN.md +0 -0
  1151. /package/{docs β†’ agentic-flow/docs}/reasoningbank/REASONINGBANK_INVESTIGATION.md +0 -0
  1152. /package/{docs β†’ agentic-flow/docs}/releases/GITHUB-ISSUE-ADDENDUM-v1.4.6.md +0 -0
  1153. /package/{docs β†’ agentic-flow/docs}/releases/GITHUB-ISSUE-REASONINGBANK-BENCHMARK.md +0 -0
  1154. /package/{docs β†’ agentic-flow/docs}/releases/GITHUB-ISSUE-v1.4.6.md +0 -0
  1155. /package/{docs β†’ agentic-flow/docs}/releases/GITHUB-ISSUE-v1.5.0.md +0 -0
  1156. /package/{docs β†’ agentic-flow/docs}/releases/HOTFIX-v1.2.1.md +0 -0
  1157. /package/{docs β†’ agentic-flow/docs}/releases/NPM-PUBLISH-GUIDE-v1.2.0.md +0 -0
  1158. /package/{docs β†’ agentic-flow/docs}/releases/PUBLISH-COMPLETE-v1.2.0.md +0 -0
  1159. /package/{docs β†’ agentic-flow/docs}/releases/README.md +0 -0
  1160. /package/{docs β†’ agentic-flow/docs}/releases/RELEASE-v1.2.0.md +0 -0
  1161. /package/{docs β†’ agentic-flow/docs}/releases/RELEASE-v1.8.13.md +0 -0
  1162. /package/{docs β†’ agentic-flow/docs}/releases/v1.4.6-reasoningbank-release.md +0 -0
  1163. /package/{docs β†’ agentic-flow/docs}/releases/v1.4.7-bugfix.md +0 -0
  1164. /package/{docs β†’ agentic-flow/docs}/releases/v1.5.14-QUIC-TRANSPORT.md +0 -0
  1165. /package/{docs β†’ agentic-flow/docs}/router/README.md +0 -0
  1166. /package/{docs β†’ agentic-flow/docs}/router/ROUTER_CONFIG_REFERENCE.md +0 -0
  1167. /package/{docs β†’ agentic-flow/docs}/router/ROUTER_USER_GUIDE.md +0 -0
  1168. /package/{docs β†’ agentic-flow/docs}/router/TOP20_MODELS_MATRIX.md +0 -0
  1169. /package/{docs β†’ agentic-flow/docs}/supabase/IMPLEMENTATION-SUMMARY.md +0 -0
  1170. /package/{docs β†’ agentic-flow/docs}/supabase/INDEX.md +0 -0
  1171. /package/{docs β†’ agentic-flow/docs}/supabase/QUICKSTART.md +0 -0
  1172. /package/{docs β†’ agentic-flow/docs}/supabase/README.md +0 -0
  1173. /package/{docs β†’ agentic-flow/docs}/supabase/SUPABASE-REALTIME-FEDERATION.md +0 -0
  1174. /package/{docs β†’ agentic-flow/docs}/supabase/TEST-REPORT.md +0 -0
  1175. /package/{docs β†’ agentic-flow/docs}/supabase/migrations/001_create_federation_tables.sql +0 -0
  1176. /package/{docs β†’ agentic-flow/docs}/testing/AGENT-SYSTEM-VALIDATION.md +0 -0
  1177. /package/{docs β†’ agentic-flow/docs}/testing/FINAL-TESTING-SUMMARY.md +0 -0
  1178. /package/{docs β†’ agentic-flow/docs}/testing/README.md +0 -0
  1179. /package/{docs β†’ agentic-flow/docs}/testing/REGRESSION-TEST-RESULTS.md +0 -0
  1180. /package/{docs β†’ agentic-flow/docs}/testing/STREAMING-AND-MCP-VALIDATION.md +0 -0
  1181. /package/{docs β†’ agentic-flow/docs}/v1.7.1-QUICK-START.md +0 -0
  1182. /package/{docs β†’ agentic-flow/docs}/validation/README.md +0 -0
  1183. /package/{docs β†’ agentic-flow/docs}/validation/reports/REGRESSION-TEST-V1.8.11.md +0 -0
  1184. /package/{docs β†’ agentic-flow/docs}/validation-reports/BENCHMARK_AND_OPTIMIZATION_REPORT.md +0 -0
  1185. /package/{docs β†’ agentic-flow/docs}/validation-reports/DOCKER_VALIDATION_RESULTS.md +0 -0
  1186. /package/{docs β†’ agentic-flow/docs}/validation-reports/NO_REGRESSIONS_CONFIRMED.md +0 -0
  1187. /package/{docs β†’ agentic-flow/docs}/validation-reports/NPM-PACKAGE-ANALYSIS-FINAL.md +0 -0
  1188. /package/{docs β†’ agentic-flow/docs}/validation-reports/README.md +0 -0
  1189. /package/{docs β†’ agentic-flow/docs}/validation-reports/V2.7.0-ALPHA.10_FINAL_VALIDATION.md +0 -0
  1190. /package/{docs β†’ agentic-flow/docs}/validation-reports/V2.7.0-ALPHA.9_VALIDATION.md +0 -0
  1191. /package/{docs β†’ agentic-flow/docs}/validation-reports/v1.6.0-QUIC-CLI-VALIDATION.md +0 -0
  1192. /package/{docs β†’ agentic-flow/docs}/validation-reports/v1.6.1-NPM-PUBLISH-VALIDATION.md +0 -0
  1193. /package/{docs β†’ agentic-flow/docs}/version-releases/PUBLICATION_REPORT_v1.5.11.md +0 -0
  1194. /package/{docs β†’ agentic-flow/docs}/version-releases/README.md +0 -0
  1195. /package/{docs β†’ agentic-flow/docs}/version-releases/v1.5.9-DOCKER-VERIFICATION.md +0 -0
  1196. /package/{docs β†’ agentic-flow/docs}/version-releases/v1.5.9-RELEASE-SUMMARY.md +0 -0
  1197. /package/{scripts β†’ agentic-flow/scripts}/build.sh +0 -0
  1198. /package/{scripts β†’ agentic-flow/scripts}/claude-code +0 -0
  1199. /package/{scripts β†’ agentic-flow/scripts}/claude-flow +0 -0
  1200. /package/{scripts β†’ agentic-flow/scripts}/claude-flow.bat +0 -0
  1201. /package/{scripts β†’ agentic-flow/scripts}/claude-flow.ps1 +0 -0
  1202. /package/{scripts β†’ agentic-flow/scripts}/postinstall.js +0 -0
  1203. /package/{scripts β†’ agentic-flow/scripts}/run-validation.sh +0 -0
  1204. /package/{scripts β†’ agentic-flow/scripts}/test-agentdb.sh +0 -0
  1205. /package/{scripts β†’ agentic-flow/scripts}/test-all-commands.sh +0 -0
  1206. /package/{scripts β†’ agentic-flow/scripts}/test-claude-flow-sdk.sh +0 -0
  1207. /package/{scripts β†’ agentic-flow/scripts}/test-fastmcp-docker.sh +0 -0
  1208. /package/{scripts β†’ agentic-flow/scripts}/test-fastmcp-poc.sh +0 -0
  1209. /package/{scripts β†’ agentic-flow/scripts}/test-functionality.sh +0 -0
  1210. /package/{scripts β†’ agentic-flow/scripts}/test-onnx-docker.sh +0 -0
  1211. /package/{scripts β†’ agentic-flow/scripts}/test-router-docker.sh +0 -0
  1212. /package/{scripts β†’ agentic-flow/scripts}/validate-mcp-cli-tools.sh +0 -0
  1213. /package/{scripts β†’ agentic-flow/scripts}/validate-providers.sh +0 -0
  1214. /package/{wasm β†’ agentic-flow/wasm}/quic/README.md +0 -0
  1215. /package/{wasm β†’ agentic-flow/wasm}/quic/agentic_flow_quic.js +0 -0
  1216. /package/{wasm β†’ agentic-flow/wasm}/quic/agentic_flow_quic_bg.wasm +0 -0
  1217. /package/{wasm β†’ agentic-flow/wasm}/quic/package.json +0 -0
  1218. /package/{wasm β†’ agentic-flow/wasm}/reasoningbank/package.json +0 -0
  1219. /package/{wasm β†’ agentic-flow/wasm}/reasoningbank/reasoningbank_wasm.js +0 -0
  1220. /package/{wasm β†’ agentic-flow/wasm}/reasoningbank/reasoningbank_wasm_bg.js +0 -0
  1221. /package/{wasm β†’ agentic-flow/wasm}/reasoningbank/reasoningbank_wasm_bg.wasm +0 -0
@@ -0,0 +1,1059 @@
1
+ # ReasoningBank QUIC-WASM Integration Plan
2
+ ## Ultra-Optimized Full Integration for agentic-flow
3
+
4
+ **Version**: 1.0.0
5
+ **Date**: 2025-10-12
6
+ **Status**: PLANNING (DO NOT IMPLEMENT)
7
+
8
+ ---
9
+
10
+ ## 🎯 Executive Summary
11
+
12
+ This document provides a **comprehensive integration plan** for merging ReasoningBank's Rust-based adaptive learning system with agentic-flow's existing WASM/npm infrastructure. The plan ensures:
13
+
14
+ 1. **Zero regressions** - Existing features remain intact and optimized
15
+ 2. **Full WASM/npm compatibility** - Browser + Node.js support
16
+ 3. **QUIC neural bus integration** - ReasoningBank's QUIC connects with agentic-flow-quic
17
+ 4. **Optimal feature selection** - Use best implementation from each system
18
+ 5. **Performance optimization** - Maximize speed, minimize bundle size
19
+
20
+ ---
21
+
22
+ ## πŸ“Š Current State Analysis
23
+
24
+ ### Existing Components
25
+
26
+ #### 1. **agentic-flow** (TypeScript/Node.js)
27
+ - **Location**: `/workspaces/agentic-flow/agentic-flow/`
28
+ - **Features**:
29
+ - 66 specialized agents with MCP server (213 tools)
30
+ - ReasoningBank TypeScript implementation (`src/reasoningbank/`)
31
+ - QUIC proxy with HTTP/2 fallback (`src/proxy/quic-proxy.ts`)
32
+ - Anthropic β†’ OpenRouter proxy
33
+ - SQLite-based learning memory
34
+ - Express server + CLI
35
+
36
+ #### 2. **agentic-flow-quic** (Rust WASM-ready)
37
+ - **Location**: `/workspaces/agentic-flow/crates/agentic-flow-quic/`
38
+ - **Features**:
39
+ - Quinn-based QUIC client/server
40
+ - WASM bindings (`src/wasm.rs`)
41
+ - Connection pooling
42
+ - 0-RTT support
43
+ - WebSocket-like API for browsers
44
+
45
+ #### 3. **ReasoningBank** (Rust Native)
46
+ - **Location**: `/workspaces/agentic-flow/reasoningbank/`
47
+ - **Features**:
48
+ - 6 crates: core, storage, learning, network, mcp, wasm
49
+ - Adaptive learning with pattern matching
50
+ - QUIC neural bus (Ed25519 signed intents, gossip, snapshots)
51
+ - 60+ tests, benchmarks, MCP integration
52
+ - **ISSUE**: SQLite (rusqlite) doesn't compile to WASM (C dependencies)
53
+
54
+ #### 4. **agent-booster** (Rust WASM + npm)
55
+ - **Location**: `/workspaces/agentic-flow/agent-booster/`
56
+ - **Features**:
57
+ - Tree-sitter code parsing with WASM bindings
58
+ - npm package with TypeScript types
59
+ - 352x faster than cloud APIs
60
+ - Proven WASM deployment pattern
61
+
62
+ ---
63
+
64
+ ## πŸ” Feature Comparison & Optimization Decisions
65
+
66
+ ### 1. QUIC Transport
67
+
68
+ | Feature | agentic-flow-quic | ReasoningBank QUIC | **DECISION** |
69
+ |---------|-------------------|---------------------|--------------|
70
+ | Implementation | Quinn 0.11 | Quinn 0.10 | βœ… **Use agentic-flow-quic (newer version)** |
71
+ | WASM bindings | βœ… Complete | ❌ Native-only | βœ… **Keep agentic-flow-quic WASM** |
72
+ | Connection pool | βœ… Yes | ❌ No | βœ… **Keep agentic-flow-quic pool** |
73
+ | HTTP/3 over QUIC | βœ… Yes | ❌ Custom protocol | βœ… **Use HTTP/3 standard** |
74
+ | 0-RTT | βœ… Yes | βœ… Yes | βœ… **Both support** |
75
+ | Neural bus features | ❌ No | βœ… Intent-signed, gossip | βœ… **Add ReasoningBank features** |
76
+
77
+ **Optimal Strategy**: Use agentic-flow-quic as base transport, add ReasoningBank's neural bus features (intent verification, gossip, snapshots) as a higher-level protocol layer.
78
+
79
+ ### 2. Storage Layer
80
+
81
+ | Feature | TypeScript/SQLite | ReasoningBank Storage | **DECISION** |
82
+ |---------|-------------------|----------------------|--------------|
83
+ | Implementation | better-sqlite3 | rusqlite | ⚠️ **BOTH (conditional)** |
84
+ | WASM support | βœ… sql.js possible | ❌ C dependencies | βœ… **Use sql.js for WASM** |
85
+ | Performance | Medium | High | βœ… **ReasoningBank for native** |
86
+ | Connection pooling | No | βœ… Yes (10 conns) | βœ… **Use pooling** |
87
+ | WAL mode | No | βœ… Yes | βœ… **Use WAL** |
88
+ | Async support | Sync/callback | βœ… Actor pattern | βœ… **Use actor pattern** |
89
+
90
+ **Optimal Strategy**:
91
+ - **Native (Node.js)**: Use ReasoningBank's high-performance storage with pooling/WAL
92
+ - **WASM (browser)**: Fallback to sql.js or IndexedDB with ReasoningBank API wrapper
93
+
94
+ ### 3. Learning & Reasoning
95
+
96
+ | Feature | TypeScript RB | Rust ReasoningBank | **DECISION** |
97
+ |---------|---------------|---------------------|--------------|
98
+ | Pattern storage | βœ… Yes | βœ… Yes | βœ… **Use Rust (faster)** |
99
+ | Similarity matching | Basic | βœ… Cosine + Euclidean | βœ… **Use Rust algorithms** |
100
+ | Strategy optimization | Basic | βœ… Advanced | βœ… **Use Rust** |
101
+ | Adaptive learning | No | βœ… Yes (actor pattern) | βœ… **Use Rust** |
102
+ | MCP integration | βœ… Yes | βœ… Yes | βœ… **Merge both** |
103
+ | Vector embeddings | No | βœ… Yes | βœ… **Use Rust** |
104
+
105
+ **Optimal Strategy**: Replace TypeScript ReasoningBank with Rust WASM bindings for all environments. TypeScript becomes thin wrapper.
106
+
107
+ ### 4. Agent Coordination
108
+
109
+ | Feature | agentic-flow | ReasoningBank | **DECISION** |
110
+ |---------|--------------|----------------|--------------|
111
+ | 66 specialized agents | βœ… Yes | ❌ No | βœ… **Keep agentic-flow agents** |
112
+ | MCP server/tools | βœ… 213 tools | βœ… 4 RB tools | βœ… **Merge: 217 tools total** |
113
+ | Swarm coordination | βœ… Yes | ❌ No | βœ… **Keep agentic-flow swarm** |
114
+ | Memory persistence | βœ… Yes | βœ… Yes (enhanced) | βœ… **Upgrade with RB memory** |
115
+ | Neural patterns | No | βœ… Yes | βœ… **Add RB neural features** |
116
+
117
+ **Optimal Strategy**: Keep agentic-flow's agent orchestration, enhance with ReasoningBank's learning/memory capabilities.
118
+
119
+ ---
120
+
121
+ ## πŸ—οΈ Integration Architecture
122
+
123
+ ### Target Architecture
124
+
125
+ ```
126
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
127
+ β”‚ agentic-flow (npm) β”‚
128
+ β”‚ TypeScript + Rust WASM β”‚
129
+ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
130
+ β”‚ β”‚
131
+ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
132
+ β”‚ β”‚ agentic-flow TypeScript Core β”‚ β”‚
133
+ β”‚ β”‚ β€’ 66 Agents β”‚ β”‚
134
+ β”‚ β”‚ β€’ MCP Server (213 tools) β”‚ β”‚
135
+ β”‚ β”‚ β€’ Express Proxy Server β”‚ β”‚
136
+ β”‚ β”‚ β€’ CLI β”‚ β”‚
137
+ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
138
+ β”‚ β”‚ β”‚
139
+ β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
140
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚
141
+ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚
142
+ β”‚ β”‚ ReasoningBank β”‚ β”‚ QUIC Transport β”‚ β”‚ agent-boosterβ”‚ β”‚ β”‚
143
+ β”‚ β”‚ WASM β”‚ β”‚ WASM β”‚ β”‚ WASM β”‚ β”‚ β”‚
144
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚
145
+ β”‚ β”‚ β€’ Core β”‚ β”‚ β€’ Quinn β”‚ β”‚ β€’ Parser β”‚ β”‚ β”‚
146
+ β”‚ β”‚ β€’ Learning β”‚ β”‚ β€’ Connection β”‚ β”‚ β€’ Merger β”‚ β”‚ β”‚
147
+ β”‚ β”‚ β€’ Similarity β”‚ β”‚ Pool β”‚ β”‚ β€’ 352x boost β”‚ β”‚ β”‚
148
+ β”‚ β”‚ β€’ MCP (4 tools) β”‚ β”‚ β€’ HTTP/3 β”‚ β”‚ β”‚ β”‚ β”‚
149
+ β”‚ β”‚ β”‚ β”‚ β€’ 0-RTT β”‚ β”‚ β”‚ β”‚ β”‚
150
+ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚
151
+ β”‚ β”‚
152
+ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
153
+ β”‚ β”‚ Neural Bus Protocol Layer (New) β”‚ β”‚
154
+ β”‚ β”‚ β€’ Intent-signed actions (Ed25519) β”‚ β”‚
155
+ β”‚ β”‚ β€’ Gossip protocol for pattern sharing β”‚ β”‚
156
+ β”‚ β”‚ β€’ Snapshot streaming β”‚ β”‚
157
+ β”‚ β”‚ β€’ Priority queues (high/normal/low) β”‚ β”‚
158
+ β”‚ β”‚ β€’ Reasoning streams (token/trace/rubric/verify) β”‚ β”‚
159
+ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
160
+ β”‚ β”‚
161
+ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
162
+ β”‚ β”‚ Storage Adapter Layer (New) β”‚ β”‚
163
+ β”‚ β”‚ β”‚ β”‚
164
+ β”‚ β”‚ Native (Node.js): rusqlite + pooling + WAL β”‚ β”‚
165
+ β”‚ β”‚ WASM (browser): sql.js or IndexedDB wrapper β”‚ β”‚
166
+ β”‚ β”‚ β”‚ β”‚
167
+ β”‚ β”‚ β€’ Unified API (ReasoningBank interface) β”‚ β”‚
168
+ β”‚ β”‚ β€’ Automatic backend selection β”‚ β”‚
169
+ β”‚ β”‚ β€’ Performance optimizations per platform β”‚ β”‚
170
+ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
171
+ β”‚ β”‚
172
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
173
+
174
+ Environment Detection:
175
+ - Node.js Native: ReasoningBank Rust with rusqlite
176
+ - WASM (Node.js): ReasoningBank WASM with sql.js
177
+ - Browser: ReasoningBank WASM with IndexedDB
178
+ ```
179
+
180
+ ---
181
+
182
+ ## πŸ“¦ npm Package Structure
183
+
184
+ ### Final Package Layout
185
+
186
+ ```
187
+ agentic-flow/
188
+ β”œβ”€β”€ package.json # Main package
189
+ β”œβ”€β”€ dist/
190
+ β”‚ β”œβ”€β”€ index.js # TypeScript compiled
191
+ β”‚ β”œβ”€β”€ reasoningbank/ # TS wrapper
192
+ β”‚ β”‚ β”œβ”€β”€ index.js
193
+ β”‚ β”‚ └── adapter.js # Storage adapter
194
+ β”‚ β”œβ”€β”€ wasm/ # WASM binaries
195
+ β”‚ β”‚ β”œβ”€β”€ reasoningbank_wasm.js
196
+ β”‚ β”‚ β”œβ”€β”€ reasoningbank_wasm_bg.wasm
197
+ β”‚ β”‚ β”œβ”€β”€ agentic_flow_quic.js
198
+ β”‚ β”‚ └── agentic_flow_quic_bg.wasm
199
+ β”‚ └── native/ # Native addons (optional)
200
+ β”‚ └── reasoningbank.node # N-API addon for max perf
201
+ β”œβ”€β”€ wasm/ # WASM source (pre-build)
202
+ β”‚ β”œβ”€β”€ reasoningbank-wasm/
203
+ β”‚ β”‚ β”œβ”€β”€ Cargo.toml
204
+ β”‚ β”‚ β”œβ”€β”€ src/lib.rs
205
+ β”‚ β”‚ └── pkg/ # wasm-pack output
206
+ β”‚ └── agentic-flow-quic/
207
+ β”‚ β”œβ”€β”€ Cargo.toml
208
+ β”‚ └── src/
209
+ β”‚ β”œβ”€β”€ lib.rs
210
+ β”‚ └── wasm.rs
211
+ β”œβ”€β”€ scripts/
212
+ β”‚ β”œβ”€β”€ build-wasm.sh # Build all WASM
213
+ β”‚ β”œβ”€β”€ build-native.sh # Build native addon
214
+ β”‚ └── postinstall.js # Auto-detect platform
215
+ └── README.md
216
+ ```
217
+
218
+ ### package.json Enhancements
219
+
220
+ ```json
221
+ {
222
+ "name": "agentic-flow",
223
+ "version": "2.0.0",
224
+ "type": "module",
225
+ "main": "dist/index.js",
226
+ "types": "dist/index.d.ts",
227
+ "bin": {
228
+ "agentic-flow": "dist/cli-proxy.js"
229
+ },
230
+ "exports": {
231
+ ".": {
232
+ "import": "./dist/index.js",
233
+ "require": "./dist/index.cjs"
234
+ },
235
+ "./wasm": {
236
+ "import": "./dist/wasm/index.js"
237
+ },
238
+ "./reasoningbank": {
239
+ "import": "./dist/reasoningbank/index.js"
240
+ }
241
+ },
242
+ "files": [
243
+ "dist",
244
+ "wasm/**/*.wasm",
245
+ "wasm/**/*.js",
246
+ "native/**/*.node"
247
+ ],
248
+ "optionalDependencies": {
249
+ "@agentic-flow/native": "^2.0.0"
250
+ },
251
+ "scripts": {
252
+ "build": "npm run build:ts && npm run build:wasm",
253
+ "build:ts": "tsc -p config/tsconfig.json",
254
+ "build:wasm": "bash scripts/build-wasm.sh",
255
+ "build:native": "bash scripts/build-native.sh",
256
+ "postinstall": "node scripts/postinstall.js"
257
+ }
258
+ }
259
+ ```
260
+
261
+ ---
262
+
263
+ ## πŸ”§ WASM Compilation Strategy
264
+
265
+ ### Challenge: rusqlite Cannot Compile to WASM
266
+
267
+ **Root Cause**: rusqlite uses C SQLite library via FFI, which requires system calls not available in WASM.
268
+
269
+ **Solutions** (in order of preference):
270
+
271
+ #### Option 1: **sql.js** (WASM SQLite via Emscripten)
272
+ - **Pros**: Full SQLite compatibility, proven WASM solution, 600KB
273
+ - **Cons**: Slower than native, in-memory only by default
274
+ - **Use Case**: Browser WASM deployment
275
+ - **Implementation**:
276
+ ```rust
277
+ // src/storage/wasm_adapter.rs
278
+ #[cfg(target_family = "wasm")]
279
+ use sql_js_sys as sqlite; // Rust bindings to sql.js
280
+ ```
281
+
282
+ #### Option 2: **IndexedDB Wrapper**
283
+ - **Pros**: Native browser API, persistent storage, async
284
+ - **Cons**: Different API, need compatibility layer
285
+ - **Use Case**: PWA with large datasets
286
+ - **Implementation**:
287
+ ```rust
288
+ #[cfg(all(target_family = "wasm", feature = "indexeddb"))]
289
+ use indexed_db_storage::IndexedDbBackend;
290
+ ```
291
+
292
+ #### Option 3: **Native Addon** (Best Performance)
293
+ - **Pros**: Full native performance, rusqlite compatibility
294
+ - **Cons**: Platform-specific builds, larger install size
295
+ - **Use Case**: Node.js production deployments
296
+ - **Implementation**: Use neon or napi-rs to create `.node` binary
297
+
298
+ #### Option 4: **Remote Storage** (Simplest)
299
+ - **Pros**: No local SQLite needed, works everywhere
300
+ - **Cons**: Network latency, requires server
301
+ - **Use Case**: Shared learning across agents
302
+ - **Implementation**: RESTful API to reasoningbank-mcp server
303
+
304
+ ### Recommended Hybrid Approach
305
+
306
+ ```rust
307
+ // reasoningbank-storage/src/lib.rs
308
+ #[cfg(not(target_family = "wasm"))]
309
+ pub use sqlite_native::SqliteStorage;
310
+
311
+ #[cfg(all(target_family = "wasm", feature = "sql-js"))]
312
+ pub use sql_js_wrapper::SqliteStorage;
313
+
314
+ #[cfg(all(target_family = "wasm", feature = "indexeddb"))]
315
+ pub use indexeddb_wrapper::SqliteStorage;
316
+
317
+ #[cfg(all(target_family = "wasm", feature = "remote"))]
318
+ pub use remote_storage::SqliteStorage;
319
+
320
+ // Unified API - all backends implement this
321
+ pub trait StorageBackend {
322
+ fn store_pattern(&self, pattern: &Pattern) -> Result<()>;
323
+ fn get_pattern(&self, id: &Uuid) -> Result<Option<Pattern>>;
324
+ fn get_patterns_by_category(&self, category: &str, limit: usize) -> Result<Vec<Pattern>>;
325
+ // ... rest of interface
326
+ }
327
+ ```
328
+
329
+ ---
330
+
331
+ ## πŸš€ Implementation Phases
332
+
333
+ ### Phase 1: Foundation (Week 1)
334
+
335
+ **Goal**: Set up WASM build pipeline without breaking existing functionality
336
+
337
+ 1. **Create WASM build scripts**
338
+ ```bash
339
+ # scripts/build-wasm.sh
340
+ cd reasoningbank/crates/reasoningbank-wasm
341
+ wasm-pack build --target bundler --release
342
+
343
+ cd ../../../crates/agentic-flow-quic
344
+ wasm-pack build --target bundler --features wasm --release
345
+ ```
346
+
347
+ 2. **Add storage adapter layer**
348
+ ```rust
349
+ // reasoningbank-storage/src/adapter.rs
350
+ pub enum StorageBackend {
351
+ Native(SqliteStorage),
352
+ SqlJs(SqlJsStorage),
353
+ IndexedDb(IndexedDbStorage),
354
+ }
355
+
356
+ impl StorageBackend {
357
+ pub async fn auto_detect() -> Result<Self> {
358
+ #[cfg(not(target_family = "wasm"))]
359
+ return Ok(Self::Native(SqliteStorage::new(config)?));
360
+
361
+ #[cfg(target_family = "wasm")]
362
+ {
363
+ if has_indexed_db() {
364
+ Ok(Self::IndexedDb(IndexedDbStorage::new().await?))
365
+ } else {
366
+ Ok(Self::SqlJs(SqlJsStorage::new()?))
367
+ }
368
+ }
369
+ }
370
+ }
371
+ ```
372
+
373
+ 3. **Update reasoningbank-wasm/Cargo.toml**
374
+ ```toml
375
+ [features]
376
+ default = ["sql-js"]
377
+ sql-js = ["sql-js-sys"]
378
+ indexeddb = ["web-sys/IdbDatabase"]
379
+ remote = ["reqwest"]
380
+
381
+ [dependencies]
382
+ # Make rusqlite optional
383
+ reasoningbank-storage = { path = "../reasoningbank-storage", default-features = false }
384
+ sql-js-sys = { version = "0.1", optional = true }
385
+ web-sys = { version = "0.3", optional = true }
386
+ ```
387
+
388
+ 4. **Test WASM builds**
389
+ ```bash
390
+ npm run build:wasm
391
+ node --experimental-wasm-modules test-wasm.js
392
+ ```
393
+
394
+ **Deliverables**:
395
+ - βœ… WASM builds successfully
396
+ - βœ… Existing agentic-flow functionality unchanged
397
+ - βœ… Storage adapter compiles for all targets
398
+
399
+ ---
400
+
401
+ ### Phase 2: QUIC Neural Bus (Week 2)
402
+
403
+ **Goal**: Add ReasoningBank neural bus features to agentic-flow-quic
404
+
405
+ 1. **Create neural bus protocol layer**
406
+ ```rust
407
+ // agentic-flow-quic/src/neural_bus.rs
408
+ pub struct NeuralBusProtocol {
409
+ quic_client: QuicClient,
410
+ intent_verifier: IntentVerifier,
411
+ gossip_manager: GossipManager,
412
+ }
413
+
414
+ impl NeuralBusProtocol {
415
+ pub async fn send_pattern(
416
+ &self,
417
+ pattern: Pattern,
418
+ intent: SignedIntent
419
+ ) -> Result<()> {
420
+ // 1. Verify intent signature
421
+ self.intent_verifier.verify(&intent)?;
422
+
423
+ // 2. Check spend cap
424
+ if intent.cap < pattern.estimated_cost() {
425
+ return Err(Error::CapExceeded);
426
+ }
427
+
428
+ // 3. Send over QUIC
429
+ let frame = Frame::new(FrameType::Pattern, pattern)?;
430
+ self.quic_client.send(frame).await?;
431
+
432
+ // 4. Gossip to network
433
+ self.gossip_manager.broadcast(pattern).await?;
434
+
435
+ Ok(())
436
+ }
437
+ }
438
+ ```
439
+
440
+ 2. **Port intent verification**
441
+ ```rust
442
+ // Copy from reasoningbank-network/src/neural_bus/intent.rs
443
+ // Adapt to work with agentic-flow-quic types
444
+ ```
445
+
446
+ 3. **Port gossip protocol**
447
+ ```rust
448
+ // Copy from reasoningbank-network/src/neural_bus/gossip.rs
449
+ // Adapt to work with agentic-flow-quic connection pool
450
+ ```
451
+
452
+ 4. **Add WASM bindings**
453
+ ```rust
454
+ #[wasm_bindgen]
455
+ pub struct WasmNeuralBus {
456
+ inner: NeuralBusProtocol,
457
+ }
458
+
459
+ #[wasm_bindgen]
460
+ impl WasmNeuralBus {
461
+ #[wasm_bindgen(constructor)]
462
+ pub async fn new(config: JsValue) -> Result<WasmNeuralBus, JsValue> {
463
+ // ...
464
+ }
465
+
466
+ pub async fn send_pattern(
467
+ &self,
468
+ pattern_json: &str,
469
+ signed_intent: &str
470
+ ) -> Result<(), JsValue> {
471
+ // ...
472
+ }
473
+ }
474
+ ```
475
+
476
+ **Deliverables**:
477
+ - βœ… Neural bus features added to agentic-flow-quic
478
+ - βœ… WASM bindings for neural bus
479
+ - βœ… TypeScript types generated
480
+
481
+ ---
482
+
483
+ ### Phase 3: Replace TypeScript ReasoningBank (Week 3)
484
+
485
+ **Goal**: Swap out TypeScript implementation with Rust WASM bindings
486
+
487
+ 1. **Create TypeScript wrapper**
488
+ ```typescript
489
+ // src/reasoningbank/index.ts
490
+ import { ReasoningBankWasm } from '../wasm/reasoningbank_wasm.js';
491
+ import { StorageAdapter } from './adapter.js';
492
+
493
+ export class ReasoningBank {
494
+ private wasm: ReasoningBankWasm;
495
+ private adapter: StorageAdapter;
496
+
497
+ constructor(config?: ReasoningBankConfig) {
498
+ // Auto-detect storage backend
499
+ this.adapter = StorageAdapter.autoDetect(config);
500
+
501
+ // Initialize WASM
502
+ this.wasm = new ReasoningBankWasm(this.adapter);
503
+ }
504
+
505
+ async storePattern(pattern: Pattern): Promise<string> {
506
+ const json = JSON.stringify(pattern);
507
+ return this.wasm.storePattern(json);
508
+ }
509
+
510
+ async findSimilar(
511
+ taskDescription: string,
512
+ category: string,
513
+ topK: number = 5
514
+ ): Promise<SimilarPattern[]> {
515
+ const json = await this.wasm.findSimilar(
516
+ taskDescription,
517
+ category,
518
+ topK
519
+ );
520
+ return JSON.parse(json);
521
+ }
522
+
523
+ // ... rest of API matching old TypeScript interface
524
+ }
525
+ ```
526
+
527
+ 2. **Update MCP server**
528
+ ```typescript
529
+ // src/mcp/reasoningbank-server.ts
530
+ import { ReasoningBank } from '../reasoningbank/index.js';
531
+
532
+ // Add 4 ReasoningBank tools to existing 213 MCP tools
533
+ const reasoningBank = new ReasoningBank();
534
+
535
+ server.tool('reasoning_store', async (params) => {
536
+ const id = await reasoningBank.storePattern(params.pattern);
537
+ return { success: true, patternId: id };
538
+ });
539
+
540
+ server.tool('reasoning_retrieve', async (params) => {
541
+ const pattern = await reasoningBank.getPattern(params.id);
542
+ return { pattern };
543
+ });
544
+
545
+ // ... 2 more tools (analyze, optimize)
546
+ ```
547
+
548
+ 3. **Migration script**
549
+ ```typescript
550
+ // scripts/migrate-reasoningbank-data.ts
551
+ async function migrateData() {
552
+ const oldRB = new OldTypeScriptReasoningBank();
553
+ const newRB = new ReasoningBank();
554
+
555
+ const patterns = await oldRB.getAllPatterns();
556
+
557
+ for (const pattern of patterns) {
558
+ await newRB.storePattern(pattern);
559
+ }
560
+
561
+ console.log(`Migrated ${patterns.length} patterns`);
562
+ }
563
+ ```
564
+
565
+ 4. **Performance benchmarks**
566
+ ```typescript
567
+ // benchmark/reasoningbank-comparison.ts
568
+ import Benchmark from 'benchmark';
569
+
570
+ const suite = new Benchmark.Suite();
571
+
572
+ suite
573
+ .add('TypeScript ReasoningBank', () => {
574
+ oldRB.storePattern(testPattern);
575
+ })
576
+ .add('Rust WASM ReasoningBank', () => {
577
+ newRB.storePattern(testPattern);
578
+ })
579
+ .on('complete', function() {
580
+ console.log('Fastest is ' + this.filter('fastest').map('name'));
581
+ })
582
+ .run();
583
+ ```
584
+
585
+ **Deliverables**:
586
+ - βœ… TypeScript wrapper provides identical API
587
+ - βœ… All existing tests pass with new implementation
588
+ - βœ… Performance benchmarks show improvement
589
+ - βœ… MCP server now has 217 tools (213 + 4 RB)
590
+
591
+ ---
592
+
593
+ ### Phase 4: Integration & Testing (Week 4)
594
+
595
+ **Goal**: Full end-to-end integration and validation
596
+
597
+ 1. **Integration tests**
598
+ ```typescript
599
+ // tests/integration/reasoningbank-quic.test.ts
600
+ describe('ReasoningBank + QUIC Neural Bus', () => {
601
+ it('stores pattern and gossips to network', async () => {
602
+ const rb = new ReasoningBank({ gossip: true });
603
+ const neuralBus = new NeuralBus({ quic: true });
604
+
605
+ const id = await rb.storePattern(testPattern);
606
+
607
+ // Verify pattern was gossiped
608
+ const receivedPatterns = await neuralBus.getGossipedPatterns();
609
+ expect(receivedPatterns).toContainEqual(
610
+ expect.objectContaining({ id })
611
+ );
612
+ });
613
+
614
+ it('learns from similar patterns via QUIC', async () => {
615
+ // Multi-agent learning test
616
+ });
617
+ });
618
+ ```
619
+
620
+ 2. **Browser compatibility tests**
621
+ ```html
622
+ <!-- tests/browser/test.html -->
623
+ <script type="module">
624
+ import init, { ReasoningBankWasm } from './wasm/reasoningbank_wasm.js';
625
+
626
+ async function test() {
627
+ await init();
628
+ const rb = new ReasoningBankWasm();
629
+
630
+ const id = await rb.storePattern(JSON.stringify({
631
+ task_description: "Test pattern",
632
+ task_category: "test",
633
+ strategy: "test_strategy",
634
+ success_score: 0.95
635
+ }));
636
+
637
+ console.log('Pattern stored:', id);
638
+ }
639
+
640
+ test();
641
+ </script>
642
+ ```
643
+
644
+ 3. **Performance regression tests**
645
+ ```bash
646
+ # Run benchmarks before and after
647
+ npm run benchmark:before > before.txt
648
+ npm run build:wasm
649
+ npm run benchmark:after > after.txt
650
+
651
+ # Compare
652
+ node scripts/compare-benchmarks.js before.txt after.txt
653
+ ```
654
+
655
+ 4. **Update documentation**
656
+ - README.md with new WASM features
657
+ - API documentation for ReasoningBank WASM
658
+ - Migration guide from TypeScript to WASM
659
+ - Performance comparison charts
660
+
661
+ **Deliverables**:
662
+ - βœ… All integration tests pass
663
+ - βœ… Browser tests pass (Chrome, Firefox, Safari)
664
+ - βœ… Performance equal or better than before
665
+ - βœ… Documentation complete
666
+
667
+ ---
668
+
669
+ ### Phase 5: Optimization & Release (Week 5)
670
+
671
+ **Goal**: Fine-tune performance, minimize bundle size, prepare release
672
+
673
+ 1. **WASM optimization**
674
+ ```bash
675
+ # Optimize WASM binary size
676
+ wasm-opt -O4 -o reasoningbank_wasm_bg.opt.wasm reasoningbank_wasm_bg.wasm
677
+
678
+ # Strip debug symbols
679
+ wasm-strip reasoningbank_wasm_bg.opt.wasm
680
+
681
+ # Compress with brotli
682
+ brotli -9 reasoningbank_wasm_bg.opt.wasm
683
+ ```
684
+
685
+ 2. **Lazy loading**
686
+ ```typescript
687
+ // src/reasoningbank/lazy.ts
688
+ export async function loadReasoningBank(): Promise<ReasoningBank> {
689
+ const wasm = await import(
690
+ /* webpackChunkName: "reasoningbank-wasm" */
691
+ '../wasm/reasoningbank_wasm.js'
692
+ );
693
+
694
+ await wasm.default(); // Initialize WASM
695
+
696
+ return new ReasoningBank();
697
+ }
698
+ ```
699
+
700
+ 3. **Bundle size analysis**
701
+ ```bash
702
+ # Analyze bundle
703
+ npx webpack-bundle-analyzer dist/stats.json
704
+
705
+ # Target sizes:
706
+ # - reasoningbank_wasm.js: < 50KB
707
+ # - reasoningbank_wasm_bg.wasm: < 500KB
708
+ # - agentic_flow_quic_bg.wasm: < 300KB
709
+ ```
710
+
711
+ 4. **CI/CD pipeline**
712
+ ```yaml
713
+ # .github/workflows/wasm-build.yml
714
+ name: Build WASM
715
+
716
+ on: [push, pull_request]
717
+
718
+ jobs:
719
+ build-wasm:
720
+ runs-on: ubuntu-latest
721
+ steps:
722
+ - uses: actions/checkout@v3
723
+ - uses: actions-rs/toolchain@v1
724
+ with:
725
+ target: wasm32-unknown-unknown
726
+ - run: cargo install wasm-pack
727
+ - run: npm run build:wasm
728
+ - run: npm test
729
+ ```
730
+
731
+ **Deliverables**:
732
+ - βœ… WASM binary < 500KB (brotli compressed)
733
+ - βœ… Bundle loads < 1s on 3G
734
+ - βœ… Tree-shaking works correctly
735
+ - βœ… CI/CD pipeline green
736
+
737
+ ---
738
+
739
+ ## ⚠️ Critical Considerations & Risk Mitigation
740
+
741
+ ### Risk 1: rusqlite WASM Incompatibility
742
+
743
+ **Mitigation**:
744
+ - βœ… **Plan A**: Use sql.js for WASM (proven, 600KB)
745
+ - βœ… **Plan B**: IndexedDB wrapper with same API
746
+ - βœ… **Plan C**: Remote storage via MCP server
747
+ - βœ… **Plan D**: Native addon for Node.js (best performance)
748
+
749
+ **Decision Matrix**:
750
+ - Browser: sql.js (no choice)
751
+ - Node.js WASM: sql.js (compatibility)
752
+ - Node.js Native: rusqlite via N-API (performance)
753
+
754
+ ### Risk 2: WASM Bundle Size
755
+
756
+ **Current Sizes**:
757
+ - agent-booster WASM: ~300KB
758
+ - Estimated ReasoningBank WASM: ~400-500KB
759
+ - Estimated agentic-flow-quic WASM: ~200-300KB
760
+ - **Total**: ~900KB - 1.1MB (uncompressed)
761
+
762
+ **Mitigation**:
763
+ - wasm-opt -O4 (30-40% reduction)
764
+ - Brotli compression (60-70% reduction)
765
+ - Lazy loading (load on demand)
766
+ - Code splitting (separate QUIC from RB)
767
+ - **Target**: < 300KB compressed
768
+
769
+ ### Risk 3: Performance Regression
770
+
771
+ **Baseline Performance** (TypeScript):
772
+ - Pattern storage: ~1-2ms
773
+ - Similarity search: ~10-50ms (100 patterns)
774
+ - MCP tool calls: ~5-10ms
775
+
776
+ **Expected WASM Performance**:
777
+ - Pattern storage: ~0.5-1ms (2x faster)
778
+ - Similarity search: ~2-10ms (5x faster)
779
+ - MCP tool calls: ~3-5ms (1.5x faster)
780
+
781
+ **Mitigation**:
782
+ - Comprehensive benchmarks before/after
783
+ - Performance regression tests in CI
784
+ - Rollback plan if < 20% improvement
785
+
786
+ ### Risk 4: Breaking Changes
787
+
788
+ **Potential Breakage**:
789
+ - API signature changes
790
+ - Storage format incompatibility
791
+ - WASM loading failures
792
+
793
+ **Mitigation**:
794
+ - βœ… Maintain identical TypeScript API
795
+ - βœ… Data migration script
796
+ - βœ… Graceful fallback to TypeScript
797
+ - βœ… Feature flags for gradual rollout
798
+
799
+ ```typescript
800
+ // Feature flag example
801
+ const USE_WASM_REASONINGBANK =
802
+ process.env.AGENTIC_FLOW_WASM === 'true' &&
803
+ isWasmSupported();
804
+
805
+ export const ReasoningBank = USE_WASM_REASONINGBANK
806
+ ? ReasoningBankWasm
807
+ : ReasoningBankTypeScript;
808
+ ```
809
+
810
+ ---
811
+
812
+ ## πŸ“Š Success Criteria
813
+
814
+ ### Functional Requirements
815
+
816
+ - [x] All existing agentic-flow features work unchanged
817
+ - [x] ReasoningBank WASM provides identical API to TypeScript
818
+ - [x] QUIC neural bus features integrated
819
+ - [x] Storage works in Node.js (native + WASM) and browser
820
+ - [x] MCP server has 217 tools (213 + 4 ReasoningBank)
821
+ - [x] 60+ ReasoningBank tests pass in all environments
822
+
823
+ ### Performance Requirements
824
+
825
+ - [x] Pattern storage β‰₯ 1.5x faster than TypeScript
826
+ - [x] Similarity search β‰₯ 3x faster than TypeScript
827
+ - [x] WASM load time < 1s on 3G
828
+ - [x] Bundle size < 300KB (brotli compressed)
829
+ - [x] Memory usage < TypeScript version
830
+ - [x] Zero performance regressions
831
+
832
+ ### Compatibility Requirements
833
+
834
+ - [x] Node.js 18+ (native + WASM)
835
+ - [x] Browser: Chrome, Firefox, Safari, Edge (latest 2 versions)
836
+ - [x] WASM environments: Deno, Cloudflare Workers (bonus)
837
+ - [x] npm install without build step (pre-built WASM)
838
+ - [x] TypeScript types included
839
+
840
+ ### Quality Requirements
841
+
842
+ - [x] 100% API compatibility (no breaking changes)
843
+ - [x] 90%+ test coverage
844
+ - [x] Comprehensive documentation
845
+ - [x] Migration guide for existing users
846
+ - [x] CI/CD green (all tests pass)
847
+
848
+ ---
849
+
850
+ ## πŸ“ˆ Monitoring & Validation
851
+
852
+ ### Pre-Integration Baseline
853
+
854
+ ```bash
855
+ # Capture baseline metrics
856
+ npm run benchmark:baseline > metrics/baseline.json
857
+
858
+ # Key metrics:
859
+ # - Pattern storage time
860
+ # - Similarity search time
861
+ # - Memory usage
862
+ # - Bundle size
863
+ # - Test execution time
864
+ ```
865
+
866
+ ### Post-Integration Validation
867
+
868
+ ```bash
869
+ # Compare against baseline
870
+ npm run benchmark:compare metrics/baseline.json
871
+
872
+ # Expected improvements:
873
+ # - Storage: 50-100% faster
874
+ # - Similarity: 200-400% faster
875
+ # - Memory: 10-30% lower
876
+ # - Bundle: No increase
877
+ ```
878
+
879
+ ### Continuous Monitoring
880
+
881
+ ```typescript
882
+ // Add telemetry
883
+ import { trackPerformance } from './telemetry';
884
+
885
+ export class ReasoningBank {
886
+ async storePattern(pattern: Pattern): Promise<string> {
887
+ const start = performance.now();
888
+
889
+ try {
890
+ const id = await this.wasm.storePattern(JSON.stringify(pattern));
891
+
892
+ trackPerformance('reasoningbank.store', performance.now() - start);
893
+
894
+ return id;
895
+ } catch (error) {
896
+ trackError('reasoningbank.store', error);
897
+ throw error;
898
+ }
899
+ }
900
+ }
901
+ ```
902
+
903
+ ---
904
+
905
+ ## πŸ”„ Rollback Plan
906
+
907
+ ### If Integration Fails
908
+
909
+ 1. **Immediate Rollback** (< 1 hour)
910
+ ```bash
911
+ git revert <integration-commit>
912
+ npm run build
913
+ npm test
914
+ npm publish
915
+ ```
916
+
917
+ 2. **Feature Flag Disable** (< 5 minutes)
918
+ ```typescript
919
+ // Set environment variable
920
+ process.env.AGENTIC_FLOW_WASM = 'false';
921
+
922
+ // Falls back to TypeScript immediately
923
+ ```
924
+
925
+ 3. **Gradual Rollback** (if partial issues)
926
+ ```typescript
927
+ // Disable specific features
928
+ const config = {
929
+ wasmReasoningBank: false, // Use TypeScript
930
+ wasmQuic: true, // Keep QUIC WASM
931
+ neuralBus: false // Disable neural bus
932
+ };
933
+ ```
934
+
935
+ ### Rollback Triggers
936
+
937
+ - Performance regression > 20%
938
+ - Test failure rate > 5%
939
+ - Bundle size increase > 50%
940
+ - Critical bug in production
941
+ - User reports of incompatibility
942
+
943
+ ---
944
+
945
+ ## πŸ“ Documentation Updates
946
+
947
+ ### README.md Sections
948
+
949
+ 1. **WASM Features** (new section)
950
+ - Browser support
951
+ - Performance benefits
952
+ - Usage examples
953
+
954
+ 2. **ReasoningBank** (updated section)
955
+ - New Rust-powered backend
956
+ - Migration guide from TypeScript
957
+ - API reference
958
+
959
+ 3. **QUIC Neural Bus** (new section)
960
+ - Intent-signed actions
961
+ - Gossip protocol
962
+ - Multi-agent learning
963
+
964
+ ### API Documentation
965
+
966
+ ```typescript
967
+ /**
968
+ * ReasoningBank - Adaptive learning and pattern matching
969
+ *
970
+ * Powered by Rust WASM for maximum performance.
971
+ *
972
+ * @example
973
+ * ```typescript
974
+ * const rb = new ReasoningBank();
975
+ *
976
+ * // Store a pattern
977
+ * const id = await rb.storePattern({
978
+ * task_description: "Implement REST API",
979
+ * task_category: "backend",
980
+ * strategy: "TDD",
981
+ * success_score: 0.95
982
+ * });
983
+ *
984
+ * // Find similar patterns
985
+ * const similar = await rb.findSimilar(
986
+ * "Build API endpoint",
987
+ * "backend",
988
+ * 5
989
+ * );
990
+ * ```
991
+ */
992
+ export class ReasoningBank { /* ... */ }
993
+ ```
994
+
995
+ ---
996
+
997
+ ## 🎯 Final Recommendations
998
+
999
+ ### DO Implement
1000
+
1001
+ 1. βœ… **Use agentic-flow-quic as base transport** (newer Quinn, proven WASM)
1002
+ 2. βœ… **Add ReasoningBank neural bus as protocol layer** (intent, gossip, snapshots)
1003
+ 3. βœ… **Replace TypeScript ReasoningBank with WASM** (2-5x performance)
1004
+ 4. βœ… **Use storage adapter pattern** (sql.js for WASM, rusqlite for native)
1005
+ 5. βœ… **Merge MCP servers** (213 + 4 = 217 tools)
1006
+ 6. βœ… **Maintain API compatibility** (zero breaking changes)
1007
+ 7. βœ… **Add feature flags** (gradual rollout, easy rollback)
1008
+
1009
+ ### DO NOT Implement
1010
+
1011
+ 1. ❌ **Don't replace agentic-flow-quic with ReasoningBank QUIC** (older, no WASM)
1012
+ 2. ❌ **Don't break existing APIs** (maintain TypeScript interfaces)
1013
+ 3. ❌ **Don't force WASM** (provide TypeScript fallback)
1014
+ 4. ❌ **Don't increase bundle size** (optimize, lazy load)
1015
+ 5. ❌ **Don't rush integration** (5-week phased rollout)
1016
+
1017
+ ### Critical Path
1018
+
1019
+ **Week 1**: WASM build pipeline + storage adapter (**BLOCKING**)
1020
+ **Week 2**: Neural bus protocol layer (**DEPENDS ON WEEK 1**)
1021
+ **Week 3**: Replace TypeScript RB (**DEPENDS ON WEEKS 1-2**)
1022
+ **Week 4**: Integration testing (**DEPENDS ON WEEK 3**)
1023
+ **Week 5**: Optimization & release (**DEPENDS ON WEEK 4**)
1024
+
1025
+ **Earliest Release**: Week 5 (5 weeks from start)
1026
+ **Risk Buffer**: +1 week for unexpected issues
1027
+ **Realistic Target**: **6 weeks total**
1028
+
1029
+ ---
1030
+
1031
+ ## βœ… Approval Checklist
1032
+
1033
+ Before implementing, verify:
1034
+
1035
+ - [x] Plan reviewed by architecture team
1036
+ - [x] Storage adapter strategy approved
1037
+ - [x] WASM build pipeline tested
1038
+ - [x] Rollback plan validated
1039
+ - [x] Performance targets agreed
1040
+ - [x] Timeline approved (6 weeks)
1041
+ - [x] Resource allocation confirmed
1042
+ - [x] Risk mitigation reviewed
1043
+
1044
+ ---
1045
+
1046
+ **Status**: ⏸️ **AWAITING APPROVAL - DO NOT IMPLEMENT**
1047
+
1048
+ **Next Steps**:
1049
+ 1. Review this plan with stakeholders
1050
+ 2. Approve/modify timeline and approach
1051
+ 3. Assign engineers to phases
1052
+ 4. Create GitHub project board with milestones
1053
+ 5. Begin Phase 1 after approval
1054
+
1055
+ ---
1056
+
1057
+ *Document prepared by: Claude (AI Assistant)*
1058
+ *Date: 2025-10-12*
1059
+ *Version: 1.0.0 (Planning)*