@unbrained/pm-cli 2026.7.14 → 2026.7.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (708) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/CHANGELOG.md +48 -0
  3. package/README.md +14 -11
  4. package/dist/cli/argv-utils.d.ts +1 -4
  5. package/dist/cli/argv-utils.js +3 -13
  6. package/dist/cli/argv-utils.js.map +1 -1
  7. package/dist/cli/bootstrap-args.d.ts +6 -4
  8. package/dist/cli/bootstrap-args.js +51 -16
  9. package/dist/cli/bootstrap-args.js.map +1 -1
  10. package/dist/cli/bundle-integrity.d.ts +49 -0
  11. package/dist/cli/bundle-integrity.js +111 -0
  12. package/dist/cli/bundle-integrity.js.map +1 -0
  13. package/dist/cli/commands/completion.js +7 -2
  14. package/dist/cli/commands/completion.js.map +1 -1
  15. package/dist/cli/commands/config.d.ts +6 -163
  16. package/dist/cli/commands/config.js +4 -1133
  17. package/dist/cli/commands/config.js.map +1 -1
  18. package/dist/cli/commands/context.d.ts +2 -4
  19. package/dist/cli/commands/context.js +10 -85
  20. package/dist/cli/commands/context.js.map +1 -1
  21. package/dist/cli/commands/create.d.ts +1 -0
  22. package/dist/cli/commands/create.js +3 -2
  23. package/dist/cli/commands/create.js.map +1 -1
  24. package/dist/cli/commands/extension/describe.d.ts +2 -91
  25. package/dist/cli/commands/extension/describe.js +4 -142
  26. package/dist/cli/commands/extension/describe.js.map +1 -1
  27. package/dist/cli/commands/extension/scaffold.d.ts +2 -36
  28. package/dist/cli/commands/extension/scaffold.js +4 -2435
  29. package/dist/cli/commands/extension/scaffold.js.map +1 -1
  30. package/dist/cli/commands/extension/shared.d.ts +2 -28
  31. package/dist/cli/commands/extension/shared.js +4 -130
  32. package/dist/cli/commands/extension/shared.js.map +1 -1
  33. package/dist/cli/commands/extension.d.ts +3 -400
  34. package/dist/cli/commands/extension.js +4 -2183
  35. package/dist/cli/commands/extension.js.map +1 -1
  36. package/dist/cli/commands/gc.d.ts +6 -56
  37. package/dist/cli/commands/gc.js +4 -270
  38. package/dist/cli/commands/gc.js.map +1 -1
  39. package/dist/cli/commands/get.d.ts +18 -5
  40. package/dist/cli/commands/get.js +117 -58
  41. package/dist/cli/commands/get.js.map +1 -1
  42. package/dist/cli/commands/health.d.ts +6 -184
  43. package/dist/cli/commands/health.js +4 -1747
  44. package/dist/cli/commands/health.js.map +1 -1
  45. package/dist/cli/commands/history-compact.d.ts +4 -139
  46. package/dist/cli/commands/history-compact.js +5 -510
  47. package/dist/cli/commands/history-compact.js.map +1 -1
  48. package/dist/cli/commands/history-redact.d.ts +8 -120
  49. package/dist/cli/commands/history-redact.js +6 -581
  50. package/dist/cli/commands/history-redact.js.map +1 -1
  51. package/dist/cli/commands/history-repair.d.ts +7 -89
  52. package/dist/cli/commands/history-repair.js +5 -257
  53. package/dist/cli/commands/history-repair.js.map +1 -1
  54. package/dist/cli/commands/history.d.ts +1 -2
  55. package/dist/cli/commands/history.js +6 -48
  56. package/dist/cli/commands/history.js.map +1 -1
  57. package/dist/cli/commands/index.d.ts +1 -0
  58. package/dist/cli/commands/index.js +3 -2
  59. package/dist/cli/commands/index.js.map +1 -1
  60. package/dist/cli/commands/init-agent-guidance.d.ts +6 -113
  61. package/dist/cli/commands/init-agent-guidance.js +4 -431
  62. package/dist/cli/commands/init-agent-guidance.js.map +1 -1
  63. package/dist/cli/commands/init.d.ts +6 -181
  64. package/dist/cli/commands/init.js +4 -690
  65. package/dist/cli/commands/init.js.map +1 -1
  66. package/dist/cli/commands/next.js +3 -3
  67. package/dist/cli/commands/next.js.map +1 -1
  68. package/dist/cli/commands/profile.d.ts +4 -174
  69. package/dist/cli/commands/profile.js +4 -425
  70. package/dist/cli/commands/profile.js.map +1 -1
  71. package/dist/cli/commands/restore.d.ts +4 -19
  72. package/dist/cli/commands/restore.js +9 -158
  73. package/dist/cli/commands/restore.js.map +1 -1
  74. package/dist/cli/commands/schema.d.ts +7 -507
  75. package/dist/cli/commands/schema.js +5 -1254
  76. package/dist/cli/commands/schema.js.map +1 -1
  77. package/dist/cli/commands/test.d.ts +2 -4
  78. package/dist/cli/commands/test.js +7 -97
  79. package/dist/cli/commands/test.js.map +1 -1
  80. package/dist/cli/commands/validate.d.ts +9 -249
  81. package/dist/cli/commands/validate.js +9 -2150
  82. package/dist/cli/commands/validate.js.map +1 -1
  83. package/dist/cli/extension-command-help.js +18 -4
  84. package/dist/cli/extension-command-help.js.map +1 -1
  85. package/dist/cli/extension-command-options.js +3 -3
  86. package/dist/cli/extension-command-options.js.map +1 -1
  87. package/dist/cli/help-content.js +7 -3
  88. package/dist/cli/help-content.js.map +1 -1
  89. package/dist/cli/main.js +20 -30
  90. package/dist/cli/main.js.map +1 -1
  91. package/dist/cli/register-list-query.js +4 -2
  92. package/dist/cli/register-list-query.js.map +1 -1
  93. package/dist/cli/register-mutation.js +11 -3
  94. package/dist/cli/register-mutation.js.map +1 -1
  95. package/dist/cli/register-setup.js +4 -2
  96. package/dist/cli/register-setup.js.map +1 -1
  97. package/dist/cli/registration-helpers.js +3 -2
  98. package/dist/cli/registration-helpers.js.map +1 -1
  99. package/dist/cli-bundle/bundle-manifest.json +782 -0
  100. package/dist/cli-bundle/chunks/{append-PVZJDM6J.js → append-OJQFUQ4T.js} +5 -5
  101. package/dist/cli-bundle/chunks/append-UZVHUO74.js +11 -0
  102. package/dist/cli-bundle/chunks/{chunk-MQZ3PLCF.js → chunk-2IFFUZLC.js} +2 -2
  103. package/dist/cli-bundle/chunks/{chunk-P6MYFH6K.js → chunk-2JKGO6QX.js} +4 -4
  104. package/dist/cli-bundle/chunks/{chunk-X3GYR4P2.js → chunk-2NCIPMQP.js} +2 -2
  105. package/dist/cli-bundle/chunks/{chunk-Q7E6OYZK.js → chunk-2VPAVL7O.js} +2 -2
  106. package/dist/cli-bundle/chunks/{chunk-DRNJPEPQ.js → chunk-2WSE6PO2.js} +4 -4
  107. package/dist/cli-bundle/chunks/{chunk-FDSBDNYE.js → chunk-34L5OT3Y.js} +2 -2
  108. package/dist/cli-bundle/chunks/{chunk-TH7U4KLY.js → chunk-3AUGG2DP.js} +3 -3
  109. package/dist/cli-bundle/chunks/{chunk-NKW36AMT.js → chunk-3CLU2XZO.js} +4 -4
  110. package/dist/cli-bundle/chunks/{chunk-N3CMP4NI.js → chunk-3S5QVM5H.js} +43 -7
  111. package/dist/cli-bundle/chunks/chunk-3S5QVM5H.js.map +1 -0
  112. package/dist/cli-bundle/chunks/chunk-3U7ZR6M4.js +64 -0
  113. package/dist/cli-bundle/chunks/chunk-3U7ZR6M4.js.map +7 -0
  114. package/dist/cli-bundle/chunks/{chunk-ABRCOSDC.js → chunk-3WM75PWC.js} +3 -3
  115. package/dist/cli-bundle/chunks/chunk-4223PVZT.js +121 -0
  116. package/dist/cli-bundle/chunks/chunk-4223PVZT.js.map +7 -0
  117. package/dist/cli-bundle/chunks/{chunk-5URI7TPJ.js → chunk-4XQ3BDV4.js} +281 -164
  118. package/dist/cli-bundle/chunks/chunk-4XQ3BDV4.js.map +7 -0
  119. package/dist/cli-bundle/chunks/{chunk-X6BVXQ52.js → chunk-5JLUII3O.js} +13 -13
  120. package/dist/cli-bundle/chunks/{chunk-MKL4CP2I.js → chunk-5ZSLZLDN.js} +631 -246
  121. package/dist/cli-bundle/chunks/chunk-5ZSLZLDN.js.map +1 -0
  122. package/dist/cli-bundle/chunks/{chunk-Q37E63AM.js → chunk-6CFNAVTF.js} +21 -141
  123. package/dist/cli-bundle/chunks/chunk-6CFNAVTF.js.map +7 -0
  124. package/dist/cli-bundle/chunks/{chunk-3TL7WOEF.js → chunk-6N2VXVTQ.js} +2 -2
  125. package/dist/cli-bundle/chunks/{chunk-ERL2YFJ2.js → chunk-6S3YSUYG.js} +3 -3
  126. package/dist/cli-bundle/chunks/{chunk-ZUKSZVBW.js → chunk-7B67ZL4N.js} +8 -7
  127. package/dist/cli-bundle/chunks/chunk-7B67ZL4N.js.map +7 -0
  128. package/dist/cli-bundle/chunks/{chunk-IA3YFTXT.js → chunk-7PIWCHTW.js} +11 -13
  129. package/dist/cli-bundle/chunks/chunk-7PIWCHTW.js.map +1 -0
  130. package/dist/cli-bundle/chunks/{chunk-BPD26E3P.js → chunk-7Z4LKRS4.js} +291 -81
  131. package/dist/cli-bundle/chunks/chunk-7Z4LKRS4.js.map +1 -0
  132. package/dist/cli-bundle/chunks/{chunk-IFZA4VB5.js → chunk-AHVTB5I5.js} +4 -4
  133. package/dist/cli-bundle/chunks/{chunk-DO5RGJXT.js → chunk-APRVSW2O.js} +3 -3
  134. package/dist/cli-bundle/chunks/{chunk-NAQYVWSQ.js → chunk-B7PE22W6.js} +4 -4
  135. package/dist/cli-bundle/chunks/{chunk-MD6ULIPJ.js → chunk-BCOFWYW4.js} +3 -3
  136. package/dist/cli-bundle/chunks/{chunk-KADLSPIU.js → chunk-BEP7WJA2.js} +4 -4
  137. package/dist/cli-bundle/chunks/chunk-BKVG6XOA.js +1114 -0
  138. package/dist/cli-bundle/chunks/chunk-BKVG6XOA.js.map +7 -0
  139. package/dist/cli-bundle/chunks/{chunk-AFWZRL7M.js → chunk-BSEQUTQP.js} +2 -2
  140. package/dist/cli-bundle/chunks/{chunk-AFWZRL7M.js.map → chunk-BSEQUTQP.js.map} +2 -2
  141. package/dist/cli-bundle/chunks/{chunk-OBDLEQG5.js → chunk-CRVF2JDM.js} +10 -10
  142. package/dist/cli-bundle/chunks/{chunk-FJZDA6MS.js → chunk-DM4H7FP4.js} +3 -3
  143. package/dist/cli-bundle/chunks/chunk-DUT67M43.js +5 -0
  144. package/dist/cli-bundle/chunks/{chunk-44LNIULG.js → chunk-DYH63FX7.js} +4 -4
  145. package/dist/cli-bundle/chunks/{chunk-LWTIRS3Y.js → chunk-E2OJMKML.js} +306 -82
  146. package/dist/cli-bundle/chunks/chunk-E2OJMKML.js.map +7 -0
  147. package/dist/cli-bundle/chunks/{chunk-HAMLIWAF.js → chunk-EAB64KLB.js} +4 -4
  148. package/dist/cli-bundle/chunks/{chunk-CIOZ376P.js → chunk-EACOH7AU.js} +10 -10
  149. package/dist/cli-bundle/chunks/{chunk-HL7V2PHX.js → chunk-EH2OPHBI.js} +10 -10
  150. package/dist/cli-bundle/chunks/{chunk-HL7V2PHX.js.map → chunk-EH2OPHBI.js.map} +1 -1
  151. package/dist/cli-bundle/chunks/{chunk-QK2ZN6UL.js → chunk-EJEXHTY5.js} +2 -2
  152. package/dist/cli-bundle/chunks/{chunk-WQUEHPZB.js → chunk-EYLCSJAI.js} +2 -2
  153. package/dist/cli-bundle/chunks/{chunk-655STMGA.js → chunk-FMBNM2EN.js} +2 -2
  154. package/dist/cli-bundle/chunks/{chunk-RMF3IOYQ.js → chunk-FNSPG7MU.js} +12 -12
  155. package/dist/cli-bundle/chunks/{chunk-5CT5BW6E.js → chunk-GM5QHQU6.js} +46 -40
  156. package/dist/cli-bundle/chunks/chunk-GM5QHQU6.js.map +7 -0
  157. package/dist/cli-bundle/chunks/{chunk-FTQLW4JD.js → chunk-GOSLKLFE.js} +418 -24
  158. package/dist/cli-bundle/chunks/chunk-GOSLKLFE.js.map +1 -0
  159. package/dist/cli-bundle/chunks/{chunk-KB726FMH.js → chunk-H2Z3FYXQ.js} +4 -4
  160. package/dist/cli-bundle/chunks/chunk-H3EIEWGR.js +162 -0
  161. package/dist/cli-bundle/chunks/chunk-H3EIEWGR.js.map +1 -0
  162. package/dist/cli-bundle/chunks/{chunk-2QIQGYPW.js → chunk-H5APFTHZ.js} +53 -10
  163. package/dist/cli-bundle/chunks/chunk-H5APFTHZ.js.map +7 -0
  164. package/dist/cli-bundle/chunks/chunk-HDH3JUGG.js +118 -0
  165. package/dist/cli-bundle/chunks/chunk-HDH3JUGG.js.map +1 -0
  166. package/dist/cli-bundle/chunks/{chunk-ZAYYDNB3.js → chunk-HO4KXD6I.js} +22 -142
  167. package/dist/cli-bundle/chunks/chunk-HO4KXD6I.js.map +1 -0
  168. package/dist/cli-bundle/chunks/{chunk-ILLUE5DI.js → chunk-HYB5AZ63.js} +203 -62
  169. package/dist/cli-bundle/chunks/{chunk-ILLUE5DI.js.map → chunk-HYB5AZ63.js.map} +3 -3
  170. package/dist/cli-bundle/chunks/{chunk-BN62TO2S.js → chunk-IA5FKNII.js} +2 -2
  171. package/dist/cli-bundle/chunks/{chunk-JL7WZ4O2.js → chunk-IG3SWA4A.js} +33 -9
  172. package/dist/cli-bundle/chunks/chunk-IG3SWA4A.js.map +7 -0
  173. package/dist/cli-bundle/chunks/{chunk-W6HZ55JO.js → chunk-IJIICKVW.js} +2 -2
  174. package/dist/cli-bundle/chunks/{chunk-IGED7NH2.js → chunk-ILX33QXL.js} +668 -251
  175. package/dist/cli-bundle/chunks/chunk-ILX33QXL.js.map +7 -0
  176. package/dist/cli-bundle/chunks/{chunk-UGTVWL3E.js → chunk-INU6DKT5.js} +47 -41
  177. package/dist/cli-bundle/chunks/chunk-INU6DKT5.js.map +1 -0
  178. package/dist/cli-bundle/chunks/{chunk-UB2QYSTO.js → chunk-J5AOEGDC.js} +26 -18
  179. package/dist/cli-bundle/chunks/chunk-J5AOEGDC.js.map +1 -0
  180. package/dist/cli-bundle/chunks/{chunk-4DY4KPQI.js → chunk-J6364LFM.js} +1330 -937
  181. package/dist/cli-bundle/chunks/chunk-J6364LFM.js.map +7 -0
  182. package/dist/cli-bundle/chunks/{chunk-DVOLZJ3C.js → chunk-J6EY5V4N.js} +1295 -939
  183. package/dist/cli-bundle/chunks/chunk-J6EY5V4N.js.map +1 -0
  184. package/dist/cli-bundle/chunks/chunk-JFTKLTEF.js +1097 -0
  185. package/dist/cli-bundle/chunks/chunk-JFTKLTEF.js.map +1 -0
  186. package/dist/cli-bundle/chunks/{chunk-M7EWN4TF.js → chunk-JOUQZENX.js} +3 -3
  187. package/dist/cli-bundle/chunks/{chunk-J4NZOP3I.js → chunk-JXQUXVMI.js} +9 -8
  188. package/dist/cli-bundle/chunks/chunk-JXQUXVMI.js.map +1 -0
  189. package/dist/cli-bundle/chunks/{chunk-2FNWQXZ2.js → chunk-JYFOV7FC.js} +4 -4
  190. package/dist/cli-bundle/chunks/{chunk-HLHSQ5CA.js → chunk-K2X6U4UA.js} +4 -4
  191. package/dist/cli-bundle/chunks/{chunk-6OTZMORS.js → chunk-K3WII2ME.js} +27 -27
  192. package/dist/cli-bundle/chunks/chunk-K3WII2ME.js.map +7 -0
  193. package/dist/cli-bundle/chunks/{chunk-M6ASXYCU.js → chunk-KG44YSKD.js} +4 -4
  194. package/dist/cli-bundle/chunks/{chunk-YVKE5ZDM.js → chunk-KPMKHGEA.js} +4 -4
  195. package/dist/cli-bundle/chunks/{chunk-QASRVKUQ.js → chunk-LPYWLWDS.js} +257 -163
  196. package/dist/cli-bundle/chunks/chunk-LPYWLWDS.js.map +1 -0
  197. package/dist/cli-bundle/chunks/{chunk-RGXD5JJR.js → chunk-LSG2U345.js} +19 -12
  198. package/dist/cli-bundle/chunks/chunk-LSG2U345.js.map +7 -0
  199. package/dist/cli-bundle/chunks/chunk-MIQDDLB5.js +5 -0
  200. package/dist/cli-bundle/chunks/{chunk-UJ4HJYWL.js → chunk-NLDFBC6J.js} +2 -2
  201. package/dist/cli-bundle/chunks/{chunk-WRKB56FC.js → chunk-NP22ERDF.js} +3 -3
  202. package/dist/cli-bundle/chunks/{chunk-YQYG2V23.js → chunk-NU3IMIEA.js} +2 -2
  203. package/dist/cli-bundle/chunks/{chunk-3I3LRT2G.js → chunk-NVPZIJVR.js} +2 -2
  204. package/dist/cli-bundle/chunks/{chunk-JAF4TUQ7.js → chunk-ODALILG3.js} +2 -2
  205. package/dist/cli-bundle/chunks/{chunk-CDJYP7OQ.js → chunk-ONG5V5CI.js} +190 -63
  206. package/dist/cli-bundle/chunks/chunk-ONG5V5CI.js.map +1 -0
  207. package/dist/cli-bundle/chunks/{chunk-QZ7LT3XE.js → chunk-ONREO4ST.js} +3 -3
  208. package/dist/cli-bundle/chunks/chunk-OW4JWD5M.js +61 -0
  209. package/dist/cli-bundle/chunks/chunk-OW4JWD5M.js.map +1 -0
  210. package/dist/cli-bundle/chunks/{chunk-3CMRNVTO.js → chunk-P74IZQ7A.js} +12 -12
  211. package/dist/cli-bundle/chunks/chunk-PENXZX3U.js +172 -0
  212. package/dist/cli-bundle/chunks/chunk-PENXZX3U.js.map +7 -0
  213. package/dist/cli-bundle/chunks/{chunk-ZTRBSABY.js → chunk-PGY23YTC.js} +3 -3
  214. package/dist/cli-bundle/chunks/{chunk-H2QBAKLQ.js → chunk-PMOSXADO.js} +3 -3
  215. package/dist/cli-bundle/chunks/chunk-PNTULOGU.js +9 -0
  216. package/dist/cli-bundle/chunks/{chunk-GSEADLRH.js → chunk-Q7A43DS4.js} +2 -2
  217. package/dist/cli-bundle/chunks/{chunk-QSPARJWF.js → chunk-QEHQ2GVG.js} +2 -2
  218. package/dist/cli-bundle/chunks/{chunk-VJTAEIPC.js → chunk-QIPLHNP7.js} +7 -7
  219. package/dist/cli-bundle/chunks/{chunk-GXXC7QSK.js → chunk-QKECXBBG.js} +3 -3
  220. package/dist/cli-bundle/chunks/{chunk-GXXC7QSK.js.map → chunk-QKECXBBG.js.map} +1 -1
  221. package/dist/cli-bundle/chunks/{chunk-K7WNZ7KD.js → chunk-QKJGPFAF.js} +3 -3
  222. package/dist/cli-bundle/chunks/{chunk-F7PSHRNO.js → chunk-QKXHFPYM.js} +27 -10
  223. package/dist/cli-bundle/chunks/chunk-QKXHFPYM.js.map +1 -0
  224. package/dist/cli-bundle/chunks/{chunk-ZNP64HOW.js → chunk-RLCHOOHC.js} +2 -2
  225. package/dist/cli-bundle/chunks/{chunk-IAPHYPRL.js → chunk-RMLWNPH2.js} +2 -2
  226. package/dist/cli-bundle/chunks/{chunk-UVBA6F5A.js → chunk-RRM5JYJC.js} +2 -2
  227. package/dist/cli-bundle/chunks/{chunk-6IIVBC56.js → chunk-S6MQESFR.js} +4 -4
  228. package/dist/cli-bundle/chunks/{chunk-QABYZYLU.js → chunk-SDQLJWBO.js} +4 -4
  229. package/dist/cli-bundle/chunks/{chunk-ANSJHDOZ.js → chunk-SELVXEZK.js} +2 -2
  230. package/dist/cli-bundle/chunks/{chunk-DYEX6NFH.js → chunk-TD3LVC7D.js} +438 -23
  231. package/dist/cli-bundle/chunks/chunk-TD3LVC7D.js.map +7 -0
  232. package/dist/cli-bundle/chunks/{chunk-WD6MSYMP.js → chunk-TKOVBP6C.js} +2 -2
  233. package/dist/cli-bundle/chunks/{chunk-TZ2PSLLT.js → chunk-TQSZFPIS.js} +4 -4
  234. package/dist/cli-bundle/chunks/{chunk-WPAWZW7S.js → chunk-TSMHDIW4.js} +2 -2
  235. package/dist/cli-bundle/chunks/{chunk-TZRTLMWM.js → chunk-UFXU44HV.js} +4 -4
  236. package/dist/cli-bundle/chunks/{chunk-TWLDBKQU.js → chunk-ULTHRDBP.js} +3 -3
  237. package/dist/cli-bundle/chunks/{chunk-OI4S4KCI.js → chunk-UMOPHQSU.js} +9 -9
  238. package/dist/cli-bundle/chunks/{chunk-OI4S4KCI.js.map → chunk-UMOPHQSU.js.map} +2 -2
  239. package/dist/cli-bundle/chunks/{chunk-RA5AIAMP.js → chunk-UOHFKBUV.js} +3 -3
  240. package/dist/cli-bundle/chunks/{chunk-PHKP3AGR.js → chunk-UWQHLMEB.js} +35 -18
  241. package/dist/cli-bundle/chunks/chunk-UWQHLMEB.js.map +7 -0
  242. package/dist/cli-bundle/chunks/{chunk-6TTOHMTB.js → chunk-UXONS674.js} +45 -112
  243. package/dist/cli-bundle/chunks/chunk-UXONS674.js.map +1 -0
  244. package/dist/cli-bundle/chunks/{chunk-4RXTMU57.js → chunk-UY2ACEMF.js} +7 -7
  245. package/dist/cli-bundle/chunks/{chunk-6PKA3SJQ.js → chunk-WQPUU7XD.js} +19 -28
  246. package/dist/cli-bundle/chunks/chunk-WQPUU7XD.js.map +1 -0
  247. package/dist/cli-bundle/chunks/{chunk-7TQMR6LK.js → chunk-WT3ZEOGH.js} +70 -20
  248. package/dist/cli-bundle/chunks/chunk-WT3ZEOGH.js.map +7 -0
  249. package/dist/cli-bundle/chunks/{chunk-FIGXOCEQ.js → chunk-WUJQK4YV.js} +4 -4
  250. package/dist/cli-bundle/chunks/{chunk-T4BRCB6Z.js → chunk-XSJUSQAE.js} +2 -2
  251. package/dist/cli-bundle/chunks/{chunk-6MHSBDGD.js → chunk-XXXF6PAQ.js} +50 -117
  252. package/dist/cli-bundle/chunks/chunk-XXXF6PAQ.js.map +7 -0
  253. package/dist/cli-bundle/chunks/{chunk-UKUIIBDW.js → chunk-YAQEBNY7.js} +4 -4
  254. package/dist/cli-bundle/chunks/{chunk-7QDSYUMF.js → chunk-YAROI3PD.js} +44 -21
  255. package/dist/cli-bundle/chunks/chunk-YAROI3PD.js.map +1 -0
  256. package/dist/cli-bundle/chunks/{chunk-E2WC6S4P.js → chunk-YBLZ2VE7.js} +13 -13
  257. package/dist/cli-bundle/chunks/{chunk-Y72FV7RM.js → chunk-YCQET3OT.js} +2 -2
  258. package/dist/cli-bundle/chunks/chunk-YUSOJDWM.js +9 -0
  259. package/dist/cli-bundle/chunks/chunk-YXSHIAUJ.js +58 -0
  260. package/dist/cli-bundle/chunks/chunk-YXSHIAUJ.js.map +1 -0
  261. package/dist/cli-bundle/chunks/{chunk-FS6UM5WH.js → chunk-ZI6VQWQ7.js} +4 -4
  262. package/dist/cli-bundle/chunks/chunk-ZKRZY773.js +68 -0
  263. package/dist/cli-bundle/chunks/chunk-ZKRZY773.js.map +7 -0
  264. package/dist/cli-bundle/chunks/{close-LZECOMHO.js → close-CWODTPKG.js} +5 -5
  265. package/dist/cli-bundle/chunks/close-W6LI2PKM.js +12 -0
  266. package/dist/cli-bundle/chunks/{close-many-ZHI6A5TN.js → close-many-CQFUY7MR.js} +15 -13
  267. package/dist/cli-bundle/chunks/close-many-DLDDVSH5.js +23 -0
  268. package/dist/cli-bundle/chunks/comments-E3TNTK24.js +13 -0
  269. package/dist/cli-bundle/chunks/{comments-AJWRTFZ5.js → comments-WGLHR7LB.js} +7 -7
  270. package/dist/cli-bundle/chunks/{copy-GMXYKBXT.js → copy-LXVDXH7B.js} +4 -4
  271. package/dist/cli-bundle/chunks/copy-Q5ZJPUKR.js +9 -0
  272. package/dist/cli-bundle/chunks/{create-F53OBTOU.js → create-J5U6ND4K.js} +9 -9
  273. package/dist/cli-bundle/chunks/{create-HU4Q7RJX.js → create-LBVCYMEG.js} +9 -9
  274. package/dist/cli-bundle/chunks/{delete-GSDZLTRC.js → delete-PMJBNY5G.js} +4 -4
  275. package/dist/cli-bundle/chunks/delete-WNHB3LYW.js +10 -0
  276. package/dist/cli-bundle/chunks/{deps-WWB7P2GT.js → deps-JZ7TMVCB.js} +7 -4
  277. package/dist/cli-bundle/chunks/{deps-U57I7EAK.js → deps-OA26IS25.js} +7 -4
  278. package/dist/cli-bundle/chunks/{docs-MQIY2ZQS.js → docs-FEWB2DQB.js} +6 -6
  279. package/dist/cli-bundle/chunks/docs-HA2AIDBB.js +14 -0
  280. package/dist/cli-bundle/chunks/{files-TBZD7V6H.js → files-6YFBJRBG.js} +6 -6
  281. package/dist/cli-bundle/chunks/{files-TTY6N2AV.js → files-EFIWKFTM.js} +6 -6
  282. package/dist/cli-bundle/chunks/{focus-XT6YVFFX.js → focus-4QJR7FOQ.js} +5 -5
  283. package/dist/cli-bundle/chunks/focus-POIW5LTJ.js +10 -0
  284. package/dist/cli-bundle/chunks/{history-compact-KKVUWB4V.js → history-compact-CKRPDTJN.js} +6 -10
  285. package/dist/cli-bundle/chunks/history-compact-FWG2C7FZ.js +16 -0
  286. package/dist/cli-bundle/chunks/history-redact-BB3TGDAE.js +15 -0
  287. package/dist/cli-bundle/chunks/{history-redact-3DVZOILD.js → history-redact-D225BHOZ.js} +5 -6
  288. package/dist/cli-bundle/chunks/history-repair-6GEAM7HE.js +16 -0
  289. package/dist/cli-bundle/chunks/{history-repair-ITDUMK4N.js → history-repair-RQXKQHL4.js} +6 -8
  290. package/dist/cli-bundle/chunks/{learnings-FGO3NSFW.js → learnings-JLNLCOL5.js} +7 -7
  291. package/dist/cli-bundle/chunks/learnings-RSNLSWDC.js +13 -0
  292. package/dist/cli-bundle/chunks/notes-2WDH6DXU.js +13 -0
  293. package/dist/cli-bundle/chunks/{notes-NQ6RXVW6.js → notes-GB47XXQQ.js} +7 -7
  294. package/dist/cli-bundle/chunks/plan-DOVI2VMW.js +24 -0
  295. package/dist/cli-bundle/chunks/{plan-2NNEO46V.js → plan-VDCJ2PCN.js} +10 -10
  296. package/dist/cli-bundle/chunks/{profile-AAQUU6T3.js → profile-FAU7NZML.js} +10 -10
  297. package/dist/cli-bundle/chunks/{profile-U725ATWZ.js → profile-IVXQEL3D.js} +10 -10
  298. package/dist/cli-bundle/chunks/{register-list-query-BUWCYHBT.js → register-list-query-DKA3EH5D.js} +22 -19
  299. package/dist/cli-bundle/chunks/register-list-query-DKA3EH5D.js.map +7 -0
  300. package/dist/cli-bundle/chunks/{register-list-query-KTZ6AGE7.js → register-list-query-UL4UKBBN.js} +23 -20
  301. package/dist/cli-bundle/chunks/register-list-query-UL4UKBBN.js.map +1 -0
  302. package/dist/cli-bundle/chunks/{register-mutation-UELYYOR7.js → register-mutation-ARFHRW55.js} +36 -32
  303. package/dist/cli-bundle/chunks/{register-mutation-UELYYOR7.js.map → register-mutation-ARFHRW55.js.map} +2 -2
  304. package/dist/cli-bundle/chunks/{register-mutation-4FMGJJF7.js → register-mutation-RBBJ52DK.js} +37 -33
  305. package/dist/cli-bundle/chunks/register-mutation-RBBJ52DK.js.map +1 -0
  306. package/dist/cli-bundle/chunks/{register-operations-JVW24J2Y.js → register-operations-ZIBBRSED.js} +41 -39
  307. package/dist/cli-bundle/chunks/{register-operations-JVW24J2Y.js.map → register-operations-ZIBBRSED.js.map} +1 -1
  308. package/dist/cli-bundle/chunks/{register-operations-ISUX6LY5.js → register-operations-ZUJ5JWPE.js} +39 -37
  309. package/dist/cli-bundle/chunks/{register-operations-ISUX6LY5.js.map → register-operations-ZUJ5JWPE.js.map} +1 -1
  310. package/dist/cli-bundle/chunks/{register-setup-5XNGKJ22.js → register-setup-BCVLFEYS.js} +29 -17
  311. package/dist/cli-bundle/chunks/{register-setup-5XNGKJ22.js.map → register-setup-BCVLFEYS.js.map} +2 -2
  312. package/dist/cli-bundle/chunks/{register-setup-ZTNY6S7R.js → register-setup-TDCGWIOS.js} +19 -18
  313. package/dist/cli-bundle/chunks/{register-setup-ZTNY6S7R.js.map → register-setup-TDCGWIOS.js.map} +1 -1
  314. package/dist/cli-bundle/chunks/{restore-B3BAB6X2.js → restore-25DLT2Q2.js} +6 -6
  315. package/dist/cli-bundle/chunks/restore-YPMVUUEX.js +14 -0
  316. package/dist/cli-bundle/chunks/{schema-U7IM2DXV.js → schema-FNU3WE4O.js} +7 -6
  317. package/dist/cli-bundle/chunks/{schema-LZNUYHDB.js → schema-NBCM3RAD.js} +7 -6
  318. package/dist/cli-bundle/chunks/update-WWBYOPXO.js +21 -0
  319. package/dist/cli-bundle/chunks/update-WWBYOPXO.js.map +7 -0
  320. package/dist/cli-bundle/chunks/{update-Q3UCILNR.js → update-XHSIAIXE.js} +12 -12
  321. package/dist/cli-bundle/chunks/update-XHSIAIXE.js.map +1 -0
  322. package/dist/cli-bundle/chunks/update-many-OUGIU5SF.js +32 -0
  323. package/dist/cli-bundle/chunks/update-many-OUGIU5SF.js.map +7 -0
  324. package/dist/cli-bundle/chunks/update-many-TA7NGQBO.js +36 -0
  325. package/dist/cli-bundle/chunks/update-many-TA7NGQBO.js.map +1 -0
  326. package/dist/cli-bundle/main.js +826 -43
  327. package/dist/cli-bundle/main.js.map +4 -4
  328. package/dist/cli-bundle/sdk-runtime.js +70 -57
  329. package/dist/cli-bundle/sdk-testing.js +6 -6
  330. package/dist/cli-bundle/sdk.js +876 -74
  331. package/dist/cli-bundle/sdk.js.map +4 -4
  332. package/dist/cli.js +5 -4
  333. package/dist/cli.js.map +1 -1
  334. package/dist/core/diagnostics/remediation.js +12 -2
  335. package/dist/core/diagnostics/remediation.js.map +1 -1
  336. package/dist/core/history/projection.d.ts +39 -0
  337. package/dist/core/history/projection.js +164 -0
  338. package/dist/core/history/projection.js.map +1 -0
  339. package/dist/core/history/read.d.ts +3 -0
  340. package/dist/core/history/read.js +55 -0
  341. package/dist/core/history/read.js.map +1 -0
  342. package/dist/core/output/output-control.d.ts +18 -0
  343. package/dist/core/output/output-control.js +26 -0
  344. package/dist/core/output/output-control.js.map +1 -0
  345. package/dist/core/output/output.js +20 -8
  346. package/dist/core/output/output.js.map +1 -1
  347. package/dist/core/sentry/helpers.js +10 -2
  348. package/dist/core/sentry/helpers.js.map +1 -1
  349. package/dist/core/shared/command-types.d.ts +2 -0
  350. package/dist/core/shared/command-types.js +2 -2
  351. package/dist/core/shared/command-types.js.map +1 -1
  352. package/dist/core/shared/errors.d.ts +11 -0
  353. package/dist/core/shared/errors.js +2 -2
  354. package/dist/core/shared/errors.js.map +1 -1
  355. package/dist/mcp/server.d.ts +2 -2
  356. package/dist/mcp/tool-definitions.js +5 -5
  357. package/dist/mcp/tool-definitions.js.map +1 -1
  358. package/dist/sdk/author-attribution.d.ts +35 -0
  359. package/dist/sdk/author-attribution.js +118 -0
  360. package/dist/sdk/author-attribution.js.map +1 -0
  361. package/dist/sdk/cli-contracts/command-aliases.d.ts +7 -0
  362. package/dist/sdk/cli-contracts/command-aliases.js +17 -0
  363. package/dist/sdk/cli-contracts/command-aliases.js.map +1 -0
  364. package/dist/sdk/cli-contracts/flag-contracts.js +5 -2
  365. package/dist/sdk/cli-contracts/flag-contracts.js.map +1 -1
  366. package/dist/sdk/cli-contracts/tool-option-contracts.js +6 -2
  367. package/dist/sdk/cli-contracts/tool-option-contracts.js.map +1 -1
  368. package/dist/sdk/cli-contracts/tool-parameter-tables.js +21 -2
  369. package/dist/sdk/cli-contracts/tool-parameter-tables.js.map +1 -1
  370. package/dist/sdk/cli-contracts/tool-schema.js +3 -3
  371. package/dist/sdk/cli-contracts/tool-schema.js.map +1 -1
  372. package/dist/sdk/cli-contracts.d.ts +1 -0
  373. package/dist/sdk/cli-contracts.js +3 -2
  374. package/dist/sdk/cli-contracts.js.map +1 -1
  375. package/dist/sdk/cli-program.d.ts +8 -0
  376. package/dist/sdk/cli-program.js +39 -0
  377. package/dist/sdk/cli-program.js.map +1 -0
  378. package/dist/sdk/command-line.d.ts +11 -0
  379. package/dist/sdk/command-line.js +40 -0
  380. package/dist/sdk/command-line.js.map +1 -0
  381. package/dist/sdk/config.d.ts +163 -0
  382. package/dist/sdk/config.js +1087 -0
  383. package/dist/sdk/config.js.map +1 -0
  384. package/dist/sdk/context-relevance.d.ts +21 -0
  385. package/dist/sdk/context-relevance.js +70 -2
  386. package/dist/sdk/context-relevance.js.map +1 -1
  387. package/dist/sdk/dependencies.d.ts +15 -2
  388. package/dist/sdk/dependencies.js +97 -8
  389. package/dist/sdk/dependencies.js.map +1 -1
  390. package/dist/{cli/commands → sdk}/extension/bundled-catalog.d.ts +1 -1
  391. package/dist/{cli/commands → sdk}/extension/bundled-catalog.js +12 -12
  392. package/dist/sdk/extension/bundled-catalog.js.map +1 -0
  393. package/dist/sdk/extension/concurrency.d.ts +7 -0
  394. package/dist/sdk/extension/concurrency.js +26 -0
  395. package/dist/sdk/extension/concurrency.js.map +1 -0
  396. package/dist/sdk/extension/describe.d.ts +91 -0
  397. package/dist/sdk/extension/describe.js +144 -0
  398. package/dist/sdk/extension/describe.js.map +1 -0
  399. package/dist/{cli/commands → sdk}/extension/doctor.d.ts +3 -3
  400. package/dist/{cli/commands → sdk}/extension/doctor.js +7 -7
  401. package/dist/sdk/extension/doctor.js.map +1 -0
  402. package/dist/sdk/extension/install-runtime.d.ts +26 -0
  403. package/dist/sdk/extension/install-runtime.js +269 -0
  404. package/dist/sdk/extension/install-runtime.js.map +1 -0
  405. package/dist/sdk/extension/install-snapshot.d.ts +23 -0
  406. package/dist/sdk/extension/install-snapshot.js +66 -0
  407. package/dist/sdk/extension/install-snapshot.js.map +1 -0
  408. package/dist/{cli/commands → sdk}/extension/install-sources.d.ts +3 -3
  409. package/dist/{cli/commands → sdk}/extension/install-sources.js +15 -12
  410. package/dist/sdk/extension/install-sources.js.map +1 -0
  411. package/dist/{cli/commands → sdk}/extension/managed-state.js +6 -6
  412. package/dist/sdk/extension/managed-state.js.map +1 -0
  413. package/dist/sdk/extension/scaffold.d.ts +36 -0
  414. package/dist/sdk/extension/scaffold.js +2436 -0
  415. package/dist/sdk/extension/scaffold.js.map +1 -0
  416. package/dist/sdk/extension/shared.d.ts +28 -0
  417. package/dist/sdk/extension/shared.js +140 -0
  418. package/dist/sdk/extension/shared.js.map +1 -0
  419. package/dist/sdk/extension/update-check.d.ts +15 -0
  420. package/dist/sdk/extension/update-check.js +68 -0
  421. package/dist/sdk/extension/update-check.js.map +1 -0
  422. package/dist/sdk/extension.d.ts +367 -0
  423. package/dist/sdk/extension.js +2174 -0
  424. package/dist/sdk/extension.js.map +1 -0
  425. package/dist/sdk/governance/gc.d.ts +56 -0
  426. package/dist/sdk/governance/gc.js +276 -0
  427. package/dist/sdk/governance/gc.js.map +1 -0
  428. package/dist/sdk/governance/health.d.ts +187 -0
  429. package/dist/sdk/governance/health.js +1796 -0
  430. package/dist/sdk/governance/health.js.map +1 -0
  431. package/dist/sdk/governance/validate.d.ts +255 -0
  432. package/dist/sdk/governance/validate.js +2175 -0
  433. package/dist/sdk/governance/validate.js.map +1 -0
  434. package/dist/sdk/history-compact.d.ts +142 -0
  435. package/dist/sdk/history-compact.js +508 -0
  436. package/dist/sdk/history-compact.js.map +1 -0
  437. package/dist/sdk/history-mcp.d.ts +17 -0
  438. package/dist/sdk/history-mcp.js +68 -0
  439. package/dist/sdk/history-mcp.js.map +1 -0
  440. package/dist/sdk/history-read.d.ts +31 -0
  441. package/dist/sdk/history-read.js +58 -0
  442. package/dist/sdk/history-read.js.map +1 -0
  443. package/dist/sdk/history-redact.d.ts +120 -0
  444. package/dist/sdk/history-redact.js +577 -0
  445. package/dist/sdk/history-redact.js.map +1 -0
  446. package/dist/sdk/history-repair.d.ts +89 -0
  447. package/dist/sdk/history-repair.js +263 -0
  448. package/dist/sdk/history-repair.js.map +1 -0
  449. package/dist/sdk/index.d.ts +25 -1
  450. package/dist/sdk/index.js +27 -3
  451. package/dist/sdk/index.js.map +1 -1
  452. package/dist/sdk/init-agent-guidance.d.ts +113 -0
  453. package/dist/sdk/init-agent-guidance.js +437 -0
  454. package/dist/sdk/init-agent-guidance.js.map +1 -0
  455. package/dist/sdk/init.d.ts +186 -0
  456. package/dist/sdk/init.js +733 -0
  457. package/dist/sdk/init.js.map +1 -0
  458. package/dist/sdk/invocation-author.d.ts +2 -0
  459. package/dist/sdk/invocation-author.js +39 -0
  460. package/dist/sdk/invocation-author.js.map +1 -0
  461. package/dist/sdk/item-children.d.ts +45 -0
  462. package/dist/sdk/item-children.js +75 -0
  463. package/dist/sdk/item-children.js.map +1 -0
  464. package/dist/sdk/item-schedule.d.ts +26 -0
  465. package/dist/sdk/item-schedule.js +28 -0
  466. package/dist/sdk/item-schedule.js.map +1 -0
  467. package/dist/sdk/output.d.ts +7 -0
  468. package/dist/sdk/output.js +11 -0
  469. package/dist/sdk/output.js.map +1 -0
  470. package/dist/sdk/pagination.d.ts +4 -1
  471. package/dist/sdk/pagination.js +13 -5
  472. package/dist/sdk/pagination.js.map +1 -1
  473. package/dist/sdk/profile.d.ts +176 -0
  474. package/dist/sdk/profile.js +431 -0
  475. package/dist/sdk/profile.js.map +1 -0
  476. package/dist/sdk/relationship-analytics.d.ts +108 -0
  477. package/dist/sdk/relationship-analytics.js +292 -0
  478. package/dist/sdk/relationship-analytics.js.map +1 -0
  479. package/dist/sdk/relationship-context.d.ts +67 -0
  480. package/dist/sdk/relationship-context.js +207 -0
  481. package/dist/sdk/relationship-context.js.map +1 -0
  482. package/dist/sdk/relationship-history.d.ts +109 -0
  483. package/dist/sdk/relationship-history.js +401 -0
  484. package/dist/sdk/relationship-history.js.map +1 -0
  485. package/dist/sdk/relationships.d.ts +145 -0
  486. package/dist/sdk/relationships.js +551 -0
  487. package/dist/sdk/relationships.js.map +1 -0
  488. package/dist/sdk/runtime-input.d.ts +10 -0
  489. package/dist/sdk/runtime-input.js +60 -0
  490. package/dist/sdk/runtime-input.js.map +1 -0
  491. package/dist/sdk/runtime.d.ts +31 -8
  492. package/dist/sdk/runtime.js +61 -57
  493. package/dist/sdk/runtime.js.map +1 -1
  494. package/dist/sdk/schema.d.ts +507 -0
  495. package/dist/sdk/schema.js +1269 -0
  496. package/dist/sdk/schema.js.map +1 -0
  497. package/dist/{cli/commands → sdk}/templates.d.ts +1 -1
  498. package/dist/{cli/commands → sdk}/templates.js +9 -9
  499. package/dist/sdk/templates.js.map +1 -0
  500. package/dist/{cli/commands → sdk}/test/linked-command-detection.d.ts +10 -2
  501. package/dist/sdk/test/linked-command-detection.js +525 -0
  502. package/dist/sdk/test/linked-command-detection.js.map +1 -0
  503. package/docs/COMMANDS.md +58 -40
  504. package/docs/EXTENSIONS.md +10 -1
  505. package/docs/RELATIONSHIP_GRAPH.md +113 -0
  506. package/docs/RELEASING.md +2 -0
  507. package/docs/SDK.md +156 -9
  508. package/docs/SDK_CUSTOMIZATION_PRIMITIVES.md +79 -0
  509. package/marketplace.json +2 -2
  510. package/package.json +3 -2
  511. package/packages/pm-beads/package.json +1 -1
  512. package/packages/pm-calendar/package.json +1 -1
  513. package/packages/pm-command-kit/package.json +1 -1
  514. package/packages/pm-governance-audit/extensions/governance-audit/runtime-utils.ts +76 -16
  515. package/packages/pm-governance-audit/extensions/governance-audit/sdk.ts +8 -0
  516. package/packages/pm-governance-audit/package.json +1 -1
  517. package/packages/pm-guide-shell/package.json +1 -1
  518. package/packages/pm-kanban/package.json +1 -1
  519. package/packages/pm-lifecycle-hooks/package.json +1 -1
  520. package/packages/pm-linked-test-adapters/package.json +1 -1
  521. package/packages/pm-search-advanced/package.json +1 -1
  522. package/packages/pm-templates/package.json +1 -1
  523. package/packages/pm-todos/package.json +1 -1
  524. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  525. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  526. package/scripts/bundle-cli.mjs +66 -23
  527. package/dist/cli/commands/extension/bundled-catalog.js.map +0 -1
  528. package/dist/cli/commands/extension/doctor.js.map +0 -1
  529. package/dist/cli/commands/extension/install-sources.js.map +0 -1
  530. package/dist/cli/commands/extension/managed-state.js.map +0 -1
  531. package/dist/cli/commands/templates.js.map +0 -1
  532. package/dist/cli/commands/test/linked-command-detection.js +0 -248
  533. package/dist/cli/commands/test/linked-command-detection.js.map +0 -1
  534. package/dist/cli-bundle/chunks/append-DYQWQK2J.js +0 -11
  535. package/dist/cli-bundle/chunks/chunk-2GA3NK35.js +0 -530
  536. package/dist/cli-bundle/chunks/chunk-2GA3NK35.js.map +0 -1
  537. package/dist/cli-bundle/chunks/chunk-2QIQGYPW.js.map +0 -7
  538. package/dist/cli-bundle/chunks/chunk-4DY4KPQI.js.map +0 -7
  539. package/dist/cli-bundle/chunks/chunk-4WREH7RT.js +0 -554
  540. package/dist/cli-bundle/chunks/chunk-4WREH7RT.js.map +0 -7
  541. package/dist/cli-bundle/chunks/chunk-5CT5BW6E.js.map +0 -7
  542. package/dist/cli-bundle/chunks/chunk-5URI7TPJ.js.map +0 -7
  543. package/dist/cli-bundle/chunks/chunk-6MHSBDGD.js.map +0 -7
  544. package/dist/cli-bundle/chunks/chunk-6OTZMORS.js.map +0 -7
  545. package/dist/cli-bundle/chunks/chunk-6PKA3SJQ.js.map +0 -1
  546. package/dist/cli-bundle/chunks/chunk-6TTOHMTB.js.map +0 -1
  547. package/dist/cli-bundle/chunks/chunk-7QDSYUMF.js.map +0 -1
  548. package/dist/cli-bundle/chunks/chunk-7TQMR6LK.js.map +0 -7
  549. package/dist/cli-bundle/chunks/chunk-B5DZYTT3.js +0 -312
  550. package/dist/cli-bundle/chunks/chunk-B5DZYTT3.js.map +0 -7
  551. package/dist/cli-bundle/chunks/chunk-BPD26E3P.js.map +0 -1
  552. package/dist/cli-bundle/chunks/chunk-CDJYP7OQ.js.map +0 -1
  553. package/dist/cli-bundle/chunks/chunk-DBZVUJTK.js +0 -858
  554. package/dist/cli-bundle/chunks/chunk-DBZVUJTK.js.map +0 -1
  555. package/dist/cli-bundle/chunks/chunk-DVOLZJ3C.js.map +0 -1
  556. package/dist/cli-bundle/chunks/chunk-DYEX6NFH.js.map +0 -7
  557. package/dist/cli-bundle/chunks/chunk-F7PSHRNO.js.map +0 -1
  558. package/dist/cli-bundle/chunks/chunk-FO7GMJKG.js +0 -875
  559. package/dist/cli-bundle/chunks/chunk-FO7GMJKG.js.map +0 -7
  560. package/dist/cli-bundle/chunks/chunk-FTQLW4JD.js.map +0 -1
  561. package/dist/cli-bundle/chunks/chunk-IA3YFTXT.js.map +0 -1
  562. package/dist/cli-bundle/chunks/chunk-IGED7NH2.js.map +0 -7
  563. package/dist/cli-bundle/chunks/chunk-J4NZOP3I.js.map +0 -1
  564. package/dist/cli-bundle/chunks/chunk-JL7WZ4O2.js.map +0 -7
  565. package/dist/cli-bundle/chunks/chunk-L24HCJFC.js +0 -309
  566. package/dist/cli-bundle/chunks/chunk-L24HCJFC.js.map +0 -1
  567. package/dist/cli-bundle/chunks/chunk-LWTIRS3Y.js.map +0 -7
  568. package/dist/cli-bundle/chunks/chunk-MKL4CP2I.js.map +0 -1
  569. package/dist/cli-bundle/chunks/chunk-N3CMP4NI.js.map +0 -1
  570. package/dist/cli-bundle/chunks/chunk-PHKP3AGR.js.map +0 -7
  571. package/dist/cli-bundle/chunks/chunk-Q37E63AM.js.map +0 -7
  572. package/dist/cli-bundle/chunks/chunk-QASRVKUQ.js.map +0 -1
  573. package/dist/cli-bundle/chunks/chunk-RGXD5JJR.js.map +0 -7
  574. package/dist/cli-bundle/chunks/chunk-UB2QYSTO.js.map +0 -1
  575. package/dist/cli-bundle/chunks/chunk-UGTVWL3E.js.map +0 -1
  576. package/dist/cli-bundle/chunks/chunk-ZAYYDNB3.js.map +0 -1
  577. package/dist/cli-bundle/chunks/chunk-ZUKSZVBW.js.map +0 -7
  578. package/dist/cli-bundle/chunks/close-RI4JQQHU.js +0 -12
  579. package/dist/cli-bundle/chunks/close-many-LY2XJ52M.js +0 -21
  580. package/dist/cli-bundle/chunks/comments-35M273DN.js +0 -13
  581. package/dist/cli-bundle/chunks/copy-NPYM7M7U.js +0 -9
  582. package/dist/cli-bundle/chunks/delete-ODRWJWAM.js +0 -10
  583. package/dist/cli-bundle/chunks/docs-G7N4E2JO.js +0 -14
  584. package/dist/cli-bundle/chunks/focus-U5TRVCRS.js +0 -10
  585. package/dist/cli-bundle/chunks/history-compact-M7GHYVFN.js +0 -20
  586. package/dist/cli-bundle/chunks/history-redact-JIHZLHDP.js +0 -16
  587. package/dist/cli-bundle/chunks/history-repair-NAFCHLH7.js +0 -18
  588. package/dist/cli-bundle/chunks/learnings-SONGPSHI.js +0 -13
  589. package/dist/cli-bundle/chunks/notes-BSD53H2W.js +0 -13
  590. package/dist/cli-bundle/chunks/plan-AWLYGBNV.js +0 -24
  591. package/dist/cli-bundle/chunks/register-list-query-BUWCYHBT.js.map +0 -7
  592. package/dist/cli-bundle/chunks/register-list-query-KTZ6AGE7.js.map +0 -1
  593. package/dist/cli-bundle/chunks/register-mutation-4FMGJJF7.js.map +0 -1
  594. package/dist/cli-bundle/chunks/restore-66GLMHIX.js +0 -14
  595. package/dist/cli-bundle/chunks/update-2XGHIVQ2.js +0 -21
  596. package/dist/cli-bundle/chunks/update-many-75K57FS3.js +0 -34
  597. package/dist/cli-bundle/chunks/update-many-U42YA445.js +0 -30
  598. /package/dist/cli-bundle/chunks/{append-PVZJDM6J.js.map → append-OJQFUQ4T.js.map} +0 -0
  599. /package/dist/cli-bundle/chunks/{append-DYQWQK2J.js.map → append-UZVHUO74.js.map} +0 -0
  600. /package/dist/cli-bundle/chunks/{chunk-MQZ3PLCF.js.map → chunk-2IFFUZLC.js.map} +0 -0
  601. /package/dist/cli-bundle/chunks/{chunk-P6MYFH6K.js.map → chunk-2JKGO6QX.js.map} +0 -0
  602. /package/dist/cli-bundle/chunks/{chunk-X3GYR4P2.js.map → chunk-2NCIPMQP.js.map} +0 -0
  603. /package/dist/cli-bundle/chunks/{chunk-Q7E6OYZK.js.map → chunk-2VPAVL7O.js.map} +0 -0
  604. /package/dist/cli-bundle/chunks/{chunk-DRNJPEPQ.js.map → chunk-2WSE6PO2.js.map} +0 -0
  605. /package/dist/cli-bundle/chunks/{chunk-FDSBDNYE.js.map → chunk-34L5OT3Y.js.map} +0 -0
  606. /package/dist/cli-bundle/chunks/{chunk-TH7U4KLY.js.map → chunk-3AUGG2DP.js.map} +0 -0
  607. /package/dist/cli-bundle/chunks/{chunk-NKW36AMT.js.map → chunk-3CLU2XZO.js.map} +0 -0
  608. /package/dist/cli-bundle/chunks/{chunk-ABRCOSDC.js.map → chunk-3WM75PWC.js.map} +0 -0
  609. /package/dist/cli-bundle/chunks/{chunk-X6BVXQ52.js.map → chunk-5JLUII3O.js.map} +0 -0
  610. /package/dist/cli-bundle/chunks/{chunk-3TL7WOEF.js.map → chunk-6N2VXVTQ.js.map} +0 -0
  611. /package/dist/cli-bundle/chunks/{chunk-ERL2YFJ2.js.map → chunk-6S3YSUYG.js.map} +0 -0
  612. /package/dist/cli-bundle/chunks/{chunk-IFZA4VB5.js.map → chunk-AHVTB5I5.js.map} +0 -0
  613. /package/dist/cli-bundle/chunks/{chunk-DO5RGJXT.js.map → chunk-APRVSW2O.js.map} +0 -0
  614. /package/dist/cli-bundle/chunks/{chunk-NAQYVWSQ.js.map → chunk-B7PE22W6.js.map} +0 -0
  615. /package/dist/cli-bundle/chunks/{chunk-MD6ULIPJ.js.map → chunk-BCOFWYW4.js.map} +0 -0
  616. /package/dist/cli-bundle/chunks/{chunk-KADLSPIU.js.map → chunk-BEP7WJA2.js.map} +0 -0
  617. /package/dist/cli-bundle/chunks/{chunk-OBDLEQG5.js.map → chunk-CRVF2JDM.js.map} +0 -0
  618. /package/dist/cli-bundle/chunks/{chunk-FJZDA6MS.js.map → chunk-DM4H7FP4.js.map} +0 -0
  619. /package/dist/cli-bundle/chunks/{close-LZECOMHO.js.map → chunk-DUT67M43.js.map} +0 -0
  620. /package/dist/cli-bundle/chunks/{chunk-44LNIULG.js.map → chunk-DYH63FX7.js.map} +0 -0
  621. /package/dist/cli-bundle/chunks/{chunk-HAMLIWAF.js.map → chunk-EAB64KLB.js.map} +0 -0
  622. /package/dist/cli-bundle/chunks/{chunk-CIOZ376P.js.map → chunk-EACOH7AU.js.map} +0 -0
  623. /package/dist/cli-bundle/chunks/{chunk-QK2ZN6UL.js.map → chunk-EJEXHTY5.js.map} +0 -0
  624. /package/dist/cli-bundle/chunks/{chunk-WQUEHPZB.js.map → chunk-EYLCSJAI.js.map} +0 -0
  625. /package/dist/cli-bundle/chunks/{chunk-655STMGA.js.map → chunk-FMBNM2EN.js.map} +0 -0
  626. /package/dist/cli-bundle/chunks/{chunk-RMF3IOYQ.js.map → chunk-FNSPG7MU.js.map} +0 -0
  627. /package/dist/cli-bundle/chunks/{chunk-KB726FMH.js.map → chunk-H2Z3FYXQ.js.map} +0 -0
  628. /package/dist/cli-bundle/chunks/{chunk-BN62TO2S.js.map → chunk-IA5FKNII.js.map} +0 -0
  629. /package/dist/cli-bundle/chunks/{chunk-W6HZ55JO.js.map → chunk-IJIICKVW.js.map} +0 -0
  630. /package/dist/cli-bundle/chunks/{chunk-M7EWN4TF.js.map → chunk-JOUQZENX.js.map} +0 -0
  631. /package/dist/cli-bundle/chunks/{chunk-2FNWQXZ2.js.map → chunk-JYFOV7FC.js.map} +0 -0
  632. /package/dist/cli-bundle/chunks/{chunk-HLHSQ5CA.js.map → chunk-K2X6U4UA.js.map} +0 -0
  633. /package/dist/cli-bundle/chunks/{chunk-M6ASXYCU.js.map → chunk-KG44YSKD.js.map} +0 -0
  634. /package/dist/cli-bundle/chunks/{chunk-YVKE5ZDM.js.map → chunk-KPMKHGEA.js.map} +0 -0
  635. /package/dist/cli-bundle/chunks/{close-many-ZHI6A5TN.js.map → chunk-MIQDDLB5.js.map} +0 -0
  636. /package/dist/cli-bundle/chunks/{chunk-UJ4HJYWL.js.map → chunk-NLDFBC6J.js.map} +0 -0
  637. /package/dist/cli-bundle/chunks/{chunk-WRKB56FC.js.map → chunk-NP22ERDF.js.map} +0 -0
  638. /package/dist/cli-bundle/chunks/{chunk-YQYG2V23.js.map → chunk-NU3IMIEA.js.map} +0 -0
  639. /package/dist/cli-bundle/chunks/{chunk-3I3LRT2G.js.map → chunk-NVPZIJVR.js.map} +0 -0
  640. /package/dist/cli-bundle/chunks/{chunk-JAF4TUQ7.js.map → chunk-ODALILG3.js.map} +0 -0
  641. /package/dist/cli-bundle/chunks/{chunk-QZ7LT3XE.js.map → chunk-ONREO4ST.js.map} +0 -0
  642. /package/dist/cli-bundle/chunks/{chunk-3CMRNVTO.js.map → chunk-P74IZQ7A.js.map} +0 -0
  643. /package/dist/cli-bundle/chunks/{chunk-ZTRBSABY.js.map → chunk-PGY23YTC.js.map} +0 -0
  644. /package/dist/cli-bundle/chunks/{chunk-H2QBAKLQ.js.map → chunk-PMOSXADO.js.map} +0 -0
  645. /package/dist/cli-bundle/chunks/{close-RI4JQQHU.js.map → chunk-PNTULOGU.js.map} +0 -0
  646. /package/dist/cli-bundle/chunks/{chunk-GSEADLRH.js.map → chunk-Q7A43DS4.js.map} +0 -0
  647. /package/dist/cli-bundle/chunks/{chunk-QSPARJWF.js.map → chunk-QEHQ2GVG.js.map} +0 -0
  648. /package/dist/cli-bundle/chunks/{chunk-VJTAEIPC.js.map → chunk-QIPLHNP7.js.map} +0 -0
  649. /package/dist/cli-bundle/chunks/{chunk-K7WNZ7KD.js.map → chunk-QKJGPFAF.js.map} +0 -0
  650. /package/dist/cli-bundle/chunks/{chunk-ZNP64HOW.js.map → chunk-RLCHOOHC.js.map} +0 -0
  651. /package/dist/cli-bundle/chunks/{chunk-IAPHYPRL.js.map → chunk-RMLWNPH2.js.map} +0 -0
  652. /package/dist/cli-bundle/chunks/{chunk-UVBA6F5A.js.map → chunk-RRM5JYJC.js.map} +0 -0
  653. /package/dist/cli-bundle/chunks/{chunk-6IIVBC56.js.map → chunk-S6MQESFR.js.map} +0 -0
  654. /package/dist/cli-bundle/chunks/{chunk-QABYZYLU.js.map → chunk-SDQLJWBO.js.map} +0 -0
  655. /package/dist/cli-bundle/chunks/{chunk-ANSJHDOZ.js.map → chunk-SELVXEZK.js.map} +0 -0
  656. /package/dist/cli-bundle/chunks/{chunk-WD6MSYMP.js.map → chunk-TKOVBP6C.js.map} +0 -0
  657. /package/dist/cli-bundle/chunks/{chunk-TZ2PSLLT.js.map → chunk-TQSZFPIS.js.map} +0 -0
  658. /package/dist/cli-bundle/chunks/{chunk-WPAWZW7S.js.map → chunk-TSMHDIW4.js.map} +0 -0
  659. /package/dist/cli-bundle/chunks/{chunk-TZRTLMWM.js.map → chunk-UFXU44HV.js.map} +0 -0
  660. /package/dist/cli-bundle/chunks/{chunk-TWLDBKQU.js.map → chunk-ULTHRDBP.js.map} +0 -0
  661. /package/dist/cli-bundle/chunks/{chunk-RA5AIAMP.js.map → chunk-UOHFKBUV.js.map} +0 -0
  662. /package/dist/cli-bundle/chunks/{chunk-4RXTMU57.js.map → chunk-UY2ACEMF.js.map} +0 -0
  663. /package/dist/cli-bundle/chunks/{chunk-FIGXOCEQ.js.map → chunk-WUJQK4YV.js.map} +0 -0
  664. /package/dist/cli-bundle/chunks/{chunk-T4BRCB6Z.js.map → chunk-XSJUSQAE.js.map} +0 -0
  665. /package/dist/cli-bundle/chunks/{chunk-UKUIIBDW.js.map → chunk-YAQEBNY7.js.map} +0 -0
  666. /package/dist/cli-bundle/chunks/{chunk-E2WC6S4P.js.map → chunk-YBLZ2VE7.js.map} +0 -0
  667. /package/dist/cli-bundle/chunks/{chunk-Y72FV7RM.js.map → chunk-YCQET3OT.js.map} +0 -0
  668. /package/dist/cli-bundle/chunks/{close-many-LY2XJ52M.js.map → chunk-YUSOJDWM.js.map} +0 -0
  669. /package/dist/cli-bundle/chunks/{chunk-FS6UM5WH.js.map → chunk-ZI6VQWQ7.js.map} +0 -0
  670. /package/dist/cli-bundle/chunks/{comments-AJWRTFZ5.js.map → close-CWODTPKG.js.map} +0 -0
  671. /package/dist/cli-bundle/chunks/{comments-35M273DN.js.map → close-W6LI2PKM.js.map} +0 -0
  672. /package/dist/cli-bundle/chunks/{copy-GMXYKBXT.js.map → close-many-CQFUY7MR.js.map} +0 -0
  673. /package/dist/cli-bundle/chunks/{copy-NPYM7M7U.js.map → close-many-DLDDVSH5.js.map} +0 -0
  674. /package/dist/cli-bundle/chunks/{create-F53OBTOU.js.map → comments-E3TNTK24.js.map} +0 -0
  675. /package/dist/cli-bundle/chunks/{create-HU4Q7RJX.js.map → comments-WGLHR7LB.js.map} +0 -0
  676. /package/dist/cli-bundle/chunks/{delete-GSDZLTRC.js.map → copy-LXVDXH7B.js.map} +0 -0
  677. /package/dist/cli-bundle/chunks/{delete-ODRWJWAM.js.map → copy-Q5ZJPUKR.js.map} +0 -0
  678. /package/dist/cli-bundle/chunks/{deps-U57I7EAK.js.map → create-J5U6ND4K.js.map} +0 -0
  679. /package/dist/cli-bundle/chunks/{deps-WWB7P2GT.js.map → create-LBVCYMEG.js.map} +0 -0
  680. /package/dist/cli-bundle/chunks/{docs-MQIY2ZQS.js.map → delete-PMJBNY5G.js.map} +0 -0
  681. /package/dist/cli-bundle/chunks/{docs-G7N4E2JO.js.map → delete-WNHB3LYW.js.map} +0 -0
  682. /package/dist/cli-bundle/chunks/{files-TTY6N2AV.js.map → deps-JZ7TMVCB.js.map} +0 -0
  683. /package/dist/cli-bundle/chunks/{files-TBZD7V6H.js.map → deps-OA26IS25.js.map} +0 -0
  684. /package/dist/cli-bundle/chunks/{focus-XT6YVFFX.js.map → docs-FEWB2DQB.js.map} +0 -0
  685. /package/dist/cli-bundle/chunks/{focus-U5TRVCRS.js.map → docs-HA2AIDBB.js.map} +0 -0
  686. /package/dist/cli-bundle/chunks/{history-compact-M7GHYVFN.js.map → files-6YFBJRBG.js.map} +0 -0
  687. /package/dist/cli-bundle/chunks/{history-compact-KKVUWB4V.js.map → files-EFIWKFTM.js.map} +0 -0
  688. /package/dist/cli-bundle/chunks/{history-redact-3DVZOILD.js.map → focus-4QJR7FOQ.js.map} +0 -0
  689. /package/dist/cli-bundle/chunks/{history-redact-JIHZLHDP.js.map → focus-POIW5LTJ.js.map} +0 -0
  690. /package/dist/cli-bundle/chunks/{history-repair-ITDUMK4N.js.map → history-compact-CKRPDTJN.js.map} +0 -0
  691. /package/dist/cli-bundle/chunks/{history-repair-NAFCHLH7.js.map → history-compact-FWG2C7FZ.js.map} +0 -0
  692. /package/dist/cli-bundle/chunks/{learnings-SONGPSHI.js.map → history-redact-BB3TGDAE.js.map} +0 -0
  693. /package/dist/cli-bundle/chunks/{learnings-FGO3NSFW.js.map → history-redact-D225BHOZ.js.map} +0 -0
  694. /package/dist/cli-bundle/chunks/{notes-BSD53H2W.js.map → history-repair-6GEAM7HE.js.map} +0 -0
  695. /package/dist/cli-bundle/chunks/{notes-NQ6RXVW6.js.map → history-repair-RQXKQHL4.js.map} +0 -0
  696. /package/dist/cli-bundle/chunks/{plan-2NNEO46V.js.map → learnings-JLNLCOL5.js.map} +0 -0
  697. /package/dist/cli-bundle/chunks/{plan-AWLYGBNV.js.map → learnings-RSNLSWDC.js.map} +0 -0
  698. /package/dist/cli-bundle/chunks/{profile-U725ATWZ.js.map → notes-2WDH6DXU.js.map} +0 -0
  699. /package/dist/cli-bundle/chunks/{profile-AAQUU6T3.js.map → notes-GB47XXQQ.js.map} +0 -0
  700. /package/dist/cli-bundle/chunks/{restore-66GLMHIX.js.map → plan-DOVI2VMW.js.map} +0 -0
  701. /package/dist/cli-bundle/chunks/{restore-B3BAB6X2.js.map → plan-VDCJ2PCN.js.map} +0 -0
  702. /package/dist/cli-bundle/chunks/{schema-U7IM2DXV.js.map → profile-FAU7NZML.js.map} +0 -0
  703. /package/dist/cli-bundle/chunks/{schema-LZNUYHDB.js.map → profile-IVXQEL3D.js.map} +0 -0
  704. /package/dist/cli-bundle/chunks/{update-Q3UCILNR.js.map → restore-25DLT2Q2.js.map} +0 -0
  705. /package/dist/cli-bundle/chunks/{update-2XGHIVQ2.js.map → restore-YPMVUUEX.js.map} +0 -0
  706. /package/dist/cli-bundle/chunks/{update-many-75K57FS3.js.map → schema-FNU3WE4O.js.map} +0 -0
  707. /package/dist/cli-bundle/chunks/{update-many-U42YA445.js.map → schema-NBCM3RAD.js.map} +0 -0
  708. /package/dist/{cli/commands → sdk}/extension/managed-state.d.ts +0 -0
@@ -1,32 +1,25 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ applyInvocationAuthorOverride,
4
+ createPmCliProgram
5
+ } from "./chunks/chunk-ZKRZY773.js";
2
6
  import {
3
7
  deriveTelemetryCommandResolution,
4
8
  deriveTelemetryCommandTaxonomy,
5
9
  emitTelemetryErrorEvent,
6
10
  finishTelemetryCommand,
7
11
  startTelemetryCommand
8
- } from "./chunks/chunk-WRKB56FC.js";
12
+ } from "./chunks/chunk-NP22ERDF.js";
9
13
  import {
10
14
  migrateItemFilesToFormat
11
- } from "./chunks/chunk-MD6ULIPJ.js";
15
+ } from "./chunks/chunk-BCOFWYW4.js";
12
16
  import {
13
- EXECUTABLE_COMMAND_ALIASES,
14
- applyBootstrapPagerPolicy,
15
- extractProvidedOptionFlags,
16
- normalizeBootstrapInvocation,
17
17
  normalizeExtensionNameForMatch,
18
- normalizeLongFlag,
19
- normalizeLongOptionFlag,
20
- parseBootstrapCommandName,
21
- parseBootstrapGlobalOptions,
22
- parseBootstrapHelpRequest,
23
- parseBootstrapTypeValue,
24
- renderPmCommand,
25
- stripGlobalBootstrapTokens
26
- } from "./chunks/chunk-FO7GMJKG.js";
18
+ renderPmCommand
19
+ } from "./chunks/chunk-PENXZX3U.js";
27
20
  import {
28
21
  recordContextUsageTouches
29
- } from "./chunks/chunk-Y72FV7RM.js";
22
+ } from "./chunks/chunk-YCQET3OT.js";
30
23
  import {
31
24
  applyDefaultOutputFormat,
32
25
  clearResolvedGlobalOptions,
@@ -37,16 +30,17 @@ import {
37
30
  invalidateSearchCachesForMutation,
38
31
  setResolvedGlobalOptions,
39
32
  syncCommanderActionOptions
40
- } from "./chunks/chunk-ZUKSZVBW.js";
33
+ } from "./chunks/chunk-7B67ZL4N.js";
41
34
  import {
35
+ EXECUTABLE_COMMAND_ALIASES,
42
36
  PM_CORE_COMMAND_NAMES,
43
37
  resolveSubcommandFlagContractsForCommand
44
- } from "./chunks/chunk-2QIQGYPW.js";
38
+ } from "./chunks/chunk-H5APFTHZ.js";
45
39
  import {
46
40
  printError,
47
41
  printResult,
48
42
  writeStdout
49
- } from "./chunks/chunk-JL7WZ4O2.js";
43
+ } from "./chunks/chunk-IG3SWA4A.js";
50
44
  import {
51
45
  clearActiveExtensionHooks,
52
46
  consumeAfterCommandAffectedItems,
@@ -70,7 +64,7 @@ import {
70
64
  setActiveExtensionRenderers,
71
65
  setActiveExtensionServices,
72
66
  writeSettings
73
- } from "./chunks/chunk-T4BRCB6Z.js";
67
+ } from "./chunks/chunk-XSJUSQAE.js";
74
68
  import {
75
69
  BUILTIN_ITEM_TYPE_VALUES,
76
70
  EXIT_CODE,
@@ -98,7 +92,7 @@ import {
98
92
  runAfterCommandHooks,
99
93
  runBeforeCommandHooks,
100
94
  toNonEmptyStringOrUndefined
101
- } from "./chunks/chunk-AFWZRL7M.js";
95
+ } from "./chunks/chunk-BSEQUTQP.js";
102
96
 
103
97
  // dist/cli/main.js
104
98
  import { Command } from "commander";
@@ -500,7 +494,7 @@ function getSentry() {
500
494
  !(function() {
501
495
  try {
502
496
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
503
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b9353ece-0a99-5a54-85c7-573fc71856ec");
497
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "d955a7f2-a85b-5200-8108-58c6684cb23a");
504
498
  } catch (e2) {
505
499
  }
506
500
  })();
@@ -661,7 +655,13 @@ function shouldCaptureCliError(error) {
661
655
  if (error instanceof PmCliError) {
662
656
  return false;
663
657
  }
658
+ if (error instanceof Error && error.name === "AbortError" && /(?:ctrl\+c|sigint|user[- ]initiated)/i.test(error.message)) {
659
+ return false;
660
+ }
664
661
  if (typeof error === "object" && error !== null && "exitCode" in error && typeof error.exitCode === "number") {
662
+ if (error instanceof Error && error.name === "CommandError") {
663
+ return false;
664
+ }
665
665
  const exitCode = Math.trunc(error.exitCode);
666
666
  const expectedExitCodes = /* @__PURE__ */ new Set([
667
667
  EXIT_CODE.SUCCESS,
@@ -687,7 +687,7 @@ async function sentryFlush(timeoutMs = 3e3) {
687
687
  !(function() {
688
688
  try {
689
689
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
690
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "0c102c68-f173-5412-a254-395b6fe01fa1");
690
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "9e25c820-f946-58a4-84ad-e5ce6a58f9d4");
691
691
  } catch (e2) {
692
692
  }
693
693
  })();
@@ -925,7 +925,7 @@ function applyFlagDefault(defaultValue, kind, isListFlag) {
925
925
  }
926
926
  function readOrderedLooseListValues(occurrenceSource, optionKeys, fallback) {
927
927
  const occurrences = occurrenceSource[LOOSE_OPTION_OCCURRENCES];
928
- if (!occurrences) {
928
+ if (!occurrences || occurrences.length === 0) {
929
929
  return fallback;
930
930
  }
931
931
  const acceptedKeys = new Set(optionKeys);
@@ -1072,7 +1072,7 @@ function stripLooseCommandOptionTokens(args, definitions) {
1072
1072
  !(function() {
1073
1073
  try {
1074
1074
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
1075
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "764e7866-3ff1-5da2-8679-9fb948bd23f8");
1075
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "16bbb507-3edd-5f68-9262-c784c1ed5caa");
1076
1076
  } catch (e2) {
1077
1077
  }
1078
1078
  })();
@@ -1603,12 +1603,16 @@ var HELP_BY_COMMAND_PATH = {
1603
1603
  examples: [
1604
1604
  "pm get pm-a1b2",
1605
1605
  "pm get pm-a1b2 --depth brief --json",
1606
- "pm get pm-a1b2 --fields id,title,status,parent,type --json"
1606
+ "pm get pm-a1b2 --fields id,title,status,parent,type --json",
1607
+ "pm get pm-a1b2 --at 7 --fields id,title,status,body --json"
1607
1608
  ],
1608
1609
  tips: [
1609
1610
  "Default depth is standard for body plus linked artifacts without append-only logs; use brief for metadata-only checks or --full for complete history-heavy metadata.",
1610
1611
  "Use --fields for the smallest deterministic item metadata payload when an agent only needs specific fields.",
1611
- "JSON output shape is { item, linked, claim_state, children }; body is nested at item.body (parity with list --include-body), and children appears for requested/container rollups."
1612
+ "Schedule metadata is normalized under schedule; request schedule.start_at or schedule.location for narrow calendar reads.",
1613
+ "Children are type-agnostic and include bounded deterministic samples plus continuation metadata when a parent has direct children.",
1614
+ "Use --at <version|timestamp> for a verified read-only historical projection; reconstructed/as_of fields distinguish it from current state.",
1615
+ "JSON output shape is { item, linked, claim_state, schedule, children }; body is nested at item.body (parity with list --include-body)."
1612
1616
  ]
1613
1617
  },
1614
1618
  history: {
@@ -1939,6 +1943,39 @@ function attachRichHelpText(program2, argv = process.argv.slice(2)) {
1939
1943
  }
1940
1944
  }
1941
1945
 
1946
+ // dist/cli/argv-utils.js
1947
+ !(function() {
1948
+ try {
1949
+ var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
1950
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e931035a-0e65-560e-9480-cdafdeb01ecf");
1951
+ } catch (e2) {
1952
+ }
1953
+ })();
1954
+ function normalizeLongFlag(flag) {
1955
+ return `--${flag.replace(/^--?/, "").replace(/_/g, "-").replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase()}`;
1956
+ }
1957
+ function normalizeLongOptionFlag(token) {
1958
+ if (!token.startsWith("--")) {
1959
+ return void 0;
1960
+ }
1961
+ const key = token.includes("=") ? token.slice(0, token.indexOf("=")) : token;
1962
+ return normalizeLongFlag(key);
1963
+ }
1964
+ function extractProvidedOptionFlags(argv) {
1965
+ const provided = /* @__PURE__ */ new Set();
1966
+ const ordered = [];
1967
+ for (const token of argv) {
1968
+ const normalized = normalizeLongOptionFlag(token);
1969
+ if (normalized) {
1970
+ if (!provided.has(normalized)) {
1971
+ ordered.push(normalized);
1972
+ }
1973
+ provided.add(normalized);
1974
+ }
1975
+ }
1976
+ return ordered;
1977
+ }
1978
+
1942
1979
  // dist/cli/error-guidance.js
1943
1980
  !(function() {
1944
1981
  try {
@@ -2889,10 +2926,11 @@ function createLazyModule(importer) {
2889
2926
  }
2890
2927
 
2891
2928
  // dist/cli/extension-command-help.js
2929
+ import { Option } from "commander";
2892
2930
  !(function() {
2893
2931
  try {
2894
2932
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
2895
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1e6b6cdc-855a-5090-a7bd-36d47c55295e");
2933
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ea4608a9-3e2f-55a8-a01b-a3c53ade6c3c");
2896
2934
  } catch (e2) {
2897
2935
  }
2898
2936
  })();
@@ -3220,7 +3258,15 @@ function applyDynamicExtensionFlagOptions(command, definitions) {
3220
3258
  if (!flags) {
3221
3259
  continue;
3222
3260
  }
3223
- command.option(flags, formatDynamicExtensionOptionDescription(definition));
3261
+ const description = formatDynamicExtensionOptionDescription(definition);
3262
+ if (definition.list !== true) {
3263
+ command.option(flags, description);
3264
+ continue;
3265
+ }
3266
+ command.addOption(new Option(flags, description).argParser((value, previous = []) => [
3267
+ ...Array.isArray(previous) ? previous : [previous],
3268
+ value
3269
+ ]));
3224
3270
  }
3225
3271
  }
3226
3272
  function buildResidualDynamicExtensionFlagHelp(command, definitions) {
@@ -3371,6 +3417,731 @@ function ensureCommandPath(root, pathParts) {
3371
3417
  return current;
3372
3418
  }
3373
3419
 
3420
+ // dist/cli/bootstrap-args.js
3421
+ !(function() {
3422
+ try {
3423
+ var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3424
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c8537d1b-6df6-53b0-a308-f91e09d39cf3");
3425
+ } catch (e2) {
3426
+ }
3427
+ })();
3428
+ var GLOBAL_VALUE_CONSUMING_FLAGS = /* @__PURE__ */ new Set([
3429
+ "--pm-path",
3430
+ "--path",
3431
+ "--author"
3432
+ ]);
3433
+ var isInlineGlobalValueToken = (token) => {
3434
+ const equalsIndex = token.indexOf("=");
3435
+ return equalsIndex > 0 && GLOBAL_VALUE_CONSUMING_FLAGS.has(token.slice(0, equalsIndex));
3436
+ };
3437
+ var consumesBootstrapAuthorValue = (next) => {
3438
+ return typeof next === "string" && !next.startsWith("-");
3439
+ };
3440
+ function parseBootstrapPathToken(token, next) {
3441
+ if (token === "--path" || token === "--pm-path") {
3442
+ if (typeof next === "string" && next.length > 0) {
3443
+ return {
3444
+ consumed: 2,
3445
+ pathValue: next,
3446
+ preferred: token === "--pm-path"
3447
+ };
3448
+ }
3449
+ return {
3450
+ consumed: 1,
3451
+ preferred: token === "--pm-path"
3452
+ };
3453
+ }
3454
+ const inlinePrefix = token.startsWith("--path=") ? "--path=" : token.startsWith("--pm-path=") ? "--pm-path=" : void 0;
3455
+ if (!inlinePrefix) {
3456
+ return null;
3457
+ }
3458
+ const value = token.slice(inlinePrefix.length);
3459
+ if (value.length > 0) {
3460
+ return {
3461
+ consumed: 1,
3462
+ pathValue: value,
3463
+ preferred: inlinePrefix === "--pm-path="
3464
+ };
3465
+ }
3466
+ return {
3467
+ consumed: 1,
3468
+ preferred: inlinePrefix === "--pm-path="
3469
+ };
3470
+ }
3471
+ function parseBootstrapGlobalOptions(argv) {
3472
+ let legacyPathValue;
3473
+ let pmPathValue;
3474
+ let noExtensions = false;
3475
+ let noPager = false;
3476
+ let json = false;
3477
+ let quiet = false;
3478
+ let author;
3479
+ let authorMissingValue = false;
3480
+ let index = 0;
3481
+ while (index < argv.length) {
3482
+ const token = argv[index];
3483
+ if (token === "--") {
3484
+ break;
3485
+ }
3486
+ if (token === "--no-extensions") {
3487
+ noExtensions = true;
3488
+ index += 1;
3489
+ continue;
3490
+ }
3491
+ if (token === "--no-pager") {
3492
+ noPager = true;
3493
+ index += 1;
3494
+ continue;
3495
+ }
3496
+ if (token === "--json") {
3497
+ json = true;
3498
+ index += 1;
3499
+ continue;
3500
+ }
3501
+ if (token === "--quiet") {
3502
+ quiet = true;
3503
+ index += 1;
3504
+ continue;
3505
+ }
3506
+ const parsedPath = parseBootstrapPathToken(token, argv[index + 1]);
3507
+ if (parsedPath) {
3508
+ if (parsedPath.pathValue !== void 0) {
3509
+ if (parsedPath.preferred) {
3510
+ pmPathValue = parsedPath.pathValue;
3511
+ } else {
3512
+ legacyPathValue = parsedPath.pathValue;
3513
+ }
3514
+ }
3515
+ index += parsedPath.consumed;
3516
+ continue;
3517
+ }
3518
+ if (token === "--author") {
3519
+ if (consumesBootstrapAuthorValue(argv[index + 1])) {
3520
+ author = argv[index + 1];
3521
+ index += 2;
3522
+ } else {
3523
+ authorMissingValue = true;
3524
+ index += 1;
3525
+ }
3526
+ continue;
3527
+ }
3528
+ if (token.startsWith("--author=")) {
3529
+ author = token.slice("--author=".length);
3530
+ index += 1;
3531
+ continue;
3532
+ }
3533
+ index += 1;
3534
+ }
3535
+ return {
3536
+ path: pmPathValue ?? legacyPathValue,
3537
+ noExtensions,
3538
+ noPager,
3539
+ json,
3540
+ quiet,
3541
+ ...author !== void 0 ? { author } : {},
3542
+ ...authorMissingValue ? { authorMissingValue: true } : {}
3543
+ };
3544
+ }
3545
+ function stripGlobalBootstrapTokens(argv) {
3546
+ const remaining = [];
3547
+ let index = 0;
3548
+ while (index < argv.length) {
3549
+ const token = argv[index];
3550
+ if (token === "--") {
3551
+ break;
3552
+ }
3553
+ if (token === "--json" || token === "--quiet" || token === "--no-extensions" || token === "--no-pager" || token === "--profile" || token === "--id-only" || token === "--explain") {
3554
+ index += 1;
3555
+ continue;
3556
+ }
3557
+ if (token === "--author") {
3558
+ index += consumesBootstrapAuthorValue(argv[index + 1]) ? 2 : 1;
3559
+ continue;
3560
+ }
3561
+ if (GLOBAL_VALUE_CONSUMING_FLAGS.has(token)) {
3562
+ index += 2;
3563
+ continue;
3564
+ }
3565
+ if (isInlineGlobalValueToken(token)) {
3566
+ index += 1;
3567
+ continue;
3568
+ }
3569
+ remaining.push(token);
3570
+ index += 1;
3571
+ }
3572
+ return remaining;
3573
+ }
3574
+ function parseBootstrapHelpRequest(argv) {
3575
+ const stripped = stripGlobalBootstrapTokens(argv);
3576
+ const first = stripped[0]?.trim().toLowerCase();
3577
+ if (first === "help") {
3578
+ const commandPathTokens2 = [];
3579
+ for (let index = 1; index < stripped.length; index += 1) {
3580
+ const token = stripped[index];
3581
+ if (token.startsWith("-")) {
3582
+ break;
3583
+ }
3584
+ commandPathTokens2.push(token.trim().toLowerCase());
3585
+ }
3586
+ return {
3587
+ requested: true,
3588
+ commandPathTokens: commandPathTokens2
3589
+ };
3590
+ }
3591
+ const helpFlagIndex = stripped.findIndex((token) => token === "--help" || token === "-h");
3592
+ if (helpFlagIndex < 0) {
3593
+ return {
3594
+ requested: false,
3595
+ commandPathTokens: []
3596
+ };
3597
+ }
3598
+ const commandPathTokens = [];
3599
+ for (const token of stripped) {
3600
+ if (token.startsWith("-")) {
3601
+ break;
3602
+ }
3603
+ commandPathTokens.push(token.trim().toLowerCase());
3604
+ }
3605
+ return {
3606
+ requested: true,
3607
+ commandPathTokens
3608
+ };
3609
+ }
3610
+ function findCommandTokenIndex(argv) {
3611
+ for (let index = 0; index < argv.length; index += 1) {
3612
+ const token = argv[index];
3613
+ if (token === "--") {
3614
+ return void 0;
3615
+ }
3616
+ if (token === "--author") {
3617
+ index += consumesBootstrapAuthorValue(argv[index + 1]) ? 1 : 0;
3618
+ continue;
3619
+ }
3620
+ if (GLOBAL_VALUE_CONSUMING_FLAGS.has(token)) {
3621
+ index += 1;
3622
+ continue;
3623
+ }
3624
+ if (isInlineGlobalValueToken(token) || token === "--json" || token === "--quiet" || token === "--no-extensions" || token === "--no-pager" || token === "--profile" || token === "--id-only" || token === "--explain") {
3625
+ continue;
3626
+ }
3627
+ if (token.startsWith("-")) {
3628
+ continue;
3629
+ }
3630
+ return index;
3631
+ }
3632
+ return void 0;
3633
+ }
3634
+ function parseBootstrapCommandName(argv) {
3635
+ const index = findCommandTokenIndex(argv);
3636
+ return index === void 0 ? void 0 : argv[index].trim().toLowerCase();
3637
+ }
3638
+ function shouldDisablePagerForInvocation(argv, bootstrapGlobal) {
3639
+ if (bootstrapGlobal.noPager) {
3640
+ return true;
3641
+ }
3642
+ if (process.stdout.isTTY === true) {
3643
+ return false;
3644
+ }
3645
+ const helpRequest = parseBootstrapHelpRequest(argv);
3646
+ return helpRequest.requested;
3647
+ }
3648
+ function applyBootstrapPagerPolicy(argv) {
3649
+ const bootstrapGlobal = parseBootstrapGlobalOptions(argv);
3650
+ if (!shouldDisablePagerForInvocation(argv, bootstrapGlobal)) {
3651
+ return;
3652
+ }
3653
+ process.env.PAGER = "cat";
3654
+ process.env.MANPAGER = "cat";
3655
+ process.env.GIT_PAGER = "cat";
3656
+ if (typeof process.env.LESS !== "string" || process.env.LESS.trim().length === 0) {
3657
+ process.env.LESS = "FRX";
3658
+ }
3659
+ }
3660
+ var EXTENSION_ACTION_SYNTAX_TOKENS = /* @__PURE__ */ new Set([
3661
+ "install",
3662
+ "uninstall",
3663
+ "explore",
3664
+ "manage",
3665
+ "doctor",
3666
+ "adopt",
3667
+ "adopt-all",
3668
+ "activate",
3669
+ "deactivate"
3670
+ ]);
3671
+ function normalizeLegacyExtensionActionSyntax(argv) {
3672
+ const extensionIndex = argv.findIndex((token) => token === "extension");
3673
+ if (extensionIndex < 0) {
3674
+ return [...argv];
3675
+ }
3676
+ const actionToken = argv[extensionIndex + 1];
3677
+ if (!actionToken || actionToken.startsWith("-")) {
3678
+ return [...argv];
3679
+ }
3680
+ if (!EXTENSION_ACTION_SYNTAX_TOKENS.has(actionToken)) {
3681
+ return [...argv];
3682
+ }
3683
+ if (argv.includes("--help") || argv.includes("-h")) {
3684
+ return [...argv];
3685
+ }
3686
+ const forcedActionFlag = `--${actionToken}`;
3687
+ if (argv.includes(forcedActionFlag)) {
3688
+ return [...argv];
3689
+ }
3690
+ return [
3691
+ ...argv.slice(0, extensionIndex + 1),
3692
+ forcedActionFlag,
3693
+ ...argv.slice(extensionIndex + 2)
3694
+ ];
3695
+ }
3696
+ function rewriteCommandAlias(argv, trace) {
3697
+ const index = findCommandTokenIndex(argv);
3698
+ if (index === void 0) {
3699
+ return argv;
3700
+ }
3701
+ const token = argv[index];
3702
+ const canonical = EXECUTABLE_COMMAND_ALIASES[token.trim().toLowerCase()];
3703
+ if (!canonical) {
3704
+ return argv;
3705
+ }
3706
+ const rewritten = [...argv];
3707
+ rewritten[index] = canonical;
3708
+ trace.push({
3709
+ from: token,
3710
+ to: [canonical],
3711
+ reason: "command_alias",
3712
+ confidence: "high"
3713
+ });
3714
+ return rewritten;
3715
+ }
3716
+ function normalizeFlagKeyToken(raw) {
3717
+ const withoutPrefix = raw.replace(/^--?/, "");
3718
+ return withoutPrefix.replace(/_/g, "-").replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
3719
+ }
3720
+ function toComparableFlagKey(raw) {
3721
+ return normalizeFlagKeyToken(raw).replace(/-/g, "");
3722
+ }
3723
+ function markUnambiguousFlag(map, key, canonicalFlag) {
3724
+ const existing = map.get(key);
3725
+ if (existing === void 0) {
3726
+ map.set(key, canonicalFlag);
3727
+ return;
3728
+ }
3729
+ if (existing !== canonicalFlag) {
3730
+ map.set(key, null);
3731
+ }
3732
+ }
3733
+ function collectLongFlagCandidates(contract) {
3734
+ const candidates = [];
3735
+ const pushLongFlag = (value) => {
3736
+ if (typeof value !== "string") {
3737
+ return;
3738
+ }
3739
+ if (!value.startsWith("--")) {
3740
+ return;
3741
+ }
3742
+ candidates.push(value);
3743
+ };
3744
+ pushLongFlag(contract.flag);
3745
+ for (const alias of contract.aliases ?? []) {
3746
+ pushLongFlag(alias);
3747
+ }
3748
+ return candidates;
3749
+ }
3750
+ function buildFlagLookup(commandName, contractsOverride) {
3751
+ const contracts = contractsOverride ?? resolveSubcommandFlagContractsForCommand(commandName);
3752
+ const canonicalByNormalized = /* @__PURE__ */ new Map();
3753
+ const canonicalByCompact = /* @__PURE__ */ new Map();
3754
+ const canonicalComparablesMap = /* @__PURE__ */ new Map();
3755
+ const listCanonicalFlags = /* @__PURE__ */ new Set();
3756
+ for (const contract of contracts) {
3757
+ const longCandidates = collectLongFlagCandidates(contract);
3758
+ if (longCandidates.length === 0) {
3759
+ continue;
3760
+ }
3761
+ const canonicalFlag = `--${normalizeFlagKeyToken(longCandidates[0])}`;
3762
+ for (const candidate of longCandidates) {
3763
+ markUnambiguousFlag(canonicalByNormalized, normalizeFlagKeyToken(candidate), canonicalFlag);
3764
+ markUnambiguousFlag(canonicalByCompact, toComparableFlagKey(candidate), canonicalFlag);
3765
+ }
3766
+ const comparable = toComparableFlagKey(canonicalFlag);
3767
+ if (!canonicalComparablesMap.has(canonicalFlag)) {
3768
+ canonicalComparablesMap.set(canonicalFlag, comparable);
3769
+ }
3770
+ if (contract.list === true) {
3771
+ listCanonicalFlags.add(canonicalFlag);
3772
+ }
3773
+ }
3774
+ return {
3775
+ canonicalByNormalized,
3776
+ canonicalByCompact,
3777
+ canonicalComparables: [...canonicalComparablesMap.entries()].map(([canonicalFlag, comparable]) => ({
3778
+ canonicalFlag,
3779
+ comparable
3780
+ })),
3781
+ listCanonicalFlags
3782
+ };
3783
+ }
3784
+ function resolveCanonicalFlag(rawKey, lookup) {
3785
+ const normalizedKey = normalizeFlagKeyToken(rawKey);
3786
+ const direct = lookup.canonicalByNormalized.get(normalizedKey);
3787
+ if (typeof direct === "string") {
3788
+ return {
3789
+ flag: direct,
3790
+ reason: "flag_alias",
3791
+ confidence: "high"
3792
+ };
3793
+ }
3794
+ const comparableKey = normalizedKey.replace(/-/g, "");
3795
+ const compactMatch = lookup.canonicalByCompact.get(comparableKey);
3796
+ if (typeof compactMatch === "string") {
3797
+ return {
3798
+ flag: compactMatch,
3799
+ reason: "flag_alias",
3800
+ confidence: "high"
3801
+ };
3802
+ }
3803
+ const maxDistance = comparableKey.length >= 8 ? 2 : 1;
3804
+ let bestDistance = Number.POSITIVE_INFINITY;
3805
+ let bestFlag;
3806
+ let tied = false;
3807
+ for (const candidate of lookup.canonicalComparables) {
3808
+ const distance = levenshteinDistanceWithinLimit(comparableKey, candidate.comparable, maxDistance);
3809
+ if (distance === null) {
3810
+ continue;
3811
+ }
3812
+ if (distance < bestDistance) {
3813
+ bestDistance = distance;
3814
+ bestFlag = candidate.canonicalFlag;
3815
+ tied = false;
3816
+ continue;
3817
+ }
3818
+ if (distance === bestDistance && bestFlag !== candidate.canonicalFlag) {
3819
+ tied = true;
3820
+ }
3821
+ }
3822
+ if (!bestFlag || tied || !Number.isFinite(bestDistance) || bestDistance <= 0) {
3823
+ return null;
3824
+ }
3825
+ return {
3826
+ flag: bestFlag,
3827
+ reason: "flag_typo",
3828
+ confidence: bestDistance >= 2 ? "medium" : "high"
3829
+ };
3830
+ }
3831
+ function parseBareKeyValueToken(token) {
3832
+ if (token.includes("://")) {
3833
+ return null;
3834
+ }
3835
+ const match = token.match(/^([A-Za-z][A-Za-z0-9_-]{1,63})([:=])(.*)$/);
3836
+ if (!match) {
3837
+ return null;
3838
+ }
3839
+ const key = match[1];
3840
+ const value = match[3];
3841
+ if (value.length === 0) {
3842
+ return null;
3843
+ }
3844
+ return {
3845
+ key,
3846
+ value
3847
+ };
3848
+ }
3849
+ function normalizeLongOptionToken(token, lookup) {
3850
+ if (!token.startsWith("--")) {
3851
+ return { tokens: [token] };
3852
+ }
3853
+ const equalsIndex = token.indexOf("=");
3854
+ const key = equalsIndex >= 0 ? token.slice(0, equalsIndex) : token;
3855
+ const inlineValue = equalsIndex >= 0 ? token.slice(equalsIndex + 1) : void 0;
3856
+ const resolution = resolveCanonicalFlag(key, lookup);
3857
+ if (!resolution) {
3858
+ return { tokens: [token] };
3859
+ }
3860
+ const normalizedToken = inlineValue === void 0 ? resolution.flag : `${resolution.flag}=${inlineValue}`;
3861
+ if (normalizedToken === token) {
3862
+ return { tokens: [token] };
3863
+ }
3864
+ return {
3865
+ tokens: [normalizedToken],
3866
+ event: {
3867
+ from: token,
3868
+ to: [normalizedToken],
3869
+ reason: resolution.reason,
3870
+ confidence: resolution.confidence
3871
+ }
3872
+ };
3873
+ }
3874
+ function splitCanonicalListToken(token) {
3875
+ if (!token.startsWith("--")) {
3876
+ return null;
3877
+ }
3878
+ const equalsIndex = token.indexOf("=");
3879
+ if (equalsIndex < 0) {
3880
+ return { flag: token };
3881
+ }
3882
+ return {
3883
+ flag: token.slice(0, equalsIndex),
3884
+ inlineValue: token.slice(equalsIndex + 1)
3885
+ };
3886
+ }
3887
+ function copyValueConsumingFlag(argv, index, result) {
3888
+ result.push(argv[index]);
3889
+ const next = argv[index + 1];
3890
+ if (typeof next === "string" && next !== "--") {
3891
+ result.push(next);
3892
+ return index + 2;
3893
+ }
3894
+ return index + 1;
3895
+ }
3896
+ function readListFlagOccurrence(argv, index, parsed, multiValueListFlags) {
3897
+ if (parsed.inlineValue !== void 0) {
3898
+ return {
3899
+ originalTokens: [argv[index]],
3900
+ value: parsed.inlineValue,
3901
+ consumed: 1
3902
+ };
3903
+ }
3904
+ const values = [];
3905
+ let valueIndex = index + 1;
3906
+ while (valueIndex < argv.length && argv[valueIndex] !== "--" && !argv[valueIndex].startsWith("-") && (values.length === 0 || multiValueListFlags.has(parsed.flag))) {
3907
+ values.push(argv[valueIndex]);
3908
+ valueIndex += 1;
3909
+ }
3910
+ const consumed = values.length === 0 ? 1 : 1 + values.length;
3911
+ return {
3912
+ originalTokens: argv.slice(index, index + consumed),
3913
+ value: values.length === 0 ? void 0 : values.join(","),
3914
+ consumed
3915
+ };
3916
+ }
3917
+ function recordListFlagOccurrence(slots, result, flag, occurrence) {
3918
+ const existing = slots.get(flag);
3919
+ if (existing) {
3920
+ existing.values.push(occurrence.value);
3921
+ existing.occurrences += 1;
3922
+ return;
3923
+ }
3924
+ slots.set(flag, {
3925
+ outputIndex: result.length,
3926
+ originalTokens: occurrence.originalTokens,
3927
+ values: [occurrence.value],
3928
+ occurrences: 1
3929
+ });
3930
+ result.push(null);
3931
+ }
3932
+ function buildListFlagCoalescingSplices(slots, multiValueListFlags) {
3933
+ const events = [];
3934
+ const splices = [];
3935
+ for (const [flag, slot] of slots) {
3936
+ const shouldMerge = slot.occurrences >= 2 || multiValueListFlags.has(flag) && slot.originalTokens.length > 2;
3937
+ if (!shouldMerge) {
3938
+ splices.push({
3939
+ outputIndex: slot.outputIndex,
3940
+ tokens: slot.originalTokens
3941
+ });
3942
+ continue;
3943
+ }
3944
+ const mergedToken = `${flag}=${slot.values.join(",")}`;
3945
+ splices.push({ outputIndex: slot.outputIndex, tokens: [mergedToken] });
3946
+ events.push({
3947
+ from: `${flag} (x${slot.occurrences})`,
3948
+ to: [mergedToken],
3949
+ reason: "list_merge",
3950
+ confidence: "high"
3951
+ });
3952
+ }
3953
+ return { events, splices };
3954
+ }
3955
+ function applyListFlagSplices(result, splices) {
3956
+ splices.sort((a, b) => b.outputIndex - a.outputIndex);
3957
+ for (const splice of splices) {
3958
+ result.splice(splice.outputIndex, 1, ...splice.tokens);
3959
+ }
3960
+ }
3961
+ function coalesceRepeatedListFlags(argv, listFlags, valueConsumingFlags = /* @__PURE__ */ new Set(), multiValueListFlags = /* @__PURE__ */ new Set()) {
3962
+ if (listFlags.size === 0) {
3963
+ return { argv: [...argv], events: [] };
3964
+ }
3965
+ const result = [];
3966
+ const slots = /* @__PURE__ */ new Map();
3967
+ let index = 0;
3968
+ while (index < argv.length) {
3969
+ const token = argv[index];
3970
+ if (token === "--") {
3971
+ result.push(...argv.slice(index));
3972
+ break;
3973
+ }
3974
+ if (valueConsumingFlags.has(token)) {
3975
+ index = copyValueConsumingFlag(argv, index, result);
3976
+ continue;
3977
+ }
3978
+ const parsed = splitCanonicalListToken(token);
3979
+ if (!parsed || !listFlags.has(parsed.flag)) {
3980
+ result.push(token);
3981
+ index += 1;
3982
+ continue;
3983
+ }
3984
+ const occurrence = readListFlagOccurrence(argv, index, parsed, multiValueListFlags);
3985
+ if (occurrence.value === void 0) {
3986
+ result.push(token);
3987
+ index += occurrence.consumed;
3988
+ continue;
3989
+ }
3990
+ recordListFlagOccurrence(slots, result, parsed.flag, {
3991
+ originalTokens: occurrence.originalTokens,
3992
+ value: occurrence.value
3993
+ });
3994
+ index += occurrence.consumed;
3995
+ }
3996
+ const { events, splices } = buildListFlagCoalescingSplices(slots, multiValueListFlags);
3997
+ applyListFlagSplices(result, splices);
3998
+ return { argv: result, events };
3999
+ }
4000
+ var LINKED_TEST_TWO_TOKEN_KEYS_BY_FLAG = /* @__PURE__ */ new Map([
4001
+ ["--add", /* @__PURE__ */ new Set(["command", "cmd", "path"])],
4002
+ ["--remove", /* @__PURE__ */ new Set(["command", "path"])]
4003
+ ]);
4004
+ function isLinkedTestTwoTokenValuePosition(commandName, emittedTokens) {
4005
+ if (commandName !== "test" || emittedTokens.length < 2) {
4006
+ return false;
4007
+ }
4008
+ const key = emittedTokens[emittedTokens.length - 1];
4009
+ const flag = emittedTokens[emittedTokens.length - 2];
4010
+ const keys = LINKED_TEST_TWO_TOKEN_KEYS_BY_FLAG.get(flag);
4011
+ return keys !== void 0 && keys.has(key);
4012
+ }
4013
+ function shouldPreserveBareKeyValueToken(commandName, emittedTokens) {
4014
+ return commandName === "search" || isLinkedTestTwoTokenValuePosition(commandName, emittedTokens);
4015
+ }
4016
+ function mergeLinkedTestTwoTokenEntries(argv, commandName, trace) {
4017
+ if (commandName !== "test") {
4018
+ return argv;
4019
+ }
4020
+ const result = [];
4021
+ let index = 0;
4022
+ while (index < argv.length) {
4023
+ const token = argv[index];
4024
+ if (token === "--") {
4025
+ result.push(...argv.slice(index));
4026
+ return result;
4027
+ }
4028
+ const keys = LINKED_TEST_TWO_TOKEN_KEYS_BY_FLAG.get(token);
4029
+ const key = keys ? argv[index + 1] : void 0;
4030
+ if (!keys || typeof key !== "string" || !keys.has(key)) {
4031
+ result.push(token);
4032
+ index += 1;
4033
+ continue;
4034
+ }
4035
+ let runEnd = index + 2;
4036
+ while (runEnd < argv.length && !argv[runEnd].startsWith("-")) {
4037
+ runEnd += 1;
4038
+ }
4039
+ if (runEnd - (index + 2) !== 1) {
4040
+ result.push(token);
4041
+ index += 1;
4042
+ continue;
4043
+ }
4044
+ const value = argv[index + 2];
4045
+ const mergedValue = `${key}=${value}`;
4046
+ result.push(token, mergedValue);
4047
+ trace.push({
4048
+ from: `${token} ${key} ${value}`,
4049
+ to: [token, mergedValue],
4050
+ reason: "bare_key_value",
4051
+ confidence: "high"
4052
+ });
4053
+ index += 3;
4054
+ }
4055
+ return result;
4056
+ }
4057
+ function normalizeBootstrapInvocation(argv) {
4058
+ const trace = [];
4059
+ const legacyNormalized = normalizeLegacyExtensionActionSyntax(argv);
4060
+ if (legacyNormalized.length !== argv.length || legacyNormalized.some((token, index) => token !== argv[index])) {
4061
+ trace.push({
4062
+ from: argv.join(" "),
4063
+ to: [...legacyNormalized],
4064
+ reason: "legacy_extension_action",
4065
+ confidence: "high"
4066
+ });
4067
+ }
4068
+ const aliasNormalized = rewriteCommandAlias(legacyNormalized, trace);
4069
+ const commandName = parseBootstrapCommandName(aliasNormalized);
4070
+ const commandPathName = parseBootstrapCommandPathName(aliasNormalized);
4071
+ const lookup = buildFlagLookup(commandPathName ?? commandName);
4072
+ const normalizedArgv = [];
4073
+ for (let index = 0; index < aliasNormalized.length; index += 1) {
4074
+ const token = aliasNormalized[index];
4075
+ if (token === "--") {
4076
+ normalizedArgv.push(...aliasNormalized.slice(index));
4077
+ break;
4078
+ }
4079
+ const previous = normalizedArgv[normalizedArgv.length - 1];
4080
+ if (token.startsWith("--")) {
4081
+ const normalizedToken = normalizeLongOptionToken(token, lookup);
4082
+ normalizedArgv.push(...normalizedToken.tokens);
4083
+ if (normalizedToken.event) {
4084
+ trace.push(normalizedToken.event);
4085
+ }
4086
+ continue;
4087
+ }
4088
+ const bareKeyValue = parseBareKeyValueToken(token);
4089
+ if (bareKeyValue && !(typeof previous === "string" && previous.startsWith("-")) && !shouldPreserveBareKeyValueToken(commandName, normalizedArgv)) {
4090
+ const resolution = resolveCanonicalFlag(bareKeyValue.key, lookup);
4091
+ if (resolution) {
4092
+ const replacement = [resolution.flag, bareKeyValue.value];
4093
+ normalizedArgv.push(...replacement);
4094
+ trace.push({
4095
+ from: token,
4096
+ to: replacement,
4097
+ reason: "bare_key_value",
4098
+ confidence: resolution.confidence
4099
+ });
4100
+ continue;
4101
+ }
4102
+ }
4103
+ normalizedArgv.push(token);
4104
+ }
4105
+ const linkedTestNormalized = mergeLinkedTestTwoTokenEntries(normalizedArgv, commandName, trace);
4106
+ const coalesced = coalesceRepeatedListFlags(linkedTestNormalized, lookup.listCanonicalFlags, GLOBAL_VALUE_CONSUMING_FLAGS, commandName === "create" ? /* @__PURE__ */ new Set(["--tags"]) : /* @__PURE__ */ new Set());
4107
+ for (const event of coalesced.events) {
4108
+ trace.push(event);
4109
+ }
4110
+ return {
4111
+ argv: coalesced.argv,
4112
+ commandName,
4113
+ trace
4114
+ };
4115
+ }
4116
+ function parseBootstrapCommandPathName(argv) {
4117
+ const stripped = stripGlobalBootstrapTokens(argv);
4118
+ const first = stripped[0]?.trim().toLowerCase();
4119
+ const second = stripped[1]?.trim().toLowerCase();
4120
+ if ((first === "extension" || first === "package" || first === "packages") && typeof second === "string" && second.length > 0 && !second.startsWith("-")) {
4121
+ return `${first} ${second}`;
4122
+ }
4123
+ return first;
4124
+ }
4125
+ function parseBootstrapTypeValue(argv) {
4126
+ for (let index = 0; index < argv.length; index += 1) {
4127
+ const token = argv[index];
4128
+ if (token === "--type") {
4129
+ const candidate = argv[index + 1];
4130
+ if (typeof candidate === "string" && candidate.trim().length > 0) {
4131
+ return candidate.trim();
4132
+ }
4133
+ continue;
4134
+ }
4135
+ if (token.startsWith("--type=")) {
4136
+ const candidate = token.slice("--type=".length).trim();
4137
+ if (candidate.length > 0) {
4138
+ return candidate;
4139
+ }
4140
+ }
4141
+ }
4142
+ return void 0;
4143
+ }
4144
+
3374
4145
  // dist/cli/migration-gates.js
3375
4146
  !(function() {
3376
4147
  try {
@@ -3506,6 +4277,15 @@ async function enforceItemFormatWriteGateAndPreflightMigration(commandPath, opti
3506
4277
  }
3507
4278
  }
3508
4279
 
4280
+ // dist/cli/commands/extension/shared.js
4281
+ !(function() {
4282
+ try {
4283
+ var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
4284
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "7bcb2c6c-3b04-5a62-8863-3596d9f0f7ac");
4285
+ } catch (e2) {
4286
+ }
4287
+ })();
4288
+
3509
4289
  // dist/cli/commander-usage.js
3510
4290
  !(function() {
3511
4291
  try {
@@ -4322,7 +5102,7 @@ function attachCreateUpdatePolicyHelpText(rootProgram, typeRegistry, argv) {
4322
5102
  !(function() {
4323
5103
  try {
4324
5104
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
4325
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e1e2f806-6259-50db-8255-8a1656b69c5c");
5105
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "422e7133-3086-5221-ab89-27a20135ee08");
4326
5106
  } catch (e2) {
4327
5107
  }
4328
5108
  })();
@@ -4378,10 +5158,10 @@ var EXPECTED_HANDLED_ERROR_EXIT_CODES = /* @__PURE__ */ new Set([
4378
5158
  EXIT_CODE.CONFLICT
4379
5159
  ]);
4380
5160
  var TRUE_LIKE_ENV_VALUES = /* @__PURE__ */ new Set(["1", "true", "yes", "on"]);
4381
- var loadSetupRegistrationModule = createLazyModule(() => import("./chunks/register-setup-5XNGKJ22.js"));
4382
- var loadListQueryRegistrationModule = createLazyModule(() => import("./chunks/register-list-query-BUWCYHBT.js"));
4383
- var loadMutationRegistrationModule = createLazyModule(() => import("./chunks/register-mutation-UELYYOR7.js"));
4384
- var loadOperationRegistrationModule = createLazyModule(() => import("./chunks/register-operations-ISUX6LY5.js"));
5161
+ var loadSetupRegistrationModule = createLazyModule(() => import("./chunks/register-setup-BCVLFEYS.js"));
5162
+ var loadListQueryRegistrationModule = createLazyModule(() => import("./chunks/register-list-query-DKA3EH5D.js"));
5163
+ var loadMutationRegistrationModule = createLazyModule(() => import("./chunks/register-mutation-ARFHRW55.js"));
5164
+ var loadOperationRegistrationModule = createLazyModule(() => import("./chunks/register-operations-ZUJ5JWPE.js"));
4385
5165
  function describeUnknownError(error) {
4386
5166
  if (error instanceof PmCliError) {
4387
5167
  return error.message;
@@ -5716,15 +6496,7 @@ async function registerDynamicExtensionCommandPaths(rootProgram, invocationArgv)
5716
6496
  }
5717
6497
  }
5718
6498
  var CLI_VERSION = resolvePmCliVersion(import.meta.url, ["../.."]) ?? "0.0.0";
5719
- var program = new Command();
5720
- program.name("pm").description("Universal, flexible, extensible, agent-optimized project management CLI for any project or programming language.").version(CLI_VERSION).showHelpAfterError(false).allowExcessArguments(false).allowUnknownOption(false).configureOutput({
5721
- writeOut: (str) => {
5722
- writeStdout(str);
5723
- },
5724
- // Commander errors are rendered in our own catch path.
5725
- writeErr: () => {
5726
- }
5727
- }).option("--json", "Output JSON instead of TOON").option("--quiet", "Suppress stdout output").option("--no-changed-fields", "Omit the changed_fields array from mutation output (keeps changed_field_count)").option("--id-only", "Print only id and status for single-item mutation output").option("--pm-path <dir>", "Explicit tracker storage path for this command (preferred over --path)").option("--path <dir>", "Backward-compatible alias for --pm-path; this is the tracker storage path, not a workspace cwd").option("--no-extensions", "Disable extension loading").option("--no-pager", "Disable pager integration for help and long output").option("--explain", "Render extended rationale and examples in help output").option("--profile", "Print deterministic timing diagnostics").exitOverride();
6499
+ var program = createPmCliProgram(CLI_VERSION);
5728
6500
  program.hook("preAction", async (_thisCommand, actionCommand) => {
5729
6501
  activeExtensionHookContext = null;
5730
6502
  activeTelemetryCommandContext = null;
@@ -6418,7 +7190,16 @@ async function runPmCli(rawArgv = process.argv.slice(2)) {
6418
7190
  ...invocationArgv
6419
7191
  ];
6420
7192
  const isBareInvocation = invocationArgv.length === 0;
7193
+ let restorePmAuthor;
6421
7194
  try {
7195
+ const bootstrapGlobal = parseBootstrapGlobalOptions(invocationArgv);
7196
+ if (bootstrapGlobal.authorMissingValue) {
7197
+ throw new PmCliError("--author requires a non-empty value.", EXIT_CODE.USAGE, {
7198
+ code: "missing_required_argument",
7199
+ nextSteps: ["Pass an explicit author identifier with --author <id>."]
7200
+ });
7201
+ }
7202
+ restorePmAuthor = applyInvocationAuthorOverride(bootstrapGlobal.author);
6422
7203
  enforceExplicitRetryForFlagTypos(bootstrapInvocation);
6423
7204
  applyBootstrapPagerPolicy(invocationArgv);
6424
7205
  const registrationSelection = resolveCoreCommandRegistrationSelection(invocationArgv);
@@ -6448,6 +7229,8 @@ async function runPmCli(rawArgv = process.argv.slice(2)) {
6448
7229
  await program.parseAsync(invocationProcessArgv);
6449
7230
  } catch (error) {
6450
7231
  await handleRunPmCliError({ error, invocationArgv });
7232
+ } finally {
7233
+ restorePmAuthor?.();
6451
7234
  }
6452
7235
  }
6453
7236
  var _testOnly = {