@unbrained/pm-cli 2026.7.13 → 2026.7.14

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 (487) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/CHANGELOG.md +28 -0
  3. package/dist/cli/commands/aggregate.d.ts +1 -1
  4. package/dist/cli/commands/aggregate.js +18 -6
  5. package/dist/cli/commands/aggregate.js.map +1 -1
  6. package/dist/cli/commands/context.d.ts +16 -1
  7. package/dist/cli/commands/context.js +98 -16
  8. package/dist/cli/commands/context.js.map +1 -1
  9. package/dist/cli/commands/create.d.ts +1 -1
  10. package/dist/cli/commands/create.js +11 -7
  11. package/dist/cli/commands/create.js.map +1 -1
  12. package/dist/cli/commands/deps.d.ts +6 -96
  13. package/dist/cli/commands/deps.js +4 -214
  14. package/dist/cli/commands/deps.js.map +1 -1
  15. package/dist/cli/commands/docs.d.ts +2 -44
  16. package/dist/cli/commands/docs.js +8 -13
  17. package/dist/cli/commands/docs.js.map +1 -1
  18. package/dist/cli/commands/files.d.ts +6 -134
  19. package/dist/cli/commands/files.js +4 -294
  20. package/dist/cli/commands/files.js.map +1 -1
  21. package/dist/cli/commands/get.js +15 -2
  22. package/dist/cli/commands/get.js.map +1 -1
  23. package/dist/cli/commands/list.js +5 -6
  24. package/dist/cli/commands/list.js.map +1 -1
  25. package/dist/cli/commands/next.d.ts +3 -1
  26. package/dist/cli/commands/next.js +77 -20
  27. package/dist/cli/commands/next.js.map +1 -1
  28. package/dist/cli/commands/update-many.js +6 -3
  29. package/dist/cli/commands/update-many.js.map +1 -1
  30. package/dist/cli/commands/update.js +14 -7
  31. package/dist/cli/commands/update.js.map +1 -1
  32. package/dist/cli/commands/validate.d.ts +1 -1
  33. package/dist/cli/commands/validate.js +32 -35
  34. package/dist/cli/commands/validate.js.map +1 -1
  35. package/dist/cli/main.d.ts +2 -14
  36. package/dist/cli/main.js +27 -8
  37. package/dist/cli/main.js.map +1 -1
  38. package/dist/cli-bundle/chunks/append-DYQWQK2J.js +11 -0
  39. package/dist/cli-bundle/chunks/{append-2FS6MVG7.js → append-PVZJDM6J.js} +5 -5
  40. package/dist/cli-bundle/chunks/{chunk-J2WAWP4U.js → chunk-2FNWQXZ2.js} +4 -4
  41. package/dist/cli-bundle/chunks/{chunk-YFGYDZRP.js → chunk-2GA3NK35.js} +4 -4
  42. package/dist/cli-bundle/chunks/{chunk-XFEIASAC.js → chunk-2QIQGYPW.js} +2 -2
  43. package/dist/cli-bundle/chunks/{chunk-3WCGYH5Q.js → chunk-3CMRNVTO.js} +7 -7
  44. package/dist/cli-bundle/chunks/chunk-3HKUXVKV.js +9 -0
  45. package/dist/cli-bundle/chunks/{chunk-VDAZPPRU.js → chunk-3I3LRT2G.js} +2 -2
  46. package/dist/cli-bundle/chunks/{chunk-3P3RFJIQ.js → chunk-3TL7WOEF.js} +2 -2
  47. package/dist/cli-bundle/chunks/{chunk-4SHJ5JS3.js → chunk-44LNIULG.js} +4 -4
  48. package/dist/cli-bundle/chunks/{chunk-QFOAWBOB.js → chunk-4DY4KPQI.js} +11 -10
  49. package/dist/cli-bundle/chunks/{chunk-QFOAWBOB.js.map → chunk-4DY4KPQI.js.map} +2 -2
  50. package/dist/cli-bundle/chunks/{chunk-BVCF4ULV.js → chunk-4RXTMU57.js} +5 -5
  51. package/dist/cli-bundle/chunks/{chunk-XMI2TRY5.js → chunk-4WREH7RT.js} +4 -4
  52. package/dist/cli-bundle/chunks/{chunk-JYUGUXFW.js → chunk-5CT5BW6E.js} +5 -5
  53. package/dist/cli-bundle/chunks/{chunk-NA5SBIB4.js → chunk-5URI7TPJ.js} +44 -44
  54. package/dist/cli-bundle/chunks/chunk-5URI7TPJ.js.map +7 -0
  55. package/dist/cli-bundle/chunks/{chunk-QGH6WL6L.js → chunk-655STMGA.js} +2 -2
  56. package/dist/cli-bundle/chunks/{chunk-DGKBWCMA.js → chunk-6IIVBC56.js} +4 -4
  57. package/dist/cli-bundle/chunks/{chunk-SRQLQUO6.js → chunk-6MHSBDGD.js} +7 -7
  58. package/dist/cli-bundle/chunks/{chunk-SRQLQUO6.js.map → chunk-6MHSBDGD.js.map} +2 -2
  59. package/dist/cli-bundle/chunks/{chunk-D4GPNYYP.js → chunk-6OTZMORS.js} +6 -6
  60. package/dist/cli-bundle/chunks/{chunk-JVRVXO6M.js → chunk-6PKA3SJQ.js} +6 -6
  61. package/dist/cli-bundle/chunks/{chunk-2PR4ZTRO.js → chunk-6TTOHMTB.js} +8 -8
  62. package/dist/cli-bundle/chunks/{chunk-2PR4ZTRO.js.map → chunk-6TTOHMTB.js.map} +1 -1
  63. package/dist/cli-bundle/chunks/chunk-6X5MZ5R2.js +9 -0
  64. package/dist/cli-bundle/chunks/chunk-76UBY2EE.js +5 -0
  65. package/dist/cli-bundle/chunks/{chunk-ZS2KPCJN.js → chunk-7QDSYUMF.js} +7 -7
  66. package/dist/cli-bundle/chunks/{chunk-Z7TFPIJ6.js → chunk-7TQMR6LK.js} +7 -7
  67. package/dist/cli-bundle/chunks/{chunk-AHA4POA6.js → chunk-ABRCOSDC.js} +3 -3
  68. package/dist/cli-bundle/chunks/{chunk-XY3CC3EM.js → chunk-AFWZRL7M.js} +59 -53
  69. package/dist/cli-bundle/chunks/chunk-AFWZRL7M.js.map +7 -0
  70. package/dist/cli-bundle/chunks/{chunk-KQJVTQVK.js → chunk-ANSJHDOZ.js} +2 -2
  71. package/dist/cli-bundle/chunks/{chunk-OMT4NO7T.js → chunk-B5DZYTT3.js} +113 -24
  72. package/dist/cli-bundle/chunks/chunk-B5DZYTT3.js.map +7 -0
  73. package/dist/cli-bundle/chunks/chunk-B7SWOIP6.js +5 -0
  74. package/dist/cli-bundle/chunks/{chunk-D2LXG7WX.js → chunk-BN62TO2S.js} +5 -5
  75. package/dist/cli-bundle/chunks/chunk-BN62TO2S.js.map +1 -0
  76. package/dist/cli-bundle/chunks/{chunk-ZTSV7P2T.js → chunk-BPD26E3P.js} +357 -42
  77. package/dist/cli-bundle/chunks/chunk-BPD26E3P.js.map +1 -0
  78. package/dist/cli-bundle/chunks/{chunk-RKGFUC4O.js → chunk-CDJYP7OQ.js} +36 -14
  79. package/dist/cli-bundle/chunks/chunk-CDJYP7OQ.js.map +1 -0
  80. package/dist/cli-bundle/chunks/{chunk-VLFLRFJP.js → chunk-CIOZ376P.js} +20 -13
  81. package/dist/cli-bundle/chunks/chunk-CIOZ376P.js.map +1 -0
  82. package/dist/cli-bundle/chunks/{chunk-HXTCZSAI.js → chunk-DBZVUJTK.js} +3 -3
  83. package/dist/cli-bundle/chunks/{chunk-2QNOWOIB.js → chunk-DO5RGJXT.js} +3 -3
  84. package/dist/cli-bundle/chunks/{chunk-MKONZ4UO.js → chunk-DRNJPEPQ.js} +4 -4
  85. package/dist/cli-bundle/chunks/{chunk-XDT2PSXA.js → chunk-DVOLZJ3C.js} +12 -11
  86. package/dist/cli-bundle/chunks/{chunk-XDT2PSXA.js.map → chunk-DVOLZJ3C.js.map} +1 -1
  87. package/dist/cli-bundle/chunks/{chunk-H36FXA7B.js → chunk-DYEX6NFH.js} +4 -4
  88. package/dist/cli-bundle/chunks/{chunk-G3IB5GTD.js → chunk-E2WC6S4P.js} +15 -11
  89. package/dist/cli-bundle/chunks/chunk-E2WC6S4P.js.map +7 -0
  90. package/dist/cli-bundle/chunks/{chunk-GAJ7U7B4.js → chunk-ERL2YFJ2.js} +3 -3
  91. package/dist/cli-bundle/chunks/{chunk-FPEYOFEF.js → chunk-F7PSHRNO.js} +3 -3
  92. package/dist/cli-bundle/chunks/{chunk-UH7OLT6F.js → chunk-FDSBDNYE.js} +2 -2
  93. package/dist/cli-bundle/chunks/{chunk-DGJF32JF.js → chunk-FIGXOCEQ.js} +66 -21
  94. package/dist/cli-bundle/chunks/chunk-FIGXOCEQ.js.map +7 -0
  95. package/dist/cli-bundle/chunks/{chunk-RQAY7C5T.js → chunk-FJZDA6MS.js} +3 -3
  96. package/dist/cli-bundle/chunks/{chunk-B4TVNGRX.js → chunk-FO7GMJKG.js} +3 -3
  97. package/dist/cli-bundle/chunks/chunk-FRQ63VPB.js +5 -0
  98. package/dist/cli-bundle/chunks/{chunk-UTYNQ2WH.js → chunk-FS6UM5WH.js} +48 -27
  99. package/dist/cli-bundle/chunks/chunk-FS6UM5WH.js.map +7 -0
  100. package/dist/cli-bundle/chunks/{chunk-U252II47.js → chunk-FTQLW4JD.js} +4 -4
  101. package/dist/cli-bundle/chunks/{chunk-TNGLCRKS.js → chunk-GSEADLRH.js} +1821 -1809
  102. package/dist/cli-bundle/chunks/chunk-GSEADLRH.js.map +1 -0
  103. package/dist/cli-bundle/chunks/{chunk-TGG7YGMC.js → chunk-GXXC7QSK.js} +53 -47
  104. package/dist/cli-bundle/chunks/chunk-GXXC7QSK.js.map +1 -0
  105. package/dist/cli-bundle/chunks/{chunk-AGD4VZXH.js → chunk-H2QBAKLQ.js} +3 -3
  106. package/dist/cli-bundle/chunks/{chunk-CJVQ4XIG.js → chunk-HAMLIWAF.js} +4 -4
  107. package/dist/cli-bundle/chunks/{chunk-56DX6QYG.js → chunk-HL7V2PHX.js} +19 -13
  108. package/dist/cli-bundle/chunks/chunk-HL7V2PHX.js.map +1 -0
  109. package/dist/cli-bundle/chunks/{chunk-7QOIQTPB.js → chunk-HLHSQ5CA.js} +4 -4
  110. package/dist/cli-bundle/chunks/{chunk-AHC7J6XD.js → chunk-IA3YFTXT.js} +6 -6
  111. package/dist/cli-bundle/chunks/{chunk-5ZCVF4WF.js → chunk-IAPHYPRL.js} +2 -2
  112. package/dist/cli-bundle/chunks/{chunk-OCSQWIOW.js → chunk-IFZA4VB5.js} +4 -4
  113. package/dist/cli-bundle/chunks/{chunk-6O2HJENY.js → chunk-IGED7NH2.js} +61 -48
  114. package/dist/cli-bundle/chunks/chunk-IGED7NH2.js.map +7 -0
  115. package/dist/cli-bundle/chunks/{chunk-RPCCQDG2.js → chunk-ILLUE5DI.js} +36 -14
  116. package/dist/cli-bundle/chunks/chunk-ILLUE5DI.js.map +7 -0
  117. package/dist/cli-bundle/chunks/{chunk-4WMFM77X.js → chunk-J4NZOP3I.js} +5 -5
  118. package/dist/cli-bundle/chunks/{chunk-57JVERX3.js → chunk-JAF4TUQ7.js} +4 -4
  119. package/dist/cli-bundle/chunks/chunk-JAF4TUQ7.js.map +7 -0
  120. package/dist/cli-bundle/chunks/{chunk-MTNKSSSO.js → chunk-JL7WZ4O2.js} +3 -3
  121. package/dist/cli-bundle/chunks/{chunk-AZ52LTCY.js → chunk-K7WNZ7KD.js} +3 -3
  122. package/dist/cli-bundle/chunks/{chunk-2OLSXXIV.js → chunk-KADLSPIU.js} +4 -4
  123. package/dist/cli-bundle/chunks/{chunk-RQKORMM4.js → chunk-KB726FMH.js} +4 -4
  124. package/dist/cli-bundle/chunks/{chunk-WKSFBBZT.js → chunk-L24HCJFC.js} +114 -25
  125. package/dist/cli-bundle/chunks/chunk-L24HCJFC.js.map +1 -0
  126. package/dist/cli-bundle/chunks/{chunk-LDO24J5I.js → chunk-LWTIRS3Y.js} +365 -43
  127. package/dist/cli-bundle/chunks/chunk-LWTIRS3Y.js.map +7 -0
  128. package/dist/cli-bundle/chunks/{chunk-TZTQ4TVV.js → chunk-M6ASXYCU.js} +4 -4
  129. package/dist/cli-bundle/chunks/{chunk-WDDOAU7Z.js → chunk-M7EWN4TF.js} +3 -3
  130. package/dist/cli-bundle/chunks/{chunk-327DSGW2.js → chunk-MD6ULIPJ.js} +3 -3
  131. package/dist/cli-bundle/chunks/{chunk-OKDBHOON.js → chunk-MKL4CP2I.js} +61 -48
  132. package/dist/cli-bundle/chunks/chunk-MKL4CP2I.js.map +1 -0
  133. package/dist/cli-bundle/chunks/{chunk-M52DG2QJ.js → chunk-MQZ3PLCF.js} +2 -2
  134. package/dist/cli-bundle/chunks/{chunk-GQ2CQNGI.js → chunk-N3CMP4NI.js} +2 -2
  135. package/dist/cli-bundle/chunks/{chunk-J7SBFUZC.js → chunk-NAQYVWSQ.js} +4 -4
  136. package/dist/cli-bundle/chunks/{chunk-U2GMYP3L.js → chunk-NKW36AMT.js} +4 -4
  137. package/dist/cli-bundle/chunks/{chunk-5WEYOVZ7.js → chunk-OBDLEQG5.js} +19 -12
  138. package/dist/cli-bundle/chunks/chunk-OBDLEQG5.js.map +7 -0
  139. package/dist/cli-bundle/chunks/{chunk-VL4LYTJN.js → chunk-OI4S4KCI.js} +18 -12
  140. package/dist/cli-bundle/chunks/chunk-OI4S4KCI.js.map +7 -0
  141. package/dist/cli-bundle/chunks/{chunk-FCVVMAEX.js → chunk-P6MYFH6K.js} +60 -22
  142. package/dist/cli-bundle/chunks/chunk-P6MYFH6K.js.map +1 -0
  143. package/dist/cli-bundle/chunks/{chunk-FTQQAPRX.js → chunk-PHKP3AGR.js} +8 -8
  144. package/dist/cli-bundle/chunks/{chunk-WVUXNIYO.js → chunk-Q37E63AM.js} +4 -4
  145. package/dist/cli-bundle/chunks/{chunk-JVXV7ANV.js → chunk-Q7E6OYZK.js} +2 -2
  146. package/dist/cli-bundle/chunks/{chunk-WVUYATII.js → chunk-QABYZYLU.js} +4 -4
  147. package/dist/cli-bundle/chunks/{chunk-QRRUGIJN.js → chunk-QASRVKUQ.js} +45 -45
  148. package/dist/cli-bundle/chunks/chunk-QASRVKUQ.js.map +1 -0
  149. package/dist/cli-bundle/chunks/{chunk-L4262MFB.js → chunk-QK2ZN6UL.js} +14 -5
  150. package/dist/cli-bundle/chunks/{chunk-L4262MFB.js.map → chunk-QK2ZN6UL.js.map} +1 -1
  151. package/dist/cli-bundle/chunks/{chunk-7TQPV7HR.js → chunk-QSPARJWF.js} +2 -2
  152. package/dist/cli-bundle/chunks/{chunk-GTKILM6F.js → chunk-QZ7LT3XE.js} +3 -3
  153. package/dist/cli-bundle/chunks/{chunk-L3VKY6R6.js → chunk-RA5AIAMP.js} +3 -3
  154. package/dist/cli-bundle/chunks/{chunk-BJS27ALI.js → chunk-RGXD5JJR.js} +6 -6
  155. package/dist/cli-bundle/chunks/{chunk-TSEPW2P6.js → chunk-RMF3IOYQ.js} +7 -7
  156. package/dist/cli-bundle/chunks/{chunk-QXYKH56X.js → chunk-T4BRCB6Z.js} +1894 -1875
  157. package/dist/cli-bundle/chunks/chunk-T4BRCB6Z.js.map +7 -0
  158. package/dist/cli-bundle/chunks/{chunk-TGGTXC52.js → chunk-TH7U4KLY.js} +3 -3
  159. package/dist/cli-bundle/chunks/{chunk-LP4UATP6.js → chunk-TWLDBKQU.js} +3 -3
  160. package/dist/cli-bundle/chunks/{chunk-OTZ3C2NE.js → chunk-TZ2PSLLT.js} +49 -28
  161. package/dist/cli-bundle/chunks/chunk-TZ2PSLLT.js.map +1 -0
  162. package/dist/cli-bundle/chunks/{chunk-UK222BHQ.js → chunk-TZRTLMWM.js} +4 -4
  163. package/dist/cli-bundle/chunks/{chunk-6E6S2X6S.js → chunk-UB2QYSTO.js} +8 -8
  164. package/dist/cli-bundle/chunks/{chunk-S6CXUSYC.js → chunk-UGTVWL3E.js} +5 -5
  165. package/dist/cli-bundle/chunks/{chunk-BNS6QHTZ.js → chunk-UJ4HJYWL.js} +2 -2
  166. package/dist/cli-bundle/chunks/{chunk-BYVOEJPQ.js → chunk-UKUIIBDW.js} +4 -4
  167. package/dist/cli-bundle/chunks/{chunk-SGDBVR7X.js → chunk-UVBA6F5A.js} +2 -2
  168. package/dist/cli-bundle/chunks/{chunk-DZRZMBBF.js → chunk-VJTAEIPC.js} +5 -5
  169. package/dist/cli-bundle/chunks/{chunk-74PWVJON.js → chunk-W6HZ55JO.js} +2 -2
  170. package/dist/cli-bundle/chunks/{chunk-HR2MQAO5.js → chunk-WD6MSYMP.js} +13 -4
  171. package/dist/cli-bundle/chunks/{chunk-HR2MQAO5.js.map → chunk-WD6MSYMP.js.map} +2 -2
  172. package/dist/cli-bundle/chunks/{chunk-P7IFURWH.js → chunk-WPAWZW7S.js} +2 -2
  173. package/dist/cli-bundle/chunks/{chunk-36LEOWSX.js → chunk-WQUEHPZB.js} +2 -2
  174. package/dist/cli-bundle/chunks/{chunk-FCKJF7G2.js → chunk-WRKB56FC.js} +3 -3
  175. package/dist/cli-bundle/chunks/{chunk-KR5EHAN4.js → chunk-X3GYR4P2.js} +2 -2
  176. package/dist/cli-bundle/chunks/{chunk-J567OZJY.js → chunk-X6BVXQ52.js} +16 -12
  177. package/dist/cli-bundle/chunks/chunk-X6BVXQ52.js.map +1 -0
  178. package/dist/cli-bundle/chunks/chunk-Y72FV7RM.js +178 -0
  179. package/dist/cli-bundle/chunks/chunk-Y72FV7RM.js.map +7 -0
  180. package/dist/cli-bundle/chunks/{chunk-OWW2KXOV.js → chunk-YQYG2V23.js} +2 -2
  181. package/dist/cli-bundle/chunks/{chunk-G2SCT7BC.js → chunk-YVKE5ZDM.js} +4 -4
  182. package/dist/cli-bundle/chunks/{chunk-QHIN4UTF.js → chunk-ZAYYDNB3.js} +4 -4
  183. package/dist/cli-bundle/chunks/chunk-ZHBI2AP7.js +9 -0
  184. package/dist/cli-bundle/chunks/chunk-ZNP64HOW.js +175 -0
  185. package/dist/cli-bundle/chunks/chunk-ZNP64HOW.js.map +1 -0
  186. package/dist/cli-bundle/chunks/{chunk-GNVBUNJQ.js → chunk-ZTRBSABY.js} +3 -3
  187. package/dist/cli-bundle/chunks/{chunk-PY32KGQU.js → chunk-ZUKSZVBW.js} +5 -5
  188. package/dist/cli-bundle/chunks/{close-CU56F47E.js → close-LZECOMHO.js} +5 -5
  189. package/dist/cli-bundle/chunks/close-RI4JQQHU.js +12 -0
  190. package/dist/cli-bundle/chunks/close-many-LY2XJ52M.js +21 -0
  191. package/dist/cli-bundle/chunks/{close-many-ZQ2WP67J.js → close-many-ZHI6A5TN.js} +12 -12
  192. package/dist/cli-bundle/chunks/comments-35M273DN.js +13 -0
  193. package/dist/cli-bundle/chunks/{comments-UDUMKXL6.js → comments-AJWRTFZ5.js} +7 -7
  194. package/dist/cli-bundle/chunks/{copy-VFHECFBV.js → copy-GMXYKBXT.js} +4 -4
  195. package/dist/cli-bundle/chunks/copy-NPYM7M7U.js +9 -0
  196. package/dist/cli-bundle/chunks/create-F53OBTOU.js +27 -0
  197. package/dist/cli-bundle/chunks/{create-CE2X3SGF.js → create-HU4Q7RJX.js} +11 -9
  198. package/dist/cli-bundle/chunks/{delete-2JXQCHHT.js → delete-GSDZLTRC.js} +4 -4
  199. package/dist/cli-bundle/chunks/delete-ODRWJWAM.js +10 -0
  200. package/dist/cli-bundle/chunks/deps-U57I7EAK.js +16 -0
  201. package/dist/cli-bundle/chunks/{deps-FPXNLO6C.js → deps-WWB7P2GT.js} +7 -4
  202. package/dist/cli-bundle/chunks/docs-G7N4E2JO.js +14 -0
  203. package/dist/cli-bundle/chunks/{docs-AMAR4OHU.js → docs-MQIY2ZQS.js} +7 -7
  204. package/dist/cli-bundle/chunks/files-TBZD7V6H.js +18 -0
  205. package/dist/cli-bundle/chunks/{files-JFHN7DYM.js → files-TTY6N2AV.js} +7 -7
  206. package/dist/cli-bundle/chunks/focus-U5TRVCRS.js +10 -0
  207. package/dist/cli-bundle/chunks/{focus-QFN2RRZ7.js → focus-XT6YVFFX.js} +5 -5
  208. package/dist/cli-bundle/chunks/{history-compact-G34XMABV.js → history-compact-KKVUWB4V.js} +8 -8
  209. package/dist/cli-bundle/chunks/{history-compact-SAHT5D46.js → history-compact-M7GHYVFN.js} +8 -8
  210. package/dist/cli-bundle/chunks/{history-redact-IFJDNKLZ.js → history-redact-3DVZOILD.js} +6 -6
  211. package/dist/cli-bundle/chunks/history-redact-JIHZLHDP.js +16 -0
  212. package/dist/cli-bundle/chunks/{history-repair-NXLQTCVN.js → history-repair-ITDUMK4N.js} +8 -8
  213. package/dist/cli-bundle/chunks/history-repair-NAFCHLH7.js +18 -0
  214. package/dist/cli-bundle/chunks/{learnings-5CZKAMBS.js → learnings-FGO3NSFW.js} +7 -7
  215. package/dist/cli-bundle/chunks/learnings-SONGPSHI.js +13 -0
  216. package/dist/cli-bundle/chunks/notes-BSD53H2W.js +13 -0
  217. package/dist/cli-bundle/chunks/{notes-POMK37UI.js → notes-NQ6RXVW6.js} +7 -7
  218. package/dist/cli-bundle/chunks/{plan-YBNYNT3A.js → plan-2NNEO46V.js} +10 -10
  219. package/dist/cli-bundle/chunks/plan-AWLYGBNV.js +24 -0
  220. package/dist/cli-bundle/chunks/{profile-JNKSU6EQ.js → profile-AAQUU6T3.js} +9 -9
  221. package/dist/cli-bundle/chunks/{profile-A2WPVG6I.js → profile-U725ATWZ.js} +9 -9
  222. package/dist/cli-bundle/chunks/{register-list-query-UG4ZA5AU.js → register-list-query-BUWCYHBT.js} +14 -13
  223. package/dist/cli-bundle/chunks/{register-list-query-UG4ZA5AU.js.map → register-list-query-BUWCYHBT.js.map} +1 -1
  224. package/dist/cli-bundle/chunks/{register-list-query-KJULL4W3.js → register-list-query-KTZ6AGE7.js} +16 -15
  225. package/dist/cli-bundle/chunks/{register-list-query-KJULL4W3.js.map → register-list-query-KTZ6AGE7.js.map} +1 -1
  226. package/dist/cli-bundle/chunks/{register-mutation-3OXYXBKH.js → register-mutation-4FMGJJF7.js} +29 -29
  227. package/dist/cli-bundle/chunks/{register-mutation-WK265BM7.js → register-mutation-UELYYOR7.js} +29 -29
  228. package/dist/cli-bundle/chunks/{register-operations-C5SQH3FJ.js → register-operations-ISUX6LY5.js} +33 -29
  229. package/dist/cli-bundle/chunks/{register-operations-C5SQH3FJ.js.map → register-operations-ISUX6LY5.js.map} +1 -1
  230. package/dist/cli-bundle/chunks/{register-operations-FH3PBHYN.js → register-operations-JVW24J2Y.js} +35 -31
  231. package/dist/cli-bundle/chunks/{register-operations-FH3PBHYN.js.map → register-operations-JVW24J2Y.js.map} +1 -1
  232. package/dist/cli-bundle/chunks/{register-setup-CCK7CJVR.js → register-setup-5XNGKJ22.js} +15 -15
  233. package/dist/cli-bundle/chunks/{register-setup-CPZBGSOJ.js → register-setup-ZTNY6S7R.js} +15 -15
  234. package/dist/cli-bundle/chunks/restore-66GLMHIX.js +14 -0
  235. package/dist/cli-bundle/chunks/{restore-IVS5XGYR.js → restore-B3BAB6X2.js} +6 -6
  236. package/dist/cli-bundle/chunks/{schema-P2MF23JO.js → schema-LZNUYHDB.js} +6 -6
  237. package/dist/cli-bundle/chunks/schema-LZNUYHDB.js.map +7 -0
  238. package/dist/cli-bundle/chunks/{schema-R3U2REY4.js → schema-U7IM2DXV.js} +6 -6
  239. package/dist/cli-bundle/chunks/schema-U7IM2DXV.js.map +1 -0
  240. package/dist/cli-bundle/chunks/update-2XGHIVQ2.js +21 -0
  241. package/dist/cli-bundle/chunks/update-2XGHIVQ2.js.map +7 -0
  242. package/dist/cli-bundle/chunks/{update-YBIQESMH.js → update-Q3UCILNR.js} +12 -12
  243. package/dist/cli-bundle/chunks/update-Q3UCILNR.js.map +1 -0
  244. package/dist/cli-bundle/chunks/{update-many-F3CIV5SQ.js → update-many-75K57FS3.js} +19 -19
  245. package/dist/cli-bundle/chunks/update-many-75K57FS3.js.map +1 -0
  246. package/dist/cli-bundle/chunks/update-many-U42YA445.js +30 -0
  247. package/dist/cli-bundle/chunks/update-many-U42YA445.js.map +7 -0
  248. package/dist/cli-bundle/main.js +39 -16
  249. package/dist/cli-bundle/main.js.map +2 -2
  250. package/dist/cli-bundle/sdk-runtime.js +56 -53
  251. package/dist/cli-bundle/sdk-testing.js +6 -6
  252. package/dist/cli-bundle/sdk.js +115 -55
  253. package/dist/cli-bundle/sdk.js.map +2 -2
  254. package/dist/core/extensions/command-hook-context.d.ts +40 -0
  255. package/dist/core/extensions/command-hook-context.js +14 -0
  256. package/dist/core/extensions/command-hook-context.js.map +1 -0
  257. package/dist/core/extensions/index.d.ts +1 -0
  258. package/dist/core/extensions/index.js +4 -3
  259. package/dist/core/extensions/index.js.map +1 -1
  260. package/dist/core/item/parse.d.ts +2 -0
  261. package/dist/core/item/parse.js +11 -2
  262. package/dist/core/item/parse.js.map +1 -1
  263. package/dist/core/store/paths.d.ts +2 -0
  264. package/dist/core/store/paths.js +10 -2
  265. package/dist/core/store/paths.js.map +1 -1
  266. package/dist/mcp/tool-definitions.js +12 -2
  267. package/dist/mcp/tool-definitions.js.map +1 -1
  268. package/dist/sdk/context-packing.d.ts +114 -0
  269. package/dist/sdk/context-packing.js +219 -0
  270. package/dist/sdk/context-packing.js.map +1 -0
  271. package/dist/sdk/context-relevance.d.ts +1 -1
  272. package/dist/sdk/context-relevance.js +4 -2
  273. package/dist/sdk/context-relevance.js.map +1 -1
  274. package/dist/sdk/context-usage.d.ts +79 -0
  275. package/dist/sdk/context-usage.js +193 -0
  276. package/dist/sdk/context-usage.js.map +1 -0
  277. package/dist/sdk/dependencies.d.ts +145 -0
  278. package/dist/sdk/dependencies.js +327 -0
  279. package/dist/sdk/dependencies.js.map +1 -0
  280. package/dist/sdk/docs.d.ts +48 -0
  281. package/dist/sdk/docs.js +15 -0
  282. package/dist/sdk/docs.js.map +1 -0
  283. package/dist/sdk/files.d.ts +135 -0
  284. package/dist/sdk/files.js +320 -0
  285. package/dist/sdk/files.js.map +1 -0
  286. package/dist/sdk/index.d.ts +6 -0
  287. package/dist/sdk/index.js +8 -2
  288. package/dist/sdk/index.js.map +1 -1
  289. package/dist/{cli/commands → sdk}/linked-artifacts.d.ts +11 -5
  290. package/dist/{cli/commands → sdk}/linked-artifacts.js +49 -25
  291. package/dist/sdk/linked-artifacts.js.map +1 -0
  292. package/dist/sdk/runtime.d.ts +4 -4
  293. package/dist/sdk/runtime.js +7 -4
  294. package/dist/sdk/runtime.js.map +1 -1
  295. package/dist/sdk/workspace.js +3 -2
  296. package/dist/sdk/workspace.js.map +1 -1
  297. package/docs/AGENT_GUIDE.md +1 -1
  298. package/docs/CONFIGURATION.md +1 -0
  299. package/docs/PR_REVIEW_LOOP.md +21 -11
  300. package/docs/SDK.md +94 -0
  301. package/marketplace.json +2 -2
  302. package/package.json +1 -1
  303. package/packages/pm-beads/package.json +1 -1
  304. package/packages/pm-calendar/package.json +1 -1
  305. package/packages/pm-command-kit/package.json +1 -1
  306. package/packages/pm-governance-audit/package.json +1 -1
  307. package/packages/pm-guide-shell/package.json +1 -1
  308. package/packages/pm-kanban/package.json +1 -1
  309. package/packages/pm-lifecycle-hooks/package.json +1 -1
  310. package/packages/pm-linked-test-adapters/package.json +1 -1
  311. package/packages/pm-search-advanced/package.json +1 -1
  312. package/packages/pm-templates/package.json +1 -1
  313. package/packages/pm-todos/package.json +1 -1
  314. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  315. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  316. package/dist/cli/commands/linked-artifacts.js.map +0 -1
  317. package/dist/cli-bundle/chunks/append-CTKFDEAX.js +0 -11
  318. package/dist/cli-bundle/chunks/chunk-56DX6QYG.js.map +0 -1
  319. package/dist/cli-bundle/chunks/chunk-57JVERX3.js.map +0 -7
  320. package/dist/cli-bundle/chunks/chunk-5WEYOVZ7.js.map +0 -7
  321. package/dist/cli-bundle/chunks/chunk-6O2HJENY.js.map +0 -7
  322. package/dist/cli-bundle/chunks/chunk-CCAGZCZK.js +0 -17
  323. package/dist/cli-bundle/chunks/chunk-CCAGZCZK.js.map +0 -7
  324. package/dist/cli-bundle/chunks/chunk-D2LXG7WX.js.map +0 -1
  325. package/dist/cli-bundle/chunks/chunk-DGJF32JF.js.map +0 -7
  326. package/dist/cli-bundle/chunks/chunk-FCVVMAEX.js.map +0 -1
  327. package/dist/cli-bundle/chunks/chunk-FUOK7JZ6.js +0 -14
  328. package/dist/cli-bundle/chunks/chunk-FUOK7JZ6.js.map +0 -1
  329. package/dist/cli-bundle/chunks/chunk-G3IB5GTD.js.map +0 -7
  330. package/dist/cli-bundle/chunks/chunk-J567OZJY.js.map +0 -1
  331. package/dist/cli-bundle/chunks/chunk-LDO24J5I.js.map +0 -7
  332. package/dist/cli-bundle/chunks/chunk-NA5SBIB4.js.map +0 -7
  333. package/dist/cli-bundle/chunks/chunk-OKDBHOON.js.map +0 -1
  334. package/dist/cli-bundle/chunks/chunk-OMT4NO7T.js.map +0 -7
  335. package/dist/cli-bundle/chunks/chunk-OTZ3C2NE.js.map +0 -1
  336. package/dist/cli-bundle/chunks/chunk-QRRUGIJN.js.map +0 -1
  337. package/dist/cli-bundle/chunks/chunk-QXYKH56X.js.map +0 -7
  338. package/dist/cli-bundle/chunks/chunk-RKGFUC4O.js.map +0 -1
  339. package/dist/cli-bundle/chunks/chunk-RPCCQDG2.js.map +0 -7
  340. package/dist/cli-bundle/chunks/chunk-TGG7YGMC.js.map +0 -1
  341. package/dist/cli-bundle/chunks/chunk-TNGLCRKS.js.map +0 -1
  342. package/dist/cli-bundle/chunks/chunk-UTYNQ2WH.js.map +0 -7
  343. package/dist/cli-bundle/chunks/chunk-VL4LYTJN.js.map +0 -7
  344. package/dist/cli-bundle/chunks/chunk-VLFLRFJP.js.map +0 -1
  345. package/dist/cli-bundle/chunks/chunk-WKSFBBZT.js.map +0 -1
  346. package/dist/cli-bundle/chunks/chunk-XY3CC3EM.js.map +0 -7
  347. package/dist/cli-bundle/chunks/chunk-ZTSV7P2T.js.map +0 -1
  348. package/dist/cli-bundle/chunks/close-BWM7FTF4.js +0 -12
  349. package/dist/cli-bundle/chunks/close-many-AUHTVFUQ.js +0 -21
  350. package/dist/cli-bundle/chunks/comments-7D5VPBZI.js +0 -13
  351. package/dist/cli-bundle/chunks/copy-QJ6ZVWZV.js +0 -9
  352. package/dist/cli-bundle/chunks/create-FGMTTYOI.js +0 -25
  353. package/dist/cli-bundle/chunks/delete-L2GMMMPR.js +0 -10
  354. package/dist/cli-bundle/chunks/deps-KTFI4RWD.js +0 -13
  355. package/dist/cli-bundle/chunks/docs-VNURA275.js +0 -14
  356. package/dist/cli-bundle/chunks/files-UNFPZLTG.js +0 -18
  357. package/dist/cli-bundle/chunks/focus-MI2UHBP4.js +0 -10
  358. package/dist/cli-bundle/chunks/history-redact-VAHGBUHI.js +0 -16
  359. package/dist/cli-bundle/chunks/history-repair-DDYQXR43.js +0 -18
  360. package/dist/cli-bundle/chunks/learnings-VWJEKHEO.js +0 -13
  361. package/dist/cli-bundle/chunks/notes-NGVJJJQO.js +0 -13
  362. package/dist/cli-bundle/chunks/plan-U6SQJUFI.js +0 -24
  363. package/dist/cli-bundle/chunks/restore-AX6ZMGHZ.js +0 -14
  364. package/dist/cli-bundle/chunks/update-XYHF3YZF.js +0 -21
  365. package/dist/cli-bundle/chunks/update-many-5HKVHFUL.js +0 -30
  366. /package/dist/cli-bundle/chunks/{append-CTKFDEAX.js.map → append-DYQWQK2J.js.map} +0 -0
  367. /package/dist/cli-bundle/chunks/{append-2FS6MVG7.js.map → append-PVZJDM6J.js.map} +0 -0
  368. /package/dist/cli-bundle/chunks/{chunk-J2WAWP4U.js.map → chunk-2FNWQXZ2.js.map} +0 -0
  369. /package/dist/cli-bundle/chunks/{chunk-YFGYDZRP.js.map → chunk-2GA3NK35.js.map} +0 -0
  370. /package/dist/cli-bundle/chunks/{chunk-XFEIASAC.js.map → chunk-2QIQGYPW.js.map} +0 -0
  371. /package/dist/cli-bundle/chunks/{chunk-3WCGYH5Q.js.map → chunk-3CMRNVTO.js.map} +0 -0
  372. /package/dist/cli-bundle/chunks/{close-BWM7FTF4.js.map → chunk-3HKUXVKV.js.map} +0 -0
  373. /package/dist/cli-bundle/chunks/{chunk-VDAZPPRU.js.map → chunk-3I3LRT2G.js.map} +0 -0
  374. /package/dist/cli-bundle/chunks/{chunk-3P3RFJIQ.js.map → chunk-3TL7WOEF.js.map} +0 -0
  375. /package/dist/cli-bundle/chunks/{chunk-4SHJ5JS3.js.map → chunk-44LNIULG.js.map} +0 -0
  376. /package/dist/cli-bundle/chunks/{chunk-BVCF4ULV.js.map → chunk-4RXTMU57.js.map} +0 -0
  377. /package/dist/cli-bundle/chunks/{chunk-XMI2TRY5.js.map → chunk-4WREH7RT.js.map} +0 -0
  378. /package/dist/cli-bundle/chunks/{chunk-JYUGUXFW.js.map → chunk-5CT5BW6E.js.map} +0 -0
  379. /package/dist/cli-bundle/chunks/{chunk-QGH6WL6L.js.map → chunk-655STMGA.js.map} +0 -0
  380. /package/dist/cli-bundle/chunks/{chunk-DGKBWCMA.js.map → chunk-6IIVBC56.js.map} +0 -0
  381. /package/dist/cli-bundle/chunks/{chunk-D4GPNYYP.js.map → chunk-6OTZMORS.js.map} +0 -0
  382. /package/dist/cli-bundle/chunks/{chunk-JVRVXO6M.js.map → chunk-6PKA3SJQ.js.map} +0 -0
  383. /package/dist/cli-bundle/chunks/{close-many-AUHTVFUQ.js.map → chunk-6X5MZ5R2.js.map} +0 -0
  384. /package/dist/cli-bundle/chunks/{close-CU56F47E.js.map → chunk-76UBY2EE.js.map} +0 -0
  385. /package/dist/cli-bundle/chunks/{chunk-ZS2KPCJN.js.map → chunk-7QDSYUMF.js.map} +0 -0
  386. /package/dist/cli-bundle/chunks/{chunk-Z7TFPIJ6.js.map → chunk-7TQMR6LK.js.map} +0 -0
  387. /package/dist/cli-bundle/chunks/{chunk-AHA4POA6.js.map → chunk-ABRCOSDC.js.map} +0 -0
  388. /package/dist/cli-bundle/chunks/{chunk-KQJVTQVK.js.map → chunk-ANSJHDOZ.js.map} +0 -0
  389. /package/dist/cli-bundle/chunks/{close-many-ZQ2WP67J.js.map → chunk-B7SWOIP6.js.map} +0 -0
  390. /package/dist/cli-bundle/chunks/{chunk-HXTCZSAI.js.map → chunk-DBZVUJTK.js.map} +0 -0
  391. /package/dist/cli-bundle/chunks/{chunk-2QNOWOIB.js.map → chunk-DO5RGJXT.js.map} +0 -0
  392. /package/dist/cli-bundle/chunks/{chunk-MKONZ4UO.js.map → chunk-DRNJPEPQ.js.map} +0 -0
  393. /package/dist/cli-bundle/chunks/{chunk-H36FXA7B.js.map → chunk-DYEX6NFH.js.map} +0 -0
  394. /package/dist/cli-bundle/chunks/{chunk-GAJ7U7B4.js.map → chunk-ERL2YFJ2.js.map} +0 -0
  395. /package/dist/cli-bundle/chunks/{chunk-FPEYOFEF.js.map → chunk-F7PSHRNO.js.map} +0 -0
  396. /package/dist/cli-bundle/chunks/{chunk-UH7OLT6F.js.map → chunk-FDSBDNYE.js.map} +0 -0
  397. /package/dist/cli-bundle/chunks/{chunk-RQAY7C5T.js.map → chunk-FJZDA6MS.js.map} +0 -0
  398. /package/dist/cli-bundle/chunks/{chunk-B4TVNGRX.js.map → chunk-FO7GMJKG.js.map} +0 -0
  399. /package/dist/cli-bundle/chunks/{comments-UDUMKXL6.js.map → chunk-FRQ63VPB.js.map} +0 -0
  400. /package/dist/cli-bundle/chunks/{chunk-U252II47.js.map → chunk-FTQLW4JD.js.map} +0 -0
  401. /package/dist/cli-bundle/chunks/{chunk-AGD4VZXH.js.map → chunk-H2QBAKLQ.js.map} +0 -0
  402. /package/dist/cli-bundle/chunks/{chunk-CJVQ4XIG.js.map → chunk-HAMLIWAF.js.map} +0 -0
  403. /package/dist/cli-bundle/chunks/{chunk-7QOIQTPB.js.map → chunk-HLHSQ5CA.js.map} +0 -0
  404. /package/dist/cli-bundle/chunks/{chunk-AHC7J6XD.js.map → chunk-IA3YFTXT.js.map} +0 -0
  405. /package/dist/cli-bundle/chunks/{chunk-5ZCVF4WF.js.map → chunk-IAPHYPRL.js.map} +0 -0
  406. /package/dist/cli-bundle/chunks/{chunk-OCSQWIOW.js.map → chunk-IFZA4VB5.js.map} +0 -0
  407. /package/dist/cli-bundle/chunks/{chunk-4WMFM77X.js.map → chunk-J4NZOP3I.js.map} +0 -0
  408. /package/dist/cli-bundle/chunks/{chunk-MTNKSSSO.js.map → chunk-JL7WZ4O2.js.map} +0 -0
  409. /package/dist/cli-bundle/chunks/{chunk-AZ52LTCY.js.map → chunk-K7WNZ7KD.js.map} +0 -0
  410. /package/dist/cli-bundle/chunks/{chunk-2OLSXXIV.js.map → chunk-KADLSPIU.js.map} +0 -0
  411. /package/dist/cli-bundle/chunks/{chunk-RQKORMM4.js.map → chunk-KB726FMH.js.map} +0 -0
  412. /package/dist/cli-bundle/chunks/{chunk-TZTQ4TVV.js.map → chunk-M6ASXYCU.js.map} +0 -0
  413. /package/dist/cli-bundle/chunks/{chunk-WDDOAU7Z.js.map → chunk-M7EWN4TF.js.map} +0 -0
  414. /package/dist/cli-bundle/chunks/{chunk-327DSGW2.js.map → chunk-MD6ULIPJ.js.map} +0 -0
  415. /package/dist/cli-bundle/chunks/{chunk-M52DG2QJ.js.map → chunk-MQZ3PLCF.js.map} +0 -0
  416. /package/dist/cli-bundle/chunks/{chunk-GQ2CQNGI.js.map → chunk-N3CMP4NI.js.map} +0 -0
  417. /package/dist/cli-bundle/chunks/{chunk-J7SBFUZC.js.map → chunk-NAQYVWSQ.js.map} +0 -0
  418. /package/dist/cli-bundle/chunks/{chunk-U2GMYP3L.js.map → chunk-NKW36AMT.js.map} +0 -0
  419. /package/dist/cli-bundle/chunks/{chunk-FTQQAPRX.js.map → chunk-PHKP3AGR.js.map} +0 -0
  420. /package/dist/cli-bundle/chunks/{chunk-WVUXNIYO.js.map → chunk-Q37E63AM.js.map} +0 -0
  421. /package/dist/cli-bundle/chunks/{chunk-JVXV7ANV.js.map → chunk-Q7E6OYZK.js.map} +0 -0
  422. /package/dist/cli-bundle/chunks/{chunk-WVUYATII.js.map → chunk-QABYZYLU.js.map} +0 -0
  423. /package/dist/cli-bundle/chunks/{chunk-7TQPV7HR.js.map → chunk-QSPARJWF.js.map} +0 -0
  424. /package/dist/cli-bundle/chunks/{chunk-GTKILM6F.js.map → chunk-QZ7LT3XE.js.map} +0 -0
  425. /package/dist/cli-bundle/chunks/{chunk-L3VKY6R6.js.map → chunk-RA5AIAMP.js.map} +0 -0
  426. /package/dist/cli-bundle/chunks/{chunk-BJS27ALI.js.map → chunk-RGXD5JJR.js.map} +0 -0
  427. /package/dist/cli-bundle/chunks/{chunk-TSEPW2P6.js.map → chunk-RMF3IOYQ.js.map} +0 -0
  428. /package/dist/cli-bundle/chunks/{chunk-TGGTXC52.js.map → chunk-TH7U4KLY.js.map} +0 -0
  429. /package/dist/cli-bundle/chunks/{chunk-LP4UATP6.js.map → chunk-TWLDBKQU.js.map} +0 -0
  430. /package/dist/cli-bundle/chunks/{chunk-UK222BHQ.js.map → chunk-TZRTLMWM.js.map} +0 -0
  431. /package/dist/cli-bundle/chunks/{chunk-6E6S2X6S.js.map → chunk-UB2QYSTO.js.map} +0 -0
  432. /package/dist/cli-bundle/chunks/{chunk-S6CXUSYC.js.map → chunk-UGTVWL3E.js.map} +0 -0
  433. /package/dist/cli-bundle/chunks/{chunk-BNS6QHTZ.js.map → chunk-UJ4HJYWL.js.map} +0 -0
  434. /package/dist/cli-bundle/chunks/{chunk-BYVOEJPQ.js.map → chunk-UKUIIBDW.js.map} +0 -0
  435. /package/dist/cli-bundle/chunks/{chunk-SGDBVR7X.js.map → chunk-UVBA6F5A.js.map} +0 -0
  436. /package/dist/cli-bundle/chunks/{chunk-DZRZMBBF.js.map → chunk-VJTAEIPC.js.map} +0 -0
  437. /package/dist/cli-bundle/chunks/{chunk-74PWVJON.js.map → chunk-W6HZ55JO.js.map} +0 -0
  438. /package/dist/cli-bundle/chunks/{chunk-P7IFURWH.js.map → chunk-WPAWZW7S.js.map} +0 -0
  439. /package/dist/cli-bundle/chunks/{chunk-36LEOWSX.js.map → chunk-WQUEHPZB.js.map} +0 -0
  440. /package/dist/cli-bundle/chunks/{chunk-FCKJF7G2.js.map → chunk-WRKB56FC.js.map} +0 -0
  441. /package/dist/cli-bundle/chunks/{chunk-KR5EHAN4.js.map → chunk-X3GYR4P2.js.map} +0 -0
  442. /package/dist/cli-bundle/chunks/{chunk-OWW2KXOV.js.map → chunk-YQYG2V23.js.map} +0 -0
  443. /package/dist/cli-bundle/chunks/{chunk-G2SCT7BC.js.map → chunk-YVKE5ZDM.js.map} +0 -0
  444. /package/dist/cli-bundle/chunks/{chunk-QHIN4UTF.js.map → chunk-ZAYYDNB3.js.map} +0 -0
  445. /package/dist/cli-bundle/chunks/{comments-7D5VPBZI.js.map → chunk-ZHBI2AP7.js.map} +0 -0
  446. /package/dist/cli-bundle/chunks/{chunk-GNVBUNJQ.js.map → chunk-ZTRBSABY.js.map} +0 -0
  447. /package/dist/cli-bundle/chunks/{chunk-PY32KGQU.js.map → chunk-ZUKSZVBW.js.map} +0 -0
  448. /package/dist/cli-bundle/chunks/{copy-VFHECFBV.js.map → close-LZECOMHO.js.map} +0 -0
  449. /package/dist/cli-bundle/chunks/{copy-QJ6ZVWZV.js.map → close-RI4JQQHU.js.map} +0 -0
  450. /package/dist/cli-bundle/chunks/{create-FGMTTYOI.js.map → close-many-LY2XJ52M.js.map} +0 -0
  451. /package/dist/cli-bundle/chunks/{create-CE2X3SGF.js.map → close-many-ZHI6A5TN.js.map} +0 -0
  452. /package/dist/cli-bundle/chunks/{delete-L2GMMMPR.js.map → comments-35M273DN.js.map} +0 -0
  453. /package/dist/cli-bundle/chunks/{delete-2JXQCHHT.js.map → comments-AJWRTFZ5.js.map} +0 -0
  454. /package/dist/cli-bundle/chunks/{deps-FPXNLO6C.js.map → copy-GMXYKBXT.js.map} +0 -0
  455. /package/dist/cli-bundle/chunks/{deps-KTFI4RWD.js.map → copy-NPYM7M7U.js.map} +0 -0
  456. /package/dist/cli-bundle/chunks/{docs-VNURA275.js.map → create-F53OBTOU.js.map} +0 -0
  457. /package/dist/cli-bundle/chunks/{docs-AMAR4OHU.js.map → create-HU4Q7RJX.js.map} +0 -0
  458. /package/dist/cli-bundle/chunks/{files-JFHN7DYM.js.map → delete-GSDZLTRC.js.map} +0 -0
  459. /package/dist/cli-bundle/chunks/{files-UNFPZLTG.js.map → delete-ODRWJWAM.js.map} +0 -0
  460. /package/dist/cli-bundle/chunks/{focus-MI2UHBP4.js.map → deps-U57I7EAK.js.map} +0 -0
  461. /package/dist/cli-bundle/chunks/{focus-QFN2RRZ7.js.map → deps-WWB7P2GT.js.map} +0 -0
  462. /package/dist/cli-bundle/chunks/{history-compact-SAHT5D46.js.map → docs-G7N4E2JO.js.map} +0 -0
  463. /package/dist/cli-bundle/chunks/{history-compact-G34XMABV.js.map → docs-MQIY2ZQS.js.map} +0 -0
  464. /package/dist/cli-bundle/chunks/{history-redact-VAHGBUHI.js.map → files-TBZD7V6H.js.map} +0 -0
  465. /package/dist/cli-bundle/chunks/{history-redact-IFJDNKLZ.js.map → files-TTY6N2AV.js.map} +0 -0
  466. /package/dist/cli-bundle/chunks/{history-repair-DDYQXR43.js.map → focus-U5TRVCRS.js.map} +0 -0
  467. /package/dist/cli-bundle/chunks/{history-repair-NXLQTCVN.js.map → focus-XT6YVFFX.js.map} +0 -0
  468. /package/dist/cli-bundle/chunks/{learnings-5CZKAMBS.js.map → history-compact-KKVUWB4V.js.map} +0 -0
  469. /package/dist/cli-bundle/chunks/{learnings-VWJEKHEO.js.map → history-compact-M7GHYVFN.js.map} +0 -0
  470. /package/dist/cli-bundle/chunks/{notes-POMK37UI.js.map → history-redact-3DVZOILD.js.map} +0 -0
  471. /package/dist/cli-bundle/chunks/{notes-NGVJJJQO.js.map → history-redact-JIHZLHDP.js.map} +0 -0
  472. /package/dist/cli-bundle/chunks/{plan-YBNYNT3A.js.map → history-repair-ITDUMK4N.js.map} +0 -0
  473. /package/dist/cli-bundle/chunks/{plan-U6SQJUFI.js.map → history-repair-NAFCHLH7.js.map} +0 -0
  474. /package/dist/cli-bundle/chunks/{profile-JNKSU6EQ.js.map → learnings-FGO3NSFW.js.map} +0 -0
  475. /package/dist/cli-bundle/chunks/{profile-A2WPVG6I.js.map → learnings-SONGPSHI.js.map} +0 -0
  476. /package/dist/cli-bundle/chunks/{restore-AX6ZMGHZ.js.map → notes-BSD53H2W.js.map} +0 -0
  477. /package/dist/cli-bundle/chunks/{restore-IVS5XGYR.js.map → notes-NQ6RXVW6.js.map} +0 -0
  478. /package/dist/cli-bundle/chunks/{schema-R3U2REY4.js.map → plan-2NNEO46V.js.map} +0 -0
  479. /package/dist/cli-bundle/chunks/{schema-P2MF23JO.js.map → plan-AWLYGBNV.js.map} +0 -0
  480. /package/dist/cli-bundle/chunks/{update-YBIQESMH.js.map → profile-AAQUU6T3.js.map} +0 -0
  481. /package/dist/cli-bundle/chunks/{update-XYHF3YZF.js.map → profile-U725ATWZ.js.map} +0 -0
  482. /package/dist/cli-bundle/chunks/{register-mutation-3OXYXBKH.js.map → register-mutation-4FMGJJF7.js.map} +0 -0
  483. /package/dist/cli-bundle/chunks/{register-mutation-WK265BM7.js.map → register-mutation-UELYYOR7.js.map} +0 -0
  484. /package/dist/cli-bundle/chunks/{register-setup-CCK7CJVR.js.map → register-setup-5XNGKJ22.js.map} +0 -0
  485. /package/dist/cli-bundle/chunks/{register-setup-CPZBGSOJ.js.map → register-setup-ZTNY6S7R.js.map} +0 -0
  486. /package/dist/cli-bundle/chunks/{update-many-5HKVHFUL.js.map → restore-66GLMHIX.js.map} +0 -0
  487. /package/dist/cli-bundle/chunks/{update-many-F3CIV5SQ.js.map → restore-B3BAB6X2.js.map} +0 -0
@@ -1,8 +1,5 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3e01adc2-5ad0-5227-ae48-7af645558ad3")}catch(e){}}();
3
- import {
4
- isRemoteLinkedArtifactReference
5
- } from "./chunk-FUOK7JZ6.js";
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="10878e88-c016-568a-a007-cdc95cbb235d")}catch(e){}}();
6
3
  import {
7
4
  resolveAuthor
8
5
  } from "./chunk-CUFW7ITY.js";
@@ -11,7 +8,7 @@ import {
11
8
  createStdinTokenResolver,
12
9
  looksLikeGenericKeyValueEntry,
13
10
  parseCsvKv
14
- } from "./chunk-L4262MFB.js";
11
+ } from "./chunk-QK2ZN6UL.js";
15
12
  import {
16
13
  splitCommaList
17
14
  } from "./chunk-NETP4DY4.js";
@@ -21,7 +18,7 @@ import {
21
18
  mutateItem,
22
19
  readLocatedItem,
23
20
  readSettings
24
- } from "./chunk-TNGLCRKS.js";
21
+ } from "./chunk-GSEADLRH.js";
25
22
  import {
26
23
  EXIT_CODE,
27
24
  PmCliError,
@@ -29,13 +26,22 @@ import {
29
26
  getSettingsPath,
30
27
  pathExists,
31
28
  resolveItemTypeRegistry,
32
- resolvePmRoot
33
- } from "./chunk-TGG7YGMC.js";
29
+ resolvePmRoot,
30
+ resolveWorkspaceRoot
31
+ } from "./chunk-GXXC7QSK.js";
34
32
 
35
- // dist/cli/commands/linked-artifacts.js
33
+ // dist/sdk/linked-artifacts.js
36
34
  import fs from "node:fs/promises";
37
35
  import path from "node:path";
38
36
  import fg from "fast-glob";
37
+
38
+ // dist/core/validate/linked-artifact-reference.js
39
+ var REMOTE_ARTIFACT_REFERENCE_PATTERN = /^[a-z][a-z0-9+.-]+:\/\//i;
40
+ function isRemoteLinkedArtifactReference(path2) {
41
+ return REMOTE_ARTIFACT_REFERENCE_PATTERN.test(path2.trim());
42
+ }
43
+
44
+ // dist/sdk/linked-artifacts.js
39
45
  var LINKED_ARTIFACT_ADD_KEYS = ["path", "scope", "note"];
40
46
  var LINKED_ARTIFACT_ADD_GLOB_KEYS = [
41
47
  "pattern",
@@ -168,12 +174,26 @@ function applyPathMigrations(artifactPath, migrations) {
168
174
  function normalizeLinkedPath(value) {
169
175
  return value.split(path.sep).join("/");
170
176
  }
171
- async function expandAddGlobEntries(entries) {
177
+ function anchorLinkedPath(value, workspaceRoot, invocationRoot = process.cwd()) {
178
+ const trimmed = value.trim();
179
+ if (isRemoteLinkedArtifactReference(trimmed)) {
180
+ return trimmed;
181
+ }
182
+ if (path.isAbsolute(trimmed) || /^[A-Za-z]:[\\/]/.test(trimmed)) {
183
+ return normalizeLinkedPath(trimmed.replaceAll("\\", path.sep));
184
+ }
185
+ const invocationRelativeToWorkspace = path.relative(workspaceRoot, invocationRoot);
186
+ if (invocationRelativeToWorkspace.startsWith(`..${path.sep}`) || invocationRelativeToWorkspace === ".." || path.isAbsolute(invocationRelativeToWorkspace)) {
187
+ return normalizeLinkedPath(path.normalize(trimmed));
188
+ }
189
+ return normalizeLinkedPath(path.relative(workspaceRoot, path.resolve(invocationRoot, trimmed)));
190
+ }
191
+ async function expandAddGlobEntries(entries, workspaceRoot = process.cwd(), invocationRoot = process.cwd()) {
172
192
  const expanded = [];
173
193
  for (const entry of entries) {
174
194
  const absolutePattern = path.isAbsolute(entry.pattern);
175
195
  const matches = await fg(entry.pattern, {
176
- cwd: process.cwd(),
196
+ cwd: invocationRoot,
177
197
  absolute: absolutePattern,
178
198
  onlyFiles: true,
179
199
  dot: true,
@@ -181,7 +201,7 @@ async function expandAddGlobEntries(entries) {
181
201
  followSymbolicLinks: true
182
202
  });
183
203
  const sortedMatches = [
184
- ...new Set(matches.map((match) => normalizeLinkedPath(path.normalize(match))))
204
+ ...new Set(matches.map((match) => anchorLinkedPath(match, workspaceRoot, invocationRoot)))
185
205
  ].sort((left, right) => left.localeCompare(right));
186
206
  for (const matchedPath of sortedMatches) {
187
207
  expanded.push({
@@ -225,7 +245,7 @@ function dedupeLinkedArtifacts(artifacts) {
225
245
  note: entry.note?.trim() || void 0
226
246
  }));
227
247
  }
228
- async function validateLinkedPaths(paths) {
248
+ async function validateLinkedPaths(paths, workspaceRoot = process.cwd()) {
229
249
  const uniquePaths = [...new Set(paths)].sort((left, right) => left.localeCompare(right));
230
250
  const existingFiles = [];
231
251
  const missingPaths = [];
@@ -236,7 +256,7 @@ async function validateLinkedPaths(paths) {
236
256
  remoteReferences.push(relativePath.trim());
237
257
  continue;
238
258
  }
239
- const resolvedPath = path.isAbsolute(relativePath) ? relativePath : path.resolve(process.cwd(), relativePath);
259
+ const resolvedPath = path.isAbsolute(relativePath) ? relativePath : path.resolve(workspaceRoot, relativePath);
240
260
  try {
241
261
  const stats = await fs.stat(resolvedPath);
242
262
  if (stats.isFile()) {
@@ -304,13 +324,15 @@ async function buildLinkedArtifactResult(params) {
304
324
  changed: params.changed,
305
325
  count: params.artifacts.length,
306
326
  migrations_applied: params.migrationsApplied && params.migrationsApplied > 0 ? params.migrationsApplied : void 0,
307
- validation: params.options.validatePaths ? await validateLinkedPaths(paths) : void 0
327
+ validation: params.options.validatePaths ? await validateLinkedPaths(paths, params.workspaceRoot) : void 0
308
328
  };
309
329
  }
310
330
  async function runLinkedArtifacts(id, options, global, config) {
311
331
  const { metadataKey } = config;
312
332
  const stdinResolver = createStdinTokenResolver();
313
333
  const pmRoot = resolvePmRoot(process.cwd(), global.path);
334
+ const workspaceRoot = resolveWorkspaceRoot(pmRoot);
335
+ const invocationRoot = process.cwd();
314
336
  if (!await pathExists(getSettingsPath(pmRoot))) {
315
337
  throw new PmCliError(`Tracker is not initialized at ${pmRoot}. Run pm init first.`, EXIT_CODE.NOT_FOUND);
316
338
  }
@@ -320,11 +342,14 @@ async function runLinkedArtifacts(id, options, global, config) {
320
342
  const resolvedAddGlobs = await stdinResolver.resolveList(options.addGlob, "--add-glob");
321
343
  const resolvedRemoves = await stdinResolver.resolveList(options.remove, "--remove");
322
344
  const resolvedMigrations = await stdinResolver.resolveList(options.migrate, "--migrate");
323
- const parsedAdds = parseAddEntries(resolvedAdds, config.bareNoun);
345
+ const parsedAdds = parseAddEntries(resolvedAdds, config.bareNoun).map((entry) => ({
346
+ ...entry,
347
+ path: anchorLinkedPath(entry.path, workspaceRoot, invocationRoot)
348
+ }));
324
349
  const addGlobs = parseAddGlobEntries(resolvedAddGlobs);
325
- const expandedGlobAdds = await expandAddGlobEntries(addGlobs);
350
+ const expandedGlobAdds = await expandAddGlobEntries(addGlobs, workspaceRoot, invocationRoot);
326
351
  const adds = applyStandaloneNote([...parsedAdds, ...expandedGlobAdds], options.note, parsedAdds.length > 0 || addGlobs.length > 0);
327
- const removes = parseRemoveEntries(resolvedRemoves);
352
+ const removes = parseRemoveEntries(resolvedRemoves).map((entry) => anchorLinkedPath(entry, workspaceRoot, invocationRoot));
328
353
  const migrations = parseMigrateEntries(resolvedMigrations);
329
354
  const shouldMutate = adds.length > 0 || removes.length > 0 || migrations.length > 0;
330
355
  if (!shouldMutate) {
@@ -338,7 +363,8 @@ async function runLinkedArtifacts(id, options, global, config) {
338
363
  id: located.id,
339
364
  artifacts: artifacts2,
340
365
  changed: false,
341
- options
366
+ options,
367
+ workspaceRoot
342
368
  });
343
369
  }
344
370
  const author = resolveAuthor(options.author, settings.author_default);
@@ -376,7 +402,8 @@ async function runLinkedArtifacts(id, options, global, config) {
376
402
  artifacts,
377
403
  changed: true,
378
404
  migrationsApplied: migrationCount,
379
- options
405
+ options,
406
+ workspaceRoot
380
407
  });
381
408
  }
382
409
  function renameArtifactsResultKey(result, key) {
@@ -388,12 +415,23 @@ function renameArtifactsResultKey(result, key) {
388
415
  }
389
416
 
390
417
  export {
418
+ isRemoteLinkedArtifactReference,
419
+ ensureScope,
420
+ parseAddEntries,
421
+ parseAddGlobEntries,
422
+ parseRemoveEntries,
423
+ parseMigrateEntries,
424
+ applyPathMigrations,
391
425
  normalizeLinkedPath,
426
+ expandAddGlobEntries,
427
+ applyStandaloneNote,
428
+ artifactKey,
392
429
  sortLinkedArtifacts,
393
430
  dedupeLinkedArtifacts,
431
+ validateLinkedPaths,
394
432
  runLinkedArtifacts,
395
433
  renameArtifactsResultKey
396
434
  };
397
- //# sourceMappingURL=chunk-FCVVMAEX.js.map
435
+ //# sourceMappingURL=chunk-P6MYFH6K.js.map
398
436
 
399
- //# debugId=3e01adc2-5ad0-5227-ae48-7af645558ad3
437
+ //# debugId=10878e88-c016-568a-a007-cdc95cbb235d
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../sdk/linked-artifacts.ts","../../../../../../../../core/validate/linked-artifact-reference.ts"],"sourcesContent":["/**\n * @module sdk/linked-artifacts\n *\n * Implements the pm linked artifacts command surface and its agent-facing runtime behavior.\n */\nimport fs from \"node:fs/promises\";\nimport path from \"node:path\";\nimport fg from \"fast-glob\";\nimport { pathExists } from \"../core/fs/fs-utils.js\";\nimport { getActiveExtensionRegistrations } from \"../core/extensions/index.js\";\nimport {\n assertNoUnknownCsvKeys,\n createStdinTokenResolver,\n looksLikeGenericKeyValueEntry,\n parseCsvKv,\n} from \"../core/item/parse.js\";\nimport { resolveItemTypeRegistry } from \"../core/item/type-registry.js\";\nimport { isRemoteLinkedArtifactReference } from \"../core/validate/linked-artifact-reference.js\";\nimport { EXIT_CODE } from \"../core/shared/constants.js\";\nimport type { GlobalOptions } from \"../core/shared/command-types.js\";\nimport { PmCliError } from \"../core/shared/errors.js\";\nimport { splitCommaList } from \"../core/shared/split-comma-list.js\";\nimport {\n locateItem,\n mutateItem,\n readLocatedItem,\n} from \"../core/store/item-store.js\";\nimport {\n getSettingsPath,\n resolvePmRoot,\n resolveWorkspaceRoot,\n} from \"../core/store/paths.js\";\nimport { readSettings } from \"../core/store/settings.js\";\nimport { SCOPE_VALUES } from \"../types/index.js\";\nimport { resolveAuthor } from \"../core/shared/author.js\";\nimport type { LinkScope } from \"../types/index.js\";\n\n/** Restricts linked artifact values accepted by command, SDK, and storage contracts. */\nexport type LinkedArtifact = {\n /** Filesystem path used for path resolution. */\n path: string;\n /** Value that configures or reports scope for this contract. */\n scope: LinkScope;\n /** Value that configures or reports note for this contract. */\n note?: string;\n};\n\n/** Allowed CSV/markdown keys for each structured linked-artifact option (GH-258). */\nexport const LINKED_ARTIFACT_ADD_KEYS = [\"path\", \"scope\", \"note\"] as const;\n/** Public contract for linked artifact add glob keys, shared by SDK and presentation-layer consumers. */\nexport const LINKED_ARTIFACT_ADD_GLOB_KEYS = [\n \"pattern\",\n \"glob\",\n \"path\",\n \"scope\",\n \"note\",\n] as const;\n/** Public contract for linked artifact remove keys, shared by SDK and presentation-layer consumers. */\nexport const LINKED_ARTIFACT_REMOVE_KEYS = [\"path\"] as const;\n/** Public contract for linked artifact migrate keys, shared by SDK and presentation-layer consumers. */\nexport const LINKED_ARTIFACT_MIGRATE_KEYS = [\"from\", \"to\"] as const;\n/** Keys that are valid on --add but meaningless on --remove (GH-277). Rejected with audit-trail guidance (--message) rather than the generic unknown-key error so agents are not left believing a removal note was recorded. */\nconst LINKED_ARTIFACT_REMOVE_UNSUPPORTED_KEYS: ReadonlySet<string> = new Set([\n \"note\",\n \"scope\",\n]);\n\n/** Documents the linked artifact command options payload exchanged by command, SDK, and package integrations. */\nexport interface LinkedArtifactCommandOptions {\n /** Value that configures or reports add for this contract. */\n add?: string[];\n /** Value that configures or reports add glob for this contract. */\n addGlob?: string[];\n /** Value that configures or reports remove for this contract. */\n remove?: string[];\n /** Value that configures or reports migrate for this contract. */\n migrate?: string[];\n /** GH-170 (pm-pfnx): standalone note applied to every link added by --add / --add-glob in the same invocation. A per-entry embedded note (the `path=...,note=...` pair syntax) takes precedence over this flag. Requires at least one --add/--add-glob; rejected otherwise. */\n note?: string;\n /** Value that configures or reports list for this contract. */\n list?: boolean;\n /** Value that configures or reports append stable for this contract. */\n appendStable?: boolean;\n /** Value that configures or reports validate paths for this contract. */\n validatePaths?: boolean;\n /** Value that configures or reports author for this contract. */\n author?: string;\n /** Human-readable explanation suitable for logs and agent-facing output. */\n message?: string;\n /** Value that configures or reports force for this contract. */\n force?: boolean;\n}\n\n/** Documents the path migration payload exchanged by command, SDK, and package integrations. */\nexport interface PathMigration {\n /** Value that configures or reports from for this contract. */\n from: string;\n /** Value that configures or reports to for this contract. */\n to: string;\n}\n\n/** Documents the add glob entry payload exchanged by command, SDK, and package integrations. */\nexport interface AddGlobEntry {\n /** Value that configures or reports pattern for this contract. */\n pattern: string;\n /** Value that configures or reports scope for this contract. */\n scope: LinkScope;\n /** Value that configures or reports note for this contract. */\n note?: string;\n}\n\n/** Documents the linked path validation payload exchanged by command, SDK, and package integrations. */\nexport interface LinkedPathValidation {\n /** Value that configures or reports checked for this contract. */\n checked: number;\n /** Value that configures or reports existing files for this contract. */\n existing_files: string[];\n /** Value that configures or reports missing paths for this contract. */\n missing_paths: string[];\n /** Value that configures or reports non file paths for this contract. */\n non_file_paths: string[];\n /** Remote references (https:// URLs and other `scheme://` paths) recorded as links — most often a PR/issue/design-doc URL added via `pm docs --add`. These are not local files, so they bypass the existence probe and are reported here rather than counted as missing. */\n remote_references: string[];\n}\n\n/** Documents the linked artifact result payload exchanged by command, SDK, and package integrations. */\nexport interface LinkedArtifactResult {\n /** Stable identifier used to reference this record across commands and storage. */\n id: string;\n /** Value that configures or reports changed for this contract. */\n changed: boolean;\n /** Value that configures or reports count for this contract. */\n count: number;\n /** Value that configures or reports migrations applied for this contract. */\n migrations_applied?: number;\n /** Value that configures or reports validation for this contract. */\n validation?: LinkedPathValidation;\n /** Value that configures or reports artifacts for this contract. */\n artifacts: LinkedArtifact[];\n}\n\n/** Replaces the generic artifacts field with a resource-specific result key while retaining the remaining result contract. */\nexport type RenamedLinkedArtifactResult<\n Result extends LinkedArtifactResult,\n Key extends \"files\" | \"docs\",\n> = Omit<Result, \"artifacts\"> & { [Field in Key]: Result[\"artifacts\"] };\n\n/** Configuration that adapts the shared linked-artifact command core to a specific resource kind (files or docs) while preserving every behavioral detail of the original twin implementations. */\nexport interface LinkedArtifactKindConfig {\n /** Metadata key under which the artifacts are stored (e.g. \"files\" | \"docs\"). */\n metadataKey: \"files\" | \"docs\";\n /** Mutation op recorded in history (e.g. \"files_add\" | \"docs_add\"). */\n op: \"files_add\" | \"docs_add\";\n /** Noun used in the \"bare <noun> path\" --add usage error (e.g. \"file\" | \"doc\"). */\n bareNoun: \"file\" | \"doc\";\n /** Whether this kind honors the append-stable option. files supports it; docs always sorts and must never expose append-stable behavior. */\n supportsAppendStable: boolean;\n}\n\n/** Implements ensure scope for the public runtime surface of this module. */\nexport function ensureScope(raw: string | undefined): LinkScope {\n const value = (raw ?? \"project\") as LinkScope;\n if (!SCOPE_VALUES.includes(value)) {\n throw new PmCliError(\n `Invalid scope \"${raw}\". Valid scopes: ${SCOPE_VALUES.join(\", \")} (default: project).`,\n EXIT_CODE.USAGE,\n );\n }\n return value;\n}\n\n/** Implements looks like structured path entry for the public runtime surface of this module. */\nexport function looksLikeStructuredPathEntry(raw: string): boolean {\n if (raw.startsWith(\"```\") || raw.includes(\"\\n\")) {\n return true;\n }\n if (/^(?:[-*+]\\s+)?(?:path|scope|note)\\s*[:=]/i.test(raw)) {\n return true;\n }\n // A first-key typo (e.g. `lable=main,path=…`) must still be parsed so the\n // unknown key is rejected rather than swallowed as a bare path (GH-258).\n return looksLikeGenericKeyValueEntry(raw);\n}\n\nfunction expandBareCommaSeparatedAddEntries(raw: string[]): string[] {\n return raw.flatMap((entry) => {\n const trimmed = entry.trim();\n if (\n trimmed.length === 0 ||\n looksLikeStructuredPathEntry(trimmed) ||\n !trimmed.includes(\",\")\n ) {\n return [entry];\n }\n return splitCommaList(trimmed);\n });\n}\n\n/** Implements parse add entries for the public runtime surface of this module. */\nexport function parseAddEntries(\n raw: string[] | undefined,\n bareNoun: \"file\" | \"doc\",\n): LinkedArtifact[] {\n if (!raw) return [];\n return expandBareCommaSeparatedAddEntries(raw).map((entry) => {\n const trimmed = entry.trim();\n const kv = looksLikeStructuredPathEntry(trimmed)\n ? parseCsvKv(entry, \"--add\")\n : { path: trimmed };\n assertNoUnknownCsvKeys(kv, \"--add\", LINKED_ARTIFACT_ADD_KEYS);\n if (!kv.path) {\n throw new PmCliError(\n `--add requires path=<value> or a bare ${bareNoun} path`,\n EXIT_CODE.USAGE,\n );\n }\n return {\n path: kv.path,\n scope: ensureScope(kv.scope),\n note: kv.note?.trim() || undefined,\n };\n });\n}\n\n/** Implements parse add glob entries for the public runtime surface of this module. */\nexport function parseAddGlobEntries(raw: string[] | undefined): AddGlobEntry[] {\n if (!raw) return [];\n return raw.map((entry) => {\n const trimmed = entry.trim();\n if (!trimmed) {\n throw new PmCliError(\n \"--add-glob requires a glob pattern value\",\n EXIT_CODE.USAGE,\n );\n }\n if (\n trimmed.includes(\"=\") ||\n /^(?:[-*+]\\s+)?(?:pattern|glob|path)\\s*[:=]/i.test(trimmed) ||\n trimmed.startsWith(\"```\")\n ) {\n const kv = parseCsvKv(trimmed, \"--add-glob\");\n assertNoUnknownCsvKeys(kv, \"--add-glob\", LINKED_ARTIFACT_ADD_GLOB_KEYS);\n const pattern = kv.pattern?.trim() || kv.glob?.trim() || kv.path?.trim();\n if (!pattern) {\n throw new PmCliError(\n \"--add-glob key/value form requires pattern=<glob>\",\n EXIT_CODE.USAGE,\n );\n }\n return {\n pattern,\n scope: ensureScope(kv.scope),\n note: kv.note?.trim() || undefined,\n };\n }\n return {\n pattern: trimmed,\n scope: \"project\",\n };\n });\n}\n\n/** Implements parse remove entries for the public runtime surface of this module. */\nexport function parseRemoveEntries(raw: string[] | undefined): string[] {\n if (!raw) return [];\n return raw.map((entry) => {\n const trimmed = entry.trim();\n if (!trimmed) {\n throw new PmCliError(\"--remove requires a path value\", EXIT_CODE.USAGE);\n }\n if (\n trimmed.includes(\"=\") ||\n /^(?:[-*+]\\s+)?path\\s*[:=]/i.test(trimmed) ||\n trimmed.startsWith(\"```\")\n ) {\n const kv = parseCsvKv(trimmed, \"--remove\");\n // GH-277: --remove identifies an existing link by path only; it does not\n // attach per-link metadata. Reject the --add-only keys with guidance toward\n // the audit-trail path (--message) rather than the generic \"unrecognized\n // key\" error, which left agents believing they had recorded a removal note.\n const unsupportedRemoveKeys = Object.keys(kv).filter((key) =>\n LINKED_ARTIFACT_REMOVE_UNSUPPORTED_KEYS.has(key.toLowerCase()),\n );\n if (unsupportedRemoveKeys.length > 0) {\n throw new PmCliError(\n `--remove identifies a linked artifact by path only and does not accept ${unsupportedRemoveKeys\n .map((key) => `\"${key}\"`)\n .join(\n \", \",\n )}. Pass just the path (path=<value>, path:<value>, or a bare path); record removal context with --message \"<why removed>\".`,\n EXIT_CODE.USAGE,\n );\n }\n assertNoUnknownCsvKeys(kv, \"--remove\", LINKED_ARTIFACT_REMOVE_KEYS);\n if (!kv.path) {\n throw new PmCliError(\n \"--remove key/value form requires path=<value>\",\n EXIT_CODE.USAGE,\n );\n }\n return kv.path;\n }\n return trimmed;\n });\n}\n\n/** Implements parse migrate entries for the public runtime surface of this module. */\nexport function parseMigrateEntries(\n raw: string[] | undefined,\n): PathMigration[] {\n if (!raw) return [];\n return raw.map((entry) => {\n const kv = parseCsvKv(entry, \"--migrate\");\n assertNoUnknownCsvKeys(kv, \"--migrate\", LINKED_ARTIFACT_MIGRATE_KEYS);\n const from = kv.from?.trim();\n const to = kv.to?.trim();\n if (!from || !to) {\n throw new PmCliError(\n \"--migrate requires from=<value> and to=<value>\",\n EXIT_CODE.USAGE,\n );\n }\n return { from, to };\n });\n}\n\n/** Implements apply path migrations for the public runtime surface of this module. */\nexport function applyPathMigrations(\n artifactPath: string,\n migrations: PathMigration[],\n): string {\n let next = artifactPath;\n for (const migration of migrations) {\n if (next.startsWith(migration.from)) {\n next = `${migration.to}${next.slice(migration.from.length)}`;\n }\n }\n return next;\n}\n\n/** Implements normalize linked path for the public runtime surface of this module. */\nexport function normalizeLinkedPath(value: string): string {\n return value.split(path.sep).join(\"/\");\n}\n\n/** Anchor a local linked path to the project workspace while preserving remote references and absolute paths. */\nexport function anchorLinkedPath(\n value: string,\n workspaceRoot: string,\n invocationRoot: string = process.cwd(),\n): string {\n const trimmed = value.trim();\n if (isRemoteLinkedArtifactReference(trimmed)) {\n return trimmed;\n }\n if (path.isAbsolute(trimmed) || /^[A-Za-z]:[\\\\/]/.test(trimmed)) {\n return normalizeLinkedPath(trimmed.replaceAll(\"\\\\\", path.sep));\n }\n const invocationRelativeToWorkspace = path.relative(\n workspaceRoot,\n invocationRoot,\n );\n if (\n invocationRelativeToWorkspace.startsWith(`..${path.sep}`) ||\n invocationRelativeToWorkspace === \"..\" ||\n path.isAbsolute(invocationRelativeToWorkspace)\n ) {\n return normalizeLinkedPath(path.normalize(trimmed));\n }\n return normalizeLinkedPath(\n path.relative(workspaceRoot, path.resolve(invocationRoot, trimmed)),\n );\n}\n\n/** Implements expand add glob entries for the public runtime surface of this module. */\nexport async function expandAddGlobEntries(\n entries: AddGlobEntry[],\n workspaceRoot: string = process.cwd(),\n invocationRoot: string = process.cwd(),\n): Promise<LinkedArtifact[]> {\n const expanded: LinkedArtifact[] = [];\n for (const entry of entries) {\n const absolutePattern = path.isAbsolute(entry.pattern);\n const matches = await fg(entry.pattern, {\n cwd: invocationRoot,\n absolute: absolutePattern,\n onlyFiles: true,\n dot: true,\n unique: true,\n followSymbolicLinks: true,\n });\n const sortedMatches = [\n ...new Set(\n matches.map((match) =>\n anchorLinkedPath(match, workspaceRoot, invocationRoot),\n ),\n ),\n ].sort((left, right) => left.localeCompare(right));\n for (const matchedPath of sortedMatches) {\n expanded.push({\n path: matchedPath,\n scope: entry.scope,\n note: entry.note,\n });\n }\n }\n return expanded;\n}\n\n/** GH-170 (pm-pfnx): apply a standalone --note to the links added in this invocation. Semantics (documented on pm-pfnx): the note is attached to EVERY entry added via --add/--add-glob so a single flag annotates the whole batch predictably; a per-entry embedded `note=` wins over the standalone flag; and --note without any --add/--add-glob flag is a usage error because there is nothing to annotate (it never retro-edits existing links). `hasAddFlags` reflects flag presence, not match count, so a glob that legitimately matches zero files is not an error. */\nexport function applyStandaloneNote(\n adds: LinkedArtifact[],\n note: string | undefined,\n hasAddFlags: boolean,\n): LinkedArtifact[] {\n if (note === undefined) {\n return adds;\n }\n if (!hasAddFlags) {\n throw new PmCliError(\n \"--note requires --add or --add-glob in the same invocation (the note annotates the links being added)\",\n EXIT_CODE.USAGE,\n );\n }\n const trimmed = note.trim();\n if (trimmed.length === 0) {\n return adds;\n }\n return adds.map((entry) =>\n entry.note === undefined ? { ...entry, note: trimmed } : entry,\n );\n}\n\n/** Implements artifact key for the public runtime surface of this module. */\nexport function artifactKey(\n value: Pick<LinkedArtifact, \"path\" | \"scope\">,\n): string {\n return `${value.path}::${value.scope}`;\n}\n\n/** Implements sort linked artifacts for the public runtime surface of this module. */\nexport function sortLinkedArtifacts(\n artifacts: LinkedArtifact[],\n): LinkedArtifact[] {\n return [...artifacts].sort((left, right) => {\n const byPath = left.path.localeCompare(right.path);\n if (byPath !== 0) return byPath;\n return left.scope.localeCompare(right.scope);\n });\n}\n\n/** Implements dedupe linked artifacts for the public runtime surface of this module. */\nexport function dedupeLinkedArtifacts(\n artifacts: LinkedArtifact[],\n): LinkedArtifact[] {\n return [\n ...new Map(artifacts.map((entry) => [artifactKey(entry), entry])).values(),\n ].map((entry) => ({\n ...entry,\n note: entry.note?.trim() || undefined,\n }));\n}\n\n/** Implements validate linked paths for the public runtime surface of this module. */\nexport async function validateLinkedPaths(\n paths: string[],\n workspaceRoot: string = process.cwd(),\n): Promise<LinkedPathValidation> {\n const uniquePaths = [...new Set(paths)].sort((left, right) =>\n left.localeCompare(right),\n );\n const existingFiles: string[] = [];\n const missingPaths: string[] = [];\n const nonFilePaths: string[] = [];\n const remoteReferences: string[] = [];\n for (const relativePath of uniquePaths) {\n // Remote references (https:// PR/issue/design-doc URLs) are not local\n // files; report them separately (trimmed, to match buildFilesCheck's\n // output shape) instead of probing a meaningless path.\n if (isRemoteLinkedArtifactReference(relativePath)) {\n remoteReferences.push(relativePath.trim());\n continue;\n }\n const resolvedPath = path.isAbsolute(relativePath)\n ? relativePath\n : path.resolve(workspaceRoot, relativePath);\n try {\n const stats = await fs.stat(resolvedPath);\n if (stats.isFile()) {\n existingFiles.push(relativePath);\n } else {\n nonFilePaths.push(relativePath);\n }\n } catch (error: unknown) {\n if (\n typeof error === \"object\" &&\n error !== null &&\n \"code\" in error &&\n (error as { code?: string }).code === \"ENOENT\"\n ) {\n missingPaths.push(relativePath);\n continue;\n }\n nonFilePaths.push(relativePath);\n }\n }\n return {\n checked: uniquePaths.length,\n existing_files: existingFiles,\n missing_paths: missingPaths,\n non_file_paths: nonFilePaths,\n remote_references: remoteReferences,\n };\n}\n\nfunction applyLinkedArtifactMigrations(\n current: LinkedArtifact[],\n adds: LinkedArtifact[],\n removes: string[],\n migrations: PathMigration[],\n): { adds: LinkedArtifact[]; removes: string[]; count: number } {\n let count = 0;\n for (let index = 0; index < current.length; index += 1) {\n const migratedPath = applyPathMigrations(current[index].path, migrations);\n if (migratedPath !== current[index].path) {\n current[index] = { ...current[index], path: migratedPath };\n count += 1;\n }\n }\n const migratedAdds = adds.map((entry) => {\n const migratedPath = applyPathMigrations(entry.path, migrations);\n if (migratedPath !== entry.path) count += 1;\n return { ...entry, path: migratedPath };\n });\n return {\n adds: migratedAdds,\n removes: removes.map((entry) => applyPathMigrations(entry, migrations)),\n count,\n };\n}\n\nfunction mergeLinkedArtifactChanges(\n current: LinkedArtifact[],\n adds: LinkedArtifact[],\n removes: string[],\n appendStable: boolean,\n): LinkedArtifact[] {\n for (const add of adds) {\n if (\n !current.some(\n (entry) => entry.path === add.path && entry.scope === add.scope,\n )\n ) {\n current.push(add);\n }\n }\n if (removes.length > 0) {\n for (let index = current.length - 1; index >= 0; index -= 1) {\n if (removes.includes(current[index].path)) current.splice(index, 1);\n }\n }\n const deduped = dedupeLinkedArtifacts(current);\n return appendStable ? deduped : sortLinkedArtifacts(deduped);\n}\n\nasync function buildLinkedArtifactResult(params: {\n id: string;\n artifacts: LinkedArtifact[];\n changed: boolean;\n migrationsApplied?: number;\n options: LinkedArtifactCommandOptions;\n workspaceRoot: string;\n}): Promise<LinkedArtifactResult> {\n const paths = params.artifacts.map((entry) => entry.path);\n return {\n id: params.id,\n artifacts: params.artifacts,\n changed: params.changed,\n count: params.artifacts.length,\n migrations_applied:\n params.migrationsApplied && params.migrationsApplied > 0\n ? params.migrationsApplied\n : undefined,\n validation: params.options.validatePaths\n ? await validateLinkedPaths(paths, params.workspaceRoot)\n : undefined,\n };\n}\n\n/** Shared linked-artifact list/mutate command core used by runFiles and runDocs. The kind config selects metadata key, op, bare-path noun, and whether append-stable ordering is honored, preserving each twin's exact semantics. */\nexport async function runLinkedArtifacts(\n id: string,\n options: LinkedArtifactCommandOptions,\n global: GlobalOptions,\n config: LinkedArtifactKindConfig,\n): Promise<LinkedArtifactResult> {\n const { metadataKey } = config;\n const stdinResolver = createStdinTokenResolver();\n const pmRoot = resolvePmRoot(process.cwd(), global.path);\n const workspaceRoot = resolveWorkspaceRoot(pmRoot);\n const invocationRoot = process.cwd();\n if (!(await pathExists(getSettingsPath(pmRoot)))) {\n throw new PmCliError(\n `Tracker is not initialized at ${pmRoot}. Run pm init first.`,\n EXIT_CODE.NOT_FOUND,\n );\n }\n const settings = await readSettings(pmRoot);\n const typeRegistry = resolveItemTypeRegistry(\n settings,\n getActiveExtensionRegistrations(),\n );\n const resolvedAdds = await stdinResolver.resolveList(options.add, \"--add\");\n const resolvedAddGlobs = await stdinResolver.resolveList(\n options.addGlob,\n \"--add-glob\",\n );\n const resolvedRemoves = await stdinResolver.resolveList(\n options.remove,\n \"--remove\",\n );\n const resolvedMigrations = await stdinResolver.resolveList(\n options.migrate,\n \"--migrate\",\n );\n const parsedAdds = parseAddEntries(resolvedAdds, config.bareNoun).map(\n (entry) => ({\n ...entry,\n path: anchorLinkedPath(entry.path, workspaceRoot, invocationRoot),\n }),\n );\n const addGlobs = parseAddGlobEntries(resolvedAddGlobs);\n const expandedGlobAdds = await expandAddGlobEntries(\n addGlobs,\n workspaceRoot,\n invocationRoot,\n );\n const adds = applyStandaloneNote(\n [...parsedAdds, ...expandedGlobAdds],\n options.note,\n parsedAdds.length > 0 || addGlobs.length > 0,\n );\n const removes = parseRemoveEntries(resolvedRemoves).map((entry) =>\n anchorLinkedPath(entry, workspaceRoot, invocationRoot),\n );\n const migrations = parseMigrateEntries(resolvedMigrations);\n const shouldMutate =\n adds.length > 0 || removes.length > 0 || migrations.length > 0;\n\n if (!shouldMutate) {\n const located = await locateItem(\n pmRoot,\n id,\n settings.id_prefix,\n settings.item_format,\n typeRegistry.type_to_folder,\n );\n if (!located) {\n throw new PmCliError(`Item ${id} not found`, EXIT_CODE.NOT_FOUND);\n }\n const loaded = await readLocatedItem(located, { schema: settings.schema });\n const artifacts =\n ((loaded.document.metadata as Record<string, unknown>)[metadataKey] as\n | LinkedArtifact[]\n | undefined) ?? [];\n return buildLinkedArtifactResult({\n id: located.id,\n artifacts,\n changed: false,\n options,\n workspaceRoot,\n });\n }\n\n const author = resolveAuthor(options.author, settings.author_default);\n const result = await mutateItem({\n pmRoot,\n settings,\n id,\n op: config.op,\n author,\n message: options.message,\n force: options.force,\n mutate(document) {\n const metadata = document.metadata as Record<string, unknown>;\n const next = [\n ...((metadata[metadataKey] as LinkedArtifact[] | undefined) ?? []),\n ];\n const migrated = applyLinkedArtifactMigrations(\n next,\n adds,\n removes,\n migrations,\n );\n const normalized = mergeLinkedArtifactChanges(\n next,\n migrated.adds,\n migrated.removes,\n config.supportsAppendStable && options.appendStable === true,\n );\n if (normalized.length > 0) {\n metadata[metadataKey] = normalized;\n } else {\n delete metadata[metadataKey];\n }\n return {\n changedFields: [metadataKey],\n warnings:\n migrated.count > 0\n ? [`path_migrations_applied:${migrated.count}`]\n : [],\n };\n },\n });\n\n const artifacts =\n ((result.item as Record<string, unknown>)[metadataKey] as\n | LinkedArtifact[]\n | undefined) ?? [];\n const migrationWarning = result.warnings.find((warning) =>\n warning.startsWith(\"path_migrations_applied:\"),\n );\n const migrationCount = migrationWarning\n ? Number(migrationWarning.slice(\"path_migrations_applied:\".length))\n : 0;\n return buildLinkedArtifactResult({\n id: result.item.id,\n artifacts,\n changed: true,\n migrationsApplied: migrationCount,\n options,\n workspaceRoot,\n });\n}\n\n/** Re-key the generic `artifacts` field to the resource-specific name (files/docs) while preserving the original key order and presence so kind-specific result shapes (and their deterministic JSON key ordering) stay byte-identical. */\nexport function renameArtifactsResultKey<\n Result extends LinkedArtifactResult,\n const Key extends \"files\" | \"docs\",\n>(result: Result, key: Key): RenamedLinkedArtifactResult<Result, Key> {\n const out: Record<string, unknown> = {};\n for (const [field, value] of Object.entries(result)) {\n out[field === \"artifacts\" ? key : field] = value;\n }\n return out as RenamedLinkedArtifactResult<Result, Key>;\n}\n","/**\n * Remote-reference detection for linked artifacts (`pm files` / `pm docs`\n * `path` values).\n *\n * A linked artifact path is normally a workspace-relative or absolute local\n * filesystem path, but `pm docs --add` legitimately records *remote*\n * references too — most commonly an `https://` URL to a pull request, issue, or\n * external design doc. Such references are not local files, so they must never\n * be:\n * - probed with `fs.stat` for existence (the resolved path is meaningless),\n * - classified as `moved`/`deleted` by the stale-path classifier,\n * - counted among `missing_linked_paths` in `pm validate --check-files`, or\n * - pruned by `pm validate --prune-missing` — which would silently destroy an\n * intentionally-recorded reference (project management = context management).\n *\n * Pure module: no filesystem or network access — callers pass the stored path\n * string and branch on the boolean result.\n */\n\n/**\n * Matches an RFC 3986 URI that carries an authority component\n * (`scheme://…`) — e.g. `https://`, `http://`, `ftp://`, `ssh://`, `file://`.\n *\n * The scheme is required to be at least two characters so a Windows drive\n * prefix (`C:/…`, which is a single letter followed by a single slash and never\n * `://`) can never be mistaken for a remote reference. A relative or absolute\n * POSIX path (`src/api.ts`, `/dev/null`) and a UNC path (`//server/share`) all\n * lack the `scheme://` shape and are correctly treated as local.\n */\nconst REMOTE_ARTIFACT_REFERENCE_PATTERN = /^[a-z][a-z0-9+.-]+:\\/\\//i;\n\n/** Return `true` when a linked-artifact path is a remote reference (a URL with a `scheme://` authority) rather than a local filesystem path. Whitespace is trimmed before matching so a stored `\" https://…\"` is still recognized. */\nexport function isRemoteLinkedArtifactReference(path: string): boolean {\n return REMOTE_ARTIFACT_REFERENCE_PATTERN.test(path.trim());\n}\n"],"names":["path","artifacts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,OAAO,QAAQ;AACf,OAAO,UAAU;AACjB,OAAO,QAAQ;;;ACsBf,IAAM,oCAAoC;AAGpC,SAAU,gCAAgCA,OAAY;AAC1D,SAAO,kCAAkC,KAAKA,MAAK,KAAI,CAAE;AAC3D;;;ADcO,IAAM,2BAA2B,CAAC,QAAQ,SAAS,MAAM;AAEzD,IAAM,gCAAgC;EAC3C;EACA;EACA;EACA;EACA;;AAGK,IAAM,8BAA8B,CAAC,MAAM;AAE3C,IAAM,+BAA+B,CAAC,QAAQ,IAAI;AAEzD,IAAM,0CAA+D,oBAAI,IAAI;EAC3E;EACA;CACD;AA+FK,S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AAGM,SAAU,yBAGd,QAAgB,KAAQ;AACxB,QAAM,MAA+B,CAAA;AACrC,aAAW,CAAC,OAAO,KAAK,KAAK,OAAO,QAAQ,MAAM,GAAG;AACnD,QAAI,UAAU,cAAc,MAAM,KAAK,IAAI;EAC7C;AACA,SAAO;AACT","debugId":"10878e88-c016-568a-a007-cdc95cbb235d"}
@@ -5,7 +5,7 @@ import {
5
5
  lintProjectProfile,
6
6
  resolveProfileCatalog,
7
7
  resolveProfileEntry
8
- } from "./chunk-BYVOEJPQ.js";
8
+ } from "./chunk-UKUIIBDW.js";
9
9
  import {
10
10
  parseNestedSettingValue,
11
11
  readNestedSettingValue,
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-Q3K5XPAQ.js";
15
15
  import {
16
16
  ensureTypeFolderScaffold
17
- } from "./chunk-JYUGUXFW.js";
17
+ } from "./chunk-5CT5BW6E.js";
18
18
  import {
19
19
  normalizeAddFieldInput,
20
20
  normalizeAddStatusInput,
@@ -24,16 +24,16 @@ import {
24
24
  serializeStatusDefsFile,
25
25
  upsertField,
26
26
  upsertStatusDef
27
- } from "./chunk-2QNOWOIB.js";
27
+ } from "./chunk-DO5RGJXT.js";
28
28
  import {
29
29
  CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS
30
- } from "./chunk-XFEIASAC.js";
30
+ } from "./chunk-2QIQGYPW.js";
31
31
  import {
32
32
  normalizeAddTypeInput,
33
33
  parseItemTypesFile,
34
34
  serializeItemTypesFile,
35
35
  upsertItemType
36
- } from "./chunk-KQJVTQVK.js";
36
+ } from "./chunk-ANSJHDOZ.js";
37
37
  import {
38
38
  acquireLock,
39
39
  getActiveExtensionRegistrations,
@@ -42,7 +42,7 @@ import {
42
42
  resolveGovernanceKnobs,
43
43
  runActiveOnWriteHooks,
44
44
  writeSettings
45
- } from "./chunk-QXYKH56X.js";
45
+ } from "./chunk-T4BRCB6Z.js";
46
46
  import {
47
47
  DEFAULT_RUNTIME_SCHEMA_FILE_PATHS,
48
48
  EXIT_CODE,
@@ -54,7 +54,7 @@ import {
54
54
  readFileIfExists,
55
55
  resolvePmRoot,
56
56
  writeFileAtomic
57
- } from "./chunk-XY3CC3EM.js";
57
+ } from "./chunk-AFWZRL7M.js";
58
58
 
59
59
  // dist/cli/commands/profile.js
60
60
  import path2 from "node:path";
@@ -858,4 +858,4 @@ export {
858
858
  formatProfileLintHuman,
859
859
  formatProfileApplyHuman
860
860
  };
861
- //# sourceMappingURL=chunk-FTQQAPRX.js.map
861
+ //# sourceMappingURL=chunk-PHKP3AGR.js.map
@@ -9,7 +9,7 @@ import {
9
9
  replayToCanonicalItemDocument,
10
10
  replayToItemDocument,
11
11
  toReplayDocument
12
- } from "./chunk-XMI2TRY5.js";
12
+ } from "./chunk-4WREH7RT.js";
13
13
  import {
14
14
  acquireLock,
15
15
  appendHistoryEntry,
@@ -27,7 +27,7 @@ import {
27
27
  recordAfterCommandAffectedItem,
28
28
  runActiveOnWriteHooks,
29
29
  serializeItemDocument
30
- } from "./chunk-QXYKH56X.js";
30
+ } from "./chunk-T4BRCB6Z.js";
31
31
  import {
32
32
  EXIT_CODE,
33
33
  PmCliError,
@@ -39,7 +39,7 @@ import {
39
39
  resolveItemTypeRegistry,
40
40
  resolvePmRoot,
41
41
  writeFileAtomic
42
- } from "./chunk-XY3CC3EM.js";
42
+ } from "./chunk-AFWZRL7M.js";
43
43
 
44
44
  // dist/cli/commands/restore.js
45
45
  import jsonPatch from "fast-json-patch";
@@ -435,4 +435,4 @@ export {
435
435
  runRestore,
436
436
  _testOnlyRestoreCommand
437
437
  };
438
- //# sourceMappingURL=chunk-WVUXNIYO.js.map
438
+ //# sourceMappingURL=chunk-Q37E63AM.js.map
@@ -2,7 +2,7 @@
2
2
  !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c1b4d563-bce1-5e9f-aff1-8a185b0bb4e7")}catch(e){}}();
3
3
  import {
4
4
  toNonEmptyStringOrUndefined
5
- } from "./chunk-TGG7YGMC.js";
5
+ } from "./chunk-GXXC7QSK.js";
6
6
 
7
7
  // dist/core/governance/metadata-coverage.js
8
8
  function normalizeStatus(status, registry) {
@@ -257,6 +257,6 @@ export {
257
257
  computeMetadataCoverage,
258
258
  groupItemsByDimension
259
259
  };
260
- //# sourceMappingURL=chunk-JVXV7ANV.js.map
260
+ //# sourceMappingURL=chunk-Q7E6OYZK.js.map
261
261
 
262
262
  //# debugId=c1b4d563-bce1-5e9f-aff1-8a185b0bb4e7
@@ -2,14 +2,14 @@
2
2
  !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="fe0ee41b-7751-5f6f-8b29-c7985a08ea7f")}catch(e){}}();
3
3
  import {
4
4
  verifyHistoryChain
5
- } from "./chunk-YFGYDZRP.js";
5
+ } from "./chunk-2GA3NK35.js";
6
6
  import {
7
7
  hashDocument
8
- } from "./chunk-TNGLCRKS.js";
8
+ } from "./chunk-GSEADLRH.js";
9
9
  import {
10
10
  getHistoryPath,
11
11
  writeFileAtomic
12
- } from "./chunk-TGG7YGMC.js";
12
+ } from "./chunk-GXXC7QSK.js";
13
13
 
14
14
  // dist/core/history/drift-scan.js
15
15
  import fs from "node:fs/promises";
@@ -202,6 +202,6 @@ async function scanHistoryDrift(pmRoot, items, options = {}) {
202
202
  export {
203
203
  scanHistoryDrift
204
204
  };
205
- //# sourceMappingURL=chunk-WVUYATII.js.map
205
+ //# sourceMappingURL=chunk-QABYZYLU.js.map
206
206
 
207
207
  //# debugId=fe0ee41b-7751-5f6f-8b29-c7985a08ea7f
@@ -1,20 +1,10 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d072e444-3f3b-5233-9c18-84e0ec5b4b3d")}catch(e){}}();
3
- import {
4
- runFiles,
5
- runFilesDiscover
6
- } from "./chunk-OTZ3C2NE.js";
7
- import {
8
- runDocs
9
- } from "./chunk-D2LXG7WX.js";
10
- import {
11
- runDeps
12
- } from "./chunk-WKSFBBZT.js";
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e19a0696-a7e5-5c81-b240-12a4d7e779db")}catch(e){}}();
13
3
  import {
14
4
  assertHistoryRepairTarget,
15
5
  runHistoryRepair,
16
6
  runHistoryRepairAll
17
- } from "./chunk-AHC7J6XD.js";
7
+ } from "./chunk-IA3YFTXT.js";
18
8
  import {
19
9
  resolveStartTaskInProgressStatus,
20
10
  runClaim,
@@ -28,67 +18,77 @@ import {
28
18
  runTest,
29
19
  runTestAll,
30
20
  runValidate
31
- } from "./chunk-OKDBHOON.js";
21
+ } from "./chunk-MKL4CP2I.js";
22
+ import {
23
+ runFiles,
24
+ runFilesDiscover
25
+ } from "./chunk-TZ2PSLLT.js";
26
+ import {
27
+ runDocs
28
+ } from "./chunk-BN62TO2S.js";
29
+ import {
30
+ runDeps
31
+ } from "./chunk-L24HCJFC.js";
32
32
  import {
33
33
  runComments
34
- } from "./chunk-U2GMYP3L.js";
34
+ } from "./chunk-NKW36AMT.js";
35
35
  import {
36
36
  runCopy
37
- } from "./chunk-RQAY7C5T.js";
37
+ } from "./chunk-FJZDA6MS.js";
38
38
  import {
39
39
  runFocus
40
- } from "./chunk-J2WAWP4U.js";
40
+ } from "./chunk-2FNWQXZ2.js";
41
41
  import {
42
42
  runDelete
43
- } from "./chunk-AGD4VZXH.js";
43
+ } from "./chunk-H2QBAKLQ.js";
44
44
  import {
45
45
  runAppend
46
- } from "./chunk-DGKBWCMA.js";
46
+ } from "./chunk-6IIVBC56.js";
47
47
  import {
48
48
  runProfileApply,
49
49
  runProfileLint,
50
50
  runProfileList,
51
51
  runProfileShow
52
- } from "./chunk-6E6S2X6S.js";
52
+ } from "./chunk-UB2QYSTO.js";
53
53
  import {
54
54
  runNotes
55
- } from "./chunk-7TQPV7HR.js";
55
+ } from "./chunk-QSPARJWF.js";
56
56
  import {
57
57
  runLearnings
58
- } from "./chunk-SGDBVR7X.js";
58
+ } from "./chunk-UVBA6F5A.js";
59
59
  import {
60
60
  runCloseMany
61
- } from "./chunk-3WCGYH5Q.js";
61
+ } from "./chunk-3CMRNVTO.js";
62
62
  import {
63
63
  runUpdateMany
64
- } from "./chunk-J567OZJY.js";
64
+ } from "./chunk-X6BVXQ52.js";
65
65
  import {
66
66
  runRestore
67
- } from "./chunk-QHIN4UTF.js";
67
+ } from "./chunk-ZAYYDNB3.js";
68
68
  import {
69
69
  runUpdate
70
- } from "./chunk-VLFLRFJP.js";
70
+ } from "./chunk-CIOZ376P.js";
71
71
  import {
72
72
  runClose
73
- } from "./chunk-UK222BHQ.js";
73
+ } from "./chunk-TZRTLMWM.js";
74
74
  import {
75
75
  runPlan
76
- } from "./chunk-4SHJ5JS3.js";
76
+ } from "./chunk-44LNIULG.js";
77
77
  import {
78
78
  runHistoryCompact
79
- } from "./chunk-JVRVXO6M.js";
79
+ } from "./chunk-6PKA3SJQ.js";
80
80
  import {
81
81
  runHistoryRedact
82
- } from "./chunk-U252II47.js";
82
+ } from "./chunk-FTQLW4JD.js";
83
83
  import {
84
84
  runConfig,
85
85
  runUpgrade
86
- } from "./chunk-ZS2KPCJN.js";
86
+ } from "./chunk-7QDSYUMF.js";
87
87
  import {
88
88
  SCAFFOLD_CAPABILITIES,
89
89
  runExtension,
90
90
  runInit
91
- } from "./chunk-XDT2PSXA.js";
91
+ } from "./chunk-DVOLZJ3C.js";
92
92
  import {
93
93
  runSchemaAddField,
94
94
  runSchemaAddStatus,
@@ -103,23 +103,23 @@ import {
103
103
  runSchemaShow,
104
104
  runSchemaShowField,
105
105
  runSchemaShowStatus
106
- } from "./chunk-S6CXUSYC.js";
106
+ } from "./chunk-UGTVWL3E.js";
107
107
  import {
108
108
  runAggregate,
109
109
  runGet,
110
110
  runSearch
111
- } from "./chunk-RKGFUC4O.js";
111
+ } from "./chunk-CDJYP7OQ.js";
112
112
  import {
113
113
  runActivity,
114
114
  runContext,
115
115
  runNext
116
- } from "./chunk-ZTSV7P2T.js";
116
+ } from "./chunk-BPD26E3P.js";
117
117
  import {
118
118
  runList
119
- } from "./chunk-2PR4ZTRO.js";
119
+ } from "./chunk-6TTOHMTB.js";
120
120
  import {
121
121
  runHistory
122
- } from "./chunk-YFGYDZRP.js";
122
+ } from "./chunk-2GA3NK35.js";
123
123
  import {
124
124
  resolveRegisteredSearchProvider,
125
125
  resolveRegisteredVectorStoreAdapter
@@ -146,7 +146,7 @@ import {
146
146
  resolveSettingsWithSemanticRuntimeDefaults,
147
147
  resolveVectorStores,
148
148
  writeVectorizationStatusLedger
149
- } from "./chunk-4WMFM77X.js";
149
+ } from "./chunk-J4NZOP3I.js";
150
150
  import {
151
151
  ACTIVITY_FLAG_CONTRACTS,
152
152
  AGGREGATE_FLAG_CONTRACTS,
@@ -178,16 +178,16 @@ import {
178
178
  UPDATE_FLAG_CONTRACTS,
179
179
  UPDATE_MANY_FLAG_CONTRACTS,
180
180
  toCompletionFlagString
181
- } from "./chunk-GQ2CQNGI.js";
181
+ } from "./chunk-N3CMP4NI.js";
182
182
  import {
183
183
  runCreate
184
- } from "./chunk-56DX6QYG.js";
184
+ } from "./chunk-HL7V2PHX.js";
185
185
  import {
186
186
  parseTags
187
- } from "./chunk-L4262MFB.js";
187
+ } from "./chunk-QK2ZN6UL.js";
188
188
  import {
189
189
  projectMutationResult
190
- } from "./chunk-FPEYOFEF.js";
190
+ } from "./chunk-F7PSHRNO.js";
191
191
  import {
192
192
  acquireLock,
193
193
  appendHistoryEntry,
@@ -210,7 +210,7 @@ import {
210
210
  setActiveExtensionRegistrations,
211
211
  setActiveExtensionRenderers,
212
212
  setActiveExtensionServices
213
- } from "./chunk-TNGLCRKS.js";
213
+ } from "./chunk-GSEADLRH.js";
214
214
  import {
215
215
  BUILTIN_ITEM_TYPE_VALUES,
216
216
  EXIT_CODE,
@@ -238,7 +238,7 @@ import {
238
238
  resolveRuntimeStatusRegistry,
239
239
  toNonEmptyStringOrUndefined,
240
240
  writeFileAtomic
241
- } from "./chunk-TGG7YGMC.js";
241
+ } from "./chunk-GXXC7QSK.js";
242
242
 
243
243
  // dist/sdk/runtime.js
244
244
  import path3 from "node:path";
@@ -6393,6 +6393,6 @@ export {
6393
6393
  readRequiredString,
6394
6394
  runAction
6395
6395
  };
6396
- //# sourceMappingURL=chunk-QRRUGIJN.js.map
6396
+ //# sourceMappingURL=chunk-QASRVKUQ.js.map
6397
6397
 
6398
- //# debugId=d072e444-3f3b-5233-9c18-84e0ec5b4b3d
6398
+ //# debugId=e19a0696-a7e5-5c81-b240-12a4d7e779db