@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
package/dist/sdk/runtime.js
CHANGED
|
@@ -4,13 +4,27 @@
|
|
|
4
4
|
* Defines public SDK APIs and package-author helpers for Runtime.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
!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]="
|
|
7
|
+
!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]="86af7c43-06f8-5e32-87ee-676c070b7e71")}catch(e){}}();
|
|
8
8
|
import path from "node:path";
|
|
9
|
-
import {
|
|
9
|
+
import { createEmptyExtensionCommandRegistry, createEmptyExtensionHookRegistry, createEmptyExtensionParserRegistry, createEmptyExtensionPreflightRegistry, createEmptyExtensionRegistrationRegistry, createEmptyExtensionRendererRegistry, createEmptyExtensionServiceRegistry, } from "../core/extensions/extension-registries.js";
|
|
10
|
+
import { activateExtensions, deactivateExtensions, loadExtensions, runActiveCommandHandler, setActiveExtensionCommands, setActiveExtensionHooks, setActiveExtensionParsers, setActiveExtensionPreflight, setActiveExtensionRegistrations, setActiveExtensionRenderers, setActiveExtensionServices, } from "../core/extensions/index.js";
|
|
11
|
+
import { pathExists } from "../core/fs/fs-utils.js";
|
|
10
12
|
import { resolveItemTypeRegistry } from "../core/item/type-registry.js";
|
|
13
|
+
import { projectMutationResult } from "../core/output/mutation-projection.js";
|
|
14
|
+
import { withQuerySummary } from "../core/output/query-summary.js";
|
|
15
|
+
import { PmCliError } from "../core/shared/errors.js";
|
|
16
|
+
import { asRecordClone } from "../core/shared/primitives.js";
|
|
17
|
+
import { createSerialQueue } from "../core/shared/serial-queue.js";
|
|
11
18
|
import { resolveRuntimeStatusRegistry } from "../core/schema/runtime-schema.js";
|
|
19
|
+
import { getSettingsPath, resolvePmRoot } from "../core/store/paths.js";
|
|
12
20
|
import { readSettings } from "../core/store/settings.js";
|
|
21
|
+
import { normalizeListOptions, normalizeUpdateOptions } from "../cli/registration-helpers.js";
|
|
22
|
+
import { UPDATE_COMMANDER_STRING_OPTION_CONTRACTS } from "./cli-contracts/commander-mutation-options.js";
|
|
23
|
+
import { clearWorkspaceContractsCache, memoizeWorkspaceExtensionRegistrations, } from "./workspace-contracts-cache.js";
|
|
24
|
+
export { clearWorkspaceContractsCache } from "./workspace-contracts-cache.js";
|
|
25
|
+
import { assertHistoryRepairTarget, runActivity, runAggregate, runAppend, runClaim, runClose, runCloseMany, runComments, runConfig, runContext, runCopy, runCreate, runDelete, runDeps, runDocs, runExtension, runFiles, runFilesDiscover, runFocus, runGc, runGet, runHealth, runHistory, runHistoryCompact, runHistoryRedact, runHistoryRepair, runHistoryRepairAll, runInit, runLearnings, runList, runNext, runNotes, runPlan, runProfileApply, runProfileLint, runProfileList, runProfileShow, runRestore, runRelease, runSchemaAddField, runSchemaAddStatus, runSchemaAddType, runSchemaApplyPreset, runSchemaInferTypes, runSchemaList, runSchemaListFields, runSchemaRemoveField, runSchemaRemoveStatus, runSchemaRemoveType, runSchemaShow, runSchemaShowField, runSchemaShowStatus, runSearch, runStats, runTelemetry, runTest, runTestAll, runUpdate, runUpdateMany, runUpgrade, runValidate, } from "../cli/commands/index.js";
|
|
13
26
|
import { runContracts, } from "../cli/commands/contracts.js";
|
|
27
|
+
import { resolveStartTaskInProgressStatus } from "../cli/register-operations.js";
|
|
14
28
|
export { getActiveExtensionRegistrations, runActiveOnReadHooks, runActiveOnWriteHooks, } from "../core/extensions/index.js";
|
|
15
29
|
export { pathExists, readFileIfExists, removeFileIfExists, writeFileAtomic } from "../core/fs/fs-utils.js";
|
|
16
30
|
export { appendHistoryEntry, createHistoryEntry } from "../core/history/history.js";
|
|
@@ -43,6 +57,87 @@ export { runSearch } from "../cli/commands/search.js";
|
|
|
43
57
|
export { loadCreateTemplateOptions, runTemplatesList, runTemplatesSave, runTemplatesShow, } from "../cli/commands/templates.js";
|
|
44
58
|
export { runTestRunsList, runTestRunsLogs, runTestRunsResume, runTestRunsStatus, runTestRunsStop, } from "../cli/commands/test-runs.js";
|
|
45
59
|
export { CONFIDENCE_TEXT_VALUES, DEPENDENCY_KIND_VALUES, BUILTIN_ITEM_TYPE_VALUES, ISSUE_SEVERITY_VALUES, ITEM_TYPE_VALUES, RISK_VALUES, STATUS_VALUES, } from "../types/index.js";
|
|
60
|
+
function splitClientMutationOptions(options) {
|
|
61
|
+
const { fullChangedFields, idOnly, ...runnerOptions } = options;
|
|
62
|
+
return {
|
|
63
|
+
...(fullChangedFields === undefined ? {} : { fullChangedFields }),
|
|
64
|
+
...(idOnly === undefined ? {} : { idOnly }),
|
|
65
|
+
options: runnerOptions,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Programmatic pm client for custom tools, CI jobs, bots, and embedded runtimes.
|
|
70
|
+
*
|
|
71
|
+
* Action execution shares the same process-wide extension activation queue used
|
|
72
|
+
* by MCP. Concurrent calls from one process are serialized across extension
|
|
73
|
+
* load, activation, dispatch, cleanup, and deactivate so active registries cannot
|
|
74
|
+
* interleave.
|
|
75
|
+
*
|
|
76
|
+
* Convenience methods accept command options only. Use {@link PmClient.run} for
|
|
77
|
+
* per-call runtime overrides such as `cwd`, `path`, or `noExtensions`.
|
|
78
|
+
*/
|
|
79
|
+
export class PmClient {
|
|
80
|
+
defaults;
|
|
81
|
+
/**
|
|
82
|
+
* Create a client with workspace, author, and extension-loading defaults.
|
|
83
|
+
*/
|
|
84
|
+
constructor(options = {}) {
|
|
85
|
+
this.defaults = {
|
|
86
|
+
...(options.pmRoot === undefined ? {} : { path: options.pmRoot }),
|
|
87
|
+
...(options.cwd === undefined ? {} : { cwd: options.cwd }),
|
|
88
|
+
...(options.author === undefined ? {} : { author: options.author }),
|
|
89
|
+
...(options.noExtensions === undefined ? {} : { noExtensions: options.noExtensions }),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Run any native or extension-contributed action through the SDK dispatcher.
|
|
94
|
+
*/
|
|
95
|
+
run(action, args = {}) {
|
|
96
|
+
return runAction({ ...this.defaults, ...args, action });
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Return the same context snapshot produced by `pm context`.
|
|
100
|
+
*/
|
|
101
|
+
context(options = {}) {
|
|
102
|
+
return this.run("context", { options });
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* List items with the MCP/agent compact defaults.
|
|
106
|
+
*/
|
|
107
|
+
list(options = {}) {
|
|
108
|
+
return this.run("list", { options });
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Search items with the MCP/agent compact defaults.
|
|
112
|
+
*/
|
|
113
|
+
search(query, options = {}) {
|
|
114
|
+
return this.run("search", { query, options });
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Read one item by id.
|
|
118
|
+
*/
|
|
119
|
+
get(id, options = {}) {
|
|
120
|
+
return this.run("get", { id, options });
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Create an item using the same mutation path as `pm create`.
|
|
124
|
+
*/
|
|
125
|
+
create(options) {
|
|
126
|
+
return this.run("create", splitClientMutationOptions(options));
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Update an item using the same mutation path as `pm update`.
|
|
130
|
+
*/
|
|
131
|
+
update(id, options) {
|
|
132
|
+
return this.run("update", { id, ...splitClientMutationOptions(options) });
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Close an item using the same mutation path as `pm close`.
|
|
136
|
+
*/
|
|
137
|
+
close(id, reason, options = {}) {
|
|
138
|
+
return this.run("close", { id, reason, ...splitClientMutationOptions(options) });
|
|
139
|
+
}
|
|
140
|
+
}
|
|
46
141
|
/**
|
|
47
142
|
* Process-lifetime memo of activated extension registrations, keyed by resolved
|
|
48
143
|
* pm root + cwd + extension settings. `getWorkspaceContracts` is frequently
|
|
@@ -57,8 +152,6 @@ export { CONFIDENCE_TEXT_VALUES, DEPENDENCY_KIND_VALUES, BUILTIN_ITEM_TYPE_VALUE
|
|
|
57
152
|
* toggling extensions or editing settings. Settings themselves are re-read on
|
|
58
153
|
* every call — only the extension load+activate step is memoized.
|
|
59
154
|
*/
|
|
60
|
-
const WORKSPACE_CONTRACTS_CACHE_LIMIT = 50;
|
|
61
|
-
const workspaceExtensionRegistrationsCache = new Map();
|
|
62
155
|
function buildWorkspaceExtensionRegistrationsCacheKey(pmRoot, settings, cwd) {
|
|
63
156
|
return JSON.stringify([
|
|
64
157
|
path.resolve(pmRoot),
|
|
@@ -68,27 +161,9 @@ function buildWorkspaceExtensionRegistrationsCacheKey(pmRoot, settings, cwd) {
|
|
|
68
161
|
settings.extensions.policy,
|
|
69
162
|
]);
|
|
70
163
|
}
|
|
71
|
-
/**
|
|
72
|
-
* Drop all memoized workspace extension registrations so the next
|
|
73
|
-
* `getWorkspaceContracts` call re-loads and re-activates extensions from disk.
|
|
74
|
-
* Long-lived hosts should call this after any extension or settings mutation.
|
|
75
|
-
*/
|
|
76
|
-
export function clearWorkspaceContractsCache() {
|
|
77
|
-
workspaceExtensionRegistrationsCache.clear();
|
|
78
|
-
}
|
|
79
164
|
async function resolveWorkspaceExtensionRegistrations(pmRoot, settings, cwd) {
|
|
80
165
|
const cacheKey = buildWorkspaceExtensionRegistrationsCacheKey(pmRoot, settings, cwd);
|
|
81
|
-
|
|
82
|
-
if (cached !== undefined) {
|
|
83
|
-
return cached;
|
|
84
|
-
}
|
|
85
|
-
if (workspaceExtensionRegistrationsCache.size >= WORKSPACE_CONTRACTS_CACHE_LIMIT) {
|
|
86
|
-
const oldestKey = workspaceExtensionRegistrationsCache.keys().next().value;
|
|
87
|
-
workspaceExtensionRegistrationsCache.delete(oldestKey);
|
|
88
|
-
}
|
|
89
|
-
const registrations = loadWorkspaceExtensionRegistrations(pmRoot, settings, cwd);
|
|
90
|
-
workspaceExtensionRegistrationsCache.set(cacheKey, registrations);
|
|
91
|
-
return registrations;
|
|
166
|
+
return memoizeWorkspaceExtensionRegistrations(cacheKey, () => loadWorkspaceExtensionRegistrations(pmRoot, settings, cwd));
|
|
92
167
|
}
|
|
93
168
|
/**
|
|
94
169
|
* Implements get workspace contracts for the public runtime surface of this module.
|
|
@@ -124,6 +199,1045 @@ export async function getContracts(pmRootOrOptions, options = {}) {
|
|
|
124
199
|
};
|
|
125
200
|
return runContracts(resolvedOptions, global);
|
|
126
201
|
}
|
|
202
|
+
function readString(args, key) {
|
|
203
|
+
const value = args[key];
|
|
204
|
+
return typeof value === "string" && value.trim().length > 0 ? value : undefined;
|
|
205
|
+
}
|
|
206
|
+
function readScalarString(args, key) {
|
|
207
|
+
const value = args[key];
|
|
208
|
+
if (typeof value === "string") {
|
|
209
|
+
return value.trim().length > 0 ? value : undefined;
|
|
210
|
+
}
|
|
211
|
+
return typeof value === "number" && Number.isFinite(value) ? String(value) : undefined;
|
|
212
|
+
}
|
|
213
|
+
function readScalarStringAllowBlank(args, key) {
|
|
214
|
+
const value = args[key];
|
|
215
|
+
if (typeof value === "string") {
|
|
216
|
+
return value;
|
|
217
|
+
}
|
|
218
|
+
return typeof value === "number" && Number.isFinite(value) ? String(value) : undefined;
|
|
219
|
+
}
|
|
220
|
+
function isRecord(value) {
|
|
221
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Read a required non-empty string from an action argument bag.
|
|
225
|
+
*/
|
|
226
|
+
export function readRequiredString(args, key) {
|
|
227
|
+
const value = readString(args, key);
|
|
228
|
+
if (!value) {
|
|
229
|
+
throw new PmCliError(`Missing required argument: ${key}`, 64);
|
|
230
|
+
}
|
|
231
|
+
return value;
|
|
232
|
+
}
|
|
233
|
+
function globalOptions(args) {
|
|
234
|
+
return {
|
|
235
|
+
json: true,
|
|
236
|
+
quiet: true,
|
|
237
|
+
path: readString(args, "path"),
|
|
238
|
+
noExtensions: args.noExtensions === true || args.no_extensions === true,
|
|
239
|
+
noPager: true,
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
const ARRAY_TO_CSV_FIELDS = new Set(["tags", "blockedBy", "blocked_by", "skills", "fields"]);
|
|
243
|
+
const SCALAR_TO_ARRAY_FIELDS = new Set([
|
|
244
|
+
"comment",
|
|
245
|
+
"note",
|
|
246
|
+
"learning",
|
|
247
|
+
"reminder",
|
|
248
|
+
"event",
|
|
249
|
+
"dep",
|
|
250
|
+
"depRemove",
|
|
251
|
+
"dep_remove",
|
|
252
|
+
"file",
|
|
253
|
+
"doc",
|
|
254
|
+
"test",
|
|
255
|
+
"unset",
|
|
256
|
+
"addGlob",
|
|
257
|
+
"add_glob",
|
|
258
|
+
"migrate",
|
|
259
|
+
"envSet",
|
|
260
|
+
"env_set",
|
|
261
|
+
"envClear",
|
|
262
|
+
"env_clear",
|
|
263
|
+
]);
|
|
264
|
+
// Actions where the linked-resource fields `add` and `remove` are string[] arrays.
|
|
265
|
+
// For other actions (comments/notes/learnings) `add` and `remove` are scalar strings
|
|
266
|
+
// and must NOT be auto-promoted.
|
|
267
|
+
const ARRAY_ADD_REMOVE_ACTIONS = new Set([
|
|
268
|
+
"files",
|
|
269
|
+
"files-discover",
|
|
270
|
+
"docs",
|
|
271
|
+
"test",
|
|
272
|
+
"test-all",
|
|
273
|
+
]);
|
|
274
|
+
function normalizeMcpOptionsArrays(options, action) {
|
|
275
|
+
const result = {};
|
|
276
|
+
const promoteAddRemove = action !== undefined && ARRAY_ADD_REMOVE_ACTIONS.has(action);
|
|
277
|
+
for (const [key, value] of Object.entries(options)) {
|
|
278
|
+
if (Array.isArray(value) && ARRAY_TO_CSV_FIELDS.has(key)) {
|
|
279
|
+
result[key] = value.join(",");
|
|
280
|
+
continue;
|
|
281
|
+
}
|
|
282
|
+
if (typeof value === "string" && SCALAR_TO_ARRAY_FIELDS.has(key)) {
|
|
283
|
+
result[key] = [value];
|
|
284
|
+
continue;
|
|
285
|
+
}
|
|
286
|
+
if (typeof value === "string" && promoteAddRemove && (key === "add" || key === "remove")) {
|
|
287
|
+
result[key] = [value];
|
|
288
|
+
continue;
|
|
289
|
+
}
|
|
290
|
+
result[key] = value;
|
|
291
|
+
}
|
|
292
|
+
return result;
|
|
293
|
+
}
|
|
294
|
+
function optionsWithAuthor(args, action) {
|
|
295
|
+
const baseOptions = asRecordClone(args.options);
|
|
296
|
+
const hoistedTopLevel = {};
|
|
297
|
+
const hoistKey = (key) => {
|
|
298
|
+
if (baseOptions[key] !== undefined || args[key] === undefined) {
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
hoistedTopLevel[key] = args[key];
|
|
302
|
+
};
|
|
303
|
+
if (action === "list") {
|
|
304
|
+
hoistKey("status");
|
|
305
|
+
hoistKey("type");
|
|
306
|
+
hoistKey("tag");
|
|
307
|
+
hoistKey("priority");
|
|
308
|
+
hoistKey("limit");
|
|
309
|
+
hoistKey("offset");
|
|
310
|
+
}
|
|
311
|
+
else if (action === "search") {
|
|
312
|
+
hoistKey("mode");
|
|
313
|
+
hoistKey("status");
|
|
314
|
+
hoistKey("type");
|
|
315
|
+
hoistKey("tag");
|
|
316
|
+
hoistKey("priority");
|
|
317
|
+
hoistKey("limit");
|
|
318
|
+
}
|
|
319
|
+
else if (action === "create") {
|
|
320
|
+
hoistKey("allowMissingParent");
|
|
321
|
+
}
|
|
322
|
+
else if (action === "close") {
|
|
323
|
+
hoistKey("duplicateOf");
|
|
324
|
+
}
|
|
325
|
+
else if (action === "append") {
|
|
326
|
+
// pm-7u9j: the narrow pm_append tool declares `body` top-level; runAppend
|
|
327
|
+
// reads it from options, so hoist unless options.body already wins.
|
|
328
|
+
// (pm_schema/pm_config top-level args are consumed directly by runAction's
|
|
329
|
+
// schema/config cases, which read args before options — no hoist needed.)
|
|
330
|
+
hoistKey("body");
|
|
331
|
+
}
|
|
332
|
+
const options = normalizeMcpOptionsArrays({ ...hoistedTopLevel, ...baseOptions }, action);
|
|
333
|
+
const author = readString(args, "author");
|
|
334
|
+
return author && options.author === undefined ? { ...options, author } : options;
|
|
335
|
+
}
|
|
336
|
+
// GH-170 (pm-pfnx): the narrow pm_files/pm_docs tools spell the CLI --note flag
|
|
337
|
+
// as `addNote` (the shared `note` parameter is the array-typed create/update
|
|
338
|
+
// note seed). Translate it onto the runner's `note` option; an explicit
|
|
339
|
+
// options.note (pm_run callers) wins.
|
|
340
|
+
function withAddNoteOption(options) {
|
|
341
|
+
if (options.addNote === undefined) {
|
|
342
|
+
return options;
|
|
343
|
+
}
|
|
344
|
+
const next = { ...options };
|
|
345
|
+
if (next.note === undefined && typeof next.addNote === "string") {
|
|
346
|
+
next.note = next.addNote;
|
|
347
|
+
}
|
|
348
|
+
delete next.addNote;
|
|
349
|
+
return next;
|
|
350
|
+
}
|
|
351
|
+
function withFilesDiscoveryOptions(options) {
|
|
352
|
+
const next = { ...options };
|
|
353
|
+
if (next.discoveryNote !== undefined && next.note === undefined && typeof next.discoveryNote === "string") {
|
|
354
|
+
next.note = next.discoveryNote;
|
|
355
|
+
}
|
|
356
|
+
delete next.discover;
|
|
357
|
+
delete next.discoveryNote;
|
|
358
|
+
return next;
|
|
359
|
+
}
|
|
360
|
+
function normalizeActionName(value) {
|
|
361
|
+
const chunks = [];
|
|
362
|
+
let lastWasSeparator = true;
|
|
363
|
+
for (const character of value.trim().toLowerCase()) {
|
|
364
|
+
const isAlphaNumeric = (character >= "a" && character <= "z") || (character >= "0" && character <= "9");
|
|
365
|
+
if (isAlphaNumeric) {
|
|
366
|
+
chunks.push(character);
|
|
367
|
+
lastWasSeparator = false;
|
|
368
|
+
continue;
|
|
369
|
+
}
|
|
370
|
+
if (!lastWasSeparator) {
|
|
371
|
+
chunks.push("-");
|
|
372
|
+
lastWasSeparator = true;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
if (chunks.at(-1) === "-") {
|
|
376
|
+
chunks.pop();
|
|
377
|
+
}
|
|
378
|
+
return chunks.join("");
|
|
379
|
+
}
|
|
380
|
+
function normalizeCommandPath(value) {
|
|
381
|
+
return value.trim().toLowerCase().split(/\s+/).filter(Boolean).join(" ");
|
|
382
|
+
}
|
|
383
|
+
function readStringArray(value) {
|
|
384
|
+
if (!Array.isArray(value)) {
|
|
385
|
+
return [];
|
|
386
|
+
}
|
|
387
|
+
return value.map((entry) => String(entry)).filter((entry) => entry.length > 0);
|
|
388
|
+
}
|
|
389
|
+
function extensionOptionsFromArgs(args, options) {
|
|
390
|
+
const reserved = new Set([
|
|
391
|
+
"action",
|
|
392
|
+
"args",
|
|
393
|
+
"author",
|
|
394
|
+
"cwd",
|
|
395
|
+
"fullChangedFields",
|
|
396
|
+
"id",
|
|
397
|
+
"options",
|
|
398
|
+
"path",
|
|
399
|
+
"query",
|
|
400
|
+
"reason",
|
|
401
|
+
"target",
|
|
402
|
+
]);
|
|
403
|
+
const passthrough = {};
|
|
404
|
+
for (const [key, value] of Object.entries(args)) {
|
|
405
|
+
if (!reserved.has(key)) {
|
|
406
|
+
passthrough[key] = value;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
const normalizedOptions = { ...passthrough, ...options };
|
|
410
|
+
delete normalizedOptions.args;
|
|
411
|
+
return normalizedOptions;
|
|
412
|
+
}
|
|
413
|
+
// pm-bl6m / pm-zumn: every native MCP action runs inside an activation cycle that
|
|
414
|
+
// mutates the process-global active extension registries (set globals -> run -> clear
|
|
415
|
+
// globals in a finally). The stdio transport already processes JSON-RPC lines
|
|
416
|
+
// sequentially, but handleRequest is a public entry point (tests, future concurrent
|
|
417
|
+
// transports) — if two requests ever ran concurrently, the newer one would overwrite
|
|
418
|
+
// the globals mid-flight and whichever finished first would clear them out from under
|
|
419
|
+
// the other (its lazily-read hooks/overrides would silently vanish). Serialize the
|
|
420
|
+
// whole activation cycle (load -> activate -> set -> run -> clear -> deactivate) on a
|
|
421
|
+
// dedicated FIFO queue so the critical section can never interleave. Full
|
|
422
|
+
// request-scoped registry plumbing remains possible later if true intra-server
|
|
423
|
+
// concurrency is ever needed.
|
|
424
|
+
const extensionActivationQueue = createSerialQueue();
|
|
425
|
+
/**
|
|
426
|
+
* Publishes empty active extension registries so built-in fallback actions cannot
|
|
427
|
+
* observe stale or partially published extension state from a failed activation cycle.
|
|
428
|
+
*/
|
|
429
|
+
function resetActiveExtensionRegistries() {
|
|
430
|
+
setActiveExtensionHooks(createEmptyExtensionHookRegistry());
|
|
431
|
+
setActiveExtensionCommands(createEmptyExtensionCommandRegistry());
|
|
432
|
+
setActiveExtensionParsers(createEmptyExtensionParserRegistry());
|
|
433
|
+
setActiveExtensionPreflight(createEmptyExtensionPreflightRegistry());
|
|
434
|
+
setActiveExtensionServices(createEmptyExtensionServiceRegistry());
|
|
435
|
+
setActiveExtensionRenderers(createEmptyExtensionRendererRegistry());
|
|
436
|
+
setActiveExtensionRegistrations(createEmptyExtensionRegistrationRegistry());
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* Run `run` with workspace extensions loaded, activated, and published to the
|
|
440
|
+
* process-global active registries, then torn down afterwards. pm-zumn: built-in native
|
|
441
|
+
* actions (pm_list/pm_profile/pm_schema/pm_create/...) read
|
|
442
|
+
* `getActiveExtensionRegistrations()` for custom item types, fields, and profiles, so
|
|
443
|
+
* they must activate extensions exactly like the CLI (main.ts activates for every
|
|
444
|
+
* command). Previously only the dynamic-extension dispatch activated, leaving
|
|
445
|
+
* extension-contributed schema and profiles invisible over MCP for every built-in
|
|
446
|
+
* action. Activation is skipped (`run` receives `null`) when extensions are disabled or
|
|
447
|
+
* no workspace exists yet (for example `init`). EVERY action — activating or not — is
|
|
448
|
+
* serialized on {@link extensionActivationQueue} so a built-in action's reads of the
|
|
449
|
+
* process-global active registries can never interleave with another request's
|
|
450
|
+
* activation cycle; per-request isolation therefore holds even if a truly concurrent
|
|
451
|
+
* transport is added later (not just because the stdio transport is sequential today).
|
|
452
|
+
*/
|
|
453
|
+
async function withActiveExtensions(global, explicitCwd, resolutionCwd, run) {
|
|
454
|
+
// Run the whole cycle on the queue so registry mutations never interleave. Only an
|
|
455
|
+
// EXPLICIT cwd mutates process.cwd() — pinned inside this serialized slot so the chdir
|
|
456
|
+
// can't be clobbered mid-flight and the built-in handler resolves against it too. A
|
|
457
|
+
// request without an explicit cwd runs in the server's current directory and never
|
|
458
|
+
// touches process.cwd() (important so concurrent direct callers can't corrupt a shared
|
|
459
|
+
// cwd). Either way activation resolves against resolutionCwd, the entry-time snapshot,
|
|
460
|
+
// so it never depends on a deferred process.cwd() read.
|
|
461
|
+
return extensionActivationQueue.enqueue(async () => explicitCwd === undefined
|
|
462
|
+
? await withActiveExtensionsExclusively(global, resolutionCwd, run)
|
|
463
|
+
: await withCwd(explicitCwd, () => withActiveExtensionsExclusively(global, resolutionCwd, run)));
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* Body of the activation cycle. Must only ever run under {@link extensionActivationQueue}
|
|
467
|
+
* (see {@link withActiveExtensions}): it is the exclusive owner of the process-global
|
|
468
|
+
* active extension registries while it runs. Returns early with `run(null)` — still
|
|
469
|
+
* inside the serialized critical section — when extensions are disabled or no workspace
|
|
470
|
+
* exists yet, so those built-in actions also observe a stable (empty) registry. MCP and
|
|
471
|
+
* PmClient callers reload + reactivate extensions per request, so each call is a fresh
|
|
472
|
+
* cycle with teardown in a finally to release resources opened during activate() (the
|
|
473
|
+
* long-running-server reload contract, pm-k1e4). Load/activate failures are swallowed and
|
|
474
|
+
* `run` is invoked with `null`, mirroring the CLI's resilient snapshot loader
|
|
475
|
+
* (loadRuntimeExtensionSnapshot) so a broken extension can never break a built-in action.
|
|
476
|
+
*/
|
|
477
|
+
async function withActiveExtensionsExclusively(global, cwd, run) {
|
|
478
|
+
if (global.noExtensions) {
|
|
479
|
+
resetActiveExtensionRegistries();
|
|
480
|
+
return run(null);
|
|
481
|
+
}
|
|
482
|
+
const pmRoot = resolvePmRoot(cwd, global.path);
|
|
483
|
+
if (!(await pathExists(getSettingsPath(pmRoot)))) {
|
|
484
|
+
resetActiveExtensionRegistries();
|
|
485
|
+
return run(null);
|
|
486
|
+
}
|
|
487
|
+
let active = null;
|
|
488
|
+
let activated;
|
|
489
|
+
try {
|
|
490
|
+
const settings = await readSettings(pmRoot);
|
|
491
|
+
const loadResult = await loadExtensions({ pmRoot, settings, cwd, noExtensions: false });
|
|
492
|
+
const activationResult = await activateExtensions({ ...loadResult, loaded: loadResult.loaded });
|
|
493
|
+
// Record the teardown handle BEFORE publishing the registries so a throw from any
|
|
494
|
+
// setActive* setter still runs deactivateExtensions for resources opened during
|
|
495
|
+
// activate() instead of silently leaking them.
|
|
496
|
+
activated = { loadResult, activationResult };
|
|
497
|
+
setActiveExtensionHooks(activationResult.hooks);
|
|
498
|
+
setActiveExtensionCommands(activationResult.commands);
|
|
499
|
+
setActiveExtensionParsers(activationResult.parsers);
|
|
500
|
+
setActiveExtensionPreflight(activationResult.preflight);
|
|
501
|
+
setActiveExtensionServices(activationResult.services);
|
|
502
|
+
setActiveExtensionRenderers(activationResult.renderers);
|
|
503
|
+
setActiveExtensionRegistrations(activationResult.registrations);
|
|
504
|
+
active = { registrations: activationResult.registrations, commands: activationResult.commands, pmRoot };
|
|
505
|
+
}
|
|
506
|
+
catch (error) {
|
|
507
|
+
resetActiveExtensionRegistries();
|
|
508
|
+
// CLI parity (loadRuntimeExtensionSnapshot): a load/activate failure must never
|
|
509
|
+
// break a built-in action — fall back to running with no active extensions. Surface
|
|
510
|
+
// the cause on stderr so a broken extension is diagnosable instead of being silently
|
|
511
|
+
// indistinguishable from a workspace that simply has no extensions.
|
|
512
|
+
console.error("[pm-sdk] extension activation failed; continuing without active extensions:", error);
|
|
513
|
+
}
|
|
514
|
+
try {
|
|
515
|
+
return await run(active);
|
|
516
|
+
}
|
|
517
|
+
finally {
|
|
518
|
+
// Reset the process-global active registries FIRST so a torn-down extension's
|
|
519
|
+
// overrides/hooks cannot leak into a later request in this long-running server
|
|
520
|
+
// (for example a subsequent pm_list/pm_create) even if teardown below misbehaves.
|
|
521
|
+
resetActiveExtensionRegistries();
|
|
522
|
+
// Best-effort teardown of extensions that activated successfully. Skipped when
|
|
523
|
+
// activation never completed (nothing was set up); guarded so an unexpected throw
|
|
524
|
+
// cannot escape the finally.
|
|
525
|
+
if (activated) {
|
|
526
|
+
await deactivateExtensions(activated.loadResult, activated.activationResult).catch(() => undefined);
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* Resolve `action` against the active extension command registrations and dispatch it.
|
|
532
|
+
* Reached by runAction's default case for dynamic (non-built-in) actions after
|
|
533
|
+
* {@link withActiveExtensions} has published the active registries. `active` is `null`
|
|
534
|
+
* when no extensions are active (disabled, no workspace, or activation failed), in
|
|
535
|
+
* which case no extension command can match and the action is reported unsupported.
|
|
536
|
+
*/
|
|
537
|
+
async function dispatchActiveExtensionAction(action, args, options, global, active) {
|
|
538
|
+
if (!active) {
|
|
539
|
+
throw new PmCliError(`Unsupported native pm action: ${action}`, 64);
|
|
540
|
+
}
|
|
541
|
+
const normalizedAction = normalizeActionName(action);
|
|
542
|
+
const definition = active.registrations.commands.find((entry) => normalizeActionName(entry.action) === normalizedAction);
|
|
543
|
+
const command = definition?.command ??
|
|
544
|
+
active.commands.handlers.find((entry) => normalizeActionName(entry.command) === normalizedAction)?.command;
|
|
545
|
+
if (!command) {
|
|
546
|
+
throw new PmCliError(`Unsupported native pm action: ${action}`, 64);
|
|
547
|
+
}
|
|
548
|
+
const handlerResult = await runActiveCommandHandler({
|
|
549
|
+
command: normalizeCommandPath(command),
|
|
550
|
+
args: readStringArray(options.args ?? args.args),
|
|
551
|
+
options: extensionOptionsFromArgs(args, options),
|
|
552
|
+
global,
|
|
553
|
+
pm_root: active.pmRoot,
|
|
554
|
+
});
|
|
555
|
+
if (!handlerResult.handled) {
|
|
556
|
+
const suffix = handlerResult.warnings.length > 0 ? ` (${handlerResult.warnings.join(", ")})` : "";
|
|
557
|
+
throw new PmCliError(`Unsupported native pm action: ${action}${suffix}`, 64);
|
|
558
|
+
}
|
|
559
|
+
return handlerResult.result;
|
|
560
|
+
}
|
|
561
|
+
async function withCwd(cwd, run) {
|
|
562
|
+
// Only ever called with an explicit, non-empty cwd (readString filters blanks), from
|
|
563
|
+
// inside the serialized activation queue, so the chdir/restore is exclusive per request
|
|
564
|
+
// and can never be clobbered by a concurrent caller.
|
|
565
|
+
const previous = process.cwd();
|
|
566
|
+
process.chdir(cwd);
|
|
567
|
+
try {
|
|
568
|
+
return await run();
|
|
569
|
+
}
|
|
570
|
+
finally {
|
|
571
|
+
process.chdir(previous);
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
/**
|
|
575
|
+
* Mutation tools (create/update/close/append/update-many) return a verbose
|
|
576
|
+
* `changed_fields` array. On the agent path we drop it to a `changed_field_count`
|
|
577
|
+
* by default for token efficiency, restoring the full array only when the caller
|
|
578
|
+
* explicitly passes the MCP-level fullChangedFields=true control. Mutation options
|
|
579
|
+
* are forwarded unchanged so runtime fields named `full` remain valid user data.
|
|
580
|
+
*/
|
|
581
|
+
function withMutationCompaction(args, options) {
|
|
582
|
+
return { changedFields: args.fullChangedFields === true ? "full" : "compact", idOnly: args.idOnly === true, runnerOptions: { ...options } };
|
|
583
|
+
}
|
|
584
|
+
function mutationListOptions(options) {
|
|
585
|
+
return {
|
|
586
|
+
type: readScalarString(options, "filterType"),
|
|
587
|
+
tag: readScalarString(options, "filterTag"),
|
|
588
|
+
priority: readScalarString(options, "filterPriority"),
|
|
589
|
+
deadlineBefore: readScalarString(options, "filterDeadlineBefore"),
|
|
590
|
+
deadlineAfter: readScalarString(options, "filterDeadlineAfter"),
|
|
591
|
+
updatedAfter: readScalarString(options, "filterUpdatedAfter"),
|
|
592
|
+
updatedBefore: readScalarString(options, "filterUpdatedBefore"),
|
|
593
|
+
createdAfter: readScalarString(options, "filterCreatedAfter"),
|
|
594
|
+
createdBefore: readScalarString(options, "filterCreatedBefore"),
|
|
595
|
+
ids: readScalarStringAllowBlank(options, "ids"),
|
|
596
|
+
assignee: readScalarString(options, "filterAssignee"),
|
|
597
|
+
assigneeFilter: readScalarString(options, "filterAssigneeFilter") ?? readScalarString(options, "filterAssignee_filter"),
|
|
598
|
+
parent: readScalarString(options, "filterParent"),
|
|
599
|
+
sprint: readScalarString(options, "filterSprint"),
|
|
600
|
+
release: readScalarString(options, "filterRelease"),
|
|
601
|
+
limit: readScalarString(options, "limit"),
|
|
602
|
+
offset: readScalarString(options, "offset"),
|
|
603
|
+
};
|
|
604
|
+
}
|
|
605
|
+
function closeManyOptionsFromFlat(options) {
|
|
606
|
+
return {
|
|
607
|
+
status: readString(options, "filterStatus"),
|
|
608
|
+
list: isRecord(options.list) ? normalizeListOptions(options.list) : mutationListOptions(options),
|
|
609
|
+
reason: readString(options, "reason"),
|
|
610
|
+
resolution: readString(options, "resolution"),
|
|
611
|
+
expectedResult: readString(options, "expectedResult") ?? readString(options, "expected_result") ?? readString(options, "expected"),
|
|
612
|
+
actualResult: readString(options, "actualResult") ?? readString(options, "actual_result") ?? readString(options, "actual"),
|
|
613
|
+
validateClose: readString(options, "validateClose") ?? readString(options, "validate_close"),
|
|
614
|
+
author: readString(options, "author"),
|
|
615
|
+
message: readString(options, "message"),
|
|
616
|
+
force: options.force === true ? true : undefined,
|
|
617
|
+
dryRun: options.dryRun === true || options.dry_run === true ? true : undefined,
|
|
618
|
+
rollback: readString(options, "rollback"),
|
|
619
|
+
checkpoint: options.checkpoint === false || options.noCheckpoint === true || options.no_checkpoint === true ? false : undefined,
|
|
620
|
+
};
|
|
621
|
+
}
|
|
622
|
+
const UPDATE_MANY_FLAT_CONTROL_KEYS = new Set([
|
|
623
|
+
"filterStatus",
|
|
624
|
+
"filterType",
|
|
625
|
+
"filterTag",
|
|
626
|
+
"filterPriority",
|
|
627
|
+
"filterDeadlineBefore",
|
|
628
|
+
"filterDeadlineAfter",
|
|
629
|
+
"filterUpdatedAfter",
|
|
630
|
+
"filterUpdatedBefore",
|
|
631
|
+
"filterCreatedAfter",
|
|
632
|
+
"filterCreatedBefore",
|
|
633
|
+
"filterAssignee",
|
|
634
|
+
"filterAssigneeFilter",
|
|
635
|
+
"filterAssignee_filter",
|
|
636
|
+
"filterParent",
|
|
637
|
+
"filterSprint",
|
|
638
|
+
"filterRelease",
|
|
639
|
+
"ids",
|
|
640
|
+
"list",
|
|
641
|
+
"update",
|
|
642
|
+
"limit",
|
|
643
|
+
"offset",
|
|
644
|
+
"dryRun",
|
|
645
|
+
"dry_run",
|
|
646
|
+
"rollback",
|
|
647
|
+
"checkpoint",
|
|
648
|
+
"noCheckpoint",
|
|
649
|
+
"no_checkpoint",
|
|
650
|
+
]);
|
|
651
|
+
function updateManyUpdateOptionsFromFlat(options) {
|
|
652
|
+
const update = {};
|
|
653
|
+
for (const [key, value] of Object.entries(options)) {
|
|
654
|
+
if (UPDATE_MANY_FLAT_CONTROL_KEYS.has(key)) {
|
|
655
|
+
continue;
|
|
656
|
+
}
|
|
657
|
+
update[key] = value;
|
|
658
|
+
}
|
|
659
|
+
return normalizeMcpUpdateOptions(update);
|
|
660
|
+
}
|
|
661
|
+
function normalizeMcpUpdateOptions(options) {
|
|
662
|
+
const normalizedInput = normalizeMcpOptionsArrays(options, "update-many");
|
|
663
|
+
for (const contract of UPDATE_COMMANDER_STRING_OPTION_CONTRACTS) {
|
|
664
|
+
for (const key of contract.keys) {
|
|
665
|
+
const value = normalizedInput[key];
|
|
666
|
+
if (typeof value === "number" && Number.isFinite(value)) {
|
|
667
|
+
normalizedInput[key] = String(value);
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
return normalizeUpdateOptions(normalizedInput);
|
|
672
|
+
}
|
|
673
|
+
function updateManyOptionsFromFlat(options) {
|
|
674
|
+
if (isRecord(options.list) || isRecord(options.update)) {
|
|
675
|
+
const updateSource = isRecord(options.update) ? options.update : updateManyUpdateOptionsFromFlat(options);
|
|
676
|
+
return {
|
|
677
|
+
status: readScalarString(options, "filterStatus"),
|
|
678
|
+
list: isRecord(options.list) ? normalizeListOptions(options.list) : mutationListOptions(options),
|
|
679
|
+
update: normalizeMcpUpdateOptions(updateSource),
|
|
680
|
+
dryRun: options.dryRun === true || options.dry_run === true ? true : undefined,
|
|
681
|
+
rollback: readString(options, "rollback"),
|
|
682
|
+
checkpoint: options.checkpoint === false || options.noCheckpoint === true || options.no_checkpoint === true ? false : undefined,
|
|
683
|
+
};
|
|
684
|
+
}
|
|
685
|
+
return {
|
|
686
|
+
status: readScalarString(options, "filterStatus"),
|
|
687
|
+
list: mutationListOptions(options),
|
|
688
|
+
update: updateManyUpdateOptionsFromFlat(options),
|
|
689
|
+
dryRun: options.dryRun === true || options.dry_run === true ? true : undefined,
|
|
690
|
+
rollback: readString(options, "rollback"),
|
|
691
|
+
checkpoint: options.checkpoint === false || options.noCheckpoint === true || options.no_checkpoint === true ? false : undefined,
|
|
692
|
+
};
|
|
693
|
+
}
|
|
694
|
+
const WORKSPACE_CONTRACTS_CACHE_PRESERVING_ACTIONS = new Set([
|
|
695
|
+
"activity",
|
|
696
|
+
"aggregate",
|
|
697
|
+
"context",
|
|
698
|
+
"contracts",
|
|
699
|
+
"deps",
|
|
700
|
+
"files-discover",
|
|
701
|
+
"get",
|
|
702
|
+
"health",
|
|
703
|
+
"history",
|
|
704
|
+
"list",
|
|
705
|
+
"next",
|
|
706
|
+
"search",
|
|
707
|
+
"stats",
|
|
708
|
+
"telemetry",
|
|
709
|
+
"validate",
|
|
710
|
+
]);
|
|
711
|
+
const LIST_ACTION_ALIASES = {
|
|
712
|
+
"list-all": { action: "list", options: { excludeTerminal: false } },
|
|
713
|
+
"list-draft": { action: "list", options: { status: "draft", excludeTerminal: false } },
|
|
714
|
+
"list-open": { action: "list", options: { status: "open", excludeTerminal: false } },
|
|
715
|
+
"list-in-progress": { action: "list", options: { status: "in_progress", excludeTerminal: false } },
|
|
716
|
+
"list-blocked": { action: "list", options: { status: "blocked", excludeTerminal: false } },
|
|
717
|
+
"list-closed": { action: "list", options: { status: "closed", excludeTerminal: false } },
|
|
718
|
+
"list-canceled": { action: "list", options: { status: "canceled", excludeTerminal: false } },
|
|
719
|
+
};
|
|
720
|
+
const EXTENSION_ACTION_ALIASES = {
|
|
721
|
+
"extension-init": { action: "extension", options: { init: true } },
|
|
722
|
+
"extension-install": { action: "extension", options: { install: true } },
|
|
723
|
+
"extension-uninstall": { action: "extension", options: { uninstall: true } },
|
|
724
|
+
"extension-explore": { action: "extension", options: { explore: true } },
|
|
725
|
+
"extension-manage": { action: "extension", options: { manage: true } },
|
|
726
|
+
"extension-describe": { action: "extension", options: { describe: true } },
|
|
727
|
+
"extension-reload": { action: "extension", options: { reload: true } },
|
|
728
|
+
"extension-doctor": { action: "extension", options: { doctor: true } },
|
|
729
|
+
"extension-catalog": { action: "extension", options: { catalog: true } },
|
|
730
|
+
"extension-adopt": { action: "extension", options: { adopt: true } },
|
|
731
|
+
"extension-adopt-all": { action: "extension", options: { adoptAll: true } },
|
|
732
|
+
"extension-activate": { action: "extension", options: { activate: true } },
|
|
733
|
+
"extension-deactivate": { action: "extension", options: { deactivate: true } },
|
|
734
|
+
};
|
|
735
|
+
const PACKAGE_ACTION_ALIASES = {
|
|
736
|
+
"package-init": { action: "package", options: { init: true, vocabulary: "package" } },
|
|
737
|
+
"package-install": { action: "package", options: { install: true, vocabulary: "package" } },
|
|
738
|
+
"package-uninstall": { action: "package", options: { uninstall: true, vocabulary: "package" } },
|
|
739
|
+
"package-explore": { action: "package", options: { explore: true, vocabulary: "package" } },
|
|
740
|
+
"package-manage": { action: "package", options: { manage: true, vocabulary: "package" } },
|
|
741
|
+
"package-describe": { action: "package", options: { describe: true, vocabulary: "package" } },
|
|
742
|
+
"package-reload": { action: "package", options: { reload: true, vocabulary: "package" } },
|
|
743
|
+
"package-doctor": { action: "package", options: { doctor: true, vocabulary: "package" } },
|
|
744
|
+
"package-catalog": { action: "package", options: { catalog: true, vocabulary: "package" } },
|
|
745
|
+
"package-adopt": { action: "package", options: { adopt: true, vocabulary: "package" } },
|
|
746
|
+
"package-adopt-all": { action: "package", options: { adoptAll: true, vocabulary: "package" } },
|
|
747
|
+
"package-activate": { action: "package", options: { activate: true, vocabulary: "package" } },
|
|
748
|
+
"package-deactivate": { action: "package", options: { deactivate: true, vocabulary: "package" } },
|
|
749
|
+
};
|
|
750
|
+
const SDK_ACTION_ALIASES = {
|
|
751
|
+
ctx: { action: "context" },
|
|
752
|
+
...LIST_ACTION_ALIASES,
|
|
753
|
+
...EXTENSION_ACTION_ALIASES,
|
|
754
|
+
...PACKAGE_ACTION_ALIASES,
|
|
755
|
+
};
|
|
756
|
+
function resolveSdkActionInput(args) {
|
|
757
|
+
const rawAction = readRequiredString(args, "action");
|
|
758
|
+
const normalizedAction = normalizeActionName(rawAction);
|
|
759
|
+
const alias = getOwnHandler(SDK_ACTION_ALIASES, normalizedAction);
|
|
760
|
+
const action = alias?.action ?? normalizedAction;
|
|
761
|
+
const resolvedArgs = { ...args, action };
|
|
762
|
+
if (alias?.options !== undefined) {
|
|
763
|
+
resolvedArgs.options = { ...alias.options, ...asRecordClone(args.options) };
|
|
764
|
+
}
|
|
765
|
+
return { action, args: resolvedArgs };
|
|
766
|
+
}
|
|
767
|
+
function shouldInvalidateWorkspaceContractsCacheAfterAction(action) {
|
|
768
|
+
return !WORKSPACE_CONTRACTS_CACHE_PRESERVING_ACTIONS.has(normalizeActionName(action));
|
|
769
|
+
}
|
|
770
|
+
/**
|
|
771
|
+
* Execute one native or extension-contributed pm action in-process.
|
|
772
|
+
*/
|
|
773
|
+
export async function runAction(args) {
|
|
774
|
+
const resolved = resolveSdkActionInput(args);
|
|
775
|
+
const global = globalOptions(resolved.args);
|
|
776
|
+
const invalidateWorkspaceContractsCache = shouldInvalidateWorkspaceContractsCacheAfterAction(resolved.action);
|
|
777
|
+
// pm-zumn: dispatch every action (built-in and dynamic) inside one extension
|
|
778
|
+
// activation cycle so built-in actions see extension-contributed item types, fields,
|
|
779
|
+
// and profiles, consistent with the CLI. Snapshot the effective resolution cwd HERE,
|
|
780
|
+
// at request entry (the explicit args.cwd, else the server's current directory), so the
|
|
781
|
+
// queued cycle resolves against the directory the request arrived in rather than a value
|
|
782
|
+
// process.cwd() might hold by the time the task runs. Only an explicit cwd additionally
|
|
783
|
+
// pins process.cwd() (inside the serialized slot) for the built-in handler.
|
|
784
|
+
const explicitCwd = readString(resolved.args, "cwd");
|
|
785
|
+
const resolutionCwd = explicitCwd ?? process.cwd();
|
|
786
|
+
try {
|
|
787
|
+
return await withActiveExtensions(global, explicitCwd, resolutionCwd, (activeExtensions) => dispatchAction(resolved.action, resolved.args, global, activeExtensions));
|
|
788
|
+
}
|
|
789
|
+
finally {
|
|
790
|
+
if (invalidateWorkspaceContractsCache) {
|
|
791
|
+
clearWorkspaceContractsCache();
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
function getOwnHandler(handlers, key) {
|
|
796
|
+
return Object.prototype.hasOwnProperty.call(handlers, key) ? handlers[key] : undefined;
|
|
797
|
+
}
|
|
798
|
+
function readMcpTarget(ctx) {
|
|
799
|
+
return readString(ctx.args, "target") ?? readString(ctx.options, "target");
|
|
800
|
+
}
|
|
801
|
+
function requireMcpItemId(ctx, source = ctx.options) {
|
|
802
|
+
return ctx.id ?? readRequiredString(source, "id");
|
|
803
|
+
}
|
|
804
|
+
async function runMcpListAction(ctx) {
|
|
805
|
+
const listOptions = { ...ctx.options };
|
|
806
|
+
if (listOptions.compact === undefined &&
|
|
807
|
+
listOptions.brief === undefined &&
|
|
808
|
+
listOptions.fields === undefined &&
|
|
809
|
+
listOptions.includeBody === undefined) {
|
|
810
|
+
listOptions.compact = true;
|
|
811
|
+
}
|
|
812
|
+
// pm-rmjy: echo applied filters + projection mode so agents get structured confirmation.
|
|
813
|
+
return withQuerySummary((await runList(readString(ctx.args, "status") ?? readString(listOptions, "status"), listOptions, ctx.global)), listOptions);
|
|
814
|
+
}
|
|
815
|
+
async function runMcpSearchAction(ctx) {
|
|
816
|
+
const searchOptions = { ...ctx.options };
|
|
817
|
+
if (searchOptions.compact === undefined && searchOptions.full === undefined && searchOptions.fields === undefined) {
|
|
818
|
+
searchOptions.compact = true;
|
|
819
|
+
}
|
|
820
|
+
return withQuerySummary((await runSearch(readRequiredString(ctx.args, "query"), searchOptions, ctx.global)), searchOptions);
|
|
821
|
+
}
|
|
822
|
+
async function runMcpCreateAction(ctx) {
|
|
823
|
+
const { changedFields, idOnly, runnerOptions } = withMutationCompaction(ctx.args, ctx.options);
|
|
824
|
+
return projectMutationResult(await runCreate(runnerOptions, ctx.global), { changedFields, idOnly });
|
|
825
|
+
}
|
|
826
|
+
async function runMcpCopyAction(ctx) {
|
|
827
|
+
const { changedFields, idOnly, runnerOptions } = withMutationCompaction(ctx.args, ctx.options);
|
|
828
|
+
const copyOptions = {
|
|
829
|
+
...runnerOptions,
|
|
830
|
+
...(runnerOptions.title === undefined && typeof ctx.args.title === "string" ? { title: ctx.args.title } : {}),
|
|
831
|
+
...(runnerOptions.message === undefined && typeof ctx.args.message === "string" ? { message: ctx.args.message } : {}),
|
|
832
|
+
};
|
|
833
|
+
return projectMutationResult(await runCopy(requireMcpItemId(ctx, copyOptions), copyOptions, ctx.global), {
|
|
834
|
+
changedFields,
|
|
835
|
+
idOnly,
|
|
836
|
+
});
|
|
837
|
+
}
|
|
838
|
+
async function runMcpUpdateAction(ctx) {
|
|
839
|
+
const { changedFields, idOnly, runnerOptions } = withMutationCompaction(ctx.args, ctx.options);
|
|
840
|
+
return projectMutationResult(await runUpdate(requireMcpItemId(ctx, runnerOptions), runnerOptions, ctx.global), {
|
|
841
|
+
changedFields,
|
|
842
|
+
idOnly,
|
|
843
|
+
});
|
|
844
|
+
}
|
|
845
|
+
async function runMcpCloseAction(ctx) {
|
|
846
|
+
const { changedFields, idOnly, runnerOptions } = withMutationCompaction(ctx.args, ctx.options);
|
|
847
|
+
const closeReason = readString(ctx.args, "reason") ??
|
|
848
|
+
readString(ctx.args, "text") ??
|
|
849
|
+
readString(runnerOptions, "reason") ??
|
|
850
|
+
readString(runnerOptions, "text");
|
|
851
|
+
return projectMutationResult(await runClose(requireMcpItemId(ctx, runnerOptions), closeReason, runnerOptions, ctx.global), { changedFields, idOnly });
|
|
852
|
+
}
|
|
853
|
+
function runMcpCommentsAction(ctx) {
|
|
854
|
+
const commentOptions = { ...ctx.options };
|
|
855
|
+
const isListing = commentOptions.add === undefined &&
|
|
856
|
+
commentOptions.stdin === undefined &&
|
|
857
|
+
commentOptions.file === undefined &&
|
|
858
|
+
commentOptions.edit === undefined &&
|
|
859
|
+
commentOptions.delete === undefined;
|
|
860
|
+
if (isListing) {
|
|
861
|
+
commentOptions.includeMeta = true;
|
|
862
|
+
if (commentOptions.limit === undefined && commentOptions.full !== true) {
|
|
863
|
+
commentOptions.limit = "20";
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
delete commentOptions.full;
|
|
867
|
+
return runComments(requireMcpItemId(ctx), commentOptions, ctx.global);
|
|
868
|
+
}
|
|
869
|
+
function runMcpFilesAction(ctx) {
|
|
870
|
+
const fileId = requireMcpItemId(ctx);
|
|
871
|
+
return ctx.options.discover === true
|
|
872
|
+
? runFilesDiscover(fileId, withFilesDiscoveryOptions(ctx.options), ctx.global)
|
|
873
|
+
: runFiles(fileId, withAddNoteOption(ctx.options), ctx.global);
|
|
874
|
+
}
|
|
875
|
+
function runMcpTelemetryAction(ctx) {
|
|
876
|
+
return runTelemetry({
|
|
877
|
+
subcommand: readString(ctx.args, "subcommand") ?? readString(ctx.options, "subcommand"),
|
|
878
|
+
limit: resolveMcpTelemetryLimit(ctx.args, ctx.options),
|
|
879
|
+
}, ctx.global);
|
|
880
|
+
}
|
|
881
|
+
function resolveMcpTelemetryLimit(args, options) {
|
|
882
|
+
if (typeof args.limit === "number" && Number.isFinite(args.limit)) {
|
|
883
|
+
return args.limit;
|
|
884
|
+
}
|
|
885
|
+
if (typeof options.limit === "number" && Number.isFinite(options.limit)) {
|
|
886
|
+
return options.limit;
|
|
887
|
+
}
|
|
888
|
+
return readString(args, "limit") ?? readString(options, "limit");
|
|
889
|
+
}
|
|
890
|
+
function runMcpHealthAction(ctx) {
|
|
891
|
+
const healthOptions = { ...ctx.options };
|
|
892
|
+
if (healthOptions.brief === undefined && healthOptions.summary === undefined && healthOptions.full === undefined) {
|
|
893
|
+
healthOptions.summary = true;
|
|
894
|
+
}
|
|
895
|
+
return runHealth(ctx.global, healthOptions);
|
|
896
|
+
}
|
|
897
|
+
function runMcpConfigAction(ctx) {
|
|
898
|
+
const configAction = readString(ctx.args, "configAction") ?? readString(ctx.options, "configAction") ?? readString(ctx.options, "action");
|
|
899
|
+
if (configAction === undefined) {
|
|
900
|
+
throw new PmCliError("Missing required argument: configAction", 64);
|
|
901
|
+
}
|
|
902
|
+
return runConfig(readString(ctx.args, "scope") ?? readString(ctx.options, "scope") ?? "project", configAction, readString(ctx.args, "key") ?? readString(ctx.options, "key"), ctx.options, ctx.global, readString(ctx.args, "value") ?? readString(ctx.options, "value"));
|
|
903
|
+
}
|
|
904
|
+
function runMcpActivityAction(ctx) {
|
|
905
|
+
const activityOptions = { ...ctx.options };
|
|
906
|
+
if (activityOptions.compact === undefined) {
|
|
907
|
+
activityOptions.compact = activityOptions.full === true ? false : true;
|
|
908
|
+
}
|
|
909
|
+
delete activityOptions.full;
|
|
910
|
+
return runActivity(activityOptions, ctx.global);
|
|
911
|
+
}
|
|
912
|
+
function runMcpHistoryRepairAction(ctx) {
|
|
913
|
+
const repairAll = ctx.options.all === true;
|
|
914
|
+
const repairId = ctx.id ?? readString(ctx.options, "id");
|
|
915
|
+
assertHistoryRepairTarget(repairId, repairAll);
|
|
916
|
+
return repairAll ? runHistoryRepairAll(ctx.options, ctx.global) : runHistoryRepair(repairId, ctx.options, ctx.global);
|
|
917
|
+
}
|
|
918
|
+
function parseMcpInteger(value, label) {
|
|
919
|
+
if (typeof value === "number") {
|
|
920
|
+
if (!Number.isInteger(value)) {
|
|
921
|
+
throw new PmCliError(`${label} must be a finite integer.`, 64);
|
|
922
|
+
}
|
|
923
|
+
return value;
|
|
924
|
+
}
|
|
925
|
+
if (typeof value === "string" && value.trim().length > 0) {
|
|
926
|
+
const parsed = Number(value);
|
|
927
|
+
if (!Number.isInteger(parsed)) {
|
|
928
|
+
throw new PmCliError(`${label} must be a finite integer.`, 64);
|
|
929
|
+
}
|
|
930
|
+
return parsed;
|
|
931
|
+
}
|
|
932
|
+
return undefined;
|
|
933
|
+
}
|
|
934
|
+
function parseMcpIntegerPrefix(value, label) {
|
|
935
|
+
if (typeof value === "number") {
|
|
936
|
+
if (!Number.isFinite(value) || !Number.isInteger(value)) {
|
|
937
|
+
throw new PmCliError(`${label} must be a finite integer.`, 64);
|
|
938
|
+
}
|
|
939
|
+
return value;
|
|
940
|
+
}
|
|
941
|
+
if (typeof value === "string" && value.trim().length > 0) {
|
|
942
|
+
const trimmed = value.trim();
|
|
943
|
+
if (!/^[+-]?\d+(?:st|nd|rd|th)?$/i.test(trimmed)) {
|
|
944
|
+
throw new PmCliError(`${label} must be a finite integer.`, 64);
|
|
945
|
+
}
|
|
946
|
+
const parsed = Number.parseInt(trimmed, 10);
|
|
947
|
+
if (!Number.isInteger(parsed)) {
|
|
948
|
+
throw new PmCliError(`${label} must be a finite integer.`, 64);
|
|
949
|
+
}
|
|
950
|
+
return parsed;
|
|
951
|
+
}
|
|
952
|
+
return undefined;
|
|
953
|
+
}
|
|
954
|
+
function runMcpPlanAction(ctx) {
|
|
955
|
+
const subcommand = readString(ctx.args, "subcommand") ?? readRequiredString(ctx.options, "subcommand");
|
|
956
|
+
const planRecord = ctx.options;
|
|
957
|
+
return runPlan({
|
|
958
|
+
subcommand: subcommand,
|
|
959
|
+
id: typeof ctx.id === "string" ? ctx.id : typeof planRecord.id === "string" ? planRecord.id : undefined,
|
|
960
|
+
stepRef: readMcpPlanStepRef(ctx),
|
|
961
|
+
reorderTo: parseMcpIntegerPrefix(planRecord.reorderTo ?? ctx.args.reorderTo, "plan reorderTo"),
|
|
962
|
+
options: ctx.options,
|
|
963
|
+
global: ctx.global,
|
|
964
|
+
});
|
|
965
|
+
}
|
|
966
|
+
function readMcpPlanStepRef(ctx) {
|
|
967
|
+
return typeof ctx.options.stepRef === "string"
|
|
968
|
+
? ctx.options.stepRef
|
|
969
|
+
: typeof ctx.args.stepRef === "string"
|
|
970
|
+
? ctx.args.stepRef
|
|
971
|
+
: undefined;
|
|
972
|
+
}
|
|
973
|
+
function createMcpSchemaContext(ctx) {
|
|
974
|
+
const subcommand = readString(ctx.args, "subcommand") ?? readRequiredString(ctx.options, "subcommand");
|
|
975
|
+
const aliasSource = ctx.args.alias ?? ctx.options.alias;
|
|
976
|
+
return {
|
|
977
|
+
ctx,
|
|
978
|
+
subcommand: subcommand.trim().toLowerCase(),
|
|
979
|
+
name: readString(ctx.args, "name") ?? readString(ctx.options, "name"),
|
|
980
|
+
author: readString(ctx.args, "author") ?? readString(ctx.options, "author"),
|
|
981
|
+
force: ctx.args.force === true || ctx.options.force === true,
|
|
982
|
+
aliases: aliasSource === undefined ? undefined : readStringArray(aliasSource),
|
|
983
|
+
};
|
|
984
|
+
}
|
|
985
|
+
function runMcpSchemaReadOrRemoveAction(schema) {
|
|
986
|
+
const { ctx, subcommand, name, author, force } = schema;
|
|
987
|
+
const simpleHandlers = {
|
|
988
|
+
list: () => runSchemaList(ctx.global),
|
|
989
|
+
show: () => runSchemaShow(name, ctx.global),
|
|
990
|
+
"show-status": () => runSchemaShowStatus(name, ctx.global),
|
|
991
|
+
"list-fields": () => runSchemaListFields(ctx.global),
|
|
992
|
+
"show-field": () => runSchemaShowField(name, ctx.global),
|
|
993
|
+
"remove-type": () => runSchemaRemoveType(name, { author, force }, ctx.global),
|
|
994
|
+
"remove-field": () => runSchemaRemoveField(name, { author, force }, ctx.global),
|
|
995
|
+
"remove-status": () => runSchemaRemoveStatus(name, { author, force }, ctx.global),
|
|
996
|
+
"apply-preset": () => runSchemaApplyPreset(readString(ctx.args, "typePreset") ?? readString(ctx.options, "typePreset"), { author, force }, ctx.global),
|
|
997
|
+
};
|
|
998
|
+
const handler = getOwnHandler(simpleHandlers, subcommand);
|
|
999
|
+
return handler ? handler() : null;
|
|
1000
|
+
}
|
|
1001
|
+
function runMcpSchemaAddFieldAction(schema) {
|
|
1002
|
+
const { ctx, name, author, force, aliases } = schema;
|
|
1003
|
+
const commandsSource = ctx.args.commands ?? ctx.options.commands;
|
|
1004
|
+
const requiredTypesSource = ctx.args.requiredTypes ?? ctx.options.requiredTypes;
|
|
1005
|
+
return runSchemaAddField(name, {
|
|
1006
|
+
type: readString(ctx.args, "fieldType") ?? readString(ctx.options, "fieldType"),
|
|
1007
|
+
commands: commandsSource === undefined ? undefined : readStringArray(commandsSource),
|
|
1008
|
+
description: readString(ctx.args, "description") ?? readString(ctx.options, "description"),
|
|
1009
|
+
cliFlag: readString(ctx.args, "cliFlag") ?? readString(ctx.options, "cliFlag"),
|
|
1010
|
+
alias: aliases,
|
|
1011
|
+
required: ctx.args.required === true || ctx.options.required === true,
|
|
1012
|
+
requiredOnCreate: ctx.args.requiredOnCreate === true || ctx.options.requiredOnCreate === true,
|
|
1013
|
+
allowUnset: !(ctx.args.allowUnset === false || ctx.options.allowUnset === false),
|
|
1014
|
+
requiredTypes: requiredTypesSource === undefined ? undefined : readStringArray(requiredTypesSource),
|
|
1015
|
+
author,
|
|
1016
|
+
force,
|
|
1017
|
+
}, ctx.global);
|
|
1018
|
+
}
|
|
1019
|
+
function runMcpSchemaAddStatusAction(schema) {
|
|
1020
|
+
const { ctx, name, author, force, aliases } = schema;
|
|
1021
|
+
const roleSource = ctx.args.role ?? ctx.options.role;
|
|
1022
|
+
return runSchemaAddStatus(name, {
|
|
1023
|
+
role: roleSource === undefined ? undefined : readStringArray(roleSource),
|
|
1024
|
+
alias: aliases,
|
|
1025
|
+
description: readString(ctx.args, "description") ?? readString(ctx.options, "description"),
|
|
1026
|
+
order: parseMcpInteger(ctx.args.order ?? ctx.options.order, "schema add-status order"),
|
|
1027
|
+
author,
|
|
1028
|
+
force,
|
|
1029
|
+
}, ctx.global);
|
|
1030
|
+
}
|
|
1031
|
+
function runMcpSchemaAddTypeAction(schema) {
|
|
1032
|
+
const { ctx, name, author, force, aliases } = schema;
|
|
1033
|
+
return runSchemaAddType(name, {
|
|
1034
|
+
description: readString(ctx.args, "description") ?? readString(ctx.options, "description"),
|
|
1035
|
+
defaultStatus: readString(ctx.args, "defaultStatus") ??
|
|
1036
|
+
readString(ctx.args, "default_status") ??
|
|
1037
|
+
readString(ctx.options, "defaultStatus") ??
|
|
1038
|
+
readString(ctx.options, "default_status"),
|
|
1039
|
+
folder: readString(ctx.args, "folder") ?? readString(ctx.options, "folder"),
|
|
1040
|
+
alias: aliases,
|
|
1041
|
+
author,
|
|
1042
|
+
force,
|
|
1043
|
+
}, ctx.global);
|
|
1044
|
+
}
|
|
1045
|
+
function runMcpSchemaAction(ctx) {
|
|
1046
|
+
const schema = createMcpSchemaContext(ctx);
|
|
1047
|
+
const simpleResult = runMcpSchemaReadOrRemoveAction(schema);
|
|
1048
|
+
if (simpleResult !== null) {
|
|
1049
|
+
return simpleResult;
|
|
1050
|
+
}
|
|
1051
|
+
if (schema.subcommand === "add-field") {
|
|
1052
|
+
return runMcpSchemaAddFieldAction(schema);
|
|
1053
|
+
}
|
|
1054
|
+
if (schema.subcommand === "add-status") {
|
|
1055
|
+
return runMcpSchemaAddStatusAction(schema);
|
|
1056
|
+
}
|
|
1057
|
+
if (schema.subcommand === "add-type") {
|
|
1058
|
+
if (ctx.args.infer === true || ctx.options.infer === true) {
|
|
1059
|
+
return runSchemaInferTypes({
|
|
1060
|
+
minCount: parseMcpInteger(ctx.args.minCount ?? ctx.options.minCount, "schema infer minCount"),
|
|
1061
|
+
apply: ctx.args.apply === true || ctx.options.apply === true,
|
|
1062
|
+
author: schema.author,
|
|
1063
|
+
force: schema.force,
|
|
1064
|
+
}, ctx.global);
|
|
1065
|
+
}
|
|
1066
|
+
return runMcpSchemaAddTypeAction(schema);
|
|
1067
|
+
}
|
|
1068
|
+
throw new PmCliError(`Unknown pm schema subcommand "${schema.subcommand}". Allowed: add-type, remove-type, add-status, remove-status, add-field, remove-field, list-fields, show-field, apply-preset, list, show, show-status`, 64);
|
|
1069
|
+
}
|
|
1070
|
+
function runMcpProfileAction(ctx) {
|
|
1071
|
+
const subcommand = readString(ctx.args, "subcommand") ?? readRequiredString(ctx.options, "subcommand");
|
|
1072
|
+
const normalizedSubcommand = subcommand.trim().toLowerCase();
|
|
1073
|
+
const profileName = readString(ctx.args, "name") ?? readString(ctx.options, "name");
|
|
1074
|
+
const handlers = {
|
|
1075
|
+
list: () => runProfileList(),
|
|
1076
|
+
show: () => runProfileShow(profileName),
|
|
1077
|
+
lint: () => runProfileLint(profileName),
|
|
1078
|
+
apply: () => runProfileApply(profileName, {
|
|
1079
|
+
dryRun: ctx.args.dryRun === true || ctx.options.dryRun === true,
|
|
1080
|
+
author: readString(ctx.args, "author") ?? readString(ctx.options, "author"),
|
|
1081
|
+
force: ctx.args.force === true || ctx.options.force === true,
|
|
1082
|
+
}, ctx.global),
|
|
1083
|
+
};
|
|
1084
|
+
const handler = getOwnHandler(handlers, normalizedSubcommand);
|
|
1085
|
+
if (!handler) {
|
|
1086
|
+
throw new PmCliError(`Unknown pm profile subcommand "${subcommand}". Allowed: list, show, apply, lint`, 64);
|
|
1087
|
+
}
|
|
1088
|
+
return handler();
|
|
1089
|
+
}
|
|
1090
|
+
function runMcpStatsAction(ctx) {
|
|
1091
|
+
return runStats(ctx.global, {
|
|
1092
|
+
storage: ctx.options.storage === true,
|
|
1093
|
+
metadataCoverage: ctx.options.metadataCoverage === true,
|
|
1094
|
+
fieldUtilization: ctx.options.fieldUtilization === true,
|
|
1095
|
+
byAssignee: ctx.options.byAssignee === true,
|
|
1096
|
+
byTag: ctx.options.byTag === true,
|
|
1097
|
+
byPriority: ctx.options.byPriority === true,
|
|
1098
|
+
tagPrefix: typeof ctx.options.tagPrefix === "string" ? ctx.options.tagPrefix : undefined,
|
|
1099
|
+
});
|
|
1100
|
+
}
|
|
1101
|
+
async function runMcpAppendAction(ctx) {
|
|
1102
|
+
const { changedFields, runnerOptions } = withMutationCompaction(ctx.args, ctx.options);
|
|
1103
|
+
return projectMutationResult(await runAppend(requireMcpItemId(ctx, runnerOptions), runnerOptions, ctx.global), {
|
|
1104
|
+
changedFields,
|
|
1105
|
+
});
|
|
1106
|
+
}
|
|
1107
|
+
async function runMcpUpdateManyAction(ctx) {
|
|
1108
|
+
const { changedFields, runnerOptions } = withMutationCompaction(ctx.args, ctx.options);
|
|
1109
|
+
return projectMutationResult(await runUpdateMany(updateManyOptionsFromFlat(runnerOptions), ctx.global), { changedFields });
|
|
1110
|
+
}
|
|
1111
|
+
async function runMcpCloseManyAction(ctx) {
|
|
1112
|
+
const { changedFields, runnerOptions } = withMutationCompaction(ctx.args, ctx.options);
|
|
1113
|
+
const topLevelReason = readString(ctx.args, "reason");
|
|
1114
|
+
const closeManyRunnerOptions = topLevelReason !== undefined && runnerOptions.reason === undefined
|
|
1115
|
+
? { ...runnerOptions, reason: topLevelReason }
|
|
1116
|
+
: { ...runnerOptions };
|
|
1117
|
+
if (ctx.force && closeManyRunnerOptions.force === undefined) {
|
|
1118
|
+
closeManyRunnerOptions.force = true;
|
|
1119
|
+
}
|
|
1120
|
+
return projectMutationResult(await runCloseMany(closeManyOptionsFromFlat(closeManyRunnerOptions), ctx.global), { changedFields });
|
|
1121
|
+
}
|
|
1122
|
+
async function runMcpRestoreAction(ctx) {
|
|
1123
|
+
return runRestore(requireMcpItemId(ctx), readRequiredString(ctx.options, "target"), ctx.options, ctx.global);
|
|
1124
|
+
}
|
|
1125
|
+
async function runMcpStartTaskAction(ctx) {
|
|
1126
|
+
const pmRoot = resolvePmRoot(process.cwd(), ctx.global.path);
|
|
1127
|
+
const settings = await readSettings(pmRoot);
|
|
1128
|
+
const inProgressStatus = resolveStartTaskInProgressStatus(resolveRuntimeStatusRegistry(settings.schema));
|
|
1129
|
+
const id = requireMcpItemId(ctx);
|
|
1130
|
+
const claimResult = await runClaim(id, ctx.force, ctx.global, ctx.options);
|
|
1131
|
+
const updateResult = await runUpdate(id, { ...ctx.options, status: inProgressStatus, force: ctx.force }, ctx.global);
|
|
1132
|
+
return { id, action: "start_task", claim: claimResult, update: updateResult };
|
|
1133
|
+
}
|
|
1134
|
+
async function runMcpPauseTaskAction(ctx) {
|
|
1135
|
+
const pmRoot = resolvePmRoot(process.cwd(), ctx.global.path);
|
|
1136
|
+
const settings = await readSettings(pmRoot);
|
|
1137
|
+
const id = requireMcpItemId(ctx);
|
|
1138
|
+
const openStatus = resolveRuntimeStatusRegistry(settings.schema).open_status;
|
|
1139
|
+
const updateResult = await runUpdate(id, { ...ctx.options, status: openStatus, force: ctx.force }, ctx.global);
|
|
1140
|
+
const releaseResult = await runRelease(id, ctx.force, ctx.global, ctx.options);
|
|
1141
|
+
return { id, action: "pause_task", update: updateResult, release: releaseResult };
|
|
1142
|
+
}
|
|
1143
|
+
async function runMcpCloseTaskAction(ctx) {
|
|
1144
|
+
const id = requireMcpItemId(ctx);
|
|
1145
|
+
const closeReason = readString(ctx.args, "reason") ??
|
|
1146
|
+
readString(ctx.args, "text") ??
|
|
1147
|
+
readString(ctx.options, "reason") ??
|
|
1148
|
+
readString(ctx.options, "text");
|
|
1149
|
+
const closeResult = await runClose(id, closeReason, { ...ctx.options, force: ctx.force }, ctx.global);
|
|
1150
|
+
const releaseResult = await runRelease(id, ctx.force, ctx.global, ctx.options);
|
|
1151
|
+
return { id, action: "close_task", close: closeResult, release: releaseResult };
|
|
1152
|
+
}
|
|
1153
|
+
const SDK_ACTION_HANDLERS = {
|
|
1154
|
+
init: (ctx) => runInit(readString(ctx.args, "prefix"), ctx.global, ctx.options),
|
|
1155
|
+
context: (ctx) => runContext(ctx.options, ctx.global),
|
|
1156
|
+
next: (ctx) => runNext(ctx.options, ctx.global),
|
|
1157
|
+
list: runMcpListAction,
|
|
1158
|
+
get: (ctx) => runGet(requireMcpItemId(ctx), ctx.global, ctx.options),
|
|
1159
|
+
search: runMcpSearchAction,
|
|
1160
|
+
create: runMcpCreateAction,
|
|
1161
|
+
copy: runMcpCopyAction,
|
|
1162
|
+
focus: (ctx) => runFocus(ctx.id, { clear: ctx.options.clear === true || ctx.args.clear === true }, ctx.global),
|
|
1163
|
+
update: runMcpUpdateAction,
|
|
1164
|
+
restore: runMcpRestoreAction,
|
|
1165
|
+
claim: (ctx) => runClaim(requireMcpItemId(ctx), ctx.force, ctx.global, ctx.options),
|
|
1166
|
+
release: (ctx) => runRelease(requireMcpItemId(ctx), ctx.force, ctx.global, ctx.options),
|
|
1167
|
+
"start-task": runMcpStartTaskAction,
|
|
1168
|
+
"pause-task": runMcpPauseTaskAction,
|
|
1169
|
+
"close-task": runMcpCloseTaskAction,
|
|
1170
|
+
close: runMcpCloseAction,
|
|
1171
|
+
comments: runMcpCommentsAction,
|
|
1172
|
+
notes: (ctx) => runNotes(requireMcpItemId(ctx), ctx.options, ctx.global),
|
|
1173
|
+
learnings: (ctx) => runLearnings(requireMcpItemId(ctx), ctx.options, ctx.global),
|
|
1174
|
+
files: runMcpFilesAction,
|
|
1175
|
+
docs: (ctx) => runDocs(requireMcpItemId(ctx), withAddNoteOption(ctx.options), ctx.global),
|
|
1176
|
+
test: (ctx) => runTest(requireMcpItemId(ctx), ctx.options, ctx.global),
|
|
1177
|
+
"test-all": (ctx) => runTestAll(ctx.options, ctx.global),
|
|
1178
|
+
telemetry: runMcpTelemetryAction,
|
|
1179
|
+
validate: (ctx) => runValidate(ctx.options, ctx.global),
|
|
1180
|
+
health: runMcpHealthAction,
|
|
1181
|
+
contracts: (ctx) => runContracts(ctx.options, ctx.global),
|
|
1182
|
+
config: runMcpConfigAction,
|
|
1183
|
+
activity: runMcpActivityAction,
|
|
1184
|
+
aggregate: (ctx) => runAggregate(ctx.options, ctx.global),
|
|
1185
|
+
extension: (ctx) => runExtension(readMcpTarget(ctx), ctx.options, ctx.global),
|
|
1186
|
+
package: (ctx) => runExtension(readMcpTarget(ctx), ctx.options, ctx.global),
|
|
1187
|
+
install: (ctx) => runExtension(readMcpTarget(ctx), { ...ctx.options, install: true }, ctx.global),
|
|
1188
|
+
upgrade: (ctx) => runUpgrade(readMcpTarget(ctx), ctx.options, ctx.global),
|
|
1189
|
+
delete: (ctx) => runDelete(requireMcpItemId(ctx), ctx.options, ctx.global),
|
|
1190
|
+
deps: (ctx) => runDeps(requireMcpItemId(ctx), ctx.options, ctx.global),
|
|
1191
|
+
"files-discover": (ctx) => runFilesDiscover(requireMcpItemId(ctx), ctx.options, ctx.global),
|
|
1192
|
+
history: (ctx) => runHistory(requireMcpItemId(ctx), ctx.options, ctx.global),
|
|
1193
|
+
"history-redact": (ctx) => runHistoryRedact(requireMcpItemId(ctx), ctx.options, ctx.global),
|
|
1194
|
+
"history-repair": runMcpHistoryRepairAction,
|
|
1195
|
+
"history-compact": (ctx) => runHistoryCompact(requireMcpItemId(ctx), ctx.options, ctx.global),
|
|
1196
|
+
plan: runMcpPlanAction,
|
|
1197
|
+
schema: runMcpSchemaAction,
|
|
1198
|
+
profile: runMcpProfileAction,
|
|
1199
|
+
stats: runMcpStatsAction,
|
|
1200
|
+
append: runMcpAppendAction,
|
|
1201
|
+
"update-many": runMcpUpdateManyAction,
|
|
1202
|
+
"close-many": runMcpCloseManyAction,
|
|
1203
|
+
gc: (ctx) => runGc(ctx.global, ctx.options),
|
|
1204
|
+
};
|
|
1205
|
+
async function dispatchAction(action, args, global, activeExtensions) {
|
|
1206
|
+
const options = optionsWithAuthor(args, action);
|
|
1207
|
+
const ctx = {
|
|
1208
|
+
action,
|
|
1209
|
+
args,
|
|
1210
|
+
options,
|
|
1211
|
+
id: readString(args, "id"),
|
|
1212
|
+
force: args.force === true || options.force === true,
|
|
1213
|
+
global,
|
|
1214
|
+
activeExtensions,
|
|
1215
|
+
};
|
|
1216
|
+
const handler = getOwnHandler(SDK_ACTION_HANDLERS, action);
|
|
1217
|
+
return handler ? handler(ctx) : dispatchActiveExtensionAction(action, args, options, global, activeExtensions);
|
|
1218
|
+
}
|
|
1219
|
+
const actionRunnerTestHooks = {
|
|
1220
|
+
closeManyOptionsFromFlat,
|
|
1221
|
+
extensionOptionsFromArgs,
|
|
1222
|
+
globalOptions,
|
|
1223
|
+
mutationListOptions,
|
|
1224
|
+
normalizeActionName,
|
|
1225
|
+
normalizeCommandPath,
|
|
1226
|
+
normalizeMcpUpdateOptions,
|
|
1227
|
+
normalizeMcpOptionsArrays,
|
|
1228
|
+
optionsWithAuthor,
|
|
1229
|
+
readRequiredString,
|
|
1230
|
+
readScalarString,
|
|
1231
|
+
readScalarStringAllowBlank,
|
|
1232
|
+
readStringArray,
|
|
1233
|
+
updateManyOptionsFromFlat,
|
|
1234
|
+
withAddNoteOption,
|
|
1235
|
+
withFilesDiscoveryOptions,
|
|
1236
|
+
withMutationCompaction,
|
|
1237
|
+
};
|
|
1238
|
+
if (process.env.NODE_ENV === "test" || process.env.VITEST !== undefined || process.env.VITEST_WORKER_ID !== undefined) {
|
|
1239
|
+
globalThis.__pmCliActionRunnerTestHooks = actionRunnerTestHooks;
|
|
1240
|
+
}
|
|
127
1241
|
async function loadWorkspaceExtensionRegistrations(pmRoot, settings, cwd) {
|
|
128
1242
|
const loadResult = await loadExtensions({
|
|
129
1243
|
pmRoot,
|
|
@@ -132,7 +1246,17 @@ async function loadWorkspaceExtensionRegistrations(pmRoot, settings, cwd) {
|
|
|
132
1246
|
noExtensions: false,
|
|
133
1247
|
});
|
|
134
1248
|
const activationResult = await activateExtensions(loadResult);
|
|
135
|
-
|
|
1249
|
+
try {
|
|
1250
|
+
return activationResult.registrations;
|
|
1251
|
+
}
|
|
1252
|
+
finally {
|
|
1253
|
+
try {
|
|
1254
|
+
await deactivateExtensions(loadResult, activationResult);
|
|
1255
|
+
}
|
|
1256
|
+
catch {
|
|
1257
|
+
// Workspace contract reads should stay best-effort even if teardown itself fails.
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
136
1260
|
}
|
|
137
1261
|
//# sourceMappingURL=runtime.js.map
|
|
138
|
-
//# debugId=
|
|
1262
|
+
//# debugId=86af7c43-06f8-5e32-87ee-676c070b7e71
|