@unbrained/pm-cli 2026.7.7 → 2026.7.9

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 (428) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +1 -0
  3. package/dist/cli/commands/close.js +5 -2
  4. package/dist/cli/commands/close.js.map +1 -1
  5. package/dist/cli/commands/completion.js +16 -2
  6. package/dist/cli/commands/completion.js.map +1 -1
  7. package/dist/cli/commands/context.d.ts +1 -0
  8. package/dist/cli/commands/context.js +4 -4
  9. package/dist/cli/commands/context.js.map +1 -1
  10. package/dist/cli/commands/contracts.d.ts +11 -0
  11. package/dist/cli/commands/contracts.js +112 -15
  12. package/dist/cli/commands/contracts.js.map +1 -1
  13. package/dist/cli/commands/create.js +4 -2
  14. package/dist/cli/commands/create.js.map +1 -1
  15. package/dist/cli/commands/extension.d.ts +23 -19
  16. package/dist/cli/commands/extension.js +167 -57
  17. package/dist/cli/commands/extension.js.map +1 -1
  18. package/dist/cli/commands/list.d.ts +4 -0
  19. package/dist/cli/commands/list.js +32 -3
  20. package/dist/cli/commands/list.js.map +1 -1
  21. package/dist/cli/commands/search.js +3 -3
  22. package/dist/cli/commands/search.js.map +1 -1
  23. package/dist/cli/commands/update.d.ts +32 -1
  24. package/dist/cli/commands/update.js +19 -2
  25. package/dist/cli/commands/update.js.map +1 -1
  26. package/dist/cli/help-content.js +28 -2
  27. package/dist/cli/help-content.js.map +1 -1
  28. package/dist/cli/register-list-query.js +5 -2
  29. package/dist/cli/register-list-query.js.map +1 -1
  30. package/dist/cli/register-operations.js +4 -2
  31. package/dist/cli/register-operations.js.map +1 -1
  32. package/dist/cli/register-setup.js +8 -2
  33. package/dist/cli/register-setup.js.map +1 -1
  34. package/dist/cli/registration-helpers.js +4 -2
  35. package/dist/cli/registration-helpers.js.map +1 -1
  36. package/dist/cli-bundle/chunks/append-CDPAYYSB.js +11 -0
  37. package/dist/cli-bundle/chunks/{append-PVCTBVJG.js → append-RSPHC423.js} +5 -5
  38. package/dist/cli-bundle/chunks/{chunk-6G6O3OPQ.js → chunk-26MFLA7K.js} +7 -7
  39. package/dist/cli-bundle/chunks/{chunk-LCFJ7XAM.js → chunk-2BVD4ZD2.js} +267 -232
  40. package/dist/cli-bundle/chunks/chunk-2BVD4ZD2.js.map +7 -0
  41. package/dist/cli-bundle/chunks/{chunk-7ML7JONU.js → chunk-2FKIIQMJ.js} +14 -14
  42. package/dist/cli-bundle/chunks/chunk-2FKIIQMJ.js.map +1 -0
  43. package/dist/cli-bundle/chunks/{chunk-H2SMKL2N.js → chunk-3FUXM574.js} +4 -4
  44. package/dist/cli-bundle/chunks/{chunk-DR2V5OIV.js → chunk-3SHDAKMF.js} +3 -3
  45. package/dist/cli-bundle/chunks/{chunk-MRFWUSVA.js → chunk-3UXIMY62.js} +3 -3
  46. package/dist/cli-bundle/chunks/{chunk-WCWVEXGA.js → chunk-3V5C7PUH.js} +2 -2
  47. package/dist/cli-bundle/chunks/{chunk-43YSKY75.js → chunk-3YJDIJIE.js} +3 -3
  48. package/dist/cli-bundle/chunks/{chunk-HX6QXV5P.js → chunk-4I7KS5ES.js} +2 -2
  49. package/dist/cli-bundle/chunks/{chunk-XHCVAZGM.js → chunk-4OCWJ2AP.js} +7 -7
  50. package/dist/cli-bundle/chunks/{chunk-C5ACVMOI.js → chunk-5RJ4LFD3.js} +34 -7
  51. package/dist/cli-bundle/chunks/chunk-5RJ4LFD3.js.map +7 -0
  52. package/dist/cli-bundle/chunks/{chunk-3TYOW6RR.js → chunk-5STY7NVM.js} +4 -4
  53. package/dist/cli-bundle/chunks/{chunk-7VQ3JJN5.js → chunk-5VAZHYVQ.js} +2 -2
  54. package/dist/cli-bundle/chunks/{chunk-4IQKDKGE.js → chunk-5ZMZF53A.js} +7 -7
  55. package/dist/cli-bundle/chunks/{chunk-6LCJRGPD.js → chunk-63PZJCKO.js} +10 -7
  56. package/dist/cli-bundle/chunks/chunk-63PZJCKO.js.map +1 -0
  57. package/dist/cli-bundle/chunks/{chunk-MCEUKJKW.js → chunk-6FU5BVRB.js} +4 -4
  58. package/dist/cli-bundle/chunks/{chunk-AJUON7E6.js → chunk-6RR4XM5H.js} +3 -3
  59. package/dist/cli-bundle/chunks/{chunk-TEISGNSH.js → chunk-6TD5QGIB.js} +4 -4
  60. package/dist/cli-bundle/chunks/{chunk-565WYS5W.js → chunk-6WCXSC5V.js} +5 -5
  61. package/dist/cli-bundle/chunks/{chunk-NWWL22C7.js → chunk-6ZKDMEVT.js} +3 -3
  62. package/dist/cli-bundle/chunks/{chunk-VLEA2UTQ.js → chunk-7QKSLAHB.js} +2 -2
  63. package/dist/cli-bundle/chunks/{chunk-S6VC2A2K.js → chunk-7TBUV7XS.js} +4 -4
  64. package/dist/cli-bundle/chunks/{chunk-YPMZMKN7.js → chunk-7UCBLJDF.js} +2 -2
  65. package/dist/cli-bundle/chunks/{chunk-4MZOKTI2.js → chunk-AEOFBBWO.js} +3 -3
  66. package/dist/cli-bundle/chunks/{chunk-QFBSP3NI.js → chunk-ASSVI7FP.js} +12 -10
  67. package/dist/cli-bundle/chunks/{chunk-QFBSP3NI.js.map → chunk-ASSVI7FP.js.map} +1 -1
  68. package/dist/cli-bundle/chunks/{chunk-ZO7CLOY2.js → chunk-BFNFTHWQ.js} +3 -3
  69. package/dist/cli-bundle/chunks/{chunk-YNCFP5AR.js → chunk-BPJ5NYSJ.js} +2 -2
  70. package/dist/cli-bundle/chunks/{chunk-J2VGADNG.js → chunk-BPYVKTZE.js} +122 -27
  71. package/dist/cli-bundle/chunks/chunk-BPYVKTZE.js.map +1 -0
  72. package/dist/cli-bundle/chunks/{chunk-P3MJJW7P.js → chunk-C3YU3TXX.js} +2 -2
  73. package/dist/cli-bundle/chunks/{chunk-SY75LYXR.js → chunk-C6XSTACC.js} +3 -3
  74. package/dist/cli-bundle/chunks/{chunk-S547WBYG.js → chunk-CEX2DQXZ.js} +600 -96
  75. package/dist/cli-bundle/chunks/chunk-CEX2DQXZ.js.map +7 -0
  76. package/dist/cli-bundle/chunks/{chunk-2TILG6F2.js → chunk-CGDUIPJL.js} +3 -3
  77. package/dist/cli-bundle/chunks/{chunk-LZQU6XJG.js → chunk-CHSXGTWF.js} +23 -9
  78. package/dist/cli-bundle/chunks/{chunk-LZQU6XJG.js.map → chunk-CHSXGTWF.js.map} +2 -2
  79. package/dist/cli-bundle/chunks/{chunk-J7BOLHAV.js → chunk-CXH7EMSB.js} +3 -3
  80. package/dist/cli-bundle/chunks/{chunk-W5HXHC7C.js → chunk-D6J5673C.js} +4 -4
  81. package/dist/cli-bundle/chunks/{chunk-XZWL7VNE.js → chunk-DBV5A7FT.js} +9 -7
  82. package/dist/cli-bundle/chunks/chunk-DBV5A7FT.js.map +1 -0
  83. package/dist/cli-bundle/chunks/{chunk-ARKHKYYS.js → chunk-DQLP22K2.js} +7 -7
  84. package/dist/cli-bundle/chunks/{chunk-YPD7SQ5P.js → chunk-EEJKHF7M.js} +5 -5
  85. package/dist/cli-bundle/chunks/{chunk-EDO7VXSO.js → chunk-EP2CKDS7.js} +2 -2
  86. package/dist/cli-bundle/chunks/{chunk-SIM5JDON.js → chunk-F5DDGY6R.js} +3 -3
  87. package/dist/cli-bundle/chunks/{chunk-I74FMIWA.js → chunk-FFB3WITE.js} +3 -3
  88. package/dist/cli-bundle/chunks/{chunk-43UQN754.js → chunk-FJR2S7S4.js} +7 -7
  89. package/dist/cli-bundle/chunks/{chunk-CJQM7O7R.js → chunk-FOJEBRDD.js} +5 -5
  90. package/dist/cli-bundle/chunks/{chunk-E3YQFSFE.js → chunk-GLMJLBLR.js} +3 -3
  91. package/dist/cli-bundle/chunks/{chunk-KTGJ2CBU.js → chunk-GO2X6ZRB.js} +3 -3
  92. package/dist/cli-bundle/chunks/{chunk-DDDWVPID.js → chunk-GSQVQINP.js} +4 -4
  93. package/dist/cli-bundle/chunks/{chunk-EVEPHNXJ.js → chunk-GZ365M6E.js} +4 -4
  94. package/dist/cli-bundle/chunks/{chunk-VGO73OCK.js → chunk-HZZ3AC27.js} +3 -3
  95. package/dist/cli-bundle/chunks/{chunk-7Y5N34HX.js → chunk-IINCZYM3.js} +3 -3
  96. package/dist/cli-bundle/chunks/{chunk-GLS6VMWI.js → chunk-INOWVPUD.js} +5 -5
  97. package/dist/cli-bundle/chunks/{chunk-PDXJXEZJ.js → chunk-J6AD3GWC.js} +2 -2
  98. package/dist/cli-bundle/chunks/{chunk-52NS7JDP.js → chunk-JH5XDDYS.js} +5 -5
  99. package/dist/cli-bundle/chunks/{chunk-GPIDUMMN.js → chunk-JYVPLGOW.js} +4 -4
  100. package/dist/cli-bundle/chunks/{chunk-XC3X7BQR.js → chunk-K2OKKYSO.js} +11 -9
  101. package/dist/cli-bundle/chunks/{chunk-XC3X7BQR.js.map → chunk-K2OKKYSO.js.map} +2 -2
  102. package/dist/cli-bundle/chunks/{chunk-YCVWWIKY.js → chunk-K4NMHZR3.js} +111 -24
  103. package/dist/cli-bundle/chunks/chunk-K4NMHZR3.js.map +7 -0
  104. package/dist/cli-bundle/chunks/{chunk-EIUBK2LT.js → chunk-K52C6YPA.js} +5 -5
  105. package/dist/cli-bundle/chunks/{chunk-IDIBF4E2.js → chunk-KAJNWMBE.js} +8 -8
  106. package/dist/cli-bundle/chunks/{chunk-2LEJGRQ7.js → chunk-KFL3XHMA.js} +2 -2
  107. package/dist/cli-bundle/chunks/{chunk-XS2TMNXR.js → chunk-LD2NBQ5T.js} +3 -3
  108. package/dist/cli-bundle/chunks/{chunk-II7R6KD4.js → chunk-LG4N6YOK.js} +5 -5
  109. package/dist/cli-bundle/chunks/{chunk-M62RO3XK.js → chunk-LHDHS4Z6.js} +5 -5
  110. package/dist/cli-bundle/chunks/{chunk-YTD5GICJ.js → chunk-MBLHA6LR.js} +4 -4
  111. package/dist/cli-bundle/chunks/{chunk-F6MT7KKE.js → chunk-MCH6IKK7.js} +3 -3
  112. package/dist/cli-bundle/chunks/{chunk-7PNQA24K.js → chunk-MCZK7LY6.js} +24 -10
  113. package/dist/cli-bundle/chunks/{chunk-7PNQA24K.js.map → chunk-MCZK7LY6.js.map} +1 -1
  114. package/dist/cli-bundle/chunks/{chunk-UO7XAZK6.js → chunk-MFLLULHU.js} +267 -232
  115. package/dist/cli-bundle/chunks/chunk-MFLLULHU.js.map +1 -0
  116. package/dist/cli-bundle/chunks/{chunk-FILL6BB2.js → chunk-N4S7BV43.js} +14 -14
  117. package/dist/cli-bundle/chunks/chunk-N4S7BV43.js.map +7 -0
  118. package/dist/cli-bundle/chunks/{chunk-2APXX4TZ.js → chunk-NBJCIAVV.js} +108 -21
  119. package/dist/cli-bundle/chunks/chunk-NBJCIAVV.js.map +1 -0
  120. package/dist/cli-bundle/chunks/{chunk-Y7KYVCZM.js → chunk-NGBWEYNY.js} +5 -5
  121. package/dist/cli-bundle/chunks/{chunk-RB3KLPAH.js → chunk-NRMDT4OV.js} +4 -4
  122. package/dist/cli-bundle/chunks/{chunk-TZLYO4PP.js → chunk-NRYZ4QLH.js} +121 -26
  123. package/dist/cli-bundle/chunks/chunk-NRYZ4QLH.js.map +7 -0
  124. package/dist/cli-bundle/chunks/{chunk-F6YC2A6X.js → chunk-NSPSJWGL.js} +9 -6
  125. package/dist/cli-bundle/chunks/chunk-NSPSJWGL.js.map +7 -0
  126. package/dist/cli-bundle/chunks/{chunk-GH73UOSJ.js → chunk-NTOOEVJ4.js} +2 -2
  127. package/dist/cli-bundle/chunks/{chunk-6XTSYPPO.js → chunk-ONADVBMD.js} +8 -6
  128. package/dist/cli-bundle/chunks/chunk-ONADVBMD.js.map +7 -0
  129. package/dist/cli-bundle/chunks/{chunk-Y5IKRUEM.js → chunk-P5SUMCU5.js} +167 -65
  130. package/dist/cli-bundle/chunks/chunk-P5SUMCU5.js.map +1 -0
  131. package/dist/cli-bundle/chunks/{chunk-EMXPI36L.js → chunk-PAWPLIWW.js} +5 -5
  132. package/dist/cli-bundle/chunks/{chunk-AGAVEDIE.js → chunk-PCBZ2VJD.js} +4 -4
  133. package/dist/cli-bundle/chunks/{chunk-MHNMCDWR.js → chunk-PPY3GXFK.js} +600 -96
  134. package/dist/cli-bundle/chunks/chunk-PPY3GXFK.js.map +1 -0
  135. package/dist/cli-bundle/chunks/{chunk-3X542TEY.js → chunk-Q3CFSOQZ.js} +4 -4
  136. package/dist/cli-bundle/chunks/{chunk-4BKDAEDF.js → chunk-QJZM5WO5.js} +3 -3
  137. package/dist/cli-bundle/chunks/{chunk-HHEWQXPD.js → chunk-QLEH6FTQ.js} +4 -4
  138. package/dist/cli-bundle/chunks/{chunk-D2DCTFTL.js → chunk-QYZMZD4L.js} +4 -4
  139. package/dist/cli-bundle/chunks/{chunk-6UQCNWFV.js → chunk-RFHLRMLQ.js} +3 -3
  140. package/dist/cli-bundle/chunks/{chunk-Q64AYQYW.js → chunk-RL24NAUX.js} +4 -4
  141. package/dist/cli-bundle/chunks/{chunk-QDABF2RB.js → chunk-S7J3GEHL.js} +10 -10
  142. package/dist/cli-bundle/chunks/{chunk-5FIQ4EX3.js → chunk-SCJPFQQT.js} +3 -3
  143. package/dist/cli-bundle/chunks/{chunk-42LXP4VO.js → chunk-SIQGG335.js} +7 -7
  144. package/dist/cli-bundle/chunks/{chunk-RY7PTTUB.js → chunk-TI7QSUFK.js} +35 -8
  145. package/dist/cli-bundle/chunks/chunk-TI7QSUFK.js.map +1 -0
  146. package/dist/cli-bundle/chunks/{chunk-43SIHQND.js → chunk-TKWTJGD6.js} +5 -5
  147. package/dist/cli-bundle/chunks/{chunk-EOUVR7JN.js → chunk-U72GF3I2.js} +3 -3
  148. package/dist/cli-bundle/chunks/{chunk-FN6SB4HU.js → chunk-UEATYUZW.js} +2 -2
  149. package/dist/cli-bundle/chunks/{chunk-V5ZWKJNY.js → chunk-UFNFHCAC.js} +2 -2
  150. package/dist/cli-bundle/chunks/{chunk-XBX5CBRQ.js → chunk-UH6VFRV6.js} +3 -3
  151. package/dist/cli-bundle/chunks/{chunk-GTM5HQL4.js → chunk-UIHDZS6X.js} +7 -7
  152. package/dist/cli-bundle/chunks/{chunk-TGUK6XN6.js → chunk-UURYLDDC.js} +5 -5
  153. package/dist/cli-bundle/chunks/{chunk-S5BNGFN5.js → chunk-VCGHRLJU.js} +10 -10
  154. package/dist/cli-bundle/chunks/{chunk-3G6UMXT3.js → chunk-W2VFNVSJ.js} +3 -3
  155. package/dist/cli-bundle/chunks/{chunk-ZNEG2UDO.js → chunk-WDNPNW22.js} +7 -7
  156. package/dist/cli-bundle/chunks/{chunk-DG6BSXZ7.js → chunk-WVEMZZCR.js} +3 -3
  157. package/dist/cli-bundle/chunks/{chunk-TNC6MZUD.js → chunk-XXN2B2MJ.js} +4 -4
  158. package/dist/cli-bundle/chunks/{chunk-YH5NBDFA.js → chunk-Y2736PT5.js} +8 -8
  159. package/dist/cli-bundle/chunks/{chunk-X47MKQXU.js → chunk-YHKXNGLA.js} +166 -64
  160. package/dist/cli-bundle/chunks/chunk-YHKXNGLA.js.map +7 -0
  161. package/dist/cli-bundle/chunks/{chunk-XXIYUTLK.js → chunk-YPE5MFPJ.js} +4 -4
  162. package/dist/cli-bundle/chunks/{chunk-XPMXPR7K.js → chunk-YSRXFGNV.js} +3 -3
  163. package/dist/cli-bundle/chunks/{chunk-N6ZHDLUY.js → chunk-YUMNZS3X.js} +3 -3
  164. package/dist/cli-bundle/chunks/{chunk-TEKZOS7M.js → chunk-Z2JQH2MG.js} +2 -2
  165. package/dist/cli-bundle/chunks/{chunk-E3LWJUGF.js → chunk-Z6RLSNUX.js} +3 -3
  166. package/dist/cli-bundle/chunks/close-5WY6QO5F.js +12 -0
  167. package/dist/cli-bundle/chunks/{close-3YYQ5OG2.js → close-TKTFRL7N.js} +5 -5
  168. package/dist/cli-bundle/chunks/{close-many-D366FTIG.js → close-many-HEPL66EG.js} +13 -13
  169. package/dist/cli-bundle/chunks/close-many-U2KLQ3NL.js +22 -0
  170. package/dist/cli-bundle/chunks/{comments-54XDJNFE.js → comments-PLFK5ZKK.js} +7 -7
  171. package/dist/cli-bundle/chunks/comments-ZNOD5PTV.js +13 -0
  172. package/dist/cli-bundle/chunks/copy-F7BUFY4J.js +9 -0
  173. package/dist/cli-bundle/chunks/{copy-44RT5GDW.js → copy-VH3L4MN2.js} +4 -4
  174. package/dist/cli-bundle/chunks/create-KCQM6UYM.js +25 -0
  175. package/dist/cli-bundle/chunks/{create-4GWJWPXG.js → create-LD4SEUD6.js} +9 -9
  176. package/dist/cli-bundle/chunks/delete-6KQHZYIP.js +10 -0
  177. package/dist/cli-bundle/chunks/{delete-YQ2VPXNF.js → delete-ZNXUNCZR.js} +4 -4
  178. package/dist/cli-bundle/chunks/{deps-FMANWFRP.js → deps-CVDY7FFK.js} +4 -4
  179. package/dist/cli-bundle/chunks/{deps-BU5EBJDU.js → deps-SZXQHV73.js} +4 -4
  180. package/dist/cli-bundle/chunks/{docs-OQBSJNIA.js → docs-DR74ITCD.js} +6 -6
  181. package/dist/cli-bundle/chunks/docs-WCVYY6I7.js +14 -0
  182. package/dist/cli-bundle/chunks/{files-72HZEBOE.js → files-H5YCA74Z.js} +6 -6
  183. package/dist/cli-bundle/chunks/{files-HTSB2KJG.js → files-QEFQ2M3H.js} +6 -6
  184. package/dist/cli-bundle/chunks/{focus-FOG4ALC2.js → focus-55TRYSNA.js} +5 -5
  185. package/dist/cli-bundle/chunks/focus-N2QGNS5D.js +10 -0
  186. package/dist/cli-bundle/chunks/history-compact-GWQ4UOEI.js +21 -0
  187. package/dist/cli-bundle/chunks/{history-compact-M6IFAMBP.js → history-compact-JJZ4EFL3.js} +9 -9
  188. package/dist/cli-bundle/chunks/history-redact-4GJOLXCM.js +17 -0
  189. package/dist/cli-bundle/chunks/{history-redact-NQX3OGZP.js → history-redact-TPPUT3A5.js} +7 -7
  190. package/dist/cli-bundle/chunks/history-repair-HVCVCGUF.js +19 -0
  191. package/dist/cli-bundle/chunks/{history-repair-NHOJG7WO.js → history-repair-J7PIZ6ZP.js} +9 -9
  192. package/dist/cli-bundle/chunks/{learnings-T63JGKKN.js → learnings-KB6BT4NR.js} +7 -7
  193. package/dist/cli-bundle/chunks/learnings-YYY3U2Y7.js +13 -0
  194. package/dist/cli-bundle/chunks/notes-BGG7VL72.js +13 -0
  195. package/dist/cli-bundle/chunks/{notes-U7L6HQQ2.js → notes-ZTHXVOKM.js} +7 -7
  196. package/dist/cli-bundle/chunks/plan-B42KBMX7.js +24 -0
  197. package/dist/cli-bundle/chunks/{plan-TN537L24.js → plan-LUR7C24X.js} +10 -10
  198. package/dist/cli-bundle/chunks/{profile-TIGLAKJ7.js → profile-5F75MO5O.js} +9 -9
  199. package/dist/cli-bundle/chunks/{profile-MHAMXMHQ.js → profile-JRDMDGT5.js} +9 -9
  200. package/dist/cli-bundle/chunks/{register-list-query-ZCRABAPN.js → register-list-query-GZYRZLQZ.js} +17 -16
  201. package/dist/cli-bundle/chunks/register-list-query-GZYRZLQZ.js.map +1 -0
  202. package/dist/cli-bundle/chunks/{register-list-query-OHXD7G5N.js → register-list-query-W2W7RQJJ.js} +16 -15
  203. package/dist/cli-bundle/chunks/register-list-query-W2W7RQJJ.js.map +7 -0
  204. package/dist/cli-bundle/chunks/{register-mutation-XX4H56PE.js → register-mutation-5UDT3WL3.js} +29 -29
  205. package/dist/cli-bundle/chunks/{register-mutation-P3G4XP6Q.js → register-mutation-7DMOYDPC.js} +29 -29
  206. package/dist/cli-bundle/chunks/{register-operations-V6VKTG54.js → register-operations-NW43IUPE.js} +29 -28
  207. package/dist/cli-bundle/chunks/register-operations-NW43IUPE.js.map +7 -0
  208. package/dist/cli-bundle/chunks/{register-operations-V6PIYEDU.js → register-operations-Y4E32W4D.js} +30 -29
  209. package/dist/cli-bundle/chunks/register-operations-Y4E32W4D.js.map +1 -0
  210. package/dist/cli-bundle/chunks/{register-setup-6YVUSQYD.js → register-setup-3GVJ7XPE.js} +21 -19
  211. package/dist/cli-bundle/chunks/register-setup-3GVJ7XPE.js.map +1 -0
  212. package/dist/cli-bundle/chunks/{register-setup-6RVAWT6W.js → register-setup-MPTTS52V.js} +20 -18
  213. package/dist/cli-bundle/chunks/register-setup-MPTTS52V.js.map +7 -0
  214. package/dist/cli-bundle/chunks/{restore-HC3YSWF7.js → restore-BTBEZ5CK.js} +7 -7
  215. package/dist/cli-bundle/chunks/restore-EX4UUZL6.js +15 -0
  216. package/dist/cli-bundle/chunks/{schema-DAGSYO6E.js → schema-DGSTYYQB.js} +6 -6
  217. package/dist/cli-bundle/chunks/{schema-UBXJCQAC.js → schema-HAIBEE24.js} +6 -6
  218. package/dist/cli-bundle/chunks/update-76CRUMC7.js +21 -0
  219. package/dist/cli-bundle/chunks/{update-LKD64AFP.js → update-ZMYVXM77.js} +12 -12
  220. package/dist/cli-bundle/chunks/update-many-QYQRGNPU.js +31 -0
  221. package/dist/cli-bundle/chunks/update-many-U4CEQWI4.js +35 -0
  222. package/dist/cli-bundle/main.js +39 -13
  223. package/dist/cli-bundle/main.js.map +2 -2
  224. package/dist/cli-bundle/sdk-runtime.js +149 -53
  225. package/dist/cli-bundle/sdk-testing.js +6 -6
  226. package/dist/cli-bundle/sdk.js +153 -57
  227. package/dist/cli-bundle/sdk.js.map +3 -3
  228. package/dist/core/extensions/extension-types.d.ts +1 -0
  229. package/dist/core/extensions/extension-types.js +2 -2
  230. package/dist/core/extensions/extension-types.js.map +1 -1
  231. package/dist/core/extensions/loader.js +268 -231
  232. package/dist/core/extensions/loader.js.map +1 -1
  233. package/dist/sdk/cli-contracts/commander-types.js +3 -3
  234. package/dist/sdk/cli-contracts/commander-types.js.map +1 -1
  235. package/dist/sdk/cli-contracts/flag-contracts.js +10 -3
  236. package/dist/sdk/cli-contracts/flag-contracts.js.map +1 -1
  237. package/dist/sdk/cli-contracts/tool-option-contracts.js +10 -5
  238. package/dist/sdk/cli-contracts/tool-option-contracts.js.map +1 -1
  239. package/dist/sdk/cli-contracts/tool-parameter-tables.js +20 -4
  240. package/dist/sdk/cli-contracts/tool-parameter-tables.js.map +1 -1
  241. package/dist/sdk/cli-contracts/tool-schema.d.ts +4 -0
  242. package/dist/sdk/cli-contracts/tool-schema.js +71 -12
  243. package/dist/sdk/cli-contracts/tool-schema.js.map +1 -1
  244. package/dist/sdk/index.d.ts +1 -1
  245. package/dist/sdk/index.js +3 -3
  246. package/dist/sdk/index.js.map +1 -1
  247. package/dist/sdk/runtime.d.ts +471 -25
  248. package/dist/sdk/runtime.js +611 -25
  249. package/dist/sdk/runtime.js.map +1 -1
  250. package/docs/AGENT_GUIDE.md +3 -0
  251. package/docs/COMMANDS.md +10 -1
  252. package/docs/EXTENSIONS.md +7 -20
  253. package/docs/RELEASING.md +6 -0
  254. package/docs/SDK.md +67 -0
  255. package/package.json +2 -1
  256. package/dist/cli-bundle/chunks/append-F7WPGIQL.js +0 -11
  257. package/dist/cli-bundle/chunks/chunk-2APXX4TZ.js.map +0 -1
  258. package/dist/cli-bundle/chunks/chunk-6LCJRGPD.js.map +0 -1
  259. package/dist/cli-bundle/chunks/chunk-6XTSYPPO.js.map +0 -7
  260. package/dist/cli-bundle/chunks/chunk-7ML7JONU.js.map +0 -1
  261. package/dist/cli-bundle/chunks/chunk-C5ACVMOI.js.map +0 -7
  262. package/dist/cli-bundle/chunks/chunk-F6YC2A6X.js.map +0 -7
  263. package/dist/cli-bundle/chunks/chunk-FILL6BB2.js.map +0 -7
  264. package/dist/cli-bundle/chunks/chunk-J2VGADNG.js.map +0 -1
  265. package/dist/cli-bundle/chunks/chunk-LCFJ7XAM.js.map +0 -7
  266. package/dist/cli-bundle/chunks/chunk-MHNMCDWR.js.map +0 -1
  267. package/dist/cli-bundle/chunks/chunk-RY7PTTUB.js.map +0 -1
  268. package/dist/cli-bundle/chunks/chunk-S547WBYG.js.map +0 -7
  269. package/dist/cli-bundle/chunks/chunk-TZLYO4PP.js.map +0 -7
  270. package/dist/cli-bundle/chunks/chunk-UO7XAZK6.js.map +0 -1
  271. package/dist/cli-bundle/chunks/chunk-X47MKQXU.js.map +0 -7
  272. package/dist/cli-bundle/chunks/chunk-XZWL7VNE.js.map +0 -1
  273. package/dist/cli-bundle/chunks/chunk-Y5IKRUEM.js.map +0 -1
  274. package/dist/cli-bundle/chunks/chunk-YCVWWIKY.js.map +0 -7
  275. package/dist/cli-bundle/chunks/close-Z3Q4U7TS.js +0 -12
  276. package/dist/cli-bundle/chunks/close-many-3L2RXH3M.js +0 -22
  277. package/dist/cli-bundle/chunks/comments-HGHC2PN6.js +0 -13
  278. package/dist/cli-bundle/chunks/copy-UGMUGHZA.js +0 -9
  279. package/dist/cli-bundle/chunks/create-AZXCUYKP.js +0 -25
  280. package/dist/cli-bundle/chunks/delete-Y6SXIQ4X.js +0 -10
  281. package/dist/cli-bundle/chunks/docs-VNPBZXEL.js +0 -14
  282. package/dist/cli-bundle/chunks/focus-SUTMKXGX.js +0 -10
  283. package/dist/cli-bundle/chunks/history-compact-NEXRPP2O.js +0 -21
  284. package/dist/cli-bundle/chunks/history-redact-WQJBZ3PX.js +0 -17
  285. package/dist/cli-bundle/chunks/history-repair-CBHMHAJO.js +0 -19
  286. package/dist/cli-bundle/chunks/learnings-M64NTSOR.js +0 -13
  287. package/dist/cli-bundle/chunks/notes-73WE2UV2.js +0 -13
  288. package/dist/cli-bundle/chunks/plan-OSCNYFGC.js +0 -24
  289. package/dist/cli-bundle/chunks/register-list-query-OHXD7G5N.js.map +0 -7
  290. package/dist/cli-bundle/chunks/register-list-query-ZCRABAPN.js.map +0 -1
  291. package/dist/cli-bundle/chunks/register-operations-V6PIYEDU.js.map +0 -1
  292. package/dist/cli-bundle/chunks/register-operations-V6VKTG54.js.map +0 -7
  293. package/dist/cli-bundle/chunks/register-setup-6RVAWT6W.js.map +0 -7
  294. package/dist/cli-bundle/chunks/register-setup-6YVUSQYD.js.map +0 -1
  295. package/dist/cli-bundle/chunks/restore-LFAMMRYZ.js +0 -15
  296. package/dist/cli-bundle/chunks/update-CJGG5WMV.js +0 -21
  297. package/dist/cli-bundle/chunks/update-many-G4SM7BHC.js +0 -31
  298. package/dist/cli-bundle/chunks/update-many-VLIV3D7R.js +0 -35
  299. /package/dist/cli-bundle/chunks/{append-F7WPGIQL.js.map → append-CDPAYYSB.js.map} +0 -0
  300. /package/dist/cli-bundle/chunks/{append-PVCTBVJG.js.map → append-RSPHC423.js.map} +0 -0
  301. /package/dist/cli-bundle/chunks/{chunk-6G6O3OPQ.js.map → chunk-26MFLA7K.js.map} +0 -0
  302. /package/dist/cli-bundle/chunks/{chunk-H2SMKL2N.js.map → chunk-3FUXM574.js.map} +0 -0
  303. /package/dist/cli-bundle/chunks/{chunk-DR2V5OIV.js.map → chunk-3SHDAKMF.js.map} +0 -0
  304. /package/dist/cli-bundle/chunks/{chunk-MRFWUSVA.js.map → chunk-3UXIMY62.js.map} +0 -0
  305. /package/dist/cli-bundle/chunks/{chunk-WCWVEXGA.js.map → chunk-3V5C7PUH.js.map} +0 -0
  306. /package/dist/cli-bundle/chunks/{chunk-43YSKY75.js.map → chunk-3YJDIJIE.js.map} +0 -0
  307. /package/dist/cli-bundle/chunks/{chunk-HX6QXV5P.js.map → chunk-4I7KS5ES.js.map} +0 -0
  308. /package/dist/cli-bundle/chunks/{chunk-XHCVAZGM.js.map → chunk-4OCWJ2AP.js.map} +0 -0
  309. /package/dist/cli-bundle/chunks/{chunk-3TYOW6RR.js.map → chunk-5STY7NVM.js.map} +0 -0
  310. /package/dist/cli-bundle/chunks/{chunk-7VQ3JJN5.js.map → chunk-5VAZHYVQ.js.map} +0 -0
  311. /package/dist/cli-bundle/chunks/{chunk-4IQKDKGE.js.map → chunk-5ZMZF53A.js.map} +0 -0
  312. /package/dist/cli-bundle/chunks/{chunk-MCEUKJKW.js.map → chunk-6FU5BVRB.js.map} +0 -0
  313. /package/dist/cli-bundle/chunks/{chunk-AJUON7E6.js.map → chunk-6RR4XM5H.js.map} +0 -0
  314. /package/dist/cli-bundle/chunks/{chunk-TEISGNSH.js.map → chunk-6TD5QGIB.js.map} +0 -0
  315. /package/dist/cli-bundle/chunks/{chunk-565WYS5W.js.map → chunk-6WCXSC5V.js.map} +0 -0
  316. /package/dist/cli-bundle/chunks/{chunk-NWWL22C7.js.map → chunk-6ZKDMEVT.js.map} +0 -0
  317. /package/dist/cli-bundle/chunks/{chunk-VLEA2UTQ.js.map → chunk-7QKSLAHB.js.map} +0 -0
  318. /package/dist/cli-bundle/chunks/{chunk-S6VC2A2K.js.map → chunk-7TBUV7XS.js.map} +0 -0
  319. /package/dist/cli-bundle/chunks/{chunk-YPMZMKN7.js.map → chunk-7UCBLJDF.js.map} +0 -0
  320. /package/dist/cli-bundle/chunks/{chunk-4MZOKTI2.js.map → chunk-AEOFBBWO.js.map} +0 -0
  321. /package/dist/cli-bundle/chunks/{chunk-ZO7CLOY2.js.map → chunk-BFNFTHWQ.js.map} +0 -0
  322. /package/dist/cli-bundle/chunks/{chunk-YNCFP5AR.js.map → chunk-BPJ5NYSJ.js.map} +0 -0
  323. /package/dist/cli-bundle/chunks/{chunk-P3MJJW7P.js.map → chunk-C3YU3TXX.js.map} +0 -0
  324. /package/dist/cli-bundle/chunks/{chunk-SY75LYXR.js.map → chunk-C6XSTACC.js.map} +0 -0
  325. /package/dist/cli-bundle/chunks/{chunk-2TILG6F2.js.map → chunk-CGDUIPJL.js.map} +0 -0
  326. /package/dist/cli-bundle/chunks/{chunk-J7BOLHAV.js.map → chunk-CXH7EMSB.js.map} +0 -0
  327. /package/dist/cli-bundle/chunks/{chunk-W5HXHC7C.js.map → chunk-D6J5673C.js.map} +0 -0
  328. /package/dist/cli-bundle/chunks/{chunk-ARKHKYYS.js.map → chunk-DQLP22K2.js.map} +0 -0
  329. /package/dist/cli-bundle/chunks/{chunk-YPD7SQ5P.js.map → chunk-EEJKHF7M.js.map} +0 -0
  330. /package/dist/cli-bundle/chunks/{chunk-EDO7VXSO.js.map → chunk-EP2CKDS7.js.map} +0 -0
  331. /package/dist/cli-bundle/chunks/{chunk-SIM5JDON.js.map → chunk-F5DDGY6R.js.map} +0 -0
  332. /package/dist/cli-bundle/chunks/{chunk-I74FMIWA.js.map → chunk-FFB3WITE.js.map} +0 -0
  333. /package/dist/cli-bundle/chunks/{chunk-43UQN754.js.map → chunk-FJR2S7S4.js.map} +0 -0
  334. /package/dist/cli-bundle/chunks/{chunk-CJQM7O7R.js.map → chunk-FOJEBRDD.js.map} +0 -0
  335. /package/dist/cli-bundle/chunks/{chunk-E3YQFSFE.js.map → chunk-GLMJLBLR.js.map} +0 -0
  336. /package/dist/cli-bundle/chunks/{chunk-KTGJ2CBU.js.map → chunk-GO2X6ZRB.js.map} +0 -0
  337. /package/dist/cli-bundle/chunks/{chunk-DDDWVPID.js.map → chunk-GSQVQINP.js.map} +0 -0
  338. /package/dist/cli-bundle/chunks/{chunk-EVEPHNXJ.js.map → chunk-GZ365M6E.js.map} +0 -0
  339. /package/dist/cli-bundle/chunks/{chunk-VGO73OCK.js.map → chunk-HZZ3AC27.js.map} +0 -0
  340. /package/dist/cli-bundle/chunks/{chunk-7Y5N34HX.js.map → chunk-IINCZYM3.js.map} +0 -0
  341. /package/dist/cli-bundle/chunks/{chunk-GLS6VMWI.js.map → chunk-INOWVPUD.js.map} +0 -0
  342. /package/dist/cli-bundle/chunks/{chunk-PDXJXEZJ.js.map → chunk-J6AD3GWC.js.map} +0 -0
  343. /package/dist/cli-bundle/chunks/{chunk-52NS7JDP.js.map → chunk-JH5XDDYS.js.map} +0 -0
  344. /package/dist/cli-bundle/chunks/{chunk-GPIDUMMN.js.map → chunk-JYVPLGOW.js.map} +0 -0
  345. /package/dist/cli-bundle/chunks/{chunk-EIUBK2LT.js.map → chunk-K52C6YPA.js.map} +0 -0
  346. /package/dist/cli-bundle/chunks/{chunk-IDIBF4E2.js.map → chunk-KAJNWMBE.js.map} +0 -0
  347. /package/dist/cli-bundle/chunks/{chunk-2LEJGRQ7.js.map → chunk-KFL3XHMA.js.map} +0 -0
  348. /package/dist/cli-bundle/chunks/{chunk-XS2TMNXR.js.map → chunk-LD2NBQ5T.js.map} +0 -0
  349. /package/dist/cli-bundle/chunks/{chunk-II7R6KD4.js.map → chunk-LG4N6YOK.js.map} +0 -0
  350. /package/dist/cli-bundle/chunks/{chunk-M62RO3XK.js.map → chunk-LHDHS4Z6.js.map} +0 -0
  351. /package/dist/cli-bundle/chunks/{chunk-YTD5GICJ.js.map → chunk-MBLHA6LR.js.map} +0 -0
  352. /package/dist/cli-bundle/chunks/{chunk-F6MT7KKE.js.map → chunk-MCH6IKK7.js.map} +0 -0
  353. /package/dist/cli-bundle/chunks/{chunk-Y7KYVCZM.js.map → chunk-NGBWEYNY.js.map} +0 -0
  354. /package/dist/cli-bundle/chunks/{chunk-RB3KLPAH.js.map → chunk-NRMDT4OV.js.map} +0 -0
  355. /package/dist/cli-bundle/chunks/{chunk-GH73UOSJ.js.map → chunk-NTOOEVJ4.js.map} +0 -0
  356. /package/dist/cli-bundle/chunks/{chunk-EMXPI36L.js.map → chunk-PAWPLIWW.js.map} +0 -0
  357. /package/dist/cli-bundle/chunks/{chunk-AGAVEDIE.js.map → chunk-PCBZ2VJD.js.map} +0 -0
  358. /package/dist/cli-bundle/chunks/{chunk-3X542TEY.js.map → chunk-Q3CFSOQZ.js.map} +0 -0
  359. /package/dist/cli-bundle/chunks/{chunk-4BKDAEDF.js.map → chunk-QJZM5WO5.js.map} +0 -0
  360. /package/dist/cli-bundle/chunks/{chunk-HHEWQXPD.js.map → chunk-QLEH6FTQ.js.map} +0 -0
  361. /package/dist/cli-bundle/chunks/{chunk-D2DCTFTL.js.map → chunk-QYZMZD4L.js.map} +0 -0
  362. /package/dist/cli-bundle/chunks/{chunk-6UQCNWFV.js.map → chunk-RFHLRMLQ.js.map} +0 -0
  363. /package/dist/cli-bundle/chunks/{chunk-Q64AYQYW.js.map → chunk-RL24NAUX.js.map} +0 -0
  364. /package/dist/cli-bundle/chunks/{chunk-QDABF2RB.js.map → chunk-S7J3GEHL.js.map} +0 -0
  365. /package/dist/cli-bundle/chunks/{chunk-5FIQ4EX3.js.map → chunk-SCJPFQQT.js.map} +0 -0
  366. /package/dist/cli-bundle/chunks/{chunk-42LXP4VO.js.map → chunk-SIQGG335.js.map} +0 -0
  367. /package/dist/cli-bundle/chunks/{chunk-43SIHQND.js.map → chunk-TKWTJGD6.js.map} +0 -0
  368. /package/dist/cli-bundle/chunks/{chunk-EOUVR7JN.js.map → chunk-U72GF3I2.js.map} +0 -0
  369. /package/dist/cli-bundle/chunks/{chunk-FN6SB4HU.js.map → chunk-UEATYUZW.js.map} +0 -0
  370. /package/dist/cli-bundle/chunks/{chunk-V5ZWKJNY.js.map → chunk-UFNFHCAC.js.map} +0 -0
  371. /package/dist/cli-bundle/chunks/{chunk-XBX5CBRQ.js.map → chunk-UH6VFRV6.js.map} +0 -0
  372. /package/dist/cli-bundle/chunks/{chunk-GTM5HQL4.js.map → chunk-UIHDZS6X.js.map} +0 -0
  373. /package/dist/cli-bundle/chunks/{chunk-TGUK6XN6.js.map → chunk-UURYLDDC.js.map} +0 -0
  374. /package/dist/cli-bundle/chunks/{chunk-S5BNGFN5.js.map → chunk-VCGHRLJU.js.map} +0 -0
  375. /package/dist/cli-bundle/chunks/{chunk-3G6UMXT3.js.map → chunk-W2VFNVSJ.js.map} +0 -0
  376. /package/dist/cli-bundle/chunks/{chunk-ZNEG2UDO.js.map → chunk-WDNPNW22.js.map} +0 -0
  377. /package/dist/cli-bundle/chunks/{chunk-DG6BSXZ7.js.map → chunk-WVEMZZCR.js.map} +0 -0
  378. /package/dist/cli-bundle/chunks/{chunk-TNC6MZUD.js.map → chunk-XXN2B2MJ.js.map} +0 -0
  379. /package/dist/cli-bundle/chunks/{chunk-YH5NBDFA.js.map → chunk-Y2736PT5.js.map} +0 -0
  380. /package/dist/cli-bundle/chunks/{chunk-XXIYUTLK.js.map → chunk-YPE5MFPJ.js.map} +0 -0
  381. /package/dist/cli-bundle/chunks/{chunk-XPMXPR7K.js.map → chunk-YSRXFGNV.js.map} +0 -0
  382. /package/dist/cli-bundle/chunks/{chunk-N6ZHDLUY.js.map → chunk-YUMNZS3X.js.map} +0 -0
  383. /package/dist/cli-bundle/chunks/{chunk-TEKZOS7M.js.map → chunk-Z2JQH2MG.js.map} +0 -0
  384. /package/dist/cli-bundle/chunks/{chunk-E3LWJUGF.js.map → chunk-Z6RLSNUX.js.map} +0 -0
  385. /package/dist/cli-bundle/chunks/{close-Z3Q4U7TS.js.map → close-5WY6QO5F.js.map} +0 -0
  386. /package/dist/cli-bundle/chunks/{close-3YYQ5OG2.js.map → close-TKTFRL7N.js.map} +0 -0
  387. /package/dist/cli-bundle/chunks/{close-many-D366FTIG.js.map → close-many-HEPL66EG.js.map} +0 -0
  388. /package/dist/cli-bundle/chunks/{close-many-3L2RXH3M.js.map → close-many-U2KLQ3NL.js.map} +0 -0
  389. /package/dist/cli-bundle/chunks/{comments-54XDJNFE.js.map → comments-PLFK5ZKK.js.map} +0 -0
  390. /package/dist/cli-bundle/chunks/{comments-HGHC2PN6.js.map → comments-ZNOD5PTV.js.map} +0 -0
  391. /package/dist/cli-bundle/chunks/{copy-UGMUGHZA.js.map → copy-F7BUFY4J.js.map} +0 -0
  392. /package/dist/cli-bundle/chunks/{copy-44RT5GDW.js.map → copy-VH3L4MN2.js.map} +0 -0
  393. /package/dist/cli-bundle/chunks/{create-AZXCUYKP.js.map → create-KCQM6UYM.js.map} +0 -0
  394. /package/dist/cli-bundle/chunks/{create-4GWJWPXG.js.map → create-LD4SEUD6.js.map} +0 -0
  395. /package/dist/cli-bundle/chunks/{delete-Y6SXIQ4X.js.map → delete-6KQHZYIP.js.map} +0 -0
  396. /package/dist/cli-bundle/chunks/{delete-YQ2VPXNF.js.map → delete-ZNXUNCZR.js.map} +0 -0
  397. /package/dist/cli-bundle/chunks/{deps-FMANWFRP.js.map → deps-CVDY7FFK.js.map} +0 -0
  398. /package/dist/cli-bundle/chunks/{deps-BU5EBJDU.js.map → deps-SZXQHV73.js.map} +0 -0
  399. /package/dist/cli-bundle/chunks/{docs-OQBSJNIA.js.map → docs-DR74ITCD.js.map} +0 -0
  400. /package/dist/cli-bundle/chunks/{docs-VNPBZXEL.js.map → docs-WCVYY6I7.js.map} +0 -0
  401. /package/dist/cli-bundle/chunks/{files-72HZEBOE.js.map → files-H5YCA74Z.js.map} +0 -0
  402. /package/dist/cli-bundle/chunks/{files-HTSB2KJG.js.map → files-QEFQ2M3H.js.map} +0 -0
  403. /package/dist/cli-bundle/chunks/{focus-FOG4ALC2.js.map → focus-55TRYSNA.js.map} +0 -0
  404. /package/dist/cli-bundle/chunks/{focus-SUTMKXGX.js.map → focus-N2QGNS5D.js.map} +0 -0
  405. /package/dist/cli-bundle/chunks/{history-compact-NEXRPP2O.js.map → history-compact-GWQ4UOEI.js.map} +0 -0
  406. /package/dist/cli-bundle/chunks/{history-compact-M6IFAMBP.js.map → history-compact-JJZ4EFL3.js.map} +0 -0
  407. /package/dist/cli-bundle/chunks/{history-redact-WQJBZ3PX.js.map → history-redact-4GJOLXCM.js.map} +0 -0
  408. /package/dist/cli-bundle/chunks/{history-redact-NQX3OGZP.js.map → history-redact-TPPUT3A5.js.map} +0 -0
  409. /package/dist/cli-bundle/chunks/{history-repair-CBHMHAJO.js.map → history-repair-HVCVCGUF.js.map} +0 -0
  410. /package/dist/cli-bundle/chunks/{history-repair-NHOJG7WO.js.map → history-repair-J7PIZ6ZP.js.map} +0 -0
  411. /package/dist/cli-bundle/chunks/{learnings-T63JGKKN.js.map → learnings-KB6BT4NR.js.map} +0 -0
  412. /package/dist/cli-bundle/chunks/{learnings-M64NTSOR.js.map → learnings-YYY3U2Y7.js.map} +0 -0
  413. /package/dist/cli-bundle/chunks/{notes-73WE2UV2.js.map → notes-BGG7VL72.js.map} +0 -0
  414. /package/dist/cli-bundle/chunks/{notes-U7L6HQQ2.js.map → notes-ZTHXVOKM.js.map} +0 -0
  415. /package/dist/cli-bundle/chunks/{plan-OSCNYFGC.js.map → plan-B42KBMX7.js.map} +0 -0
  416. /package/dist/cli-bundle/chunks/{plan-TN537L24.js.map → plan-LUR7C24X.js.map} +0 -0
  417. /package/dist/cli-bundle/chunks/{profile-TIGLAKJ7.js.map → profile-5F75MO5O.js.map} +0 -0
  418. /package/dist/cli-bundle/chunks/{profile-MHAMXMHQ.js.map → profile-JRDMDGT5.js.map} +0 -0
  419. /package/dist/cli-bundle/chunks/{register-mutation-XX4H56PE.js.map → register-mutation-5UDT3WL3.js.map} +0 -0
  420. /package/dist/cli-bundle/chunks/{register-mutation-P3G4XP6Q.js.map → register-mutation-7DMOYDPC.js.map} +0 -0
  421. /package/dist/cli-bundle/chunks/{restore-HC3YSWF7.js.map → restore-BTBEZ5CK.js.map} +0 -0
  422. /package/dist/cli-bundle/chunks/{restore-LFAMMRYZ.js.map → restore-EX4UUZL6.js.map} +0 -0
  423. /package/dist/cli-bundle/chunks/{schema-DAGSYO6E.js.map → schema-DGSTYYQB.js.map} +0 -0
  424. /package/dist/cli-bundle/chunks/{schema-UBXJCQAC.js.map → schema-HAIBEE24.js.map} +0 -0
  425. /package/dist/cli-bundle/chunks/{update-CJGG5WMV.js.map → update-76CRUMC7.js.map} +0 -0
  426. /package/dist/cli-bundle/chunks/{update-LKD64AFP.js.map → update-ZMYVXM77.js.map} +0 -0
  427. /package/dist/cli-bundle/chunks/{update-many-G4SM7BHC.js.map → update-many-QYQRGNPU.js.map} +0 -0
  428. /package/dist/cli-bundle/chunks/{update-many-VLIV3D7R.js.map → update-many-U4CEQWI4.js.map} +0 -0
@@ -2,11 +2,11 @@
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]="30820bf7-18ff-502d-a376-4f04726e1bec")}catch(e){}}();
3
3
  import {
4
4
  lintProjectProfile
5
- } from "./chunk-3TYOW6RR.js";
5
+ } from "./chunk-5STY7NVM.js";
6
6
  import {
7
7
  describeExtensionActivation,
8
8
  renderExtensionSurfaceMarkdown
9
- } from "./chunk-TEKZOS7M.js";
9
+ } from "./chunk-Z2JQH2MG.js";
10
10
  import {
11
11
  getMigrationRuntimeDefinition,
12
12
  resolveRegisteredSearchProvider,
@@ -35,7 +35,7 @@ import {
35
35
  runPreflightOverride,
36
36
  runRendererOverride,
37
37
  runServiceOverride
38
- } from "./chunk-UO7XAZK6.js";
38
+ } from "./chunk-MFLLULHU.js";
39
39
 
40
40
  // dist/sdk/compose.js
41
41
  function defineExtension(module) {
@@ -1408,6 +1408,6 @@ export {
1408
1408
  assertExtensionPreflight,
1409
1409
  createExtensionTestHarness
1410
1410
  };
1411
- //# sourceMappingURL=chunk-3X542TEY.js.map
1411
+ //# sourceMappingURL=chunk-Q3CFSOQZ.js.map
1412
1412
 
1413
1413
  //# debugId=30820bf7-18ff-502d-a376-4f04726e1bec
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  parseAnnotationTextInput,
3
3
  runAnnotationCommand
4
- } from "./chunk-43SIHQND.js";
4
+ } from "./chunk-TKWTJGD6.js";
5
5
  import {
6
6
  createStdinTokenResolver
7
- } from "./chunk-2TILG6F2.js";
7
+ } from "./chunk-CGDUIPJL.js";
8
8
 
9
9
  // dist/cli/commands/notes.js
10
10
  !(function() {
@@ -38,4 +38,4 @@ async function runNotes(id, options, global2) {
38
38
  export {
39
39
  runNotes
40
40
  };
41
- //# sourceMappingURL=chunk-4BKDAEDF.js.map
41
+ //# sourceMappingURL=chunk-QJZM5WO5.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  verifyHistoryChain
3
- } from "./chunk-E3YQFSFE.js";
3
+ } from "./chunk-GLMJLBLR.js";
4
4
  import {
5
5
  hashDocument
6
- } from "./chunk-YNCFP5AR.js";
6
+ } from "./chunk-BPJ5NYSJ.js";
7
7
  import {
8
8
  getHistoryPath,
9
9
  writeFileAtomic
10
- } from "./chunk-LCFJ7XAM.js";
10
+ } from "./chunk-2BVD4ZD2.js";
11
11
 
12
12
  // dist/core/history/drift-scan.js
13
13
  import fs from "node:fs/promises";
@@ -207,4 +207,4 @@ async function scanHistoryDrift(pmRoot, items, options = {}) {
207
207
  export {
208
208
  scanHistoryDrift
209
209
  };
210
- //# sourceMappingURL=chunk-HHEWQXPD.js.map
210
+ //# sourceMappingURL=chunk-QLEH6FTQ.js.map
@@ -9,7 +9,7 @@ import {
9
9
  createStdinTokenResolver,
10
10
  looksLikeGenericKeyValueEntry,
11
11
  parseCsvKv
12
- } from "./chunk-2TILG6F2.js";
12
+ } from "./chunk-CGDUIPJL.js";
13
13
  import {
14
14
  splitCommaList
15
15
  } from "./chunk-5HIZDR5A.js";
@@ -21,7 +21,7 @@ import {
21
21
  mutateItem,
22
22
  readLocatedItem,
23
23
  readSettings
24
- } from "./chunk-YNCFP5AR.js";
24
+ } from "./chunk-BPJ5NYSJ.js";
25
25
  import {
26
26
  EXIT_CODE,
27
27
  SCOPE_VALUES,
@@ -29,7 +29,7 @@ import {
29
29
  pathExists,
30
30
  resolveItemTypeRegistry,
31
31
  resolvePmRoot
32
- } from "./chunk-LCFJ7XAM.js";
32
+ } from "./chunk-2BVD4ZD2.js";
33
33
 
34
34
  // dist/cli/commands/linked-artifacts.js
35
35
  import fs from "node:fs/promises";
@@ -396,4 +396,4 @@ export {
396
396
  runLinkedArtifacts,
397
397
  renameArtifactsResultKey
398
398
  };
399
- //# sourceMappingURL=chunk-D2DCTFTL.js.map
399
+ //# sourceMappingURL=chunk-QYZMZD4L.js.map
@@ -3,10 +3,10 @@
3
3
  import {
4
4
  PmCliError,
5
5
  normalizeItemId
6
- } from "./chunk-GH73UOSJ.js";
6
+ } from "./chunk-NTOOEVJ4.js";
7
7
  import {
8
8
  EXIT_CODE
9
- } from "./chunk-UO7XAZK6.js";
9
+ } from "./chunk-MFLLULHU.js";
10
10
 
11
11
  // dist/core/item/parent-reference-policy.js
12
12
  var PLACEHOLDER_REFERENCE_TOKENS = /* @__PURE__ */ new Set(["none", "null", "undefined"]);
@@ -95,6 +95,6 @@ export {
95
95
  normalizeSprintReleaseFormatPolicy,
96
96
  validateSprintOrReleaseValue
97
97
  };
98
- //# sourceMappingURL=chunk-6UQCNWFV.js.map
98
+ //# sourceMappingURL=chunk-RFHLRMLQ.js.map
99
99
 
100
100
  //# debugId=e5aa93b8-d63d-557c-9183-bbd636aa5dee
@@ -5,19 +5,19 @@ import {
5
5
  } from "./chunk-T5RRNDA7.js";
6
6
  import {
7
7
  createStdinTokenResolver
8
- } from "./chunk-DR2V5OIV.js";
8
+ } from "./chunk-3SHDAKMF.js";
9
9
  import {
10
10
  PmCliError,
11
11
  mutateItem,
12
12
  readSettings,
13
13
  toItemRecord
14
- } from "./chunk-GH73UOSJ.js";
14
+ } from "./chunk-NTOOEVJ4.js";
15
15
  import {
16
16
  EXIT_CODE,
17
17
  getSettingsPath,
18
18
  pathExists,
19
19
  resolvePmRoot
20
- } from "./chunk-UO7XAZK6.js";
20
+ } from "./chunk-MFLLULHU.js";
21
21
 
22
22
  // dist/cli/commands/append.js
23
23
  async function runAppend(id, options, global) {
@@ -61,6 +61,6 @@ async function runAppend(id, options, global) {
61
61
  export {
62
62
  runAppend
63
63
  };
64
- //# sourceMappingURL=chunk-Q64AYQYW.js.map
64
+ //# sourceMappingURL=chunk-RL24NAUX.js.map
65
65
 
66
66
  //# debugId=24eeed2f-0f2f-592d-98f4-775ddf375e86
@@ -5,31 +5,31 @@ import {
5
5
  loadMutationCheckpoint,
6
6
  restoreCheckpointItems,
7
7
  writeMutationCheckpoint
8
- } from "./chunk-3G6UMXT3.js";
8
+ } from "./chunk-W2VFNVSJ.js";
9
9
  import {
10
10
  runRestore
11
- } from "./chunk-EMXPI36L.js";
11
+ } from "./chunk-PAWPLIWW.js";
12
12
  import {
13
13
  runUpdate
14
- } from "./chunk-7PNQA24K.js";
14
+ } from "./chunk-MCZK7LY6.js";
15
15
  import {
16
16
  resolveAuthor
17
17
  } from "./chunk-T5RRNDA7.js";
18
18
  import {
19
19
  hasListFilters,
20
20
  runList
21
- } from "./chunk-RY7PTTUB.js";
21
+ } from "./chunk-TI7QSUFK.js";
22
22
  import {
23
23
  resolvePriority
24
- } from "./chunk-QFBSP3NI.js";
24
+ } from "./chunk-ASSVI7FP.js";
25
25
  import {
26
26
  applyTagRemovals,
27
27
  mergeAdditiveTags,
28
28
  parseTags
29
- } from "./chunk-DR2V5OIV.js";
29
+ } from "./chunk-3SHDAKMF.js";
30
30
  import {
31
31
  buildInvalidTypeError
32
- } from "./chunk-VLEA2UTQ.js";
32
+ } from "./chunk-7QKSLAHB.js";
33
33
  import {
34
34
  PmCliError,
35
35
  collectRuntimeUpdateFieldValues,
@@ -40,7 +40,7 @@ import {
40
40
  resolveIsoOrRelative,
41
41
  stableValueEquals,
42
42
  toItemRecord
43
- } from "./chunk-GH73UOSJ.js";
43
+ } from "./chunk-NTOOEVJ4.js";
44
44
  import {
45
45
  EXIT_CODE,
46
46
  getSettingsPath,
@@ -52,7 +52,7 @@ import {
52
52
  resolveRuntimeStatusRegistry,
53
53
  resolveTypeName,
54
54
  toErrorMessage
55
- } from "./chunk-UO7XAZK6.js";
55
+ } from "./chunk-MFLLULHU.js";
56
56
 
57
57
  // dist/cli/commands/update-many.js
58
58
  var UPDATE_MANY_CHECKPOINT_SCHEMA_VERSION = 1;
@@ -642,6 +642,6 @@ export {
642
642
  runUpdateMany,
643
643
  _testOnlyUpdateManyCommand
644
644
  };
645
- //# sourceMappingURL=chunk-QDABF2RB.js.map
645
+ //# sourceMappingURL=chunk-S7J3GEHL.js.map
646
646
 
647
647
  //# debugId=a42cb130-5b20-548d-b69f-6a985b9f544e
@@ -18,7 +18,7 @@ import {
18
18
  recordAfterCommandAffectedItem,
19
19
  runActiveOnWriteHooks,
20
20
  serializeItemDocument
21
- } from "./chunk-GH73UOSJ.js";
21
+ } from "./chunk-NTOOEVJ4.js";
22
22
  import {
23
23
  EXIT_CODE,
24
24
  FRONT_MATTER_KEY_ORDER,
@@ -31,7 +31,7 @@ import {
31
31
  resolvePmRoot,
32
32
  resolveRuntimeStatusRegistry,
33
33
  writeFileAtomic
34
- } from "./chunk-UO7XAZK6.js";
34
+ } from "./chunk-MFLLULHU.js";
35
35
 
36
36
  // dist/cli/commands/copy.js
37
37
  function selectAuthor(explicitAuthor, settingsAuthor) {
@@ -170,6 +170,6 @@ async function runCopy(sourceId, options, global) {
170
170
  export {
171
171
  runCopy
172
172
  };
173
- //# sourceMappingURL=chunk-5FIQ4EX3.js.map
173
+ //# sourceMappingURL=chunk-SCJPFQQT.js.map
174
174
 
175
175
  //# debugId=f43959c9-8f61-58f1-94d9-103aa022b9cf
@@ -2,22 +2,22 @@
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]="82206098-4fb2-5ba8-9c57-4eb1ac8e1688")}catch(e){}}();
3
3
  import {
4
4
  scanHistoryDrift
5
- } from "./chunk-TEISGNSH.js";
5
+ } from "./chunk-6TD5QGIB.js";
6
6
  import {
7
7
  executeHistoryRewrite,
8
8
  resolveHistorySubject,
9
9
  writeHistoryRawWithRollback
10
- } from "./chunk-52NS7JDP.js";
10
+ } from "./chunk-JH5XDDYS.js";
11
11
  import {
12
12
  readHistoryEntries
13
- } from "./chunk-565WYS5W.js";
13
+ } from "./chunk-6WCXSC5V.js";
14
14
  import {
15
15
  historyEntriesToRaw,
16
16
  reanchorHistoryEntries,
17
17
  replayHash,
18
18
  toReplayDocument,
19
19
  verifyHistoryChain
20
- } from "./chunk-7Y5N34HX.js";
20
+ } from "./chunk-IINCZYM3.js";
21
21
  import {
22
22
  PmCliError,
23
23
  getActiveExtensionRegistrations,
@@ -26,7 +26,7 @@ import {
26
26
  readLocatedItem,
27
27
  readSettings,
28
28
  runActiveOnWriteHooks
29
- } from "./chunk-GH73UOSJ.js";
29
+ } from "./chunk-NTOOEVJ4.js";
30
30
  import {
31
31
  EXIT_CODE,
32
32
  getSettingsPath,
@@ -34,7 +34,7 @@ import {
34
34
  readFileIfExists,
35
35
  resolveItemTypeRegistry,
36
36
  resolvePmRoot
37
- } from "./chunk-UO7XAZK6.js";
37
+ } from "./chunk-MFLLULHU.js";
38
38
 
39
39
  // dist/cli/commands/history-repair.js
40
40
  import jsonPatch from "fast-json-patch";
@@ -266,6 +266,6 @@ export {
266
266
  assertHistoryRepairTarget,
267
267
  runHistoryRepairAll
268
268
  };
269
- //# sourceMappingURL=chunk-42LXP4VO.js.map
269
+ //# sourceMappingURL=chunk-SIQGG335.js.map
270
270
 
271
271
  //# debugId=82206098-4fb2-5ba8-9c57-4eb1ac8e1688
@@ -1,5 +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]="f816b8fb-a241-5072-bc27-1e40f8b10737")}catch(e){}}();
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]="043880e1-035f-540a-b311-ce5d615d2703")}catch(e){}}();
3
3
  import {
4
4
  contentFiltersNeedBody,
5
5
  contentFiltersNeedCollections,
@@ -10,12 +10,12 @@ import {
10
10
  hasMissingMetadataFilter,
11
11
  itemMatchesMissingMetadata,
12
12
  lifecycleClassifierFromStatusRegistry
13
- } from "./chunk-PDXJXEZJ.js";
13
+ } from "./chunk-J6AD3GWC.js";
14
14
  import {
15
15
  parseIntegerLimit,
16
16
  parsePriority,
17
17
  parseType
18
- } from "./chunk-AJUON7E6.js";
18
+ } from "./chunk-6RR4XM5H.js";
19
19
  import {
20
20
  HEAVY_METADATA_KEYS,
21
21
  PmCliError,
@@ -33,7 +33,7 @@ import {
33
33
  resolveIsoOrRelative,
34
34
  stableValueEquals,
35
35
  toItemRecord
36
- } from "./chunk-GH73UOSJ.js";
36
+ } from "./chunk-NTOOEVJ4.js";
37
37
  import {
38
38
  EXIT_CODE,
39
39
  FRONT_MATTER_KEY_ORDER,
@@ -44,7 +44,7 @@ import {
44
44
  resolvePmRoot,
45
45
  resolveRuntimeFieldRegistry,
46
46
  resolveRuntimeStatusRegistry
47
- } from "./chunk-UO7XAZK6.js";
47
+ } from "./chunk-MFLLULHU.js";
48
48
 
49
49
  // dist/cli/commands/list-filter-shared.js
50
50
  var LIST_VALUE_FILTER_KEYS = [
@@ -396,6 +396,7 @@ var VERBOSE_LIST_BOOLEAN_FILTER_ECHO_ENTRIES = [
396
396
  { key: "filterResolutionMissing", summaryKey: "filter_resolution_missing" },
397
397
  { key: "filterMetadataMissing", summaryKey: "filter_metadata_missing" }
398
398
  ];
399
+ var LIST_RECENT_WINDOW = "-7d";
399
400
  function buildCompactListFilterSummary(params) {
400
401
  const { filtersStatus, options, treeEnabled, treeDepth, sortField, sortOrder, runtimeFieldFilters } = params;
401
402
  const filters = {};
@@ -403,6 +404,7 @@ function buildCompactListFilterSummary(params) {
403
404
  filters.status = filtersStatus;
404
405
  }
405
406
  applyFilterValueEcho(filters, options, COMPACT_LIST_VALUE_FILTER_ECHO_ENTRIES);
407
+ applyListWindowFilterEcho(filters, options);
406
408
  if (options.filterAcMissing === true) {
407
409
  filters.filter_ac_missing = true;
408
410
  }
@@ -476,6 +478,30 @@ function parseTimestampWindow(raw, fieldLabel) {
476
478
  return void 0;
477
479
  return resolveIsoOrRelative(value, /* @__PURE__ */ new Date(), fieldLabel);
478
480
  }
481
+ function resolveListUpdatedAfter(options) {
482
+ const hasUpdatedAfter = options.updatedAfter != null && String(options.updatedAfter).trim().length > 0;
483
+ const selectedWindows = [options.today === true, options.recent === true, hasUpdatedAfter].filter((selected) => selected).length;
484
+ if (selectedWindows > 1) {
485
+ throw new PmCliError("Choose only one updated_at window: --today, --recent, or --updated-after.", EXIT_CODE.USAGE);
486
+ }
487
+ if (options.today === true) {
488
+ const today = /* @__PURE__ */ new Date();
489
+ today.setHours(0, 0, 0, 0);
490
+ return today.toISOString();
491
+ }
492
+ if (options.recent === true) {
493
+ return parseTimestampWindow(LIST_RECENT_WINDOW, "recent");
494
+ }
495
+ return parseTimestampWindow(options.updatedAfter, "updated-after");
496
+ }
497
+ function applyListWindowFilterEcho(filters, options) {
498
+ if (options.today === true) {
499
+ filters.today = true;
500
+ }
501
+ if (options.recent === true) {
502
+ filters.recent = true;
503
+ }
504
+ }
479
505
  function parseIdsFilter(raw) {
480
506
  if (raw == null)
481
507
  return void 0;
@@ -639,7 +665,7 @@ function resolveListFilterSet(status, options, typeRegistry, statusRegistry) {
639
665
  priorityFilter: parsePriority(options.priority),
640
666
  deadlineBefore: parseDeadline(options.deadlineBefore, "deadline-before"),
641
667
  deadlineAfter: parseDeadline(options.deadlineAfter, "deadline-after"),
642
- updatedAfter: parseTimestampWindow(options.updatedAfter, "updated-after"),
668
+ updatedAfter: resolveListUpdatedAfter(options),
643
669
  updatedBefore: parseTimestampWindow(options.updatedBefore, "updated-before"),
644
670
  createdAfter: parseTimestampWindow(options.createdAfter, "created-after"),
645
671
  createdBefore: parseTimestampWindow(options.createdBefore, "created-before"),
@@ -951,6 +977,7 @@ function buildVerboseListFilters(params) {
951
977
  }
952
978
  }
953
979
  Object.assign(filters, buildGovernanceMissingFilterEcho(options), buildContentFilterEcho(options));
980
+ applyListWindowFilterEcho(filters, options);
954
981
  if (noTruncate) {
955
982
  filters.no_truncate = true;
956
983
  }
@@ -1037,6 +1064,6 @@ export {
1037
1064
  buildGovernanceMissingFilterEcho,
1038
1065
  runList
1039
1066
  };
1040
- //# sourceMappingURL=chunk-RY7PTTUB.js.map
1067
+ //# sourceMappingURL=chunk-TI7QSUFK.js.map
1041
1068
 
1042
- //# debugId=f816b8fb-a241-5072-bc27-1e40f8b10737
1069
+ //# debugId=043880e1-035f-540a-b311-ce5d615d2703
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../cli/commands/list-filter-shared.ts","../../../../../../../../core/item/status-filter.ts","../../../../../../../../core/schema/runtime-field-filters.ts","../../../../../../../../cli/commands/list.ts"],"sourcesContent":["/**\n * @module cli/commands/list-filter-shared\n *\n * Implements the pm list filter shared command surface and its agent-facing runtime behavior.\n */\nimport type { ListOptions } from \"./list.js\";\n\ninterface HasListFilterOptions {\n includePagination?: boolean;\n}\n\nconst LIST_VALUE_FILTER_KEYS = [\n \"status\",\n \"type\",\n \"tag\",\n \"priority\",\n \"deadlineBefore\",\n \"deadlineAfter\",\n \"updatedAfter\",\n \"updatedBefore\",\n \"createdAfter\",\n \"createdBefore\",\n \"ids\",\n \"assignee\",\n \"assigneeFilter\",\n \"parent\",\n \"sprint\",\n \"release\",\n] as const satisfies readonly (keyof ListOptions)[];\n\nconst LIST_BOOLEAN_FILTER_KEYS = [\n \"filterAcMissing\",\n \"filterEstimatesMissing\",\n \"filterResolutionMissing\",\n \"filterMetadataMissing\",\n \"filterReviewerMissing\",\n \"filterRiskMissing\",\n \"filterConfidenceMissing\",\n \"filterSprintMissing\",\n \"filterReleaseMissing\",\n \"hasNotes\",\n \"hasLearnings\",\n \"hasFiles\",\n \"hasDocs\",\n \"hasTests\",\n \"hasComments\",\n \"hasDeps\",\n \"hasBody\",\n \"hasLinkedCommand\",\n \"noNotes\",\n \"noLearnings\",\n \"noFiles\",\n \"noDocs\",\n \"noTests\",\n \"noComments\",\n \"noDeps\",\n \"emptyBody\",\n \"noLinkedCommand\",\n] as const satisfies readonly (keyof ListOptions)[];\n\nfunction isActiveListFilterValue(value: unknown): boolean {\n return value != null && (typeof value !== \"string\" || value.split(\",\").some((entry) => entry.trim().length > 0));\n}\n\n/**\n * Implements check whether list filters for the public runtime surface of this module.\n */\nexport function hasListFilters(\n list: ListOptions | undefined,\n status: string | undefined,\n options: HasListFilterOptions = {},\n): boolean {\n const includePagination = options.includePagination !== false;\n const valueCandidates = [\n status,\n ...LIST_VALUE_FILTER_KEYS.map((key) => list?.[key]),\n ...(includePagination ? [list?.limit, list?.offset] : []),\n ];\n return (\n valueCandidates.some(isActiveListFilterValue) || LIST_BOOLEAN_FILTER_KEYS.some((key) => list?.[key] === true)\n );\n}\n\n/**\n * Restricts list query filters values accepted by command, SDK, and storage contracts.\n */\nexport type ListQueryFilters = Pick<\n ListOptions,\n | \"type\"\n | \"tag\"\n | \"priority\"\n | \"deadlineBefore\"\n | \"deadlineAfter\"\n | \"assignee\"\n | \"assigneeFilter\"\n | \"parent\"\n | \"sprint\"\n | \"release\"\n>;\n\n/**\n * Implements build list query filters for the public runtime surface of this module.\n */\nexport function buildListQueryFilters(filters: ListQueryFilters): ListOptions {\n return {\n type: filters.type,\n tag: filters.tag,\n priority: filters.priority,\n deadlineBefore: filters.deadlineBefore,\n deadlineAfter: filters.deadlineAfter,\n assignee: filters.assignee,\n assigneeFilter: filters.assigneeFilter,\n parent: filters.parent,\n sprint: filters.sprint,\n release: filters.release,\n };\n}\n","/**\n * @module core/item/status-filter\n *\n * Defines item parsing, formatting, and lifecycle helpers for Status Filter.\n */\nimport { EXIT_CODE } from \"../shared/constants.js\";\nimport { PmCliError } from \"../shared/errors.js\";\nimport { levenshteinDistanceWithinLimit } from \"../shared/levenshtein.js\";\nimport type { RuntimeStatusRegistry } from \"../schema/runtime-schema.js\";\nimport type { ItemStatus } from \"../../types/index.js\";\nimport { normalizeStatusInput } from \"./status.js\";\n\n// Workflow-group aliases shared by every status-filter consumer so that the\n// agent-friendly `open`/`closed`/`canceled` shorthands resolve to whatever the\n// runtime workflow has configured as its open/close/cancel anchors, rather than\n// hardcoding the built-in status ids. `cancelled` is accepted as a spelling\n// variant of `canceled`.\nconst STATUS_GROUP_ALIASES: Readonly<Record<string, \"open_status\" | \"close_status\" | \"canceled_status\">> = {\n open: \"open_status\",\n closed: \"close_status\",\n canceled: \"canceled_status\",\n cancelled: \"canceled_status\",\n};\n\nconst STATUS_ALL_SENTINEL = \"all\";\n\n/** Return true when a status-filter input is the standalone all-status sentinel. */\nexport function isStatusAllFilterInput(raw: unknown): boolean {\n if (typeof raw !== \"string\") {\n return false;\n }\n const tokens = raw\n .split(\",\")\n .map((entry) => entry.trim().toLowerCase())\n .filter((entry) => entry.length > 0);\n return tokens.length === 1 && tokens[0] === STATUS_ALL_SENTINEL;\n}\n\n/**\n * Resolve a single status-filter token to a concrete runtime status id.\n *\n * Returns `undefined` when the token is not a recognized workflow-group alias\n * (open/closed/canceled) and does not normalize to a known registry status.\n * Callers decide whether an unrecognized token is an error (strict mode) or is\n * passed through verbatim (lenient mode) — see {@link parseStatusFilterCsv}.\n */\nexport function resolveStatusFilterToken(\n token: string,\n registry: RuntimeStatusRegistry,\n): ItemStatus | undefined {\n const trimmed = token.trim().toLowerCase();\n if (trimmed.length === 0) {\n return undefined;\n }\n const group = STATUS_GROUP_ALIASES[trimmed];\n if (group) {\n return registry[group] as ItemStatus;\n }\n return normalizeStatusInput(token, registry);\n}\n\nfunction collectStatusSuggestionCandidates(registry: RuntimeStatusRegistry): string[] {\n const candidates = new Set<string>(Object.keys(STATUS_GROUP_ALIASES));\n for (const definition of registry.definitions) {\n candidates.add(definition.id);\n for (const alias of definition.aliases) {\n candidates.add(alias);\n }\n }\n return [...candidates];\n}\n\nfunction suggestClosestStatus(value: string, registry: RuntimeStatusRegistry): string | undefined {\n // Only ever called for an unresolved, already-non-empty token (parseStatusFilterCsv\n // filters blanks first), so no empty-input guard is needed here.\n const normalized = value.trim().toLowerCase();\n let best: string | undefined;\n let bestDistance = Number.POSITIVE_INFINITY;\n for (const candidate of collectStatusSuggestionCandidates(registry)) {\n const distance = levenshteinDistanceWithinLimit(normalized, candidate.toLowerCase(), 2);\n if (distance !== null && distance < bestDistance) {\n best = candidate;\n bestDistance = distance;\n }\n }\n return best;\n}\n\n/**\n * Documents the parse status filter options payload exchanged by command, SDK, and package integrations.\n */\nexport interface ParseStatusFilterOptions {\n /**\n * When true, an unrecognized token throws a USAGE error with a did-you-mean\n * hint. When false (default), an unrecognized token is passed through\n * verbatim so custom/unknown statuses still compare against item values by\n * their raw string — preserving the long-standing lenient `pm list` behavior.\n */\n strict?: boolean;\n /** Flag label used in error messages (default: \"--status\"). */\n flagLabel?: string;\n}\n\n/**\n * Parse a comma-separated status filter into a de-duplicated list of concrete\n * status ids. A standalone `all` sentinel intentionally resolves to no filter\n * so duplicate-discovery loops can search every lifecycle bucket with the same\n * `--status` flag shape. Shared by `pm list` (lenient) and `pm search`\n * (strict, with a did-you-mean hint on typos) so both surfaces resolve the\n * open/closed/canceled workflow-group aliases identically.\n */\nexport function parseStatusFilterCsv(\n raw: unknown,\n registry: RuntimeStatusRegistry,\n options?: ParseStatusFilterOptions,\n): ItemStatus[] | undefined {\n if (typeof raw !== \"string\") {\n return undefined;\n }\n const strict = options?.strict === true;\n const flagLabel = options?.flagLabel ?? \"--status\";\n const tokens = raw\n .split(\",\")\n .map((entry) => entry.trim())\n .filter((entry) => entry.length > 0);\n if (tokens.length === 0) {\n return undefined;\n }\n const allTokenCount = tokens.filter((token) => token.trim().toLowerCase() === STATUS_ALL_SENTINEL).length;\n if (allTokenCount > 0) {\n if (tokens.length === 1) {\n return undefined;\n }\n throw new PmCliError(\n `Invalid ${flagLabel} value \"all\". Use it by itself, or omit ${flagLabel} to search every status.`,\n EXIT_CODE.USAGE,\n );\n }\n const resolved: ItemStatus[] = [];\n for (const token of tokens) {\n const status = resolveStatusFilterToken(token, registry);\n if (status === undefined) {\n if (strict) {\n const suggestion = suggestClosestStatus(token, registry);\n throw new PmCliError(\n `Invalid ${flagLabel} value \"${token}\". Use open|closed|canceled or a configured status id${\n suggestion ? `. Did you mean \"${suggestion}\"?` : \".\"\n }`,\n EXIT_CODE.USAGE,\n );\n }\n resolved.push(token as ItemStatus);\n continue;\n }\n resolved.push(status);\n }\n return [...new Set(resolved)];\n}\n","/**\n * @module core/schema/runtime-field-filters\n *\n * Resolves configurable schema, fields, statuses, and workflows for Runtime Field Filters.\n */\nimport { coerceRuntimeFieldValue, readRuntimeFieldOptionValue } from \"./runtime-field-values.js\";\nimport type { RuntimeFieldCommand, RuntimeFieldRegistry } from \"./runtime-schema.js\";\nimport { stableValueEquals } from \"../shared/serialization.js\";\n\nfunction valuesEqual(left: unknown, right: unknown): boolean {\n return stableValueEquals(left, right);\n}\n\n/**\n * Implements collect runtime filter values for the public runtime surface of this module.\n */\nexport function collectRuntimeFilterValues(\n options: Record<string, unknown>,\n fieldRegistry: RuntimeFieldRegistry,\n command: RuntimeFieldCommand,\n): Record<string, unknown> {\n const filters: Record<string, unknown> = {};\n for (const definition of fieldRegistry.command_to_fields.get(command) ?? []) {\n const rawValue = readRuntimeFieldOptionValue(options, definition);\n if (rawValue === undefined) {\n continue;\n }\n filters[definition.metadata_key] = coerceRuntimeFieldValue(definition, rawValue);\n }\n return filters;\n}\n\n/**\n * Implements matches runtime filters for the public runtime surface of this module.\n */\nexport function matchesRuntimeFilters(item: Record<string, unknown>, filters: Record<string, unknown>): boolean {\n for (const [fieldKey, expectedValue] of Object.entries(filters)) {\n const actualValue = item[fieldKey];\n if (Array.isArray(expectedValue)) {\n if (Array.isArray(actualValue)) {\n const normalizedActual = actualValue.map((value) => String(value));\n const normalizedExpected = expectedValue.map((value) => String(value));\n if (!normalizedExpected.every((value) => normalizedActual.includes(value))) {\n return false;\n }\n continue;\n }\n if (!valuesEqual(actualValue, expectedValue[expectedValue.length - 1])) {\n return false;\n }\n continue;\n }\n if (!valuesEqual(actualValue, expectedValue)) {\n return false;\n }\n }\n return true;\n}\n","/**\n * @module cli/commands/list\n *\n * Implements the pm list command surface and its agent-facing runtime behavior.\n */\nimport { pathExists } from \"../../core/fs/fs-utils.js\";\nimport { getActiveExtensionRegistrations } from \"../../core/extensions/index.js\";\nimport { toItemRecord } from \"../../core/item/item-record.js\";\nimport { isTerminalStatus } from \"../../core/item/status.js\";\nimport { isStatusAllFilterInput, parseStatusFilterCsv } from \"../../core/item/status-filter.js\";\nimport { resolveItemTypeRegistry, type ItemTypeRegistry } from \"../../core/item/type-registry.js\";\nimport { parseIntegerLimit, parsePriority, parseType } from \"../shared-parsers.js\";\nimport { collectRuntimeFilterValues, matchesRuntimeFilters } from \"../../core/schema/runtime-field-filters.js\";\nimport {\n hasMissingMetadataFilter,\n itemMatchesMissingMetadata,\n lifecycleClassifierFromStatusRegistry,\n type MissingMetadataFilters,\n} from \"../../core/governance/metadata-coverage.js\";\nimport {\n contentFiltersNeedBody,\n contentFiltersNeedCollections,\n hasContentFieldFilter,\n itemMatchesContentFilters,\n type ContentField,\n type ContentFieldFilters,\n} from \"../../core/governance/content-fields.js\";\nimport {\n resolveRuntimeFieldRegistry,\n resolveRuntimeStatusRegistry,\n type RuntimeStatusRegistry,\n} from \"../../core/schema/runtime-schema.js\";\nimport { EXIT_CODE, FRONT_MATTER_KEY_ORDER } from \"../../core/shared/constants.js\";\nimport type { GlobalOptions } from \"../../core/shared/command-types.js\";\nimport { PmCliError } from \"../../core/shared/errors.js\";\nimport { compareTimestampStrings, nowIso, resolveIsoOrRelative } from \"../../core/shared/time.js\";\nimport { listAllFrontMatter, listAllFrontMatterLight, listAllFrontMatterWithBody } from \"../../core/store/item-store.js\";\nimport { HEAVY_METADATA_KEYS } from \"../../core/store/front-matter-cache.js\";\nimport { getSettingsPath, resolvePmRoot } from \"../../core/store/paths.js\";\nimport { readSettings } from \"../../core/store/settings.js\";\nimport type { ItemFrontMatter, ItemStatus, ItemType } from \"../../types/index.js\";\nimport type { SharedItemFilterOptions } from \"./item-filter-options.js\";\n\n/**\n * Documents the list options payload exchanged by command, SDK, and package integrations.\n */\nexport interface ListOptions extends SharedItemFilterOptions {\n ids?: string;\n assigneeFilter?: string;\n today?: boolean;\n recent?: boolean;\n limit?: string;\n offset?: string;\n noTruncate?: boolean;\n includeBody?: boolean;\n compact?: boolean;\n brief?: boolean;\n full?: boolean;\n fields?: string;\n sort?: string;\n order?: string;\n tree?: boolean;\n treeDepth?: string;\n excludeTerminal?: boolean;\n filterAcMissing?: boolean;\n filterEstimatesMissing?: boolean;\n filterResolutionMissing?: boolean;\n filterMetadataMissing?: boolean;\n}\n\n/** Extract the missing-metadata selection filters from list/update-many options. */\nexport function resolveMissingMetadataFilters(options: {\n filterAcMissing?: boolean;\n filterEstimatesMissing?: boolean;\n filterResolutionMissing?: boolean;\n filterMetadataMissing?: boolean;\n filterReviewerMissing?: boolean;\n filterRiskMissing?: boolean;\n filterConfidenceMissing?: boolean;\n filterSprintMissing?: boolean;\n filterReleaseMissing?: boolean;\n}): MissingMetadataFilters {\n return {\n acMissing: options.filterAcMissing === true,\n estimatesMissing: options.filterEstimatesMissing === true,\n resolutionMissing: options.filterResolutionMissing === true,\n metadataMissing: options.filterMetadataMissing === true,\n reviewerMissing: options.filterReviewerMissing === true,\n riskMissing: options.filterRiskMissing === true,\n confidenceMissing: options.filterConfidenceMissing === true,\n sprintMissing: options.filterSprintMissing === true,\n releaseMissing: options.filterReleaseMissing === true,\n };\n}\n\n/** Per content field: the present flag and the absence flag on the options shape. */\ninterface ContentFieldFlagMapping {\n field: ContentField;\n presentKey: string;\n absentKey: string;\n /** Human flag names used in the conflict error message. */\n presentFlag: string;\n absentFlag: string;\n}\n\nconst CONTENT_FIELD_FLAG_MAPPINGS: readonly ContentFieldFlagMapping[] = [\n { field: \"notes\", presentKey: \"hasNotes\", absentKey: \"noNotes\", presentFlag: \"--has-notes\", absentFlag: \"--no-notes\" },\n { field: \"learnings\", presentKey: \"hasLearnings\", absentKey: \"noLearnings\", presentFlag: \"--has-learnings\", absentFlag: \"--no-learnings\" },\n { field: \"files\", presentKey: \"hasFiles\", absentKey: \"noFiles\", presentFlag: \"--has-files\", absentFlag: \"--no-files\" },\n { field: \"docs\", presentKey: \"hasDocs\", absentKey: \"noDocs\", presentFlag: \"--has-docs\", absentFlag: \"--no-docs\" },\n { field: \"tests\", presentKey: \"hasTests\", absentKey: \"noTests\", presentFlag: \"--has-tests\", absentFlag: \"--no-tests\" },\n { field: \"comments\", presentKey: \"hasComments\", absentKey: \"noComments\", presentFlag: \"--has-comments\", absentFlag: \"--no-comments\" },\n { field: \"deps\", presentKey: \"hasDeps\", absentKey: \"noDeps\", presentFlag: \"--has-deps\", absentFlag: \"--no-deps\" },\n { field: \"body\", presentKey: \"hasBody\", absentKey: \"emptyBody\", presentFlag: \"--has-body\", absentFlag: \"--empty-body\" },\n { field: \"linked_command\", presentKey: \"hasLinkedCommand\", absentKey: \"noLinkedCommand\", presentFlag: \"--has-linked-command\", absentFlag: \"--no-linked-command\" },\n] as const;\n\n/**\n * Resolve the content-field presence/absence selections from list/search\n * options. A field requested both present AND absent is a usage error (the two\n * selections are mutually exclusive). Returns an empty object when no\n * content-field filter is active.\n */\nexport function resolveContentFieldFilters(options: Record<string, unknown>): ContentFieldFilters {\n const filters: ContentFieldFilters = {};\n for (const mapping of CONTENT_FIELD_FLAG_MAPPINGS) {\n const present = options[mapping.presentKey] === true;\n const absent = options[mapping.absentKey] === true;\n if (present && absent) {\n throw new PmCliError(\n `Cannot combine ${mapping.presentFlag} with ${mapping.absentFlag} for the same field.`,\n EXIT_CODE.USAGE,\n );\n }\n if (present) {\n filters[mapping.field] = \"present\";\n } else if (absent) {\n filters[mapping.field] = \"absent\";\n }\n }\n return filters;\n}\n\n/**\n * Restricts listed item values accepted by command, SDK, and storage contracts.\n */\nexport type ListedItem = ItemFrontMatter | (ItemFrontMatter & { body: string });\n\ntype ListProjectionMode = \"full\" | \"compact\" | \"fields\";\n\ninterface ListProjectionConfig {\n mode: ListProjectionMode;\n fields: string[];\n}\n\nexport const LIST_SORT_FIELDS = [\"priority\", \"deadline\", \"updated_at\", \"created_at\", \"title\", \"parent\"] as const;\n/**\n * Restricts list sort field values accepted by command, SDK, and storage contracts.\n */\nexport type ListSortField = (typeof LIST_SORT_FIELDS)[number];\n\nexport const LIST_SORT_ORDER_VALUES = [\"asc\", \"desc\"] as const;\n/**\n * Restricts list sort order values accepted by command, SDK, and storage contracts.\n */\nexport type ListSortOrder = (typeof LIST_SORT_ORDER_VALUES)[number];\n\nconst DEFAULT_COMPACT_LIST_FIELDS = [\"id\", \"title\", \"status\", \"type\", \"priority\", \"parent\", \"updated_at\"] as const;\nconst BRIEF_LIST_FIELDS = [\"id\", \"status\", \"type\", \"title\"] as const;\nconst TREE_METADATA_FIELDS = [\"tree_depth\", \"tree_parent\", \"tree_children\", \"tree_title\"] as const;\n\n// A projection that selects any heavy collection field (or `--full`, which returns\n// items verbatim) must load the full metadata; everything else takes the light path.\n// Sourced from the single HEAVY_METADATA_KEYS definition in the cache layer so the\n// light/heavy split can never drift between the cache and the projection routing.\nconst HEAVY_PROJECTION_FIELDS: ReadonlySet<string> = new Set<string>(HEAVY_METADATA_KEYS);\n\ninterface ListResultBase {\n items: ListedItem[];\n count: number;\n // Total rows matched before pagination; only emitted when --limit/--offset\n // omitted rows, so agents know how many remain (GH-154).\n total?: number;\n warnings?: string[];\n}\n\n/**\n * Documents the list compact result payload exchanged by command, SDK, and package integrations.\n */\nexport interface ListCompactResult extends ListResultBase {\n filters: Record<string, unknown>;\n projection?: undefined;\n sorting?: undefined;\n now?: undefined;\n}\n\n/**\n * Documents the list verbose result payload exchanged by command, SDK, and package integrations.\n */\nexport interface ListVerboseResult extends ListResultBase {\n filters: Record<string, unknown>;\n projection: {\n mode: ListProjectionMode;\n fields: string[] | null;\n };\n sorting: {\n sort: ListSortField | \"default\";\n order: ListSortOrder;\n };\n now: string;\n}\n\n/**\n * Restricts list result values accepted by command, SDK, and storage contracts.\n */\nexport type ListResult = ListCompactResult | ListVerboseResult;\n\nfunction isNonEmptyRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === \"object\" && value !== null && !Array.isArray(value) && Object.keys(value).length > 0;\n}\n\n// Active content-field filter flags, keyed by the options dest and the snake_case\n// summary key emitted in the filters echo (GH-242). Presence and absence are\n// distinct echo keys (has_notes vs no_notes; has_body vs empty_body).\nconst CONTENT_FILTER_ECHO_ENTRIES: ReadonlyArray<{ key: string; summaryKey: string }> = [\n { key: \"hasNotes\", summaryKey: \"has_notes\" },\n { key: \"hasLearnings\", summaryKey: \"has_learnings\" },\n { key: \"hasFiles\", summaryKey: \"has_files\" },\n { key: \"hasDocs\", summaryKey: \"has_docs\" },\n { key: \"hasTests\", summaryKey: \"has_tests\" },\n { key: \"hasComments\", summaryKey: \"has_comments\" },\n { key: \"hasDeps\", summaryKey: \"has_deps\" },\n { key: \"hasBody\", summaryKey: \"has_body\" },\n { key: \"hasLinkedCommand\", summaryKey: \"has_linked_command\" },\n { key: \"noNotes\", summaryKey: \"no_notes\" },\n { key: \"noLearnings\", summaryKey: \"no_learnings\" },\n { key: \"noFiles\", summaryKey: \"no_files\" },\n { key: \"noDocs\", summaryKey: \"no_docs\" },\n { key: \"noTests\", summaryKey: \"no_tests\" },\n { key: \"noComments\", summaryKey: \"no_comments\" },\n { key: \"noDeps\", summaryKey: \"no_deps\" },\n { key: \"emptyBody\", summaryKey: \"empty_body\" },\n { key: \"noLinkedCommand\", summaryKey: \"no_linked_command\" },\n] as const;\n\n// Active governance-missing filter flags (GH-236), keyed by options dest and the\n// snake_case summary key emitted in the filters echo.\nconst GOVERNANCE_MISSING_ECHO_ENTRIES: ReadonlyArray<{ key: string; summaryKey: string }> = [\n { key: \"filterReviewerMissing\", summaryKey: \"filter_reviewer_missing\" },\n { key: \"filterRiskMissing\", summaryKey: \"filter_risk_missing\" },\n { key: \"filterConfidenceMissing\", summaryKey: \"filter_confidence_missing\" },\n { key: \"filterSprintMissing\", summaryKey: \"filter_sprint_missing\" },\n { key: \"filterReleaseMissing\", summaryKey: \"filter_release_missing\" },\n] as const;\n\nfunction applyContentFilterEcho(filters: Record<string, unknown>, options: Record<string, unknown>): void {\n for (const entry of CONTENT_FILTER_ECHO_ENTRIES) {\n if (options[entry.key] === true) {\n filters[entry.summaryKey] = true;\n }\n }\n}\n\nfunction applyGovernanceMissingFilterEcho(filters: Record<string, unknown>, options: Record<string, unknown>): void {\n for (const entry of GOVERNANCE_MISSING_ECHO_ENTRIES) {\n if (options[entry.key] === true) {\n filters[entry.summaryKey] = true;\n }\n }\n}\n\ninterface FilterValueEchoEntry {\n optionKey: string;\n summaryKey: string;\n normalize?: (value: unknown) => unknown;\n}\n\n/**\n * Copies user-supplied option values into compact filter summaries.\n *\n * Compact list/search responses are optimized for agent context: they echo only\n * filters the caller actually supplied. Keeping this helper shared prevents the\n * list and search command summaries from drifting as new scalar filters are\n * added.\n */\nexport function applyFilterValueEcho(\n filters: Record<string, unknown>,\n options: Record<string, unknown>,\n entries: ReadonlyArray<FilterValueEchoEntry>,\n): void {\n for (const entry of entries) {\n const value = options[entry.optionKey];\n if (value !== undefined) {\n filters[entry.summaryKey] = entry.normalize ? entry.normalize(value) : value;\n }\n }\n}\n\n/**\n * Implements build content filter echo for the public runtime surface of this module.\n */\nexport function buildContentFilterEcho(options: Record<string, unknown>): Record<string, true> {\n const echo: Record<string, true> = {};\n applyContentFilterEcho(echo, options);\n return echo;\n}\n\n/**\n * Implements build governance missing filter echo for the public runtime surface of this module.\n */\nexport function buildGovernanceMissingFilterEcho(options: Record<string, unknown>): Record<string, true> {\n const echo: Record<string, true> = {};\n applyGovernanceMissingFilterEcho(echo, options);\n return echo;\n}\n\nconst COMPACT_LIST_VALUE_FILTER_ECHO_ENTRIES: ReadonlyArray<FilterValueEchoEntry> = [\n { optionKey: \"type\", summaryKey: \"type\" },\n { optionKey: \"tag\", summaryKey: \"tag\" },\n { optionKey: \"priority\", summaryKey: \"priority\" },\n { optionKey: \"deadlineBefore\", summaryKey: \"deadline_before\" },\n { optionKey: \"deadlineAfter\", summaryKey: \"deadline_after\" },\n { optionKey: \"updatedAfter\", summaryKey: \"updated_after\" },\n { optionKey: \"updatedBefore\", summaryKey: \"updated_before\" },\n { optionKey: \"createdAfter\", summaryKey: \"created_after\" },\n { optionKey: \"createdBefore\", summaryKey: \"created_before\" },\n { optionKey: \"ids\", summaryKey: \"ids\" },\n { optionKey: \"assignee\", summaryKey: \"assignee\" },\n { optionKey: \"assigneeFilter\", summaryKey: \"assignee_filter\" },\n { optionKey: \"parent\", summaryKey: \"parent\" },\n { optionKey: \"sprint\", summaryKey: \"sprint\" },\n { optionKey: \"release\", summaryKey: \"release\" },\n] as const;\n\nconst VERBOSE_LIST_VALUE_FILTER_ECHO_ENTRIES: ReadonlyArray<FilterValueEchoEntry> = [\n { optionKey: \"type\", summaryKey: \"type\" },\n { optionKey: \"tag\", summaryKey: \"tag\" },\n { optionKey: \"priority\", summaryKey: \"priority\" },\n { optionKey: \"deadlineBefore\", summaryKey: \"deadline_before\" },\n { optionKey: \"deadlineAfter\", summaryKey: \"deadline_after\" },\n { optionKey: \"updatedAfter\", summaryKey: \"updated_after\" },\n { optionKey: \"updatedBefore\", summaryKey: \"updated_before\" },\n { optionKey: \"createdAfter\", summaryKey: \"created_after\" },\n { optionKey: \"createdBefore\", summaryKey: \"created_before\" },\n { optionKey: \"ids\", summaryKey: \"ids\" },\n { optionKey: \"assignee\", summaryKey: \"assignee\" },\n { optionKey: \"assigneeFilter\", summaryKey: \"assignee_filter\" },\n { optionKey: \"parent\", summaryKey: \"parent\" },\n { optionKey: \"sprint\", summaryKey: \"sprint\" },\n { optionKey: \"release\", summaryKey: \"release\" },\n { optionKey: \"limit\", summaryKey: \"limit\" },\n { optionKey: \"offset\", summaryKey: \"offset\" },\n { optionKey: \"includeBody\", summaryKey: \"include_body\" },\n { optionKey: \"compact\", summaryKey: \"compact\" },\n { optionKey: \"fields\", summaryKey: \"fields\" },\n] as const;\n\nconst VERBOSE_LIST_BOOLEAN_FILTER_ECHO_ENTRIES: ReadonlyArray<{ key: string; summaryKey: string }> = [\n { key: \"filterAcMissing\", summaryKey: \"filter_ac_missing\" },\n { key: \"filterEstimatesMissing\", summaryKey: \"filter_estimates_missing\" },\n { key: \"filterResolutionMissing\", summaryKey: \"filter_resolution_missing\" },\n { key: \"filterMetadataMissing\", summaryKey: \"filter_metadata_missing\" },\n] as const;\n\nconst LIST_RECENT_WINDOW = \"-7d\";\n\nfunction buildCompactListFilterSummary(params: {\n filtersStatus: string | string[] | null;\n options: ListOptions;\n treeEnabled: boolean;\n treeDepth: number | undefined;\n sortField: ListSortField | undefined;\n sortOrder: ListSortOrder;\n runtimeFieldFilters: Record<string, unknown>;\n}): Record<string, unknown> {\n const {\n filtersStatus,\n options,\n treeEnabled,\n treeDepth,\n sortField,\n sortOrder,\n runtimeFieldFilters,\n } = params;\n const filters: Record<string, unknown> = {};\n if (filtersStatus !== null) {\n filters.status = filtersStatus;\n }\n applyFilterValueEcho(filters, options, COMPACT_LIST_VALUE_FILTER_ECHO_ENTRIES);\n applyListWindowFilterEcho(filters, options);\n if (options.filterAcMissing === true) {\n filters.filter_ac_missing = true;\n }\n if (options.filterEstimatesMissing === true) {\n filters.filter_estimates_missing = true;\n }\n if (options.filterResolutionMissing === true) {\n filters.filter_resolution_missing = true;\n }\n if (options.filterMetadataMissing === true) {\n filters.filter_metadata_missing = true;\n }\n applyGovernanceMissingFilterEcho(filters, options);\n applyContentFilterEcho(filters, options);\n if (options.limit !== undefined) {\n filters.limit = options.limit;\n }\n if (options.offset !== undefined) {\n filters.offset = options.offset;\n }\n if (options.includeBody === true) {\n filters.include_body = true;\n }\n if (options.fields !== undefined) {\n filters.fields = options.fields;\n }\n if (treeEnabled) {\n filters.tree = true;\n if (treeDepth !== undefined) {\n filters.tree_depth = treeDepth;\n }\n }\n if (sortField !== undefined) {\n filters.sort = sortField;\n filters.order = sortOrder;\n }\n if (isNonEmptyRecord(runtimeFieldFilters)) {\n filters.runtime_filters = runtimeFieldFilters;\n }\n return filters;\n}\n\nfunction compareDefaultSort(left: ListedItem, right: ListedItem, statusRegistry: RuntimeStatusRegistry): number {\n const leftTerminal = isTerminalStatus(left.status, statusRegistry);\n const rightTerminal = isTerminalStatus(right.status, statusRegistry);\n if (leftTerminal !== rightTerminal) {\n return leftTerminal ? 1 : -1;\n }\n const byPriority = left.priority - right.priority;\n if (byPriority !== 0) {\n return byPriority;\n }\n const byUpdated = compareTimestampStrings(right.updated_at, left.updated_at);\n if (byUpdated !== 0) {\n return byUpdated;\n }\n return (left.id ?? \"\").localeCompare(right.id ?? \"\");\n}\n\nfunction sortItemsDefault(items: ListedItem[], statusRegistry: RuntimeStatusRegistry): ListedItem[] {\n return [...items].sort((left, right) => compareDefaultSort(left, right, statusRegistry));\n}\n\nfunction parseDeadline(raw: string | undefined, fieldLabel: string): string | undefined {\n if (raw === undefined) return undefined;\n return resolveIsoOrRelative(raw, new Date(), fieldLabel);\n}\n\n// updated/created date-window filters share the deadline ISO+relative resolver\n// so agents doing incremental \"what changed since my last context window\" syncs\n// can pass either an ISO timestamp (the common case — feed back the previous\n// run's `now`) or a SIGNED relative offset where \"-2h\"/\"-7d\" reach into the\n// past and \"+1d\" into the future (units h/d/w/m, m = months — there is no\n// minutes unit, matching the deadline resolver).\nfunction parseTimestampWindow(raw: unknown, fieldLabel: string): string | undefined {\n if (raw == null) return undefined;\n const value = String(raw).trim();\n if (value.length === 0) return undefined;\n return resolveIsoOrRelative(value, new Date(), fieldLabel);\n}\n\nfunction resolveListUpdatedAfter(options: ListOptions): string | undefined {\n const hasUpdatedAfter = options.updatedAfter != null && String(options.updatedAfter).trim().length > 0;\n const selectedWindows = [options.today === true, options.recent === true, hasUpdatedAfter]\n .filter((selected) => selected).length;\n if (selectedWindows > 1) {\n throw new PmCliError(\"Choose only one updated_at window: --today, --recent, or --updated-after.\", EXIT_CODE.USAGE);\n }\n if (options.today === true) {\n const today = new Date();\n today.setHours(0, 0, 0, 0);\n return today.toISOString();\n }\n if (options.recent === true) {\n return parseTimestampWindow(LIST_RECENT_WINDOW, \"recent\");\n }\n return parseTimestampWindow(options.updatedAfter, \"updated-after\");\n}\n\nfunction applyListWindowFilterEcho(filters: Record<string, unknown>, options: ListOptions): void {\n if (options.today === true) {\n filters.today = true;\n }\n if (options.recent === true) {\n filters.recent = true;\n }\n}\n\nfunction parseIdsFilter(raw: unknown): Set<string> | undefined {\n if (raw == null) return undefined;\n const value = String(raw).trim();\n if (value.length === 0) {\n throw new PmCliError(\"--ids requires at least one non-empty item ID\", EXIT_CODE.USAGE);\n }\n const ids = value\n .split(\",\")\n .map((entry) => entry.trim())\n .filter((entry) => entry.length > 0);\n if (ids.length === 0) {\n throw new PmCliError(\"--ids requires at least one non-empty item ID\", EXIT_CODE.USAGE);\n }\n return new Set(ids);\n}\n\nfunction parseOffset(raw: string | undefined): number | undefined {\n if (raw === undefined) return undefined;\n const parsed = Number(raw);\n if (!Number.isInteger(parsed) || parsed < 0) {\n throw new PmCliError(\"Offset filter must be a non-negative integer\", EXIT_CODE.USAGE);\n }\n return parsed;\n}\n\nfunction parseFieldSelectors(raw: string | undefined): string[] | undefined {\n if (raw === undefined) {\n return undefined;\n }\n const selectors = raw\n .split(\",\")\n .map((entry) => entry.trim())\n .filter((entry) => entry.length > 0);\n if (selectors.length === 0) {\n throw new PmCliError(\"List --fields requires a comma-separated list of field names\", EXIT_CODE.USAGE);\n }\n return [...new Set(selectors)];\n}\n\nfunction parseProjectionConfig(options: ListOptions): ListProjectionConfig {\n const compactRequested = options.compact === true;\n const briefRequested = options.brief === true;\n const fullRequested = options.full === true;\n const fieldSelectors = parseFieldSelectors(options.fields);\n const enabledModes =\n Number(compactRequested) + Number(briefRequested) + Number(fullRequested) + Number(fieldSelectors !== undefined);\n if (enabledModes > 1) {\n throw new PmCliError(\n \"List projection options are mutually exclusive. Use one of --compact, --brief, --full, or --fields.\",\n EXIT_CODE.USAGE,\n );\n }\n if (fullRequested) {\n return {\n mode: \"full\",\n fields: [],\n };\n }\n if (briefRequested) {\n return {\n mode: \"compact\",\n fields: [...BRIEF_LIST_FIELDS],\n };\n }\n if (compactRequested) {\n return {\n mode: \"compact\",\n fields: [...DEFAULT_COMPACT_LIST_FIELDS],\n };\n }\n if (fieldSelectors) {\n return {\n mode: \"fields\",\n fields: fieldSelectors,\n };\n }\n return {\n mode: \"full\",\n fields: [],\n };\n}\n\nfunction normalizeProjectionField(field: string): string {\n return field.startsWith(\"item.\") ? field.slice(\"item.\".length) : field;\n}\n\nfunction validateListProjectionFields(projection: ListProjectionConfig, runtimeMetadataKeys: Iterable<string>): void {\n if (projection.mode !== \"fields\") {\n return;\n }\n const allowed = new Set([...FRONT_MATTER_KEY_ORDER, \"body\", ...TREE_METADATA_FIELDS, ...runtimeMetadataKeys]);\n const unknown = projection.fields.filter((field) => !allowed.has(normalizeProjectionField(field)));\n if (unknown.length > 0) {\n throw new PmCliError(`Unknown list --fields value(s): ${unknown.join(\", \")}`, EXIT_CODE.USAGE, {\n code: \"unknown_field_projection\",\n examples: [\n \"pm list-open --fields id,title,status,type,updated_at\",\n \"pm list --fields id,title,parent,priority --limit 10\",\n \"pm list-all --fields id,title,body --limit 5\",\n ],\n });\n }\n}\n\n// Convenience aliases so agents/humans who reach for the bare verb form\n// (e.g. `--sort updated`) land on the canonical timestamp fields instead of an error.\n// A Map (not a plain object) avoids prototype-chain lookups for keys like \"__proto__\".\nconst LIST_SORT_FIELD_ALIASES: ReadonlyMap<string, ListSortField> = new Map<string, ListSortField>([\n [\"updated\", \"updated_at\"],\n [\"update\", \"updated_at\"],\n [\"modified\", \"updated_at\"],\n [\"created\", \"created_at\"],\n [\"create\", \"created_at\"],\n]);\n\nfunction parseSortField(raw: string | undefined): ListSortField | undefined {\n if (raw === undefined) {\n return undefined;\n }\n const normalized = raw.trim().toLowerCase();\n const aliased = LIST_SORT_FIELD_ALIASES.get(normalized);\n if (aliased) {\n return aliased;\n }\n if (!LIST_SORT_FIELDS.includes(normalized as ListSortField)) {\n throw new PmCliError(\n `Sort field must be one of ${LIST_SORT_FIELDS.join(\"|\")} (aliases: updated->updated_at, created->created_at)`,\n EXIT_CODE.USAGE,\n );\n }\n return normalized as ListSortField;\n}\n\nfunction parseSortOrder(raw: string | undefined): ListSortOrder | undefined {\n if (raw === undefined) {\n return undefined;\n }\n const normalized = raw.trim().toLowerCase();\n if (!LIST_SORT_ORDER_VALUES.includes(normalized as ListSortOrder)) {\n throw new PmCliError(`Sort order must be one of ${LIST_SORT_ORDER_VALUES.join(\"|\")}`, EXIT_CODE.USAGE);\n }\n return normalized as ListSortOrder;\n}\n\nfunction parseTreeDepth(raw: string | undefined): number | undefined {\n return parseIntegerLimit(raw, \"--tree-depth\");\n}\n\nfunction parseAssigneeFilter(raw: string | undefined): \"assigned\" | \"unassigned\" | undefined {\n if (raw === undefined) {\n return undefined;\n }\n const normalized = raw.trim().toLowerCase();\n if (!normalized) {\n throw new PmCliError(\"Assignee filter must be one of assigned|unassigned\", EXIT_CODE.USAGE);\n }\n if (normalized !== \"assigned\" && normalized !== \"unassigned\") {\n throw new PmCliError(`Invalid assignee filter \"${raw}\". Allowed: assigned|unassigned`, EXIT_CODE.USAGE);\n }\n return normalized;\n}\n\n// `pm list` keeps lenient status parsing (an unknown token is passed through\n// verbatim and simply matches nothing) so custom/unknown statuses never error;\n// the shared CSV parser resolves the open/closed/canceled workflow-group aliases.\nfunction resolveStatusFilter(\n status: ItemStatus | undefined,\n statusRegistry: RuntimeStatusRegistry,\n): ItemStatus[] | undefined {\n return parseStatusFilterCsv(status, statusRegistry, { strict: false });\n}\n\ninterface ListFilterSet {\n idsFilter: Set<string> | undefined;\n statusSet: Set<ItemStatus> | undefined;\n excludeTerminal: boolean;\n typeFilter: ItemType | undefined;\n tagFilter: string | undefined;\n priorityFilter: number | undefined;\n deadlineBefore: string | undefined;\n deadlineAfter: string | undefined;\n updatedAfter: string | undefined;\n updatedBefore: string | undefined;\n createdAfter: string | undefined;\n createdBefore: string | undefined;\n assigneeFilter: string | undefined;\n assigneeModeFilter: \"assigned\" | \"unassigned\" | undefined;\n parentFilter: string | undefined;\n treeEnabled: boolean;\n sprintFilter: string | undefined;\n releaseFilter: string | undefined;\n missingMetadataFilters: MissingMetadataFilters;\n missingMetadataActive: boolean;\n lifecycleClassifier: ReturnType<typeof lifecycleClassifierFromStatusRegistry>;\n contentFieldFilters: ContentFieldFilters;\n contentFiltersActive: boolean;\n}\n\nfunction assertListAssigneeFilters(\n assigneeFilter: string | undefined,\n assigneeModeFilter: \"assigned\" | \"unassigned\" | undefined,\n): void {\n if (assigneeFilter && (assigneeFilter.toLowerCase() === \"none\" || assigneeFilter.toLowerCase() === \"null\")) {\n throw new PmCliError(\n '--assignee no longer accepts \"none\" or \"null\". Use --assignee-filter unassigned.',\n EXIT_CODE.USAGE,\n );\n }\n if (assigneeFilter !== undefined && assigneeModeFilter === \"unassigned\") {\n throw new PmCliError(\"Cannot combine --assignee with --assignee-filter unassigned\", EXIT_CODE.USAGE);\n }\n}\n\nfunction resolveListFilterSet(\n status: ItemStatus[] | undefined,\n options: ListOptions,\n typeRegistry: ItemTypeRegistry,\n statusRegistry: RuntimeStatusRegistry,\n): ListFilterSet {\n const assigneeFilter = options.assignee?.trim();\n const assigneeModeFilter = parseAssigneeFilter(options.assigneeFilter);\n assertListAssigneeFilters(assigneeFilter, assigneeModeFilter);\n const missingMetadataFilters = resolveMissingMetadataFilters(options);\n const contentFieldFilters = resolveContentFieldFilters(options as Record<string, unknown>);\n return {\n idsFilter: parseIdsFilter(options.ids),\n statusSet: status && status.length > 0 ? new Set<ItemStatus>(status) : undefined,\n excludeTerminal: options.excludeTerminal === true,\n typeFilter: parseType(options.type, typeRegistry),\n tagFilter: options.tag?.trim().toLowerCase(),\n priorityFilter: parsePriority(options.priority),\n deadlineBefore: parseDeadline(options.deadlineBefore, \"deadline-before\"),\n deadlineAfter: parseDeadline(options.deadlineAfter, \"deadline-after\"),\n updatedAfter: resolveListUpdatedAfter(options),\n updatedBefore: parseTimestampWindow(options.updatedBefore, \"updated-before\"),\n createdAfter: parseTimestampWindow(options.createdAfter, \"created-after\"),\n createdBefore: parseTimestampWindow(options.createdBefore, \"created-before\"),\n assigneeFilter,\n assigneeModeFilter,\n parentFilter: options.parent?.trim(),\n treeEnabled: options.tree === true,\n sprintFilter: options.sprint?.trim(),\n releaseFilter: options.release?.trim(),\n missingMetadataFilters,\n missingMetadataActive: hasMissingMetadataFilter(missingMetadataFilters),\n lifecycleClassifier: lifecycleClassifierFromStatusRegistry(statusRegistry),\n contentFieldFilters,\n contentFiltersActive: hasContentFieldFilter(contentFieldFilters),\n };\n}\n\nfunction matchesListScalarFilters(\n item: ListedItem,\n filters: ListFilterSet,\n statusRegistry: RuntimeStatusRegistry,\n): boolean {\n return matchesListIdentityFilters(item, filters, statusRegistry) &&\n matchesListDateFilters(item, filters) &&\n matchesListAssigneeFilterSet(item, filters) &&\n matchesListScopeFilters(item, filters);\n}\n\nfunction matchesListIdentityFilters(\n item: ListedItem,\n filters: ListFilterSet,\n statusRegistry: RuntimeStatusRegistry,\n): boolean {\n if (filters.idsFilter && !filters.idsFilter.has(item.id)) return false;\n if (filters.statusSet && !filters.statusSet.has(item.status)) return false;\n if (filters.excludeTerminal && isTerminalStatus(item.status, statusRegistry)) return false;\n if (filters.typeFilter && item.type !== filters.typeFilter) return false;\n if (filters.tagFilter && !(item.tags ?? []).includes(filters.tagFilter)) return false;\n return filters.priorityFilter === undefined || item.priority === filters.priorityFilter;\n}\n\nfunction matchesListDateFilters(item: ListedItem, filters: ListFilterSet): boolean {\n if (filters.deadlineBefore && (!item.deadline || compareTimestampStrings(item.deadline, filters.deadlineBefore) > 0)) return false;\n if (filters.deadlineAfter && (!item.deadline || compareTimestampStrings(item.deadline, filters.deadlineAfter) < 0)) return false;\n if (filters.updatedAfter && compareTimestampStrings(item.updated_at, filters.updatedAfter) < 0) return false;\n if (filters.updatedBefore && compareTimestampStrings(item.updated_at, filters.updatedBefore) > 0) return false;\n if (filters.createdAfter && compareTimestampStrings(item.created_at, filters.createdAfter) < 0) return false;\n return !filters.createdBefore || compareTimestampStrings(item.created_at, filters.createdBefore) <= 0;\n}\n\nfunction matchesListAssigneeFilterSet(item: ListedItem, filters: ListFilterSet): boolean {\n if (filters.assigneeModeFilter === \"assigned\" && !item.assignee) return false;\n if (filters.assigneeModeFilter === \"unassigned\" && item.assignee) return false;\n return filters.assigneeFilter === undefined || item.assignee === filters.assigneeFilter;\n}\n\nfunction matchesListScopeFilters(item: ListedItem, filters: ListFilterSet): boolean {\n if (filters.parentFilter !== undefined && !filters.treeEnabled && item.parent !== filters.parentFilter) return false;\n if (filters.sprintFilter !== undefined && item.sprint !== filters.sprintFilter) return false;\n return filters.releaseFilter === undefined || item.release === filters.releaseFilter;\n}\n\nfunction matchesListFilterSet(\n item: ListedItem,\n filters: ListFilterSet,\n statusRegistry: RuntimeStatusRegistry,\n runtimeFieldFilters: Record<string, unknown>,\n): boolean {\n if (!matchesListScalarFilters(item, filters, statusRegistry)) {\n return false;\n }\n if (filters.missingMetadataActive && !itemMatchesMissingMetadata(item, filters.missingMetadataFilters, filters.lifecycleClassifier)) {\n return false;\n }\n if (filters.contentFiltersActive && !itemMatchesContentFilters(item, filters.contentFieldFilters)) {\n return false;\n }\n if (!matchesRuntimeFilters(item as Record<string, unknown>, runtimeFieldFilters)) {\n return false;\n }\n return true;\n}\n\nfunction applyFilters(\n items: ListedItem[],\n status: ItemStatus[] | undefined,\n options: ListOptions,\n typeRegistry: ItemTypeRegistry,\n statusRegistry: RuntimeStatusRegistry,\n runtimeFieldFilters: Record<string, unknown>,\n): ListedItem[] {\n const filters = resolveListFilterSet(status, options, typeRegistry, statusRegistry);\n return items.filter((item) => matchesListFilterSet(item, filters, statusRegistry, runtimeFieldFilters));\n}\n\nfunction trimNonEmpty(value: string | undefined): string | undefined {\n if (typeof value !== \"string\") {\n return undefined;\n }\n const trimmed = value.trim();\n return trimmed.length > 0 ? trimmed : undefined;\n}\n\nfunction withTreeMetadata(item: ListedItem, depth: number, childCount: number): ListedItem {\n const itemRecord = toItemRecord(item);\n const title = typeof itemRecord.title === \"string\" ? itemRecord.title : \"\";\n const parent = trimNonEmpty(typeof itemRecord.parent === \"string\" ? itemRecord.parent : undefined) ?? null;\n return {\n ...item,\n tree_depth: depth,\n tree_parent: parent,\n tree_children: childCount,\n tree_title: `${\" \".repeat(depth)}${title}`,\n } as ListedItem;\n}\n\nfunction orderItemsAsTree(\n sortedItems: ListedItem[],\n parentRoot: string | undefined,\n maxDepth: number | undefined,\n): ListedItem[] {\n const byId = new Map<string, ListedItem>();\n const childrenByParent = new Map<string, ListedItem[]>();\n for (const item of sortedItems) {\n byId.set(item.id, item);\n const parentId = trimNonEmpty(item.parent);\n if (!parentId) {\n continue;\n }\n const bucket = childrenByParent.get(parentId);\n if (bucket) {\n bucket.push(item);\n } else {\n childrenByParent.set(parentId, [item]);\n }\n }\n\n const roots = parentRoot\n ? [...(childrenByParent.get(parentRoot) ?? [])]\n : sortedItems.filter((item) => {\n const parentId = trimNonEmpty(item.parent);\n return !parentId || !byId.has(parentId);\n });\n const ordered: ListedItem[] = [];\n const visited = new Set<string>();\n const pushNode = (node: ListedItem, depth: number): void => {\n if (visited.has(node.id)) {\n return;\n }\n visited.add(node.id);\n const children = childrenByParent.get(node.id) ?? [];\n ordered.push(withTreeMetadata(node, depth, children.length));\n if (maxDepth !== undefined && depth >= maxDepth) {\n return;\n }\n for (const child of children) {\n pushNode(child, depth + 1);\n }\n };\n for (const root of roots) {\n pushNode(root, 0);\n }\n return ordered;\n}\n\nfunction compareNullableString(left: string | null, right: string | null): number {\n if (left === right) {\n return 0;\n }\n if (left === null) {\n return 1;\n }\n if (right === null) {\n return -1;\n }\n return left.localeCompare(right);\n}\n\nfunction compareNullableTimestamp(left: string | null, right: string | null): number {\n if (left === right) {\n return 0;\n }\n if (left === null) {\n return 1;\n }\n if (right === null) {\n return -1;\n }\n return compareTimestampStrings(left, right);\n}\n\nfunction compareBySortField(left: ListedItem, right: ListedItem, field: ListSortField): number {\n switch (field) {\n case \"priority\":\n return left.priority - right.priority;\n case \"deadline\":\n return compareNullableTimestamp(left.deadline ?? null, right.deadline ?? null);\n case \"updated_at\":\n return compareTimestampStrings(left.updated_at, right.updated_at);\n case \"created_at\":\n return compareTimestampStrings(left.created_at, right.created_at);\n case \"title\":\n return (left.title ?? \"\").localeCompare(right.title ?? \"\");\n case \"parent\":\n return compareNullableString(left.parent ?? null, right.parent ?? null);\n default:\n return 0;\n }\n}\n\nfunction sortItems(\n items: ListedItem[],\n sortField: ListSortField | undefined,\n sortOrder: ListSortOrder,\n statusRegistry: RuntimeStatusRegistry,\n): ListedItem[] {\n if (!sortField) {\n return sortItemsDefault(items, statusRegistry);\n }\n return [...items].sort((left, right) => {\n const byField = compareBySortField(left, right, sortField);\n if (byField !== 0) {\n return sortOrder === \"desc\" ? -byField : byField;\n }\n const fallback = compareDefaultSort(left, right, statusRegistry);\n return sortOrder === \"desc\" ? -fallback : fallback;\n });\n}\n\nfunction readListFieldValue(item: ListedItem, field: string, treeMode = false): unknown {\n const normalized = normalizeProjectionField(field.trim());\n if (normalized.length === 0) {\n return null;\n }\n const itemRecord = toItemRecord(item);\n if (treeMode && normalized === \"title\" && typeof itemRecord.tree_title === \"string\") {\n return itemRecord.tree_title;\n }\n if (Object.prototype.hasOwnProperty.call(itemRecord, normalized)) {\n return itemRecord[normalized] ?? null;\n }\n return null;\n}\n\nfunction projectListItems(items: ListedItem[], projection: ListProjectionConfig, treeMode = false): ListedItem[] {\n if (projection.mode === \"full\") {\n return items;\n }\n return items.map((item) => {\n const projected: Record<string, unknown> = {};\n for (const field of projection.fields) {\n projected[field] = readListFieldValue(item, field, treeMode);\n }\n return projected as unknown as ListedItem;\n });\n}\n\nfunction runtimeMetadataKeysForProjection(definitions: Array<{ metadata_key: string }>): string[] {\n const keys: string[] = [];\n for (const field of definitions) {\n keys.push(field.metadata_key);\n }\n return keys;\n}\n\ninterface ListRuntimeContext {\n pmRoot: string;\n settings: Awaited<ReturnType<typeof readSettings>>;\n statusRegistry: RuntimeStatusRegistry;\n runtimeFieldFilters: Record<string, unknown>;\n typeRegistry: ItemTypeRegistry;\n projection: ListProjectionConfig;\n}\n\ninterface ListOrderingOptions {\n sortField: ListSortField | undefined;\n sortOrder: ListSortOrder;\n treeEnabled: boolean;\n treeDepth: number | undefined;\n parentRoot: string | undefined;\n}\n\ninterface ResolvedListStatus {\n resolvedStatus: ItemStatus[] | undefined;\n explicitAllStatuses: boolean;\n effectiveOptions: ListOptions;\n filtersStatus: string | string[] | null;\n}\n\ninterface ListPageResult {\n projected: ListedItem[];\n totalMatched: number;\n truncationExtras: { total: number } | Record<string, never>;\n}\n\nasync function resolveListRuntimeContext(options: ListOptions, global: GlobalOptions): Promise<ListRuntimeContext> {\n const pmRoot = resolvePmRoot(process.cwd(), global.path);\n if (!(await pathExists(getSettingsPath(pmRoot)))) {\n throw new PmCliError(`Tracker is not initialized at ${pmRoot}. Run pm init first.`, EXIT_CODE.NOT_FOUND);\n }\n const settings = await readSettings(pmRoot);\n const statusRegistry = resolveRuntimeStatusRegistry(settings.schema);\n const runtimeFieldRegistry = resolveRuntimeFieldRegistry(settings.schema);\n const projection = parseProjectionConfig(options);\n validateListProjectionFields(projection, runtimeMetadataKeysForProjection(runtimeFieldRegistry.definitions));\n return {\n pmRoot,\n settings,\n statusRegistry,\n runtimeFieldFilters: collectRuntimeFilterValues(options as Record<string, unknown>, runtimeFieldRegistry, \"list\"),\n typeRegistry: resolveItemTypeRegistry(settings, getActiveExtensionRegistrations()),\n projection,\n };\n}\n\nasync function loadListItems(\n options: ListOptions,\n runtime: ListRuntimeContext,\n listWarnings: string[],\n): Promise<ListedItem[]> {\n const projectionNeedsBody = runtime.projection.fields.some((field) => normalizeProjectionField(field) === \"body\");\n const projectionNeedsCollections =\n runtime.projection.mode === \"full\" ||\n runtime.projection.fields.some((field) => HEAVY_PROJECTION_FIELDS.has(normalizeProjectionField(field)));\n const contentFieldFilters = resolveContentFieldFilters(options as Record<string, unknown>);\n const contentNeedsCollections = contentFiltersNeedCollections(contentFieldFilters);\n const contentNeedsBody = contentFiltersNeedBody(contentFieldFilters);\n if (options.includeBody || projectionNeedsBody || contentNeedsBody) {\n return await listAllFrontMatterWithBody(\n runtime.pmRoot,\n runtime.settings.item_format,\n runtime.typeRegistry.type_to_folder,\n listWarnings,\n runtime.settings.schema,\n );\n }\n if (projectionNeedsCollections || contentNeedsCollections) {\n return await listAllFrontMatter(\n runtime.pmRoot,\n runtime.settings.item_format,\n runtime.typeRegistry.type_to_folder,\n listWarnings,\n runtime.settings.schema,\n );\n }\n return await listAllFrontMatterLight(\n runtime.pmRoot,\n runtime.settings.item_format,\n runtime.typeRegistry.type_to_folder,\n listWarnings,\n runtime.settings.schema,\n );\n}\n\nfunction resolveListOrderingOptions(options: ListOptions): ListOrderingOptions {\n const sortField = parseSortField(options.sort);\n const sortOrder = parseSortOrder(options.order) ?? \"asc\";\n const treeEnabled = options.tree === true;\n if (!treeEnabled && options.treeDepth !== undefined) {\n throw new PmCliError(\"List --tree-depth requires --tree\", EXIT_CODE.USAGE);\n }\n if (!sortField && options.order !== undefined) {\n throw new PmCliError(\"List --order requires --sort\", EXIT_CODE.USAGE);\n }\n return {\n sortField,\n sortOrder,\n treeEnabled,\n treeDepth: treeEnabled ? parseTreeDepth(options.treeDepth) : undefined,\n parentRoot: treeEnabled ? trimNonEmpty(options.parent) : undefined,\n };\n}\n\nfunction resolveListStatusSelection(\n status: ItemStatus | undefined,\n options: ListOptions,\n statusRegistry: RuntimeStatusRegistry,\n): ResolvedListStatus {\n const explicitStatus = resolveStatusFilter(options.status as ItemStatus | undefined, statusRegistry);\n const resolvedStatus = explicitStatus ?? resolveStatusFilter(status, statusRegistry);\n const explicitAllStatuses = isStatusAllFilterInput(options.status);\n const effectiveOptions = explicitStatus || explicitAllStatuses ? { ...options, excludeTerminal: false } : options;\n const filtersStatus =\n explicitAllStatuses\n ? \"all\"\n : resolvedStatus === undefined\n ? null\n : resolvedStatus.length === 1\n ? resolvedStatus[0]\n : resolvedStatus;\n return { resolvedStatus, explicitAllStatuses, effectiveOptions, filtersStatus };\n}\n\nfunction pageAndProjectListItems(\n ordered: ListedItem[],\n options: ListOptions,\n projection: ListProjectionConfig,\n treeEnabled: boolean,\n): ListPageResult {\n const noTruncate = options.noTruncate === true;\n const limit = noTruncate ? undefined : parseIntegerLimit(options.limit);\n const offset = parseOffset(options.offset) ?? 0;\n const limited = limit === undefined ? ordered.slice(offset) : ordered.slice(offset, offset + limit);\n const projected = projectListItems(limited, projection, treeEnabled);\n const totalMatched = ordered.length;\n return {\n projected,\n totalMatched,\n truncationExtras: projected.length < totalMatched ? { total: totalMatched } : {},\n };\n}\n\nfunction buildVerboseListFilters(params: {\n filtersStatus: string | string[] | null;\n options: ListOptions;\n noTruncate: boolean;\n treeEnabled: boolean;\n treeDepth: number | undefined;\n sortField: ListSortField | undefined;\n sortOrder: ListSortOrder;\n runtimeFieldFilters: Record<string, unknown>;\n}): Record<string, unknown> {\n const { filtersStatus, options, noTruncate, treeEnabled, treeDepth, sortField, sortOrder, runtimeFieldFilters } = params;\n const filters: Record<string, unknown> = { status: filtersStatus };\n const optionRecord = options as Record<string, unknown>;\n for (const entry of VERBOSE_LIST_VALUE_FILTER_ECHO_ENTRIES) {\n filters[entry.summaryKey] = optionRecord[entry.optionKey] ?? null;\n }\n for (const entry of VERBOSE_LIST_BOOLEAN_FILTER_ECHO_ENTRIES) {\n if (optionRecord[entry.key] === true) {\n filters[entry.summaryKey] = true;\n }\n }\n Object.assign(filters, buildGovernanceMissingFilterEcho(options), buildContentFilterEcho(options));\n applyListWindowFilterEcho(filters, options);\n if (noTruncate) {\n filters.no_truncate = true;\n }\n if (treeEnabled) {\n filters.tree = true;\n filters.tree_depth = treeDepth ?? null;\n }\n filters.sort = sortField ?? null;\n filters.order = sortField ? sortOrder : null;\n filters.runtime_filters = runtimeFieldFilters;\n return filters;\n}\n\n/**\n * Implements run list for the public runtime surface of this module.\n */\nexport async function runList(status: ItemStatus | undefined, options: ListOptions, global: GlobalOptions): Promise<ListResult> {\n const runtime = await resolveListRuntimeContext(options, global);\n const listWarnings: string[] = [];\n const items = await loadListItems(options, runtime, listWarnings);\n const ordering = resolveListOrderingOptions(options);\n const statusSelection = resolveListStatusSelection(status, options, runtime.statusRegistry);\n const filtered = applyFilters(\n items,\n statusSelection.resolvedStatus,\n statusSelection.effectiveOptions,\n runtime.typeRegistry,\n runtime.statusRegistry,\n runtime.runtimeFieldFilters,\n );\n const sorted = sortItems(filtered, ordering.sortField, ordering.sortOrder, runtime.statusRegistry);\n const ordered = ordering.treeEnabled ? orderItemsAsTree(sorted, ordering.parentRoot, ordering.treeDepth) : sorted;\n const noTruncate = options.noTruncate === true;\n const page = pageAndProjectListItems(ordered, options, runtime.projection, ordering.treeEnabled);\n const now = nowIso();\n const warnings = [...new Set(listWarnings)].sort((left, right) => left.localeCompare(right));\n const projectionFields = runtime.projection.mode === \"full\" ? null : [...runtime.projection.fields];\n const compactSummaryMode = runtime.projection.mode === \"compact\" && options.compact === true;\n if (compactSummaryMode) {\n const compactFilters = buildCompactListFilterSummary({\n filtersStatus: statusSelection.filtersStatus,\n options,\n treeEnabled: ordering.treeEnabled,\n treeDepth: ordering.treeDepth,\n sortField: ordering.sortField,\n sortOrder: ordering.sortOrder,\n runtimeFieldFilters: runtime.runtimeFieldFilters,\n });\n return {\n items: page.projected,\n count: page.projected.length,\n ...page.truncationExtras,\n filters: compactFilters,\n ...(warnings.length > 0 ? { warnings } : {}),\n };\n }\n return {\n items: page.projected,\n count: page.projected.length,\n ...page.truncationExtras,\n filters: buildVerboseListFilters({\n filtersStatus: statusSelection.filtersStatus,\n options,\n noTruncate,\n treeEnabled: ordering.treeEnabled,\n treeDepth: ordering.treeDepth,\n sortField: ordering.sortField,\n sortOrder: ordering.sortOrder,\n runtimeFieldFilters: runtime.runtimeFieldFilters,\n }),\n projection: {\n mode: runtime.projection.mode,\n fields: projectionFields,\n },\n sorting: {\n sort: ordering.sortField ?? \"default\",\n order: ordering.sortField ? ordering.sortOrder : \"asc\",\n },\n now,\n ...(warnings.length > 0 ? { warnings } : {}),\n };\n}\n\nexport const _testOnly = {\n applyFilters,\n buildCompactListFilterSummary,\n buildContentFilterEcho,\n buildGovernanceMissingFilterEcho,\n resolveContentFieldFilters,\n resolveMissingMetadataFilters,\n compareBySortField,\n compareDefaultSort,\n compareNullableString,\n compareNullableTimestamp,\n normalizeProjectionField,\n parseAssigneeFilter,\n parseFieldSelectors,\n parseIdsFilter,\n parseOffset,\n parseProjectionConfig,\n resolveListUpdatedAfter,\n parseSortField,\n parseSortOrder,\n orderItemsAsTree,\n projectListItems,\n readListFieldValue,\n runtimeMetadataKeysForProjection,\n sortItems,\n trimNonEmpty,\n withTreeMetadata,\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,IAAM,yBAAyB;EAC7B;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF,IAAM,2BAA2B;EAC/B;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF,SAAS,wBAAwB,OAAc;AAC7C,SAAO,SAAS,SAAS,OAAO,UAAU,YAAY,MAAM,MAAM,GAAG,EAAE,KAAK,CAAC,UAAU,MAAM,KAAI,EAAG,SAAS,CAAC;AAChH;AAKM,SAAU,eACd,MACA,QACA,UAAgC,CAAA,GAAE;AAElC,QAAM,oBAAoB,QAAQ,sBAAsB;AACxD,QAAM,kBAAkB;IACtB;IACA,GAAG,uBAAuB,IAAI,CAAC,QAAQ,OAAO,GAAG,CAAC;IAClD,GAAI,oBAAoB,CAAC,MAAM,OAAO,MAAM,MAAM,IAAI,CAAA;;AAExD,SACE,gBAAgB,KAAK,uBAAuB,KAAK,yBAAyB,KAAK,CAAC,QAAQ,OAAO,GAAG,MAAM,IAAI;AAEhH;AAsBM,SAAU,sBAAsB,SAAyB;AAC7D,SAAO;IACL,MAAM,QAAQ;IACd,KAAK,QAAQ;IACb,UAAU,QAAQ;IAClB,gBAAgB,QAAQ;IACxB,eAAe,QAAQ;IACvB,UAAU,QAAQ;IAClB,gBAAgB,QAAQ;IACxB,QAAQ,QAAQ;IAChB,QAAQ,QAAQ;IAChB,SAAS,QAAQ;;AAErB;;;AC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