@sparkleideas/cli 3.1.0-alpha.19 → 3.1.0-alpha.21

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 (682) hide show
  1. package/dist/src/appliance/gguf-engine.d.ts +91 -0
  2. package/dist/src/appliance/gguf-engine.d.ts.map +1 -0
  3. package/dist/src/appliance/gguf-engine.js +425 -0
  4. package/dist/src/appliance/gguf-engine.js.map +1 -0
  5. package/dist/src/appliance/ruvllm-bridge.d.ts +102 -0
  6. package/dist/src/appliance/ruvllm-bridge.d.ts.map +1 -0
  7. package/dist/src/appliance/ruvllm-bridge.js +292 -0
  8. package/dist/src/appliance/ruvllm-bridge.js.map +1 -0
  9. package/dist/src/appliance/rvfa-builder.d.ts +44 -0
  10. package/dist/src/appliance/rvfa-builder.d.ts.map +1 -0
  11. package/dist/src/appliance/rvfa-builder.js +329 -0
  12. package/dist/src/appliance/rvfa-builder.js.map +1 -0
  13. package/dist/src/appliance/rvfa-distribution.d.ts +97 -0
  14. package/dist/src/appliance/rvfa-distribution.d.ts.map +1 -0
  15. package/dist/src/appliance/rvfa-distribution.js +370 -0
  16. package/dist/src/appliance/rvfa-distribution.js.map +1 -0
  17. package/dist/src/appliance/rvfa-format.d.ts +111 -0
  18. package/dist/src/appliance/rvfa-format.d.ts.map +1 -0
  19. package/dist/src/appliance/rvfa-format.js +393 -0
  20. package/dist/src/appliance/rvfa-format.js.map +1 -0
  21. package/dist/src/appliance/rvfa-runner.d.ts +69 -0
  22. package/dist/src/appliance/rvfa-runner.d.ts.map +1 -0
  23. package/dist/src/appliance/rvfa-runner.js +237 -0
  24. package/dist/src/appliance/rvfa-runner.js.map +1 -0
  25. package/dist/src/appliance/rvfa-signing.d.ts +123 -0
  26. package/dist/src/appliance/rvfa-signing.d.ts.map +1 -0
  27. package/dist/src/appliance/rvfa-signing.js +347 -0
  28. package/dist/src/appliance/rvfa-signing.js.map +1 -0
  29. package/dist/src/benchmarks/pretrain/index.d.ts +58 -0
  30. package/dist/src/benchmarks/pretrain/index.d.ts.map +1 -0
  31. package/dist/src/benchmarks/pretrain/index.js +404 -0
  32. package/dist/src/benchmarks/pretrain/index.js.map +1 -0
  33. package/dist/src/commands/agent.d.ts +8 -0
  34. package/dist/src/commands/agent.d.ts.map +1 -0
  35. package/dist/src/commands/agent.js +819 -0
  36. package/dist/src/commands/agent.js.map +1 -0
  37. package/dist/src/commands/analyze.d.ts +19 -0
  38. package/dist/src/commands/analyze.d.ts.map +1 -0
  39. package/dist/src/commands/analyze.js +1823 -0
  40. package/dist/src/commands/analyze.js.map +1 -0
  41. package/dist/src/commands/appliance-advanced.d.ts +9 -0
  42. package/dist/src/commands/appliance-advanced.d.ts.map +1 -0
  43. package/dist/src/commands/appliance-advanced.js +215 -0
  44. package/dist/src/commands/appliance-advanced.js.map +1 -0
  45. package/dist/src/commands/appliance.d.ts +8 -0
  46. package/dist/src/commands/appliance.d.ts.map +1 -0
  47. package/dist/src/commands/appliance.js +406 -0
  48. package/dist/src/commands/appliance.js.map +1 -0
  49. package/dist/src/commands/benchmark.d.ts +10 -0
  50. package/dist/src/commands/benchmark.d.ts.map +1 -0
  51. package/dist/src/commands/benchmark.js +459 -0
  52. package/dist/src/commands/benchmark.js.map +1 -0
  53. package/dist/src/commands/categories.d.ts +75 -0
  54. package/dist/src/commands/categories.d.ts.map +1 -0
  55. package/dist/src/commands/categories.js +178 -0
  56. package/dist/src/commands/categories.js.map +1 -0
  57. package/dist/src/commands/claims.d.ts +10 -0
  58. package/dist/src/commands/claims.d.ts.map +1 -0
  59. package/dist/src/commands/claims.js +373 -0
  60. package/dist/src/commands/claims.js.map +1 -0
  61. package/dist/src/commands/completions.d.ts +10 -0
  62. package/dist/src/commands/completions.d.ts.map +1 -0
  63. package/dist/src/commands/completions.js +539 -0
  64. package/dist/src/commands/completions.js.map +1 -0
  65. package/dist/src/commands/config.d.ts +8 -0
  66. package/dist/src/commands/config.d.ts.map +1 -0
  67. package/dist/src/commands/config.js +406 -0
  68. package/dist/src/commands/config.js.map +1 -0
  69. package/dist/src/commands/daemon.d.ts +8 -0
  70. package/dist/src/commands/daemon.d.ts.map +1 -0
  71. package/dist/src/commands/daemon.js +609 -0
  72. package/dist/src/commands/daemon.js.map +1 -0
  73. package/dist/src/commands/deployment.d.ts +10 -0
  74. package/dist/src/commands/deployment.d.ts.map +1 -0
  75. package/dist/src/commands/deployment.js +289 -0
  76. package/dist/src/commands/deployment.js.map +1 -0
  77. package/dist/src/commands/doctor.d.ts +10 -0
  78. package/dist/src/commands/doctor.d.ts.map +1 -0
  79. package/dist/src/commands/doctor.js +602 -0
  80. package/dist/src/commands/doctor.js.map +1 -0
  81. package/dist/src/commands/embeddings.d.ts +18 -0
  82. package/dist/src/commands/embeddings.d.ts.map +1 -0
  83. package/dist/src/commands/embeddings.js +1576 -0
  84. package/dist/src/commands/embeddings.js.map +1 -0
  85. package/dist/src/commands/guidance.d.ts +8 -0
  86. package/dist/src/commands/guidance.d.ts.map +1 -0
  87. package/dist/src/commands/guidance.js +560 -0
  88. package/dist/src/commands/guidance.js.map +1 -0
  89. package/dist/src/commands/hive-mind.d.ts +11 -0
  90. package/dist/src/commands/hive-mind.d.ts.map +1 -0
  91. package/dist/src/commands/hive-mind.js +1230 -0
  92. package/dist/src/commands/hive-mind.js.map +1 -0
  93. package/dist/src/commands/hooks.d.ts +8 -0
  94. package/dist/src/commands/hooks.d.ts.map +1 -0
  95. package/dist/src/commands/hooks.js +3759 -0
  96. package/dist/src/commands/hooks.js.map +1 -0
  97. package/dist/src/commands/index.d.ts +113 -0
  98. package/dist/src/commands/index.d.ts.map +1 -0
  99. package/dist/src/commands/index.js +368 -0
  100. package/dist/src/commands/index.js.map +1 -0
  101. package/dist/src/commands/init.d.ts +8 -0
  102. package/dist/src/commands/init.d.ts.map +1 -0
  103. package/dist/src/commands/init.js +965 -0
  104. package/dist/src/commands/init.js.map +1 -0
  105. package/dist/src/commands/issues.d.ts +21 -0
  106. package/dist/src/commands/issues.d.ts.map +1 -0
  107. package/dist/src/commands/issues.js +567 -0
  108. package/dist/src/commands/issues.js.map +1 -0
  109. package/dist/src/commands/mcp.d.ts +11 -0
  110. package/dist/src/commands/mcp.d.ts.map +1 -0
  111. package/dist/src/commands/mcp.js +715 -0
  112. package/dist/src/commands/mcp.js.map +1 -0
  113. package/dist/src/commands/memory.d.ts +8 -0
  114. package/dist/src/commands/memory.d.ts.map +1 -0
  115. package/dist/src/commands/memory.js +1292 -0
  116. package/dist/src/commands/memory.js.map +1 -0
  117. package/dist/src/commands/migrate.d.ts +8 -0
  118. package/dist/src/commands/migrate.d.ts.map +1 -0
  119. package/dist/src/commands/migrate.js +410 -0
  120. package/dist/src/commands/migrate.js.map +1 -0
  121. package/dist/src/commands/neural.d.ts +10 -0
  122. package/dist/src/commands/neural.d.ts.map +1 -0
  123. package/dist/src/commands/neural.js +1448 -0
  124. package/dist/src/commands/neural.js.map +1 -0
  125. package/dist/src/commands/performance.d.ts +10 -0
  126. package/dist/src/commands/performance.d.ts.map +1 -0
  127. package/dist/src/commands/performance.js +579 -0
  128. package/dist/src/commands/performance.js.map +1 -0
  129. package/dist/src/commands/plugins.d.ts +11 -0
  130. package/dist/src/commands/plugins.d.ts.map +1 -0
  131. package/dist/src/commands/plugins.js +820 -0
  132. package/dist/src/commands/plugins.js.map +1 -0
  133. package/dist/src/commands/process.d.ts +10 -0
  134. package/dist/src/commands/process.d.ts.map +1 -0
  135. package/dist/src/commands/process.js +641 -0
  136. package/dist/src/commands/process.js.map +1 -0
  137. package/dist/src/commands/progress.d.ts +11 -0
  138. package/dist/src/commands/progress.d.ts.map +1 -0
  139. package/dist/src/commands/progress.js +259 -0
  140. package/dist/src/commands/progress.js.map +1 -0
  141. package/dist/src/commands/providers.d.ts +10 -0
  142. package/dist/src/commands/providers.d.ts.map +1 -0
  143. package/dist/src/commands/providers.js +232 -0
  144. package/dist/src/commands/providers.js.map +1 -0
  145. package/dist/src/commands/route.d.ts +16 -0
  146. package/dist/src/commands/route.d.ts.map +1 -0
  147. package/dist/src/commands/route.js +813 -0
  148. package/dist/src/commands/route.js.map +1 -0
  149. package/dist/src/commands/ruvector/backup.d.ts +11 -0
  150. package/dist/src/commands/ruvector/backup.d.ts.map +1 -0
  151. package/dist/src/commands/ruvector/backup.js +746 -0
  152. package/dist/src/commands/ruvector/backup.js.map +1 -0
  153. package/dist/src/commands/ruvector/benchmark.d.ts +11 -0
  154. package/dist/src/commands/ruvector/benchmark.d.ts.map +1 -0
  155. package/dist/src/commands/ruvector/benchmark.js +480 -0
  156. package/dist/src/commands/ruvector/benchmark.js.map +1 -0
  157. package/dist/src/commands/ruvector/import.d.ts +18 -0
  158. package/dist/src/commands/ruvector/import.d.ts.map +1 -0
  159. package/dist/src/commands/ruvector/import.js +349 -0
  160. package/dist/src/commands/ruvector/import.js.map +1 -0
  161. package/dist/src/commands/ruvector/index.d.ts +29 -0
  162. package/dist/src/commands/ruvector/index.d.ts.map +1 -0
  163. package/dist/src/commands/ruvector/index.js +129 -0
  164. package/dist/src/commands/ruvector/index.js.map +1 -0
  165. package/dist/src/commands/ruvector/init.d.ts +11 -0
  166. package/dist/src/commands/ruvector/init.d.ts.map +1 -0
  167. package/dist/src/commands/ruvector/init.js +431 -0
  168. package/dist/src/commands/ruvector/init.js.map +1 -0
  169. package/dist/src/commands/ruvector/migrate.d.ts +11 -0
  170. package/dist/src/commands/ruvector/migrate.d.ts.map +1 -0
  171. package/dist/src/commands/ruvector/migrate.js +481 -0
  172. package/dist/src/commands/ruvector/migrate.js.map +1 -0
  173. package/dist/src/commands/ruvector/optimize.d.ts +11 -0
  174. package/dist/src/commands/ruvector/optimize.d.ts.map +1 -0
  175. package/dist/src/commands/ruvector/optimize.js +503 -0
  176. package/dist/src/commands/ruvector/optimize.js.map +1 -0
  177. package/dist/src/commands/ruvector/setup.d.ts +18 -0
  178. package/dist/src/commands/ruvector/setup.d.ts.map +1 -0
  179. package/dist/src/commands/ruvector/setup.js +765 -0
  180. package/dist/src/commands/ruvector/setup.js.map +1 -0
  181. package/dist/src/commands/ruvector/status.d.ts +11 -0
  182. package/dist/src/commands/ruvector/status.d.ts.map +1 -0
  183. package/dist/src/commands/ruvector/status.js +456 -0
  184. package/dist/src/commands/ruvector/status.js.map +1 -0
  185. package/dist/src/commands/security.d.ts +10 -0
  186. package/dist/src/commands/security.d.ts.map +1 -0
  187. package/dist/src/commands/security.js +575 -0
  188. package/dist/src/commands/security.js.map +1 -0
  189. package/dist/src/commands/session.d.ts +8 -0
  190. package/dist/src/commands/session.d.ts.map +1 -0
  191. package/dist/src/commands/session.js +750 -0
  192. package/dist/src/commands/session.js.map +1 -0
  193. package/dist/src/commands/start.d.ts +8 -0
  194. package/dist/src/commands/start.d.ts.map +1 -0
  195. package/dist/src/commands/start.js +418 -0
  196. package/dist/src/commands/start.js.map +1 -0
  197. package/dist/src/commands/status.d.ts +8 -0
  198. package/dist/src/commands/status.d.ts.map +1 -0
  199. package/dist/src/commands/status.js +591 -0
  200. package/dist/src/commands/status.js.map +1 -0
  201. package/dist/src/commands/swarm.d.ts +8 -0
  202. package/dist/src/commands/swarm.d.ts.map +1 -0
  203. package/dist/src/commands/swarm.js +748 -0
  204. package/dist/src/commands/swarm.js.map +1 -0
  205. package/dist/src/commands/task.d.ts +8 -0
  206. package/dist/src/commands/task.d.ts.map +1 -0
  207. package/dist/src/commands/task.js +671 -0
  208. package/dist/src/commands/task.js.map +1 -0
  209. package/dist/src/commands/transfer-store.d.ts +13 -0
  210. package/dist/src/commands/transfer-store.d.ts.map +1 -0
  211. package/dist/src/commands/transfer-store.js +428 -0
  212. package/dist/src/commands/transfer-store.js.map +1 -0
  213. package/dist/src/commands/update.d.ts +8 -0
  214. package/dist/src/commands/update.d.ts.map +1 -0
  215. package/dist/src/commands/update.js +276 -0
  216. package/dist/src/commands/update.js.map +1 -0
  217. package/dist/src/commands/workflow.d.ts +8 -0
  218. package/dist/src/commands/workflow.d.ts.map +1 -0
  219. package/dist/src/commands/workflow.js +617 -0
  220. package/dist/src/commands/workflow.js.map +1 -0
  221. package/dist/src/config-adapter.d.ts +15 -0
  222. package/dist/src/config-adapter.d.ts.map +1 -0
  223. package/dist/src/config-adapter.js +186 -0
  224. package/dist/src/config-adapter.js.map +1 -0
  225. package/dist/src/index.d.ts +76 -0
  226. package/dist/src/index.d.ts.map +1 -0
  227. package/dist/src/index.js +470 -0
  228. package/dist/src/index.js.map +1 -0
  229. package/dist/src/infrastructure/in-memory-repositories.d.ts +68 -0
  230. package/dist/src/infrastructure/in-memory-repositories.d.ts.map +1 -0
  231. package/dist/src/infrastructure/in-memory-repositories.js +264 -0
  232. package/dist/src/infrastructure/in-memory-repositories.js.map +1 -0
  233. package/dist/src/init/claudemd-generator.d.ts +25 -0
  234. package/dist/src/init/claudemd-generator.d.ts.map +1 -0
  235. package/dist/src/init/claudemd-generator.js +486 -0
  236. package/dist/src/init/claudemd-generator.js.map +1 -0
  237. package/dist/src/init/executor.d.ts +41 -0
  238. package/dist/src/init/executor.d.ts.map +1 -0
  239. package/dist/src/init/executor.js +1741 -0
  240. package/dist/src/init/executor.js.map +1 -0
  241. package/dist/src/init/helpers-generator.d.ts +60 -0
  242. package/dist/src/init/helpers-generator.d.ts.map +1 -0
  243. package/dist/src/init/helpers-generator.js +1166 -0
  244. package/dist/src/init/helpers-generator.js.map +1 -0
  245. package/dist/src/init/index.d.ts +13 -0
  246. package/dist/src/init/index.d.ts.map +1 -0
  247. package/dist/src/init/index.js +15 -0
  248. package/dist/src/init/index.js.map +1 -0
  249. package/dist/src/init/mcp-generator.d.ts +26 -0
  250. package/dist/src/init/mcp-generator.d.ts.map +1 -0
  251. package/dist/src/init/mcp-generator.js +116 -0
  252. package/dist/src/init/mcp-generator.js.map +1 -0
  253. package/dist/src/init/settings-generator.d.ts +14 -0
  254. package/dist/src/init/settings-generator.d.ts.map +1 -0
  255. package/dist/src/init/settings-generator.js +399 -0
  256. package/dist/src/init/settings-generator.js.map +1 -0
  257. package/dist/src/init/statusline-generator.d.ts +28 -0
  258. package/dist/src/init/statusline-generator.d.ts.map +1 -0
  259. package/dist/src/init/statusline-generator.js +817 -0
  260. package/dist/src/init/statusline-generator.js.map +1 -0
  261. package/dist/src/init/types.d.ts +287 -0
  262. package/dist/src/init/types.d.ts.map +1 -0
  263. package/dist/src/init/types.js +259 -0
  264. package/dist/src/init/types.js.map +1 -0
  265. package/dist/src/mcp-client.d.ts +92 -0
  266. package/dist/src/mcp-client.d.ts.map +1 -0
  267. package/dist/src/mcp-client.js +237 -0
  268. package/dist/src/mcp-client.js.map +1 -0
  269. package/dist/src/mcp-server.d.ts +161 -0
  270. package/dist/src/mcp-server.d.ts.map +1 -0
  271. package/dist/src/mcp-server.js +627 -0
  272. package/dist/src/mcp-server.js.map +1 -0
  273. package/dist/src/mcp-tools/agent-tools.d.ts +9 -0
  274. package/dist/src/mcp-tools/agent-tools.d.ts.map +1 -0
  275. package/dist/src/mcp-tools/agent-tools.js +549 -0
  276. package/dist/src/mcp-tools/agent-tools.js.map +1 -0
  277. package/dist/src/mcp-tools/agentdb-tools.d.ts +30 -0
  278. package/dist/src/mcp-tools/agentdb-tools.d.ts.map +1 -0
  279. package/dist/src/mcp-tools/agentdb-tools.js +557 -0
  280. package/dist/src/mcp-tools/agentdb-tools.js.map +1 -0
  281. package/dist/src/mcp-tools/analyze-tools.d.ts +38 -0
  282. package/dist/src/mcp-tools/analyze-tools.d.ts.map +1 -0
  283. package/dist/src/mcp-tools/analyze-tools.js +317 -0
  284. package/dist/src/mcp-tools/analyze-tools.js.map +1 -0
  285. package/dist/src/mcp-tools/auto-install.d.ts +83 -0
  286. package/dist/src/mcp-tools/auto-install.d.ts.map +1 -0
  287. package/dist/src/mcp-tools/auto-install.js +131 -0
  288. package/dist/src/mcp-tools/auto-install.js.map +1 -0
  289. package/dist/src/mcp-tools/browser-tools.d.ts +13 -0
  290. package/dist/src/mcp-tools/browser-tools.d.ts.map +1 -0
  291. package/dist/src/mcp-tools/browser-tools.js +550 -0
  292. package/dist/src/mcp-tools/browser-tools.js.map +1 -0
  293. package/dist/src/mcp-tools/claims-tools.d.ts +12 -0
  294. package/dist/src/mcp-tools/claims-tools.d.ts.map +1 -0
  295. package/dist/src/mcp-tools/claims-tools.js +732 -0
  296. package/dist/src/mcp-tools/claims-tools.js.map +1 -0
  297. package/dist/src/mcp-tools/config-tools.d.ts +8 -0
  298. package/dist/src/mcp-tools/config-tools.d.ts.map +1 -0
  299. package/dist/src/mcp-tools/config-tools.js +343 -0
  300. package/dist/src/mcp-tools/config-tools.js.map +1 -0
  301. package/dist/src/mcp-tools/coordination-tools.d.ts +13 -0
  302. package/dist/src/mcp-tools/coordination-tools.d.ts.map +1 -0
  303. package/dist/src/mcp-tools/coordination-tools.js +486 -0
  304. package/dist/src/mcp-tools/coordination-tools.js.map +1 -0
  305. package/dist/src/mcp-tools/daa-tools.d.ts +13 -0
  306. package/dist/src/mcp-tools/daa-tools.d.ts.map +1 -0
  307. package/dist/src/mcp-tools/daa-tools.js +426 -0
  308. package/dist/src/mcp-tools/daa-tools.js.map +1 -0
  309. package/dist/src/mcp-tools/embeddings-tools.d.ts +9 -0
  310. package/dist/src/mcp-tools/embeddings-tools.d.ts.map +1 -0
  311. package/dist/src/mcp-tools/embeddings-tools.js +782 -0
  312. package/dist/src/mcp-tools/embeddings-tools.js.map +1 -0
  313. package/dist/src/mcp-tools/github-tools.d.ts +13 -0
  314. package/dist/src/mcp-tools/github-tools.d.ts.map +1 -0
  315. package/dist/src/mcp-tools/github-tools.js +373 -0
  316. package/dist/src/mcp-tools/github-tools.js.map +1 -0
  317. package/dist/src/mcp-tools/hive-mind-tools.d.ts +8 -0
  318. package/dist/src/mcp-tools/hive-mind-tools.d.ts.map +1 -0
  319. package/dist/src/mcp-tools/hive-mind-tools.js +583 -0
  320. package/dist/src/mcp-tools/hive-mind-tools.js.map +1 -0
  321. package/dist/src/mcp-tools/hooks-tools.d.ts +44 -0
  322. package/dist/src/mcp-tools/hooks-tools.d.ts.map +1 -0
  323. package/dist/src/mcp-tools/hooks-tools.js +2969 -0
  324. package/dist/src/mcp-tools/hooks-tools.js.map +1 -0
  325. package/dist/src/mcp-tools/index.d.ts +23 -0
  326. package/dist/src/mcp-tools/index.d.ts.map +1 -0
  327. package/dist/src/mcp-tools/index.js +22 -0
  328. package/dist/src/mcp-tools/index.js.map +1 -0
  329. package/dist/src/mcp-tools/memory-tools.d.ts +14 -0
  330. package/dist/src/mcp-tools/memory-tools.d.ts.map +1 -0
  331. package/dist/src/mcp-tools/memory-tools.js +499 -0
  332. package/dist/src/mcp-tools/memory-tools.js.map +1 -0
  333. package/dist/src/mcp-tools/neural-tools.d.ts +16 -0
  334. package/dist/src/mcp-tools/neural-tools.d.ts.map +1 -0
  335. package/dist/src/mcp-tools/neural-tools.js +461 -0
  336. package/dist/src/mcp-tools/neural-tools.js.map +1 -0
  337. package/dist/src/mcp-tools/performance-tools.d.ts +16 -0
  338. package/dist/src/mcp-tools/performance-tools.d.ts.map +1 -0
  339. package/dist/src/mcp-tools/performance-tools.js +534 -0
  340. package/dist/src/mcp-tools/performance-tools.js.map +1 -0
  341. package/dist/src/mcp-tools/progress-tools.d.ts +14 -0
  342. package/dist/src/mcp-tools/progress-tools.d.ts.map +1 -0
  343. package/dist/src/mcp-tools/progress-tools.js +348 -0
  344. package/dist/src/mcp-tools/progress-tools.js.map +1 -0
  345. package/dist/src/mcp-tools/security-tools.d.ts +18 -0
  346. package/dist/src/mcp-tools/security-tools.d.ts.map +1 -0
  347. package/dist/src/mcp-tools/security-tools.js +434 -0
  348. package/dist/src/mcp-tools/security-tools.js.map +1 -0
  349. package/dist/src/mcp-tools/session-tools.d.ts +8 -0
  350. package/dist/src/mcp-tools/session-tools.d.ts.map +1 -0
  351. package/dist/src/mcp-tools/session-tools.js +315 -0
  352. package/dist/src/mcp-tools/session-tools.js.map +1 -0
  353. package/dist/src/mcp-tools/swarm-tools.d.ts +8 -0
  354. package/dist/src/mcp-tools/swarm-tools.d.ts.map +1 -0
  355. package/dist/src/mcp-tools/swarm-tools.js +102 -0
  356. package/dist/src/mcp-tools/swarm-tools.js.map +1 -0
  357. package/dist/src/mcp-tools/system-tools.d.ts +13 -0
  358. package/dist/src/mcp-tools/system-tools.d.ts.map +1 -0
  359. package/dist/src/mcp-tools/system-tools.js +417 -0
  360. package/dist/src/mcp-tools/system-tools.js.map +1 -0
  361. package/dist/src/mcp-tools/task-tools.d.ts +8 -0
  362. package/dist/src/mcp-tools/task-tools.d.ts.map +1 -0
  363. package/dist/src/mcp-tools/task-tools.js +338 -0
  364. package/dist/src/mcp-tools/task-tools.js.map +1 -0
  365. package/dist/src/mcp-tools/terminal-tools.d.ts +13 -0
  366. package/dist/src/mcp-tools/terminal-tools.d.ts.map +1 -0
  367. package/dist/src/mcp-tools/terminal-tools.js +246 -0
  368. package/dist/src/mcp-tools/terminal-tools.js.map +1 -0
  369. package/dist/src/mcp-tools/transfer-tools.d.ts +14 -0
  370. package/dist/src/mcp-tools/transfer-tools.d.ts.map +1 -0
  371. package/dist/src/mcp-tools/transfer-tools.js +396 -0
  372. package/dist/src/mcp-tools/transfer-tools.js.map +1 -0
  373. package/dist/src/mcp-tools/types.d.ts +31 -0
  374. package/dist/src/mcp-tools/types.d.ts.map +1 -0
  375. package/dist/src/mcp-tools/types.js +7 -0
  376. package/dist/src/mcp-tools/types.js.map +1 -0
  377. package/dist/src/mcp-tools/workflow-tools.d.ts +8 -0
  378. package/dist/src/mcp-tools/workflow-tools.d.ts.map +1 -0
  379. package/dist/src/mcp-tools/workflow-tools.js +572 -0
  380. package/dist/src/mcp-tools/workflow-tools.js.map +1 -0
  381. package/dist/src/memory/ewc-consolidation.d.ts +271 -0
  382. package/dist/src/memory/ewc-consolidation.d.ts.map +1 -0
  383. package/dist/src/memory/ewc-consolidation.js +542 -0
  384. package/dist/src/memory/ewc-consolidation.js.map +1 -0
  385. package/dist/src/memory/intelligence.d.ts +285 -0
  386. package/dist/src/memory/intelligence.d.ts.map +1 -0
  387. package/dist/src/memory/intelligence.js +794 -0
  388. package/dist/src/memory/intelligence.js.map +1 -0
  389. package/dist/src/memory/memory-bridge.d.ts +407 -0
  390. package/dist/src/memory/memory-bridge.d.ts.map +1 -0
  391. package/dist/src/memory/memory-bridge.js +1494 -0
  392. package/dist/src/memory/memory-bridge.js.map +1 -0
  393. package/dist/src/memory/memory-initializer.d.ts +405 -0
  394. package/dist/src/memory/memory-initializer.d.ts.map +1 -0
  395. package/dist/src/memory/memory-initializer.js +2105 -0
  396. package/dist/src/memory/memory-initializer.js.map +1 -0
  397. package/dist/src/memory/sona-optimizer.d.ts +227 -0
  398. package/dist/src/memory/sona-optimizer.d.ts.map +1 -0
  399. package/dist/src/memory/sona-optimizer.js +633 -0
  400. package/dist/src/memory/sona-optimizer.js.map +1 -0
  401. package/dist/src/output.d.ts +133 -0
  402. package/dist/src/output.d.ts.map +1 -0
  403. package/dist/src/output.js +514 -0
  404. package/dist/src/output.js.map +1 -0
  405. package/dist/src/parser.d.ts +41 -0
  406. package/dist/src/parser.d.ts.map +1 -0
  407. package/dist/src/parser.js +377 -0
  408. package/dist/src/parser.js.map +1 -0
  409. package/dist/src/plugins/manager.d.ts +133 -0
  410. package/dist/src/plugins/manager.d.ts.map +1 -0
  411. package/dist/src/plugins/manager.js +400 -0
  412. package/dist/src/plugins/manager.js.map +1 -0
  413. package/dist/src/plugins/store/discovery.d.ts +88 -0
  414. package/dist/src/plugins/store/discovery.d.ts.map +1 -0
  415. package/dist/src/plugins/store/discovery.js +1147 -0
  416. package/dist/src/plugins/store/discovery.js.map +1 -0
  417. package/dist/src/plugins/store/index.d.ts +76 -0
  418. package/dist/src/plugins/store/index.d.ts.map +1 -0
  419. package/dist/src/plugins/store/index.js +141 -0
  420. package/dist/src/plugins/store/index.js.map +1 -0
  421. package/dist/src/plugins/store/search.d.ts +46 -0
  422. package/dist/src/plugins/store/search.d.ts.map +1 -0
  423. package/dist/src/plugins/store/search.js +230 -0
  424. package/dist/src/plugins/store/search.js.map +1 -0
  425. package/dist/src/plugins/store/types.d.ts +274 -0
  426. package/dist/src/plugins/store/types.d.ts.map +1 -0
  427. package/dist/src/plugins/store/types.js +7 -0
  428. package/dist/src/plugins/store/types.js.map +1 -0
  429. package/dist/src/plugins/tests/demo-plugin-store.d.ts +7 -0
  430. package/dist/src/plugins/tests/demo-plugin-store.d.ts.map +1 -0
  431. package/dist/src/plugins/tests/demo-plugin-store.js +126 -0
  432. package/dist/src/plugins/tests/demo-plugin-store.js.map +1 -0
  433. package/dist/src/plugins/tests/standalone-test.d.ts +12 -0
  434. package/dist/src/plugins/tests/standalone-test.d.ts.map +1 -0
  435. package/dist/src/plugins/tests/standalone-test.js +188 -0
  436. package/dist/src/plugins/tests/standalone-test.js.map +1 -0
  437. package/dist/src/plugins/tests/test-plugin-store.d.ts +7 -0
  438. package/dist/src/plugins/tests/test-plugin-store.d.ts.map +1 -0
  439. package/dist/src/plugins/tests/test-plugin-store.js +206 -0
  440. package/dist/src/plugins/tests/test-plugin-store.js.map +1 -0
  441. package/dist/src/production/circuit-breaker.d.ts +101 -0
  442. package/dist/src/production/circuit-breaker.d.ts.map +1 -0
  443. package/dist/src/production/circuit-breaker.js +241 -0
  444. package/dist/src/production/circuit-breaker.js.map +1 -0
  445. package/dist/src/production/error-handler.d.ts +92 -0
  446. package/dist/src/production/error-handler.d.ts.map +1 -0
  447. package/dist/src/production/error-handler.js +299 -0
  448. package/dist/src/production/error-handler.js.map +1 -0
  449. package/dist/src/production/index.d.ts +23 -0
  450. package/dist/src/production/index.d.ts.map +1 -0
  451. package/dist/src/production/index.js +18 -0
  452. package/dist/src/production/index.js.map +1 -0
  453. package/dist/src/production/monitoring.d.ts +161 -0
  454. package/dist/src/production/monitoring.d.ts.map +1 -0
  455. package/dist/src/production/monitoring.js +356 -0
  456. package/dist/src/production/monitoring.js.map +1 -0
  457. package/dist/src/production/rate-limiter.d.ts +80 -0
  458. package/dist/src/production/rate-limiter.d.ts.map +1 -0
  459. package/dist/src/production/rate-limiter.js +201 -0
  460. package/dist/src/production/rate-limiter.js.map +1 -0
  461. package/dist/src/production/retry.d.ts +48 -0
  462. package/dist/src/production/retry.d.ts.map +1 -0
  463. package/dist/src/production/retry.js +179 -0
  464. package/dist/src/production/retry.js.map +1 -0
  465. package/dist/src/prompt.d.ts +44 -0
  466. package/dist/src/prompt.d.ts.map +1 -0
  467. package/dist/src/prompt.js +501 -0
  468. package/dist/src/prompt.js.map +1 -0
  469. package/dist/src/runtime/headless.d.ts +60 -0
  470. package/dist/src/runtime/headless.d.ts.map +1 -0
  471. package/dist/src/runtime/headless.js +284 -0
  472. package/dist/src/runtime/headless.js.map +1 -0
  473. package/dist/src/ruvector/ast-analyzer.d.ts +67 -0
  474. package/dist/src/ruvector/ast-analyzer.d.ts.map +1 -0
  475. package/dist/src/ruvector/ast-analyzer.js +277 -0
  476. package/dist/src/ruvector/ast-analyzer.js.map +1 -0
  477. package/dist/src/ruvector/coverage-router.d.ts +160 -0
  478. package/dist/src/ruvector/coverage-router.d.ts.map +1 -0
  479. package/dist/src/ruvector/coverage-router.js +529 -0
  480. package/dist/src/ruvector/coverage-router.js.map +1 -0
  481. package/dist/src/ruvector/coverage-tools.d.ts +33 -0
  482. package/dist/src/ruvector/coverage-tools.d.ts.map +1 -0
  483. package/dist/src/ruvector/coverage-tools.js +157 -0
  484. package/dist/src/ruvector/coverage-tools.js.map +1 -0
  485. package/dist/src/ruvector/diff-classifier.d.ts +175 -0
  486. package/dist/src/ruvector/diff-classifier.d.ts.map +1 -0
  487. package/dist/src/ruvector/diff-classifier.js +698 -0
  488. package/dist/src/ruvector/diff-classifier.js.map +1 -0
  489. package/dist/src/ruvector/enhanced-model-router.d.ts +146 -0
  490. package/dist/src/ruvector/enhanced-model-router.d.ts.map +1 -0
  491. package/dist/src/ruvector/enhanced-model-router.js +529 -0
  492. package/dist/src/ruvector/enhanced-model-router.js.map +1 -0
  493. package/dist/src/ruvector/flash-attention.d.ts +195 -0
  494. package/dist/src/ruvector/flash-attention.d.ts.map +1 -0
  495. package/dist/src/ruvector/flash-attention.js +643 -0
  496. package/dist/src/ruvector/flash-attention.js.map +1 -0
  497. package/dist/src/ruvector/graph-analyzer.d.ts +187 -0
  498. package/dist/src/ruvector/graph-analyzer.d.ts.map +1 -0
  499. package/dist/src/ruvector/graph-analyzer.js +929 -0
  500. package/dist/src/ruvector/graph-analyzer.js.map +1 -0
  501. package/dist/src/ruvector/index.d.ts +34 -0
  502. package/dist/src/ruvector/index.d.ts.map +1 -0
  503. package/dist/src/ruvector/index.js +60 -0
  504. package/dist/src/ruvector/index.js.map +1 -0
  505. package/dist/src/ruvector/lora-adapter.d.ts +218 -0
  506. package/dist/src/ruvector/lora-adapter.d.ts.map +1 -0
  507. package/dist/src/ruvector/lora-adapter.js +455 -0
  508. package/dist/src/ruvector/lora-adapter.js.map +1 -0
  509. package/dist/src/ruvector/model-router.d.ts +220 -0
  510. package/dist/src/ruvector/model-router.d.ts.map +1 -0
  511. package/dist/src/ruvector/model-router.js +488 -0
  512. package/dist/src/ruvector/model-router.js.map +1 -0
  513. package/dist/src/ruvector/moe-router.d.ts +206 -0
  514. package/dist/src/ruvector/moe-router.d.ts.map +1 -0
  515. package/dist/src/ruvector/moe-router.js +626 -0
  516. package/dist/src/ruvector/moe-router.js.map +1 -0
  517. package/dist/src/ruvector/q-learning-router.d.ts +211 -0
  518. package/dist/src/ruvector/q-learning-router.d.ts.map +1 -0
  519. package/dist/src/ruvector/q-learning-router.js +681 -0
  520. package/dist/src/ruvector/q-learning-router.js.map +1 -0
  521. package/dist/src/ruvector/semantic-router.d.ts +77 -0
  522. package/dist/src/ruvector/semantic-router.d.ts.map +1 -0
  523. package/dist/src/ruvector/semantic-router.js +178 -0
  524. package/dist/src/ruvector/semantic-router.js.map +1 -0
  525. package/dist/src/ruvector/vector-db.d.ts +69 -0
  526. package/dist/src/ruvector/vector-db.d.ts.map +1 -0
  527. package/dist/src/ruvector/vector-db.js +243 -0
  528. package/dist/src/ruvector/vector-db.js.map +1 -0
  529. package/dist/src/services/agentic-flow-bridge.d.ts +50 -0
  530. package/dist/src/services/agentic-flow-bridge.d.ts.map +1 -0
  531. package/dist/src/services/agentic-flow-bridge.js +95 -0
  532. package/dist/src/services/agentic-flow-bridge.js.map +1 -0
  533. package/dist/src/services/claim-service.d.ts +204 -0
  534. package/dist/src/services/claim-service.d.ts.map +1 -0
  535. package/dist/src/services/claim-service.js +818 -0
  536. package/dist/src/services/claim-service.js.map +1 -0
  537. package/dist/src/services/container-worker-pool.d.ts +197 -0
  538. package/dist/src/services/container-worker-pool.d.ts.map +1 -0
  539. package/dist/src/services/container-worker-pool.js +583 -0
  540. package/dist/src/services/container-worker-pool.js.map +1 -0
  541. package/dist/src/services/headless-worker-executor.d.ts +304 -0
  542. package/dist/src/services/headless-worker-executor.d.ts.map +1 -0
  543. package/dist/src/services/headless-worker-executor.js +999 -0
  544. package/dist/src/services/headless-worker-executor.js.map +1 -0
  545. package/dist/src/services/index.d.ts +13 -0
  546. package/dist/src/services/index.d.ts.map +1 -0
  547. package/dist/src/services/index.js +11 -0
  548. package/dist/src/services/index.js.map +1 -0
  549. package/dist/src/services/registry-api.d.ts +58 -0
  550. package/dist/src/services/registry-api.d.ts.map +1 -0
  551. package/dist/src/services/registry-api.js +146 -0
  552. package/dist/src/services/registry-api.js.map +1 -0
  553. package/dist/src/services/ruvector-training.d.ts +214 -0
  554. package/dist/src/services/ruvector-training.d.ts.map +1 -0
  555. package/dist/src/services/ruvector-training.js +497 -0
  556. package/dist/src/services/ruvector-training.js.map +1 -0
  557. package/dist/src/services/worker-daemon.d.ts +203 -0
  558. package/dist/src/services/worker-daemon.d.ts.map +1 -0
  559. package/dist/src/services/worker-daemon.js +756 -0
  560. package/dist/src/services/worker-daemon.js.map +1 -0
  561. package/dist/src/services/worker-queue.d.ts +194 -0
  562. package/dist/src/services/worker-queue.d.ts.map +1 -0
  563. package/dist/src/services/worker-queue.js +513 -0
  564. package/dist/src/services/worker-queue.js.map +1 -0
  565. package/dist/src/suggest.d.ts +53 -0
  566. package/dist/src/suggest.d.ts.map +1 -0
  567. package/dist/src/suggest.js +200 -0
  568. package/dist/src/suggest.js.map +1 -0
  569. package/dist/src/tests/ruvector-integration-benchmark.d.ts +6 -0
  570. package/dist/src/tests/ruvector-integration-benchmark.d.ts.map +1 -0
  571. package/dist/src/tests/ruvector-integration-benchmark.js +385 -0
  572. package/dist/src/tests/ruvector-integration-benchmark.js.map +1 -0
  573. package/dist/src/transfer/anonymization/index.d.ts +25 -0
  574. package/dist/src/transfer/anonymization/index.d.ts.map +1 -0
  575. package/dist/src/transfer/anonymization/index.js +175 -0
  576. package/dist/src/transfer/anonymization/index.js.map +1 -0
  577. package/dist/src/transfer/deploy-seraphine.d.ts +13 -0
  578. package/dist/src/transfer/deploy-seraphine.d.ts.map +1 -0
  579. package/dist/src/transfer/deploy-seraphine.js +205 -0
  580. package/dist/src/transfer/deploy-seraphine.js.map +1 -0
  581. package/dist/src/transfer/export.d.ts +25 -0
  582. package/dist/src/transfer/export.d.ts.map +1 -0
  583. package/dist/src/transfer/export.js +113 -0
  584. package/dist/src/transfer/export.js.map +1 -0
  585. package/dist/src/transfer/index.d.ts +12 -0
  586. package/dist/src/transfer/index.d.ts.map +1 -0
  587. package/dist/src/transfer/index.js +31 -0
  588. package/dist/src/transfer/index.js.map +1 -0
  589. package/dist/src/transfer/ipfs/client.d.ts +109 -0
  590. package/dist/src/transfer/ipfs/client.d.ts.map +1 -0
  591. package/dist/src/transfer/ipfs/client.js +307 -0
  592. package/dist/src/transfer/ipfs/client.js.map +1 -0
  593. package/dist/src/transfer/ipfs/upload.d.ts +95 -0
  594. package/dist/src/transfer/ipfs/upload.d.ts.map +1 -0
  595. package/dist/src/transfer/ipfs/upload.js +411 -0
  596. package/dist/src/transfer/ipfs/upload.js.map +1 -0
  597. package/dist/src/transfer/models/seraphine.d.ts +72 -0
  598. package/dist/src/transfer/models/seraphine.d.ts.map +1 -0
  599. package/dist/src/transfer/models/seraphine.js +373 -0
  600. package/dist/src/transfer/models/seraphine.js.map +1 -0
  601. package/dist/src/transfer/serialization/cfp.d.ts +49 -0
  602. package/dist/src/transfer/serialization/cfp.d.ts.map +1 -0
  603. package/dist/src/transfer/serialization/cfp.js +183 -0
  604. package/dist/src/transfer/serialization/cfp.js.map +1 -0
  605. package/dist/src/transfer/storage/gcs.d.ts +82 -0
  606. package/dist/src/transfer/storage/gcs.d.ts.map +1 -0
  607. package/dist/src/transfer/storage/gcs.js +256 -0
  608. package/dist/src/transfer/storage/gcs.js.map +1 -0
  609. package/dist/src/transfer/storage/index.d.ts +6 -0
  610. package/dist/src/transfer/storage/index.d.ts.map +1 -0
  611. package/dist/src/transfer/storage/index.js +6 -0
  612. package/dist/src/transfer/storage/index.js.map +1 -0
  613. package/dist/src/transfer/store/discovery.d.ts +84 -0
  614. package/dist/src/transfer/store/discovery.d.ts.map +1 -0
  615. package/dist/src/transfer/store/discovery.js +382 -0
  616. package/dist/src/transfer/store/discovery.js.map +1 -0
  617. package/dist/src/transfer/store/download.d.ts +70 -0
  618. package/dist/src/transfer/store/download.d.ts.map +1 -0
  619. package/dist/src/transfer/store/download.js +334 -0
  620. package/dist/src/transfer/store/download.js.map +1 -0
  621. package/dist/src/transfer/store/index.d.ts +84 -0
  622. package/dist/src/transfer/store/index.d.ts.map +1 -0
  623. package/dist/src/transfer/store/index.js +153 -0
  624. package/dist/src/transfer/store/index.js.map +1 -0
  625. package/dist/src/transfer/store/publish.d.ts +76 -0
  626. package/dist/src/transfer/store/publish.d.ts.map +1 -0
  627. package/dist/src/transfer/store/publish.js +294 -0
  628. package/dist/src/transfer/store/publish.js.map +1 -0
  629. package/dist/src/transfer/store/registry.d.ts +58 -0
  630. package/dist/src/transfer/store/registry.d.ts.map +1 -0
  631. package/dist/src/transfer/store/registry.js +285 -0
  632. package/dist/src/transfer/store/registry.js.map +1 -0
  633. package/dist/src/transfer/store/search.d.ts +54 -0
  634. package/dist/src/transfer/store/search.d.ts.map +1 -0
  635. package/dist/src/transfer/store/search.js +232 -0
  636. package/dist/src/transfer/store/search.js.map +1 -0
  637. package/dist/src/transfer/store/tests/standalone-test.d.ts +12 -0
  638. package/dist/src/transfer/store/tests/standalone-test.d.ts.map +1 -0
  639. package/dist/src/transfer/store/tests/standalone-test.js +190 -0
  640. package/dist/src/transfer/store/tests/standalone-test.js.map +1 -0
  641. package/dist/src/transfer/store/types.d.ts +193 -0
  642. package/dist/src/transfer/store/types.d.ts.map +1 -0
  643. package/dist/src/transfer/store/types.js +6 -0
  644. package/dist/src/transfer/store/types.js.map +1 -0
  645. package/dist/src/transfer/test-seraphine.d.ts +6 -0
  646. package/dist/src/transfer/test-seraphine.d.ts.map +1 -0
  647. package/dist/src/transfer/test-seraphine.js +105 -0
  648. package/dist/src/transfer/test-seraphine.js.map +1 -0
  649. package/dist/src/transfer/tests/test-store.d.ts +7 -0
  650. package/dist/src/transfer/tests/test-store.d.ts.map +1 -0
  651. package/dist/src/transfer/tests/test-store.js +214 -0
  652. package/dist/src/transfer/tests/test-store.js.map +1 -0
  653. package/dist/src/transfer/types.d.ts +245 -0
  654. package/dist/src/transfer/types.d.ts.map +1 -0
  655. package/dist/src/transfer/types.js +6 -0
  656. package/dist/src/transfer/types.js.map +1 -0
  657. package/dist/src/types.d.ts +198 -0
  658. package/dist/src/types.d.ts.map +1 -0
  659. package/dist/src/types.js +38 -0
  660. package/dist/src/types.js.map +1 -0
  661. package/dist/src/update/checker.d.ts +34 -0
  662. package/dist/src/update/checker.d.ts.map +1 -0
  663. package/dist/src/update/checker.js +190 -0
  664. package/dist/src/update/checker.js.map +1 -0
  665. package/dist/src/update/executor.d.ts +32 -0
  666. package/dist/src/update/executor.d.ts.map +1 -0
  667. package/dist/src/update/executor.js +181 -0
  668. package/dist/src/update/executor.js.map +1 -0
  669. package/dist/src/update/index.d.ts +33 -0
  670. package/dist/src/update/index.d.ts.map +1 -0
  671. package/dist/src/update/index.js +64 -0
  672. package/dist/src/update/index.js.map +1 -0
  673. package/dist/src/update/rate-limiter.d.ts +20 -0
  674. package/dist/src/update/rate-limiter.d.ts.map +1 -0
  675. package/dist/src/update/rate-limiter.js +96 -0
  676. package/dist/src/update/rate-limiter.js.map +1 -0
  677. package/dist/src/update/validator.d.ts +17 -0
  678. package/dist/src/update/validator.d.ts.map +1 -0
  679. package/dist/src/update/validator.js +123 -0
  680. package/dist/src/update/validator.js.map +1 -0
  681. package/dist/tsconfig.tsbuildinfo +1 -0
  682. package/package.json +2 -3
@@ -0,0 +1,643 @@
1
+ /**
2
+ * Flash Attention Implementation for RuVector Intelligence System
3
+ *
4
+ * Implements block-wise attention computation for faster similarity calculations.
5
+ * Achieves O(N) memory instead of O(N^2) through tiling strategy.
6
+ *
7
+ * Key optimizations:
8
+ * - Block-wise computation to fit in L1 cache
9
+ * - Fused softmax-matmul operations
10
+ * - Float32Array for all operations
11
+ * - Online softmax for numerical stability
12
+ *
13
+ * Target: 2-5x speedup on CPU vs naive attention
14
+ *
15
+ * Created with love by ruv.io
16
+ */
17
+ // ============================================================================
18
+ // Flash Attention Implementation
19
+ // ============================================================================
20
+ export class FlashAttention {
21
+ config;
22
+ lastSpeedup = 0;
23
+ benchmarkHistory = [];
24
+ // Pre-allocated buffers for CPU optimization
25
+ scoreBuffer = null;
26
+ expBuffer = null;
27
+ accumBuffer = null;
28
+ constructor(config = {}) {
29
+ this.config = {
30
+ blockSize: config.blockSize ?? 32, // Smaller blocks for CPU L1 cache
31
+ dimensions: config.dimensions ?? 384,
32
+ temperature: config.temperature ?? 1.0,
33
+ useStableMode: config.useStableMode ?? true,
34
+ useCPUOptimizations: config.useCPUOptimizations ?? true,
35
+ };
36
+ }
37
+ // ==========================================================================
38
+ // Public API
39
+ // ==========================================================================
40
+ /**
41
+ * Main attention computation using Flash Attention algorithm
42
+ *
43
+ * @param queries - Query vectors [N x D]
44
+ * @param keys - Key vectors [M x D]
45
+ * @param values - Value vectors [M x D]
46
+ * @returns Attention output [N x D]
47
+ */
48
+ attention(queries, keys, values) {
49
+ const startTime = performance.now();
50
+ // Validate inputs
51
+ this.validateInputs(queries, keys, values);
52
+ const numQueries = queries.length;
53
+ const numKeys = keys.length;
54
+ // Use CPU-optimized path for all sizes when enabled
55
+ let output;
56
+ if (this.config.useCPUOptimizations) {
57
+ output = this.cpuOptimizedAttention(queries, keys, values);
58
+ }
59
+ else if (numQueries * numKeys > 1024) {
60
+ output = this.blockAttention(queries, keys, values, this.config.blockSize);
61
+ }
62
+ else {
63
+ output = this.naiveAttention(queries, keys, values);
64
+ }
65
+ const computeTimeMs = performance.now() - startTime;
66
+ return {
67
+ output,
68
+ computeTimeMs,
69
+ };
70
+ }
71
+ /**
72
+ * CPU-optimized attention with aggressive optimizations
73
+ *
74
+ * Key optimizations:
75
+ * - Blocked score computation (better cache utilization)
76
+ * - Top-K sparse attention (only use most relevant keys)
77
+ * - Pre-allocated buffers to avoid GC pressure
78
+ * - 8x loop unrolling for dot products
79
+ * - Fused max-finding during score computation
80
+ */
81
+ cpuOptimizedAttention(Q, K, V) {
82
+ const numQ = Q.length;
83
+ const numK = K.length;
84
+ const dim = Q[0]?.length ?? this.config.dimensions;
85
+ const scale = 1.0 / (Math.sqrt(dim) * this.config.temperature);
86
+ // Sparse attention: Use only top 12% of keys (min 16, max 96)
87
+ const topK = Math.max(16, Math.min(96, Math.ceil(numK * 0.12)));
88
+ const useTopK = numK > 32;
89
+ // Ensure buffers are allocated
90
+ if (!this.scoreBuffer || this.scoreBuffer.length < numK) {
91
+ this.scoreBuffer = new Float32Array(numK);
92
+ }
93
+ if (!this.expBuffer || this.expBuffer.length < (useTopK ? topK : numK)) {
94
+ this.expBuffer = new Float32Array(useTopK ? topK : numK);
95
+ }
96
+ if (!this.accumBuffer || this.accumBuffer.length < dim) {
97
+ this.accumBuffer = new Float64Array(dim);
98
+ }
99
+ const scores = this.scoreBuffer;
100
+ const exps = this.expBuffer;
101
+ const accum = this.accumBuffer;
102
+ // Pre-allocate output once
103
+ const output = new Array(numQ);
104
+ for (let i = 0; i < numQ; i++) {
105
+ output[i] = new Float32Array(dim);
106
+ }
107
+ // Reusable index array
108
+ const indices = useTopK ? new Uint32Array(numK) : null;
109
+ if (indices) {
110
+ for (let i = 0; i < numK; i++)
111
+ indices[i] = i;
112
+ }
113
+ // Two-stage screening: use 1/4 of dimensions for quick filtering
114
+ const screenDim = Math.min(96, dim >> 2);
115
+ const screenScale = scale * Math.sqrt(dim / screenDim);
116
+ // Candidate buffer for two-stage filtering
117
+ const candidateCount = Math.max(topK * 2, Math.ceil(numK * 0.25));
118
+ // Process queries
119
+ for (let qi = 0; qi < numQ; qi++) {
120
+ const query = Q[qi];
121
+ if (useTopK && numK > 128) {
122
+ // Two-stage approach for large key sets
123
+ // Stage 1: Quick screening with partial dimensions
124
+ for (let ki = 0; ki < numK; ki++) {
125
+ scores[ki] = this.partialDotProduct(query, K[ki], screenDim) * screenScale;
126
+ indices[ki] = ki;
127
+ }
128
+ // Get top candidates (2x topK)
129
+ this.partialSort(scores, indices, candidateCount);
130
+ // Stage 2: Full score computation only for candidates
131
+ let maxScore = -Infinity;
132
+ for (let i = 0; i < candidateCount; i++) {
133
+ const ki = indices[i];
134
+ const s = this.fastDotProduct(query, K[ki], dim) * scale;
135
+ scores[ki] = s;
136
+ if (s > maxScore)
137
+ maxScore = s;
138
+ }
139
+ // Select final top-K from candidates
140
+ this.partialSort(scores, indices.subarray(0, candidateCount), topK);
141
+ // Compute softmax over top-K
142
+ maxScore = -Infinity;
143
+ for (let i = 0; i < topK; i++) {
144
+ if (scores[indices[i]] > maxScore)
145
+ maxScore = scores[indices[i]];
146
+ }
147
+ let sumExp = 0;
148
+ for (let i = 0; i < topK; i++) {
149
+ const e = Math.exp(scores[indices[i]] - maxScore);
150
+ exps[i] = e;
151
+ sumExp += e;
152
+ }
153
+ // Weighted sum
154
+ for (let d = 0; d < dim; d++)
155
+ accum[d] = 0;
156
+ const invSum = 1.0 / sumExp;
157
+ for (let i = 0; i < topK; i++) {
158
+ const weight = exps[i] * invSum;
159
+ const value = V[indices[i]];
160
+ for (let d = 0; d < dim; d++) {
161
+ accum[d] += weight * value[d];
162
+ }
163
+ }
164
+ }
165
+ else {
166
+ // Simple path for small key sets
167
+ let maxScore = -Infinity;
168
+ for (let ki = 0; ki < numK; ki++) {
169
+ const s = this.fastDotProduct(query, K[ki], dim) * scale;
170
+ scores[ki] = s;
171
+ if (s > maxScore)
172
+ maxScore = s;
173
+ }
174
+ let sumExp = 0;
175
+ for (let ki = 0; ki < numK; ki++) {
176
+ const e = Math.exp(scores[ki] - maxScore);
177
+ exps[ki] = e;
178
+ sumExp += e;
179
+ }
180
+ for (let d = 0; d < dim; d++)
181
+ accum[d] = 0;
182
+ const invSum = 1.0 / sumExp;
183
+ for (let ki = 0; ki < numK; ki++) {
184
+ const weight = exps[ki] * invSum;
185
+ const value = V[ki];
186
+ for (let d = 0; d < dim; d++) {
187
+ accum[d] += weight * value[d];
188
+ }
189
+ }
190
+ }
191
+ // Copy to output
192
+ const out = output[qi];
193
+ for (let d = 0; d < dim; d++) {
194
+ out[d] = accum[d];
195
+ }
196
+ }
197
+ return output;
198
+ }
199
+ /**
200
+ * Partial dot product using only first N dimensions (for screening)
201
+ */
202
+ partialDotProduct(a, b, len) {
203
+ let sum = 0;
204
+ let i = 0;
205
+ for (; i <= len - 4; i += 4) {
206
+ sum += a[i] * b[i] + a[i + 1] * b[i + 1] + a[i + 2] * b[i + 2] + a[i + 3] * b[i + 3];
207
+ }
208
+ for (; i < len; i++) {
209
+ sum += a[i] * b[i];
210
+ }
211
+ return sum;
212
+ }
213
+ /**
214
+ * Partial sort to get top-K elements (QuickSelect-like)
215
+ * Only ensures first K elements are the largest, not sorted
216
+ */
217
+ partialSort(scores, indices, k) {
218
+ const n = indices.length;
219
+ if (k >= n)
220
+ return;
221
+ // Use partition-based selection (O(n) average)
222
+ let left = 0;
223
+ let right = n - 1;
224
+ while (left < right) {
225
+ // Partition around pivot
226
+ const pivotIdx = left + Math.floor(Math.random() * (right - left + 1));
227
+ const pivotScore = scores[indices[pivotIdx]];
228
+ // Move pivot to end
229
+ this.swapIndices(indices, pivotIdx, right);
230
+ let storeIdx = left;
231
+ for (let i = left; i < right; i++) {
232
+ if (scores[indices[i]] > pivotScore) {
233
+ this.swapIndices(indices, i, storeIdx);
234
+ storeIdx++;
235
+ }
236
+ }
237
+ // Move pivot to final position
238
+ this.swapIndices(indices, storeIdx, right);
239
+ if (storeIdx === k) {
240
+ return;
241
+ }
242
+ else if (storeIdx < k) {
243
+ left = storeIdx + 1;
244
+ }
245
+ else {
246
+ right = storeIdx - 1;
247
+ }
248
+ }
249
+ }
250
+ /**
251
+ * Swap two indices in array
252
+ */
253
+ swapIndices(arr, i, j) {
254
+ const temp = arr[i];
255
+ arr[i] = arr[j];
256
+ arr[j] = temp;
257
+ }
258
+ /**
259
+ * Fast dot product with 8x unrolling
260
+ */
261
+ fastDotProduct(a, b, len) {
262
+ let sum = 0;
263
+ let i = 0;
264
+ // 8x unroll
265
+ for (; i <= len - 8; i += 8) {
266
+ sum += a[i] * b[i] +
267
+ a[i + 1] * b[i + 1] +
268
+ a[i + 2] * b[i + 2] +
269
+ a[i + 3] * b[i + 3] +
270
+ a[i + 4] * b[i + 4] +
271
+ a[i + 5] * b[i + 5] +
272
+ a[i + 6] * b[i + 6] +
273
+ a[i + 7] * b[i + 7];
274
+ }
275
+ // Remainder
276
+ for (; i < len; i++) {
277
+ sum += a[i] * b[i];
278
+ }
279
+ return sum;
280
+ }
281
+ /**
282
+ * Block-wise attention computation (Flash Attention core algorithm)
283
+ *
284
+ * Algorithm:
285
+ * For each block of queries Q_b:
286
+ * For each block of keys K_b:
287
+ * S_b = Q_b @ K_b.T / sqrt(d) // Block scores
288
+ * P_b = softmax(S_b) // Block attention
289
+ * O_b += P_b @ V_b // Accumulate output
290
+ *
291
+ * @param Q - Query vectors
292
+ * @param K - Key vectors
293
+ * @param V - Value vectors
294
+ * @param blockSize - Block size for tiling
295
+ */
296
+ blockAttention(Q, K, V, blockSize) {
297
+ const numQueries = Q.length;
298
+ const numKeys = K.length;
299
+ const dimensions = Q[0]?.length ?? this.config.dimensions;
300
+ const scale = 1.0 / (Math.sqrt(dimensions) * this.config.temperature);
301
+ // Initialize output arrays
302
+ const output = new Array(numQueries);
303
+ for (let i = 0; i < numQueries; i++) {
304
+ output[i] = new Float32Array(dimensions);
305
+ }
306
+ // Online softmax state: max values and sum of exp for each query
307
+ const maxScores = new Float32Array(numQueries).fill(-Infinity);
308
+ const sumExp = new Float32Array(numQueries).fill(0);
309
+ // Process in blocks
310
+ for (let kStart = 0; kStart < numKeys; kStart += blockSize) {
311
+ const kEnd = Math.min(kStart + blockSize, numKeys);
312
+ const kBlockSize = kEnd - kStart;
313
+ // Process each query against this key block
314
+ for (let qStart = 0; qStart < numQueries; qStart += blockSize) {
315
+ const qEnd = Math.min(qStart + blockSize, numQueries);
316
+ // Compute attention scores for this block
317
+ const blockScores = this.computeBlockScores(Q, K, qStart, qEnd, kStart, kEnd, scale);
318
+ // Apply online softmax and accumulate output
319
+ this.onlineSoftmaxAccumulate(blockScores, V, output, maxScores, sumExp, qStart, qEnd, kStart, kEnd);
320
+ }
321
+ }
322
+ // Normalize outputs by final sum of exponentials
323
+ for (let i = 0; i < numQueries; i++) {
324
+ const normalizer = sumExp[i];
325
+ if (normalizer > 0) {
326
+ for (let d = 0; d < dimensions; d++) {
327
+ output[i][d] /= normalizer;
328
+ }
329
+ }
330
+ }
331
+ return output;
332
+ }
333
+ /**
334
+ * Get the speedup factor from the last benchmark
335
+ */
336
+ getSpeedup() {
337
+ return this.lastSpeedup;
338
+ }
339
+ /**
340
+ * Run benchmark comparing naive vs CPU-optimized attention
341
+ *
342
+ * @param numVectors - Number of vectors to test
343
+ * @param dimensions - Dimensions per vector
344
+ * @param iterations - Number of iterations for averaging
345
+ */
346
+ benchmark(numVectors = 512, dimensions = 384, iterations = 5) {
347
+ // Generate random test data
348
+ const queries = this.generateRandomVectors(numVectors, dimensions);
349
+ const keys = this.generateRandomVectors(numVectors, dimensions);
350
+ const values = this.generateRandomVectors(numVectors, dimensions);
351
+ // Warm up both paths
352
+ this.naiveAttention(queries.slice(0, 10), keys.slice(0, 10), values.slice(0, 10));
353
+ this.cpuOptimizedAttention(queries.slice(0, 10), keys.slice(0, 10), values.slice(0, 10));
354
+ // Benchmark naive attention
355
+ let naiveTotalMs = 0;
356
+ for (let i = 0; i < iterations; i++) {
357
+ const start = performance.now();
358
+ this.naiveAttention(queries, keys, values);
359
+ naiveTotalMs += performance.now() - start;
360
+ }
361
+ const naiveTimeMs = naiveTotalMs / iterations;
362
+ // Benchmark CPU-optimized attention
363
+ let flashTotalMs = 0;
364
+ for (let i = 0; i < iterations; i++) {
365
+ const start = performance.now();
366
+ this.cpuOptimizedAttention(queries, keys, values);
367
+ flashTotalMs += performance.now() - start;
368
+ }
369
+ const flashTimeMs = flashTotalMs / iterations;
370
+ // Calculate metrics
371
+ const speedup = naiveTimeMs / flashTimeMs;
372
+ this.lastSpeedup = speedup;
373
+ // Memory estimates
374
+ // Naive: needs full N x N attention matrix
375
+ const naiveMemoryBytes = numVectors * numVectors * 4; // Float32
376
+ // Flash: only needs block_size x block_size at a time
377
+ const flashMemoryBytes = this.config.blockSize * this.config.blockSize * 4;
378
+ const memoryReduction = naiveMemoryBytes / flashMemoryBytes;
379
+ const result = {
380
+ naiveTimeMs,
381
+ flashTimeMs,
382
+ speedup,
383
+ numVectors,
384
+ dimensions,
385
+ naiveMemoryBytes,
386
+ flashMemoryBytes,
387
+ memoryReduction,
388
+ };
389
+ this.benchmarkHistory.push(result);
390
+ return result;
391
+ }
392
+ /**
393
+ * Get benchmark history
394
+ */
395
+ getBenchmarkHistory() {
396
+ return [...this.benchmarkHistory];
397
+ }
398
+ /**
399
+ * Get configuration
400
+ */
401
+ getConfig() {
402
+ return { ...this.config };
403
+ }
404
+ /**
405
+ * Update configuration
406
+ */
407
+ setConfig(config) {
408
+ this.config = { ...this.config, ...config };
409
+ }
410
+ // ==========================================================================
411
+ // Private Methods
412
+ // ==========================================================================
413
+ /**
414
+ * Naive O(N^2) attention implementation for comparison
415
+ */
416
+ naiveAttention(queries, keys, values) {
417
+ const numQueries = queries.length;
418
+ const numKeys = keys.length;
419
+ const dimensions = queries[0]?.length ?? this.config.dimensions;
420
+ const scale = 1.0 / (Math.sqrt(dimensions) * this.config.temperature);
421
+ // Compute full attention matrix Q @ K.T
422
+ const scores = new Array(numQueries);
423
+ for (let i = 0; i < numQueries; i++) {
424
+ scores[i] = new Float32Array(numKeys);
425
+ for (let j = 0; j < numKeys; j++) {
426
+ scores[i][j] = this.dotProduct(queries[i], keys[j]) * scale;
427
+ }
428
+ }
429
+ // Softmax over each row
430
+ const attentionWeights = new Array(numQueries);
431
+ for (let i = 0; i < numQueries; i++) {
432
+ attentionWeights[i] = this.softmax(scores[i]);
433
+ }
434
+ // Compute output: attention @ V
435
+ const output = new Array(numQueries);
436
+ for (let i = 0; i < numQueries; i++) {
437
+ output[i] = new Float32Array(dimensions);
438
+ for (let j = 0; j < numKeys; j++) {
439
+ const weight = attentionWeights[i][j];
440
+ for (let d = 0; d < dimensions; d++) {
441
+ output[i][d] += weight * values[j][d];
442
+ }
443
+ }
444
+ }
445
+ return output;
446
+ }
447
+ /**
448
+ * Compute block of attention scores
449
+ */
450
+ computeBlockScores(Q, K, qStart, qEnd, kStart, kEnd, scale) {
451
+ const qBlockSize = qEnd - qStart;
452
+ const kBlockSize = kEnd - kStart;
453
+ const scores = new Array(qBlockSize);
454
+ for (let qi = 0; qi < qBlockSize; qi++) {
455
+ scores[qi] = new Float32Array(kBlockSize);
456
+ const query = Q[qStart + qi];
457
+ for (let ki = 0; ki < kBlockSize; ki++) {
458
+ scores[qi][ki] = this.dotProduct(query, K[kStart + ki]) * scale;
459
+ }
460
+ }
461
+ return scores;
462
+ }
463
+ /**
464
+ * Online softmax with output accumulation (key to Flash Attention)
465
+ *
466
+ * Uses the online softmax trick to maintain numerical stability
467
+ * while processing blocks incrementally.
468
+ */
469
+ onlineSoftmaxAccumulate(blockScores, V, output, maxScores, sumExp, qStart, qEnd, kStart, kEnd) {
470
+ const qBlockSize = qEnd - qStart;
471
+ const kBlockSize = kEnd - kStart;
472
+ const dimensions = output[0]?.length ?? this.config.dimensions;
473
+ for (let qi = 0; qi < qBlockSize; qi++) {
474
+ const globalQi = qStart + qi;
475
+ const rowScores = blockScores[qi];
476
+ // Find max in this block
477
+ let blockMax = -Infinity;
478
+ for (let ki = 0; ki < kBlockSize; ki++) {
479
+ if (rowScores[ki] > blockMax) {
480
+ blockMax = rowScores[ki];
481
+ }
482
+ }
483
+ const oldMax = maxScores[globalQi];
484
+ const newMax = Math.max(oldMax, blockMax);
485
+ // Correction factor for previous outputs
486
+ const correction = oldMax === -Infinity ? 0 : Math.exp(oldMax - newMax);
487
+ // Update sum of exponentials with correction
488
+ let newSumExp = sumExp[globalQi] * correction;
489
+ // Scale existing output by correction factor
490
+ for (let d = 0; d < dimensions; d++) {
491
+ output[globalQi][d] *= correction;
492
+ }
493
+ // Process this block
494
+ for (let ki = 0; ki < kBlockSize; ki++) {
495
+ const expScore = Math.exp(rowScores[ki] - newMax);
496
+ newSumExp += expScore;
497
+ // Accumulate weighted values
498
+ const value = V[kStart + ki];
499
+ for (let d = 0; d < dimensions; d++) {
500
+ output[globalQi][d] += expScore * value[d];
501
+ }
502
+ }
503
+ // Update running statistics
504
+ maxScores[globalQi] = newMax;
505
+ sumExp[globalQi] = newSumExp;
506
+ }
507
+ }
508
+ /**
509
+ * Compute dot product of two vectors
510
+ */
511
+ dotProduct(a, b) {
512
+ let sum = 0;
513
+ const len = Math.min(a.length, b.length);
514
+ // Unroll loop for performance (4x unroll)
515
+ let i = 0;
516
+ for (; i <= len - 4; i += 4) {
517
+ sum += a[i] * b[i] +
518
+ a[i + 1] * b[i + 1] +
519
+ a[i + 2] * b[i + 2] +
520
+ a[i + 3] * b[i + 3];
521
+ }
522
+ // Handle remaining elements
523
+ for (; i < len; i++) {
524
+ sum += a[i] * b[i];
525
+ }
526
+ return sum;
527
+ }
528
+ /**
529
+ * Stable softmax implementation
530
+ */
531
+ softmax(scores) {
532
+ const result = new Float32Array(scores.length);
533
+ // Find max for numerical stability
534
+ let max = -Infinity;
535
+ for (let i = 0; i < scores.length; i++) {
536
+ if (scores[i] > max) {
537
+ max = scores[i];
538
+ }
539
+ }
540
+ // Compute exp and sum
541
+ let sum = 0;
542
+ for (let i = 0; i < scores.length; i++) {
543
+ result[i] = Math.exp(scores[i] - max);
544
+ sum += result[i];
545
+ }
546
+ // Normalize
547
+ if (sum > 0) {
548
+ for (let i = 0; i < scores.length; i++) {
549
+ result[i] /= sum;
550
+ }
551
+ }
552
+ return result;
553
+ }
554
+ /**
555
+ * Generate random vectors for benchmarking
556
+ */
557
+ generateRandomVectors(count, dimensions) {
558
+ const vectors = new Array(count);
559
+ for (let i = 0; i < count; i++) {
560
+ vectors[i] = new Float32Array(dimensions);
561
+ for (let d = 0; d < dimensions; d++) {
562
+ vectors[i][d] = (Math.random() - 0.5) * 2;
563
+ }
564
+ // Normalize
565
+ let norm = 0;
566
+ for (let d = 0; d < dimensions; d++) {
567
+ norm += vectors[i][d] * vectors[i][d];
568
+ }
569
+ norm = Math.sqrt(norm);
570
+ if (norm > 0) {
571
+ for (let d = 0; d < dimensions; d++) {
572
+ vectors[i][d] /= norm;
573
+ }
574
+ }
575
+ }
576
+ return vectors;
577
+ }
578
+ /**
579
+ * Validate input arrays
580
+ */
581
+ validateInputs(queries, keys, values) {
582
+ if (!queries.length || !keys.length || !values.length) {
583
+ throw new Error('FlashAttention: Empty input arrays');
584
+ }
585
+ if (keys.length !== values.length) {
586
+ throw new Error(`FlashAttention: Keys and values must have same count. Got ${keys.length} keys, ${values.length} values`);
587
+ }
588
+ const qDim = queries[0]?.length ?? 0;
589
+ const kDim = keys[0]?.length ?? 0;
590
+ const vDim = values[0]?.length ?? 0;
591
+ if (qDim !== kDim) {
592
+ throw new Error(`FlashAttention: Query and key dimensions must match. Got Q=${qDim}, K=${kDim}`);
593
+ }
594
+ if (kDim !== vDim) {
595
+ throw new Error(`FlashAttention: Key and value dimensions must match. Got K=${kDim}, V=${vDim}`);
596
+ }
597
+ }
598
+ }
599
+ // ============================================================================
600
+ // Singleton Instance
601
+ // ============================================================================
602
+ let flashAttentionInstance = null;
603
+ /**
604
+ * Get singleton FlashAttention instance
605
+ *
606
+ * @param config - Optional configuration (only used on first call)
607
+ * @returns FlashAttention instance
608
+ */
609
+ export function getFlashAttention(config) {
610
+ if (!flashAttentionInstance) {
611
+ flashAttentionInstance = new FlashAttention(config);
612
+ }
613
+ return flashAttentionInstance;
614
+ }
615
+ /**
616
+ * Reset singleton (for testing)
617
+ */
618
+ export function resetFlashAttention() {
619
+ flashAttentionInstance = null;
620
+ }
621
+ // ============================================================================
622
+ // Convenience Functions
623
+ // ============================================================================
624
+ /**
625
+ * Compute attention using Flash Attention
626
+ */
627
+ export function computeAttention(queries, keys, values, config) {
628
+ const fa = config ? new FlashAttention(config) : getFlashAttention();
629
+ return fa.attention(queries, keys, values);
630
+ }
631
+ /**
632
+ * Run Flash Attention benchmark
633
+ */
634
+ export function benchmarkFlashAttention(numVectors, dimensions, iterations) {
635
+ return getFlashAttention().benchmark(numVectors, dimensions, iterations);
636
+ }
637
+ /**
638
+ * Get current speedup from last benchmark
639
+ */
640
+ export function getFlashAttentionSpeedup() {
641
+ return getFlashAttention().getSpeedup();
642
+ }
643
+ //# sourceMappingURL=flash-attention.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flash-attention.js","sourceRoot":"","sources":["../../../src/ruvector/flash-attention.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AA+CH,+EAA+E;AAC/E,iCAAiC;AACjC,+EAA+E;AAE/E,MAAM,OAAO,cAAc;IACjB,MAAM,CAAuB;IAC7B,WAAW,GAAW,CAAC,CAAC;IACxB,gBAAgB,GAAsB,EAAE,CAAC;IAEjD,6CAA6C;IACrC,WAAW,GAAwB,IAAI,CAAC;IACxC,SA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