@unbrained/pm-cli 2026.7.5 → 2026.7.6
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.
- package/CHANGELOG.md +10 -0
- package/dist/cli-bundle/chunks/activity-WJCGCYPU.js +18 -0
- package/dist/cli-bundle/chunks/activity-Z6QUAUSG.js +22 -0
- package/dist/cli-bundle/chunks/aggregate-BDM6EIAR.js +25 -0
- package/dist/cli-bundle/chunks/aggregate-VQ2DHU3S.js +21 -0
- package/dist/cli-bundle/chunks/append-BGML6VLD.js +19 -0
- package/dist/cli-bundle/chunks/append-RKJYPU74.js +15 -0
- package/dist/cli-bundle/chunks/chunk-22KBU3MW.js +57 -0
- package/dist/cli-bundle/chunks/chunk-24YG75HI.js +634 -0
- package/dist/cli-bundle/chunks/chunk-2XG4IZON.js +218 -0
- package/dist/cli-bundle/chunks/chunk-3GCS5SKL.js +228 -0
- package/dist/cli-bundle/chunks/chunk-3KTN6IBA.js +2330 -0
- package/dist/cli-bundle/chunks/chunk-3N6RRO2Q.js +808 -0
- package/dist/cli-bundle/chunks/chunk-3N6RRO2Q.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-3UJRFJ5R.js +1573 -0
- package/dist/cli-bundle/chunks/chunk-3VHSI5FL.js +1001 -0
- package/dist/cli-bundle/chunks/chunk-425E4QL5.js +278 -0
- package/dist/cli-bundle/chunks/chunk-425E4QL5.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-45FYNUFJ.js +38 -0
- package/dist/cli-bundle/chunks/chunk-45FYNUFJ.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-46CUF5L6.js +1018 -0
- package/dist/cli-bundle/chunks/chunk-4CJFCTLM.js +222 -0
- package/dist/cli-bundle/chunks/chunk-4CJFCTLM.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-4HIFVN7N.js +249 -0
- package/dist/cli-bundle/chunks/chunk-4HIFVN7N.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-4IWYTWGF.js +819 -0
- package/dist/cli-bundle/chunks/chunk-4LELACOL.js +391 -0
- package/dist/cli-bundle/chunks/chunk-4LELACOL.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-4MZVRJOE.js +279 -0
- package/dist/cli-bundle/chunks/chunk-4MZVRJOE.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-4ZBE5GUN.js +184 -0
- package/dist/cli-bundle/chunks/chunk-4ZBE5GUN.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-57NWPFF2.js +5640 -0
- package/dist/cli-bundle/chunks/chunk-57NWPFF2.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-5AJXHQM7.js +268 -0
- package/dist/cli-bundle/chunks/chunk-5AJXHQM7.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-5BMM6XQY.js +508 -0
- package/dist/cli-bundle/chunks/chunk-5BMM6XQY.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-5GZ7TDD6.js +1868 -0
- package/dist/cli-bundle/chunks/chunk-5VAA4YHR.js +1749 -0
- package/dist/cli-bundle/chunks/chunk-64YKRTSV.js +1961 -0
- package/dist/cli-bundle/chunks/chunk-6LLVNJXT.js +429 -0
- package/dist/cli-bundle/chunks/chunk-6QBJLYBP.js +120 -0
- package/dist/cli-bundle/chunks/chunk-6QBJLYBP.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-7D7OOEYG.js +278 -0
- package/dist/cli-bundle/chunks/chunk-7D7OOEYG.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-7DT4WSH2.js +60 -0
- package/dist/cli-bundle/chunks/chunk-7WBAJSS6.js +102 -0
- package/dist/cli-bundle/chunks/chunk-AGHMOTGM.js +150 -0
- package/dist/cli-bundle/chunks/chunk-ALFPSEWO.js +112 -0
- package/dist/cli-bundle/chunks/chunk-AZYGZGGI.js +361 -0
- package/dist/cli-bundle/chunks/chunk-B6DUFX6H.js +1413 -0
- package/dist/cli-bundle/chunks/chunk-B6XS3R3O.js +275 -0
- package/dist/cli-bundle/chunks/chunk-B6XS3R3O.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-B7FRNMYN.js +421 -0
- package/dist/cli-bundle/chunks/chunk-B7FRNMYN.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-C5JBZRPU.js +1985 -0
- package/dist/cli-bundle/chunks/chunk-CFB33L7W.js +398 -0
- package/dist/cli-bundle/chunks/chunk-CFNGIXZP.js +784 -0
- package/dist/cli-bundle/chunks/chunk-CFNGIXZP.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-CL36D4PC.js +225 -0
- package/dist/cli-bundle/chunks/chunk-COSPOP7H.js +6677 -0
- package/dist/cli-bundle/chunks/chunk-COSPOP7H.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-COWTDV6B.js +3461 -0
- package/dist/cli-bundle/chunks/chunk-COWTDV6B.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-CRVYGJUI.js +553 -0
- package/dist/cli-bundle/chunks/chunk-CRVYGJUI.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-D2XRLB55.js +645 -0
- package/dist/cli-bundle/chunks/chunk-DEWEK6AN.js +1858 -0
- package/dist/cli-bundle/chunks/chunk-DMRNBQOI.js +1063 -0
- package/dist/cli-bundle/chunks/chunk-DMRNBQOI.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-E3SZTQ4K.js +1932 -0
- package/dist/cli-bundle/chunks/chunk-E42XTBSP.js +1359 -0
- package/dist/cli-bundle/chunks/chunk-E42XTBSP.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-EBRZZ54H.js +655 -0
- package/dist/cli-bundle/chunks/chunk-EBRZZ54H.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-EGAP5OWD.js +4712 -0
- package/dist/cli-bundle/chunks/chunk-EGAP5OWD.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-EGY6JBQ3.js +160 -0
- package/dist/cli-bundle/chunks/chunk-EKFNL33R.js +222 -0
- package/dist/cli-bundle/chunks/chunk-ENGQOEUY.js +1704 -0
- package/dist/cli-bundle/chunks/chunk-EOKXK3R3.js +2046 -0
- package/dist/cli-bundle/chunks/chunk-F3K4JGFD.js +121 -0
- package/dist/cli-bundle/chunks/chunk-FLZSGSQR.js +231 -0
- package/dist/cli-bundle/chunks/chunk-FOUYJE4A.js +2090 -0
- package/dist/cli-bundle/chunks/chunk-FOUYJE4A.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-FT3QTERD.js +550 -0
- package/dist/cli-bundle/chunks/chunk-G24G7ZAV.js +1570 -0
- package/dist/cli-bundle/chunks/chunk-G64OCSKU.js +444 -0
- package/dist/cli-bundle/chunks/chunk-GANUTS7W.js +1775 -0
- package/dist/cli-bundle/chunks/chunk-GBAX2ZAQ.js +401 -0
- package/dist/cli-bundle/chunks/chunk-GDDAGPWJ.js +105 -0
- package/dist/cli-bundle/chunks/chunk-GDDAGPWJ.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-GEYZ4G4O.js +239 -0
- package/dist/cli-bundle/chunks/chunk-GEYZ4G4O.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-GJ7QC5DJ.js +624 -0
- package/dist/cli-bundle/chunks/chunk-GPLPTGOV.js +530 -0
- package/dist/cli-bundle/chunks/chunk-GZRDYONU.js +1005 -0
- package/dist/cli-bundle/chunks/chunk-HFDADVJZ.js +1356 -0
- package/dist/cli-bundle/chunks/chunk-HFDADVJZ.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-HIHMT6WS.js +41 -0
- package/dist/cli-bundle/chunks/chunk-HIHMT6WS.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-HN6NSXNW.js +277 -0
- package/dist/cli-bundle/chunks/chunk-HN6NSXNW.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-HOVCGJSD.js +293 -0
- package/dist/cli-bundle/chunks/chunk-HOVCGJSD.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-I36Y7PCE.js +38 -0
- package/dist/cli-bundle/chunks/chunk-I36Y7PCE.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-IQNVQHOP.js +309 -0
- package/dist/cli-bundle/chunks/chunk-IQNVQHOP.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-IWVU4C2F.js +358 -0
- package/dist/cli-bundle/chunks/chunk-IX5BXEMX.js +267 -0
- package/dist/cli-bundle/chunks/chunk-JDDLOQAE.js +265 -0
- package/dist/cli-bundle/chunks/chunk-JJP45OEI.js +119 -0
- package/dist/cli-bundle/chunks/chunk-JQXPY7DN.js +2257 -0
- package/dist/cli-bundle/chunks/chunk-JQXPY7DN.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-JVH7QBVV.js +24 -0
- package/dist/cli-bundle/chunks/chunk-JVH7QBVV.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-K46RF36U.js +207 -0
- package/dist/cli-bundle/chunks/chunk-KERMZVY5.js +371 -0
- package/dist/cli-bundle/chunks/chunk-KERMZVY5.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-KGFUY7WN.js +814 -0
- package/dist/cli-bundle/chunks/chunk-KSRUHV2H.js +76 -0
- package/dist/cli-bundle/chunks/chunk-KSRUHV2H.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-KUOOJR35.js +260 -0
- package/dist/cli-bundle/chunks/chunk-L5PSPMZ4.js +277 -0
- package/dist/cli-bundle/chunks/chunk-LK6XLOGP.js +5799 -0
- package/dist/cli-bundle/chunks/chunk-LK6XLOGP.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-LP3HSFZ2.js +140 -0
- package/dist/cli-bundle/chunks/chunk-LP3HSFZ2.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-LPSSSDJR.js +1239 -0
- package/dist/cli-bundle/chunks/chunk-M7JNBQAD.js +225 -0
- package/dist/cli-bundle/chunks/chunk-M7JNBQAD.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-MA4SM3QZ.js +655 -0
- package/dist/cli-bundle/chunks/chunk-MAWDPCJW.js +1601 -0
- package/dist/cli-bundle/chunks/chunk-MAWDPCJW.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-MFAZSEM5.js +1031 -0
- package/dist/cli-bundle/chunks/chunk-MFSCBT5Q.js +995 -0
- package/dist/cli-bundle/chunks/chunk-ML5X7DP2.js +296 -0
- package/dist/cli-bundle/chunks/chunk-ML5X7DP2.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-MLIYFOE7.js +357 -0
- package/dist/cli-bundle/chunks/chunk-MR6FJ7LL.js +2043 -0
- package/dist/cli-bundle/chunks/chunk-MR6FJ7LL.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-MUH7A3FD.js +61 -0
- package/dist/cli-bundle/chunks/chunk-MVSP7WGJ.js +108 -0
- package/dist/cli-bundle/chunks/chunk-MVSP7WGJ.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-MVYWGY2A.js +262 -0
- package/dist/cli-bundle/chunks/chunk-MWMVPCIE.js +1423 -0
- package/dist/cli-bundle/chunks/chunk-MXYA5SAJ.js +2033 -0
- package/dist/cli-bundle/chunks/chunk-MXYA5SAJ.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-N745W3B3.js +1604 -0
- package/dist/cli-bundle/chunks/chunk-N745W3B3.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-NB7RLQFW.js +57 -0
- package/dist/cli-bundle/chunks/chunk-NB7RLQFW.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-NC33K5ZS.js +123 -0
- package/dist/cli-bundle/chunks/chunk-NC33K5ZS.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-NGXQ3PFT.js +263 -0
- package/dist/cli-bundle/chunks/chunk-NMP5I3I5.js +1615 -0
- package/dist/cli-bundle/chunks/chunk-NO442GWJ.js +41 -0
- package/dist/cli-bundle/chunks/chunk-NO442GWJ.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-NZEHECMW.js +658 -0
- package/dist/cli-bundle/chunks/chunk-NZEHECMW.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-O6AWCQRQ.js +124 -0
- package/dist/cli-bundle/chunks/chunk-OGWQ2IEP.js +240 -0
- package/dist/cli-bundle/chunks/chunk-PZUGEOPS.js +143 -0
- package/dist/cli-bundle/chunks/chunk-PZUGEOPS.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-QLMX7SRD.js +210 -0
- package/dist/cli-bundle/chunks/chunk-QX6HM775.js +398 -0
- package/dist/cli-bundle/chunks/chunk-QX6HM775.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-R5BMJX33.js +27 -0
- package/dist/cli-bundle/chunks/chunk-R5BMJX33.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-RCQZK2GO.js +296 -0
- package/dist/cli-bundle/chunks/chunk-RCQZK2GO.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-RFNYTESG.js +520 -0
- package/dist/cli-bundle/chunks/chunk-RKQOO2UM.js +79 -0
- package/dist/cli-bundle/chunks/chunk-RKQOO2UM.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-RQLT6ZWB.js +282 -0
- package/dist/cli-bundle/chunks/chunk-RQLT6ZWB.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-S3JS6YVZ.js +274 -0
- package/dist/cli-bundle/chunks/chunk-S3JS6YVZ.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-SCUR7K7N.js +2198 -0
- package/dist/cli-bundle/chunks/chunk-SGMFPXKR.js +68 -0
- package/dist/cli-bundle/chunks/chunk-SGMFPXKR.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-SHQY2IDC.js +1977 -0
- package/dist/cli-bundle/chunks/chunk-SMB7RV23.js +130 -0
- package/dist/cli-bundle/chunks/chunk-SPZ6DOGY.js +1041 -0
- package/dist/cli-bundle/chunks/chunk-SQOIV3OQ.js +563 -0
- package/dist/cli-bundle/chunks/chunk-SQOIV3OQ.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-SQYJ4HF2.js +1765 -0
- package/dist/cli-bundle/chunks/chunk-T42JWV3F.js +822 -0
- package/dist/cli-bundle/chunks/chunk-TKD5VCTD.js +6567 -0
- package/dist/cli-bundle/chunks/chunk-TKD5VCTD.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-TULGS6X6.js +2132 -0
- package/dist/cli-bundle/chunks/chunk-TZXRBVAM.js +2306 -0
- package/dist/cli-bundle/chunks/chunk-UH7T2DAX.js +181 -0
- package/dist/cli-bundle/chunks/chunk-UH7T2DAX.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-VIIUS6N6.js +4773 -0
- package/dist/cli-bundle/chunks/chunk-VIIUS6N6.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-VPIM42PC.js +367 -0
- package/dist/cli-bundle/chunks/chunk-VQRSPVME.js +368 -0
- package/dist/cli-bundle/chunks/chunk-VQRSPVME.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-W3DSJQIO.js +447 -0
- package/dist/cli-bundle/chunks/chunk-W572BIEB.js +1249 -0
- package/dist/cli-bundle/chunks/chunk-W6DYWXPQ.js +1073 -0
- package/dist/cli-bundle/chunks/chunk-W6DYWXPQ.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-WG34ZNQQ.js +3423 -0
- package/dist/cli-bundle/chunks/chunk-WG34ZNQQ.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-WLSM645P.js +2247 -0
- package/dist/cli-bundle/chunks/chunk-WLSM645P.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-WRTENIX3.js +215 -0
- package/dist/cli-bundle/chunks/chunk-WSBLYDWV.js +388 -0
- package/dist/cli-bundle/chunks/chunk-WSBLYDWV.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-XB7KFVFI.js +533 -0
- package/dist/cli-bundle/chunks/chunk-XC5BURG2.js +306 -0
- package/dist/cli-bundle/chunks/chunk-XC5BURG2.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-XDB7RWQT.js +424 -0
- package/dist/cli-bundle/chunks/chunk-XDB7RWQT.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-XG625QP4.js +58 -0
- package/dist/cli-bundle/chunks/chunk-XHET7YUZ.js +71 -0
- package/dist/cli-bundle/chunks/chunk-XHET7YUZ.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-XUC7PI2H.js +243 -0
- package/dist/cli-bundle/chunks/chunk-Y46GD4IX.js +116 -0
- package/dist/cli-bundle/chunks/chunk-Y4M7CPQP.js +804 -0
- package/dist/cli-bundle/chunks/chunk-Y6BK55A3.js +2128 -0
- package/dist/cli-bundle/chunks/chunk-Y6BK55A3.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-YN7Y6DQZ.js +426 -0
- package/dist/cli-bundle/chunks/chunk-Z3U3U5KD.js +511 -0
- package/dist/cli-bundle/chunks/chunk-Z3U3U5KD.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-ZGK4L4JM.js +133 -0
- package/dist/cli-bundle/chunks/chunk-ZJ262CED.js +394 -0
- package/dist/cli-bundle/chunks/chunk-ZJ262CED.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-ZO3XKAOP.js +299 -0
- package/dist/cli-bundle/chunks/chunk-ZO3XKAOP.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-ZSUS2OD3.js +2105 -0
- package/dist/cli-bundle/chunks/chunk-ZWBEPGD7.js +54 -0
- package/dist/cli-bundle/chunks/chunk-ZWBEPGD7.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-ZZD4J5XY.js +1570 -0
- package/dist/cli-bundle/chunks/claim-RFS7BROJ.js +19 -0
- package/dist/cli-bundle/chunks/claim-XP5AWZ5H.js +23 -0
- package/dist/cli-bundle/chunks/close-2SSSHHUZ.js +20 -0
- package/dist/cli-bundle/chunks/close-GEANHQ2J.js +16 -0
- package/dist/cli-bundle/chunks/close-many-CMZW7ITN.js +31 -0
- package/dist/cli-bundle/chunks/close-many-ZFDIG6M7.js +27 -0
- package/dist/cli-bundle/chunks/comments-MFSYVNNU.js +21 -0
- package/dist/cli-bundle/chunks/comments-XUBPXDYX.js +17 -0
- package/dist/cli-bundle/chunks/config-D7XQMONX.js +18 -0
- package/dist/cli-bundle/chunks/config-T4FHBSYN.js +22 -0
- package/dist/cli-bundle/chunks/context-DIU275XI.js +48 -0
- package/dist/cli-bundle/chunks/context-JCOYB4LZ.js +44 -0
- package/dist/cli-bundle/chunks/contracts-BVO7CSLK.js +12 -0
- package/dist/cli-bundle/chunks/contracts-NYPEW2G4.js +16 -0
- package/dist/cli-bundle/chunks/copy-32ROBIDL.js +17 -0
- package/dist/cli-bundle/chunks/copy-NAGLGMHZ.js +13 -0
- package/dist/cli-bundle/chunks/create-4V7SWNBB.js +30 -0
- package/dist/cli-bundle/chunks/create-E77SDCUP.js +34 -0
- package/dist/cli-bundle/chunks/delete-NQI5OSKN.js +14 -0
- package/dist/cli-bundle/chunks/delete-RA5KTCLB.js +18 -0
- package/dist/cli-bundle/chunks/deps-32SU7HO5.js +21 -0
- package/dist/cli-bundle/chunks/deps-T7SCWXEX.js +17 -0
- package/dist/cli-bundle/chunks/docs-RRUPT7O2.js +22 -0
- package/dist/cli-bundle/chunks/docs-WL2IWGWV.js +18 -0
- package/dist/cli-bundle/chunks/eval-NF2J5SHR.js +23 -0
- package/dist/cli-bundle/chunks/eval-SKDT3MZU.js +27 -0
- package/dist/cli-bundle/chunks/extension-LAXKCAYE.js +42 -0
- package/dist/cli-bundle/chunks/extension-LAXKCAYE.js.map +1 -0
- package/dist/cli-bundle/chunks/extension-ZISPBRBC.js +38 -0
- package/dist/cli-bundle/chunks/extension-ZISPBRBC.js.map +7 -0
- package/dist/cli-bundle/chunks/files-EWRQHGIS.js +22 -0
- package/dist/cli-bundle/chunks/files-EWRQHGIS.js.map +7 -0
- package/dist/cli-bundle/chunks/files-PYKR2UUG.js +26 -0
- package/dist/cli-bundle/chunks/files-PYKR2UUG.js.map +1 -0
- package/dist/cli-bundle/chunks/focus-4T7TM4MT.js +18 -0
- package/dist/cli-bundle/chunks/focus-4T7TM4MT.js.map +1 -0
- package/dist/cli-bundle/chunks/focus-L3YUASOD.js +14 -0
- package/dist/cli-bundle/chunks/focus-L3YUASOD.js.map +7 -0
- package/dist/cli-bundle/chunks/gc-2DNMPXMC.js +16 -0
- package/dist/cli-bundle/chunks/gc-2DNMPXMC.js.map +1 -0
- package/dist/cli-bundle/chunks/gc-2PCTYYRI.js +12 -0
- package/dist/cli-bundle/chunks/gc-2PCTYYRI.js.map +7 -0
- package/dist/cli-bundle/chunks/get-7DMITJ3G.js +23 -0
- package/dist/cli-bundle/chunks/get-7DMITJ3G.js.map +1 -0
- package/dist/cli-bundle/chunks/get-VKQXCXLL.js +19 -0
- package/dist/cli-bundle/chunks/get-VKQXCXLL.js.map +7 -0
- package/dist/cli-bundle/chunks/health-CVSTAR2F.js +31 -0
- package/dist/cli-bundle/chunks/health-CVSTAR2F.js.map +7 -0
- package/dist/cli-bundle/chunks/health-TV3GKTFN.js +35 -0
- package/dist/cli-bundle/chunks/health-TV3GKTFN.js.map +1 -0
- package/dist/cli-bundle/chunks/history-D4JUX5XV.js +20 -0
- package/dist/cli-bundle/chunks/history-D4JUX5XV.js.map +7 -0
- package/dist/cli-bundle/chunks/history-LQ2UWZTE.js +24 -0
- package/dist/cli-bundle/chunks/history-LQ2UWZTE.js.map +1 -0
- package/dist/cli-bundle/chunks/history-compact-3MNXLKAT.js +29 -0
- package/dist/cli-bundle/chunks/history-compact-3MNXLKAT.js.map +1 -0
- package/dist/cli-bundle/chunks/history-compact-QWEO32FP.js +25 -0
- package/dist/cli-bundle/chunks/history-compact-QWEO32FP.js.map +7 -0
- package/dist/cli-bundle/chunks/history-redact-3OIVBVIY.js +21 -0
- package/dist/cli-bundle/chunks/history-redact-3OIVBVIY.js.map +7 -0
- package/dist/cli-bundle/chunks/history-redact-P6DYF55G.js +25 -0
- package/dist/cli-bundle/chunks/history-redact-P6DYF55G.js.map +1 -0
- package/dist/cli-bundle/chunks/history-repair-I3E73UGQ.js +23 -0
- package/dist/cli-bundle/chunks/history-repair-I3E73UGQ.js.map +7 -0
- package/dist/cli-bundle/chunks/history-repair-ZJQFMWPD.js +27 -0
- package/dist/cli-bundle/chunks/history-repair-ZJQFMWPD.js.map +1 -0
- package/dist/cli-bundle/chunks/init-C3LJPWQZ.js +30 -0
- package/dist/cli-bundle/chunks/init-C3LJPWQZ.js.map +1 -0
- package/dist/cli-bundle/chunks/init-J3DPGWQI.js +26 -0
- package/dist/cli-bundle/chunks/init-J3DPGWQI.js.map +7 -0
- package/dist/cli-bundle/chunks/learnings-5BO2SNDW.js +21 -0
- package/dist/cli-bundle/chunks/learnings-5BO2SNDW.js.map +1 -0
- package/dist/cli-bundle/chunks/learnings-OGP4JB4I.js +17 -0
- package/dist/cli-bundle/chunks/learnings-OGP4JB4I.js.map +7 -0
- package/dist/cli-bundle/chunks/list-O5NZVSPN.js +36 -0
- package/dist/cli-bundle/chunks/list-O5NZVSPN.js.map +1 -0
- package/dist/cli-bundle/chunks/list-Z55YCNTC.js +32 -0
- package/dist/cli-bundle/chunks/list-Z55YCNTC.js.map +7 -0
- package/dist/cli-bundle/chunks/next-GBNTGXFC.js +28 -0
- package/dist/cli-bundle/chunks/next-GBNTGXFC.js.map +7 -0
- package/dist/cli-bundle/chunks/next-QKW7PTKE.js +32 -0
- package/dist/cli-bundle/chunks/next-QKW7PTKE.js.map +1 -0
- package/dist/cli-bundle/chunks/notes-R5FZTKWF.js +17 -0
- package/dist/cli-bundle/chunks/notes-R5FZTKWF.js.map +7 -0
- package/dist/cli-bundle/chunks/notes-WCGIULVG.js +21 -0
- package/dist/cli-bundle/chunks/notes-WCGIULVG.js.map +1 -0
- package/dist/cli-bundle/chunks/plan-ADISFYH4.js +29 -0
- package/dist/cli-bundle/chunks/plan-ADISFYH4.js.map +7 -0
- package/dist/cli-bundle/chunks/plan-CHVE7PBR.js +33 -0
- package/dist/cli-bundle/chunks/plan-CHVE7PBR.js.map +1 -0
- package/dist/cli-bundle/chunks/profile-LD23PSI6.js +37 -0
- package/dist/cli-bundle/chunks/profile-LD23PSI6.js.map +7 -0
- package/dist/cli-bundle/chunks/profile-ZXGSKBJD.js +41 -0
- package/dist/cli-bundle/chunks/profile-ZXGSKBJD.js.map +1 -0
- package/dist/cli-bundle/chunks/register-list-query-B42JCCOI.js +409 -0
- package/dist/cli-bundle/chunks/register-list-query-OEYQHFXO.js +419 -0
- package/dist/cli-bundle/chunks/register-mutation-3QXIHCQG.js +1273 -0
- package/dist/cli-bundle/chunks/register-mutation-IAEST26S.js +1256 -0
- package/dist/cli-bundle/chunks/register-operations-I3M3U7DS.js +19 -0
- package/dist/cli-bundle/chunks/register-operations-I3M3U7DS.js.map +7 -0
- package/dist/cli-bundle/chunks/register-operations-UHKENLZV.js +23 -0
- package/dist/cli-bundle/chunks/register-operations-UHKENLZV.js.map +1 -0
- package/dist/cli-bundle/chunks/register-setup-3ZVVX2VN.js +324 -0
- package/dist/cli-bundle/chunks/register-setup-3ZVVX2VN.js.map +7 -0
- package/dist/cli-bundle/chunks/register-setup-Q6KFNIOZ.js +321 -0
- package/dist/cli-bundle/chunks/register-setup-Q6KFNIOZ.js.map +1 -0
- package/dist/cli-bundle/chunks/restore-5RQHAPMA.js +23 -0
- package/dist/cli-bundle/chunks/restore-5RQHAPMA.js.map +1 -0
- package/dist/cli-bundle/chunks/restore-PNEIBBLW.js +19 -0
- package/dist/cli-bundle/chunks/restore-PNEIBBLW.js.map +7 -0
- package/dist/cli-bundle/chunks/scheduling-shortcuts-4G56YHVQ.js +29 -0
- package/dist/cli-bundle/chunks/scheduling-shortcuts-4G56YHVQ.js.map +1 -0
- package/dist/cli-bundle/chunks/scheduling-shortcuts-75DULBYP.js +25 -0
- package/dist/cli-bundle/chunks/scheduling-shortcuts-75DULBYP.js.map +7 -0
- package/dist/cli-bundle/chunks/schema-245WW4G2.js +78 -0
- package/dist/cli-bundle/chunks/schema-245WW4G2.js.map +1 -0
- package/dist/cli-bundle/chunks/schema-HBORFC6B.js +74 -0
- package/dist/cli-bundle/chunks/schema-HBORFC6B.js.map +7 -0
- package/dist/cli-bundle/chunks/search-AOZC5SIK.js +34 -0
- package/dist/cli-bundle/chunks/search-AOZC5SIK.js.map +7 -0
- package/dist/cli-bundle/chunks/search-DRXPGHD7.js +38 -0
- package/dist/cli-bundle/chunks/search-DRXPGHD7.js.map +1 -0
- package/dist/cli-bundle/chunks/stats-NJG4NLHG.js +21 -0
- package/dist/cli-bundle/chunks/stats-NJG4NLHG.js.map +1 -0
- package/dist/cli-bundle/chunks/stats-RG6AG4N2.js +17 -0
- package/dist/cli-bundle/chunks/stats-RG6AG4N2.js.map +7 -0
- package/dist/cli-bundle/chunks/telemetry-HQC2JJIF.js +14 -0
- package/dist/cli-bundle/chunks/telemetry-HQC2JJIF.js.map +7 -0
- package/dist/cli-bundle/chunks/telemetry-MPNL3HHY.js +18 -0
- package/dist/cli-bundle/chunks/telemetry-MPNL3HHY.js.map +1 -0
- package/dist/cli-bundle/chunks/test-6CMOCWUC.js +39 -0
- package/dist/cli-bundle/chunks/test-6CMOCWUC.js.map +7 -0
- package/dist/cli-bundle/chunks/test-RI7XHBZL.js +43 -0
- package/dist/cli-bundle/chunks/test-RI7XHBZL.js.map +1 -0
- package/dist/cli-bundle/chunks/test-all-7R7YRZIA.js +29 -0
- package/dist/cli-bundle/chunks/test-all-7R7YRZIA.js.map +7 -0
- package/dist/cli-bundle/chunks/test-all-QEIORFYW.js +33 -0
- package/dist/cli-bundle/chunks/test-all-QEIORFYW.js.map +1 -0
- package/dist/cli-bundle/chunks/test-runs-5Y2BOU2S.js +28 -0
- package/dist/cli-bundle/chunks/test-runs-5Y2BOU2S.js.map +1 -0
- package/dist/cli-bundle/chunks/test-runs-PVGC3GRZ.js +24 -0
- package/dist/cli-bundle/chunks/test-runs-PVGC3GRZ.js.map +7 -0
- package/dist/cli-bundle/chunks/update-QVJDFEAP.js +30 -0
- package/dist/cli-bundle/chunks/update-QVJDFEAP.js.map +1 -0
- package/dist/cli-bundle/chunks/update-VQVHAY6X.js +26 -0
- package/dist/cli-bundle/chunks/update-VQVHAY6X.js.map +7 -0
- package/dist/cli-bundle/chunks/update-many-S7XWBSB3.js +37 -0
- package/dist/cli-bundle/chunks/update-many-S7XWBSB3.js.map +7 -0
- package/dist/cli-bundle/chunks/update-many-YIYW6XQ6.js +41 -0
- package/dist/cli-bundle/chunks/update-many-YIYW6XQ6.js.map +1 -0
- package/dist/cli-bundle/chunks/upgrade-OPRXA56R.js +24 -0
- package/dist/cli-bundle/chunks/upgrade-OPRXA56R.js.map +7 -0
- package/dist/cli-bundle/chunks/upgrade-WH4BTQLX.js +28 -0
- package/dist/cli-bundle/chunks/upgrade-WH4BTQLX.js.map +1 -0
- package/dist/cli-bundle/chunks/validate-4NTXSB62.js +36 -0
- package/dist/cli-bundle/chunks/validate-4NTXSB62.js.map +1 -0
- package/dist/cli-bundle/chunks/validate-MUFXQZMI.js +32 -0
- package/dist/cli-bundle/chunks/validate-MUFXQZMI.js.map +7 -0
- package/dist/cli-bundle/main.js +16 -16
- package/dist/cli-bundle/sdk-runtime.js +88 -28
- package/dist/cli-bundle/sdk-testing.js +6 -6
- package/dist/cli-bundle/sdk.js +92 -49
- package/dist/cli-bundle/sdk.js.map +2 -2
- package/dist/mcp/server.d.ts +22 -50
- package/dist/mcp/server.js +62 -916
- package/dist/mcp/server.js.map +1 -1
- package/dist/sdk/index.d.ts +4 -2
- package/dist/sdk/index.js +4 -4
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/runtime.d.ts +168 -4
- package/dist/sdk/runtime.js +1149 -25
- package/dist/sdk/runtime.js.map +1 -1
- package/dist/sdk/workspace-contracts-cache.d.ts +17 -0
- package/dist/sdk/workspace-contracts-cache.js +36 -0
- package/dist/sdk/workspace-contracts-cache.js.map +1 -0
- package/docs/RELEASING.md +3 -1
- package/docs/SDK.md +46 -0
- package/docs/examples/sdk-app-embedding/run-embedded-pm.mjs +16 -2
- package/docs/examples/sdk-contract-consumer/inspect-contracts.mjs +16 -1
- package/package.json +1 -1
- package/dist/cli-bundle/chunks/activity-4XQIDNM5.js +0 -18
- package/dist/cli-bundle/chunks/activity-YKAKZTZ4.js +0 -22
- package/dist/cli-bundle/chunks/aggregate-EQX2RGB7.js +0 -375
- package/dist/cli-bundle/chunks/aggregate-EQX2RGB7.js.map +0 -7
- package/dist/cli-bundle/chunks/aggregate-PEGZGJXD.js +0 -372
- package/dist/cli-bundle/chunks/aggregate-PEGZGJXD.js.map +0 -1
- package/dist/cli-bundle/chunks/append-CZGUZ45Q.js +0 -73
- package/dist/cli-bundle/chunks/append-CZGUZ45Q.js.map +0 -7
- package/dist/cli-bundle/chunks/append-NSQBCXZJ.js +0 -70
- package/dist/cli-bundle/chunks/append-NSQBCXZJ.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-3JZNEQBA.js +0 -1413
- package/dist/cli-bundle/chunks/chunk-3PL6LEKP.js +0 -1961
- package/dist/cli-bundle/chunks/chunk-3U3VEWK6.js +0 -1749
- package/dist/cli-bundle/chunks/chunk-3Y4OESPP.js +0 -277
- package/dist/cli-bundle/chunks/chunk-4LRVSBO6.js +0 -822
- package/dist/cli-bundle/chunks/chunk-4OFLJHX6.js +0 -356
- package/dist/cli-bundle/chunks/chunk-4QQ6PM7M.js +0 -1249
- package/dist/cli-bundle/chunks/chunk-53BTLLAF.js +0 -2181
- package/dist/cli-bundle/chunks/chunk-53BTLLAF.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-57C2RLW5.js +0 -1704
- package/dist/cli-bundle/chunks/chunk-5B3X4Y22.js +0 -2330
- package/dist/cli-bundle/chunks/chunk-5J2XPTAD.js +0 -225
- package/dist/cli-bundle/chunks/chunk-5JE6SMYS.js +0 -262
- package/dist/cli-bundle/chunks/chunk-5JZ7APJU.js +0 -995
- package/dist/cli-bundle/chunks/chunk-5VVUKE3U.js +0 -5789
- package/dist/cli-bundle/chunks/chunk-5VVUKE3U.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-75U6M5ZD.js +0 -819
- package/dist/cli-bundle/chunks/chunk-7EQNAZX2.js +0 -1018
- package/dist/cli-bundle/chunks/chunk-7MDXZAZS.js +0 -102
- package/dist/cli-bundle/chunks/chunk-7QH7DHUB.js +0 -2046
- package/dist/cli-bundle/chunks/chunk-7WYXBPYQ.js +0 -358
- package/dist/cli-bundle/chunks/chunk-AAEQMOC6.js +0 -150
- package/dist/cli-bundle/chunks/chunk-ABRA3BHY.js +0 -429
- package/dist/cli-bundle/chunks/chunk-BFVHCAOO.js +0 -240
- package/dist/cli-bundle/chunks/chunk-BVEUCSH2.js +0 -530
- package/dist/cli-bundle/chunks/chunk-C3PMDWGX.js +0 -160
- package/dist/cli-bundle/chunks/chunk-D3UCE7RW.js +0 -243
- package/dist/cli-bundle/chunks/chunk-DC3QJQWI.js +0 -275
- package/dist/cli-bundle/chunks/chunk-DC3QJQWI.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-DLQ4ZTCU.js +0 -634
- package/dist/cli-bundle/chunks/chunk-DRBV5UC2.js +0 -231
- package/dist/cli-bundle/chunks/chunk-E2FUG6GD.js +0 -2184
- package/dist/cli-bundle/chunks/chunk-E2FUG6GD.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-EEY54JMF.js +0 -60
- package/dist/cli-bundle/chunks/chunk-EZFKWSC7.js +0 -1615
- package/dist/cli-bundle/chunks/chunk-FDBARR33.js +0 -655
- package/dist/cli-bundle/chunks/chunk-FGQKEDE4.js +0 -447
- package/dist/cli-bundle/chunks/chunk-FJRKQREY.js +0 -228
- package/dist/cli-bundle/chunks/chunk-FUM6UMY4.js +0 -804
- package/dist/cli-bundle/chunks/chunk-GIWXVMZ3.js +0 -3237
- package/dist/cli-bundle/chunks/chunk-GIWXVMZ3.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-HBYZDSK5.js +0 -426
- package/dist/cli-bundle/chunks/chunk-HJE4JTKQ.js +0 -124
- package/dist/cli-bundle/chunks/chunk-HK72NWAD.js +0 -1570
- package/dist/cli-bundle/chunks/chunk-IJ6CO3JV.js +0 -645
- package/dist/cli-bundle/chunks/chunk-JFCVQXZX.js +0 -3206
- package/dist/cli-bundle/chunks/chunk-JFCVQXZX.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-JLA7EVYV.js +0 -222
- package/dist/cli-bundle/chunks/chunk-K32L7HZO.js +0 -76
- package/dist/cli-bundle/chunks/chunk-K32L7HZO.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-K3AGVXSF.js +0 -444
- package/dist/cli-bundle/chunks/chunk-KDZ6K25I.js +0 -79
- package/dist/cli-bundle/chunks/chunk-KDZ6K25I.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-KL22PY6L.js +0 -915
- package/dist/cli-bundle/chunks/chunk-KL22PY6L.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-KLG4ZULO.js +0 -218
- package/dist/cli-bundle/chunks/chunk-LEKT4K7I.js +0 -2105
- package/dist/cli-bundle/chunks/chunk-MNZ7DRNC.js +0 -1858
- package/dist/cli-bundle/chunks/chunk-MTTXDAK4.js +0 -2198
- package/dist/cli-bundle/chunks/chunk-MZ7VNEVY.js +0 -520
- package/dist/cli-bundle/chunks/chunk-N6DNM2FA.js +0 -116
- package/dist/cli-bundle/chunks/chunk-N7X4WP6L.js +0 -1041
- package/dist/cli-bundle/chunks/chunk-NBFCNJ7Q.js +0 -2132
- package/dist/cli-bundle/chunks/chunk-NER3KUUS.js +0 -260
- package/dist/cli-bundle/chunks/chunk-OBA2WH65.js +0 -918
- package/dist/cli-bundle/chunks/chunk-OBA2WH65.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-OESSOFJ4.js +0 -1985
- package/dist/cli-bundle/chunks/chunk-OK5NXCZB.js +0 -238
- package/dist/cli-bundle/chunks/chunk-OK5NXCZB.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-OWTIRHX4.js +0 -112
- package/dist/cli-bundle/chunks/chunk-P3VRG72Q.js +0 -1765
- package/dist/cli-bundle/chunks/chunk-P5TFTLWW.js +0 -1423
- package/dist/cli-bundle/chunks/chunk-P5YORJRH.js +0 -1977
- package/dist/cli-bundle/chunks/chunk-PDXT6Q55.js +0 -58
- package/dist/cli-bundle/chunks/chunk-PJ3A56YF.js +0 -1239
- package/dist/cli-bundle/chunks/chunk-PPAJG4GB.js +0 -1031
- package/dist/cli-bundle/chunks/chunk-PPE4YUQM.js +0 -4725
- package/dist/cli-bundle/chunks/chunk-PPE4YUQM.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-QHZO65XW.js +0 -1775
- package/dist/cli-bundle/chunks/chunk-R3ZBLGTC.js +0 -814
- package/dist/cli-bundle/chunks/chunk-RCT3YJOK.js +0 -624
- package/dist/cli-bundle/chunks/chunk-RX3HQSYG.js +0 -265
- package/dist/cli-bundle/chunks/chunk-S4APD35C.js +0 -210
- package/dist/cli-bundle/chunks/chunk-S5AYOUT5.js +0 -130
- package/dist/cli-bundle/chunks/chunk-STPSZ2XY.js +0 -1149
- package/dist/cli-bundle/chunks/chunk-STPSZ2XY.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-T35XLYZF.js +0 -263
- package/dist/cli-bundle/chunks/chunk-T3ABIMGW.js +0 -361
- package/dist/cli-bundle/chunks/chunk-T3F4DF23.js +0 -267
- package/dist/cli-bundle/chunks/chunk-T4MX77AK.js +0 -272
- package/dist/cli-bundle/chunks/chunk-T4MX77AK.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-T5Y3QSNF.js +0 -5354
- package/dist/cli-bundle/chunks/chunk-T5Y3QSNF.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-TSPKZRRW.js +0 -1570
- package/dist/cli-bundle/chunks/chunk-TT42JUMF.js +0 -207
- package/dist/cli-bundle/chunks/chunk-UHKX7I75.js +0 -165
- package/dist/cli-bundle/chunks/chunk-UHKX7I75.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-UI5BJ6DO.js +0 -4786
- package/dist/cli-bundle/chunks/chunk-UI5BJ6DO.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-US3T3W5J.js +0 -1932
- package/dist/cli-bundle/chunks/chunk-UZRDBL6W.js +0 -175
- package/dist/cli-bundle/chunks/chunk-UZRDBL6W.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-VZIYHZDX.js +0 -1868
- package/dist/cli-bundle/chunks/chunk-WISPVC2E.js +0 -401
- package/dist/cli-bundle/chunks/chunk-WVSGSZ6J.js +0 -5434
- package/dist/cli-bundle/chunks/chunk-WVSGSZ6J.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-XQCG2JGW.js +0 -1152
- package/dist/cli-bundle/chunks/chunk-XQCG2JGW.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-Y76TWC45.js +0 -550
- package/dist/cli-bundle/chunks/chunk-YD5FML7K.js +0 -5630
- package/dist/cli-bundle/chunks/chunk-YD5FML7K.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-YFIE7YK6.js +0 -57
- package/dist/cli-bundle/chunks/chunk-YMABYTNG.js +0 -1573
- package/dist/cli-bundle/chunks/chunk-YOF5VPKM.js +0 -119
- package/dist/cli-bundle/chunks/chunk-YPPVU5GX.js +0 -398
- package/dist/cli-bundle/chunks/chunk-YQMMMONE.js +0 -133
- package/dist/cli-bundle/chunks/chunk-YSAH5FY5.js +0 -1001
- package/dist/cli-bundle/chunks/chunk-YZIR4R3U.js +0 -1005
- package/dist/cli-bundle/chunks/chunk-Z2CRRZYF.js +0 -215
- package/dist/cli-bundle/chunks/chunk-ZAHXPXVY.js +0 -533
- package/dist/cli-bundle/chunks/chunk-ZCJAA3JK.js +0 -121
- package/dist/cli-bundle/chunks/chunk-ZD34OFFQ.js +0 -366
- package/dist/cli-bundle/chunks/chunk-ZJB3UV5U.js +0 -2306
- package/dist/cli-bundle/chunks/chunk-ZMD35NYG.js +0 -61
- package/dist/cli-bundle/chunks/chunk-ZVDL32GJ.js +0 -241
- package/dist/cli-bundle/chunks/chunk-ZVDL32GJ.js.map +0 -7
- package/dist/cli-bundle/chunks/claim-4DROPSIS.js +0 -144
- package/dist/cli-bundle/chunks/claim-4DROPSIS.js.map +0 -1
- package/dist/cli-bundle/chunks/claim-VX54TV5U.js +0 -147
- package/dist/cli-bundle/chunks/claim-VX54TV5U.js.map +0 -7
- package/dist/cli-bundle/chunks/close-3YRR3XY6.js +0 -20
- package/dist/cli-bundle/chunks/close-OB2Y4QP5.js +0 -16
- package/dist/cli-bundle/chunks/close-many-AP4MWU36.js +0 -397
- package/dist/cli-bundle/chunks/close-many-AP4MWU36.js.map +0 -1
- package/dist/cli-bundle/chunks/close-many-OMZIGZB4.js +0 -400
- package/dist/cli-bundle/chunks/close-many-OMZIGZB4.js.map +0 -7
- package/dist/cli-bundle/chunks/comments-MIW5MZOX.js +0 -128
- package/dist/cli-bundle/chunks/comments-MIW5MZOX.js.map +0 -7
- package/dist/cli-bundle/chunks/comments-SAG5LSKL.js +0 -125
- package/dist/cli-bundle/chunks/comments-SAG5LSKL.js.map +0 -1
- package/dist/cli-bundle/chunks/config-DJJKZB5R.js +0 -1075
- package/dist/cli-bundle/chunks/config-DJJKZB5R.js.map +0 -7
- package/dist/cli-bundle/chunks/config-V57QD47V.js +0 -1065
- package/dist/cli-bundle/chunks/config-V57QD47V.js.map +0 -1
- package/dist/cli-bundle/chunks/context-4OQGIPSO.js +0 -45
- package/dist/cli-bundle/chunks/context-WLA6IAWE.js +0 -49
- package/dist/cli-bundle/chunks/contracts-HXJLKCRI.js +0 -12
- package/dist/cli-bundle/chunks/contracts-OJEXMKVW.js +0 -16
- package/dist/cli-bundle/chunks/copy-LEE6P6EM.js +0 -184
- package/dist/cli-bundle/chunks/copy-LEE6P6EM.js.map +0 -7
- package/dist/cli-bundle/chunks/copy-OTJOWFL6.js +0 -181
- package/dist/cli-bundle/chunks/copy-OTJOWFL6.js.map +0 -1
- package/dist/cli-bundle/chunks/create-WKOZKPQR.js +0 -30
- package/dist/cli-bundle/chunks/create-XWWQFQ6S.js +0 -34
- package/dist/cli-bundle/chunks/delete-62JQTYT4.js +0 -59
- package/dist/cli-bundle/chunks/delete-62JQTYT4.js.map +0 -7
- package/dist/cli-bundle/chunks/delete-HQKGRNRZ.js +0 -56
- package/dist/cli-bundle/chunks/delete-HQKGRNRZ.js.map +0 -1
- package/dist/cli-bundle/chunks/deps-55FTG6Z5.js +0 -224
- package/dist/cli-bundle/chunks/deps-55FTG6Z5.js.map +0 -1
- package/dist/cli-bundle/chunks/deps-L2FPIAD3.js +0 -227
- package/dist/cli-bundle/chunks/deps-L2FPIAD3.js.map +0 -7
- package/dist/cli-bundle/chunks/docs-6CRCSVKK.js +0 -33
- package/dist/cli-bundle/chunks/docs-6CRCSVKK.js.map +0 -1
- package/dist/cli-bundle/chunks/docs-S6UTOTO5.js +0 -36
- package/dist/cli-bundle/chunks/docs-S6UTOTO5.js.map +0 -7
- package/dist/cli-bundle/chunks/eval-N6UHFWVO.js +0 -288
- package/dist/cli-bundle/chunks/eval-N6UHFWVO.js.map +0 -7
- package/dist/cli-bundle/chunks/eval-PHOTWYHI.js +0 -278
- package/dist/cli-bundle/chunks/eval-PHOTWYHI.js.map +0 -1
- package/dist/cli-bundle/chunks/extension-NBAH62ML.js +0 -40
- package/dist/cli-bundle/chunks/extension-ZF6ZZPOU.js +0 -44
- package/dist/cli-bundle/chunks/files-6P57MRKL.js +0 -301
- package/dist/cli-bundle/chunks/files-6P57MRKL.js.map +0 -7
- package/dist/cli-bundle/chunks/files-JPU3FNJ7.js +0 -298
- package/dist/cli-bundle/chunks/files-JPU3FNJ7.js.map +0 -1
- package/dist/cli-bundle/chunks/focus-LFZ6IDBR.js +0 -106
- package/dist/cli-bundle/chunks/focus-LFZ6IDBR.js.map +0 -1
- package/dist/cli-bundle/chunks/focus-WNMYCVYA.js +0 -109
- package/dist/cli-bundle/chunks/focus-WNMYCVYA.js.map +0 -7
- package/dist/cli-bundle/chunks/gc-AETFKZ44.js +0 -398
- package/dist/cli-bundle/chunks/gc-AETFKZ44.js.map +0 -7
- package/dist/cli-bundle/chunks/gc-RLBP4QVN.js +0 -388
- package/dist/cli-bundle/chunks/gc-RLBP4QVN.js.map +0 -1
- package/dist/cli-bundle/chunks/get-NH2MPBCI.js +0 -283
- package/dist/cli-bundle/chunks/get-NH2MPBCI.js.map +0 -1
- package/dist/cli-bundle/chunks/get-P4ZQXCPZ.js +0 -286
- package/dist/cli-bundle/chunks/get-P4ZQXCPZ.js.map +0 -7
- package/dist/cli-bundle/chunks/health-3GVPMQBL.js +0 -1612
- package/dist/cli-bundle/chunks/health-3GVPMQBL.js.map +0 -1
- package/dist/cli-bundle/chunks/health-DNTM72GJ.js +0 -1615
- package/dist/cli-bundle/chunks/health-DNTM72GJ.js.map +0 -7
- package/dist/cli-bundle/chunks/history-RYKLC72X.js +0 -20
- package/dist/cli-bundle/chunks/history-SGPYRAFT.js +0 -24
- package/dist/cli-bundle/chunks/history-compact-3F6VELO7.js +0 -565
- package/dist/cli-bundle/chunks/history-compact-3F6VELO7.js.map +0 -7
- package/dist/cli-bundle/chunks/history-compact-656Y2TN4.js +0 -555
- package/dist/cli-bundle/chunks/history-compact-656Y2TN4.js.map +0 -1
- package/dist/cli-bundle/chunks/history-redact-4H3FCKF3.js +0 -21
- package/dist/cli-bundle/chunks/history-redact-54ICFKXM.js +0 -25
- package/dist/cli-bundle/chunks/history-repair-4N6SDVHK.js +0 -281
- package/dist/cli-bundle/chunks/history-repair-4N6SDVHK.js.map +0 -7
- package/dist/cli-bundle/chunks/history-repair-EVTO6LIH.js +0 -278
- package/dist/cli-bundle/chunks/history-repair-EVTO6LIH.js.map +0 -1
- package/dist/cli-bundle/chunks/init-RPIPQUNV.js +0 -32
- package/dist/cli-bundle/chunks/init-SKQAESQS.js +0 -28
- package/dist/cli-bundle/chunks/learnings-2HTPZNGZ.js +0 -48
- package/dist/cli-bundle/chunks/learnings-2HTPZNGZ.js.map +0 -7
- package/dist/cli-bundle/chunks/learnings-YBIHY3D6.js +0 -45
- package/dist/cli-bundle/chunks/learnings-YBIHY3D6.js.map +0 -1
- package/dist/cli-bundle/chunks/list-64LHZ3HM.js +0 -32
- package/dist/cli-bundle/chunks/list-7LXBTEKI.js +0 -36
- package/dist/cli-bundle/chunks/next-7ODPAQ4U.js +0 -306
- package/dist/cli-bundle/chunks/next-7ODPAQ4U.js.map +0 -7
- package/dist/cli-bundle/chunks/next-ODJUM4ZM.js +0 -303
- package/dist/cli-bundle/chunks/next-ODJUM4ZM.js.map +0 -1
- package/dist/cli-bundle/chunks/notes-72YXN5JX.js +0 -48
- package/dist/cli-bundle/chunks/notes-72YXN5JX.js.map +0 -7
- package/dist/cli-bundle/chunks/notes-NJ7IQJX4.js +0 -45
- package/dist/cli-bundle/chunks/notes-NJ7IQJX4.js.map +0 -1
- package/dist/cli-bundle/chunks/plan-R4NDQ27E.js +0 -1366
- package/dist/cli-bundle/chunks/plan-R4NDQ27E.js.map +0 -7
- package/dist/cli-bundle/chunks/plan-XWY5T67S.js +0 -1363
- package/dist/cli-bundle/chunks/plan-XWY5T67S.js.map +0 -1
- package/dist/cli-bundle/chunks/profile-XQWEQKS3.js +0 -397
- package/dist/cli-bundle/chunks/profile-XQWEQKS3.js.map +0 -1
- package/dist/cli-bundle/chunks/profile-YRDHLMRO.js +0 -400
- package/dist/cli-bundle/chunks/profile-YRDHLMRO.js.map +0 -7
- package/dist/cli-bundle/chunks/register-list-query-5H66WFYF.js +0 -419
- package/dist/cli-bundle/chunks/register-list-query-FB3FNDLZ.js +0 -409
- package/dist/cli-bundle/chunks/register-mutation-UJO23C7R.js +0 -1256
- package/dist/cli-bundle/chunks/register-mutation-Z2ETYHKS.js +0 -1273
- package/dist/cli-bundle/chunks/register-operations-A3XAM5J7.js +0 -513
- package/dist/cli-bundle/chunks/register-operations-A3XAM5J7.js.map +0 -1
- package/dist/cli-bundle/chunks/register-operations-SG7HBSUP.js +0 -516
- package/dist/cli-bundle/chunks/register-operations-SG7HBSUP.js.map +0 -7
- package/dist/cli-bundle/chunks/register-setup-I45OGJUV.js +0 -323
- package/dist/cli-bundle/chunks/register-setup-I45OGJUV.js.map +0 -1
- package/dist/cli-bundle/chunks/register-setup-K6U3NVY5.js +0 -326
- package/dist/cli-bundle/chunks/register-setup-K6U3NVY5.js.map +0 -7
- package/dist/cli-bundle/chunks/restore-PXOFL6AM.js +0 -19
- package/dist/cli-bundle/chunks/restore-YJ2ET6AT.js +0 -23
- package/dist/cli-bundle/chunks/scheduling-shortcuts-SSC4MYWQ.js +0 -91
- package/dist/cli-bundle/chunks/scheduling-shortcuts-SSC4MYWQ.js.map +0 -7
- package/dist/cli-bundle/chunks/scheduling-shortcuts-ULRG7MNP.js +0 -88
- package/dist/cli-bundle/chunks/scheduling-shortcuts-ULRG7MNP.js.map +0 -1
- package/dist/cli-bundle/chunks/schema-2PUXCZ25.js +0 -74
- package/dist/cli-bundle/chunks/schema-Y6DXXK2F.js +0 -78
- package/dist/cli-bundle/chunks/search-3S72CTD6.js +0 -38
- package/dist/cli-bundle/chunks/search-WNUNBQXO.js +0 -34
- package/dist/cli-bundle/chunks/stats-IJYTRQGV.js +0 -250
- package/dist/cli-bundle/chunks/stats-IJYTRQGV.js.map +0 -7
- package/dist/cli-bundle/chunks/stats-L2D5Y2O5.js +0 -240
- package/dist/cli-bundle/chunks/stats-L2D5Y2O5.js.map +0 -1
- package/dist/cli-bundle/chunks/telemetry-L2CVOKVN.js +0 -309
- package/dist/cli-bundle/chunks/telemetry-L2CVOKVN.js.map +0 -7
- package/dist/cli-bundle/chunks/telemetry-QBYWQA76.js +0 -306
- package/dist/cli-bundle/chunks/telemetry-QBYWQA76.js.map +0 -1
- package/dist/cli-bundle/chunks/test-DQ2QFJ7W.js +0 -45
- package/dist/cli-bundle/chunks/test-W7QBLVJS.js +0 -41
- package/dist/cli-bundle/chunks/test-all-636NTRTT.js +0 -434
- package/dist/cli-bundle/chunks/test-all-636NTRTT.js.map +0 -1
- package/dist/cli-bundle/chunks/test-all-DWYK3RG6.js +0 -437
- package/dist/cli-bundle/chunks/test-all-DWYK3RG6.js.map +0 -7
- package/dist/cli-bundle/chunks/test-runs-245OINZR.js +0 -28
- package/dist/cli-bundle/chunks/test-runs-ZRD4GCTT.js +0 -24
- package/dist/cli-bundle/chunks/update-SFLZPJXX.js +0 -30
- package/dist/cli-bundle/chunks/update-SJZ6S77U.js +0 -26
- package/dist/cli-bundle/chunks/update-many-DC7X3EWM.js +0 -671
- package/dist/cli-bundle/chunks/update-many-DC7X3EWM.js.map +0 -7
- package/dist/cli-bundle/chunks/update-many-SLLAMHT7.js +0 -668
- package/dist/cli-bundle/chunks/update-many-SLLAMHT7.js.map +0 -1
- package/dist/cli-bundle/chunks/upgrade-HFFXLZJA.js +0 -290
- package/dist/cli-bundle/chunks/upgrade-HFFXLZJA.js.map +0 -7
- package/dist/cli-bundle/chunks/upgrade-UYQKM7RF.js +0 -287
- package/dist/cli-bundle/chunks/upgrade-UYQKM7RF.js.map +0 -1
- package/dist/cli-bundle/chunks/validate-PA4FDTOV.js +0 -2143
- package/dist/cli-bundle/chunks/validate-PA4FDTOV.js.map +0 -7
- package/dist/cli-bundle/chunks/validate-Z7L75YEJ.js +0 -2105
- package/dist/cli-bundle/chunks/validate-Z7L75YEJ.js.map +0 -1
- /package/dist/cli-bundle/chunks/{activity-4XQIDNM5.js.map → activity-WJCGCYPU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{activity-YKAKZTZ4.js.map → activity-Z6QUAUSG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-3YRR3XY6.js.map → aggregate-BDM6EIAR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-OB2Y4QP5.js.map → aggregate-VQ2DHU3S.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{context-WLA6IAWE.js.map → append-BGML6VLD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{context-4OQGIPSO.js.map → append-RKJYPU74.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YFIE7YK6.js.map → chunk-22KBU3MW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-DLQ4ZTCU.js.map → chunk-24YG75HI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KLG4ZULO.js.map → chunk-2XG4IZON.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FJRKQREY.js.map → chunk-3GCS5SKL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5B3X4Y22.js.map → chunk-3KTN6IBA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YMABYTNG.js.map → chunk-3UJRFJ5R.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YSAH5FY5.js.map → chunk-3VHSI5FL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7EQNAZX2.js.map → chunk-46CUF5L6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-75U6M5ZD.js.map → chunk-4IWYTWGF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-VZIYHZDX.js.map → chunk-5GZ7TDD6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3U3VEWK6.js.map → chunk-5VAA4YHR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3PL6LEKP.js.map → chunk-64YKRTSV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ABRA3BHY.js.map → chunk-6LLVNJXT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EEY54JMF.js.map → chunk-7DT4WSH2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7MDXZAZS.js.map → chunk-7WBAJSS6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-AAEQMOC6.js.map → chunk-AGHMOTGM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-OWTIRHX4.js.map → chunk-ALFPSEWO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-T3ABIMGW.js.map → chunk-AZYGZGGI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3JZNEQBA.js.map → chunk-B6DUFX6H.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-OESSOFJ4.js.map → chunk-C5JBZRPU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YPPVU5GX.js.map → chunk-CFB33L7W.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5J2XPTAD.js.map → chunk-CL36D4PC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-IJ6CO3JV.js.map → chunk-D2XRLB55.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MNZ7DRNC.js.map → chunk-DEWEK6AN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-US3T3W5J.js.map → chunk-E3SZTQ4K.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-C3PMDWGX.js.map → chunk-EGY6JBQ3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-JLA7EVYV.js.map → chunk-EKFNL33R.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-57C2RLW5.js.map → chunk-ENGQOEUY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7QH7DHUB.js.map → chunk-EOKXK3R3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZCJAA3JK.js.map → chunk-F3K4JGFD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-DRBV5UC2.js.map → chunk-FLZSGSQR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Y76TWC45.js.map → chunk-FT3QTERD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HK72NWAD.js.map → chunk-G24G7ZAV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-K3AGVXSF.js.map → chunk-G64OCSKU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QHZO65XW.js.map → chunk-GANUTS7W.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WISPVC2E.js.map → chunk-GBAX2ZAQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-RCT3YJOK.js.map → chunk-GJ7QC5DJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-BVEUCSH2.js.map → chunk-GPLPTGOV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YZIR4R3U.js.map → chunk-GZRDYONU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7WYXBPYQ.js.map → chunk-IWVU4C2F.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-T3F4DF23.js.map → chunk-IX5BXEMX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-RX3HQSYG.js.map → chunk-JDDLOQAE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YOF5VPKM.js.map → chunk-JJP45OEI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TT42JUMF.js.map → chunk-K46RF36U.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-R3ZBLGTC.js.map → chunk-KGFUY7WN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NER3KUUS.js.map → chunk-KUOOJR35.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3Y4OESPP.js.map → chunk-L5PSPMZ4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-PJ3A56YF.js.map → chunk-LPSSSDJR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FDBARR33.js.map → chunk-MA4SM3QZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-PPAJG4GB.js.map → chunk-MFAZSEM5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5JZ7APJU.js.map → chunk-MFSCBT5Q.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4OFLJHX6.js.map → chunk-MLIYFOE7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZMD35NYG.js.map → chunk-MUH7A3FD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5JE6SMYS.js.map → chunk-MVYWGY2A.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-P5TFTLWW.js.map → chunk-MWMVPCIE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-T35XLYZF.js.map → chunk-NGXQ3PFT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EZFKWSC7.js.map → chunk-NMP5I3I5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HJE4JTKQ.js.map → chunk-O6AWCQRQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-BFVHCAOO.js.map → chunk-OGWQ2IEP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-S4APD35C.js.map → chunk-QLMX7SRD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MZ7VNEVY.js.map → chunk-RFNYTESG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MTTXDAK4.js.map → chunk-SCUR7K7N.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-P5YORJRH.js.map → chunk-SHQY2IDC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-S5AYOUT5.js.map → chunk-SMB7RV23.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-N7X4WP6L.js.map → chunk-SPZ6DOGY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-P3VRG72Q.js.map → chunk-SQYJ4HF2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4LRVSBO6.js.map → chunk-T42JWV3F.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NBFCNJ7Q.js.map → chunk-TULGS6X6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZJB3UV5U.js.map → chunk-TZXRBVAM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZD34OFFQ.js.map → chunk-VPIM42PC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FGQKEDE4.js.map → chunk-W3DSJQIO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4QQ6PM7M.js.map → chunk-W572BIEB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Z2CRRZYF.js.map → chunk-WRTENIX3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZAHXPXVY.js.map → chunk-XB7KFVFI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-PDXT6Q55.js.map → chunk-XG625QP4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-D3UCE7RW.js.map → chunk-XUC7PI2H.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-N6DNM2FA.js.map → chunk-Y46GD4IX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FUM6UMY4.js.map → chunk-Y4M7CPQP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HBYZDSK5.js.map → chunk-YN7Y6DQZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YQMMMONE.js.map → chunk-ZGK4L4JM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-LEKT4K7I.js.map → chunk-ZSUS2OD3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TSPKZRRW.js.map → chunk-ZZD4J5XY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{contracts-HXJLKCRI.js.map → claim-RFS7BROJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{contracts-OJEXMKVW.js.map → claim-XP5AWZ5H.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-XWWQFQ6S.js.map → close-2SSSHHUZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-WKOZKPQR.js.map → close-GEANHQ2J.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-ZF6ZZPOU.js.map → close-many-CMZW7ITN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-NBAH62ML.js.map → close-many-ZFDIG6M7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-SGPYRAFT.js.map → comments-MFSYVNNU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-RYKLC72X.js.map → comments-XUBPXDYX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-4H3FCKF3.js.map → config-D7XQMONX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-54ICFKXM.js.map → config-T4FHBSYN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-RPIPQUNV.js.map → context-DIU275XI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-SKQAESQS.js.map → context-JCOYB4LZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-64LHZ3HM.js.map → contracts-BVO7CSLK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-7LXBTEKI.js.map → contracts-NYPEW2G4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-YJ2ET6AT.js.map → copy-32ROBIDL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-PXOFL6AM.js.map → copy-NAGLGMHZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-2PUXCZ25.js.map → create-4V7SWNBB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-Y6DXXK2F.js.map → create-E77SDCUP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-WNUNBQXO.js.map → delete-NQI5OSKN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-3S72CTD6.js.map → delete-RA5KTCLB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-DQ2QFJ7W.js.map → deps-32SU7HO5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-W7QBLVJS.js.map → deps-T7SCWXEX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-runs-245OINZR.js.map → docs-RRUPT7O2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-runs-ZRD4GCTT.js.map → docs-WL2IWGWV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-SJZ6S77U.js.map → eval-NF2J5SHR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-SFLZPJXX.js.map → eval-SKDT3MZU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-list-query-FB3FNDLZ.js.map → register-list-query-B42JCCOI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-list-query-5H66WFYF.js.map → register-list-query-OEYQHFXO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-mutation-Z2ETYHKS.js.map → register-mutation-3QXIHCQG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-mutation-UJO23C7R.js.map → register-mutation-IAEST26S.js.map} +0 -0
|
@@ -1,1573 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
COMMON_UNSET_FIELD_DEFINITIONS_AFTER_AUTHOR,
|
|
3
|
-
COMMON_UNSET_FIELD_DEFINITIONS_AFTER_CLOSE_REASON_BEFORE_AUTHOR,
|
|
4
|
-
COMMON_UNSET_FIELD_DEFINITIONS_BEFORE_CLOSE_REASON,
|
|
5
|
-
applyLegacyNoneCollectionNormalizers,
|
|
6
|
-
assertNoLegacyNoneToken,
|
|
7
|
-
assertNoLegacyNoneTokens,
|
|
8
|
-
ensureEnumValue,
|
|
9
|
-
isLegacyNoneToken,
|
|
10
|
-
normalizeRiskInput,
|
|
11
|
-
normalizeSeverityInput,
|
|
12
|
-
parseCommandUnsetTargets,
|
|
13
|
-
parseConfidenceInput,
|
|
14
|
-
parseDocs,
|
|
15
|
-
parseEventEntries,
|
|
16
|
-
parseFiles,
|
|
17
|
-
parseLogSeed,
|
|
18
|
-
parseRegressionInput,
|
|
19
|
-
parseReminderEntries,
|
|
20
|
-
parseTests,
|
|
21
|
-
parseTypeOptionEntries,
|
|
22
|
-
resolvePriority,
|
|
23
|
-
resolveRuntimeUnsetFieldDefinition
|
|
24
|
-
} from "./chunk-MTTXDAK4.js";
|
|
25
|
-
import {
|
|
26
|
-
applyTagRemovals,
|
|
27
|
-
assertNoUnknownCsvKeys,
|
|
28
|
-
createStdinTokenResolver,
|
|
29
|
-
looksLikeGenericKeyValueEntry,
|
|
30
|
-
mergeAdditiveTags,
|
|
31
|
-
parseCsvKv,
|
|
32
|
-
parseOptionalNumber,
|
|
33
|
-
parseTags
|
|
34
|
-
} from "./chunk-T3ABIMGW.js";
|
|
35
|
-
import {
|
|
36
|
-
runClose
|
|
37
|
-
} from "./chunk-FGQKEDE4.js";
|
|
38
|
-
import {
|
|
39
|
-
describeAllowedTransitions,
|
|
40
|
-
evaluateTransition,
|
|
41
|
-
resolveTypeWorkflows
|
|
42
|
-
} from "./chunk-CZVISY5A.js";
|
|
43
|
-
import {
|
|
44
|
-
applyRegisteredItemFieldDefaultsAndValidation,
|
|
45
|
-
buildItemNotFoundError,
|
|
46
|
-
collectRegisteredItemFieldNames,
|
|
47
|
-
locateItem,
|
|
48
|
-
mutateItem,
|
|
49
|
-
parseRegisteredItemFieldAssignments,
|
|
50
|
-
readLocatedItem,
|
|
51
|
-
toItemRecord
|
|
52
|
-
} from "./chunk-3U3VEWK6.js";
|
|
53
|
-
import {
|
|
54
|
-
assertParentReferenceIsNotSelf,
|
|
55
|
-
normalizeParentReferenceValue,
|
|
56
|
-
validateMissingParentReference,
|
|
57
|
-
validateSprintOrReleaseValue
|
|
58
|
-
} from "./chunk-OWTIRHX4.js";
|
|
59
|
-
import {
|
|
60
|
-
collectRuntimeUpdateFieldValues,
|
|
61
|
-
normalizeItemId,
|
|
62
|
-
normalizeStatusInput
|
|
63
|
-
} from "./chunk-EZFKWSC7.js";
|
|
64
|
-
import {
|
|
65
|
-
resolveIsoOrRelative
|
|
66
|
-
} from "./chunk-DRBV5UC2.js";
|
|
67
|
-
import {
|
|
68
|
-
PmCliError,
|
|
69
|
-
getActiveExtensionRegistrations,
|
|
70
|
-
readSettings,
|
|
71
|
-
stableValueEquals
|
|
72
|
-
} from "./chunk-P5YORJRH.js";
|
|
73
|
-
import {
|
|
74
|
-
buildInvalidTypeError
|
|
75
|
-
} from "./chunk-T35XLYZF.js";
|
|
76
|
-
import {
|
|
77
|
-
COMMON_MUTATION_COMMAND_OPTION_KEYS,
|
|
78
|
-
DEPENDENCY_KIND_VALUES,
|
|
79
|
-
EXIT_CODE,
|
|
80
|
-
ISSUE_SEVERITY_VALUES,
|
|
81
|
-
RISK_VALUES,
|
|
82
|
-
canonicalizeCommandOptionKey,
|
|
83
|
-
commandOptionFlagLabel,
|
|
84
|
-
getSettingsPath,
|
|
85
|
-
pathExists,
|
|
86
|
-
resolveCommandOptionPolicyState,
|
|
87
|
-
resolveItemTypeRegistry,
|
|
88
|
-
resolveItemTypesFilePath,
|
|
89
|
-
resolvePmRoot,
|
|
90
|
-
resolveRuntimeFieldRegistry,
|
|
91
|
-
resolveRuntimeStatusRegistry,
|
|
92
|
-
resolveTypeDefinition,
|
|
93
|
-
resolveTypeName,
|
|
94
|
-
validateTypeOptions
|
|
95
|
-
} from "./chunk-5VVUKE3U.js";
|
|
96
|
-
|
|
97
|
-
// dist/cli/commands/update.js
|
|
98
|
-
!(function() {
|
|
99
|
-
try {
|
|
100
|
-
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
101
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "74de80a0-4291-5c52-b619-620900850237");
|
|
102
|
-
} catch (e2) {
|
|
103
|
-
}
|
|
104
|
-
})();
|
|
105
|
-
var UPDATE_UNSET_FIELD_DEFINITIONS = [
|
|
106
|
-
...COMMON_UNSET_FIELD_DEFINITIONS_BEFORE_CLOSE_REASON,
|
|
107
|
-
{ canonical: "close-reason", aliases: ["close_reason", "close-reason"], optionKey: "closeReason", frontMatterKey: "close_reason" },
|
|
108
|
-
...COMMON_UNSET_FIELD_DEFINITIONS_AFTER_CLOSE_REASON_BEFORE_AUTHOR,
|
|
109
|
-
...COMMON_UNSET_FIELD_DEFINITIONS_AFTER_AUTHOR
|
|
110
|
-
];
|
|
111
|
-
var UPDATE_UNSET_ALIAS_MAP = (() => {
|
|
112
|
-
const map = /* @__PURE__ */ new Map();
|
|
113
|
-
for (const definition of UPDATE_UNSET_FIELD_DEFINITIONS) {
|
|
114
|
-
for (const alias of definition.aliases) {
|
|
115
|
-
map.set(alias, {
|
|
116
|
-
optionKey: definition.optionKey,
|
|
117
|
-
frontMatterKey: definition.frontMatterKey
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
return map;
|
|
122
|
-
})();
|
|
123
|
-
var UPDATE_OPTION_KEY_TO_UNSET_CANONICAL = new Map(UPDATE_UNSET_FIELD_DEFINITIONS.map((definition) => [definition.optionKey, definition.canonical]));
|
|
124
|
-
var UPDATE_UNSET_SUPPORTED_CANONICAL_FIELDS = UPDATE_UNSET_FIELD_DEFINITIONS.map((definition) => definition.canonical).sort((left, right) => left.localeCompare(right)).join(", ");
|
|
125
|
-
var AUDIT_UPDATE_DISALLOWED_UNSET_FRONT_MATTER_KEYS = /* @__PURE__ */ new Set([
|
|
126
|
-
"close_reason",
|
|
127
|
-
"assignee",
|
|
128
|
-
"parent",
|
|
129
|
-
"blocked_by",
|
|
130
|
-
"blocked_reason",
|
|
131
|
-
"unblock_note",
|
|
132
|
-
"dependencies",
|
|
133
|
-
"comments",
|
|
134
|
-
"notes",
|
|
135
|
-
"learnings",
|
|
136
|
-
"files",
|
|
137
|
-
"tests",
|
|
138
|
-
"docs",
|
|
139
|
-
"reminders",
|
|
140
|
-
"events"
|
|
141
|
-
]);
|
|
142
|
-
function toAuthor(candidate, defaultAuthor) {
|
|
143
|
-
const resolved = candidate ?? process.env.PM_AUTHOR ?? defaultAuthor;
|
|
144
|
-
const trimmed = resolved.trim();
|
|
145
|
-
return trimmed || "unknown";
|
|
146
|
-
}
|
|
147
|
-
var UPDATE_LEGACY_NONE_COLLECTION_NORMALIZERS = [
|
|
148
|
-
{ optionKey: "dep", clearFlagKey: "clearDeps", valueFlag: "--dep", clearFlag: "--clear-deps", disableFlagKey: "replaceDeps" },
|
|
149
|
-
{ optionKey: "comment", clearFlagKey: "clearComments", valueFlag: "--comment", clearFlag: "--clear-comments" },
|
|
150
|
-
{ optionKey: "note", clearFlagKey: "clearNotes", valueFlag: "--note", clearFlag: "--clear-notes" },
|
|
151
|
-
{ optionKey: "learning", clearFlagKey: "clearLearnings", valueFlag: "--learning", clearFlag: "--clear-learnings" },
|
|
152
|
-
{ optionKey: "file", clearFlagKey: "clearFiles", valueFlag: "--file", clearFlag: "--clear-files" },
|
|
153
|
-
{ optionKey: "test", clearFlagKey: "clearTests", valueFlag: "--test", clearFlag: "--clear-tests", disableFlagKey: "replaceTests" },
|
|
154
|
-
{ optionKey: "doc", clearFlagKey: "clearDocs", valueFlag: "--doc", clearFlag: "--clear-docs" },
|
|
155
|
-
{ optionKey: "reminder", clearFlagKey: "clearReminders", valueFlag: "--reminder", clearFlag: "--clear-reminders" },
|
|
156
|
-
{ optionKey: "event", clearFlagKey: "clearEvents", valueFlag: "--event", clearFlag: "--clear-events" },
|
|
157
|
-
{ optionKey: "typeOption", clearFlagKey: "clearTypeOptions", valueFlag: "--type-option", clearFlag: "--clear-type-options" }
|
|
158
|
-
];
|
|
159
|
-
function normalizeLegacyNoneUpdateOptions(options) {
|
|
160
|
-
const normalized = {
|
|
161
|
-
...options,
|
|
162
|
-
unset: options.unset ? [...options.unset] : void 0
|
|
163
|
-
};
|
|
164
|
-
const appendUnsetTarget = (value) => {
|
|
165
|
-
const current = normalized.unset ? [...normalized.unset] : [];
|
|
166
|
-
if (!current.includes(value)) {
|
|
167
|
-
current.push(value);
|
|
168
|
-
}
|
|
169
|
-
normalized.unset = current;
|
|
170
|
-
};
|
|
171
|
-
const scalarOptionKeys = /* @__PURE__ */ new Set([...UPDATE_OPTION_KEY_TO_UNSET_CANONICAL.keys(), "rank"]);
|
|
172
|
-
for (const optionKey of scalarOptionKeys) {
|
|
173
|
-
const candidate = normalized[optionKey];
|
|
174
|
-
if (typeof candidate !== "string" || !isLegacyNoneToken(candidate)) {
|
|
175
|
-
continue;
|
|
176
|
-
}
|
|
177
|
-
const canonicalUnset = optionKey === "rank" ? "order" : UPDATE_OPTION_KEY_TO_UNSET_CANONICAL.get(optionKey) ?? optionKey;
|
|
178
|
-
appendUnsetTarget(canonicalUnset);
|
|
179
|
-
normalized[optionKey] = void 0;
|
|
180
|
-
}
|
|
181
|
-
return applyLegacyNoneCollectionNormalizers(normalized, UPDATE_LEGACY_NONE_COLLECTION_NORMALIZERS);
|
|
182
|
-
}
|
|
183
|
-
function parseUpdateUnsetTargets(raw, runtimeFieldRegistry, extensionFieldNames = []) {
|
|
184
|
-
return parseCommandUnsetTargets({
|
|
185
|
-
raw,
|
|
186
|
-
supportedFields: UPDATE_UNSET_SUPPORTED_CANONICAL_FIELDS,
|
|
187
|
-
resolveDefinition: (trimmed) => {
|
|
188
|
-
const extensionFieldName = extensionFieldNames.find((fieldName) => {
|
|
189
|
-
const normalizedFieldName = fieldName.toLowerCase();
|
|
190
|
-
return normalizedFieldName === trimmed || normalizedFieldName.replaceAll("_", "-") === trimmed || normalizedFieldName.replaceAll("-", "_") === trimmed;
|
|
191
|
-
});
|
|
192
|
-
const definition = UPDATE_UNSET_ALIAS_MAP.get(trimmed) ?? resolveRuntimeUnsetFieldDefinition(trimmed, "update", runtimeFieldRegistry) ?? (extensionFieldName ? { optionKey: "field", frontMatterKey: extensionFieldName } : void 0);
|
|
193
|
-
return definition;
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
var AUDIT_RESTRICTED_FLAG_REPLACEMENTS = /* @__PURE__ */ new Map([
|
|
198
|
-
["--comment", (id) => `pm comments ${id} --add "<text>" --allow-audit-comment`],
|
|
199
|
-
["--file", (id) => `pm files ${id} --add "path=<path>,scope=<scope>,note=<note>" --force`],
|
|
200
|
-
["--doc", (id) => `pm docs ${id} --add "path=<path>,scope=<scope>,note=<note>" --force`]
|
|
201
|
-
]);
|
|
202
|
-
function buildAuditScopeRestrictedOptionsError(params) {
|
|
203
|
-
const replacementCommands = params.disallowedFlags.flatMap((flag) => {
|
|
204
|
-
const replacement = AUDIT_RESTRICTED_FLAG_REPLACEMENTS.get(flag);
|
|
205
|
-
return replacement ? [replacement(params.id)] : [];
|
|
206
|
-
});
|
|
207
|
-
const replacementSteps = params.disallowedFlags.flatMap((flag) => {
|
|
208
|
-
const replacement = AUDIT_RESTRICTED_FLAG_REPLACEMENTS.get(flag);
|
|
209
|
-
return replacement ? [`Replace ${flag} with: ${replacement(params.id)}`] : [];
|
|
210
|
-
});
|
|
211
|
-
return new PmCliError(params.message, EXIT_CODE.USAGE, {
|
|
212
|
-
code: params.code,
|
|
213
|
-
required: params.required,
|
|
214
|
-
why: params.why,
|
|
215
|
-
...replacementCommands.length > 0 ? { examples: replacementCommands } : {},
|
|
216
|
-
nextSteps: [
|
|
217
|
-
`Re-run without: ${params.disallowedFlags.join(", ")}`,
|
|
218
|
-
...replacementSteps
|
|
219
|
-
]
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
function enforceAllowAuditUpdateScope(id, options, clearFrontMatterKeys) {
|
|
223
|
-
const allowAuditUpdate = options.allowAuditUpdate === true;
|
|
224
|
-
const allowAuditDepUpdate = options.allowAuditDepUpdate === true;
|
|
225
|
-
if (!allowAuditUpdate && !allowAuditDepUpdate) {
|
|
226
|
-
return;
|
|
227
|
-
}
|
|
228
|
-
if (allowAuditUpdate && allowAuditDepUpdate) {
|
|
229
|
-
throw new PmCliError("Choose either --allow-audit-update or --allow-audit-dep-update; these override modes are mutually exclusive.", EXIT_CODE.USAGE);
|
|
230
|
-
}
|
|
231
|
-
const pushIf = (condition, flag, list) => {
|
|
232
|
-
if (condition) {
|
|
233
|
-
list.push(flag);
|
|
234
|
-
}
|
|
235
|
-
};
|
|
236
|
-
if (allowAuditDepUpdate) {
|
|
237
|
-
const disallowedFlags2 = [];
|
|
238
|
-
pushIf(options.title !== void 0, "--title", disallowedFlags2);
|
|
239
|
-
pushIf(options.description !== void 0, "--description", disallowedFlags2);
|
|
240
|
-
pushIf(options.body !== void 0, "--body", disallowedFlags2);
|
|
241
|
-
pushIf(options.status !== void 0, "--status", disallowedFlags2);
|
|
242
|
-
pushIf(options.closeReason !== void 0, "--close-reason", disallowedFlags2);
|
|
243
|
-
pushIf(options.priority !== void 0, "--priority", disallowedFlags2);
|
|
244
|
-
pushIf(options.type !== void 0, "--type", disallowedFlags2);
|
|
245
|
-
pushIf(options.tags !== void 0, "--tags", disallowedFlags2);
|
|
246
|
-
pushIf(Array.isArray(options.addTags) && options.addTags.length > 0, "--add-tags", disallowedFlags2);
|
|
247
|
-
pushIf(Array.isArray(options.removeTags) && options.removeTags.length > 0, "--remove-tags", disallowedFlags2);
|
|
248
|
-
pushIf(options.deadline !== void 0, "--deadline", disallowedFlags2);
|
|
249
|
-
pushIf(options.estimatedMinutes !== void 0, "--estimate", disallowedFlags2);
|
|
250
|
-
pushIf(options.acceptanceCriteria !== void 0, "--acceptance-criteria", disallowedFlags2);
|
|
251
|
-
pushIf(options.definitionOfReady !== void 0, "--definition-of-ready", disallowedFlags2);
|
|
252
|
-
pushIf(options.order !== void 0 || options.rank !== void 0, "--order/--rank", disallowedFlags2);
|
|
253
|
-
pushIf(options.goal !== void 0, "--goal", disallowedFlags2);
|
|
254
|
-
pushIf(options.objective !== void 0, "--objective", disallowedFlags2);
|
|
255
|
-
pushIf(options.value !== void 0, "--value", disallowedFlags2);
|
|
256
|
-
pushIf(options.impact !== void 0, "--impact", disallowedFlags2);
|
|
257
|
-
pushIf(options.outcome !== void 0, "--outcome", disallowedFlags2);
|
|
258
|
-
pushIf(options.whyNow !== void 0, "--why-now", disallowedFlags2);
|
|
259
|
-
pushIf(options.assignee !== void 0, "--assignee", disallowedFlags2);
|
|
260
|
-
pushIf(options.parent !== void 0, "--parent", disallowedFlags2);
|
|
261
|
-
pushIf(options.reviewer !== void 0, "--reviewer", disallowedFlags2);
|
|
262
|
-
pushIf(options.risk !== void 0, "--risk", disallowedFlags2);
|
|
263
|
-
pushIf(options.confidence !== void 0, "--confidence", disallowedFlags2);
|
|
264
|
-
pushIf(options.sprint !== void 0, "--sprint", disallowedFlags2);
|
|
265
|
-
pushIf(options.release !== void 0, "--release", disallowedFlags2);
|
|
266
|
-
pushIf(options.blockedBy !== void 0, "--blocked-by", disallowedFlags2);
|
|
267
|
-
pushIf(options.blockedReason !== void 0, "--blocked-reason", disallowedFlags2);
|
|
268
|
-
pushIf(options.unblockNote !== void 0, "--unblock-note", disallowedFlags2);
|
|
269
|
-
pushIf(options.reporter !== void 0, "--reporter", disallowedFlags2);
|
|
270
|
-
pushIf(options.severity !== void 0, "--severity", disallowedFlags2);
|
|
271
|
-
pushIf(options.environment !== void 0, "--environment", disallowedFlags2);
|
|
272
|
-
pushIf(options.reproSteps !== void 0, "--repro-steps", disallowedFlags2);
|
|
273
|
-
pushIf(options.resolution !== void 0, "--resolution", disallowedFlags2);
|
|
274
|
-
pushIf(options.expectedResult !== void 0, "--expected-result", disallowedFlags2);
|
|
275
|
-
pushIf(options.actualResult !== void 0, "--actual-result", disallowedFlags2);
|
|
276
|
-
pushIf(options.affectedVersion !== void 0, "--affected-version", disallowedFlags2);
|
|
277
|
-
pushIf(options.fixedVersion !== void 0, "--fixed-version", disallowedFlags2);
|
|
278
|
-
pushIf(options.component !== void 0, "--component", disallowedFlags2);
|
|
279
|
-
pushIf(options.regression !== void 0, "--regression", disallowedFlags2);
|
|
280
|
-
pushIf(options.customerImpact !== void 0, "--customer-impact", disallowedFlags2);
|
|
281
|
-
pushIf(options.depRemove !== void 0, "--dep-remove", disallowedFlags2);
|
|
282
|
-
pushIf(options.replaceDeps === true, "--replace-deps", disallowedFlags2);
|
|
283
|
-
pushIf(options.replaceTests === true, "--replace-tests", disallowedFlags2);
|
|
284
|
-
pushIf(options.comment !== void 0, "--comment", disallowedFlags2);
|
|
285
|
-
pushIf(options.note !== void 0, "--note", disallowedFlags2);
|
|
286
|
-
pushIf(options.learning !== void 0, "--learning", disallowedFlags2);
|
|
287
|
-
pushIf(options.file !== void 0, "--file", disallowedFlags2);
|
|
288
|
-
pushIf(options.test !== void 0, "--test", disallowedFlags2);
|
|
289
|
-
pushIf(options.doc !== void 0, "--doc", disallowedFlags2);
|
|
290
|
-
pushIf(options.reminder !== void 0, "--reminder", disallowedFlags2);
|
|
291
|
-
pushIf(options.event !== void 0, "--event", disallowedFlags2);
|
|
292
|
-
pushIf(options.typeOption !== void 0, "--type-option", disallowedFlags2);
|
|
293
|
-
pushIf(options.clearDeps === true, "--clear-deps", disallowedFlags2);
|
|
294
|
-
pushIf(options.clearComments === true, "--clear-comments", disallowedFlags2);
|
|
295
|
-
pushIf(options.clearNotes === true, "--clear-notes", disallowedFlags2);
|
|
296
|
-
pushIf(options.clearLearnings === true, "--clear-learnings", disallowedFlags2);
|
|
297
|
-
pushIf(options.clearFiles === true, "--clear-files", disallowedFlags2);
|
|
298
|
-
pushIf(options.clearTests === true, "--clear-tests", disallowedFlags2);
|
|
299
|
-
pushIf(options.clearDocs === true, "--clear-docs", disallowedFlags2);
|
|
300
|
-
pushIf(options.clearReminders === true, "--clear-reminders", disallowedFlags2);
|
|
301
|
-
pushIf(options.clearEvents === true, "--clear-events", disallowedFlags2);
|
|
302
|
-
pushIf(options.clearTypeOptions === true, "--clear-type-options", disallowedFlags2);
|
|
303
|
-
pushIf(options.force === true, "--force", disallowedFlags2);
|
|
304
|
-
pushIf(clearFrontMatterKeys.size > 0, "--unset", disallowedFlags2);
|
|
305
|
-
if (options.dep === void 0 || options.dep.length === 0) {
|
|
306
|
-
throw new PmCliError("--allow-audit-dep-update requires at least one --dep value", EXIT_CODE.USAGE);
|
|
307
|
-
}
|
|
308
|
-
if (disallowedFlags2.length > 0) {
|
|
309
|
-
throw buildAuditScopeRestrictedOptionsError({
|
|
310
|
-
id,
|
|
311
|
-
code: "audit_dep_update_restricted_options",
|
|
312
|
-
message: `--allow-audit-dep-update supports append-only dependency additions via --dep. Remove restricted options: ${disallowedFlags2.join(", ")}`,
|
|
313
|
-
required: "Pass only --dep additions (plus --message/--author) when using --allow-audit-dep-update.",
|
|
314
|
-
why: "--allow-audit-dep-update is a narrow non-owner override scoped to append-only dependency additions; every other mutation keeps its normal ownership rules.",
|
|
315
|
-
disallowedFlags: disallowedFlags2
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
|
-
return;
|
|
319
|
-
}
|
|
320
|
-
const disallowedFlags = [];
|
|
321
|
-
pushIf(options.status !== void 0, "--status", disallowedFlags);
|
|
322
|
-
pushIf(options.closeReason !== void 0, "--close-reason", disallowedFlags);
|
|
323
|
-
pushIf(options.assignee !== void 0, "--assignee", disallowedFlags);
|
|
324
|
-
pushIf(options.parent !== void 0, "--parent", disallowedFlags);
|
|
325
|
-
pushIf(options.blockedBy !== void 0, "--blocked-by", disallowedFlags);
|
|
326
|
-
pushIf(options.blockedReason !== void 0, "--blocked-reason", disallowedFlags);
|
|
327
|
-
pushIf(options.unblockNote !== void 0, "--unblock-note", disallowedFlags);
|
|
328
|
-
pushIf(options.dep !== void 0, "--dep", disallowedFlags);
|
|
329
|
-
pushIf(options.depRemove !== void 0, "--dep-remove", disallowedFlags);
|
|
330
|
-
pushIf(options.replaceDeps === true, "--replace-deps", disallowedFlags);
|
|
331
|
-
pushIf(options.replaceTests === true, "--replace-tests", disallowedFlags);
|
|
332
|
-
pushIf(options.note !== void 0, "--note", disallowedFlags);
|
|
333
|
-
pushIf(options.learning !== void 0, "--learning", disallowedFlags);
|
|
334
|
-
pushIf(options.test !== void 0, "--test", disallowedFlags);
|
|
335
|
-
pushIf(options.reminder !== void 0, "--reminder", disallowedFlags);
|
|
336
|
-
pushIf(options.event !== void 0, "--event", disallowedFlags);
|
|
337
|
-
pushIf(options.clearDeps === true, "--clear-deps", disallowedFlags);
|
|
338
|
-
pushIf(options.clearComments === true, "--clear-comments", disallowedFlags);
|
|
339
|
-
pushIf(options.clearNotes === true, "--clear-notes", disallowedFlags);
|
|
340
|
-
pushIf(options.clearLearnings === true, "--clear-learnings", disallowedFlags);
|
|
341
|
-
pushIf(options.clearFiles === true, "--clear-files", disallowedFlags);
|
|
342
|
-
pushIf(options.clearTests === true, "--clear-tests", disallowedFlags);
|
|
343
|
-
pushIf(options.clearDocs === true, "--clear-docs", disallowedFlags);
|
|
344
|
-
pushIf(options.clearReminders === true, "--clear-reminders", disallowedFlags);
|
|
345
|
-
pushIf(options.clearEvents === true, "--clear-events", disallowedFlags);
|
|
346
|
-
const disallowedUnset = [...clearFrontMatterKeys].filter((field) => AUDIT_UPDATE_DISALLOWED_UNSET_FRONT_MATTER_KEYS.has(field)).sort((left, right) => left.localeCompare(right)).map((field) => `--unset ${field.replaceAll("_", "-")}`);
|
|
347
|
-
disallowedFlags.push(...disallowedUnset);
|
|
348
|
-
if (disallowedFlags.length > 0) {
|
|
349
|
-
throw buildAuditScopeRestrictedOptionsError({
|
|
350
|
-
id,
|
|
351
|
-
code: "audit_update_restricted_options",
|
|
352
|
-
message: `--allow-audit-update only supports non-lifecycle metadata fields and evidence appends. Remove restricted options: ${disallowedFlags.join(", ")}`,
|
|
353
|
-
required: "Limit --allow-audit-update to non-lifecycle metadata fields plus append-only --comment/--file/--doc evidence; route restricted appends and lifecycle changes through their dedicated commands.",
|
|
354
|
-
why: "--allow-audit-update is a non-owner override scoped to metadata audits and append-only evidence; lifecycle, ownership, dependency mutations, restricted append fields, and clear/replace operations keep their normal ownership rules.",
|
|
355
|
-
disallowedFlags
|
|
356
|
-
});
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
function parseStatus(value, statusRegistry) {
|
|
360
|
-
const normalized = normalizeStatusInput(value, statusRegistry);
|
|
361
|
-
if (!normalized) {
|
|
362
|
-
const allowedStatuses = statusRegistry.definitions.map((definition) => definition.id);
|
|
363
|
-
throw new PmCliError(`Invalid --status value "${value}". Allowed: ${allowedStatuses.join(", ")}`, EXIT_CODE.USAGE);
|
|
364
|
-
}
|
|
365
|
-
return normalized;
|
|
366
|
-
}
|
|
367
|
-
function enforceTypeWorkflowTransition(params) {
|
|
368
|
-
if (params.enforcement === "off" || params.typeWorkflows.length === 0) {
|
|
369
|
-
return void 0;
|
|
370
|
-
}
|
|
371
|
-
const result = evaluateTransition({
|
|
372
|
-
typeName: params.typeName,
|
|
373
|
-
fromStatus: params.fromStatus,
|
|
374
|
-
toStatus: params.toStatus,
|
|
375
|
-
typeWorkflows: params.typeWorkflows,
|
|
376
|
-
statusRegistry: params.statusRegistry
|
|
377
|
-
});
|
|
378
|
-
if (!result.hasRule || result.allowed) {
|
|
379
|
-
return void 0;
|
|
380
|
-
}
|
|
381
|
-
const normalizedFrom = normalizeStatusInput(params.fromStatus, params.statusRegistry) ?? params.fromStatus;
|
|
382
|
-
const normalizedTo = normalizeStatusInput(params.toStatus, params.statusRegistry) ?? params.toStatus;
|
|
383
|
-
const message = `Disallowed transition for type "${params.typeName}": ${normalizedFrom} -> ${normalizedTo}. Allowed transitions: ${describeAllowedTransitions(result.allowedTransitions)}.`;
|
|
384
|
-
if (params.enforcement === "strict") {
|
|
385
|
-
throw new PmCliError(message, EXIT_CODE.USAGE);
|
|
386
|
-
}
|
|
387
|
-
return `workflow_transition_not_allowed: ${message}`;
|
|
388
|
-
}
|
|
389
|
-
function parseDependencyCreatedAt(value, currentIso) {
|
|
390
|
-
if (!value || value.trim() === "" || value.trim().toLowerCase() === "now") {
|
|
391
|
-
return currentIso;
|
|
392
|
-
}
|
|
393
|
-
const parsed = Date.parse(value);
|
|
394
|
-
if (!Number.isFinite(parsed)) {
|
|
395
|
-
throw new PmCliError(`Invalid dependency created_at timestamp "${value}"`, EXIT_CODE.USAGE);
|
|
396
|
-
}
|
|
397
|
-
return new Date(parsed).toISOString();
|
|
398
|
-
}
|
|
399
|
-
function parseOptionalDependencyString(value) {
|
|
400
|
-
if (value === void 0)
|
|
401
|
-
return void 0;
|
|
402
|
-
const trimmed = value.trim();
|
|
403
|
-
return trimmed.length > 0 ? trimmed : void 0;
|
|
404
|
-
}
|
|
405
|
-
var DEP_ADDITION_KEYS = ["id", "kind", "type", "author", "created_at", "source_kind"];
|
|
406
|
-
var DEP_REMOVE_KEYS = ["id", "kind", "type", "source_kind"];
|
|
407
|
-
function looksLikeStructuredDependencyEntry(raw) {
|
|
408
|
-
if (raw.startsWith("```") || raw.includes("\n")) {
|
|
409
|
-
return true;
|
|
410
|
-
}
|
|
411
|
-
if (/^(?:[-*+]\s+)?(?:id|kind|type|author|created_at|source_kind)\s*[:=]/i.test(raw)) {
|
|
412
|
-
return true;
|
|
413
|
-
}
|
|
414
|
-
return looksLikeGenericKeyValueEntry(raw);
|
|
415
|
-
}
|
|
416
|
-
var DEPENDENCY_KIND_INPUT_ALIASES = {
|
|
417
|
-
"blocked-by": "blocked_by",
|
|
418
|
-
depends_on: "blocked_by",
|
|
419
|
-
"depends-on": "blocked_by"
|
|
420
|
-
};
|
|
421
|
-
function normalizeDependencyKindInput(raw) {
|
|
422
|
-
if (typeof raw !== "string") {
|
|
423
|
-
return raw;
|
|
424
|
-
}
|
|
425
|
-
const trimmed = raw.trim();
|
|
426
|
-
const alias = DEPENDENCY_KIND_INPUT_ALIASES[trimmed.toLowerCase()];
|
|
427
|
-
return alias ?? trimmed;
|
|
428
|
-
}
|
|
429
|
-
function parseDependencyAdditions(raw, prefix, nowIso) {
|
|
430
|
-
if (!raw) {
|
|
431
|
-
return { additions: [] };
|
|
432
|
-
}
|
|
433
|
-
assertNoLegacyNoneTokens(raw, "--dep", "Use --clear-deps to clear dependencies.");
|
|
434
|
-
const additions = raw.map((entry) => {
|
|
435
|
-
const trimmedEntry = entry.trim();
|
|
436
|
-
const isStructured = looksLikeStructuredDependencyEntry(trimmedEntry);
|
|
437
|
-
const kv = isStructured ? parseCsvKv(entry, "--dep") : { id: trimmedEntry, kind: "related" };
|
|
438
|
-
if (isStructured) {
|
|
439
|
-
assertNoUnknownCsvKeys(kv, "--dep", DEP_ADDITION_KEYS);
|
|
440
|
-
}
|
|
441
|
-
const id = kv.id?.trim();
|
|
442
|
-
const kind = normalizeDependencyKindInput((kv.kind ?? kv.type)?.trim());
|
|
443
|
-
if (!id || !kind) {
|
|
444
|
-
throw new PmCliError("--dep requires id and kind, or a bare item id to add a related dependency", EXIT_CODE.USAGE);
|
|
445
|
-
}
|
|
446
|
-
if (id.toLowerCase() === "undefined") {
|
|
447
|
-
throw new PmCliError(`--dep id must not use placeholder token "${id}". Use --clear-deps to clear dependencies.`, EXIT_CODE.USAGE);
|
|
448
|
-
}
|
|
449
|
-
const sourceKind = parseOptionalDependencyString(kv.source_kind);
|
|
450
|
-
return {
|
|
451
|
-
id: normalizeItemId(id, prefix),
|
|
452
|
-
kind: ensureEnumValue(kind, DEPENDENCY_KIND_VALUES, "dependency kind"),
|
|
453
|
-
created_at: parseDependencyCreatedAt(kv.created_at, nowIso),
|
|
454
|
-
author: parseOptionalDependencyString(kv.author),
|
|
455
|
-
source_kind: sourceKind
|
|
456
|
-
};
|
|
457
|
-
});
|
|
458
|
-
return { additions };
|
|
459
|
-
}
|
|
460
|
-
function parseDependencyRemovals(raw, prefix) {
|
|
461
|
-
if (!raw) {
|
|
462
|
-
return [];
|
|
463
|
-
}
|
|
464
|
-
assertNoLegacyNoneTokens(raw, "--dep-remove");
|
|
465
|
-
return raw.map((entry) => {
|
|
466
|
-
const trimmed = entry.trim();
|
|
467
|
-
if (!trimmed) {
|
|
468
|
-
throw new PmCliError("--dep-remove requires id or key/value selectors", EXIT_CODE.USAGE);
|
|
469
|
-
}
|
|
470
|
-
if (trimmed.includes("=") || /^(?:[-*+]\s+)?(?:id|kind|type|source_kind)\s*[:=]/i.test(trimmed) || trimmed.startsWith("```")) {
|
|
471
|
-
const kv = parseCsvKv(trimmed, "--dep-remove");
|
|
472
|
-
assertNoUnknownCsvKeys(kv, "--dep-remove", DEP_REMOVE_KEYS);
|
|
473
|
-
const idRaw = kv.id?.trim();
|
|
474
|
-
if (!idRaw) {
|
|
475
|
-
throw new PmCliError("--dep-remove key/value form requires id=<value>", EXIT_CODE.USAGE);
|
|
476
|
-
}
|
|
477
|
-
if (idRaw.toLowerCase() === "undefined") {
|
|
478
|
-
throw new PmCliError(`--dep-remove id must not use placeholder token "${idRaw}"`, EXIT_CODE.USAGE);
|
|
479
|
-
}
|
|
480
|
-
const kindRaw = normalizeDependencyKindInput(parseOptionalDependencyString(kv.kind ?? kv.type));
|
|
481
|
-
const sourceKind = parseOptionalDependencyString(kv.source_kind);
|
|
482
|
-
return {
|
|
483
|
-
id: normalizeItemId(idRaw, prefix),
|
|
484
|
-
kind: kindRaw ? ensureEnumValue(kindRaw, DEPENDENCY_KIND_VALUES, "dependency kind") : void 0,
|
|
485
|
-
source_kind: sourceKind
|
|
486
|
-
};
|
|
487
|
-
}
|
|
488
|
-
if (trimmed.toLowerCase() === "undefined") {
|
|
489
|
-
throw new PmCliError(`--dep-remove id must not use placeholder token "${trimmed}"`, EXIT_CODE.USAGE);
|
|
490
|
-
}
|
|
491
|
-
return {
|
|
492
|
-
id: normalizeItemId(trimmed, prefix)
|
|
493
|
-
};
|
|
494
|
-
});
|
|
495
|
-
}
|
|
496
|
-
function dependencyKey(value) {
|
|
497
|
-
return `${value.id}::${value.kind}::${value.source_kind ?? ""}`;
|
|
498
|
-
}
|
|
499
|
-
function reconcileBlockedByDependency(current, nextBlockedById, nowIsoValue, author) {
|
|
500
|
-
let next = [...current ?? []];
|
|
501
|
-
let changed = false;
|
|
502
|
-
const filtered = next.filter((dep) => dep.kind !== "blocked_by" || dep.id === nextBlockedById);
|
|
503
|
-
if (filtered.length !== next.length) {
|
|
504
|
-
next = filtered;
|
|
505
|
-
changed = true;
|
|
506
|
-
}
|
|
507
|
-
if (nextBlockedById && !next.some((dep) => dep.kind === "blocked_by" && dep.id === nextBlockedById)) {
|
|
508
|
-
next.push({ id: nextBlockedById, kind: "blocked_by", created_at: nowIsoValue, author });
|
|
509
|
-
changed = true;
|
|
510
|
-
}
|
|
511
|
-
if (!changed) {
|
|
512
|
-
return { dependencies: current, changed: false };
|
|
513
|
-
}
|
|
514
|
-
return { dependencies: next.length > 0 ? next : void 0, changed: true };
|
|
515
|
-
}
|
|
516
|
-
async function resolveBlockedByDependencyTarget(blockedByOption, blockedByCleared, pmRoot, idPrefix, itemFormat, typeToFolder) {
|
|
517
|
-
if (blockedByOption === void 0 || blockedByCleared) {
|
|
518
|
-
return {};
|
|
519
|
-
}
|
|
520
|
-
const blockedByValue = blockedByOption.trim();
|
|
521
|
-
if (blockedByValue.length === 0) {
|
|
522
|
-
return {};
|
|
523
|
-
}
|
|
524
|
-
const located = await locateItem(pmRoot, normalizeItemId(blockedByValue, idPrefix), idPrefix, itemFormat, typeToFolder);
|
|
525
|
-
return located ? { id: located.id } : { unresolved: blockedByValue };
|
|
526
|
-
}
|
|
527
|
-
function applyBlockedByDependencyEdge(metadata, resolvedBlockedById, nowIsoValue, author, changedFields) {
|
|
528
|
-
const reconciled = reconcileBlockedByDependency(metadata.dependencies, resolvedBlockedById, nowIsoValue, author);
|
|
529
|
-
if (!reconciled.changed) {
|
|
530
|
-
return;
|
|
531
|
-
}
|
|
532
|
-
if (reconciled.dependencies === void 0) {
|
|
533
|
-
delete metadata.dependencies;
|
|
534
|
-
} else {
|
|
535
|
-
metadata.dependencies = reconciled.dependencies;
|
|
536
|
-
}
|
|
537
|
-
if (!changedFields.includes("dependencies")) {
|
|
538
|
-
changedFields.push("dependencies");
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
function fileKey(value) {
|
|
542
|
-
return `${value.path}::${value.scope}`;
|
|
543
|
-
}
|
|
544
|
-
function docKey(value) {
|
|
545
|
-
return `${value.path}::${value.scope}`;
|
|
546
|
-
}
|
|
547
|
-
function testKey(value) {
|
|
548
|
-
return `${value.command}::${value.path ?? ""}::${value.scope}::${value.pm_context_mode ?? ""}`;
|
|
549
|
-
}
|
|
550
|
-
function matchesDependencySelector(value, selector) {
|
|
551
|
-
if (value.id !== selector.id) {
|
|
552
|
-
return false;
|
|
553
|
-
}
|
|
554
|
-
if (selector.kind && value.kind !== selector.kind) {
|
|
555
|
-
return false;
|
|
556
|
-
}
|
|
557
|
-
if (selector.source_kind !== void 0 && (value.source_kind ?? void 0) !== selector.source_kind) {
|
|
558
|
-
return false;
|
|
559
|
-
}
|
|
560
|
-
return true;
|
|
561
|
-
}
|
|
562
|
-
function ensurePriority(raw) {
|
|
563
|
-
return resolvePriority(raw);
|
|
564
|
-
}
|
|
565
|
-
function normalizeUpdatePolicyOptionKey(raw, typeName) {
|
|
566
|
-
const canonical = canonicalizeCommandOptionKey("update", raw);
|
|
567
|
-
if (!canonical) {
|
|
568
|
-
throw new PmCliError(`Unsupported command_option_policies option "${raw}" for update command on type "${typeName}"`, EXIT_CODE.CONFLICT);
|
|
569
|
-
}
|
|
570
|
-
return canonical;
|
|
571
|
-
}
|
|
572
|
-
function collectProvidedUpdatePolicyOptions(options, runtimeFieldRegistry, extensionFieldNames) {
|
|
573
|
-
const provided = /* @__PURE__ */ new Set();
|
|
574
|
-
const mark = (optionKey, isProvided) => {
|
|
575
|
-
if (isProvided) {
|
|
576
|
-
provided.add(optionKey);
|
|
577
|
-
}
|
|
578
|
-
};
|
|
579
|
-
mark("title", options.title !== void 0);
|
|
580
|
-
mark("description", options.description !== void 0);
|
|
581
|
-
mark("body", options.body !== void 0);
|
|
582
|
-
mark("status", options.status !== void 0);
|
|
583
|
-
mark("closeReason", options.closeReason !== void 0);
|
|
584
|
-
mark("priority", options.priority !== void 0);
|
|
585
|
-
mark("type", options.type !== void 0);
|
|
586
|
-
mark("tags", options.tags !== void 0 || Array.isArray(options.addTags) && options.addTags.length > 0 || Array.isArray(options.removeTags) && options.removeTags.length > 0);
|
|
587
|
-
mark("deadline", options.deadline !== void 0);
|
|
588
|
-
mark("estimatedMinutes", options.estimatedMinutes !== void 0);
|
|
589
|
-
mark("acceptanceCriteria", options.acceptanceCriteria !== void 0);
|
|
590
|
-
mark("definitionOfReady", options.definitionOfReady !== void 0);
|
|
591
|
-
mark("order", options.order !== void 0 || options.rank !== void 0);
|
|
592
|
-
mark("goal", options.goal !== void 0);
|
|
593
|
-
mark("objective", options.objective !== void 0);
|
|
594
|
-
mark("value", options.value !== void 0);
|
|
595
|
-
mark("impact", options.impact !== void 0);
|
|
596
|
-
mark("outcome", options.outcome !== void 0);
|
|
597
|
-
mark("whyNow", options.whyNow !== void 0);
|
|
598
|
-
mark("author", options.author !== void 0);
|
|
599
|
-
mark("message", options.message !== void 0);
|
|
600
|
-
mark("assignee", options.assignee !== void 0);
|
|
601
|
-
mark("parent", options.parent !== void 0);
|
|
602
|
-
mark("reviewer", options.reviewer !== void 0);
|
|
603
|
-
mark("risk", options.risk !== void 0);
|
|
604
|
-
mark("confidence", options.confidence !== void 0);
|
|
605
|
-
mark("sprint", options.sprint !== void 0);
|
|
606
|
-
mark("release", options.release !== void 0);
|
|
607
|
-
mark("blockedBy", options.blockedBy !== void 0);
|
|
608
|
-
mark("blockedReason", options.blockedReason !== void 0);
|
|
609
|
-
mark("unblockNote", options.unblockNote !== void 0);
|
|
610
|
-
mark("reporter", options.reporter !== void 0);
|
|
611
|
-
mark("severity", options.severity !== void 0);
|
|
612
|
-
mark("environment", options.environment !== void 0);
|
|
613
|
-
mark("reproSteps", options.reproSteps !== void 0);
|
|
614
|
-
mark("resolution", options.resolution !== void 0);
|
|
615
|
-
mark("expectedResult", options.expectedResult !== void 0);
|
|
616
|
-
mark("actualResult", options.actualResult !== void 0);
|
|
617
|
-
mark("affectedVersion", options.affectedVersion !== void 0);
|
|
618
|
-
mark("fixedVersion", options.fixedVersion !== void 0);
|
|
619
|
-
mark("component", options.component !== void 0);
|
|
620
|
-
mark("regression", options.regression !== void 0);
|
|
621
|
-
mark("customerImpact", options.customerImpact !== void 0);
|
|
622
|
-
mark("dep", options.dep !== void 0);
|
|
623
|
-
mark("depRemove", options.depRemove !== void 0);
|
|
624
|
-
mark("dep", options.replaceDeps === true);
|
|
625
|
-
mark("comment", options.comment !== void 0);
|
|
626
|
-
mark("note", options.note !== void 0);
|
|
627
|
-
mark("learning", options.learning !== void 0);
|
|
628
|
-
mark("file", options.file !== void 0);
|
|
629
|
-
mark("test", options.test !== void 0);
|
|
630
|
-
mark("test", options.replaceTests === true);
|
|
631
|
-
mark("doc", options.doc !== void 0);
|
|
632
|
-
mark("reminder", options.reminder !== void 0);
|
|
633
|
-
mark("event", options.event !== void 0);
|
|
634
|
-
mark("typeOption", options.typeOption !== void 0);
|
|
635
|
-
mark("field", options.field !== void 0);
|
|
636
|
-
mark("force", options.force === true);
|
|
637
|
-
mark("allowAuditUpdate", options.allowAuditUpdate === true);
|
|
638
|
-
mark("dep", options.clearDeps === true);
|
|
639
|
-
mark("comment", options.clearComments === true);
|
|
640
|
-
mark("note", options.clearNotes === true);
|
|
641
|
-
mark("learning", options.clearLearnings === true);
|
|
642
|
-
mark("file", options.clearFiles === true);
|
|
643
|
-
mark("test", options.clearTests === true);
|
|
644
|
-
mark("doc", options.clearDocs === true);
|
|
645
|
-
mark("reminder", options.clearReminders === true);
|
|
646
|
-
mark("event", options.clearEvents === true);
|
|
647
|
-
mark("typeOption", options.clearTypeOptions === true);
|
|
648
|
-
if (options.unset && options.unset.length > 0) {
|
|
649
|
-
const unsetTargets = parseUpdateUnsetTargets(options.unset, runtimeFieldRegistry, extensionFieldNames);
|
|
650
|
-
for (const optionKey of unsetTargets.optionKeys) {
|
|
651
|
-
mark(optionKey, true);
|
|
652
|
-
}
|
|
653
|
-
}
|
|
654
|
-
return provided;
|
|
655
|
-
}
|
|
656
|
-
function enforceUpdateOptionsByType(typeName, options, typeRegistry, runtimeFieldRegistry, extensionFieldNames) {
|
|
657
|
-
const typeDefinition = resolveTypeDefinition(typeName, typeRegistry);
|
|
658
|
-
if (!typeDefinition) {
|
|
659
|
-
throw new PmCliError(`Invalid type value "${typeName}"`, EXIT_CODE.USAGE);
|
|
660
|
-
}
|
|
661
|
-
const policyState = resolveCommandOptionPolicyState(typeDefinition, "update", []);
|
|
662
|
-
if (policyState.errors.length > 0) {
|
|
663
|
-
throw new PmCliError(policyState.errors.join("; "), EXIT_CODE.CONFLICT);
|
|
664
|
-
}
|
|
665
|
-
const provided = collectProvidedUpdatePolicyOptions(options, runtimeFieldRegistry, extensionFieldNames);
|
|
666
|
-
for (const disabled of policyState.disabled) {
|
|
667
|
-
if (provided.has(normalizeUpdatePolicyOptionKey(disabled, typeName))) {
|
|
668
|
-
throw new PmCliError(`Option ${commandOptionFlagLabel("update", disabled)} is disabled for type "${typeName}" by command_option_policies`, EXIT_CODE.USAGE);
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
for (const required of policyState.required) {
|
|
672
|
-
if (!provided.has(normalizeUpdatePolicyOptionKey(required, typeName))) {
|
|
673
|
-
throw new PmCliError(`Missing required option ${commandOptionFlagLabel("update", required)} for type "${typeName}"`, EXIT_CODE.USAGE);
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
var UPDATE_LEGACY_COMMON_SCALAR_OPTION_EXCLUSIONS = /* @__PURE__ */ new Set(["order", "rank"]);
|
|
678
|
-
var UPDATE_LEGACY_COMMON_SCALAR_OPTION_KEYS = COMMON_MUTATION_COMMAND_OPTION_KEYS.filter((key) => !UPDATE_LEGACY_COMMON_SCALAR_OPTION_EXCLUSIONS.has(key));
|
|
679
|
-
var UPDATE_LEGACY_SCALAR_OPTION_KEYS = [
|
|
680
|
-
"tags",
|
|
681
|
-
"closeReason",
|
|
682
|
-
...UPDATE_LEGACY_COMMON_SCALAR_OPTION_KEYS
|
|
683
|
-
];
|
|
684
|
-
var UPDATE_SIMPLE_FIELD_FLAG_KEYS = [
|
|
685
|
-
"title",
|
|
686
|
-
"description",
|
|
687
|
-
"body",
|
|
688
|
-
"status",
|
|
689
|
-
"closeReason",
|
|
690
|
-
"priority",
|
|
691
|
-
"type",
|
|
692
|
-
...COMMON_MUTATION_COMMAND_OPTION_KEYS,
|
|
693
|
-
"dep",
|
|
694
|
-
"depRemove",
|
|
695
|
-
"comment",
|
|
696
|
-
"note",
|
|
697
|
-
"learning",
|
|
698
|
-
"file",
|
|
699
|
-
"test",
|
|
700
|
-
"doc",
|
|
701
|
-
"reminder",
|
|
702
|
-
"event",
|
|
703
|
-
"typeOption",
|
|
704
|
-
"field"
|
|
705
|
-
];
|
|
706
|
-
var UPDATE_POST_TAG_SCALAR_MUTATIONS = [
|
|
707
|
-
{
|
|
708
|
-
optionKey: "deadline",
|
|
709
|
-
metadataKey: "deadline",
|
|
710
|
-
transform: (value, context) => resolveIsoOrRelative(value, context.nowValue, "deadline")
|
|
711
|
-
},
|
|
712
|
-
{
|
|
713
|
-
optionKey: "estimatedMinutes",
|
|
714
|
-
metadataKey: "estimated_minutes",
|
|
715
|
-
transform: (value) => parseOptionalNumber(value, "estimated-minutes")
|
|
716
|
-
},
|
|
717
|
-
{ optionKey: "acceptanceCriteria", metadataKey: "acceptance_criteria", transform: (value) => value },
|
|
718
|
-
{ optionKey: "definitionOfReady", metadataKey: "definition_of_ready" },
|
|
719
|
-
{ optionKey: "goal", metadataKey: "goal" },
|
|
720
|
-
{ optionKey: "objective", metadataKey: "objective" },
|
|
721
|
-
{ optionKey: "value", metadataKey: "value" },
|
|
722
|
-
{ optionKey: "impact", metadataKey: "impact" },
|
|
723
|
-
{ optionKey: "outcome", metadataKey: "outcome" },
|
|
724
|
-
{ optionKey: "whyNow", metadataKey: "why_now" }
|
|
725
|
-
];
|
|
726
|
-
var UPDATE_STAKEHOLDER_SCALAR_MUTATIONS = [
|
|
727
|
-
{ optionKey: "reviewer", metadataKey: "reviewer" },
|
|
728
|
-
{ optionKey: "risk", metadataKey: "risk", transform: (value) => ensureEnumValue(normalizeRiskInput(value), RISK_VALUES, "risk") },
|
|
729
|
-
{ optionKey: "confidence", metadataKey: "confidence", transform: (value) => parseConfidenceInput(value) }
|
|
730
|
-
];
|
|
731
|
-
var UPDATE_ISSUE_SCALAR_MUTATIONS = [
|
|
732
|
-
{ optionKey: "blockedReason", metadataKey: "blocked_reason" },
|
|
733
|
-
{ optionKey: "unblockNote", metadataKey: "unblock_note" },
|
|
734
|
-
{ optionKey: "reporter", metadataKey: "reporter" },
|
|
735
|
-
{
|
|
736
|
-
optionKey: "severity",
|
|
737
|
-
metadataKey: "severity",
|
|
738
|
-
transform: (value) => ensureEnumValue(normalizeSeverityInput(value), ISSUE_SEVERITY_VALUES, "severity")
|
|
739
|
-
},
|
|
740
|
-
{ optionKey: "environment", metadataKey: "environment" },
|
|
741
|
-
{ optionKey: "reproSteps", metadataKey: "repro_steps" },
|
|
742
|
-
{ optionKey: "resolution", metadataKey: "resolution" },
|
|
743
|
-
{ optionKey: "expectedResult", metadataKey: "expected_result" },
|
|
744
|
-
{ optionKey: "actualResult", metadataKey: "actual_result" },
|
|
745
|
-
{ optionKey: "affectedVersion", metadataKey: "affected_version" },
|
|
746
|
-
{ optionKey: "fixedVersion", metadataKey: "fixed_version" },
|
|
747
|
-
{ optionKey: "component", metadataKey: "component" },
|
|
748
|
-
{ optionKey: "regression", metadataKey: "regression", transform: (value) => parseRegressionInput(value) },
|
|
749
|
-
{ optionKey: "customerImpact", metadataKey: "customer_impact" }
|
|
750
|
-
];
|
|
751
|
-
function applyUpdateScalarMutations(definitions, options, context) {
|
|
752
|
-
for (const definition of definitions) {
|
|
753
|
-
const optionValue = options[definition.optionKey];
|
|
754
|
-
const shouldClear = context.clearFrontMatterKeys.has(definition.metadataKey);
|
|
755
|
-
if (optionValue === void 0 && !shouldClear) {
|
|
756
|
-
continue;
|
|
757
|
-
}
|
|
758
|
-
if (shouldClear) {
|
|
759
|
-
delete context.metadataRecord[definition.metadataKey];
|
|
760
|
-
context.changedFields.push(definition.metadataKey);
|
|
761
|
-
continue;
|
|
762
|
-
}
|
|
763
|
-
if (typeof optionValue !== "string") {
|
|
764
|
-
throw new PmCliError(`${commandOptionFlagLabel("update", String(definition.optionKey))} must be a string value`, EXIT_CODE.USAGE);
|
|
765
|
-
}
|
|
766
|
-
context.metadataRecord[definition.metadataKey] = definition.transform ? definition.transform(optionValue, context) : optionValue.trim();
|
|
767
|
-
context.changedFields.push(definition.metadataKey);
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
async function resolveStdinUpdateOptions(options) {
|
|
771
|
-
const stdinResolver = createStdinTokenResolver();
|
|
772
|
-
return normalizeLegacyNoneUpdateOptions({
|
|
773
|
-
...options,
|
|
774
|
-
body: await stdinResolver.resolveValue(options.body, "--body"),
|
|
775
|
-
dep: await stdinResolver.resolveList(options.dep, "--dep"),
|
|
776
|
-
depRemove: await stdinResolver.resolveList(options.depRemove, "--dep-remove"),
|
|
777
|
-
comment: await stdinResolver.resolveList(options.comment, "--comment"),
|
|
778
|
-
note: await stdinResolver.resolveList(options.note, "--note"),
|
|
779
|
-
learning: await stdinResolver.resolveList(options.learning, "--learning"),
|
|
780
|
-
file: await stdinResolver.resolveList(options.file, "--file"),
|
|
781
|
-
test: await stdinResolver.resolveList(options.test, "--test"),
|
|
782
|
-
doc: await stdinResolver.resolveList(options.doc, "--doc"),
|
|
783
|
-
reminder: await stdinResolver.resolveList(options.reminder, "--reminder"),
|
|
784
|
-
event: await stdinResolver.resolveList(options.event, "--event"),
|
|
785
|
-
typeOption: await stdinResolver.resolveList(options.typeOption, "--type-option"),
|
|
786
|
-
field: await stdinResolver.resolveList(options.field, "--field")
|
|
787
|
-
});
|
|
788
|
-
}
|
|
789
|
-
function buildClearCollectionDefinitions(options) {
|
|
790
|
-
return [
|
|
791
|
-
{
|
|
792
|
-
enabled: options.clearDeps || options.replaceDeps,
|
|
793
|
-
optionKey: "dep",
|
|
794
|
-
clearFlag: "--clear-deps",
|
|
795
|
-
valueFlag: "--dep",
|
|
796
|
-
values: options.dep,
|
|
797
|
-
frontMatterKey: "dependencies"
|
|
798
|
-
},
|
|
799
|
-
{
|
|
800
|
-
enabled: options.clearComments,
|
|
801
|
-
optionKey: "comment",
|
|
802
|
-
clearFlag: "--clear-comments",
|
|
803
|
-
valueFlag: "--comment",
|
|
804
|
-
values: options.comment,
|
|
805
|
-
frontMatterKey: "comments"
|
|
806
|
-
},
|
|
807
|
-
{
|
|
808
|
-
enabled: options.clearNotes,
|
|
809
|
-
optionKey: "note",
|
|
810
|
-
clearFlag: "--clear-notes",
|
|
811
|
-
valueFlag: "--note",
|
|
812
|
-
values: options.note,
|
|
813
|
-
frontMatterKey: "notes"
|
|
814
|
-
},
|
|
815
|
-
{
|
|
816
|
-
enabled: options.clearLearnings,
|
|
817
|
-
optionKey: "learning",
|
|
818
|
-
clearFlag: "--clear-learnings",
|
|
819
|
-
valueFlag: "--learning",
|
|
820
|
-
values: options.learning,
|
|
821
|
-
frontMatterKey: "learnings"
|
|
822
|
-
},
|
|
823
|
-
{
|
|
824
|
-
enabled: options.clearFiles,
|
|
825
|
-
optionKey: "file",
|
|
826
|
-
clearFlag: "--clear-files",
|
|
827
|
-
valueFlag: "--file",
|
|
828
|
-
values: options.file,
|
|
829
|
-
frontMatterKey: "files"
|
|
830
|
-
},
|
|
831
|
-
{
|
|
832
|
-
enabled: options.clearTests || options.replaceTests,
|
|
833
|
-
optionKey: "test",
|
|
834
|
-
clearFlag: "--clear-tests",
|
|
835
|
-
valueFlag: "--test",
|
|
836
|
-
values: options.test,
|
|
837
|
-
frontMatterKey: "tests"
|
|
838
|
-
},
|
|
839
|
-
{
|
|
840
|
-
enabled: options.clearDocs,
|
|
841
|
-
optionKey: "doc",
|
|
842
|
-
clearFlag: "--clear-docs",
|
|
843
|
-
valueFlag: "--doc",
|
|
844
|
-
values: options.doc,
|
|
845
|
-
frontMatterKey: "docs"
|
|
846
|
-
},
|
|
847
|
-
{
|
|
848
|
-
enabled: options.clearReminders,
|
|
849
|
-
optionKey: "reminder",
|
|
850
|
-
clearFlag: "--clear-reminders",
|
|
851
|
-
valueFlag: "--reminder",
|
|
852
|
-
values: options.reminder,
|
|
853
|
-
frontMatterKey: "reminders"
|
|
854
|
-
},
|
|
855
|
-
{
|
|
856
|
-
enabled: options.clearEvents,
|
|
857
|
-
optionKey: "event",
|
|
858
|
-
clearFlag: "--clear-events",
|
|
859
|
-
valueFlag: "--event",
|
|
860
|
-
values: options.event,
|
|
861
|
-
frontMatterKey: "events"
|
|
862
|
-
},
|
|
863
|
-
{
|
|
864
|
-
enabled: options.clearTypeOptions,
|
|
865
|
-
optionKey: "typeOption",
|
|
866
|
-
clearFlag: "--clear-type-options",
|
|
867
|
-
valueFlag: "--type-option",
|
|
868
|
-
values: options.typeOption,
|
|
869
|
-
frontMatterKey: "type_options"
|
|
870
|
-
}
|
|
871
|
-
];
|
|
872
|
-
}
|
|
873
|
-
function validateReplaceOptions(options) {
|
|
874
|
-
if (options.replaceDeps === true && (options.dep === void 0 || options.dep.length === 0)) {
|
|
875
|
-
throw new PmCliError("--replace-deps requires at least one --dep entry", EXIT_CODE.USAGE);
|
|
876
|
-
}
|
|
877
|
-
if (options.replaceDeps === true && options.depRemove !== void 0 && options.depRemove.length > 0) {
|
|
878
|
-
throw new PmCliError("--replace-deps cannot be combined with --dep-remove", EXIT_CODE.USAGE);
|
|
879
|
-
}
|
|
880
|
-
if (options.replaceTests === true && (options.test === void 0 || options.test.length === 0)) {
|
|
881
|
-
throw new PmCliError("--replace-tests requires at least one --test entry", EXIT_CODE.USAGE);
|
|
882
|
-
}
|
|
883
|
-
if (options.replaceTests === true && options.clearTests === true) {
|
|
884
|
-
throw new PmCliError("--replace-tests cannot be combined with --clear-tests", EXIT_CODE.USAGE);
|
|
885
|
-
}
|
|
886
|
-
}
|
|
887
|
-
function applyClearCollectionDefinitions(params) {
|
|
888
|
-
for (const definition of params.definitions) {
|
|
889
|
-
if (!definition.enabled) {
|
|
890
|
-
continue;
|
|
891
|
-
}
|
|
892
|
-
const isReplacement = definition.optionKey === "dep" && params.options.replaceDeps === true || definition.optionKey === "test" && params.options.replaceTests === true;
|
|
893
|
-
if (definition.values && definition.values.length > 0 && !isReplacement) {
|
|
894
|
-
throw new PmCliError(`Cannot combine ${definition.clearFlag} with ${definition.valueFlag}`, EXIT_CODE.USAGE);
|
|
895
|
-
}
|
|
896
|
-
params.clearOptionKeys.add(definition.optionKey);
|
|
897
|
-
params.clearFrontMatterKeys.add(definition.frontMatterKey);
|
|
898
|
-
}
|
|
899
|
-
}
|
|
900
|
-
function buildScalarOptionPresence(options) {
|
|
901
|
-
const presence = {};
|
|
902
|
-
for (const key of UPDATE_LEGACY_SCALAR_OPTION_KEYS) {
|
|
903
|
-
presence[String(key)] = options[key] !== void 0;
|
|
904
|
-
}
|
|
905
|
-
presence.order = options.order !== void 0 || options.rank !== void 0;
|
|
906
|
-
return presence;
|
|
907
|
-
}
|
|
908
|
-
function rejectUnsetScalarConflicts(options, unsetTargets) {
|
|
909
|
-
const scalarOptionPresence = buildScalarOptionPresence(options);
|
|
910
|
-
for (const [optionKey, hasValue] of Object.entries(scalarOptionPresence)) {
|
|
911
|
-
if (!hasValue || !unsetTargets.optionKeys.has(optionKey)) {
|
|
912
|
-
continue;
|
|
913
|
-
}
|
|
914
|
-
const unsetField = UPDATE_OPTION_KEY_TO_UNSET_CANONICAL.get(optionKey) ?? optionKey;
|
|
915
|
-
throw new PmCliError(`Cannot combine --unset ${unsetField} with ${commandOptionFlagLabel("update", optionKey)}`, EXIT_CODE.USAGE);
|
|
916
|
-
}
|
|
917
|
-
if (!unsetTargets.frontMatterKeys.has("tags")) {
|
|
918
|
-
return;
|
|
919
|
-
}
|
|
920
|
-
if (Array.isArray(options.addTags) && options.addTags.length > 0) {
|
|
921
|
-
throw new PmCliError("Cannot combine --unset tags with --add-tags", EXIT_CODE.USAGE);
|
|
922
|
-
}
|
|
923
|
-
if (Array.isArray(options.removeTags) && options.removeTags.length > 0) {
|
|
924
|
-
throw new PmCliError("Cannot combine --unset tags with --remove-tags", EXIT_CODE.USAGE);
|
|
925
|
-
}
|
|
926
|
-
}
|
|
927
|
-
function rejectLegacyScalarTokens(options) {
|
|
928
|
-
const assertNoLegacyScalarToken = (value, optionKey) => {
|
|
929
|
-
const unsetField = UPDATE_OPTION_KEY_TO_UNSET_CANONICAL.get(optionKey);
|
|
930
|
-
const hint = unsetField ? `Use --unset ${unsetField} to clear this field.` : void 0;
|
|
931
|
-
assertNoLegacyNoneToken(value, commandOptionFlagLabel("update", optionKey), hint);
|
|
932
|
-
};
|
|
933
|
-
for (const key of UPDATE_LEGACY_SCALAR_OPTION_KEYS) {
|
|
934
|
-
assertNoLegacyScalarToken(options[key], String(key));
|
|
935
|
-
}
|
|
936
|
-
assertNoLegacyScalarToken(options.order ?? options.rank, "order");
|
|
937
|
-
assertNoLegacyNoneTokens(options.reminder, "--reminder", "Use --clear-reminders to clear reminders.");
|
|
938
|
-
assertNoLegacyNoneTokens(options.event, "--event", "Use --clear-events to clear linked events.");
|
|
939
|
-
}
|
|
940
|
-
function buildUpdateFieldFlags(options, runtimeFieldUpdates) {
|
|
941
|
-
const flags = {};
|
|
942
|
-
for (const key of UPDATE_SIMPLE_FIELD_FLAG_KEYS) {
|
|
943
|
-
flags[String(key)] = options[key] !== void 0;
|
|
944
|
-
}
|
|
945
|
-
flags.tags = options.tags !== void 0;
|
|
946
|
-
flags.addTags = Array.isArray(options.addTags) && options.addTags.length > 0;
|
|
947
|
-
flags.removeTags = Array.isArray(options.removeTags) && options.removeTags.length > 0;
|
|
948
|
-
flags.order = options.order !== void 0;
|
|
949
|
-
flags.rank = options.rank !== void 0;
|
|
950
|
-
flags.replaceDeps = options.replaceDeps === true;
|
|
951
|
-
flags.replaceTests = options.replaceTests === true;
|
|
952
|
-
flags.unset = options.unset !== void 0 && options.unset.length > 0;
|
|
953
|
-
flags.clearDeps = options.clearDeps === true;
|
|
954
|
-
flags.clearComments = options.clearComments === true;
|
|
955
|
-
flags.clearNotes = options.clearNotes === true;
|
|
956
|
-
flags.clearLearnings = options.clearLearnings === true;
|
|
957
|
-
flags.clearFiles = options.clearFiles === true;
|
|
958
|
-
flags.clearTests = options.clearTests === true;
|
|
959
|
-
flags.clearDocs = options.clearDocs === true;
|
|
960
|
-
flags.clearReminders = options.clearReminders === true;
|
|
961
|
-
flags.clearEvents = options.clearEvents === true;
|
|
962
|
-
flags.clearTypeOptions = options.clearTypeOptions === true;
|
|
963
|
-
flags.runtimeFields = Object.keys(runtimeFieldUpdates).length > 0;
|
|
964
|
-
return flags;
|
|
965
|
-
}
|
|
966
|
-
async function buildNoopUpdateResult(params) {
|
|
967
|
-
const located = await locateItem(params.pmRoot, params.id, params.settings.id_prefix, params.settings.item_format, params.typeRegistry.type_to_folder);
|
|
968
|
-
if (!located) {
|
|
969
|
-
throw await buildItemNotFoundError(params.pmRoot, params.id, params.settings.id_prefix, params.typeRegistry.type_to_folder);
|
|
970
|
-
}
|
|
971
|
-
const { document } = await readLocatedItem(located, { schema: params.settings.schema });
|
|
972
|
-
return {
|
|
973
|
-
item: toItemRecord(document.metadata),
|
|
974
|
-
changed_fields: [],
|
|
975
|
-
warnings: ["noop_no_update_fields"]
|
|
976
|
-
};
|
|
977
|
-
}
|
|
978
|
-
async function assertUpdateTrackerInitialized(pmRoot) {
|
|
979
|
-
if (!await pathExists(getSettingsPath(pmRoot))) {
|
|
980
|
-
throw new PmCliError(`Tracker is not initialized at ${pmRoot}. Run pm init first.`, EXIT_CODE.NOT_FOUND);
|
|
981
|
-
}
|
|
982
|
-
}
|
|
983
|
-
function assertMatchingOrderRank(options) {
|
|
984
|
-
if (options.order !== void 0 && options.rank !== void 0 && options.order !== options.rank) {
|
|
985
|
-
throw new PmCliError("--order and --rank must match when both are provided", EXIT_CODE.USAGE);
|
|
986
|
-
}
|
|
987
|
-
}
|
|
988
|
-
async function resolveParentReferenceForUpdate(params) {
|
|
989
|
-
if (params.options.parent === void 0 || params.unsetTargets.frontMatterKeys.has("parent")) {
|
|
990
|
-
return { resolvedParentValue: void 0, warnings: [] };
|
|
991
|
-
}
|
|
992
|
-
const resolvedParentValue = normalizeParentReferenceValue(params.options.parent);
|
|
993
|
-
assertParentReferenceIsNotSelf(params.id, resolvedParentValue, params.settings.id_prefix);
|
|
994
|
-
const parentLocated = await locateItem(params.pmRoot, resolvedParentValue, params.settings.id_prefix, params.settings.item_format, params.typeRegistry.type_to_folder);
|
|
995
|
-
if (parentLocated) {
|
|
996
|
-
return { resolvedParentValue, warnings: [] };
|
|
997
|
-
}
|
|
998
|
-
const normalizedParentId = normalizeItemId(resolvedParentValue, params.settings.id_prefix);
|
|
999
|
-
return {
|
|
1000
|
-
resolvedParentValue,
|
|
1001
|
-
warnings: validateMissingParentReference(normalizedParentId, params.parentReferencePolicy).warnings
|
|
1002
|
-
};
|
|
1003
|
-
}
|
|
1004
|
-
function blockedByResolutionWarnings(resolution) {
|
|
1005
|
-
return resolution.unresolved === void 0 ? [] : [`blocked_by_unresolved:${resolution.unresolved}`];
|
|
1006
|
-
}
|
|
1007
|
-
async function collectWorkflowTransitionWarnings(params) {
|
|
1008
|
-
if (params.workflowEnforcement === "off" || params.typeWorkflows.length === 0 || !params.fieldFlags.status || params.options.status === void 0) {
|
|
1009
|
-
return [];
|
|
1010
|
-
}
|
|
1011
|
-
const located = await locateItem(params.pmRoot, params.id, params.settings.id_prefix, params.settings.item_format, params.typeRegistry.type_to_folder);
|
|
1012
|
-
if (!located) {
|
|
1013
|
-
throw await buildItemNotFoundError(params.pmRoot, params.id, params.settings.id_prefix, params.typeRegistry.type_to_folder);
|
|
1014
|
-
}
|
|
1015
|
-
const { document } = await readLocatedItem(located, { schema: params.settings.schema });
|
|
1016
|
-
const effectiveType = params.options.type !== void 0 ? resolveTypeName(params.options.type, params.typeRegistry) ?? params.options.type : document.metadata?.type ?? "";
|
|
1017
|
-
const warning = enforceTypeWorkflowTransition({
|
|
1018
|
-
enforcement: params.workflowEnforcement,
|
|
1019
|
-
typeWorkflows: params.typeWorkflows,
|
|
1020
|
-
statusRegistry: params.statusRegistry,
|
|
1021
|
-
typeName: effectiveType,
|
|
1022
|
-
fromStatus: document.metadata?.status ?? "",
|
|
1023
|
-
toStatus: params.options.status
|
|
1024
|
-
});
|
|
1025
|
-
return warning ? [warning] : [];
|
|
1026
|
-
}
|
|
1027
|
-
async function routeCloseStatusUpdate(context) {
|
|
1028
|
-
if (!context.fieldFlags.status) {
|
|
1029
|
-
return void 0;
|
|
1030
|
-
}
|
|
1031
|
-
const targetStatus = normalizeStatusInput(context.options.status, context.statusRegistry);
|
|
1032
|
-
if (targetStatus !== context.statusRegistry.close_status) {
|
|
1033
|
-
return void 0;
|
|
1034
|
-
}
|
|
1035
|
-
const otherFieldKeys = Object.entries(context.fieldFlags).filter(([key, value]) => value && key !== "status" && key !== "closeReason").map(([key]) => key);
|
|
1036
|
-
const routeWarnings = [];
|
|
1037
|
-
let preChangedFields = [];
|
|
1038
|
-
if (otherFieldKeys.length > 0) {
|
|
1039
|
-
const preUpdate = await runUpdate(context.id, { ...context.options, status: void 0, closeReason: void 0, message: void 0 }, context.global);
|
|
1040
|
-
preChangedFields = preUpdate.changed_fields;
|
|
1041
|
-
routeWarnings.push(...preUpdate.warnings);
|
|
1042
|
-
}
|
|
1043
|
-
const explicitReason = typeof context.options.closeReason === "string" ? context.options.closeReason.trim() : "";
|
|
1044
|
-
const fallbackMessage = typeof context.options.message === "string" ? context.options.message.trim() : "";
|
|
1045
|
-
const closeReason = explicitReason || fallbackMessage || "Closed via pm update";
|
|
1046
|
-
const closeResult = await runClose(context.id, closeReason, {
|
|
1047
|
-
author: context.options.author,
|
|
1048
|
-
message: context.options.message,
|
|
1049
|
-
force: context.options.force
|
|
1050
|
-
}, context.global);
|
|
1051
|
-
const warnings = [
|
|
1052
|
-
...context.workflowTransitionWarnings,
|
|
1053
|
-
...routeWarnings,
|
|
1054
|
-
...closeResult.warnings,
|
|
1055
|
-
"auto_routed_from_update_to_close"
|
|
1056
|
-
];
|
|
1057
|
-
if (explicitReason.length === 0 && fallbackMessage.length === 0) {
|
|
1058
|
-
warnings.push("close_reason_defaulted");
|
|
1059
|
-
}
|
|
1060
|
-
return {
|
|
1061
|
-
item: closeResult.item,
|
|
1062
|
-
changed_fields: [...preChangedFields, ...closeResult.changed_fields],
|
|
1063
|
-
warnings
|
|
1064
|
-
};
|
|
1065
|
-
}
|
|
1066
|
-
function applySimpleItemMutations(document, options, statusRegistry, changedFields) {
|
|
1067
|
-
if (options.title !== void 0) {
|
|
1068
|
-
document.metadata.title = options.title;
|
|
1069
|
-
changedFields.push("title");
|
|
1070
|
-
}
|
|
1071
|
-
if (options.description !== void 0) {
|
|
1072
|
-
document.metadata.description = options.description;
|
|
1073
|
-
changedFields.push("description");
|
|
1074
|
-
}
|
|
1075
|
-
if (options.body !== void 0) {
|
|
1076
|
-
document.body = options.body;
|
|
1077
|
-
changedFields.push("body");
|
|
1078
|
-
}
|
|
1079
|
-
return normalizeStatusInput(document.metadata.status, statusRegistry) ?? document.metadata.status;
|
|
1080
|
-
}
|
|
1081
|
-
function applyStatusAndCloseReasonMutations(document, context, previousStatusNormalized, changedFields) {
|
|
1082
|
-
if (context.options.status !== void 0) {
|
|
1083
|
-
const status = parseStatus(context.options.status, context.statusRegistry);
|
|
1084
|
-
document.metadata.status = status;
|
|
1085
|
-
changedFields.push("status");
|
|
1086
|
-
}
|
|
1087
|
-
if (context.options.closeReason !== void 0 || context.clearFrontMatterKeys.has("close_reason")) {
|
|
1088
|
-
if (context.clearFrontMatterKeys.has("close_reason")) {
|
|
1089
|
-
delete document.metadata.close_reason;
|
|
1090
|
-
} else {
|
|
1091
|
-
const closeReason = context.options.closeReason?.trim() ?? "";
|
|
1092
|
-
if (closeReason.length === 0) {
|
|
1093
|
-
throw new PmCliError("--close-reason must not be empty", EXIT_CODE.USAGE);
|
|
1094
|
-
}
|
|
1095
|
-
document.metadata.close_reason = closeReason;
|
|
1096
|
-
}
|
|
1097
|
-
changedFields.push("close_reason");
|
|
1098
|
-
return;
|
|
1099
|
-
}
|
|
1100
|
-
if (context.options.status !== void 0 && previousStatusNormalized === context.statusRegistry.close_status && document.metadata.status !== context.statusRegistry.canceled_status && document.metadata.close_reason !== void 0) {
|
|
1101
|
-
delete document.metadata.close_reason;
|
|
1102
|
-
changedFields.push("close_reason");
|
|
1103
|
-
}
|
|
1104
|
-
}
|
|
1105
|
-
function applyPriorityTypeAndOptions(document, context, changedFields) {
|
|
1106
|
-
let activeTypeName = resolveTypeName(document.metadata.type, context.typeRegistry) ?? document.metadata.type;
|
|
1107
|
-
if (context.options.priority !== void 0) {
|
|
1108
|
-
document.metadata.priority = ensurePriority(context.options.priority);
|
|
1109
|
-
changedFields.push("priority");
|
|
1110
|
-
}
|
|
1111
|
-
if (context.options.type !== void 0) {
|
|
1112
|
-
const resolvedTypeName = resolveTypeName(context.options.type, context.typeRegistry);
|
|
1113
|
-
if (!resolvedTypeName) {
|
|
1114
|
-
throw new PmCliError(buildInvalidTypeError(context.options.type, context.typeRegistry.types, resolveItemTypesFilePath(context.pmRoot, context.settings.schema)), EXIT_CODE.USAGE);
|
|
1115
|
-
}
|
|
1116
|
-
document.metadata.type = resolvedTypeName;
|
|
1117
|
-
activeTypeName = resolvedTypeName;
|
|
1118
|
-
changedFields.push("type");
|
|
1119
|
-
}
|
|
1120
|
-
enforceUpdateOptionsByType(activeTypeName, context.options, context.typeRegistry, context.runtimeFieldRegistry, context.extensionFieldNames);
|
|
1121
|
-
applyTypeOptionMutation(document, context, activeTypeName, changedFields);
|
|
1122
|
-
return activeTypeName;
|
|
1123
|
-
}
|
|
1124
|
-
function applyTypeOptionMutation(document, context, activeTypeName, changedFields) {
|
|
1125
|
-
if (context.options.typeOption !== void 0 || context.clearFrontMatterKeys.has("type_options")) {
|
|
1126
|
-
if (context.clearFrontMatterKeys.has("type_options")) {
|
|
1127
|
-
delete document.metadata.type_options;
|
|
1128
|
-
} else {
|
|
1129
|
-
const parsedTypeOptions = parseTypeOptionEntries(context.options.typeOption ?? []);
|
|
1130
|
-
const validation2 = validateTypeOptions(activeTypeName, parsedTypeOptions, context.typeRegistry);
|
|
1131
|
-
if (validation2.errors.length > 0) {
|
|
1132
|
-
throw new PmCliError(validation2.errors.join("; "), EXIT_CODE.USAGE);
|
|
1133
|
-
}
|
|
1134
|
-
document.metadata.type_options = validation2.normalized;
|
|
1135
|
-
}
|
|
1136
|
-
changedFields.push("type_options");
|
|
1137
|
-
return;
|
|
1138
|
-
}
|
|
1139
|
-
if (context.options.type === void 0 || document.metadata.type_options === void 0) {
|
|
1140
|
-
return;
|
|
1141
|
-
}
|
|
1142
|
-
const validation = validateTypeOptions(activeTypeName, document.metadata.type_options, context.typeRegistry);
|
|
1143
|
-
if (validation.errors.length > 0) {
|
|
1144
|
-
throw new PmCliError(`Current type options are incompatible with type "${activeTypeName}". ${validation.errors.join("; ")}. Use --clear-type-options to clear them.`, EXIT_CODE.USAGE);
|
|
1145
|
-
}
|
|
1146
|
-
document.metadata.type_options = validation.normalized;
|
|
1147
|
-
}
|
|
1148
|
-
function applyDependencyMutations(document, context, changedFields) {
|
|
1149
|
-
if (context.options.dep === void 0 && context.options.depRemove === void 0 && !context.clearFrontMatterKeys.has("dependencies")) {
|
|
1150
|
-
return;
|
|
1151
|
-
}
|
|
1152
|
-
let nextDependencies = context.clearFrontMatterKeys.has("dependencies") ? [] : [...document.metadata.dependencies ?? []];
|
|
1153
|
-
if (context.dependencyUpdates.additions.length > 0) {
|
|
1154
|
-
const seen = new Set(nextDependencies.map((entry) => dependencyKey(entry)));
|
|
1155
|
-
for (const addition of context.dependencyUpdates.additions) {
|
|
1156
|
-
const key = dependencyKey(addition);
|
|
1157
|
-
if (!seen.has(key)) {
|
|
1158
|
-
nextDependencies.push(addition);
|
|
1159
|
-
seen.add(key);
|
|
1160
|
-
}
|
|
1161
|
-
}
|
|
1162
|
-
}
|
|
1163
|
-
if (context.dependencyRemovals.length > 0) {
|
|
1164
|
-
nextDependencies = nextDependencies.filter((entry) => !context.dependencyRemovals.some((selector) => matchesDependencySelector(entry, selector)));
|
|
1165
|
-
}
|
|
1166
|
-
if (nextDependencies.length === 0) {
|
|
1167
|
-
delete document.metadata.dependencies;
|
|
1168
|
-
} else {
|
|
1169
|
-
document.metadata.dependencies = nextDependencies;
|
|
1170
|
-
}
|
|
1171
|
-
changedFields.push("dependencies");
|
|
1172
|
-
}
|
|
1173
|
-
function applyLogCollectionMutations(document, context, changedFields) {
|
|
1174
|
-
applyLogCollectionMutation(document, "comments", context.options.comment, context.commentUpdates.values, context.clearFrontMatterKeys, changedFields);
|
|
1175
|
-
applyLogCollectionMutation(document, "notes", context.options.note, context.noteUpdates.values, context.clearFrontMatterKeys, changedFields);
|
|
1176
|
-
applyLogCollectionMutation(document, "learnings", context.options.learning, context.learningUpdates.values, context.clearFrontMatterKeys, changedFields);
|
|
1177
|
-
}
|
|
1178
|
-
function applyLogCollectionMutation(document, key, optionValue, values, clearFrontMatterKeys, changedFields) {
|
|
1179
|
-
if (optionValue === void 0 && !clearFrontMatterKeys.has(key)) {
|
|
1180
|
-
return;
|
|
1181
|
-
}
|
|
1182
|
-
if (clearFrontMatterKeys.has(key) || !values || values.length === 0) {
|
|
1183
|
-
delete document.metadata[key];
|
|
1184
|
-
} else {
|
|
1185
|
-
document.metadata[key] = [...document.metadata[key] ?? [], ...values];
|
|
1186
|
-
}
|
|
1187
|
-
changedFields.push(key);
|
|
1188
|
-
}
|
|
1189
|
-
function applyEvidenceCollectionMutations(document, context, changedFields) {
|
|
1190
|
-
applyUniqueLinkedCollectionMutation(document, "files", context.options.file, context.fileUpdates.values, fileKey, context.clearFrontMatterKeys, changedFields);
|
|
1191
|
-
applyTestCollectionMutation(document, context, changedFields);
|
|
1192
|
-
applyUniqueLinkedCollectionMutation(document, "docs", context.options.doc, context.docUpdates.values, docKey, context.clearFrontMatterKeys, changedFields);
|
|
1193
|
-
}
|
|
1194
|
-
function applyUniqueLinkedCollectionMutation(document, key, optionValue, values, keyOf, clearFrontMatterKeys, changedFields) {
|
|
1195
|
-
if (optionValue === void 0 && !clearFrontMatterKeys.has(key)) {
|
|
1196
|
-
return;
|
|
1197
|
-
}
|
|
1198
|
-
if (clearFrontMatterKeys.has(key) || !values || values.length === 0) {
|
|
1199
|
-
delete document.metadata[key];
|
|
1200
|
-
} else {
|
|
1201
|
-
const next = [...document.metadata[key] ?? []];
|
|
1202
|
-
const seen = new Set(next.map((entry) => keyOf(entry)));
|
|
1203
|
-
for (const entry of values) {
|
|
1204
|
-
const keyValue = keyOf(entry);
|
|
1205
|
-
if (!seen.has(keyValue)) {
|
|
1206
|
-
next.push(entry);
|
|
1207
|
-
seen.add(keyValue);
|
|
1208
|
-
}
|
|
1209
|
-
}
|
|
1210
|
-
document.metadata[key] = next;
|
|
1211
|
-
}
|
|
1212
|
-
changedFields.push(key);
|
|
1213
|
-
}
|
|
1214
|
-
function applyTestCollectionMutation(document, context, changedFields) {
|
|
1215
|
-
if (context.options.test === void 0 && !context.clearFrontMatterKeys.has("tests")) {
|
|
1216
|
-
return;
|
|
1217
|
-
}
|
|
1218
|
-
if (context.clearFrontMatterKeys.has("tests") && context.options.replaceTests === true) {
|
|
1219
|
-
document.metadata.tests = dedupeLinkedTests(context.testUpdates.values) ?? [];
|
|
1220
|
-
} else if (context.clearFrontMatterKeys.has("tests") || !context.testUpdates.values || context.testUpdates.values.length === 0) {
|
|
1221
|
-
delete document.metadata.tests;
|
|
1222
|
-
} else {
|
|
1223
|
-
document.metadata.tests = dedupeLinkedTests([...document.metadata.tests ?? [], ...context.testUpdates.values]);
|
|
1224
|
-
}
|
|
1225
|
-
if (document.metadata.tests !== void 0 && document.metadata.tests.length === 0) {
|
|
1226
|
-
delete document.metadata.tests;
|
|
1227
|
-
}
|
|
1228
|
-
changedFields.push("tests");
|
|
1229
|
-
}
|
|
1230
|
-
function dedupeLinkedTests(values) {
|
|
1231
|
-
if (!values || values.length === 0) {
|
|
1232
|
-
return void 0;
|
|
1233
|
-
}
|
|
1234
|
-
const next = [];
|
|
1235
|
-
const seen = /* @__PURE__ */ new Set();
|
|
1236
|
-
for (const entry of values) {
|
|
1237
|
-
const key = testKey(entry);
|
|
1238
|
-
if (!seen.has(key)) {
|
|
1239
|
-
next.push(entry);
|
|
1240
|
-
seen.add(key);
|
|
1241
|
-
}
|
|
1242
|
-
}
|
|
1243
|
-
return next;
|
|
1244
|
-
}
|
|
1245
|
-
function applyTagsAndPlanningMutations(document, context, scalarMutationContext) {
|
|
1246
|
-
const addTagsValues = context.options.addTags;
|
|
1247
|
-
const removeTagsValues = context.options.removeTags;
|
|
1248
|
-
const hasAdditiveTagMutation = Array.isArray(addTagsValues) && addTagsValues.length > 0 || Array.isArray(removeTagsValues) && removeTagsValues.length > 0;
|
|
1249
|
-
if (context.options.tags !== void 0 || context.clearFrontMatterKeys.has("tags") || hasAdditiveTagMutation) {
|
|
1250
|
-
const baseTags = context.clearFrontMatterKeys.has("tags") ? [] : context.options.tags !== void 0 ? parseTags(context.options.tags) : Array.isArray(document.metadata.tags) ? [...document.metadata.tags] : [];
|
|
1251
|
-
document.metadata.tags = applyTagRemovals(mergeAdditiveTags(baseTags, addTagsValues), removeTagsValues);
|
|
1252
|
-
scalarMutationContext.changedFields.push("tags");
|
|
1253
|
-
}
|
|
1254
|
-
applyUpdateScalarMutations(UPDATE_POST_TAG_SCALAR_MUTATIONS, context.options, scalarMutationContext);
|
|
1255
|
-
applyOrderMutation(document, context, scalarMutationContext.changedFields);
|
|
1256
|
-
}
|
|
1257
|
-
function applyOrderMutation(document, context, changedFields) {
|
|
1258
|
-
const orderRaw = context.options.order ?? context.options.rank;
|
|
1259
|
-
if (orderRaw === void 0 && !context.clearFrontMatterKeys.has("order")) {
|
|
1260
|
-
return;
|
|
1261
|
-
}
|
|
1262
|
-
if (context.clearFrontMatterKeys.has("order")) {
|
|
1263
|
-
delete document.metadata.order;
|
|
1264
|
-
} else {
|
|
1265
|
-
const parsedOrder = parseOptionalNumber(orderRaw ?? "", "order");
|
|
1266
|
-
if (!Number.isInteger(parsedOrder)) {
|
|
1267
|
-
throw new PmCliError("Order must be an integer", EXIT_CODE.USAGE);
|
|
1268
|
-
}
|
|
1269
|
-
document.metadata.order = parsedOrder;
|
|
1270
|
-
}
|
|
1271
|
-
changedFields.push("order");
|
|
1272
|
-
}
|
|
1273
|
-
function applyOwnershipAndIssueMutations(document, context, scalarMutationContext, warnings) {
|
|
1274
|
-
applyAssigneeMutation(document, context, scalarMutationContext.changedFields);
|
|
1275
|
-
applyParentMutation(document, context, scalarMutationContext.changedFields);
|
|
1276
|
-
applyUpdateScalarMutations(UPDATE_STAKEHOLDER_SCALAR_MUTATIONS, context.options, scalarMutationContext);
|
|
1277
|
-
applySprintReleaseMutation(document, context, "sprint", warnings, scalarMutationContext.changedFields);
|
|
1278
|
-
applySprintReleaseMutation(document, context, "release", warnings, scalarMutationContext.changedFields);
|
|
1279
|
-
applyBlockedByMutation(document, context, scalarMutationContext.changedFields);
|
|
1280
|
-
applyUpdateScalarMutations(UPDATE_ISSUE_SCALAR_MUTATIONS, context.options, scalarMutationContext);
|
|
1281
|
-
}
|
|
1282
|
-
function applyAssigneeMutation(document, context, changedFields) {
|
|
1283
|
-
if (context.options.assignee === void 0 && !context.clearFrontMatterKeys.has("assignee")) {
|
|
1284
|
-
return;
|
|
1285
|
-
}
|
|
1286
|
-
if (context.clearFrontMatterKeys.has("assignee")) {
|
|
1287
|
-
delete document.metadata.assignee;
|
|
1288
|
-
} else {
|
|
1289
|
-
const assignee = context.options.assignee?.trim() ?? "";
|
|
1290
|
-
if (assignee === "") {
|
|
1291
|
-
throw new PmCliError("--assignee must not be empty. Use --unset assignee to clear it.", EXIT_CODE.USAGE);
|
|
1292
|
-
}
|
|
1293
|
-
document.metadata.assignee = assignee;
|
|
1294
|
-
}
|
|
1295
|
-
changedFields.push("assignee");
|
|
1296
|
-
}
|
|
1297
|
-
function applyParentMutation(document, context, changedFields) {
|
|
1298
|
-
if (context.options.parent === void 0 && !context.clearFrontMatterKeys.has("parent")) {
|
|
1299
|
-
return;
|
|
1300
|
-
}
|
|
1301
|
-
if (context.clearFrontMatterKeys.has("parent")) {
|
|
1302
|
-
delete document.metadata.parent;
|
|
1303
|
-
} else {
|
|
1304
|
-
document.metadata.parent = context.resolvedParentValue ?? "";
|
|
1305
|
-
}
|
|
1306
|
-
changedFields.push("parent");
|
|
1307
|
-
}
|
|
1308
|
-
function applySprintReleaseMutation(document, context, key, warnings, changedFields) {
|
|
1309
|
-
if (context.options[key] === void 0 && !context.clearFrontMatterKeys.has(key)) {
|
|
1310
|
-
return;
|
|
1311
|
-
}
|
|
1312
|
-
if (context.clearFrontMatterKeys.has(key)) {
|
|
1313
|
-
delete document.metadata[key];
|
|
1314
|
-
} else {
|
|
1315
|
-
const validation = validateSprintOrReleaseValue(key, context.options[key] ?? "", context.settings.validation.sprint_release_format);
|
|
1316
|
-
document.metadata[key] = validation.value;
|
|
1317
|
-
warnings.push(...validation.warnings);
|
|
1318
|
-
}
|
|
1319
|
-
changedFields.push(key);
|
|
1320
|
-
}
|
|
1321
|
-
function applyBlockedByMutation(document, context, changedFields) {
|
|
1322
|
-
if (context.options.blockedBy === void 0 && !context.clearFrontMatterKeys.has("blocked_by")) {
|
|
1323
|
-
return;
|
|
1324
|
-
}
|
|
1325
|
-
if (context.clearFrontMatterKeys.has("blocked_by")) {
|
|
1326
|
-
delete document.metadata.blocked_by;
|
|
1327
|
-
} else {
|
|
1328
|
-
document.metadata.blocked_by = context.options.blockedBy?.trim() ?? "";
|
|
1329
|
-
}
|
|
1330
|
-
changedFields.push("blocked_by");
|
|
1331
|
-
applyBlockedByDependencyEdge(document.metadata, context.resolvedBlockedByDependencyId, context.nowIso, context.author, changedFields);
|
|
1332
|
-
}
|
|
1333
|
-
function applyScheduleMutations(document, context, changedFields) {
|
|
1334
|
-
if (context.options.reminder !== void 0 || context.clearFrontMatterKeys.has("reminders")) {
|
|
1335
|
-
if (context.clearFrontMatterKeys.has("reminders")) {
|
|
1336
|
-
delete document.metadata.reminders;
|
|
1337
|
-
} else {
|
|
1338
|
-
document.metadata.reminders = parseReminderEntries(context.options.reminder ?? [], context.nowValue, { valueMode: "trimmed" });
|
|
1339
|
-
}
|
|
1340
|
-
changedFields.push("reminders");
|
|
1341
|
-
}
|
|
1342
|
-
if (context.options.event !== void 0 || context.clearFrontMatterKeys.has("events")) {
|
|
1343
|
-
if (context.clearFrontMatterKeys.has("events")) {
|
|
1344
|
-
delete document.metadata.events;
|
|
1345
|
-
} else {
|
|
1346
|
-
document.metadata.events = parseEventEntries(context.options.event ?? [], context.nowValue, {
|
|
1347
|
-
allDayEmptyGuard: "truthy",
|
|
1348
|
-
recurrenceEmptyNumericGuard: "truthy"
|
|
1349
|
-
});
|
|
1350
|
-
}
|
|
1351
|
-
changedFields.push("events");
|
|
1352
|
-
}
|
|
1353
|
-
}
|
|
1354
|
-
function applyRuntimeAndRegisteredFieldMutations(metadataRecord, context, changedFields) {
|
|
1355
|
-
clearDynamicFields(metadataRecord, context.runtimeFieldRegistry.definitions.map((definition) => definition.metadata_key), context.clearFrontMatterKeys, changedFields);
|
|
1356
|
-
clearDynamicFields(metadataRecord, context.extensionFieldNames, context.clearFrontMatterKeys, changedFields);
|
|
1357
|
-
for (const [fieldKey, fieldValue] of Object.entries(context.runtimeFieldUpdates)) {
|
|
1358
|
-
if (context.clearFrontMatterKeys.has(fieldKey)) {
|
|
1359
|
-
const fieldFlag = fieldKey.replaceAll("_", "-");
|
|
1360
|
-
const definition = context.runtimeFieldRegistry.definitions.find((candidate) => candidate.metadata_key === fieldKey);
|
|
1361
|
-
const updateFlag = definition?.cli_flag ?? fieldFlag;
|
|
1362
|
-
throw new PmCliError(`Cannot combine --unset ${fieldFlag} with --${updateFlag}`, EXIT_CODE.USAGE);
|
|
1363
|
-
}
|
|
1364
|
-
if (stableValueEquals(metadataRecord[fieldKey], fieldValue)) {
|
|
1365
|
-
continue;
|
|
1366
|
-
}
|
|
1367
|
-
metadataRecord[fieldKey] = fieldValue;
|
|
1368
|
-
changedFields.push(fieldKey);
|
|
1369
|
-
}
|
|
1370
|
-
const registeredItemFieldUpdates = parseRegisteredItemFieldAssignments(context.options.field, context.extensionRegistrations);
|
|
1371
|
-
for (const fieldKey of Object.keys(registeredItemFieldUpdates)) {
|
|
1372
|
-
if (context.clearFrontMatterKeys.has(fieldKey)) {
|
|
1373
|
-
throw new PmCliError(`Cannot combine --unset ${fieldKey.replaceAll("_", "-")} with --field ${fieldKey}=...`, EXIT_CODE.USAGE);
|
|
1374
|
-
}
|
|
1375
|
-
}
|
|
1376
|
-
for (const [fieldKey, fieldValue] of Object.entries(registeredItemFieldUpdates)) {
|
|
1377
|
-
if (!stableValueEquals(metadataRecord[fieldKey], fieldValue)) {
|
|
1378
|
-
metadataRecord[fieldKey] = fieldValue;
|
|
1379
|
-
changedFields.push(fieldKey);
|
|
1380
|
-
}
|
|
1381
|
-
}
|
|
1382
|
-
}
|
|
1383
|
-
function clearDynamicFields(metadataRecord, fieldKeys, clearFrontMatterKeys, changedFields) {
|
|
1384
|
-
for (const fieldKey of fieldKeys) {
|
|
1385
|
-
if (!clearFrontMatterKeys.has(fieldKey) || metadataRecord[fieldKey] === void 0) {
|
|
1386
|
-
continue;
|
|
1387
|
-
}
|
|
1388
|
-
delete metadataRecord[fieldKey];
|
|
1389
|
-
changedFields.push(fieldKey);
|
|
1390
|
-
}
|
|
1391
|
-
}
|
|
1392
|
-
function mutateUpdateDocument(document, context) {
|
|
1393
|
-
const changedFields = [];
|
|
1394
|
-
const warnings = [];
|
|
1395
|
-
const previousStatusNormalized = applySimpleItemMutations(document, context.options, context.statusRegistry, changedFields);
|
|
1396
|
-
const metadataRecord = toItemRecord(document.metadata);
|
|
1397
|
-
const scalarMutationContext = {
|
|
1398
|
-
metadataRecord,
|
|
1399
|
-
clearFrontMatterKeys: context.clearFrontMatterKeys,
|
|
1400
|
-
changedFields,
|
|
1401
|
-
nowValue: context.nowValue
|
|
1402
|
-
};
|
|
1403
|
-
applyStatusAndCloseReasonMutations(document, context, previousStatusNormalized, changedFields);
|
|
1404
|
-
applyPriorityTypeAndOptions(document, context, changedFields);
|
|
1405
|
-
applyDependencyMutations(document, context, changedFields);
|
|
1406
|
-
applyLogCollectionMutations(document, context, changedFields);
|
|
1407
|
-
applyEvidenceCollectionMutations(document, context, changedFields);
|
|
1408
|
-
applyTagsAndPlanningMutations(document, context, scalarMutationContext);
|
|
1409
|
-
applyOwnershipAndIssueMutations(document, context, scalarMutationContext, warnings);
|
|
1410
|
-
if (normalizeStatusInput(document.metadata.status, context.statusRegistry) === context.statusRegistry.canceled_status && document.metadata.assignee !== void 0) {
|
|
1411
|
-
delete document.metadata.assignee;
|
|
1412
|
-
if (!changedFields.includes("assignee")) {
|
|
1413
|
-
changedFields.push("assignee");
|
|
1414
|
-
}
|
|
1415
|
-
}
|
|
1416
|
-
applyScheduleMutations(document, context, changedFields);
|
|
1417
|
-
applyRuntimeAndRegisteredFieldMutations(metadataRecord, context, changedFields);
|
|
1418
|
-
try {
|
|
1419
|
-
applyRegisteredItemFieldDefaultsAndValidation(metadataRecord, context.extensionRegistrations, { skipDefaultFields: context.clearFrontMatterKeys });
|
|
1420
|
-
} catch (error) {
|
|
1421
|
-
throw new PmCliError(error instanceof Error ? error.message : "Invalid extension item field values", EXIT_CODE.USAGE);
|
|
1422
|
-
}
|
|
1423
|
-
return { changedFields, warnings };
|
|
1424
|
-
}
|
|
1425
|
-
async function runUpdate(id, options, global2) {
|
|
1426
|
-
options = await resolveStdinUpdateOptions(options);
|
|
1427
|
-
const pmRoot = resolvePmRoot(process.cwd(), global2.path);
|
|
1428
|
-
await assertUpdateTrackerInitialized(pmRoot);
|
|
1429
|
-
const settings = await readSettings(pmRoot);
|
|
1430
|
-
const statusRegistry = resolveRuntimeStatusRegistry(settings.schema);
|
|
1431
|
-
const runtimeFieldRegistry = resolveRuntimeFieldRegistry(settings.schema);
|
|
1432
|
-
const extensionRegistrations = getActiveExtensionRegistrations();
|
|
1433
|
-
const extensionFieldNames = collectRegisteredItemFieldNames(extensionRegistrations);
|
|
1434
|
-
const typeRegistry = resolveItemTypeRegistry(settings, extensionRegistrations);
|
|
1435
|
-
const workflowEnforcement = settings.governance.workflow_enforcement ?? "off";
|
|
1436
|
-
const typeWorkflows = workflowEnforcement === "off" ? [] : resolveTypeWorkflows(settings.schema);
|
|
1437
|
-
const parentReferencePolicy = settings.validation.parent_reference;
|
|
1438
|
-
const unsetTargets = parseUpdateUnsetTargets(options.unset, runtimeFieldRegistry, extensionFieldNames);
|
|
1439
|
-
const clearOptionKeys = new Set(unsetTargets.optionKeys);
|
|
1440
|
-
const clearFrontMatterKeys = new Set(unsetTargets.frontMatterKeys);
|
|
1441
|
-
validateReplaceOptions(options);
|
|
1442
|
-
applyClearCollectionDefinitions({
|
|
1443
|
-
definitions: buildClearCollectionDefinitions(options),
|
|
1444
|
-
options,
|
|
1445
|
-
clearOptionKeys,
|
|
1446
|
-
clearFrontMatterKeys
|
|
1447
|
-
});
|
|
1448
|
-
enforceAllowAuditUpdateScope(id, options, clearFrontMatterKeys);
|
|
1449
|
-
rejectUnsetScalarConflicts(options, unsetTargets);
|
|
1450
|
-
rejectLegacyScalarTokens(options);
|
|
1451
|
-
const author = toAuthor(options.author, settings.author_default);
|
|
1452
|
-
const nowValue = /* @__PURE__ */ new Date();
|
|
1453
|
-
const nowIso = nowValue.toISOString();
|
|
1454
|
-
const dependencyUpdates = parseDependencyAdditions(options.dep, settings.id_prefix, nowIso);
|
|
1455
|
-
const dependencyRemovals = parseDependencyRemovals(options.depRemove, settings.id_prefix);
|
|
1456
|
-
const parsedCommentUpdates = parseLogSeed("--comment", options.comment, nowIso, author);
|
|
1457
|
-
const commentUpdates = options.allowAuditUpdate === true && parsedCommentUpdates.values ? {
|
|
1458
|
-
...parsedCommentUpdates,
|
|
1459
|
-
values: parsedCommentUpdates.values.map((entry) => ({ ...entry, author }))
|
|
1460
|
-
} : parsedCommentUpdates;
|
|
1461
|
-
const noteUpdates = parseLogSeed("--note", options.note, nowIso, author);
|
|
1462
|
-
const learningUpdates = parseLogSeed("--learning", options.learning, nowIso, author);
|
|
1463
|
-
const fileUpdates = parseFiles(options.file);
|
|
1464
|
-
const testUpdates = parseTests(options.test);
|
|
1465
|
-
const docUpdates = parseDocs(options.doc);
|
|
1466
|
-
const workflowTransitionWarnings = [];
|
|
1467
|
-
const parentReference = await resolveParentReferenceForUpdate({
|
|
1468
|
-
id,
|
|
1469
|
-
options,
|
|
1470
|
-
unsetTargets,
|
|
1471
|
-
pmRoot,
|
|
1472
|
-
settings,
|
|
1473
|
-
typeRegistry,
|
|
1474
|
-
parentReferencePolicy
|
|
1475
|
-
});
|
|
1476
|
-
const blockedByResolution = await resolveBlockedByDependencyTarget(options.blockedBy, clearFrontMatterKeys.has("blocked_by"), pmRoot, settings.id_prefix, settings.item_format, typeRegistry.type_to_folder);
|
|
1477
|
-
const resolvedBlockedByDependencyId = blockedByResolution.id;
|
|
1478
|
-
const parentReferenceWarnings = [...parentReference.warnings, ...blockedByResolutionWarnings(blockedByResolution)];
|
|
1479
|
-
const runtimeFieldUpdates = collectRuntimeUpdateFieldValues(options, runtimeFieldRegistry, options.runtimeFieldCommands);
|
|
1480
|
-
const fieldFlags = buildUpdateFieldFlags(options, runtimeFieldUpdates);
|
|
1481
|
-
const changedFlags = Object.values(fieldFlags).some(Boolean);
|
|
1482
|
-
if (!changedFlags) {
|
|
1483
|
-
return buildNoopUpdateResult({ pmRoot, id, settings, typeRegistry });
|
|
1484
|
-
}
|
|
1485
|
-
workflowTransitionWarnings.push(...await collectWorkflowTransitionWarnings({
|
|
1486
|
-
options,
|
|
1487
|
-
fieldFlags,
|
|
1488
|
-
workflowEnforcement,
|
|
1489
|
-
typeWorkflows,
|
|
1490
|
-
statusRegistry,
|
|
1491
|
-
typeRegistry,
|
|
1492
|
-
pmRoot,
|
|
1493
|
-
id,
|
|
1494
|
-
settings
|
|
1495
|
-
}));
|
|
1496
|
-
const routedClose = await routeCloseStatusUpdate({
|
|
1497
|
-
options,
|
|
1498
|
-
fieldFlags,
|
|
1499
|
-
statusRegistry,
|
|
1500
|
-
workflowTransitionWarnings,
|
|
1501
|
-
global: global2,
|
|
1502
|
-
id
|
|
1503
|
-
});
|
|
1504
|
-
if (routedClose) {
|
|
1505
|
-
return routedClose;
|
|
1506
|
-
}
|
|
1507
|
-
assertMatchingOrderRank(options);
|
|
1508
|
-
const result = await mutateItem({
|
|
1509
|
-
pmRoot,
|
|
1510
|
-
settings,
|
|
1511
|
-
typeToFolder: typeRegistry.type_to_folder,
|
|
1512
|
-
id,
|
|
1513
|
-
op: options.allowAuditUpdate === true || options.allowAuditDepUpdate === true ? "update_audit" : "update",
|
|
1514
|
-
author,
|
|
1515
|
-
message: options.message,
|
|
1516
|
-
force: options.force,
|
|
1517
|
-
bypassAssigneeConflict: options.allowAuditUpdate === true || options.allowAuditDepUpdate === true,
|
|
1518
|
-
extensionFieldNames,
|
|
1519
|
-
mutate(document) {
|
|
1520
|
-
return mutateUpdateDocument(document, {
|
|
1521
|
-
options,
|
|
1522
|
-
settings,
|
|
1523
|
-
typeRegistry,
|
|
1524
|
-
statusRegistry,
|
|
1525
|
-
runtimeFieldRegistry,
|
|
1526
|
-
extensionRegistrations,
|
|
1527
|
-
extensionFieldNames,
|
|
1528
|
-
clearFrontMatterKeys,
|
|
1529
|
-
dependencyUpdates,
|
|
1530
|
-
dependencyRemovals,
|
|
1531
|
-
commentUpdates,
|
|
1532
|
-
noteUpdates,
|
|
1533
|
-
learningUpdates,
|
|
1534
|
-
fileUpdates,
|
|
1535
|
-
testUpdates,
|
|
1536
|
-
docUpdates,
|
|
1537
|
-
resolvedParentValue: parentReference.resolvedParentValue,
|
|
1538
|
-
resolvedBlockedByDependencyId,
|
|
1539
|
-
runtimeFieldUpdates,
|
|
1540
|
-
nowValue,
|
|
1541
|
-
nowIso,
|
|
1542
|
-
author,
|
|
1543
|
-
pmRoot
|
|
1544
|
-
});
|
|
1545
|
-
}
|
|
1546
|
-
});
|
|
1547
|
-
return {
|
|
1548
|
-
item: toItemRecord(result.item),
|
|
1549
|
-
changed_fields: result.changedFields,
|
|
1550
|
-
warnings: [...workflowTransitionWarnings, ...parentReferenceWarnings, ...result.warnings],
|
|
1551
|
-
...options.allowAuditUpdate === true || options.allowAuditDepUpdate === true ? { audit_update: true } : {}
|
|
1552
|
-
};
|
|
1553
|
-
}
|
|
1554
|
-
var _testOnlyUpdateCommand = {
|
|
1555
|
-
collectProvidedUpdatePolicyOptions,
|
|
1556
|
-
buildAuditScopeRestrictedOptionsError,
|
|
1557
|
-
enforceAllowAuditUpdateScope,
|
|
1558
|
-
enforceTypeWorkflowTransition,
|
|
1559
|
-
matchesDependencySelector,
|
|
1560
|
-
normalizeLegacyNoneUpdateOptions,
|
|
1561
|
-
normalizeUpdatePolicyOptionKey,
|
|
1562
|
-
parseDependencyAdditions,
|
|
1563
|
-
parseDependencyRemovals,
|
|
1564
|
-
parseUpdateUnsetTargets,
|
|
1565
|
-
reconcileBlockedByDependency,
|
|
1566
|
-
resolveRuntimeUnsetDefinition: (token, registry) => resolveRuntimeUnsetFieldDefinition(token, "update", registry)
|
|
1567
|
-
};
|
|
1568
|
-
|
|
1569
|
-
export {
|
|
1570
|
-
runUpdate,
|
|
1571
|
-
_testOnlyUpdateCommand
|
|
1572
|
-
};
|
|
1573
|
-
//# sourceMappingURL=chunk-YMABYTNG.js.map
|