@unbrained/pm-cli 2026.6.6 → 2026.6.8

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 (600) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/AGENTS.md +1 -1
  3. package/CHANGELOG.md +79 -0
  4. package/CONTRIBUTING.md +1 -1
  5. package/README.md +6 -2
  6. package/dist/cli/bootstrap-args.js +30 -13
  7. package/dist/cli/bootstrap-args.js.map +1 -1
  8. package/dist/cli/commander-usage.js +74 -4
  9. package/dist/cli/commander-usage.js.map +1 -1
  10. package/dist/cli/commands/aggregate.d.ts +8 -0
  11. package/dist/cli/commands/aggregate.js +84 -7
  12. package/dist/cli/commands/aggregate.js.map +1 -1
  13. package/dist/cli/commands/calendar.js +10 -3
  14. package/dist/cli/commands/calendar.js.map +1 -1
  15. package/dist/cli/commands/close-many.js +20 -11
  16. package/dist/cli/commands/close-many.js.map +1 -1
  17. package/dist/cli/commands/close.d.ts +1 -1
  18. package/dist/cli/commands/close.js +32 -10
  19. package/dist/cli/commands/close.js.map +1 -1
  20. package/dist/cli/commands/comments-audit.js +4 -3
  21. package/dist/cli/commands/comments-audit.js.map +1 -1
  22. package/dist/cli/commands/completion.js +105 -43
  23. package/dist/cli/commands/completion.js.map +1 -1
  24. package/dist/cli/commands/config.d.ts +5 -4
  25. package/dist/cli/commands/config.js +50 -2
  26. package/dist/cli/commands/config.js.map +1 -1
  27. package/dist/cli/commands/contracts.js +4 -3
  28. package/dist/cli/commands/contracts.js.map +1 -1
  29. package/dist/cli/commands/copy.d.ts +14 -0
  30. package/dist/cli/commands/copy.js +153 -0
  31. package/dist/cli/commands/copy.js.map +1 -0
  32. package/dist/cli/commands/extension/doctor.js +62 -2
  33. package/dist/cli/commands/extension/doctor.js.map +1 -1
  34. package/dist/cli/commands/extension/install-sources.d.ts +8 -0
  35. package/dist/cli/commands/extension/install-sources.js +82 -2
  36. package/dist/cli/commands/extension/install-sources.js.map +1 -1
  37. package/dist/cli/commands/extension/scaffold.js +6 -14
  38. package/dist/cli/commands/extension/scaffold.js.map +1 -1
  39. package/dist/cli/commands/extension.d.ts +29 -0
  40. package/dist/cli/commands/extension.js +61 -2
  41. package/dist/cli/commands/extension.js.map +1 -1
  42. package/dist/cli/commands/gc.js +10 -2
  43. package/dist/cli/commands/gc.js.map +1 -1
  44. package/dist/cli/commands/get.d.ts +9 -0
  45. package/dist/cli/commands/get.js +23 -2
  46. package/dist/cli/commands/get.js.map +1 -1
  47. package/dist/cli/commands/health.js +10 -2
  48. package/dist/cli/commands/health.js.map +1 -1
  49. package/dist/cli/commands/history-compact.d.ts +39 -0
  50. package/dist/cli/commands/history-compact.js +262 -0
  51. package/dist/cli/commands/history-compact.js.map +1 -0
  52. package/dist/cli/commands/index.d.ts +3 -1
  53. package/dist/cli/commands/index.js +5 -3
  54. package/dist/cli/commands/index.js.map +1 -1
  55. package/dist/cli/commands/init.d.ts +1 -0
  56. package/dist/cli/commands/init.js +48 -2
  57. package/dist/cli/commands/init.js.map +1 -1
  58. package/dist/cli/commands/list.d.ts +13 -2
  59. package/dist/cli/commands/list.js +189 -9
  60. package/dist/cli/commands/list.js.map +1 -1
  61. package/dist/cli/commands/normalize.js +6 -4
  62. package/dist/cli/commands/normalize.js.map +1 -1
  63. package/dist/cli/commands/reindex.js +8 -4
  64. package/dist/cli/commands/reindex.js.map +1 -1
  65. package/dist/cli/commands/schema.d.ts +13 -2
  66. package/dist/cli/commands/schema.js +66 -12
  67. package/dist/cli/commands/schema.js.map +1 -1
  68. package/dist/cli/commands/search.d.ts +11 -2
  69. package/dist/cli/commands/search.js +321 -35
  70. package/dist/cli/commands/search.js.map +1 -1
  71. package/dist/cli/commands/upgrade.js +4 -12
  72. package/dist/cli/commands/upgrade.js.map +1 -1
  73. package/dist/cli/error-guidance.js +26 -2
  74. package/dist/cli/error-guidance.js.map +1 -1
  75. package/dist/cli/extension-command-help.d.ts +1 -0
  76. package/dist/cli/extension-command-help.js +3 -2
  77. package/dist/cli/extension-command-help.js.map +1 -1
  78. package/dist/cli/help-content.js +10 -2
  79. package/dist/cli/help-content.js.map +1 -1
  80. package/dist/cli/main.d.ts +3 -0
  81. package/dist/cli/main.js +18 -37
  82. package/dist/cli/main.js.map +1 -1
  83. package/dist/cli/register-list-query.js +22 -5
  84. package/dist/cli/register-list-query.js.map +1 -1
  85. package/dist/cli/register-mutation.js +83 -39
  86. package/dist/cli/register-mutation.js.map +1 -1
  87. package/dist/cli/register-operations.js +31 -7
  88. package/dist/cli/register-operations.js.map +1 -1
  89. package/dist/cli/register-setup.js +7 -5
  90. package/dist/cli/register-setup.js.map +1 -1
  91. package/dist/cli/registration-helpers.js +26 -4
  92. package/dist/cli/registration-helpers.js.map +1 -1
  93. package/dist/cli-bundle/chunks/activity-A3QKFSSF.js +16 -0
  94. package/dist/cli-bundle/chunks/{activity-JM6DTDND.js → activity-Q7XMIZIH.js} +11 -11
  95. package/dist/cli-bundle/chunks/{aggregate-VNAHUNNF.js → aggregate-GBSHSXOB.js} +87 -17
  96. package/dist/cli-bundle/chunks/aggregate-GBSHSXOB.js.map +7 -0
  97. package/dist/cli-bundle/chunks/{aggregate-GI7WSZPH.js → aggregate-HKQJZUBG.js} +88 -18
  98. package/dist/cli-bundle/chunks/aggregate-HKQJZUBG.js.map +1 -0
  99. package/dist/cli-bundle/chunks/{append-WMKRXKCE.js → append-3RFOU7P5.js} +8 -8
  100. package/dist/cli-bundle/chunks/{append-7H5N64R2.js → append-OM74OJVT.js} +8 -8
  101. package/dist/cli-bundle/chunks/{chunk-KJE2FOS4.js → chunk-2BYKYPWY.js} +26 -4
  102. package/dist/cli-bundle/chunks/chunk-2BYKYPWY.js.map +7 -0
  103. package/dist/cli-bundle/chunks/{chunk-XTGLRY2Y.js → chunk-2HMD3JM2.js} +6 -6
  104. package/dist/cli-bundle/chunks/{chunk-PRJCELV4.js → chunk-2YPVCD7T.js} +8 -8
  105. package/dist/cli-bundle/chunks/{chunk-3FI4SEFT.js → chunk-3E3MDBTB.js} +62 -38
  106. package/dist/cli-bundle/chunks/chunk-3E3MDBTB.js.map +7 -0
  107. package/dist/cli-bundle/chunks/{chunk-U5SXYXSY.js → chunk-3TXWDGPU.js} +287 -45
  108. package/dist/cli-bundle/chunks/chunk-3TXWDGPU.js.map +7 -0
  109. package/dist/cli-bundle/chunks/{chunk-HZGUAH22.js → chunk-4TI3532H.js} +6 -7
  110. package/dist/cli-bundle/chunks/chunk-4TI3532H.js.map +1 -0
  111. package/dist/cli-bundle/chunks/{chunk-2HVRUSQA.js → chunk-4WYBLB6J.js} +3 -3
  112. package/dist/cli-bundle/chunks/{chunk-R6UFP2GE.js → chunk-5NVJA7IW.js} +7 -7
  113. package/dist/cli-bundle/chunks/{chunk-Q7SPNHLW.js → chunk-5WO2VKFA.js} +190 -16
  114. package/dist/cli-bundle/chunks/chunk-5WO2VKFA.js.map +7 -0
  115. package/dist/cli-bundle/chunks/{chunk-IOR7LGF4.js → chunk-7NQIY7Z6.js} +89 -7
  116. package/dist/cli-bundle/chunks/chunk-7NQIY7Z6.js.map +1 -0
  117. package/dist/cli-bundle/chunks/{chunk-ECCMVXGM.js → chunk-7WXGR44E.js} +305 -216
  118. package/dist/cli-bundle/chunks/chunk-7WXGR44E.js.map +7 -0
  119. package/dist/cli-bundle/chunks/{chunk-XSJCLN2R.js → chunk-AEMKH5WQ.js} +3 -3
  120. package/dist/cli-bundle/chunks/{chunk-WOPXVEZP.js → chunk-ALSRBNYB.js} +28 -9
  121. package/dist/cli-bundle/chunks/chunk-ALSRBNYB.js.map +1 -0
  122. package/dist/cli-bundle/chunks/{chunk-6ER6DXH5.js → chunk-AXBUHLW7.js} +9 -9
  123. package/dist/cli-bundle/chunks/{chunk-BQHUILZS.js → chunk-BFJPMUF5.js} +5 -5
  124. package/dist/cli-bundle/chunks/{chunk-I6BNFU5X.js → chunk-BKQMJXWY.js} +3 -3
  125. package/dist/cli-bundle/chunks/{chunk-XLTD2HN3.js → chunk-CBJXWXI5.js} +2 -2
  126. package/dist/cli-bundle/chunks/{chunk-FRAUKRU2.js → chunk-D7WK2PKB.js} +36 -15
  127. package/dist/cli-bundle/chunks/chunk-D7WK2PKB.js.map +1 -0
  128. package/dist/cli-bundle/chunks/{chunk-PROOHX4K.js → chunk-DV27WDA7.js} +104 -21
  129. package/dist/cli-bundle/chunks/chunk-DV27WDA7.js.map +7 -0
  130. package/dist/cli-bundle/chunks/{chunk-3BWOVLTH.js → chunk-EPWT7BEA.js} +8 -8
  131. package/dist/cli-bundle/chunks/chunk-ETZZU5QF.js +112 -0
  132. package/dist/cli-bundle/chunks/chunk-ETZZU5QF.js.map +1 -0
  133. package/dist/cli-bundle/chunks/{chunk-TPH5XEVD.js → chunk-F33AQIB4.js} +303 -207
  134. package/dist/cli-bundle/chunks/chunk-F33AQIB4.js.map +1 -0
  135. package/dist/cli-bundle/chunks/{chunk-NUZ5HKR4.js → chunk-F33VC5EX.js} +2 -2
  136. package/dist/cli-bundle/chunks/{chunk-WKY2IBOQ.js → chunk-FGRJZVXD.js} +3 -3
  137. package/dist/cli-bundle/chunks/{chunk-77GFDHGF.js → chunk-FO2TYSQZ.js} +2 -2
  138. package/dist/cli-bundle/chunks/{chunk-GXSUPCBV.js → chunk-HOA3GMB6.js} +4 -4
  139. package/dist/cli-bundle/chunks/{chunk-OVQCEJPG.js → chunk-HP35AVFS.js} +2 -2
  140. package/dist/cli-bundle/chunks/{chunk-KJ33AOCY.js → chunk-J4DKAGTM.js} +3 -3
  141. package/dist/cli-bundle/chunks/{chunk-ME2YH6FN.js → chunk-JS47EKLP.js} +7 -7
  142. package/dist/cli-bundle/chunks/{chunk-T3LC5LKB.js → chunk-K62SNVVE.js} +5 -6
  143. package/dist/cli-bundle/chunks/chunk-K62SNVVE.js.map +7 -0
  144. package/dist/cli-bundle/chunks/{chunk-GU2ZJ2VV.js → chunk-KBKJVXUS.js} +35 -14
  145. package/dist/cli-bundle/chunks/chunk-KBKJVXUS.js.map +7 -0
  146. package/dist/cli-bundle/chunks/{chunk-KWU6HG75.js → chunk-KCGMABHM.js} +101 -18
  147. package/dist/cli-bundle/chunks/chunk-KCGMABHM.js.map +1 -0
  148. package/dist/cli-bundle/chunks/{chunk-I2HSTRJF.js → chunk-KN4WSESY.js} +5 -5
  149. package/dist/cli-bundle/chunks/{chunk-RZN6VURO.js → chunk-KP4KIUQT.js} +3 -3
  150. package/dist/cli-bundle/chunks/{chunk-5FDATVEZ.js → chunk-KS2U7BZ3.js} +71 -17
  151. package/dist/cli-bundle/chunks/chunk-KS2U7BZ3.js.map +1 -0
  152. package/dist/cli-bundle/chunks/{chunk-MITFDD35.js → chunk-KVXIQDJG.js} +12 -12
  153. package/dist/cli-bundle/chunks/{chunk-IJGCZSIQ.js → chunk-L3LYL3ID.js} +12 -12
  154. package/dist/cli-bundle/chunks/{chunk-AO442XLN.js → chunk-M7UBTVFT.js} +10 -6
  155. package/dist/cli-bundle/chunks/{chunk-AO442XLN.js.map → chunk-M7UBTVFT.js.map} +2 -2
  156. package/dist/cli-bundle/chunks/{chunk-UM2GBHS4.js → chunk-MSH23UWO.js} +4 -4
  157. package/dist/cli-bundle/chunks/{chunk-LCM63IXU.js → chunk-N4SQZ7L3.js} +2 -2
  158. package/dist/cli-bundle/chunks/{chunk-3VAM3NNM.js → chunk-NDSMKB2I.js} +3 -3
  159. package/dist/cli-bundle/chunks/{chunk-6P6GGMOG.js → chunk-NGEEXR2R.js} +2 -2
  160. package/dist/cli-bundle/chunks/{chunk-PO3GSVFV.js → chunk-NLVCMVC7.js} +2 -2
  161. package/dist/cli-bundle/chunks/{chunk-N7ACFE26.js → chunk-NUKHZZNM.js} +3 -3
  162. package/dist/cli-bundle/chunks/{chunk-GGYWB3Y2.js → chunk-ODN53S6H.js} +6 -6
  163. package/dist/cli-bundle/chunks/{chunk-23YFZ3IG.js → chunk-OTY2YEH5.js} +14 -14
  164. package/dist/cli-bundle/chunks/{chunk-2RSPZI5H.js → chunk-OVSSE2JP.js} +8 -8
  165. package/dist/cli-bundle/chunks/{chunk-4LL6TK5B.js → chunk-PQDH3S54.js} +59 -35
  166. package/dist/cli-bundle/chunks/chunk-PQDH3S54.js.map +1 -0
  167. package/dist/cli-bundle/chunks/{chunk-2VVCGBNV.js → chunk-QF4OPBAG.js} +9 -9
  168. package/dist/cli-bundle/chunks/{chunk-QO7EBBOM.js → chunk-QFVASU44.js} +38 -7
  169. package/dist/cli-bundle/chunks/chunk-QFVASU44.js.map +7 -0
  170. package/dist/cli-bundle/chunks/{chunk-WSMOSYRD.js → chunk-QQPZYP73.js} +14 -14
  171. package/dist/cli-bundle/chunks/{chunk-OZ7NSQHL.js → chunk-QWNUDGFQ.js} +8 -8
  172. package/dist/cli-bundle/chunks/{chunk-AY43SBIN.js → chunk-R4XIE7NQ.js} +54 -8
  173. package/dist/cli-bundle/chunks/chunk-R4XIE7NQ.js.map +1 -0
  174. package/dist/cli-bundle/chunks/{chunk-52MAOQ6J.js → chunk-RISLL7XH.js} +71 -17
  175. package/dist/cli-bundle/chunks/chunk-RISLL7XH.js.map +7 -0
  176. package/dist/cli-bundle/chunks/{chunk-GCOQW437.js → chunk-SDLEYY6A.js} +3 -3
  177. package/dist/cli-bundle/chunks/{chunk-W7XABV4H.js → chunk-SM3RMWGO.js} +191 -17
  178. package/dist/cli-bundle/chunks/chunk-SM3RMWGO.js.map +1 -0
  179. package/dist/cli-bundle/chunks/{chunk-PIU6RSL3.js → chunk-TBLBEOEX.js} +9 -9
  180. package/dist/cli-bundle/chunks/{chunk-SKJWX3QB.js → chunk-TXKENAQP.js} +88 -6
  181. package/dist/cli-bundle/chunks/chunk-TXKENAQP.js.map +7 -0
  182. package/dist/cli-bundle/chunks/{chunk-YL2DJGYS.js → chunk-UEXNNF3K.js} +7 -7
  183. package/dist/cli-bundle/chunks/{chunk-UBOPJT3S.js → chunk-UMMJAJB2.js} +9 -9
  184. package/dist/cli-bundle/chunks/chunk-URJEZOLB.js +115 -0
  185. package/dist/cli-bundle/chunks/chunk-URJEZOLB.js.map +7 -0
  186. package/dist/cli-bundle/chunks/{chunk-PDDFYW4X.js → chunk-VXBUXLVD.js} +27 -8
  187. package/dist/cli-bundle/chunks/chunk-VXBUXLVD.js.map +7 -0
  188. package/dist/cli-bundle/chunks/{chunk-LB3RUL2N.js → chunk-XEKZCBCS.js} +10 -6
  189. package/dist/cli-bundle/chunks/chunk-XEKZCBCS.js.map +1 -0
  190. package/dist/cli-bundle/chunks/{chunk-KAG77BY3.js → chunk-XLSQ3QLT.js} +2 -2
  191. package/dist/cli-bundle/chunks/{chunk-E5FJNAZA.js → chunk-XNGMIVQY.js} +3 -3
  192. package/dist/cli-bundle/chunks/{chunk-TCD3R2PF.js → chunk-XZS4MV37.js} +39 -8
  193. package/dist/cli-bundle/chunks/chunk-XZS4MV37.js.map +1 -0
  194. package/dist/cli-bundle/chunks/{chunk-RWPSOIEE.js → chunk-YEFOCDIK.js} +7 -7
  195. package/dist/cli-bundle/chunks/{chunk-5SFCOO6B.js → chunk-YJAKN2N2.js} +277 -35
  196. package/dist/cli-bundle/chunks/chunk-YJAKN2N2.js.map +1 -0
  197. package/dist/cli-bundle/chunks/{chunk-2VBQ6ZXS.js → chunk-Z2HXAFFH.js} +27 -5
  198. package/dist/cli-bundle/chunks/chunk-Z2HXAFFH.js.map +1 -0
  199. package/dist/cli-bundle/chunks/{chunk-3LB74A67.js → chunk-Z55JACL2.js} +53 -7
  200. package/dist/cli-bundle/chunks/chunk-Z55JACL2.js.map +7 -0
  201. package/dist/cli-bundle/chunks/{claim-4DBF6RVG.js → claim-NHBIIBOW.js} +10 -10
  202. package/dist/cli-bundle/chunks/{claim-X2P4IB7J.js → claim-RNEBQCOO.js} +10 -10
  203. package/dist/cli-bundle/chunks/close-UNTFXVM3.js +13 -0
  204. package/dist/cli-bundle/chunks/{close-PTYFA45H.js → close-ZMXL2WDS.js} +8 -8
  205. package/dist/cli-bundle/chunks/{close-many-ERFO6LHR.js → close-many-CDPQGQUB.js} +37 -28
  206. package/dist/cli-bundle/chunks/close-many-CDPQGQUB.js.map +1 -0
  207. package/dist/cli-bundle/chunks/{close-many-7CGIDPTJ.js → close-many-IQV5C2SI.js} +36 -27
  208. package/dist/cli-bundle/chunks/close-many-IQV5C2SI.js.map +7 -0
  209. package/dist/cli-bundle/chunks/{comments-QKBYCWKD.js → comments-EFVBHWPT.js} +10 -10
  210. package/dist/cli-bundle/chunks/{comments-OONGABK5.js → comments-J5Q4IJPH.js} +10 -10
  211. package/dist/cli-bundle/chunks/{config-6FXCQKIF.js → config-72253M2O.js} +127 -12
  212. package/dist/cli-bundle/chunks/config-72253M2O.js.map +1 -0
  213. package/dist/cli-bundle/chunks/{config-U4RZ4CQB.js → config-VFYA6BMI.js} +128 -13
  214. package/dist/cli-bundle/chunks/config-VFYA6BMI.js.map +7 -0
  215. package/dist/cli-bundle/chunks/{context-FYYJGFWS.js → context-AVLO4IFH.js} +14 -14
  216. package/dist/cli-bundle/chunks/{context-FYYJGFWS.js.map → context-AVLO4IFH.js.map} +2 -2
  217. package/dist/cli-bundle/chunks/{context-YMJ3Z2HQ.js → context-WMSI2D65.js} +15 -15
  218. package/dist/cli-bundle/chunks/context-WMSI2D65.js.map +1 -0
  219. package/dist/cli-bundle/chunks/{contracts-RFSPGVVJ.js → contracts-D4BN3VSQ.js} +7 -5
  220. package/dist/cli-bundle/chunks/contracts-D4BN3VSQ.js.map +7 -0
  221. package/dist/cli-bundle/chunks/{contracts-QDB6OMLQ.js → contracts-RGPOBLPL.js} +8 -6
  222. package/dist/cli-bundle/chunks/contracts-RGPOBLPL.js.map +1 -0
  223. package/dist/cli-bundle/chunks/copy-H6TXHK7S.js +185 -0
  224. package/dist/cli-bundle/chunks/copy-H6TXHK7S.js.map +7 -0
  225. package/dist/cli-bundle/chunks/copy-WXE3OOLZ.js +182 -0
  226. package/dist/cli-bundle/chunks/copy-WXE3OOLZ.js.map +1 -0
  227. package/dist/cli-bundle/chunks/create-EZWAMUKR.js +27 -0
  228. package/dist/cli-bundle/chunks/{create-I5L4EYYZ.js → create-PUAIJEZ7.js} +13 -13
  229. package/dist/cli-bundle/chunks/{delete-7HPGI4GZ.js → delete-PKR2JHLH.js} +7 -7
  230. package/dist/cli-bundle/chunks/{delete-VXUPH5RS.js → delete-WBME6WG5.js} +7 -7
  231. package/dist/cli-bundle/chunks/{deps-JSRRWC3Z.js → deps-4BQEDV4L.js} +7 -7
  232. package/dist/cli-bundle/chunks/{deps-SCZIFK2Z.js → deps-KWHQRO75.js} +7 -7
  233. package/dist/cli-bundle/chunks/{docs-GJK6K4VP.js → docs-364GT3ZR.js} +9 -9
  234. package/dist/cli-bundle/chunks/{docs-WW4N3MBM.js → docs-SCNBUGSV.js} +9 -9
  235. package/dist/cli-bundle/chunks/{extension-VDY2U33M.js → extension-CRE7JM47.js} +8 -6
  236. package/dist/cli-bundle/chunks/{extension-J7IBMFTD.js → extension-KK2UPXJD.js} +8 -6
  237. package/dist/cli-bundle/chunks/{files-ISZJGILQ.js → files-3GESQAWL.js} +9 -9
  238. package/dist/cli-bundle/chunks/{files-WKOD326U.js → files-66EHM5ZR.js} +9 -9
  239. package/dist/cli-bundle/chunks/{gc-JDVJ6OQ2.js → gc-D5IWOKQH.js} +13 -5
  240. package/dist/cli-bundle/chunks/gc-D5IWOKQH.js.map +1 -0
  241. package/dist/cli-bundle/chunks/{gc-ULPVWMTN.js → gc-MOQDND5J.js} +12 -4
  242. package/dist/cli-bundle/chunks/gc-MOQDND5J.js.map +7 -0
  243. package/dist/cli-bundle/chunks/{get-RV37HT3G.js → get-7J2ZCBV5.js} +34 -12
  244. package/dist/cli-bundle/chunks/get-7J2ZCBV5.js.map +1 -0
  245. package/dist/cli-bundle/chunks/{get-WXU6WI5P.js → get-WXSLXV3K.js} +33 -11
  246. package/dist/cli-bundle/chunks/get-WXSLXV3K.js.map +7 -0
  247. package/dist/cli-bundle/chunks/{health-LOI2HHKB.js → health-B6AEM7BV.js} +21 -13
  248. package/dist/cli-bundle/chunks/health-B6AEM7BV.js.map +1 -0
  249. package/dist/cli-bundle/chunks/{health-6L6EH4WR.js → health-YMZGOMVX.js} +20 -12
  250. package/dist/cli-bundle/chunks/health-YMZGOMVX.js.map +7 -0
  251. package/dist/cli-bundle/chunks/{history-PKN67D5O.js → history-TJTO5GCR.js} +10 -10
  252. package/dist/cli-bundle/chunks/history-ZERISU2L.js +20 -0
  253. package/dist/cli-bundle/chunks/history-compact-CKNN6UKW.js +290 -0
  254. package/dist/cli-bundle/chunks/history-compact-CKNN6UKW.js.map +7 -0
  255. package/dist/cli-bundle/chunks/history-compact-N2Q7IR3T.js +287 -0
  256. package/dist/cli-bundle/chunks/history-compact-N2Q7IR3T.js.map +1 -0
  257. package/dist/cli-bundle/chunks/history-redact-GODBYT5A.js +19 -0
  258. package/dist/cli-bundle/chunks/{history-redact-V4FOJGS7.js → history-redact-JUXUOH54.js} +11 -11
  259. package/dist/cli-bundle/chunks/{history-repair-HIBCBIKK.js → history-repair-CCCPBNTF.js} +11 -11
  260. package/dist/cli-bundle/chunks/{history-repair-SDMHR7JT.js → history-repair-TDBBSRVK.js} +11 -11
  261. package/dist/cli-bundle/chunks/{init-P56QYWJF.js → init-6ZPKD3YN.js} +9 -8
  262. package/dist/cli-bundle/chunks/init-CBZHXBR3.js +17 -0
  263. package/dist/cli-bundle/chunks/{learnings-MIXSESLK.js → learnings-U7U2FNIO.js} +10 -10
  264. package/dist/cli-bundle/chunks/{learnings-GDFRG5J7.js → learnings-WYNTYQ5T.js} +10 -10
  265. package/dist/cli-bundle/chunks/list-7MTPPZHC.js +20 -0
  266. package/dist/cli-bundle/chunks/{list-FGOWQMSM.js → list-JGP7ODML.js} +10 -10
  267. package/dist/cli-bundle/chunks/{notes-5UK3GEH2.js → notes-P25YVTEG.js} +10 -10
  268. package/dist/cli-bundle/chunks/{notes-4XVSH2AZ.js → notes-QIF6A7XS.js} +10 -10
  269. package/dist/cli-bundle/chunks/{plan-DUMBV3QB.js → plan-RACB5PI6.js} +13 -13
  270. package/dist/cli-bundle/chunks/{plan-SLMODHWX.js → plan-SSBJFWXA.js} +13 -13
  271. package/dist/cli-bundle/chunks/{register-list-query-POCFZ5JW.js → register-list-query-5IXDPUZ6.js} +31 -25
  272. package/dist/cli-bundle/chunks/register-list-query-5IXDPUZ6.js.map +1 -0
  273. package/dist/cli-bundle/chunks/{register-list-query-WST76HSQ.js → register-list-query-GQAEIG4K.js} +30 -24
  274. package/dist/cli-bundle/chunks/register-list-query-GQAEIG4K.js.map +7 -0
  275. package/dist/cli-bundle/chunks/{register-mutation-N5GSUZJV.js → register-mutation-FAS4YG63.js} +72 -50
  276. package/dist/cli-bundle/chunks/register-mutation-FAS4YG63.js.map +1 -0
  277. package/dist/cli-bundle/chunks/{register-mutation-OA675SOU.js → register-mutation-YZCUILGO.js} +71 -49
  278. package/dist/cli-bundle/chunks/register-mutation-YZCUILGO.js.map +7 -0
  279. package/dist/cli-bundle/chunks/{register-operations-N3PMHXH5.js → register-operations-IBYWNJN5.js} +57 -34
  280. package/dist/cli-bundle/chunks/register-operations-IBYWNJN5.js.map +7 -0
  281. package/dist/cli-bundle/chunks/{register-operations-GNHBE5I3.js → register-operations-S2BOLUPF.js} +58 -35
  282. package/dist/cli-bundle/chunks/register-operations-S2BOLUPF.js.map +1 -0
  283. package/dist/cli-bundle/chunks/{register-setup-ZHJI2DI3.js → register-setup-ABA2JPWO.js} +20 -19
  284. package/dist/cli-bundle/chunks/{register-setup-ZHJI2DI3.js.map → register-setup-ABA2JPWO.js.map} +2 -2
  285. package/dist/cli-bundle/chunks/{register-setup-JIMPKJKV.js → register-setup-JRZ4UMWZ.js} +21 -20
  286. package/dist/cli-bundle/chunks/register-setup-JRZ4UMWZ.js.map +1 -0
  287. package/dist/cli-bundle/chunks/restore-3JRX27QW.js +17 -0
  288. package/dist/cli-bundle/chunks/{restore-PBL6T5TW.js → restore-K72ZNPEP.js} +11 -11
  289. package/dist/cli-bundle/chunks/{schema-2NOO6NGB.js → schema-3VKRDBLC.js} +76 -20
  290. package/dist/cli-bundle/chunks/schema-3VKRDBLC.js.map +7 -0
  291. package/dist/cli-bundle/chunks/{schema-EBI4NLUO.js → schema-UL4B2JX5.js} +77 -21
  292. package/dist/cli-bundle/chunks/schema-UL4B2JX5.js.map +1 -0
  293. package/dist/cli-bundle/chunks/{search-OA6JX27A.js → search-632WJ7GO.js} +516 -41
  294. package/dist/cli-bundle/chunks/search-632WJ7GO.js.map +7 -0
  295. package/dist/cli-bundle/chunks/{search-JPUQTVCY.js → search-EQDHSE4G.js} +510 -42
  296. package/dist/cli-bundle/chunks/search-EQDHSE4G.js.map +1 -0
  297. package/dist/cli-bundle/chunks/{stats-XYB6KTFG.js → stats-O4UTMJMC.js} +7 -7
  298. package/dist/cli-bundle/chunks/{stats-CV54BAWY.js → stats-WLJ3XBF5.js} +7 -7
  299. package/dist/cli-bundle/chunks/{telemetry-LMJ7PFUO.js → telemetry-EUVHFSQU.js} +4 -4
  300. package/dist/cli-bundle/chunks/{telemetry-NCMEPJNR.js → telemetry-NRVWX25E.js} +4 -4
  301. package/dist/cli-bundle/chunks/{test-WBROAJIE.js → test-GXUBQNUC.js} +14 -13
  302. package/dist/cli-bundle/chunks/test-XN7RJL5Z.js +32 -0
  303. package/dist/cli-bundle/chunks/{test-all-N6NSRDTV.js → test-all-UTFXC7S2.js} +16 -15
  304. package/dist/cli-bundle/chunks/{test-all-N6NSRDTV.js.map → test-all-UTFXC7S2.js.map} +1 -1
  305. package/dist/cli-bundle/chunks/{test-all-NTOZ7C3M.js → test-all-XM6OKI3L.js} +14 -13
  306. package/dist/cli-bundle/chunks/{test-all-NTOZ7C3M.js.map → test-all-XM6OKI3L.js.map} +1 -1
  307. package/dist/cli-bundle/chunks/{test-runs-V6A7LPWZ.js → test-runs-7FHCPEA3.js} +5 -5
  308. package/dist/cli-bundle/chunks/{test-runs-WMVTQU3Y.js → test-runs-IK6E2HNX.js} +5 -5
  309. package/dist/cli-bundle/chunks/update-LFBSEW3N.js +21 -0
  310. package/dist/cli-bundle/chunks/update-U4B4OMHZ.js +25 -0
  311. package/dist/cli-bundle/chunks/{update-many-KGGEYABR.js → update-many-5KD33MKY.js} +22 -22
  312. package/dist/cli-bundle/chunks/{update-many-EM6OXYGO.js → update-many-N3YTM7K4.js} +22 -22
  313. package/dist/cli-bundle/chunks/{upgrade-BLI7XBAJ.js → upgrade-5SRFLUNW.js} +8 -14
  314. package/dist/cli-bundle/chunks/upgrade-5SRFLUNW.js.map +7 -0
  315. package/dist/cli-bundle/chunks/{upgrade-LXPOQKFV.js → upgrade-FFXGO43H.js} +9 -15
  316. package/dist/cli-bundle/chunks/upgrade-FFXGO43H.js.map +1 -0
  317. package/dist/cli-bundle/chunks/{validate-L5J6A7YO.js → validate-CRWXZILW.js} +20 -19
  318. package/dist/cli-bundle/chunks/{validate-L5J6A7YO.js.map → validate-CRWXZILW.js.map} +1 -1
  319. package/dist/cli-bundle/chunks/{validate-AGOAUOVW.js → validate-T3LPWSZG.js} +18 -17
  320. package/dist/cli-bundle/chunks/{validate-AGOAUOVW.js.map → validate-T3LPWSZG.js.map} +1 -1
  321. package/dist/cli-bundle/main.js +160 -87
  322. package/dist/cli-bundle/main.js.map +3 -3
  323. package/dist/core/config/nested-settings.d.ts +8 -8
  324. package/dist/core/config/nested-settings.js +71 -7
  325. package/dist/core/config/nested-settings.js.map +1 -1
  326. package/dist/core/config/positional-value.js +4 -2
  327. package/dist/core/config/positional-value.js.map +1 -1
  328. package/dist/core/diagnostics/remediation.js +7 -2
  329. package/dist/core/diagnostics/remediation.js.map +1 -1
  330. package/dist/core/extensions/extension-types.d.ts +36 -0
  331. package/dist/core/extensions/extension-types.js +2 -2
  332. package/dist/core/extensions/extension-types.js.map +1 -1
  333. package/dist/core/extensions/loader.js +46 -5
  334. package/dist/core/extensions/loader.js.map +1 -1
  335. package/dist/core/fs/fs-utils.js +29 -4
  336. package/dist/core/fs/fs-utils.js.map +1 -1
  337. package/dist/core/history/drift-scan.d.ts +3 -4
  338. package/dist/core/history/drift-scan.js +71 -18
  339. package/dist/core/history/drift-scan.js.map +1 -1
  340. package/dist/core/item/id.js +4 -5
  341. package/dist/core/item/id.js.map +1 -1
  342. package/dist/core/item/item-format.js +7 -3
  343. package/dist/core/item/item-format.js.map +1 -1
  344. package/dist/core/item/toon-decode.d.ts +7 -0
  345. package/dist/core/item/toon-decode.js +11 -2
  346. package/dist/core/item/toon-decode.js.map +1 -1
  347. package/dist/core/item/type-registry.js +25 -7
  348. package/dist/core/item/type-registry.js.map +1 -1
  349. package/dist/core/packages/root.d.ts +10 -0
  350. package/dist/core/packages/root.js +24 -2
  351. package/dist/core/packages/root.js.map +1 -1
  352. package/dist/core/schema/runtime-schema.js +3 -6
  353. package/dist/core/schema/runtime-schema.js.map +1 -1
  354. package/dist/core/search/background-refresh.d.ts +0 -8
  355. package/dist/core/search/background-refresh.js +2 -9
  356. package/dist/core/search/background-refresh.js.map +1 -1
  357. package/dist/core/search/cache.js +5 -3
  358. package/dist/core/search/cache.js.map +1 -1
  359. package/dist/core/search/corpus.d.ts +6 -0
  360. package/dist/core/search/corpus.js +22 -9
  361. package/dist/core/search/corpus.js.map +1 -1
  362. package/dist/core/search/embedding-batches.js +10 -7
  363. package/dist/core/search/embedding-batches.js.map +1 -1
  364. package/dist/core/search/relevance.d.ts +29 -0
  365. package/dist/core/search/relevance.js +226 -0
  366. package/dist/core/search/relevance.js.map +1 -0
  367. package/dist/core/search/vector-stores.d.ts +3 -0
  368. package/dist/core/search/vector-stores.js +27 -16
  369. package/dist/core/search/vector-stores.js.map +1 -1
  370. package/dist/core/sentry/instrument.js +4 -17
  371. package/dist/core/sentry/instrument.js.map +1 -1
  372. package/dist/core/shared/constants.js +15 -2
  373. package/dist/core/shared/constants.js.map +1 -1
  374. package/dist/core/shared/errors.d.ts +6 -0
  375. package/dist/core/shared/errors.js +2 -2
  376. package/dist/core/shared/errors.js.map +1 -1
  377. package/dist/core/shared/primitives.d.ts +8 -0
  378. package/dist/core/shared/primitives.js +29 -2
  379. package/dist/core/shared/primitives.js.map +1 -1
  380. package/dist/core/shared/time.js +42 -6
  381. package/dist/core/shared/time.js.map +1 -1
  382. package/dist/core/store/paths.js +40 -8
  383. package/dist/core/store/paths.js.map +1 -1
  384. package/dist/core/store/settings-validator.d.ts +11 -0
  385. package/dist/core/store/settings-validator.js +14 -2
  386. package/dist/core/store/settings-validator.js.map +1 -1
  387. package/dist/core/store/settings.js +109 -12
  388. package/dist/core/store/settings.js.map +1 -1
  389. package/dist/core/telemetry/runtime.d.ts +1 -0
  390. package/dist/core/telemetry/runtime.js +86 -5
  391. package/dist/core/telemetry/runtime.js.map +1 -1
  392. package/dist/mcp/server.js +109 -19
  393. package/dist/mcp/server.js.map +1 -1
  394. package/dist/sdk/cli-contracts/commander-types.d.ts +1 -0
  395. package/dist/sdk/cli-contracts/commander-types.js +15 -4
  396. package/dist/sdk/cli-contracts/commander-types.js.map +1 -1
  397. package/dist/sdk/cli-contracts/enum-contracts.d.ts +2 -2
  398. package/dist/sdk/cli-contracts/enum-contracts.js +6 -2
  399. package/dist/sdk/cli-contracts/enum-contracts.js.map +1 -1
  400. package/dist/sdk/cli-contracts/tool-option-contracts.js +7 -2
  401. package/dist/sdk/cli-contracts/tool-option-contracts.js.map +1 -1
  402. package/dist/sdk/cli-contracts/tool-parameter-tables.js +32 -3
  403. package/dist/sdk/cli-contracts/tool-parameter-tables.js.map +1 -1
  404. package/dist/sdk/cli-contracts.d.ts +3 -1
  405. package/dist/sdk/cli-contracts.js +44 -12
  406. package/dist/sdk/cli-contracts.js.map +1 -1
  407. package/dist/sdk/index.d.ts +2 -2
  408. package/dist/sdk/index.js +3 -3
  409. package/dist/sdk/index.js.map +1 -1
  410. package/dist/sdk/testing.d.ts +51 -1
  411. package/dist/sdk/testing.js +93 -2
  412. package/dist/sdk/testing.js.map +1 -1
  413. package/dist/types.d.ts +14 -0
  414. package/dist/types.js +2 -2
  415. package/dist/types.js.map +1 -1
  416. package/docs/AGENT_GUIDE.md +3 -1
  417. package/docs/CLAUDE_CODE_PLUGIN.md +4 -4
  418. package/docs/CODEX_PLUGIN.md +1 -1
  419. package/docs/COMMANDS.md +14 -5
  420. package/docs/CONFIGURATION.md +28 -1
  421. package/docs/EXTENSIONS.md +17 -9
  422. package/docs/QUICKSTART.md +1 -1
  423. package/docs/RELEASING.md +17 -0
  424. package/docs/SDK.md +66 -0
  425. package/docs/TESTING.md +14 -0
  426. package/marketplace.json +1 -1
  427. package/package.json +2 -1
  428. package/packages/pm-governance-audit/README.md +14 -0
  429. package/packages/pm-governance-audit/extensions/governance-audit/index.js +39 -1
  430. package/packages/pm-governance-audit/extensions/governance-audit/index.ts +40 -2
  431. package/packages/pm-governance-audit/extensions/governance-audit/manifest.json +1 -1
  432. package/packages/pm-governance-audit/package.json +4 -2
  433. package/packages/pm-lifecycle-hooks/README.md +21 -0
  434. package/packages/pm-search-advanced/README.md +38 -0
  435. package/packages/pm-search-advanced/extensions/search-advanced/index.js +17 -0
  436. package/packages/pm-search-advanced/extensions/search-advanced/index.ts +17 -0
  437. package/packages/pm-search-advanced/extensions/search-advanced/runtime.js +216 -1
  438. package/packages/pm-search-advanced/extensions/search-advanced/runtime.ts +271 -2
  439. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  440. package/plugins/pm-claude/README.md +7 -7
  441. package/plugins/pm-claude/commands/pm-init.md +1 -1
  442. package/plugins/pm-codex/README.md +1 -1
  443. package/dist/cli-bundle/chunks/activity-CVXTCHYY.js +0 -16
  444. package/dist/cli-bundle/chunks/aggregate-GI7WSZPH.js.map +0 -1
  445. package/dist/cli-bundle/chunks/aggregate-VNAHUNNF.js.map +0 -7
  446. package/dist/cli-bundle/chunks/chunk-2VBQ6ZXS.js.map +0 -1
  447. package/dist/cli-bundle/chunks/chunk-3FI4SEFT.js.map +0 -7
  448. package/dist/cli-bundle/chunks/chunk-3LB74A67.js.map +0 -7
  449. package/dist/cli-bundle/chunks/chunk-4LL6TK5B.js.map +0 -1
  450. package/dist/cli-bundle/chunks/chunk-52MAOQ6J.js.map +0 -7
  451. package/dist/cli-bundle/chunks/chunk-5FDATVEZ.js.map +0 -1
  452. package/dist/cli-bundle/chunks/chunk-5SFCOO6B.js.map +0 -1
  453. package/dist/cli-bundle/chunks/chunk-AY43SBIN.js.map +0 -1
  454. package/dist/cli-bundle/chunks/chunk-ECCMVXGM.js.map +0 -7
  455. package/dist/cli-bundle/chunks/chunk-FRAUKRU2.js.map +0 -1
  456. package/dist/cli-bundle/chunks/chunk-GU2ZJ2VV.js.map +0 -7
  457. package/dist/cli-bundle/chunks/chunk-HZGUAH22.js.map +0 -1
  458. package/dist/cli-bundle/chunks/chunk-IOR7LGF4.js.map +0 -1
  459. package/dist/cli-bundle/chunks/chunk-KJE2FOS4.js.map +0 -7
  460. package/dist/cli-bundle/chunks/chunk-KWU6HG75.js.map +0 -1
  461. package/dist/cli-bundle/chunks/chunk-LB3RUL2N.js.map +0 -1
  462. package/dist/cli-bundle/chunks/chunk-PDDFYW4X.js.map +0 -7
  463. package/dist/cli-bundle/chunks/chunk-PROOHX4K.js.map +0 -7
  464. package/dist/cli-bundle/chunks/chunk-Q7SPNHLW.js.map +0 -7
  465. package/dist/cli-bundle/chunks/chunk-QO7EBBOM.js.map +0 -7
  466. package/dist/cli-bundle/chunks/chunk-SKJWX3QB.js.map +0 -7
  467. package/dist/cli-bundle/chunks/chunk-T3LC5LKB.js.map +0 -7
  468. package/dist/cli-bundle/chunks/chunk-TCD3R2PF.js.map +0 -1
  469. package/dist/cli-bundle/chunks/chunk-TPH5XEVD.js.map +0 -1
  470. package/dist/cli-bundle/chunks/chunk-U5SXYXSY.js.map +0 -7
  471. package/dist/cli-bundle/chunks/chunk-W7XABV4H.js.map +0 -1
  472. package/dist/cli-bundle/chunks/chunk-WOPXVEZP.js.map +0 -1
  473. package/dist/cli-bundle/chunks/close-3HDWDA3L.js +0 -13
  474. package/dist/cli-bundle/chunks/close-many-7CGIDPTJ.js.map +0 -7
  475. package/dist/cli-bundle/chunks/close-many-ERFO6LHR.js.map +0 -1
  476. package/dist/cli-bundle/chunks/config-6FXCQKIF.js.map +0 -1
  477. package/dist/cli-bundle/chunks/config-U4RZ4CQB.js.map +0 -7
  478. package/dist/cli-bundle/chunks/context-YMJ3Z2HQ.js.map +0 -1
  479. package/dist/cli-bundle/chunks/contracts-QDB6OMLQ.js.map +0 -1
  480. package/dist/cli-bundle/chunks/contracts-RFSPGVVJ.js.map +0 -7
  481. package/dist/cli-bundle/chunks/create-JTZNCTQC.js +0 -27
  482. package/dist/cli-bundle/chunks/gc-JDVJ6OQ2.js.map +0 -1
  483. package/dist/cli-bundle/chunks/gc-ULPVWMTN.js.map +0 -7
  484. package/dist/cli-bundle/chunks/get-RV37HT3G.js.map +0 -1
  485. package/dist/cli-bundle/chunks/get-WXU6WI5P.js.map +0 -7
  486. package/dist/cli-bundle/chunks/health-6L6EH4WR.js.map +0 -7
  487. package/dist/cli-bundle/chunks/health-LOI2HHKB.js.map +0 -1
  488. package/dist/cli-bundle/chunks/history-2BA3T5AE.js +0 -20
  489. package/dist/cli-bundle/chunks/history-redact-JBZNXHGR.js +0 -19
  490. package/dist/cli-bundle/chunks/init-HIVSNX3O.js +0 -16
  491. package/dist/cli-bundle/chunks/list-MUSQNMTD.js +0 -20
  492. package/dist/cli-bundle/chunks/register-list-query-POCFZ5JW.js.map +0 -1
  493. package/dist/cli-bundle/chunks/register-list-query-WST76HSQ.js.map +0 -7
  494. package/dist/cli-bundle/chunks/register-mutation-N5GSUZJV.js.map +0 -1
  495. package/dist/cli-bundle/chunks/register-mutation-OA675SOU.js.map +0 -7
  496. package/dist/cli-bundle/chunks/register-operations-GNHBE5I3.js.map +0 -1
  497. package/dist/cli-bundle/chunks/register-operations-N3PMHXH5.js.map +0 -7
  498. package/dist/cli-bundle/chunks/register-setup-JIMPKJKV.js.map +0 -1
  499. package/dist/cli-bundle/chunks/restore-D4RGNX33.js +0 -17
  500. package/dist/cli-bundle/chunks/schema-2NOO6NGB.js.map +0 -7
  501. package/dist/cli-bundle/chunks/schema-EBI4NLUO.js.map +0 -1
  502. package/dist/cli-bundle/chunks/search-JPUQTVCY.js.map +0 -1
  503. package/dist/cli-bundle/chunks/search-OA6JX27A.js.map +0 -7
  504. package/dist/cli-bundle/chunks/test-MXX3E5JL.js +0 -31
  505. package/dist/cli-bundle/chunks/update-OSV3NAQB.js +0 -25
  506. package/dist/cli-bundle/chunks/update-YRXSUGYQ.js +0 -21
  507. package/dist/cli-bundle/chunks/upgrade-BLI7XBAJ.js.map +0 -7
  508. package/dist/cli-bundle/chunks/upgrade-LXPOQKFV.js.map +0 -1
  509. /package/dist/cli-bundle/chunks/{activity-CVXTCHYY.js.map → activity-A3QKFSSF.js.map} +0 -0
  510. /package/dist/cli-bundle/chunks/{activity-JM6DTDND.js.map → activity-Q7XMIZIH.js.map} +0 -0
  511. /package/dist/cli-bundle/chunks/{append-WMKRXKCE.js.map → append-3RFOU7P5.js.map} +0 -0
  512. /package/dist/cli-bundle/chunks/{append-7H5N64R2.js.map → append-OM74OJVT.js.map} +0 -0
  513. /package/dist/cli-bundle/chunks/{chunk-XTGLRY2Y.js.map → chunk-2HMD3JM2.js.map} +0 -0
  514. /package/dist/cli-bundle/chunks/{chunk-PRJCELV4.js.map → chunk-2YPVCD7T.js.map} +0 -0
  515. /package/dist/cli-bundle/chunks/{chunk-2HVRUSQA.js.map → chunk-4WYBLB6J.js.map} +0 -0
  516. /package/dist/cli-bundle/chunks/{chunk-R6UFP2GE.js.map → chunk-5NVJA7IW.js.map} +0 -0
  517. /package/dist/cli-bundle/chunks/{chunk-XSJCLN2R.js.map → chunk-AEMKH5WQ.js.map} +0 -0
  518. /package/dist/cli-bundle/chunks/{chunk-6ER6DXH5.js.map → chunk-AXBUHLW7.js.map} +0 -0
  519. /package/dist/cli-bundle/chunks/{chunk-BQHUILZS.js.map → chunk-BFJPMUF5.js.map} +0 -0
  520. /package/dist/cli-bundle/chunks/{chunk-I6BNFU5X.js.map → chunk-BKQMJXWY.js.map} +0 -0
  521. /package/dist/cli-bundle/chunks/{chunk-XLTD2HN3.js.map → chunk-CBJXWXI5.js.map} +0 -0
  522. /package/dist/cli-bundle/chunks/{chunk-3BWOVLTH.js.map → chunk-EPWT7BEA.js.map} +0 -0
  523. /package/dist/cli-bundle/chunks/{chunk-NUZ5HKR4.js.map → chunk-F33VC5EX.js.map} +0 -0
  524. /package/dist/cli-bundle/chunks/{chunk-WKY2IBOQ.js.map → chunk-FGRJZVXD.js.map} +0 -0
  525. /package/dist/cli-bundle/chunks/{chunk-77GFDHGF.js.map → chunk-FO2TYSQZ.js.map} +0 -0
  526. /package/dist/cli-bundle/chunks/{chunk-GXSUPCBV.js.map → chunk-HOA3GMB6.js.map} +0 -0
  527. /package/dist/cli-bundle/chunks/{chunk-OVQCEJPG.js.map → chunk-HP35AVFS.js.map} +0 -0
  528. /package/dist/cli-bundle/chunks/{chunk-KJ33AOCY.js.map → chunk-J4DKAGTM.js.map} +0 -0
  529. /package/dist/cli-bundle/chunks/{chunk-ME2YH6FN.js.map → chunk-JS47EKLP.js.map} +0 -0
  530. /package/dist/cli-bundle/chunks/{chunk-I2HSTRJF.js.map → chunk-KN4WSESY.js.map} +0 -0
  531. /package/dist/cli-bundle/chunks/{chunk-RZN6VURO.js.map → chunk-KP4KIUQT.js.map} +0 -0
  532. /package/dist/cli-bundle/chunks/{chunk-MITFDD35.js.map → chunk-KVXIQDJG.js.map} +0 -0
  533. /package/dist/cli-bundle/chunks/{chunk-IJGCZSIQ.js.map → chunk-L3LYL3ID.js.map} +0 -0
  534. /package/dist/cli-bundle/chunks/{chunk-UM2GBHS4.js.map → chunk-MSH23UWO.js.map} +0 -0
  535. /package/dist/cli-bundle/chunks/{chunk-LCM63IXU.js.map → chunk-N4SQZ7L3.js.map} +0 -0
  536. /package/dist/cli-bundle/chunks/{chunk-3VAM3NNM.js.map → chunk-NDSMKB2I.js.map} +0 -0
  537. /package/dist/cli-bundle/chunks/{chunk-6P6GGMOG.js.map → chunk-NGEEXR2R.js.map} +0 -0
  538. /package/dist/cli-bundle/chunks/{chunk-PO3GSVFV.js.map → chunk-NLVCMVC7.js.map} +0 -0
  539. /package/dist/cli-bundle/chunks/{chunk-N7ACFE26.js.map → chunk-NUKHZZNM.js.map} +0 -0
  540. /package/dist/cli-bundle/chunks/{chunk-GGYWB3Y2.js.map → chunk-ODN53S6H.js.map} +0 -0
  541. /package/dist/cli-bundle/chunks/{chunk-23YFZ3IG.js.map → chunk-OTY2YEH5.js.map} +0 -0
  542. /package/dist/cli-bundle/chunks/{chunk-2RSPZI5H.js.map → chunk-OVSSE2JP.js.map} +0 -0
  543. /package/dist/cli-bundle/chunks/{chunk-2VVCGBNV.js.map → chunk-QF4OPBAG.js.map} +0 -0
  544. /package/dist/cli-bundle/chunks/{chunk-WSMOSYRD.js.map → chunk-QQPZYP73.js.map} +0 -0
  545. /package/dist/cli-bundle/chunks/{chunk-OZ7NSQHL.js.map → chunk-QWNUDGFQ.js.map} +0 -0
  546. /package/dist/cli-bundle/chunks/{chunk-GCOQW437.js.map → chunk-SDLEYY6A.js.map} +0 -0
  547. /package/dist/cli-bundle/chunks/{chunk-PIU6RSL3.js.map → chunk-TBLBEOEX.js.map} +0 -0
  548. /package/dist/cli-bundle/chunks/{chunk-YL2DJGYS.js.map → chunk-UEXNNF3K.js.map} +0 -0
  549. /package/dist/cli-bundle/chunks/{chunk-UBOPJT3S.js.map → chunk-UMMJAJB2.js.map} +0 -0
  550. /package/dist/cli-bundle/chunks/{chunk-KAG77BY3.js.map → chunk-XLSQ3QLT.js.map} +0 -0
  551. /package/dist/cli-bundle/chunks/{chunk-E5FJNAZA.js.map → chunk-XNGMIVQY.js.map} +0 -0
  552. /package/dist/cli-bundle/chunks/{chunk-RWPSOIEE.js.map → chunk-YEFOCDIK.js.map} +0 -0
  553. /package/dist/cli-bundle/chunks/{claim-4DBF6RVG.js.map → claim-NHBIIBOW.js.map} +0 -0
  554. /package/dist/cli-bundle/chunks/{claim-X2P4IB7J.js.map → claim-RNEBQCOO.js.map} +0 -0
  555. /package/dist/cli-bundle/chunks/{close-3HDWDA3L.js.map → close-UNTFXVM3.js.map} +0 -0
  556. /package/dist/cli-bundle/chunks/{close-PTYFA45H.js.map → close-ZMXL2WDS.js.map} +0 -0
  557. /package/dist/cli-bundle/chunks/{comments-QKBYCWKD.js.map → comments-EFVBHWPT.js.map} +0 -0
  558. /package/dist/cli-bundle/chunks/{comments-OONGABK5.js.map → comments-J5Q4IJPH.js.map} +0 -0
  559. /package/dist/cli-bundle/chunks/{create-JTZNCTQC.js.map → create-EZWAMUKR.js.map} +0 -0
  560. /package/dist/cli-bundle/chunks/{create-I5L4EYYZ.js.map → create-PUAIJEZ7.js.map} +0 -0
  561. /package/dist/cli-bundle/chunks/{delete-7HPGI4GZ.js.map → delete-PKR2JHLH.js.map} +0 -0
  562. /package/dist/cli-bundle/chunks/{delete-VXUPH5RS.js.map → delete-WBME6WG5.js.map} +0 -0
  563. /package/dist/cli-bundle/chunks/{deps-JSRRWC3Z.js.map → deps-4BQEDV4L.js.map} +0 -0
  564. /package/dist/cli-bundle/chunks/{deps-SCZIFK2Z.js.map → deps-KWHQRO75.js.map} +0 -0
  565. /package/dist/cli-bundle/chunks/{docs-GJK6K4VP.js.map → docs-364GT3ZR.js.map} +0 -0
  566. /package/dist/cli-bundle/chunks/{docs-WW4N3MBM.js.map → docs-SCNBUGSV.js.map} +0 -0
  567. /package/dist/cli-bundle/chunks/{extension-VDY2U33M.js.map → extension-CRE7JM47.js.map} +0 -0
  568. /package/dist/cli-bundle/chunks/{extension-J7IBMFTD.js.map → extension-KK2UPXJD.js.map} +0 -0
  569. /package/dist/cli-bundle/chunks/{files-ISZJGILQ.js.map → files-3GESQAWL.js.map} +0 -0
  570. /package/dist/cli-bundle/chunks/{files-WKOD326U.js.map → files-66EHM5ZR.js.map} +0 -0
  571. /package/dist/cli-bundle/chunks/{history-PKN67D5O.js.map → history-TJTO5GCR.js.map} +0 -0
  572. /package/dist/cli-bundle/chunks/{history-2BA3T5AE.js.map → history-ZERISU2L.js.map} +0 -0
  573. /package/dist/cli-bundle/chunks/{history-redact-JBZNXHGR.js.map → history-redact-GODBYT5A.js.map} +0 -0
  574. /package/dist/cli-bundle/chunks/{history-redact-V4FOJGS7.js.map → history-redact-JUXUOH54.js.map} +0 -0
  575. /package/dist/cli-bundle/chunks/{history-repair-HIBCBIKK.js.map → history-repair-CCCPBNTF.js.map} +0 -0
  576. /package/dist/cli-bundle/chunks/{history-repair-SDMHR7JT.js.map → history-repair-TDBBSRVK.js.map} +0 -0
  577. /package/dist/cli-bundle/chunks/{init-P56QYWJF.js.map → init-6ZPKD3YN.js.map} +0 -0
  578. /package/dist/cli-bundle/chunks/{init-HIVSNX3O.js.map → init-CBZHXBR3.js.map} +0 -0
  579. /package/dist/cli-bundle/chunks/{learnings-MIXSESLK.js.map → learnings-U7U2FNIO.js.map} +0 -0
  580. /package/dist/cli-bundle/chunks/{learnings-GDFRG5J7.js.map → learnings-WYNTYQ5T.js.map} +0 -0
  581. /package/dist/cli-bundle/chunks/{list-MUSQNMTD.js.map → list-7MTPPZHC.js.map} +0 -0
  582. /package/dist/cli-bundle/chunks/{list-FGOWQMSM.js.map → list-JGP7ODML.js.map} +0 -0
  583. /package/dist/cli-bundle/chunks/{notes-5UK3GEH2.js.map → notes-P25YVTEG.js.map} +0 -0
  584. /package/dist/cli-bundle/chunks/{notes-4XVSH2AZ.js.map → notes-QIF6A7XS.js.map} +0 -0
  585. /package/dist/cli-bundle/chunks/{plan-DUMBV3QB.js.map → plan-RACB5PI6.js.map} +0 -0
  586. /package/dist/cli-bundle/chunks/{plan-SLMODHWX.js.map → plan-SSBJFWXA.js.map} +0 -0
  587. /package/dist/cli-bundle/chunks/{restore-D4RGNX33.js.map → restore-3JRX27QW.js.map} +0 -0
  588. /package/dist/cli-bundle/chunks/{restore-PBL6T5TW.js.map → restore-K72ZNPEP.js.map} +0 -0
  589. /package/dist/cli-bundle/chunks/{stats-XYB6KTFG.js.map → stats-O4UTMJMC.js.map} +0 -0
  590. /package/dist/cli-bundle/chunks/{stats-CV54BAWY.js.map → stats-WLJ3XBF5.js.map} +0 -0
  591. /package/dist/cli-bundle/chunks/{telemetry-LMJ7PFUO.js.map → telemetry-EUVHFSQU.js.map} +0 -0
  592. /package/dist/cli-bundle/chunks/{telemetry-NCMEPJNR.js.map → telemetry-NRVWX25E.js.map} +0 -0
  593. /package/dist/cli-bundle/chunks/{test-WBROAJIE.js.map → test-GXUBQNUC.js.map} +0 -0
  594. /package/dist/cli-bundle/chunks/{test-MXX3E5JL.js.map → test-XN7RJL5Z.js.map} +0 -0
  595. /package/dist/cli-bundle/chunks/{test-runs-V6A7LPWZ.js.map → test-runs-7FHCPEA3.js.map} +0 -0
  596. /package/dist/cli-bundle/chunks/{test-runs-WMVTQU3Y.js.map → test-runs-IK6E2HNX.js.map} +0 -0
  597. /package/dist/cli-bundle/chunks/{update-YRXSUGYQ.js.map → update-LFBSEW3N.js.map} +0 -0
  598. /package/dist/cli-bundle/chunks/{update-OSV3NAQB.js.map → update-U4B4OMHZ.js.map} +0 -0
  599. /package/dist/cli-bundle/chunks/{update-many-KGGEYABR.js.map → update-many-5KD33MKY.js.map} +0 -0
  600. /package/dist/cli-bundle/chunks/{update-many-EM6OXYGO.js.map → update-many-N3YTM7K4.js.map} +0 -0
@@ -11,40 +11,42 @@ import {
11
11
  resolveEmbeddingProviders,
12
12
  resolveSettingsWithSemanticRuntimeDefaults,
13
13
  resolveVectorStores
14
- } from "./chunk-3FI4SEFT.js";
14
+ } from "./chunk-3E3MDBTB.js";
15
15
  import {
16
16
  collectRuntimeFilterValues,
17
17
  matchesRuntimeFilters,
18
18
  parseStatusFilterCsv
19
- } from "./chunk-I6BNFU5X.js";
19
+ } from "./chunk-BKQMJXWY.js";
20
20
  import {
21
21
  parseLimit,
22
22
  parsePriority,
23
23
  parseType
24
- } from "./chunk-WKY2IBOQ.js";
24
+ } from "./chunk-FGRJZVXD.js";
25
25
  import "./chunk-EAOG77HM.js";
26
26
  import {
27
27
  collectRegisteredItemFieldNames,
28
28
  listAllDocumentCandidatesCached,
29
29
  listAllFrontMatter,
30
30
  toItemRecord
31
- } from "./chunk-XTGLRY2Y.js";
32
- import "./chunk-T3LC5LKB.js";
31
+ } from "./chunk-2HMD3JM2.js";
32
+ import "./chunk-K62SNVVE.js";
33
33
  import {
34
34
  isTerminalStatus,
35
35
  parseItemDocument
36
- } from "./chunk-AO442XLN.js";
36
+ } from "./chunk-M7UBTVFT.js";
37
37
  import {
38
38
  resolveItemTypeRegistry
39
- } from "./chunk-KJE2FOS4.js";
39
+ } from "./chunk-2BYKYPWY.js";
40
40
  import {
41
41
  compareTimestampStrings,
42
42
  nowIso,
43
43
  resolveIsoOrRelative
44
- } from "./chunk-QO7EBBOM.js";
44
+ } from "./chunk-QFVASU44.js";
45
45
  import {
46
46
  EXIT_CODE,
47
47
  PmCliError,
48
+ coerceNumberInRange,
49
+ coercePositiveInteger,
48
50
  getActiveExtensionRegistrations,
49
51
  getItemPath,
50
52
  getSettingsPath,
@@ -56,8 +58,9 @@ import {
56
58
  resolveRuntimeFieldRegistry,
57
59
  resolveRuntimeStatusRegistry,
58
60
  runActiveOnReadHooks,
61
+ toNonEmptyString,
59
62
  toNonEmptyStringOrUndefined
60
- } from "./chunk-U5SXYXSY.js";
63
+ } from "./chunk-3TXWDGPU.js";
61
64
 
62
65
  // dist/cli/commands/search.js
63
66
  import fs from "node:fs/promises";
@@ -116,11 +119,217 @@ function tokenizeAlphaNumeric(value) {
116
119
  return normalizeLowercaseWhitespace(value).split(/[^a-z0-9]+/).filter((token) => token.length > 0);
117
120
  }
118
121
 
122
+ // dist/core/search/relevance.js
123
+ !(function() {
124
+ try {
125
+ var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
126
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "62bb2377-76f4-515c-b4ce-9b046f112b79");
127
+ } catch (e2) {
128
+ }
129
+ })();
130
+ var DEFAULT_QUERY_EXPANSION_MAX_QUERIES = 4;
131
+ var DEFAULT_RERANK_TOP_K = 20;
132
+ var MAX_RERANK_TOP_K = 200;
133
+ var QUERY_EXPANSION_STOP_WORDS = /* @__PURE__ */ new Set([
134
+ "a",
135
+ "an",
136
+ "and",
137
+ "for",
138
+ "from",
139
+ "in",
140
+ "into",
141
+ "of",
142
+ "on",
143
+ "or",
144
+ "the",
145
+ "to",
146
+ "with"
147
+ ]);
148
+ function dedupeQueries(values, limit) {
149
+ const deduped = [];
150
+ const seen = /* @__PURE__ */ new Set();
151
+ for (const entry of values) {
152
+ const normalized = entry.trim().replaceAll(/\s+/g, " ");
153
+ if (normalized.length === 0) {
154
+ continue;
155
+ }
156
+ const dedupeKey = normalized.toLowerCase();
157
+ if (seen.has(dedupeKey)) {
158
+ continue;
159
+ }
160
+ seen.add(dedupeKey);
161
+ deduped.push(normalized);
162
+ if (deduped.length >= limit) {
163
+ break;
164
+ }
165
+ }
166
+ return deduped;
167
+ }
168
+ function singularizeSimple(token) {
169
+ const normalizedToken = token.toLowerCase();
170
+ if (normalizedToken.length > 4 && normalizedToken.endsWith("ies")) {
171
+ return `${normalizedToken.slice(0, -3)}y`;
172
+ }
173
+ if (normalizedToken.length > 4 && (normalizedToken.endsWith("ches") || normalizedToken.endsWith("shes") || normalizedToken.endsWith("xes") || normalizedToken.endsWith("zes") || normalizedToken.endsWith("sses"))) {
174
+ return normalizedToken.slice(0, -2);
175
+ }
176
+ if (normalizedToken.length > 3 && normalizedToken.endsWith("s") && !normalizedToken.endsWith("ss") && !normalizedToken.endsWith("us") && !normalizedToken.endsWith("is") && !normalizedToken.endsWith("as")) {
177
+ return normalizedToken.slice(0, -1);
178
+ }
179
+ return normalizedToken;
180
+ }
181
+ function pluralizeSimple(token) {
182
+ const normalizedToken = token.toLowerCase();
183
+ if (normalizedToken.length > 2 && (!normalizedToken.endsWith("s") || normalizedToken.endsWith("ss"))) {
184
+ if (normalizedToken.endsWith("y") && !/[aeiou]y$/u.test(normalizedToken)) {
185
+ return `${normalizedToken.slice(0, -1)}ies`;
186
+ }
187
+ if (normalizedToken.endsWith("ch") || normalizedToken.endsWith("sh") || normalizedToken.endsWith("x") || normalizedToken.endsWith("z") || normalizedToken.endsWith("ss")) {
188
+ return `${normalizedToken}es`;
189
+ }
190
+ return `${normalizedToken}s`;
191
+ }
192
+ return normalizedToken;
193
+ }
194
+ function buildDeterministicQueryExpansions(query, maxQueries = DEFAULT_QUERY_EXPANSION_MAX_QUERIES) {
195
+ const normalizedQuery = query.trim().replaceAll(/\s+/g, " ");
196
+ if (normalizedQuery.length === 0) {
197
+ return [];
198
+ }
199
+ const tokens = tokenizeAlphaNumeric(normalizedQuery);
200
+ if (tokens.length === 0) {
201
+ return [normalizedQuery];
202
+ }
203
+ const contentTokens = tokens.filter((token) => !QUERY_EXPANSION_STOP_WORDS.has(token.toLowerCase()));
204
+ const singularized = tokens.map((token) => singularizeSimple(token));
205
+ const pluralized = contentTokens.map((token) => pluralizeSimple(token));
206
+ return dedupeQueries([
207
+ normalizedQuery,
208
+ tokens.join(" "),
209
+ contentTokens.join(" "),
210
+ singularized.join(" "),
211
+ pluralized.join(" ")
212
+ ], Math.max(1, maxQueries));
213
+ }
214
+ function normalizeQueryExpansionOutput(raw) {
215
+ const rawQueries = Array.isArray(raw) ? raw : raw?.queries;
216
+ if (!Array.isArray(rawQueries)) {
217
+ return [];
218
+ }
219
+ return dedupeQueries(rawQueries.filter((entry) => typeof entry === "string"), DEFAULT_QUERY_EXPANSION_MAX_QUERIES);
220
+ }
221
+ function mergeQueryExpansions(base, extra, maxQueries) {
222
+ return dedupeQueries([...base, ...extra], Math.max(1, maxQueries));
223
+ }
224
+ function resolveQueryExpansionConfig(settings, fallbackProviderName) {
225
+ const search = settings.search;
226
+ const queryExpansion = search?.query_expansion;
227
+ const configuredProvider = toNonEmptyString(queryExpansion?.provider);
228
+ return {
229
+ enabled: queryExpansion?.enabled === true,
230
+ provider: configuredProvider ?? fallbackProviderName,
231
+ max_queries: DEFAULT_QUERY_EXPANSION_MAX_QUERIES
232
+ };
233
+ }
234
+ function resolveRerankConfig(settings, fallbackModel) {
235
+ const search = settings.search;
236
+ const rerank = search?.rerank;
237
+ const configuredModel = toNonEmptyString(rerank?.model);
238
+ const configuredTopK = coercePositiveInteger(rerank?.top_k);
239
+ const normalizedTopK = configuredTopK ?? DEFAULT_RERANK_TOP_K;
240
+ return {
241
+ enabled: rerank?.enabled === true,
242
+ model: configuredModel ?? fallbackModel,
243
+ top_k: Math.min(MAX_RERANK_TOP_K, normalizedTopK)
244
+ };
245
+ }
246
+ function normalizeRerankOutput(raw) {
247
+ const rawHits = Array.isArray(raw) ? raw : raw?.hits;
248
+ if (!Array.isArray(rawHits)) {
249
+ return [];
250
+ }
251
+ const bestById = /* @__PURE__ */ new Map();
252
+ for (const entry of rawHits) {
253
+ if (typeof entry !== "object" || entry === null) {
254
+ continue;
255
+ }
256
+ const id = toNonEmptyString(entry.id);
257
+ const score = entry.score;
258
+ if (!id || typeof score !== "number" || !Number.isFinite(score)) {
259
+ continue;
260
+ }
261
+ const existing = bestById.get(id);
262
+ if (existing === void 0 || score > existing) {
263
+ bestById.set(id, score);
264
+ }
265
+ }
266
+ const normalized = [...bestById.entries()].map(([id, score]) => ({ id, score }));
267
+ normalized.sort((left, right) => {
268
+ if (left.score !== right.score) {
269
+ return right.score - left.score;
270
+ }
271
+ return left.id.localeCompare(right.id);
272
+ });
273
+ return normalized;
274
+ }
275
+ function dotProduct(left, right) {
276
+ const size = left.length;
277
+ let result = 0;
278
+ for (let index = 0; index < size; index += 1) {
279
+ result += left[index] * right[index];
280
+ }
281
+ return result;
282
+ }
283
+ function l2Norm(vector) {
284
+ let sumSquares = 0;
285
+ for (let index = 0; index < vector.length; index += 1) {
286
+ sumSquares += vector[index] * vector[index];
287
+ }
288
+ return Math.sqrt(sumSquares);
289
+ }
290
+ function cosineSimilarityWithKnownLeftNorm(left, right, leftNorm) {
291
+ if (!left || !right || left.length === 0 || right.length === 0 || left.length !== right.length) {
292
+ return 0;
293
+ }
294
+ const numerator = dotProduct(left, right);
295
+ const rightNorm = l2Norm(right);
296
+ const denominator = leftNorm * rightNorm;
297
+ if (!Number.isFinite(numerator) || !Number.isFinite(leftNorm) || !Number.isFinite(rightNorm) || !Number.isFinite(denominator) || denominator === 0) {
298
+ return 0;
299
+ }
300
+ return Math.max(-1, Math.min(1, numerator / denominator));
301
+ }
302
+ async function rerankCandidatesWithEmbeddings(provider, model, query, candidates, timeoutMs) {
303
+ if (candidates.length === 0) {
304
+ return /* @__PURE__ */ new Map();
305
+ }
306
+ const effectiveModel = toNonEmptyString(model) ?? provider.model;
307
+ const rerankProvider = effectiveModel === provider.model ? provider : { ...provider, model: effectiveModel };
308
+ const payload = [query.trim(), ...candidates.map((entry) => entry.text)];
309
+ const vectors = await executeEmbeddingRequest(rerankProvider, payload, timeoutMs ? { timeout_ms: timeoutMs } : {});
310
+ const queryVector = vectors[0];
311
+ if (!queryVector) {
312
+ return /* @__PURE__ */ new Map();
313
+ }
314
+ const queryNorm = l2Norm(queryVector);
315
+ const scoreById = /* @__PURE__ */ new Map();
316
+ for (let index = 0; index < candidates.length; index += 1) {
317
+ const candidate = candidates[index];
318
+ const candidateVector = vectors[index + 1];
319
+ if (!candidateVector) {
320
+ continue;
321
+ }
322
+ const similarity = cosineSimilarityWithKnownLeftNorm(queryVector, candidateVector, queryNorm);
323
+ scoreById.set(candidate.id, Math.max(0, Math.min(1, (similarity + 1) / 2)));
324
+ }
325
+ return scoreById;
326
+ }
327
+
119
328
  // dist/cli/commands/search.js
120
329
  !(function() {
121
330
  try {
122
331
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
123
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1091bd00-cd43-5ff5-bc98-41259fc28722");
332
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "11e9f6b5-58d0-5f17-a9c5-6d34b5ce4379");
124
333
  } catch (e2) {
125
334
  }
126
335
  })();
@@ -196,6 +405,53 @@ var LONG_QUERY_TITLE_EXACT_BONUS = 120;
196
405
  var LONG_QUERY_PHRASE_MULTIPLIER = 6;
197
406
  var IMPLICIT_HYBRID_EMBEDDING_TIMEOUT_MS = 8e3;
198
407
  var IMPLICIT_HYBRID_VECTOR_TIMEOUT_MS = 8e3;
408
+ function isNonEmptyRecord(value) {
409
+ return typeof value === "object" && value !== null && !Array.isArray(value) && Object.keys(value).length > 0;
410
+ }
411
+ function buildCompactSearchFilterSummary(params) {
412
+ const { mode, options, includeLinked, titleExact, phraseExact, scoreThreshold, hybridSemanticWeight, runtimeFieldFilters } = params;
413
+ const filters = {};
414
+ if (options.status !== void 0) {
415
+ filters.status = options.status;
416
+ }
417
+ if (options.type !== void 0) {
418
+ filters.type = options.type;
419
+ }
420
+ if (options.tag !== void 0) {
421
+ filters.tag = options.tag;
422
+ }
423
+ if (options.priority !== void 0) {
424
+ filters.priority = options.priority;
425
+ }
426
+ if (options.deadlineBefore !== void 0) {
427
+ filters.deadline_before = options.deadlineBefore;
428
+ }
429
+ if (options.deadlineAfter !== void 0) {
430
+ filters.deadline_after = options.deadlineAfter;
431
+ }
432
+ if (includeLinked) {
433
+ filters.include_linked = true;
434
+ }
435
+ if (titleExact) {
436
+ filters.title_exact = true;
437
+ }
438
+ if (phraseExact) {
439
+ filters.phrase_exact = true;
440
+ }
441
+ if (scoreThreshold > 0) {
442
+ filters.score_threshold = scoreThreshold;
443
+ }
444
+ if (mode === "hybrid" && options.semanticWeight !== void 0) {
445
+ filters.hybrid_semantic_weight = hybridSemanticWeight;
446
+ }
447
+ if (options.limit !== void 0) {
448
+ filters.limit = options.limit;
449
+ }
450
+ if (isNonEmptyRecord(runtimeFieldFilters)) {
451
+ filters.runtime_filters = runtimeFieldFilters;
452
+ }
453
+ return filters;
454
+ }
199
455
  function collectErrorCauseCodes(error) {
200
456
  const codes = [];
201
457
  let current = error;
@@ -272,6 +528,9 @@ function parseTitleExact(raw) {
272
528
  function parsePhraseExact(raw) {
273
529
  return raw === true;
274
530
  }
531
+ function parseSemanticWeightOverride(raw) {
532
+ return coerceNumberInRange(raw, 0, 1) ?? void 0;
533
+ }
275
534
  function normalizeSearchPhrase(value) {
276
535
  return value.toLowerCase().replace(/\s+/g, " ").trim();
277
536
  }
@@ -673,7 +932,28 @@ function resolveSearchTuning(settings) {
673
932
  linked_content_weight: resolveWeight(tuning.linked_content_weight, defaults.linked_content_weight)
674
933
  };
675
934
  }
676
- function emptySearchResult(query, mode, options, includeLinked, scoreThreshold, hybridSemanticWeight, projection, warnings) {
935
+ function emptySearchResult(query, mode, options, includeLinked, scoreThreshold, hybridSemanticWeight, queryExpansion, rerank, projection, warnings, runtimeFieldFilters) {
936
+ const compactSummaryMode = projection.mode === "compact" && options.compact === true;
937
+ if (compactSummaryMode) {
938
+ const compactFilters = buildCompactSearchFilterSummary({
939
+ mode,
940
+ options,
941
+ includeLinked,
942
+ titleExact: options.titleExact === true,
943
+ phraseExact: options.phraseExact === true,
944
+ scoreThreshold,
945
+ hybridSemanticWeight,
946
+ runtimeFieldFilters
947
+ });
948
+ return {
949
+ query: query.trim(),
950
+ mode,
951
+ items: [],
952
+ count: 0,
953
+ filters: compactFilters,
954
+ ...warnings.length > 0 ? { warnings } : {}
955
+ };
956
+ }
677
957
  const projectionFields = projection.mode === "full" ? null : [...projection.fields];
678
958
  return {
679
959
  query: query.trim(),
@@ -693,6 +973,11 @@ function emptySearchResult(query, mode, options, includeLinked, scoreThreshold,
693
973
  phrase_exact: options.phraseExact === true,
694
974
  score_threshold: scoreThreshold,
695
975
  hybrid_semantic_weight: mode === "hybrid" ? hybridSemanticWeight : null,
976
+ query_expansion_enabled: queryExpansion.enabled,
977
+ query_expansion_provider: queryExpansion.provider,
978
+ rerank_enabled: rerank.enabled,
979
+ rerank_model: rerank.model,
980
+ rerank_top_k: rerank.top_k,
696
981
  limit: options.limit ?? null
697
982
  },
698
983
  projection: {
@@ -716,25 +1001,40 @@ function requireSemanticDependencies(requestedMode, providerResolution, vectorRe
716
1001
  };
717
1002
  }
718
1003
  var toOptionalNonEmptyString = toNonEmptyStringOrUndefined;
719
- function resolveExtensionSearchProvider(settings) {
1004
+ function resolveExtensionSearchProviderByName(providerName) {
720
1005
  const registrations = getActiveExtensionRegistrations();
721
- const providerName = toOptionalNonEmptyString(settings.search?.provider);
722
1006
  const resolved = resolveRegisteredSearchProvider(registrations, providerName);
723
1007
  if (!resolved) {
724
1008
  return null;
725
1009
  }
726
1010
  const runtimeDefinition = resolved.runtime_definition ?? resolved.definition;
727
1011
  const query = runtimeDefinition.query;
728
- if (typeof query !== "function") {
729
- return null;
730
- }
1012
+ const queryExpansion = runtimeDefinition.queryExpansion ?? runtimeDefinition.query_expansion;
1013
+ const rerank = runtimeDefinition.rerank;
731
1014
  const registeredName = toOptionalNonEmptyString(runtimeDefinition.name) ?? toOptionalNonEmptyString(resolved.definition.name) ?? providerName;
732
1015
  if (!registeredName) {
733
1016
  return null;
734
1017
  }
735
- return {
1018
+ const hooks = {
736
1019
  providerName: registeredName,
737
- query
1020
+ ...typeof query === "function" ? { query } : {},
1021
+ ...typeof queryExpansion === "function" ? { queryExpansion } : {},
1022
+ ...typeof rerank === "function" ? { rerank } : {}
1023
+ };
1024
+ if (!hooks.query && !hooks.queryExpansion && !hooks.rerank) {
1025
+ return null;
1026
+ }
1027
+ return hooks;
1028
+ }
1029
+ function resolveExtensionSearchProvider(settings) {
1030
+ const providerName = toOptionalNonEmptyString(settings.search?.provider);
1031
+ const resolved = resolveExtensionSearchProviderByName(providerName);
1032
+ if (!resolved?.query) {
1033
+ return null;
1034
+ }
1035
+ return {
1036
+ providerName: resolved.providerName,
1037
+ query: resolved.query
738
1038
  };
739
1039
  }
740
1040
  function resolveExtensionVectorAdapter(settings) {
@@ -836,39 +1136,172 @@ function combineHybridHits(filteredById, semanticScores, keywordHits, hybridSema
836
1136
  };
837
1137
  }).filter((entry) => entry !== null);
838
1138
  }
1139
+ function mergeVectorHitsById(vectorHitGroups) {
1140
+ const bestById = /* @__PURE__ */ new Map();
1141
+ for (const group of vectorHitGroups) {
1142
+ for (const hit of group) {
1143
+ const existing = bestById.get(hit.id);
1144
+ if (!existing || hit.score > existing.score) {
1145
+ bestById.set(hit.id, hit);
1146
+ }
1147
+ }
1148
+ }
1149
+ const merged = [...bestById.values()];
1150
+ merged.sort((left, right) => {
1151
+ if (left.score !== right.score) {
1152
+ return right.score - left.score;
1153
+ }
1154
+ return left.id.localeCompare(right.id);
1155
+ });
1156
+ return merged;
1157
+ }
1158
+ function buildRerankCorpus(document) {
1159
+ const metadata = document.metadata;
1160
+ const tags = Array.isArray(metadata?.tags) ? metadata.tags.join(" ") : "";
1161
+ return [
1162
+ metadata?.title,
1163
+ metadata?.description,
1164
+ metadata?.type,
1165
+ metadata?.status,
1166
+ tags,
1167
+ document.body
1168
+ ].map((entry) => typeof entry === "string" ? entry.trim() : "").filter((entry) => entry.length > 0).join("\n");
1169
+ }
839
1170
  async function computeSemanticOrHybridHits(context) {
840
1171
  const semanticLimit = context.limit ?? context.maxResults;
841
1172
  const embeddingOptions = context.embeddingTimeoutMs !== void 0 ? { timeout_ms: context.embeddingTimeoutMs } : {};
842
1173
  const vectorQueryOptions = context.vectorQueryTimeoutMs !== void 0 ? { timeout_ms: context.vectorQueryTimeoutMs } : {};
843
- const queryVectors = await executeEmbeddingRequest(context.provider, context.query.trim(), embeddingOptions);
844
- const semanticVector = queryVectors[0];
845
- let vectorHits;
846
- if (context.extensionVectorAdapter?.query) {
847
- try {
848
- vectorHits = await Promise.resolve(context.extensionVectorAdapter.query({
849
- vector: semanticVector,
850
- limit: semanticLimit,
851
- settings: context.settings
852
- }));
853
- } catch (error) {
854
- if (!context.vectorStore) {
855
- throw new PmCliError(`Extension vector adapter query failed and no built-in fallback store is configured (${error instanceof Error ? error.message : String(error)})`, EXIT_CODE.GENERIC_FAILURE);
1174
+ const queryTrimmed = context.query.trim();
1175
+ const baseExpandedQueries = context.queryExpansion.enabled ? buildDeterministicQueryExpansions(queryTrimmed, context.queryExpansion.max_queries) : [queryTrimmed];
1176
+ let expandedQueries = baseExpandedQueries.length > 0 ? baseExpandedQueries : [queryTrimmed];
1177
+ if (context.queryExpansion.enabled) {
1178
+ if (context.queryExpansionExtension?.expand) {
1179
+ try {
1180
+ const rawExpansion = await Promise.resolve(context.queryExpansionExtension.expand({
1181
+ query: queryTrimmed,
1182
+ mode: context.requestedMode,
1183
+ settings: context.settings
1184
+ }));
1185
+ const extensionExpansion = normalizeQueryExpansionOutput(rawExpansion);
1186
+ expandedQueries = mergeQueryExpansions(expandedQueries, extensionExpansion, context.queryExpansion.max_queries);
1187
+ } catch {
1188
+ context.warnings.push(`search_query_expansion_provider_failed:${context.queryExpansionExtension.providerName}:using_builtin`);
856
1189
  }
857
- vectorHits = await executeVectorQuery(context.vectorStore, semanticVector, semanticLimit, vectorQueryOptions);
1190
+ } else if (context.queryExpansion.provider && context.queryExpansion.provider !== "openai" && context.queryExpansion.provider !== "ollama") {
1191
+ context.warnings.push(`search_query_expansion_provider_unavailable:${context.queryExpansion.provider}:using_builtin`);
858
1192
  }
859
- } else if (context.vectorStore) {
860
- vectorHits = await executeVectorQuery(context.vectorStore, semanticVector, semanticLimit, vectorQueryOptions);
861
- } else {
862
- throw new PmCliError("Semantic search requires either a configured vector store or an extension vector adapter query handler", EXIT_CODE.USAGE);
863
1193
  }
1194
+ const queryVectors = await executeEmbeddingRequest(context.provider, expandedQueries, embeddingOptions);
1195
+ const executeVectorQueryWithFallback = async (semanticVector) => {
1196
+ if (context.extensionVectorAdapter?.query) {
1197
+ try {
1198
+ return await Promise.resolve(context.extensionVectorAdapter.query({
1199
+ vector: semanticVector,
1200
+ limit: semanticLimit,
1201
+ settings: context.settings
1202
+ }));
1203
+ } catch (error) {
1204
+ if (!context.vectorStore) {
1205
+ throw new PmCliError(`Extension vector adapter query failed and no built-in fallback store is configured (${error instanceof Error ? error.message : String(error)})`, EXIT_CODE.GENERIC_FAILURE);
1206
+ }
1207
+ return await executeVectorQuery(context.vectorStore, semanticVector, semanticLimit, vectorQueryOptions);
1208
+ }
1209
+ }
1210
+ if (context.vectorStore) {
1211
+ return await executeVectorQuery(context.vectorStore, semanticVector, semanticLimit, vectorQueryOptions);
1212
+ }
1213
+ throw new PmCliError("Semantic search requires either a configured vector store or an extension vector adapter query handler", EXIT_CODE.USAGE);
1214
+ };
1215
+ const queryVectorGroups = await Promise.all(queryVectors.map(async (semanticVector) => await executeVectorQueryWithFallback(semanticVector)));
1216
+ const vectorHits = mergeVectorHitsById(queryVectorGroups);
864
1217
  const filteredById = new Map(context.filteredDocuments.map((document) => [document.metadata.id, document]));
865
1218
  const { semanticHits, semanticScores } = buildSemanticHits(vectorHits, filteredById);
866
1219
  const vectorMatchCount = semanticScores.size;
867
1220
  if (context.requestedMode === "semantic") {
868
1221
  return { hits: semanticHits, vectorMatchCount };
869
1222
  }
1223
+ let hybridHits = combineHybridHits(filteredById, semanticScores, context.keywordHits, context.hybridSemanticWeight);
1224
+ if (context.rerank.enabled && hybridHits.length > 1) {
1225
+ const sortedForCandidates = [...hybridHits].sort((left, right) => {
1226
+ if (left.score !== right.score) {
1227
+ return right.score - left.score;
1228
+ }
1229
+ return left.item.id.localeCompare(right.item.id);
1230
+ });
1231
+ const candidateHits = sortedForCandidates.slice(0, context.rerank.top_k);
1232
+ const candidateContexts = candidateHits.map((hit) => {
1233
+ const document = filteredById.get(hit.item.id);
1234
+ if (!document) {
1235
+ return null;
1236
+ }
1237
+ return { hit, text: buildRerankCorpus(document) };
1238
+ }).filter((entry) => entry !== null);
1239
+ const rerankCandidates = candidateContexts.map((entry) => ({
1240
+ id: entry.hit.item.id,
1241
+ text: entry.text
1242
+ }));
1243
+ let rerankScores = null;
1244
+ if (context.rerankExtension?.rerank) {
1245
+ try {
1246
+ const rawRerank = await Promise.resolve(context.rerankExtension.rerank({
1247
+ query: queryTrimmed,
1248
+ mode: "hybrid",
1249
+ model: context.rerank.model,
1250
+ top_k: context.rerank.top_k,
1251
+ settings: context.settings,
1252
+ candidates: candidateContexts.map((entry) => ({
1253
+ id: entry.hit.item.id,
1254
+ text: entry.text,
1255
+ score: entry.hit.score
1256
+ }))
1257
+ }));
1258
+ const normalizedRerank = normalizeRerankOutput(rawRerank);
1259
+ if (normalizedRerank.length > 0) {
1260
+ rerankScores = new Map(normalizedRerank.map((entry) => [entry.id, entry.score]));
1261
+ } else {
1262
+ context.warnings.push(`search_rerank_provider_invalid_response:${context.rerankExtension.providerName}:using_builtin`);
1263
+ }
1264
+ } catch {
1265
+ context.warnings.push(`search_rerank_provider_failed:${context.rerankExtension.providerName}:using_builtin`);
1266
+ }
1267
+ }
1268
+ if (!rerankScores) {
1269
+ try {
1270
+ rerankScores = await rerankCandidatesWithEmbeddings(context.provider, context.rerank.model, queryTrimmed, rerankCandidates, context.embeddingTimeoutMs);
1271
+ } catch {
1272
+ context.warnings.push("search_rerank_failed:using_hybrid_scores");
1273
+ }
1274
+ }
1275
+ if (rerankScores && rerankScores.size > 0) {
1276
+ const rerankedIds = new Set(rerankScores.keys());
1277
+ hybridHits = hybridHits.map((hit) => {
1278
+ const rerankScore = rerankScores.get(hit.item.id);
1279
+ if (rerankScore === void 0) {
1280
+ return hit;
1281
+ }
1282
+ const matchedFields = new Set(hit.matched_fields);
1283
+ matchedFields.add("rerank");
1284
+ return {
1285
+ ...hit,
1286
+ score: rerankScore,
1287
+ matched_fields: [...matchedFields].sort((left, right) => left.localeCompare(right))
1288
+ };
1289
+ });
1290
+ hybridHits.sort((left, right) => {
1291
+ const leftWasReranked = rerankedIds.has(left.item.id);
1292
+ const rightWasReranked = rerankedIds.has(right.item.id);
1293
+ if (leftWasReranked !== rightWasReranked) {
1294
+ return leftWasReranked ? -1 : 1;
1295
+ }
1296
+ if (left.score !== right.score) {
1297
+ return right.score - left.score;
1298
+ }
1299
+ return left.item.id.localeCompare(right.item.id);
1300
+ });
1301
+ }
1302
+ }
870
1303
  return {
871
- hits: combineHybridHits(filteredById, semanticScores, context.keywordHits, context.hybridSemanticWeight),
1304
+ hits: hybridHits,
872
1305
  vectorMatchCount
873
1306
  };
874
1307
  }
@@ -998,18 +1431,29 @@ async function runSearch(query, options, global2) {
998
1431
  const typeRegistry = resolveItemTypeRegistry(settings, getActiveExtensionRegistrations());
999
1432
  const maxResults = resolveSearchMaxResults(settings);
1000
1433
  const scoreThreshold = resolveSearchScoreThreshold(settings);
1001
- const hybridSemanticWeight = resolveHybridSemanticWeight(settings);
1434
+ const semanticWeightProvided = options.semanticWeight !== void 0;
1435
+ const semanticWeightOverride = parseSemanticWeightOverride(options.semanticWeight);
1436
+ const hybridSemanticWeight = semanticWeightOverride ?? resolveHybridSemanticWeight(settings);
1002
1437
  const tuning = resolveSearchTuning(settings);
1003
1438
  const providerResolution = resolveEmbeddingProviders(settings);
1004
1439
  const vectorResolution = resolveVectorStores(settings);
1005
1440
  const extensionSearchProvider = resolveExtensionSearchProvider(settings);
1006
1441
  const extensionVectorAdapter = resolveExtensionVectorAdapter(settings);
1442
+ const queryExpansion = resolveQueryExpansionConfig(settings, providerResolution.active?.name ?? null);
1443
+ const rerank = resolveRerankConfig(settings, providerResolution.active?.model ?? toOptionalNonEmptyString(settings.search?.embedding_model) ?? "text-embedding-3-small");
1444
+ const queryExpansionProvider = resolveExtensionSearchProviderByName(queryExpansion.provider ?? void 0);
1445
+ const queryExpansionExtension = queryExpansionProvider?.queryExpansion ? { providerName: queryExpansionProvider.providerName, expand: queryExpansionProvider.queryExpansion } : null;
1446
+ const rerankProvider = resolveExtensionSearchProviderByName(toOptionalNonEmptyString(settings.search?.provider));
1447
+ const rerankExtension = rerankProvider?.rerank ? { providerName: rerankProvider.providerName, rerank: rerankProvider.rerank } : null;
1007
1448
  let effectiveMode = parseMode(options.mode, {
1008
1449
  hasProvider: providerResolution.active !== null || extensionSearchProvider !== null,
1009
1450
  hasVectorStore: vectorResolution.active !== null || extensionVectorAdapter !== null
1010
1451
  });
1011
1452
  const loadedDocuments = await loadDocuments(pmRoot, settings.item_format ?? "toon", typeRegistry.type_to_folder, settings.schema);
1012
1453
  const warnings = loadedDocuments.warnings;
1454
+ if (effectiveMode === "hybrid" && semanticWeightProvided && semanticWeightOverride === void 0) {
1455
+ warnings.push("search_hybrid_semantic_weight_override_invalid:using_settings_default");
1456
+ }
1013
1457
  const allDocuments = loadedDocuments.documents;
1014
1458
  const metadataFilteredDocuments = applyFilters(allDocuments, options, typeRegistry, runtimeFieldFilters, statusFilter);
1015
1459
  const filteredDocuments = applyExactQueryFilters(metadataFilteredDocuments, normalizedQuery, {
@@ -1017,7 +1461,7 @@ async function runSearch(query, options, global2) {
1017
1461
  phraseExact
1018
1462
  });
1019
1463
  if (effectiveMode === "keyword" && (filteredDocuments.length === 0 || limit === 0)) {
1020
- return emptySearchResult(query, effectiveMode, options, includeLinked, scoreThreshold, hybridSemanticWeight, projection, warnings);
1464
+ return emptySearchResult(query, effectiveMode, options, includeLinked, scoreThreshold, hybridSemanticWeight, queryExpansion, rerank, projection, warnings, runtimeFieldFilters);
1021
1465
  }
1022
1466
  const projectRoot = process.cwd();
1023
1467
  const globalRoot = resolveGlobalPmRoot(projectRoot);
@@ -1041,7 +1485,7 @@ async function runSearch(query, options, global2) {
1041
1485
  requireSemanticDependencies(effectiveMode, providerResolution, vectorResolution, extensionVectorAdapter !== null);
1042
1486
  }
1043
1487
  if (filteredDocuments.length === 0 || limit === 0) {
1044
- return emptySearchResult(query, effectiveMode, options, includeLinked, scoreThreshold, hybridSemanticWeight, projection, warnings);
1488
+ return emptySearchResult(query, effectiveMode, options, includeLinked, scoreThreshold, hybridSemanticWeight, queryExpansion, rerank, projection, warnings, runtimeFieldFilters);
1045
1489
  }
1046
1490
  const filteredById = new Map(filteredDocuments.map((document) => [document.metadata.id, document]));
1047
1491
  const canUseBuiltInSemantic = providerResolution.active !== null && (vectorResolution.active !== null || extensionVectorAdapter !== null);
@@ -1076,6 +1520,11 @@ async function runSearch(query, options, global2) {
1076
1520
  provider,
1077
1521
  vectorStore,
1078
1522
  extensionVectorAdapter,
1523
+ queryExpansion,
1524
+ queryExpansionExtension,
1525
+ rerank,
1526
+ rerankExtension,
1527
+ warnings,
1079
1528
  settings,
1080
1529
  ...implicitHybridMode ? {
1081
1530
  embeddingTimeoutMs: IMPLICIT_HYBRID_EMBEDDING_TIMEOUT_MS,
@@ -1103,6 +1552,27 @@ async function runSearch(query, options, global2) {
1103
1552
  const limited = resolvedLimit === void 0 ? sorted : sorted.slice(0, resolvedLimit);
1104
1553
  const projectedItems = projectSearchHits(limited, projection);
1105
1554
  const projectionFields = projection.mode === "full" ? null : [...projection.fields];
1555
+ const compactSummaryMode = projection.mode === "compact" && options.compact === true;
1556
+ if (compactSummaryMode) {
1557
+ const compactFilters = buildCompactSearchFilterSummary({
1558
+ mode: effectiveMode,
1559
+ options,
1560
+ includeLinked,
1561
+ titleExact,
1562
+ phraseExact,
1563
+ scoreThreshold,
1564
+ hybridSemanticWeight,
1565
+ runtimeFieldFilters
1566
+ });
1567
+ return {
1568
+ query: query.trim(),
1569
+ mode: effectiveMode,
1570
+ items: projectedItems,
1571
+ count: projectedItems.length,
1572
+ filters: compactFilters,
1573
+ ...warnings.length > 0 ? { warnings } : {}
1574
+ };
1575
+ }
1106
1576
  return {
1107
1577
  query: query.trim(),
1108
1578
  mode: effectiveMode,
@@ -1121,6 +1591,11 @@ async function runSearch(query, options, global2) {
1121
1591
  phrase_exact: phraseExact,
1122
1592
  score_threshold: scoreThreshold,
1123
1593
  hybrid_semantic_weight: effectiveMode === "hybrid" ? hybridSemanticWeight : null,
1594
+ query_expansion_enabled: queryExpansion.enabled,
1595
+ query_expansion_provider: queryExpansion.provider,
1596
+ rerank_enabled: rerank.enabled,
1597
+ rerank_model: rerank.model,
1598
+ rerank_top_k: rerank.top_k,
1124
1599
  limit: options.limit ?? null,
1125
1600
  runtime_filters: runtimeFieldFilters
1126
1601
  },
@@ -1141,4 +1616,4 @@ export {
1141
1616
  resolveSearchTuning,
1142
1617
  runSearch
1143
1618
  };
1144
- //# sourceMappingURL=search-OA6JX27A.js.map
1619
+ //# sourceMappingURL=search-632WJ7GO.js.map