@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
@@ -1,11 +1,11 @@
1
1
  // dist/core/fs/fs-utils.js
2
- import fs from "node:fs/promises";
2
+ import * as fs from "node:fs/promises";
3
3
  import path from "node:path";
4
4
  import crypto from "node:crypto";
5
5
  !(function() {
6
6
  try {
7
7
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
8
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "24293159-379b-5416-a184-9ed7ef02ca92");
8
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8b4dd1a6-7645-5c6e-afd3-f4c23fe19182");
9
9
  } catch (e2) {
10
10
  }
11
11
  })();
@@ -35,7 +35,26 @@ async function writeFileAtomic(targetPath, contents) {
35
35
  await ensureDir(dirPath);
36
36
  const tempPath = path.join(dirPath, `.${path.basename(targetPath)}.${process.pid}.${Date.now()}.${crypto.randomBytes(4).toString("hex")}.tmp`);
37
37
  await fs.writeFile(tempPath, contents, "utf8");
38
- await fs.rename(tempPath, targetPath);
38
+ try {
39
+ await fs.rename(tempPath, targetPath);
40
+ } catch (error) {
41
+ if (isErrno(error, "EXDEV")) {
42
+ try {
43
+ await fs.copyFile(tempPath, targetPath);
44
+ } finally {
45
+ try {
46
+ await fs.unlink(tempPath);
47
+ } catch {
48
+ }
49
+ }
50
+ return;
51
+ }
52
+ try {
53
+ await fs.unlink(tempPath);
54
+ } catch {
55
+ }
56
+ throw error;
57
+ }
39
58
  }
40
59
  async function appendLineAtomic(targetPath, line) {
41
60
  const dirPath = path.dirname(targetPath);
@@ -85,7 +104,7 @@ import { fileURLToPath } from "node:url";
85
104
  !(function() {
86
105
  try {
87
106
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
88
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "20b7827b-6f96-518c-8df3-b699d41dec88");
107
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "71eb0333-ba65-5a8a-aafe-a5ec10f24a8a");
89
108
  } catch (e2) {
90
109
  }
91
110
  })();
@@ -120,12 +139,24 @@ function resolvePmPackageRootFromModule(metaUrl, fallbackRelativeSegments = [])
120
139
  }
121
140
  return path3.resolve(path3.dirname(modulePath), ...fallbackRelativeSegments);
122
141
  }
142
+ function resolvePmCliVersion(metaUrl, fallbackRelativeSegments = []) {
143
+ try {
144
+ const packageJsonPath = path3.join(resolvePmPackageRootFromModule(metaUrl, fallbackRelativeSegments), "package.json");
145
+ if (!fs2.existsSync(packageJsonPath)) {
146
+ return void 0;
147
+ }
148
+ const parsed = JSON.parse(fs2.readFileSync(packageJsonPath, "utf8"));
149
+ return typeof parsed.version === "string" && parsed.version.trim().length > 0 ? parsed.version : void 0;
150
+ } catch {
151
+ return void 0;
152
+ }
153
+ }
123
154
 
124
155
  // dist/core/extensions/extension-types.js
125
156
  !(function() {
126
157
  try {
127
158
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
128
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "80b2d723-e806-55be-a67f-bdb9fa8ad3ed");
159
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "93175dd3-3dce-5323-91cf-446f2ea6e7d8");
129
160
  } catch (e2) {
130
161
  }
131
162
  })();
@@ -211,7 +242,7 @@ function createDefaultExtensionGovernancePolicy() {
211
242
  !(function() {
212
243
  try {
213
244
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
214
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "027bbaac-2c77-535b-b51f-e1a51a9fccdb");
245
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "359fb424-9ab2-53d9-8aec-7fd76c9a074b");
215
246
  } catch (e2) {
216
247
  }
217
248
  })();
@@ -363,6 +394,7 @@ var GOVERNANCE_PRESET_DEFAULTS = {
363
394
  ownership_enforcement: "none",
364
395
  create_mode_default: "progressive",
365
396
  close_validation_default: "off",
397
+ require_close_reason: true,
366
398
  parent_reference: "warn",
367
399
  metadata_profile: "core",
368
400
  force_required_for_stale_lock: false
@@ -371,6 +403,7 @@ var GOVERNANCE_PRESET_DEFAULTS = {
371
403
  ownership_enforcement: "warn",
372
404
  create_mode_default: "progressive",
373
405
  close_validation_default: "warn",
406
+ require_close_reason: true,
374
407
  parent_reference: "warn",
375
408
  metadata_profile: "core",
376
409
  force_required_for_stale_lock: true
@@ -379,6 +412,7 @@ var GOVERNANCE_PRESET_DEFAULTS = {
379
412
  ownership_enforcement: "strict",
380
413
  create_mode_default: "strict",
381
414
  close_validation_default: "strict",
415
+ require_close_reason: true,
382
416
  parent_reference: "strict_error",
383
417
  metadata_profile: "strict",
384
418
  force_required_for_stale_lock: true
@@ -485,7 +519,16 @@ var SETTINGS_DEFAULTS = {
485
519
  embedding_timeout_ms: 3e4,
486
520
  scanner_max_batch_retries: 3,
487
521
  provider: "",
488
- mutation_refresh_policy: "semantic_configured"
522
+ mutation_refresh_policy: "semantic_configured",
523
+ query_expansion: {
524
+ enabled: false,
525
+ provider: ""
526
+ },
527
+ rerank: {
528
+ enabled: false,
529
+ model: "",
530
+ top_k: 20
531
+ }
489
532
  },
490
533
  providers: {
491
534
  openai: {
@@ -515,6 +558,7 @@ var SETTINGS_DEFAULTS = {
515
558
  },
516
559
  vector_store: {
517
560
  adapter: "",
561
+ collection_name: "pm_items",
518
562
  qdrant: {
519
563
  url: "",
520
564
  api_key: ""
@@ -588,7 +632,7 @@ import path4 from "node:path";
588
632
  !(function() {
589
633
  try {
590
634
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
591
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "66d39566-a27a-5e26-af05-925ddc8ec97f");
635
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "0827d0fd-560e-5f98-961d-350989b068a6");
592
636
  } catch (e2) {
593
637
  }
594
638
  })();
@@ -628,7 +672,14 @@ function resolvePmRoot(cwd, cliPath) {
628
672
  const envPath = process.env.PM_PATH;
629
673
  const explicitPath = cliPath?.trim() || envPath?.trim();
630
674
  if (explicitPath) {
631
- return path4.resolve(cwd, explicitPath);
675
+ const resolved = path4.resolve(cwd, explicitPath);
676
+ if (!pathExists2(getSettingsPath(resolved))) {
677
+ const nestedRoot = path4.join(resolved, PM_DIRNAME);
678
+ if (pathExists2(getSettingsPath(nestedRoot))) {
679
+ return nestedRoot;
680
+ }
681
+ }
682
+ return resolved;
632
683
  }
633
684
  const discoveredRoot = discoverPmRootFromAncestors(cwd);
634
685
  if (discoveredRoot) {
@@ -646,12 +697,34 @@ function getSettingsPath(pmRoot) {
646
697
  return path4.join(pmRoot, SETTINGS_FILENAME);
647
698
  }
648
699
  function deriveDefaultTypeFolder(type) {
649
- const normalized = type.trim().toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
700
+ const normalized = toSlugToken(type);
650
701
  if (normalized.length === 0) {
651
702
  return "items";
652
703
  }
653
704
  return normalized.endsWith("s") ? normalized : `${normalized}s`;
654
705
  }
706
+ function toSlugToken(value) {
707
+ const trimmed = value.trim().toLowerCase();
708
+ let slug = "";
709
+ let pendingDash = false;
710
+ for (const character of trimmed) {
711
+ const code = character.charCodeAt(0);
712
+ const isAlpha = code >= 97 && code <= 122;
713
+ const isDigit = code >= 48 && code <= 57;
714
+ if (isAlpha || isDigit) {
715
+ if (pendingDash && slug.length > 0) {
716
+ slug += "-";
717
+ }
718
+ slug += character;
719
+ pendingDash = false;
720
+ continue;
721
+ }
722
+ if (slug.length > 0) {
723
+ pendingDash = true;
724
+ }
725
+ }
726
+ return slug;
727
+ }
655
728
  function getTypeDirPath(pmRoot, type, typeToFolder = TYPE_TO_FOLDER) {
656
729
  const folder = typeToFolder[type] ?? deriveDefaultTypeFolder(type);
657
730
  return path4.join(pmRoot, folder);
@@ -704,7 +777,7 @@ function getTestRunResultPath(pmRoot, runId) {
704
777
  !(function() {
705
778
  try {
706
779
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
707
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "f8eed493-93bf-5473-9c1a-90a791333b5e");
780
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "24387234-eb4b-5237-907e-92bec249d2e5");
708
781
  } catch (e2) {
709
782
  }
710
783
  })();
@@ -732,6 +805,24 @@ function toErrorMessage(error) {
732
805
  }
733
806
  return String(error);
734
807
  }
808
+ function coerceFiniteNumber(value) {
809
+ const parsed = typeof value === "number" ? value : typeof value === "string" && value.trim().length > 0 ? Number(value.trim()) : Number.NaN;
810
+ return Number.isFinite(parsed) ? parsed : null;
811
+ }
812
+ function coercePositiveInteger(value) {
813
+ const parsed = coerceFiniteNumber(value);
814
+ if (parsed === null || parsed <= 0 || !Number.isInteger(parsed)) {
815
+ return null;
816
+ }
817
+ return parsed;
818
+ }
819
+ function coerceNumberInRange(value, min, max) {
820
+ const parsed = coerceFiniteNumber(value);
821
+ if (parsed === null || parsed < min || parsed > max) {
822
+ return null;
823
+ }
824
+ return parsed;
825
+ }
735
826
  function asRecordOrNull(value) {
736
827
  if (typeof value !== "object" || value === null || Array.isArray(value)) {
737
828
  return null;
@@ -1861,7 +1952,7 @@ function evaluateExtensionPolicyForRegistration(policy, extension, surface, meth
1861
1952
  !(function() {
1862
1953
  try {
1863
1954
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
1864
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c1d2f70f-a61e-585b-bfee-5401b41545f8");
1955
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "54365547-c7be-5bd4-be2e-ca02f27aa365");
1865
1956
  } catch (e2) {
1866
1957
  }
1867
1958
  })();
@@ -2092,7 +2183,7 @@ async function listExtensionDirectories(extensionsRoot) {
2092
2183
  }
2093
2184
  }
2094
2185
  function summarizeCandidate(candidate) {
2095
- return {
2186
+ const summary = {
2096
2187
  layer: candidate.layer,
2097
2188
  directory: candidate.directory,
2098
2189
  manifest_path: candidate.manifest_path,
@@ -2114,6 +2205,41 @@ function summarizeCandidate(candidate) {
2114
2205
  commands: [...candidate.manifest.activation.commands ?? []]
2115
2206
  } : void 0
2116
2207
  };
2208
+ if (candidate.source_package) {
2209
+ summary.source_package = candidate.source_package;
2210
+ }
2211
+ return summary;
2212
+ }
2213
+ function normalizeManagedSourcePackage(value) {
2214
+ return typeof value === "string" && value.trim().length > 0 ? value.trim() : void 0;
2215
+ }
2216
+ async function readManagedExtensionSourcePackages(extensionsRoot) {
2217
+ const packages = /* @__PURE__ */ new Map();
2218
+ try {
2219
+ const parsed = JSON.parse(await fs3.readFile(path5.join(extensionsRoot, ".managed-extensions.json"), "utf8"));
2220
+ if (typeof parsed !== "object" || parsed === null || !Array.isArray(parsed.entries)) {
2221
+ return packages;
2222
+ }
2223
+ for (const entry of parsed.entries) {
2224
+ if (typeof entry !== "object" || entry === null) {
2225
+ continue;
2226
+ }
2227
+ const record = entry;
2228
+ const sourcePackage = normalizeManagedSourcePackage(record.source?.package);
2229
+ if (!sourcePackage) {
2230
+ continue;
2231
+ }
2232
+ if (typeof record.directory === "string" && record.directory.trim().length > 0) {
2233
+ packages.set(`directory:${record.directory.trim()}`, sourcePackage);
2234
+ }
2235
+ if (typeof record.name === "string" && record.name.trim().length > 0) {
2236
+ packages.set(`name:${record.name.trim()}`, sourcePackage);
2237
+ }
2238
+ }
2239
+ } catch {
2240
+ return packages;
2241
+ }
2242
+ return packages;
2117
2243
  }
2118
2244
  function sortCandidates(candidates) {
2119
2245
  return [...candidates].sort((left, right) => {
@@ -2144,8 +2270,9 @@ async function scanExtensionLayer(layer, extensionsRoot, enabled, disabled) {
2144
2270
  const warnings = [];
2145
2271
  const candidates = [];
2146
2272
  const directories = await listExtensionDirectories(extensionsRoot);
2273
+ const managedSourcePackages = await readManagedExtensionSourcePackages(extensionsRoot);
2147
2274
  for (const directory of directories) {
2148
- const scanned = await scanExtensionDirectory(layer, extensionsRoot, directory, enabled, disabled);
2275
+ const scanned = await scanExtensionDirectory(layer, extensionsRoot, directory, enabled, disabled, managedSourcePackages);
2149
2276
  diagnostics.push(scanned.diagnostic);
2150
2277
  warnings.push(...scanned.warnings);
2151
2278
  if (scanned.candidate) {
@@ -2154,7 +2281,7 @@ async function scanExtensionLayer(layer, extensionsRoot, enabled, disabled) {
2154
2281
  }
2155
2282
  return { diagnostics, warnings, candidates };
2156
2283
  }
2157
- async function scanExtensionDirectory(layer, extensionsRoot, directory, enabled, disabled) {
2284
+ async function scanExtensionDirectory(layer, extensionsRoot, directory, enabled, disabled, managedSourcePackages) {
2158
2285
  const extensionDir = path5.join(extensionsRoot, directory);
2159
2286
  const manifestPath = path5.join(extensionDir, "manifest.json");
2160
2287
  if (!await pathExists(manifestPath)) {
@@ -2226,6 +2353,7 @@ async function scanExtensionDirectory(layer, extensionsRoot, directory, enabled,
2226
2353
  extensionWarnings.push(pmMaxVersionCompatibility.warning);
2227
2354
  }
2228
2355
  const extensionReady = entryWithinDirectory && entryExists && pmVersionCompatibility.allowed && pmMaxVersionCompatibility.allowed;
2356
+ const sourcePackage = managedSourcePackages.get(`directory:${directory}`) ?? managedSourcePackages.get(`name:${manifest.name}`);
2229
2357
  return {
2230
2358
  diagnostic: {
2231
2359
  layer,
@@ -2245,7 +2373,8 @@ async function scanExtensionDirectory(layer, extensionsRoot, directory, enabled,
2245
2373
  directory,
2246
2374
  manifest_path: manifestPath,
2247
2375
  entry_path: entryPath,
2248
- manifest
2376
+ manifest,
2377
+ source_package: sourcePackage
2249
2378
  } : null
2250
2379
  };
2251
2380
  }
@@ -2957,6 +3086,7 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
2957
3086
  const registration = {
2958
3087
  layer: extension.layer,
2959
3088
  name: extension.name,
3089
+ source_package: extension.source_package,
2960
3090
  command: normalizedCommand,
2961
3091
  action,
2962
3092
  examples,
@@ -3136,6 +3266,7 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
3136
3266
  const registration = {
3137
3267
  layer: extension.layer,
3138
3268
  name: extension.name,
3269
+ source_package: extension.source_package,
3139
3270
  command: commandPath,
3140
3271
  action,
3141
3272
  examples,
@@ -3759,7 +3890,7 @@ function runActiveServiceOverrideSync(service, payload) {
3759
3890
  !(function() {
3760
3891
  try {
3761
3892
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3762
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "dd045bd8-53d3-51f9-8e24-1905c0ed6413");
3893
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "f62a6f2b-d501-5db4-97cd-8a97131d0db4");
3763
3894
  } catch (e2) {
3764
3895
  }
3765
3896
  })();
@@ -3879,7 +4010,7 @@ import path6 from "node:path";
3879
4010
  !(function() {
3880
4011
  try {
3881
4012
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3882
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "11167959-e632-5d72-a6d1-103f6a7d50ef");
4013
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "221fcd13-8553-5c32-a2d8-2845d0f71047");
3883
4014
  } catch (e2) {
3884
4015
  }
3885
4016
  })();
@@ -4253,10 +4384,7 @@ async function loadRuntimeSchemaFromOptionalFiles(pmRoot, schema) {
4253
4384
  const statusFilePath = filePathForSchemaSection(pmRoot, normalizedSchema.files.statuses, DEFAULT_RUNTIME_SCHEMA_FILE_PATHS.statuses);
4254
4385
  const fieldsFilePath = filePathForSchemaSection(pmRoot, normalizedSchema.files.fields, DEFAULT_RUNTIME_SCHEMA_FILE_PATHS.fields);
4255
4386
  const workflowsFilePath = filePathForSchemaSection(pmRoot, normalizedSchema.files.workflows, DEFAULT_RUNTIME_SCHEMA_FILE_PATHS.workflows);
4256
- const typeDefinitionsFromFile = /* @__PURE__ */ (() => {
4257
- return void 0;
4258
- })();
4259
- let loadedTypeDefinitions = typeDefinitionsFromFile;
4387
+ let loadedTypeDefinitions;
4260
4388
  let loadedStatuses;
4261
4389
  let loadedFields;
4262
4390
  let loadedWorkflow;
@@ -4451,7 +4579,7 @@ function statusIsTerminal(status, registry) {
4451
4579
  !(function() {
4452
4580
  try {
4453
4581
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
4454
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "9bf3bb17-c0b9-50d8-9297-b78a575b1700");
4582
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ccc616c5-4a01-545e-8792-77f4be9f9810");
4455
4583
  } catch (e2) {
4456
4584
  }
4457
4585
  })();
@@ -4630,7 +4758,7 @@ function orderObject(value, keyOrder) {
4630
4758
  !(function() {
4631
4759
  try {
4632
4760
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
4633
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8b425415-1e39-5f2d-b23b-db8b2f0ba1c9");
4761
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b8c23714-d252-5943-afc6-86b87a92a240");
4634
4762
  } catch (e2) {
4635
4763
  }
4636
4764
  })();
@@ -4781,6 +4909,7 @@ var governanceSettings = vOptional(vObject({
4781
4909
  ownership_enforcement: vOptional(vLiteral("none", "warn", "strict")),
4782
4910
  create_mode_default: vOptional(vLiteral("progressive", "strict")),
4783
4911
  close_validation_default: vOptional(vLiteral("off", "warn", "strict")),
4912
+ require_close_reason: vOptional(vBoolean),
4784
4913
  parent_reference: vOptional(vLiteral("warn", "strict_error")),
4785
4914
  metadata_profile: vOptional(vLiteral("core", "strict", "custom")),
4786
4915
  force_required_for_stale_lock: vOptional(vBoolean),
@@ -4887,11 +5016,21 @@ var settingsCheck = vObject({
4887
5016
  hybrid_semantic_weight: vOptional(vNumber()),
4888
5017
  max_results: vNumber({ int: true }),
4889
5018
  embedding_model: vString,
5019
+ embedding_corpus_max_characters: vOptional(vNumber()),
4890
5020
  embedding_batch_size: vNumber({ int: true }),
4891
5021
  embedding_timeout_ms: vOptional(vNumber({ int: true })),
4892
5022
  scanner_max_batch_retries: vNumber({ int: true }),
4893
5023
  provider: vOptional(vString),
4894
- mutation_refresh_policy: vOptional(vLiteral("cache_only", "semantic_configured", "semantic_auto"))
5024
+ mutation_refresh_policy: vOptional(vLiteral("cache_only", "semantic_configured", "semantic_auto")),
5025
+ query_expansion: vOptional(vObject({
5026
+ enabled: vOptional(vBoolean),
5027
+ provider: vOptional(vString)
5028
+ })),
5029
+ rerank: vOptional(vObject({
5030
+ enabled: vOptional(vBoolean),
5031
+ model: vOptional(vString),
5032
+ top_k: vOptional(vNumber({ int: true, positive: true }))
5033
+ }))
4895
5034
  }),
4896
5035
  providers: vObject({
4897
5036
  openai: vObject({ base_url: vString, api_key: vString, model: vString }),
@@ -4899,6 +5038,7 @@ var settingsCheck = vObject({
4899
5038
  }),
4900
5039
  vector_store: vObject({
4901
5040
  adapter: vOptional(vString),
5041
+ collection_name: vOptional(vString),
4902
5042
  qdrant: vObject({ url: vString, api_key: vString }),
4903
5043
  lancedb: vObject({ path: vString })
4904
5044
  })
@@ -5003,12 +5143,13 @@ function normalizeItemTypeDefinition(definition, options = {}) {
5003
5143
  !(function() {
5004
5144
  try {
5005
5145
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5006
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "bb310f96-79d3-5bd1-a4aa-b8a8ac741afb");
5146
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "40eb6325-776d-5b33-887f-abbdee742b52");
5007
5147
  } catch (e2) {
5008
5148
  }
5009
5149
  })();
5010
5150
  var SETTINGS_WRITE_OP = "settings:write";
5011
5151
  var SETTINGS_PERSIST_SOURCE_SYMBOL = /* @__PURE__ */ Symbol("pm.settings.persist_source");
5152
+ var MAX_VECTOR_STORE_COLLECTION_NAME_LENGTH = 128;
5012
5153
  function resolveGovernanceKnobsFromPreset(preset) {
5013
5154
  return structuredClone(GOVERNANCE_PRESET_DEFAULTS[preset]);
5014
5155
  }
@@ -5026,6 +5167,9 @@ function withGovernanceExtras(base, governance) {
5026
5167
  if (governance.workflow_enforcement === "off" || governance.workflow_enforcement === "warn" || governance.workflow_enforcement === "strict") {
5027
5168
  base.workflow_enforcement = governance.workflow_enforcement;
5028
5169
  }
5170
+ if (governance.require_close_reason === false) {
5171
+ base.require_close_reason = false;
5172
+ }
5029
5173
  return base;
5030
5174
  }
5031
5175
  function normalizeGovernanceForPersist(governance) {
@@ -5046,32 +5190,44 @@ function normalizeGovernanceForPersist(governance) {
5046
5190
  }
5047
5191
  function resolveGovernanceExtras(rawGovernance) {
5048
5192
  const createDefaultType = typeof rawGovernance.create_default_type === "string" ? rawGovernance.create_default_type.trim() : void 0;
5049
- return {
5050
- create_default_type: createDefaultType && createDefaultType.length > 0 ? createDefaultType : void 0,
5051
- workflow_enforcement: rawGovernance.workflow_enforcement === "off" || rawGovernance.workflow_enforcement === "warn" || rawGovernance.workflow_enforcement === "strict" ? rawGovernance.workflow_enforcement : void 0
5052
- };
5193
+ const extras = {};
5194
+ if (createDefaultType && createDefaultType.length > 0) {
5195
+ extras.create_default_type = createDefaultType;
5196
+ }
5197
+ if (rawGovernance.workflow_enforcement === "off" || rawGovernance.workflow_enforcement === "warn" || rawGovernance.workflow_enforcement === "strict") {
5198
+ extras.workflow_enforcement = rawGovernance.workflow_enforcement;
5199
+ }
5200
+ if (typeof rawGovernance.require_close_reason === "boolean") {
5201
+ extras.require_close_reason = rawGovernance.require_close_reason;
5202
+ }
5203
+ return extras;
5053
5204
  }
5054
5205
  function resolveGovernanceKnobs(settings) {
5055
5206
  const rawGovernance = settings.governance ?? {};
5056
5207
  const preset = normalizeGovernancePreset(rawGovernance.preset);
5057
5208
  const extras = resolveGovernanceExtras(rawGovernance);
5058
5209
  if (preset === "custom") {
5059
- const baseline = resolveGovernanceKnobsFromPreset("default");
5210
+ const baseline2 = resolveGovernanceKnobsFromPreset("default");
5211
+ const requireCloseReason2 = extras.require_close_reason ?? baseline2.require_close_reason;
5060
5212
  return {
5061
5213
  preset,
5062
- ownership_enforcement: rawGovernance.ownership_enforcement ?? baseline.ownership_enforcement,
5063
- create_mode_default: rawGovernance.create_mode_default ?? baseline.create_mode_default,
5064
- close_validation_default: rawGovernance.close_validation_default ?? baseline.close_validation_default,
5065
- parent_reference: rawGovernance.parent_reference ?? baseline.parent_reference,
5066
- metadata_profile: rawGovernance.metadata_profile ?? baseline.metadata_profile,
5067
- force_required_for_stale_lock: rawGovernance.force_required_for_stale_lock ?? baseline.force_required_for_stale_lock,
5068
- ...extras
5214
+ ownership_enforcement: rawGovernance.ownership_enforcement ?? baseline2.ownership_enforcement,
5215
+ create_mode_default: rawGovernance.create_mode_default ?? baseline2.create_mode_default,
5216
+ close_validation_default: rawGovernance.close_validation_default ?? baseline2.close_validation_default,
5217
+ parent_reference: rawGovernance.parent_reference ?? baseline2.parent_reference,
5218
+ metadata_profile: rawGovernance.metadata_profile ?? baseline2.metadata_profile,
5219
+ force_required_for_stale_lock: rawGovernance.force_required_for_stale_lock ?? baseline2.force_required_for_stale_lock,
5220
+ ...extras,
5221
+ require_close_reason: requireCloseReason2
5069
5222
  };
5070
5223
  }
5224
+ const baseline = resolveGovernanceKnobsFromPreset(preset);
5225
+ const requireCloseReason = extras.require_close_reason ?? baseline.require_close_reason;
5071
5226
  return {
5072
5227
  preset,
5073
- ...resolveGovernanceKnobsFromPreset(preset),
5074
- ...extras
5228
+ ...baseline,
5229
+ ...extras,
5230
+ require_close_reason: requireCloseReason
5075
5231
  };
5076
5232
  }
5077
5233
  function cloneDefaults() {
@@ -5083,6 +5239,44 @@ function normalizeSearchMutationRefreshPolicy(value) {
5083
5239
  }
5084
5240
  return SETTINGS_DEFAULTS.search.mutation_refresh_policy;
5085
5241
  }
5242
+ function normalizeSearchQueryExpansionEnabled(value) {
5243
+ if (typeof value === "boolean") {
5244
+ return value;
5245
+ }
5246
+ return SETTINGS_DEFAULTS.search.query_expansion.enabled;
5247
+ }
5248
+ function normalizeSearchQueryExpansionProvider(value) {
5249
+ if (typeof value !== "string") {
5250
+ return SETTINGS_DEFAULTS.search.query_expansion.provider;
5251
+ }
5252
+ return value.trim();
5253
+ }
5254
+ function normalizeSearchRerankEnabled(value) {
5255
+ if (typeof value === "boolean") {
5256
+ return value;
5257
+ }
5258
+ return SETTINGS_DEFAULTS.search.rerank.enabled;
5259
+ }
5260
+ function normalizeSearchRerankModel(value) {
5261
+ if (typeof value !== "string") {
5262
+ return SETTINGS_DEFAULTS.search.rerank.model;
5263
+ }
5264
+ return value.trim();
5265
+ }
5266
+ function normalizeSearchRerankTopK(value) {
5267
+ if (typeof value === "number" && Number.isFinite(value) && Number.isInteger(value) && value > 0) {
5268
+ return value;
5269
+ }
5270
+ return SETTINGS_DEFAULTS.search.rerank.top_k;
5271
+ }
5272
+ function normalizeVectorStoreCollectionName(value) {
5273
+ if (typeof value !== "string") {
5274
+ return SETTINGS_DEFAULTS.vector_store.collection_name;
5275
+ }
5276
+ const sanitized = value.trim().replaceAll(/[^a-zA-Z0-9_-]/g, "_");
5277
+ const truncated = sanitized.slice(0, MAX_VECTOR_STORE_COLLECTION_NAME_LENGTH);
5278
+ return truncated.length > 0 ? truncated : SETTINGS_DEFAULTS.vector_store.collection_name;
5279
+ }
5086
5280
  function buildSettingsPersistSourceSnapshot(parsedSettings, runtimeSettings) {
5087
5281
  const sourceSchema = parsedSettings.schema;
5088
5282
  const sourceStatuses = Array.isArray(sourceSchema?.statuses) ? sourceSchema?.statuses : void 0;
@@ -5373,7 +5567,20 @@ function mergeSettings(settings) {
5373
5567
  search: {
5374
5568
  ...defaults.search,
5375
5569
  ...settings.search,
5376
- mutation_refresh_policy: normalizeSearchMutationRefreshPolicy(settings.search?.mutation_refresh_policy)
5570
+ mutation_refresh_policy: normalizeSearchMutationRefreshPolicy(settings.search?.mutation_refresh_policy),
5571
+ query_expansion: {
5572
+ ...defaults.search.query_expansion,
5573
+ ...settings.search?.query_expansion ?? {},
5574
+ enabled: normalizeSearchQueryExpansionEnabled(settings.search?.query_expansion?.enabled),
5575
+ provider: normalizeSearchQueryExpansionProvider(settings.search?.query_expansion?.provider)
5576
+ },
5577
+ rerank: {
5578
+ ...defaults.search.rerank,
5579
+ ...settings.search?.rerank ?? {},
5580
+ enabled: normalizeSearchRerankEnabled(settings.search?.rerank?.enabled),
5581
+ model: normalizeSearchRerankModel(settings.search?.rerank?.model),
5582
+ top_k: normalizeSearchRerankTopK(settings.search?.rerank?.top_k)
5583
+ }
5377
5584
  },
5378
5585
  providers: {
5379
5586
  openai: { ...defaults.providers.openai, ...settings.providers.openai },
@@ -5381,6 +5588,7 @@ function mergeSettings(settings) {
5381
5588
  },
5382
5589
  vector_store: {
5383
5590
  adapter: settings.vector_store.adapter ?? defaults.vector_store.adapter,
5591
+ collection_name: normalizeVectorStoreCollectionName(settings.vector_store.collection_name),
5384
5592
  qdrant: { ...defaults.vector_store.qdrant, ...settings.vector_store.qdrant },
5385
5593
  lancedb: { ...defaults.vector_store.lancedb, ...settings.vector_store.lancedb }
5386
5594
  }
@@ -5417,7 +5625,20 @@ function serializeSettings(settings, options = {}) {
5417
5625
  search: {
5418
5626
  ...SETTINGS_DEFAULTS.search,
5419
5627
  ...settings.search,
5420
- mutation_refresh_policy: normalizeSearchMutationRefreshPolicy(settings.search?.mutation_refresh_policy)
5628
+ mutation_refresh_policy: normalizeSearchMutationRefreshPolicy(settings.search?.mutation_refresh_policy),
5629
+ query_expansion: {
5630
+ ...SETTINGS_DEFAULTS.search.query_expansion,
5631
+ ...settings.search?.query_expansion ?? {},
5632
+ enabled: normalizeSearchQueryExpansionEnabled(settings.search?.query_expansion?.enabled),
5633
+ provider: normalizeSearchQueryExpansionProvider(settings.search?.query_expansion?.provider)
5634
+ },
5635
+ rerank: {
5636
+ ...SETTINGS_DEFAULTS.search.rerank,
5637
+ ...settings.search?.rerank ?? {},
5638
+ enabled: normalizeSearchRerankEnabled(settings.search?.rerank?.enabled),
5639
+ model: normalizeSearchRerankModel(settings.search?.rerank?.model),
5640
+ top_k: normalizeSearchRerankTopK(settings.search?.rerank?.top_k)
5641
+ }
5421
5642
  },
5422
5643
  context: {
5423
5644
  default_depth: settings.context?.default_depth ?? SETTINGS_DEFAULTS.context.default_depth,
@@ -5432,6 +5653,13 @@ function serializeSettings(settings, options = {}) {
5432
5653
  enabled: normalizeStringList2(settings.extensions?.enabled),
5433
5654
  disabled: normalizeStringList2(settings.extensions?.disabled),
5434
5655
  policy: normalizeExtensionPolicySettings(settings.extensions?.policy)
5656
+ },
5657
+ vector_store: {
5658
+ ...settings.vector_store ?? {},
5659
+ adapter: settings.vector_store?.adapter ?? SETTINGS_DEFAULTS.vector_store.adapter,
5660
+ collection_name: normalizeVectorStoreCollectionName(settings.vector_store?.collection_name),
5661
+ qdrant: { ...settings.vector_store?.qdrant ?? {} },
5662
+ lancedb: { ...settings.vector_store?.lancedb ?? {} }
5435
5663
  }
5436
5664
  };
5437
5665
  const ordered = orderObject({
@@ -5477,6 +5705,7 @@ function serializeSettings(settings, options = {}) {
5477
5705
  "ownership_enforcement",
5478
5706
  "create_mode_default",
5479
5707
  "close_validation_default",
5708
+ "require_close_reason",
5480
5709
  "parent_reference",
5481
5710
  "metadata_profile",
5482
5711
  "force_required_for_stale_lock",
@@ -5562,16 +5791,26 @@ function serializeSettings(settings, options = {}) {
5562
5791
  "hybrid_semantic_weight",
5563
5792
  "max_results",
5564
5793
  "embedding_model",
5794
+ "embedding_corpus_max_characters",
5565
5795
  "embedding_batch_size",
5566
5796
  "embedding_timeout_ms",
5567
5797
  "scanner_max_batch_retries",
5568
5798
  "provider",
5569
- "mutation_refresh_policy"
5799
+ "mutation_refresh_policy",
5800
+ "query_expansion",
5801
+ "rerank"
5570
5802
  ]);
5803
+ ordered.search.query_expansion = orderObject(ordered.search.query_expansion ?? {}, ["enabled", "provider"]);
5804
+ ordered.search.rerank = orderObject(ordered.search.rerank ?? {}, ["enabled", "model", "top_k"]);
5571
5805
  ordered.providers = orderObject(ordered.providers, ["openai", "ollama"]);
5572
5806
  ordered.providers.openai = orderObject(ordered.providers.openai ?? {}, ["base_url", "api_key", "model"]);
5573
5807
  ordered.providers.ollama = orderObject(ordered.providers.ollama ?? {}, ["base_url", "model"]);
5574
- ordered.vector_store = orderObject(ordered.vector_store, ["adapter", "qdrant", "lancedb"]);
5808
+ ordered.vector_store = orderObject(ordered.vector_store, [
5809
+ "adapter",
5810
+ "collection_name",
5811
+ "qdrant",
5812
+ "lancedb"
5813
+ ]);
5575
5814
  ordered.vector_store.qdrant = orderObject(ordered.vector_store.qdrant ?? {}, ["url", "api_key"]);
5576
5815
  ordered.vector_store.lancedb = orderObject(ordered.vector_store.lancedb ?? {}, ["path"]);
5577
5816
  return `${JSON.stringify(ordered, null, 2)}
@@ -5651,6 +5890,7 @@ export {
5651
5890
  removeFileIfExists,
5652
5891
  isPathWithinDirectory,
5653
5892
  resolvePmPackageRootFromModule,
5893
+ resolvePmCliVersion,
5654
5894
  KNOWN_EXTENSION_CAPABILITIES,
5655
5895
  EXTENSION_CAPABILITY_CONTRACT,
5656
5896
  KNOWN_EXTENSION_POLICY_MODES,
@@ -5693,6 +5933,8 @@ export {
5693
5933
  trimTrailingSlashes,
5694
5934
  isFiniteNumberArray,
5695
5935
  toErrorMessage,
5936
+ coercePositiveInteger,
5937
+ coerceNumberInRange,
5696
5938
  asRecordOrNull,
5697
5939
  parseUnknownExtensionCapabilityWarning,
5698
5940
  parseLegacyExtensionCapabilityAliasWarning,
@@ -5771,4 +6013,4 @@ export {
5771
6013
  readSettings,
5772
6014
  writeSettings
5773
6015
  };
5774
- //# sourceMappingURL=chunk-U5SXYXSY.js.map
6016
+ //# sourceMappingURL=chunk-3TXWDGPU.js.map