@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
|
@@ -0,0 +1,1356 @@
|
|
|
1
|
+
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b3ee81eb-626f-58f7-9a58-78d41be890a7")}catch(e){}}();
|
|
3
|
+
import {
|
|
4
|
+
runCreate
|
|
5
|
+
} from "./chunk-TULGS6X6.js";
|
|
6
|
+
import {
|
|
7
|
+
splitCommaList
|
|
8
|
+
} from "./chunk-P4SESZGT.js";
|
|
9
|
+
import {
|
|
10
|
+
locateItem,
|
|
11
|
+
mutateItem,
|
|
12
|
+
readLocatedItem
|
|
13
|
+
} from "./chunk-ENGQOEUY.js";
|
|
14
|
+
import {
|
|
15
|
+
nowIso
|
|
16
|
+
} from "./chunk-3GCS5SKL.js";
|
|
17
|
+
import {
|
|
18
|
+
PmCliError,
|
|
19
|
+
getActiveExtensionRegistrations,
|
|
20
|
+
readSettings
|
|
21
|
+
} from "./chunk-E3SZTQ4K.js";
|
|
22
|
+
import {
|
|
23
|
+
EXIT_CODE,
|
|
24
|
+
PLAN_HARNESS_VALUES,
|
|
25
|
+
PLAN_MODE_VALUES,
|
|
26
|
+
PLAN_STEP_LINK_KIND_VALUES,
|
|
27
|
+
PLAN_STEP_STATUS_VALUES,
|
|
28
|
+
getSettingsPath,
|
|
29
|
+
pathExists,
|
|
30
|
+
resolveItemTypeRegistry,
|
|
31
|
+
resolvePmRoot,
|
|
32
|
+
resolveTypeName
|
|
33
|
+
} from "./chunk-57NWPFF2.js";
|
|
34
|
+
|
|
35
|
+
// dist/cli/commands/plan.js
|
|
36
|
+
var PLAN_SUBCOMMANDS = [
|
|
37
|
+
"create",
|
|
38
|
+
"show",
|
|
39
|
+
"add-step",
|
|
40
|
+
"update-step",
|
|
41
|
+
"complete-step",
|
|
42
|
+
"block-step",
|
|
43
|
+
"reorder-step",
|
|
44
|
+
"remove-step",
|
|
45
|
+
"link",
|
|
46
|
+
"unlink",
|
|
47
|
+
"decision",
|
|
48
|
+
"discovery",
|
|
49
|
+
"validation",
|
|
50
|
+
"resume",
|
|
51
|
+
"approve",
|
|
52
|
+
"materialize"
|
|
53
|
+
];
|
|
54
|
+
var PLAN_SHOW_DEPTH_VALUES = ["brief", "standard", "deep"];
|
|
55
|
+
var STEP_ID_PREFIX = "plan-step-";
|
|
56
|
+
var DEFAULT_PLAN_MODE = "draft";
|
|
57
|
+
var PLAN_TEMPLATE_NAMES = ["bug-investigation", "feature-implementation", "refactoring-sprint"];
|
|
58
|
+
var PLAN_TEMPLATES = {
|
|
59
|
+
"bug-investigation": [
|
|
60
|
+
{ title: "Reproduce the bug", body: "Capture exact steps, inputs, and the observed vs expected behavior." },
|
|
61
|
+
{ title: "Locate the root cause", body: "Trace the failure to the responsible code path with evidence." },
|
|
62
|
+
{ title: "Write a failing test", body: "Add a regression test that fails for the current bug." },
|
|
63
|
+
{ title: "Implement the fix", body: "Apply the minimal change that makes the failing test pass." },
|
|
64
|
+
{ title: "Verify and document", body: "Run the full suite and record the resolution and verification." }
|
|
65
|
+
],
|
|
66
|
+
"feature-implementation": [
|
|
67
|
+
{ title: "Clarify requirements & acceptance criteria", body: "Confirm scope, edge cases, and done-conditions." },
|
|
68
|
+
{ title: "Design the approach", body: "Decide the data model, interfaces, and integration points." },
|
|
69
|
+
{ title: "Implement the change", body: "Build the feature behind the agreed design." },
|
|
70
|
+
{ title: "Add tests", body: "Cover the new behavior and its edge cases." },
|
|
71
|
+
{ title: "Update docs & changelog", body: "Document the feature and surface it to users." }
|
|
72
|
+
],
|
|
73
|
+
"refactoring-sprint": [
|
|
74
|
+
{ title: "Map the current structure & risks", body: "Inventory the code to change and its blast radius." },
|
|
75
|
+
{ title: "Add characterization tests", body: "Lock in current behavior before refactoring." },
|
|
76
|
+
{ title: "Refactor incrementally", body: "Apply small, reversible steps keeping tests green." },
|
|
77
|
+
{ title: "Verify behavior is unchanged", body: "Run the full suite and compare against the baseline." },
|
|
78
|
+
{ title: "Clean up & document", body: "Remove dead code and record the new structure." }
|
|
79
|
+
]
|
|
80
|
+
};
|
|
81
|
+
function resolvePlanTemplateSteps(raw) {
|
|
82
|
+
const normalized = raw.trim().toLowerCase();
|
|
83
|
+
const template = Object.prototype.hasOwnProperty.call(PLAN_TEMPLATES, normalized) ? PLAN_TEMPLATES[normalized] : void 0;
|
|
84
|
+
if (!template) {
|
|
85
|
+
throw new PmCliError(`Unknown plan template "${raw}". Allowed: ${PLAN_TEMPLATE_NAMES.join(", ")}`, EXIT_CODE.USAGE, {
|
|
86
|
+
code: "unknown_plan_template",
|
|
87
|
+
examples: [`pm plan create --title "Fix login crash" --template ${PLAN_TEMPLATE_NAMES[0]}`]
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
return template.map((step) => ({ ...step }));
|
|
91
|
+
}
|
|
92
|
+
function planCompletionPct(completed, total) {
|
|
93
|
+
return total > 0 ? Math.round(completed / total * 100) : 0;
|
|
94
|
+
}
|
|
95
|
+
function resolveAuthor(candidate, fallback) {
|
|
96
|
+
const resolved = candidate ?? process.env.PM_AUTHOR ?? fallback;
|
|
97
|
+
const trimmed = resolved.trim();
|
|
98
|
+
return trimmed.length > 0 ? trimmed : "unknown";
|
|
99
|
+
}
|
|
100
|
+
function toOrderedStepTitles(value) {
|
|
101
|
+
const values = Array.isArray(value) ? value : value === void 0 || value === null ? [] : [value];
|
|
102
|
+
return values.filter((entry) => entry !== void 0 && entry !== null).map((entry) => (typeof entry === "string" ? entry : String(entry)).trim()).filter((entry) => entry.length > 0);
|
|
103
|
+
}
|
|
104
|
+
function toArray(value) {
|
|
105
|
+
if (Array.isArray(value))
|
|
106
|
+
return value.flatMap((entry) => splitCommaList(entry, { unique: false }));
|
|
107
|
+
if (typeof value === "string" && value.trim().length > 0) {
|
|
108
|
+
return splitCommaList(value, { unique: false });
|
|
109
|
+
}
|
|
110
|
+
return [];
|
|
111
|
+
}
|
|
112
|
+
function toSpecArray(value) {
|
|
113
|
+
if (Array.isArray(value))
|
|
114
|
+
return value.map((entry) => entry.trim()).filter(Boolean);
|
|
115
|
+
if (typeof value === "string" && value.trim().length > 0)
|
|
116
|
+
return [value.trim()];
|
|
117
|
+
return [];
|
|
118
|
+
}
|
|
119
|
+
function asPlanMode(value, fallback = DEFAULT_PLAN_MODE) {
|
|
120
|
+
if (value === void 0)
|
|
121
|
+
return fallback;
|
|
122
|
+
const normalized = value.trim().toLowerCase();
|
|
123
|
+
const found = PLAN_MODE_VALUES.find((entry) => entry === normalized);
|
|
124
|
+
if (!found) {
|
|
125
|
+
throw new PmCliError(`Invalid plan mode "${value}". Allowed: ${PLAN_MODE_VALUES.join(", ")}`, EXIT_CODE.USAGE);
|
|
126
|
+
}
|
|
127
|
+
return found;
|
|
128
|
+
}
|
|
129
|
+
function asStepStatus(value, fallback = "pending") {
|
|
130
|
+
if (value === void 0)
|
|
131
|
+
return fallback;
|
|
132
|
+
const normalized = value.trim().toLowerCase();
|
|
133
|
+
const found = PLAN_STEP_STATUS_VALUES.find((entry) => entry === normalized);
|
|
134
|
+
if (!found) {
|
|
135
|
+
throw new PmCliError(`Invalid step status "${value}". Allowed: ${PLAN_STEP_STATUS_VALUES.join(", ")}`, EXIT_CODE.USAGE);
|
|
136
|
+
}
|
|
137
|
+
return found;
|
|
138
|
+
}
|
|
139
|
+
function asLinkKind(value, fallback = "related") {
|
|
140
|
+
if (value === void 0)
|
|
141
|
+
return fallback;
|
|
142
|
+
const normalized = value.trim().toLowerCase();
|
|
143
|
+
const found = PLAN_STEP_LINK_KIND_VALUES.find((entry) => entry === normalized);
|
|
144
|
+
if (!found) {
|
|
145
|
+
throw new PmCliError(`Invalid step link kind "${value}". Allowed: ${PLAN_STEP_LINK_KIND_VALUES.join(", ")}`, EXIT_CODE.USAGE);
|
|
146
|
+
}
|
|
147
|
+
return found;
|
|
148
|
+
}
|
|
149
|
+
function asHarness(value) {
|
|
150
|
+
if (value === void 0)
|
|
151
|
+
return void 0;
|
|
152
|
+
const normalized = value.trim().toLowerCase();
|
|
153
|
+
if (normalized.length === 0)
|
|
154
|
+
return void 0;
|
|
155
|
+
const found = PLAN_HARNESS_VALUES.find((entry) => entry === normalized);
|
|
156
|
+
if (!found) {
|
|
157
|
+
throw new PmCliError(`Invalid plan harness "${value}". Allowed: ${PLAN_HARNESS_VALUES.join(", ")}`, EXIT_CODE.USAGE);
|
|
158
|
+
}
|
|
159
|
+
return found;
|
|
160
|
+
}
|
|
161
|
+
function asDepth(value) {
|
|
162
|
+
if (value === void 0)
|
|
163
|
+
return "brief";
|
|
164
|
+
const normalized = value.trim().toLowerCase();
|
|
165
|
+
const found = PLAN_SHOW_DEPTH_VALUES.find((entry) => entry === normalized);
|
|
166
|
+
if (!found) {
|
|
167
|
+
throw new PmCliError(`Invalid --depth "${value}". Allowed: ${PLAN_SHOW_DEPTH_VALUES.join(", ")}`, EXIT_CODE.USAGE);
|
|
168
|
+
}
|
|
169
|
+
return found;
|
|
170
|
+
}
|
|
171
|
+
function parsePlanFields(raw) {
|
|
172
|
+
if (raw === void 0) {
|
|
173
|
+
return null;
|
|
174
|
+
}
|
|
175
|
+
const fields = raw.split(",").map((entry) => entry.trim()).filter((entry) => entry.length > 0);
|
|
176
|
+
if (fields.length === 0) {
|
|
177
|
+
throw new PmCliError("Plan --fields requires a comma-separated list of plan field names", EXIT_CODE.USAGE);
|
|
178
|
+
}
|
|
179
|
+
return fields;
|
|
180
|
+
}
|
|
181
|
+
var PLAN_FIELD_KEYS = /* @__PURE__ */ new Set([
|
|
182
|
+
"id",
|
|
183
|
+
"title",
|
|
184
|
+
"status",
|
|
185
|
+
"mode",
|
|
186
|
+
"scope",
|
|
187
|
+
"harness",
|
|
188
|
+
"parent",
|
|
189
|
+
"resume_context",
|
|
190
|
+
"steps_summary",
|
|
191
|
+
"current_step",
|
|
192
|
+
"blocked_steps",
|
|
193
|
+
"steps",
|
|
194
|
+
"decisions",
|
|
195
|
+
"discoveries",
|
|
196
|
+
"validation",
|
|
197
|
+
"linked_items"
|
|
198
|
+
]);
|
|
199
|
+
function projectPlanForFields(plan, fields) {
|
|
200
|
+
const source = plan;
|
|
201
|
+
const projected = {};
|
|
202
|
+
const unknownFields = [];
|
|
203
|
+
for (const field of fields) {
|
|
204
|
+
const normalized = field.startsWith("plan.") ? field.slice("plan.".length) : field;
|
|
205
|
+
if (normalized.length === 0) {
|
|
206
|
+
continue;
|
|
207
|
+
}
|
|
208
|
+
if (!PLAN_FIELD_KEYS.has(normalized)) {
|
|
209
|
+
unknownFields.push(field);
|
|
210
|
+
continue;
|
|
211
|
+
}
|
|
212
|
+
if (Object.prototype.hasOwnProperty.call(source, normalized)) {
|
|
213
|
+
projected[normalized] = source[normalized];
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
if (unknownFields.length > 0) {
|
|
217
|
+
throw new PmCliError(`Unknown Plan --fields value(s): ${unknownFields.join(", ")}`, EXIT_CODE.USAGE, {
|
|
218
|
+
nextSteps: [
|
|
219
|
+
`Use --fields ${[...PLAN_FIELD_KEYS].join(",")}`,
|
|
220
|
+
"Run pm plan show <id> --depth brief for compact default fields."
|
|
221
|
+
],
|
|
222
|
+
recovery: {
|
|
223
|
+
provided_fields: unknownFields,
|
|
224
|
+
suggested_retry: `pm plan show <id> --fields ${[...PLAN_FIELD_KEYS].join(",")}`
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
return projected;
|
|
229
|
+
}
|
|
230
|
+
function parsePairList(raw, label) {
|
|
231
|
+
const out = {};
|
|
232
|
+
for (const entry of raw.split(",")) {
|
|
233
|
+
const trimmed = entry.trim();
|
|
234
|
+
if (trimmed.length === 0)
|
|
235
|
+
continue;
|
|
236
|
+
const equalsIndex = trimmed.indexOf("=");
|
|
237
|
+
if (equalsIndex <= 0) {
|
|
238
|
+
throw new PmCliError(`Invalid ${label} entry "${trimmed}"; expected key=value`, EXIT_CODE.USAGE);
|
|
239
|
+
}
|
|
240
|
+
out[trimmed.slice(0, equalsIndex).trim().toLowerCase()] = trimmed.slice(equalsIndex + 1).trim();
|
|
241
|
+
}
|
|
242
|
+
return out;
|
|
243
|
+
}
|
|
244
|
+
function parseStepFile(spec) {
|
|
245
|
+
const fields = parsePairList(spec, "--file");
|
|
246
|
+
if (!fields.path) {
|
|
247
|
+
throw new PmCliError("--file requires path=<value>", EXIT_CODE.USAGE);
|
|
248
|
+
}
|
|
249
|
+
const file = { path: fields.path };
|
|
250
|
+
if (fields.scope === "global" || fields.scope === "project")
|
|
251
|
+
file.scope = fields.scope;
|
|
252
|
+
if (fields.note)
|
|
253
|
+
file.note = fields.note;
|
|
254
|
+
return file;
|
|
255
|
+
}
|
|
256
|
+
function parseStepTest(spec) {
|
|
257
|
+
const fields = parsePairList(spec, "--test");
|
|
258
|
+
if (!fields.command && !fields.path) {
|
|
259
|
+
throw new PmCliError("--test requires at least command=<value> or path=<value>", EXIT_CODE.USAGE);
|
|
260
|
+
}
|
|
261
|
+
const test = {};
|
|
262
|
+
if (fields.command)
|
|
263
|
+
test.command = fields.command;
|
|
264
|
+
if (fields.path)
|
|
265
|
+
test.path = fields.path;
|
|
266
|
+
if (fields.note)
|
|
267
|
+
test.note = fields.note;
|
|
268
|
+
return test;
|
|
269
|
+
}
|
|
270
|
+
function parseStepDoc(spec) {
|
|
271
|
+
const fields = parsePairList(spec, "--doc");
|
|
272
|
+
if (!fields.path) {
|
|
273
|
+
throw new PmCliError("--doc requires path=<value>", EXIT_CODE.USAGE);
|
|
274
|
+
}
|
|
275
|
+
const doc = { path: fields.path };
|
|
276
|
+
if (fields.scope === "global" || fields.scope === "project")
|
|
277
|
+
doc.scope = fields.scope;
|
|
278
|
+
if (fields.note)
|
|
279
|
+
doc.note = fields.note;
|
|
280
|
+
return doc;
|
|
281
|
+
}
|
|
282
|
+
function summarizeSteps(steps) {
|
|
283
|
+
const summary = {
|
|
284
|
+
total: steps.length,
|
|
285
|
+
pending: 0,
|
|
286
|
+
in_progress: 0,
|
|
287
|
+
blocked: 0,
|
|
288
|
+
completed: 0,
|
|
289
|
+
skipped: 0,
|
|
290
|
+
superseded: 0,
|
|
291
|
+
completion_pct: 0
|
|
292
|
+
};
|
|
293
|
+
for (const step of steps) {
|
|
294
|
+
summary[step.status] += 1;
|
|
295
|
+
}
|
|
296
|
+
summary.completion_pct = planCompletionPct(summary.completed, summary.total);
|
|
297
|
+
return summary;
|
|
298
|
+
}
|
|
299
|
+
function newStepId(existing) {
|
|
300
|
+
const used = new Set(existing.map((step) => step.id));
|
|
301
|
+
for (let cursor = existing.length + 1; cursor < existing.length + 1024; cursor += 1) {
|
|
302
|
+
const candidate = `${STEP_ID_PREFIX}${String(cursor).padStart(3, "0")}`;
|
|
303
|
+
if (!used.has(candidate))
|
|
304
|
+
return candidate;
|
|
305
|
+
}
|
|
306
|
+
throw new PmCliError("Could not allocate step id (limit reached)", EXIT_CODE.GENERIC_FAILURE);
|
|
307
|
+
}
|
|
308
|
+
function resolveStepRef(steps, ref) {
|
|
309
|
+
const trimmed = ref.trim();
|
|
310
|
+
if (trimmed.length === 0) {
|
|
311
|
+
throw new PmCliError("Step reference cannot be empty", EXIT_CODE.USAGE);
|
|
312
|
+
}
|
|
313
|
+
const direct = steps.find((step) => step.id === trimmed);
|
|
314
|
+
if (direct)
|
|
315
|
+
return direct;
|
|
316
|
+
if (/^\d+$/.test(trimmed)) {
|
|
317
|
+
const order = Number.parseInt(trimmed, 10);
|
|
318
|
+
const byOrder = steps.find((step) => step.order === order);
|
|
319
|
+
if (byOrder)
|
|
320
|
+
return byOrder;
|
|
321
|
+
}
|
|
322
|
+
throw new PmCliError(`Step "${ref}" not found in plan`, EXIT_CODE.NOT_FOUND);
|
|
323
|
+
}
|
|
324
|
+
function classifyMaterializeSkip(step) {
|
|
325
|
+
if (step.status === "completed") {
|
|
326
|
+
return { reason: "already_completed" };
|
|
327
|
+
}
|
|
328
|
+
const existingImplements = (step.linked_items ?? []).find((link) => link.kind === "implements");
|
|
329
|
+
if (existingImplements) {
|
|
330
|
+
return { reason: "already_materialized", existing_id: existingImplements.id };
|
|
331
|
+
}
|
|
332
|
+
return void 0;
|
|
333
|
+
}
|
|
334
|
+
function resolveMaterializeTargets(steps, refs) {
|
|
335
|
+
const allRefs = refs.filter((ref) => ref.trim().toLowerCase() === "all");
|
|
336
|
+
const targets = [];
|
|
337
|
+
const skipped = [];
|
|
338
|
+
if (allRefs.length > 0) {
|
|
339
|
+
if (refs.length > allRefs.length) {
|
|
340
|
+
throw new PmCliError("pm plan materialize --steps all cannot be combined with other step refs", EXIT_CODE.USAGE);
|
|
341
|
+
}
|
|
342
|
+
for (const step of steps.slice().sort((left, right) => left.order - right.order)) {
|
|
343
|
+
const skip = classifyMaterializeSkip(step);
|
|
344
|
+
if (skip) {
|
|
345
|
+
skipped.push({ from_step: step.id, ...skip });
|
|
346
|
+
continue;
|
|
347
|
+
}
|
|
348
|
+
targets.push(step);
|
|
349
|
+
}
|
|
350
|
+
return { targets, skipped };
|
|
351
|
+
}
|
|
352
|
+
const seen = /* @__PURE__ */ new Set();
|
|
353
|
+
for (const ref of refs) {
|
|
354
|
+
const step = resolveStepRef(steps, ref);
|
|
355
|
+
if (seen.has(step.id))
|
|
356
|
+
continue;
|
|
357
|
+
seen.add(step.id);
|
|
358
|
+
const skip = classifyMaterializeSkip(step);
|
|
359
|
+
if (skip) {
|
|
360
|
+
skipped.push({ from_step: step.id, ...skip });
|
|
361
|
+
continue;
|
|
362
|
+
}
|
|
363
|
+
targets.push(step);
|
|
364
|
+
}
|
|
365
|
+
return { targets, skipped };
|
|
366
|
+
}
|
|
367
|
+
function resolvePlanLogText(kind, options) {
|
|
368
|
+
const canonical = kind === "decision" ? options.decisionText : kind === "discovery" ? options.discoveryText : options.validationText;
|
|
369
|
+
const shorthand = kind === "decision" ? options.decision : kind === "discovery" ? options.discovery : options.validation;
|
|
370
|
+
return canonical?.trim() || shorthand?.trim() || void 0;
|
|
371
|
+
}
|
|
372
|
+
function findCurrentStep(steps) {
|
|
373
|
+
return steps.find((step) => step.status === "in_progress") ?? steps.find((step) => step.status === "pending");
|
|
374
|
+
}
|
|
375
|
+
function blockedSteps(steps) {
|
|
376
|
+
return steps.filter((step) => step.status === "blocked").map((step) => ({ id: step.id, order: step.order, title: step.title, blocked_reason: step.blocked_reason }));
|
|
377
|
+
}
|
|
378
|
+
function projectPlan(item, depth = "brief") {
|
|
379
|
+
const steps = (item.plan_steps ?? []).slice().sort((left, right) => left.order - right.order);
|
|
380
|
+
const summary = summarizeSteps(steps);
|
|
381
|
+
const current = findCurrentStep(steps);
|
|
382
|
+
const projection = {
|
|
383
|
+
id: item.id,
|
|
384
|
+
title: item.title,
|
|
385
|
+
status: item.status,
|
|
386
|
+
mode: item.plan_mode ?? DEFAULT_PLAN_MODE,
|
|
387
|
+
scope: item.plan_scope,
|
|
388
|
+
harness: item.plan_harness,
|
|
389
|
+
parent: item.parent,
|
|
390
|
+
resume_context: item.plan_resume_context,
|
|
391
|
+
steps_summary: summary,
|
|
392
|
+
current_step: current ? { id: current.id, order: current.order, title: current.title, status: current.status } : void 0,
|
|
393
|
+
blocked_steps: blockedSteps(steps),
|
|
394
|
+
linked_items: (item.dependencies ?? []).map((dep) => ({ id: dep.id, kind: dep.kind }))
|
|
395
|
+
};
|
|
396
|
+
if (depth === "standard" || depth === "deep") {
|
|
397
|
+
projection.steps = steps;
|
|
398
|
+
}
|
|
399
|
+
if (depth === "deep") {
|
|
400
|
+
projection.decisions = item.plan_decisions ?? [];
|
|
401
|
+
projection.discoveries = item.plan_discoveries ?? [];
|
|
402
|
+
projection.validation = item.plan_validation ?? [];
|
|
403
|
+
}
|
|
404
|
+
return projection;
|
|
405
|
+
}
|
|
406
|
+
function nextActionsFor(planId, plan) {
|
|
407
|
+
const tips = [];
|
|
408
|
+
if (plan.steps_summary.total === 0) {
|
|
409
|
+
tips.push(`pm plan add-step ${planId} --step-title "First step"`);
|
|
410
|
+
}
|
|
411
|
+
if (plan.current_step) {
|
|
412
|
+
tips.push(`pm plan update-step ${planId} ${plan.current_step.id} --step-status in_progress`, `pm plan complete-step ${planId} ${plan.current_step.id} --step-evidence "..."`);
|
|
413
|
+
}
|
|
414
|
+
if (plan.steps_summary.blocked > 0) {
|
|
415
|
+
tips.push(`pm plan show ${planId} --depth standard`);
|
|
416
|
+
}
|
|
417
|
+
if (plan.mode === "draft" || plan.mode === "research") {
|
|
418
|
+
tips.push(`pm plan approve ${planId} --message "ready to execute"`);
|
|
419
|
+
}
|
|
420
|
+
if (plan.steps_summary.completed === plan.steps_summary.total && plan.steps_summary.total > 0) {
|
|
421
|
+
tips.push(`pm close ${planId} "plan complete"`);
|
|
422
|
+
}
|
|
423
|
+
return tips;
|
|
424
|
+
}
|
|
425
|
+
function ensurePlanItem(item) {
|
|
426
|
+
const normalizedType = (item.type ?? "").trim().toLowerCase();
|
|
427
|
+
if (normalizedType !== "plan") {
|
|
428
|
+
throw new PmCliError(`Item ${item.id} is type ${item.type}; pm plan commands require type=Plan. Use pm plan create or pm create --type Plan first.`, EXIT_CODE.USAGE, {
|
|
429
|
+
code: "wrong_item_type",
|
|
430
|
+
required: "Use pm plan commands only with items whose type is Plan.",
|
|
431
|
+
why: "Plan commands read and mutate Plan-specific step, decision, discovery, and validation fields.",
|
|
432
|
+
examples: [
|
|
433
|
+
`pm get ${item.id} --depth brief`,
|
|
434
|
+
'pm plan create --title "Execution plan" --scope "<goal>"'
|
|
435
|
+
]
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
async function loadContext(global) {
|
|
440
|
+
const pmRoot = resolvePmRoot(process.cwd(), global.path);
|
|
441
|
+
if (!await pathExists(getSettingsPath(pmRoot))) {
|
|
442
|
+
throw new PmCliError(`Tracker is not initialized at ${pmRoot}. Run pm init first.`, EXIT_CODE.NOT_FOUND);
|
|
443
|
+
}
|
|
444
|
+
const settings = await readSettings(pmRoot);
|
|
445
|
+
return { pmRoot, settings };
|
|
446
|
+
}
|
|
447
|
+
async function readPlanItem(ctx, id) {
|
|
448
|
+
const typeRegistry = resolveItemTypeRegistry(ctx.settings, getActiveExtensionRegistrations());
|
|
449
|
+
const located = await locateItem(ctx.pmRoot, id, ctx.settings.id_prefix, ctx.settings.item_format, typeRegistry.type_to_folder);
|
|
450
|
+
if (!located) {
|
|
451
|
+
throw new PmCliError(`Plan ${id} not found`, EXIT_CODE.NOT_FOUND);
|
|
452
|
+
}
|
|
453
|
+
const loaded = await readLocatedItem(located, { schema: ctx.settings.schema });
|
|
454
|
+
ensurePlanItem(loaded.document.metadata);
|
|
455
|
+
return { document: loaded.document, itemId: located.id };
|
|
456
|
+
}
|
|
457
|
+
function buildPlanCreateDependencies(options) {
|
|
458
|
+
const deps = [];
|
|
459
|
+
if (options.parent) {
|
|
460
|
+
deps.push(`id=${options.parent.trim()},kind=parent`);
|
|
461
|
+
}
|
|
462
|
+
for (const ref of toArray(options.related))
|
|
463
|
+
deps.push(`id=${ref},kind=related`);
|
|
464
|
+
for (const ref of toArray(options.blocks))
|
|
465
|
+
deps.push(`id=${ref},kind=blocks`);
|
|
466
|
+
for (const ref of toArray(options.blockedBy))
|
|
467
|
+
deps.push(`id=${ref},kind=blocked_by`);
|
|
468
|
+
return deps.length > 0 ? deps : void 0;
|
|
469
|
+
}
|
|
470
|
+
function buildInitialValidation(options) {
|
|
471
|
+
const text = options.validationText?.trim();
|
|
472
|
+
const command = options.validationCommand?.trim();
|
|
473
|
+
const expected = options.validationExpected?.trim();
|
|
474
|
+
if (!text && !command && !expected) {
|
|
475
|
+
return void 0;
|
|
476
|
+
}
|
|
477
|
+
return {
|
|
478
|
+
text: text || command || "Validation check",
|
|
479
|
+
command: command || void 0,
|
|
480
|
+
expected: expected || void 0
|
|
481
|
+
};
|
|
482
|
+
}
|
|
483
|
+
function hasPlanStepDetailOptions(options) {
|
|
484
|
+
return Boolean(options.stepBody?.trim()) || Boolean(options.stepOwner?.trim()) || Boolean(options.stepStatus?.trim()) || Boolean(options.stepEvidence?.trim()) || Boolean(options.stepBlockedReason?.trim()) || Boolean(options.stepReplacement?.trim()) || toArray(options.dependsOn).length > 0 || toArray(options.link).length > 0 || toSpecArray(options.file).length > 0 || toSpecArray(options.test).length > 0 || toSpecArray(options.doc).length > 0;
|
|
485
|
+
}
|
|
486
|
+
function resolveInitialStepSeed(options) {
|
|
487
|
+
const stepTitleFlag = options.stepTitle?.trim() || void 0;
|
|
488
|
+
const repeatedStepTitles = toOrderedStepTitles(options.step);
|
|
489
|
+
const templateSteps = options.template?.trim() ? resolvePlanTemplateSteps(options.template) : [];
|
|
490
|
+
return {
|
|
491
|
+
repeatedStepTitles,
|
|
492
|
+
stepTitleFlag,
|
|
493
|
+
stepTitles: [
|
|
494
|
+
...stepTitleFlag ? [stepTitleFlag] : [],
|
|
495
|
+
...repeatedStepTitles,
|
|
496
|
+
...templateSteps.map((step) => step.title)
|
|
497
|
+
],
|
|
498
|
+
templateSteps
|
|
499
|
+
};
|
|
500
|
+
}
|
|
501
|
+
function assertInitialStepSeedAllowed(seed, hasPerStepDetailOptions) {
|
|
502
|
+
if ((seed.stepTitleFlag || seed.repeatedStepTitles.length > 0) && seed.templateSteps.length > 0) {
|
|
503
|
+
throw new PmCliError("pm plan create --template cannot be combined with --step-title or --step; choose one step seeding source", EXIT_CODE.USAGE, {
|
|
504
|
+
code: "ambiguous_option_combination",
|
|
505
|
+
examples: [
|
|
506
|
+
`pm plan create --title "Fix login crash" --template ${PLAN_TEMPLATE_NAMES[0]}`,
|
|
507
|
+
'pm plan create --title "Custom plan" --step "Read the code" --step "Write the fix"'
|
|
508
|
+
]
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
if (seed.stepTitles.length > 1 && hasPerStepDetailOptions) {
|
|
512
|
+
throw new PmCliError("pm plan create per-step options apply to a single initial step; with multiple --step values create the plan first, then refine steps individually", EXIT_CODE.USAGE, {
|
|
513
|
+
code: "ambiguous_option_combination",
|
|
514
|
+
examples: [
|
|
515
|
+
'pm plan create --title "Execution plan" --step "Read the code" --step "Write the fix"',
|
|
516
|
+
'pm plan update-step <plan-id> plan-step-001 --step-body "Inspect retry path"'
|
|
517
|
+
]
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
function buildSingleInitialStep(options, title) {
|
|
522
|
+
const status = asStepStatus(options.stepStatus, "pending");
|
|
523
|
+
const linkedItems = buildLinkInputs(options, "depends_on");
|
|
524
|
+
const files = toSpecArray(options.file).map(parseStepFile);
|
|
525
|
+
const tests = toSpecArray(options.test).map(parseStepTest);
|
|
526
|
+
const docs = toSpecArray(options.doc).map(parseStepDoc);
|
|
527
|
+
const now = nowIso();
|
|
528
|
+
return {
|
|
529
|
+
id: "plan-step-001",
|
|
530
|
+
order: 1,
|
|
531
|
+
title,
|
|
532
|
+
body: options.stepBody?.trim() || void 0,
|
|
533
|
+
status,
|
|
534
|
+
owner: options.stepOwner?.trim() || void 0,
|
|
535
|
+
evidence: options.stepEvidence?.trim() || void 0,
|
|
536
|
+
blocked_reason: status === "blocked" ? options.stepBlockedReason?.trim() || "" : void 0,
|
|
537
|
+
linked_items: linkedItems.length > 0 ? linkedItems : void 0,
|
|
538
|
+
files: files.length > 0 ? files : void 0,
|
|
539
|
+
tests: tests.length > 0 ? tests : void 0,
|
|
540
|
+
docs: docs.length > 0 ? docs : void 0,
|
|
541
|
+
created_at: now,
|
|
542
|
+
updated_at: now,
|
|
543
|
+
completed_at: status === "completed" ? now : void 0
|
|
544
|
+
};
|
|
545
|
+
}
|
|
546
|
+
function buildInitialSteps(options) {
|
|
547
|
+
const seed = resolveInitialStepSeed(options);
|
|
548
|
+
const hasDetailOptions = hasPlanStepDetailOptions(options);
|
|
549
|
+
assertInitialStepSeedAllowed(seed, hasDetailOptions);
|
|
550
|
+
if (seed.stepTitles.length === 0) {
|
|
551
|
+
return { steps: [], hasPerStepDetailOptions: hasDetailOptions };
|
|
552
|
+
}
|
|
553
|
+
if (seed.stepTitles.length === 1) {
|
|
554
|
+
return { steps: [buildSingleInitialStep(options, seed.stepTitles[0])], hasPerStepDetailOptions: hasDetailOptions };
|
|
555
|
+
}
|
|
556
|
+
const now = nowIso();
|
|
557
|
+
return {
|
|
558
|
+
steps: seed.stepTitles.map((stepTitle, index) => ({
|
|
559
|
+
id: `${STEP_ID_PREFIX}${String(index + 1).padStart(3, "0")}`,
|
|
560
|
+
order: index + 1,
|
|
561
|
+
title: stepTitle,
|
|
562
|
+
body: seed.templateSteps[index]?.body,
|
|
563
|
+
status: "pending",
|
|
564
|
+
created_at: now,
|
|
565
|
+
updated_at: now
|
|
566
|
+
})),
|
|
567
|
+
hasPerStepDetailOptions: hasDetailOptions
|
|
568
|
+
};
|
|
569
|
+
}
|
|
570
|
+
async function planCreate(options, global, ctx) {
|
|
571
|
+
const title = options.title?.trim();
|
|
572
|
+
if (!title) {
|
|
573
|
+
throw new PmCliError("pm plan create requires --title", EXIT_CODE.USAGE, {
|
|
574
|
+
code: "missing_required_option",
|
|
575
|
+
examples: ['pm plan create --title "Refactor lock retry" --scope pm-a1b2']
|
|
576
|
+
});
|
|
577
|
+
}
|
|
578
|
+
const mode = asPlanMode(options.mode, DEFAULT_PLAN_MODE);
|
|
579
|
+
const harness = asHarness(options.harness);
|
|
580
|
+
const fromSearch = options.fromSearch?.trim();
|
|
581
|
+
const description = options.description?.trim() ?? options.scope?.trim() ?? title;
|
|
582
|
+
const createOptions = {
|
|
583
|
+
title,
|
|
584
|
+
description,
|
|
585
|
+
type: "Plan",
|
|
586
|
+
body: options.body,
|
|
587
|
+
tags: options.tags,
|
|
588
|
+
priority: options.priority,
|
|
589
|
+
parent: options.parent,
|
|
590
|
+
dep: buildPlanCreateDependencies(options),
|
|
591
|
+
author: options.author,
|
|
592
|
+
message: options.message ?? (fromSearch ? `plan create (search: ${fromSearch})` : `plan create`)
|
|
593
|
+
};
|
|
594
|
+
const createResult = await runCreate(createOptions, global);
|
|
595
|
+
const seedResult = await mutateItem({
|
|
596
|
+
pmRoot: ctx.pmRoot,
|
|
597
|
+
settings: ctx.settings,
|
|
598
|
+
id: createResult.item.id,
|
|
599
|
+
op: "plan_create_metadata",
|
|
600
|
+
author: resolveAuthor(options.author, ctx.settings.author_default),
|
|
601
|
+
message: "seed plan metadata",
|
|
602
|
+
mutate(doc) {
|
|
603
|
+
const changed = [];
|
|
604
|
+
doc.metadata.plan_mode = mode;
|
|
605
|
+
changed.push("plan_mode");
|
|
606
|
+
if (harness) {
|
|
607
|
+
doc.metadata.plan_harness = harness;
|
|
608
|
+
changed.push("plan_harness");
|
|
609
|
+
}
|
|
610
|
+
if (options.scope?.trim()) {
|
|
611
|
+
doc.metadata.plan_scope = options.scope.trim();
|
|
612
|
+
changed.push("plan_scope");
|
|
613
|
+
}
|
|
614
|
+
if (options.resumeContext?.trim()) {
|
|
615
|
+
doc.metadata.plan_resume_context = options.resumeContext.trim();
|
|
616
|
+
changed.push("plan_resume_context");
|
|
617
|
+
}
|
|
618
|
+
doc.metadata.plan_steps = doc.metadata.plan_steps ?? [];
|
|
619
|
+
return { changedFields: changed };
|
|
620
|
+
}
|
|
621
|
+
});
|
|
622
|
+
let finalMetadata = seedResult.item;
|
|
623
|
+
let initialStep;
|
|
624
|
+
const initialValidation = buildInitialValidation(options);
|
|
625
|
+
const { steps: initialSteps, hasPerStepDetailOptions } = buildInitialSteps(options);
|
|
626
|
+
if (initialSteps.length > 0) {
|
|
627
|
+
initialStep = initialSteps[0];
|
|
628
|
+
const stepped = await mutateItem({
|
|
629
|
+
pmRoot: ctx.pmRoot,
|
|
630
|
+
settings: ctx.settings,
|
|
631
|
+
id: createResult.item.id,
|
|
632
|
+
op: "plan_create_initial_step",
|
|
633
|
+
author: resolveAuthor(options.author, ctx.settings.author_default),
|
|
634
|
+
message: initialSteps.length === 1 ? `plan create initial step "${initialSteps[0].title}"` : `plan create ${initialSteps.length} initial steps`,
|
|
635
|
+
mutate(doc) {
|
|
636
|
+
ensurePlanItem(doc.metadata);
|
|
637
|
+
doc.metadata.plan_steps = initialSteps;
|
|
638
|
+
if (initialValidation) {
|
|
639
|
+
doc.metadata.plan_validation = [...doc.metadata.plan_validation ?? [], initialValidation];
|
|
640
|
+
}
|
|
641
|
+
return { changedFields: initialValidation ? ["plan_steps", "plan_validation"] : ["plan_steps"] };
|
|
642
|
+
}
|
|
643
|
+
});
|
|
644
|
+
finalMetadata = stepped.item;
|
|
645
|
+
} else if (initialValidation) {
|
|
646
|
+
const validated = await mutateItem({
|
|
647
|
+
pmRoot: ctx.pmRoot,
|
|
648
|
+
settings: ctx.settings,
|
|
649
|
+
id: createResult.item.id,
|
|
650
|
+
op: "plan_create_initial_validation",
|
|
651
|
+
author: resolveAuthor(options.author, ctx.settings.author_default),
|
|
652
|
+
message: "plan create initial validation",
|
|
653
|
+
mutate(doc) {
|
|
654
|
+
ensurePlanItem(doc.metadata);
|
|
655
|
+
doc.metadata.plan_validation = [...doc.metadata.plan_validation ?? [], initialValidation];
|
|
656
|
+
return { changedFields: ["plan_validation"] };
|
|
657
|
+
}
|
|
658
|
+
});
|
|
659
|
+
finalMetadata = validated.item;
|
|
660
|
+
} else if (hasPerStepDetailOptions) {
|
|
661
|
+
throw new PmCliError("pm plan create step options require --step-title (or a single --step)", EXIT_CODE.USAGE, {
|
|
662
|
+
code: "missing_required_option",
|
|
663
|
+
examples: ['pm plan create --title "Execution plan" --step-title "Read the code"']
|
|
664
|
+
});
|
|
665
|
+
}
|
|
666
|
+
if (options.claim) {
|
|
667
|
+
const claimed = await mutateItem({
|
|
668
|
+
pmRoot: ctx.pmRoot,
|
|
669
|
+
settings: ctx.settings,
|
|
670
|
+
id: createResult.item.id,
|
|
671
|
+
op: "claim",
|
|
672
|
+
author: resolveAuthor(options.author, ctx.settings.author_default),
|
|
673
|
+
message: "plan claim by author",
|
|
674
|
+
mutate(doc) {
|
|
675
|
+
doc.metadata.assignee = resolveAuthor(options.author, ctx.settings.author_default);
|
|
676
|
+
return { changedFields: ["assignee"] };
|
|
677
|
+
}
|
|
678
|
+
});
|
|
679
|
+
finalMetadata = claimed.item;
|
|
680
|
+
}
|
|
681
|
+
const plan = projectPlan(finalMetadata, "brief");
|
|
682
|
+
return {
|
|
683
|
+
action: "create",
|
|
684
|
+
plan,
|
|
685
|
+
step: initialStep,
|
|
686
|
+
next_actions: nextActionsFor(createResult.item.id, plan),
|
|
687
|
+
warnings: [...createResult.warnings],
|
|
688
|
+
generated_at: nowIso()
|
|
689
|
+
};
|
|
690
|
+
}
|
|
691
|
+
async function planShow(id, options, ctx) {
|
|
692
|
+
const depth = asDepth(options.depth);
|
|
693
|
+
const fields = parsePlanFields(options.fields);
|
|
694
|
+
const { document, itemId } = await readPlanItem(ctx, id);
|
|
695
|
+
const fullPlan = projectPlan(document.metadata, fields === null ? depth : "deep");
|
|
696
|
+
const plan = fields === null ? fullPlan : projectPlanForFields(fullPlan, fields);
|
|
697
|
+
return {
|
|
698
|
+
action: "show",
|
|
699
|
+
plan,
|
|
700
|
+
next_actions: nextActionsFor(itemId, fullPlan),
|
|
701
|
+
warnings: [],
|
|
702
|
+
generated_at: nowIso()
|
|
703
|
+
};
|
|
704
|
+
}
|
|
705
|
+
async function mutatePlanSteps(args) {
|
|
706
|
+
const author = resolveAuthor(args.options.author, args.ctx.settings.author_default);
|
|
707
|
+
let resultStep;
|
|
708
|
+
const result = await mutateItem({
|
|
709
|
+
pmRoot: args.ctx.pmRoot,
|
|
710
|
+
settings: args.ctx.settings,
|
|
711
|
+
id: args.id,
|
|
712
|
+
op: args.op,
|
|
713
|
+
author,
|
|
714
|
+
message: args.options.message ?? args.message,
|
|
715
|
+
force: args.options.force,
|
|
716
|
+
mutate(doc) {
|
|
717
|
+
ensurePlanItem(doc.metadata);
|
|
718
|
+
const steps = (doc.metadata.plan_steps ?? []).slice();
|
|
719
|
+
const before = JSON.stringify(steps);
|
|
720
|
+
const outcome = args.mutator(steps, doc);
|
|
721
|
+
resultStep = outcome.resultStep;
|
|
722
|
+
const sorted = steps.slice().sort((left, right) => left.order - right.order).map((step, index) => ({ ...step, order: index + 1 }));
|
|
723
|
+
doc.metadata.plan_steps = sorted;
|
|
724
|
+
const after = JSON.stringify(sorted);
|
|
725
|
+
const changedFields = before === after ? [] : ["plan_steps"];
|
|
726
|
+
if (changedFields.length === 0 && outcome.changedSteps.length === 0) {
|
|
727
|
+
return { changedFields: [] };
|
|
728
|
+
}
|
|
729
|
+
return { changedFields: changedFields.length > 0 ? changedFields : ["plan_steps"] };
|
|
730
|
+
}
|
|
731
|
+
});
|
|
732
|
+
return {
|
|
733
|
+
document: { metadata: result.item, body: result.body },
|
|
734
|
+
resultStep,
|
|
735
|
+
itemId: result.item.id
|
|
736
|
+
};
|
|
737
|
+
}
|
|
738
|
+
async function planAddStep(id, options, ctx) {
|
|
739
|
+
const title = options.stepTitle?.trim();
|
|
740
|
+
if (!title) {
|
|
741
|
+
throw new PmCliError("pm plan add-step requires --step-title", EXIT_CODE.USAGE);
|
|
742
|
+
}
|
|
743
|
+
const status = asStepStatus(options.stepStatus, "pending");
|
|
744
|
+
const allowMultipleActive = options.allowMultipleActive === true;
|
|
745
|
+
const { document, resultStep, itemId } = await mutatePlanSteps({
|
|
746
|
+
id,
|
|
747
|
+
options,
|
|
748
|
+
ctx,
|
|
749
|
+
op: "plan_add_step",
|
|
750
|
+
message: `plan add-step "${title}"`,
|
|
751
|
+
mutator(steps) {
|
|
752
|
+
const order = steps.length + 1;
|
|
753
|
+
assertInProgressStepAllowed(steps, void 0, status, allowMultipleActive);
|
|
754
|
+
const step = buildAddedPlanStep(steps, options, { order, title, status });
|
|
755
|
+
steps.push(step);
|
|
756
|
+
return { changedSteps: [step.id], resultStep: step };
|
|
757
|
+
}
|
|
758
|
+
});
|
|
759
|
+
const plan = projectPlan(document.metadata, "standard");
|
|
760
|
+
return {
|
|
761
|
+
action: "add-step",
|
|
762
|
+
plan,
|
|
763
|
+
step: resultStep,
|
|
764
|
+
next_actions: nextActionsFor(itemId, plan),
|
|
765
|
+
warnings: [],
|
|
766
|
+
generated_at: nowIso()
|
|
767
|
+
};
|
|
768
|
+
}
|
|
769
|
+
function assertInProgressStepAllowed(steps, currentStepId, desiredStatus, allowMultipleActive) {
|
|
770
|
+
if (desiredStatus !== "in_progress" || allowMultipleActive) {
|
|
771
|
+
return;
|
|
772
|
+
}
|
|
773
|
+
const activeStep = steps.find((step) => step.id !== currentStepId && step.status === "in_progress");
|
|
774
|
+
if (!activeStep) {
|
|
775
|
+
return;
|
|
776
|
+
}
|
|
777
|
+
throw new PmCliError(`Plan already has step ${activeStep.id} in_progress. Pass --allow-multiple-active or update that step first.`, EXIT_CODE.CONFLICT);
|
|
778
|
+
}
|
|
779
|
+
function buildAddedPlanStep(existingSteps, options, seed) {
|
|
780
|
+
const linkedItems = buildLinkInputs(options, "depends_on");
|
|
781
|
+
const files = toSpecArray(options.file).map(parseStepFile);
|
|
782
|
+
const tests = toSpecArray(options.test).map(parseStepTest);
|
|
783
|
+
const docs = toSpecArray(options.doc).map(parseStepDoc);
|
|
784
|
+
const now = nowIso();
|
|
785
|
+
return {
|
|
786
|
+
id: newStepId(existingSteps),
|
|
787
|
+
order: seed.order,
|
|
788
|
+
title: seed.title,
|
|
789
|
+
body: options.stepBody?.trim() || void 0,
|
|
790
|
+
status: seed.status,
|
|
791
|
+
owner: options.stepOwner?.trim() || void 0,
|
|
792
|
+
evidence: options.stepEvidence?.trim() || void 0,
|
|
793
|
+
blocked_reason: seed.status === "blocked" ? options.stepBlockedReason?.trim() || "" : void 0,
|
|
794
|
+
linked_items: linkedItems.length > 0 ? linkedItems : void 0,
|
|
795
|
+
files: files.length > 0 ? files : void 0,
|
|
796
|
+
tests: tests.length > 0 ? tests : void 0,
|
|
797
|
+
docs: docs.length > 0 ? docs : void 0,
|
|
798
|
+
created_at: now,
|
|
799
|
+
updated_at: now,
|
|
800
|
+
completed_at: seed.status === "completed" ? now : void 0
|
|
801
|
+
};
|
|
802
|
+
}
|
|
803
|
+
function buildLinkInputs(options, fallbackKind) {
|
|
804
|
+
const dependsOn = toArray(options.dependsOn).map((id) => ({ id, kind: fallbackKind }));
|
|
805
|
+
const related = toArray(options.related).map((id) => ({ id, kind: "related" }));
|
|
806
|
+
const blocks = toArray(options.blocks).map((id) => ({ id, kind: "blocks" }));
|
|
807
|
+
const blockedBy = toArray(options.blockedBy).map((id) => ({ id, kind: "blocked_by" }));
|
|
808
|
+
const explicit = toArray(options.link);
|
|
809
|
+
const explicitKind = asLinkKind(options.linkKind, fallbackKind);
|
|
810
|
+
const note = options.linkNote?.trim();
|
|
811
|
+
const explicitLinks = explicit.map((id) => {
|
|
812
|
+
const link = { id, kind: explicitKind };
|
|
813
|
+
if (note)
|
|
814
|
+
link.note = note;
|
|
815
|
+
return link;
|
|
816
|
+
});
|
|
817
|
+
return [...dependsOn, ...related, ...blocks, ...blockedBy, ...explicitLinks];
|
|
818
|
+
}
|
|
819
|
+
async function planUpdateStep(id, options, ctx, args) {
|
|
820
|
+
const { document, resultStep, itemId } = await mutatePlanSteps({
|
|
821
|
+
id,
|
|
822
|
+
options,
|
|
823
|
+
ctx,
|
|
824
|
+
op: args.op,
|
|
825
|
+
message: options.message ?? `${args.op} ${args.stepRef}`,
|
|
826
|
+
mutator(steps, doc) {
|
|
827
|
+
const step = resolveStepRef(steps, args.stepRef);
|
|
828
|
+
const now = nowIso();
|
|
829
|
+
const desiredStatus = args.finalStatus ?? asStepStatus(options.stepStatus, step.status);
|
|
830
|
+
const allowMultipleActive = options.allowMultipleActive === true || args.allowMultipleActive === true;
|
|
831
|
+
assertInProgressStepAllowed(steps, step.status === "in_progress" ? step.id : void 0, desiredStatus, allowMultipleActive);
|
|
832
|
+
applyStepUpdates(step, options, desiredStatus, now);
|
|
833
|
+
doc.metadata.updated_at = now;
|
|
834
|
+
return { changedSteps: [step.id], resultStep: step };
|
|
835
|
+
}
|
|
836
|
+
});
|
|
837
|
+
const plan = projectPlan(document.metadata, "standard");
|
|
838
|
+
return {
|
|
839
|
+
action: args.op === "plan_complete_step" ? "complete-step" : args.op === "plan_block_step" ? "block-step" : "update-step",
|
|
840
|
+
plan,
|
|
841
|
+
step: resultStep,
|
|
842
|
+
next_actions: nextActionsFor(itemId, plan),
|
|
843
|
+
warnings: [],
|
|
844
|
+
generated_at: nowIso()
|
|
845
|
+
};
|
|
846
|
+
}
|
|
847
|
+
function applyStepUpdates(step, options, desiredStatus, now) {
|
|
848
|
+
assertBlockedStepReason(step, options, desiredStatus);
|
|
849
|
+
applyStepFieldUpdates(step, options);
|
|
850
|
+
step.status = desiredStatus;
|
|
851
|
+
step.updated_at = now;
|
|
852
|
+
applyStepCompletionTimestamp(step, desiredStatus, now);
|
|
853
|
+
}
|
|
854
|
+
function assertBlockedStepReason(step, options, desiredStatus) {
|
|
855
|
+
if (desiredStatus !== "blocked" || options.stepBlockedReason?.trim() || step.blocked_reason) {
|
|
856
|
+
return;
|
|
857
|
+
}
|
|
858
|
+
throw new PmCliError("Blocking a step requires --step-blocked-reason or an already-recorded blocked_reason.", EXIT_CODE.USAGE);
|
|
859
|
+
}
|
|
860
|
+
function applyStepFieldUpdates(step, options) {
|
|
861
|
+
const title = options.stepTitle?.trim();
|
|
862
|
+
if (title) {
|
|
863
|
+
step.title = title;
|
|
864
|
+
}
|
|
865
|
+
if (options.stepBody !== void 0) {
|
|
866
|
+
step.body = options.stepBody.trim() || void 0;
|
|
867
|
+
}
|
|
868
|
+
if (options.stepOwner !== void 0) {
|
|
869
|
+
step.owner = options.stepOwner.trim() || void 0;
|
|
870
|
+
}
|
|
871
|
+
if (options.stepEvidence !== void 0) {
|
|
872
|
+
step.evidence = options.stepEvidence.trim() || void 0;
|
|
873
|
+
}
|
|
874
|
+
if (options.stepBlockedReason !== void 0) {
|
|
875
|
+
step.blocked_reason = options.stepBlockedReason.trim() || void 0;
|
|
876
|
+
}
|
|
877
|
+
if (options.stepReplacement !== void 0) {
|
|
878
|
+
step.superseded_by = options.stepReplacement.trim() || void 0;
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
function applyStepCompletionTimestamp(step, desiredStatus, now) {
|
|
882
|
+
if (desiredStatus === "completed" && !step.completed_at) {
|
|
883
|
+
step.completed_at = now;
|
|
884
|
+
return;
|
|
885
|
+
}
|
|
886
|
+
if (desiredStatus !== "completed") {
|
|
887
|
+
step.completed_at = void 0;
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
async function planReorderStep(id, options, ctx, stepRef, newOrder) {
|
|
891
|
+
const { document, itemId } = await mutatePlanSteps({
|
|
892
|
+
id,
|
|
893
|
+
options,
|
|
894
|
+
ctx,
|
|
895
|
+
op: "plan_reorder_step",
|
|
896
|
+
message: options.message ?? `plan reorder-step ${stepRef} -> ${newOrder}`,
|
|
897
|
+
mutator(steps) {
|
|
898
|
+
const step = resolveStepRef(steps, stepRef);
|
|
899
|
+
const filtered = steps.filter((entry) => entry.id !== step.id);
|
|
900
|
+
const clamped = Math.max(1, Math.min(newOrder, filtered.length + 1));
|
|
901
|
+
filtered.splice(clamped - 1, 0, step);
|
|
902
|
+
filtered.forEach((entry, index) => {
|
|
903
|
+
entry.order = index + 1;
|
|
904
|
+
entry.updated_at = nowIso();
|
|
905
|
+
});
|
|
906
|
+
steps.length = 0;
|
|
907
|
+
steps.push(...filtered);
|
|
908
|
+
return { changedSteps: [step.id], resultStep: step };
|
|
909
|
+
}
|
|
910
|
+
});
|
|
911
|
+
const plan = projectPlan(document.metadata, "standard");
|
|
912
|
+
return {
|
|
913
|
+
action: "reorder-step",
|
|
914
|
+
plan,
|
|
915
|
+
next_actions: nextActionsFor(itemId, plan),
|
|
916
|
+
warnings: [],
|
|
917
|
+
generated_at: nowIso()
|
|
918
|
+
};
|
|
919
|
+
}
|
|
920
|
+
async function planRemoveStep(id, options, ctx, stepRef) {
|
|
921
|
+
const { document, itemId } = await mutatePlanSteps({
|
|
922
|
+
id,
|
|
923
|
+
options,
|
|
924
|
+
ctx,
|
|
925
|
+
op: "plan_remove_step",
|
|
926
|
+
message: options.message ?? `plan remove-step ${stepRef}`,
|
|
927
|
+
mutator(steps) {
|
|
928
|
+
const step = resolveStepRef(steps, stepRef);
|
|
929
|
+
const remaining = steps.filter((entry) => entry.id !== step.id);
|
|
930
|
+
remaining.forEach((entry, index) => {
|
|
931
|
+
entry.order = index + 1;
|
|
932
|
+
});
|
|
933
|
+
steps.length = 0;
|
|
934
|
+
steps.push(...remaining);
|
|
935
|
+
return { changedSteps: [step.id] };
|
|
936
|
+
}
|
|
937
|
+
});
|
|
938
|
+
const plan = projectPlan(document.metadata, "standard");
|
|
939
|
+
return {
|
|
940
|
+
action: "remove-step",
|
|
941
|
+
plan,
|
|
942
|
+
next_actions: nextActionsFor(itemId, plan),
|
|
943
|
+
warnings: [],
|
|
944
|
+
generated_at: nowIso()
|
|
945
|
+
};
|
|
946
|
+
}
|
|
947
|
+
async function planLink(id, options, ctx, stepRef) {
|
|
948
|
+
const newLinks = buildLinkInputs(options, asLinkKind(options.linkKind, "related"));
|
|
949
|
+
if (newLinks.length === 0) {
|
|
950
|
+
throw new PmCliError("pm plan link requires at least one --link/--related/--blocks/--blocked-by/--depends-on id", EXIT_CODE.USAGE);
|
|
951
|
+
}
|
|
952
|
+
const promoteToItemDep = options.promoteToItemDep === true;
|
|
953
|
+
const { document, itemId, resultStep } = await mutatePlanSteps({
|
|
954
|
+
id,
|
|
955
|
+
options,
|
|
956
|
+
ctx,
|
|
957
|
+
op: "plan_link_step",
|
|
958
|
+
message: options.message ?? `plan link ${stepRef}`,
|
|
959
|
+
mutator(steps, doc) {
|
|
960
|
+
const step = resolveStepRef(steps, stepRef);
|
|
961
|
+
const existing = step.linked_items ?? [];
|
|
962
|
+
const dedupKey = (link) => `${link.kind}:${link.id}`;
|
|
963
|
+
const seen = new Set(existing.map(dedupKey));
|
|
964
|
+
for (const link of newLinks) {
|
|
965
|
+
const key = dedupKey(link);
|
|
966
|
+
if (seen.has(key))
|
|
967
|
+
continue;
|
|
968
|
+
existing.push(link);
|
|
969
|
+
seen.add(key);
|
|
970
|
+
}
|
|
971
|
+
step.linked_items = existing;
|
|
972
|
+
step.updated_at = nowIso();
|
|
973
|
+
if (promoteToItemDep) {
|
|
974
|
+
const deps = doc.metadata.dependencies ?? [];
|
|
975
|
+
const depKey = (dep) => `${dep.kind}:${dep.id}`;
|
|
976
|
+
const seenDeps = new Set(deps.map(depKey));
|
|
977
|
+
for (const link of newLinks) {
|
|
978
|
+
const candidate = {
|
|
979
|
+
id: link.id,
|
|
980
|
+
kind: link.kind,
|
|
981
|
+
created_at: nowIso(),
|
|
982
|
+
author: resolveAuthor(options.author, ctx.settings.author_default)
|
|
983
|
+
};
|
|
984
|
+
if (seenDeps.has(depKey(candidate)))
|
|
985
|
+
continue;
|
|
986
|
+
deps.push(candidate);
|
|
987
|
+
seenDeps.add(depKey(candidate));
|
|
988
|
+
}
|
|
989
|
+
doc.metadata.dependencies = deps;
|
|
990
|
+
}
|
|
991
|
+
return { changedSteps: [step.id], resultStep: step };
|
|
992
|
+
}
|
|
993
|
+
});
|
|
994
|
+
const plan = projectPlan(document.metadata, "standard");
|
|
995
|
+
return {
|
|
996
|
+
action: "link",
|
|
997
|
+
plan,
|
|
998
|
+
step: resultStep,
|
|
999
|
+
next_actions: nextActionsFor(itemId, plan),
|
|
1000
|
+
warnings: [],
|
|
1001
|
+
generated_at: nowIso()
|
|
1002
|
+
};
|
|
1003
|
+
}
|
|
1004
|
+
async function planUnlink(id, options, ctx, stepRef) {
|
|
1005
|
+
const removeIds = toArray(options.link);
|
|
1006
|
+
if (removeIds.length === 0) {
|
|
1007
|
+
throw new PmCliError("pm plan unlink requires --link <id> to remove", EXIT_CODE.USAGE);
|
|
1008
|
+
}
|
|
1009
|
+
const { document, itemId, resultStep } = await mutatePlanSteps({
|
|
1010
|
+
id,
|
|
1011
|
+
options,
|
|
1012
|
+
ctx,
|
|
1013
|
+
op: "plan_unlink_step",
|
|
1014
|
+
message: options.message ?? `plan unlink ${stepRef}`,
|
|
1015
|
+
mutator(steps) {
|
|
1016
|
+
const step = resolveStepRef(steps, stepRef);
|
|
1017
|
+
const filtered = (step.linked_items ?? []).filter((link) => !removeIds.includes(link.id));
|
|
1018
|
+
step.linked_items = filtered.length > 0 ? filtered : void 0;
|
|
1019
|
+
step.updated_at = nowIso();
|
|
1020
|
+
return { changedSteps: [step.id], resultStep: step };
|
|
1021
|
+
}
|
|
1022
|
+
});
|
|
1023
|
+
const plan = projectPlan(document.metadata, "standard");
|
|
1024
|
+
return {
|
|
1025
|
+
action: "unlink",
|
|
1026
|
+
plan,
|
|
1027
|
+
step: resultStep,
|
|
1028
|
+
next_actions: nextActionsFor(itemId, plan),
|
|
1029
|
+
warnings: [],
|
|
1030
|
+
generated_at: nowIso()
|
|
1031
|
+
};
|
|
1032
|
+
}
|
|
1033
|
+
async function planAppendLog(id, options, ctx, kind) {
|
|
1034
|
+
const logText = resolvePlanLogText(kind, options);
|
|
1035
|
+
if (!logText) {
|
|
1036
|
+
const canonical = `--${kind}-text`;
|
|
1037
|
+
const shorthand = `--${kind}`;
|
|
1038
|
+
throw new PmCliError(`pm plan ${kind} requires ${canonical}`, EXIT_CODE.USAGE, {
|
|
1039
|
+
code: "missing_required_option",
|
|
1040
|
+
examples: [
|
|
1041
|
+
`pm plan ${kind} <plan-id> ${canonical} "..."`,
|
|
1042
|
+
`pm plan ${kind} <plan-id> ${shorthand} "..."`
|
|
1043
|
+
],
|
|
1044
|
+
recovery: {
|
|
1045
|
+
suggested_retry: `pm plan ${kind} <plan-id> ${canonical} <value>`
|
|
1046
|
+
}
|
|
1047
|
+
});
|
|
1048
|
+
}
|
|
1049
|
+
const author = resolveAuthor(options.author, ctx.settings.author_default);
|
|
1050
|
+
const { document, itemId } = await mutatePlanSteps({
|
|
1051
|
+
id,
|
|
1052
|
+
options,
|
|
1053
|
+
ctx,
|
|
1054
|
+
op: `plan_append_${kind}`,
|
|
1055
|
+
message: options.message ?? `plan ${kind} append`,
|
|
1056
|
+
mutator(_steps, doc) {
|
|
1057
|
+
const now = nowIso();
|
|
1058
|
+
if (kind === "decision") {
|
|
1059
|
+
const list2 = doc.metadata.plan_decisions ?? [];
|
|
1060
|
+
list2.push({
|
|
1061
|
+
ts: now,
|
|
1062
|
+
author,
|
|
1063
|
+
decision: logText,
|
|
1064
|
+
rationale: options.decisionRationale?.trim() || void 0,
|
|
1065
|
+
evidence: options.decisionEvidence?.trim() || void 0
|
|
1066
|
+
});
|
|
1067
|
+
doc.metadata.plan_decisions = list2;
|
|
1068
|
+
return { changedSteps: [] };
|
|
1069
|
+
}
|
|
1070
|
+
if (kind === "discovery") {
|
|
1071
|
+
const list2 = doc.metadata.plan_discoveries ?? [];
|
|
1072
|
+
list2.push({ ts: now, author, text: logText });
|
|
1073
|
+
doc.metadata.plan_discoveries = list2;
|
|
1074
|
+
return { changedSteps: [] };
|
|
1075
|
+
}
|
|
1076
|
+
const list = doc.metadata.plan_validation ?? [];
|
|
1077
|
+
list.push({
|
|
1078
|
+
text: logText,
|
|
1079
|
+
command: options.validationCommand?.trim() || void 0,
|
|
1080
|
+
expected: options.validationExpected?.trim() || void 0
|
|
1081
|
+
});
|
|
1082
|
+
doc.metadata.plan_validation = list;
|
|
1083
|
+
return { changedSteps: [] };
|
|
1084
|
+
}
|
|
1085
|
+
});
|
|
1086
|
+
const plan = projectPlan(document.metadata, "deep");
|
|
1087
|
+
return {
|
|
1088
|
+
action: kind,
|
|
1089
|
+
plan,
|
|
1090
|
+
next_actions: nextActionsFor(itemId, plan),
|
|
1091
|
+
warnings: [],
|
|
1092
|
+
generated_at: nowIso()
|
|
1093
|
+
};
|
|
1094
|
+
}
|
|
1095
|
+
async function planResume(id, options, ctx) {
|
|
1096
|
+
const text = options.resumeContext?.trim();
|
|
1097
|
+
if (!text) {
|
|
1098
|
+
throw new PmCliError("pm plan resume requires --resume-context <text>", EXIT_CODE.USAGE);
|
|
1099
|
+
}
|
|
1100
|
+
const { document, itemId } = await mutatePlanSteps({
|
|
1101
|
+
id,
|
|
1102
|
+
options,
|
|
1103
|
+
ctx,
|
|
1104
|
+
op: "plan_resume",
|
|
1105
|
+
message: options.message ?? "plan resume context update",
|
|
1106
|
+
mutator(_steps, doc) {
|
|
1107
|
+
doc.metadata.plan_resume_context = text;
|
|
1108
|
+
return { changedSteps: [] };
|
|
1109
|
+
}
|
|
1110
|
+
});
|
|
1111
|
+
const plan = projectPlan(document.metadata, "brief");
|
|
1112
|
+
return {
|
|
1113
|
+
action: "resume",
|
|
1114
|
+
plan,
|
|
1115
|
+
next_actions: nextActionsFor(itemId, plan),
|
|
1116
|
+
warnings: [],
|
|
1117
|
+
generated_at: nowIso()
|
|
1118
|
+
};
|
|
1119
|
+
}
|
|
1120
|
+
async function planApprove(id, options, ctx) {
|
|
1121
|
+
const mode = asPlanMode(options.mode ?? "approved", "approved");
|
|
1122
|
+
const { document, itemId } = await mutatePlanSteps({
|
|
1123
|
+
id,
|
|
1124
|
+
options,
|
|
1125
|
+
ctx,
|
|
1126
|
+
op: "plan_approve",
|
|
1127
|
+
message: options.message ?? `plan approve mode=${mode}`,
|
|
1128
|
+
mutator(_steps, doc) {
|
|
1129
|
+
doc.metadata.plan_mode = mode;
|
|
1130
|
+
return { changedSteps: [] };
|
|
1131
|
+
}
|
|
1132
|
+
});
|
|
1133
|
+
const plan = projectPlan(document.metadata, "brief");
|
|
1134
|
+
return {
|
|
1135
|
+
action: "approve",
|
|
1136
|
+
plan,
|
|
1137
|
+
next_actions: nextActionsFor(itemId, plan),
|
|
1138
|
+
warnings: [],
|
|
1139
|
+
generated_at: nowIso()
|
|
1140
|
+
};
|
|
1141
|
+
}
|
|
1142
|
+
function buildMaterializeSkippedWarnings(materializeSkipped) {
|
|
1143
|
+
return materializeSkipped.map((entry) => `plan_materialize_skipped:${entry.from_step}:${entry.reason}${entry.existing_id ? `:${entry.existing_id}` : ""}`);
|
|
1144
|
+
}
|
|
1145
|
+
function buildMaterializeNoopResult(planRead, materializeSkipped) {
|
|
1146
|
+
const plan = projectPlan(planRead.document.metadata, "standard");
|
|
1147
|
+
return {
|
|
1148
|
+
action: "materialize",
|
|
1149
|
+
plan,
|
|
1150
|
+
materialized: [],
|
|
1151
|
+
materialize_skipped: materializeSkipped,
|
|
1152
|
+
next_actions: nextActionsFor(planRead.itemId, plan),
|
|
1153
|
+
warnings: buildMaterializeSkippedWarnings(materializeSkipped),
|
|
1154
|
+
generated_at: nowIso()
|
|
1155
|
+
};
|
|
1156
|
+
}
|
|
1157
|
+
function buildMaterializeDependencies(parent, planItemId, step) {
|
|
1158
|
+
const deps = [
|
|
1159
|
+
`id=${parent},kind=parent`,
|
|
1160
|
+
`id=${planItemId},kind=discovered_from`
|
|
1161
|
+
];
|
|
1162
|
+
for (const link of step.linked_items ?? []) {
|
|
1163
|
+
const realKind = link.kind === "blocked_by" || link.kind === "blocks" || link.kind === "related" || link.kind === "discovered_from" ? link.kind : "related";
|
|
1164
|
+
deps.push(`id=${link.id},kind=${realKind}`);
|
|
1165
|
+
}
|
|
1166
|
+
return deps;
|
|
1167
|
+
}
|
|
1168
|
+
async function createMaterializedStepItems(params) {
|
|
1169
|
+
const materialized = [];
|
|
1170
|
+
for (const step of params.targets) {
|
|
1171
|
+
const created = await runCreate({
|
|
1172
|
+
title: step.title,
|
|
1173
|
+
description: step.body?.trim() || step.title,
|
|
1174
|
+
type: params.resolvedTypeName,
|
|
1175
|
+
parent: params.parent,
|
|
1176
|
+
tags: params.tags,
|
|
1177
|
+
author: params.options.author,
|
|
1178
|
+
message: params.options.message ?? `materialized from plan ${params.planItemId} step ${step.id}`,
|
|
1179
|
+
dep: buildMaterializeDependencies(params.parent, params.planItemId, step)
|
|
1180
|
+
}, { ...{}, path: params.pmRoot });
|
|
1181
|
+
materialized.push({ id: created.item.id, type: params.resolvedTypeName, from_step: step.id });
|
|
1182
|
+
}
|
|
1183
|
+
return materialized;
|
|
1184
|
+
}
|
|
1185
|
+
function linkMaterializedStepItems(currentSteps, targets, materialized) {
|
|
1186
|
+
for (const target of targets) {
|
|
1187
|
+
const matched = materialized.find((entry) => entry.from_step === target.id);
|
|
1188
|
+
if (!matched) {
|
|
1189
|
+
continue;
|
|
1190
|
+
}
|
|
1191
|
+
const step = currentSteps.find((entry) => entry.id === target.id);
|
|
1192
|
+
if (!step) {
|
|
1193
|
+
continue;
|
|
1194
|
+
}
|
|
1195
|
+
const links = step.linked_items ?? [];
|
|
1196
|
+
links.push({ id: matched.id, kind: "implements", note: `materialized as ${matched.type}` });
|
|
1197
|
+
step.linked_items = links;
|
|
1198
|
+
step.updated_at = nowIso();
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
async function planMaterialize(id, options, ctx) {
|
|
1202
|
+
const stepRefs = toArray(options.steps);
|
|
1203
|
+
if (stepRefs.length === 0) {
|
|
1204
|
+
throw new PmCliError("pm plan materialize requires --steps <ids|orders|all>", EXIT_CODE.USAGE);
|
|
1205
|
+
}
|
|
1206
|
+
const targetType = options.materializeType?.trim() || "Task";
|
|
1207
|
+
const typeRegistry = resolveItemTypeRegistry(ctx.settings, getActiveExtensionRegistrations());
|
|
1208
|
+
const resolvedTypeName = resolveTypeName(targetType, typeRegistry);
|
|
1209
|
+
if (!resolvedTypeName) {
|
|
1210
|
+
throw new PmCliError(`Invalid --materialize-type "${targetType}"`, EXIT_CODE.USAGE);
|
|
1211
|
+
}
|
|
1212
|
+
const parent = options.materializeParent?.trim() || id;
|
|
1213
|
+
const tags = options.materializeTags;
|
|
1214
|
+
const planRead = await readPlanItem(ctx, id);
|
|
1215
|
+
const steps = (planRead.document.metadata.plan_steps ?? []).slice();
|
|
1216
|
+
const { targets, skipped: materializeSkipped } = resolveMaterializeTargets(steps, stepRefs);
|
|
1217
|
+
if (targets.length === 0) {
|
|
1218
|
+
if (materializeSkipped.length > 0) {
|
|
1219
|
+
return buildMaterializeNoopResult(planRead, materializeSkipped);
|
|
1220
|
+
}
|
|
1221
|
+
throw new PmCliError("No matching plan steps found for --steps", EXIT_CODE.NOT_FOUND);
|
|
1222
|
+
}
|
|
1223
|
+
const materialized = await createMaterializedStepItems({
|
|
1224
|
+
targets,
|
|
1225
|
+
parent,
|
|
1226
|
+
planItemId: planRead.itemId,
|
|
1227
|
+
resolvedTypeName,
|
|
1228
|
+
tags,
|
|
1229
|
+
options,
|
|
1230
|
+
pmRoot: ctx.pmRoot
|
|
1231
|
+
});
|
|
1232
|
+
const { document, itemId } = await mutatePlanSteps({
|
|
1233
|
+
id,
|
|
1234
|
+
options,
|
|
1235
|
+
ctx,
|
|
1236
|
+
op: "plan_materialize",
|
|
1237
|
+
message: options.message ?? `plan materialize ${stepRefs.join(",")}`,
|
|
1238
|
+
mutator(currentSteps) {
|
|
1239
|
+
linkMaterializedStepItems(currentSteps, targets, materialized);
|
|
1240
|
+
return { changedSteps: targets.map((entry) => entry.id) };
|
|
1241
|
+
}
|
|
1242
|
+
});
|
|
1243
|
+
const plan = projectPlan(document.metadata, "standard");
|
|
1244
|
+
return {
|
|
1245
|
+
action: "materialize",
|
|
1246
|
+
plan,
|
|
1247
|
+
materialized,
|
|
1248
|
+
...materializeSkipped.length > 0 ? { materialize_skipped: materializeSkipped } : {},
|
|
1249
|
+
next_actions: nextActionsFor(itemId, plan),
|
|
1250
|
+
warnings: buildMaterializeSkippedWarnings(materializeSkipped),
|
|
1251
|
+
generated_at: nowIso()
|
|
1252
|
+
};
|
|
1253
|
+
}
|
|
1254
|
+
function normalizePlanStepAliasInput(input) {
|
|
1255
|
+
if (input.subcommand === "create") {
|
|
1256
|
+
return input;
|
|
1257
|
+
}
|
|
1258
|
+
const stepValues = toOrderedStepTitles(input.options.step);
|
|
1259
|
+
if (stepValues.length > 1) {
|
|
1260
|
+
throw new PmCliError(`pm plan ${input.subcommand} accepts a single --step/--step-title value (repeated --step seeds ordered steps only on pm plan create)`, EXIT_CODE.USAGE);
|
|
1261
|
+
}
|
|
1262
|
+
if (stepValues.length === 1 && !input.options.stepTitle?.trim()) {
|
|
1263
|
+
return { ...input, options: { ...input.options, stepTitle: stepValues[0] } };
|
|
1264
|
+
}
|
|
1265
|
+
return input;
|
|
1266
|
+
}
|
|
1267
|
+
function requirePlanId(input, label) {
|
|
1268
|
+
if (!input.id) {
|
|
1269
|
+
throw new PmCliError(`pm plan ${label} requires a plan id`, EXIT_CODE.USAGE);
|
|
1270
|
+
}
|
|
1271
|
+
return input.id;
|
|
1272
|
+
}
|
|
1273
|
+
function requirePlanStepRef(input, label) {
|
|
1274
|
+
const id = requirePlanId(input, label);
|
|
1275
|
+
if (!input.stepRef) {
|
|
1276
|
+
throw new PmCliError(`pm plan ${label} requires <plan-id> <step>`, EXIT_CODE.USAGE);
|
|
1277
|
+
}
|
|
1278
|
+
return { id, stepRef: input.stepRef };
|
|
1279
|
+
}
|
|
1280
|
+
function requireReorderTarget(input) {
|
|
1281
|
+
const target = requirePlanStepRef(input, "reorder-step");
|
|
1282
|
+
if (input.reorderTo === void 0) {
|
|
1283
|
+
throw new PmCliError("pm plan reorder-step requires <plan-id> <step> <new-order>", EXIT_CODE.USAGE);
|
|
1284
|
+
}
|
|
1285
|
+
return { ...target, reorderTo: input.reorderTo };
|
|
1286
|
+
}
|
|
1287
|
+
var PLAN_DISPATCHERS = {
|
|
1288
|
+
create: (input, ctx) => planCreate(input.options, input.global, ctx),
|
|
1289
|
+
show: (input, ctx) => planShow(requirePlanId(input, "show"), input.options, ctx),
|
|
1290
|
+
"add-step": (input, ctx) => planAddStep(requirePlanId(input, "add-step"), input.options, ctx),
|
|
1291
|
+
"update-step": (input, ctx) => {
|
|
1292
|
+
const target = requirePlanStepRef(input, "update-step");
|
|
1293
|
+
return planUpdateStep(target.id, input.options, ctx, { stepRef: target.stepRef, op: "plan_update_step" });
|
|
1294
|
+
},
|
|
1295
|
+
"complete-step": (input, ctx) => {
|
|
1296
|
+
const target = requirePlanStepRef(input, "complete-step");
|
|
1297
|
+
return planUpdateStep(target.id, input.options, ctx, {
|
|
1298
|
+
stepRef: target.stepRef,
|
|
1299
|
+
finalStatus: "completed",
|
|
1300
|
+
op: "plan_complete_step"
|
|
1301
|
+
});
|
|
1302
|
+
},
|
|
1303
|
+
"block-step": (input, ctx) => {
|
|
1304
|
+
const target = requirePlanStepRef(input, "block-step");
|
|
1305
|
+
return planUpdateStep(target.id, input.options, ctx, {
|
|
1306
|
+
stepRef: target.stepRef,
|
|
1307
|
+
finalStatus: "blocked",
|
|
1308
|
+
op: "plan_block_step"
|
|
1309
|
+
});
|
|
1310
|
+
},
|
|
1311
|
+
"reorder-step": (input, ctx) => {
|
|
1312
|
+
const target = requireReorderTarget(input);
|
|
1313
|
+
return planReorderStep(target.id, input.options, ctx, target.stepRef, target.reorderTo);
|
|
1314
|
+
},
|
|
1315
|
+
"remove-step": (input, ctx) => {
|
|
1316
|
+
const target = requirePlanStepRef(input, "remove-step");
|
|
1317
|
+
return planRemoveStep(target.id, input.options, ctx, target.stepRef);
|
|
1318
|
+
},
|
|
1319
|
+
link: (input, ctx) => {
|
|
1320
|
+
const target = requirePlanStepRef(input, "link");
|
|
1321
|
+
return planLink(target.id, input.options, ctx, target.stepRef);
|
|
1322
|
+
},
|
|
1323
|
+
unlink: (input, ctx) => {
|
|
1324
|
+
const target = requirePlanStepRef(input, "unlink");
|
|
1325
|
+
return planUnlink(target.id, input.options, ctx, target.stepRef);
|
|
1326
|
+
},
|
|
1327
|
+
decision: (input, ctx) => planAppendLog(requirePlanId(input, "decision"), input.options, ctx, "decision"),
|
|
1328
|
+
discovery: (input, ctx) => planAppendLog(requirePlanId(input, "discovery"), input.options, ctx, "discovery"),
|
|
1329
|
+
validation: (input, ctx) => planAppendLog(requirePlanId(input, "validation"), input.options, ctx, "validation"),
|
|
1330
|
+
resume: (input, ctx) => planResume(requirePlanId(input, "resume"), input.options, ctx),
|
|
1331
|
+
approve: (input, ctx) => planApprove(requirePlanId(input, "approve"), input.options, ctx),
|
|
1332
|
+
materialize: (input, ctx) => planMaterialize(requirePlanId(input, "materialize"), input.options, ctx)
|
|
1333
|
+
};
|
|
1334
|
+
function resolvePlanDispatcher(subcommand) {
|
|
1335
|
+
const dispatcher = PLAN_DISPATCHERS[subcommand];
|
|
1336
|
+
if (!dispatcher) {
|
|
1337
|
+
throw new PmCliError(`Unknown pm plan subcommand "${subcommand}"`, EXIT_CODE.USAGE);
|
|
1338
|
+
}
|
|
1339
|
+
return dispatcher;
|
|
1340
|
+
}
|
|
1341
|
+
async function runPlan(input) {
|
|
1342
|
+
const ctx = await loadContext(input.global);
|
|
1343
|
+
const normalizedInput = normalizePlanStepAliasInput(input);
|
|
1344
|
+
return resolvePlanDispatcher(normalizedInput.subcommand)(normalizedInput, ctx);
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
export {
|
|
1348
|
+
PLAN_SUBCOMMANDS,
|
|
1349
|
+
PLAN_SHOW_DEPTH_VALUES,
|
|
1350
|
+
PLAN_TEMPLATE_NAMES,
|
|
1351
|
+
resolvePlanTemplateSteps,
|
|
1352
|
+
runPlan
|
|
1353
|
+
};
|
|
1354
|
+
//# sourceMappingURL=chunk-HFDADVJZ.js.map
|
|
1355
|
+
|
|
1356
|
+
//# debugId=b3ee81eb-626f-58f7-9a58-78d41be890a7
|