@askexenow/exe-os 0.9.276 → 0.9.277

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 (1215) hide show
  1. package/README.md +16 -21
  2. package/dist/active-agent-66LEIPUR.js +25 -0
  3. package/dist/active-agent-JCTHHJ2W.js +25 -0
  4. package/dist/active-agent-JH7BC6KY.js +26 -0
  5. package/dist/active-agent-LPJYRSTG.js +26 -0
  6. package/dist/active-agent-NCGJ3QXU.js +25 -0
  7. package/dist/active-agent-VEQ5SGTO.js +25 -0
  8. package/dist/active-agent-WJ7QDM72.js +26 -0
  9. package/dist/active-agent-ZZS2GYB6.js +26 -0
  10. package/dist/agent-context-3ZUEEDQK.js +9 -0
  11. package/dist/agent-heartbeat-5GCGY5HX.js +60 -0
  12. package/dist/agent-loop-4DFCSLOQ.js +10 -0
  13. package/dist/agent-loop-JUEI3YUS.js +10 -0
  14. package/dist/agentic-ontology-3OVJM6FA.js +25 -0
  15. package/dist/agentic-ontology-7KHZKT7S.js +25 -0
  16. package/dist/agentic-ontology-DBZK5FW7.js +25 -0
  17. package/dist/agentic-ontology-LNOFKQPG.js +25 -0
  18. package/dist/asana-NDUKYBVA.js +129 -0
  19. package/dist/assets/tmux.conf +7 -10
  20. package/dist/backfill-metadata-DO64RGBD.js +598 -0
  21. package/dist/backfill-metadata-GO7E4CCU.js +598 -0
  22. package/dist/backfill-metadata-M6EWLU7C.js +597 -0
  23. package/dist/backfill-metadata-OTDZ6XCE.js +598 -0
  24. package/dist/backfill-metadata-PVMQW5QG.js +598 -0
  25. package/dist/backfill-metadata-QYDB7UWL.js +598 -0
  26. package/dist/backfill-metadata-R7BNDZ3Y.js +598 -0
  27. package/dist/backfill-metadata-SKD6ZSDJ.js +598 -0
  28. package/dist/backfill-metadata-V3JRRFAU.js +597 -0
  29. package/dist/background-jobs-JL47DHDJ.js +25 -0
  30. package/dist/bash-M5BS35LM.js +8 -0
  31. package/dist/behavior-effectiveness-WT3ZATDP.js +344 -0
  32. package/dist/behaviors-4JYN6S3T.js +32 -0
  33. package/dist/behaviors-4SW3PTUF.js +32 -0
  34. package/dist/behaviors-ARYBWFNF.js +32 -0
  35. package/dist/behaviors-EVFSZMOC.js +32 -0
  36. package/dist/behaviors-GP45B7ZN.js +32 -0
  37. package/dist/behaviors-J2PUJFKO.js +32 -0
  38. package/dist/behaviors-NYUG7FGS.js +25 -0
  39. package/dist/behaviors-PX3XO42O.js +32 -0
  40. package/dist/bin/age-ontology-load.js +3 -3
  41. package/dist/bin/agentic-ontology-backfill.js +10 -9
  42. package/dist/bin/agentic-reflection-backfill.js +11 -10
  43. package/dist/bin/agentic-semantic-label.js +10 -9
  44. package/dist/bin/backfill-conversations.js +11 -10
  45. package/dist/bin/backfill-responses.js +11 -10
  46. package/dist/bin/backfill-vectors.js +61 -20
  47. package/dist/bin/bulk-sync-postgres.js +12 -11
  48. package/dist/bin/cc-doctor.js +7 -7
  49. package/dist/bin/cleanup-stale-review-tasks.js +15 -15
  50. package/dist/bin/cli.js +55 -28
  51. package/dist/bin/customer-readiness.js +29 -5
  52. package/dist/bin/deferred-daemon-restart.js +55 -8
  53. package/dist/bin/exe-agent-config.js +5 -5
  54. package/dist/bin/exe-agent.js +18 -18
  55. package/dist/bin/exe-assign.js +18 -13
  56. package/dist/bin/exe-boot.js +55 -29
  57. package/dist/bin/exe-call.js +7 -7
  58. package/dist/bin/exe-cloud.js +14 -12
  59. package/dist/bin/exe-dispatch.js +15 -15
  60. package/dist/bin/exe-doctor.js +3 -2
  61. package/dist/bin/exe-export-behaviors.js +11 -10
  62. package/dist/bin/exe-forget.js +11 -9
  63. package/dist/bin/exe-gateway.js +18 -18
  64. package/dist/bin/exe-healthcheck.js +7 -7
  65. package/dist/bin/exe-heartbeat.js +16 -16
  66. package/dist/bin/exe-kill.js +26 -26
  67. package/dist/bin/exe-launch-agent.js +33 -30
  68. package/dist/bin/exe-new-employee.js +10 -10
  69. package/dist/bin/exe-pending-messages.js +16 -16
  70. package/dist/bin/exe-pending-notifications.js +15 -15
  71. package/dist/bin/exe-pending-reviews.js +16 -16
  72. package/dist/bin/exe-rename.js +7 -7
  73. package/dist/bin/exe-review.js +19 -18
  74. package/dist/bin/exe-search.js +10 -8
  75. package/dist/bin/exe-session-cleanup.js +56 -21
  76. package/dist/bin/exe-settings.js +9 -9
  77. package/dist/bin/exe-start-codex.js +16 -15
  78. package/dist/bin/exe-start-opencode.js +12 -11
  79. package/dist/bin/exe-start.sh +7 -4
  80. package/dist/bin/exe-status.js +16 -16
  81. package/dist/bin/exe-support.js +4 -4
  82. package/dist/bin/exe-team.js +5 -5
  83. package/dist/bin/git-sweep.js +16 -16
  84. package/dist/bin/graph-backfill.js +10 -9
  85. package/dist/bin/graph-export.js +10 -9
  86. package/dist/bin/graph-layer-benchmark.js +1 -1
  87. package/dist/bin/import-history.js +14 -10
  88. package/dist/bin/install.js +149 -42
  89. package/dist/bin/intercom-check.js +6 -6
  90. package/dist/bin/list-providers.js +3 -2
  91. package/dist/bin/mcp-sessions.js +3 -3
  92. package/dist/bin/orchestration-metrics.js +6 -6
  93. package/dist/bin/postgres-agentic-reflection-backfill.js +5 -5
  94. package/dist/bin/postgres-agentic-semantic-backfill.js +4 -4
  95. package/dist/bin/pre-publish.js +2 -2
  96. package/dist/bin/registry-proxy.js +1 -1
  97. package/dist/bin/scan-tasks.js +15 -15
  98. package/dist/bin/setup.js +12 -5
  99. package/dist/bin/shard-migrate.js +9 -8
  100. package/dist/bin/stack-update.js +78 -10
  101. package/dist/bin/update.js +7 -2
  102. package/dist/bin/verify-stack.js +1 -1
  103. package/dist/bin/vps-backup.js +1 -1
  104. package/dist/bin/vps-health-gate.js +2 -2
  105. package/dist/branding-XF7QRMD4.js +97 -0
  106. package/dist/browser-sanitizer-VO6G6ZDX.js +229 -0
  107. package/dist/browser-session-store-AJ5ZYA3O.js +232 -0
  108. package/dist/capacity-monitor-ATOO7UFK.js +49 -0
  109. package/dist/capacity-monitor-CBHTNC2K.js +49 -0
  110. package/dist/capacity-monitor-D3YOKO3Z.js +49 -0
  111. package/dist/capacity-monitor-E3ORGBTU.js +49 -0
  112. package/dist/capacity-monitor-KJXWXPO6.js +49 -0
  113. package/dist/capacity-monitor-M257G26T.js +49 -0
  114. package/dist/capacity-monitor-P7JOBTQJ.js +49 -0
  115. package/dist/capacity-monitor-QTNQCKX5.js +49 -0
  116. package/dist/capacity-monitor-YMVZCELL.js +49 -0
  117. package/dist/catchup-brief-54VNGPOA.js +153 -0
  118. package/dist/catchup-brief-C2USUIQH.js +153 -0
  119. package/dist/catchup-brief-C54K2W5O.js +151 -0
  120. package/dist/catchup-brief-CET2O432.js +153 -0
  121. package/dist/catchup-brief-DJHGJRDQ.js +153 -0
  122. package/dist/catchup-brief-DOG5JJOC.js +153 -0
  123. package/dist/catchup-brief-DOVP34XL.js +153 -0
  124. package/dist/catchup-brief-EOSOUDYI.js +153 -0
  125. package/dist/catchup-brief-NE7Q6DFN.js +153 -0
  126. package/dist/catchup-brief-PLQ5REJZ.js +151 -0
  127. package/dist/catchup-brief-QSVMK7HU.js +153 -0
  128. package/dist/catchup-brief-QZM646YU.js +151 -0
  129. package/dist/catchup-brief-Z47HRQWE.js +153 -0
  130. package/dist/chunk-24FBBDZW.js +402 -0
  131. package/dist/chunk-27KKZKTM.js +363 -0
  132. package/dist/chunk-2AER4X7O.js +33 -0
  133. package/dist/chunk-2FR6GC4V.js +81 -0
  134. package/dist/chunk-2GPNL63V.js +85 -0
  135. package/dist/chunk-2I4F2LWU.js +347 -0
  136. package/dist/chunk-2IG3SN4Z.js +836 -0
  137. package/dist/chunk-2IS5BVJR.js +731 -0
  138. package/dist/chunk-2LBFTTH7.js +30 -0
  139. package/dist/chunk-2NWWIE6Q.js +382 -0
  140. package/dist/chunk-2O2UKMUE.js +92 -0
  141. package/dist/chunk-2OVYGAE4.js +1068 -0
  142. package/dist/chunk-2QHA7RAI.js +1597 -0
  143. package/dist/chunk-2R6XJB2M.js +58 -0
  144. package/dist/chunk-2RGCBSJO.js +1119 -0
  145. package/dist/chunk-2S2ZHH72.js +621 -0
  146. package/dist/chunk-2VL6O6HL.js +204 -0
  147. package/dist/chunk-2Y3LJCDA.js +668 -0
  148. package/dist/chunk-34ZL5QNL.js +1179 -0
  149. package/dist/chunk-3AV2S733.js +284 -0
  150. package/dist/chunk-3BNGOMKF.js +123 -0
  151. package/dist/chunk-3BWASDGT.js +81 -0
  152. package/dist/chunk-3DJBLYSC.js +204 -0
  153. package/dist/chunk-3DZUAHXH.js +333 -0
  154. package/dist/chunk-3IR6XFGW.js +630 -0
  155. package/dist/chunk-3JPIMD3G.js +510 -0
  156. package/dist/chunk-3KNTAZFW.js +818 -0
  157. package/dist/chunk-3LDYBHED.js +363 -0
  158. package/dist/chunk-3OEVDGIY.js +216 -0
  159. package/dist/chunk-3SNGPBS7.js +551 -0
  160. package/dist/chunk-3ZQEWJJV.js +290 -0
  161. package/dist/chunk-427QHA3M.js +668 -0
  162. package/dist/chunk-42BIRS4S.js +197 -0
  163. package/dist/chunk-43VQYRJU.js +127 -0
  164. package/dist/chunk-44OCBNLO.js +539 -0
  165. package/dist/chunk-4CCAWG37.js +167 -0
  166. package/dist/chunk-4DPMBKRN.js +58 -0
  167. package/dist/chunk-4FEDR4MZ.js +204 -0
  168. package/dist/chunk-4FVVJ7ME.js +193 -0
  169. package/dist/chunk-4H4HKOE4.js +70 -0
  170. package/dist/chunk-4HEIWBCQ.js +159 -0
  171. package/dist/chunk-4KMCIJQO.js +1090 -0
  172. package/dist/chunk-4LWY2DRY.js +377 -0
  173. package/dist/chunk-4MIYQQLW.js +157 -0
  174. package/dist/chunk-4SAWY5QP.js +1090 -0
  175. package/dist/chunk-4YO2VLHT.js +333 -0
  176. package/dist/chunk-52X5BQGG.js +56 -0
  177. package/dist/chunk-56KFNBZQ.js +50 -0
  178. package/dist/chunk-57AQDEHL.js +562 -0
  179. package/dist/chunk-57HLPPUR.js +230 -0
  180. package/dist/chunk-5C7N5MQY.js +731 -0
  181. package/dist/chunk-5CRUW5P3.js +13745 -0
  182. package/dist/chunk-5D2REL72.js +85 -0
  183. package/dist/chunk-5FDE527X.js +128 -0
  184. package/dist/chunk-5GBOON4R.js +231 -0
  185. package/dist/chunk-5JAY363D.js +58 -0
  186. package/dist/chunk-5KTHICDO.js +333 -0
  187. package/dist/chunk-5MFISAXY.js +376 -0
  188. package/dist/chunk-5OVQD3I6.js +448 -0
  189. package/dist/chunk-5PPRX6YB.js +1073 -0
  190. package/dist/chunk-5QMEXKGM.js +150 -0
  191. package/dist/chunk-5QWEU2U3.js +230 -0
  192. package/dist/chunk-5SE35WF5.js +731 -0
  193. package/dist/chunk-5ZNLPL6I.js +377 -0
  194. package/dist/chunk-64DSU376.js +50 -0
  195. package/dist/chunk-64WLXGS5.js +197 -0
  196. package/dist/chunk-66DGLO3J.js +171 -0
  197. package/dist/chunk-67TIKMU2.js +123 -0
  198. package/dist/chunk-6AIR7TG7.js +362 -0
  199. package/dist/chunk-6DGFLHST.js +456 -0
  200. package/dist/chunk-6ETC5MNQ.js +2078 -0
  201. package/dist/chunk-6NFIEJ3D.js +127 -0
  202. package/dist/chunk-6NJPSDF6.js +214 -0
  203. package/dist/chunk-6NQA6PTP.js +82 -0
  204. package/dist/chunk-6OQVLESX.js +4190 -0
  205. package/dist/chunk-6S7Q6HJK.js +1094 -0
  206. package/dist/chunk-6SP45XNB.js +363 -0
  207. package/dist/chunk-6TEPSJS6.js +551 -0
  208. package/dist/chunk-6V3NJX62.js +377 -0
  209. package/dist/chunk-6WETKYZQ.js +56 -0
  210. package/dist/chunk-6XF43GBI.js +197 -0
  211. package/dist/chunk-6Y7NS6JX.js +30 -0
  212. package/dist/chunk-6YD3SMHS.js +135 -0
  213. package/dist/chunk-6ZA2VY6T.js +13884 -0
  214. package/dist/chunk-73GFIGHE.js +394 -0
  215. package/dist/chunk-73ULNDS2.js +13745 -0
  216. package/dist/chunk-73VDNK2K.js +55 -0
  217. package/dist/chunk-75BXWOOS.js +345 -0
  218. package/dist/chunk-7AKPANCF.js +127 -0
  219. package/dist/chunk-7CC4ZR2B.js +244 -0
  220. package/dist/chunk-7GNB2VRR.js +151 -0
  221. package/dist/chunk-7GTM6ZIZ.js +227 -0
  222. package/dist/chunk-7HHODNWF.js +54 -0
  223. package/dist/chunk-7I2WJIFX.js +345 -0
  224. package/dist/chunk-7ID5M72W.js +171 -0
  225. package/dist/chunk-7M546F3F.js +333 -0
  226. package/dist/chunk-7NMR22YZ.js +89 -0
  227. package/dist/chunk-7O5LXSG5.js +345 -0
  228. package/dist/chunk-7QIV6DW7.js +197 -0
  229. package/dist/chunk-7R6VVC73.js +58 -0
  230. package/dist/chunk-7UZDDE3A.js +76 -0
  231. package/dist/chunk-7V2DVUH7.js +210 -0
  232. package/dist/chunk-7V5H4RED.js +403 -0
  233. package/dist/chunk-7VTDWARA.js +214 -0
  234. package/dist/chunk-7W4QORKL.js +244 -0
  235. package/dist/chunk-7XLUQT2M.js +1148 -0
  236. package/dist/chunk-7XXK6KGH.js +244 -0
  237. package/dist/chunk-7Y33Z5AF.js +13907 -0
  238. package/dist/chunk-7Y72AX73.js +97 -0
  239. package/dist/chunk-7YOMZG42.js +123 -0
  240. package/dist/chunk-A3D4LUJ7.js +97 -0
  241. package/dist/chunk-A54XDOZL.js +299 -0
  242. package/dist/chunk-A7OAENAP.js +551 -0
  243. package/dist/chunk-AB4PAQYK.js +123 -0
  244. package/dist/chunk-ADCNXWYD.js +50 -0
  245. package/dist/chunk-AEP5ZASD.js +260 -0
  246. package/dist/chunk-AG2SUE5I.js +76 -0
  247. package/dist/chunk-AGZTDNKL.js +262 -0
  248. package/dist/chunk-AHLCBUSE.js +2096 -0
  249. package/dist/chunk-AKHGOOHE.js +41 -0
  250. package/dist/chunk-AKNDMCYO.js +227 -0
  251. package/dist/chunk-AODLTRUV.js +81 -0
  252. package/dist/chunk-AQVA65YS.js +1090 -0
  253. package/dist/chunk-ATKV7X6L.js +630 -0
  254. package/dist/chunk-AYKESCX4.js +97 -0
  255. package/dist/chunk-AZ2ZTB4X.js +1073 -0
  256. package/dist/chunk-B2IBUKZE.js +1076 -0
  257. package/dist/chunk-B54EOLFG.js +1090 -0
  258. package/dist/chunk-B7OKCHWY.js +128 -0
  259. package/dist/chunk-B7STYXSM.js +75 -0
  260. package/dist/chunk-BA4DSSDL.js +290 -0
  261. package/dist/chunk-BDIW2SWC.js +1090 -0
  262. package/dist/chunk-BDZGY6NE.js +214 -0
  263. package/dist/chunk-BGRK66QV.js +89 -0
  264. package/dist/chunk-BLKJC7ZP.js +13884 -0
  265. package/dist/chunk-BNF3HAX7.js +85 -0
  266. package/dist/chunk-BNFJPW74.js +76 -0
  267. package/dist/chunk-BRLNOQ5X.js +363 -0
  268. package/dist/chunk-BT4SXS3L.js +387 -0
  269. package/dist/chunk-BWRQCODJ.js +363 -0
  270. package/dist/chunk-BZ47KTJP.js +668 -0
  271. package/dist/chunk-BZFAQXGO.js +185 -0
  272. package/dist/chunk-C3IND52T.js +3948 -0
  273. package/dist/chunk-C4ERV6GK.js +42 -0
  274. package/dist/chunk-CACT44QP.js +197 -0
  275. package/dist/chunk-CBJIFXLQ.js +97 -0
  276. package/dist/chunk-CBZGOB6K.js +89 -0
  277. package/dist/chunk-CC26AUFB.js +2078 -0
  278. package/dist/chunk-CDJZKLOF.js +394 -0
  279. package/dist/chunk-CGDPG3RS.js +171 -0
  280. package/dist/chunk-CI7FZMWH.js +1076 -0
  281. package/dist/chunk-CIVHLHHX.js +127 -0
  282. package/dist/chunk-CJNNVL4S.js +204 -0
  283. package/dist/chunk-CKXJKYYC.js +75 -0
  284. package/dist/chunk-CMCYL2JC.js +155 -0
  285. package/dist/chunk-CMWFSVLS.js +244 -0
  286. package/dist/chunk-COES3XSI.js +204 -0
  287. package/dist/chunk-CQ7OSDAZ.js +2078 -0
  288. package/dist/chunk-CRRGDN35.js +50 -0
  289. package/dist/chunk-CTH7YFD5.js +197 -0
  290. package/dist/chunk-CUH43MQI.js +377 -0
  291. package/dist/chunk-CXGYHSTJ.js +290 -0
  292. package/dist/chunk-CXQ2O4OZ.js +448 -0
  293. package/dist/chunk-D27752SB.js +333 -0
  294. package/dist/chunk-D3ERCF5Z.js +250 -0
  295. package/dist/chunk-D3IQYDC7.js +348 -0
  296. package/dist/chunk-D5HQ2CGU.js +1090 -0
  297. package/dist/chunk-D7TEMDOB.js +75 -0
  298. package/dist/chunk-DAQOBQ6G.js +30 -0
  299. package/dist/chunk-DBHUKYR2.js +58 -0
  300. package/dist/chunk-DBWXKSYA.js +85 -0
  301. package/dist/chunk-DCPBWU2H.js +127 -0
  302. package/dist/chunk-DDVFZEYS.js +448 -0
  303. package/dist/chunk-DI56MTUR.js +362 -0
  304. package/dist/chunk-DINRWRSR.js +159 -0
  305. package/dist/chunk-DLJOBAAP.js +818 -0
  306. package/dist/chunk-DPHQOCY2.js +403 -0
  307. package/dist/chunk-DS32WI6J.js +299 -0
  308. package/dist/chunk-DTOJYY3L.js +1345 -0
  309. package/dist/chunk-DWBMFE5O.js +1148 -0
  310. package/dist/chunk-E3F3KHQR.js +297 -0
  311. package/dist/chunk-E3S2VIEL.js +203 -0
  312. package/dist/chunk-E56TY3JN.js +1597 -0
  313. package/dist/chunk-E5G35PKU.js +1021 -0
  314. package/dist/chunk-E7H7O5U4.js +668 -0
  315. package/dist/chunk-E7TM3FL3.js +50 -0
  316. package/dist/chunk-EBCU3UYM.js +377 -0
  317. package/dist/chunk-ECIWBL3W.js +403 -0
  318. package/dist/chunk-EDPCNLYH.js +551 -0
  319. package/dist/chunk-EFDBASIU.js +214 -0
  320. package/dist/chunk-EFWH3LPO.js +731 -0
  321. package/dist/chunk-EGEE5267.js +157 -0
  322. package/dist/chunk-EKPSVC43.js +1068 -0
  323. package/dist/chunk-ES6MHO3D.js +510 -0
  324. package/dist/chunk-ESHIRCE7.js +128 -0
  325. package/dist/chunk-EXQGB4LT.js +290 -0
  326. package/dist/chunk-EYPTDVVX.js +54 -0
  327. package/dist/chunk-EZ7AXTA4.js +210 -0
  328. package/dist/chunk-EZYHMANJ.js +13759 -0
  329. package/dist/chunk-F4TYLQ2Z.js +262 -0
  330. package/dist/chunk-F546DZKW.js +2078 -0
  331. package/dist/chunk-F64DEXED.js +1076 -0
  332. package/dist/chunk-FAJ35OYH.js +97 -0
  333. package/dist/chunk-FBEITXWH.js +284 -0
  334. package/dist/chunk-FF3FDIUX.js +345 -0
  335. package/dist/chunk-FJ7AOQOJ.js +510 -0
  336. package/dist/chunk-FKALTHDJ.js +1173 -0
  337. package/dist/chunk-FL3B5TWW.js +244 -0
  338. package/dist/chunk-FLGD6PBG.js +539 -0
  339. package/dist/chunk-FN3BXCBC.js +297 -0
  340. package/dist/chunk-FPRQ5FFJ.js +510 -0
  341. package/dist/chunk-FTSXRVDR.js +262 -0
  342. package/dist/chunk-FUM7MMNF.js +75 -0
  343. package/dist/chunk-FWRWK3BW.js +167 -0
  344. package/dist/chunk-FWXQ37AC.js +1179 -0
  345. package/dist/chunk-FY4KF32G.js +1940 -0
  346. package/dist/chunk-FYP7C7U5.js +81 -0
  347. package/dist/chunk-FZ4IWPMH.js +227 -0
  348. package/dist/chunk-FZD2J4CZ.js +630 -0
  349. package/dist/chunk-GC7SNA6V.js +280 -0
  350. package/dist/chunk-GCIRX4XD.js +157 -0
  351. package/dist/chunk-GCLMPF4V.js +376 -0
  352. package/dist/chunk-GD6CJMKZ.js +2091 -0
  353. package/dist/chunk-GHBKLQY5.js +197 -0
  354. package/dist/chunk-GIFUVNEV.js +836 -0
  355. package/dist/chunk-GM6MCBIG.js +129 -0
  356. package/dist/chunk-GORJPWF7.js +333 -0
  357. package/dist/chunk-GQNJK444.js +128 -0
  358. package/dist/chunk-GRF6MG44.js +204 -0
  359. package/dist/chunk-GT5ZNXLO.js +185 -0
  360. package/dist/chunk-GTO6JPSH.js +1345 -0
  361. package/dist/chunk-GWONWNR5.js +377 -0
  362. package/dist/chunk-H3BJ7TYY.js +731 -0
  363. package/dist/chunk-H3GZ6Q23.js +345 -0
  364. package/dist/chunk-H6BUEZE7.js +731 -0
  365. package/dist/chunk-H6T7FQR5.js +1345 -0
  366. package/dist/chunk-HBUSGLCZ.js +2096 -0
  367. package/dist/chunk-HC57YON2.js +284 -0
  368. package/dist/chunk-HINWHX63.js +382 -0
  369. package/dist/chunk-HIUUSF3Z.js +284 -0
  370. package/dist/chunk-HIW2F33I.js +333 -0
  371. package/dist/chunk-HKMCZIKY.js +1119 -0
  372. package/dist/chunk-HKUDN7ZE.js +128 -0
  373. package/dist/chunk-HKXZ7CMP.js +81 -0
  374. package/dist/chunk-HMBELYNC.js +89 -0
  375. package/dist/chunk-HPX6N22J.js +76 -0
  376. package/dist/chunk-HSMBXYS5.js +159 -0
  377. package/dist/chunk-I2HPT3Z6.js +127 -0
  378. package/dist/chunk-I5IRWQEZ.js +204 -0
  379. package/dist/chunk-I7ZQVKQB.js +230 -0
  380. package/dist/chunk-IATEXT4R.js +3556 -0
  381. package/dist/chunk-IBQPDEPS.js +1119 -0
  382. package/dist/chunk-IDR7OARV.js +2113 -0
  383. package/dist/chunk-IENTMIBK.js +171 -0
  384. package/dist/chunk-IFOAFOVG.js +150 -0
  385. package/dist/chunk-IGNKHNAX.js +128 -0
  386. package/dist/chunk-IH6FJKII.js +362 -0
  387. package/dist/chunk-IHCMWFOI.js +348 -0
  388. package/dist/chunk-IIDD7OKH.js +54 -0
  389. package/dist/chunk-IIEJU2UJ.js +58 -0
  390. package/dist/chunk-IJYGU3RL.js +1076 -0
  391. package/dist/chunk-IKBOMF3W.js +448 -0
  392. package/dist/chunk-IKT4KQXB.js +128 -0
  393. package/dist/chunk-IQG6M2IV.js +128 -0
  394. package/dist/chunk-IRA45GFY.js +76 -0
  395. package/dist/chunk-IS46HZ6Z.js +33 -0
  396. package/dist/chunk-IULPSI5N.js +362 -0
  397. package/dist/chunk-IYCNQ776.js +4190 -0
  398. package/dist/chunk-J2EOGI66.js +250 -0
  399. package/dist/chunk-J3G7CG5U.js +1352 -0
  400. package/dist/chunk-J5BSWHFW.js +573 -0
  401. package/dist/chunk-J5XVJP2K.js +1119 -0
  402. package/dist/chunk-J6AGQTYF.js +1300 -0
  403. package/dist/chunk-J7F5GX7V.js +250 -0
  404. package/dist/chunk-JCZTUQRL.js +526 -0
  405. package/dist/chunk-JEP4T2SE.js +346 -0
  406. package/dist/chunk-JF2QOP4Y.js +363 -0
  407. package/dist/chunk-JHEWULYC.js +369 -0
  408. package/dist/chunk-JI3JDOO7.js +244 -0
  409. package/dist/chunk-JJO34C2H.js +377 -0
  410. package/dist/chunk-JLNXT57O.js +3200 -0
  411. package/dist/chunk-JM3W7VQF.js +106 -0
  412. package/dist/chunk-JNPJIC2C.js +510 -0
  413. package/dist/chunk-JPNZKEA7.js +240 -0
  414. package/dist/chunk-JRLNE3T2.js +133 -0
  415. package/dist/chunk-JSTW345C.js +1345 -0
  416. package/dist/chunk-JUSURN5O.js +13810 -0
  417. package/dist/chunk-JXA7BQYK.js +562 -0
  418. package/dist/chunk-JYW6VBNW.js +38 -0
  419. package/dist/chunk-K3FO5GIC.js +33 -0
  420. package/dist/chunk-K44R6TE7.js +1179 -0
  421. package/dist/chunk-K6ZDION2.js +13759 -0
  422. package/dist/chunk-K6ZU7HDE.js +128 -0
  423. package/dist/chunk-KBNMVPDE.js +690 -0
  424. package/dist/chunk-KCBH2GDF.js +214 -0
  425. package/dist/chunk-KDNFFRML.js +221 -0
  426. package/dist/chunk-KFVD6XWS.js +129 -0
  427. package/dist/chunk-KNC7CJEW.js +214 -0
  428. package/dist/chunk-KTNOLBA3.js +58 -0
  429. package/dist/chunk-L7FIWWCQ.js +76 -0
  430. package/dist/chunk-L7T4JRTJ.js +3200 -0
  431. package/dist/chunk-LA4VDGY2.js +81 -0
  432. package/dist/chunk-LAAB5EOU.js +380 -0
  433. package/dist/chunk-LCAOU6FP.js +290 -0
  434. package/dist/chunk-LDFMTAUB.js +362 -0
  435. package/dist/chunk-LE4B4G7E.js +1704 -0
  436. package/dist/chunk-LEVB4MS5.js +128 -0
  437. package/dist/chunk-LGEJHEI4.js +76 -0
  438. package/dist/chunk-LJ4X65MY.js +171 -0
  439. package/dist/chunk-LJOSW65B.js +221 -0
  440. package/dist/chunk-LKHVY5T3.js +1921 -0
  441. package/dist/chunk-LMHSLS7E.js +54 -0
  442. package/dist/chunk-LO6L5ADL.js +76 -0
  443. package/dist/chunk-LPM6BFCI.js +668 -0
  444. package/dist/chunk-LVK63ORA.js +81 -0
  445. package/dist/chunk-LWXF5ZH7.js +159 -0
  446. package/dist/chunk-M2C2Y5XK.js +1148 -0
  447. package/dist/chunk-M2SJ47QU.js +75 -0
  448. package/dist/chunk-M56AH6RW.js +448 -0
  449. package/dist/chunk-MDZUD5XS.js +157 -0
  450. package/dist/chunk-MFKRSCKB.js +128 -0
  451. package/dist/chunk-MJGJPQQK.js +54 -0
  452. package/dist/chunk-MJM4LWIL.js +348 -0
  453. package/dist/chunk-MO2SQPXM.js +402 -0
  454. package/dist/chunk-MOM6Y4G7.js +85 -0
  455. package/dist/chunk-MPTJ3VZ5.js +1090 -0
  456. package/dist/chunk-MUEKW5VE.js +214 -0
  457. package/dist/chunk-MVLTH55Y.js +668 -0
  458. package/dist/chunk-MX7DHYSC.js +133 -0
  459. package/dist/chunk-MYCA7ZJK.js +97 -0
  460. package/dist/chunk-MYP3IJC2.js +363 -0
  461. package/dist/chunk-N3IFYZLZ.js +210 -0
  462. package/dist/chunk-N3ULIVDL.js +363 -0
  463. package/dist/chunk-N4GTC3LL.js +382 -0
  464. package/dist/chunk-N4SNGJBN.js +1173 -0
  465. package/dist/chunk-N7BYUAHY.js +244 -0
  466. package/dist/chunk-NBGJVFQQ.js +382 -0
  467. package/dist/chunk-NC3RMVFZ.js +1051 -0
  468. package/dist/chunk-NGQL5CIL.js +1119 -0
  469. package/dist/chunk-NGSDGMKJ.js +70 -0
  470. package/dist/chunk-NJYRZZPW.js +836 -0
  471. package/dist/chunk-NLL3KI4Q.js +290 -0
  472. package/dist/chunk-NMSRDICL.js +510 -0
  473. package/dist/chunk-NOYW4CG2.js +58 -0
  474. package/dist/chunk-NRX6QNZW.js +230 -0
  475. package/dist/chunk-NWA4N36I.js +1921 -0
  476. package/dist/chunk-NWQEQVE4.js +97 -0
  477. package/dist/chunk-NZBZICLM.js +30 -0
  478. package/dist/chunk-O4DZIRYO.js +13907 -0
  479. package/dist/chunk-O7CSLCCS.js +128 -0
  480. package/dist/chunk-O7NHFUQA.js +13900 -0
  481. package/dist/chunk-ODGR4AYQ.js +214 -0
  482. package/dist/chunk-OE7D2FHD.js +210 -0
  483. package/dist/chunk-OF22ERHW.js +58 -0
  484. package/dist/chunk-OHHLHFSE.js +290 -0
  485. package/dist/chunk-OIDMCK47.js +250 -0
  486. package/dist/chunk-OKQ6GTJG.js +284 -0
  487. package/dist/chunk-OR4JAGFA.js +97 -0
  488. package/dist/chunk-OTVEIJUQ.js +22 -0
  489. package/dist/chunk-OTXKMOJ7.js +258 -0
  490. package/dist/chunk-OVXYP4PC.js +731 -0
  491. package/dist/chunk-OZ6ECOGL.js +13745 -0
  492. package/dist/chunk-P36R3JCT.js +731 -0
  493. package/dist/chunk-P55FPLOG.js +348 -0
  494. package/dist/chunk-P73F2MXS.js +128 -0
  495. package/dist/chunk-PAPQOO4S.js +70 -0
  496. package/dist/chunk-PARMEBCG.js +1076 -0
  497. package/dist/chunk-PCHTYFMF.js +1119 -0
  498. package/dist/chunk-PEHOG4T4.js +377 -0
  499. package/dist/chunk-PHMBHJJT.js +262 -0
  500. package/dist/chunk-PLTTSDSS.js +89 -0
  501. package/dist/chunk-PLYFTPOM.js +551 -0
  502. package/dist/chunk-PM6U6XPX.js +551 -0
  503. package/dist/chunk-PPLG2EIO.js +4190 -0
  504. package/dist/chunk-PR4XTDPM.js +3961 -0
  505. package/dist/chunk-PSKLMMM4.js +97 -0
  506. package/dist/chunk-PTGNAG64.js +668 -0
  507. package/dist/chunk-Q42QJRXM.js +668 -0
  508. package/dist/chunk-Q4CXVSMO.js +495 -0
  509. package/dist/chunk-Q4DSFR7Z.js +89 -0
  510. package/dist/chunk-Q55ZVW3T.js +85 -0
  511. package/dist/chunk-QAFPHTZX.js +1090 -0
  512. package/dist/chunk-QC2P5DML.js +836 -0
  513. package/dist/chunk-QCAOFKS3.js +97 -0
  514. package/dist/chunk-QCDTLQ47.js +75 -0
  515. package/dist/chunk-QDVGNYPS.js +240 -0
  516. package/dist/chunk-QFKQVTGA.js +38 -0
  517. package/dist/chunk-QJS6KKPB.js +54 -0
  518. package/dist/chunk-QMRHVWVG.js +539 -0
  519. package/dist/chunk-QNXEOU4N.js +1345 -0
  520. package/dist/chunk-QOK2QDW4.js +89 -0
  521. package/dist/chunk-QOWVOLWP.js +1345 -0
  522. package/dist/chunk-QPP6RTSO.js +129 -0
  523. package/dist/chunk-QRYYBFXG.js +70 -0
  524. package/dist/chunk-QXKDVF4N.js +836 -0
  525. package/dist/chunk-QYH2YHCH.js +284 -0
  526. package/dist/chunk-QZGVVTAN.js +250 -0
  527. package/dist/chunk-RDG733SE.js +85 -0
  528. package/dist/chunk-REGLESOJ.js +190 -0
  529. package/dist/chunk-RGYOSJQU.js +127 -0
  530. package/dist/chunk-RJWWFCS2.js +284 -0
  531. package/dist/chunk-RKTH342D.js +231 -0
  532. package/dist/chunk-RLOLC5OP.js +1090 -0
  533. package/dist/chunk-RM4TC5N5.js +1076 -0
  534. package/dist/chunk-RMNDZZG4.js +56 -0
  535. package/dist/chunk-RNPRULSY.js +402 -0
  536. package/dist/chunk-ROXPI6LI.js +290 -0
  537. package/dist/chunk-RRMXAR5E.js +377 -0
  538. package/dist/chunk-RSTJTQAR.js +123 -0
  539. package/dist/chunk-RTRL3H6R.js +394 -0
  540. package/dist/chunk-RV3BP7XM.js +167 -0
  541. package/dist/chunk-RV6DRGN7.js +13907 -0
  542. package/dist/chunk-RV7F4DAF.js +171 -0
  543. package/dist/chunk-RVGSVTE4.js +244 -0
  544. package/dist/chunk-RVHEST6Y.js +81 -0
  545. package/dist/chunk-RVQZUJC2.js +33 -0
  546. package/dist/chunk-RXSL6VMA.js +244 -0
  547. package/dist/chunk-SEJZKEQ2.js +382 -0
  548. package/dist/chunk-SFETK2K4.js +539 -0
  549. package/dist/chunk-SIAA4J6H.js +21 -0
  550. package/dist/chunk-SIR6JZV2.js +227 -0
  551. package/dist/chunk-SMTJ6XC6.js +56 -0
  552. package/dist/chunk-SOJDYRAV.js +97 -0
  553. package/dist/chunk-SSTLTIF3.js +282 -0
  554. package/dist/chunk-SWPM3OVT.js +185 -0
  555. package/dist/chunk-SY75INUL.js +69 -0
  556. package/dist/chunk-SYBHCD5Y.js +1352 -0
  557. package/dist/chunk-T363PS4E.js +13884 -0
  558. package/dist/chunk-T3DB2L7D.js +447 -0
  559. package/dist/chunk-T3NGHPYQ.js +551 -0
  560. package/dist/chunk-TC4DSSCG.js +54 -0
  561. package/dist/chunk-TFJMUHHT.js +240 -0
  562. package/dist/chunk-THJ7W7P5.js +604 -0
  563. package/dist/chunk-TKH3Z6MX.js +284 -0
  564. package/dist/chunk-TPSLW46F.js +1068 -0
  565. package/dist/chunk-TQDARPML.js +85 -0
  566. package/dist/chunk-TQGGGR3B.js +526 -0
  567. package/dist/chunk-TRN6Z263.js +448 -0
  568. package/dist/chunk-TSZUGTI3.js +171 -0
  569. package/dist/chunk-TVPOVHHB.js +382 -0
  570. package/dist/chunk-TWC34C2C.js +38 -0
  571. package/dist/chunk-TWUJBFIK.js +345 -0
  572. package/dist/chunk-TXLFZLCX.js +171 -0
  573. package/dist/chunk-TYIQK2ZV.js +284 -0
  574. package/dist/chunk-TZQP4KJ3.js +403 -0
  575. package/dist/chunk-U2Y7CBLR.js +89 -0
  576. package/dist/chunk-U66BRNNK.js +731 -0
  577. package/dist/chunk-U6LNXXQX.js +58 -0
  578. package/dist/chunk-UAMWGUBX.js +574 -0
  579. package/dist/chunk-UCCZF5N4.js +167 -0
  580. package/dist/chunk-UFJJJ3EB.js +55 -0
  581. package/dist/chunk-UIGKU2K4.js +50 -0
  582. package/dist/chunk-UPSID2HN.js +346 -0
  583. package/dist/chunk-USSO53YP.js +54 -0
  584. package/dist/chunk-UUCYTPXF.js +214 -0
  585. package/dist/chunk-UVWTI4VC.js +1352 -0
  586. package/dist/chunk-UXAPHDSV.js +240 -0
  587. package/dist/chunk-UXUCMX46.js +89 -0
  588. package/dist/chunk-UYN5XHQ5.js +510 -0
  589. package/dist/chunk-UYOMJVYP.js +50 -0
  590. package/dist/chunk-UZWSZ3C5.js +280 -0
  591. package/dist/chunk-V2KBVGTN.js +2097 -0
  592. package/dist/chunk-V44SEJIE.js +76 -0
  593. package/dist/chunk-V4NLMOYM.js +382 -0
  594. package/dist/chunk-V6IH2YVS.js +4190 -0
  595. package/dist/chunk-V6RTI73O.js +1179 -0
  596. package/dist/chunk-V75SLGIH.js +97 -0
  597. package/dist/chunk-V7VGYOCD.js +197 -0
  598. package/dist/chunk-VA2WDTBP.js +1345 -0
  599. package/dist/chunk-VHTBAKZH.js +371 -0
  600. package/dist/chunk-VIWJFFDF.js +346 -0
  601. package/dist/chunk-VJNCFZ2T.js +382 -0
  602. package/dist/chunk-VKVEBQLJ.js +836 -0
  603. package/dist/chunk-VLW5CNTP.js +1119 -0
  604. package/dist/chunk-VMPAJQUP.js +363 -0
  605. package/dist/chunk-VNRNAACY.js +4190 -0
  606. package/dist/chunk-VR4SVGCY.js +345 -0
  607. package/dist/chunk-VRU3ZI43.js +2078 -0
  608. package/dist/chunk-VYMK5VCO.js +539 -0
  609. package/dist/chunk-VZXJOTE5.js +4190 -0
  610. package/dist/chunk-W22KMCH3.js +1940 -0
  611. package/dist/chunk-W3MQYGPX.js +38 -0
  612. package/dist/chunk-W4WIRN5R.js +448 -0
  613. package/dist/chunk-WH7HLB4Z.js +76 -0
  614. package/dist/chunk-WI57OYT2.js +1345 -0
  615. package/dist/chunk-WJMFNT4M.js +357 -0
  616. package/dist/chunk-WOQD775A.js +50 -0
  617. package/dist/chunk-WPIETWVX.js +2078 -0
  618. package/dist/chunk-WR26WBWT.js +1076 -0
  619. package/dist/chunk-WTA6FCAA.js +1345 -0
  620. package/dist/chunk-WVWJB7BT.js +630 -0
  621. package/dist/chunk-WX55RQRU.js +58 -0
  622. package/dist/chunk-WYID6P6Y.js +333 -0
  623. package/dist/chunk-X4HA7IYX.js +129 -0
  624. package/dist/chunk-X4OY7C7R.js +382 -0
  625. package/dist/chunk-XB6YDG2A.js +167 -0
  626. package/dist/chunk-XBDHMCR5.js +1119 -0
  627. package/dist/chunk-XEFJKWV2.js +163 -0
  628. package/dist/chunk-XFPFACZX.js +13884 -0
  629. package/dist/chunk-XFYH5GKP.js +171 -0
  630. package/dist/chunk-XFYZ77DP.js +280 -0
  631. package/dist/chunk-XMAXDYFK.js +604 -0
  632. package/dist/chunk-XNQOJZNS.js +250 -0
  633. package/dist/chunk-XPWFBDHN.js +250 -0
  634. package/dist/chunk-XRNU6CD7.js +58 -0
  635. package/dist/chunk-XSC4BBLH.js +159 -0
  636. package/dist/chunk-XW43IEC3.js +4190 -0
  637. package/dist/chunk-XWI4AN5N.js +408 -0
  638. package/dist/chunk-XWM5HD4J.js +127 -0
  639. package/dist/chunk-Y3JP4PL5.js +54 -0
  640. package/dist/chunk-Y4QRUAVJ.js +81 -0
  641. package/dist/chunk-Y5OT5BAV.js +221 -0
  642. package/dist/chunk-Y6JIZWT3.js +551 -0
  643. package/dist/chunk-Y6RZRLZD.js +197 -0
  644. package/dist/chunk-Y75VXMBN.js +244 -0
  645. package/dist/chunk-YBDREOVN.js +3200 -0
  646. package/dist/chunk-YDJRLXXF.js +150 -0
  647. package/dist/chunk-YEN5ACVR.js +448 -0
  648. package/dist/chunk-YFPZUT6G.js +132 -0
  649. package/dist/chunk-YGJ6XKPE.js +346 -0
  650. package/dist/chunk-YHVZVCGR.js +280 -0
  651. package/dist/chunk-YIE4E647.js +185 -0
  652. package/dist/chunk-YIEQRBNO.js +221 -0
  653. package/dist/chunk-YPS5PE25.js +495 -0
  654. package/dist/chunk-YR5OIJRL.js +231 -0
  655. package/dist/chunk-YTBUMO6Z.js +448 -0
  656. package/dist/chunk-YUHYQPXY.js +345 -0
  657. package/dist/chunk-YWPTPTQW.js +75 -0
  658. package/dist/chunk-YXT3YCKS.js +551 -0
  659. package/dist/chunk-YYM3TCUP.js +345 -0
  660. package/dist/chunk-YYVL727V.js +50 -0
  661. package/dist/chunk-YZEI2XOK.js +333 -0
  662. package/dist/chunk-Z3A6VUYT.js +1702 -0
  663. package/dist/chunk-Z5BNE3L3.js +75 -0
  664. package/dist/chunk-Z5LVHAY4.js +159 -0
  665. package/dist/chunk-Z6ESQXFI.js +204 -0
  666. package/dist/chunk-Z6FOV4NA.js +204 -0
  667. package/dist/chunk-ZBCBANWK.js +836 -0
  668. package/dist/chunk-ZBLNGKO5.js +85 -0
  669. package/dist/chunk-ZDNYW3AR.js +299 -0
  670. package/dist/chunk-ZF7JKTLP.js +127 -0
  671. package/dist/chunk-ZGWAADSD.js +630 -0
  672. package/dist/chunk-ZLI3TUML.js +394 -0
  673. package/dist/chunk-ZPN5S7BE.js +526 -0
  674. package/dist/chunk-ZUNQIQWO.js +526 -0
  675. package/dist/co-activation-65ZWECEW.js +72 -0
  676. package/dist/co-activation-7H4LJXPH.js +72 -0
  677. package/dist/co-activation-D6VDOLPE.js +72 -0
  678. package/dist/co-activation-WVKDWUYB.js +72 -0
  679. package/dist/co-occurrence-L3QDWLFB.js +74 -0
  680. package/dist/co-occurrence-NQ6QYRI3.js +93 -0
  681. package/dist/co-occurrence-UHIY3TSP.js +93 -0
  682. package/dist/co-occurrence-VMDXY6XD.js +93 -0
  683. package/dist/code-context-index-RJCLTXID.js +30 -0
  684. package/dist/code-context-index-T4R26DRZ.js +30 -0
  685. package/dist/content-extractor-GRE72OF4.js +9 -0
  686. package/dist/conversation-entity-extractor-3NCBEVXR.js +114 -0
  687. package/dist/conversation-wiki-populator-LPL23GZR.js +105 -0
  688. package/dist/core-memory-2TPPHQWV.js +110 -0
  689. package/dist/core-memory-CVF72QJS.js +110 -0
  690. package/dist/core-memory-EZGDNOZW.js +110 -0
  691. package/dist/core-memory-LDYXGLHK.js +110 -0
  692. package/dist/core-memory-LOAMRQHE.js +110 -0
  693. package/dist/core-memory-LSDBJSWJ.js +110 -0
  694. package/dist/core-memory-Q5VQNVIQ.js +110 -0
  695. package/dist/core-memory-QNW5SLBJ.js +110 -0
  696. package/dist/core-memory-WX3WUT4S.js +110 -0
  697. package/dist/crdt-sync-4NMOGP44.js +33 -0
  698. package/dist/crdt-sync-6MTPAECL.js +33 -0
  699. package/dist/crdt-sync-ESTCLT7K.js +33 -0
  700. package/dist/crdt-sync-HSRDIGAM.js +33 -0
  701. package/dist/crm-bridge-4THGLPM2.js +19 -0
  702. package/dist/crm-webhook-BDZ6BHKO.js +10 -0
  703. package/dist/crm-webhook-H5O3DLQO.js +10 -0
  704. package/dist/crm-webhook-HQMYV6LS.js +10 -0
  705. package/dist/crm-webhook-ITS2M6UB.js +10 -0
  706. package/dist/crm-webhook-NEXXNFD3.js +10 -0
  707. package/dist/crm-webhook-NVLRAYZX.js +10 -0
  708. package/dist/crm-webhook-QWQF343F.js +10 -0
  709. package/dist/crm-webhook-SCVMSNA2.js +10 -0
  710. package/dist/crm-webhook-WN3STFME.js +10 -0
  711. package/dist/cto-delegation-gate-5I5NJKNG.js +206 -0
  712. package/dist/cto-delegation-gate-CZRM46V3.js +206 -0
  713. package/dist/cto-delegation-gate-GVXGK5PB.js +278 -0
  714. package/dist/cto-delegation-gate-JOQMH5SV.js +278 -0
  715. package/dist/cto-delegation-gate-NHYDWUQT.js +278 -0
  716. package/dist/cto-delegation-gate-NRSNMJIS.js +278 -0
  717. package/dist/cto-delegation-gate-SAQCC5DR.js +278 -0
  718. package/dist/cto-delegation-gate-ST4HUNJ2.js +278 -0
  719. package/dist/cto-delegation-gate-YIRKI4RC.js +206 -0
  720. package/dist/cto-delegation-gate-YU77OJRO.js +206 -0
  721. package/dist/daemon-auth-TAWO7TQX.js +13 -0
  722. package/dist/daemon-orchestration-CNANYOLN.js +135 -0
  723. package/dist/daemon-orchestration-D5UEPJ3I.js +137 -0
  724. package/dist/daemon-orchestration-JHYADASA.js +135 -0
  725. package/dist/daemon-orchestration-JMQQUF77.js +137 -0
  726. package/dist/daemon-orchestration-NL5TQ5VD.js +135 -0
  727. package/dist/daemon-orchestration-OFX5QOBD.js +137 -0
  728. package/dist/daemon-orchestration-OXH6YRRL.js +137 -0
  729. package/dist/daemon-orchestration-Q5FEEHYE.js +135 -0
  730. package/dist/daemon-orchestration-SCMTDRLW.js +137 -0
  731. package/dist/daemon-orchestration-TMT7VKKG.js +137 -0
  732. package/dist/daemon-protocol-MDSKFBVV.js +17 -0
  733. package/dist/db-backup-CMP5QJDL.js +33 -0
  734. package/dist/db-backup-H7FHQZAA.js +33 -0
  735. package/dist/db-backup-MDBTOF6H.js +33 -0
  736. package/dist/db-backup-RELPNM6R.js +33 -0
  737. package/dist/devtools-BZGOQHB2.js +8 -0
  738. package/dist/discord-E66EWJYC.js +7 -0
  739. package/dist/dispatch-ack-RP7773BV.js +13 -0
  740. package/dist/dreaming-7BLPR2BS.js +32 -0
  741. package/dist/dreaming-B2NPY73R.js +32 -0
  742. package/dist/dreaming-BULADGXO.js +32 -0
  743. package/dist/dreaming-F4UTV3AM.js +32 -0
  744. package/dist/dreaming-IDBV4AO2.js +32 -0
  745. package/dist/dreaming-LFR3245Y.js +32 -0
  746. package/dist/dreaming-LMYCFKQG.js +32 -0
  747. package/dist/dreaming-MI23NXDC.js +32 -0
  748. package/dist/dreaming-PK3J5HAI.js +32 -0
  749. package/dist/email-U7B2CV3A.js +137 -0
  750. package/dist/entity-boost-6OCDP2H2.js +356 -0
  751. package/dist/entity-boost-LI4H3PAZ.js +375 -0
  752. package/dist/exe-drift-EFXZRVIL.js +68 -0
  753. package/dist/exe-drift-GS3TTJGS.js +68 -0
  754. package/dist/exe-drift-NLUOUSJN.js +68 -0
  755. package/dist/exe-drift-SLH5IVNI.js +68 -0
  756. package/dist/exe-export-2XVHO2JL.js +73 -0
  757. package/dist/exe-export-3Q52HX6P.js +74 -0
  758. package/dist/exe-export-4JCIWNYJ.js +74 -0
  759. package/dist/exe-export-5NUDAPFN.js +74 -0
  760. package/dist/exe-export-DWDM4RGB.js +73 -0
  761. package/dist/exe-export-ELZNLM7I.js +74 -0
  762. package/dist/exe-export-OCNGBHIK.js +74 -0
  763. package/dist/exe-export-T4SJ4JZT.js +74 -0
  764. package/dist/exe-export-WBIVDGBJ.js +74 -0
  765. package/dist/exe-import-CEHEUVDV.js +77 -0
  766. package/dist/exe-import-J3IGSQGE.js +77 -0
  767. package/dist/exe-import-LBLVAZ2B.js +77 -0
  768. package/dist/exe-import-LWEXVW36.js +77 -0
  769. package/dist/exe-import-OMLYIICS.js +77 -0
  770. package/dist/exe-import-PPRIPBC4.js +77 -0
  771. package/dist/exe-import-R7A44HWI.js +76 -0
  772. package/dist/exe-import-SZ73K6VH.js +76 -0
  773. package/dist/exe-import-XKYDCRON.js +77 -0
  774. package/dist/exe-key-24SHOIG4.js +579 -0
  775. package/dist/exe-key-6OS5MFI5.js +579 -0
  776. package/dist/exe-key-A3LWIWG7.js +579 -0
  777. package/dist/exe-key-CG4J45GK.js +579 -0
  778. package/dist/exe-key-FASOWAOU.js +579 -0
  779. package/dist/exe-key-FGRYTEWE.js +579 -0
  780. package/dist/exe-key-MLVVZSM6.js +579 -0
  781. package/dist/exe-key-TSF4OCQ7.js +579 -0
  782. package/dist/exe-key-TZWHAO2M.js +579 -0
  783. package/dist/exe-key-ZP67KGXT.js +579 -0
  784. package/dist/exe-org-EVFQGM3D.js +73 -0
  785. package/dist/exe-snapshot-27S4ORVV.js +336 -0
  786. package/dist/exe-snapshot-3NFQ5T2E.js +336 -0
  787. package/dist/exe-snapshot-6FYTQIO3.js +164 -0
  788. package/dist/exe-snapshot-ESUNS5PK.js +336 -0
  789. package/dist/exe-snapshot-GOPSY6ET.js +335 -0
  790. package/dist/exe-snapshot-HE675GJX.js +336 -0
  791. package/dist/exe-snapshot-KXHQQ6IQ.js +336 -0
  792. package/dist/exe-snapshot-QELQK7UN.js +336 -0
  793. package/dist/exe-snapshot-WXMHCHMI.js +336 -0
  794. package/dist/factory-Q5ECXJAT.js +67 -0
  795. package/dist/fast-db-init-6HHMQQ7T.js +7 -0
  796. package/dist/fast-db-init-7UJZZKOC.js +7 -0
  797. package/dist/fast-db-init-BYTJ2LOT.js +7 -0
  798. package/dist/fast-db-init-CV6PSAHE.js +7 -0
  799. package/dist/fast-db-init-F7BYQ6ZK.js +7 -0
  800. package/dist/fast-db-init-IAV27AGE.js +7 -0
  801. package/dist/fast-db-init-KJFD5PBA.js +7 -0
  802. package/dist/fast-db-init-LJIR3OJC.js +7 -0
  803. package/dist/fast-db-init-NI2MIAC7.js +7 -0
  804. package/dist/file-edit-EYDPRZYY.js +8 -0
  805. package/dist/file-read-RJ7IL4DO.js +8 -0
  806. package/dist/file-write-4KTSU55Y.js +8 -0
  807. package/dist/founder-context-3NVGBMKF.js +96 -0
  808. package/dist/gateway/index.js +10 -10
  809. package/dist/gateway-client-AD4HMMSR.js +11 -0
  810. package/dist/git-staleness-3AF5334G.js +110 -0
  811. package/dist/git-staleness-KNUBMEZK.js +110 -0
  812. package/dist/git-staleness-MMMURDDO.js +110 -0
  813. package/dist/git-staleness-O3WY3BWN.js +110 -0
  814. package/dist/git-task-sweep-D5ZTKCB7.js +40 -0
  815. package/dist/git-task-sweep-G446367V.js +40 -0
  816. package/dist/git-task-sweep-KWQDOFSU.js +40 -0
  817. package/dist/git-task-sweep-Q2L5WVGV.js +40 -0
  818. package/dist/git-task-sweep-SFV4OB47.js +40 -0
  819. package/dist/git-task-sweep-TNKHC466.js +40 -0
  820. package/dist/git-task-sweep-XMTW4CVT.js +40 -0
  821. package/dist/git-task-sweep-YQ5IZCPG.js +40 -0
  822. package/dist/git-task-sweep-Z7WQMUKD.js +40 -0
  823. package/dist/glob-JF4RPRT3.js +7 -0
  824. package/dist/global-procedures-2XOKKLIE.js +20 -0
  825. package/dist/global-procedures-BXAXVIBL.js +20 -0
  826. package/dist/global-procedures-C7NNG4AX.js +20 -0
  827. package/dist/global-procedures-GXA5KWKW.js +20 -0
  828. package/dist/global-procedures-K3EC5AYI.js +20 -0
  829. package/dist/global-procedures-K6MCYCUP.js +20 -0
  830. package/dist/global-procedures-M4TTT7MV.js +20 -0
  831. package/dist/global-procedures-OWBRYXNN.js +20 -0
  832. package/dist/graph-auto-extract-IR672UEY.js +181 -0
  833. package/dist/graph-auto-extract-MBMDTX7B.js +181 -0
  834. package/dist/graph-auto-extract-NFXVT2IY.js +162 -0
  835. package/dist/graph-auto-extract-P4SYRJO7.js +181 -0
  836. package/dist/graph-query-UG4DAI33.js +26 -0
  837. package/dist/graph-rag-NK6J45SP.js +31 -0
  838. package/dist/grep-P6JSAZGP.js +7 -0
  839. package/dist/hook-integrity-TFBQQA2V.js +89 -0
  840. package/dist/hooks/bug-report-worker.js +17 -17
  841. package/dist/hooks/codex-stop-task-finalizer.js +18 -18
  842. package/dist/hooks/commit-complete.js +18 -18
  843. package/dist/hooks/error-recall.js +12 -10
  844. package/dist/hooks/exe-heartbeat-hook.js +6 -6
  845. package/dist/hooks/ingest-worker.js +7 -7
  846. package/dist/hooks/ingest.js +15 -15
  847. package/dist/hooks/instructions-loaded.js +7 -7
  848. package/dist/hooks/manifest.json +20 -20
  849. package/dist/hooks/notification.js +7 -7
  850. package/dist/hooks/post-compact.js +17 -17
  851. package/dist/hooks/post-tool-combined.js +9 -9
  852. package/dist/hooks/pre-compact.js +23 -23
  853. package/dist/hooks/pre-tool-use.js +22 -22
  854. package/dist/hooks/prompt-submit.js +35 -33
  855. package/dist/hooks/session-end.js +31 -31
  856. package/dist/hooks/session-start.js +18 -18
  857. package/dist/hooks/stop.js +24 -24
  858. package/dist/hooks/subagent-stop.js +17 -17
  859. package/dist/hooks/summary-worker.js +27 -26
  860. package/dist/hooks-ZGIUOVME.js +9 -0
  861. package/dist/imessage-ADODNZ44.js +7 -0
  862. package/dist/index.js +27 -27
  863. package/dist/installer-5ZCXVNKB.js +296 -0
  864. package/dist/installer-AT44REVO.js +38 -0
  865. package/dist/installer-D3SXDGWZ.js +38 -0
  866. package/dist/installer-EAGOJPWX.js +296 -0
  867. package/dist/installer-EPGQ4IZE.js +38 -0
  868. package/dist/installer-GCYGD7CD.js +38 -0
  869. package/dist/installer-I2CDOPH6.js +342 -0
  870. package/dist/installer-IFZKAVSA.js +296 -0
  871. package/dist/installer-KRS7PPFP.js +342 -0
  872. package/dist/installer-O3SU36CP.js +296 -0
  873. package/dist/installer-QRRDZJ5Q.js +342 -0
  874. package/dist/installer-VCKFYCTU.js +342 -0
  875. package/dist/intercom-queue-JCOWNDJ7.js +17 -0
  876. package/dist/investigation-tracker-AOCYNJAW.js +410 -0
  877. package/dist/key-backup-status-RCKYSYPV.js +39 -0
  878. package/dist/keyword-extractor-T5N4ISGM.js +11 -0
  879. package/dist/lib/agent-config.js +3 -3
  880. package/dist/lib/cloud-sync.js +8 -8
  881. package/dist/lib/cloudflare-dns.js +1 -1
  882. package/dist/lib/config.js +2 -2
  883. package/dist/lib/consolidation.js +12 -8
  884. package/dist/lib/crypto.js +2 -2
  885. package/dist/lib/database.js +8 -4
  886. package/dist/lib/db-daemon-client.js +27 -8
  887. package/dist/lib/db.js +8 -4
  888. package/dist/lib/device-registry.js +2 -2
  889. package/dist/lib/embed-worker.js +47 -25
  890. package/dist/lib/embedder.js +10 -8
  891. package/dist/lib/employee-templates.js +7 -7
  892. package/dist/lib/employees.js +8 -4
  893. package/dist/lib/error-detector.js +1 -1
  894. package/dist/lib/exe-daemon-client.js +5 -5
  895. package/dist/lib/exe-daemon.js +663 -199
  896. package/dist/lib/file-grep.js +1 -1
  897. package/dist/lib/hybrid-search.js +10 -8
  898. package/dist/lib/identity-templates.js +1 -1
  899. package/dist/lib/identity.js +4 -4
  900. package/dist/lib/keychain.js +2 -2
  901. package/dist/lib/license.js +5 -3
  902. package/dist/lib/messaging.js +15 -15
  903. package/dist/lib/post-tool-memory.js +1 -1
  904. package/dist/lib/registry-proxy.js +1 -1
  905. package/dist/lib/reminders.js +5 -5
  906. package/dist/lib/runtime-table.js +1 -1
  907. package/dist/lib/schedules.js +9 -8
  908. package/dist/lib/session-registry.js +6 -6
  909. package/dist/lib/session-wrappers.js +1 -1
  910. package/dist/lib/skill-learning.js +13 -6
  911. package/dist/lib/status-brief.js +2 -2
  912. package/dist/lib/store.js +10 -7
  913. package/dist/lib/task-router.js +5 -5
  914. package/dist/lib/tasks.js +16 -16
  915. package/dist/lib/tmux-routing.js +18 -14
  916. package/dist/lib/tmux-status.js +2 -2
  917. package/dist/lib/tmux-transport.js +1 -1
  918. package/dist/lib/token-spend.js +5 -5
  919. package/dist/lib/transport.js +1 -1
  920. package/dist/lib/ws-auth.js +1 -1
  921. package/dist/lib/ws-client.js +2 -2
  922. package/dist/license-gate-ZDWPYKVZ.js +14 -0
  923. package/dist/mcp/register-tools.js +79 -77
  924. package/dist/mcp/server.js +82 -80
  925. package/dist/mcp/tools/complete-reminder.js +6 -6
  926. package/dist/mcp/tools/create-reminder.js +6 -6
  927. package/dist/mcp/tools/create-task.js +18 -18
  928. package/dist/mcp/tools/deactivate-behavior.js +14 -7
  929. package/dist/mcp/tools/list-reminders.js +6 -6
  930. package/dist/mcp/tools/list-tasks.js +18 -18
  931. package/dist/mcp/tools/send-message.js +17 -17
  932. package/dist/mcp/tools/update-task.js +17 -17
  933. package/dist/mcp-diagnostics-RG7US2O3.js +200 -0
  934. package/dist/mcp-disconnect-tracker-FLC6WSON.js +79 -0
  935. package/dist/mcp-http-config-AETKVUCB.js +27 -0
  936. package/dist/mcp-http-config-HFFEJ7HE.js +27 -0
  937. package/dist/mcp-http-config-NOAYEXSD.js +27 -0
  938. package/dist/mcp-http-config-WEQLOERH.js +27 -0
  939. package/dist/memory-cards-ALMQQN2U.js +178 -0
  940. package/dist/memory-cards-HJ2VDTT3.js +174 -0
  941. package/dist/memory-cards-OAGVTZMZ.js +178 -0
  942. package/dist/memory-cards-S7PJ5TOQ.js +178 -0
  943. package/dist/memory-graph-extractor-5XXL4C7K.js +20 -0
  944. package/dist/memory-graph-extractor-ATUI7ZQG.js +17 -0
  945. package/dist/memory-graph-extractor-BE5SOGWH.js +17 -0
  946. package/dist/memory-graph-extractor-EG7BRRHD.js +20 -0
  947. package/dist/memory-graph-extractor-XYJ34VQC.js +20 -0
  948. package/dist/memory-poisoning-defense-AJREUW5D.js +222 -0
  949. package/dist/memory-poisoning-defense-CXV4TXSS.js +222 -0
  950. package/dist/memory-poisoning-defense-L43CRNBG.js +222 -0
  951. package/dist/memory-poisoning-defense-XDYHR6VO.js +225 -0
  952. package/dist/memory-queue-2B2BXIG4.js +19 -0
  953. package/dist/memory-queue-client-H4BM3XBQ.js +16 -0
  954. package/dist/memory-queue-client-MXVZQP7A.js +16 -0
  955. package/dist/memory-reflection-3J5RS2QO.js +238 -0
  956. package/dist/memory-reflection-I45L64MR.js +242 -0
  957. package/dist/memory-reflection-O3SGKM5N.js +242 -0
  958. package/dist/memory-reflection-SYRJRRKY.js +242 -0
  959. package/dist/message-queue-client-EKZ7EV3E.js +92 -0
  960. package/dist/message-queue-client-FWZVGHU7.js +92 -0
  961. package/dist/notifications-3NU4SUPR.js +45 -0
  962. package/dist/notifications-5GV32CG3.js +45 -0
  963. package/dist/notifications-7AQOX6ST.js +45 -0
  964. package/dist/notifications-CNV3NH6R.js +45 -0
  965. package/dist/notifications-M4Z2MS2T.js +45 -0
  966. package/dist/notifications-NYBLWVOU.js +45 -0
  967. package/dist/notifications-P7PDFFSJ.js +45 -0
  968. package/dist/notifications-UYS75Z6Y.js +45 -0
  969. package/dist/notifications-VEQQL4XQ.js +45 -0
  970. package/dist/oauth-server-MOITGCVQ.js +437 -0
  971. package/dist/orchestration-events-2AO73O5H.js +25 -0
  972. package/dist/orchestration-events-HKYXRQBG.js +25 -0
  973. package/dist/orchestration-events-JG2T7LQE.js +25 -0
  974. package/dist/orchestration-events-T53LWRWQ.js +25 -0
  975. package/dist/orchestration-phase-TE42UKHS.js +23 -0
  976. package/dist/orchestrator-266KJPKS.js +33 -0
  977. package/dist/orchestrator-2KUQEZWW.js +33 -0
  978. package/dist/orchestrator-F5B2I7RK.js +33 -0
  979. package/dist/orchestrator-MK6ZFPQB.js +33 -0
  980. package/dist/orchestrator-NGZITWOO.js +33 -0
  981. package/dist/orchestrator-SQCZ35QB.js +33 -0
  982. package/dist/orchestrator-UYHI7AHC.js +33 -0
  983. package/dist/orchestrator-YOOD52MI.js +33 -0
  984. package/dist/orchestrator-ZEKK4CU7.js +33 -0
  985. package/dist/permission-presets-3XIPJRD7.js +25 -0
  986. package/dist/permissions-I4S4VR3M.js +14 -0
  987. package/dist/pg-ssl-SBP4MZSN.js +7 -0
  988. package/dist/pipeline-router-4BV46AVP.js +13 -0
  989. package/dist/pipeline-router-6P6DEZWG.js +13 -0
  990. package/dist/pipeline-router-DSMEDREP.js +13 -0
  991. package/dist/pipeline-router-IM5MUH7T.js +13 -0
  992. package/dist/pipeline-router-LQXFGZAV.js +13 -0
  993. package/dist/pipeline-router-LZW4AB5L.js +13 -0
  994. package/dist/pipeline-router-Q7BK52OL.js +13 -0
  995. package/dist/pipeline-router-R5AN2GGH.js +13 -0
  996. package/dist/pipeline-router-XCYY3OV2.js +13 -0
  997. package/dist/plan-limits-6HZ72EAG.js +26 -0
  998. package/dist/plan-limits-KPTD6RMK.js +26 -0
  999. package/dist/plan-limits-VZBVPNFE.js +26 -0
  1000. package/dist/plan-limits-ZCI3WNA7.js +26 -0
  1001. package/dist/preferences-TKVPKQ3L.js +10 -0
  1002. package/dist/project-boot-BQAB2UPB.js +299 -0
  1003. package/dist/project-boot-FQLP3BKD.js +299 -0
  1004. package/dist/project-boot-OBR4B6QL.js +299 -0
  1005. package/dist/project-boot-SYUEI3UJ.js +299 -0
  1006. package/dist/project-name-TMASZAKE.js +10 -0
  1007. package/dist/projection-worker-AIWKWEUM.js +964 -0
  1008. package/dist/projection-worker-UYJGMGNY.js +964 -0
  1009. package/dist/projection-worker-XB4YADGF.js +964 -0
  1010. package/dist/projection-worker-Z7QCJMN5.js +964 -0
  1011. package/dist/push-notifications-Y2LMBOK7.js +15 -0
  1012. package/dist/reranker-4JLM7T7U.js +19 -0
  1013. package/dist/reranker-4LNQJ4KI.js +19 -0
  1014. package/dist/reranker-7AWMZF4N.js +19 -0
  1015. package/dist/reranker-FZCTTOFA.js +19 -0
  1016. package/dist/reranker-GAMUI2WN.js +19 -0
  1017. package/dist/reranker-KWBDYDPF.js +19 -0
  1018. package/dist/reranker-NASCH4QP.js +19 -0
  1019. package/dist/reranker-P4K77EHY.js +19 -0
  1020. package/dist/reranker-UIHPCFBD.js +19 -0
  1021. package/dist/reranker-VJ24SH2A.js +19 -0
  1022. package/dist/reranker-VOPVN6MG.js +19 -0
  1023. package/dist/reranker-VSGIRDI6.js +19 -0
  1024. package/dist/review-gate-5PVXY47U.js +120 -0
  1025. package/dist/review-polling-4KKF4QGY.js +124 -0
  1026. package/dist/review-polling-7RYCO3LB.js +124 -0
  1027. package/dist/review-polling-BJZZ6VN5.js +124 -0
  1028. package/dist/review-polling-C2L7OUYZ.js +124 -0
  1029. package/dist/review-polling-KXCRJGMP.js +124 -0
  1030. package/dist/review-polling-LYMFSZZZ.js +124 -0
  1031. package/dist/review-polling-MCJ5QR6R.js +124 -0
  1032. package/dist/review-polling-QMTLNUHR.js +124 -0
  1033. package/dist/review-polling-SAKMZEZM.js +124 -0
  1034. package/dist/runtime/index.js +21 -21
  1035. package/dist/self-query-router-7OKQJSTT.js +188 -0
  1036. package/dist/session-events-75PGQHCQ.js +36 -0
  1037. package/dist/session-events-7JWY6AJM.js +36 -0
  1038. package/dist/session-events-CZXJFZKY.js +36 -0
  1039. package/dist/session-events-HLUA7UQM.js +36 -0
  1040. package/dist/session-events-KGOA2W3V.js +36 -0
  1041. package/dist/session-events-NR22TNSK.js +36 -0
  1042. package/dist/session-events-OE6S6EMW.js +36 -0
  1043. package/dist/session-events-T6RCZ5PO.js +36 -0
  1044. package/dist/session-events-U537QM65.js +36 -0
  1045. package/dist/session-kill-telemetry-RRQ2FDZU.js +29 -0
  1046. package/dist/session-kill-telemetry-UL56A72F.js +29 -0
  1047. package/dist/session-kill-telemetry-USIEQKM3.js +29 -0
  1048. package/dist/session-kill-telemetry-XQ4FIV6G.js +29 -0
  1049. package/dist/session-scope-5UTK6ID3.js +86 -0
  1050. package/dist/session-scope-6URIZ6JG.js +86 -0
  1051. package/dist/session-scope-DTDZDLJM.js +86 -0
  1052. package/dist/session-scope-G7MFBQDJ.js +86 -0
  1053. package/dist/session-scope-IDUBL4CA.js +86 -0
  1054. package/dist/session-scope-KPVPLK3F.js +86 -0
  1055. package/dist/session-scope-L7PN4EUN.js +86 -0
  1056. package/dist/session-scope-UI7ZDVOB.js +86 -0
  1057. package/dist/session-scope-XN3YM2Q5.js +86 -0
  1058. package/dist/setup-wizard-D2G54X2Y.js +12 -0
  1059. package/dist/setup-wizard-FY3U54VV.js +12 -0
  1060. package/dist/setup-wizard-I7SIIJKF.js +12 -0
  1061. package/dist/setup-wizard-NCBDIDUZ.js +12 -0
  1062. package/dist/setup-wizard-NOWL5GX4.js +12 -0
  1063. package/dist/setup-wizard-POFPTSXA.js +12 -0
  1064. package/dist/setup-wizard-SCXS6F2F.js +12 -0
  1065. package/dist/setup-wizard-YBLGQDBS.js +12 -0
  1066. package/dist/setup-wizard-ZELVKEK3.js +12 -0
  1067. package/dist/shard-manager-PRRCZNBV.js +30 -0
  1068. package/dist/signal-PWVUZ5A6.js +7 -0
  1069. package/dist/signal-paths-AMTV6ANR.js +19 -0
  1070. package/dist/skill-refinement-ACMMMAOK.js +157 -0
  1071. package/dist/skill-refinement-EPGHRXJG.js +157 -0
  1072. package/dist/skill-refinement-KYM27SD3.js +157 -0
  1073. package/dist/skill-refinement-MZ3TJIDD.js +157 -0
  1074. package/dist/skill-refinement-R7K5M542.js +157 -0
  1075. package/dist/skill-refinement-TFHUECXP.js +157 -0
  1076. package/dist/skill-refinement-VB6JYRWF.js +157 -0
  1077. package/dist/skill-refinement-VTP44BW3.js +157 -0
  1078. package/dist/skill-refinement-XAHLEDQM.js +157 -0
  1079. package/dist/slack-NNKFYH7T.js +7 -0
  1080. package/dist/stack-release-WZ2S5E4L.js +731 -0
  1081. package/dist/stack-update-BH3VVEF7.js +54 -0
  1082. package/dist/stack-update-K3RGO6EJ.js +56 -0
  1083. package/dist/stack-update-KXUNY3FP.js +54 -0
  1084. package/dist/stack-update-SW2KRYB5.js +56 -0
  1085. package/dist/steward-gate-BKMRY6YO.js +13 -0
  1086. package/dist/steward-gate-P7ZNTNUJ.js +13 -0
  1087. package/dist/steward-gate-QFPCXV2S.js +13 -0
  1088. package/dist/steward-gate-XZ6ODTZX.js +13 -0
  1089. package/dist/support-outbox-6EIEBOIV.js +490 -0
  1090. package/dist/task-enforcement-2XFGCOOA.js +438 -0
  1091. package/dist/task-enforcement-DEJG4YUU.js +423 -0
  1092. package/dist/task-enforcement-DRGNWQPQ.js +438 -0
  1093. package/dist/task-enforcement-FJY25DT2.js +438 -0
  1094. package/dist/task-enforcement-LLSY7IVX.js +438 -0
  1095. package/dist/task-enforcement-OG6QMY3K.js +423 -0
  1096. package/dist/task-enforcement-QE7ZND7P.js +391 -0
  1097. package/dist/task-enforcement-THPJEUXE.js +438 -0
  1098. package/dist/task-enforcement-WHPYHJSR.js +423 -0
  1099. package/dist/task-scanner-B6DRXPJZ.js +11 -0
  1100. package/dist/task-scope-3OJ3HXJH.js +35 -0
  1101. package/dist/task-scope-4DYVYHRH.js +35 -0
  1102. package/dist/task-scope-5ZHVJSQV.js +35 -0
  1103. package/dist/task-scope-6LAMIT56.js +35 -0
  1104. package/dist/task-scope-CGPDNA2R.js +35 -0
  1105. package/dist/task-scope-CSW2JGVT.js +35 -0
  1106. package/dist/task-scope-JXZSWIVH.js +35 -0
  1107. package/dist/task-scope-M4QGLYOA.js +35 -0
  1108. package/dist/task-scope-VPQCW7XQ.js +35 -0
  1109. package/dist/tasks-crud-3ASFAGTY.js +77 -0
  1110. package/dist/tasks-crud-4GBOUTEN.js +77 -0
  1111. package/dist/tasks-crud-4IMD7XNA.js +77 -0
  1112. package/dist/tasks-crud-5S6X2FBF.js +77 -0
  1113. package/dist/tasks-crud-6X5G6NQW.js +77 -0
  1114. package/dist/tasks-crud-JJQ3LMFL.js +77 -0
  1115. package/dist/tasks-crud-KL37U3NC.js +77 -0
  1116. package/dist/tasks-crud-SSNMCJIX.js +77 -0
  1117. package/dist/tasks-crud-WXIN6F3N.js +77 -0
  1118. package/dist/tasks-notify-2FP5XJD6.js +38 -0
  1119. package/dist/tasks-notify-3DRL6XCO.js +38 -0
  1120. package/dist/tasks-notify-5VZJ7SZP.js +38 -0
  1121. package/dist/tasks-notify-7N3VZBGS.js +38 -0
  1122. package/dist/tasks-notify-DQYASACT.js +38 -0
  1123. package/dist/tasks-notify-FBJU2FBD.js +38 -0
  1124. package/dist/tasks-notify-KDARFEOQ.js +38 -0
  1125. package/dist/tasks-notify-R5LPF2Q5.js +38 -0
  1126. package/dist/tasks-notify-VSRXPEVB.js +38 -0
  1127. package/dist/tasks-review-4FLX3KDM.js +47 -0
  1128. package/dist/tasks-review-62VRGXWB.js +47 -0
  1129. package/dist/tasks-review-ARS7I6TW.js +47 -0
  1130. package/dist/tasks-review-I5LRYM6F.js +47 -0
  1131. package/dist/tasks-review-K7CQFARA.js +47 -0
  1132. package/dist/tasks-review-L67U3SF5.js +47 -0
  1133. package/dist/tasks-review-OVWBSWKY.js +47 -0
  1134. package/dist/tasks-review-YK6JDFMD.js +47 -0
  1135. package/dist/tasks-review-YL56BTFI.js +47 -0
  1136. package/dist/telegram-CGHB3TEI.js +7 -0
  1137. package/dist/telemetry-OPR3R6OA.js +9 -0
  1138. package/dist/telemetry-upload-5ELNFLSF.js +739 -0
  1139. package/dist/telemetry-upload-7R2ZXNJJ.js +739 -0
  1140. package/dist/telemetry-upload-AIGZFQ3U.js +739 -0
  1141. package/dist/telemetry-upload-D5VBUCNY.js +739 -0
  1142. package/dist/telemetry-upload-JGPZKOAF.js +739 -0
  1143. package/dist/telemetry-upload-RDXJTYTE.js +739 -0
  1144. package/dist/telemetry-upload-UY36UB2D.js +739 -0
  1145. package/dist/telemetry-upload-VRHQOFCN.js +739 -0
  1146. package/dist/telemetry-upload-XLQKR75S.js +739 -0
  1147. package/dist/token-budget-KEL5DNWK.js +84 -0
  1148. package/dist/token-budget-QMAGSEP6.js +84 -0
  1149. package/dist/token-budget-WXZIXSXO.js +84 -0
  1150. package/dist/token-budget-XDWZ3WFD.js +84 -0
  1151. package/dist/tool-capability-index-WAJWVJIG.js +10 -0
  1152. package/dist/tool-capability-index-ZICRKTNB.js +10 -0
  1153. package/dist/tool-gates-AB3437EY.js +13 -0
  1154. package/dist/tool-gates-YX7VO3HE.js +14 -0
  1155. package/dist/tool-registry-KD2EJJAU.js +11 -0
  1156. package/dist/tool-telemetry-FJZD2JIA.js +17 -0
  1157. package/dist/tool-telemetry-SWOUWOUD.js +17 -0
  1158. package/dist/tool-telemetry-VVJO6LRY.js +17 -0
  1159. package/dist/tool-telemetry-YS5TO42H.js +17 -0
  1160. package/dist/tui/App.js +56 -54
  1161. package/dist/tui-data-27GVVJOU.js +258 -0
  1162. package/dist/tui-data-37TJ54VI.js +258 -0
  1163. package/dist/tui-data-5HI2DOD7.js +258 -0
  1164. package/dist/tui-data-AC3UKRRY.js +258 -0
  1165. package/dist/tui-data-F77RGHDV.js +258 -0
  1166. package/dist/tui-data-KSG6DSIF.js +258 -0
  1167. package/dist/tui-data-Q4AK2VA4.js +258 -0
  1168. package/dist/tui-data-VGRAJ53D.js +258 -0
  1169. package/dist/tui-data-VM6RABX2.js +258 -0
  1170. package/dist/typed-messages-XK4EOVO3.js +17 -0
  1171. package/dist/undici-ECX23NOZ.js +18337 -0
  1172. package/dist/update-check-SE6UHHYE.js +11 -0
  1173. package/dist/webhook-67M5Z7XA.js +96 -0
  1174. package/dist/webhook-pipe-MRIWVULE.js +114 -0
  1175. package/dist/whatsapp-V5JVEKWU.js +9 -0
  1176. package/dist/whatsapp-accounts-FZLU4U2I.js +15 -0
  1177. package/dist/whatsapp-config-HDO6NWHL.js +132 -0
  1178. package/dist/wiki-acl-ANADZMHB.js +111 -0
  1179. package/dist/wiki-acl-COU5EHBI.js +111 -0
  1180. package/dist/wiki-acl-J222LNOF.js +111 -0
  1181. package/dist/wiki-acl-LBKYC4VX.js +111 -0
  1182. package/dist/wiki-client-CMQVLPMK.js +157 -0
  1183. package/dist/worker-gate-36DBI7NE.js +21 -0
  1184. package/dist/worker-gate-56JYUFA7.js +21 -0
  1185. package/dist/worker-gate-7QHUBCAG.js +21 -0
  1186. package/dist/worker-gate-E7LMIOJL.js +21 -0
  1187. package/dist/worker-gate-EI3XNEJL.js +21 -0
  1188. package/dist/worker-gate-FVF4NWZU.js +21 -0
  1189. package/dist/worker-gate-G7JJHKEB.js +21 -0
  1190. package/dist/worker-gate-XF4YGPYK.js +21 -0
  1191. package/dist/worker-gate-YMCYCTRZ.js +21 -0
  1192. package/dist/workflow-engine-3S5TPIKU.js +28 -0
  1193. package/dist/workflow-engine-7YIVAYB3.js +28 -0
  1194. package/dist/workflow-engine-D6USONUH.js +28 -0
  1195. package/dist/workflow-engine-GNOKDKPG.js +28 -0
  1196. package/dist/workflow-engine-IFKN6EDI.js +28 -0
  1197. package/dist/workflow-engine-JNI3WD3I.js +28 -0
  1198. package/dist/workflow-engine-K73ZJREJ.js +28 -0
  1199. package/dist/workflow-engine-KAIO4Q5U.js +28 -0
  1200. package/dist/workflow-engine-S52UFIUW.js +28 -0
  1201. package/dist/working-memory-HT4E77P5.js +77 -0
  1202. package/dist/worktree-KQ7ZDA53.js +26 -0
  1203. package/dist/worktree-SETZ7IEC.js +26 -0
  1204. package/dist/worktree-UOCMI6D7.js +26 -0
  1205. package/dist/worktree-ZRQ7Y6BK.js +26 -0
  1206. package/dist/worktree-sweep-6R3C2VRP.js +19 -0
  1207. package/dist/worktree-sweep-V34JKHD5.js +19 -0
  1208. package/dist/worktree-sweep-VSXKUQBT.js +19 -0
  1209. package/dist/worktree-sweep-YLO4Y2DH.js +19 -0
  1210. package/package.json +4 -11
  1211. package/release-notes.json +84 -37
  1212. package/src/commands/exe/build-adv.md +1 -1
  1213. package/src/commands/exe/heartbeat.md +24 -21
  1214. package/src/commands/exe/setup.md +18 -14
  1215. package/src/commands/exe.md +2 -1
@@ -0,0 +1,1173 @@
1
+ import {
2
+ buildFtsMatch,
3
+ tokenizeForFts
4
+ } from "./chunk-AB4PAQYK.js";
5
+ import {
6
+ attachDocumentMetadata,
7
+ buildRawVisibilityFilter,
8
+ buildWikiScopeFilter,
9
+ searchMemories
10
+ } from "./chunk-GIFUVNEV.js";
11
+ import {
12
+ blobToVector
13
+ } from "./chunk-OTVEIJUQ.js";
14
+ import {
15
+ getClient
16
+ } from "./chunk-L7T4JRTJ.js";
17
+
18
+ // src/lib/hybrid-search.ts
19
+ var RRF_K = 60;
20
+ var DAEMON_SAFE_FTS_TERM_THRESHOLD = 3;
21
+ var DAEMON_SAFE_FTS_MAX_TERMS = 5;
22
+ var _daemonBroadFtsSkipLogged = false;
23
+ var _daemonGraphFtsSkipLogged = false;
24
+ function isDaemonProcess() {
25
+ return process.env.EXE_IS_DAEMON === "1";
26
+ }
27
+ function daemonSafeFtsTerms(terms) {
28
+ return isDaemonProcess() ? terms.slice(0, DAEMON_SAFE_FTS_MAX_TERMS) : terms;
29
+ }
30
+ function shouldUseFtsPrefix(terms) {
31
+ return !(isDaemonProcess() && terms.length >= DAEMON_SAFE_FTS_TERM_THRESHOLD);
32
+ }
33
+ function logDaemonBroadFtsSkipOnce(terms) {
34
+ if (_daemonBroadFtsSkipLogged || process.env.VITEST) return;
35
+ _daemonBroadFtsSkipLogged = true;
36
+ process.stderr.write(
37
+ `[hybrid-search] Daemon-safe FTS: skipped broad OR fallback for ${terms.length} terms to keep MCP responsive.
38
+ `
39
+ );
40
+ }
41
+ function logDaemonGraphFtsSkipOnce(terms) {
42
+ if (_daemonGraphFtsSkipLogged || process.env.VITEST) return;
43
+ _daemonGraphFtsSkipLogged = true;
44
+ process.stderr.write(
45
+ `[hybrid-search] Daemon-safe FTS: skipped graph/entity FTS for ${terms.length} terms to keep MCP responsive.
46
+ `
47
+ );
48
+ }
49
+ var _cardinalityCache = /* @__PURE__ */ new Map();
50
+ var CARDINALITY_TTL_MS = 6e4;
51
+ setInterval(() => {
52
+ const now = Date.now();
53
+ for (const [key, entry] of _cardinalityCache) {
54
+ if (now > entry.expires) _cardinalityCache.delete(key);
55
+ }
56
+ }, 5 * 60 * 1e3).unref();
57
+ async function getCachedCardinality(agentId) {
58
+ if (process.env.VITEST === "true" || process.env.NODE_ENV === "test") {
59
+ const { getMemoryCardinality: getMemoryCardinality2 } = await import("./lib/store.js");
60
+ return getMemoryCardinality2(agentId);
61
+ }
62
+ const cached = _cardinalityCache.get(agentId);
63
+ if (cached && Date.now() < cached.expires) return cached.count;
64
+ const { getMemoryCardinality } = await import("./lib/store.js");
65
+ const count = await getMemoryCardinality(agentId);
66
+ _cardinalityCache.set(agentId, { count, expires: Date.now() + CARDINALITY_TTL_MS });
67
+ return count;
68
+ }
69
+ var ABSTENTION_THRESHOLD = parseFloat(
70
+ process.env.EXE_ABSTENTION_THRESHOLD ?? "0.25"
71
+ );
72
+ var CONTRADICTION_TEMPORAL_BOOST = 1.5;
73
+ function buildTemporalFilter(options, columnPrefix) {
74
+ const asOf = options?.asOf;
75
+ if (asOf) {
76
+ return {
77
+ clause: ` AND (${columnPrefix}valid_from IS NULL OR ${columnPrefix}valid_from <= ?) AND (${columnPrefix}invalid_at IS NULL OR ${columnPrefix}invalid_at > ?)`,
78
+ args: [asOf, asOf]
79
+ };
80
+ }
81
+ return {
82
+ clause: ` AND ${columnPrefix}invalid_at IS NULL`,
83
+ args: []
84
+ };
85
+ }
86
+ function appendMemoryTypeFilter(sql, args, column, options) {
87
+ if (options?.memoryTypes && options.memoryTypes.length > 0) {
88
+ const uniqueTypes = [...new Set(options.memoryTypes)];
89
+ sql += ` AND ${column} IN (${uniqueTypes.map(() => "?").join(",")})`;
90
+ args.push(...uniqueTypes);
91
+ } else if (options?.memoryType) {
92
+ sql += ` AND ${column} = ?`;
93
+ args.push(options.memoryType);
94
+ }
95
+ return sql;
96
+ }
97
+ async function graphSearch(query, agentId, _options, limit) {
98
+ const client = getClient();
99
+ const queryWords = tokenizeForFts(query, { maxTerms: 16 });
100
+ if (queryWords.length === 0) return [];
101
+ if (isDaemonProcess() && queryWords.length >= DAEMON_SAFE_FTS_TERM_THRESHOLD) {
102
+ logDaemonGraphFtsSkipOnce(queryWords);
103
+ return [];
104
+ }
105
+ let entityIds = [];
106
+ try {
107
+ const safeWords = daemonSafeFtsTerms(queryWords);
108
+ const usePrefix = shouldUseFtsPrefix(safeWords);
109
+ const matchExpr = buildFtsMatch(safeWords, { prefix: usePrefix, join: "OR" });
110
+ const ftsResult = await client.execute({
111
+ sql: `SELECT e.id FROM entities e
112
+ JOIN entities_fts fts ON e.rowid = fts.rowid
113
+ WHERE entities_fts MATCH ?
114
+ ORDER BY rank LIMIT 10`,
115
+ args: [matchExpr]
116
+ });
117
+ entityIds = ftsResult.rows.map((r) => String(r.id));
118
+ } catch {
119
+ try {
120
+ const conditions = queryWords.map(() => `LOWER(name) LIKE ? ESCAPE '\\'`);
121
+ const args = queryWords.map((w) => `%${escapeLikePattern(w)}%`);
122
+ const likeResult = await client.execute({
123
+ sql: `SELECT id FROM entities WHERE ${conditions.join(" OR ")} LIMIT 10`,
124
+ args: [...args]
125
+ });
126
+ entityIds = likeResult.rows.map((r) => String(r.id));
127
+ } catch {
128
+ return [];
129
+ }
130
+ }
131
+ if (entityIds.length === 0) return [];
132
+ const allEntityIds = new Set(entityIds);
133
+ try {
134
+ const placeholders2 = entityIds.map(() => "?").join(",");
135
+ const neighborResult = await client.execute({
136
+ sql: `SELECT DISTINCT target_entity_id FROM relationships
137
+ WHERE source_entity_id IN (${placeholders2})
138
+ UNION
139
+ SELECT DISTINCT source_entity_id FROM relationships
140
+ WHERE target_entity_id IN (${placeholders2})
141
+ LIMIT 30`,
142
+ args: [...entityIds, ...entityIds]
143
+ });
144
+ for (const row of neighborResult.rows) {
145
+ allEntityIds.add(String(row.target_entity_id ?? row.source_entity_id));
146
+ }
147
+ } catch {
148
+ }
149
+ const entityIdArr = Array.from(allEntityIds);
150
+ const placeholders = entityIdArr.map(() => "?").join(",");
151
+ try {
152
+ const memResult = await client.execute({
153
+ sql: `SELECT DISTINCT m.id, m.agent_id, m.agent_role, m.session_id, m.timestamp,
154
+ m.tool_name, m.project_name, m.has_error, m.raw_text, m.vector,
155
+ m.task_id, m.importance, m.status, m.confidence, m.last_accessed,
156
+ m.workspace_id, m.document_id, m.user_id, m.char_offset,
157
+ m.page_number, m.source_path, m.source_type, m.memory_type, m.strength
158
+ FROM memories m
159
+ JOIN entity_memories em ON m.id = em.memory_id
160
+ WHERE em.entity_id IN (${placeholders})
161
+ AND (m.agent_id = ? OR m.agent_id = 'wiki')
162
+ AND COALESCE(m.status, 'active') = 'active'
163
+ AND COALESCE(m.confidence, 0.7) >= 0.3
164
+ ORDER BY m.importance DESC, m.timestamp DESC
165
+ LIMIT ?`,
166
+ args: [...entityIdArr, agentId, limit]
167
+ });
168
+ return memResult.rows.map((row) => rowToMemoryRecord(row));
169
+ } catch {
170
+ return [];
171
+ }
172
+ }
173
+ function escapeLikePattern(value) {
174
+ return value.replace(/[\\%_]/g, (ch) => `\\${ch}`);
175
+ }
176
+ function extractEntitySubqueries(query) {
177
+ const subqueries = [];
178
+ const quoted = query.match(/"([^"]+)"/g);
179
+ if (quoted) {
180
+ for (const q of quoted) {
181
+ subqueries.push(q.replace(/"/g, ""));
182
+ }
183
+ }
184
+ const words = query.split(/\s+/);
185
+ const properNouns = [];
186
+ for (let i = 1; i < words.length; i++) {
187
+ const word = words[i].replace(/[^a-zA-Z]/g, "");
188
+ if (word.length >= 2 && /^[A-Z]/.test(word) && !/^(What|When|Where|Who|How|Why|Which|Does|Did|Is|Are|Was|Were|Has|Have|Had|Can|Could|Would|Should|Do|The|And|But|For|Not|You|Your|His|Her|Its|Our|Their|This|That|These|Those)$/.test(word)) {
189
+ properNouns.push(word);
190
+ }
191
+ }
192
+ if (properNouns.length > 0) {
193
+ subqueries.push(properNouns.join(" "));
194
+ }
195
+ const prepPatterns = /(?:about|regarding|concerning|towards?|with|for|against)\s+(.+?)(?:\?|$|,|\band\b)/gi;
196
+ let match;
197
+ while ((match = prepPatterns.exec(query)) !== null) {
198
+ const phrase = match[1].trim();
199
+ if (phrase.length >= 3 && phrase.split(/\s+/).length <= 5) {
200
+ subqueries.push(phrase);
201
+ }
202
+ }
203
+ return [...new Set(subqueries)].slice(0, 3);
204
+ }
205
+ function resolveContradictions(results) {
206
+ if (results.length < 2) return results;
207
+ const entityGroups = /* @__PURE__ */ new Map();
208
+ for (const r of results) {
209
+ const words = (r.raw_text ?? "").toLowerCase().replace(/[^a-z0-9\s]/g, "").split(/\s+/).filter((w) => w.length >= 4).slice(0, 3);
210
+ if (words.length < 2) continue;
211
+ const key = words.join("|");
212
+ let grouped = false;
213
+ for (const [existingKey, group] of entityGroups) {
214
+ const existingWords = new Set(existingKey.split("|"));
215
+ const overlapCount = words.filter((w) => existingWords.has(w)).length;
216
+ if (overlapCount >= 2) {
217
+ group.push(r);
218
+ entityGroups.set(existingKey, group);
219
+ grouped = true;
220
+ break;
221
+ }
222
+ }
223
+ if (grouped) continue;
224
+ const existing = entityGroups.get(key) ?? [];
225
+ existing.push(r);
226
+ entityGroups.set(key, existing);
227
+ }
228
+ const temporalBoosts = /* @__PURE__ */ new Map();
229
+ for (const [, group] of entityGroups) {
230
+ if (group.length < 2) continue;
231
+ const sorted = [...group].sort(
232
+ (a, b) => new Date(b.timestamp).getTime() - new Date(a.timestamp).getTime()
233
+ );
234
+ for (let i = 0; i < sorted.length; i++) {
235
+ const id = sorted[i].id;
236
+ const boost = i === 0 ? CONTRADICTION_TEMPORAL_BOOST : 1 / (1 + i * 0.3);
237
+ temporalBoosts.set(id, Math.max(temporalBoosts.get(id) ?? 0, boost));
238
+ }
239
+ }
240
+ if (temporalBoosts.size === 0) return results;
241
+ const scored = results.map((r, i) => {
242
+ const baseScore = 1 / (1 + i * 0.1);
243
+ const contradiction = temporalBoosts.get(r.id) ?? 1;
244
+ return { record: r, score: baseScore * contradiction };
245
+ });
246
+ scored.sort((a, b) => b.score - a.score);
247
+ return scored.map((s) => s.record);
248
+ }
249
+ async function hybridSearch(queryText, agentId, options) {
250
+ const { loadConfig } = await import("./lib/config.js");
251
+ const config = await loadConfig();
252
+ const searchStartMs = Date.now();
253
+ if (config.searchMode === "fts") {
254
+ return lightweightSearch(queryText, agentId, options);
255
+ }
256
+ const limit = options?.limit ?? 10;
257
+ const trajectoryResults = await trajectoryBypass(queryText, agentId, options, limit);
258
+ if (trajectoryResults !== null) return trajectoryResults;
259
+ let effectiveQuery = queryText;
260
+ const effectiveOptions = { ...options };
261
+ let _isBroadQuery = false;
262
+ let inferredTerms = [];
263
+ if (config.selfQueryRouter) {
264
+ try {
265
+ const { routeQuery } = await import("./self-query-router-7OKQJSTT.js");
266
+ const routed = await routeQuery(queryText, config.selfQueryModel, agentId);
267
+ effectiveQuery = routed.semanticQuery;
268
+ _isBroadQuery = routed.isBroadQuery;
269
+ inferredTerms = routed.inferredTerms ?? [];
270
+ if (routed.projectFilter && !effectiveOptions.projectName) {
271
+ effectiveOptions.projectName = routed.projectFilter;
272
+ }
273
+ if (routed.timeFilter && !effectiveOptions.since) {
274
+ effectiveOptions.since = routed.timeFilter;
275
+ }
276
+ if (routed.roleFilter) {
277
+ inferredTerms.push(routed.roleFilter.toLowerCase());
278
+ }
279
+ } catch (err) {
280
+ if (!process.env.VITEST) {
281
+ process.stderr.write(`[hybrid-search] Self-query router failed: ${err instanceof Error ? err.message : String(err)}
282
+ `);
283
+ }
284
+ }
285
+ }
286
+ const cardinality = await getCachedCardinality(agentId);
287
+ const { rerankerAutoTrigger } = config.scalingRoadmap ?? {};
288
+ const minCardForBroad = rerankerAutoTrigger?.broadQueryMinCardinality ?? 5e4;
289
+ const useNarrowPath = cardinality < 1e4;
290
+ const useBroadPath = cardinality > minCardForBroad || _isBroadQuery && cardinality >= 1e4;
291
+ const effectiveIsBroad = useBroadPath && !useNarrowPath;
292
+ if (effectiveIsBroad !== _isBroadQuery) {
293
+ process.stderr.write(
294
+ `[hybrid-search] Adaptive routing override: cardinality=${cardinality}, router=${_isBroadQuery ? "broad" : "narrow"} \u2192 ${effectiveIsBroad ? "broad" : "narrow"}
295
+ `
296
+ );
297
+ }
298
+ let rerankerAvailable = false;
299
+ if (process.env.EXE_IS_DAEMON === "1") {
300
+ try {
301
+ const { isRerankerAvailable } = await import("./reranker-7AWMZF4N.js");
302
+ rerankerAvailable = isRerankerAvailable();
303
+ } catch {
304
+ }
305
+ }
306
+ const broadFetchTopK = config.scalingRoadmap?.rerankerAutoTrigger?.fetchTopK ?? 150;
307
+ const fetchLimit = effectiveIsBroad ? Math.max(limit * 5, broadFetchTopK) : rerankerAvailable ? Math.max(limit * 4, 60) : Math.max(limit * 3, 30);
308
+ const fetchOptions = { ...effectiveOptions, limit: fetchLimit, includeSource: false };
309
+ let queryVector = null;
310
+ try {
311
+ const { embed } = await import("./lib/embedder.js");
312
+ queryVector = await embed(effectiveQuery);
313
+ } catch {
314
+ if (!process.env.VITEST) {
315
+ process.stderr.write("[hybrid-search] Embed daemon unavailable \u2014 FTS-only mode\n");
316
+ }
317
+ }
318
+ let grepPromise = Promise.resolve([]);
319
+ if (config.fileGrepEnabled === true && !process.env.VITEST) {
320
+ try {
321
+ if (process.env.EXE_IS_DAEMON !== "1") {
322
+ const { getProjectName } = await import("./project-name-TMASZAKE.js");
323
+ const projectRoot = process.cwd();
324
+ const projectName = getProjectName(projectRoot);
325
+ if (projectName && projectName !== "tmp") {
326
+ const { grepProjectFiles } = await import("./lib/file-grep.js");
327
+ grepPromise = grepProjectFiles(effectiveQuery, projectRoot, {
328
+ maxResults: 10
329
+ }).catch(() => []);
330
+ }
331
+ }
332
+ } catch {
333
+ }
334
+ }
335
+ const entitySubqueries = extractEntitySubqueries(effectiveQuery);
336
+ if (inferredTerms.length > 0) {
337
+ entitySubqueries.push(...inferredTerms.filter(
338
+ (t) => !entitySubqueries.some((sq) => sq.toLowerCase() === t.toLowerCase())
339
+ ));
340
+ }
341
+ const subqueryPromises = entitySubqueries.map(
342
+ (sq) => lightweightSearch(sq, agentId, { ...fetchOptions, limit: Math.min(fetchLimit, 20) }).catch(() => [])
343
+ );
344
+ const includeStructuredCards = effectiveIsBroad || effectiveOptions.includeStructuredCards === true;
345
+ const [ftsResults, vectorResults, graphResults, cardResults, reflectionResults, grepResults, ...subqueryResults] = await Promise.all([
346
+ lightweightSearch(effectiveQuery, agentId, fetchOptions),
347
+ queryVector ? searchMemories(queryVector, agentId, fetchOptions).catch((err) => {
348
+ if (!process.env.VITEST) {
349
+ process.stderr.write(`[hybrid-search] Vector search failed; continuing with non-vector signals: ${err instanceof Error ? err.message : String(err)}
350
+ `);
351
+ }
352
+ return [];
353
+ }) : Promise.resolve([]),
354
+ // Graph search: first-class parallel signal via entity → memory linkage.
355
+ // Non-blocking with 2s timeout — graph is a bonus, not a requirement.
356
+ Promise.race([
357
+ graphSearch(effectiveQuery, agentId, fetchOptions, Math.min(fetchLimit, 20)),
358
+ new Promise((resolve) => setTimeout(() => resolve([]), 2e3))
359
+ ]).catch(() => []),
360
+ includeStructuredCards ? (async () => {
361
+ try {
362
+ const { searchMemoryCards } = await import("./memory-cards-OAGVTZMZ.js");
363
+ return await searchMemoryCards(effectiveQuery, agentId, fetchOptions);
364
+ } catch {
365
+ return [];
366
+ }
367
+ })() : Promise.resolve([]),
368
+ // Reflection insights: patterns, contradictions, summaries across sessions
369
+ includeStructuredCards ? (async () => {
370
+ try {
371
+ const { searchReflections } = await import("./memory-reflection-O3SGKM5N.js");
372
+ const insights = await searchReflections(effectiveQuery, agentId, 5);
373
+ return insights.map((ins) => ({
374
+ id: ins.id,
375
+ agent_id: ins.agent_id,
376
+ raw_text: `[${ins.insight_type}] ${ins.content}`,
377
+ timestamp: ins.created_at,
378
+ session_id: "reflection",
379
+ importance: Math.round(ins.confidence * 10),
380
+ confidence: ins.confidence
381
+ }));
382
+ } catch {
383
+ return [];
384
+ }
385
+ })() : Promise.resolve([]),
386
+ grepPromise,
387
+ ...subqueryPromises
388
+ ]);
389
+ for (const r of ftsResults) {
390
+ r._source = "fts";
391
+ }
392
+ for (const r of vectorResults) {
393
+ r._source = "embed";
394
+ }
395
+ for (const r of graphResults) {
396
+ r._source = "graph";
397
+ }
398
+ for (const r of cardResults) {
399
+ r._source = "card";
400
+ }
401
+ for (const r of reflectionResults) {
402
+ r._source = "reflection";
403
+ }
404
+ for (const r of grepResults) {
405
+ r._source = "grep";
406
+ }
407
+ const lists = [];
408
+ const weights = [];
409
+ if (ftsResults.length > 0) {
410
+ lists.push(ftsResults);
411
+ weights.push(1);
412
+ }
413
+ if (vectorResults.length > 0) {
414
+ lists.push(vectorResults);
415
+ weights.push(1);
416
+ }
417
+ if (graphResults.length > 0) {
418
+ lists.push(graphResults);
419
+ weights.push(0.9);
420
+ }
421
+ if (reflectionResults.length > 0) {
422
+ lists.push(reflectionResults);
423
+ weights.push(0.65);
424
+ }
425
+ if (cardResults.length > 0) {
426
+ lists.push(cardResults);
427
+ weights.push(0.85);
428
+ }
429
+ if (grepResults.length > 0) {
430
+ lists.push(grepResults);
431
+ weights.push(0.5);
432
+ }
433
+ for (const sqResult of subqueryResults) {
434
+ if (sqResult.length > 0) {
435
+ lists.push(sqResult);
436
+ weights.push(0.7);
437
+ }
438
+ }
439
+ if (lists.length === 0) return [];
440
+ if (lists.length === 1 && !effectiveIsBroad) return lists[0].slice(0, limit);
441
+ const rrfLimit = effectiveIsBroad ? Math.max(limit * 5, broadFetchTopK) : limit;
442
+ let merged = lists.length === 1 ? lists[0].slice(0, rrfLimit) : rrfMergeMulti(lists, rrfLimit, RRF_K, weights);
443
+ let graphContextMap = /* @__PURE__ */ new Map();
444
+ let entityBoostRan = false;
445
+ if (merged.length > 0) {
446
+ try {
447
+ const { applyEntityBoost } = await import("./entity-boost-LI4H3PAZ.js");
448
+ const boosted = await applyEntityBoost(merged, effectiveQuery, getClient());
449
+ merged = boosted.results;
450
+ graphContextMap = boosted.graphContext;
451
+ entityBoostRan = true;
452
+ } catch {
453
+ }
454
+ }
455
+ if (merged.length >= 2) {
456
+ merged = resolveContradictions(merged);
457
+ }
458
+ const auto = config.scalingRoadmap?.rerankerAutoTrigger ?? {
459
+ enabled: config.rerankerEnabled ?? true,
460
+ broadQueryMinCardinality: 5e4,
461
+ fetchTopK: 150,
462
+ returnTopK: 5
463
+ };
464
+ let rerankedAndBlended = null;
465
+ const rerankReturnLimit = Math.max(limit, auto.returnTopK ?? 5);
466
+ const shouldRerank = auto.enabled && rerankerAvailable && merged.length >= limit * 2 && (effectiveIsBroad || lists.length >= 2);
467
+ if (shouldRerank) {
468
+ try {
469
+ let rerankedRecords;
470
+ if (graphContextMap.size > 0) {
471
+ const { rerankWithContext } = await import("./reranker-7AWMZF4N.js");
472
+ const candidates = merged.map((m) => ({
473
+ text: m.raw_text,
474
+ context: graphContextMap.get(m.id)
475
+ }));
476
+ const scored = await rerankWithContext(effectiveQuery, candidates, rerankReturnLimit);
477
+ rerankedRecords = scored.map((s) => merged[s.index]);
478
+ } else {
479
+ const { rerank } = await import("./reranker-7AWMZF4N.js");
480
+ rerankedRecords = await rerank(effectiveQuery, merged, rerankReturnLimit);
481
+ }
482
+ if (rerankedRecords.length > 0) {
483
+ rerankedAndBlended = rrfMergeMulti(
484
+ [rerankedRecords],
485
+ rerankReturnLimit,
486
+ RRF_K
487
+ );
488
+ }
489
+ } catch {
490
+ }
491
+ }
492
+ const finalResults = (rerankedAndBlended ?? merged).slice(0, limit);
493
+ if (finalResults.length > 0) {
494
+ const topResult = finalResults[0];
495
+ const signalCount = lists.length;
496
+ const resultRatio = Math.min(1, finalResults.length / limit);
497
+ const retrievalConfidence = resultRatio * (signalCount >= 2 ? 1 : 0.7);
498
+ topResult._retrievalConfidence = retrievalConfidence;
499
+ if (retrievalConfidence < ABSTENTION_THRESHOLD) {
500
+ for (const r of finalResults) {
501
+ r._lowConfidence = true;
502
+ }
503
+ }
504
+ }
505
+ if (options?.includeSource && finalResults.length > 0) {
506
+ await attachDocumentMetadata(finalResults);
507
+ }
508
+ if (process.env.EXE_SEARCH_LOG !== "0") {
509
+ const logEntry = {
510
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
511
+ query: queryText,
512
+ agentId,
513
+ signals: {
514
+ fts: ftsResults.length,
515
+ vector: vectorResults.length,
516
+ graph: graphResults.length,
517
+ cards: cardResults.length,
518
+ reflections: reflectionResults.length,
519
+ grep: grepResults.length,
520
+ entitySubqueries: subqueryResults.filter((r) => r.length > 0).length,
521
+ entityBoost: entityBoostRan,
522
+ contradictionResolution: merged.length >= 2,
523
+ reranker: rerankedAndBlended !== null,
524
+ selfQueryRouter: effectiveQuery !== queryText,
525
+ inferredTerms: inferredTerms.length > 0 ? inferredTerms : void 0,
526
+ lowConfidence: finalResults[0]?._lowConfidence ?? false
527
+ },
528
+ topResults: finalResults.slice(0, 10).map((r, i) => {
529
+ const scored = r;
530
+ return {
531
+ rank: i + 1,
532
+ id: r.id.slice(0, 8),
533
+ tool: r.tool_name,
534
+ score: scored.distance ?? null,
535
+ age_hours: Math.round((Date.now() - new Date(r.timestamp).getTime()) / 36e5)
536
+ };
537
+ }),
538
+ latencyMs: Date.now() - searchStartMs
539
+ };
540
+ try {
541
+ const fs = await import("fs");
542
+ const path = await import("path");
543
+ const os = await import("os");
544
+ const logPath = path.join(os.homedir(), ".exe-os", "search-quality.jsonl");
545
+ fs.mkdirSync(path.dirname(logPath), { recursive: true });
546
+ const MAX_LOG_BYTES = 5 * 1024 * 1024;
547
+ try {
548
+ const stat = fs.statSync(logPath);
549
+ if (stat.size > MAX_LOG_BYTES) {
550
+ fs.renameSync(logPath, logPath + ".1");
551
+ }
552
+ } catch {
553
+ }
554
+ try {
555
+ const backupPath = logPath + ".1";
556
+ const bstat = fs.statSync(backupPath);
557
+ if (Date.now() - bstat.mtimeMs > 30 * 24 * 60 * 60 * 1e3) {
558
+ fs.unlinkSync(backupPath);
559
+ }
560
+ } catch {
561
+ }
562
+ fs.appendFileSync(logPath, JSON.stringify(logEntry) + "\n");
563
+ } catch {
564
+ }
565
+ }
566
+ if (finalResults.length > 0) {
567
+ const now = (/* @__PURE__ */ new Date()).toISOString();
568
+ const ids = finalResults.map((r) => r.id);
569
+ const placeholders = ids.map(() => "?").join(",");
570
+ try {
571
+ const client = getClient();
572
+ void client.execute({
573
+ sql: `UPDATE memories SET last_accessed = ?, retrieval_count = COALESCE(retrieval_count, 0) + 1, strength = MIN(1.0, COALESCE(strength, 1.0) + 0.1) WHERE id IN (${placeholders})`,
574
+ args: [now, ...ids]
575
+ }).catch(() => {
576
+ });
577
+ } catch {
578
+ }
579
+ }
580
+ return finalResults;
581
+ }
582
+ async function estimateCardinality(agentId, options) {
583
+ const client = getClient();
584
+ let sql = `SELECT COUNT(*) as cnt FROM memories
585
+ WHERE (agent_id = ? OR agent_id = 'wiki')
586
+ AND COALESCE(status, 'active') = 'active'
587
+ AND COALESCE(confidence, 0.7) >= 0.3`;
588
+ const args = [agentId];
589
+ const temporal = buildTemporalFilter(options, "");
590
+ sql += temporal.clause;
591
+ args.push(...temporal.args);
592
+ const rawVisibility = buildRawVisibilityFilter(options, "");
593
+ sql += rawVisibility.clause;
594
+ args.push(...rawVisibility.args);
595
+ if (options?.projectName) {
596
+ sql += ` AND project_name = ?`;
597
+ args.push(options.projectName);
598
+ }
599
+ if (options?.sessionScope) {
600
+ sql += ` AND (session_scope = ? OR session_scope IS NULL)`;
601
+ args.push(options.sessionScope);
602
+ }
603
+ if (options?.toolName) {
604
+ sql += ` AND tool_name = ?`;
605
+ args.push(options.toolName);
606
+ }
607
+ if (options?.hasError !== void 0) {
608
+ sql += ` AND has_error = ?`;
609
+ args.push(options.hasError ? 1 : 0);
610
+ }
611
+ if (options?.since) {
612
+ sql += ` AND timestamp >= ?`;
613
+ args.push(options.since);
614
+ }
615
+ sql = appendMemoryTypeFilter(sql, args, "memory_type", options);
616
+ try {
617
+ const result = await client.execute({ sql, args });
618
+ return Number(result.rows[0]?.cnt) || 0;
619
+ } catch {
620
+ return 0;
621
+ }
622
+ }
623
+ function rrfMerge(listA, listB, limit, k = RRF_K) {
624
+ return rrfMergeMulti([listA, listB], limit, k);
625
+ }
626
+ function recencyScore(timestamp) {
627
+ const daysSince = (Date.now() - new Date(timestamp).getTime()) / (1e3 * 60 * 60 * 24);
628
+ return 1 / (1 + daysSince * 0.01);
629
+ }
630
+ function normalizedImportance(importance) {
631
+ return ((importance ?? 5) - 1) / 9;
632
+ }
633
+ function frecencyBoost(lastAccessed, timestamp) {
634
+ const accessTime = lastAccessed ? new Date(lastAccessed).getTime() : new Date(timestamp).getTime();
635
+ const hoursSince = Math.max(0, (Date.now() - accessTime) / (1e3 * 60 * 60));
636
+ return Math.exp(-0.01 * hoursSince);
637
+ }
638
+ function sourceConfidence(record) {
639
+ const tool = record.tool_name?.toLowerCase() ?? "";
640
+ if (tool === "manual" || tool === "store_memory") return 0.95;
641
+ if (tool === "auto-summary" || tool === "consolidation") return 0.9;
642
+ if (tool === "userprompt" || tool === "assistantresponse") return 0.75;
643
+ if (tool === "bash" || tool === "write" || tool === "edit") return 0.6;
644
+ if (tool === "file_grep" || tool === "file_read") return 0.5;
645
+ return record.confidence ?? 0.5;
646
+ }
647
+ function rrfMergeMulti(lists, limit, k = RRF_K, weights) {
648
+ const scores = /* @__PURE__ */ new Map();
649
+ for (let listIdx = 0; listIdx < lists.length; listIdx++) {
650
+ const list = lists[listIdx];
651
+ const weight = weights?.[listIdx] ?? 1;
652
+ for (let i = 0; i < list.length; i++) {
653
+ const rec = list[i];
654
+ const entry = scores.get(rec.id) ?? { rrfScore: 0, record: rec, sources: /* @__PURE__ */ new Set() };
655
+ entry.rrfScore += weight * (1 / (k + i + 1));
656
+ if (rec._source) entry.sources.add(rec._source);
657
+ scores.set(rec.id, entry);
658
+ }
659
+ }
660
+ for (const entry of scores.values()) {
661
+ if (entry.sources.size > 0) {
662
+ entry.record._source = Array.from(entry.sources).sort().join("+");
663
+ }
664
+ }
665
+ const maxRrf = Math.max(...Array.from(scores.values()).map((e) => e.rrfScore), 0);
666
+ const entries = Array.from(scores.values()).map((e) => {
667
+ const recency = recencyScore(e.record.timestamp);
668
+ const importance = normalizedImportance(e.record.importance);
669
+ const confidence = sourceConfidence(e.record);
670
+ const strength = e.record.strength ?? 1;
671
+ const frecency = frecencyBoost(e.record.last_accessed, e.record.timestamp);
672
+ const normalizedRrf = maxRrf > 0 ? e.rrfScore / maxRrf : 0;
673
+ const baseScore = normalizedRrf * 0.4 + recency * 0.24 + importance * 0.2 + confidence * 0.1 + strength * 0.06;
674
+ const procedureBoost = e.record.memory_type === "procedure" ? 0.1 : 0;
675
+ const finalScore = (baseScore + procedureBoost) * (1 + 0.3 * frecency);
676
+ return { score: finalScore, record: e.record };
677
+ });
678
+ return entries.sort((a, b) => b.score - a.score).slice(0, limit).map((e) => e.record);
679
+ }
680
+ async function lightweightSearch(queryText, agentId, options) {
681
+ const client = getClient();
682
+ const limit = options?.limit ?? 5;
683
+ const FTS_STOP_WORDS = /* @__PURE__ */ new Set([
684
+ "the",
685
+ "and",
686
+ "but",
687
+ "for",
688
+ "not",
689
+ "you",
690
+ "your",
691
+ "his",
692
+ "her",
693
+ "its",
694
+ "our",
695
+ "their",
696
+ "this",
697
+ "that",
698
+ "these",
699
+ "those",
700
+ "what",
701
+ "when",
702
+ "where",
703
+ "who",
704
+ "how",
705
+ "why",
706
+ "which",
707
+ "does",
708
+ "did",
709
+ "was",
710
+ "were",
711
+ "has",
712
+ "have",
713
+ "had",
714
+ "can",
715
+ "could",
716
+ "would",
717
+ "should",
718
+ "are",
719
+ "with",
720
+ "from",
721
+ "about",
722
+ "into",
723
+ "through",
724
+ "during",
725
+ "before",
726
+ "after",
727
+ "above",
728
+ "below",
729
+ "between",
730
+ "same",
731
+ "each",
732
+ "every",
733
+ "both",
734
+ "more",
735
+ "most",
736
+ "other",
737
+ "some",
738
+ "such",
739
+ "than",
740
+ "too",
741
+ "very",
742
+ "just",
743
+ "also",
744
+ "any",
745
+ "all",
746
+ "own",
747
+ "being",
748
+ "been",
749
+ "they",
750
+ "them",
751
+ "will",
752
+ "may",
753
+ "might",
754
+ "shall",
755
+ "must",
756
+ "need",
757
+ "like",
758
+ "only",
759
+ "then",
760
+ "here",
761
+ "there",
762
+ "once",
763
+ "over",
764
+ "much",
765
+ "many"
766
+ ]);
767
+ const nameTermsSet = /* @__PURE__ */ new Set();
768
+ const rawWords = queryText.split(/\s+/);
769
+ for (let i = 0; i < rawWords.length; i++) {
770
+ const word = rawWords[i].replace(/[^a-zA-Z]/g, "");
771
+ if (word.length >= 2 && /^[A-Z][a-z]/.test(word) && !/^(What|When|Where|Who|How|Why|Which|Does|Did|Is|Are|Was|Were|Has|Have|Had|Can|Could|Would|Should|Do|The|And|But|For|Not|You|Your|His|Her|Its|Our|Their|This|That|These|Those|Also|Just|Very|Some|Any|All|Each|Every|Both|More|Most|Other)$/.test(word)) {
772
+ nameTermsSet.add(word.toLowerCase());
773
+ }
774
+ }
775
+ const allTerms = tokenizeForFts(queryText, { maxTerms: 16 }).filter((t) => !FTS_STOP_WORDS.has(t));
776
+ const contentTerms = allTerms.filter((t) => !nameTermsSet.has(t));
777
+ const terms = daemonSafeFtsTerms(contentTerms.length > 0 ? contentTerms : allTerms);
778
+ if (terms.length === 0) {
779
+ return (await recentRecords(agentId, options, limit)).map((record) => ({
780
+ ...record,
781
+ _source: record._source ? `${record._source}+recent-fallback` : "recent-fallback"
782
+ }));
783
+ }
784
+ const usePrefixTerms = shouldUseFtsPrefix(terms);
785
+ const useAnd = terms.length >= 3;
786
+ const matchExpr = buildFtsMatch(terms, {
787
+ prefix: usePrefixTerms,
788
+ join: useAnd ? "AND" : "OR",
789
+ columns: ["raw_text", "keywords"]
790
+ });
791
+ const results = await ftsQuery(client, matchExpr, agentId, options, limit);
792
+ const broadOrFallbackIsSafe = !isDaemonProcess() || terms.length < DAEMON_SAFE_FTS_TERM_THRESHOLD;
793
+ if (useAnd && results.length < limit && broadOrFallbackIsSafe) {
794
+ const orExpr = buildFtsMatch(terms, {
795
+ prefix: usePrefixTerms,
796
+ join: "OR",
797
+ columns: ["raw_text", "keywords"]
798
+ });
799
+ const orResults = await ftsQuery(client, orExpr, agentId, options, limit);
800
+ const seen = new Set(results.map((r) => r.id));
801
+ for (const r of orResults) {
802
+ if (!seen.has(r.id) && results.length < limit) {
803
+ results.push(r);
804
+ seen.add(r.id);
805
+ }
806
+ }
807
+ } else if (useAnd && results.length < limit && !broadOrFallbackIsSafe) {
808
+ logDaemonBroadFtsSkipOnce(terms);
809
+ }
810
+ if (options?.includeSource && results.length > 0) {
811
+ await attachDocumentMetadata(results);
812
+ }
813
+ if (results.length >= 2) {
814
+ try {
815
+ const { recordCoActivations } = await import("./co-activation-D6VDOLPE.js");
816
+ const ids = results.slice(0, 10).map((r) => r.id);
817
+ void recordCoActivations(ids);
818
+ } catch {
819
+ }
820
+ }
821
+ if (options?.includeStructuredCards !== true) return results;
822
+ try {
823
+ const { searchMemoryCards } = await import("./memory-cards-OAGVTZMZ.js");
824
+ const cardResults = await searchMemoryCards(queryText, agentId, options);
825
+ if (cardResults.length > 0) {
826
+ return rrfMergeMulti([results, cardResults], limit, RRF_K, [1, 0.85]);
827
+ }
828
+ } catch {
829
+ }
830
+ return results;
831
+ }
832
+ async function ftsQuery(client, matchExpr, agentId, options, limit) {
833
+ const statusFilter = options?.includeArchived ? "" : `
834
+ AND COALESCE(m.status, 'active') = 'active'`;
835
+ const draftFilter = options?.includeDrafts ? "" : `
836
+ AND (m.draft = 0 OR m.draft IS NULL)`;
837
+ let sql = `SELECT m.id, m.agent_id, m.agent_role, m.session_id, m.timestamp,
838
+ m.tool_name, m.project_name,
839
+ m.has_error, m.raw_text, m.vector, m.task_id,
840
+ m.importance, m.status, m.confidence, m.last_accessed,
841
+ m.workspace_id, m.document_id, m.user_id,
842
+ m.char_offset, m.page_number,
843
+ m.source_path, m.source_type, m.memory_type, m.strength
844
+ FROM memories m
845
+ JOIN memories_fts fts ON m.rowid = fts.rowid
846
+ WHERE memories_fts MATCH ?
847
+ AND (m.agent_id = ? OR m.agent_id = 'wiki')${statusFilter}${draftFilter}
848
+ AND COALESCE(m.confidence, 0.7) >= 0.3`;
849
+ const args = [matchExpr, agentId];
850
+ const temporal = buildTemporalFilter(options, "m.");
851
+ sql += temporal.clause;
852
+ args.push(...temporal.args);
853
+ const scope = buildWikiScopeFilter(options, "m.");
854
+ sql += scope.clause;
855
+ args.push(...scope.args);
856
+ const rawVisibility = buildRawVisibilityFilter(options, "m.");
857
+ sql += rawVisibility.clause;
858
+ args.push(...rawVisibility.args);
859
+ if (options?.projectName) {
860
+ sql += ` AND m.project_name = ?`;
861
+ args.push(options.projectName);
862
+ }
863
+ if (options?.sessionScope) {
864
+ sql += ` AND (m.session_scope = ? OR m.session_scope IS NULL)`;
865
+ args.push(options.sessionScope);
866
+ }
867
+ if (options?.toolName) {
868
+ sql += ` AND m.tool_name = ?`;
869
+ args.push(options.toolName);
870
+ }
871
+ if (options?.hasError !== void 0) {
872
+ sql += ` AND m.has_error = ?`;
873
+ args.push(options.hasError ? 1 : 0);
874
+ }
875
+ if (options?.since) {
876
+ sql += ` AND m.timestamp >= ?`;
877
+ args.push(options.since);
878
+ }
879
+ sql = appendMemoryTypeFilter(sql, args, "m.memory_type", options);
880
+ sql += ` ORDER BY bm25(memories_fts, 1.0, 3.0) LIMIT ?`;
881
+ args.push(limit);
882
+ let result;
883
+ try {
884
+ result = await client.execute({ sql, args });
885
+ } catch (ftsErr) {
886
+ const msg = ftsErr instanceof Error ? ftsErr.message : String(ftsErr);
887
+ if (msg.includes("fts5") || msg.includes("FTS") || msg.includes("database disk image is malformed")) {
888
+ process.stderr.write(
889
+ `[hybrid-search] FTS5 corruption detected during query: ${msg}
890
+ [hybrid-search] Attempting auto-rebuild of memories_fts index...
891
+ `
892
+ );
893
+ try {
894
+ await client.execute("INSERT INTO memories_fts(memories_fts) VALUES('rebuild')");
895
+ process.stderr.write("[hybrid-search] FTS5 index rebuilt successfully \u2014 retrying query.\n");
896
+ result = await client.execute({ sql, args });
897
+ } catch (rebuildErr) {
898
+ process.stderr.write(
899
+ `[hybrid-search] FTS5 rebuild failed: ${rebuildErr instanceof Error ? rebuildErr.message : String(rebuildErr)}
900
+ `
901
+ );
902
+ return [];
903
+ }
904
+ } else {
905
+ throw ftsErr;
906
+ }
907
+ }
908
+ return result.rows.map((row) => ({
909
+ id: row.id,
910
+ agent_id: row.agent_id,
911
+ agent_role: row.agent_role,
912
+ session_id: row.session_id,
913
+ timestamp: row.timestamp,
914
+ tool_name: row.tool_name,
915
+ project_name: row.project_name,
916
+ has_error: row.has_error === 1,
917
+ raw_text: row.raw_text,
918
+ vector: row.vector == null ? [] : Array.isArray(row.vector) ? row.vector : blobToVector(row.vector),
919
+ task_id: row.task_id ?? null,
920
+ importance: row.importance ?? 5,
921
+ status: row.status ?? "active",
922
+ confidence: row.confidence ?? 0.7,
923
+ last_accessed: row.last_accessed ?? row.timestamp,
924
+ workspace_id: row.workspace_id ?? null,
925
+ document_id: row.document_id ?? null,
926
+ user_id: row.user_id ?? null,
927
+ char_offset: row.char_offset ?? null,
928
+ page_number: row.page_number ?? null,
929
+ source_path: row.source_path ?? null,
930
+ source_type: row.source_type ?? null,
931
+ memory_type: row.memory_type ?? void 0
932
+ }));
933
+ }
934
+ async function recentRecords(agentId, options, limit, textFilter) {
935
+ const client = getClient();
936
+ const sessionBoundaryMemories = [];
937
+ try {
938
+ const kills = await client.execute({
939
+ sql: `SELECT killed_at FROM session_kills
940
+ WHERE agent_id = ?
941
+ ORDER BY killed_at DESC LIMIT 2`,
942
+ args: [agentId]
943
+ });
944
+ if (kills.rows.length > 0) {
945
+ const boundarySlots = Math.min(5, Math.floor(limit / 2));
946
+ for (const kill of kills.rows) {
947
+ const killedAt = kill.killed_at;
948
+ const windowStart = new Date(new Date(killedAt).getTime() - 10 * 60 * 1e3).toISOString();
949
+ const boundaryResult = await client.execute({
950
+ sql: `SELECT id, agent_id, agent_role, session_id, timestamp,
951
+ tool_name, project_name,
952
+ has_error, raw_text, vector, task_id,
953
+ importance, status, confidence, last_accessed,
954
+ workspace_id, document_id, user_id,
955
+ char_offset, page_number,
956
+ source_path, source_type, memory_type, strength
957
+ FROM memories
958
+ WHERE (agent_id = ? OR agent_id = 'wiki')
959
+ AND timestamp >= ? AND timestamp <= ?
960
+ AND COALESCE(status, 'active') = 'active'
961
+ AND ${options?.includeRaw === false ? "COALESCE(memory_type, 'raw') != 'raw'" : "1 = 1"}
962
+ ${options?.memoryTypes?.length ? `AND memory_type IN (${options.memoryTypes.map(() => "?").join(",")})` : options?.memoryType ? "AND memory_type = ?" : ""}
963
+ AND COALESCE(confidence, 0.7) >= 0.3
964
+ ORDER BY timestamp DESC LIMIT ?`,
965
+ args: [
966
+ agentId,
967
+ windowStart,
968
+ killedAt,
969
+ ...options?.memoryTypes?.length ? [...new Set(options.memoryTypes)] : options?.memoryType ? [options.memoryType] : [],
970
+ boundarySlots
971
+ ]
972
+ });
973
+ for (const row of boundaryResult.rows) {
974
+ sessionBoundaryMemories.push(rowToMemoryRecord(row));
975
+ }
976
+ }
977
+ }
978
+ } catch {
979
+ }
980
+ const statusFilter = options?.includeArchived ? "" : `
981
+ AND COALESCE(status, 'active') = 'active'`;
982
+ const draftFilter = options?.includeDrafts ? "" : `
983
+ AND (draft = 0 OR draft IS NULL)`;
984
+ let sql = `SELECT id, agent_id, agent_role, session_id, timestamp,
985
+ tool_name, project_name,
986
+ has_error, raw_text, vector, task_id,
987
+ importance, status, confidence, last_accessed,
988
+ workspace_id, document_id, user_id,
989
+ char_offset, page_number,
990
+ source_path, source_type, memory_type, strength
991
+ FROM memories
992
+ WHERE (agent_id = ? OR agent_id = 'wiki')${statusFilter}${draftFilter}
993
+ AND COALESCE(confidence, 0.7) >= 0.3`;
994
+ const args = [agentId];
995
+ const temporal = buildTemporalFilter(options, "");
996
+ sql += temporal.clause;
997
+ args.push(...temporal.args);
998
+ const scope = buildWikiScopeFilter(options, "");
999
+ sql += scope.clause;
1000
+ args.push(...scope.args);
1001
+ const rawVisibility = buildRawVisibilityFilter(options, "");
1002
+ sql += rawVisibility.clause;
1003
+ args.push(...rawVisibility.args);
1004
+ if (options?.projectName) {
1005
+ sql += ` AND project_name = ?`;
1006
+ args.push(options.projectName);
1007
+ }
1008
+ if (options?.sessionScope) {
1009
+ sql += ` AND (session_scope = ? OR session_scope IS NULL)`;
1010
+ args.push(options.sessionScope);
1011
+ }
1012
+ if (options?.toolName) {
1013
+ sql += ` AND tool_name = ?`;
1014
+ args.push(options.toolName);
1015
+ }
1016
+ if (options?.hasError !== void 0) {
1017
+ sql += ` AND has_error = ?`;
1018
+ args.push(options.hasError ? 1 : 0);
1019
+ }
1020
+ if (options?.since) {
1021
+ sql += ` AND timestamp >= ?`;
1022
+ args.push(options.since);
1023
+ }
1024
+ sql = appendMemoryTypeFilter(sql, args, "memory_type", options);
1025
+ if (textFilter) {
1026
+ sql += ` AND raw_text LIKE '%' || ? || '%'`;
1027
+ args.push(textFilter);
1028
+ }
1029
+ sql += ` ORDER BY timestamp DESC LIMIT ?`;
1030
+ args.push(limit);
1031
+ const result = await client.execute({ sql, args });
1032
+ const recentResults = result.rows.map((row) => rowToMemoryRecord(row));
1033
+ if (sessionBoundaryMemories.length > 0) {
1034
+ const seenIds = new Set(recentResults.map((r) => r.id));
1035
+ for (const bm of sessionBoundaryMemories) {
1036
+ if (!seenIds.has(bm.id)) {
1037
+ recentResults.push(bm);
1038
+ seenIds.add(bm.id);
1039
+ }
1040
+ }
1041
+ recentResults.sort((a, b) => b.timestamp.localeCompare(a.timestamp));
1042
+ return recentResults.slice(0, limit);
1043
+ }
1044
+ return recentResults;
1045
+ }
1046
+ function rowToMemoryRecord(row) {
1047
+ return {
1048
+ id: row.id,
1049
+ agent_id: row.agent_id,
1050
+ agent_role: row.agent_role,
1051
+ session_id: row.session_id,
1052
+ timestamp: row.timestamp,
1053
+ tool_name: row.tool_name,
1054
+ project_name: row.project_name,
1055
+ has_error: row.has_error === 1,
1056
+ raw_text: row.raw_text,
1057
+ vector: row.vector == null ? [] : Array.isArray(row.vector) ? row.vector : blobToVector(row.vector),
1058
+ task_id: row.task_id ?? null,
1059
+ importance: row.importance ?? 5,
1060
+ status: row.status ?? "active",
1061
+ confidence: row.confidence ?? 0.7,
1062
+ last_accessed: row.last_accessed ?? row.timestamp,
1063
+ workspace_id: row.workspace_id ?? null,
1064
+ document_id: row.document_id ?? null,
1065
+ user_id: row.user_id ?? null,
1066
+ char_offset: row.char_offset ?? null,
1067
+ page_number: row.page_number ?? null,
1068
+ source_path: row.source_path ?? null,
1069
+ source_type: row.source_type ?? null,
1070
+ memory_type: row.memory_type ?? void 0,
1071
+ strength: row.strength ?? 1
1072
+ };
1073
+ }
1074
+ var KNOWN_TOOLS = /* @__PURE__ */ new Set([
1075
+ "Bash",
1076
+ "Read",
1077
+ "Write",
1078
+ "Edit",
1079
+ "Grep",
1080
+ "Glob",
1081
+ "Agent",
1082
+ "Skill",
1083
+ "WebSearch",
1084
+ "WebFetch"
1085
+ ]);
1086
+ function detectToolQuery(query) {
1087
+ const lower = query.toLowerCase().trim();
1088
+ for (const tool of KNOWN_TOOLS) {
1089
+ if (lower === `tool:${tool.toLowerCase()}`) return tool;
1090
+ }
1091
+ return null;
1092
+ }
1093
+ async function trajectoryBypass(queryText, agentId, options, limit) {
1094
+ const toolName = detectToolQuery(queryText);
1095
+ if (!toolName) return null;
1096
+ try {
1097
+ const client = getClient();
1098
+ const statusFilter = options?.includeArchived ? "" : `
1099
+ AND COALESCE(status, 'active') = 'active'`;
1100
+ const draftFilter = options?.includeDrafts ? "" : `
1101
+ AND (draft = 0 OR draft IS NULL)`;
1102
+ let sql = `SELECT id, agent_id, agent_role, session_id, timestamp,
1103
+ tool_name, project_name,
1104
+ has_error, raw_text, vector, task_id,
1105
+ importance, status, confidence, last_accessed,
1106
+ workspace_id, document_id, user_id,
1107
+ char_offset, page_number,
1108
+ source_path, source_type, memory_type
1109
+ FROM memories
1110
+ WHERE trajectory IS NOT NULL
1111
+ AND json_extract(trajectory, '$.tool') = ?
1112
+ AND (agent_id = ? OR agent_id = 'wiki')${statusFilter}${draftFilter}`;
1113
+ const args = [toolName, agentId];
1114
+ const temporal = buildTemporalFilter(options, "");
1115
+ sql += temporal.clause;
1116
+ args.push(...temporal.args);
1117
+ const rawVisibility = buildRawVisibilityFilter(options, "");
1118
+ sql += rawVisibility.clause;
1119
+ args.push(...rawVisibility.args);
1120
+ if (options?.projectName) {
1121
+ sql += ` AND project_name = ?`;
1122
+ args.push(options.projectName);
1123
+ }
1124
+ if (options?.sessionScope) {
1125
+ sql += ` AND (session_scope = ? OR session_scope IS NULL)`;
1126
+ args.push(options.sessionScope);
1127
+ }
1128
+ if (options?.since) {
1129
+ sql += ` AND timestamp >= ?`;
1130
+ args.push(options.since);
1131
+ }
1132
+ sql += ` ORDER BY timestamp DESC LIMIT ?`;
1133
+ args.push(limit);
1134
+ const result = await client.execute({ sql, args });
1135
+ if (result.rows.length < 3) return null;
1136
+ return result.rows.map((row) => ({
1137
+ id: row.id,
1138
+ agent_id: row.agent_id,
1139
+ agent_role: row.agent_role,
1140
+ session_id: row.session_id,
1141
+ timestamp: row.timestamp,
1142
+ tool_name: row.tool_name,
1143
+ project_name: row.project_name,
1144
+ has_error: row.has_error === 1,
1145
+ raw_text: row.raw_text,
1146
+ vector: row.vector == null ? [] : Array.isArray(row.vector) ? row.vector : blobToVector(row.vector),
1147
+ task_id: row.task_id ?? null,
1148
+ importance: row.importance ?? 5,
1149
+ status: row.status ?? "active",
1150
+ confidence: row.confidence ?? 0.7,
1151
+ last_accessed: row.last_accessed ?? row.timestamp,
1152
+ workspace_id: row.workspace_id ?? null,
1153
+ document_id: row.document_id ?? null,
1154
+ user_id: row.user_id ?? null,
1155
+ char_offset: row.char_offset ?? null,
1156
+ page_number: row.page_number ?? null,
1157
+ source_path: row.source_path ?? null,
1158
+ source_type: row.source_type ?? null,
1159
+ memory_type: row.memory_type ?? void 0
1160
+ }));
1161
+ } catch {
1162
+ return null;
1163
+ }
1164
+ }
1165
+
1166
+ export {
1167
+ hybridSearch,
1168
+ estimateCardinality,
1169
+ rrfMerge,
1170
+ rrfMergeMulti,
1171
+ lightweightSearch,
1172
+ recentRecords
1173
+ };