@unbrained/pm-cli 2026.7.5 → 2026.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/cli-bundle/chunks/activity-WJCGCYPU.js +18 -0
- package/dist/cli-bundle/chunks/activity-Z6QUAUSG.js +22 -0
- package/dist/cli-bundle/chunks/aggregate-BDM6EIAR.js +25 -0
- package/dist/cli-bundle/chunks/aggregate-VQ2DHU3S.js +21 -0
- package/dist/cli-bundle/chunks/append-BGML6VLD.js +19 -0
- package/dist/cli-bundle/chunks/append-RKJYPU74.js +15 -0
- package/dist/cli-bundle/chunks/chunk-22KBU3MW.js +57 -0
- package/dist/cli-bundle/chunks/chunk-24YG75HI.js +634 -0
- package/dist/cli-bundle/chunks/chunk-2XG4IZON.js +218 -0
- package/dist/cli-bundle/chunks/chunk-3GCS5SKL.js +228 -0
- package/dist/cli-bundle/chunks/chunk-3KTN6IBA.js +2330 -0
- package/dist/cli-bundle/chunks/chunk-3N6RRO2Q.js +808 -0
- package/dist/cli-bundle/chunks/chunk-3N6RRO2Q.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-3UJRFJ5R.js +1573 -0
- package/dist/cli-bundle/chunks/chunk-3VHSI5FL.js +1001 -0
- package/dist/cli-bundle/chunks/chunk-425E4QL5.js +278 -0
- package/dist/cli-bundle/chunks/chunk-425E4QL5.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-45FYNUFJ.js +38 -0
- package/dist/cli-bundle/chunks/chunk-45FYNUFJ.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-46CUF5L6.js +1018 -0
- package/dist/cli-bundle/chunks/chunk-4CJFCTLM.js +222 -0
- package/dist/cli-bundle/chunks/chunk-4CJFCTLM.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-4HIFVN7N.js +249 -0
- package/dist/cli-bundle/chunks/chunk-4HIFVN7N.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-4IWYTWGF.js +819 -0
- package/dist/cli-bundle/chunks/chunk-4LELACOL.js +391 -0
- package/dist/cli-bundle/chunks/chunk-4LELACOL.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-4MZVRJOE.js +279 -0
- package/dist/cli-bundle/chunks/chunk-4MZVRJOE.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-4ZBE5GUN.js +184 -0
- package/dist/cli-bundle/chunks/chunk-4ZBE5GUN.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-57NWPFF2.js +5640 -0
- package/dist/cli-bundle/chunks/chunk-57NWPFF2.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-5AJXHQM7.js +268 -0
- package/dist/cli-bundle/chunks/chunk-5AJXHQM7.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-5BMM6XQY.js +508 -0
- package/dist/cli-bundle/chunks/chunk-5BMM6XQY.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-5GZ7TDD6.js +1868 -0
- package/dist/cli-bundle/chunks/chunk-5VAA4YHR.js +1749 -0
- package/dist/cli-bundle/chunks/chunk-64YKRTSV.js +1961 -0
- package/dist/cli-bundle/chunks/chunk-6LLVNJXT.js +429 -0
- package/dist/cli-bundle/chunks/chunk-6QBJLYBP.js +120 -0
- package/dist/cli-bundle/chunks/chunk-6QBJLYBP.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-7D7OOEYG.js +278 -0
- package/dist/cli-bundle/chunks/chunk-7D7OOEYG.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-7DT4WSH2.js +60 -0
- package/dist/cli-bundle/chunks/chunk-7WBAJSS6.js +102 -0
- package/dist/cli-bundle/chunks/chunk-AGHMOTGM.js +150 -0
- package/dist/cli-bundle/chunks/chunk-ALFPSEWO.js +112 -0
- package/dist/cli-bundle/chunks/chunk-AZYGZGGI.js +361 -0
- package/dist/cli-bundle/chunks/chunk-B6DUFX6H.js +1413 -0
- package/dist/cli-bundle/chunks/chunk-B6XS3R3O.js +275 -0
- package/dist/cli-bundle/chunks/chunk-B6XS3R3O.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-B7FRNMYN.js +421 -0
- package/dist/cli-bundle/chunks/chunk-B7FRNMYN.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-C5JBZRPU.js +1985 -0
- package/dist/cli-bundle/chunks/chunk-CFB33L7W.js +398 -0
- package/dist/cli-bundle/chunks/chunk-CFNGIXZP.js +784 -0
- package/dist/cli-bundle/chunks/chunk-CFNGIXZP.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-CL36D4PC.js +225 -0
- package/dist/cli-bundle/chunks/chunk-COSPOP7H.js +6677 -0
- package/dist/cli-bundle/chunks/chunk-COSPOP7H.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-COWTDV6B.js +3461 -0
- package/dist/cli-bundle/chunks/chunk-COWTDV6B.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-CRVYGJUI.js +553 -0
- package/dist/cli-bundle/chunks/chunk-CRVYGJUI.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-D2XRLB55.js +645 -0
- package/dist/cli-bundle/chunks/chunk-DEWEK6AN.js +1858 -0
- package/dist/cli-bundle/chunks/chunk-DMRNBQOI.js +1063 -0
- package/dist/cli-bundle/chunks/chunk-DMRNBQOI.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-E3SZTQ4K.js +1932 -0
- package/dist/cli-bundle/chunks/chunk-E42XTBSP.js +1359 -0
- package/dist/cli-bundle/chunks/chunk-E42XTBSP.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-EBRZZ54H.js +655 -0
- package/dist/cli-bundle/chunks/chunk-EBRZZ54H.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-EGAP5OWD.js +4712 -0
- package/dist/cli-bundle/chunks/chunk-EGAP5OWD.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-EGY6JBQ3.js +160 -0
- package/dist/cli-bundle/chunks/chunk-EKFNL33R.js +222 -0
- package/dist/cli-bundle/chunks/chunk-ENGQOEUY.js +1704 -0
- package/dist/cli-bundle/chunks/chunk-EOKXK3R3.js +2046 -0
- package/dist/cli-bundle/chunks/chunk-F3K4JGFD.js +121 -0
- package/dist/cli-bundle/chunks/chunk-FLZSGSQR.js +231 -0
- package/dist/cli-bundle/chunks/chunk-FOUYJE4A.js +2090 -0
- package/dist/cli-bundle/chunks/chunk-FOUYJE4A.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-FT3QTERD.js +550 -0
- package/dist/cli-bundle/chunks/chunk-G24G7ZAV.js +1570 -0
- package/dist/cli-bundle/chunks/chunk-G64OCSKU.js +444 -0
- package/dist/cli-bundle/chunks/chunk-GANUTS7W.js +1775 -0
- package/dist/cli-bundle/chunks/chunk-GBAX2ZAQ.js +401 -0
- package/dist/cli-bundle/chunks/chunk-GDDAGPWJ.js +105 -0
- package/dist/cli-bundle/chunks/chunk-GDDAGPWJ.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-GEYZ4G4O.js +239 -0
- package/dist/cli-bundle/chunks/chunk-GEYZ4G4O.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-GJ7QC5DJ.js +624 -0
- package/dist/cli-bundle/chunks/chunk-GPLPTGOV.js +530 -0
- package/dist/cli-bundle/chunks/chunk-GZRDYONU.js +1005 -0
- package/dist/cli-bundle/chunks/chunk-HFDADVJZ.js +1356 -0
- package/dist/cli-bundle/chunks/chunk-HFDADVJZ.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-HIHMT6WS.js +41 -0
- package/dist/cli-bundle/chunks/chunk-HIHMT6WS.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-HN6NSXNW.js +277 -0
- package/dist/cli-bundle/chunks/chunk-HN6NSXNW.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-HOVCGJSD.js +293 -0
- package/dist/cli-bundle/chunks/chunk-HOVCGJSD.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-I36Y7PCE.js +38 -0
- package/dist/cli-bundle/chunks/chunk-I36Y7PCE.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-IQNVQHOP.js +309 -0
- package/dist/cli-bundle/chunks/chunk-IQNVQHOP.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-IWVU4C2F.js +358 -0
- package/dist/cli-bundle/chunks/chunk-IX5BXEMX.js +267 -0
- package/dist/cli-bundle/chunks/chunk-JDDLOQAE.js +265 -0
- package/dist/cli-bundle/chunks/chunk-JJP45OEI.js +119 -0
- package/dist/cli-bundle/chunks/chunk-JQXPY7DN.js +2257 -0
- package/dist/cli-bundle/chunks/chunk-JQXPY7DN.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-JVH7QBVV.js +24 -0
- package/dist/cli-bundle/chunks/chunk-JVH7QBVV.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-K46RF36U.js +207 -0
- package/dist/cli-bundle/chunks/chunk-KERMZVY5.js +371 -0
- package/dist/cli-bundle/chunks/chunk-KERMZVY5.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-KGFUY7WN.js +814 -0
- package/dist/cli-bundle/chunks/chunk-KSRUHV2H.js +76 -0
- package/dist/cli-bundle/chunks/chunk-KSRUHV2H.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-KUOOJR35.js +260 -0
- package/dist/cli-bundle/chunks/chunk-L5PSPMZ4.js +277 -0
- package/dist/cli-bundle/chunks/chunk-LK6XLOGP.js +5799 -0
- package/dist/cli-bundle/chunks/chunk-LK6XLOGP.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-LP3HSFZ2.js +140 -0
- package/dist/cli-bundle/chunks/chunk-LP3HSFZ2.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-LPSSSDJR.js +1239 -0
- package/dist/cli-bundle/chunks/chunk-M7JNBQAD.js +225 -0
- package/dist/cli-bundle/chunks/chunk-M7JNBQAD.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-MA4SM3QZ.js +655 -0
- package/dist/cli-bundle/chunks/chunk-MAWDPCJW.js +1601 -0
- package/dist/cli-bundle/chunks/chunk-MAWDPCJW.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-MFAZSEM5.js +1031 -0
- package/dist/cli-bundle/chunks/chunk-MFSCBT5Q.js +995 -0
- package/dist/cli-bundle/chunks/chunk-ML5X7DP2.js +296 -0
- package/dist/cli-bundle/chunks/chunk-ML5X7DP2.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-MLIYFOE7.js +357 -0
- package/dist/cli-bundle/chunks/chunk-MR6FJ7LL.js +2043 -0
- package/dist/cli-bundle/chunks/chunk-MR6FJ7LL.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-MUH7A3FD.js +61 -0
- package/dist/cli-bundle/chunks/chunk-MVSP7WGJ.js +108 -0
- package/dist/cli-bundle/chunks/chunk-MVSP7WGJ.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-MVYWGY2A.js +262 -0
- package/dist/cli-bundle/chunks/chunk-MWMVPCIE.js +1423 -0
- package/dist/cli-bundle/chunks/chunk-MXYA5SAJ.js +2033 -0
- package/dist/cli-bundle/chunks/chunk-MXYA5SAJ.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-N745W3B3.js +1604 -0
- package/dist/cli-bundle/chunks/chunk-N745W3B3.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-NB7RLQFW.js +57 -0
- package/dist/cli-bundle/chunks/chunk-NB7RLQFW.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-NC33K5ZS.js +123 -0
- package/dist/cli-bundle/chunks/chunk-NC33K5ZS.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-NGXQ3PFT.js +263 -0
- package/dist/cli-bundle/chunks/chunk-NMP5I3I5.js +1615 -0
- package/dist/cli-bundle/chunks/chunk-NO442GWJ.js +41 -0
- package/dist/cli-bundle/chunks/chunk-NO442GWJ.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-NZEHECMW.js +658 -0
- package/dist/cli-bundle/chunks/chunk-NZEHECMW.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-O6AWCQRQ.js +124 -0
- package/dist/cli-bundle/chunks/chunk-OGWQ2IEP.js +240 -0
- package/dist/cli-bundle/chunks/chunk-PZUGEOPS.js +143 -0
- package/dist/cli-bundle/chunks/chunk-PZUGEOPS.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-QLMX7SRD.js +210 -0
- package/dist/cli-bundle/chunks/chunk-QX6HM775.js +398 -0
- package/dist/cli-bundle/chunks/chunk-QX6HM775.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-R5BMJX33.js +27 -0
- package/dist/cli-bundle/chunks/chunk-R5BMJX33.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-RCQZK2GO.js +296 -0
- package/dist/cli-bundle/chunks/chunk-RCQZK2GO.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-RFNYTESG.js +520 -0
- package/dist/cli-bundle/chunks/chunk-RKQOO2UM.js +79 -0
- package/dist/cli-bundle/chunks/chunk-RKQOO2UM.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-RQLT6ZWB.js +282 -0
- package/dist/cli-bundle/chunks/chunk-RQLT6ZWB.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-S3JS6YVZ.js +274 -0
- package/dist/cli-bundle/chunks/chunk-S3JS6YVZ.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-SCUR7K7N.js +2198 -0
- package/dist/cli-bundle/chunks/chunk-SGMFPXKR.js +68 -0
- package/dist/cli-bundle/chunks/chunk-SGMFPXKR.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-SHQY2IDC.js +1977 -0
- package/dist/cli-bundle/chunks/chunk-SMB7RV23.js +130 -0
- package/dist/cli-bundle/chunks/chunk-SPZ6DOGY.js +1041 -0
- package/dist/cli-bundle/chunks/chunk-SQOIV3OQ.js +563 -0
- package/dist/cli-bundle/chunks/chunk-SQOIV3OQ.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-SQYJ4HF2.js +1765 -0
- package/dist/cli-bundle/chunks/chunk-T42JWV3F.js +822 -0
- package/dist/cli-bundle/chunks/chunk-TKD5VCTD.js +6567 -0
- package/dist/cli-bundle/chunks/chunk-TKD5VCTD.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-TULGS6X6.js +2132 -0
- package/dist/cli-bundle/chunks/chunk-TZXRBVAM.js +2306 -0
- package/dist/cli-bundle/chunks/chunk-UH7T2DAX.js +181 -0
- package/dist/cli-bundle/chunks/chunk-UH7T2DAX.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-VIIUS6N6.js +4773 -0
- package/dist/cli-bundle/chunks/chunk-VIIUS6N6.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-VPIM42PC.js +367 -0
- package/dist/cli-bundle/chunks/chunk-VQRSPVME.js +368 -0
- package/dist/cli-bundle/chunks/chunk-VQRSPVME.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-W3DSJQIO.js +447 -0
- package/dist/cli-bundle/chunks/chunk-W572BIEB.js +1249 -0
- package/dist/cli-bundle/chunks/chunk-W6DYWXPQ.js +1073 -0
- package/dist/cli-bundle/chunks/chunk-W6DYWXPQ.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-WG34ZNQQ.js +3423 -0
- package/dist/cli-bundle/chunks/chunk-WG34ZNQQ.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-WLSM645P.js +2247 -0
- package/dist/cli-bundle/chunks/chunk-WLSM645P.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-WRTENIX3.js +215 -0
- package/dist/cli-bundle/chunks/chunk-WSBLYDWV.js +388 -0
- package/dist/cli-bundle/chunks/chunk-WSBLYDWV.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-XB7KFVFI.js +533 -0
- package/dist/cli-bundle/chunks/chunk-XC5BURG2.js +306 -0
- package/dist/cli-bundle/chunks/chunk-XC5BURG2.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-XDB7RWQT.js +424 -0
- package/dist/cli-bundle/chunks/chunk-XDB7RWQT.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-XG625QP4.js +58 -0
- package/dist/cli-bundle/chunks/chunk-XHET7YUZ.js +71 -0
- package/dist/cli-bundle/chunks/chunk-XHET7YUZ.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-XUC7PI2H.js +243 -0
- package/dist/cli-bundle/chunks/chunk-Y46GD4IX.js +116 -0
- package/dist/cli-bundle/chunks/chunk-Y4M7CPQP.js +804 -0
- package/dist/cli-bundle/chunks/chunk-Y6BK55A3.js +2128 -0
- package/dist/cli-bundle/chunks/chunk-Y6BK55A3.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-YN7Y6DQZ.js +426 -0
- package/dist/cli-bundle/chunks/chunk-Z3U3U5KD.js +511 -0
- package/dist/cli-bundle/chunks/chunk-Z3U3U5KD.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-ZGK4L4JM.js +133 -0
- package/dist/cli-bundle/chunks/chunk-ZJ262CED.js +394 -0
- package/dist/cli-bundle/chunks/chunk-ZJ262CED.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-ZO3XKAOP.js +299 -0
- package/dist/cli-bundle/chunks/chunk-ZO3XKAOP.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-ZSUS2OD3.js +2105 -0
- package/dist/cli-bundle/chunks/chunk-ZWBEPGD7.js +54 -0
- package/dist/cli-bundle/chunks/chunk-ZWBEPGD7.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-ZZD4J5XY.js +1570 -0
- package/dist/cli-bundle/chunks/claim-RFS7BROJ.js +19 -0
- package/dist/cli-bundle/chunks/claim-XP5AWZ5H.js +23 -0
- package/dist/cli-bundle/chunks/close-2SSSHHUZ.js +20 -0
- package/dist/cli-bundle/chunks/close-GEANHQ2J.js +16 -0
- package/dist/cli-bundle/chunks/close-many-CMZW7ITN.js +31 -0
- package/dist/cli-bundle/chunks/close-many-ZFDIG6M7.js +27 -0
- package/dist/cli-bundle/chunks/comments-MFSYVNNU.js +21 -0
- package/dist/cli-bundle/chunks/comments-XUBPXDYX.js +17 -0
- package/dist/cli-bundle/chunks/config-D7XQMONX.js +18 -0
- package/dist/cli-bundle/chunks/config-T4FHBSYN.js +22 -0
- package/dist/cli-bundle/chunks/context-DIU275XI.js +48 -0
- package/dist/cli-bundle/chunks/context-JCOYB4LZ.js +44 -0
- package/dist/cli-bundle/chunks/contracts-BVO7CSLK.js +12 -0
- package/dist/cli-bundle/chunks/contracts-NYPEW2G4.js +16 -0
- package/dist/cli-bundle/chunks/copy-32ROBIDL.js +17 -0
- package/dist/cli-bundle/chunks/copy-NAGLGMHZ.js +13 -0
- package/dist/cli-bundle/chunks/create-4V7SWNBB.js +30 -0
- package/dist/cli-bundle/chunks/create-E77SDCUP.js +34 -0
- package/dist/cli-bundle/chunks/delete-NQI5OSKN.js +14 -0
- package/dist/cli-bundle/chunks/delete-RA5KTCLB.js +18 -0
- package/dist/cli-bundle/chunks/deps-32SU7HO5.js +21 -0
- package/dist/cli-bundle/chunks/deps-T7SCWXEX.js +17 -0
- package/dist/cli-bundle/chunks/docs-RRUPT7O2.js +22 -0
- package/dist/cli-bundle/chunks/docs-WL2IWGWV.js +18 -0
- package/dist/cli-bundle/chunks/eval-NF2J5SHR.js +23 -0
- package/dist/cli-bundle/chunks/eval-SKDT3MZU.js +27 -0
- package/dist/cli-bundle/chunks/extension-LAXKCAYE.js +42 -0
- package/dist/cli-bundle/chunks/extension-LAXKCAYE.js.map +1 -0
- package/dist/cli-bundle/chunks/extension-ZISPBRBC.js +38 -0
- package/dist/cli-bundle/chunks/extension-ZISPBRBC.js.map +7 -0
- package/dist/cli-bundle/chunks/files-EWRQHGIS.js +22 -0
- package/dist/cli-bundle/chunks/files-EWRQHGIS.js.map +7 -0
- package/dist/cli-bundle/chunks/files-PYKR2UUG.js +26 -0
- package/dist/cli-bundle/chunks/files-PYKR2UUG.js.map +1 -0
- package/dist/cli-bundle/chunks/focus-4T7TM4MT.js +18 -0
- package/dist/cli-bundle/chunks/focus-4T7TM4MT.js.map +1 -0
- package/dist/cli-bundle/chunks/focus-L3YUASOD.js +14 -0
- package/dist/cli-bundle/chunks/focus-L3YUASOD.js.map +7 -0
- package/dist/cli-bundle/chunks/gc-2DNMPXMC.js +16 -0
- package/dist/cli-bundle/chunks/gc-2DNMPXMC.js.map +1 -0
- package/dist/cli-bundle/chunks/gc-2PCTYYRI.js +12 -0
- package/dist/cli-bundle/chunks/gc-2PCTYYRI.js.map +7 -0
- package/dist/cli-bundle/chunks/get-7DMITJ3G.js +23 -0
- package/dist/cli-bundle/chunks/get-7DMITJ3G.js.map +1 -0
- package/dist/cli-bundle/chunks/get-VKQXCXLL.js +19 -0
- package/dist/cli-bundle/chunks/get-VKQXCXLL.js.map +7 -0
- package/dist/cli-bundle/chunks/health-CVSTAR2F.js +31 -0
- package/dist/cli-bundle/chunks/health-CVSTAR2F.js.map +7 -0
- package/dist/cli-bundle/chunks/health-TV3GKTFN.js +35 -0
- package/dist/cli-bundle/chunks/health-TV3GKTFN.js.map +1 -0
- package/dist/cli-bundle/chunks/history-D4JUX5XV.js +20 -0
- package/dist/cli-bundle/chunks/history-D4JUX5XV.js.map +7 -0
- package/dist/cli-bundle/chunks/history-LQ2UWZTE.js +24 -0
- package/dist/cli-bundle/chunks/history-LQ2UWZTE.js.map +1 -0
- package/dist/cli-bundle/chunks/history-compact-3MNXLKAT.js +29 -0
- package/dist/cli-bundle/chunks/history-compact-3MNXLKAT.js.map +1 -0
- package/dist/cli-bundle/chunks/history-compact-QWEO32FP.js +25 -0
- package/dist/cli-bundle/chunks/history-compact-QWEO32FP.js.map +7 -0
- package/dist/cli-bundle/chunks/history-redact-3OIVBVIY.js +21 -0
- package/dist/cli-bundle/chunks/history-redact-3OIVBVIY.js.map +7 -0
- package/dist/cli-bundle/chunks/history-redact-P6DYF55G.js +25 -0
- package/dist/cli-bundle/chunks/history-redact-P6DYF55G.js.map +1 -0
- package/dist/cli-bundle/chunks/history-repair-I3E73UGQ.js +23 -0
- package/dist/cli-bundle/chunks/history-repair-I3E73UGQ.js.map +7 -0
- package/dist/cli-bundle/chunks/history-repair-ZJQFMWPD.js +27 -0
- package/dist/cli-bundle/chunks/history-repair-ZJQFMWPD.js.map +1 -0
- package/dist/cli-bundle/chunks/init-C3LJPWQZ.js +30 -0
- package/dist/cli-bundle/chunks/init-C3LJPWQZ.js.map +1 -0
- package/dist/cli-bundle/chunks/init-J3DPGWQI.js +26 -0
- package/dist/cli-bundle/chunks/init-J3DPGWQI.js.map +7 -0
- package/dist/cli-bundle/chunks/learnings-5BO2SNDW.js +21 -0
- package/dist/cli-bundle/chunks/learnings-5BO2SNDW.js.map +1 -0
- package/dist/cli-bundle/chunks/learnings-OGP4JB4I.js +17 -0
- package/dist/cli-bundle/chunks/learnings-OGP4JB4I.js.map +7 -0
- package/dist/cli-bundle/chunks/list-O5NZVSPN.js +36 -0
- package/dist/cli-bundle/chunks/list-O5NZVSPN.js.map +1 -0
- package/dist/cli-bundle/chunks/list-Z55YCNTC.js +32 -0
- package/dist/cli-bundle/chunks/list-Z55YCNTC.js.map +7 -0
- package/dist/cli-bundle/chunks/next-GBNTGXFC.js +28 -0
- package/dist/cli-bundle/chunks/next-GBNTGXFC.js.map +7 -0
- package/dist/cli-bundle/chunks/next-QKW7PTKE.js +32 -0
- package/dist/cli-bundle/chunks/next-QKW7PTKE.js.map +1 -0
- package/dist/cli-bundle/chunks/notes-R5FZTKWF.js +17 -0
- package/dist/cli-bundle/chunks/notes-R5FZTKWF.js.map +7 -0
- package/dist/cli-bundle/chunks/notes-WCGIULVG.js +21 -0
- package/dist/cli-bundle/chunks/notes-WCGIULVG.js.map +1 -0
- package/dist/cli-bundle/chunks/plan-ADISFYH4.js +29 -0
- package/dist/cli-bundle/chunks/plan-ADISFYH4.js.map +7 -0
- package/dist/cli-bundle/chunks/plan-CHVE7PBR.js +33 -0
- package/dist/cli-bundle/chunks/plan-CHVE7PBR.js.map +1 -0
- package/dist/cli-bundle/chunks/profile-LD23PSI6.js +37 -0
- package/dist/cli-bundle/chunks/profile-LD23PSI6.js.map +7 -0
- package/dist/cli-bundle/chunks/profile-ZXGSKBJD.js +41 -0
- package/dist/cli-bundle/chunks/profile-ZXGSKBJD.js.map +1 -0
- package/dist/cli-bundle/chunks/register-list-query-B42JCCOI.js +409 -0
- package/dist/cli-bundle/chunks/register-list-query-OEYQHFXO.js +419 -0
- package/dist/cli-bundle/chunks/register-mutation-3QXIHCQG.js +1273 -0
- package/dist/cli-bundle/chunks/register-mutation-IAEST26S.js +1256 -0
- package/dist/cli-bundle/chunks/register-operations-I3M3U7DS.js +19 -0
- package/dist/cli-bundle/chunks/register-operations-I3M3U7DS.js.map +7 -0
- package/dist/cli-bundle/chunks/register-operations-UHKENLZV.js +23 -0
- package/dist/cli-bundle/chunks/register-operations-UHKENLZV.js.map +1 -0
- package/dist/cli-bundle/chunks/register-setup-3ZVVX2VN.js +324 -0
- package/dist/cli-bundle/chunks/register-setup-3ZVVX2VN.js.map +7 -0
- package/dist/cli-bundle/chunks/register-setup-Q6KFNIOZ.js +321 -0
- package/dist/cli-bundle/chunks/register-setup-Q6KFNIOZ.js.map +1 -0
- package/dist/cli-bundle/chunks/restore-5RQHAPMA.js +23 -0
- package/dist/cli-bundle/chunks/restore-5RQHAPMA.js.map +1 -0
- package/dist/cli-bundle/chunks/restore-PNEIBBLW.js +19 -0
- package/dist/cli-bundle/chunks/restore-PNEIBBLW.js.map +7 -0
- package/dist/cli-bundle/chunks/scheduling-shortcuts-4G56YHVQ.js +29 -0
- package/dist/cli-bundle/chunks/scheduling-shortcuts-4G56YHVQ.js.map +1 -0
- package/dist/cli-bundle/chunks/scheduling-shortcuts-75DULBYP.js +25 -0
- package/dist/cli-bundle/chunks/scheduling-shortcuts-75DULBYP.js.map +7 -0
- package/dist/cli-bundle/chunks/schema-245WW4G2.js +78 -0
- package/dist/cli-bundle/chunks/schema-245WW4G2.js.map +1 -0
- package/dist/cli-bundle/chunks/schema-HBORFC6B.js +74 -0
- package/dist/cli-bundle/chunks/schema-HBORFC6B.js.map +7 -0
- package/dist/cli-bundle/chunks/search-AOZC5SIK.js +34 -0
- package/dist/cli-bundle/chunks/search-AOZC5SIK.js.map +7 -0
- package/dist/cli-bundle/chunks/search-DRXPGHD7.js +38 -0
- package/dist/cli-bundle/chunks/search-DRXPGHD7.js.map +1 -0
- package/dist/cli-bundle/chunks/stats-NJG4NLHG.js +21 -0
- package/dist/cli-bundle/chunks/stats-NJG4NLHG.js.map +1 -0
- package/dist/cli-bundle/chunks/stats-RG6AG4N2.js +17 -0
- package/dist/cli-bundle/chunks/stats-RG6AG4N2.js.map +7 -0
- package/dist/cli-bundle/chunks/telemetry-HQC2JJIF.js +14 -0
- package/dist/cli-bundle/chunks/telemetry-HQC2JJIF.js.map +7 -0
- package/dist/cli-bundle/chunks/telemetry-MPNL3HHY.js +18 -0
- package/dist/cli-bundle/chunks/telemetry-MPNL3HHY.js.map +1 -0
- package/dist/cli-bundle/chunks/test-6CMOCWUC.js +39 -0
- package/dist/cli-bundle/chunks/test-6CMOCWUC.js.map +7 -0
- package/dist/cli-bundle/chunks/test-RI7XHBZL.js +43 -0
- package/dist/cli-bundle/chunks/test-RI7XHBZL.js.map +1 -0
- package/dist/cli-bundle/chunks/test-all-7R7YRZIA.js +29 -0
- package/dist/cli-bundle/chunks/test-all-7R7YRZIA.js.map +7 -0
- package/dist/cli-bundle/chunks/test-all-QEIORFYW.js +33 -0
- package/dist/cli-bundle/chunks/test-all-QEIORFYW.js.map +1 -0
- package/dist/cli-bundle/chunks/test-runs-5Y2BOU2S.js +28 -0
- package/dist/cli-bundle/chunks/test-runs-5Y2BOU2S.js.map +1 -0
- package/dist/cli-bundle/chunks/test-runs-PVGC3GRZ.js +24 -0
- package/dist/cli-bundle/chunks/test-runs-PVGC3GRZ.js.map +7 -0
- package/dist/cli-bundle/chunks/update-QVJDFEAP.js +30 -0
- package/dist/cli-bundle/chunks/update-QVJDFEAP.js.map +1 -0
- package/dist/cli-bundle/chunks/update-VQVHAY6X.js +26 -0
- package/dist/cli-bundle/chunks/update-VQVHAY6X.js.map +7 -0
- package/dist/cli-bundle/chunks/update-many-S7XWBSB3.js +37 -0
- package/dist/cli-bundle/chunks/update-many-S7XWBSB3.js.map +7 -0
- package/dist/cli-bundle/chunks/update-many-YIYW6XQ6.js +41 -0
- package/dist/cli-bundle/chunks/update-many-YIYW6XQ6.js.map +1 -0
- package/dist/cli-bundle/chunks/upgrade-OPRXA56R.js +24 -0
- package/dist/cli-bundle/chunks/upgrade-OPRXA56R.js.map +7 -0
- package/dist/cli-bundle/chunks/upgrade-WH4BTQLX.js +28 -0
- package/dist/cli-bundle/chunks/upgrade-WH4BTQLX.js.map +1 -0
- package/dist/cli-bundle/chunks/validate-4NTXSB62.js +36 -0
- package/dist/cli-bundle/chunks/validate-4NTXSB62.js.map +1 -0
- package/dist/cli-bundle/chunks/validate-MUFXQZMI.js +32 -0
- package/dist/cli-bundle/chunks/validate-MUFXQZMI.js.map +7 -0
- package/dist/cli-bundle/main.js +16 -16
- package/dist/cli-bundle/sdk-runtime.js +88 -28
- package/dist/cli-bundle/sdk-testing.js +6 -6
- package/dist/cli-bundle/sdk.js +92 -49
- package/dist/cli-bundle/sdk.js.map +2 -2
- package/dist/mcp/server.d.ts +22 -50
- package/dist/mcp/server.js +62 -916
- package/dist/mcp/server.js.map +1 -1
- package/dist/sdk/index.d.ts +4 -2
- package/dist/sdk/index.js +4 -4
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/runtime.d.ts +168 -4
- package/dist/sdk/runtime.js +1149 -25
- package/dist/sdk/runtime.js.map +1 -1
- package/dist/sdk/workspace-contracts-cache.d.ts +17 -0
- package/dist/sdk/workspace-contracts-cache.js +36 -0
- package/dist/sdk/workspace-contracts-cache.js.map +1 -0
- package/docs/RELEASING.md +3 -1
- package/docs/SDK.md +46 -0
- package/docs/examples/sdk-app-embedding/run-embedded-pm.mjs +16 -2
- package/docs/examples/sdk-contract-consumer/inspect-contracts.mjs +16 -1
- package/package.json +1 -1
- package/dist/cli-bundle/chunks/activity-4XQIDNM5.js +0 -18
- package/dist/cli-bundle/chunks/activity-YKAKZTZ4.js +0 -22
- package/dist/cli-bundle/chunks/aggregate-EQX2RGB7.js +0 -375
- package/dist/cli-bundle/chunks/aggregate-EQX2RGB7.js.map +0 -7
- package/dist/cli-bundle/chunks/aggregate-PEGZGJXD.js +0 -372
- package/dist/cli-bundle/chunks/aggregate-PEGZGJXD.js.map +0 -1
- package/dist/cli-bundle/chunks/append-CZGUZ45Q.js +0 -73
- package/dist/cli-bundle/chunks/append-CZGUZ45Q.js.map +0 -7
- package/dist/cli-bundle/chunks/append-NSQBCXZJ.js +0 -70
- package/dist/cli-bundle/chunks/append-NSQBCXZJ.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-3JZNEQBA.js +0 -1413
- package/dist/cli-bundle/chunks/chunk-3PL6LEKP.js +0 -1961
- package/dist/cli-bundle/chunks/chunk-3U3VEWK6.js +0 -1749
- package/dist/cli-bundle/chunks/chunk-3Y4OESPP.js +0 -277
- package/dist/cli-bundle/chunks/chunk-4LRVSBO6.js +0 -822
- package/dist/cli-bundle/chunks/chunk-4OFLJHX6.js +0 -356
- package/dist/cli-bundle/chunks/chunk-4QQ6PM7M.js +0 -1249
- package/dist/cli-bundle/chunks/chunk-53BTLLAF.js +0 -2181
- package/dist/cli-bundle/chunks/chunk-53BTLLAF.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-57C2RLW5.js +0 -1704
- package/dist/cli-bundle/chunks/chunk-5B3X4Y22.js +0 -2330
- package/dist/cli-bundle/chunks/chunk-5J2XPTAD.js +0 -225
- package/dist/cli-bundle/chunks/chunk-5JE6SMYS.js +0 -262
- package/dist/cli-bundle/chunks/chunk-5JZ7APJU.js +0 -995
- package/dist/cli-bundle/chunks/chunk-5VVUKE3U.js +0 -5789
- package/dist/cli-bundle/chunks/chunk-5VVUKE3U.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-75U6M5ZD.js +0 -819
- package/dist/cli-bundle/chunks/chunk-7EQNAZX2.js +0 -1018
- package/dist/cli-bundle/chunks/chunk-7MDXZAZS.js +0 -102
- package/dist/cli-bundle/chunks/chunk-7QH7DHUB.js +0 -2046
- package/dist/cli-bundle/chunks/chunk-7WYXBPYQ.js +0 -358
- package/dist/cli-bundle/chunks/chunk-AAEQMOC6.js +0 -150
- package/dist/cli-bundle/chunks/chunk-ABRA3BHY.js +0 -429
- package/dist/cli-bundle/chunks/chunk-BFVHCAOO.js +0 -240
- package/dist/cli-bundle/chunks/chunk-BVEUCSH2.js +0 -530
- package/dist/cli-bundle/chunks/chunk-C3PMDWGX.js +0 -160
- package/dist/cli-bundle/chunks/chunk-D3UCE7RW.js +0 -243
- package/dist/cli-bundle/chunks/chunk-DC3QJQWI.js +0 -275
- package/dist/cli-bundle/chunks/chunk-DC3QJQWI.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-DLQ4ZTCU.js +0 -634
- package/dist/cli-bundle/chunks/chunk-DRBV5UC2.js +0 -231
- package/dist/cli-bundle/chunks/chunk-E2FUG6GD.js +0 -2184
- package/dist/cli-bundle/chunks/chunk-E2FUG6GD.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-EEY54JMF.js +0 -60
- package/dist/cli-bundle/chunks/chunk-EZFKWSC7.js +0 -1615
- package/dist/cli-bundle/chunks/chunk-FDBARR33.js +0 -655
- package/dist/cli-bundle/chunks/chunk-FGQKEDE4.js +0 -447
- package/dist/cli-bundle/chunks/chunk-FJRKQREY.js +0 -228
- package/dist/cli-bundle/chunks/chunk-FUM6UMY4.js +0 -804
- package/dist/cli-bundle/chunks/chunk-GIWXVMZ3.js +0 -3237
- package/dist/cli-bundle/chunks/chunk-GIWXVMZ3.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-HBYZDSK5.js +0 -426
- package/dist/cli-bundle/chunks/chunk-HJE4JTKQ.js +0 -124
- package/dist/cli-bundle/chunks/chunk-HK72NWAD.js +0 -1570
- package/dist/cli-bundle/chunks/chunk-IJ6CO3JV.js +0 -645
- package/dist/cli-bundle/chunks/chunk-JFCVQXZX.js +0 -3206
- package/dist/cli-bundle/chunks/chunk-JFCVQXZX.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-JLA7EVYV.js +0 -222
- package/dist/cli-bundle/chunks/chunk-K32L7HZO.js +0 -76
- package/dist/cli-bundle/chunks/chunk-K32L7HZO.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-K3AGVXSF.js +0 -444
- package/dist/cli-bundle/chunks/chunk-KDZ6K25I.js +0 -79
- package/dist/cli-bundle/chunks/chunk-KDZ6K25I.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-KL22PY6L.js +0 -915
- package/dist/cli-bundle/chunks/chunk-KL22PY6L.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-KLG4ZULO.js +0 -218
- package/dist/cli-bundle/chunks/chunk-LEKT4K7I.js +0 -2105
- package/dist/cli-bundle/chunks/chunk-MNZ7DRNC.js +0 -1858
- package/dist/cli-bundle/chunks/chunk-MTTXDAK4.js +0 -2198
- package/dist/cli-bundle/chunks/chunk-MZ7VNEVY.js +0 -520
- package/dist/cli-bundle/chunks/chunk-N6DNM2FA.js +0 -116
- package/dist/cli-bundle/chunks/chunk-N7X4WP6L.js +0 -1041
- package/dist/cli-bundle/chunks/chunk-NBFCNJ7Q.js +0 -2132
- package/dist/cli-bundle/chunks/chunk-NER3KUUS.js +0 -260
- package/dist/cli-bundle/chunks/chunk-OBA2WH65.js +0 -918
- package/dist/cli-bundle/chunks/chunk-OBA2WH65.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-OESSOFJ4.js +0 -1985
- package/dist/cli-bundle/chunks/chunk-OK5NXCZB.js +0 -238
- package/dist/cli-bundle/chunks/chunk-OK5NXCZB.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-OWTIRHX4.js +0 -112
- package/dist/cli-bundle/chunks/chunk-P3VRG72Q.js +0 -1765
- package/dist/cli-bundle/chunks/chunk-P5TFTLWW.js +0 -1423
- package/dist/cli-bundle/chunks/chunk-P5YORJRH.js +0 -1977
- package/dist/cli-bundle/chunks/chunk-PDXT6Q55.js +0 -58
- package/dist/cli-bundle/chunks/chunk-PJ3A56YF.js +0 -1239
- package/dist/cli-bundle/chunks/chunk-PPAJG4GB.js +0 -1031
- package/dist/cli-bundle/chunks/chunk-PPE4YUQM.js +0 -4725
- package/dist/cli-bundle/chunks/chunk-PPE4YUQM.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-QHZO65XW.js +0 -1775
- package/dist/cli-bundle/chunks/chunk-R3ZBLGTC.js +0 -814
- package/dist/cli-bundle/chunks/chunk-RCT3YJOK.js +0 -624
- package/dist/cli-bundle/chunks/chunk-RX3HQSYG.js +0 -265
- package/dist/cli-bundle/chunks/chunk-S4APD35C.js +0 -210
- package/dist/cli-bundle/chunks/chunk-S5AYOUT5.js +0 -130
- package/dist/cli-bundle/chunks/chunk-STPSZ2XY.js +0 -1149
- package/dist/cli-bundle/chunks/chunk-STPSZ2XY.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-T35XLYZF.js +0 -263
- package/dist/cli-bundle/chunks/chunk-T3ABIMGW.js +0 -361
- package/dist/cli-bundle/chunks/chunk-T3F4DF23.js +0 -267
- package/dist/cli-bundle/chunks/chunk-T4MX77AK.js +0 -272
- package/dist/cli-bundle/chunks/chunk-T4MX77AK.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-T5Y3QSNF.js +0 -5354
- package/dist/cli-bundle/chunks/chunk-T5Y3QSNF.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-TSPKZRRW.js +0 -1570
- package/dist/cli-bundle/chunks/chunk-TT42JUMF.js +0 -207
- package/dist/cli-bundle/chunks/chunk-UHKX7I75.js +0 -165
- package/dist/cli-bundle/chunks/chunk-UHKX7I75.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-UI5BJ6DO.js +0 -4786
- package/dist/cli-bundle/chunks/chunk-UI5BJ6DO.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-US3T3W5J.js +0 -1932
- package/dist/cli-bundle/chunks/chunk-UZRDBL6W.js +0 -175
- package/dist/cli-bundle/chunks/chunk-UZRDBL6W.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-VZIYHZDX.js +0 -1868
- package/dist/cli-bundle/chunks/chunk-WISPVC2E.js +0 -401
- package/dist/cli-bundle/chunks/chunk-WVSGSZ6J.js +0 -5434
- package/dist/cli-bundle/chunks/chunk-WVSGSZ6J.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-XQCG2JGW.js +0 -1152
- package/dist/cli-bundle/chunks/chunk-XQCG2JGW.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-Y76TWC45.js +0 -550
- package/dist/cli-bundle/chunks/chunk-YD5FML7K.js +0 -5630
- package/dist/cli-bundle/chunks/chunk-YD5FML7K.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-YFIE7YK6.js +0 -57
- package/dist/cli-bundle/chunks/chunk-YMABYTNG.js +0 -1573
- package/dist/cli-bundle/chunks/chunk-YOF5VPKM.js +0 -119
- package/dist/cli-bundle/chunks/chunk-YPPVU5GX.js +0 -398
- package/dist/cli-bundle/chunks/chunk-YQMMMONE.js +0 -133
- package/dist/cli-bundle/chunks/chunk-YSAH5FY5.js +0 -1001
- package/dist/cli-bundle/chunks/chunk-YZIR4R3U.js +0 -1005
- package/dist/cli-bundle/chunks/chunk-Z2CRRZYF.js +0 -215
- package/dist/cli-bundle/chunks/chunk-ZAHXPXVY.js +0 -533
- package/dist/cli-bundle/chunks/chunk-ZCJAA3JK.js +0 -121
- package/dist/cli-bundle/chunks/chunk-ZD34OFFQ.js +0 -366
- package/dist/cli-bundle/chunks/chunk-ZJB3UV5U.js +0 -2306
- package/dist/cli-bundle/chunks/chunk-ZMD35NYG.js +0 -61
- package/dist/cli-bundle/chunks/chunk-ZVDL32GJ.js +0 -241
- package/dist/cli-bundle/chunks/chunk-ZVDL32GJ.js.map +0 -7
- package/dist/cli-bundle/chunks/claim-4DROPSIS.js +0 -144
- package/dist/cli-bundle/chunks/claim-4DROPSIS.js.map +0 -1
- package/dist/cli-bundle/chunks/claim-VX54TV5U.js +0 -147
- package/dist/cli-bundle/chunks/claim-VX54TV5U.js.map +0 -7
- package/dist/cli-bundle/chunks/close-3YRR3XY6.js +0 -20
- package/dist/cli-bundle/chunks/close-OB2Y4QP5.js +0 -16
- package/dist/cli-bundle/chunks/close-many-AP4MWU36.js +0 -397
- package/dist/cli-bundle/chunks/close-many-AP4MWU36.js.map +0 -1
- package/dist/cli-bundle/chunks/close-many-OMZIGZB4.js +0 -400
- package/dist/cli-bundle/chunks/close-many-OMZIGZB4.js.map +0 -7
- package/dist/cli-bundle/chunks/comments-MIW5MZOX.js +0 -128
- package/dist/cli-bundle/chunks/comments-MIW5MZOX.js.map +0 -7
- package/dist/cli-bundle/chunks/comments-SAG5LSKL.js +0 -125
- package/dist/cli-bundle/chunks/comments-SAG5LSKL.js.map +0 -1
- package/dist/cli-bundle/chunks/config-DJJKZB5R.js +0 -1075
- package/dist/cli-bundle/chunks/config-DJJKZB5R.js.map +0 -7
- package/dist/cli-bundle/chunks/config-V57QD47V.js +0 -1065
- package/dist/cli-bundle/chunks/config-V57QD47V.js.map +0 -1
- package/dist/cli-bundle/chunks/context-4OQGIPSO.js +0 -45
- package/dist/cli-bundle/chunks/context-WLA6IAWE.js +0 -49
- package/dist/cli-bundle/chunks/contracts-HXJLKCRI.js +0 -12
- package/dist/cli-bundle/chunks/contracts-OJEXMKVW.js +0 -16
- package/dist/cli-bundle/chunks/copy-LEE6P6EM.js +0 -184
- package/dist/cli-bundle/chunks/copy-LEE6P6EM.js.map +0 -7
- package/dist/cli-bundle/chunks/copy-OTJOWFL6.js +0 -181
- package/dist/cli-bundle/chunks/copy-OTJOWFL6.js.map +0 -1
- package/dist/cli-bundle/chunks/create-WKOZKPQR.js +0 -30
- package/dist/cli-bundle/chunks/create-XWWQFQ6S.js +0 -34
- package/dist/cli-bundle/chunks/delete-62JQTYT4.js +0 -59
- package/dist/cli-bundle/chunks/delete-62JQTYT4.js.map +0 -7
- package/dist/cli-bundle/chunks/delete-HQKGRNRZ.js +0 -56
- package/dist/cli-bundle/chunks/delete-HQKGRNRZ.js.map +0 -1
- package/dist/cli-bundle/chunks/deps-55FTG6Z5.js +0 -224
- package/dist/cli-bundle/chunks/deps-55FTG6Z5.js.map +0 -1
- package/dist/cli-bundle/chunks/deps-L2FPIAD3.js +0 -227
- package/dist/cli-bundle/chunks/deps-L2FPIAD3.js.map +0 -7
- package/dist/cli-bundle/chunks/docs-6CRCSVKK.js +0 -33
- package/dist/cli-bundle/chunks/docs-6CRCSVKK.js.map +0 -1
- package/dist/cli-bundle/chunks/docs-S6UTOTO5.js +0 -36
- package/dist/cli-bundle/chunks/docs-S6UTOTO5.js.map +0 -7
- package/dist/cli-bundle/chunks/eval-N6UHFWVO.js +0 -288
- package/dist/cli-bundle/chunks/eval-N6UHFWVO.js.map +0 -7
- package/dist/cli-bundle/chunks/eval-PHOTWYHI.js +0 -278
- package/dist/cli-bundle/chunks/eval-PHOTWYHI.js.map +0 -1
- package/dist/cli-bundle/chunks/extension-NBAH62ML.js +0 -40
- package/dist/cli-bundle/chunks/extension-ZF6ZZPOU.js +0 -44
- package/dist/cli-bundle/chunks/files-6P57MRKL.js +0 -301
- package/dist/cli-bundle/chunks/files-6P57MRKL.js.map +0 -7
- package/dist/cli-bundle/chunks/files-JPU3FNJ7.js +0 -298
- package/dist/cli-bundle/chunks/files-JPU3FNJ7.js.map +0 -1
- package/dist/cli-bundle/chunks/focus-LFZ6IDBR.js +0 -106
- package/dist/cli-bundle/chunks/focus-LFZ6IDBR.js.map +0 -1
- package/dist/cli-bundle/chunks/focus-WNMYCVYA.js +0 -109
- package/dist/cli-bundle/chunks/focus-WNMYCVYA.js.map +0 -7
- package/dist/cli-bundle/chunks/gc-AETFKZ44.js +0 -398
- package/dist/cli-bundle/chunks/gc-AETFKZ44.js.map +0 -7
- package/dist/cli-bundle/chunks/gc-RLBP4QVN.js +0 -388
- package/dist/cli-bundle/chunks/gc-RLBP4QVN.js.map +0 -1
- package/dist/cli-bundle/chunks/get-NH2MPBCI.js +0 -283
- package/dist/cli-bundle/chunks/get-NH2MPBCI.js.map +0 -1
- package/dist/cli-bundle/chunks/get-P4ZQXCPZ.js +0 -286
- package/dist/cli-bundle/chunks/get-P4ZQXCPZ.js.map +0 -7
- package/dist/cli-bundle/chunks/health-3GVPMQBL.js +0 -1612
- package/dist/cli-bundle/chunks/health-3GVPMQBL.js.map +0 -1
- package/dist/cli-bundle/chunks/health-DNTM72GJ.js +0 -1615
- package/dist/cli-bundle/chunks/health-DNTM72GJ.js.map +0 -7
- package/dist/cli-bundle/chunks/history-RYKLC72X.js +0 -20
- package/dist/cli-bundle/chunks/history-SGPYRAFT.js +0 -24
- package/dist/cli-bundle/chunks/history-compact-3F6VELO7.js +0 -565
- package/dist/cli-bundle/chunks/history-compact-3F6VELO7.js.map +0 -7
- package/dist/cli-bundle/chunks/history-compact-656Y2TN4.js +0 -555
- package/dist/cli-bundle/chunks/history-compact-656Y2TN4.js.map +0 -1
- package/dist/cli-bundle/chunks/history-redact-4H3FCKF3.js +0 -21
- package/dist/cli-bundle/chunks/history-redact-54ICFKXM.js +0 -25
- package/dist/cli-bundle/chunks/history-repair-4N6SDVHK.js +0 -281
- package/dist/cli-bundle/chunks/history-repair-4N6SDVHK.js.map +0 -7
- package/dist/cli-bundle/chunks/history-repair-EVTO6LIH.js +0 -278
- package/dist/cli-bundle/chunks/history-repair-EVTO6LIH.js.map +0 -1
- package/dist/cli-bundle/chunks/init-RPIPQUNV.js +0 -32
- package/dist/cli-bundle/chunks/init-SKQAESQS.js +0 -28
- package/dist/cli-bundle/chunks/learnings-2HTPZNGZ.js +0 -48
- package/dist/cli-bundle/chunks/learnings-2HTPZNGZ.js.map +0 -7
- package/dist/cli-bundle/chunks/learnings-YBIHY3D6.js +0 -45
- package/dist/cli-bundle/chunks/learnings-YBIHY3D6.js.map +0 -1
- package/dist/cli-bundle/chunks/list-64LHZ3HM.js +0 -32
- package/dist/cli-bundle/chunks/list-7LXBTEKI.js +0 -36
- package/dist/cli-bundle/chunks/next-7ODPAQ4U.js +0 -306
- package/dist/cli-bundle/chunks/next-7ODPAQ4U.js.map +0 -7
- package/dist/cli-bundle/chunks/next-ODJUM4ZM.js +0 -303
- package/dist/cli-bundle/chunks/next-ODJUM4ZM.js.map +0 -1
- package/dist/cli-bundle/chunks/notes-72YXN5JX.js +0 -48
- package/dist/cli-bundle/chunks/notes-72YXN5JX.js.map +0 -7
- package/dist/cli-bundle/chunks/notes-NJ7IQJX4.js +0 -45
- package/dist/cli-bundle/chunks/notes-NJ7IQJX4.js.map +0 -1
- package/dist/cli-bundle/chunks/plan-R4NDQ27E.js +0 -1366
- package/dist/cli-bundle/chunks/plan-R4NDQ27E.js.map +0 -7
- package/dist/cli-bundle/chunks/plan-XWY5T67S.js +0 -1363
- package/dist/cli-bundle/chunks/plan-XWY5T67S.js.map +0 -1
- package/dist/cli-bundle/chunks/profile-XQWEQKS3.js +0 -397
- package/dist/cli-bundle/chunks/profile-XQWEQKS3.js.map +0 -1
- package/dist/cli-bundle/chunks/profile-YRDHLMRO.js +0 -400
- package/dist/cli-bundle/chunks/profile-YRDHLMRO.js.map +0 -7
- package/dist/cli-bundle/chunks/register-list-query-5H66WFYF.js +0 -419
- package/dist/cli-bundle/chunks/register-list-query-FB3FNDLZ.js +0 -409
- package/dist/cli-bundle/chunks/register-mutation-UJO23C7R.js +0 -1256
- package/dist/cli-bundle/chunks/register-mutation-Z2ETYHKS.js +0 -1273
- package/dist/cli-bundle/chunks/register-operations-A3XAM5J7.js +0 -513
- package/dist/cli-bundle/chunks/register-operations-A3XAM5J7.js.map +0 -1
- package/dist/cli-bundle/chunks/register-operations-SG7HBSUP.js +0 -516
- package/dist/cli-bundle/chunks/register-operations-SG7HBSUP.js.map +0 -7
- package/dist/cli-bundle/chunks/register-setup-I45OGJUV.js +0 -323
- package/dist/cli-bundle/chunks/register-setup-I45OGJUV.js.map +0 -1
- package/dist/cli-bundle/chunks/register-setup-K6U3NVY5.js +0 -326
- package/dist/cli-bundle/chunks/register-setup-K6U3NVY5.js.map +0 -7
- package/dist/cli-bundle/chunks/restore-PXOFL6AM.js +0 -19
- package/dist/cli-bundle/chunks/restore-YJ2ET6AT.js +0 -23
- package/dist/cli-bundle/chunks/scheduling-shortcuts-SSC4MYWQ.js +0 -91
- package/dist/cli-bundle/chunks/scheduling-shortcuts-SSC4MYWQ.js.map +0 -7
- package/dist/cli-bundle/chunks/scheduling-shortcuts-ULRG7MNP.js +0 -88
- package/dist/cli-bundle/chunks/scheduling-shortcuts-ULRG7MNP.js.map +0 -1
- package/dist/cli-bundle/chunks/schema-2PUXCZ25.js +0 -74
- package/dist/cli-bundle/chunks/schema-Y6DXXK2F.js +0 -78
- package/dist/cli-bundle/chunks/search-3S72CTD6.js +0 -38
- package/dist/cli-bundle/chunks/search-WNUNBQXO.js +0 -34
- package/dist/cli-bundle/chunks/stats-IJYTRQGV.js +0 -250
- package/dist/cli-bundle/chunks/stats-IJYTRQGV.js.map +0 -7
- package/dist/cli-bundle/chunks/stats-L2D5Y2O5.js +0 -240
- package/dist/cli-bundle/chunks/stats-L2D5Y2O5.js.map +0 -1
- package/dist/cli-bundle/chunks/telemetry-L2CVOKVN.js +0 -309
- package/dist/cli-bundle/chunks/telemetry-L2CVOKVN.js.map +0 -7
- package/dist/cli-bundle/chunks/telemetry-QBYWQA76.js +0 -306
- package/dist/cli-bundle/chunks/telemetry-QBYWQA76.js.map +0 -1
- package/dist/cli-bundle/chunks/test-DQ2QFJ7W.js +0 -45
- package/dist/cli-bundle/chunks/test-W7QBLVJS.js +0 -41
- package/dist/cli-bundle/chunks/test-all-636NTRTT.js +0 -434
- package/dist/cli-bundle/chunks/test-all-636NTRTT.js.map +0 -1
- package/dist/cli-bundle/chunks/test-all-DWYK3RG6.js +0 -437
- package/dist/cli-bundle/chunks/test-all-DWYK3RG6.js.map +0 -7
- package/dist/cli-bundle/chunks/test-runs-245OINZR.js +0 -28
- package/dist/cli-bundle/chunks/test-runs-ZRD4GCTT.js +0 -24
- package/dist/cli-bundle/chunks/update-SFLZPJXX.js +0 -30
- package/dist/cli-bundle/chunks/update-SJZ6S77U.js +0 -26
- package/dist/cli-bundle/chunks/update-many-DC7X3EWM.js +0 -671
- package/dist/cli-bundle/chunks/update-many-DC7X3EWM.js.map +0 -7
- package/dist/cli-bundle/chunks/update-many-SLLAMHT7.js +0 -668
- package/dist/cli-bundle/chunks/update-many-SLLAMHT7.js.map +0 -1
- package/dist/cli-bundle/chunks/upgrade-HFFXLZJA.js +0 -290
- package/dist/cli-bundle/chunks/upgrade-HFFXLZJA.js.map +0 -7
- package/dist/cli-bundle/chunks/upgrade-UYQKM7RF.js +0 -287
- package/dist/cli-bundle/chunks/upgrade-UYQKM7RF.js.map +0 -1
- package/dist/cli-bundle/chunks/validate-PA4FDTOV.js +0 -2143
- package/dist/cli-bundle/chunks/validate-PA4FDTOV.js.map +0 -7
- package/dist/cli-bundle/chunks/validate-Z7L75YEJ.js +0 -2105
- package/dist/cli-bundle/chunks/validate-Z7L75YEJ.js.map +0 -1
- /package/dist/cli-bundle/chunks/{activity-4XQIDNM5.js.map → activity-WJCGCYPU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{activity-YKAKZTZ4.js.map → activity-Z6QUAUSG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-3YRR3XY6.js.map → aggregate-BDM6EIAR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-OB2Y4QP5.js.map → aggregate-VQ2DHU3S.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{context-WLA6IAWE.js.map → append-BGML6VLD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{context-4OQGIPSO.js.map → append-RKJYPU74.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YFIE7YK6.js.map → chunk-22KBU3MW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-DLQ4ZTCU.js.map → chunk-24YG75HI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KLG4ZULO.js.map → chunk-2XG4IZON.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FJRKQREY.js.map → chunk-3GCS5SKL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5B3X4Y22.js.map → chunk-3KTN6IBA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YMABYTNG.js.map → chunk-3UJRFJ5R.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YSAH5FY5.js.map → chunk-3VHSI5FL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7EQNAZX2.js.map → chunk-46CUF5L6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-75U6M5ZD.js.map → chunk-4IWYTWGF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-VZIYHZDX.js.map → chunk-5GZ7TDD6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3U3VEWK6.js.map → chunk-5VAA4YHR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3PL6LEKP.js.map → chunk-64YKRTSV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ABRA3BHY.js.map → chunk-6LLVNJXT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EEY54JMF.js.map → chunk-7DT4WSH2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7MDXZAZS.js.map → chunk-7WBAJSS6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-AAEQMOC6.js.map → chunk-AGHMOTGM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-OWTIRHX4.js.map → chunk-ALFPSEWO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-T3ABIMGW.js.map → chunk-AZYGZGGI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3JZNEQBA.js.map → chunk-B6DUFX6H.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-OESSOFJ4.js.map → chunk-C5JBZRPU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YPPVU5GX.js.map → chunk-CFB33L7W.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5J2XPTAD.js.map → chunk-CL36D4PC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-IJ6CO3JV.js.map → chunk-D2XRLB55.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MNZ7DRNC.js.map → chunk-DEWEK6AN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-US3T3W5J.js.map → chunk-E3SZTQ4K.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-C3PMDWGX.js.map → chunk-EGY6JBQ3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-JLA7EVYV.js.map → chunk-EKFNL33R.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-57C2RLW5.js.map → chunk-ENGQOEUY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7QH7DHUB.js.map → chunk-EOKXK3R3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZCJAA3JK.js.map → chunk-F3K4JGFD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-DRBV5UC2.js.map → chunk-FLZSGSQR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Y76TWC45.js.map → chunk-FT3QTERD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HK72NWAD.js.map → chunk-G24G7ZAV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-K3AGVXSF.js.map → chunk-G64OCSKU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QHZO65XW.js.map → chunk-GANUTS7W.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WISPVC2E.js.map → chunk-GBAX2ZAQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-RCT3YJOK.js.map → chunk-GJ7QC5DJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-BVEUCSH2.js.map → chunk-GPLPTGOV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YZIR4R3U.js.map → chunk-GZRDYONU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7WYXBPYQ.js.map → chunk-IWVU4C2F.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-T3F4DF23.js.map → chunk-IX5BXEMX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-RX3HQSYG.js.map → chunk-JDDLOQAE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YOF5VPKM.js.map → chunk-JJP45OEI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TT42JUMF.js.map → chunk-K46RF36U.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-R3ZBLGTC.js.map → chunk-KGFUY7WN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NER3KUUS.js.map → chunk-KUOOJR35.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3Y4OESPP.js.map → chunk-L5PSPMZ4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-PJ3A56YF.js.map → chunk-LPSSSDJR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FDBARR33.js.map → chunk-MA4SM3QZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-PPAJG4GB.js.map → chunk-MFAZSEM5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5JZ7APJU.js.map → chunk-MFSCBT5Q.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4OFLJHX6.js.map → chunk-MLIYFOE7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZMD35NYG.js.map → chunk-MUH7A3FD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5JE6SMYS.js.map → chunk-MVYWGY2A.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-P5TFTLWW.js.map → chunk-MWMVPCIE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-T35XLYZF.js.map → chunk-NGXQ3PFT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EZFKWSC7.js.map → chunk-NMP5I3I5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HJE4JTKQ.js.map → chunk-O6AWCQRQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-BFVHCAOO.js.map → chunk-OGWQ2IEP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-S4APD35C.js.map → chunk-QLMX7SRD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MZ7VNEVY.js.map → chunk-RFNYTESG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MTTXDAK4.js.map → chunk-SCUR7K7N.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-P5YORJRH.js.map → chunk-SHQY2IDC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-S5AYOUT5.js.map → chunk-SMB7RV23.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-N7X4WP6L.js.map → chunk-SPZ6DOGY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-P3VRG72Q.js.map → chunk-SQYJ4HF2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4LRVSBO6.js.map → chunk-T42JWV3F.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NBFCNJ7Q.js.map → chunk-TULGS6X6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZJB3UV5U.js.map → chunk-TZXRBVAM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZD34OFFQ.js.map → chunk-VPIM42PC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FGQKEDE4.js.map → chunk-W3DSJQIO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4QQ6PM7M.js.map → chunk-W572BIEB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Z2CRRZYF.js.map → chunk-WRTENIX3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZAHXPXVY.js.map → chunk-XB7KFVFI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-PDXT6Q55.js.map → chunk-XG625QP4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-D3UCE7RW.js.map → chunk-XUC7PI2H.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-N6DNM2FA.js.map → chunk-Y46GD4IX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FUM6UMY4.js.map → chunk-Y4M7CPQP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HBYZDSK5.js.map → chunk-YN7Y6DQZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YQMMMONE.js.map → chunk-ZGK4L4JM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-LEKT4K7I.js.map → chunk-ZSUS2OD3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TSPKZRRW.js.map → chunk-ZZD4J5XY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{contracts-HXJLKCRI.js.map → claim-RFS7BROJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{contracts-OJEXMKVW.js.map → claim-XP5AWZ5H.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-XWWQFQ6S.js.map → close-2SSSHHUZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-WKOZKPQR.js.map → close-GEANHQ2J.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-ZF6ZZPOU.js.map → close-many-CMZW7ITN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-NBAH62ML.js.map → close-many-ZFDIG6M7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-SGPYRAFT.js.map → comments-MFSYVNNU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-RYKLC72X.js.map → comments-XUBPXDYX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-4H3FCKF3.js.map → config-D7XQMONX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-54ICFKXM.js.map → config-T4FHBSYN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-RPIPQUNV.js.map → context-DIU275XI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-SKQAESQS.js.map → context-JCOYB4LZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-64LHZ3HM.js.map → contracts-BVO7CSLK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-7LXBTEKI.js.map → contracts-NYPEW2G4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-YJ2ET6AT.js.map → copy-32ROBIDL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-PXOFL6AM.js.map → copy-NAGLGMHZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-2PUXCZ25.js.map → create-4V7SWNBB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-Y6DXXK2F.js.map → create-E77SDCUP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-WNUNBQXO.js.map → delete-NQI5OSKN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-3S72CTD6.js.map → delete-RA5KTCLB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-DQ2QFJ7W.js.map → deps-32SU7HO5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-W7QBLVJS.js.map → deps-T7SCWXEX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-runs-245OINZR.js.map → docs-RRUPT7O2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-runs-ZRD4GCTT.js.map → docs-WL2IWGWV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-SJZ6S77U.js.map → eval-NF2J5SHR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-SFLZPJXX.js.map → eval-SKDT3MZU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-list-query-FB3FNDLZ.js.map → register-list-query-B42JCCOI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-list-query-5H66WFYF.js.map → register-list-query-OEYQHFXO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-mutation-Z2ETYHKS.js.map → register-mutation-3QXIHCQG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-mutation-UJO23C7R.js.map → register-mutation-IAEST26S.js.map} +0 -0
|
@@ -1,1239 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d5198112-9083-5c72-8583-3c24e460da48")}catch(e){}}();
|
|
3
|
-
import {
|
|
4
|
-
acquireLock,
|
|
5
|
-
listAllFrontMatterLight
|
|
6
|
-
} from "./chunk-57C2RLW5.js";
|
|
7
|
-
import {
|
|
8
|
-
BUILTIN_STATUS_IDS,
|
|
9
|
-
TYPE_PRESET_NAMES,
|
|
10
|
-
assertStatusTokensAvailable,
|
|
11
|
-
normalizeAddFieldInput,
|
|
12
|
-
normalizeAddStatusInput,
|
|
13
|
-
normalizeFieldKey,
|
|
14
|
-
normalizeStatusToken,
|
|
15
|
-
normalizeTypePresetName,
|
|
16
|
-
parseFieldsFile,
|
|
17
|
-
parseStatusDefsFile,
|
|
18
|
-
removeField,
|
|
19
|
-
removeStatusDef,
|
|
20
|
-
resolveTypePresetDefinitions,
|
|
21
|
-
serializeFieldsFile,
|
|
22
|
-
serializeStatusDefsFile,
|
|
23
|
-
upsertField,
|
|
24
|
-
upsertStatusDef
|
|
25
|
-
} from "./chunk-ZAHXPXVY.js";
|
|
26
|
-
import {
|
|
27
|
-
nowIso
|
|
28
|
-
} from "./chunk-FJRKQREY.js";
|
|
29
|
-
import {
|
|
30
|
-
PmCliError,
|
|
31
|
-
getActiveExtensionRegistrations,
|
|
32
|
-
readSettings,
|
|
33
|
-
resolveGovernanceKnobs,
|
|
34
|
-
runActiveOnWriteHooks
|
|
35
|
-
} from "./chunk-US3T3W5J.js";
|
|
36
|
-
import {
|
|
37
|
-
assertAliasesAvailable,
|
|
38
|
-
assertTypeFolderAvailable,
|
|
39
|
-
escapeForDoubleQuotes,
|
|
40
|
-
matchBuiltinTypeName,
|
|
41
|
-
normalizeAddTypeInput,
|
|
42
|
-
parseItemTypesFile,
|
|
43
|
-
removeItemType,
|
|
44
|
-
serializeItemTypesFile,
|
|
45
|
-
upsertItemType
|
|
46
|
-
} from "./chunk-NER3KUUS.js";
|
|
47
|
-
import {
|
|
48
|
-
DEFAULT_RUNTIME_SCHEMA_FILE_PATHS,
|
|
49
|
-
EXIT_CODE,
|
|
50
|
-
filePathForSchemaSection,
|
|
51
|
-
getSettingsPath,
|
|
52
|
-
normalizeRuntimeSchemaSettings,
|
|
53
|
-
pathExists,
|
|
54
|
-
readFileIfExists,
|
|
55
|
-
resolveItemTypeRegistry,
|
|
56
|
-
resolvePmRoot,
|
|
57
|
-
resolveRuntimeFieldRegistry,
|
|
58
|
-
resolveRuntimeStatusRegistry,
|
|
59
|
-
toDefaultFolder,
|
|
60
|
-
writeFileAtomic
|
|
61
|
-
} from "./chunk-YD5FML7K.js";
|
|
62
|
-
|
|
63
|
-
// dist/cli/commands/schema.js
|
|
64
|
-
import path from "node:path";
|
|
65
|
-
import { mkdir } from "node:fs/promises";
|
|
66
|
-
|
|
67
|
-
// dist/core/schema/type-inference.js
|
|
68
|
-
var PREFIX_PATTERN = /^([A-Za-z][A-Za-z0-9_-]*?)\s*[-:]\s+\S/;
|
|
69
|
-
function extractTitlePrefix(title) {
|
|
70
|
-
const match = PREFIX_PATTERN.exec(title.trim());
|
|
71
|
-
if (!match) {
|
|
72
|
-
return void 0;
|
|
73
|
-
}
|
|
74
|
-
const token = match[1];
|
|
75
|
-
if (token.length < 2) {
|
|
76
|
-
return void 0;
|
|
77
|
-
}
|
|
78
|
-
if (/^[A-Za-z]\d+$/.test(token)) {
|
|
79
|
-
return void 0;
|
|
80
|
-
}
|
|
81
|
-
return token.toLowerCase();
|
|
82
|
-
}
|
|
83
|
-
function prefixToTypeName(prefix) {
|
|
84
|
-
return prefix.split(/[-_]+/).filter((segment) => segment.length > 0).map((segment) => `${segment.slice(0, 1).toUpperCase()}${segment.slice(1).toLowerCase()}`).join("");
|
|
85
|
-
}
|
|
86
|
-
function inferTypesFromTitles(titles, options = {}) {
|
|
87
|
-
const minCount = typeof options.minCount === "number" && options.minCount > 0 ? Math.trunc(options.minCount) : 10;
|
|
88
|
-
const maxExamples = typeof options.maxExamples === "number" && options.maxExamples > 0 ? Math.trunc(options.maxExamples) : 3;
|
|
89
|
-
const byPrefix = /* @__PURE__ */ new Map();
|
|
90
|
-
for (const rawTitle of titles) {
|
|
91
|
-
const title = typeof rawTitle === "string" ? rawTitle.trim() : "";
|
|
92
|
-
if (title.length === 0) {
|
|
93
|
-
continue;
|
|
94
|
-
}
|
|
95
|
-
const prefix = extractTitlePrefix(title);
|
|
96
|
-
if (prefix === void 0) {
|
|
97
|
-
continue;
|
|
98
|
-
}
|
|
99
|
-
const bucket = byPrefix.get(prefix) ?? { count: 0, examples: [] };
|
|
100
|
-
bucket.count += 1;
|
|
101
|
-
if (bucket.examples.length < maxExamples) {
|
|
102
|
-
bucket.examples.push(title);
|
|
103
|
-
}
|
|
104
|
-
byPrefix.set(prefix, bucket);
|
|
105
|
-
}
|
|
106
|
-
const candidates = [];
|
|
107
|
-
for (const [prefix, bucket] of byPrefix.entries()) {
|
|
108
|
-
if (bucket.count < minCount) {
|
|
109
|
-
continue;
|
|
110
|
-
}
|
|
111
|
-
const name = prefixToTypeName(prefix);
|
|
112
|
-
candidates.push({
|
|
113
|
-
name,
|
|
114
|
-
prefix,
|
|
115
|
-
count: bucket.count,
|
|
116
|
-
examples: bucket.examples,
|
|
117
|
-
shadows_builtin: matchBuiltinTypeName(name) !== void 0
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
candidates.sort((left, right) => right.count - left.count || left.name.localeCompare(right.name));
|
|
121
|
-
return candidates;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
// dist/cli/commands/schema.js
|
|
125
|
-
var SCHEMA_SUBCOMMANDS = [
|
|
126
|
-
"add-type",
|
|
127
|
-
"remove-type",
|
|
128
|
-
"add-status",
|
|
129
|
-
"remove-status",
|
|
130
|
-
"add-field",
|
|
131
|
-
"remove-field",
|
|
132
|
-
"list-fields",
|
|
133
|
-
"show-field",
|
|
134
|
-
"apply-preset",
|
|
135
|
-
"list",
|
|
136
|
-
"show",
|
|
137
|
-
"show-status"
|
|
138
|
-
];
|
|
139
|
-
var SCHEMA_TYPES_LOCK_ID = "schema-types";
|
|
140
|
-
var SCHEMA_STATUSES_LOCK_ID = "schema-statuses";
|
|
141
|
-
var SCHEMA_FIELDS_LOCK_ID = "schema-fields";
|
|
142
|
-
function toAuthor(candidate, defaultAuthor) {
|
|
143
|
-
const resolved = candidate ?? process.env.PM_AUTHOR ?? defaultAuthor;
|
|
144
|
-
const trimmed = resolved.trim();
|
|
145
|
-
return trimmed.length > 0 ? trimmed : "unknown";
|
|
146
|
-
}
|
|
147
|
-
async function runSchemaAddType(name, options, global) {
|
|
148
|
-
const pmRoot = resolvePmRoot(process.cwd(), global.path);
|
|
149
|
-
if (!await pathExists(getSettingsPath(pmRoot))) {
|
|
150
|
-
throw new PmCliError(`Tracker is not initialized at ${pmRoot}. Run pm init first.`, EXIT_CODE.NOT_FOUND);
|
|
151
|
-
}
|
|
152
|
-
let normalized;
|
|
153
|
-
try {
|
|
154
|
-
normalized = normalizeAddTypeInput({
|
|
155
|
-
name,
|
|
156
|
-
description: options.description,
|
|
157
|
-
defaultStatus: options.defaultStatus,
|
|
158
|
-
folder: options.folder,
|
|
159
|
-
aliases: options.alias
|
|
160
|
-
});
|
|
161
|
-
} catch (error) {
|
|
162
|
-
throw new PmCliError(error instanceof Error ? error.message : String(error), EXIT_CODE.USAGE);
|
|
163
|
-
}
|
|
164
|
-
const settings = await readSettings(pmRoot);
|
|
165
|
-
const schema = normalizeRuntimeSchemaSettings(settings.schema);
|
|
166
|
-
const typesPath = filePathForSchemaSection(pmRoot, schema.files.types, DEFAULT_RUNTIME_SCHEMA_FILE_PATHS.types);
|
|
167
|
-
const warnings = [];
|
|
168
|
-
const author = toAuthor(options.author, settings.author_default);
|
|
169
|
-
const governance = resolveGovernanceKnobs(settings);
|
|
170
|
-
const releaseLock = await acquireLock(pmRoot, SCHEMA_TYPES_LOCK_ID, settings.locks.ttl_seconds, author, Boolean(options.force), governance.force_required_for_stale_lock, settings.locks.wait_ms);
|
|
171
|
-
let upsert;
|
|
172
|
-
try {
|
|
173
|
-
const previousRaw = await readFileIfExists(typesPath);
|
|
174
|
-
let parsed;
|
|
175
|
-
try {
|
|
176
|
-
parsed = parseItemTypesFile(previousRaw);
|
|
177
|
-
} catch (error) {
|
|
178
|
-
throw new PmCliError(error instanceof Error ? error.message : String(error), EXIT_CODE.GENERIC_FAILURE);
|
|
179
|
-
}
|
|
180
|
-
try {
|
|
181
|
-
assertAliasesAvailable(normalized, parsed);
|
|
182
|
-
const reservedFolders = /* @__PURE__ */ new Map();
|
|
183
|
-
const resolvedRegistry = resolveItemTypeRegistry(settings, getActiveExtensionRegistrations());
|
|
184
|
-
for (const [typeName, folder] of Object.entries(resolvedRegistry.type_to_folder)) {
|
|
185
|
-
const folderKey = folder.trim().toLowerCase();
|
|
186
|
-
if (folderKey.length > 0 && !reservedFolders.has(folderKey)) {
|
|
187
|
-
reservedFolders.set(folderKey, typeName);
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
assertTypeFolderAvailable(normalized, parsed, reservedFolders);
|
|
191
|
-
} catch (error) {
|
|
192
|
-
throw new PmCliError(error instanceof Error ? error.message : String(error), EXIT_CODE.USAGE);
|
|
193
|
-
}
|
|
194
|
-
upsert = upsertItemType(parsed, normalized);
|
|
195
|
-
if (upsert.replaced && upsert.previousName !== void 0 && upsert.previousName !== upsert.definition.name) {
|
|
196
|
-
warnings.push(`type_recased:${upsert.previousName}->${upsert.definition.name}`);
|
|
197
|
-
}
|
|
198
|
-
await writeFileAtomic(typesPath, serializeItemTypesFile(upsert.file));
|
|
199
|
-
await ensureTypeFolderScaffold(pmRoot, [upsert.definition], warnings, "schema:add-type-folder");
|
|
200
|
-
warnings.push(...await runActiveOnWriteHooks({
|
|
201
|
-
path: typesPath,
|
|
202
|
-
scope: "project",
|
|
203
|
-
op: "schema:add-type"
|
|
204
|
-
}));
|
|
205
|
-
} finally {
|
|
206
|
-
await releaseLock();
|
|
207
|
-
}
|
|
208
|
-
return {
|
|
209
|
-
action: "add-type",
|
|
210
|
-
registered: true,
|
|
211
|
-
replaced: upsert.replaced,
|
|
212
|
-
type: upsert.definition,
|
|
213
|
-
file: {
|
|
214
|
-
path: typesPath,
|
|
215
|
-
definitions: upsert.file.definitions.length
|
|
216
|
-
},
|
|
217
|
-
warnings: [...new Set(warnings)].sort((left, right) => left.localeCompare(right)),
|
|
218
|
-
generated_at: nowIso()
|
|
219
|
-
};
|
|
220
|
-
}
|
|
221
|
-
async function ensureInitialized(pmRoot) {
|
|
222
|
-
if (!await pathExists(getSettingsPath(pmRoot))) {
|
|
223
|
-
throw new PmCliError(`Tracker is not initialized at ${pmRoot}. Run pm init first.`, EXIT_CODE.NOT_FOUND);
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
async function countItemsUsingType(pmRoot, settings, schema, typeName) {
|
|
227
|
-
const registry = resolveItemTypeRegistry(settings, getActiveExtensionRegistrations());
|
|
228
|
-
const lowerName = typeName.trim().toLowerCase();
|
|
229
|
-
const items = await listAllFrontMatterLight(pmRoot, settings.item_format, registry.type_to_folder, [], schema);
|
|
230
|
-
return items.filter((item) => typeof item.type === "string" && item.type.toLowerCase() === lowerName).length;
|
|
231
|
-
}
|
|
232
|
-
async function countItemsUsingStatus(pmRoot, settings, schema, statusId) {
|
|
233
|
-
const registry = resolveItemTypeRegistry(settings, getActiveExtensionRegistrations());
|
|
234
|
-
const statusRegistry = resolveRuntimeStatusRegistry(schema);
|
|
235
|
-
const normalizedId = normalizeStatusToken(statusId);
|
|
236
|
-
const items = await listAllFrontMatterLight(pmRoot, settings.item_format, registry.type_to_folder, [], schema);
|
|
237
|
-
return items.filter((item) => {
|
|
238
|
-
const itemStatus = typeof item.status === "string" ? item.status : "";
|
|
239
|
-
const resolved = statusRegistry.alias_to_id.get(normalizeStatusToken(itemStatus)) ?? normalizeStatusToken(itemStatus);
|
|
240
|
-
return resolved === normalizedId;
|
|
241
|
-
}).length;
|
|
242
|
-
}
|
|
243
|
-
function workflowSlotsReferencing(workflow, statusId) {
|
|
244
|
-
const slots = [
|
|
245
|
-
["draft_status", workflow.draft_status],
|
|
246
|
-
["open_status", workflow.open_status],
|
|
247
|
-
["in_progress_status", workflow.in_progress_status],
|
|
248
|
-
["blocked_status", workflow.blocked_status],
|
|
249
|
-
["close_status", workflow.close_status],
|
|
250
|
-
["canceled_status", workflow.canceled_status]
|
|
251
|
-
];
|
|
252
|
-
return slots.filter(([, value]) => value !== void 0 && normalizeStatusToken(value) === statusId).map(([slot]) => slot);
|
|
253
|
-
}
|
|
254
|
-
async function runSchemaRemoveType(name, options, global) {
|
|
255
|
-
const pmRoot = resolvePmRoot(process.cwd(), global.path);
|
|
256
|
-
await ensureInitialized(pmRoot);
|
|
257
|
-
const settings = await readSettings(pmRoot);
|
|
258
|
-
const schema = normalizeRuntimeSchemaSettings(settings.schema);
|
|
259
|
-
const typesPath = filePathForSchemaSection(pmRoot, schema.files.types, DEFAULT_RUNTIME_SCHEMA_FILE_PATHS.types);
|
|
260
|
-
const warnings = [];
|
|
261
|
-
const author = toAuthor(options.author, settings.author_default);
|
|
262
|
-
const governance = resolveGovernanceKnobs(settings);
|
|
263
|
-
const releaseLock = await acquireLock(pmRoot, SCHEMA_TYPES_LOCK_ID, settings.locks.ttl_seconds, author, Boolean(options.force), governance.force_required_for_stale_lock, settings.locks.wait_ms);
|
|
264
|
-
let removal;
|
|
265
|
-
try {
|
|
266
|
-
const previousRaw = await readFileIfExists(typesPath);
|
|
267
|
-
let parsed;
|
|
268
|
-
try {
|
|
269
|
-
parsed = parseItemTypesFile(previousRaw);
|
|
270
|
-
} catch (error) {
|
|
271
|
-
throw new PmCliError(error instanceof Error ? error.message : String(error), EXIT_CODE.GENERIC_FAILURE);
|
|
272
|
-
}
|
|
273
|
-
try {
|
|
274
|
-
removal = removeItemType(parsed, name);
|
|
275
|
-
} catch (error) {
|
|
276
|
-
throw new PmCliError(error instanceof Error ? error.message : String(error), EXIT_CODE.USAGE);
|
|
277
|
-
}
|
|
278
|
-
if (removal.removed) {
|
|
279
|
-
const removedName = (removal.definition?.name ?? name ?? "").trim();
|
|
280
|
-
if (removedName.length > 0) {
|
|
281
|
-
const usingType = await countItemsUsingType(pmRoot, settings, schema, removedName);
|
|
282
|
-
if (usingType > 0) {
|
|
283
|
-
warnings.push(`items_using_type:${usingType}`);
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
await writeFileAtomic(typesPath, serializeItemTypesFile(removal.file));
|
|
287
|
-
warnings.push(...await runActiveOnWriteHooks({
|
|
288
|
-
path: typesPath,
|
|
289
|
-
scope: "project",
|
|
290
|
-
op: "schema:remove-type"
|
|
291
|
-
}));
|
|
292
|
-
}
|
|
293
|
-
} finally {
|
|
294
|
-
await releaseLock();
|
|
295
|
-
}
|
|
296
|
-
return {
|
|
297
|
-
action: "remove-type",
|
|
298
|
-
removed: removal.removed,
|
|
299
|
-
...removal.definition ? { type: removal.definition } : {},
|
|
300
|
-
file: {
|
|
301
|
-
path: typesPath,
|
|
302
|
-
definitions: removal.file.definitions.length
|
|
303
|
-
},
|
|
304
|
-
warnings: [...new Set(warnings)].sort((left, right) => left.localeCompare(right)),
|
|
305
|
-
generated_at: nowIso()
|
|
306
|
-
};
|
|
307
|
-
}
|
|
308
|
-
function statusesPathFor(pmRoot, schema) {
|
|
309
|
-
return filePathForSchemaSection(pmRoot, schema.files.statuses, DEFAULT_RUNTIME_SCHEMA_FILE_PATHS.statuses);
|
|
310
|
-
}
|
|
311
|
-
function fieldsPathFor(pmRoot, schema) {
|
|
312
|
-
return filePathForSchemaSection(pmRoot, schema.files.fields, DEFAULT_RUNTIME_SCHEMA_FILE_PATHS.fields);
|
|
313
|
-
}
|
|
314
|
-
function typesPathFor(pmRoot, schema) {
|
|
315
|
-
return filePathForSchemaSection(pmRoot, schema.files.types, DEFAULT_RUNTIME_SCHEMA_FILE_PATHS.types);
|
|
316
|
-
}
|
|
317
|
-
async function ensureTypeFolderScaffold(pmRoot, definitions, warnings, op) {
|
|
318
|
-
for (const definition of definitions) {
|
|
319
|
-
const folder = definition.folder ?? toDefaultFolder(definition.name);
|
|
320
|
-
const target = path.join(pmRoot, folder);
|
|
321
|
-
if (await pathExists(target)) {
|
|
322
|
-
continue;
|
|
323
|
-
}
|
|
324
|
-
await mkdir(target, { recursive: true });
|
|
325
|
-
warnings.push(...await runActiveOnWriteHooks({
|
|
326
|
-
path: target,
|
|
327
|
-
scope: "project",
|
|
328
|
-
op
|
|
329
|
-
}));
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
function toSchemaFieldSummary(field) {
|
|
333
|
-
return {
|
|
334
|
-
key: field.key,
|
|
335
|
-
type: field.type,
|
|
336
|
-
commands: [...field.commands],
|
|
337
|
-
cli_flag: `--${field.cli_flag}`,
|
|
338
|
-
cli_aliases: field.cli_aliases.map((alias) => `--${alias}`),
|
|
339
|
-
...field.description ? { description: field.description } : {},
|
|
340
|
-
required: field.required,
|
|
341
|
-
required_on_create: field.required_on_create,
|
|
342
|
-
allow_unset: field.allow_unset,
|
|
343
|
-
required_types: [...field.required_types]
|
|
344
|
-
};
|
|
345
|
-
}
|
|
346
|
-
function toExistingStatusDefinition(resolvedExisting) {
|
|
347
|
-
if (!resolvedExisting) {
|
|
348
|
-
return void 0;
|
|
349
|
-
}
|
|
350
|
-
return {
|
|
351
|
-
id: resolvedExisting.id,
|
|
352
|
-
...resolvedExisting.roles.length > 0 ? { roles: [...resolvedExisting.roles] } : {},
|
|
353
|
-
...resolvedExisting.aliases.length > 0 ? { aliases: [...resolvedExisting.aliases] } : {},
|
|
354
|
-
...resolvedExisting.description ? { description: resolvedExisting.description } : {},
|
|
355
|
-
...typeof resolvedExisting.order === "number" ? { order: resolvedExisting.order } : {}
|
|
356
|
-
};
|
|
357
|
-
}
|
|
358
|
-
function buildStatusFileAliasMap(statuses) {
|
|
359
|
-
const fileAliasToId = /* @__PURE__ */ new Map();
|
|
360
|
-
for (const definition of statuses) {
|
|
361
|
-
const defId = normalizeStatusToken(definition.id);
|
|
362
|
-
if (defId.length === 0) {
|
|
363
|
-
continue;
|
|
364
|
-
}
|
|
365
|
-
fileAliasToId.set(defId, defId);
|
|
366
|
-
for (const alias of Array.isArray(definition.aliases) ? definition.aliases : []) {
|
|
367
|
-
const aliasToken = normalizeStatusToken(alias);
|
|
368
|
-
if (aliasToken.length > 0 && !fileAliasToId.has(aliasToken)) {
|
|
369
|
-
fileAliasToId.set(aliasToken, defId);
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
return fileAliasToId;
|
|
374
|
-
}
|
|
375
|
-
async function runSchemaAddStatus(id, options, global) {
|
|
376
|
-
const pmRoot = resolvePmRoot(process.cwd(), global.path);
|
|
377
|
-
await ensureInitialized(pmRoot);
|
|
378
|
-
let normalized;
|
|
379
|
-
try {
|
|
380
|
-
normalized = normalizeAddStatusInput({
|
|
381
|
-
id,
|
|
382
|
-
roles: options.role,
|
|
383
|
-
aliases: options.alias,
|
|
384
|
-
description: options.description,
|
|
385
|
-
order: options.order
|
|
386
|
-
});
|
|
387
|
-
} catch (error) {
|
|
388
|
-
throw new PmCliError(error instanceof Error ? error.message : String(error), EXIT_CODE.USAGE);
|
|
389
|
-
}
|
|
390
|
-
const settings = await readSettings(pmRoot);
|
|
391
|
-
const schema = normalizeRuntimeSchemaSettings(settings.schema);
|
|
392
|
-
const statusesPath = statusesPathFor(pmRoot, schema);
|
|
393
|
-
const statusRegistry = resolveRuntimeStatusRegistry(schema);
|
|
394
|
-
try {
|
|
395
|
-
assertStatusTokensAvailable(normalized, statusRegistry.alias_to_id);
|
|
396
|
-
} catch (error) {
|
|
397
|
-
throw new PmCliError(error instanceof Error ? error.message : String(error), EXIT_CODE.USAGE);
|
|
398
|
-
}
|
|
399
|
-
const baseDefinition = toExistingStatusDefinition(statusRegistry.by_id.get(normalized.id));
|
|
400
|
-
const warnings = [];
|
|
401
|
-
const author = toAuthor(options.author, settings.author_default);
|
|
402
|
-
const governance = resolveGovernanceKnobs(settings);
|
|
403
|
-
const releaseLock = await acquireLock(pmRoot, SCHEMA_STATUSES_LOCK_ID, settings.locks.ttl_seconds, author, Boolean(options.force), governance.force_required_for_stale_lock, settings.locks.wait_ms);
|
|
404
|
-
let upsert;
|
|
405
|
-
try {
|
|
406
|
-
const previousRaw = await readFileIfExists(statusesPath);
|
|
407
|
-
let parsed;
|
|
408
|
-
try {
|
|
409
|
-
parsed = parseStatusDefsFile(previousRaw);
|
|
410
|
-
} catch (error) {
|
|
411
|
-
throw new PmCliError(error instanceof Error ? error.message : String(error), EXIT_CODE.GENERIC_FAILURE);
|
|
412
|
-
}
|
|
413
|
-
const fileAliasToId = buildStatusFileAliasMap(parsed.statuses);
|
|
414
|
-
try {
|
|
415
|
-
assertStatusTokensAvailable(normalized, fileAliasToId);
|
|
416
|
-
} catch (error) {
|
|
417
|
-
throw new PmCliError(error instanceof Error ? error.message : String(error), EXIT_CODE.USAGE);
|
|
418
|
-
}
|
|
419
|
-
upsert = upsertStatusDef(parsed, normalized, baseDefinition);
|
|
420
|
-
await writeFileAtomic(statusesPath, serializeStatusDefsFile(upsert.file));
|
|
421
|
-
warnings.push(...await runActiveOnWriteHooks({
|
|
422
|
-
path: statusesPath,
|
|
423
|
-
scope: "project",
|
|
424
|
-
op: "schema:add-status"
|
|
425
|
-
}));
|
|
426
|
-
} finally {
|
|
427
|
-
await releaseLock();
|
|
428
|
-
}
|
|
429
|
-
return {
|
|
430
|
-
action: "add-status",
|
|
431
|
-
registered: true,
|
|
432
|
-
replaced: upsert.replaced,
|
|
433
|
-
status: upsert.definition,
|
|
434
|
-
file: {
|
|
435
|
-
path: statusesPath,
|
|
436
|
-
statuses: upsert.file.statuses.length
|
|
437
|
-
},
|
|
438
|
-
warnings: [...new Set(warnings)].sort((left, right) => left.localeCompare(right)),
|
|
439
|
-
generated_at: nowIso()
|
|
440
|
-
};
|
|
441
|
-
}
|
|
442
|
-
async function runSchemaRemoveStatus(id, options, global) {
|
|
443
|
-
const pmRoot = resolvePmRoot(process.cwd(), global.path);
|
|
444
|
-
await ensureInitialized(pmRoot);
|
|
445
|
-
const settings = await readSettings(pmRoot);
|
|
446
|
-
const schema = normalizeRuntimeSchemaSettings(settings.schema);
|
|
447
|
-
const statusesPath = statusesPathFor(pmRoot, schema);
|
|
448
|
-
const warnings = [];
|
|
449
|
-
const author = toAuthor(options.author, settings.author_default);
|
|
450
|
-
const governance = resolveGovernanceKnobs(settings);
|
|
451
|
-
const releaseLock = await acquireLock(pmRoot, SCHEMA_STATUSES_LOCK_ID, settings.locks.ttl_seconds, author, Boolean(options.force), governance.force_required_for_stale_lock, settings.locks.wait_ms);
|
|
452
|
-
let removal;
|
|
453
|
-
try {
|
|
454
|
-
const previousRaw = await readFileIfExists(statusesPath);
|
|
455
|
-
let parsed;
|
|
456
|
-
try {
|
|
457
|
-
parsed = parseStatusDefsFile(previousRaw);
|
|
458
|
-
} catch (error) {
|
|
459
|
-
throw new PmCliError(error instanceof Error ? error.message : String(error), EXIT_CODE.GENERIC_FAILURE);
|
|
460
|
-
}
|
|
461
|
-
try {
|
|
462
|
-
removal = removeStatusDef(parsed, id);
|
|
463
|
-
} catch (error) {
|
|
464
|
-
throw new PmCliError(error instanceof Error ? error.message : String(error), EXIT_CODE.USAGE);
|
|
465
|
-
}
|
|
466
|
-
if (removal.removed) {
|
|
467
|
-
const removedId = normalizeStatusToken(removal.definition?.id ?? id);
|
|
468
|
-
if (removedId.length > 0 && !BUILTIN_STATUS_IDS.has(removedId)) {
|
|
469
|
-
const usingStatus = await countItemsUsingStatus(pmRoot, settings, schema, removedId);
|
|
470
|
-
if (usingStatus > 0) {
|
|
471
|
-
warnings.push(`items_using_status:${usingStatus}`);
|
|
472
|
-
}
|
|
473
|
-
const referencingSlots = workflowSlotsReferencing(schema.workflow, removedId);
|
|
474
|
-
if (referencingSlots.length > 0) {
|
|
475
|
-
warnings.push(`status_referenced_by_workflow:${referencingSlots.join(",")}`);
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
await writeFileAtomic(statusesPath, serializeStatusDefsFile(removal.file));
|
|
479
|
-
warnings.push(...await runActiveOnWriteHooks({
|
|
480
|
-
path: statusesPath,
|
|
481
|
-
scope: "project",
|
|
482
|
-
op: "schema:remove-status"
|
|
483
|
-
}));
|
|
484
|
-
}
|
|
485
|
-
} finally {
|
|
486
|
-
await releaseLock();
|
|
487
|
-
}
|
|
488
|
-
return {
|
|
489
|
-
action: "remove-status",
|
|
490
|
-
removed: removal.removed,
|
|
491
|
-
...removal.definition ? { status: removal.definition } : {},
|
|
492
|
-
file: {
|
|
493
|
-
path: statusesPath,
|
|
494
|
-
statuses: removal.file.statuses.length
|
|
495
|
-
},
|
|
496
|
-
warnings: [...new Set(warnings)].sort((left, right) => left.localeCompare(right)),
|
|
497
|
-
generated_at: nowIso()
|
|
498
|
-
};
|
|
499
|
-
}
|
|
500
|
-
function toSchemaTypeSummary(definition) {
|
|
501
|
-
return {
|
|
502
|
-
name: definition.name,
|
|
503
|
-
folder: definition.folder,
|
|
504
|
-
aliases: Array.isArray(definition.aliases) ? [...definition.aliases] : [],
|
|
505
|
-
...definition.default_status ? { default_status: definition.default_status } : {},
|
|
506
|
-
...definition.description ? { description: definition.description } : {}
|
|
507
|
-
};
|
|
508
|
-
}
|
|
509
|
-
function toSchemaTypeDefinition(definition, source, extensionProvenance) {
|
|
510
|
-
return {
|
|
511
|
-
...toSchemaTypeSummary(definition),
|
|
512
|
-
source,
|
|
513
|
-
...extensionProvenance ? { extension: extensionProvenance } : {},
|
|
514
|
-
required_create_fields: [...definition.required_create_fields],
|
|
515
|
-
required_create_repeatables: [...definition.required_create_repeatables],
|
|
516
|
-
options: structuredClone(definition.options),
|
|
517
|
-
command_option_policies: structuredClone(definition.command_option_policies)
|
|
518
|
-
};
|
|
519
|
-
}
|
|
520
|
-
function toSchemaStatusSummary(definition) {
|
|
521
|
-
return {
|
|
522
|
-
id: definition.id,
|
|
523
|
-
source: BUILTIN_STATUS_IDS.has(definition.id) ? "builtin" : "custom",
|
|
524
|
-
roles: Array.isArray(definition.roles) ? [...definition.roles] : [],
|
|
525
|
-
aliases: Array.isArray(definition.aliases) ? [...definition.aliases] : [],
|
|
526
|
-
...definition.description ? { description: definition.description } : {},
|
|
527
|
-
...typeof definition.order === "number" ? { order: definition.order } : {}
|
|
528
|
-
};
|
|
529
|
-
}
|
|
530
|
-
function classifyTypeSource(name, customNames, extensionNames) {
|
|
531
|
-
const lowerName = name.toLowerCase();
|
|
532
|
-
if (extensionNames.has(lowerName)) {
|
|
533
|
-
return "extension";
|
|
534
|
-
}
|
|
535
|
-
if (customNames.has(lowerName)) {
|
|
536
|
-
return "custom";
|
|
537
|
-
}
|
|
538
|
-
return "builtin";
|
|
539
|
-
}
|
|
540
|
-
function collectExtensionTypeProvenance() {
|
|
541
|
-
const provenance = /* @__PURE__ */ new Map();
|
|
542
|
-
const registrations = getActiveExtensionRegistrations();
|
|
543
|
-
for (const registration of registrations?.item_types ?? []) {
|
|
544
|
-
const rawTypes = registration.types;
|
|
545
|
-
if (!Array.isArray(rawTypes)) {
|
|
546
|
-
continue;
|
|
547
|
-
}
|
|
548
|
-
for (const rawType of rawTypes) {
|
|
549
|
-
if (typeof rawType !== "object" || rawType === null || Array.isArray(rawType)) {
|
|
550
|
-
continue;
|
|
551
|
-
}
|
|
552
|
-
const name = rawType.name;
|
|
553
|
-
if (typeof name === "string" && name.trim().length > 0) {
|
|
554
|
-
provenance.set(name.trim().toLowerCase(), {
|
|
555
|
-
layer: registration.layer,
|
|
556
|
-
name: registration.name
|
|
557
|
-
});
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
return provenance;
|
|
562
|
-
}
|
|
563
|
-
function buildSchemaStatusSummaries(schema) {
|
|
564
|
-
const registry = resolveRuntimeStatusRegistry(schema);
|
|
565
|
-
const builtin = [];
|
|
566
|
-
const custom = [];
|
|
567
|
-
for (const definition of registry.definitions) {
|
|
568
|
-
const summary = toSchemaStatusSummary(definition);
|
|
569
|
-
if (summary.source === "builtin") {
|
|
570
|
-
builtin.push(summary);
|
|
571
|
-
} else {
|
|
572
|
-
custom.push(summary);
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
return { builtin, custom };
|
|
576
|
-
}
|
|
577
|
-
async function loadSchemaInspectionContext(global) {
|
|
578
|
-
const pmRoot = resolvePmRoot(process.cwd(), global.path);
|
|
579
|
-
if (!await pathExists(getSettingsPath(pmRoot))) {
|
|
580
|
-
throw new PmCliError(`Tracker is not initialized at ${pmRoot}. Run pm init first.`, EXIT_CODE.NOT_FOUND);
|
|
581
|
-
}
|
|
582
|
-
const settings = await readSettings(pmRoot);
|
|
583
|
-
const schema = normalizeRuntimeSchemaSettings(settings.schema);
|
|
584
|
-
const typesPath = filePathForSchemaSection(pmRoot, schema.files.types, DEFAULT_RUNTIME_SCHEMA_FILE_PATHS.types);
|
|
585
|
-
const statusesPath = statusesPathFor(pmRoot, schema);
|
|
586
|
-
const registry = resolveItemTypeRegistry(settings, getActiveExtensionRegistrations());
|
|
587
|
-
const extensionProvenance = collectExtensionTypeProvenance();
|
|
588
|
-
const customNames = new Set((settings.item_types?.definitions ?? []).map((definition) => definition.name.trim().toLowerCase()).filter((name) => name.length > 0 && !extensionProvenance.has(name)));
|
|
589
|
-
return {
|
|
590
|
-
pmRoot,
|
|
591
|
-
typesPath,
|
|
592
|
-
statusesPath,
|
|
593
|
-
byType: registry.by_type,
|
|
594
|
-
customNames,
|
|
595
|
-
extensionProvenance,
|
|
596
|
-
schema
|
|
597
|
-
};
|
|
598
|
-
}
|
|
599
|
-
async function runSchemaList(global) {
|
|
600
|
-
const context = await loadSchemaInspectionContext(global);
|
|
601
|
-
const builtin = [];
|
|
602
|
-
const custom = [];
|
|
603
|
-
const extension = [];
|
|
604
|
-
for (const definition of Object.values(context.byType).sort((left, right) => left.name.localeCompare(right.name))) {
|
|
605
|
-
const source = classifyTypeSource(definition.name, context.customNames, new Set(context.extensionProvenance.keys()));
|
|
606
|
-
const summary = toSchemaTypeSummary(definition);
|
|
607
|
-
if (source === "extension") {
|
|
608
|
-
extension.push(summary);
|
|
609
|
-
} else if (source === "custom") {
|
|
610
|
-
custom.push(summary);
|
|
611
|
-
} else {
|
|
612
|
-
builtin.push(summary);
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
const statusSummaries = buildSchemaStatusSummaries(context.schema);
|
|
616
|
-
const fieldSummaries = resolveRuntimeFieldRegistry(context.schema).definitions.map(toSchemaFieldSummary);
|
|
617
|
-
return {
|
|
618
|
-
action: "list",
|
|
619
|
-
builtin,
|
|
620
|
-
custom,
|
|
621
|
-
extension,
|
|
622
|
-
counts: {
|
|
623
|
-
builtin: builtin.length,
|
|
624
|
-
custom: custom.length,
|
|
625
|
-
extension: extension.length,
|
|
626
|
-
total: builtin.length + custom.length + extension.length
|
|
627
|
-
},
|
|
628
|
-
statuses: {
|
|
629
|
-
builtin: statusSummaries.builtin,
|
|
630
|
-
custom: statusSummaries.custom,
|
|
631
|
-
counts: {
|
|
632
|
-
builtin: statusSummaries.builtin.length,
|
|
633
|
-
custom: statusSummaries.custom.length,
|
|
634
|
-
total: statusSummaries.builtin.length + statusSummaries.custom.length
|
|
635
|
-
}
|
|
636
|
-
},
|
|
637
|
-
fields: {
|
|
638
|
-
custom: fieldSummaries,
|
|
639
|
-
counts: {
|
|
640
|
-
total: fieldSummaries.length
|
|
641
|
-
}
|
|
642
|
-
},
|
|
643
|
-
file: {
|
|
644
|
-
path: context.typesPath
|
|
645
|
-
},
|
|
646
|
-
generated_at: nowIso()
|
|
647
|
-
};
|
|
648
|
-
}
|
|
649
|
-
async function runSchemaShow(name, global) {
|
|
650
|
-
const typeName = (name ?? "").trim();
|
|
651
|
-
if (typeName.length === 0) {
|
|
652
|
-
throw new PmCliError("Type name must not be empty.", EXIT_CODE.USAGE);
|
|
653
|
-
}
|
|
654
|
-
const context = await loadSchemaInspectionContext(global);
|
|
655
|
-
const match = Object.values(context.byType).find((definition) => definition.name.toLowerCase() === typeName.toLowerCase() || definition.aliases.some((alias) => alias.toLowerCase() === typeName.toLowerCase()));
|
|
656
|
-
if (!match) {
|
|
657
|
-
throw new PmCliError(`Unknown item type "${typeName}". Run pm schema list to inspect registered types, or pm schema add-type "${escapeForDoubleQuotes(typeName)}" to register it.`, EXIT_CODE.NOT_FOUND, { code: "unknown_item_type" });
|
|
658
|
-
}
|
|
659
|
-
return {
|
|
660
|
-
action: "show",
|
|
661
|
-
type: toSchemaTypeDefinition(match, classifyTypeSource(match.name, context.customNames, new Set(context.extensionProvenance.keys())), context.extensionProvenance.get(match.name.toLowerCase())),
|
|
662
|
-
file: {
|
|
663
|
-
path: context.typesPath
|
|
664
|
-
},
|
|
665
|
-
generated_at: nowIso()
|
|
666
|
-
};
|
|
667
|
-
}
|
|
668
|
-
async function runSchemaShowStatus(id, global) {
|
|
669
|
-
const statusToken = normalizeStatusToken(id);
|
|
670
|
-
if (statusToken.length === 0) {
|
|
671
|
-
throw new PmCliError("Status id must not be empty.", EXIT_CODE.USAGE);
|
|
672
|
-
}
|
|
673
|
-
const context = await loadSchemaInspectionContext(global);
|
|
674
|
-
const statusRegistry = resolveRuntimeStatusRegistry(context.schema);
|
|
675
|
-
const resolvedId = statusRegistry.alias_to_id.get(statusToken) ?? statusToken;
|
|
676
|
-
const match = statusRegistry.by_id.get(resolvedId);
|
|
677
|
-
if (!match) {
|
|
678
|
-
throw new PmCliError(`Unknown status "${id}". Run pm schema list to inspect registered statuses, or pm schema add-status "${escapeForDoubleQuotes(id ?? "")}" to register it.`, EXIT_CODE.NOT_FOUND, { code: "unknown_status" });
|
|
679
|
-
}
|
|
680
|
-
return {
|
|
681
|
-
action: "show-status",
|
|
682
|
-
status: toSchemaStatusSummary(match),
|
|
683
|
-
file: {
|
|
684
|
-
path: context.statusesPath
|
|
685
|
-
},
|
|
686
|
-
generated_at: nowIso()
|
|
687
|
-
};
|
|
688
|
-
}
|
|
689
|
-
async function runSchemaAddField(key, options, global) {
|
|
690
|
-
const pmRoot = resolvePmRoot(process.cwd(), global.path);
|
|
691
|
-
await ensureInitialized(pmRoot);
|
|
692
|
-
let normalized;
|
|
693
|
-
try {
|
|
694
|
-
normalized = normalizeAddFieldInput({
|
|
695
|
-
key,
|
|
696
|
-
type: options.type,
|
|
697
|
-
commands: options.commands,
|
|
698
|
-
description: options.description,
|
|
699
|
-
cliFlag: options.cliFlag,
|
|
700
|
-
aliases: options.alias,
|
|
701
|
-
required: options.required,
|
|
702
|
-
requiredOnCreate: options.requiredOnCreate,
|
|
703
|
-
allowUnset: options.allowUnset,
|
|
704
|
-
requiredTypes: options.requiredTypes
|
|
705
|
-
});
|
|
706
|
-
} catch (error) {
|
|
707
|
-
throw new PmCliError(error instanceof Error ? error.message : String(error), EXIT_CODE.USAGE);
|
|
708
|
-
}
|
|
709
|
-
const settings = await readSettings(pmRoot);
|
|
710
|
-
const schema = normalizeRuntimeSchemaSettings(settings.schema);
|
|
711
|
-
const fieldsPath = fieldsPathFor(pmRoot, schema);
|
|
712
|
-
const warnings = [];
|
|
713
|
-
const author = toAuthor(options.author, settings.author_default);
|
|
714
|
-
const governance = resolveGovernanceKnobs(settings);
|
|
715
|
-
const releaseLock = await acquireLock(pmRoot, SCHEMA_FIELDS_LOCK_ID, settings.locks.ttl_seconds, author, Boolean(options.force), governance.force_required_for_stale_lock, settings.locks.wait_ms);
|
|
716
|
-
let upsert;
|
|
717
|
-
try {
|
|
718
|
-
const previousRaw = await readFileIfExists(fieldsPath);
|
|
719
|
-
let parsed;
|
|
720
|
-
try {
|
|
721
|
-
parsed = parseFieldsFile(previousRaw);
|
|
722
|
-
} catch (error) {
|
|
723
|
-
throw new PmCliError(error instanceof Error ? error.message : String(error), EXIT_CODE.GENERIC_FAILURE);
|
|
724
|
-
}
|
|
725
|
-
upsert = upsertField(parsed, normalized);
|
|
726
|
-
await writeFileAtomic(fieldsPath, serializeFieldsFile(upsert.file));
|
|
727
|
-
warnings.push(...await runActiveOnWriteHooks({
|
|
728
|
-
path: fieldsPath,
|
|
729
|
-
scope: "project",
|
|
730
|
-
op: "schema:add-field"
|
|
731
|
-
}));
|
|
732
|
-
} finally {
|
|
733
|
-
await releaseLock();
|
|
734
|
-
}
|
|
735
|
-
return {
|
|
736
|
-
action: "add-field",
|
|
737
|
-
registered: true,
|
|
738
|
-
replaced: upsert.replaced,
|
|
739
|
-
field: upsert.definition,
|
|
740
|
-
file: {
|
|
741
|
-
path: fieldsPath,
|
|
742
|
-
fields: upsert.file.fields.length
|
|
743
|
-
},
|
|
744
|
-
warnings: [...new Set(warnings)].sort((left, right) => left.localeCompare(right)),
|
|
745
|
-
generated_at: nowIso()
|
|
746
|
-
};
|
|
747
|
-
}
|
|
748
|
-
async function countItemsUsingField(pmRoot, settings, schema, metadataKey) {
|
|
749
|
-
const registry = resolveItemTypeRegistry(settings, getActiveExtensionRegistrations());
|
|
750
|
-
const items = await listAllFrontMatterLight(pmRoot, settings.item_format, registry.type_to_folder, [], schema);
|
|
751
|
-
return items.filter((item) => {
|
|
752
|
-
const value = item[metadataKey];
|
|
753
|
-
if (value === void 0 || value === null) {
|
|
754
|
-
return false;
|
|
755
|
-
}
|
|
756
|
-
if (Array.isArray(value)) {
|
|
757
|
-
return value.length > 0;
|
|
758
|
-
}
|
|
759
|
-
if (typeof value === "string") {
|
|
760
|
-
return value.trim().length > 0;
|
|
761
|
-
}
|
|
762
|
-
return true;
|
|
763
|
-
}).length;
|
|
764
|
-
}
|
|
765
|
-
async function runSchemaRemoveField(key, options, global) {
|
|
766
|
-
const pmRoot = resolvePmRoot(process.cwd(), global.path);
|
|
767
|
-
await ensureInitialized(pmRoot);
|
|
768
|
-
const settings = await readSettings(pmRoot);
|
|
769
|
-
const schema = normalizeRuntimeSchemaSettings(settings.schema);
|
|
770
|
-
const fieldsPath = fieldsPathFor(pmRoot, schema);
|
|
771
|
-
const warnings = [];
|
|
772
|
-
const author = toAuthor(options.author, settings.author_default);
|
|
773
|
-
const governance = resolveGovernanceKnobs(settings);
|
|
774
|
-
const releaseLock = await acquireLock(pmRoot, SCHEMA_FIELDS_LOCK_ID, settings.locks.ttl_seconds, author, Boolean(options.force), governance.force_required_for_stale_lock, settings.locks.wait_ms);
|
|
775
|
-
let removal;
|
|
776
|
-
try {
|
|
777
|
-
const previousRaw = await readFileIfExists(fieldsPath);
|
|
778
|
-
let parsed;
|
|
779
|
-
try {
|
|
780
|
-
parsed = parseFieldsFile(previousRaw);
|
|
781
|
-
} catch (error) {
|
|
782
|
-
throw new PmCliError(error instanceof Error ? error.message : String(error), EXIT_CODE.GENERIC_FAILURE);
|
|
783
|
-
}
|
|
784
|
-
try {
|
|
785
|
-
removal = removeField(parsed, key);
|
|
786
|
-
} catch (error) {
|
|
787
|
-
throw new PmCliError(error instanceof Error ? error.message : String(error), EXIT_CODE.USAGE);
|
|
788
|
-
}
|
|
789
|
-
if (removal.removed) {
|
|
790
|
-
const removedKey = normalizeFieldKey(removal.definition?.key ?? key);
|
|
791
|
-
const metadataKey = normalizeFieldKey(removal.definition?.metadata_key ?? removal.definition?.front_matter_key ?? removedKey);
|
|
792
|
-
if (metadataKey.length > 0) {
|
|
793
|
-
const usingField = await countItemsUsingField(pmRoot, settings, schema, metadataKey);
|
|
794
|
-
if (usingField > 0) {
|
|
795
|
-
warnings.push(`items_using_field:${usingField}`);
|
|
796
|
-
}
|
|
797
|
-
}
|
|
798
|
-
await writeFileAtomic(fieldsPath, serializeFieldsFile(removal.file));
|
|
799
|
-
warnings.push(...await runActiveOnWriteHooks({
|
|
800
|
-
path: fieldsPath,
|
|
801
|
-
scope: "project",
|
|
802
|
-
op: "schema:remove-field"
|
|
803
|
-
}));
|
|
804
|
-
}
|
|
805
|
-
} finally {
|
|
806
|
-
await releaseLock();
|
|
807
|
-
}
|
|
808
|
-
return {
|
|
809
|
-
action: "remove-field",
|
|
810
|
-
removed: removal.removed,
|
|
811
|
-
...removal.definition ? { field: removal.definition } : {},
|
|
812
|
-
file: {
|
|
813
|
-
path: fieldsPath,
|
|
814
|
-
fields: removal.file.fields.length
|
|
815
|
-
},
|
|
816
|
-
warnings: [...new Set(warnings)].sort((left, right) => left.localeCompare(right)),
|
|
817
|
-
generated_at: nowIso()
|
|
818
|
-
};
|
|
819
|
-
}
|
|
820
|
-
async function runSchemaListFields(global) {
|
|
821
|
-
const context = await loadSchemaInspectionContext(global);
|
|
822
|
-
const fields = resolveRuntimeFieldRegistry(context.schema).definitions.map(toSchemaFieldSummary);
|
|
823
|
-
return {
|
|
824
|
-
action: "list-fields",
|
|
825
|
-
fields,
|
|
826
|
-
counts: {
|
|
827
|
-
total: fields.length
|
|
828
|
-
},
|
|
829
|
-
file: {
|
|
830
|
-
path: fieldsPathFor(context.pmRoot, context.schema)
|
|
831
|
-
},
|
|
832
|
-
generated_at: nowIso()
|
|
833
|
-
};
|
|
834
|
-
}
|
|
835
|
-
async function runSchemaShowField(key, global) {
|
|
836
|
-
const fieldKey = normalizeFieldKey(key);
|
|
837
|
-
if (fieldKey.length === 0) {
|
|
838
|
-
throw new PmCliError("Field key must not be empty.", EXIT_CODE.USAGE);
|
|
839
|
-
}
|
|
840
|
-
const context = await loadSchemaInspectionContext(global);
|
|
841
|
-
const match = resolveRuntimeFieldRegistry(context.schema).by_key.get(fieldKey);
|
|
842
|
-
if (!match) {
|
|
843
|
-
throw new PmCliError(`Unknown custom field "${key}". Run pm schema list-fields to inspect registered fields, or pm schema add-field "${escapeForDoubleQuotes(key ?? "")}" to register it.`, EXIT_CODE.NOT_FOUND, { code: "unknown_field" });
|
|
844
|
-
}
|
|
845
|
-
return {
|
|
846
|
-
action: "show-field",
|
|
847
|
-
field: toSchemaFieldSummary(match),
|
|
848
|
-
file: {
|
|
849
|
-
path: fieldsPathFor(context.pmRoot, context.schema)
|
|
850
|
-
},
|
|
851
|
-
generated_at: nowIso()
|
|
852
|
-
};
|
|
853
|
-
}
|
|
854
|
-
async function runSchemaApplyPreset(preset, options, global) {
|
|
855
|
-
const pmRoot = resolvePmRoot(process.cwd(), global.path);
|
|
856
|
-
await ensureInitialized(pmRoot);
|
|
857
|
-
let presetName;
|
|
858
|
-
try {
|
|
859
|
-
const normalized = normalizeTypePresetName(preset);
|
|
860
|
-
if (normalized === void 0) {
|
|
861
|
-
throw new Error(`Type preset name is required. Allowed: ${TYPE_PRESET_NAMES.join(", ")}.`);
|
|
862
|
-
}
|
|
863
|
-
presetName = normalized;
|
|
864
|
-
} catch (error) {
|
|
865
|
-
throw new PmCliError(error instanceof Error ? error.message : String(error), EXIT_CODE.USAGE);
|
|
866
|
-
}
|
|
867
|
-
const settings = await readSettings(pmRoot);
|
|
868
|
-
const schema = normalizeRuntimeSchemaSettings(settings.schema);
|
|
869
|
-
const typesPath = typesPathFor(pmRoot, schema);
|
|
870
|
-
const warnings = [];
|
|
871
|
-
const author = toAuthor(options.author, settings.author_default);
|
|
872
|
-
const governance = resolveGovernanceKnobs(settings);
|
|
873
|
-
const registered = [];
|
|
874
|
-
const replaced = [];
|
|
875
|
-
let definitionsCount = 0;
|
|
876
|
-
const releaseLock = await acquireLock(pmRoot, SCHEMA_TYPES_LOCK_ID, settings.locks.ttl_seconds, author, Boolean(options.force), governance.force_required_for_stale_lock, settings.locks.wait_ms);
|
|
877
|
-
try {
|
|
878
|
-
const previousRaw = await readFileIfExists(typesPath);
|
|
879
|
-
let parsed;
|
|
880
|
-
try {
|
|
881
|
-
parsed = parseItemTypesFile(previousRaw);
|
|
882
|
-
} catch (error) {
|
|
883
|
-
throw new PmCliError(error instanceof Error ? error.message : String(error), EXIT_CODE.GENERIC_FAILURE);
|
|
884
|
-
}
|
|
885
|
-
let nextFile = parsed;
|
|
886
|
-
for (const normalized of resolveTypePresetDefinitions(presetName)) {
|
|
887
|
-
const upsert = upsertItemType(nextFile, normalized);
|
|
888
|
-
nextFile = upsert.file;
|
|
889
|
-
(upsert.replaced ? replaced : registered).push(upsert.definition.name);
|
|
890
|
-
}
|
|
891
|
-
definitionsCount = nextFile.definitions.length;
|
|
892
|
-
await writeFileAtomic(typesPath, serializeItemTypesFile(nextFile));
|
|
893
|
-
await ensureTypeFolderScaffold(pmRoot, resolveTypePresetDefinitions(presetName), warnings, "schema:apply-preset-folder");
|
|
894
|
-
warnings.push(...await runActiveOnWriteHooks({
|
|
895
|
-
path: typesPath,
|
|
896
|
-
scope: "project",
|
|
897
|
-
op: "schema:apply-preset"
|
|
898
|
-
}));
|
|
899
|
-
} finally {
|
|
900
|
-
await releaseLock();
|
|
901
|
-
}
|
|
902
|
-
return {
|
|
903
|
-
action: "apply-preset",
|
|
904
|
-
preset: presetName,
|
|
905
|
-
registered,
|
|
906
|
-
replaced,
|
|
907
|
-
file: {
|
|
908
|
-
path: typesPath,
|
|
909
|
-
definitions: definitionsCount
|
|
910
|
-
},
|
|
911
|
-
warnings: [...new Set(warnings)].sort((left, right) => left.localeCompare(right)),
|
|
912
|
-
generated_at: nowIso()
|
|
913
|
-
};
|
|
914
|
-
}
|
|
915
|
-
async function runSchemaInferTypes(options, global) {
|
|
916
|
-
const pmRoot = resolvePmRoot(process.cwd(), global.path);
|
|
917
|
-
await ensureInitialized(pmRoot);
|
|
918
|
-
const settings = await readSettings(pmRoot);
|
|
919
|
-
const schema = normalizeRuntimeSchemaSettings(settings.schema);
|
|
920
|
-
const typesPath = typesPathFor(pmRoot, schema);
|
|
921
|
-
let minCount = 10;
|
|
922
|
-
if (options.minCount !== void 0) {
|
|
923
|
-
if (!Number.isInteger(options.minCount) || options.minCount < 1) {
|
|
924
|
-
throw new PmCliError("--min-count must be a positive integer (>= 1).", EXIT_CODE.USAGE);
|
|
925
|
-
}
|
|
926
|
-
minCount = options.minCount;
|
|
927
|
-
}
|
|
928
|
-
const registry = resolveItemTypeRegistry(settings, getActiveExtensionRegistrations());
|
|
929
|
-
const items = await listAllFrontMatterLight(pmRoot, settings.item_format, registry.type_to_folder, [], schema);
|
|
930
|
-
const titles = items.map((item) => typeof item.title === "string" ? item.title : "");
|
|
931
|
-
const candidates = inferTypesFromTitles(titles, { minCount });
|
|
932
|
-
const warnings = [];
|
|
933
|
-
const registered = [];
|
|
934
|
-
const replaced = [];
|
|
935
|
-
const skipped = [];
|
|
936
|
-
let definitionsCount;
|
|
937
|
-
if (!options.apply) {
|
|
938
|
-
let parsed;
|
|
939
|
-
try {
|
|
940
|
-
parsed = parseItemTypesFile(await readFileIfExists(typesPath));
|
|
941
|
-
} catch (error) {
|
|
942
|
-
throw new PmCliError(error instanceof Error ? error.message : String(error), EXIT_CODE.GENERIC_FAILURE);
|
|
943
|
-
}
|
|
944
|
-
definitionsCount = parsed.definitions.length;
|
|
945
|
-
return {
|
|
946
|
-
action: "infer-types",
|
|
947
|
-
applied: false,
|
|
948
|
-
min_count: minCount,
|
|
949
|
-
candidates,
|
|
950
|
-
registered,
|
|
951
|
-
replaced,
|
|
952
|
-
skipped,
|
|
953
|
-
file: {
|
|
954
|
-
path: typesPath,
|
|
955
|
-
definitions: definitionsCount
|
|
956
|
-
},
|
|
957
|
-
warnings,
|
|
958
|
-
generated_at: nowIso()
|
|
959
|
-
};
|
|
960
|
-
}
|
|
961
|
-
const author = toAuthor(options.author, settings.author_default);
|
|
962
|
-
const governance = resolveGovernanceKnobs(settings);
|
|
963
|
-
const releaseLock = await acquireLock(pmRoot, SCHEMA_TYPES_LOCK_ID, settings.locks.ttl_seconds, author, Boolean(options.force), governance.force_required_for_stale_lock, settings.locks.wait_ms);
|
|
964
|
-
try {
|
|
965
|
-
const previousRaw = await readFileIfExists(typesPath);
|
|
966
|
-
let parsed;
|
|
967
|
-
try {
|
|
968
|
-
parsed = parseItemTypesFile(previousRaw);
|
|
969
|
-
} catch (error) {
|
|
970
|
-
throw new PmCliError(error instanceof Error ? error.message : String(error), EXIT_CODE.GENERIC_FAILURE);
|
|
971
|
-
}
|
|
972
|
-
let nextFile = parsed;
|
|
973
|
-
for (const candidate of candidates) {
|
|
974
|
-
if (candidate.shadows_builtin) {
|
|
975
|
-
skipped.push({ name: candidate.name, reason: "shadows_builtin" });
|
|
976
|
-
continue;
|
|
977
|
-
}
|
|
978
|
-
let normalized;
|
|
979
|
-
try {
|
|
980
|
-
normalized = normalizeAddTypeInput({ name: candidate.name });
|
|
981
|
-
} catch {
|
|
982
|
-
skipped.push({ name: candidate.name, reason: "invalid_type_token" });
|
|
983
|
-
continue;
|
|
984
|
-
}
|
|
985
|
-
const upsert = upsertItemType(nextFile, normalized);
|
|
986
|
-
nextFile = upsert.file;
|
|
987
|
-
(upsert.replaced ? replaced : registered).push(upsert.definition.name);
|
|
988
|
-
}
|
|
989
|
-
definitionsCount = nextFile.definitions.length;
|
|
990
|
-
await writeFileAtomic(typesPath, serializeItemTypesFile(nextFile));
|
|
991
|
-
await ensureTypeFolderScaffold(pmRoot, nextFile.definitions.filter((definition) => registered.includes(definition.name) || replaced.includes(definition.name)), warnings, "schema:infer-types-folder");
|
|
992
|
-
warnings.push(...await runActiveOnWriteHooks({
|
|
993
|
-
path: typesPath,
|
|
994
|
-
scope: "project",
|
|
995
|
-
op: "schema:infer-types"
|
|
996
|
-
}));
|
|
997
|
-
} finally {
|
|
998
|
-
await releaseLock();
|
|
999
|
-
}
|
|
1000
|
-
return {
|
|
1001
|
-
action: "infer-types",
|
|
1002
|
-
applied: true,
|
|
1003
|
-
min_count: minCount,
|
|
1004
|
-
candidates,
|
|
1005
|
-
registered,
|
|
1006
|
-
replaced,
|
|
1007
|
-
skipped,
|
|
1008
|
-
file: {
|
|
1009
|
-
path: typesPath,
|
|
1010
|
-
definitions: definitionsCount
|
|
1011
|
-
},
|
|
1012
|
-
warnings: [...new Set(warnings)].sort((left, right) => left.localeCompare(right)),
|
|
1013
|
-
generated_at: nowIso()
|
|
1014
|
-
};
|
|
1015
|
-
}
|
|
1016
|
-
function formatSchemaAddTypeHuman(result) {
|
|
1017
|
-
const verb = result.replaced ? "Updated" : "Registered";
|
|
1018
|
-
const aliasSuffix = result.type.aliases && result.type.aliases.length > 0 ? ` (aliases: ${result.type.aliases.join(", ")})` : "";
|
|
1019
|
-
return `${verb} custom item type "${result.type.name}"${aliasSuffix} in ${result.file.path}. Run: pm create "${escapeForDoubleQuotes(result.type.name)}" "<title>"`;
|
|
1020
|
-
}
|
|
1021
|
-
function formatSchemaRemoveTypeHuman(result) {
|
|
1022
|
-
if (!result.removed) {
|
|
1023
|
-
return `No custom item type matched; nothing removed from ${result.file.path}.`;
|
|
1024
|
-
}
|
|
1025
|
-
const name = result.type?.name ?? "(unknown)";
|
|
1026
|
-
return `Removed custom item type "${name}" from ${result.file.path}.`;
|
|
1027
|
-
}
|
|
1028
|
-
function formatSchemaAddStatusHuman(result) {
|
|
1029
|
-
const verb = result.replaced ? "Updated" : "Registered";
|
|
1030
|
-
const roleSuffix = result.status.roles && result.status.roles.length > 0 ? ` (roles: ${result.status.roles.join(", ")})` : "";
|
|
1031
|
-
const aliasSuffix = result.status.aliases && result.status.aliases.length > 0 ? ` (aliases: ${result.status.aliases.join(", ")})` : "";
|
|
1032
|
-
return `${verb} status "${result.status.id}"${roleSuffix}${aliasSuffix} in ${result.file.path}.`;
|
|
1033
|
-
}
|
|
1034
|
-
function formatSchemaRemoveStatusHuman(result) {
|
|
1035
|
-
if (!result.removed) {
|
|
1036
|
-
return `No custom status matched; nothing removed from ${result.file.path}.`;
|
|
1037
|
-
}
|
|
1038
|
-
const id = result.status?.id ?? "(unknown)";
|
|
1039
|
-
return `Removed custom status "${id}" from ${result.file.path}.`;
|
|
1040
|
-
}
|
|
1041
|
-
function formatSchemaListHuman(result) {
|
|
1042
|
-
const lines = [
|
|
1043
|
-
`Schema types: ${result.counts.total} total (${result.counts.builtin} builtin, ${result.counts.custom} custom, ${result.counts.extension} extension)`
|
|
1044
|
-
];
|
|
1045
|
-
for (const [label, entries] of [
|
|
1046
|
-
["builtin", result.builtin],
|
|
1047
|
-
["custom", result.custom],
|
|
1048
|
-
["extension", result.extension]
|
|
1049
|
-
]) {
|
|
1050
|
-
if (entries.length === 0) {
|
|
1051
|
-
continue;
|
|
1052
|
-
}
|
|
1053
|
-
lines.push(`${label}: ${entries.map((entry) => entry.name).join(", ")}`);
|
|
1054
|
-
}
|
|
1055
|
-
lines.push(`statuses: ${result.statuses.counts.total} total (${result.statuses.counts.builtin} builtin, ${result.statuses.counts.custom} custom)`);
|
|
1056
|
-
for (const [label, entries] of [
|
|
1057
|
-
["builtin statuses", result.statuses.builtin],
|
|
1058
|
-
["custom statuses", result.statuses.custom]
|
|
1059
|
-
]) {
|
|
1060
|
-
if (entries.length === 0) {
|
|
1061
|
-
continue;
|
|
1062
|
-
}
|
|
1063
|
-
lines.push(`${label}: ${entries.map((entry) => entry.id).join(", ")}`);
|
|
1064
|
-
}
|
|
1065
|
-
lines.push(`custom fields: ${result.fields.counts.total} total`);
|
|
1066
|
-
if (result.fields.custom.length > 0) {
|
|
1067
|
-
lines.push(`fields: ${result.fields.custom.map((field) => `${field.key} (${field.type}, ${field.cli_flag})`).join(", ")}`);
|
|
1068
|
-
}
|
|
1069
|
-
lines.push(`Inspect one: pm schema show <Type>`);
|
|
1070
|
-
lines.push(`Inspect one status: pm schema show-status <status>`);
|
|
1071
|
-
lines.push(`Inspect one field: pm schema show-field <key>`);
|
|
1072
|
-
return lines.join("\n");
|
|
1073
|
-
}
|
|
1074
|
-
function formatSchemaShowHuman(result) {
|
|
1075
|
-
const parts = [
|
|
1076
|
-
`type: ${result.type.name}`,
|
|
1077
|
-
`source: ${result.type.source}`,
|
|
1078
|
-
`folder: ${result.type.folder}`
|
|
1079
|
-
];
|
|
1080
|
-
if (result.type.default_status) {
|
|
1081
|
-
parts.push(`default_status: ${result.type.default_status}`);
|
|
1082
|
-
}
|
|
1083
|
-
if (result.type.aliases.length > 0) {
|
|
1084
|
-
parts.push(`aliases: ${result.type.aliases.join(", ")}`);
|
|
1085
|
-
}
|
|
1086
|
-
if (result.type.description) {
|
|
1087
|
-
parts.push(`description: ${result.type.description}`);
|
|
1088
|
-
}
|
|
1089
|
-
if (result.type.options.length > 0) {
|
|
1090
|
-
parts.push(`options: ${result.type.options.map((option) => option.key).join(", ")}`);
|
|
1091
|
-
}
|
|
1092
|
-
return parts.join("\n");
|
|
1093
|
-
}
|
|
1094
|
-
function formatSchemaShowStatusHuman(result) {
|
|
1095
|
-
const parts = [
|
|
1096
|
-
`status: ${result.status.id}`,
|
|
1097
|
-
`source: ${result.status.source}`
|
|
1098
|
-
];
|
|
1099
|
-
if (result.status.roles.length > 0) {
|
|
1100
|
-
parts.push(`roles: ${result.status.roles.join(", ")}`);
|
|
1101
|
-
}
|
|
1102
|
-
if (result.status.aliases.length > 0) {
|
|
1103
|
-
parts.push(`aliases: ${result.status.aliases.join(", ")}`);
|
|
1104
|
-
}
|
|
1105
|
-
if (result.status.description) {
|
|
1106
|
-
parts.push(`description: ${result.status.description}`);
|
|
1107
|
-
}
|
|
1108
|
-
if (typeof result.status.order === "number") {
|
|
1109
|
-
parts.push(`order: ${result.status.order}`);
|
|
1110
|
-
}
|
|
1111
|
-
return parts.join("\n");
|
|
1112
|
-
}
|
|
1113
|
-
function formatFieldSummaryLine(field) {
|
|
1114
|
-
const flags = [];
|
|
1115
|
-
if (field.required) {
|
|
1116
|
-
flags.push("required");
|
|
1117
|
-
}
|
|
1118
|
-
if (field.required_on_create) {
|
|
1119
|
-
flags.push("required_on_create");
|
|
1120
|
-
}
|
|
1121
|
-
if (!field.allow_unset) {
|
|
1122
|
-
flags.push("no_unset");
|
|
1123
|
-
}
|
|
1124
|
-
const flagSuffix = flags.length > 0 ? ` [${flags.join(", ")}]` : "";
|
|
1125
|
-
return `${field.key} (${field.type}) ${field.cli_flag} commands=${field.commands.join("/")}${flagSuffix}`;
|
|
1126
|
-
}
|
|
1127
|
-
function formatSchemaAddFieldHuman(result) {
|
|
1128
|
-
const verb = result.replaced ? "Updated" : "Registered";
|
|
1129
|
-
return `${verb} custom field "${result.field.key}" in ${result.file.path}. Use it: pm create "<title>" --${(result.field.cli_flag ?? result.field.key).replaceAll("_", "-")} <value>`;
|
|
1130
|
-
}
|
|
1131
|
-
function formatSchemaRemoveFieldHuman(result) {
|
|
1132
|
-
if (!result.removed) {
|
|
1133
|
-
return `No custom field matched; nothing removed from ${result.file.path}.`;
|
|
1134
|
-
}
|
|
1135
|
-
const key = result.field?.key ?? "(unknown)";
|
|
1136
|
-
return `Removed custom field "${key}" from ${result.file.path}.`;
|
|
1137
|
-
}
|
|
1138
|
-
function formatSchemaListFieldsHuman(result) {
|
|
1139
|
-
const lines = [`Custom fields: ${result.counts.total} total`];
|
|
1140
|
-
for (const field of result.fields) {
|
|
1141
|
-
lines.push(` ${formatFieldSummaryLine(field)}`);
|
|
1142
|
-
}
|
|
1143
|
-
lines.push(`Inspect one: pm schema show-field <key>`);
|
|
1144
|
-
return lines.join("\n");
|
|
1145
|
-
}
|
|
1146
|
-
function formatSchemaShowFieldHuman(result) {
|
|
1147
|
-
const field = result.field;
|
|
1148
|
-
const parts = [
|
|
1149
|
-
`field: ${field.key}`,
|
|
1150
|
-
`type: ${field.type}`,
|
|
1151
|
-
`cli_flag: ${field.cli_flag}`,
|
|
1152
|
-
`commands: ${field.commands.join(", ")}`
|
|
1153
|
-
];
|
|
1154
|
-
if (field.cli_aliases.length > 0) {
|
|
1155
|
-
parts.push(`cli_aliases: ${field.cli_aliases.join(", ")}`);
|
|
1156
|
-
}
|
|
1157
|
-
if (field.description) {
|
|
1158
|
-
parts.push(`description: ${field.description}`);
|
|
1159
|
-
}
|
|
1160
|
-
if (field.required) {
|
|
1161
|
-
parts.push(`required: true`);
|
|
1162
|
-
}
|
|
1163
|
-
if (field.required_on_create) {
|
|
1164
|
-
parts.push(`required_on_create: true`);
|
|
1165
|
-
}
|
|
1166
|
-
if (!field.allow_unset) {
|
|
1167
|
-
parts.push(`allow_unset: false`);
|
|
1168
|
-
}
|
|
1169
|
-
if (field.required_types.length > 0) {
|
|
1170
|
-
parts.push(`required_types: ${field.required_types.join(", ")}`);
|
|
1171
|
-
}
|
|
1172
|
-
return parts.join("\n");
|
|
1173
|
-
}
|
|
1174
|
-
function formatSchemaApplyPresetHuman(result) {
|
|
1175
|
-
const registered = result.registered.length > 0 ? `registered: ${result.registered.join(", ")}` : "";
|
|
1176
|
-
const replaced = result.replaced.length > 0 ? `updated: ${result.replaced.join(", ")}` : "";
|
|
1177
|
-
const detail = [registered, replaced].filter((part) => part.length > 0).join("; ");
|
|
1178
|
-
return `Applied "${result.preset}" type preset to ${result.file.path}${detail.length > 0 ? ` (${detail})` : ""}.`;
|
|
1179
|
-
}
|
|
1180
|
-
function formatSchemaInferTypesHuman(result) {
|
|
1181
|
-
if (result.candidates.length === 0) {
|
|
1182
|
-
return `No title-prefix conventions found with at least ${result.min_count} items. Lower the threshold with --min-count <n>.`;
|
|
1183
|
-
}
|
|
1184
|
-
const lines = result.applied ? [`Inferred and registered custom types from title prefixes (min-count ${result.min_count}):`] : [`Inferred custom type candidates from title prefixes (min-count ${result.min_count}, dry-run):`];
|
|
1185
|
-
for (const candidate of result.candidates) {
|
|
1186
|
-
const note = candidate.shadows_builtin ? " [shadows built-in, skipped]" : "";
|
|
1187
|
-
lines.push(` ${candidate.name} <- "${candidate.prefix}" (${candidate.count} items)${note}`);
|
|
1188
|
-
}
|
|
1189
|
-
if (!result.applied) {
|
|
1190
|
-
lines.push(`Re-run with --apply to register the non-shadowing candidates.`);
|
|
1191
|
-
} else {
|
|
1192
|
-
if (result.registered.length > 0) {
|
|
1193
|
-
lines.push(`registered: ${result.registered.join(", ")}`);
|
|
1194
|
-
}
|
|
1195
|
-
if (result.replaced.length > 0) {
|
|
1196
|
-
lines.push(`updated: ${result.replaced.join(", ")}`);
|
|
1197
|
-
}
|
|
1198
|
-
}
|
|
1199
|
-
return lines.join("\n");
|
|
1200
|
-
}
|
|
1201
|
-
var _testOnlySchemaCommand = {
|
|
1202
|
-
toAuthor,
|
|
1203
|
-
workflowSlotsReferencing
|
|
1204
|
-
};
|
|
1205
|
-
|
|
1206
|
-
export {
|
|
1207
|
-
SCHEMA_SUBCOMMANDS,
|
|
1208
|
-
runSchemaAddType,
|
|
1209
|
-
runSchemaRemoveType,
|
|
1210
|
-
ensureTypeFolderScaffold,
|
|
1211
|
-
runSchemaAddStatus,
|
|
1212
|
-
runSchemaRemoveStatus,
|
|
1213
|
-
runSchemaList,
|
|
1214
|
-
runSchemaShow,
|
|
1215
|
-
runSchemaShowStatus,
|
|
1216
|
-
runSchemaAddField,
|
|
1217
|
-
runSchemaRemoveField,
|
|
1218
|
-
runSchemaListFields,
|
|
1219
|
-
runSchemaShowField,
|
|
1220
|
-
runSchemaApplyPreset,
|
|
1221
|
-
runSchemaInferTypes,
|
|
1222
|
-
formatSchemaAddTypeHuman,
|
|
1223
|
-
formatSchemaRemoveTypeHuman,
|
|
1224
|
-
formatSchemaAddStatusHuman,
|
|
1225
|
-
formatSchemaRemoveStatusHuman,
|
|
1226
|
-
formatSchemaListHuman,
|
|
1227
|
-
formatSchemaShowHuman,
|
|
1228
|
-
formatSchemaShowStatusHuman,
|
|
1229
|
-
formatSchemaAddFieldHuman,
|
|
1230
|
-
formatSchemaRemoveFieldHuman,
|
|
1231
|
-
formatSchemaListFieldsHuman,
|
|
1232
|
-
formatSchemaShowFieldHuman,
|
|
1233
|
-
formatSchemaApplyPresetHuman,
|
|
1234
|
-
formatSchemaInferTypesHuman,
|
|
1235
|
-
_testOnlySchemaCommand
|
|
1236
|
-
};
|
|
1237
|
-
//# sourceMappingURL=chunk-PJ3A56YF.js.map
|
|
1238
|
-
|
|
1239
|
-
//# debugId=d5198112-9083-5c72-8583-3c24e460da48
|