agentic-qe 3.15.13 → 3.15.15

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 (426) hide show
  1. package/.claude/agents/v3/templates/qx-report-template.html +1 -1
  2. package/.claude/helpers/brain-checkpoint.cjs +124 -5
  3. package/.claude/skills/skills-manifest.json +1 -1
  4. package/CHANGELOG.md +124 -0
  5. package/assets/agents/v3/templates/qx-report-template.html +1 -1
  6. package/assets/skills/skills-manifest.json +1 -1
  7. package/dist/cli/bundle.js +6 -6
  8. package/dist/cli/chunks/adapter-QU6INSKP.js +2 -0
  9. package/dist/cli/chunks/agent-booster-wasm-EUF4XVUC.js +2 -0
  10. package/dist/cli/chunks/{agent-handler-AOH6TV7W.js → agent-handler-MOX6PSIQ.js} +2 -2
  11. package/dist/cli/chunks/{agent-memory-branch-2P54SF5N.js → agent-memory-branch-AEXKIGDG.js} +2 -2
  12. package/dist/cli/chunks/aqe-learning-engine-PAJPENJD.js +2 -0
  13. package/dist/cli/chunks/{arena-NSVFCAF5.js → arena-IQ5ZZDRF.js} +2 -2
  14. package/dist/cli/chunks/{arena-X6MOGQHA.js → arena-M7GA3CVG.js} +4 -4
  15. package/dist/cli/chunks/{audit-27DJLQNM.js → audit-4IPBMKWB.js} +3 -3
  16. package/dist/cli/chunks/base-OTGSN6IC.js +2 -0
  17. package/dist/cli/chunks/{better-sqlite3-BU5GXILS.js → better-sqlite3-IKDKJ2IE.js} +2 -2
  18. package/dist/cli/chunks/brain-handler-5NQUDH4W.js +95 -0
  19. package/dist/cli/chunks/{branch-enumerator-5CLULOCU.js → branch-enumerator-KSXELWRC.js} +2 -2
  20. package/dist/cli/chunks/{browser-R4DMU3LN.js → browser-6LACARWE.js} +2 -2
  21. package/dist/cli/chunks/browser-workflow-WLZGR6SB.js +2 -0
  22. package/dist/cli/chunks/{chunk-LUZNKJE6.js → chunk-22UKJGGN.js} +3 -3
  23. package/dist/cli/chunks/{chunk-BLSLEVDI.js → chunk-27HE2BHC.js} +2 -2
  24. package/dist/cli/chunks/{chunk-K4CZA77U.js → chunk-2CKERSMB.js} +2 -2
  25. package/dist/cli/chunks/{chunk-YSZ5OE3Z.js → chunk-2IIXCEMS.js} +2 -2
  26. package/dist/cli/chunks/{chunk-F3YS57NF.js → chunk-2LUTPMBO.js} +2 -2
  27. package/dist/cli/chunks/{chunk-GHM6MQNK.js → chunk-2ZFLULL4.js} +2 -2
  28. package/dist/cli/chunks/{chunk-7CMTY45A.js → chunk-337Z52QM.js} +2 -2
  29. package/dist/cli/chunks/{chunk-W26B7ERY.js → chunk-3CYNZFKH.js} +1 -1
  30. package/dist/cli/chunks/chunk-3HVFIITW.js +2 -0
  31. package/dist/cli/chunks/{chunk-K3TLLJMX.js → chunk-3J3RNJNX.js} +1 -1
  32. package/dist/cli/chunks/{chunk-MAMQA43L.js → chunk-4ATQP3PR.js} +1 -1
  33. package/dist/cli/chunks/{chunk-YXRASAPI.js → chunk-4D4CWP72.js} +2 -2
  34. package/dist/cli/chunks/{chunk-GHY6Z6KO.js → chunk-4HKAD25N.js} +3 -3
  35. package/dist/cli/chunks/{chunk-XNBOGCF3.js → chunk-4X3SWKBA.js} +2 -2
  36. package/dist/cli/chunks/{chunk-IJUHSJ2U.js → chunk-5AFVEWMT.js} +2 -2
  37. package/dist/cli/chunks/{chunk-SE4VNN4I.js → chunk-5C62XMJR.js} +3 -3
  38. package/dist/cli/chunks/{chunk-KDNJ4F3P.js → chunk-5G4UFTV4.js} +2 -2
  39. package/dist/cli/chunks/{chunk-DVGRPK7A.js → chunk-5I7357KS.js} +2 -2
  40. package/dist/cli/chunks/{chunk-YZWBNBTW.js → chunk-5KA5TVPR.js} +2 -2
  41. package/dist/cli/chunks/{chunk-JGZ722G3.js → chunk-5PTAFGJT.js} +2 -2
  42. package/dist/cli/chunks/{chunk-SVLQRAMF.js → chunk-6BRQPHMZ.js} +1 -1
  43. package/dist/cli/chunks/{chunk-KDVZND5Q.js → chunk-6KCSKGVY.js} +1 -1
  44. package/dist/cli/chunks/{chunk-LWR3FV3Y.js → chunk-6LE362LZ.js} +2 -2
  45. package/dist/cli/chunks/{chunk-WKGTGOYS.js → chunk-6NBRMD25.js} +3 -3
  46. package/dist/cli/chunks/{chunk-HQZGPJYG.js → chunk-6RBTS3NF.js} +2 -2
  47. package/dist/cli/chunks/{chunk-WOCGL4QP.js → chunk-6YVMX2TC.js} +2 -2
  48. package/dist/cli/chunks/{chunk-I3C7JOXC.js → chunk-73PBAWAF.js} +2 -2
  49. package/dist/cli/chunks/{chunk-75RDHBAX.js → chunk-74YG72NQ.js} +3 -3
  50. package/dist/cli/chunks/{chunk-O6FGXMHD.js → chunk-76P32JVU.js} +1 -1
  51. package/dist/cli/chunks/{chunk-LL7LDPXS.js → chunk-7ACCBHRB.js} +1 -1
  52. package/dist/cli/chunks/{chunk-3LJ7LQMV.js → chunk-7BLZHFKD.js} +1 -1
  53. package/dist/cli/chunks/{chunk-CM4LSLKR.js → chunk-7O45RQHF.js} +2 -2
  54. package/dist/cli/chunks/{chunk-NU3W5WFT.js → chunk-7XB3FCKM.js} +2 -2
  55. package/dist/cli/chunks/{chunk-E56B6IDX.js → chunk-AHMWD6JG.js} +2 -2
  56. package/dist/cli/chunks/{chunk-G2Q66Z23.js → chunk-AJPROCDW.js} +2 -2
  57. package/dist/cli/chunks/{chunk-NW7IBHJA.js → chunk-AKZO6GGG.js} +13 -13
  58. package/dist/cli/chunks/{chunk-IC3TQEOA.js → chunk-AOKKUB5F.js} +1 -1
  59. package/dist/cli/chunks/{chunk-4OVC4RIL.js → chunk-AP2W7Z3A.js} +1 -1
  60. package/dist/cli/chunks/{chunk-PHP5UBT4.js → chunk-BBRROA3Z.js} +2 -2
  61. package/dist/cli/chunks/{chunk-5FKWCZNF.js → chunk-BDKEAGQ2.js} +2 -2
  62. package/dist/cli/chunks/{chunk-BTVEYBW2.js → chunk-BFQTLF5X.js} +2 -2
  63. package/dist/cli/chunks/{chunk-HZ5NXFXH.js → chunk-BLL2XU7A.js} +2 -2
  64. package/dist/cli/chunks/{chunk-UTRV7T2N.js → chunk-BP5T3OEV.js} +2 -2
  65. package/dist/cli/chunks/{chunk-GB6HBNH2.js → chunk-BQ47GQPK.js} +2 -2
  66. package/dist/cli/chunks/{chunk-RFNW2LGD.js → chunk-BU4UQR36.js} +2 -2
  67. package/dist/cli/chunks/{chunk-WO274FRI.js → chunk-BZULJMGH.js} +2 -2
  68. package/dist/cli/chunks/{chunk-GU5HNCWI.js → chunk-C4KLXFJP.js} +1 -1
  69. package/dist/cli/chunks/{chunk-LFJALJOA.js → chunk-C4RTAVC6.js} +2 -2
  70. package/dist/cli/chunks/{chunk-WNQS4WTS.js → chunk-C5CXL3JP.js} +2 -2
  71. package/dist/cli/chunks/{chunk-MGZ5FJUW.js → chunk-CAOUV5GZ.js} +2 -2
  72. package/dist/cli/chunks/{chunk-XPRVF4YE.js → chunk-CBK5CT6T.js} +2 -2
  73. package/dist/cli/chunks/{chunk-JRRXCODW.js → chunk-DEKR3CTS.js} +2 -2
  74. package/dist/cli/chunks/{chunk-AQSVJNEH.js → chunk-DKX4GNRU.js} +2 -2
  75. package/dist/cli/chunks/{chunk-6KATY3KS.js → chunk-DUKE27HC.js} +2 -2
  76. package/dist/cli/chunks/{chunk-W2QWSQVE.js → chunk-DURD37JZ.js} +2 -2
  77. package/dist/cli/chunks/{chunk-KCW47QR5.js → chunk-E3MRDIZF.js} +1 -1
  78. package/dist/cli/chunks/{chunk-6Z7PRBSG.js → chunk-E56PVVWC.js} +2 -2
  79. package/dist/cli/chunks/{chunk-WQL7WCIZ.js → chunk-E5G4WZ2T.js} +1 -1
  80. package/dist/cli/chunks/{chunk-PB6J6HAA.js → chunk-EBTNMQSS.js} +2 -2
  81. package/dist/cli/chunks/{chunk-KADFXPPN.js → chunk-EFUJDMNC.js} +2 -2
  82. package/dist/cli/chunks/{chunk-QPNG5ZN2.js → chunk-EKP2SC77.js} +2 -2
  83. package/dist/cli/chunks/{chunk-U2FUXDDJ.js → chunk-EMSZVUYA.js} +3 -3
  84. package/dist/cli/chunks/{chunk-XEAEYC6Y.js → chunk-ERN56H6S.js} +1 -1
  85. package/dist/cli/chunks/{chunk-DNDL7SOS.js → chunk-FOOW4JVS.js} +2 -2
  86. package/dist/cli/chunks/{chunk-HOAJUIBQ.js → chunk-FTRSS64D.js} +2 -2
  87. package/dist/cli/chunks/{chunk-TOQWL2ZF.js → chunk-G242G224.js} +2 -2
  88. package/dist/cli/chunks/{chunk-VTDFVFST.js → chunk-G6RDCCFV.js} +2 -2
  89. package/dist/cli/chunks/{chunk-TWDW32W2.js → chunk-GCHYOPRZ.js} +2 -2
  90. package/dist/cli/chunks/{chunk-MFW5HSG4.js → chunk-GGQGCT4Y.js} +2 -2
  91. package/dist/cli/chunks/{chunk-G6WDYBLQ.js → chunk-GKSMRBHU.js} +1 -1
  92. package/dist/cli/chunks/{chunk-CCMKSHAT.js → chunk-GQABPCQE.js} +2 -2
  93. package/dist/cli/chunks/{chunk-G77ERMUD.js → chunk-GV2QE5TO.js} +1 -1
  94. package/dist/cli/chunks/{chunk-756CGMEH.js → chunk-H5DER3JY.js} +1 -1
  95. package/dist/cli/chunks/{chunk-W3PPFHI5.js → chunk-HH4ED4F7.js} +52 -50
  96. package/dist/cli/chunks/{chunk-3Y2ROSCL.js → chunk-HL2ANKN3.js} +2 -2
  97. package/dist/cli/chunks/{chunk-T3PGQFDI.js → chunk-HTZSRMHW.js} +2 -2
  98. package/dist/cli/chunks/{chunk-3QZEGE67.js → chunk-IXL5ZHWJ.js} +1 -1
  99. package/dist/cli/chunks/{chunk-5ZGM3RMH.js → chunk-J3FP5UGL.js} +1 -1
  100. package/dist/cli/chunks/{chunk-FZ76G4QJ.js → chunk-JCQGJGGZ.js} +1 -1
  101. package/dist/cli/chunks/chunk-JCZCJE6X.js +86 -0
  102. package/dist/cli/chunks/{chunk-YZEXYO4W.js → chunk-JKJOB65O.js} +1 -1
  103. package/dist/cli/chunks/{chunk-A64JFBWI.js → chunk-JUDUBQHA.js} +2 -2
  104. package/dist/cli/chunks/{chunk-PIDQVU3L.js → chunk-JW74KRBC.js} +2 -2
  105. package/dist/cli/chunks/{chunk-EXGMJFAT.js → chunk-K3WZICFA.js} +1 -1
  106. package/dist/cli/chunks/{chunk-ASQYASNV.js → chunk-K3XBQC3R.js} +1 -1
  107. package/dist/cli/chunks/{chunk-E7CLYGS7.js → chunk-KCQNFBBR.js} +1 -1
  108. package/dist/cli/chunks/chunk-KJBPB7P5.js +3 -0
  109. package/dist/cli/chunks/chunk-KLTMOXIK.js +3 -0
  110. package/dist/cli/chunks/{chunk-5MDERQH3.js → chunk-L32JNNKL.js} +1 -1
  111. package/dist/cli/chunks/{chunk-32ZMWEP3.js → chunk-LB2LGEDP.js} +2 -2
  112. package/dist/cli/chunks/{chunk-42J34YG4.js → chunk-LHMQIZ6B.js} +2 -2
  113. package/dist/cli/chunks/{chunk-NURIILUB.js → chunk-LJMYRTJ7.js} +1 -1
  114. package/dist/cli/chunks/{chunk-M6AAGIG7.js → chunk-LNX74WHQ.js} +1 -1
  115. package/dist/cli/chunks/{chunk-P7A4NKTZ.js → chunk-LTQVUAPH.js} +2 -2
  116. package/dist/cli/chunks/{chunk-3YNLWPBF.js → chunk-LVABQNRF.js} +2 -2
  117. package/dist/cli/chunks/{chunk-2G7TVT6W.js → chunk-LYJHUNBK.js} +2 -2
  118. package/dist/cli/chunks/{chunk-DLD7RUZ4.js → chunk-M4CJCPCQ.js} +2 -2
  119. package/dist/cli/chunks/{chunk-Q3UDLV5Z.js → chunk-M4WMSCAE.js} +1 -1
  120. package/dist/cli/chunks/{chunk-UDQSYWVF.js → chunk-MIA447GY.js} +1 -1
  121. package/dist/cli/chunks/{chunk-RF7HWBHN.js → chunk-MPFPWJTH.js} +2 -2
  122. package/dist/cli/chunks/{chunk-BK577VL7.js → chunk-MV55NXTD.js} +2 -2
  123. package/dist/cli/chunks/{chunk-JQGMW45H.js → chunk-NQS3BWS6.js} +1 -1
  124. package/dist/cli/chunks/{chunk-BEGR4D6N.js → chunk-NWIIYHT6.js} +2 -2
  125. package/dist/cli/chunks/{chunk-SSU73QAX.js → chunk-O6EWL5DQ.js} +2 -2
  126. package/dist/cli/chunks/chunk-OBDONJQM.js +2 -0
  127. package/dist/cli/chunks/chunk-OLZH5LRT.js +141 -0
  128. package/dist/cli/chunks/{chunk-W3INMZZ6.js → chunk-OQG3UQQ7.js} +1 -1
  129. package/dist/cli/chunks/{chunk-72ASBE35.js → chunk-PFQCV6YS.js} +3 -3
  130. package/dist/cli/chunks/{chunk-7YTGHGK4.js → chunk-PS6UMZVK.js} +2 -2
  131. package/dist/cli/chunks/{chunk-OCAEXYFA.js → chunk-PXATBHWN.js} +2 -2
  132. package/dist/cli/chunks/{chunk-ARJW4I2O.js → chunk-PYPS65P7.js} +2 -2
  133. package/dist/cli/chunks/{chunk-SYV2V3PL.js → chunk-Q6I4SIUU.js} +4 -4
  134. package/dist/cli/chunks/{chunk-H4H2YSFH.js → chunk-QFGYH6HD.js} +1 -1
  135. package/dist/cli/chunks/{chunk-526QYFJU.js → chunk-QGBGSQ2E.js} +2 -2
  136. package/dist/cli/chunks/{chunk-YBQH2VOP.js → chunk-QRKTBSZT.js} +2 -2
  137. package/dist/cli/chunks/{chunk-C7JM7CD3.js → chunk-R6LHJ7ME.js} +2 -2
  138. package/dist/cli/chunks/{chunk-TSQC2KKZ.js → chunk-RBKUU7WF.js} +2 -2
  139. package/dist/cli/chunks/{chunk-CE7B5LU7.js → chunk-RDMRY7CT.js} +1 -1
  140. package/dist/cli/chunks/chunk-RIRZHOS2.js +8 -0
  141. package/dist/cli/chunks/{chunk-CRWPZT74.js → chunk-SHRI7TKJ.js} +2 -2
  142. package/dist/cli/chunks/{chunk-KWYH3FI4.js → chunk-SJCKCSN3.js} +1 -1
  143. package/dist/cli/chunks/{chunk-DFUASIKA.js → chunk-SON6ZRH3.js} +2 -2
  144. package/dist/cli/chunks/{chunk-J2ZIFFM6.js → chunk-SZAZQZWI.js} +2 -2
  145. package/dist/cli/chunks/{chunk-HD7YIFOI.js → chunk-T4GE7MPI.js} +2 -2
  146. package/dist/cli/chunks/{chunk-3Y7TJFHU.js → chunk-T66PPF4D.js} +2 -2
  147. package/dist/cli/chunks/{chunk-3RZV5DGO.js → chunk-T67R2MUN.js} +2 -2
  148. package/dist/cli/chunks/{chunk-H4GG2NLO.js → chunk-TDQWTSBS.js} +2 -2
  149. package/dist/cli/chunks/{chunk-TWJTK4CC.js → chunk-TODNOP7C.js} +2 -2
  150. package/dist/cli/chunks/{chunk-NZ3GUMB2.js → chunk-TX2CHQD7.js} +2 -2
  151. package/dist/cli/chunks/{chunk-AL6FBH3E.js → chunk-TZIHDJZD.js} +2 -2
  152. package/dist/cli/chunks/{chunk-GII6UM3F.js → chunk-U62OUXBF.js} +1 -1
  153. package/dist/cli/chunks/{chunk-YQFLQE53.js → chunk-UAQZI6N4.js} +2 -2
  154. package/dist/cli/chunks/{chunk-R7SYRCRP.js → chunk-UE2J6MA5.js} +1 -1
  155. package/dist/cli/chunks/{chunk-VRHRBAEM.js → chunk-UGYM4U44.js} +1 -1
  156. package/dist/cli/chunks/{chunk-NT4DBXSX.js → chunk-UJABDXST.js} +2 -2
  157. package/dist/cli/chunks/{chunk-OFACHK5O.js → chunk-UORB2QDU.js} +9 -9
  158. package/dist/cli/chunks/{chunk-QDEJ4CI2.js → chunk-UQPA33UK.js} +2 -2
  159. package/dist/cli/chunks/{chunk-TCBBNUBP.js → chunk-UUBIQR6A.js} +3 -3
  160. package/dist/cli/chunks/{chunk-NZD4DPSU.js → chunk-UXIY4IAI.js} +2 -2
  161. package/dist/cli/chunks/{chunk-SG3NX7QE.js → chunk-VCXI4XC4.js} +2 -2
  162. package/dist/cli/chunks/{chunk-PSFSPGUD.js → chunk-VMAM46HQ.js} +2 -2
  163. package/dist/cli/chunks/{chunk-3AN5TNGD.js → chunk-VY4U6DPO.js} +3 -3
  164. package/dist/cli/chunks/{chunk-X7N2JF2X.js → chunk-W27AJ5B4.js} +2 -2
  165. package/dist/cli/chunks/{chunk-CT6SAVXQ.js → chunk-W5ZJG2OU.js} +2 -2
  166. package/dist/cli/chunks/{chunk-KV4T4MXK.js → chunk-W62OOK7A.js} +2 -2
  167. package/dist/cli/chunks/{chunk-5K26BEYB.js → chunk-WNTA4YKE.js} +2 -2
  168. package/dist/cli/chunks/{chunk-LZYQHVD4.js → chunk-WUOOX7UG.js} +2 -2
  169. package/dist/cli/chunks/{chunk-7NA7JXNB.js → chunk-WVXJ2QIG.js} +2 -2
  170. package/dist/cli/chunks/{chunk-KB56CPU4.js → chunk-X33CWRDF.js} +2 -2
  171. package/dist/cli/chunks/{chunk-7JUC2MVZ.js → chunk-XG4F4XH4.js} +2 -2
  172. package/dist/cli/chunks/{chunk-ZAKQLAHT.js → chunk-XH4JMX5O.js} +1 -1
  173. package/dist/cli/chunks/{chunk-X2Z7F4EU.js → chunk-XHHWABJV.js} +2 -2
  174. package/dist/cli/chunks/{chunk-7PLIEBY7.js → chunk-XHLYGXYE.js} +2 -2
  175. package/dist/cli/chunks/{chunk-UXZSUMEA.js → chunk-XIVVTYM2.js} +2 -2
  176. package/dist/cli/chunks/{chunk-MVVB7C2E.js → chunk-XM6ZVFM5.js} +156 -156
  177. package/dist/cli/chunks/{chunk-VTOBUZL6.js → chunk-XWIAZG3C.js} +2 -2
  178. package/dist/cli/chunks/{chunk-CV77DMDQ.js → chunk-Y2OX6KGN.js} +2 -2
  179. package/dist/cli/chunks/{chunk-VRVMIPTM.js → chunk-YUS6TWAL.js} +2 -2
  180. package/dist/cli/chunks/{chunk-VU5TBX2V.js → chunk-ZIPAB5J6.js} +2 -2
  181. package/dist/cli/chunks/{chunk-KUAKV3IW.js → chunk-ZSOMUTNL.js} +1 -1
  182. package/dist/cli/chunks/{chunk-UOC3O6RP.js → chunk-ZWBGYJ7K.js} +2 -2
  183. package/dist/cli/chunks/{chunk-5VMAV6T6.js → chunk-ZYJB6FML.js} +1 -1
  184. package/dist/cli/chunks/{ci-ENOASTYB.js → ci-UCUJOSBW.js} +2 -2
  185. package/dist/cli/chunks/{ci-config-B26OXHQM.js → ci-config-2XILD3XG.js} +2 -2
  186. package/dist/cli/chunks/{ci-output-JTCLLNOQ.js → ci-output-BL6KWOHW.js} +2 -2
  187. package/dist/cli/chunks/{circuit-breaker-23JMFNM5.js → circuit-breaker-5XLIOXE5.js} +2 -2
  188. package/dist/cli/chunks/{claude-flow-setup-ON6L462G.js → claude-flow-setup-4IMP6ACS.js} +2 -2
  189. package/dist/cli/chunks/client-KKRNPX4F.js +2 -0
  190. package/dist/cli/chunks/{cline-installer-OWQ4D2FQ.js → cline-installer-RYLHCDK7.js} +2 -2
  191. package/dist/cli/chunks/{code-2ZRL7SEU.js → code-WY3GJXHX.js} +3 -3
  192. package/dist/cli/chunks/{code-index-extractor-JXSQVM67.js → code-index-extractor-Y4MZBZCW.js} +2 -2
  193. package/dist/cli/chunks/{codex-installer-7LXZYBSQ.js → codex-installer-SCJ3T3DX.js} +4 -4
  194. package/dist/cli/chunks/{completions-C2LR623C.js → completions-CN2DXQFU.js} +2 -2
  195. package/dist/cli/chunks/{complexity-analyzer-TGQLHCYJ.js → complexity-analyzer-7MDPPIBH.js} +2 -2
  196. package/dist/cli/chunks/{continuedev-installer-RUGD24D2.js → continuedev-installer-GCEJRK34.js} +2 -2
  197. package/dist/cli/chunks/{copilot-installer-ZLFVLEJP.js → copilot-installer-BHPDSELY.js} +2 -2
  198. package/dist/cli/chunks/core-handlers-47MPMED7.js +2 -0
  199. package/dist/cli/chunks/{cost-tracker-RT4QL745.js → cost-tracker-VO5MFWR6.js} +2 -2
  200. package/dist/cli/chunks/coverage-LYFQYNH6.js +51 -0
  201. package/dist/cli/chunks/cross-domain-router-U6MBFHEC.js +2 -0
  202. package/dist/cli/chunks/{cursor-installer-LJKLNFF6.js → cursor-installer-KP4HA7TV.js} +2 -2
  203. package/dist/cli/chunks/{daemon-BMDXCQT5.js → daemon-7RC7TS57.js} +3 -3
  204. package/dist/cli/chunks/{daemon-FBH3IRYN.js → daemon-AXLVPKVO.js} +4 -4
  205. package/dist/cli/chunks/{dag-attention-scheduler-JGDED55I.js → dag-attention-scheduler-NKA44RSR.js} +2 -2
  206. package/dist/cli/chunks/{detect-SZIHIVCJ.js → detect-CMYAJWYF.js} +2 -2
  207. package/dist/cli/chunks/{dist-node-FV3KWXQ6.js → dist-node-EN3PYEGW.js} +2 -2
  208. package/dist/cli/chunks/{domain-handler-GI5JWQOV.js → domain-handler-EXSZCX7A.js} +2 -2
  209. package/dist/cli/chunks/{domain-plugins-BUWY36TL.js → domain-plugins-HCQFSNL7.js} +2 -2
  210. package/dist/cli/chunks/{domain-transfer-GCY7W5DA.js → domain-transfer-3LGSNTPO.js} +2 -2
  211. package/dist/cli/chunks/dream-76L6EEN7.js +2 -0
  212. package/dist/cli/chunks/{embed-and-insert-pattern-GPRR3ZGD.js → embed-and-insert-pattern-B6MNHICW.js} +2 -2
  213. package/dist/cli/chunks/{eval-XPB3IGAP.js → eval-OQELIWJK.js} +2 -2
  214. package/dist/cli/chunks/{experience-capture-middleware-2E554UB3.js → experience-capture-middleware-SUFILYPW.js} +3 -3
  215. package/dist/cli/chunks/{fast-paths-ZSMWZPUC.js → fast-paths-UV4NDEWM.js} +2 -2
  216. package/dist/cli/chunks/{feature-flags-GIWVDVVC.js → feature-flags-CKTYX67J.js} +2 -2
  217. package/dist/cli/chunks/{feature-flags-N7EOGE5P.js → feature-flags-H7H33B6C.js} +2 -2
  218. package/dist/cli/chunks/file-discovery-VSFKZ3LJ.js +2 -0
  219. package/dist/cli/chunks/{fleet-HCHDOUCX.js → fleet-ZJBCAKRG.js} +3 -3
  220. package/dist/cli/chunks/{gnn-wrapper-CZNCNXXZ.js → gnn-wrapper-RUE2QZRG.js} +2 -2
  221. package/dist/cli/chunks/{heartbeat-handler-6YUIF2YQ.js → heartbeat-handler-XRV327M7.js} +4 -4
  222. package/dist/cli/chunks/heartbeat-scheduler-NIK3KKEH.js +2 -0
  223. package/dist/cli/chunks/hnsw-adapter-WJG7LUJJ.js +2 -0
  224. package/dist/cli/chunks/hnsw-index-D6PRI5HC.js +2 -0
  225. package/dist/cli/chunks/{hnsw-legacy-bridge-J3M3IK24.js → hnsw-legacy-bridge-UJID6ZZ4.js} +2 -2
  226. package/dist/cli/chunks/{hnswlib-node-ULGTGDZW.js → hnswlib-node-WS43R4AX.js} +2 -2
  227. package/dist/cli/chunks/{hooks-C4BUGYUQ.js → hooks-YZNJKXAJ.js} +10 -10
  228. package/dist/cli/chunks/hybrid-backend-RIUR3I7F.js +2 -0
  229. package/dist/cli/chunks/{hypergraph-engine-WINGVMPG.js → hypergraph-engine-XQJSIMTS.js} +2 -2
  230. package/dist/cli/chunks/{hypergraph-handler-GADMWKAU.js → hypergraph-handler-ZD2NYXMR.js} +3 -3
  231. package/dist/cli/chunks/impact-analyzer-C36YYTJ5.js +2 -0
  232. package/dist/cli/chunks/{init-guard-K2T4QWAO.js → init-guard-DSRUAVRT.js} +2 -2
  233. package/dist/cli/chunks/{init-handler-PCZTDZYI.js → init-handler-RJU5QMAP.js} +6 -6
  234. package/dist/cli/chunks/init-wizard-JCKNGIGT.js +2 -0
  235. package/dist/cli/chunks/kernel-F7ILJTYD.js +2 -0
  236. package/dist/cli/chunks/{kilocode-installer-XENXNEIU.js → kilocode-installer-BCPOCVMC.js} +2 -2
  237. package/dist/cli/chunks/{kiro-installer-3PG2TJ67.js → kiro-installer-GFCWCB2S.js} +2 -2
  238. package/dist/cli/chunks/knowledge-graph-VTXDBHB2.js +2 -0
  239. package/dist/cli/chunks/learning-FZTD72CF.js +131 -0
  240. package/dist/cli/chunks/{llm-router-RKVDEWU2.js → llm-router-GJVKGRJL.js} +4 -4
  241. package/dist/cli/chunks/llm-router-service-TNOWQINA.js +2 -0
  242. package/dist/cli/chunks/{load-ITHC564X.js → load-YKTPOYBE.js} +2 -2
  243. package/dist/cli/chunks/load-test-FPVBK2EV.js +2 -0
  244. package/dist/cli/chunks/{mcp-TCL5UW3N.js → mcp-LT6R2IKS.js} +2 -2
  245. package/dist/cli/chunks/{memory-BKDAY2N2.js → memory-4HKKOLRY.js} +5 -5
  246. package/dist/cli/chunks/memory-backend-2QE7O67A.js +2 -0
  247. package/dist/cli/chunks/{memory-handlers-WN4FXFOA.js → memory-handlers-X4CMVBXB.js} +2 -2
  248. package/dist/cli/chunks/{multi-model-executor-VHAT7ZPF.js → multi-model-executor-2YPM2WTK.js} +2 -2
  249. package/dist/cli/chunks/{opencode-installer-E3VM3EEY.js → opencode-installer-WBAJMH5K.js} +2 -2
  250. package/dist/cli/chunks/{orchestrator-BMQ6X762.js → orchestrator-5W5WVMVJ.js} +109 -25
  251. package/dist/cli/chunks/pattern-null-store-UI35ORHW.js +2 -0
  252. package/dist/cli/chunks/{pattern-usage-recorder-GOOR2BV5.js → pattern-usage-recorder-GXRMNPAZ.js} +2 -2
  253. package/dist/cli/chunks/{pipeline-5NSFQQIX.js → pipeline-2NA4DRDA.js} +2 -2
  254. package/dist/cli/chunks/{platform-SQM34J5G.js → platform-BGERNQ5V.js} +2 -2
  255. package/dist/cli/chunks/{plugin-UQJZRMZG.js → plugin-L4EPVENR.js} +2 -2
  256. package/dist/cli/chunks/{prime-radiant-advanced-wasm-WMDJOL4S.js → prime-radiant-advanced-wasm-RTQRTPTM.js} +2 -2
  257. package/dist/cli/chunks/project-root-S7WDFTMU.js +2 -0
  258. package/dist/cli/chunks/protocol-executor-OPANXQVB.js +2 -0
  259. package/dist/cli/chunks/{protocol-handler-OBDCVY6X.js → protocol-handler-SYQXM6JK.js} +2 -2
  260. package/dist/cli/chunks/{prove-XDC7I4XT.js → prove-5O7GPJCU.js} +2 -2
  261. package/dist/cli/chunks/qe-reasoning-bank-3OTF4DYQ.js +2 -0
  262. package/dist/cli/chunks/{quality-L4GQ6WX4.js → quality-KIIDHGNF.js} +2 -2
  263. package/dist/cli/chunks/{quality-gate-MJG66LKN.js → quality-gate-H65VECD3.js} +3 -3
  264. package/dist/cli/chunks/queen-coordinator-WTYH4TAN.js +2 -0
  265. package/dist/cli/chunks/{real-embeddings-HW4G2LWL.js → real-embeddings-DYIOLKQ3.js} +2 -2
  266. package/dist/cli/chunks/{ref-validation-FC7JOJ2C.js → ref-validation-CSBJOMZM.js} +2 -2
  267. package/dist/cli/chunks/{roocode-installer-KWS4CEIC.js → roocode-installer-G7OVYXEN.js} +2 -2
  268. package/dist/cli/chunks/router-DBBW4NC2.js +2 -0
  269. package/dist/cli/chunks/routing-feedback-W35QHCL4.js +2 -0
  270. package/dist/cli/chunks/{routing-handler-QF4WVB2S.js → routing-handler-ZNZPPI5Y.js} +2 -2
  271. package/dist/cli/chunks/{ruvector-commands-2MTCOUK6.js → ruvector-commands-C6IG3OY3.js} +2 -2
  272. package/dist/cli/chunks/rvf-dual-writer-X3NSL25Z.js +2 -0
  273. package/dist/cli/chunks/rvf-migration-adapter-TZR7GDOK.js +2 -0
  274. package/dist/cli/chunks/{rvf-migration-coordinator-BREJCXWN.js → rvf-migration-coordinator-4ATTHGHD.js} +2 -2
  275. package/dist/cli/chunks/rvf-native-adapter-HD25ZYV5.js +2 -0
  276. package/dist/cli/chunks/{rvf-store-integrity-KKC6HOJD.js → rvf-store-integrity-3G6LFLT3.js} +2 -2
  277. package/dist/cli/chunks/safe-db-ZS2QKANY.js +2 -0
  278. package/dist/cli/chunks/schedule-ZH6VNA32.js +2 -0
  279. package/dist/cli/chunks/scheduler-T6CD74B6.js +2 -0
  280. package/dist/cli/chunks/{security-OSAE7VAP.js → security-A3IMVLFM.js} +3 -3
  281. package/dist/cli/chunks/{shared-rvf-adapter-COUOS665.js → shared-rvf-adapter-VHWQ6US5.js} +2 -2
  282. package/dist/cli/chunks/{shared-rvf-dual-writer-YXMPZKQE.js → shared-rvf-dual-writer-JB3QS7IG.js} +2 -2
  283. package/dist/cli/chunks/sqlite-persistence-47WU5EKZ.js +2 -0
  284. package/dist/cli/chunks/{standalone-memory-E6JBMOIL.js → standalone-memory-DDNXCSBD.js} +2 -2
  285. package/dist/cli/chunks/{status-handler-AFTCIYIX.js → status-handler-2HK7XPEK.js} +2 -2
  286. package/dist/cli/chunks/{structural-health-2FROCEI4.js → structural-health-DSJVLEPV.js} +2 -2
  287. package/dist/cli/chunks/{sync-VAYTOWDC.js → sync-3MUV6S5E.js} +2 -2
  288. package/dist/cli/chunks/{sync-YIQYOFGW.js → sync-NTUR53PI.js} +2 -2
  289. package/dist/cli/chunks/{task-handler-KVQHDEX3.js → task-handler-74MZN2EO.js} +2 -2
  290. package/dist/cli/chunks/{task-handlers-MVVECQA6.js → task-handlers-VJR6EHRZ.js} +3 -3
  291. package/dist/cli/chunks/{test-5JSVTOMY.js → test-O6FK3FVF.js} +4 -4
  292. package/dist/cli/chunks/test-runner-process-2NPW3UDQ.js +2 -0
  293. package/dist/cli/chunks/{test-scheduling-HBOHVLI3.js → test-scheduling-Q6QEEOS6.js} +3 -3
  294. package/dist/cli/chunks/{token-bootstrap-5VEPTPFA.js → token-bootstrap-TTRCECLP.js} +2 -2
  295. package/dist/cli/chunks/{token-usage-TBJHDLY6.js → token-usage-YEEFWSSI.js} +2 -2
  296. package/dist/cli/chunks/{transformers-VAWYMHMZ.js → transformers-BZCHJJJT.js} +2 -2
  297. package/dist/cli/chunks/tree-sitter-wasm-parser-RZAND65G.js +2 -0
  298. package/dist/cli/chunks/{types-R5SDZU2E.js → types-4AOKZYOX.js} +2 -2
  299. package/dist/cli/chunks/unified-memory-FZ5K2C7W.js +2 -0
  300. package/dist/cli/chunks/unified-memory-hnsw-VREWX56M.js +2 -0
  301. package/dist/cli/chunks/unified-persistence-YZGMKX6B.js +2 -0
  302. package/dist/cli/chunks/{upgrade-K5PIHXRB.js → upgrade-2MWW6BT2.js} +2 -2
  303. package/dist/cli/chunks/{validate-RPTS7RYJ.js → validate-PAEV3GT5.js} +2 -2
  304. package/dist/cli/chunks/{validate-swarm-B2ZL556X.js → validate-swarm-ZIXACK5K.js} +2 -2
  305. package/dist/cli/chunks/visual-security-GXGSFBVA.js +2 -0
  306. package/dist/cli/chunks/{web-tree-sitter-K4DUJC32.js → web-tree-sitter-VLTXZFAB.js} +2 -2
  307. package/dist/cli/chunks/{windsurf-installer-OK2AJN35.js → windsurf-installer-VELMLOZF.js} +2 -2
  308. package/dist/cli/chunks/witness-chain-MRJKVCOW.js +2 -0
  309. package/dist/cli/chunks/witness-chain-WWHJKITG.js +2 -0
  310. package/dist/cli/chunks/{witness-chain-repair-L6Y5RFXR.js → witness-chain-repair-5SAXPETG.js} +2 -2
  311. package/dist/cli/chunks/{witness-chain-verifier-N4CW7FZX.js → witness-chain-verifier-MIDWD4JS.js} +2 -2
  312. package/dist/cli/chunks/{witness-key-manager-TDNPS3WD.js → witness-key-manager-OSVCWOB2.js} +2 -2
  313. package/dist/cli/chunks/{workflow-XRZA3YCY.js → workflow-MK7A7QCX.js} +4 -4
  314. package/dist/cli/chunks/workflow-orchestrator-SG7DV72E.js +2 -0
  315. package/dist/cli/chunks/{wrappers-5JIFWKN6.js → wrappers-5QFMCKXL.js} +2 -2
  316. package/dist/cli/commands/coverage.js +6 -0
  317. package/dist/cli/commands/learning-prune.d.ts +14 -0
  318. package/dist/cli/commands/learning-prune.js +105 -0
  319. package/dist/cli/commands/learning.js +9 -0
  320. package/dist/cli/handlers/brain-handler.js +12 -1
  321. package/dist/cli/utils/coverage-verdict.js +14 -3
  322. package/dist/context/compaction/index.d.ts +7 -0
  323. package/dist/context/compaction/index.js +30 -6
  324. package/dist/coordination/handlers/coverage-evidence.d.ts +19 -0
  325. package/dist/coordination/handlers/coverage-evidence.js +31 -2
  326. package/dist/coordination/handlers/coverage-handlers.js +5 -1
  327. package/dist/coordination/handlers/coverage-target.js +8 -1
  328. package/dist/coordination/handlers/quality-handlers.js +9 -1
  329. package/dist/coordination/result-saver-adapters.js +1 -0
  330. package/dist/coordination/result-saver.js +9 -5
  331. package/dist/domains/chaos-resilience/services/chaos-engineer.d.ts +1 -0
  332. package/dist/domains/chaos-resilience/services/chaos-engineer.js +23 -45
  333. package/dist/domains/coverage-analysis/collected-metrics.d.ts +22 -6
  334. package/dist/domains/coverage-analysis/collected-metrics.js +37 -12
  335. package/dist/domains/coverage-analysis/services/coverage-analyzer.js +2 -0
  336. package/dist/domains/defect-intelligence/services/defect-predictor.js +3 -6
  337. package/dist/domains/quality-assessment/coverage-report-event.d.ts +8 -0
  338. package/dist/domains/quality-assessment/coverage-report-event.js +22 -1
  339. package/dist/domains/quality-assessment/interfaces.d.ts +6 -0
  340. package/dist/domains/quality-assessment/services/quality-analyzer.d.ts +4 -0
  341. package/dist/domains/quality-assessment/services/quality-analyzer.js +63 -17
  342. package/dist/domains/test-execution/interfaces.d.ts +5 -0
  343. package/dist/domains/test-execution/services/test-executor.js +6 -0
  344. package/dist/init/init-wizard-hooks.d.ts +1 -1
  345. package/dist/init/init-wizard-hooks.js +7 -8
  346. package/dist/init/phases/07-hooks.js +90 -6
  347. package/dist/init/phases/08-mcp.js +9 -0
  348. package/dist/init/settings-merge.d.ts +13 -0
  349. package/dist/init/settings-merge.js +49 -2
  350. package/dist/integrations/agent-booster-wasm/agent_booster_wasm.js +849 -0
  351. package/dist/integrations/agent-booster-wasm/agent_booster_wasm_bg.wasm +0 -0
  352. package/dist/integrations/agent-booster-wasm/index.d.ts +8 -0
  353. package/dist/integrations/agent-booster-wasm/index.js +25 -2
  354. package/dist/integrations/agent-booster-wasm/package.json +16 -0
  355. package/dist/integrations/ruvector/brain-rvf-exporter.d.ts +25 -0
  356. package/dist/integrations/ruvector/brain-rvf-exporter.js +154 -61
  357. package/dist/learning/dream/dream-engine.d.ts +27 -3
  358. package/dist/learning/dream/dream-engine.js +97 -28
  359. package/dist/learning/dream/dream-lock-retry.d.ts +38 -0
  360. package/dist/learning/dream/dream-lock-retry.js +66 -0
  361. package/dist/learning/dream/speculative-dreamer.js +1 -1
  362. package/dist/learning/learning-retention.d.ts +103 -0
  363. package/dist/learning/learning-retention.js +213 -0
  364. package/dist/mcp/bundle.js +501 -496
  365. package/dist/mcp/handlers/domain-handler-configs.d.ts +9 -1
  366. package/dist/mcp/handlers/domain-handler-configs.js +24 -14
  367. package/dist/mcp/protocol-server.js +1 -1
  368. package/dist/mcp/tools/chaos-resilience/inject.d.ts +3 -4
  369. package/dist/mcp/tools/chaos-resilience/inject.js +11 -81
  370. package/dist/mcp/tools/learning-optimization/dream.d.ts +8 -0
  371. package/dist/mcp/tools/learning-optimization/dream.js +4 -0
  372. package/package.json +4 -2
  373. package/dist/cli/chunks/adapter-KCQDVYY2.js +0 -2
  374. package/dist/cli/chunks/agent-booster-wasm-6RRQWMNE.js +0 -2
  375. package/dist/cli/chunks/aqe-learning-engine-SAQOHSGN.js +0 -2
  376. package/dist/cli/chunks/base-WCACU3FN.js +0 -2
  377. package/dist/cli/chunks/brain-handler-GTQNHHZS.js +0 -94
  378. package/dist/cli/chunks/browser-workflow-G6IASEAP.js +0 -2
  379. package/dist/cli/chunks/chunk-C6JTLKG7.js +0 -141
  380. package/dist/cli/chunks/chunk-K65CGKLD.js +0 -8
  381. package/dist/cli/chunks/chunk-MB46UBGY.js +0 -3
  382. package/dist/cli/chunks/chunk-N4CYAKOX.js +0 -79
  383. package/dist/cli/chunks/chunk-PT4FMJPQ.js +0 -3
  384. package/dist/cli/chunks/chunk-S5AZCIZS.js +0 -2
  385. package/dist/cli/chunks/chunk-UT2VZ33P.js +0 -2
  386. package/dist/cli/chunks/client-TV3V2YZ5.js +0 -2
  387. package/dist/cli/chunks/core-handlers-PZT4OLWR.js +0 -2
  388. package/dist/cli/chunks/coverage-NV3C4IMM.js +0 -50
  389. package/dist/cli/chunks/cross-domain-router-QOFCZ7G4.js +0 -2
  390. package/dist/cli/chunks/dream-TRFBGDSQ.js +0 -2
  391. package/dist/cli/chunks/file-discovery-WCKGMSPZ.js +0 -2
  392. package/dist/cli/chunks/heartbeat-scheduler-P44A2OX3.js +0 -2
  393. package/dist/cli/chunks/hnsw-adapter-ZJQIQJKC.js +0 -2
  394. package/dist/cli/chunks/hnsw-index-HMG2GH3Z.js +0 -2
  395. package/dist/cli/chunks/hybrid-backend-B7M74PZG.js +0 -2
  396. package/dist/cli/chunks/impact-analyzer-PZYOVKQO.js +0 -2
  397. package/dist/cli/chunks/init-wizard-TZDJQK3U.js +0 -2
  398. package/dist/cli/chunks/kernel-Y6RRIOKW.js +0 -2
  399. package/dist/cli/chunks/knowledge-graph-BVD5Z66M.js +0 -2
  400. package/dist/cli/chunks/learning-6KDH7FK4.js +0 -122
  401. package/dist/cli/chunks/llm-router-service-KHCAMSUU.js +0 -2
  402. package/dist/cli/chunks/load-test-RUF7DZA5.js +0 -2
  403. package/dist/cli/chunks/memory-backend-7ZLFOVGG.js +0 -2
  404. package/dist/cli/chunks/pattern-null-store-RY6CVYHP.js +0 -2
  405. package/dist/cli/chunks/project-root-IO5KRNGL.js +0 -2
  406. package/dist/cli/chunks/protocol-executor-U2CUDWDE.js +0 -2
  407. package/dist/cli/chunks/qe-reasoning-bank-DQSSX2IP.js +0 -2
  408. package/dist/cli/chunks/queen-coordinator-6FN4BZIX.js +0 -2
  409. package/dist/cli/chunks/router-YUO3I7RU.js +0 -2
  410. package/dist/cli/chunks/routing-feedback-36SLQGJE.js +0 -2
  411. package/dist/cli/chunks/rvf-dual-writer-FRYZH3WZ.js +0 -2
  412. package/dist/cli/chunks/rvf-migration-adapter-XXNITL5I.js +0 -2
  413. package/dist/cli/chunks/rvf-native-adapter-D2WWKJIV.js +0 -2
  414. package/dist/cli/chunks/safe-db-4RRIGRXD.js +0 -2
  415. package/dist/cli/chunks/schedule-25RTO4DQ.js +0 -2
  416. package/dist/cli/chunks/scheduler-BPIOJZ5P.js +0 -2
  417. package/dist/cli/chunks/sqlite-persistence-EDF47DDX.js +0 -2
  418. package/dist/cli/chunks/test-runner-process-LEPF2OSS.js +0 -2
  419. package/dist/cli/chunks/tree-sitter-wasm-parser-TSZTCMFV.js +0 -2
  420. package/dist/cli/chunks/unified-memory-TLGSSLMI.js +0 -2
  421. package/dist/cli/chunks/unified-memory-hnsw-MSUR7ZOO.js +0 -2
  422. package/dist/cli/chunks/unified-persistence-VFFOTWK7.js +0 -2
  423. package/dist/cli/chunks/visual-security-6Q44XNLB.js +0 -2
  424. package/dist/cli/chunks/witness-chain-KDOMXDQX.js +0 -2
  425. package/dist/cli/chunks/witness-chain-N3OY2RMH.js +0 -2
  426. package/dist/cli/chunks/workflow-orchestrator-CVNNT2RJ.js +0 -2
@@ -0,0 +1,849 @@
1
+ /* @ts-self-types="./agent_booster_wasm.d.ts" */
2
+
3
+ /**
4
+ * Main AgentBooster WASM interface
5
+ */
6
+ class AgentBoosterWasm {
7
+ static __wrap(ptr) {
8
+ ptr = ptr >>> 0;
9
+ const obj = Object.create(AgentBoosterWasm.prototype);
10
+ obj.__wbg_ptr = ptr;
11
+ AgentBoosterWasmFinalization.register(obj, obj.__wbg_ptr, obj);
12
+ return obj;
13
+ }
14
+ __destroy_into_raw() {
15
+ const ptr = this.__wbg_ptr;
16
+ this.__wbg_ptr = 0;
17
+ AgentBoosterWasmFinalization.unregister(this);
18
+ return ptr;
19
+ }
20
+ free() {
21
+ const ptr = this.__destroy_into_raw();
22
+ wasm.__wbg_agentboosterwasm_free(ptr, 0);
23
+ }
24
+ /**
25
+ * Apply an edit to code
26
+ *
27
+ * Parameters:
28
+ * - original_code: The original source code
29
+ * - edit_snippet: The code snippet to apply
30
+ * - language: The programming language (use parse_language helper)
31
+ *
32
+ * Apply a code edit using tree-sitter and similarity matching
33
+ * @param {string} original_code
34
+ * @param {string} edit_snippet
35
+ * @param {WasmLanguage} language
36
+ * @returns {WasmEditResult}
37
+ */
38
+ apply_edit(original_code, edit_snippet, language) {
39
+ try {
40
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
41
+ const ptr0 = passStringToWasm0(original_code, wasm.__wbindgen_export, wasm.__wbindgen_export2);
42
+ const len0 = WASM_VECTOR_LEN;
43
+ const ptr1 = passStringToWasm0(edit_snippet, wasm.__wbindgen_export, wasm.__wbindgen_export2);
44
+ const len1 = WASM_VECTOR_LEN;
45
+ wasm.agentboosterwasm_apply_edit(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, language);
46
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
47
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
48
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
49
+ if (r2) {
50
+ throw takeObject(r1);
51
+ }
52
+ return WasmEditResult.__wrap(r0);
53
+ } finally {
54
+ wasm.__wbindgen_add_to_stack_pointer(16);
55
+ }
56
+ }
57
+ /**
58
+ * Apply an edit from a JSON EditRequest
59
+ * @param {string} request_json
60
+ * @returns {WasmEditResult}
61
+ */
62
+ apply_edit_json(request_json) {
63
+ try {
64
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
65
+ const ptr0 = passStringToWasm0(request_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
66
+ const len0 = WASM_VECTOR_LEN;
67
+ wasm.agentboosterwasm_apply_edit_json(retptr, this.__wbg_ptr, ptr0, len0);
68
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
69
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
70
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
71
+ if (r2) {
72
+ throw takeObject(r1);
73
+ }
74
+ return WasmEditResult.__wrap(r0);
75
+ } finally {
76
+ wasm.__wbindgen_add_to_stack_pointer(16);
77
+ }
78
+ }
79
+ /**
80
+ * Get current configuration
81
+ * @returns {WasmConfig}
82
+ */
83
+ get_config() {
84
+ const ret = wasm.agentboosterwasm_get_config(this.__wbg_ptr);
85
+ return WasmConfig.__wrap(ret);
86
+ }
87
+ /**
88
+ * Create a new AgentBooster instance with default config
89
+ */
90
+ constructor() {
91
+ try {
92
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
93
+ wasm.agentboosterwasm_new(retptr);
94
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
95
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
96
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
97
+ if (r2) {
98
+ throw takeObject(r1);
99
+ }
100
+ this.__wbg_ptr = r0 >>> 0;
101
+ AgentBoosterWasmFinalization.register(this, this.__wbg_ptr, this);
102
+ return this;
103
+ } finally {
104
+ wasm.__wbindgen_add_to_stack_pointer(16);
105
+ }
106
+ }
107
+ /**
108
+ * Parse a language string into WasmLanguage
109
+ * @param {string} lang
110
+ * @returns {WasmLanguage}
111
+ */
112
+ static parse_language(lang) {
113
+ try {
114
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
115
+ const ptr0 = passStringToWasm0(lang, wasm.__wbindgen_export, wasm.__wbindgen_export2);
116
+ const len0 = WASM_VECTOR_LEN;
117
+ wasm.agentboosterwasm_parse_language(retptr, ptr0, len0);
118
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
119
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
120
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
121
+ if (r2) {
122
+ throw takeObject(r1);
123
+ }
124
+ return r0;
125
+ } finally {
126
+ wasm.__wbindgen_add_to_stack_pointer(16);
127
+ }
128
+ }
129
+ /**
130
+ * Update configuration
131
+ * @param {WasmConfig} config
132
+ */
133
+ set_config(config) {
134
+ _assertClass(config, WasmConfig);
135
+ var ptr0 = config.__destroy_into_raw();
136
+ wasm.agentboosterwasm_set_config(this.__wbg_ptr, ptr0);
137
+ }
138
+ /**
139
+ * Get library version
140
+ * @returns {string}
141
+ */
142
+ static version() {
143
+ let deferred1_0;
144
+ let deferred1_1;
145
+ try {
146
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
147
+ wasm.agentboosterwasm_version(retptr);
148
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
149
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
150
+ deferred1_0 = r0;
151
+ deferred1_1 = r1;
152
+ return getStringFromWasm0(r0, r1);
153
+ } finally {
154
+ wasm.__wbindgen_add_to_stack_pointer(16);
155
+ wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
156
+ }
157
+ }
158
+ /**
159
+ * Create with custom config
160
+ * @param {WasmConfig} config
161
+ * @returns {AgentBoosterWasm}
162
+ */
163
+ static with_config(config) {
164
+ try {
165
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
166
+ _assertClass(config, WasmConfig);
167
+ var ptr0 = config.__destroy_into_raw();
168
+ wasm.agentboosterwasm_with_config(retptr, ptr0);
169
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
170
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
171
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
172
+ if (r2) {
173
+ throw takeObject(r1);
174
+ }
175
+ return AgentBoosterWasm.__wrap(r0);
176
+ } finally {
177
+ wasm.__wbindgen_add_to_stack_pointer(16);
178
+ }
179
+ }
180
+ }
181
+ if (Symbol.dispose) AgentBoosterWasm.prototype[Symbol.dispose] = AgentBoosterWasm.prototype.free;
182
+ exports.AgentBoosterWasm = AgentBoosterWasm;
183
+
184
+ /**
185
+ * JavaScript-compatible CodeChunk
186
+ */
187
+ class WasmCodeChunk {
188
+ __destroy_into_raw() {
189
+ const ptr = this.__wbg_ptr;
190
+ this.__wbg_ptr = 0;
191
+ WasmCodeChunkFinalization.unregister(this);
192
+ return ptr;
193
+ }
194
+ free() {
195
+ const ptr = this.__destroy_into_raw();
196
+ wasm.__wbg_wasmcodechunk_free(ptr, 0);
197
+ }
198
+ /**
199
+ * @returns {string}
200
+ */
201
+ get code() {
202
+ let deferred1_0;
203
+ let deferred1_1;
204
+ try {
205
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
206
+ wasm.wasmcodechunk_code(retptr, this.__wbg_ptr);
207
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
208
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
209
+ deferred1_0 = r0;
210
+ deferred1_1 = r1;
211
+ return getStringFromWasm0(r0, r1);
212
+ } finally {
213
+ wasm.__wbindgen_add_to_stack_pointer(16);
214
+ wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
215
+ }
216
+ }
217
+ /**
218
+ * @returns {number}
219
+ */
220
+ get end_byte() {
221
+ const ret = wasm.wasmcodechunk_end_byte(this.__wbg_ptr);
222
+ return ret >>> 0;
223
+ }
224
+ /**
225
+ * @returns {number}
226
+ */
227
+ get end_line() {
228
+ const ret = wasm.wasmcodechunk_end_line(this.__wbg_ptr);
229
+ return ret >>> 0;
230
+ }
231
+ /**
232
+ * @returns {number}
233
+ */
234
+ line_count() {
235
+ const ret = wasm.wasmcodechunk_line_count(this.__wbg_ptr);
236
+ return ret >>> 0;
237
+ }
238
+ /**
239
+ * @returns {string}
240
+ */
241
+ get node_type() {
242
+ let deferred1_0;
243
+ let deferred1_1;
244
+ try {
245
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
246
+ wasm.wasmcodechunk_node_type(retptr, this.__wbg_ptr);
247
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
248
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
249
+ deferred1_0 = r0;
250
+ deferred1_1 = r1;
251
+ return getStringFromWasm0(r0, r1);
252
+ } finally {
253
+ wasm.__wbindgen_add_to_stack_pointer(16);
254
+ wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
255
+ }
256
+ }
257
+ /**
258
+ * @returns {string | undefined}
259
+ */
260
+ get parent_type() {
261
+ try {
262
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
263
+ wasm.wasmcodechunk_parent_type(retptr, this.__wbg_ptr);
264
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
265
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
266
+ let v1;
267
+ if (r0 !== 0) {
268
+ v1 = getStringFromWasm0(r0, r1).slice();
269
+ wasm.__wbindgen_export3(r0, r1 * 1, 1);
270
+ }
271
+ return v1;
272
+ } finally {
273
+ wasm.__wbindgen_add_to_stack_pointer(16);
274
+ }
275
+ }
276
+ /**
277
+ * @returns {number}
278
+ */
279
+ get start_byte() {
280
+ const ret = wasm.wasmcodechunk_start_byte(this.__wbg_ptr);
281
+ return ret >>> 0;
282
+ }
283
+ /**
284
+ * @returns {number}
285
+ */
286
+ get start_line() {
287
+ const ret = wasm.wasmcodechunk_start_line(this.__wbg_ptr);
288
+ return ret >>> 0;
289
+ }
290
+ /**
291
+ * Convert to JSON string
292
+ * @returns {string}
293
+ */
294
+ to_json() {
295
+ let deferred2_0;
296
+ let deferred2_1;
297
+ try {
298
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
299
+ wasm.wasmcodechunk_to_json(retptr, this.__wbg_ptr);
300
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
301
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
302
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
303
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
304
+ var ptr1 = r0;
305
+ var len1 = r1;
306
+ if (r3) {
307
+ ptr1 = 0; len1 = 0;
308
+ throw takeObject(r2);
309
+ }
310
+ deferred2_0 = ptr1;
311
+ deferred2_1 = len1;
312
+ return getStringFromWasm0(ptr1, len1);
313
+ } finally {
314
+ wasm.__wbindgen_add_to_stack_pointer(16);
315
+ wasm.__wbindgen_export3(deferred2_0, deferred2_1, 1);
316
+ }
317
+ }
318
+ }
319
+ if (Symbol.dispose) WasmCodeChunk.prototype[Symbol.dispose] = WasmCodeChunk.prototype.free;
320
+ exports.WasmCodeChunk = WasmCodeChunk;
321
+
322
+ /**
323
+ * JavaScript-compatible Config
324
+ */
325
+ class WasmConfig {
326
+ static __wrap(ptr) {
327
+ ptr = ptr >>> 0;
328
+ const obj = Object.create(WasmConfig.prototype);
329
+ obj.__wbg_ptr = ptr;
330
+ WasmConfigFinalization.register(obj, obj.__wbg_ptr, obj);
331
+ return obj;
332
+ }
333
+ __destroy_into_raw() {
334
+ const ptr = this.__wbg_ptr;
335
+ this.__wbg_ptr = 0;
336
+ WasmConfigFinalization.unregister(this);
337
+ return ptr;
338
+ }
339
+ free() {
340
+ const ptr = this.__destroy_into_raw();
341
+ wasm.__wbg_wasmconfig_free(ptr, 0);
342
+ }
343
+ /**
344
+ * @returns {number}
345
+ */
346
+ get confidence_threshold() {
347
+ const ret = wasm.wasmconfig_confidence_threshold(this.__wbg_ptr);
348
+ return ret;
349
+ }
350
+ /**
351
+ * Create from JSON string
352
+ * @param {string} json
353
+ * @returns {WasmConfig}
354
+ */
355
+ static from_json(json) {
356
+ try {
357
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
358
+ const ptr0 = passStringToWasm0(json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
359
+ const len0 = WASM_VECTOR_LEN;
360
+ wasm.wasmconfig_from_json(retptr, ptr0, len0);
361
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
362
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
363
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
364
+ if (r2) {
365
+ throw takeObject(r1);
366
+ }
367
+ return WasmConfig.__wrap(r0);
368
+ } finally {
369
+ wasm.__wbindgen_add_to_stack_pointer(16);
370
+ }
371
+ }
372
+ /**
373
+ * @returns {number}
374
+ */
375
+ get max_chunks() {
376
+ const ret = wasm.wasmconfig_max_chunks(this.__wbg_ptr);
377
+ return ret >>> 0;
378
+ }
379
+ constructor() {
380
+ const ret = wasm.wasmconfig_new();
381
+ this.__wbg_ptr = ret >>> 0;
382
+ WasmConfigFinalization.register(this, this.__wbg_ptr, this);
383
+ return this;
384
+ }
385
+ /**
386
+ * @param {number} threshold
387
+ */
388
+ set confidence_threshold(threshold) {
389
+ wasm.wasmconfig_set_confidence_threshold(this.__wbg_ptr, threshold);
390
+ }
391
+ /**
392
+ * @param {number} max
393
+ */
394
+ set max_chunks(max) {
395
+ wasm.wasmconfig_set_max_chunks(this.__wbg_ptr, max);
396
+ }
397
+ /**
398
+ * Convert to JSON string
399
+ * @returns {string}
400
+ */
401
+ to_json() {
402
+ let deferred2_0;
403
+ let deferred2_1;
404
+ try {
405
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
406
+ wasm.wasmconfig_to_json(retptr, this.__wbg_ptr);
407
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
408
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
409
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
410
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
411
+ var ptr1 = r0;
412
+ var len1 = r1;
413
+ if (r3) {
414
+ ptr1 = 0; len1 = 0;
415
+ throw takeObject(r2);
416
+ }
417
+ deferred2_0 = ptr1;
418
+ deferred2_1 = len1;
419
+ return getStringFromWasm0(ptr1, len1);
420
+ } finally {
421
+ wasm.__wbindgen_add_to_stack_pointer(16);
422
+ wasm.__wbindgen_export3(deferred2_0, deferred2_1, 1);
423
+ }
424
+ }
425
+ }
426
+ if (Symbol.dispose) WasmConfig.prototype[Symbol.dispose] = WasmConfig.prototype.free;
427
+ exports.WasmConfig = WasmConfig;
428
+
429
+ /**
430
+ * JavaScript-compatible EditResult
431
+ */
432
+ class WasmEditResult {
433
+ static __wrap(ptr) {
434
+ ptr = ptr >>> 0;
435
+ const obj = Object.create(WasmEditResult.prototype);
436
+ obj.__wbg_ptr = ptr;
437
+ WasmEditResultFinalization.register(obj, obj.__wbg_ptr, obj);
438
+ return obj;
439
+ }
440
+ __destroy_into_raw() {
441
+ const ptr = this.__wbg_ptr;
442
+ this.__wbg_ptr = 0;
443
+ WasmEditResultFinalization.unregister(this);
444
+ return ptr;
445
+ }
446
+ free() {
447
+ const ptr = this.__destroy_into_raw();
448
+ wasm.__wbg_wasmeditresult_free(ptr, 0);
449
+ }
450
+ /**
451
+ * @returns {number}
452
+ */
453
+ get best_similarity() {
454
+ const ret = wasm.wasmeditresult_best_similarity(this.__wbg_ptr);
455
+ return ret;
456
+ }
457
+ /**
458
+ * @returns {number}
459
+ */
460
+ get chunks_found() {
461
+ const ret = wasm.wasmeditresult_chunks_found(this.__wbg_ptr);
462
+ return ret >>> 0;
463
+ }
464
+ /**
465
+ * @returns {number}
466
+ */
467
+ get confidence() {
468
+ const ret = wasm.wasmeditresult_confidence(this.__wbg_ptr);
469
+ return ret;
470
+ }
471
+ /**
472
+ * @returns {string}
473
+ */
474
+ get merged_code() {
475
+ let deferred1_0;
476
+ let deferred1_1;
477
+ try {
478
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
479
+ wasm.wasmeditresult_merged_code(retptr, this.__wbg_ptr);
480
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
481
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
482
+ deferred1_0 = r0;
483
+ deferred1_1 = r1;
484
+ return getStringFromWasm0(r0, r1);
485
+ } finally {
486
+ wasm.__wbindgen_add_to_stack_pointer(16);
487
+ wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
488
+ }
489
+ }
490
+ /**
491
+ * @returns {bigint | undefined}
492
+ */
493
+ get processing_time_ms() {
494
+ try {
495
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
496
+ wasm.wasmeditresult_processing_time_ms(retptr, this.__wbg_ptr);
497
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
498
+ var r2 = getDataViewMemory0().getBigInt64(retptr + 8 * 1, true);
499
+ return r0 === 0 ? undefined : BigInt.asUintN(64, r2);
500
+ } finally {
501
+ wasm.__wbindgen_add_to_stack_pointer(16);
502
+ }
503
+ }
504
+ /**
505
+ * @returns {WasmMergeStrategy}
506
+ */
507
+ get strategy() {
508
+ const ret = wasm.wasmeditresult_strategy(this.__wbg_ptr);
509
+ return ret;
510
+ }
511
+ /**
512
+ * @returns {boolean}
513
+ */
514
+ get syntax_valid() {
515
+ const ret = wasm.wasmeditresult_syntax_valid(this.__wbg_ptr);
516
+ return ret !== 0;
517
+ }
518
+ /**
519
+ * Convert to JSON string
520
+ * @returns {string}
521
+ */
522
+ to_json() {
523
+ let deferred2_0;
524
+ let deferred2_1;
525
+ try {
526
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
527
+ wasm.wasmeditresult_to_json(retptr, this.__wbg_ptr);
528
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
529
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
530
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
531
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
532
+ var ptr1 = r0;
533
+ var len1 = r1;
534
+ if (r3) {
535
+ ptr1 = 0; len1 = 0;
536
+ throw takeObject(r2);
537
+ }
538
+ deferred2_0 = ptr1;
539
+ deferred2_1 = len1;
540
+ return getStringFromWasm0(ptr1, len1);
541
+ } finally {
542
+ wasm.__wbindgen_add_to_stack_pointer(16);
543
+ wasm.__wbindgen_export3(deferred2_0, deferred2_1, 1);
544
+ }
545
+ }
546
+ }
547
+ if (Symbol.dispose) WasmEditResult.prototype[Symbol.dispose] = WasmEditResult.prototype.free;
548
+ exports.WasmEditResult = WasmEditResult;
549
+
550
+ /**
551
+ * JavaScript-compatible Language enum
552
+ * @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7}
553
+ */
554
+ const WasmLanguage = Object.freeze({
555
+ JavaScript: 0, "0": "JavaScript",
556
+ TypeScript: 1, "1": "TypeScript",
557
+ Python: 2, "2": "Python",
558
+ Rust: 3, "3": "Rust",
559
+ Go: 4, "4": "Go",
560
+ Java: 5, "5": "Java",
561
+ C: 6, "6": "C",
562
+ Cpp: 7, "7": "Cpp",
563
+ });
564
+ exports.WasmLanguage = WasmLanguage;
565
+
566
+ /**
567
+ * JavaScript-compatible MergeStrategy enum
568
+ * @enum {0 | 1 | 2 | 3 | 4}
569
+ */
570
+ const WasmMergeStrategy = Object.freeze({
571
+ ExactReplace: 0, "0": "ExactReplace",
572
+ FuzzyReplace: 1, "1": "FuzzyReplace",
573
+ InsertAfter: 2, "2": "InsertAfter",
574
+ InsertBefore: 3, "3": "InsertBefore",
575
+ Append: 4, "4": "Append",
576
+ });
577
+ exports.WasmMergeStrategy = WasmMergeStrategy;
578
+
579
+ /**
580
+ * Helper function to create EditRequest JSON
581
+ * @param {string} original_code
582
+ * @param {string} edit_snippet
583
+ * @param {WasmLanguage} language
584
+ * @param {number | null} [confidence_threshold]
585
+ * @returns {string}
586
+ */
587
+ function create_edit_request(original_code, edit_snippet, language, confidence_threshold) {
588
+ let deferred4_0;
589
+ let deferred4_1;
590
+ try {
591
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
592
+ const ptr0 = passStringToWasm0(original_code, wasm.__wbindgen_export, wasm.__wbindgen_export2);
593
+ const len0 = WASM_VECTOR_LEN;
594
+ const ptr1 = passStringToWasm0(edit_snippet, wasm.__wbindgen_export, wasm.__wbindgen_export2);
595
+ const len1 = WASM_VECTOR_LEN;
596
+ wasm.create_edit_request(retptr, ptr0, len0, ptr1, len1, language, isLikeNone(confidence_threshold) ? 0x100000001 : Math.fround(confidence_threshold));
597
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
598
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
599
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
600
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
601
+ var ptr3 = r0;
602
+ var len3 = r1;
603
+ if (r3) {
604
+ ptr3 = 0; len3 = 0;
605
+ throw takeObject(r2);
606
+ }
607
+ deferred4_0 = ptr3;
608
+ deferred4_1 = len3;
609
+ return getStringFromWasm0(ptr3, len3);
610
+ } finally {
611
+ wasm.__wbindgen_add_to_stack_pointer(16);
612
+ wasm.__wbindgen_export3(deferred4_0, deferred4_1, 1);
613
+ }
614
+ }
615
+ exports.create_edit_request = create_edit_request;
616
+
617
+ /**
618
+ * Initialize panic hook for better error messages in WASM
619
+ */
620
+ function init() {
621
+ wasm.init();
622
+ }
623
+ exports.init = init;
624
+
625
+ /**
626
+ * Helper function to parse EditRequest from JSON
627
+ * @param {string} json
628
+ * @returns {any}
629
+ */
630
+ function parse_edit_request(json) {
631
+ try {
632
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
633
+ const ptr0 = passStringToWasm0(json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
634
+ const len0 = WASM_VECTOR_LEN;
635
+ wasm.parse_edit_request(retptr, ptr0, len0);
636
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
637
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
638
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
639
+ if (r2) {
640
+ throw takeObject(r1);
641
+ }
642
+ return takeObject(r0);
643
+ } finally {
644
+ wasm.__wbindgen_add_to_stack_pointer(16);
645
+ }
646
+ }
647
+ exports.parse_edit_request = parse_edit_request;
648
+
649
+ function __wbg_get_imports() {
650
+ const import0 = {
651
+ __proto__: null,
652
+ __wbg_String_8f0eb39a4a4c2f66: function(arg0, arg1) {
653
+ const ret = String(getObject(arg1));
654
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
655
+ const len1 = WASM_VECTOR_LEN;
656
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
657
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
658
+ },
659
+ __wbg___wbindgen_throw_be289d5034ed271b: function(arg0, arg1) {
660
+ throw new Error(getStringFromWasm0(arg0, arg1));
661
+ },
662
+ __wbg_error_7534b8e9a36f1ab4: function(arg0, arg1) {
663
+ let deferred0_0;
664
+ let deferred0_1;
665
+ try {
666
+ deferred0_0 = arg0;
667
+ deferred0_1 = arg1;
668
+ console.error(getStringFromWasm0(arg0, arg1));
669
+ } finally {
670
+ wasm.__wbindgen_export3(deferred0_0, deferred0_1, 1);
671
+ }
672
+ },
673
+ __wbg_new_361308b2356cecd0: function() {
674
+ const ret = new Object();
675
+ return addHeapObject(ret);
676
+ },
677
+ __wbg_new_8a6f238a6ece86ea: function() {
678
+ const ret = new Error();
679
+ return addHeapObject(ret);
680
+ },
681
+ __wbg_set_3f1d0b984ed272ed: function(arg0, arg1, arg2) {
682
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
683
+ },
684
+ __wbg_stack_0ed75d68575b0f3c: function(arg0, arg1) {
685
+ const ret = getObject(arg1).stack;
686
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
687
+ const len1 = WASM_VECTOR_LEN;
688
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
689
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
690
+ },
691
+ __wbindgen_cast_0000000000000001: function(arg0) {
692
+ // Cast intrinsic for `F64 -> Externref`.
693
+ const ret = arg0;
694
+ return addHeapObject(ret);
695
+ },
696
+ __wbindgen_cast_0000000000000002: function(arg0, arg1) {
697
+ // Cast intrinsic for `Ref(String) -> Externref`.
698
+ const ret = getStringFromWasm0(arg0, arg1);
699
+ return addHeapObject(ret);
700
+ },
701
+ __wbindgen_object_clone_ref: function(arg0) {
702
+ const ret = getObject(arg0);
703
+ return addHeapObject(ret);
704
+ },
705
+ __wbindgen_object_drop_ref: function(arg0) {
706
+ takeObject(arg0);
707
+ },
708
+ };
709
+ return {
710
+ __proto__: null,
711
+ "./agent_booster_wasm_bg.js": import0,
712
+ };
713
+ }
714
+
715
+ const AgentBoosterWasmFinalization = (typeof FinalizationRegistry === 'undefined')
716
+ ? { register: () => {}, unregister: () => {} }
717
+ : new FinalizationRegistry(ptr => wasm.__wbg_agentboosterwasm_free(ptr >>> 0, 1));
718
+ const WasmCodeChunkFinalization = (typeof FinalizationRegistry === 'undefined')
719
+ ? { register: () => {}, unregister: () => {} }
720
+ : new FinalizationRegistry(ptr => wasm.__wbg_wasmcodechunk_free(ptr >>> 0, 1));
721
+ const WasmConfigFinalization = (typeof FinalizationRegistry === 'undefined')
722
+ ? { register: () => {}, unregister: () => {} }
723
+ : new FinalizationRegistry(ptr => wasm.__wbg_wasmconfig_free(ptr >>> 0, 1));
724
+ const WasmEditResultFinalization = (typeof FinalizationRegistry === 'undefined')
725
+ ? { register: () => {}, unregister: () => {} }
726
+ : new FinalizationRegistry(ptr => wasm.__wbg_wasmeditresult_free(ptr >>> 0, 1));
727
+
728
+ function addHeapObject(obj) {
729
+ if (heap_next === heap.length) heap.push(heap.length + 1);
730
+ const idx = heap_next;
731
+ heap_next = heap[idx];
732
+
733
+ heap[idx] = obj;
734
+ return idx;
735
+ }
736
+
737
+ function _assertClass(instance, klass) {
738
+ if (!(instance instanceof klass)) {
739
+ throw new Error(`expected instance of ${klass.name}`);
740
+ }
741
+ }
742
+
743
+ function dropObject(idx) {
744
+ if (idx < 132) return;
745
+ heap[idx] = heap_next;
746
+ heap_next = idx;
747
+ }
748
+
749
+ let cachedDataViewMemory0 = null;
750
+ function getDataViewMemory0() {
751
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
752
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
753
+ }
754
+ return cachedDataViewMemory0;
755
+ }
756
+
757
+ function getStringFromWasm0(ptr, len) {
758
+ ptr = ptr >>> 0;
759
+ return decodeText(ptr, len);
760
+ }
761
+
762
+ let cachedUint8ArrayMemory0 = null;
763
+ function getUint8ArrayMemory0() {
764
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
765
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
766
+ }
767
+ return cachedUint8ArrayMemory0;
768
+ }
769
+
770
+ function getObject(idx) { return heap[idx]; }
771
+
772
+ let heap = new Array(128).fill(undefined);
773
+ heap.push(undefined, null, true, false);
774
+
775
+ let heap_next = heap.length;
776
+
777
+ function isLikeNone(x) {
778
+ return x === undefined || x === null;
779
+ }
780
+
781
+ function passStringToWasm0(arg, malloc, realloc) {
782
+ if (realloc === undefined) {
783
+ const buf = cachedTextEncoder.encode(arg);
784
+ const ptr = malloc(buf.length, 1) >>> 0;
785
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
786
+ WASM_VECTOR_LEN = buf.length;
787
+ return ptr;
788
+ }
789
+
790
+ let len = arg.length;
791
+ let ptr = malloc(len, 1) >>> 0;
792
+
793
+ const mem = getUint8ArrayMemory0();
794
+
795
+ let offset = 0;
796
+
797
+ for (; offset < len; offset++) {
798
+ const code = arg.charCodeAt(offset);
799
+ if (code > 0x7F) break;
800
+ mem[ptr + offset] = code;
801
+ }
802
+ if (offset !== len) {
803
+ if (offset !== 0) {
804
+ arg = arg.slice(offset);
805
+ }
806
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
807
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
808
+ const ret = cachedTextEncoder.encodeInto(arg, view);
809
+
810
+ offset += ret.written;
811
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
812
+ }
813
+
814
+ WASM_VECTOR_LEN = offset;
815
+ return ptr;
816
+ }
817
+
818
+ function takeObject(idx) {
819
+ const ret = getObject(idx);
820
+ dropObject(idx);
821
+ return ret;
822
+ }
823
+
824
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
825
+ cachedTextDecoder.decode();
826
+ function decodeText(ptr, len) {
827
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
828
+ }
829
+
830
+ const cachedTextEncoder = new TextEncoder();
831
+
832
+ if (!('encodeInto' in cachedTextEncoder)) {
833
+ cachedTextEncoder.encodeInto = function (arg, view) {
834
+ const buf = cachedTextEncoder.encode(arg);
835
+ view.set(buf);
836
+ return {
837
+ read: arg.length,
838
+ written: buf.length
839
+ };
840
+ };
841
+ }
842
+
843
+ let WASM_VECTOR_LEN = 0;
844
+
845
+ const wasmPath = `${__dirname}/agent_booster_wasm_bg.wasm`;
846
+ const wasmBytes = require('fs').readFileSync(wasmPath);
847
+ const wasmModule = new WebAssembly.Module(wasmBytes);
848
+ const wasm = new WebAssembly.Instance(wasmModule, __wbg_get_imports()).exports;
849
+ wasm.__wbindgen_start();