@unbrained/pm-cli 2026.7.4 → 2026.7.5

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 (601) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +1 -5
  3. package/dist/cli/commands/calendar.d.ts +3 -2
  4. package/dist/cli/commands/calendar.js +4 -4
  5. package/dist/cli/commands/calendar.js.map +1 -1
  6. package/dist/cli/commands/claim.js +17 -3
  7. package/dist/cli/commands/claim.js.map +1 -1
  8. package/dist/cli/commands/close.js +34 -16
  9. package/dist/cli/commands/close.js.map +1 -1
  10. package/dist/cli/commands/copy.js +3 -3
  11. package/dist/cli/commands/copy.js.map +1 -1
  12. package/dist/cli/commands/create.d.ts +7 -0
  13. package/dist/cli/commands/create.js +156 -110
  14. package/dist/cli/commands/create.js.map +1 -1
  15. package/dist/cli/commands/extension/bundled-catalog.d.ts +6 -0
  16. package/dist/cli/commands/extension/bundled-catalog.js +15 -2
  17. package/dist/cli/commands/extension/bundled-catalog.js.map +1 -1
  18. package/dist/cli/commands/extension/describe.d.ts +6 -3
  19. package/dist/cli/commands/extension/describe.js +21 -9
  20. package/dist/cli/commands/extension/describe.js.map +1 -1
  21. package/dist/cli/commands/extension/doctor.d.ts +0 -4
  22. package/dist/cli/commands/extension/doctor.js +3 -3
  23. package/dist/cli/commands/extension/doctor.js.map +1 -1
  24. package/dist/cli/commands/extension/scaffold.js +7 -2
  25. package/dist/cli/commands/extension/scaffold.js.map +1 -1
  26. package/dist/cli/commands/extension/shared.d.ts +2 -7
  27. package/dist/cli/commands/extension/shared.js +4 -10
  28. package/dist/cli/commands/extension/shared.js.map +1 -1
  29. package/dist/cli/commands/extension.js +33 -8
  30. package/dist/cli/commands/extension.js.map +1 -1
  31. package/dist/cli/commands/profile.js +3 -3
  32. package/dist/cli/commands/profile.js.map +1 -1
  33. package/dist/cli/commands/reindex.js +3 -3
  34. package/dist/cli/commands/reindex.js.map +1 -1
  35. package/dist/cli/commands/restore.js +3 -3
  36. package/dist/cli/commands/restore.js.map +1 -1
  37. package/dist/cli/commands/schema.js +10 -10
  38. package/dist/cli/commands/schema.js.map +1 -1
  39. package/dist/cli/commands/update.js +5 -3
  40. package/dist/cli/commands/update.js.map +1 -1
  41. package/dist/cli/error-guidance.js +107 -7
  42. package/dist/cli/error-guidance.js.map +1 -1
  43. package/dist/cli/main.d.ts +6 -2
  44. package/dist/cli/main.js +33 -12
  45. package/dist/cli/main.js.map +1 -1
  46. package/dist/cli-bundle/chunks/activity-4XQIDNM5.js +18 -0
  47. package/dist/cli-bundle/chunks/{activity-OENQCYZD.js → activity-YKAKZTZ4.js} +11 -9
  48. package/dist/cli-bundle/chunks/{aggregate-EC4LWS3U.js → aggregate-EQX2RGB7.js} +16 -13
  49. package/dist/cli-bundle/chunks/{aggregate-EC4LWS3U.js.map → aggregate-EQX2RGB7.js.map} +1 -1
  50. package/dist/cli-bundle/chunks/{aggregate-RCB3QJJE.js → aggregate-PEGZGJXD.js} +18 -15
  51. package/dist/cli-bundle/chunks/{aggregate-RCB3QJJE.js.map → aggregate-PEGZGJXD.js.map} +1 -1
  52. package/dist/cli-bundle/chunks/{append-XLEKVVWB.js → append-CZGUZ45Q.js} +11 -8
  53. package/dist/cli-bundle/chunks/{append-XLEKVVWB.js.map → append-CZGUZ45Q.js.map} +1 -1
  54. package/dist/cli-bundle/chunks/{append-ADBOI3A6.js → append-NSQBCXZJ.js} +13 -10
  55. package/dist/cli-bundle/chunks/{append-ADBOI3A6.js.map → append-NSQBCXZJ.js.map} +1 -1
  56. package/dist/cli-bundle/chunks/chunk-3JZNEQBA.js +1413 -0
  57. package/dist/cli-bundle/chunks/chunk-3JZNEQBA.js.map +1 -0
  58. package/dist/cli-bundle/chunks/{chunk-2LRMWMZ6.js → chunk-3PL6LEKP.js} +16 -14
  59. package/dist/cli-bundle/chunks/{chunk-2LRMWMZ6.js.map → chunk-3PL6LEKP.js.map} +1 -1
  60. package/dist/cli-bundle/chunks/{chunk-CN4OAA2G.js → chunk-3U3VEWK6.js} +277 -119
  61. package/dist/cli-bundle/chunks/chunk-3U3VEWK6.js.map +7 -0
  62. package/dist/cli-bundle/chunks/{chunk-EB4BBEZD.js → chunk-3Y4OESPP.js} +14 -12
  63. package/dist/cli-bundle/chunks/{chunk-EB4BBEZD.js.map → chunk-3Y4OESPP.js.map} +1 -1
  64. package/dist/cli-bundle/chunks/{chunk-NHDR3UCW.js → chunk-4LRVSBO6.js} +14 -12
  65. package/dist/cli-bundle/chunks/{chunk-NHDR3UCW.js.map → chunk-4LRVSBO6.js.map} +1 -1
  66. package/dist/cli-bundle/chunks/{chunk-6YB7HG2J.js → chunk-4OFLJHX6.js} +7 -5
  67. package/dist/cli-bundle/chunks/{chunk-6YB7HG2J.js.map → chunk-4OFLJHX6.js.map} +1 -1
  68. package/dist/cli-bundle/chunks/{chunk-SBNT6SLO.js → chunk-4QQ6PM7M.js} +45 -557
  69. package/dist/cli-bundle/chunks/chunk-4QQ6PM7M.js.map +7 -0
  70. package/dist/cli-bundle/chunks/{chunk-M34MVAOP.js → chunk-53BTLLAF.js} +16 -200
  71. package/dist/cli-bundle/chunks/chunk-53BTLLAF.js.map +1 -0
  72. package/dist/cli-bundle/chunks/{chunk-UYLA5ROU.js → chunk-57C2RLW5.js} +277 -112
  73. package/dist/cli-bundle/chunks/chunk-57C2RLW5.js.map +1 -0
  74. package/dist/cli-bundle/chunks/{chunk-R7EMP4JG.js → chunk-5B3X4Y22.js} +52 -63
  75. package/dist/cli-bundle/chunks/{chunk-R7EMP4JG.js.map → chunk-5B3X4Y22.js.map} +3 -3
  76. package/dist/cli-bundle/chunks/{chunk-XBIYI23P.js → chunk-5J2XPTAD.js} +10 -8
  77. package/dist/cli-bundle/chunks/{chunk-XBIYI23P.js.map → chunk-5J2XPTAD.js.map} +1 -1
  78. package/dist/cli-bundle/chunks/{chunk-4SHME4VR.js → chunk-5JE6SMYS.js} +2 -2
  79. package/dist/cli-bundle/chunks/{chunk-4KPQQ42D.js → chunk-5JZ7APJU.js} +18 -16
  80. package/dist/cli-bundle/chunks/{chunk-4KPQQ42D.js.map → chunk-5JZ7APJU.js.map} +1 -1
  81. package/dist/cli-bundle/chunks/{chunk-BDDYM4LH.js → chunk-5VVUKE3U.js} +424 -2228
  82. package/dist/cli-bundle/chunks/chunk-5VVUKE3U.js.map +7 -0
  83. package/dist/cli-bundle/chunks/{chunk-QFXFKYNQ.js → chunk-75U6M5ZD.js} +16 -14
  84. package/dist/cli-bundle/chunks/{chunk-QFXFKYNQ.js.map → chunk-75U6M5ZD.js.map} +1 -1
  85. package/dist/cli-bundle/chunks/chunk-7C2O74AE.js +23 -0
  86. package/dist/cli-bundle/chunks/chunk-7C2O74AE.js.map +7 -0
  87. package/dist/cli-bundle/chunks/{chunk-A222YWOQ.js → chunk-7EQNAZX2.js} +14 -12
  88. package/dist/cli-bundle/chunks/{chunk-A222YWOQ.js.map → chunk-7EQNAZX2.js.map} +1 -1
  89. package/dist/cli-bundle/chunks/{chunk-Z4DGFQDH.js → chunk-7LQKVMPA.js} +14 -4
  90. package/dist/cli-bundle/chunks/chunk-7LQKVMPA.js.map +1 -0
  91. package/dist/cli-bundle/chunks/{chunk-EH23N5FX.js → chunk-7MDXZAZS.js} +29 -7
  92. package/dist/cli-bundle/chunks/chunk-7MDXZAZS.js.map +1 -0
  93. package/dist/cli-bundle/chunks/{chunk-XQCWTSLO.js → chunk-7QH7DHUB.js} +74 -8
  94. package/dist/cli-bundle/chunks/chunk-7QH7DHUB.js.map +1 -0
  95. package/dist/cli-bundle/chunks/{chunk-3C5T3ZEO.js → chunk-7WYXBPYQ.js} +7 -5
  96. package/dist/cli-bundle/chunks/{chunk-3C5T3ZEO.js.map → chunk-7WYXBPYQ.js.map} +1 -1
  97. package/dist/cli-bundle/chunks/chunk-AAEQMOC6.js +150 -0
  98. package/dist/cli-bundle/chunks/chunk-AAEQMOC6.js.map +1 -0
  99. package/dist/cli-bundle/chunks/{chunk-CQISNF3Z.js → chunk-ABRA3BHY.js} +18 -16
  100. package/dist/cli-bundle/chunks/{chunk-CQISNF3Z.js.map → chunk-ABRA3BHY.js.map} +2 -2
  101. package/dist/cli-bundle/chunks/chunk-B5KXLBSJ.js +47 -0
  102. package/dist/cli-bundle/chunks/chunk-B5KXLBSJ.js.map +7 -0
  103. package/dist/cli-bundle/chunks/{chunk-Y2VSCQ77.js → chunk-BFVHCAOO.js} +9 -7
  104. package/dist/cli-bundle/chunks/{chunk-Y2VSCQ77.js.map → chunk-BFVHCAOO.js.map} +1 -1
  105. package/dist/cli-bundle/chunks/{chunk-7ITQSEBL.js → chunk-BVEUCSH2.js} +6 -4
  106. package/dist/cli-bundle/chunks/{chunk-7ITQSEBL.js.map → chunk-BVEUCSH2.js.map} +1 -1
  107. package/dist/cli-bundle/chunks/chunk-C3PMDWGX.js +160 -0
  108. package/dist/cli-bundle/chunks/chunk-C3PMDWGX.js.map +7 -0
  109. package/dist/cli-bundle/chunks/{chunk-HL742IBM.js → chunk-D3UCE7RW.js} +7 -5
  110. package/dist/cli-bundle/chunks/{chunk-HL742IBM.js.map → chunk-D3UCE7RW.js.map} +1 -1
  111. package/dist/cli-bundle/chunks/chunk-DC3QJQWI.js +275 -0
  112. package/dist/cli-bundle/chunks/chunk-DC3QJQWI.js.map +7 -0
  113. package/dist/cli-bundle/chunks/chunk-DLQ4ZTCU.js +634 -0
  114. package/dist/cli-bundle/chunks/chunk-DLQ4ZTCU.js.map +7 -0
  115. package/dist/cli-bundle/chunks/{chunk-MZG6I2Q2.js → chunk-DRBV5UC2.js} +8 -23
  116. package/dist/cli-bundle/chunks/chunk-DRBV5UC2.js.map +7 -0
  117. package/dist/cli-bundle/chunks/{chunk-DEIDJQZK.js → chunk-E2FUG6GD.js} +15 -220
  118. package/dist/cli-bundle/chunks/{chunk-DEIDJQZK.js.map → chunk-E2FUG6GD.js.map} +3 -3
  119. package/dist/cli-bundle/chunks/{chunk-3MLQZI3H.js → chunk-EEY54JMF.js} +5 -3
  120. package/dist/cli-bundle/chunks/{chunk-3MLQZI3H.js.map → chunk-EEY54JMF.js.map} +1 -1
  121. package/dist/cli-bundle/chunks/{chunk-CQFZRLXQ.js → chunk-EZFKWSC7.js} +94 -16
  122. package/dist/cli-bundle/chunks/{chunk-CQFZRLXQ.js.map → chunk-EZFKWSC7.js.map} +4 -4
  123. package/dist/cli-bundle/chunks/{chunk-4PJYRA3V.js → chunk-FDBARR33.js} +17 -15
  124. package/dist/cli-bundle/chunks/{chunk-4PJYRA3V.js.map → chunk-FDBARR33.js.map} +2 -2
  125. package/dist/cli-bundle/chunks/{chunk-NGDK3KEZ.js → chunk-FGQKEDE4.js} +36 -12
  126. package/dist/cli-bundle/chunks/chunk-FGQKEDE4.js.map +7 -0
  127. package/dist/cli-bundle/chunks/{chunk-FMWQRMHS.js → chunk-FJRKQREY.js} +10 -18
  128. package/dist/cli-bundle/chunks/chunk-FJRKQREY.js.map +1 -0
  129. package/dist/cli-bundle/chunks/{chunk-6QY2NA2M.js → chunk-FUM6UMY4.js} +10 -11
  130. package/dist/cli-bundle/chunks/{chunk-6QY2NA2M.js.map → chunk-FUM6UMY4.js.map} +1 -1
  131. package/dist/cli-bundle/chunks/{chunk-UGDONITK.js → chunk-GIWXVMZ3.js} +140 -334
  132. package/dist/cli-bundle/chunks/chunk-GIWXVMZ3.js.map +7 -0
  133. package/dist/cli-bundle/chunks/{chunk-OTSP6UEX.js → chunk-HBYZDSK5.js} +19 -17
  134. package/dist/cli-bundle/chunks/{chunk-OTSP6UEX.js.map → chunk-HBYZDSK5.js.map} +1 -1
  135. package/dist/cli-bundle/chunks/{chunk-D2LDM35X.js → chunk-HJE4JTKQ.js} +6 -4
  136. package/dist/cli-bundle/chunks/{chunk-D2LDM35X.js.map → chunk-HJE4JTKQ.js.map} +1 -1
  137. package/dist/cli-bundle/chunks/{chunk-AOP2EMK3.js → chunk-HK72NWAD.js} +89 -18
  138. package/dist/cli-bundle/chunks/chunk-HK72NWAD.js.map +1 -0
  139. package/dist/cli-bundle/chunks/{chunk-2ONH3WG6.js → chunk-IJ6CO3JV.js} +18 -16
  140. package/dist/cli-bundle/chunks/{chunk-2ONH3WG6.js.map → chunk-IJ6CO3JV.js.map} +1 -1
  141. package/dist/cli-bundle/chunks/{chunk-J4KNRDI3.js → chunk-JFCVQXZX.js} +139 -326
  142. package/dist/cli-bundle/chunks/chunk-JFCVQXZX.js.map +1 -0
  143. package/dist/cli-bundle/chunks/{chunk-V655JQ5J.js → chunk-JLA7EVYV.js} +12 -10
  144. package/dist/cli-bundle/chunks/{chunk-V655JQ5J.js.map → chunk-JLA7EVYV.js.map} +1 -1
  145. package/dist/cli-bundle/chunks/chunk-K32L7HZO.js +76 -0
  146. package/dist/cli-bundle/chunks/chunk-K32L7HZO.js.map +1 -0
  147. package/dist/cli-bundle/chunks/{chunk-WBWRQS32.js → chunk-K3AGVXSF.js} +37 -13
  148. package/dist/cli-bundle/chunks/chunk-K3AGVXSF.js.map +1 -0
  149. package/dist/cli-bundle/chunks/chunk-KDZ6K25I.js +79 -0
  150. package/dist/cli-bundle/chunks/chunk-KDZ6K25I.js.map +7 -0
  151. package/dist/cli-bundle/chunks/chunk-KGHH652T.js +44 -0
  152. package/dist/cli-bundle/chunks/chunk-KGHH652T.js.map +1 -0
  153. package/dist/cli-bundle/chunks/chunk-KL22PY6L.js +915 -0
  154. package/dist/cli-bundle/chunks/chunk-KL22PY6L.js.map +1 -0
  155. package/dist/cli-bundle/chunks/{chunk-JZJJEJBR.js → chunk-KLG4ZULO.js} +12 -10
  156. package/dist/cli-bundle/chunks/{chunk-JZJJEJBR.js.map → chunk-KLG4ZULO.js.map} +1 -1
  157. package/dist/cli-bundle/chunks/{chunk-KKHIQOTN.js → chunk-LEKT4K7I.js} +74 -8
  158. package/dist/cli-bundle/chunks/chunk-LEKT4K7I.js.map +7 -0
  159. package/dist/cli-bundle/chunks/{contracts-CVBINC7C.js → chunk-MNZ7DRNC.js} +13 -10
  160. package/dist/cli-bundle/chunks/{contracts-CVBINC7C.js.map → chunk-MNZ7DRNC.js.map} +1 -1
  161. package/dist/cli-bundle/chunks/{chunk-2VK677OA.js → chunk-MTTXDAK4.js} +176 -125
  162. package/dist/cli-bundle/chunks/chunk-MTTXDAK4.js.map +7 -0
  163. package/dist/cli-bundle/chunks/{chunk-Q2266G4S.js → chunk-MZ7VNEVY.js} +8 -6
  164. package/dist/cli-bundle/chunks/{chunk-Q2266G4S.js.map → chunk-MZ7VNEVY.js.map} +1 -1
  165. package/dist/cli-bundle/chunks/{chunk-4EVY7CQN.js → chunk-N6DNM2FA.js} +2 -2
  166. package/dist/cli-bundle/chunks/{test-runs-5SLLV3XU.js → chunk-N7X4WP6L.js} +11 -8
  167. package/dist/cli-bundle/chunks/{test-runs-5SLLV3XU.js.map → chunk-N7X4WP6L.js.map} +1 -1
  168. package/dist/cli-bundle/chunks/{chunk-AZMPKLIA.js → chunk-NBFCNJ7Q.js} +177 -126
  169. package/dist/cli-bundle/chunks/chunk-NBFCNJ7Q.js.map +1 -0
  170. package/dist/cli-bundle/chunks/{chunk-YZR7UMZ6.js → chunk-NER3KUUS.js} +2 -2
  171. package/dist/cli-bundle/chunks/chunk-NNHHXJB2.js +20 -0
  172. package/dist/cli-bundle/chunks/chunk-NNHHXJB2.js.map +1 -0
  173. package/dist/cli-bundle/chunks/chunk-OBA2WH65.js +918 -0
  174. package/dist/cli-bundle/chunks/chunk-OBA2WH65.js.map +7 -0
  175. package/dist/cli-bundle/chunks/{chunk-DJ5S2LDY.js → chunk-OESSOFJ4.js} +14 -12
  176. package/dist/cli-bundle/chunks/{chunk-DJ5S2LDY.js.map → chunk-OESSOFJ4.js.map} +1 -1
  177. package/dist/cli-bundle/chunks/chunk-OK5NXCZB.js +238 -0
  178. package/dist/cli-bundle/chunks/chunk-OK5NXCZB.js.map +1 -0
  179. package/dist/cli-bundle/chunks/{chunk-TUV7SIWZ.js → chunk-OWTIRHX4.js} +28 -6
  180. package/dist/cli-bundle/chunks/chunk-OWTIRHX4.js.map +7 -0
  181. package/dist/cli-bundle/chunks/{chunk-PV5JS7MP.js → chunk-P3VRG72Q.js} +10 -8
  182. package/dist/cli-bundle/chunks/{chunk-PV5JS7MP.js.map → chunk-P3VRG72Q.js.map} +1 -1
  183. package/dist/cli-bundle/chunks/chunk-P5TFTLWW.js +1423 -0
  184. package/dist/cli-bundle/chunks/chunk-P5TFTLWW.js.map +7 -0
  185. package/dist/cli-bundle/chunks/chunk-P5YORJRH.js +1977 -0
  186. package/dist/cli-bundle/chunks/chunk-P5YORJRH.js.map +7 -0
  187. package/dist/cli-bundle/chunks/{chunk-WTXDLBSZ.js → chunk-PDXT6Q55.js} +2 -2
  188. package/dist/cli-bundle/chunks/{chunk-YZWXMDNH.js → chunk-PJ3A56YF.js} +46 -537
  189. package/dist/cli-bundle/chunks/chunk-PJ3A56YF.js.map +1 -0
  190. package/dist/cli-bundle/chunks/{test-runs-L3WKLO67.js → chunk-PPAJG4GB.js} +13 -10
  191. package/dist/cli-bundle/chunks/{test-runs-L3WKLO67.js.map → chunk-PPAJG4GB.js.map} +1 -1
  192. package/dist/cli-bundle/chunks/{chunk-LLQLLAKU.js → chunk-PPE4YUQM.js} +1670 -1573
  193. package/dist/cli-bundle/chunks/chunk-PPE4YUQM.js.map +1 -0
  194. package/dist/cli-bundle/chunks/{chunk-TO4KCIOT.js → chunk-QHZO65XW.js} +8 -6
  195. package/dist/cli-bundle/chunks/{chunk-TO4KCIOT.js.map → chunk-QHZO65XW.js.map} +1 -1
  196. package/dist/cli-bundle/chunks/{chunk-4OXNQHKQ.js → chunk-R3ZBLGTC.js} +9 -10
  197. package/dist/cli-bundle/chunks/{chunk-4OXNQHKQ.js.map → chunk-R3ZBLGTC.js.map} +2 -2
  198. package/dist/cli-bundle/chunks/chunk-RCT3YJOK.js +624 -0
  199. package/dist/cli-bundle/chunks/chunk-RCT3YJOK.js.map +1 -0
  200. package/dist/cli-bundle/chunks/{chunk-724VLYDJ.js → chunk-RX3HQSYG.js} +2 -2
  201. package/dist/cli-bundle/chunks/{chunk-PUVPC5DL.js → chunk-S4APD35C.js} +4 -4
  202. package/dist/cli-bundle/chunks/{chunk-T5RTYLZJ.js → chunk-S5AYOUT5.js} +8 -6
  203. package/dist/cli-bundle/chunks/{chunk-T5RTYLZJ.js.map → chunk-S5AYOUT5.js.map} +1 -1
  204. package/dist/cli-bundle/chunks/{chunk-75VMARGO.js → chunk-STPSZ2XY.js} +19 -744
  205. package/dist/cli-bundle/chunks/chunk-STPSZ2XY.js.map +1 -0
  206. package/dist/cli-bundle/chunks/{chunk-A2W3XKAD.js → chunk-T35XLYZF.js} +2 -2
  207. package/dist/cli-bundle/chunks/{chunk-N2LOJUBB.js → chunk-T3ABIMGW.js} +5 -3
  208. package/dist/cli-bundle/chunks/{chunk-N2LOJUBB.js.map → chunk-T3ABIMGW.js.map} +1 -1
  209. package/dist/cli-bundle/chunks/{chunk-FDNJMYZB.js → chunk-T3F4DF23.js} +16 -14
  210. package/dist/cli-bundle/chunks/{chunk-FDNJMYZB.js.map → chunk-T3F4DF23.js.map} +1 -1
  211. package/dist/cli-bundle/chunks/chunk-T4MX77AK.js +272 -0
  212. package/dist/cli-bundle/chunks/chunk-T4MX77AK.js.map +1 -0
  213. package/dist/cli-bundle/chunks/chunk-T5Y3QSNF.js +5354 -0
  214. package/dist/cli-bundle/chunks/chunk-T5Y3QSNF.js.map +1 -0
  215. package/dist/cli-bundle/chunks/{chunk-XFO2NJY6.js → chunk-TSPKZRRW.js} +33 -28
  216. package/dist/cli-bundle/chunks/chunk-TSPKZRRW.js.map +1 -0
  217. package/dist/cli-bundle/chunks/{chunk-ZZWMJVW2.js → chunk-TT42JUMF.js} +4 -4
  218. package/dist/cli-bundle/chunks/chunk-UHKX7I75.js +165 -0
  219. package/dist/cli-bundle/chunks/chunk-UHKX7I75.js.map +1 -0
  220. package/dist/cli-bundle/chunks/{chunk-7745CXNI.js → chunk-UI5BJ6DO.js} +1231 -1134
  221. package/dist/cli-bundle/chunks/chunk-UI5BJ6DO.js.map +7 -0
  222. package/dist/cli-bundle/chunks/chunk-US3T3W5J.js +1932 -0
  223. package/dist/cli-bundle/chunks/chunk-US3T3W5J.js.map +1 -0
  224. package/dist/cli-bundle/chunks/chunk-UZRDBL6W.js +175 -0
  225. package/dist/cli-bundle/chunks/chunk-UZRDBL6W.js.map +7 -0
  226. package/dist/cli-bundle/chunks/{chunk-B4O5S7I3.js → chunk-VUHVWI4C.js} +13 -3
  227. package/dist/cli-bundle/chunks/chunk-VUHVWI4C.js.map +7 -0
  228. package/dist/cli-bundle/chunks/{contracts-NLCDIZAT.js → chunk-VZIYHZDX.js} +11 -8
  229. package/dist/cli-bundle/chunks/{contracts-NLCDIZAT.js.map → chunk-VZIYHZDX.js.map} +1 -1
  230. package/dist/cli-bundle/chunks/{chunk-TGYDJEJH.js → chunk-WISPVC2E.js} +9 -7
  231. package/dist/cli-bundle/chunks/{chunk-TGYDJEJH.js.map → chunk-WISPVC2E.js.map} +1 -1
  232. package/dist/cli-bundle/chunks/chunk-WVSGSZ6J.js +5434 -0
  233. package/dist/cli-bundle/chunks/chunk-WVSGSZ6J.js.map +7 -0
  234. package/dist/cli-bundle/chunks/{chunk-MTB4PRA3.js → chunk-XQCG2JGW.js} +17 -749
  235. package/dist/cli-bundle/chunks/chunk-XQCG2JGW.js.map +7 -0
  236. package/dist/cli-bundle/chunks/chunk-Y76TWC45.js +550 -0
  237. package/dist/cli-bundle/chunks/chunk-Y76TWC45.js.map +7 -0
  238. package/dist/cli-bundle/chunks/{chunk-SL2ANJSV.js → chunk-YD5FML7K.js} +418 -2173
  239. package/dist/cli-bundle/chunks/chunk-YD5FML7K.js.map +1 -0
  240. package/dist/cli-bundle/chunks/{chunk-NHKXOMZ5.js → chunk-YFIE7YK6.js} +7 -5
  241. package/dist/cli-bundle/chunks/{chunk-NHKXOMZ5.js.map → chunk-YFIE7YK6.js.map} +1 -1
  242. package/dist/cli-bundle/chunks/{chunk-5FYY76HR.js → chunk-YMABYTNG.js} +32 -27
  243. package/dist/cli-bundle/chunks/chunk-YMABYTNG.js.map +7 -0
  244. package/dist/cli-bundle/chunks/{chunk-W5X3AHJN.js → chunk-YOF5VPKM.js} +2 -2
  245. package/dist/cli-bundle/chunks/{chunk-M6PR5BC6.js → chunk-YPPVU5GX.js} +11 -9
  246. package/dist/cli-bundle/chunks/{chunk-M6PR5BC6.js.map → chunk-YPPVU5GX.js.map} +1 -1
  247. package/dist/cli-bundle/chunks/{chunk-ZIEGTQCY.js → chunk-YQMMMONE.js} +6 -4
  248. package/dist/cli-bundle/chunks/{chunk-ZIEGTQCY.js.map → chunk-YQMMMONE.js.map} +1 -1
  249. package/dist/cli-bundle/chunks/{chunk-4IW7STMB.js → chunk-YSAH5FY5.js} +16 -14
  250. package/dist/cli-bundle/chunks/{chunk-4IW7STMB.js.map → chunk-YSAH5FY5.js.map} +1 -1
  251. package/dist/cli-bundle/chunks/{chunk-JYLFF7GJ.js → chunk-YZIR4R3U.js} +16 -14
  252. package/dist/cli-bundle/chunks/{chunk-JYLFF7GJ.js.map → chunk-YZIR4R3U.js.map} +1 -1
  253. package/dist/cli-bundle/chunks/{chunk-7G5SUU6F.js → chunk-Z2CRRZYF.js} +14 -12
  254. package/dist/cli-bundle/chunks/{chunk-7G5SUU6F.js.map → chunk-Z2CRRZYF.js.map} +1 -1
  255. package/dist/cli-bundle/chunks/chunk-ZAHXPXVY.js +533 -0
  256. package/dist/cli-bundle/chunks/chunk-ZAHXPXVY.js.map +1 -0
  257. package/dist/cli-bundle/chunks/{chunk-WOOB7PV7.js → chunk-ZCJAA3JK.js} +8 -6
  258. package/dist/cli-bundle/chunks/{chunk-WOOB7PV7.js.map → chunk-ZCJAA3JK.js.map} +1 -1
  259. package/dist/cli-bundle/chunks/{chunk-WSDIALO4.js → chunk-ZD34OFFQ.js} +5 -3
  260. package/dist/cli-bundle/chunks/{chunk-WSDIALO4.js.map → chunk-ZD34OFFQ.js.map} +1 -1
  261. package/dist/cli-bundle/chunks/{chunk-Q3XVLRCJ.js → chunk-ZJB3UV5U.js} +54 -58
  262. package/dist/cli-bundle/chunks/chunk-ZJB3UV5U.js.map +1 -0
  263. package/dist/cli-bundle/chunks/{chunk-MZ4NH46V.js → chunk-ZMD35NYG.js} +2 -2
  264. package/dist/cli-bundle/chunks/chunk-ZVDL32GJ.js +241 -0
  265. package/dist/cli-bundle/chunks/chunk-ZVDL32GJ.js.map +7 -0
  266. package/dist/cli-bundle/chunks/{claim-D6L33A5Y.js → claim-4DROPSIS.js} +30 -13
  267. package/dist/cli-bundle/chunks/claim-4DROPSIS.js.map +1 -0
  268. package/dist/cli-bundle/chunks/{claim-YAFUTPVK.js → claim-VX54TV5U.js} +29 -12
  269. package/dist/cli-bundle/chunks/claim-VX54TV5U.js.map +7 -0
  270. package/dist/cli-bundle/chunks/{close-TGYXG7TV.js → close-3YRR3XY6.js} +9 -7
  271. package/dist/cli-bundle/chunks/close-OB2Y4QP5.js +16 -0
  272. package/dist/cli-bundle/chunks/{close-many-SNA6LNZH.js → close-many-AP4MWU36.js} +21 -18
  273. package/dist/cli-bundle/chunks/{close-many-SNA6LNZH.js.map → close-many-AP4MWU36.js.map} +1 -1
  274. package/dist/cli-bundle/chunks/{close-many-4QSWKCRU.js → close-many-OMZIGZB4.js} +19 -16
  275. package/dist/cli-bundle/chunks/{close-many-4QSWKCRU.js.map → close-many-OMZIGZB4.js.map} +1 -1
  276. package/dist/cli-bundle/chunks/{comments-QC6ARR5X.js → comments-MIW5MZOX.js} +12 -9
  277. package/dist/cli-bundle/chunks/{comments-QC6ARR5X.js.map → comments-MIW5MZOX.js.map} +1 -1
  278. package/dist/cli-bundle/chunks/{comments-ZHVYGUVC.js → comments-SAG5LSKL.js} +14 -11
  279. package/dist/cli-bundle/chunks/{comments-ZHVYGUVC.js.map → comments-SAG5LSKL.js.map} +1 -1
  280. package/dist/cli-bundle/chunks/{config-O6W2EU2G.js → config-DJJKZB5R.js} +20 -17
  281. package/dist/cli-bundle/chunks/{config-O6W2EU2G.js.map → config-DJJKZB5R.js.map} +1 -1
  282. package/dist/cli-bundle/chunks/{config-XQRFJXJP.js → config-V57QD47V.js} +22 -19
  283. package/dist/cli-bundle/chunks/{config-XQRFJXJP.js.map → config-V57QD47V.js.map} +1 -1
  284. package/dist/cli-bundle/chunks/{context-IHE3IXN5.js → context-4OQGIPSO.js} +15 -12
  285. package/dist/cli-bundle/chunks/{context-WSYWBEUL.js → context-WLA6IAWE.js} +15 -12
  286. package/dist/cli-bundle/chunks/contracts-HXJLKCRI.js +12 -0
  287. package/dist/cli-bundle/chunks/contracts-OJEXMKVW.js +16 -0
  288. package/dist/cli-bundle/chunks/{copy-7MUQC44A.js → copy-LEE6P6EM.js} +17 -14
  289. package/dist/cli-bundle/chunks/{copy-7MUQC44A.js.map → copy-LEE6P6EM.js.map} +2 -2
  290. package/dist/cli-bundle/chunks/{copy-ANWXDJVC.js → copy-OTJOWFL6.js} +18 -15
  291. package/dist/cli-bundle/chunks/{copy-ANWXDJVC.js.map → copy-OTJOWFL6.js.map} +1 -1
  292. package/dist/cli-bundle/chunks/create-WKOZKPQR.js +30 -0
  293. package/dist/cli-bundle/chunks/{create-JIA2IFCO.js → create-XWWQFQ6S.js} +14 -12
  294. package/dist/cli-bundle/chunks/{delete-5OLYWQIC.js → delete-62JQTYT4.js} +10 -7
  295. package/dist/cli-bundle/chunks/{delete-5OLYWQIC.js.map → delete-62JQTYT4.js.map} +1 -1
  296. package/dist/cli-bundle/chunks/{delete-INHKCIRN.js → delete-HQKGRNRZ.js} +12 -9
  297. package/dist/cli-bundle/chunks/{delete-INHKCIRN.js.map → delete-HQKGRNRZ.js.map} +1 -1
  298. package/dist/cli-bundle/chunks/{deps-IYEID3QX.js → deps-55FTG6Z5.js} +12 -9
  299. package/dist/cli-bundle/chunks/{deps-IYEID3QX.js.map → deps-55FTG6Z5.js.map} +1 -1
  300. package/dist/cli-bundle/chunks/{deps-CCSWGZW7.js → deps-L2FPIAD3.js} +10 -7
  301. package/dist/cli-bundle/chunks/{deps-CCSWGZW7.js.map → deps-L2FPIAD3.js.map} +1 -1
  302. package/dist/cli-bundle/chunks/{docs-PKO7OEIM.js → docs-6CRCSVKK.js} +11 -9
  303. package/dist/cli-bundle/chunks/{docs-PKO7OEIM.js.map → docs-6CRCSVKK.js.map} +1 -1
  304. package/dist/cli-bundle/chunks/{docs-3XZK22WF.js → docs-S6UTOTO5.js} +9 -7
  305. package/dist/cli-bundle/chunks/{docs-3XZK22WF.js.map → docs-S6UTOTO5.js.map} +1 -1
  306. package/dist/cli-bundle/chunks/{eval-5XYP6NMY.js → eval-N6UHFWVO.js} +15 -11
  307. package/dist/cli-bundle/chunks/{eval-5XYP6NMY.js.map → eval-N6UHFWVO.js.map} +1 -1
  308. package/dist/cli-bundle/chunks/{eval-O4WGQYDI.js → eval-PHOTWYHI.js} +17 -13
  309. package/dist/cli-bundle/chunks/{eval-O4WGQYDI.js.map → eval-PHOTWYHI.js.map} +1 -1
  310. package/dist/cli-bundle/chunks/{extension-T7JNTAAA.js → extension-NBAH62ML.js} +17 -11
  311. package/dist/cli-bundle/chunks/{extension-PVGRRZZG.js → extension-ZF6ZZPOU.js} +17 -11
  312. package/dist/cli-bundle/chunks/{files-W7HH5EOD.js → files-6P57MRKL.js} +12 -9
  313. package/dist/cli-bundle/chunks/{files-W7HH5EOD.js.map → files-6P57MRKL.js.map} +1 -1
  314. package/dist/cli-bundle/chunks/{files-7IU56S6R.js → files-JPU3FNJ7.js} +14 -11
  315. package/dist/cli-bundle/chunks/{files-7IU56S6R.js.map → files-JPU3FNJ7.js.map} +1 -1
  316. package/dist/cli-bundle/chunks/{focus-6FA5KYRY.js → focus-LFZ6IDBR.js} +15 -11
  317. package/dist/cli-bundle/chunks/{focus-6FA5KYRY.js.map → focus-LFZ6IDBR.js.map} +1 -1
  318. package/dist/cli-bundle/chunks/{focus-CQ63JFDG.js → focus-WNMYCVYA.js} +13 -9
  319. package/dist/cli-bundle/chunks/{focus-CQ63JFDG.js.map → focus-WNMYCVYA.js.map} +1 -1
  320. package/dist/cli-bundle/chunks/{gc-3BG67KTO.js → gc-AETFKZ44.js} +10 -7
  321. package/dist/cli-bundle/chunks/{gc-3BG67KTO.js.map → gc-AETFKZ44.js.map} +1 -1
  322. package/dist/cli-bundle/chunks/{gc-PEZYGNVB.js → gc-RLBP4QVN.js} +12 -9
  323. package/dist/cli-bundle/chunks/{gc-PEZYGNVB.js.map → gc-RLBP4QVN.js.map} +1 -1
  324. package/dist/cli-bundle/chunks/{get-J6CSJ4SX.js → get-NH2MPBCI.js} +18 -15
  325. package/dist/cli-bundle/chunks/{get-J6CSJ4SX.js.map → get-NH2MPBCI.js.map} +1 -1
  326. package/dist/cli-bundle/chunks/{get-KJTKGNEQ.js → get-P4ZQXCPZ.js} +16 -13
  327. package/dist/cli-bundle/chunks/{get-KJTKGNEQ.js.map → get-P4ZQXCPZ.js.map} +1 -1
  328. package/dist/cli-bundle/chunks/{health-32UQICEL.js → health-3GVPMQBL.js} +36 -29
  329. package/dist/cli-bundle/chunks/{health-32UQICEL.js.map → health-3GVPMQBL.js.map} +1 -1
  330. package/dist/cli-bundle/chunks/{health-ZUZG5ULV.js → health-DNTM72GJ.js} +34 -27
  331. package/dist/cli-bundle/chunks/{health-ZUZG5ULV.js.map → health-DNTM72GJ.js.map} +1 -1
  332. package/dist/cli-bundle/chunks/history-RYKLC72X.js +20 -0
  333. package/dist/cli-bundle/chunks/{history-W6QVR6FA.js → history-SGPYRAFT.js} +10 -8
  334. package/dist/cli-bundle/chunks/{history-compact-JQ6ZGYSJ.js → history-compact-3F6VELO7.js} +18 -15
  335. package/dist/cli-bundle/chunks/{history-compact-JQ6ZGYSJ.js.map → history-compact-3F6VELO7.js.map} +1 -1
  336. package/dist/cli-bundle/chunks/{history-compact-F355EGL4.js → history-compact-656Y2TN4.js} +20 -17
  337. package/dist/cli-bundle/chunks/{history-compact-F355EGL4.js.map → history-compact-656Y2TN4.js.map} +1 -1
  338. package/dist/cli-bundle/chunks/history-redact-4H3FCKF3.js +21 -0
  339. package/dist/cli-bundle/chunks/{history-redact-TUWOUYX5.js → history-redact-54ICFKXM.js} +11 -9
  340. package/dist/cli-bundle/chunks/{history-repair-ZKS3LKPV.js → history-repair-4N6SDVHK.js} +17 -14
  341. package/dist/cli-bundle/chunks/{history-repair-ZKS3LKPV.js.map → history-repair-4N6SDVHK.js.map} +1 -1
  342. package/dist/cli-bundle/chunks/{history-repair-MPCAIKYE.js → history-repair-EVTO6LIH.js} +19 -16
  343. package/dist/cli-bundle/chunks/{history-repair-MPCAIKYE.js.map → history-repair-EVTO6LIH.js.map} +1 -1
  344. package/dist/cli-bundle/chunks/init-RPIPQUNV.js +32 -0
  345. package/dist/cli-bundle/chunks/init-SKQAESQS.js +28 -0
  346. package/dist/cli-bundle/chunks/{learnings-EYC3OKS2.js → learnings-2HTPZNGZ.js} +10 -8
  347. package/dist/cli-bundle/chunks/{learnings-EYC3OKS2.js.map → learnings-2HTPZNGZ.js.map} +1 -1
  348. package/dist/cli-bundle/chunks/{learnings-HKJJUVTA.js → learnings-YBIHY3D6.js} +12 -10
  349. package/dist/cli-bundle/chunks/{learnings-HKJJUVTA.js.map → learnings-YBIHY3D6.js.map} +1 -1
  350. package/dist/cli-bundle/chunks/{list-KN3TL5Y5.js → list-64LHZ3HM.js} +10 -8
  351. package/dist/cli-bundle/chunks/{list-HFD5737R.js → list-7LXBTEKI.js} +10 -8
  352. package/dist/cli-bundle/chunks/{next-DQUMFAHG.js → next-7ODPAQ4U.js} +22 -18
  353. package/dist/cli-bundle/chunks/{next-DQUMFAHG.js.map → next-7ODPAQ4U.js.map} +1 -1
  354. package/dist/cli-bundle/chunks/{next-JUEYC5HE.js → next-ODJUM4ZM.js} +24 -20
  355. package/dist/cli-bundle/chunks/{next-JUEYC5HE.js.map → next-ODJUM4ZM.js.map} +1 -1
  356. package/dist/cli-bundle/chunks/{notes-ZG6RLZXB.js → notes-72YXN5JX.js} +10 -8
  357. package/dist/cli-bundle/chunks/{notes-ZG6RLZXB.js.map → notes-72YXN5JX.js.map} +1 -1
  358. package/dist/cli-bundle/chunks/{notes-XATYT43P.js → notes-NJ7IQJX4.js} +12 -10
  359. package/dist/cli-bundle/chunks/{notes-XATYT43P.js.map → notes-NJ7IQJX4.js.map} +1 -1
  360. package/dist/cli-bundle/chunks/{plan-DVVLX7LK.js → plan-R4NDQ27E.js} +18 -15
  361. package/dist/cli-bundle/chunks/{plan-DVVLX7LK.js.map → plan-R4NDQ27E.js.map} +1 -1
  362. package/dist/cli-bundle/chunks/{plan-5NWQL2DH.js → plan-XWY5T67S.js} +20 -17
  363. package/dist/cli-bundle/chunks/{plan-5NWQL2DH.js.map → plan-XWY5T67S.js.map} +1 -1
  364. package/dist/cli-bundle/chunks/profile-XQWEQKS3.js +397 -0
  365. package/dist/cli-bundle/chunks/profile-XQWEQKS3.js.map +1 -0
  366. package/dist/cli-bundle/chunks/profile-YRDHLMRO.js +400 -0
  367. package/dist/cli-bundle/chunks/profile-YRDHLMRO.js.map +7 -0
  368. package/dist/cli-bundle/chunks/{register-list-query-WRS6ACUW.js → register-list-query-5H66WFYF.js} +22 -19
  369. package/dist/cli-bundle/chunks/{register-list-query-WRS6ACUW.js.map → register-list-query-5H66WFYF.js.map} +1 -1
  370. package/dist/cli-bundle/chunks/{register-list-query-PNRAHNIQ.js → register-list-query-FB3FNDLZ.js} +24 -21
  371. package/dist/cli-bundle/chunks/{register-list-query-PNRAHNIQ.js.map → register-list-query-FB3FNDLZ.js.map} +1 -1
  372. package/dist/cli-bundle/chunks/{register-mutation-K2MNRWGI.js → register-mutation-UJO23C7R.js} +42 -39
  373. package/dist/cli-bundle/chunks/{register-mutation-K2MNRWGI.js.map → register-mutation-UJO23C7R.js.map} +1 -1
  374. package/dist/cli-bundle/chunks/{register-mutation-ET6E4VLE.js → register-mutation-Z2ETYHKS.js} +40 -37
  375. package/dist/cli-bundle/chunks/{register-mutation-ET6E4VLE.js.map → register-mutation-Z2ETYHKS.js.map} +1 -1
  376. package/dist/cli-bundle/chunks/{register-operations-6DQRUTIX.js → register-operations-A3XAM5J7.js} +39 -36
  377. package/dist/cli-bundle/chunks/{register-operations-6DQRUTIX.js.map → register-operations-A3XAM5J7.js.map} +1 -1
  378. package/dist/cli-bundle/chunks/{register-operations-73UDWMVB.js → register-operations-SG7HBSUP.js} +37 -34
  379. package/dist/cli-bundle/chunks/{register-operations-73UDWMVB.js.map → register-operations-SG7HBSUP.js.map} +1 -1
  380. package/dist/cli-bundle/chunks/{register-setup-LYYCMQFV.js → register-setup-I45OGJUV.js} +25 -19
  381. package/dist/cli-bundle/chunks/{register-setup-LYYCMQFV.js.map → register-setup-I45OGJUV.js.map} +1 -1
  382. package/dist/cli-bundle/chunks/{register-setup-FXZJ2CEJ.js → register-setup-K6U3NVY5.js} +23 -17
  383. package/dist/cli-bundle/chunks/{register-setup-FXZJ2CEJ.js.map → register-setup-K6U3NVY5.js.map} +1 -1
  384. package/dist/cli-bundle/chunks/restore-PXOFL6AM.js +19 -0
  385. package/dist/cli-bundle/chunks/{restore-R6YJHQK3.js → restore-YJ2ET6AT.js} +11 -9
  386. package/dist/cli-bundle/chunks/{scheduling-shortcuts-OGODPUBL.js → scheduling-shortcuts-SSC4MYWQ.js} +14 -12
  387. package/dist/cli-bundle/chunks/{scheduling-shortcuts-OGODPUBL.js.map → scheduling-shortcuts-SSC4MYWQ.js.map} +1 -1
  388. package/dist/cli-bundle/chunks/{scheduling-shortcuts-LE4S7OI7.js → scheduling-shortcuts-ULRG7MNP.js} +16 -14
  389. package/dist/cli-bundle/chunks/{scheduling-shortcuts-LE4S7OI7.js.map → scheduling-shortcuts-ULRG7MNP.js.map} +1 -1
  390. package/dist/cli-bundle/chunks/{schema-ICCD3HOP.js → schema-2PUXCZ25.js} +10 -7
  391. package/dist/cli-bundle/chunks/{schema-RHH23PQX.js → schema-Y6DXXK2F.js} +10 -7
  392. package/dist/cli-bundle/chunks/{search-Z2VGP2Q5.js → search-3S72CTD6.js} +13 -10
  393. package/dist/cli-bundle/chunks/{search-HDDKOPFE.js → search-WNUNBQXO.js} +13 -10
  394. package/dist/cli-bundle/chunks/{stats-ETFP37MB.js → stats-IJYTRQGV.js} +13 -10
  395. package/dist/cli-bundle/chunks/{stats-ETFP37MB.js.map → stats-IJYTRQGV.js.map} +1 -1
  396. package/dist/cli-bundle/chunks/{stats-DHMRXHOB.js → stats-L2D5Y2O5.js} +15 -12
  397. package/dist/cli-bundle/chunks/{stats-DHMRXHOB.js.map → stats-L2D5Y2O5.js.map} +1 -1
  398. package/dist/cli-bundle/chunks/{telemetry-ZRBM22QD.js → telemetry-L2CVOKVN.js} +11 -8
  399. package/dist/cli-bundle/chunks/{telemetry-ZRBM22QD.js.map → telemetry-L2CVOKVN.js.map} +1 -1
  400. package/dist/cli-bundle/chunks/{telemetry-NUZNKDCP.js → telemetry-QBYWQA76.js} +13 -10
  401. package/dist/cli-bundle/chunks/{telemetry-NUZNKDCP.js.map → telemetry-QBYWQA76.js.map} +1 -1
  402. package/dist/cli-bundle/chunks/{test-XNKTIP4Y.js → test-DQ2QFJ7W.js} +21 -15
  403. package/dist/cli-bundle/chunks/test-W7QBLVJS.js +41 -0
  404. package/dist/cli-bundle/chunks/{test-all-APCBSXQI.js → test-all-636NTRTT.js} +26 -19
  405. package/dist/cli-bundle/chunks/{test-all-APCBSXQI.js.map → test-all-636NTRTT.js.map} +1 -1
  406. package/dist/cli-bundle/chunks/{test-all-KIK3OYBY.js → test-all-DWYK3RG6.js} +24 -17
  407. package/dist/cli-bundle/chunks/{test-all-KIK3OYBY.js.map → test-all-DWYK3RG6.js.map} +1 -1
  408. package/dist/cli-bundle/chunks/test-runs-245OINZR.js +28 -0
  409. package/dist/cli-bundle/chunks/test-runs-245OINZR.js.map +1 -0
  410. package/dist/cli-bundle/chunks/test-runs-ZRD4GCTT.js +24 -0
  411. package/dist/cli-bundle/chunks/test-runs-ZRD4GCTT.js.map +7 -0
  412. package/dist/cli-bundle/chunks/update-SFLZPJXX.js +30 -0
  413. package/dist/cli-bundle/chunks/update-SFLZPJXX.js.map +1 -0
  414. package/dist/cli-bundle/chunks/update-SJZ6S77U.js +26 -0
  415. package/dist/cli-bundle/chunks/update-SJZ6S77U.js.map +7 -0
  416. package/dist/cli-bundle/chunks/{update-many-XGTJ7QIU.js → update-many-DC7X3EWM.js} +32 -29
  417. package/dist/cli-bundle/chunks/{update-many-XGTJ7QIU.js.map → update-many-DC7X3EWM.js.map} +1 -1
  418. package/dist/cli-bundle/chunks/{update-many-GFCQG6ZQ.js → update-many-SLLAMHT7.js} +34 -31
  419. package/dist/cli-bundle/chunks/{update-many-GFCQG6ZQ.js.map → update-many-SLLAMHT7.js.map} +1 -1
  420. package/dist/cli-bundle/chunks/{upgrade-KJ3JGELR.js → upgrade-HFFXLZJA.js} +19 -12
  421. package/dist/cli-bundle/chunks/{upgrade-KJ3JGELR.js.map → upgrade-HFFXLZJA.js.map} +1 -1
  422. package/dist/cli-bundle/chunks/{upgrade-RBRQ7PQU.js → upgrade-UYQKM7RF.js} +21 -14
  423. package/dist/cli-bundle/chunks/{upgrade-RBRQ7PQU.js.map → upgrade-UYQKM7RF.js.map} +1 -1
  424. package/dist/cli-bundle/chunks/{validate-EW6TGC7R.js → validate-PA4FDTOV.js} +34 -27
  425. package/dist/cli-bundle/chunks/{validate-EW6TGC7R.js.map → validate-PA4FDTOV.js.map} +2 -2
  426. package/dist/cli-bundle/chunks/{validate-T6PR5WAL.js → validate-Z7L75YEJ.js} +35 -28
  427. package/dist/cli-bundle/chunks/{validate-T6PR5WAL.js.map → validate-Z7L75YEJ.js.map} +1 -1
  428. package/dist/cli-bundle/main.js +173 -57
  429. package/dist/cli-bundle/main.js.map +2 -2
  430. package/dist/cli-bundle/sdk-runtime.js +247 -0
  431. package/dist/cli-bundle/sdk-runtime.js.map +7 -0
  432. package/dist/cli-bundle/sdk-testing.js +101 -0
  433. package/dist/cli-bundle/sdk-testing.js.map +7 -0
  434. package/dist/cli-bundle/sdk.js +787 -0
  435. package/dist/cli-bundle/sdk.js.map +7 -0
  436. package/dist/core/config/nested-settings.d.ts +4 -3
  437. package/dist/core/config/nested-settings.js +17 -6
  438. package/dist/core/config/nested-settings.js.map +1 -1
  439. package/dist/core/extensions/activation-summary.d.ts +6 -0
  440. package/dist/core/extensions/activation-summary.js +10 -4
  441. package/dist/core/extensions/activation-summary.js.map +1 -1
  442. package/dist/core/extensions/capability-usage.d.ts +6 -0
  443. package/dist/core/extensions/capability-usage.js +10 -4
  444. package/dist/core/extensions/capability-usage.js.map +1 -1
  445. package/dist/core/extensions/extension-types.d.ts +5 -0
  446. package/dist/core/extensions/extension-types.js +2 -2
  447. package/dist/core/extensions/extension-types.js.map +1 -1
  448. package/dist/core/extensions/loader.d.ts +3 -0
  449. package/dist/core/extensions/loader.js +11 -19
  450. package/dist/core/extensions/loader.js.map +1 -1
  451. package/dist/core/history/history-rewrite.js +3 -3
  452. package/dist/core/history/history-rewrite.js.map +1 -1
  453. package/dist/core/item/parent-reference-policy.d.ts +9 -1
  454. package/dist/core/item/parent-reference-policy.js +28 -4
  455. package/dist/core/item/parent-reference-policy.js.map +1 -1
  456. package/dist/core/lock/lock.d.ts +28 -1
  457. package/dist/core/lock/lock.js +254 -20
  458. package/dist/core/lock/lock.js.map +1 -1
  459. package/dist/core/search/background-refresh.js +7 -19
  460. package/dist/core/search/background-refresh.js.map +1 -1
  461. package/dist/core/search/http-client.d.ts +0 -1
  462. package/dist/core/search/http-client.js +3 -3
  463. package/dist/core/search/http-client.js.map +1 -1
  464. package/dist/core/shared/constants.js +3 -2
  465. package/dist/core/shared/constants.js.map +1 -1
  466. package/dist/core/shared/errors.d.ts +1 -0
  467. package/dist/core/shared/errors.js +2 -2
  468. package/dist/core/shared/errors.js.map +1 -1
  469. package/dist/core/shared/primitives.d.ts +12 -0
  470. package/dist/core/shared/primitives.js +29 -2
  471. package/dist/core/shared/primitives.js.map +1 -1
  472. package/dist/core/store/item-store.js +3 -3
  473. package/dist/core/store/item-store.js.map +1 -1
  474. package/dist/core/store/settings-validator.d.ts +1 -0
  475. package/dist/core/store/settings-validator.js +6 -3
  476. package/dist/core/store/settings-validator.js.map +1 -1
  477. package/dist/core/store/settings.js +3 -3
  478. package/dist/core/store/settings.js.map +1 -1
  479. package/dist/core/validate/fix-planning.d.ts +0 -2
  480. package/dist/core/validate/fix-planning.js +3 -3
  481. package/dist/core/validate/fix-planning.js.map +1 -1
  482. package/dist/sdk/cli-contracts/commander-mutation-options.js +3 -2
  483. package/dist/sdk/cli-contracts/commander-mutation-options.js.map +1 -1
  484. package/dist/sdk/cli-contracts/flag-contracts.js +3 -2
  485. package/dist/sdk/cli-contracts/flag-contracts.js.map +1 -1
  486. package/dist/sdk/errors.d.ts +21 -2
  487. package/dist/sdk/errors.js +8 -2
  488. package/dist/sdk/errors.js.map +1 -1
  489. package/dist/sdk/package-import-adapters.js +3 -3
  490. package/dist/sdk/package-import-adapters.js.map +1 -1
  491. package/dist/sdk/testing.js +41 -19
  492. package/dist/sdk/testing.js.map +1 -1
  493. package/dist/types.d.ts +6 -0
  494. package/dist/types.js +2 -2
  495. package/dist/types.js.map +1 -1
  496. package/docs/ARCHITECTURE.md +27 -0
  497. package/docs/CONFIGURATION.md +3 -0
  498. package/docs/README.md +1 -0
  499. package/docs/SDK_PRIMITIVE_INVENTORY.md +55 -0
  500. package/docs/TESTING.md +5 -1
  501. package/docs/examples/ci/github-actions-pm-extension-gate.yml +5 -5
  502. package/docs/examples/ci/gitlab-ci-pm-extension-gate.yml +1 -1
  503. package/docs/examples/ci/jenkins-pm-extension-gate.Jenkinsfile +1 -1
  504. package/package.json +11 -24
  505. package/packages/pm-beads/extensions/beads/package.json +3 -0
  506. package/packages/pm-beads/extensions/beads/runtime-loader.ts +24 -2
  507. package/packages/pm-calendar/extensions/calendar/package.json +3 -0
  508. package/packages/pm-command-kit/extensions/command-kit/package.json +3 -0
  509. package/packages/pm-governance-audit/extensions/governance-audit/package.json +3 -0
  510. package/packages/pm-guide-shell/extensions/guide-shell/package.json +3 -0
  511. package/packages/pm-kanban/extensions/kanban/package.json +3 -0
  512. package/packages/pm-lifecycle-hooks/extensions/lifecycle-hooks/package.json +3 -0
  513. package/packages/pm-search-advanced/extensions/search-advanced/package.json +3 -0
  514. package/packages/pm-templates/extensions/templates/package.json +3 -0
  515. package/packages/pm-todos/extensions/todos/package.json +3 -0
  516. package/packages/pm-todos/extensions/todos/runtime-loader.ts +21 -3
  517. package/scripts/bundle-cli.mjs +12 -2
  518. package/dist/cli-bundle/chunks/activity-IDS5GSYG.js +0 -16
  519. package/dist/cli-bundle/chunks/chunk-2VK677OA.js.map +0 -7
  520. package/dist/cli-bundle/chunks/chunk-5FYY76HR.js.map +0 -7
  521. package/dist/cli-bundle/chunks/chunk-75VMARGO.js.map +0 -1
  522. package/dist/cli-bundle/chunks/chunk-7745CXNI.js.map +0 -7
  523. package/dist/cli-bundle/chunks/chunk-AOP2EMK3.js.map +0 -1
  524. package/dist/cli-bundle/chunks/chunk-AZMPKLIA.js.map +0 -1
  525. package/dist/cli-bundle/chunks/chunk-B4O5S7I3.js.map +0 -7
  526. package/dist/cli-bundle/chunks/chunk-BDDYM4LH.js.map +0 -7
  527. package/dist/cli-bundle/chunks/chunk-CN4OAA2G.js.map +0 -7
  528. package/dist/cli-bundle/chunks/chunk-EH23N5FX.js.map +0 -1
  529. package/dist/cli-bundle/chunks/chunk-FMWQRMHS.js.map +0 -1
  530. package/dist/cli-bundle/chunks/chunk-J4KNRDI3.js.map +0 -1
  531. package/dist/cli-bundle/chunks/chunk-KKHIQOTN.js.map +0 -7
  532. package/dist/cli-bundle/chunks/chunk-LLQLLAKU.js.map +0 -1
  533. package/dist/cli-bundle/chunks/chunk-M34MVAOP.js.map +0 -1
  534. package/dist/cli-bundle/chunks/chunk-MTB4PRA3.js.map +0 -7
  535. package/dist/cli-bundle/chunks/chunk-MZG6I2Q2.js.map +0 -7
  536. package/dist/cli-bundle/chunks/chunk-NGDK3KEZ.js.map +0 -7
  537. package/dist/cli-bundle/chunks/chunk-Q3XVLRCJ.js.map +0 -1
  538. package/dist/cli-bundle/chunks/chunk-SBNT6SLO.js.map +0 -7
  539. package/dist/cli-bundle/chunks/chunk-SL2ANJSV.js.map +0 -1
  540. package/dist/cli-bundle/chunks/chunk-TUV7SIWZ.js.map +0 -7
  541. package/dist/cli-bundle/chunks/chunk-UGDONITK.js.map +0 -7
  542. package/dist/cli-bundle/chunks/chunk-UYLA5ROU.js.map +0 -1
  543. package/dist/cli-bundle/chunks/chunk-WBWRQS32.js.map +0 -1
  544. package/dist/cli-bundle/chunks/chunk-XFO2NJY6.js.map +0 -1
  545. package/dist/cli-bundle/chunks/chunk-XQCWTSLO.js.map +0 -1
  546. package/dist/cli-bundle/chunks/chunk-YZWXMDNH.js.map +0 -1
  547. package/dist/cli-bundle/chunks/chunk-Z4DGFQDH.js.map +0 -1
  548. package/dist/cli-bundle/chunks/claim-D6L33A5Y.js.map +0 -1
  549. package/dist/cli-bundle/chunks/claim-YAFUTPVK.js.map +0 -7
  550. package/dist/cli-bundle/chunks/close-KLDLHAOP.js +0 -14
  551. package/dist/cli-bundle/chunks/create-AJ6HUR5W.js +0 -28
  552. package/dist/cli-bundle/chunks/history-IOH6FKG7.js +0 -18
  553. package/dist/cli-bundle/chunks/history-redact-VVDOARNO.js +0 -19
  554. package/dist/cli-bundle/chunks/init-CZLEEE6Q.js +0 -22
  555. package/dist/cli-bundle/chunks/init-MAA6UMNQ.js +0 -26
  556. package/dist/cli-bundle/chunks/profile-54DZ4CLB.js +0 -1205
  557. package/dist/cli-bundle/chunks/profile-54DZ4CLB.js.map +0 -1
  558. package/dist/cli-bundle/chunks/profile-PLIQVEOY.js +0 -1243
  559. package/dist/cli-bundle/chunks/profile-PLIQVEOY.js.map +0 -7
  560. package/dist/cli-bundle/chunks/restore-L27TMMCF.js +0 -17
  561. package/dist/cli-bundle/chunks/test-H36PM746.js +0 -35
  562. package/dist/cli-bundle/chunks/update-RQKI3AMW.js +0 -24
  563. package/dist/cli-bundle/chunks/update-ZM7NJWHY.js +0 -28
  564. /package/dist/cli-bundle/chunks/{activity-IDS5GSYG.js.map → activity-4XQIDNM5.js.map} +0 -0
  565. /package/dist/cli-bundle/chunks/{activity-OENQCYZD.js.map → activity-YKAKZTZ4.js.map} +0 -0
  566. /package/dist/cli-bundle/chunks/{chunk-4SHME4VR.js.map → chunk-5JE6SMYS.js.map} +0 -0
  567. /package/dist/cli-bundle/chunks/{chunk-4EVY7CQN.js.map → chunk-N6DNM2FA.js.map} +0 -0
  568. /package/dist/cli-bundle/chunks/{chunk-YZR7UMZ6.js.map → chunk-NER3KUUS.js.map} +0 -0
  569. /package/dist/cli-bundle/chunks/{chunk-WTXDLBSZ.js.map → chunk-PDXT6Q55.js.map} +0 -0
  570. /package/dist/cli-bundle/chunks/{chunk-724VLYDJ.js.map → chunk-RX3HQSYG.js.map} +0 -0
  571. /package/dist/cli-bundle/chunks/{chunk-PUVPC5DL.js.map → chunk-S4APD35C.js.map} +0 -0
  572. /package/dist/cli-bundle/chunks/{chunk-A2W3XKAD.js.map → chunk-T35XLYZF.js.map} +0 -0
  573. /package/dist/cli-bundle/chunks/{chunk-ZZWMJVW2.js.map → chunk-TT42JUMF.js.map} +0 -0
  574. /package/dist/cli-bundle/chunks/{chunk-W5X3AHJN.js.map → chunk-YOF5VPKM.js.map} +0 -0
  575. /package/dist/cli-bundle/chunks/{chunk-MZ4NH46V.js.map → chunk-ZMD35NYG.js.map} +0 -0
  576. /package/dist/cli-bundle/chunks/{close-TGYXG7TV.js.map → close-3YRR3XY6.js.map} +0 -0
  577. /package/dist/cli-bundle/chunks/{close-KLDLHAOP.js.map → close-OB2Y4QP5.js.map} +0 -0
  578. /package/dist/cli-bundle/chunks/{context-IHE3IXN5.js.map → context-4OQGIPSO.js.map} +0 -0
  579. /package/dist/cli-bundle/chunks/{context-WSYWBEUL.js.map → context-WLA6IAWE.js.map} +0 -0
  580. /package/dist/cli-bundle/chunks/{create-AJ6HUR5W.js.map → contracts-HXJLKCRI.js.map} +0 -0
  581. /package/dist/cli-bundle/chunks/{create-JIA2IFCO.js.map → contracts-OJEXMKVW.js.map} +0 -0
  582. /package/dist/cli-bundle/chunks/{extension-T7JNTAAA.js.map → create-WKOZKPQR.js.map} +0 -0
  583. /package/dist/cli-bundle/chunks/{extension-PVGRRZZG.js.map → create-XWWQFQ6S.js.map} +0 -0
  584. /package/dist/cli-bundle/chunks/{history-IOH6FKG7.js.map → extension-NBAH62ML.js.map} +0 -0
  585. /package/dist/cli-bundle/chunks/{history-W6QVR6FA.js.map → extension-ZF6ZZPOU.js.map} +0 -0
  586. /package/dist/cli-bundle/chunks/{history-redact-VVDOARNO.js.map → history-RYKLC72X.js.map} +0 -0
  587. /package/dist/cli-bundle/chunks/{history-redact-TUWOUYX5.js.map → history-SGPYRAFT.js.map} +0 -0
  588. /package/dist/cli-bundle/chunks/{init-CZLEEE6Q.js.map → history-redact-4H3FCKF3.js.map} +0 -0
  589. /package/dist/cli-bundle/chunks/{init-MAA6UMNQ.js.map → history-redact-54ICFKXM.js.map} +0 -0
  590. /package/dist/cli-bundle/chunks/{list-HFD5737R.js.map → init-RPIPQUNV.js.map} +0 -0
  591. /package/dist/cli-bundle/chunks/{list-KN3TL5Y5.js.map → init-SKQAESQS.js.map} +0 -0
  592. /package/dist/cli-bundle/chunks/{restore-L27TMMCF.js.map → list-64LHZ3HM.js.map} +0 -0
  593. /package/dist/cli-bundle/chunks/{restore-R6YJHQK3.js.map → list-7LXBTEKI.js.map} +0 -0
  594. /package/dist/cli-bundle/chunks/{schema-ICCD3HOP.js.map → restore-PXOFL6AM.js.map} +0 -0
  595. /package/dist/cli-bundle/chunks/{schema-RHH23PQX.js.map → restore-YJ2ET6AT.js.map} +0 -0
  596. /package/dist/cli-bundle/chunks/{search-HDDKOPFE.js.map → schema-2PUXCZ25.js.map} +0 -0
  597. /package/dist/cli-bundle/chunks/{search-Z2VGP2Q5.js.map → schema-Y6DXXK2F.js.map} +0 -0
  598. /package/dist/cli-bundle/chunks/{test-XNKTIP4Y.js.map → search-3S72CTD6.js.map} +0 -0
  599. /package/dist/cli-bundle/chunks/{test-H36PM746.js.map → search-WNUNBQXO.js.map} +0 -0
  600. /package/dist/cli-bundle/chunks/{update-ZM7NJWHY.js.map → test-DQ2QFJ7W.js.map} +0 -0
  601. /package/dist/cli-bundle/chunks/{update-RQKI3AMW.js.map → test-W7QBLVJS.js.map} +0 -0
@@ -9,7 +9,7 @@ import {
9
9
  PLAN_MODE_VALUES,
10
10
  PLAN_STEP_LINK_KIND_VALUES,
11
11
  PLAN_STEP_STATUS_VALUES
12
- } from "./chunk-BDDYM4LH.js";
12
+ } from "./chunk-5VVUKE3U.js";
13
13
 
14
14
  // dist/sdk/cli-contracts/commander-types.js
15
15
  !(function() {
@@ -156,7 +156,7 @@ function readStringArrayFromCommanderOptions(options, contract) {
156
156
  !(function() {
157
157
  try {
158
158
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
159
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ce1d68fc-43f9-5c92-9f3c-2fbdf479df51");
159
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "767461eb-c0bf-5d67-83c1-50f5cb1dcfc1");
160
160
  } catch (e2) {
161
161
  }
162
162
  })();
@@ -167,6 +167,7 @@ var CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS = [
167
167
  option: "--title, -t <value>",
168
168
  description: "Item title [required] (or pass title as the first positional argument)"
169
169
  },
170
+ { target: "id", keys: ["id"], option: "--id <value>", description: "Explicit item id (normalized with the configured id_prefix)" },
170
171
  {
171
172
  target: "description",
172
173
  keys: ["description"],
@@ -848,683 +849,1052 @@ var PM_TOOL_ACTIONS = [
848
849
  "pause-task",
849
850
  "close-task"
850
851
  ];
851
-
852
- // dist/sdk/cli-contracts/string-lists.js
853
- !(function() {
854
- try {
855
- var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
856
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "0a0a1dd5-dcbf-5761-9fbd-2a6295769b97");
857
- } catch (e2) {
858
- }
859
- })();
860
- function normalizeUniqueStringList(values) {
861
- return [...new Set(Array.from(values, (value) => value.trim()).filter((value) => value.length > 0))];
852
+ function isPmToolAction(value) {
853
+ return PM_TOOL_ACTIONS.includes(value);
854
+ }
855
+ function isPmExtensionCapabilityContract(value) {
856
+ return PM_EXTENSION_CAPABILITY_CONTRACTS.includes(value);
857
+ }
858
+ function isPmExtensionServiceNameContract(value) {
859
+ return PM_EXTENSION_SERVICE_NAME_CONTRACTS.includes(value);
860
+ }
861
+ function isPmExtensionPolicyModeContract(value) {
862
+ return PM_EXTENSION_POLICY_MODE_CONTRACTS.includes(value);
863
+ }
864
+ function isPmExtensionPolicySurfaceContract(value) {
865
+ return PM_EXTENSION_POLICY_SURFACE_CONTRACTS.includes(value);
862
866
  }
863
867
 
864
- // dist/sdk/cli-contracts/flag-contracts.js
868
+ // dist/sdk/cli-contracts/tool-option-contracts.js
865
869
  !(function() {
866
870
  try {
867
871
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
868
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "3fb5bf16-8544-58fe-8b9b-9d97468d635c");
872
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e6388be4-3b86-52cb-8bd3-9fafaed43195");
869
873
  } catch (e2) {
870
874
  }
871
875
  })();
872
- function normalizeFlagAliasKey(flag) {
873
- if (!flag.startsWith("--")) {
874
- return flag;
875
- }
876
- return `--${flag.slice(2).replaceAll("_", "-")}`;
877
- }
878
- function withFlagAliasMetadata(flagContracts) {
879
- const aliasesByCanonical = /* @__PURE__ */ new Map();
880
- for (const contract of flagContracts) {
881
- const canonical = normalizeFlagAliasKey(contract.flag);
882
- const bucket = aliasesByCanonical.get(canonical) ?? /* @__PURE__ */ new Set();
883
- if (contract.flag !== canonical) {
884
- bucket.add(contract.flag);
885
- }
886
- for (const alias of contract.aliases ?? []) {
887
- if (alias !== canonical) {
888
- bucket.add(alias);
889
- }
890
- }
891
- aliasesByCanonical.set(canonical, bucket);
892
- }
893
- return flagContracts.map((contract) => {
894
- const canonical = normalizeFlagAliasKey(contract.flag);
895
- if (contract.flag !== canonical) {
896
- return contract;
897
- }
898
- const aliases = normalizeUniqueStringList([
899
- ...contract.aliases ?? [],
900
- ...aliasesByCanonical.get(canonical)
901
- ]).filter((alias) => alias !== canonical);
902
- if (aliases.length === 0) {
903
- return contract;
904
- }
905
- return {
906
- ...contract,
907
- aliases
908
- };
909
- });
910
- }
911
- function compactFlagAliasContracts(flagContracts) {
912
- const withAliases = withFlagAliasMetadata(flagContracts);
913
- const canonicalFlags = new Set(withAliases.map((contract) => contract.flag));
914
- return withAliases.filter((contract) => {
915
- const canonical = normalizeFlagAliasKey(contract.flag);
916
- return contract.flag === canonical || !canonicalFlags.has(canonical);
917
- });
876
+ function cloneOptionContracts(contracts) {
877
+ return contracts.map((contract) => ({ ...contract }));
918
878
  }
919
- var SUBCOMMAND_GLOBAL_FLAG_CONTRACTS = [
920
- { flag: "--json" },
921
- { flag: "--quiet" },
922
- { flag: "--no-changed-fields" },
923
- { flag: "--id-only" },
924
- { flag: "--pm-path", aliases: ["--path"] },
925
- { flag: "--no-extensions" },
926
- { flag: "--no-pager" },
927
- { flag: "--profile" },
928
- { flag: "--help" }
929
- ];
930
- var GLOBAL_FLAG_CONTRACTS = [
931
- ...SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,
932
- { flag: "--version" }
933
- ];
934
- var GOVERNANCE_AND_CONTENT_FILTER_FLAG_CONTRACTS = [
935
- { flag: "--filter-reviewer-missing" },
936
- { flag: "--filter-risk-missing" },
937
- { flag: "--filter-confidence-missing" },
938
- { flag: "--filter-sprint-missing" },
939
- { flag: "--filter-release-missing" },
940
- { flag: "--has-notes" },
941
- { flag: "--no-notes" },
942
- { flag: "--has-learnings" },
943
- { flag: "--no-learnings" },
944
- { flag: "--has-files" },
945
- { flag: "--no-files" },
946
- { flag: "--filter-files-missing" },
947
- { flag: "--has-docs" },
948
- { flag: "--no-docs" },
949
- { flag: "--filter-docs-missing" },
950
- { flag: "--has-tests" },
951
- { flag: "--no-tests" },
952
- { flag: "--has-comments" },
953
- { flag: "--no-comments" },
954
- { flag: "--has-deps" },
955
- { flag: "--no-deps" },
956
- { flag: "--has-body" },
957
- { flag: "--empty-body" },
958
- { flag: "--has-linked-command" },
959
- { flag: "--no-linked-command" }
879
+ var TOOL_ITEM_BASE_FILTER_OPTION_CONTRACTS = [
880
+ { param: "status", flag: "--status" },
881
+ { param: "type", flag: "--type" },
882
+ { param: "tag", flag: "--tag" },
883
+ { param: "priority", flag: "--priority" },
884
+ { param: "deadlineBefore", flag: "--deadline-before" },
885
+ { param: "deadlineAfter", flag: "--deadline-after" }
960
886
  ];
961
- var MANY_GOVERNANCE_AND_CONTENT_FILTER_FLAG_CONTRACTS = [
962
- { flag: "--filter-reviewer-missing" },
963
- { flag: "--filter-risk-missing" },
964
- { flag: "--filter-confidence-missing" },
965
- { flag: "--filter-sprint-missing" },
966
- { flag: "--filter-release-missing" },
967
- { flag: "--filter-has-notes" },
968
- { flag: "--filter-no-notes" },
969
- { flag: "--filter-has-learnings" },
970
- { flag: "--filter-no-learnings" },
971
- { flag: "--filter-has-files" },
972
- { flag: "--filter-no-files" },
973
- { flag: "--filter-has-docs" },
974
- { flag: "--filter-no-docs" },
975
- { flag: "--filter-has-tests" },
976
- { flag: "--filter-no-tests" },
977
- { flag: "--filter-has-comments" },
978
- { flag: "--filter-no-comments" },
979
- { flag: "--filter-has-deps" },
980
- { flag: "--filter-no-deps" },
981
- { flag: "--filter-has-body" },
982
- { flag: "--filter-empty-body" },
983
- { flag: "--filter-has-linked-command" },
984
- { flag: "--filter-no-linked-command" },
985
- { flag: "--ids", list: true },
986
- { flag: "--limit" },
987
- { flag: "--offset" }
887
+ var TOOL_ITEM_WINDOW_FILTER_OPTION_CONTRACTS = [
888
+ { param: "updatedAfter", flag: "--updated-after" },
889
+ { param: "updatedBefore", flag: "--updated-before" },
890
+ { param: "createdAfter", flag: "--created-after" },
891
+ { param: "createdBefore", flag: "--created-before" }
988
892
  ];
989
- var LIST_FILTER_FLAG_CONTRACTS = [
990
- { flag: "--status", list: true },
991
- { flag: "--type" },
992
- { flag: "--tag", aliases: ["--tags"] },
993
- { flag: "--priority" },
994
- { flag: "--deadline-before" },
995
- { flag: "--deadline-after" },
996
- { flag: "--updated-after" },
997
- { flag: "--updated-before" },
998
- { flag: "--created-after" },
999
- { flag: "--created-before" },
1000
- { flag: "--ids", list: true },
1001
- { flag: "--assignee" },
1002
- { flag: "--assignee-filter" },
1003
- { flag: "--assignee_filter" },
1004
- { flag: "--parent" },
1005
- { flag: "--sprint" },
1006
- { flag: "--release" },
1007
- { flag: "--filter-ac-missing" },
1008
- { flag: "--filter-estimates-missing", aliases: ["--filter-estimate-missing"] },
1009
- { flag: "--filter-resolution-missing" },
1010
- { flag: "--filter-metadata-missing" },
1011
- ...GOVERNANCE_AND_CONTENT_FILTER_FLAG_CONTRACTS,
1012
- { flag: "--limit" },
1013
- { flag: "--offset" },
1014
- { flag: "--no-truncate", aliases: ["--all"] },
1015
- { flag: "--compact" },
1016
- { flag: "--brief" },
1017
- { flag: "--full" },
1018
- { flag: "--fields", list: true },
1019
- { flag: "--sort" },
1020
- { flag: "--order" },
1021
- { flag: "--tree" },
1022
- { flag: "--tree-depth" },
1023
- { flag: "--tree_depth" },
1024
- { flag: "--include-body" },
1025
- { flag: "--format" },
1026
- { flag: "--stream" }
893
+ var TOOL_ITEM_RELATION_FILTER_OPTION_CONTRACTS = [
894
+ { param: "assignee", flag: "--assignee" },
895
+ { param: "assigneeFilter", flag: "--assignee-filter" },
896
+ { param: "parent", flag: "--parent" },
897
+ { param: "sprint", flag: "--sprint" },
898
+ { param: "release", flag: "--release" }
1027
899
  ];
1028
- var AGGREGATE_FLAG_CONTRACTS = [
1029
- { flag: "--group-by", list: true },
1030
- { flag: "--count" },
1031
- { flag: "--completion" },
1032
- { flag: "--sum" },
1033
- { flag: "--avg" },
1034
- { flag: "--include-unparented" },
1035
- { flag: "--include_unparented" },
1036
- { flag: "--status" },
1037
- { flag: "--type" },
1038
- { flag: "--tag" },
1039
- { flag: "--priority" },
1040
- { flag: "--deadline-before" },
1041
- { flag: "--deadline-after" },
1042
- { flag: "--assignee" },
1043
- { flag: "--assignee-filter" },
1044
- { flag: "--assignee_filter" },
1045
- { flag: "--parent" },
1046
- { flag: "--sprint" },
1047
- { flag: "--release" }
900
+ var TOOL_SEARCH_RELATION_FILTER_OPTION_CONTRACTS = [
901
+ { param: "assignee", flag: "--assignee" },
902
+ { param: "sprint", flag: "--sprint" },
903
+ { param: "release", flag: "--release" },
904
+ { param: "parent", flag: "--parent" }
1048
905
  ];
1049
- var DEDUPE_AUDIT_FLAG_CONTRACTS = [
1050
- { flag: "--mode" },
1051
- { flag: "--limit" },
1052
- { flag: "--threshold" },
1053
- { flag: "--status" },
1054
- { flag: "--type" },
1055
- { flag: "--tag" },
1056
- { flag: "--priority" },
1057
- { flag: "--deadline-before" },
1058
- { flag: "--deadline-after" },
1059
- { flag: "--assignee" },
1060
- { flag: "--assignee-filter" },
1061
- { flag: "--assignee_filter" },
1062
- { flag: "--parent" },
1063
- { flag: "--sprint" },
1064
- { flag: "--release" }
906
+ var TOOL_BASIC_ITEM_FILTER_OPTION_CONTRACTS = [
907
+ ...TOOL_ITEM_BASE_FILTER_OPTION_CONTRACTS,
908
+ ...TOOL_ITEM_RELATION_FILTER_OPTION_CONTRACTS
1065
909
  ];
1066
- var DEDUPE_MERGE_FLAG_CONTRACTS = [
1067
- { flag: "--keep" },
1068
- { flag: "--close", list: true },
1069
- { flag: "--apply" },
1070
- { flag: "--dry-run" },
1071
- { flag: "--skip-children" },
1072
- { flag: "--author" },
1073
- { flag: "--message" }
910
+ var TOOL_GOVERNANCE_MISSING_OPTION_CONTRACTS = [
911
+ { param: "filterReviewerMissing", flag: "--filter-reviewer-missing" },
912
+ { param: "filterRiskMissing", flag: "--filter-risk-missing" },
913
+ { param: "filterConfidenceMissing", flag: "--filter-confidence-missing" },
914
+ { param: "filterSprintMissing", flag: "--filter-sprint-missing" },
915
+ { param: "filterReleaseMissing", flag: "--filter-release-missing" }
1074
916
  ];
1075
- var COMMENTS_AUDIT_FLAG_CONTRACTS = [
1076
- { flag: "--status" },
1077
- { flag: "--type" },
1078
- { flag: "--assignee" },
1079
- { flag: "--assignee-filter" },
1080
- { flag: "--assignee_filter" },
1081
- { flag: "--parent" },
1082
- { flag: "--tag" },
1083
- { flag: "--sprint" },
1084
- { flag: "--release" },
1085
- { flag: "--priority" },
1086
- { flag: "--limit-items" },
1087
- { flag: "--limit" },
1088
- { flag: "--full-history" },
1089
- { flag: "--latest" }
917
+ var TOOL_CONTENT_PRESENCE_OPTION_CONTRACTS = [
918
+ { param: "hasNotes", flag: "--has-notes" },
919
+ { param: "noNotes", flag: "--no-notes" },
920
+ { param: "hasLearnings", flag: "--has-learnings" },
921
+ { param: "noLearnings", flag: "--no-learnings" },
922
+ { param: "hasFiles", flag: "--has-files" },
923
+ { param: "noFiles", flag: "--no-files" },
924
+ { param: "filterFilesMissing", flag: "--filter-files-missing" },
925
+ { param: "hasDocs", flag: "--has-docs" },
926
+ { param: "noDocs", flag: "--no-docs" },
927
+ { param: "filterDocsMissing", flag: "--filter-docs-missing" },
928
+ { param: "hasTests", flag: "--has-tests" },
929
+ { param: "noTests", flag: "--no-tests" },
930
+ { param: "hasComments", flag: "--has-comments" },
931
+ { param: "noComments", flag: "--no-comments" },
932
+ { param: "hasDeps", flag: "--has-deps" },
933
+ { param: "noDeps", flag: "--no-deps" },
934
+ { param: "hasBody", flag: "--has-body" },
935
+ { param: "emptyBody", flag: "--empty-body" },
936
+ { param: "hasLinkedCommand", flag: "--has-linked-command" },
937
+ { param: "noLinkedCommand", flag: "--no-linked-command" }
1090
938
  ];
1091
- var COMMENTS_FLAG_CONTRACTS = [
1092
- { flag: "--add", aliases: ["--comment"] },
1093
- { flag: "--stdin" },
1094
- { flag: "--file" },
1095
- { flag: "--edit" },
1096
- { flag: "--delete" },
1097
- { flag: "--limit" },
1098
- { flag: "--author" },
1099
- { flag: "--message" },
1100
- { flag: "--allow-audit-comment" },
1101
- { flag: "--force" }
939
+ var TOOL_LIST_FILTER_OPTION_CONTRACTS = [
940
+ ...cloneOptionContracts(TOOL_ITEM_BASE_FILTER_OPTION_CONTRACTS),
941
+ ...cloneOptionContracts(TOOL_ITEM_WINDOW_FILTER_OPTION_CONTRACTS),
942
+ { param: "ids", flag: "--ids" },
943
+ ...cloneOptionContracts(TOOL_ITEM_RELATION_FILTER_OPTION_CONTRACTS),
944
+ { param: "filterAcMissing", flag: "--filter-ac-missing" },
945
+ { param: "filterEstimatesMissing", flag: "--filter-estimates-missing" },
946
+ { param: "filterResolutionMissing", flag: "--filter-resolution-missing" },
947
+ { param: "filterMetadataMissing", flag: "--filter-metadata-missing" },
948
+ ...cloneOptionContracts(TOOL_GOVERNANCE_MISSING_OPTION_CONTRACTS),
949
+ ...cloneOptionContracts(TOOL_CONTENT_PRESENCE_OPTION_CONTRACTS),
950
+ { param: "limit", flag: "--limit" },
951
+ { param: "offset", flag: "--offset" },
952
+ { param: "fields", flag: "--fields" },
953
+ { param: "sort", flag: "--sort" },
954
+ { param: "order", flag: "--order" },
955
+ { param: "tree", flag: "--tree" },
956
+ { param: "treeDepth", flag: "--tree-depth" }
1102
957
  ];
1103
- var NOTES_FLAG_CONTRACTS = [
1104
- { flag: "--add", aliases: ["--note"] },
1105
- { flag: "--limit" },
1106
- { flag: "--author" },
1107
- { flag: "--message" },
1108
- { flag: "--allow-audit-note" },
1109
- { flag: "--allow-audit-comment" },
1110
- { flag: "--force" }
958
+ var TOOL_AGGREGATE_OPTION_CONTRACTS = [
959
+ { param: "groupBy", flag: "--group-by" },
960
+ { param: "sum", flag: "--sum" },
961
+ { param: "avg", flag: "--avg" },
962
+ ...cloneOptionContracts(TOOL_BASIC_ITEM_FILTER_OPTION_CONTRACTS)
1111
963
  ];
1112
- var LEARNINGS_FLAG_CONTRACTS = [
1113
- { flag: "--add", aliases: ["--learning"] },
1114
- { flag: "--limit" },
1115
- { flag: "--author" },
1116
- { flag: "--message" },
1117
- { flag: "--allow-audit-learning" },
1118
- { flag: "--allow-audit-comment" },
1119
- { flag: "--force" }
964
+ var TOOL_DEDUPE_AUDIT_OPTION_CONTRACTS = [
965
+ { param: "mode", flag: "--mode" },
966
+ { param: "limit", flag: "--limit" },
967
+ { param: "threshold", flag: "--threshold" },
968
+ ...cloneOptionContracts(TOOL_BASIC_ITEM_FILTER_OPTION_CONTRACTS)
1120
969
  ];
1121
- var FILES_FLAG_CONTRACTS = [
1122
- { flag: "--add" },
1123
- { flag: "--add-glob" },
1124
- { flag: "--remove" },
1125
- { flag: "--migrate" },
1126
- // GH-170 (pm-pfnx): single-value note applied to every --add/--add-glob link
1127
- // in the invocation (embedded note= wins; usage error without an add).
1128
- { flag: "--note" },
1129
- { flag: "--list" },
1130
- { flag: "--append-stable" },
1131
- { flag: "--validate-paths" },
1132
- { flag: "--audit" },
1133
- { flag: "--author" },
1134
- { flag: "--message" },
1135
- { flag: "--force" }
970
+ var TOOL_SEARCH_FILTER_OPTION_CONTRACTS = [
971
+ { param: "matchMode", flag: "--match-mode" },
972
+ { param: "minScore", flag: "--min-score" },
973
+ { param: "count", flag: "--count", booleanish: true },
974
+ { param: "semanticWeight", flag: "--semantic-weight" },
975
+ ...cloneOptionContracts(TOOL_ITEM_BASE_FILTER_OPTION_CONTRACTS),
976
+ ...cloneOptionContracts(TOOL_ITEM_WINDOW_FILTER_OPTION_CONTRACTS),
977
+ ...cloneOptionContracts(TOOL_SEARCH_RELATION_FILTER_OPTION_CONTRACTS),
978
+ ...cloneOptionContracts(TOOL_GOVERNANCE_MISSING_OPTION_CONTRACTS),
979
+ ...cloneOptionContracts(TOOL_CONTENT_PRESENCE_OPTION_CONTRACTS),
980
+ { param: "fields", flag: "--fields" },
981
+ { param: "limit", flag: "--limit" }
1136
982
  ];
1137
- var DOCS_FLAG_CONTRACTS = [
1138
- { flag: "--add" },
1139
- { flag: "--add-glob" },
1140
- { flag: "--remove" },
1141
- { flag: "--migrate" },
1142
- // GH-170 (pm-pfnx): see FILES_FLAG_CONTRACTS --note.
1143
- { flag: "--note" },
1144
- { flag: "--list" },
1145
- { flag: "--validate-paths" },
1146
- { flag: "--audit" },
1147
- { flag: "--author" },
1148
- { flag: "--message" },
1149
- { flag: "--force" }
983
+ var TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS = [
984
+ { param: "parent", flag: "--parent" },
985
+ { param: "reviewer", flag: "--reviewer" },
986
+ { param: "risk", flag: "--risk" },
987
+ { param: "confidence", flag: "--confidence" },
988
+ { param: "sprint", flag: "--sprint" },
989
+ { param: "release", flag: "--release" },
990
+ { param: "blockedBy", flag: "--blocked-by" },
991
+ { param: "blockedReason", flag: "--blocked-reason" },
992
+ { param: "unblockNote", flag: "--unblock-note" },
993
+ { param: "reporter", flag: "--reporter" },
994
+ { param: "severity", flag: "--severity" },
995
+ { param: "environment", flag: "--environment" },
996
+ { param: "reproSteps", flag: "--repro-steps" },
997
+ { param: "resolution", flag: "--resolution" },
998
+ { param: "expectedResult", flag: "--expected-result" },
999
+ { param: "actualResult", flag: "--actual-result" },
1000
+ { param: "affectedVersion", flag: "--affected-version" },
1001
+ { param: "fixedVersion", flag: "--fixed-version" },
1002
+ { param: "component", flag: "--component" },
1003
+ { param: "regression", flag: "--regression", booleanish: true },
1004
+ { param: "customerImpact", flag: "--customer-impact" },
1005
+ { param: "definitionOfReady", flag: "--definition-of-ready", allowEmpty: true },
1006
+ { param: "order", flag: "--order" },
1007
+ { param: "goal", flag: "--goal" },
1008
+ { param: "objective", flag: "--objective" },
1009
+ { param: "value", flag: "--value" },
1010
+ { param: "impact", flag: "--impact" },
1011
+ { param: "outcome", flag: "--outcome" },
1012
+ { param: "whyNow", flag: "--why-now" }
1150
1013
  ];
1151
- var HISTORY_FLAG_CONTRACTS = [
1152
- { flag: "--limit" },
1153
- { flag: "--compact" },
1154
- { flag: "--full" },
1155
- { flag: "--diff" },
1156
- { flag: "--field" },
1157
- { flag: "--verify" },
1158
- { flag: "--format" }
1014
+ var TOOL_CREATE_OPTION_CONTRACTS = [
1015
+ { param: "title", flag: "--title" },
1016
+ { param: "description", flag: "--description", allowEmpty: true },
1017
+ { param: "type", flag: "--type" },
1018
+ { param: "template", flag: "--template" },
1019
+ { param: "createMode", flag: "--create-mode" },
1020
+ { param: "schedulePreset", flag: "--schedule-preset" },
1021
+ { param: "status", flag: "--status" },
1022
+ { param: "priority", flag: "--priority" },
1023
+ { param: "tags", flag: "--tags", allowEmpty: true },
1024
+ { param: "addTags", flag: "--add-tags", repeatable: true },
1025
+ { param: "body", flag: "--body", allowEmpty: true },
1026
+ { param: "deadline", flag: "--deadline" },
1027
+ { param: "estimate", flag: "--estimate" },
1028
+ { param: "acceptanceCriteria", flag: "--acceptance-criteria", allowEmpty: true },
1029
+ { param: "author", flag: "--author" },
1030
+ { param: "message", flag: "--message", allowEmpty: true },
1031
+ { param: "assignee", flag: "--assignee" },
1032
+ { param: "allowMissingParent", flag: "--allow-missing-parent" },
1033
+ { param: "reminder", flag: "--reminder", repeatable: true },
1034
+ { param: "event", flag: "--event", repeatable: true },
1035
+ { param: "typeOption", flag: "--type-option", repeatable: true },
1036
+ { param: "field", flag: "--field", repeatable: true },
1037
+ { param: "dep", flag: "--dep", repeatable: true },
1038
+ { param: "comment", flag: "--comment", repeatable: true },
1039
+ { param: "note", flag: "--note", repeatable: true },
1040
+ { param: "learning", flag: "--learning", repeatable: true },
1041
+ { param: "linkedFile", flag: "--file", repeatable: true },
1042
+ { param: "linkedTest", flag: "--test", repeatable: true },
1043
+ { param: "doc", flag: "--doc", repeatable: true },
1044
+ { param: "unset", flag: "--unset", repeatable: true },
1045
+ { param: "clearDeps", flag: "--clear-deps" },
1046
+ { param: "clearComments", flag: "--clear-comments" },
1047
+ { param: "clearNotes", flag: "--clear-notes" },
1048
+ { param: "clearLearnings", flag: "--clear-learnings" },
1049
+ { param: "clearFiles", flag: "--clear-files" },
1050
+ { param: "clearTests", flag: "--clear-tests" },
1051
+ { param: "clearDocs", flag: "--clear-docs" },
1052
+ { param: "clearReminders", flag: "--clear-reminders" },
1053
+ { param: "clearEvents", flag: "--clear-events" },
1054
+ { param: "clearTypeOptions", flag: "--clear-type-options" }
1159
1055
  ];
1160
- var HISTORY_REDACT_FLAG_CONTRACTS = [
1161
- { flag: "--literal" },
1162
- { flag: "--regex" },
1163
- { flag: "--replacement" },
1164
- { flag: "--dry-run" },
1165
- { flag: "--author" },
1166
- { flag: "--message" },
1167
- { flag: "--force" }
1056
+ var TOOL_UPDATE_OPTION_CONTRACTS = [
1057
+ { param: "title", flag: "--title" },
1058
+ { param: "description", flag: "--description", allowEmpty: true },
1059
+ { param: "body", flag: "--body", allowEmpty: true },
1060
+ { param: "status", flag: "--status" },
1061
+ { param: "closeReason", flag: "--close-reason" },
1062
+ { param: "priority", flag: "--priority" },
1063
+ { param: "type", flag: "--type" },
1064
+ { param: "tags", flag: "--tags", allowEmpty: true },
1065
+ { param: "addTags", flag: "--add-tags", repeatable: true },
1066
+ { param: "removeTags", flag: "--remove-tags", repeatable: true },
1067
+ { param: "deadline", flag: "--deadline" },
1068
+ { param: "estimate", flag: "--estimate" },
1069
+ { param: "acceptanceCriteria", flag: "--acceptance-criteria", allowEmpty: true },
1070
+ { param: "author", flag: "--author" },
1071
+ { param: "message", flag: "--message", allowEmpty: true },
1072
+ { param: "assignee", flag: "--assignee" },
1073
+ { param: "dep", flag: "--dep", repeatable: true },
1074
+ { param: "depRemove", flag: "--dep-remove", repeatable: true },
1075
+ { param: "replaceDeps", flag: "--replace-deps" },
1076
+ { param: "replaceTests", flag: "--replace-tests" },
1077
+ { param: "comment", flag: "--comment", repeatable: true },
1078
+ { param: "note", flag: "--note", repeatable: true },
1079
+ { param: "learning", flag: "--learning", repeatable: true },
1080
+ { param: "linkedFile", flag: "--file", repeatable: true },
1081
+ { param: "linkedTest", flag: "--test", repeatable: true },
1082
+ { param: "doc", flag: "--doc", repeatable: true },
1083
+ { param: "reminder", flag: "--reminder", repeatable: true },
1084
+ { param: "event", flag: "--event", repeatable: true },
1085
+ { param: "typeOption", flag: "--type-option", repeatable: true },
1086
+ { param: "field", flag: "--field", repeatable: true },
1087
+ { param: "unset", flag: "--unset", repeatable: true },
1088
+ { param: "clearDeps", flag: "--clear-deps" },
1089
+ { param: "clearComments", flag: "--clear-comments" },
1090
+ { param: "clearNotes", flag: "--clear-notes" },
1091
+ { param: "clearLearnings", flag: "--clear-learnings" },
1092
+ { param: "clearFiles", flag: "--clear-files" },
1093
+ { param: "clearTests", flag: "--clear-tests" },
1094
+ { param: "clearDocs", flag: "--clear-docs" },
1095
+ { param: "clearReminders", flag: "--clear-reminders" },
1096
+ { param: "clearEvents", flag: "--clear-events" },
1097
+ { param: "clearTypeOptions", flag: "--clear-type-options" },
1098
+ { param: "allowAuditUpdate", flag: "--allow-audit-update" },
1099
+ { param: "allowAuditDepUpdate", flag: "--allow-audit-dep-update" }
1168
1100
  ];
1169
- var HISTORY_REPAIR_FLAG_CONTRACTS = [
1170
- { flag: "--all" },
1171
- { flag: "--dry-run" },
1172
- { flag: "--author" },
1173
- { flag: "--message" },
1174
- { flag: "--force" }
1101
+ var TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACTS = [
1102
+ { param: "filterStatus", flag: "--filter-status" },
1103
+ { param: "filterType", flag: "--filter-type" },
1104
+ { param: "filterTag", flag: "--filter-tag" },
1105
+ { param: "filterPriority", flag: "--filter-priority" },
1106
+ { param: "filterDeadlineBefore", flag: "--filter-deadline-before" },
1107
+ { param: "filterDeadlineAfter", flag: "--filter-deadline-after" },
1108
+ { param: "filterUpdatedAfter", flag: "--filter-updated-after" },
1109
+ { param: "filterUpdatedBefore", flag: "--filter-updated-before" },
1110
+ { param: "filterCreatedAfter", flag: "--filter-created-after" },
1111
+ { param: "filterCreatedBefore", flag: "--filter-created-before" },
1112
+ { param: "filterAssignee", flag: "--filter-assignee" },
1113
+ { param: "filterAssigneeFilter", flag: "--filter-assignee-filter" },
1114
+ { param: "filterParent", flag: "--filter-parent" },
1115
+ { param: "filterSprint", flag: "--filter-sprint" },
1116
+ { param: "filterRelease", flag: "--filter-release" },
1117
+ { param: "filterReviewerMissing", flag: "--filter-reviewer-missing" },
1118
+ { param: "filterRiskMissing", flag: "--filter-risk-missing" },
1119
+ { param: "filterConfidenceMissing", flag: "--filter-confidence-missing" },
1120
+ { param: "filterSprintMissing", flag: "--filter-sprint-missing" },
1121
+ { param: "filterReleaseMissing", flag: "--filter-release-missing" },
1122
+ { param: "filterHasNotes", flag: "--filter-has-notes" },
1123
+ { param: "filterNoNotes", flag: "--filter-no-notes" },
1124
+ { param: "filterHasLearnings", flag: "--filter-has-learnings" },
1125
+ { param: "filterNoLearnings", flag: "--filter-no-learnings" },
1126
+ { param: "filterHasFiles", flag: "--filter-has-files" },
1127
+ { param: "filterNoFiles", flag: "--filter-no-files" },
1128
+ { param: "filterHasDocs", flag: "--filter-has-docs" },
1129
+ { param: "filterNoDocs", flag: "--filter-no-docs" },
1130
+ { param: "filterHasTests", flag: "--filter-has-tests" },
1131
+ { param: "filterNoTests", flag: "--filter-no-tests" },
1132
+ { param: "filterHasComments", flag: "--filter-has-comments" },
1133
+ { param: "filterNoComments", flag: "--filter-no-comments" },
1134
+ { param: "filterHasDeps", flag: "--filter-has-deps" },
1135
+ { param: "filterNoDeps", flag: "--filter-no-deps" },
1136
+ { param: "filterHasBody", flag: "--filter-has-body" },
1137
+ { param: "filterEmptyBody", flag: "--filter-empty-body" },
1138
+ { param: "filterHasLinkedCommand", flag: "--filter-has-linked-command" },
1139
+ { param: "filterNoLinkedCommand", flag: "--filter-no-linked-command" },
1140
+ { param: "ids", flag: "--ids" },
1141
+ { param: "limit", flag: "--limit" },
1142
+ { param: "offset", flag: "--offset" }
1175
1143
  ];
1176
- var HISTORY_COMPACT_FLAG_CONTRACTS = [
1177
- { flag: "--before" },
1178
- { flag: "--ids", list: true },
1179
- { flag: "--all-over", value_type: "number" },
1180
- { flag: "--closed" },
1181
- { flag: "--all-streams" },
1182
- { flag: "--min-entries", value_type: "number" },
1183
- { flag: "--dry-run" },
1184
- { flag: "--author" },
1185
- { flag: "--message" },
1186
- { flag: "--force" }
1144
+ var TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS = [
1145
+ ...cloneOptionContracts(TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACTS)
1187
1146
  ];
1188
- var SCHEMA_FLAG_CONTRACTS = [
1189
- { flag: "--description" },
1190
- { flag: "--default-status", aliases: ["--default_status"] },
1191
- { flag: "--folder" },
1192
- { flag: "--alias" },
1193
- // --role is a repeatable Commander collect flag (NOT a comma-list contract),
1194
- // mirroring --alias; list:false keeps the bootstrap coalescer from corrupting
1195
- // values.
1196
- { flag: "--role" },
1197
- { flag: "--order" },
1198
- // add-field flags (custom runtime fields). --commands/--required-types are
1199
- // repeatable Commander collect flags (comma-splitting handled in the action),
1200
- // so they stay off the comma-list contract for the same reason as --alias.
1201
- { flag: "--type" },
1202
- { flag: "--commands" },
1203
- { flag: "--cli-flag" },
1204
- { flag: "--required" },
1205
- { flag: "--required-on-create" },
1206
- { flag: "--no-allow-unset" },
1207
- { flag: "--required-types" },
1208
- // add-type --infer flags (title-prefix type inference).
1209
- { flag: "--infer" },
1210
- { flag: "--min-count" },
1211
- { flag: "--apply" },
1212
- { flag: "--author" },
1213
- { flag: "--force" }
1147
+ var TOOL_NORMALIZE_FILTER_OPTION_CONTRACTS = [
1148
+ { param: "filterStatus", flag: "--filter-status" },
1149
+ { param: "filterType", flag: "--filter-type" },
1150
+ { param: "filterTag", flag: "--filter-tag" },
1151
+ { param: "filterPriority", flag: "--filter-priority" },
1152
+ { param: "filterDeadlineBefore", flag: "--filter-deadline-before" },
1153
+ { param: "filterDeadlineAfter", flag: "--filter-deadline-after" },
1154
+ { param: "filterAssignee", flag: "--filter-assignee" },
1155
+ { param: "filterAssigneeFilter", flag: "--filter-assignee-filter" },
1156
+ { param: "filterParent", flag: "--filter-parent" },
1157
+ { param: "filterSprint", flag: "--filter-sprint" },
1158
+ { param: "filterRelease", flag: "--filter-release" },
1159
+ { param: "limit", flag: "--limit" },
1160
+ { param: "offset", flag: "--offset" }
1214
1161
  ];
1215
- var PROFILE_FLAG_CONTRACTS = [
1216
- { flag: "--dry-run" },
1217
- { flag: "--author" },
1218
- { flag: "--force" }
1162
+ var TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS = [
1163
+ ...cloneOptionContracts(TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACTS)
1219
1164
  ];
1220
- var PLAN_FLAG_CONTRACTS = [
1221
- { flag: "--title" },
1222
- { flag: "--description" },
1223
- { flag: "--scope" },
1224
- { flag: "--parent" },
1225
- { flag: "--related" },
1226
- { flag: "--blocks" },
1227
- { flag: "--blocked-by", aliases: ["--blocked_by"] },
1228
- { flag: "--harness" },
1229
- { flag: "--mode" },
1230
- { flag: "--resume-context", aliases: ["--resume_context"] },
1231
- { flag: "--tags", aliases: ["--tag"], list: true },
1232
- { flag: "--priority" },
1233
- { flag: "--body" },
1234
- { flag: "--claim" },
1235
- { flag: "--from-search", aliases: ["--from_search"] },
1236
- { flag: "--template" },
1237
- { flag: "--step-title", aliases: ["--step_title"] },
1238
- // pm-6mit: --step is a Commander collect repeatable (ordered step titles on
1239
- // create; single-value stepTitle alias elsewhere). It must NOT be list:true —
1240
- // the bootstrap coalescer comma-joins list flags and would corrupt titles
1241
- // containing commas.
1242
- { flag: "--step" },
1243
- { flag: "--step-body", aliases: ["--step_body"] },
1244
- { flag: "--step-owner", aliases: ["--step_owner"] },
1245
- { flag: "--step-status", aliases: ["--step_status"] },
1246
- { flag: "--step-evidence", aliases: ["--step_evidence"] },
1247
- { flag: "--step-blocked-reason", aliases: ["--step_blocked_reason"] },
1248
- { flag: "--step-replacement", aliases: ["--step_replacement"] },
1249
- { flag: "--depends-on", aliases: ["--depends_on"] },
1250
- { flag: "--link" },
1251
- { flag: "--link-kind", aliases: ["--link_kind"] },
1252
- { flag: "--link-note", aliases: ["--link_note"] },
1253
- { flag: "--promote-to-item-dep", aliases: ["--promote_to_item_dep"] },
1254
- { flag: "--allow-multiple-active", aliases: ["--allow_multiple_active"] },
1255
- { flag: "--file" },
1256
- { flag: "--test" },
1257
- { flag: "--doc" },
1258
- { flag: "--decision-text", aliases: ["--decision_text", "--decision"] },
1259
- { flag: "--decision-rationale", aliases: ["--decision_rationale"] },
1260
- { flag: "--decision-evidence", aliases: ["--decision_evidence"] },
1261
- { flag: "--discovery-text", aliases: ["--discovery_text", "--discovery"] },
1262
- { flag: "--validation-text", aliases: ["--validation_text", "--validation"] },
1263
- { flag: "--validation-command", aliases: ["--validation_command"] },
1264
- { flag: "--validation-expected", aliases: ["--validation_expected"] },
1265
- { flag: "--depth" },
1266
- { flag: "--fields", list: true },
1267
- { flag: "--steps" },
1268
- { flag: "--materialize-type", aliases: ["--materialize_type"] },
1269
- { flag: "--materialize-parent", aliases: ["--materialize_parent"] },
1270
- { flag: "--materialize-tags", aliases: ["--materialize_tags"] },
1271
- { flag: "--author" },
1272
- { flag: "--message" },
1273
- { flag: "--force" }
1165
+ var TOOL_CALENDAR_OPTION_CONTRACTS = [
1166
+ { param: "view", flag: "--view" },
1167
+ { param: "date", flag: "--date" },
1168
+ { param: "from", flag: "--from" },
1169
+ { param: "to", flag: "--to" },
1170
+ { param: "type", flag: "--type" },
1171
+ { param: "tag", flag: "--tag" },
1172
+ { param: "priority", flag: "--priority" },
1173
+ { param: "status", flag: "--status" },
1174
+ { param: "assignee", flag: "--assignee" },
1175
+ { param: "assigneeFilter", flag: "--assignee-filter" },
1176
+ { param: "sprint", flag: "--sprint" },
1177
+ { param: "release", flag: "--release" },
1178
+ { param: "include", flag: "--include" },
1179
+ { param: "recurrenceLookaheadDays", flag: "--recurrence-lookahead-days" },
1180
+ { param: "recurrenceLookbackDays", flag: "--recurrence-lookback-days" },
1181
+ { param: "occurrenceLimit", flag: "--occurrence-limit" },
1182
+ { param: "limit", flag: "--limit" },
1183
+ { param: "format", flag: "--format" }
1274
1184
  ];
1275
- var INIT_FLAG_CONTRACTS = [
1276
- { flag: "--preset" },
1277
- { flag: "--type-preset" },
1278
- { flag: "--defaults", short: "-y", aliases: ["--yes"] },
1279
- { flag: "--author" },
1280
- { flag: "--agent-guidance" },
1281
- { flag: "--with-packages" },
1282
- { flag: "--force" },
1283
- { flag: "--verbose" }
1185
+ var TOOL_ACTIVITY_OPTION_CONTRACTS = [
1186
+ { param: "id", flag: "--id" },
1187
+ { param: "op", flag: "--op" },
1188
+ { param: "author", flag: "--author" },
1189
+ { param: "from", flag: "--from" },
1190
+ { param: "to", flag: "--to" },
1191
+ { param: "limit", flag: "--limit" },
1192
+ { param: "compact", flag: "--compact" },
1193
+ { param: "full", flag: "--full" }
1284
1194
  ];
1285
- var CONFIG_FLAG_CONTRACTS = [
1286
- { flag: "--criterion" },
1287
- { flag: "--clear-criteria" },
1288
- { flag: "--format" },
1289
- { flag: "--policy" },
1290
- { flag: "--default-depth" },
1291
- { flag: "--activity-limit" },
1292
- { flag: "--stale-threshold-days" },
1293
- { flag: "--section-hierarchy" },
1294
- { flag: "--section-activity" },
1295
- { flag: "--section-progress" },
1296
- { flag: "--section-blockers" },
1297
- { flag: "--section-files" },
1298
- { flag: "--section-workload" },
1299
- { flag: "--section-staleness" },
1300
- { flag: "--section-tests" }
1195
+ var TOOL_CONTEXT_OPTION_CONTRACTS = [
1196
+ { param: "date", flag: "--date" },
1197
+ { param: "from", flag: "--from" },
1198
+ { param: "to", flag: "--to" },
1199
+ { param: "type", flag: "--type" },
1200
+ { param: "tag", flag: "--tag" },
1201
+ { param: "priority", flag: "--priority" },
1202
+ { param: "assignee", flag: "--assignee" },
1203
+ { param: "assigneeFilter", flag: "--assignee-filter" },
1204
+ { param: "sprint", flag: "--sprint" },
1205
+ { param: "release", flag: "--release" },
1206
+ { param: "parent", flag: "--parent" },
1207
+ { param: "limit", flag: "--limit" },
1208
+ { param: "format", flag: "--format" },
1209
+ { param: "depth", flag: "--depth" },
1210
+ { param: "fields", flag: "--fields" },
1211
+ { param: "section", flag: "--section", repeatable: true },
1212
+ { param: "activityLimit", flag: "--activity-limit" },
1213
+ { param: "staleThreshold", flag: "--stale-threshold" }
1301
1214
  ];
1302
- var EXTENSION_FLAG_CONTRACTS = [
1303
- { flag: "--init" },
1304
- { flag: "--scaffold" },
1305
- { flag: "--capability" },
1306
- { flag: "--install" },
1307
- { flag: "--uninstall" },
1308
- { flag: "--explore" },
1309
- { flag: "--list" },
1310
- { flag: "--manage" },
1311
- { flag: "--describe" },
1312
- { flag: "--markdown" },
1313
- { flag: "--output" },
1314
- { flag: "--reload" },
1315
- { flag: "--watch" },
1316
- { flag: "--doctor" },
1317
- { flag: "--catalog" },
1318
- { flag: "--adopt" },
1319
- { flag: "--adopt-all" },
1320
- { flag: "--activate" },
1321
- { flag: "--deactivate" },
1322
- { flag: "--project" },
1323
- { flag: "--local" },
1324
- { flag: "--global" },
1325
- { flag: "--gh" },
1326
- { flag: "--github" },
1327
- { flag: "--ref" },
1328
- { flag: "--detail" },
1329
- { flag: "--trace" },
1330
- { flag: "--runtime-probe" },
1331
- { flag: "--fix-managed-state" },
1332
- { flag: "--strict-exit" },
1333
- { flag: "--fail-on-warn" }
1334
- ];
1335
- var EXTENSION_SCOPE_FLAG_CONTRACTS = [
1336
- { flag: "--project" },
1337
- { flag: "--local" },
1338
- { flag: "--global" }
1215
+ var TOOL_DEPS_OPTION_CONTRACTS = [
1216
+ { param: "format", flag: "--format" },
1217
+ { param: "maxDepth", flag: "--max-depth" },
1218
+ { param: "collapse", flag: "--collapse" },
1219
+ { param: "summary", flag: "--summary" }
1339
1220
  ];
1340
- var EXTENSION_INIT_FLAG_CONTRACTS = [
1341
- ...EXTENSION_SCOPE_FLAG_CONTRACTS,
1342
- { flag: "--capability" }
1221
+
1222
+ // dist/sdk/cli-contracts/string-lists.js
1223
+ !(function() {
1224
+ try {
1225
+ var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
1226
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "0a0a1dd5-dcbf-5761-9fbd-2a6295769b97");
1227
+ } catch (e2) {
1228
+ }
1229
+ })();
1230
+ function normalizeUniqueStringList(values) {
1231
+ return [...new Set(Array.from(values, (value) => value.trim()).filter((value) => value.length > 0))];
1232
+ }
1233
+
1234
+ // dist/sdk/cli-contracts/flag-contracts.js
1235
+ !(function() {
1236
+ try {
1237
+ var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
1238
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "811631e4-861e-5bc1-a2c8-69a78ea43e67");
1239
+ } catch (e2) {
1240
+ }
1241
+ })();
1242
+ function normalizeFlagAliasKey(flag) {
1243
+ if (!flag.startsWith("--")) {
1244
+ return flag;
1245
+ }
1246
+ return `--${flag.slice(2).replaceAll("_", "-")}`;
1247
+ }
1248
+ function withFlagAliasMetadata(flagContracts) {
1249
+ const aliasesByCanonical = /* @__PURE__ */ new Map();
1250
+ for (const contract of flagContracts) {
1251
+ const canonical = normalizeFlagAliasKey(contract.flag);
1252
+ const bucket = aliasesByCanonical.get(canonical) ?? /* @__PURE__ */ new Set();
1253
+ if (contract.flag !== canonical) {
1254
+ bucket.add(contract.flag);
1255
+ }
1256
+ for (const alias of contract.aliases ?? []) {
1257
+ if (alias !== canonical) {
1258
+ bucket.add(alias);
1259
+ }
1260
+ }
1261
+ aliasesByCanonical.set(canonical, bucket);
1262
+ }
1263
+ return flagContracts.map((contract) => {
1264
+ const canonical = normalizeFlagAliasKey(contract.flag);
1265
+ if (contract.flag !== canonical) {
1266
+ return contract;
1267
+ }
1268
+ const aliases = normalizeUniqueStringList([
1269
+ ...contract.aliases ?? [],
1270
+ ...aliasesByCanonical.get(canonical)
1271
+ ]).filter((alias) => alias !== canonical);
1272
+ if (aliases.length === 0) {
1273
+ return contract;
1274
+ }
1275
+ return {
1276
+ ...contract,
1277
+ aliases
1278
+ };
1279
+ });
1280
+ }
1281
+ function compactFlagAliasContracts(flagContracts) {
1282
+ const withAliases = withFlagAliasMetadata(flagContracts);
1283
+ const canonicalFlags = new Set(withAliases.map((contract) => contract.flag));
1284
+ return withAliases.filter((contract) => {
1285
+ const canonical = normalizeFlagAliasKey(contract.flag);
1286
+ return contract.flag === canonical || !canonicalFlags.has(canonical);
1287
+ });
1288
+ }
1289
+ var SUBCOMMAND_GLOBAL_FLAG_CONTRACTS = [
1290
+ { flag: "--json" },
1291
+ { flag: "--quiet" },
1292
+ { flag: "--no-changed-fields" },
1293
+ { flag: "--id-only" },
1294
+ { flag: "--pm-path", aliases: ["--path"] },
1295
+ { flag: "--no-extensions" },
1296
+ { flag: "--no-pager" },
1297
+ { flag: "--profile" },
1298
+ { flag: "--help" }
1343
1299
  ];
1344
- var PACKAGE_FLAG_CONTRACTS = [...EXTENSION_FLAG_CONTRACTS, { flag: "--declarative" }];
1345
- var PACKAGE_INIT_FLAG_CONTRACTS = [...EXTENSION_INIT_FLAG_CONTRACTS, { flag: "--declarative" }];
1346
- var EXTENSION_INSTALL_FLAG_CONTRACTS = [
1347
- { flag: "--project" },
1348
- { flag: "--local" },
1349
- { flag: "--global" },
1350
- { flag: "--gh" },
1351
- { flag: "--github" },
1352
- { flag: "--ref" }
1300
+ var GLOBAL_FLAG_CONTRACTS = [
1301
+ ...SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,
1302
+ { flag: "--version" }
1353
1303
  ];
1354
- var EXTENSION_UNINSTALL_FLAG_CONTRACTS = EXTENSION_SCOPE_FLAG_CONTRACTS;
1355
- var EXTENSION_EXPLORE_FLAG_CONTRACTS = EXTENSION_SCOPE_FLAG_CONTRACTS;
1356
- var EXTENSION_DESCRIBE_FLAG_CONTRACTS = [
1357
- ...EXTENSION_SCOPE_FLAG_CONTRACTS,
1358
- { flag: "--markdown" },
1359
- { flag: "--output" }
1304
+ var GOVERNANCE_AND_CONTENT_FILTER_FLAG_CONTRACTS = [
1305
+ { flag: "--filter-reviewer-missing" },
1306
+ { flag: "--filter-risk-missing" },
1307
+ { flag: "--filter-confidence-missing" },
1308
+ { flag: "--filter-sprint-missing" },
1309
+ { flag: "--filter-release-missing" },
1310
+ { flag: "--has-notes" },
1311
+ { flag: "--no-notes" },
1312
+ { flag: "--has-learnings" },
1313
+ { flag: "--no-learnings" },
1314
+ { flag: "--has-files" },
1315
+ { flag: "--no-files" },
1316
+ { flag: "--filter-files-missing" },
1317
+ { flag: "--has-docs" },
1318
+ { flag: "--no-docs" },
1319
+ { flag: "--filter-docs-missing" },
1320
+ { flag: "--has-tests" },
1321
+ { flag: "--no-tests" },
1322
+ { flag: "--has-comments" },
1323
+ { flag: "--no-comments" },
1324
+ { flag: "--has-deps" },
1325
+ { flag: "--no-deps" },
1326
+ { flag: "--has-body" },
1327
+ { flag: "--empty-body" },
1328
+ { flag: "--has-linked-command" },
1329
+ { flag: "--no-linked-command" }
1360
1330
  ];
1361
- var EXTENSION_ADOPT_ALL_FLAG_CONTRACTS = EXTENSION_SCOPE_FLAG_CONTRACTS;
1362
- var EXTENSION_ACTIVATE_FLAG_CONTRACTS = EXTENSION_SCOPE_FLAG_CONTRACTS;
1363
- var EXTENSION_DEACTIVATE_FLAG_CONTRACTS = EXTENSION_SCOPE_FLAG_CONTRACTS;
1364
- var EXTENSION_MANAGE_FLAG_CONTRACTS = [
1365
- ...EXTENSION_SCOPE_FLAG_CONTRACTS,
1366
- { flag: "--runtime-probe" },
1367
- { flag: "--fix-managed-state" }
1331
+ var MANY_GOVERNANCE_AND_CONTENT_FILTER_FLAG_CONTRACTS = [
1332
+ { flag: "--filter-reviewer-missing" },
1333
+ { flag: "--filter-risk-missing" },
1334
+ { flag: "--filter-confidence-missing" },
1335
+ { flag: "--filter-sprint-missing" },
1336
+ { flag: "--filter-release-missing" },
1337
+ { flag: "--filter-has-notes" },
1338
+ { flag: "--filter-no-notes" },
1339
+ { flag: "--filter-has-learnings" },
1340
+ { flag: "--filter-no-learnings" },
1341
+ { flag: "--filter-has-files" },
1342
+ { flag: "--filter-no-files" },
1343
+ { flag: "--filter-has-docs" },
1344
+ { flag: "--filter-no-docs" },
1345
+ { flag: "--filter-has-tests" },
1346
+ { flag: "--filter-no-tests" },
1347
+ { flag: "--filter-has-comments" },
1348
+ { flag: "--filter-no-comments" },
1349
+ { flag: "--filter-has-deps" },
1350
+ { flag: "--filter-no-deps" },
1351
+ { flag: "--filter-has-body" },
1352
+ { flag: "--filter-empty-body" },
1353
+ { flag: "--filter-has-linked-command" },
1354
+ { flag: "--filter-no-linked-command" },
1355
+ { flag: "--ids", list: true },
1356
+ { flag: "--limit" },
1357
+ { flag: "--offset" }
1368
1358
  ];
1369
- var EXTENSION_RELOAD_FLAG_CONTRACTS = [
1370
- ...EXTENSION_SCOPE_FLAG_CONTRACTS,
1371
- { flag: "--watch" }
1359
+ var LIST_FILTER_FLAG_CONTRACTS = [
1360
+ { flag: "--status", list: true },
1361
+ { flag: "--type" },
1362
+ { flag: "--tag", aliases: ["--tags"] },
1363
+ { flag: "--priority" },
1364
+ { flag: "--deadline-before" },
1365
+ { flag: "--deadline-after" },
1366
+ { flag: "--updated-after" },
1367
+ { flag: "--updated-before" },
1368
+ { flag: "--created-after" },
1369
+ { flag: "--created-before" },
1370
+ { flag: "--ids", list: true },
1371
+ { flag: "--assignee" },
1372
+ { flag: "--assignee-filter" },
1373
+ { flag: "--assignee_filter" },
1374
+ { flag: "--parent" },
1375
+ { flag: "--sprint" },
1376
+ { flag: "--release" },
1377
+ { flag: "--filter-ac-missing" },
1378
+ { flag: "--filter-estimates-missing", aliases: ["--filter-estimate-missing"] },
1379
+ { flag: "--filter-resolution-missing" },
1380
+ { flag: "--filter-metadata-missing" },
1381
+ ...GOVERNANCE_AND_CONTENT_FILTER_FLAG_CONTRACTS,
1382
+ { flag: "--limit" },
1383
+ { flag: "--offset" },
1384
+ { flag: "--no-truncate", aliases: ["--all"] },
1385
+ { flag: "--compact" },
1386
+ { flag: "--brief" },
1387
+ { flag: "--full" },
1388
+ { flag: "--fields", list: true },
1389
+ { flag: "--sort" },
1390
+ { flag: "--order" },
1391
+ { flag: "--tree" },
1392
+ { flag: "--tree-depth" },
1393
+ { flag: "--tree_depth" },
1394
+ { flag: "--include-body" },
1395
+ { flag: "--format" },
1396
+ { flag: "--stream" }
1372
1397
  ];
1373
- var EXTENSION_DOCTOR_FLAG_CONTRACTS = [
1374
- ...EXTENSION_SCOPE_FLAG_CONTRACTS,
1375
- { flag: "--detail" },
1376
- { flag: "--trace" },
1377
- { flag: "--fix-managed-state" },
1378
- { flag: "--strict-exit" },
1379
- { flag: "--fail-on-warn" }
1398
+ var AGGREGATE_FLAG_CONTRACTS = [
1399
+ { flag: "--group-by", list: true },
1400
+ { flag: "--count" },
1401
+ { flag: "--completion" },
1402
+ { flag: "--sum" },
1403
+ { flag: "--avg" },
1404
+ { flag: "--include-unparented" },
1405
+ { flag: "--include_unparented" },
1406
+ { flag: "--status" },
1407
+ { flag: "--type" },
1408
+ { flag: "--tag" },
1409
+ { flag: "--priority" },
1410
+ { flag: "--deadline-before" },
1411
+ { flag: "--deadline-after" },
1412
+ { flag: "--assignee" },
1413
+ { flag: "--assignee-filter" },
1414
+ { flag: "--assignee_filter" },
1415
+ { flag: "--parent" },
1416
+ { flag: "--sprint" },
1417
+ { flag: "--release" }
1380
1418
  ];
1381
- var EXTENSION_CATALOG_FLAG_CONTRACTS = [
1382
- ...EXTENSION_SCOPE_FLAG_CONTRACTS,
1383
- { flag: "--fields", list: true }
1419
+ var DEDUPE_AUDIT_FLAG_CONTRACTS = [
1420
+ { flag: "--mode" },
1421
+ { flag: "--limit" },
1422
+ { flag: "--threshold" },
1423
+ { flag: "--status" },
1424
+ { flag: "--type" },
1425
+ { flag: "--tag" },
1426
+ { flag: "--priority" },
1427
+ { flag: "--deadline-before" },
1428
+ { flag: "--deadline-after" },
1429
+ { flag: "--assignee" },
1430
+ { flag: "--assignee-filter" },
1431
+ { flag: "--assignee_filter" },
1432
+ { flag: "--parent" },
1433
+ { flag: "--sprint" },
1434
+ { flag: "--release" }
1384
1435
  ];
1385
- var EXTENSION_ADOPT_FLAG_CONTRACTS = [
1386
- ...EXTENSION_SCOPE_FLAG_CONTRACTS,
1387
- { flag: "--gh" },
1388
- { flag: "--github" },
1389
- { flag: "--ref" }
1390
- ];
1391
- var INSTALL_FLAG_CONTRACTS = [
1392
- { flag: "--project" },
1393
- { flag: "--local" },
1394
- { flag: "--global" },
1395
- { flag: "--gh" },
1396
- { flag: "--github" },
1397
- { flag: "--ref" }
1398
- ];
1399
- var UPGRADE_FLAG_CONTRACTS = [
1436
+ var DEDUPE_MERGE_FLAG_CONTRACTS = [
1437
+ { flag: "--keep" },
1438
+ { flag: "--close", list: true },
1439
+ { flag: "--apply" },
1400
1440
  { flag: "--dry-run" },
1401
- { flag: "--cli-only" },
1402
- { flag: "--packages-only" },
1403
- { flag: "--project" },
1404
- { flag: "--local" },
1405
- { flag: "--global" },
1406
- { flag: "--repair" },
1407
- { flag: "--tag" },
1408
- { flag: "--package-name" }
1441
+ { flag: "--skip-children" },
1442
+ { flag: "--author" },
1443
+ { flag: "--message" }
1409
1444
  ];
1410
- var REINDEX_FLAG_CONTRACTS = [
1411
- { flag: "--mode" },
1412
- { flag: "--progress" }
1445
+ var COMMENTS_AUDIT_FLAG_CONTRACTS = [
1446
+ { flag: "--status" },
1447
+ { flag: "--type" },
1448
+ { flag: "--assignee" },
1449
+ { flag: "--assignee-filter" },
1450
+ { flag: "--assignee_filter" },
1451
+ { flag: "--parent" },
1452
+ { flag: "--tag" },
1453
+ { flag: "--sprint" },
1454
+ { flag: "--release" },
1455
+ { flag: "--priority" },
1456
+ { flag: "--limit-items" },
1457
+ { flag: "--limit" },
1458
+ { flag: "--full-history" },
1459
+ { flag: "--latest" }
1413
1460
  ];
1414
- var CLOSE_FLAG_CONTRACTS = [
1415
- { flag: "--reason" },
1416
- { flag: "--close-reason" },
1417
- { flag: "--duplicate-of" },
1461
+ var COMMENTS_FLAG_CONTRACTS = [
1462
+ { flag: "--add", aliases: ["--comment"] },
1463
+ { flag: "--stdin" },
1464
+ { flag: "--file" },
1465
+ { flag: "--edit" },
1466
+ { flag: "--delete" },
1467
+ { flag: "--limit" },
1418
1468
  { flag: "--author" },
1419
1469
  { flag: "--message" },
1420
- { flag: "--validate-close" },
1421
- // pm-fl0c #11 (2026-05-28) + Codex P2 follow-up: inline closure-validation
1422
- // fields. Surface them through the contract so `pm contracts --command
1423
- // close`, the JSON help payload, and bootstrap flag normalization /
1424
- // suggestions all stay consistent with the commander registration.
1425
- { flag: "--resolution" },
1426
- { flag: "--expected-result", aliases: ["--expected_result", "--expected"] },
1427
- { flag: "--actual-result", aliases: ["--actual_result", "--actual"] },
1470
+ { flag: "--allow-audit-comment" },
1428
1471
  { flag: "--force" }
1429
1472
  ];
1430
- var CLOSE_MANY_FLAG_CONTRACTS = [
1431
- { flag: "--filter-status", list: true },
1432
- { flag: "--filter-type" },
1433
- { flag: "--filter-tag" },
1434
- { flag: "--filter-priority" },
1435
- { flag: "--filter-deadline-before" },
1436
- { flag: "--filter-deadline-after" },
1437
- { flag: "--filter-updated-after" },
1438
- { flag: "--filter-updated-before" },
1439
- { flag: "--filter-created-after" },
1440
- { flag: "--filter-created-before" },
1441
- { flag: "--filter-assignee" },
1442
- { flag: "--filter-assignee-filter" },
1443
- { flag: "--filter-assignee_filter" },
1444
- { flag: "--filter-parent" },
1445
- { flag: "--filter-sprint" },
1446
- { flag: "--filter-release" },
1447
- ...MANY_GOVERNANCE_AND_CONTENT_FILTER_FLAG_CONTRACTS,
1448
- { flag: "--reason" },
1449
- { flag: "--resolution" },
1450
- { flag: "--expected-result", aliases: ["--expected_result", "--expected"] },
1451
- { flag: "--actual-result", aliases: ["--actual_result", "--actual"] },
1452
- { flag: "--validate-close" },
1473
+ var NOTES_FLAG_CONTRACTS = [
1474
+ { flag: "--add", aliases: ["--note"] },
1475
+ { flag: "--limit" },
1453
1476
  { flag: "--author" },
1454
1477
  { flag: "--message" },
1455
- { flag: "--force" },
1456
- { flag: "--dry-run" },
1457
- { flag: "--rollback" },
1458
- { flag: "--no-checkpoint" }
1478
+ { flag: "--allow-audit-note" },
1479
+ { flag: "--allow-audit-comment" },
1480
+ { flag: "--force" }
1459
1481
  ];
1460
- var APPEND_FLAG_CONTRACTS = [
1461
- { flag: "--body", short: "-b" },
1482
+ var LEARNINGS_FLAG_CONTRACTS = [
1483
+ { flag: "--add", aliases: ["--learning"] },
1484
+ { flag: "--limit" },
1462
1485
  { flag: "--author" },
1463
1486
  { flag: "--message" },
1487
+ { flag: "--allow-audit-learning" },
1488
+ { flag: "--allow-audit-comment" },
1464
1489
  { flag: "--force" }
1465
1490
  ];
1466
- var CLAIM_FLAG_CONTRACTS = [
1491
+ var FILES_FLAG_CONTRACTS = [
1492
+ { flag: "--add" },
1493
+ { flag: "--add-glob" },
1494
+ { flag: "--remove" },
1495
+ { flag: "--migrate" },
1496
+ // GH-170 (pm-pfnx): single-value note applied to every --add/--add-glob link
1497
+ // in the invocation (embedded note= wins; usage error without an add).
1498
+ { flag: "--note" },
1499
+ { flag: "--list" },
1500
+ { flag: "--append-stable" },
1501
+ { flag: "--validate-paths" },
1502
+ { flag: "--audit" },
1467
1503
  { flag: "--author" },
1468
1504
  { flag: "--message" },
1469
1505
  { flag: "--force" }
1470
1506
  ];
1471
- var RESTORE_FLAG_CONTRACTS = [
1507
+ var DOCS_FLAG_CONTRACTS = [
1508
+ { flag: "--add" },
1509
+ { flag: "--add-glob" },
1510
+ { flag: "--remove" },
1511
+ { flag: "--migrate" },
1512
+ // GH-170 (pm-pfnx): see FILES_FLAG_CONTRACTS --note.
1513
+ { flag: "--note" },
1514
+ { flag: "--list" },
1515
+ { flag: "--validate-paths" },
1516
+ { flag: "--audit" },
1472
1517
  { flag: "--author" },
1473
1518
  { flag: "--message" },
1474
1519
  { flag: "--force" }
1475
1520
  ];
1476
- var DELETE_FLAG_CONTRACTS = [
1521
+ var HISTORY_FLAG_CONTRACTS = [
1522
+ { flag: "--limit" },
1523
+ { flag: "--compact" },
1524
+ { flag: "--full" },
1525
+ { flag: "--diff" },
1526
+ { flag: "--field" },
1527
+ { flag: "--verify" },
1528
+ { flag: "--format" }
1529
+ ];
1530
+ var HISTORY_REDACT_FLAG_CONTRACTS = [
1531
+ { flag: "--literal" },
1532
+ { flag: "--regex" },
1533
+ { flag: "--replacement" },
1477
1534
  { flag: "--dry-run" },
1478
1535
  { flag: "--author" },
1479
1536
  { flag: "--message" },
1480
1537
  { flag: "--force" }
1481
1538
  ];
1482
- var RELEASE_FLAG_CONTRACTS = [
1539
+ var HISTORY_REPAIR_FLAG_CONTRACTS = [
1540
+ { flag: "--all" },
1541
+ { flag: "--dry-run" },
1483
1542
  { flag: "--author" },
1484
1543
  { flag: "--message" },
1485
- { flag: "--allow-audit-release" },
1486
1544
  { flag: "--force" }
1487
1545
  ];
1488
- var START_TASK_FLAG_CONTRACTS = [
1546
+ var HISTORY_COMPACT_FLAG_CONTRACTS = [
1547
+ { flag: "--before" },
1548
+ { flag: "--ids", list: true },
1549
+ { flag: "--all-over", value_type: "number" },
1550
+ { flag: "--closed" },
1551
+ { flag: "--all-streams" },
1552
+ { flag: "--min-entries", value_type: "number" },
1553
+ { flag: "--dry-run" },
1489
1554
  { flag: "--author" },
1490
1555
  { flag: "--message" },
1491
1556
  { flag: "--force" }
1492
1557
  ];
1493
- var PAUSE_TASK_FLAG_CONTRACTS = [
1558
+ var SCHEMA_FLAG_CONTRACTS = [
1559
+ { flag: "--description" },
1560
+ { flag: "--default-status", aliases: ["--default_status"] },
1561
+ { flag: "--folder" },
1562
+ { flag: "--alias" },
1563
+ // --role is a repeatable Commander collect flag (NOT a comma-list contract),
1564
+ // mirroring --alias; list:false keeps the bootstrap coalescer from corrupting
1565
+ // values.
1566
+ { flag: "--role" },
1567
+ { flag: "--order" },
1568
+ // add-field flags (custom runtime fields). --commands/--required-types are
1569
+ // repeatable Commander collect flags (comma-splitting handled in the action),
1570
+ // so they stay off the comma-list contract for the same reason as --alias.
1571
+ { flag: "--type" },
1572
+ { flag: "--commands" },
1573
+ { flag: "--cli-flag" },
1574
+ { flag: "--required" },
1575
+ { flag: "--required-on-create" },
1576
+ { flag: "--no-allow-unset" },
1577
+ { flag: "--required-types" },
1578
+ // add-type --infer flags (title-prefix type inference).
1579
+ { flag: "--infer" },
1580
+ { flag: "--min-count" },
1581
+ { flag: "--apply" },
1494
1582
  { flag: "--author" },
1495
- { flag: "--message" },
1496
1583
  { flag: "--force" }
1497
1584
  ];
1498
- var CLOSE_TASK_FLAG_CONTRACTS = [
1585
+ var PROFILE_FLAG_CONTRACTS = [
1586
+ { flag: "--dry-run" },
1499
1587
  { flag: "--author" },
1500
- { flag: "--message" },
1501
- { flag: "--validate-close" },
1502
1588
  { flag: "--force" }
1503
1589
  ];
1504
- var SCHEDULING_SHORTCUT_COMMON_FLAG_CONTRACTS = [
1590
+ var PLAN_FLAG_CONTRACTS = [
1591
+ { flag: "--title" },
1592
+ { flag: "--description" },
1593
+ { flag: "--scope" },
1505
1594
  { flag: "--parent" },
1506
- { flag: "--allow-missing-parent" },
1507
- { flag: "--tags" },
1595
+ { flag: "--related" },
1596
+ { flag: "--blocks" },
1597
+ { flag: "--blocked-by", aliases: ["--blocked_by"] },
1598
+ { flag: "--harness" },
1599
+ { flag: "--mode" },
1600
+ { flag: "--resume-context", aliases: ["--resume_context"] },
1601
+ { flag: "--tags", aliases: ["--tag"], list: true },
1508
1602
  { flag: "--priority" },
1509
1603
  { flag: "--body" },
1510
- { flag: "--description" },
1604
+ { flag: "--claim" },
1605
+ { flag: "--from-search", aliases: ["--from_search"] },
1606
+ { flag: "--template" },
1607
+ { flag: "--step-title", aliases: ["--step_title"] },
1608
+ // pm-6mit: --step is a Commander collect repeatable (ordered step titles on
1609
+ // create; single-value stepTitle alias elsewhere). It must NOT be list:true —
1610
+ // the bootstrap coalescer comma-joins list flags and would corrupt titles
1611
+ // containing commas.
1612
+ { flag: "--step" },
1613
+ { flag: "--step-body", aliases: ["--step_body"] },
1614
+ { flag: "--step-owner", aliases: ["--step_owner"] },
1615
+ { flag: "--step-status", aliases: ["--step_status"] },
1616
+ { flag: "--step-evidence", aliases: ["--step_evidence"] },
1617
+ { flag: "--step-blocked-reason", aliases: ["--step_blocked_reason"] },
1618
+ { flag: "--step-replacement", aliases: ["--step_replacement"] },
1619
+ { flag: "--depends-on", aliases: ["--depends_on"] },
1620
+ { flag: "--link" },
1621
+ { flag: "--link-kind", aliases: ["--link_kind"] },
1622
+ { flag: "--link-note", aliases: ["--link_note"] },
1623
+ { flag: "--promote-to-item-dep", aliases: ["--promote_to_item_dep"] },
1624
+ { flag: "--allow-multiple-active", aliases: ["--allow_multiple_active"] },
1625
+ { flag: "--file" },
1626
+ { flag: "--test" },
1627
+ { flag: "--doc" },
1628
+ { flag: "--decision-text", aliases: ["--decision_text", "--decision"] },
1629
+ { flag: "--decision-rationale", aliases: ["--decision_rationale"] },
1630
+ { flag: "--decision-evidence", aliases: ["--decision_evidence"] },
1631
+ { flag: "--discovery-text", aliases: ["--discovery_text", "--discovery"] },
1632
+ { flag: "--validation-text", aliases: ["--validation_text", "--validation"] },
1633
+ { flag: "--validation-command", aliases: ["--validation_command"] },
1634
+ { flag: "--validation-expected", aliases: ["--validation_expected"] },
1635
+ { flag: "--depth" },
1636
+ { flag: "--fields", list: true },
1637
+ { flag: "--steps" },
1638
+ { flag: "--materialize-type", aliases: ["--materialize_type"] },
1639
+ { flag: "--materialize-parent", aliases: ["--materialize_parent"] },
1640
+ { flag: "--materialize-tags", aliases: ["--materialize_tags"] },
1511
1641
  { flag: "--author" },
1512
- { flag: "--message" }
1513
- ];
1514
- var MEET_FLAG_CONTRACTS = [
1515
- { flag: "--start" },
1516
- { flag: "--duration" },
1517
- { flag: "--end" },
1518
- { flag: "--location" },
1519
- { flag: "--timezone" },
1520
- { flag: "--all-day" },
1521
- ...SCHEDULING_SHORTCUT_COMMON_FLAG_CONTRACTS
1522
- ];
1523
- var EVENT_FLAG_CONTRACTS = MEET_FLAG_CONTRACTS;
1524
- var REMIND_FLAG_CONTRACTS = [
1525
- { flag: "--at" },
1526
- { flag: "--text" },
1527
- ...SCHEDULING_SHORTCUT_COMMON_FLAG_CONTRACTS
1642
+ { flag: "--message" },
1643
+ { flag: "--force" }
1644
+ ];
1645
+ var INIT_FLAG_CONTRACTS = [
1646
+ { flag: "--preset" },
1647
+ { flag: "--type-preset" },
1648
+ { flag: "--defaults", short: "-y", aliases: ["--yes"] },
1649
+ { flag: "--author" },
1650
+ { flag: "--agent-guidance" },
1651
+ { flag: "--with-packages" },
1652
+ { flag: "--force" },
1653
+ { flag: "--verbose" }
1654
+ ];
1655
+ var CONFIG_FLAG_CONTRACTS = [
1656
+ { flag: "--criterion" },
1657
+ { flag: "--clear-criteria" },
1658
+ { flag: "--format" },
1659
+ { flag: "--policy" },
1660
+ { flag: "--default-depth" },
1661
+ { flag: "--activity-limit" },
1662
+ { flag: "--stale-threshold-days" },
1663
+ { flag: "--section-hierarchy" },
1664
+ { flag: "--section-activity" },
1665
+ { flag: "--section-progress" },
1666
+ { flag: "--section-blockers" },
1667
+ { flag: "--section-files" },
1668
+ { flag: "--section-workload" },
1669
+ { flag: "--section-staleness" },
1670
+ { flag: "--section-tests" }
1671
+ ];
1672
+ var EXTENSION_FLAG_CONTRACTS = [
1673
+ { flag: "--init" },
1674
+ { flag: "--scaffold" },
1675
+ { flag: "--capability" },
1676
+ { flag: "--install" },
1677
+ { flag: "--uninstall" },
1678
+ { flag: "--explore" },
1679
+ { flag: "--list" },
1680
+ { flag: "--manage" },
1681
+ { flag: "--describe" },
1682
+ { flag: "--markdown" },
1683
+ { flag: "--output" },
1684
+ { flag: "--reload" },
1685
+ { flag: "--watch" },
1686
+ { flag: "--doctor" },
1687
+ { flag: "--catalog" },
1688
+ { flag: "--adopt" },
1689
+ { flag: "--adopt-all" },
1690
+ { flag: "--activate" },
1691
+ { flag: "--deactivate" },
1692
+ { flag: "--project" },
1693
+ { flag: "--local" },
1694
+ { flag: "--global" },
1695
+ { flag: "--gh" },
1696
+ { flag: "--github" },
1697
+ { flag: "--ref" },
1698
+ { flag: "--detail" },
1699
+ { flag: "--trace" },
1700
+ { flag: "--runtime-probe" },
1701
+ { flag: "--fix-managed-state" },
1702
+ { flag: "--strict-exit" },
1703
+ { flag: "--fail-on-warn" }
1704
+ ];
1705
+ var EXTENSION_SCOPE_FLAG_CONTRACTS = [
1706
+ { flag: "--project" },
1707
+ { flag: "--local" },
1708
+ { flag: "--global" }
1709
+ ];
1710
+ var EXTENSION_INIT_FLAG_CONTRACTS = [
1711
+ ...EXTENSION_SCOPE_FLAG_CONTRACTS,
1712
+ { flag: "--capability" }
1713
+ ];
1714
+ var PACKAGE_FLAG_CONTRACTS = [...EXTENSION_FLAG_CONTRACTS, { flag: "--declarative" }];
1715
+ var PACKAGE_INIT_FLAG_CONTRACTS = [...EXTENSION_INIT_FLAG_CONTRACTS, { flag: "--declarative" }];
1716
+ var EXTENSION_INSTALL_FLAG_CONTRACTS = [
1717
+ { flag: "--project" },
1718
+ { flag: "--local" },
1719
+ { flag: "--global" },
1720
+ { flag: "--gh" },
1721
+ { flag: "--github" },
1722
+ { flag: "--ref" }
1723
+ ];
1724
+ var EXTENSION_UNINSTALL_FLAG_CONTRACTS = EXTENSION_SCOPE_FLAG_CONTRACTS;
1725
+ var EXTENSION_EXPLORE_FLAG_CONTRACTS = EXTENSION_SCOPE_FLAG_CONTRACTS;
1726
+ var EXTENSION_DESCRIBE_FLAG_CONTRACTS = [
1727
+ ...EXTENSION_SCOPE_FLAG_CONTRACTS,
1728
+ { flag: "--markdown" },
1729
+ { flag: "--output" }
1730
+ ];
1731
+ var EXTENSION_ADOPT_ALL_FLAG_CONTRACTS = EXTENSION_SCOPE_FLAG_CONTRACTS;
1732
+ var EXTENSION_ACTIVATE_FLAG_CONTRACTS = EXTENSION_SCOPE_FLAG_CONTRACTS;
1733
+ var EXTENSION_DEACTIVATE_FLAG_CONTRACTS = EXTENSION_SCOPE_FLAG_CONTRACTS;
1734
+ var EXTENSION_MANAGE_FLAG_CONTRACTS = [
1735
+ ...EXTENSION_SCOPE_FLAG_CONTRACTS,
1736
+ { flag: "--runtime-probe" },
1737
+ { flag: "--fix-managed-state" }
1738
+ ];
1739
+ var EXTENSION_RELOAD_FLAG_CONTRACTS = [
1740
+ ...EXTENSION_SCOPE_FLAG_CONTRACTS,
1741
+ { flag: "--watch" }
1742
+ ];
1743
+ var EXTENSION_DOCTOR_FLAG_CONTRACTS = [
1744
+ ...EXTENSION_SCOPE_FLAG_CONTRACTS,
1745
+ { flag: "--detail" },
1746
+ { flag: "--trace" },
1747
+ { flag: "--fix-managed-state" },
1748
+ { flag: "--strict-exit" },
1749
+ { flag: "--fail-on-warn" }
1750
+ ];
1751
+ var EXTENSION_CATALOG_FLAG_CONTRACTS = [
1752
+ ...EXTENSION_SCOPE_FLAG_CONTRACTS,
1753
+ { flag: "--fields", list: true }
1754
+ ];
1755
+ var EXTENSION_ADOPT_FLAG_CONTRACTS = [
1756
+ ...EXTENSION_SCOPE_FLAG_CONTRACTS,
1757
+ { flag: "--gh" },
1758
+ { flag: "--github" },
1759
+ { flag: "--ref" }
1760
+ ];
1761
+ var INSTALL_FLAG_CONTRACTS = [
1762
+ { flag: "--project" },
1763
+ { flag: "--local" },
1764
+ { flag: "--global" },
1765
+ { flag: "--gh" },
1766
+ { flag: "--github" },
1767
+ { flag: "--ref" }
1768
+ ];
1769
+ var UPGRADE_FLAG_CONTRACTS = [
1770
+ { flag: "--dry-run" },
1771
+ { flag: "--cli-only" },
1772
+ { flag: "--packages-only" },
1773
+ { flag: "--project" },
1774
+ { flag: "--local" },
1775
+ { flag: "--global" },
1776
+ { flag: "--repair" },
1777
+ { flag: "--tag" },
1778
+ { flag: "--package-name" }
1779
+ ];
1780
+ var REINDEX_FLAG_CONTRACTS = [
1781
+ { flag: "--mode" },
1782
+ { flag: "--progress" }
1783
+ ];
1784
+ var CLOSE_FLAG_CONTRACTS = [
1785
+ { flag: "--reason" },
1786
+ { flag: "--close-reason" },
1787
+ { flag: "--duplicate-of" },
1788
+ { flag: "--author" },
1789
+ { flag: "--message" },
1790
+ { flag: "--validate-close" },
1791
+ // pm-fl0c #11 (2026-05-28) + Codex P2 follow-up: inline closure-validation
1792
+ // fields. Surface them through the contract so `pm contracts --command
1793
+ // close`, the JSON help payload, and bootstrap flag normalization /
1794
+ // suggestions all stay consistent with the commander registration.
1795
+ { flag: "--resolution" },
1796
+ { flag: "--expected-result", aliases: ["--expected_result", "--expected"] },
1797
+ { flag: "--actual-result", aliases: ["--actual_result", "--actual"] },
1798
+ { flag: "--force" }
1799
+ ];
1800
+ var CLOSE_MANY_FLAG_CONTRACTS = [
1801
+ { flag: "--filter-status", list: true },
1802
+ { flag: "--filter-type" },
1803
+ { flag: "--filter-tag" },
1804
+ { flag: "--filter-priority" },
1805
+ { flag: "--filter-deadline-before" },
1806
+ { flag: "--filter-deadline-after" },
1807
+ { flag: "--filter-updated-after" },
1808
+ { flag: "--filter-updated-before" },
1809
+ { flag: "--filter-created-after" },
1810
+ { flag: "--filter-created-before" },
1811
+ { flag: "--filter-assignee" },
1812
+ { flag: "--filter-assignee-filter" },
1813
+ { flag: "--filter-assignee_filter" },
1814
+ { flag: "--filter-parent" },
1815
+ { flag: "--filter-sprint" },
1816
+ { flag: "--filter-release" },
1817
+ ...MANY_GOVERNANCE_AND_CONTENT_FILTER_FLAG_CONTRACTS,
1818
+ { flag: "--reason" },
1819
+ { flag: "--resolution" },
1820
+ { flag: "--expected-result", aliases: ["--expected_result", "--expected"] },
1821
+ { flag: "--actual-result", aliases: ["--actual_result", "--actual"] },
1822
+ { flag: "--validate-close" },
1823
+ { flag: "--author" },
1824
+ { flag: "--message" },
1825
+ { flag: "--force" },
1826
+ { flag: "--dry-run" },
1827
+ { flag: "--rollback" },
1828
+ { flag: "--no-checkpoint" }
1829
+ ];
1830
+ var APPEND_FLAG_CONTRACTS = [
1831
+ { flag: "--body", short: "-b" },
1832
+ { flag: "--author" },
1833
+ { flag: "--message" },
1834
+ { flag: "--force" }
1835
+ ];
1836
+ var CLAIM_FLAG_CONTRACTS = [
1837
+ { flag: "--author" },
1838
+ { flag: "--message" },
1839
+ { flag: "--force" }
1840
+ ];
1841
+ var RESTORE_FLAG_CONTRACTS = [
1842
+ { flag: "--author" },
1843
+ { flag: "--message" },
1844
+ { flag: "--force" }
1845
+ ];
1846
+ var DELETE_FLAG_CONTRACTS = [
1847
+ { flag: "--dry-run" },
1848
+ { flag: "--author" },
1849
+ { flag: "--message" },
1850
+ { flag: "--force" }
1851
+ ];
1852
+ var RELEASE_FLAG_CONTRACTS = [
1853
+ { flag: "--author" },
1854
+ { flag: "--message" },
1855
+ { flag: "--allow-audit-release" },
1856
+ { flag: "--force" }
1857
+ ];
1858
+ var START_TASK_FLAG_CONTRACTS = [
1859
+ { flag: "--author" },
1860
+ { flag: "--message" },
1861
+ { flag: "--force" }
1862
+ ];
1863
+ var PAUSE_TASK_FLAG_CONTRACTS = [
1864
+ { flag: "--author" },
1865
+ { flag: "--message" },
1866
+ { flag: "--force" }
1867
+ ];
1868
+ var CLOSE_TASK_FLAG_CONTRACTS = [
1869
+ { flag: "--author" },
1870
+ { flag: "--message" },
1871
+ { flag: "--validate-close" },
1872
+ { flag: "--force" }
1873
+ ];
1874
+ var SCHEDULING_SHORTCUT_COMMON_FLAG_CONTRACTS = [
1875
+ { flag: "--parent" },
1876
+ { flag: "--allow-missing-parent" },
1877
+ { flag: "--tags" },
1878
+ { flag: "--priority" },
1879
+ { flag: "--body" },
1880
+ { flag: "--description" },
1881
+ { flag: "--author" },
1882
+ { flag: "--message" }
1883
+ ];
1884
+ var MEET_FLAG_CONTRACTS = [
1885
+ { flag: "--start" },
1886
+ { flag: "--duration" },
1887
+ { flag: "--end" },
1888
+ { flag: "--location" },
1889
+ { flag: "--timezone" },
1890
+ { flag: "--all-day" },
1891
+ ...SCHEDULING_SHORTCUT_COMMON_FLAG_CONTRACTS
1892
+ ];
1893
+ var EVENT_FLAG_CONTRACTS = MEET_FLAG_CONTRACTS;
1894
+ var REMIND_FLAG_CONTRACTS = [
1895
+ { flag: "--at" },
1896
+ { flag: "--text" },
1897
+ ...SCHEDULING_SHORTCUT_COMMON_FLAG_CONTRACTS
1528
1898
  ];
1529
1899
  var TEST_FLAG_CONTRACTS = [
1530
1900
  { flag: "--add" },
@@ -1640,6 +2010,7 @@ var VALIDATE_FLAG_CONTRACTS = [
1640
2010
  ];
1641
2011
  var CREATE_FLAG_CONTRACTS = [
1642
2012
  { short: "-t", flag: "--title" },
2013
+ { flag: "--id" },
1643
2014
  { short: "-d", flag: "--description" },
1644
2015
  { flag: "--type" },
1645
2016
  { flag: "--template" },
@@ -2047,547 +2418,228 @@ var GET_FLAG_CONTRACTS = [
2047
2418
  { flag: "--tree_depth" },
2048
2419
  { flag: "--format" }
2049
2420
  ];
2050
- var GUIDE_FLAG_CONTRACTS = [
2051
- { flag: "--list" },
2052
- { flag: "--format" },
2053
- { flag: "--depth" }
2054
- ];
2055
- var DEPS_FLAG_CONTRACTS = [
2056
- { flag: "--format" },
2057
- { flag: "--max-depth" },
2058
- { flag: "--collapse" },
2059
- { flag: "--summary" }
2060
- ];
2061
- var EVAL_FLAG_CONTRACTS = [
2062
- { flag: "--mode" },
2063
- { flag: "--k" },
2064
- { flag: "--fail-under" },
2065
- { flag: "--queries" },
2066
- { flag: "--format" }
2067
- ];
2068
- var NEXT_FLAG_CONTRACTS = [
2069
- { flag: "--type" },
2070
- { flag: "--tag" },
2071
- { flag: "--priority" },
2072
- { flag: "--assignee" },
2073
- { flag: "--assignee-filter" },
2074
- { flag: "--assignee_filter" },
2075
- { flag: "--sprint" },
2076
- { flag: "--release" },
2077
- { flag: "--parent" },
2078
- { flag: "--limit" },
2079
- { flag: "--blocked-limit" },
2080
- { flag: "--blocked_limit" },
2081
- { flag: "--ready-only" },
2082
- { flag: "--ready_only" },
2083
- { flag: "--format" }
2084
- ];
2085
- var SEARCH_FLAG_CONTRACTS = [
2086
- { flag: "--mode" },
2087
- { flag: "--semantic" },
2088
- { flag: "--hybrid" },
2089
- { flag: "--match-mode" },
2090
- { flag: "--min-score" },
2091
- { flag: "--count" },
2092
- { flag: "--semantic-weight" },
2093
- { flag: "--include-linked" },
2094
- { flag: "--title-exact" },
2095
- { flag: "--phrase-exact" },
2096
- { flag: "--highlight" },
2097
- { flag: "--compact" },
2098
- { flag: "--full" },
2099
- { flag: "--fields", list: true },
2100
- { flag: "--format" },
2101
- { flag: "--limit" },
2102
- { flag: "--status", list: true },
2103
- { flag: "--type" },
2104
- { flag: "--tag", aliases: ["--tags"] },
2105
- { flag: "--priority" },
2106
- { flag: "--deadline-before" },
2107
- { flag: "--deadline-after" },
2108
- { flag: "--updated-after" },
2109
- { flag: "--updated-before" },
2110
- { flag: "--created-after" },
2111
- { flag: "--created-before" },
2112
- { flag: "--assignee" },
2113
- { flag: "--sprint" },
2114
- { flag: "--release" },
2115
- { flag: "--parent" },
2116
- ...GOVERNANCE_AND_CONTENT_FILTER_FLAG_CONTRACTS
2117
- ];
2118
- var CONTRACTS_FLAG_CONTRACTS = [
2119
- { flag: "--action" },
2120
- { flag: "--command" },
2121
- { flag: "--schema-only" },
2122
- { flag: "--flags-only" },
2123
- { flag: "--availability-only" },
2124
- { flag: "--runtime-only" },
2125
- { flag: "--active-only" },
2126
- { flag: "--full" }
2127
- ];
2128
- var COMPLETION_FLAG_CONTRACTS = [
2129
- { flag: "--eager-tags" }
2130
- ];
2131
- function toUniqueFlagContracts(contracts) {
2132
- const seen = /* @__PURE__ */ new Set();
2133
- const unique = [];
2134
- for (const contract of contracts) {
2135
- const aliasKey = (contract.aliases ?? []).join(",");
2136
- const key = `${contract.flag}|${contract.short ?? ""}|${aliasKey}`;
2137
- if (seen.has(key)) {
2138
- continue;
2139
- }
2140
- seen.add(key);
2141
- unique.push(contract);
2142
- }
2143
- return unique;
2144
- }
2145
- function withSubcommandGlobalFlags(contracts) {
2146
- return withFlagAliasMetadata(toUniqueFlagContracts([...SUBCOMMAND_GLOBAL_FLAG_CONTRACTS, ...contracts]));
2147
- }
2148
- var LIST_COMMAND_FLAG_ALIASES = [
2149
- "list",
2150
- "list-all",
2151
- "list-draft",
2152
- "list-open",
2153
- "list-in-progress",
2154
- "list-blocked",
2155
- "list-closed",
2156
- "list-canceled"
2157
- ];
2158
- var SUBCOMMAND_FLAG_CONTRACTS_BY_COMMAND = new Map([
2159
- ...LIST_COMMAND_FLAG_ALIASES.map((command) => [command, LIST_FILTER_FLAG_CONTRACTS]),
2160
- ["templates", CREATE_FLAG_CONTRACTS],
2161
- ["cal", CALENDAR_FLAG_CONTRACTS],
2162
- ["ctx", CONTEXT_FLAG_CONTRACTS],
2163
- ["test-runs-worker", TEST_RUNS_FLAG_CONTRACTS],
2164
- ["init", INIT_FLAG_CONTRACTS],
2165
- ["config", CONFIG_FLAG_CONTRACTS],
2166
- ["extension", EXTENSION_FLAG_CONTRACTS],
2167
- // `--declarative` is package-only (see PACKAGE_FLAG_CONTRACTS).
2168
- ["package", PACKAGE_FLAG_CONTRACTS],
2169
- ["packages", PACKAGE_FLAG_CONTRACTS],
2170
- ["install", INSTALL_FLAG_CONTRACTS],
2171
- ["upgrade", UPGRADE_FLAG_CONTRACTS],
2172
- ["create", CREATE_FLAG_CONTRACTS],
2173
- ["copy", COPY_FLAG_CONTRACTS],
2174
- ["focus", FOCUS_FLAG_CONTRACTS],
2175
- ["aggregate", AGGREGATE_FLAG_CONTRACTS],
2176
- ["dedupe-audit", DEDUPE_AUDIT_FLAG_CONTRACTS],
2177
- ["dedupe-merge", DEDUPE_MERGE_FLAG_CONTRACTS],
2178
- ["normalize", NORMALIZE_FLAG_CONTRACTS],
2179
- ["calendar", CALENDAR_FLAG_CONTRACTS],
2180
- ["context", CONTEXT_FLAG_CONTRACTS],
2181
- ["get", GET_FLAG_CONTRACTS],
2182
- ["guide", GUIDE_FLAG_CONTRACTS],
2183
- ["search", SEARCH_FLAG_CONTRACTS],
2184
- ["next", NEXT_FLAG_CONTRACTS],
2185
- ["eval", EVAL_FLAG_CONTRACTS],
2186
- ["history", HISTORY_FLAG_CONTRACTS],
2187
- ["history-redact", HISTORY_REDACT_FLAG_CONTRACTS],
2188
- ["history-repair", HISTORY_REPAIR_FLAG_CONTRACTS],
2189
- ["history-compact", HISTORY_COMPACT_FLAG_CONTRACTS],
2190
- ["schema", SCHEMA_FLAG_CONTRACTS],
2191
- ["profile", PROFILE_FLAG_CONTRACTS],
2192
- ["plan", PLAN_FLAG_CONTRACTS],
2193
- ["activity", ACTIVITY_FLAG_CONTRACTS],
2194
- ["restore", RESTORE_FLAG_CONTRACTS],
2195
- ["update", UPDATE_FLAG_CONTRACTS],
2196
- ["update-many", UPDATE_MANY_FLAG_CONTRACTS],
2197
- ["close", CLOSE_FLAG_CONTRACTS],
2198
- ["close-many", CLOSE_MANY_FLAG_CONTRACTS],
2199
- ["delete", DELETE_FLAG_CONTRACTS],
2200
- ["append", APPEND_FLAG_CONTRACTS],
2201
- ["comments", COMMENTS_FLAG_CONTRACTS],
2202
- ["comments-audit", COMMENTS_AUDIT_FLAG_CONTRACTS],
2203
- ["notes", NOTES_FLAG_CONTRACTS],
2204
- ["learnings", LEARNINGS_FLAG_CONTRACTS],
2205
- ["files", FILES_FLAG_CONTRACTS],
2206
- ["docs", DOCS_FLAG_CONTRACTS],
2207
- ["deps", DEPS_FLAG_CONTRACTS],
2208
- ["test", TEST_FLAG_CONTRACTS],
2209
- ["test-all", TEST_ALL_FLAG_CONTRACTS],
2210
- ["telemetry", TELEMETRY_FLAG_CONTRACTS],
2211
- ["health", HEALTH_FLAG_CONTRACTS],
2212
- ["validate", VALIDATE_FLAG_CONTRACTS],
2213
- ["gc", GC_FLAG_CONTRACTS],
2214
- ["stats", STATS_FLAG_CONTRACTS],
2215
- ["contracts", CONTRACTS_FLAG_CONTRACTS],
2216
- ["completion", COMPLETION_FLAG_CONTRACTS],
2217
- ["claim", CLAIM_FLAG_CONTRACTS],
2218
- ["release", RELEASE_FLAG_CONTRACTS],
2219
- ["start-task", START_TASK_FLAG_CONTRACTS],
2220
- ["pause-task", PAUSE_TASK_FLAG_CONTRACTS],
2221
- ["close-task", CLOSE_TASK_FLAG_CONTRACTS],
2222
- ["meet", MEET_FLAG_CONTRACTS],
2223
- ["event", EVENT_FLAG_CONTRACTS],
2224
- ["remind", REMIND_FLAG_CONTRACTS]
2225
- ]);
2226
- var EXTENSION_LIFECYCLE_FLAG_CONTRACTS_BY_SUBCOMMAND = /* @__PURE__ */ new Map([
2227
- ["install", EXTENSION_INSTALL_FLAG_CONTRACTS],
2228
- ["uninstall", EXTENSION_UNINSTALL_FLAG_CONTRACTS],
2229
- ["explore", EXTENSION_EXPLORE_FLAG_CONTRACTS],
2230
- ["manage", EXTENSION_MANAGE_FLAG_CONTRACTS],
2231
- ["describe", EXTENSION_DESCRIBE_FLAG_CONTRACTS],
2232
- ["reload", EXTENSION_RELOAD_FLAG_CONTRACTS],
2233
- ["doctor", EXTENSION_DOCTOR_FLAG_CONTRACTS],
2234
- ["catalog", EXTENSION_CATALOG_FLAG_CONTRACTS],
2235
- ["adopt", EXTENSION_ADOPT_FLAG_CONTRACTS],
2236
- ["adopt-all", EXTENSION_ADOPT_ALL_FLAG_CONTRACTS],
2237
- ["activate", EXTENSION_ACTIVATE_FLAG_CONTRACTS],
2238
- ["deactivate", EXTENSION_DEACTIVATE_FLAG_CONTRACTS]
2239
- ]);
2240
- function normalizeCommandNameForContracts(commandName) {
2241
- if (typeof commandName !== "string") {
2242
- return "";
2243
- }
2244
- return commandName.trim().toLowerCase();
2245
- }
2246
- function resolveExtensionLifecycleFlagContracts(rootCommand, lifecycleSubcommand) {
2247
- if (lifecycleSubcommand === "init") {
2248
- return rootCommand === "extension" ? EXTENSION_INIT_FLAG_CONTRACTS : PACKAGE_INIT_FLAG_CONTRACTS;
2249
- }
2250
- return EXTENSION_LIFECYCLE_FLAG_CONTRACTS_BY_SUBCOMMAND.get(lifecycleSubcommand) ?? [];
2251
- }
2252
- function resolveSubcommandFlagContractsForCommand(commandName) {
2253
- const normalized = normalizeCommandNameForContracts(commandName);
2254
- if (normalized.length === 0) {
2255
- return withSubcommandGlobalFlags([]);
2256
- }
2257
- const [rootCommand, lifecycleSubcommand, ...extraParts] = normalized.split(/\s+/);
2258
- if ((rootCommand === "extension" || rootCommand === "package" || rootCommand === "packages") && lifecycleSubcommand !== void 0 && extraParts.length === 0) {
2259
- return withSubcommandGlobalFlags(resolveExtensionLifecycleFlagContracts(rootCommand, lifecycleSubcommand));
2260
- }
2261
- return withSubcommandGlobalFlags(SUBCOMMAND_FLAG_CONTRACTS_BY_COMMAND.get(normalized) ?? []);
2262
- }
2263
-
2264
- // dist/sdk/cli-contracts/tool-option-contracts.js
2265
- !(function() {
2266
- try {
2267
- var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
2268
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e6388be4-3b86-52cb-8bd3-9fafaed43195");
2269
- } catch (e2) {
2270
- }
2271
- })();
2272
- function cloneOptionContracts(contracts) {
2273
- return contracts.map((contract) => ({ ...contract }));
2274
- }
2275
- var TOOL_ITEM_BASE_FILTER_OPTION_CONTRACTS = [
2276
- { param: "status", flag: "--status" },
2277
- { param: "type", flag: "--type" },
2278
- { param: "tag", flag: "--tag" },
2279
- { param: "priority", flag: "--priority" },
2280
- { param: "deadlineBefore", flag: "--deadline-before" },
2281
- { param: "deadlineAfter", flag: "--deadline-after" }
2282
- ];
2283
- var TOOL_ITEM_WINDOW_FILTER_OPTION_CONTRACTS = [
2284
- { param: "updatedAfter", flag: "--updated-after" },
2285
- { param: "updatedBefore", flag: "--updated-before" },
2286
- { param: "createdAfter", flag: "--created-after" },
2287
- { param: "createdBefore", flag: "--created-before" }
2288
- ];
2289
- var TOOL_ITEM_RELATION_FILTER_OPTION_CONTRACTS = [
2290
- { param: "assignee", flag: "--assignee" },
2291
- { param: "assigneeFilter", flag: "--assignee-filter" },
2292
- { param: "parent", flag: "--parent" },
2293
- { param: "sprint", flag: "--sprint" },
2294
- { param: "release", flag: "--release" }
2295
- ];
2296
- var TOOL_SEARCH_RELATION_FILTER_OPTION_CONTRACTS = [
2297
- { param: "assignee", flag: "--assignee" },
2298
- { param: "sprint", flag: "--sprint" },
2299
- { param: "release", flag: "--release" },
2300
- { param: "parent", flag: "--parent" }
2301
- ];
2302
- var TOOL_BASIC_ITEM_FILTER_OPTION_CONTRACTS = [
2303
- ...TOOL_ITEM_BASE_FILTER_OPTION_CONTRACTS,
2304
- ...TOOL_ITEM_RELATION_FILTER_OPTION_CONTRACTS
2305
- ];
2306
- var TOOL_GOVERNANCE_MISSING_OPTION_CONTRACTS = [
2307
- { param: "filterReviewerMissing", flag: "--filter-reviewer-missing" },
2308
- { param: "filterRiskMissing", flag: "--filter-risk-missing" },
2309
- { param: "filterConfidenceMissing", flag: "--filter-confidence-missing" },
2310
- { param: "filterSprintMissing", flag: "--filter-sprint-missing" },
2311
- { param: "filterReleaseMissing", flag: "--filter-release-missing" }
2312
- ];
2313
- var TOOL_CONTENT_PRESENCE_OPTION_CONTRACTS = [
2314
- { param: "hasNotes", flag: "--has-notes" },
2315
- { param: "noNotes", flag: "--no-notes" },
2316
- { param: "hasLearnings", flag: "--has-learnings" },
2317
- { param: "noLearnings", flag: "--no-learnings" },
2318
- { param: "hasFiles", flag: "--has-files" },
2319
- { param: "noFiles", flag: "--no-files" },
2320
- { param: "filterFilesMissing", flag: "--filter-files-missing" },
2321
- { param: "hasDocs", flag: "--has-docs" },
2322
- { param: "noDocs", flag: "--no-docs" },
2323
- { param: "filterDocsMissing", flag: "--filter-docs-missing" },
2324
- { param: "hasTests", flag: "--has-tests" },
2325
- { param: "noTests", flag: "--no-tests" },
2326
- { param: "hasComments", flag: "--has-comments" },
2327
- { param: "noComments", flag: "--no-comments" },
2328
- { param: "hasDeps", flag: "--has-deps" },
2329
- { param: "noDeps", flag: "--no-deps" },
2330
- { param: "hasBody", flag: "--has-body" },
2331
- { param: "emptyBody", flag: "--empty-body" },
2332
- { param: "hasLinkedCommand", flag: "--has-linked-command" },
2333
- { param: "noLinkedCommand", flag: "--no-linked-command" }
2334
- ];
2335
- var TOOL_LIST_FILTER_OPTION_CONTRACTS = [
2336
- ...cloneOptionContracts(TOOL_ITEM_BASE_FILTER_OPTION_CONTRACTS),
2337
- ...cloneOptionContracts(TOOL_ITEM_WINDOW_FILTER_OPTION_CONTRACTS),
2338
- { param: "ids", flag: "--ids" },
2339
- ...cloneOptionContracts(TOOL_ITEM_RELATION_FILTER_OPTION_CONTRACTS),
2340
- { param: "filterAcMissing", flag: "--filter-ac-missing" },
2341
- { param: "filterEstimatesMissing", flag: "--filter-estimates-missing" },
2342
- { param: "filterResolutionMissing", flag: "--filter-resolution-missing" },
2343
- { param: "filterMetadataMissing", flag: "--filter-metadata-missing" },
2344
- ...cloneOptionContracts(TOOL_GOVERNANCE_MISSING_OPTION_CONTRACTS),
2345
- ...cloneOptionContracts(TOOL_CONTENT_PRESENCE_OPTION_CONTRACTS),
2346
- { param: "limit", flag: "--limit" },
2347
- { param: "offset", flag: "--offset" },
2348
- { param: "fields", flag: "--fields" },
2349
- { param: "sort", flag: "--sort" },
2350
- { param: "order", flag: "--order" },
2351
- { param: "tree", flag: "--tree" },
2352
- { param: "treeDepth", flag: "--tree-depth" }
2353
- ];
2354
- var TOOL_AGGREGATE_OPTION_CONTRACTS = [
2355
- { param: "groupBy", flag: "--group-by" },
2356
- { param: "sum", flag: "--sum" },
2357
- { param: "avg", flag: "--avg" },
2358
- ...cloneOptionContracts(TOOL_BASIC_ITEM_FILTER_OPTION_CONTRACTS)
2359
- ];
2360
- var TOOL_DEDUPE_AUDIT_OPTION_CONTRACTS = [
2361
- { param: "mode", flag: "--mode" },
2362
- { param: "limit", flag: "--limit" },
2363
- { param: "threshold", flag: "--threshold" },
2364
- ...cloneOptionContracts(TOOL_BASIC_ITEM_FILTER_OPTION_CONTRACTS)
2365
- ];
2366
- var TOOL_SEARCH_FILTER_OPTION_CONTRACTS = [
2367
- { param: "matchMode", flag: "--match-mode" },
2368
- { param: "minScore", flag: "--min-score" },
2369
- { param: "count", flag: "--count", booleanish: true },
2370
- { param: "semanticWeight", flag: "--semantic-weight" },
2371
- ...cloneOptionContracts(TOOL_ITEM_BASE_FILTER_OPTION_CONTRACTS),
2372
- ...cloneOptionContracts(TOOL_ITEM_WINDOW_FILTER_OPTION_CONTRACTS),
2373
- ...cloneOptionContracts(TOOL_SEARCH_RELATION_FILTER_OPTION_CONTRACTS),
2374
- ...cloneOptionContracts(TOOL_GOVERNANCE_MISSING_OPTION_CONTRACTS),
2375
- ...cloneOptionContracts(TOOL_CONTENT_PRESENCE_OPTION_CONTRACTS),
2376
- { param: "fields", flag: "--fields" },
2377
- { param: "limit", flag: "--limit" }
2378
- ];
2379
- var TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS = [
2380
- { param: "parent", flag: "--parent" },
2381
- { param: "reviewer", flag: "--reviewer" },
2382
- { param: "risk", flag: "--risk" },
2383
- { param: "confidence", flag: "--confidence" },
2384
- { param: "sprint", flag: "--sprint" },
2385
- { param: "release", flag: "--release" },
2386
- { param: "blockedBy", flag: "--blocked-by" },
2387
- { param: "blockedReason", flag: "--blocked-reason" },
2388
- { param: "unblockNote", flag: "--unblock-note" },
2389
- { param: "reporter", flag: "--reporter" },
2390
- { param: "severity", flag: "--severity" },
2391
- { param: "environment", flag: "--environment" },
2392
- { param: "reproSteps", flag: "--repro-steps" },
2393
- { param: "resolution", flag: "--resolution" },
2394
- { param: "expectedResult", flag: "--expected-result" },
2395
- { param: "actualResult", flag: "--actual-result" },
2396
- { param: "affectedVersion", flag: "--affected-version" },
2397
- { param: "fixedVersion", flag: "--fixed-version" },
2398
- { param: "component", flag: "--component" },
2399
- { param: "regression", flag: "--regression", booleanish: true },
2400
- { param: "customerImpact", flag: "--customer-impact" },
2401
- { param: "definitionOfReady", flag: "--definition-of-ready", allowEmpty: true },
2402
- { param: "order", flag: "--order" },
2403
- { param: "goal", flag: "--goal" },
2404
- { param: "objective", flag: "--objective" },
2405
- { param: "value", flag: "--value" },
2406
- { param: "impact", flag: "--impact" },
2407
- { param: "outcome", flag: "--outcome" },
2408
- { param: "whyNow", flag: "--why-now" }
2409
- ];
2410
- var TOOL_CREATE_OPTION_CONTRACTS = [
2411
- { param: "title", flag: "--title" },
2412
- { param: "description", flag: "--description", allowEmpty: true },
2413
- { param: "type", flag: "--type" },
2414
- { param: "template", flag: "--template" },
2415
- { param: "createMode", flag: "--create-mode" },
2416
- { param: "schedulePreset", flag: "--schedule-preset" },
2417
- { param: "status", flag: "--status" },
2418
- { param: "priority", flag: "--priority" },
2419
- { param: "tags", flag: "--tags", allowEmpty: true },
2420
- { param: "addTags", flag: "--add-tags", repeatable: true },
2421
- { param: "body", flag: "--body", allowEmpty: true },
2422
- { param: "deadline", flag: "--deadline" },
2423
- { param: "estimate", flag: "--estimate" },
2424
- { param: "acceptanceCriteria", flag: "--acceptance-criteria", allowEmpty: true },
2425
- { param: "author", flag: "--author" },
2426
- { param: "message", flag: "--message", allowEmpty: true },
2427
- { param: "assignee", flag: "--assignee" },
2428
- { param: "allowMissingParent", flag: "--allow-missing-parent" },
2429
- { param: "reminder", flag: "--reminder", repeatable: true },
2430
- { param: "event", flag: "--event", repeatable: true },
2431
- { param: "typeOption", flag: "--type-option", repeatable: true },
2432
- { param: "field", flag: "--field", repeatable: true },
2433
- { param: "dep", flag: "--dep", repeatable: true },
2434
- { param: "comment", flag: "--comment", repeatable: true },
2435
- { param: "note", flag: "--note", repeatable: true },
2436
- { param: "learning", flag: "--learning", repeatable: true },
2437
- { param: "linkedFile", flag: "--file", repeatable: true },
2438
- { param: "linkedTest", flag: "--test", repeatable: true },
2439
- { param: "doc", flag: "--doc", repeatable: true },
2440
- { param: "unset", flag: "--unset", repeatable: true },
2441
- { param: "clearDeps", flag: "--clear-deps" },
2442
- { param: "clearComments", flag: "--clear-comments" },
2443
- { param: "clearNotes", flag: "--clear-notes" },
2444
- { param: "clearLearnings", flag: "--clear-learnings" },
2445
- { param: "clearFiles", flag: "--clear-files" },
2446
- { param: "clearTests", flag: "--clear-tests" },
2447
- { param: "clearDocs", flag: "--clear-docs" },
2448
- { param: "clearReminders", flag: "--clear-reminders" },
2449
- { param: "clearEvents", flag: "--clear-events" },
2450
- { param: "clearTypeOptions", flag: "--clear-type-options" }
2451
- ];
2452
- var TOOL_UPDATE_OPTION_CONTRACTS = [
2453
- { param: "title", flag: "--title" },
2454
- { param: "description", flag: "--description", allowEmpty: true },
2455
- { param: "body", flag: "--body", allowEmpty: true },
2456
- { param: "status", flag: "--status" },
2457
- { param: "closeReason", flag: "--close-reason" },
2458
- { param: "priority", flag: "--priority" },
2459
- { param: "type", flag: "--type" },
2460
- { param: "tags", flag: "--tags", allowEmpty: true },
2461
- { param: "addTags", flag: "--add-tags", repeatable: true },
2462
- { param: "removeTags", flag: "--remove-tags", repeatable: true },
2463
- { param: "deadline", flag: "--deadline" },
2464
- { param: "estimate", flag: "--estimate" },
2465
- { param: "acceptanceCriteria", flag: "--acceptance-criteria", allowEmpty: true },
2466
- { param: "author", flag: "--author" },
2467
- { param: "message", flag: "--message", allowEmpty: true },
2468
- { param: "assignee", flag: "--assignee" },
2469
- { param: "dep", flag: "--dep", repeatable: true },
2470
- { param: "depRemove", flag: "--dep-remove", repeatable: true },
2471
- { param: "replaceDeps", flag: "--replace-deps" },
2472
- { param: "replaceTests", flag: "--replace-tests" },
2473
- { param: "comment", flag: "--comment", repeatable: true },
2474
- { param: "note", flag: "--note", repeatable: true },
2475
- { param: "learning", flag: "--learning", repeatable: true },
2476
- { param: "linkedFile", flag: "--file", repeatable: true },
2477
- { param: "linkedTest", flag: "--test", repeatable: true },
2478
- { param: "doc", flag: "--doc", repeatable: true },
2479
- { param: "reminder", flag: "--reminder", repeatable: true },
2480
- { param: "event", flag: "--event", repeatable: true },
2481
- { param: "typeOption", flag: "--type-option", repeatable: true },
2482
- { param: "field", flag: "--field", repeatable: true },
2483
- { param: "unset", flag: "--unset", repeatable: true },
2484
- { param: "clearDeps", flag: "--clear-deps" },
2485
- { param: "clearComments", flag: "--clear-comments" },
2486
- { param: "clearNotes", flag: "--clear-notes" },
2487
- { param: "clearLearnings", flag: "--clear-learnings" },
2488
- { param: "clearFiles", flag: "--clear-files" },
2489
- { param: "clearTests", flag: "--clear-tests" },
2490
- { param: "clearDocs", flag: "--clear-docs" },
2491
- { param: "clearReminders", flag: "--clear-reminders" },
2492
- { param: "clearEvents", flag: "--clear-events" },
2493
- { param: "clearTypeOptions", flag: "--clear-type-options" },
2494
- { param: "allowAuditUpdate", flag: "--allow-audit-update" },
2495
- { param: "allowAuditDepUpdate", flag: "--allow-audit-dep-update" }
2496
- ];
2497
- var TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACTS = [
2498
- { param: "filterStatus", flag: "--filter-status" },
2499
- { param: "filterType", flag: "--filter-type" },
2500
- { param: "filterTag", flag: "--filter-tag" },
2501
- { param: "filterPriority", flag: "--filter-priority" },
2502
- { param: "filterDeadlineBefore", flag: "--filter-deadline-before" },
2503
- { param: "filterDeadlineAfter", flag: "--filter-deadline-after" },
2504
- { param: "filterUpdatedAfter", flag: "--filter-updated-after" },
2505
- { param: "filterUpdatedBefore", flag: "--filter-updated-before" },
2506
- { param: "filterCreatedAfter", flag: "--filter-created-after" },
2507
- { param: "filterCreatedBefore", flag: "--filter-created-before" },
2508
- { param: "filterAssignee", flag: "--filter-assignee" },
2509
- { param: "filterAssigneeFilter", flag: "--filter-assignee-filter" },
2510
- { param: "filterParent", flag: "--filter-parent" },
2511
- { param: "filterSprint", flag: "--filter-sprint" },
2512
- { param: "filterRelease", flag: "--filter-release" },
2513
- { param: "filterReviewerMissing", flag: "--filter-reviewer-missing" },
2514
- { param: "filterRiskMissing", flag: "--filter-risk-missing" },
2515
- { param: "filterConfidenceMissing", flag: "--filter-confidence-missing" },
2516
- { param: "filterSprintMissing", flag: "--filter-sprint-missing" },
2517
- { param: "filterReleaseMissing", flag: "--filter-release-missing" },
2518
- { param: "filterHasNotes", flag: "--filter-has-notes" },
2519
- { param: "filterNoNotes", flag: "--filter-no-notes" },
2520
- { param: "filterHasLearnings", flag: "--filter-has-learnings" },
2521
- { param: "filterNoLearnings", flag: "--filter-no-learnings" },
2522
- { param: "filterHasFiles", flag: "--filter-has-files" },
2523
- { param: "filterNoFiles", flag: "--filter-no-files" },
2524
- { param: "filterHasDocs", flag: "--filter-has-docs" },
2525
- { param: "filterNoDocs", flag: "--filter-no-docs" },
2526
- { param: "filterHasTests", flag: "--filter-has-tests" },
2527
- { param: "filterNoTests", flag: "--filter-no-tests" },
2528
- { param: "filterHasComments", flag: "--filter-has-comments" },
2529
- { param: "filterNoComments", flag: "--filter-no-comments" },
2530
- { param: "filterHasDeps", flag: "--filter-has-deps" },
2531
- { param: "filterNoDeps", flag: "--filter-no-deps" },
2532
- { param: "filterHasBody", flag: "--filter-has-body" },
2533
- { param: "filterEmptyBody", flag: "--filter-empty-body" },
2534
- { param: "filterHasLinkedCommand", flag: "--filter-has-linked-command" },
2535
- { param: "filterNoLinkedCommand", flag: "--filter-no-linked-command" },
2536
- { param: "ids", flag: "--ids" },
2537
- { param: "limit", flag: "--limit" },
2538
- { param: "offset", flag: "--offset" }
2539
- ];
2540
- var TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS = [
2541
- ...cloneOptionContracts(TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACTS)
2421
+ var GUIDE_FLAG_CONTRACTS = [
2422
+ { flag: "--list" },
2423
+ { flag: "--format" },
2424
+ { flag: "--depth" }
2542
2425
  ];
2543
- var TOOL_NORMALIZE_FILTER_OPTION_CONTRACTS = [
2544
- { param: "filterStatus", flag: "--filter-status" },
2545
- { param: "filterType", flag: "--filter-type" },
2546
- { param: "filterTag", flag: "--filter-tag" },
2547
- { param: "filterPriority", flag: "--filter-priority" },
2548
- { param: "filterDeadlineBefore", flag: "--filter-deadline-before" },
2549
- { param: "filterDeadlineAfter", flag: "--filter-deadline-after" },
2550
- { param: "filterAssignee", flag: "--filter-assignee" },
2551
- { param: "filterAssigneeFilter", flag: "--filter-assignee-filter" },
2552
- { param: "filterParent", flag: "--filter-parent" },
2553
- { param: "filterSprint", flag: "--filter-sprint" },
2554
- { param: "filterRelease", flag: "--filter-release" },
2555
- { param: "limit", flag: "--limit" },
2556
- { param: "offset", flag: "--offset" }
2426
+ var DEPS_FLAG_CONTRACTS = [
2427
+ { flag: "--format" },
2428
+ { flag: "--max-depth" },
2429
+ { flag: "--collapse" },
2430
+ { flag: "--summary" }
2557
2431
  ];
2558
- var TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS = [
2559
- ...cloneOptionContracts(TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACTS)
2432
+ var EVAL_FLAG_CONTRACTS = [
2433
+ { flag: "--mode" },
2434
+ { flag: "--k" },
2435
+ { flag: "--fail-under" },
2436
+ { flag: "--queries" },
2437
+ { flag: "--format" }
2560
2438
  ];
2561
- var TOOL_ACTIVITY_OPTION_CONTRACTS = [
2562
- { param: "id", flag: "--id" },
2563
- { param: "op", flag: "--op" },
2564
- { param: "author", flag: "--author" },
2565
- { param: "from", flag: "--from" },
2566
- { param: "to", flag: "--to" },
2567
- { param: "limit", flag: "--limit" },
2568
- { param: "compact", flag: "--compact" },
2569
- { param: "full", flag: "--full" }
2439
+ var NEXT_FLAG_CONTRACTS = [
2440
+ { flag: "--type" },
2441
+ { flag: "--tag" },
2442
+ { flag: "--priority" },
2443
+ { flag: "--assignee" },
2444
+ { flag: "--assignee-filter" },
2445
+ { flag: "--assignee_filter" },
2446
+ { flag: "--sprint" },
2447
+ { flag: "--release" },
2448
+ { flag: "--parent" },
2449
+ { flag: "--limit" },
2450
+ { flag: "--blocked-limit" },
2451
+ { flag: "--blocked_limit" },
2452
+ { flag: "--ready-only" },
2453
+ { flag: "--ready_only" },
2454
+ { flag: "--format" }
2570
2455
  ];
2571
- var TOOL_CONTEXT_OPTION_CONTRACTS = [
2572
- { param: "date", flag: "--date" },
2573
- { param: "from", flag: "--from" },
2574
- { param: "to", flag: "--to" },
2575
- { param: "type", flag: "--type" },
2576
- { param: "tag", flag: "--tag" },
2577
- { param: "priority", flag: "--priority" },
2578
- { param: "assignee", flag: "--assignee" },
2579
- { param: "assigneeFilter", flag: "--assignee-filter" },
2580
- { param: "sprint", flag: "--sprint" },
2581
- { param: "release", flag: "--release" },
2582
- { param: "parent", flag: "--parent" },
2583
- { param: "limit", flag: "--limit" },
2584
- { param: "format", flag: "--format" },
2585
- { param: "depth", flag: "--depth" },
2586
- { param: "fields", flag: "--fields" },
2587
- { param: "section", flag: "--section", repeatable: true },
2588
- { param: "activityLimit", flag: "--activity-limit" },
2589
- { param: "staleThreshold", flag: "--stale-threshold" }
2456
+ var SEARCH_FLAG_CONTRACTS = [
2457
+ { flag: "--mode" },
2458
+ { flag: "--semantic" },
2459
+ { flag: "--hybrid" },
2460
+ { flag: "--match-mode" },
2461
+ { flag: "--min-score" },
2462
+ { flag: "--count" },
2463
+ { flag: "--semantic-weight" },
2464
+ { flag: "--include-linked" },
2465
+ { flag: "--title-exact" },
2466
+ { flag: "--phrase-exact" },
2467
+ { flag: "--highlight" },
2468
+ { flag: "--compact" },
2469
+ { flag: "--full" },
2470
+ { flag: "--fields", list: true },
2471
+ { flag: "--format" },
2472
+ { flag: "--limit" },
2473
+ { flag: "--status", list: true },
2474
+ { flag: "--type" },
2475
+ { flag: "--tag", aliases: ["--tags"] },
2476
+ { flag: "--priority" },
2477
+ { flag: "--deadline-before" },
2478
+ { flag: "--deadline-after" },
2479
+ { flag: "--updated-after" },
2480
+ { flag: "--updated-before" },
2481
+ { flag: "--created-after" },
2482
+ { flag: "--created-before" },
2483
+ { flag: "--assignee" },
2484
+ { flag: "--sprint" },
2485
+ { flag: "--release" },
2486
+ { flag: "--parent" },
2487
+ ...GOVERNANCE_AND_CONTENT_FILTER_FLAG_CONTRACTS
2488
+ ];
2489
+ var CONTRACTS_FLAG_CONTRACTS = [
2490
+ { flag: "--action" },
2491
+ { flag: "--command" },
2492
+ { flag: "--schema-only" },
2493
+ { flag: "--flags-only" },
2494
+ { flag: "--availability-only" },
2495
+ { flag: "--runtime-only" },
2496
+ { flag: "--active-only" },
2497
+ { flag: "--full" }
2498
+ ];
2499
+ var COMPLETION_FLAG_CONTRACTS = [
2500
+ { flag: "--eager-tags" }
2501
+ ];
2502
+ function toUniqueFlagContracts(contracts) {
2503
+ const seen = /* @__PURE__ */ new Set();
2504
+ const unique = [];
2505
+ for (const contract of contracts) {
2506
+ const aliasKey = (contract.aliases ?? []).join(",");
2507
+ const key = `${contract.flag}|${contract.short ?? ""}|${aliasKey}`;
2508
+ if (seen.has(key)) {
2509
+ continue;
2510
+ }
2511
+ seen.add(key);
2512
+ unique.push(contract);
2513
+ }
2514
+ return unique;
2515
+ }
2516
+ function withSubcommandGlobalFlags(contracts) {
2517
+ return withFlagAliasMetadata(toUniqueFlagContracts([...SUBCOMMAND_GLOBAL_FLAG_CONTRACTS, ...contracts]));
2518
+ }
2519
+ var LIST_COMMAND_FLAG_ALIASES = [
2520
+ "list",
2521
+ "list-all",
2522
+ "list-draft",
2523
+ "list-open",
2524
+ "list-in-progress",
2525
+ "list-blocked",
2526
+ "list-closed",
2527
+ "list-canceled"
2590
2528
  ];
2529
+ var SUBCOMMAND_FLAG_CONTRACTS_BY_COMMAND = new Map([
2530
+ ...LIST_COMMAND_FLAG_ALIASES.map((command) => [command, LIST_FILTER_FLAG_CONTRACTS]),
2531
+ ["templates", CREATE_FLAG_CONTRACTS],
2532
+ ["cal", CALENDAR_FLAG_CONTRACTS],
2533
+ ["ctx", CONTEXT_FLAG_CONTRACTS],
2534
+ ["test-runs-worker", TEST_RUNS_FLAG_CONTRACTS],
2535
+ ["init", INIT_FLAG_CONTRACTS],
2536
+ ["config", CONFIG_FLAG_CONTRACTS],
2537
+ ["extension", EXTENSION_FLAG_CONTRACTS],
2538
+ // `--declarative` is package-only (see PACKAGE_FLAG_CONTRACTS).
2539
+ ["package", PACKAGE_FLAG_CONTRACTS],
2540
+ ["packages", PACKAGE_FLAG_CONTRACTS],
2541
+ ["install", INSTALL_FLAG_CONTRACTS],
2542
+ ["upgrade", UPGRADE_FLAG_CONTRACTS],
2543
+ ["create", CREATE_FLAG_CONTRACTS],
2544
+ ["copy", COPY_FLAG_CONTRACTS],
2545
+ ["focus", FOCUS_FLAG_CONTRACTS],
2546
+ ["aggregate", AGGREGATE_FLAG_CONTRACTS],
2547
+ ["dedupe-audit", DEDUPE_AUDIT_FLAG_CONTRACTS],
2548
+ ["dedupe-merge", DEDUPE_MERGE_FLAG_CONTRACTS],
2549
+ ["normalize", NORMALIZE_FLAG_CONTRACTS],
2550
+ ["calendar", CALENDAR_FLAG_CONTRACTS],
2551
+ ["context", CONTEXT_FLAG_CONTRACTS],
2552
+ ["get", GET_FLAG_CONTRACTS],
2553
+ ["guide", GUIDE_FLAG_CONTRACTS],
2554
+ ["search", SEARCH_FLAG_CONTRACTS],
2555
+ ["next", NEXT_FLAG_CONTRACTS],
2556
+ ["eval", EVAL_FLAG_CONTRACTS],
2557
+ ["history", HISTORY_FLAG_CONTRACTS],
2558
+ ["history-redact", HISTORY_REDACT_FLAG_CONTRACTS],
2559
+ ["history-repair", HISTORY_REPAIR_FLAG_CONTRACTS],
2560
+ ["history-compact", HISTORY_COMPACT_FLAG_CONTRACTS],
2561
+ ["schema", SCHEMA_FLAG_CONTRACTS],
2562
+ ["profile", PROFILE_FLAG_CONTRACTS],
2563
+ ["plan", PLAN_FLAG_CONTRACTS],
2564
+ ["activity", ACTIVITY_FLAG_CONTRACTS],
2565
+ ["restore", RESTORE_FLAG_CONTRACTS],
2566
+ ["update", UPDATE_FLAG_CONTRACTS],
2567
+ ["update-many", UPDATE_MANY_FLAG_CONTRACTS],
2568
+ ["close", CLOSE_FLAG_CONTRACTS],
2569
+ ["close-many", CLOSE_MANY_FLAG_CONTRACTS],
2570
+ ["delete", DELETE_FLAG_CONTRACTS],
2571
+ ["append", APPEND_FLAG_CONTRACTS],
2572
+ ["comments", COMMENTS_FLAG_CONTRACTS],
2573
+ ["comments-audit", COMMENTS_AUDIT_FLAG_CONTRACTS],
2574
+ ["notes", NOTES_FLAG_CONTRACTS],
2575
+ ["learnings", LEARNINGS_FLAG_CONTRACTS],
2576
+ ["files", FILES_FLAG_CONTRACTS],
2577
+ ["docs", DOCS_FLAG_CONTRACTS],
2578
+ ["deps", DEPS_FLAG_CONTRACTS],
2579
+ ["test", TEST_FLAG_CONTRACTS],
2580
+ ["test-all", TEST_ALL_FLAG_CONTRACTS],
2581
+ ["telemetry", TELEMETRY_FLAG_CONTRACTS],
2582
+ ["health", HEALTH_FLAG_CONTRACTS],
2583
+ ["validate", VALIDATE_FLAG_CONTRACTS],
2584
+ ["gc", GC_FLAG_CONTRACTS],
2585
+ ["stats", STATS_FLAG_CONTRACTS],
2586
+ ["contracts", CONTRACTS_FLAG_CONTRACTS],
2587
+ ["completion", COMPLETION_FLAG_CONTRACTS],
2588
+ ["claim", CLAIM_FLAG_CONTRACTS],
2589
+ ["release", RELEASE_FLAG_CONTRACTS],
2590
+ ["start-task", START_TASK_FLAG_CONTRACTS],
2591
+ ["pause-task", PAUSE_TASK_FLAG_CONTRACTS],
2592
+ ["close-task", CLOSE_TASK_FLAG_CONTRACTS],
2593
+ ["meet", MEET_FLAG_CONTRACTS],
2594
+ ["event", EVENT_FLAG_CONTRACTS],
2595
+ ["remind", REMIND_FLAG_CONTRACTS]
2596
+ ]);
2597
+ var EXTENSION_LIFECYCLE_FLAG_CONTRACTS_BY_SUBCOMMAND = /* @__PURE__ */ new Map([
2598
+ ["install", EXTENSION_INSTALL_FLAG_CONTRACTS],
2599
+ ["uninstall", EXTENSION_UNINSTALL_FLAG_CONTRACTS],
2600
+ ["explore", EXTENSION_EXPLORE_FLAG_CONTRACTS],
2601
+ ["manage", EXTENSION_MANAGE_FLAG_CONTRACTS],
2602
+ ["describe", EXTENSION_DESCRIBE_FLAG_CONTRACTS],
2603
+ ["reload", EXTENSION_RELOAD_FLAG_CONTRACTS],
2604
+ ["doctor", EXTENSION_DOCTOR_FLAG_CONTRACTS],
2605
+ ["catalog", EXTENSION_CATALOG_FLAG_CONTRACTS],
2606
+ ["adopt", EXTENSION_ADOPT_FLAG_CONTRACTS],
2607
+ ["adopt-all", EXTENSION_ADOPT_ALL_FLAG_CONTRACTS],
2608
+ ["activate", EXTENSION_ACTIVATE_FLAG_CONTRACTS],
2609
+ ["deactivate", EXTENSION_DEACTIVATE_FLAG_CONTRACTS]
2610
+ ]);
2611
+ function normalizeCommandNameForContracts(commandName) {
2612
+ if (typeof commandName !== "string") {
2613
+ return "";
2614
+ }
2615
+ return commandName.trim().toLowerCase();
2616
+ }
2617
+ function resolveExtensionLifecycleFlagContracts(rootCommand, lifecycleSubcommand) {
2618
+ if (lifecycleSubcommand === "init") {
2619
+ return rootCommand === "extension" ? EXTENSION_INIT_FLAG_CONTRACTS : PACKAGE_INIT_FLAG_CONTRACTS;
2620
+ }
2621
+ return EXTENSION_LIFECYCLE_FLAG_CONTRACTS_BY_SUBCOMMAND.get(lifecycleSubcommand) ?? [];
2622
+ }
2623
+ function resolveSubcommandFlagContractsForCommand(commandName) {
2624
+ const normalized = normalizeCommandNameForContracts(commandName);
2625
+ if (normalized.length === 0) {
2626
+ return withSubcommandGlobalFlags([]);
2627
+ }
2628
+ const [rootCommand, lifecycleSubcommand, ...extraParts] = normalized.split(/\s+/);
2629
+ if ((rootCommand === "extension" || rootCommand === "package" || rootCommand === "packages") && lifecycleSubcommand !== void 0 && extraParts.length === 0) {
2630
+ return withSubcommandGlobalFlags(resolveExtensionLifecycleFlagContracts(rootCommand, lifecycleSubcommand));
2631
+ }
2632
+ return withSubcommandGlobalFlags(SUBCOMMAND_FLAG_CONTRACTS_BY_COMMAND.get(normalized) ?? []);
2633
+ }
2634
+ function toCompletionFlagString(flagContracts, includeGlobal = true) {
2635
+ const aliasAwareContracts = withFlagAliasMetadata(flagContracts);
2636
+ const scoped = aliasAwareContracts.flatMap((entry) => [entry.short, entry.flag, ...entry.aliases ?? []]).filter((value) => Boolean(value));
2637
+ const all = includeGlobal ? [
2638
+ ...scoped,
2639
+ ...SUBCOMMAND_GLOBAL_FLAG_CONTRACTS.flatMap((entry) => [entry.short, entry.flag, ...entry.aliases ?? []]).filter((value) => Boolean(value))
2640
+ ] : scoped;
2641
+ return normalizeUniqueStringList(all).join(" ");
2642
+ }
2591
2643
 
2592
2644
  // dist/sdk/cli-contracts/tool-parameter-tables.js
2593
2645
  !(function() {
@@ -4576,6 +4628,17 @@ function buildProviderCompatibleToolSchema() {
4576
4628
  };
4577
4629
  }
4578
4630
  var PM_PROVIDER_TOOL_PARAMETERS_SCHEMA = createLazyContractSchema(buildProviderCompatibleToolSchema);
4631
+ var _testOnlyCliContracts = {
4632
+ buildActionScopedToolSchema,
4633
+ buildProviderCompatibleToolSchema,
4634
+ decorateActionScopedToolParameterDefinition,
4635
+ decorateToolParameterDefinition,
4636
+ toolActionSchemaContracts: PM_TOOL_ACTION_SCHEMA_CONTRACTS,
4637
+ toolParameterMetadata: PM_TOOL_PARAMETER_METADATA,
4638
+ toProviderCompatibleParameterDefinition,
4639
+ toUniqueFlagContracts,
4640
+ withFlagAliasMetadata
4641
+ };
4579
4642
 
4580
4643
  // dist/sdk/cli-contracts.js
4581
4644
  !(function() {
@@ -4610,7 +4673,28 @@ export {
4610
4673
  PM_EXTENSION_POLICY_SURFACE_CONTRACTS,
4611
4674
  PM_CORE_COMMAND_NAMES,
4612
4675
  PM_TOOL_ACTIONS,
4676
+ isPmToolAction,
4677
+ isPmExtensionCapabilityContract,
4678
+ isPmExtensionServiceNameContract,
4679
+ isPmExtensionPolicyModeContract,
4680
+ isPmExtensionPolicySurfaceContract,
4681
+ TOOL_LIST_FILTER_OPTION_CONTRACTS,
4682
+ TOOL_AGGREGATE_OPTION_CONTRACTS,
4683
+ TOOL_DEDUPE_AUDIT_OPTION_CONTRACTS,
4684
+ TOOL_SEARCH_FILTER_OPTION_CONTRACTS,
4685
+ TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,
4686
+ TOOL_CREATE_OPTION_CONTRACTS,
4687
+ TOOL_UPDATE_OPTION_CONTRACTS,
4688
+ TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,
4689
+ TOOL_NORMALIZE_FILTER_OPTION_CONTRACTS,
4690
+ TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,
4691
+ TOOL_CALENDAR_OPTION_CONTRACTS,
4692
+ TOOL_ACTIVITY_OPTION_CONTRACTS,
4693
+ TOOL_CONTEXT_OPTION_CONTRACTS,
4694
+ TOOL_DEPS_OPTION_CONTRACTS,
4695
+ withFlagAliasMetadata,
4613
4696
  compactFlagAliasContracts,
4697
+ SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,
4614
4698
  GLOBAL_FLAG_CONTRACTS,
4615
4699
  LIST_FILTER_FLAG_CONTRACTS,
4616
4700
  AGGREGATE_FLAG_CONTRACTS,
@@ -4632,6 +4716,7 @@ export {
4632
4716
  INIT_FLAG_CONTRACTS,
4633
4717
  CONFIG_FLAG_CONTRACTS,
4634
4718
  EXTENSION_FLAG_CONTRACTS,
4719
+ EXTENSION_SCOPE_FLAG_CONTRACTS,
4635
4720
  EXTENSION_INIT_FLAG_CONTRACTS,
4636
4721
  PACKAGE_FLAG_CONTRACTS,
4637
4722
  PACKAGE_INIT_FLAG_CONTRACTS,
@@ -4660,6 +4745,9 @@ export {
4660
4745
  START_TASK_FLAG_CONTRACTS,
4661
4746
  PAUSE_TASK_FLAG_CONTRACTS,
4662
4747
  CLOSE_TASK_FLAG_CONTRACTS,
4748
+ MEET_FLAG_CONTRACTS,
4749
+ EVENT_FLAG_CONTRACTS,
4750
+ REMIND_FLAG_CONTRACTS,
4663
4751
  TEST_FLAG_CONTRACTS,
4664
4752
  TEST_ALL_FLAG_CONTRACTS,
4665
4753
  TELEMETRY_FLAG_CONTRACTS,
@@ -4669,6 +4757,8 @@ export {
4669
4757
  HEALTH_FLAG_CONTRACTS,
4670
4758
  VALIDATE_FLAG_CONTRACTS,
4671
4759
  CREATE_FLAG_CONTRACTS,
4760
+ COPY_FLAG_CONTRACTS,
4761
+ FOCUS_FLAG_CONTRACTS,
4672
4762
  UPDATE_FLAG_CONTRACTS,
4673
4763
  UPDATE_MANY_FLAG_CONTRACTS,
4674
4764
  NORMALIZE_FLAG_CONTRACTS,
@@ -4684,6 +4774,13 @@ export {
4684
4774
  CONTRACTS_FLAG_CONTRACTS,
4685
4775
  COMPLETION_FLAG_CONTRACTS,
4686
4776
  resolveSubcommandFlagContractsForCommand,
4687
- PM_TOOL_PARAMETERS_SCHEMA
4777
+ toCompletionFlagString,
4778
+ PM_TOOL_ACTION_PARAMETER_CONTRACTS,
4779
+ PM_TOOL_PARAMETERS_SCHEMA_VERSION,
4780
+ PM_TOOL_PARAMETERS_SCHEMA_MAJOR,
4781
+ PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,
4782
+ PM_TOOL_PARAMETERS_SCHEMA,
4783
+ PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,
4784
+ _testOnlyCliContracts
4688
4785
  };
4689
- //# sourceMappingURL=chunk-7745CXNI.js.map
4786
+ //# sourceMappingURL=chunk-UI5BJ6DO.js.map