@unbrained/pm-cli 2026.7.5 → 2026.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/cli-bundle/chunks/activity-WJCGCYPU.js +18 -0
- package/dist/cli-bundle/chunks/activity-Z6QUAUSG.js +22 -0
- package/dist/cli-bundle/chunks/aggregate-BDM6EIAR.js +25 -0
- package/dist/cli-bundle/chunks/aggregate-VQ2DHU3S.js +21 -0
- package/dist/cli-bundle/chunks/append-BGML6VLD.js +19 -0
- package/dist/cli-bundle/chunks/append-RKJYPU74.js +15 -0
- package/dist/cli-bundle/chunks/chunk-22KBU3MW.js +57 -0
- package/dist/cli-bundle/chunks/chunk-24YG75HI.js +634 -0
- package/dist/cli-bundle/chunks/chunk-2XG4IZON.js +218 -0
- package/dist/cli-bundle/chunks/chunk-3GCS5SKL.js +228 -0
- package/dist/cli-bundle/chunks/chunk-3KTN6IBA.js +2330 -0
- package/dist/cli-bundle/chunks/chunk-3N6RRO2Q.js +808 -0
- package/dist/cli-bundle/chunks/chunk-3N6RRO2Q.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-3UJRFJ5R.js +1573 -0
- package/dist/cli-bundle/chunks/chunk-3VHSI5FL.js +1001 -0
- package/dist/cli-bundle/chunks/chunk-425E4QL5.js +278 -0
- package/dist/cli-bundle/chunks/chunk-425E4QL5.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-45FYNUFJ.js +38 -0
- package/dist/cli-bundle/chunks/chunk-45FYNUFJ.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-46CUF5L6.js +1018 -0
- package/dist/cli-bundle/chunks/chunk-4CJFCTLM.js +222 -0
- package/dist/cli-bundle/chunks/chunk-4CJFCTLM.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-4HIFVN7N.js +249 -0
- package/dist/cli-bundle/chunks/chunk-4HIFVN7N.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-4IWYTWGF.js +819 -0
- package/dist/cli-bundle/chunks/chunk-4LELACOL.js +391 -0
- package/dist/cli-bundle/chunks/chunk-4LELACOL.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-4MZVRJOE.js +279 -0
- package/dist/cli-bundle/chunks/chunk-4MZVRJOE.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-4ZBE5GUN.js +184 -0
- package/dist/cli-bundle/chunks/chunk-4ZBE5GUN.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-57NWPFF2.js +5640 -0
- package/dist/cli-bundle/chunks/chunk-57NWPFF2.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-5AJXHQM7.js +268 -0
- package/dist/cli-bundle/chunks/chunk-5AJXHQM7.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-5BMM6XQY.js +508 -0
- package/dist/cli-bundle/chunks/chunk-5BMM6XQY.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-5GZ7TDD6.js +1868 -0
- package/dist/cli-bundle/chunks/chunk-5VAA4YHR.js +1749 -0
- package/dist/cli-bundle/chunks/chunk-64YKRTSV.js +1961 -0
- package/dist/cli-bundle/chunks/chunk-6LLVNJXT.js +429 -0
- package/dist/cli-bundle/chunks/chunk-6QBJLYBP.js +120 -0
- package/dist/cli-bundle/chunks/chunk-6QBJLYBP.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-7D7OOEYG.js +278 -0
- package/dist/cli-bundle/chunks/chunk-7D7OOEYG.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-7DT4WSH2.js +60 -0
- package/dist/cli-bundle/chunks/chunk-7WBAJSS6.js +102 -0
- package/dist/cli-bundle/chunks/chunk-AGHMOTGM.js +150 -0
- package/dist/cli-bundle/chunks/chunk-ALFPSEWO.js +112 -0
- package/dist/cli-bundle/chunks/chunk-AZYGZGGI.js +361 -0
- package/dist/cli-bundle/chunks/chunk-B6DUFX6H.js +1413 -0
- package/dist/cli-bundle/chunks/chunk-B6XS3R3O.js +275 -0
- package/dist/cli-bundle/chunks/chunk-B6XS3R3O.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-B7FRNMYN.js +421 -0
- package/dist/cli-bundle/chunks/chunk-B7FRNMYN.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-C5JBZRPU.js +1985 -0
- package/dist/cli-bundle/chunks/chunk-CFB33L7W.js +398 -0
- package/dist/cli-bundle/chunks/chunk-CFNGIXZP.js +784 -0
- package/dist/cli-bundle/chunks/chunk-CFNGIXZP.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-CL36D4PC.js +225 -0
- package/dist/cli-bundle/chunks/chunk-COSPOP7H.js +6677 -0
- package/dist/cli-bundle/chunks/chunk-COSPOP7H.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-COWTDV6B.js +3461 -0
- package/dist/cli-bundle/chunks/chunk-COWTDV6B.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-CRVYGJUI.js +553 -0
- package/dist/cli-bundle/chunks/chunk-CRVYGJUI.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-D2XRLB55.js +645 -0
- package/dist/cli-bundle/chunks/chunk-DEWEK6AN.js +1858 -0
- package/dist/cli-bundle/chunks/chunk-DMRNBQOI.js +1063 -0
- package/dist/cli-bundle/chunks/chunk-DMRNBQOI.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-E3SZTQ4K.js +1932 -0
- package/dist/cli-bundle/chunks/chunk-E42XTBSP.js +1359 -0
- package/dist/cli-bundle/chunks/chunk-E42XTBSP.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-EBRZZ54H.js +655 -0
- package/dist/cli-bundle/chunks/chunk-EBRZZ54H.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-EGAP5OWD.js +4712 -0
- package/dist/cli-bundle/chunks/chunk-EGAP5OWD.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-EGY6JBQ3.js +160 -0
- package/dist/cli-bundle/chunks/chunk-EKFNL33R.js +222 -0
- package/dist/cli-bundle/chunks/chunk-ENGQOEUY.js +1704 -0
- package/dist/cli-bundle/chunks/chunk-EOKXK3R3.js +2046 -0
- package/dist/cli-bundle/chunks/chunk-F3K4JGFD.js +121 -0
- package/dist/cli-bundle/chunks/chunk-FLZSGSQR.js +231 -0
- package/dist/cli-bundle/chunks/chunk-FOUYJE4A.js +2090 -0
- package/dist/cli-bundle/chunks/chunk-FOUYJE4A.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-FT3QTERD.js +550 -0
- package/dist/cli-bundle/chunks/chunk-G24G7ZAV.js +1570 -0
- package/dist/cli-bundle/chunks/chunk-G64OCSKU.js +444 -0
- package/dist/cli-bundle/chunks/chunk-GANUTS7W.js +1775 -0
- package/dist/cli-bundle/chunks/chunk-GBAX2ZAQ.js +401 -0
- package/dist/cli-bundle/chunks/chunk-GDDAGPWJ.js +105 -0
- package/dist/cli-bundle/chunks/chunk-GDDAGPWJ.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-GEYZ4G4O.js +239 -0
- package/dist/cli-bundle/chunks/chunk-GEYZ4G4O.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-GJ7QC5DJ.js +624 -0
- package/dist/cli-bundle/chunks/chunk-GPLPTGOV.js +530 -0
- package/dist/cli-bundle/chunks/chunk-GZRDYONU.js +1005 -0
- package/dist/cli-bundle/chunks/chunk-HFDADVJZ.js +1356 -0
- package/dist/cli-bundle/chunks/chunk-HFDADVJZ.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-HIHMT6WS.js +41 -0
- package/dist/cli-bundle/chunks/chunk-HIHMT6WS.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-HN6NSXNW.js +277 -0
- package/dist/cli-bundle/chunks/chunk-HN6NSXNW.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-HOVCGJSD.js +293 -0
- package/dist/cli-bundle/chunks/chunk-HOVCGJSD.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-I36Y7PCE.js +38 -0
- package/dist/cli-bundle/chunks/chunk-I36Y7PCE.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-IQNVQHOP.js +309 -0
- package/dist/cli-bundle/chunks/chunk-IQNVQHOP.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-IWVU4C2F.js +358 -0
- package/dist/cli-bundle/chunks/chunk-IX5BXEMX.js +267 -0
- package/dist/cli-bundle/chunks/chunk-JDDLOQAE.js +265 -0
- package/dist/cli-bundle/chunks/chunk-JJP45OEI.js +119 -0
- package/dist/cli-bundle/chunks/chunk-JQXPY7DN.js +2257 -0
- package/dist/cli-bundle/chunks/chunk-JQXPY7DN.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-JVH7QBVV.js +24 -0
- package/dist/cli-bundle/chunks/chunk-JVH7QBVV.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-K46RF36U.js +207 -0
- package/dist/cli-bundle/chunks/chunk-KERMZVY5.js +371 -0
- package/dist/cli-bundle/chunks/chunk-KERMZVY5.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-KGFUY7WN.js +814 -0
- package/dist/cli-bundle/chunks/chunk-KSRUHV2H.js +76 -0
- package/dist/cli-bundle/chunks/chunk-KSRUHV2H.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-KUOOJR35.js +260 -0
- package/dist/cli-bundle/chunks/chunk-L5PSPMZ4.js +277 -0
- package/dist/cli-bundle/chunks/chunk-LK6XLOGP.js +5799 -0
- package/dist/cli-bundle/chunks/chunk-LK6XLOGP.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-LP3HSFZ2.js +140 -0
- package/dist/cli-bundle/chunks/chunk-LP3HSFZ2.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-LPSSSDJR.js +1239 -0
- package/dist/cli-bundle/chunks/chunk-M7JNBQAD.js +225 -0
- package/dist/cli-bundle/chunks/chunk-M7JNBQAD.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-MA4SM3QZ.js +655 -0
- package/dist/cli-bundle/chunks/chunk-MAWDPCJW.js +1601 -0
- package/dist/cli-bundle/chunks/chunk-MAWDPCJW.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-MFAZSEM5.js +1031 -0
- package/dist/cli-bundle/chunks/chunk-MFSCBT5Q.js +995 -0
- package/dist/cli-bundle/chunks/chunk-ML5X7DP2.js +296 -0
- package/dist/cli-bundle/chunks/chunk-ML5X7DP2.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-MLIYFOE7.js +357 -0
- package/dist/cli-bundle/chunks/chunk-MR6FJ7LL.js +2043 -0
- package/dist/cli-bundle/chunks/chunk-MR6FJ7LL.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-MUH7A3FD.js +61 -0
- package/dist/cli-bundle/chunks/chunk-MVSP7WGJ.js +108 -0
- package/dist/cli-bundle/chunks/chunk-MVSP7WGJ.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-MVYWGY2A.js +262 -0
- package/dist/cli-bundle/chunks/chunk-MWMVPCIE.js +1423 -0
- package/dist/cli-bundle/chunks/chunk-MXYA5SAJ.js +2033 -0
- package/dist/cli-bundle/chunks/chunk-MXYA5SAJ.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-N745W3B3.js +1604 -0
- package/dist/cli-bundle/chunks/chunk-N745W3B3.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-NB7RLQFW.js +57 -0
- package/dist/cli-bundle/chunks/chunk-NB7RLQFW.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-NC33K5ZS.js +123 -0
- package/dist/cli-bundle/chunks/chunk-NC33K5ZS.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-NGXQ3PFT.js +263 -0
- package/dist/cli-bundle/chunks/chunk-NMP5I3I5.js +1615 -0
- package/dist/cli-bundle/chunks/chunk-NO442GWJ.js +41 -0
- package/dist/cli-bundle/chunks/chunk-NO442GWJ.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-NZEHECMW.js +658 -0
- package/dist/cli-bundle/chunks/chunk-NZEHECMW.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-O6AWCQRQ.js +124 -0
- package/dist/cli-bundle/chunks/chunk-OGWQ2IEP.js +240 -0
- package/dist/cli-bundle/chunks/chunk-PZUGEOPS.js +143 -0
- package/dist/cli-bundle/chunks/chunk-PZUGEOPS.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-QLMX7SRD.js +210 -0
- package/dist/cli-bundle/chunks/chunk-QX6HM775.js +398 -0
- package/dist/cli-bundle/chunks/chunk-QX6HM775.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-R5BMJX33.js +27 -0
- package/dist/cli-bundle/chunks/chunk-R5BMJX33.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-RCQZK2GO.js +296 -0
- package/dist/cli-bundle/chunks/chunk-RCQZK2GO.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-RFNYTESG.js +520 -0
- package/dist/cli-bundle/chunks/chunk-RKQOO2UM.js +79 -0
- package/dist/cli-bundle/chunks/chunk-RKQOO2UM.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-RQLT6ZWB.js +282 -0
- package/dist/cli-bundle/chunks/chunk-RQLT6ZWB.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-S3JS6YVZ.js +274 -0
- package/dist/cli-bundle/chunks/chunk-S3JS6YVZ.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-SCUR7K7N.js +2198 -0
- package/dist/cli-bundle/chunks/chunk-SGMFPXKR.js +68 -0
- package/dist/cli-bundle/chunks/chunk-SGMFPXKR.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-SHQY2IDC.js +1977 -0
- package/dist/cli-bundle/chunks/chunk-SMB7RV23.js +130 -0
- package/dist/cli-bundle/chunks/chunk-SPZ6DOGY.js +1041 -0
- package/dist/cli-bundle/chunks/chunk-SQOIV3OQ.js +563 -0
- package/dist/cli-bundle/chunks/chunk-SQOIV3OQ.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-SQYJ4HF2.js +1765 -0
- package/dist/cli-bundle/chunks/chunk-T42JWV3F.js +822 -0
- package/dist/cli-bundle/chunks/chunk-TKD5VCTD.js +6567 -0
- package/dist/cli-bundle/chunks/chunk-TKD5VCTD.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-TULGS6X6.js +2132 -0
- package/dist/cli-bundle/chunks/chunk-TZXRBVAM.js +2306 -0
- package/dist/cli-bundle/chunks/chunk-UH7T2DAX.js +181 -0
- package/dist/cli-bundle/chunks/chunk-UH7T2DAX.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-VIIUS6N6.js +4773 -0
- package/dist/cli-bundle/chunks/chunk-VIIUS6N6.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-VPIM42PC.js +367 -0
- package/dist/cli-bundle/chunks/chunk-VQRSPVME.js +368 -0
- package/dist/cli-bundle/chunks/chunk-VQRSPVME.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-W3DSJQIO.js +447 -0
- package/dist/cli-bundle/chunks/chunk-W572BIEB.js +1249 -0
- package/dist/cli-bundle/chunks/chunk-W6DYWXPQ.js +1073 -0
- package/dist/cli-bundle/chunks/chunk-W6DYWXPQ.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-WG34ZNQQ.js +3423 -0
- package/dist/cli-bundle/chunks/chunk-WG34ZNQQ.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-WLSM645P.js +2247 -0
- package/dist/cli-bundle/chunks/chunk-WLSM645P.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-WRTENIX3.js +215 -0
- package/dist/cli-bundle/chunks/chunk-WSBLYDWV.js +388 -0
- package/dist/cli-bundle/chunks/chunk-WSBLYDWV.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-XB7KFVFI.js +533 -0
- package/dist/cli-bundle/chunks/chunk-XC5BURG2.js +306 -0
- package/dist/cli-bundle/chunks/chunk-XC5BURG2.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-XDB7RWQT.js +424 -0
- package/dist/cli-bundle/chunks/chunk-XDB7RWQT.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-XG625QP4.js +58 -0
- package/dist/cli-bundle/chunks/chunk-XHET7YUZ.js +71 -0
- package/dist/cli-bundle/chunks/chunk-XHET7YUZ.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-XUC7PI2H.js +243 -0
- package/dist/cli-bundle/chunks/chunk-Y46GD4IX.js +116 -0
- package/dist/cli-bundle/chunks/chunk-Y4M7CPQP.js +804 -0
- package/dist/cli-bundle/chunks/chunk-Y6BK55A3.js +2128 -0
- package/dist/cli-bundle/chunks/chunk-Y6BK55A3.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-YN7Y6DQZ.js +426 -0
- package/dist/cli-bundle/chunks/chunk-Z3U3U5KD.js +511 -0
- package/dist/cli-bundle/chunks/chunk-Z3U3U5KD.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-ZGK4L4JM.js +133 -0
- package/dist/cli-bundle/chunks/chunk-ZJ262CED.js +394 -0
- package/dist/cli-bundle/chunks/chunk-ZJ262CED.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-ZO3XKAOP.js +299 -0
- package/dist/cli-bundle/chunks/chunk-ZO3XKAOP.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-ZSUS2OD3.js +2105 -0
- package/dist/cli-bundle/chunks/chunk-ZWBEPGD7.js +54 -0
- package/dist/cli-bundle/chunks/chunk-ZWBEPGD7.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-ZZD4J5XY.js +1570 -0
- package/dist/cli-bundle/chunks/claim-RFS7BROJ.js +19 -0
- package/dist/cli-bundle/chunks/claim-XP5AWZ5H.js +23 -0
- package/dist/cli-bundle/chunks/close-2SSSHHUZ.js +20 -0
- package/dist/cli-bundle/chunks/close-GEANHQ2J.js +16 -0
- package/dist/cli-bundle/chunks/close-many-CMZW7ITN.js +31 -0
- package/dist/cli-bundle/chunks/close-many-ZFDIG6M7.js +27 -0
- package/dist/cli-bundle/chunks/comments-MFSYVNNU.js +21 -0
- package/dist/cli-bundle/chunks/comments-XUBPXDYX.js +17 -0
- package/dist/cli-bundle/chunks/config-D7XQMONX.js +18 -0
- package/dist/cli-bundle/chunks/config-T4FHBSYN.js +22 -0
- package/dist/cli-bundle/chunks/context-DIU275XI.js +48 -0
- package/dist/cli-bundle/chunks/context-JCOYB4LZ.js +44 -0
- package/dist/cli-bundle/chunks/contracts-BVO7CSLK.js +12 -0
- package/dist/cli-bundle/chunks/contracts-NYPEW2G4.js +16 -0
- package/dist/cli-bundle/chunks/copy-32ROBIDL.js +17 -0
- package/dist/cli-bundle/chunks/copy-NAGLGMHZ.js +13 -0
- package/dist/cli-bundle/chunks/create-4V7SWNBB.js +30 -0
- package/dist/cli-bundle/chunks/create-E77SDCUP.js +34 -0
- package/dist/cli-bundle/chunks/delete-NQI5OSKN.js +14 -0
- package/dist/cli-bundle/chunks/delete-RA5KTCLB.js +18 -0
- package/dist/cli-bundle/chunks/deps-32SU7HO5.js +21 -0
- package/dist/cli-bundle/chunks/deps-T7SCWXEX.js +17 -0
- package/dist/cli-bundle/chunks/docs-RRUPT7O2.js +22 -0
- package/dist/cli-bundle/chunks/docs-WL2IWGWV.js +18 -0
- package/dist/cli-bundle/chunks/eval-NF2J5SHR.js +23 -0
- package/dist/cli-bundle/chunks/eval-SKDT3MZU.js +27 -0
- package/dist/cli-bundle/chunks/extension-LAXKCAYE.js +42 -0
- package/dist/cli-bundle/chunks/extension-LAXKCAYE.js.map +1 -0
- package/dist/cli-bundle/chunks/extension-ZISPBRBC.js +38 -0
- package/dist/cli-bundle/chunks/extension-ZISPBRBC.js.map +7 -0
- package/dist/cli-bundle/chunks/files-EWRQHGIS.js +22 -0
- package/dist/cli-bundle/chunks/files-EWRQHGIS.js.map +7 -0
- package/dist/cli-bundle/chunks/files-PYKR2UUG.js +26 -0
- package/dist/cli-bundle/chunks/files-PYKR2UUG.js.map +1 -0
- package/dist/cli-bundle/chunks/focus-4T7TM4MT.js +18 -0
- package/dist/cli-bundle/chunks/focus-4T7TM4MT.js.map +1 -0
- package/dist/cli-bundle/chunks/focus-L3YUASOD.js +14 -0
- package/dist/cli-bundle/chunks/focus-L3YUASOD.js.map +7 -0
- package/dist/cli-bundle/chunks/gc-2DNMPXMC.js +16 -0
- package/dist/cli-bundle/chunks/gc-2DNMPXMC.js.map +1 -0
- package/dist/cli-bundle/chunks/gc-2PCTYYRI.js +12 -0
- package/dist/cli-bundle/chunks/gc-2PCTYYRI.js.map +7 -0
- package/dist/cli-bundle/chunks/get-7DMITJ3G.js +23 -0
- package/dist/cli-bundle/chunks/get-7DMITJ3G.js.map +1 -0
- package/dist/cli-bundle/chunks/get-VKQXCXLL.js +19 -0
- package/dist/cli-bundle/chunks/get-VKQXCXLL.js.map +7 -0
- package/dist/cli-bundle/chunks/health-CVSTAR2F.js +31 -0
- package/dist/cli-bundle/chunks/health-CVSTAR2F.js.map +7 -0
- package/dist/cli-bundle/chunks/health-TV3GKTFN.js +35 -0
- package/dist/cli-bundle/chunks/health-TV3GKTFN.js.map +1 -0
- package/dist/cli-bundle/chunks/history-D4JUX5XV.js +20 -0
- package/dist/cli-bundle/chunks/history-D4JUX5XV.js.map +7 -0
- package/dist/cli-bundle/chunks/history-LQ2UWZTE.js +24 -0
- package/dist/cli-bundle/chunks/history-LQ2UWZTE.js.map +1 -0
- package/dist/cli-bundle/chunks/history-compact-3MNXLKAT.js +29 -0
- package/dist/cli-bundle/chunks/history-compact-3MNXLKAT.js.map +1 -0
- package/dist/cli-bundle/chunks/history-compact-QWEO32FP.js +25 -0
- package/dist/cli-bundle/chunks/history-compact-QWEO32FP.js.map +7 -0
- package/dist/cli-bundle/chunks/history-redact-3OIVBVIY.js +21 -0
- package/dist/cli-bundle/chunks/history-redact-3OIVBVIY.js.map +7 -0
- package/dist/cli-bundle/chunks/history-redact-P6DYF55G.js +25 -0
- package/dist/cli-bundle/chunks/history-redact-P6DYF55G.js.map +1 -0
- package/dist/cli-bundle/chunks/history-repair-I3E73UGQ.js +23 -0
- package/dist/cli-bundle/chunks/history-repair-I3E73UGQ.js.map +7 -0
- package/dist/cli-bundle/chunks/history-repair-ZJQFMWPD.js +27 -0
- package/dist/cli-bundle/chunks/history-repair-ZJQFMWPD.js.map +1 -0
- package/dist/cli-bundle/chunks/init-C3LJPWQZ.js +30 -0
- package/dist/cli-bundle/chunks/init-C3LJPWQZ.js.map +1 -0
- package/dist/cli-bundle/chunks/init-J3DPGWQI.js +26 -0
- package/dist/cli-bundle/chunks/init-J3DPGWQI.js.map +7 -0
- package/dist/cli-bundle/chunks/learnings-5BO2SNDW.js +21 -0
- package/dist/cli-bundle/chunks/learnings-5BO2SNDW.js.map +1 -0
- package/dist/cli-bundle/chunks/learnings-OGP4JB4I.js +17 -0
- package/dist/cli-bundle/chunks/learnings-OGP4JB4I.js.map +7 -0
- package/dist/cli-bundle/chunks/list-O5NZVSPN.js +36 -0
- package/dist/cli-bundle/chunks/list-O5NZVSPN.js.map +1 -0
- package/dist/cli-bundle/chunks/list-Z55YCNTC.js +32 -0
- package/dist/cli-bundle/chunks/list-Z55YCNTC.js.map +7 -0
- package/dist/cli-bundle/chunks/next-GBNTGXFC.js +28 -0
- package/dist/cli-bundle/chunks/next-GBNTGXFC.js.map +7 -0
- package/dist/cli-bundle/chunks/next-QKW7PTKE.js +32 -0
- package/dist/cli-bundle/chunks/next-QKW7PTKE.js.map +1 -0
- package/dist/cli-bundle/chunks/notes-R5FZTKWF.js +17 -0
- package/dist/cli-bundle/chunks/notes-R5FZTKWF.js.map +7 -0
- package/dist/cli-bundle/chunks/notes-WCGIULVG.js +21 -0
- package/dist/cli-bundle/chunks/notes-WCGIULVG.js.map +1 -0
- package/dist/cli-bundle/chunks/plan-ADISFYH4.js +29 -0
- package/dist/cli-bundle/chunks/plan-ADISFYH4.js.map +7 -0
- package/dist/cli-bundle/chunks/plan-CHVE7PBR.js +33 -0
- package/dist/cli-bundle/chunks/plan-CHVE7PBR.js.map +1 -0
- package/dist/cli-bundle/chunks/profile-LD23PSI6.js +37 -0
- package/dist/cli-bundle/chunks/profile-LD23PSI6.js.map +7 -0
- package/dist/cli-bundle/chunks/profile-ZXGSKBJD.js +41 -0
- package/dist/cli-bundle/chunks/profile-ZXGSKBJD.js.map +1 -0
- package/dist/cli-bundle/chunks/register-list-query-B42JCCOI.js +409 -0
- package/dist/cli-bundle/chunks/register-list-query-OEYQHFXO.js +419 -0
- package/dist/cli-bundle/chunks/register-mutation-3QXIHCQG.js +1273 -0
- package/dist/cli-bundle/chunks/register-mutation-IAEST26S.js +1256 -0
- package/dist/cli-bundle/chunks/register-operations-I3M3U7DS.js +19 -0
- package/dist/cli-bundle/chunks/register-operations-I3M3U7DS.js.map +7 -0
- package/dist/cli-bundle/chunks/register-operations-UHKENLZV.js +23 -0
- package/dist/cli-bundle/chunks/register-operations-UHKENLZV.js.map +1 -0
- package/dist/cli-bundle/chunks/register-setup-3ZVVX2VN.js +324 -0
- package/dist/cli-bundle/chunks/register-setup-3ZVVX2VN.js.map +7 -0
- package/dist/cli-bundle/chunks/register-setup-Q6KFNIOZ.js +321 -0
- package/dist/cli-bundle/chunks/register-setup-Q6KFNIOZ.js.map +1 -0
- package/dist/cli-bundle/chunks/restore-5RQHAPMA.js +23 -0
- package/dist/cli-bundle/chunks/restore-5RQHAPMA.js.map +1 -0
- package/dist/cli-bundle/chunks/restore-PNEIBBLW.js +19 -0
- package/dist/cli-bundle/chunks/restore-PNEIBBLW.js.map +7 -0
- package/dist/cli-bundle/chunks/scheduling-shortcuts-4G56YHVQ.js +29 -0
- package/dist/cli-bundle/chunks/scheduling-shortcuts-4G56YHVQ.js.map +1 -0
- package/dist/cli-bundle/chunks/scheduling-shortcuts-75DULBYP.js +25 -0
- package/dist/cli-bundle/chunks/scheduling-shortcuts-75DULBYP.js.map +7 -0
- package/dist/cli-bundle/chunks/schema-245WW4G2.js +78 -0
- package/dist/cli-bundle/chunks/schema-245WW4G2.js.map +1 -0
- package/dist/cli-bundle/chunks/schema-HBORFC6B.js +74 -0
- package/dist/cli-bundle/chunks/schema-HBORFC6B.js.map +7 -0
- package/dist/cli-bundle/chunks/search-AOZC5SIK.js +34 -0
- package/dist/cli-bundle/chunks/search-AOZC5SIK.js.map +7 -0
- package/dist/cli-bundle/chunks/search-DRXPGHD7.js +38 -0
- package/dist/cli-bundle/chunks/search-DRXPGHD7.js.map +1 -0
- package/dist/cli-bundle/chunks/stats-NJG4NLHG.js +21 -0
- package/dist/cli-bundle/chunks/stats-NJG4NLHG.js.map +1 -0
- package/dist/cli-bundle/chunks/stats-RG6AG4N2.js +17 -0
- package/dist/cli-bundle/chunks/stats-RG6AG4N2.js.map +7 -0
- package/dist/cli-bundle/chunks/telemetry-HQC2JJIF.js +14 -0
- package/dist/cli-bundle/chunks/telemetry-HQC2JJIF.js.map +7 -0
- package/dist/cli-bundle/chunks/telemetry-MPNL3HHY.js +18 -0
- package/dist/cli-bundle/chunks/telemetry-MPNL3HHY.js.map +1 -0
- package/dist/cli-bundle/chunks/test-6CMOCWUC.js +39 -0
- package/dist/cli-bundle/chunks/test-6CMOCWUC.js.map +7 -0
- package/dist/cli-bundle/chunks/test-RI7XHBZL.js +43 -0
- package/dist/cli-bundle/chunks/test-RI7XHBZL.js.map +1 -0
- package/dist/cli-bundle/chunks/test-all-7R7YRZIA.js +29 -0
- package/dist/cli-bundle/chunks/test-all-7R7YRZIA.js.map +7 -0
- package/dist/cli-bundle/chunks/test-all-QEIORFYW.js +33 -0
- package/dist/cli-bundle/chunks/test-all-QEIORFYW.js.map +1 -0
- package/dist/cli-bundle/chunks/test-runs-5Y2BOU2S.js +28 -0
- package/dist/cli-bundle/chunks/test-runs-5Y2BOU2S.js.map +1 -0
- package/dist/cli-bundle/chunks/test-runs-PVGC3GRZ.js +24 -0
- package/dist/cli-bundle/chunks/test-runs-PVGC3GRZ.js.map +7 -0
- package/dist/cli-bundle/chunks/update-QVJDFEAP.js +30 -0
- package/dist/cli-bundle/chunks/update-QVJDFEAP.js.map +1 -0
- package/dist/cli-bundle/chunks/update-VQVHAY6X.js +26 -0
- package/dist/cli-bundle/chunks/update-VQVHAY6X.js.map +7 -0
- package/dist/cli-bundle/chunks/update-many-S7XWBSB3.js +37 -0
- package/dist/cli-bundle/chunks/update-many-S7XWBSB3.js.map +7 -0
- package/dist/cli-bundle/chunks/update-many-YIYW6XQ6.js +41 -0
- package/dist/cli-bundle/chunks/update-many-YIYW6XQ6.js.map +1 -0
- package/dist/cli-bundle/chunks/upgrade-OPRXA56R.js +24 -0
- package/dist/cli-bundle/chunks/upgrade-OPRXA56R.js.map +7 -0
- package/dist/cli-bundle/chunks/upgrade-WH4BTQLX.js +28 -0
- package/dist/cli-bundle/chunks/upgrade-WH4BTQLX.js.map +1 -0
- package/dist/cli-bundle/chunks/validate-4NTXSB62.js +36 -0
- package/dist/cli-bundle/chunks/validate-4NTXSB62.js.map +1 -0
- package/dist/cli-bundle/chunks/validate-MUFXQZMI.js +32 -0
- package/dist/cli-bundle/chunks/validate-MUFXQZMI.js.map +7 -0
- package/dist/cli-bundle/main.js +16 -16
- package/dist/cli-bundle/sdk-runtime.js +88 -28
- package/dist/cli-bundle/sdk-testing.js +6 -6
- package/dist/cli-bundle/sdk.js +92 -49
- package/dist/cli-bundle/sdk.js.map +2 -2
- package/dist/mcp/server.d.ts +22 -50
- package/dist/mcp/server.js +62 -916
- package/dist/mcp/server.js.map +1 -1
- package/dist/sdk/index.d.ts +4 -2
- package/dist/sdk/index.js +4 -4
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/runtime.d.ts +168 -4
- package/dist/sdk/runtime.js +1149 -25
- package/dist/sdk/runtime.js.map +1 -1
- package/dist/sdk/workspace-contracts-cache.d.ts +17 -0
- package/dist/sdk/workspace-contracts-cache.js +36 -0
- package/dist/sdk/workspace-contracts-cache.js.map +1 -0
- package/docs/RELEASING.md +3 -1
- package/docs/SDK.md +46 -0
- package/docs/examples/sdk-app-embedding/run-embedded-pm.mjs +16 -2
- package/docs/examples/sdk-contract-consumer/inspect-contracts.mjs +16 -1
- package/package.json +1 -1
- package/dist/cli-bundle/chunks/activity-4XQIDNM5.js +0 -18
- package/dist/cli-bundle/chunks/activity-YKAKZTZ4.js +0 -22
- package/dist/cli-bundle/chunks/aggregate-EQX2RGB7.js +0 -375
- package/dist/cli-bundle/chunks/aggregate-EQX2RGB7.js.map +0 -7
- package/dist/cli-bundle/chunks/aggregate-PEGZGJXD.js +0 -372
- package/dist/cli-bundle/chunks/aggregate-PEGZGJXD.js.map +0 -1
- package/dist/cli-bundle/chunks/append-CZGUZ45Q.js +0 -73
- package/dist/cli-bundle/chunks/append-CZGUZ45Q.js.map +0 -7
- package/dist/cli-bundle/chunks/append-NSQBCXZJ.js +0 -70
- package/dist/cli-bundle/chunks/append-NSQBCXZJ.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-3JZNEQBA.js +0 -1413
- package/dist/cli-bundle/chunks/chunk-3PL6LEKP.js +0 -1961
- package/dist/cli-bundle/chunks/chunk-3U3VEWK6.js +0 -1749
- package/dist/cli-bundle/chunks/chunk-3Y4OESPP.js +0 -277
- package/dist/cli-bundle/chunks/chunk-4LRVSBO6.js +0 -822
- package/dist/cli-bundle/chunks/chunk-4OFLJHX6.js +0 -356
- package/dist/cli-bundle/chunks/chunk-4QQ6PM7M.js +0 -1249
- package/dist/cli-bundle/chunks/chunk-53BTLLAF.js +0 -2181
- package/dist/cli-bundle/chunks/chunk-53BTLLAF.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-57C2RLW5.js +0 -1704
- package/dist/cli-bundle/chunks/chunk-5B3X4Y22.js +0 -2330
- package/dist/cli-bundle/chunks/chunk-5J2XPTAD.js +0 -225
- package/dist/cli-bundle/chunks/chunk-5JE6SMYS.js +0 -262
- package/dist/cli-bundle/chunks/chunk-5JZ7APJU.js +0 -995
- package/dist/cli-bundle/chunks/chunk-5VVUKE3U.js +0 -5789
- package/dist/cli-bundle/chunks/chunk-5VVUKE3U.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-75U6M5ZD.js +0 -819
- package/dist/cli-bundle/chunks/chunk-7EQNAZX2.js +0 -1018
- package/dist/cli-bundle/chunks/chunk-7MDXZAZS.js +0 -102
- package/dist/cli-bundle/chunks/chunk-7QH7DHUB.js +0 -2046
- package/dist/cli-bundle/chunks/chunk-7WYXBPYQ.js +0 -358
- package/dist/cli-bundle/chunks/chunk-AAEQMOC6.js +0 -150
- package/dist/cli-bundle/chunks/chunk-ABRA3BHY.js +0 -429
- package/dist/cli-bundle/chunks/chunk-BFVHCAOO.js +0 -240
- package/dist/cli-bundle/chunks/chunk-BVEUCSH2.js +0 -530
- package/dist/cli-bundle/chunks/chunk-C3PMDWGX.js +0 -160
- package/dist/cli-bundle/chunks/chunk-D3UCE7RW.js +0 -243
- package/dist/cli-bundle/chunks/chunk-DC3QJQWI.js +0 -275
- package/dist/cli-bundle/chunks/chunk-DC3QJQWI.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-DLQ4ZTCU.js +0 -634
- package/dist/cli-bundle/chunks/chunk-DRBV5UC2.js +0 -231
- package/dist/cli-bundle/chunks/chunk-E2FUG6GD.js +0 -2184
- package/dist/cli-bundle/chunks/chunk-E2FUG6GD.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-EEY54JMF.js +0 -60
- package/dist/cli-bundle/chunks/chunk-EZFKWSC7.js +0 -1615
- package/dist/cli-bundle/chunks/chunk-FDBARR33.js +0 -655
- package/dist/cli-bundle/chunks/chunk-FGQKEDE4.js +0 -447
- package/dist/cli-bundle/chunks/chunk-FJRKQREY.js +0 -228
- package/dist/cli-bundle/chunks/chunk-FUM6UMY4.js +0 -804
- package/dist/cli-bundle/chunks/chunk-GIWXVMZ3.js +0 -3237
- package/dist/cli-bundle/chunks/chunk-GIWXVMZ3.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-HBYZDSK5.js +0 -426
- package/dist/cli-bundle/chunks/chunk-HJE4JTKQ.js +0 -124
- package/dist/cli-bundle/chunks/chunk-HK72NWAD.js +0 -1570
- package/dist/cli-bundle/chunks/chunk-IJ6CO3JV.js +0 -645
- package/dist/cli-bundle/chunks/chunk-JFCVQXZX.js +0 -3206
- package/dist/cli-bundle/chunks/chunk-JFCVQXZX.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-JLA7EVYV.js +0 -222
- package/dist/cli-bundle/chunks/chunk-K32L7HZO.js +0 -76
- package/dist/cli-bundle/chunks/chunk-K32L7HZO.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-K3AGVXSF.js +0 -444
- package/dist/cli-bundle/chunks/chunk-KDZ6K25I.js +0 -79
- package/dist/cli-bundle/chunks/chunk-KDZ6K25I.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-KL22PY6L.js +0 -915
- package/dist/cli-bundle/chunks/chunk-KL22PY6L.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-KLG4ZULO.js +0 -218
- package/dist/cli-bundle/chunks/chunk-LEKT4K7I.js +0 -2105
- package/dist/cli-bundle/chunks/chunk-MNZ7DRNC.js +0 -1858
- package/dist/cli-bundle/chunks/chunk-MTTXDAK4.js +0 -2198
- package/dist/cli-bundle/chunks/chunk-MZ7VNEVY.js +0 -520
- package/dist/cli-bundle/chunks/chunk-N6DNM2FA.js +0 -116
- package/dist/cli-bundle/chunks/chunk-N7X4WP6L.js +0 -1041
- package/dist/cli-bundle/chunks/chunk-NBFCNJ7Q.js +0 -2132
- package/dist/cli-bundle/chunks/chunk-NER3KUUS.js +0 -260
- package/dist/cli-bundle/chunks/chunk-OBA2WH65.js +0 -918
- package/dist/cli-bundle/chunks/chunk-OBA2WH65.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-OESSOFJ4.js +0 -1985
- package/dist/cli-bundle/chunks/chunk-OK5NXCZB.js +0 -238
- package/dist/cli-bundle/chunks/chunk-OK5NXCZB.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-OWTIRHX4.js +0 -112
- package/dist/cli-bundle/chunks/chunk-P3VRG72Q.js +0 -1765
- package/dist/cli-bundle/chunks/chunk-P5TFTLWW.js +0 -1423
- package/dist/cli-bundle/chunks/chunk-P5YORJRH.js +0 -1977
- package/dist/cli-bundle/chunks/chunk-PDXT6Q55.js +0 -58
- package/dist/cli-bundle/chunks/chunk-PJ3A56YF.js +0 -1239
- package/dist/cli-bundle/chunks/chunk-PPAJG4GB.js +0 -1031
- package/dist/cli-bundle/chunks/chunk-PPE4YUQM.js +0 -4725
- package/dist/cli-bundle/chunks/chunk-PPE4YUQM.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-QHZO65XW.js +0 -1775
- package/dist/cli-bundle/chunks/chunk-R3ZBLGTC.js +0 -814
- package/dist/cli-bundle/chunks/chunk-RCT3YJOK.js +0 -624
- package/dist/cli-bundle/chunks/chunk-RX3HQSYG.js +0 -265
- package/dist/cli-bundle/chunks/chunk-S4APD35C.js +0 -210
- package/dist/cli-bundle/chunks/chunk-S5AYOUT5.js +0 -130
- package/dist/cli-bundle/chunks/chunk-STPSZ2XY.js +0 -1149
- package/dist/cli-bundle/chunks/chunk-STPSZ2XY.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-T35XLYZF.js +0 -263
- package/dist/cli-bundle/chunks/chunk-T3ABIMGW.js +0 -361
- package/dist/cli-bundle/chunks/chunk-T3F4DF23.js +0 -267
- package/dist/cli-bundle/chunks/chunk-T4MX77AK.js +0 -272
- package/dist/cli-bundle/chunks/chunk-T4MX77AK.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-T5Y3QSNF.js +0 -5354
- package/dist/cli-bundle/chunks/chunk-T5Y3QSNF.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-TSPKZRRW.js +0 -1570
- package/dist/cli-bundle/chunks/chunk-TT42JUMF.js +0 -207
- package/dist/cli-bundle/chunks/chunk-UHKX7I75.js +0 -165
- package/dist/cli-bundle/chunks/chunk-UHKX7I75.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-UI5BJ6DO.js +0 -4786
- package/dist/cli-bundle/chunks/chunk-UI5BJ6DO.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-US3T3W5J.js +0 -1932
- package/dist/cli-bundle/chunks/chunk-UZRDBL6W.js +0 -175
- package/dist/cli-bundle/chunks/chunk-UZRDBL6W.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-VZIYHZDX.js +0 -1868
- package/dist/cli-bundle/chunks/chunk-WISPVC2E.js +0 -401
- package/dist/cli-bundle/chunks/chunk-WVSGSZ6J.js +0 -5434
- package/dist/cli-bundle/chunks/chunk-WVSGSZ6J.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-XQCG2JGW.js +0 -1152
- package/dist/cli-bundle/chunks/chunk-XQCG2JGW.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-Y76TWC45.js +0 -550
- package/dist/cli-bundle/chunks/chunk-YD5FML7K.js +0 -5630
- package/dist/cli-bundle/chunks/chunk-YD5FML7K.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-YFIE7YK6.js +0 -57
- package/dist/cli-bundle/chunks/chunk-YMABYTNG.js +0 -1573
- package/dist/cli-bundle/chunks/chunk-YOF5VPKM.js +0 -119
- package/dist/cli-bundle/chunks/chunk-YPPVU5GX.js +0 -398
- package/dist/cli-bundle/chunks/chunk-YQMMMONE.js +0 -133
- package/dist/cli-bundle/chunks/chunk-YSAH5FY5.js +0 -1001
- package/dist/cli-bundle/chunks/chunk-YZIR4R3U.js +0 -1005
- package/dist/cli-bundle/chunks/chunk-Z2CRRZYF.js +0 -215
- package/dist/cli-bundle/chunks/chunk-ZAHXPXVY.js +0 -533
- package/dist/cli-bundle/chunks/chunk-ZCJAA3JK.js +0 -121
- package/dist/cli-bundle/chunks/chunk-ZD34OFFQ.js +0 -366
- package/dist/cli-bundle/chunks/chunk-ZJB3UV5U.js +0 -2306
- package/dist/cli-bundle/chunks/chunk-ZMD35NYG.js +0 -61
- package/dist/cli-bundle/chunks/chunk-ZVDL32GJ.js +0 -241
- package/dist/cli-bundle/chunks/chunk-ZVDL32GJ.js.map +0 -7
- package/dist/cli-bundle/chunks/claim-4DROPSIS.js +0 -144
- package/dist/cli-bundle/chunks/claim-4DROPSIS.js.map +0 -1
- package/dist/cli-bundle/chunks/claim-VX54TV5U.js +0 -147
- package/dist/cli-bundle/chunks/claim-VX54TV5U.js.map +0 -7
- package/dist/cli-bundle/chunks/close-3YRR3XY6.js +0 -20
- package/dist/cli-bundle/chunks/close-OB2Y4QP5.js +0 -16
- package/dist/cli-bundle/chunks/close-many-AP4MWU36.js +0 -397
- package/dist/cli-bundle/chunks/close-many-AP4MWU36.js.map +0 -1
- package/dist/cli-bundle/chunks/close-many-OMZIGZB4.js +0 -400
- package/dist/cli-bundle/chunks/close-many-OMZIGZB4.js.map +0 -7
- package/dist/cli-bundle/chunks/comments-MIW5MZOX.js +0 -128
- package/dist/cli-bundle/chunks/comments-MIW5MZOX.js.map +0 -7
- package/dist/cli-bundle/chunks/comments-SAG5LSKL.js +0 -125
- package/dist/cli-bundle/chunks/comments-SAG5LSKL.js.map +0 -1
- package/dist/cli-bundle/chunks/config-DJJKZB5R.js +0 -1075
- package/dist/cli-bundle/chunks/config-DJJKZB5R.js.map +0 -7
- package/dist/cli-bundle/chunks/config-V57QD47V.js +0 -1065
- package/dist/cli-bundle/chunks/config-V57QD47V.js.map +0 -1
- package/dist/cli-bundle/chunks/context-4OQGIPSO.js +0 -45
- package/dist/cli-bundle/chunks/context-WLA6IAWE.js +0 -49
- package/dist/cli-bundle/chunks/contracts-HXJLKCRI.js +0 -12
- package/dist/cli-bundle/chunks/contracts-OJEXMKVW.js +0 -16
- package/dist/cli-bundle/chunks/copy-LEE6P6EM.js +0 -184
- package/dist/cli-bundle/chunks/copy-LEE6P6EM.js.map +0 -7
- package/dist/cli-bundle/chunks/copy-OTJOWFL6.js +0 -181
- package/dist/cli-bundle/chunks/copy-OTJOWFL6.js.map +0 -1
- package/dist/cli-bundle/chunks/create-WKOZKPQR.js +0 -30
- package/dist/cli-bundle/chunks/create-XWWQFQ6S.js +0 -34
- package/dist/cli-bundle/chunks/delete-62JQTYT4.js +0 -59
- package/dist/cli-bundle/chunks/delete-62JQTYT4.js.map +0 -7
- package/dist/cli-bundle/chunks/delete-HQKGRNRZ.js +0 -56
- package/dist/cli-bundle/chunks/delete-HQKGRNRZ.js.map +0 -1
- package/dist/cli-bundle/chunks/deps-55FTG6Z5.js +0 -224
- package/dist/cli-bundle/chunks/deps-55FTG6Z5.js.map +0 -1
- package/dist/cli-bundle/chunks/deps-L2FPIAD3.js +0 -227
- package/dist/cli-bundle/chunks/deps-L2FPIAD3.js.map +0 -7
- package/dist/cli-bundle/chunks/docs-6CRCSVKK.js +0 -33
- package/dist/cli-bundle/chunks/docs-6CRCSVKK.js.map +0 -1
- package/dist/cli-bundle/chunks/docs-S6UTOTO5.js +0 -36
- package/dist/cli-bundle/chunks/docs-S6UTOTO5.js.map +0 -7
- package/dist/cli-bundle/chunks/eval-N6UHFWVO.js +0 -288
- package/dist/cli-bundle/chunks/eval-N6UHFWVO.js.map +0 -7
- package/dist/cli-bundle/chunks/eval-PHOTWYHI.js +0 -278
- package/dist/cli-bundle/chunks/eval-PHOTWYHI.js.map +0 -1
- package/dist/cli-bundle/chunks/extension-NBAH62ML.js +0 -40
- package/dist/cli-bundle/chunks/extension-ZF6ZZPOU.js +0 -44
- package/dist/cli-bundle/chunks/files-6P57MRKL.js +0 -301
- package/dist/cli-bundle/chunks/files-6P57MRKL.js.map +0 -7
- package/dist/cli-bundle/chunks/files-JPU3FNJ7.js +0 -298
- package/dist/cli-bundle/chunks/files-JPU3FNJ7.js.map +0 -1
- package/dist/cli-bundle/chunks/focus-LFZ6IDBR.js +0 -106
- package/dist/cli-bundle/chunks/focus-LFZ6IDBR.js.map +0 -1
- package/dist/cli-bundle/chunks/focus-WNMYCVYA.js +0 -109
- package/dist/cli-bundle/chunks/focus-WNMYCVYA.js.map +0 -7
- package/dist/cli-bundle/chunks/gc-AETFKZ44.js +0 -398
- package/dist/cli-bundle/chunks/gc-AETFKZ44.js.map +0 -7
- package/dist/cli-bundle/chunks/gc-RLBP4QVN.js +0 -388
- package/dist/cli-bundle/chunks/gc-RLBP4QVN.js.map +0 -1
- package/dist/cli-bundle/chunks/get-NH2MPBCI.js +0 -283
- package/dist/cli-bundle/chunks/get-NH2MPBCI.js.map +0 -1
- package/dist/cli-bundle/chunks/get-P4ZQXCPZ.js +0 -286
- package/dist/cli-bundle/chunks/get-P4ZQXCPZ.js.map +0 -7
- package/dist/cli-bundle/chunks/health-3GVPMQBL.js +0 -1612
- package/dist/cli-bundle/chunks/health-3GVPMQBL.js.map +0 -1
- package/dist/cli-bundle/chunks/health-DNTM72GJ.js +0 -1615
- package/dist/cli-bundle/chunks/health-DNTM72GJ.js.map +0 -7
- package/dist/cli-bundle/chunks/history-RYKLC72X.js +0 -20
- package/dist/cli-bundle/chunks/history-SGPYRAFT.js +0 -24
- package/dist/cli-bundle/chunks/history-compact-3F6VELO7.js +0 -565
- package/dist/cli-bundle/chunks/history-compact-3F6VELO7.js.map +0 -7
- package/dist/cli-bundle/chunks/history-compact-656Y2TN4.js +0 -555
- package/dist/cli-bundle/chunks/history-compact-656Y2TN4.js.map +0 -1
- package/dist/cli-bundle/chunks/history-redact-4H3FCKF3.js +0 -21
- package/dist/cli-bundle/chunks/history-redact-54ICFKXM.js +0 -25
- package/dist/cli-bundle/chunks/history-repair-4N6SDVHK.js +0 -281
- package/dist/cli-bundle/chunks/history-repair-4N6SDVHK.js.map +0 -7
- package/dist/cli-bundle/chunks/history-repair-EVTO6LIH.js +0 -278
- package/dist/cli-bundle/chunks/history-repair-EVTO6LIH.js.map +0 -1
- package/dist/cli-bundle/chunks/init-RPIPQUNV.js +0 -32
- package/dist/cli-bundle/chunks/init-SKQAESQS.js +0 -28
- package/dist/cli-bundle/chunks/learnings-2HTPZNGZ.js +0 -48
- package/dist/cli-bundle/chunks/learnings-2HTPZNGZ.js.map +0 -7
- package/dist/cli-bundle/chunks/learnings-YBIHY3D6.js +0 -45
- package/dist/cli-bundle/chunks/learnings-YBIHY3D6.js.map +0 -1
- package/dist/cli-bundle/chunks/list-64LHZ3HM.js +0 -32
- package/dist/cli-bundle/chunks/list-7LXBTEKI.js +0 -36
- package/dist/cli-bundle/chunks/next-7ODPAQ4U.js +0 -306
- package/dist/cli-bundle/chunks/next-7ODPAQ4U.js.map +0 -7
- package/dist/cli-bundle/chunks/next-ODJUM4ZM.js +0 -303
- package/dist/cli-bundle/chunks/next-ODJUM4ZM.js.map +0 -1
- package/dist/cli-bundle/chunks/notes-72YXN5JX.js +0 -48
- package/dist/cli-bundle/chunks/notes-72YXN5JX.js.map +0 -7
- package/dist/cli-bundle/chunks/notes-NJ7IQJX4.js +0 -45
- package/dist/cli-bundle/chunks/notes-NJ7IQJX4.js.map +0 -1
- package/dist/cli-bundle/chunks/plan-R4NDQ27E.js +0 -1366
- package/dist/cli-bundle/chunks/plan-R4NDQ27E.js.map +0 -7
- package/dist/cli-bundle/chunks/plan-XWY5T67S.js +0 -1363
- package/dist/cli-bundle/chunks/plan-XWY5T67S.js.map +0 -1
- package/dist/cli-bundle/chunks/profile-XQWEQKS3.js +0 -397
- package/dist/cli-bundle/chunks/profile-XQWEQKS3.js.map +0 -1
- package/dist/cli-bundle/chunks/profile-YRDHLMRO.js +0 -400
- package/dist/cli-bundle/chunks/profile-YRDHLMRO.js.map +0 -7
- package/dist/cli-bundle/chunks/register-list-query-5H66WFYF.js +0 -419
- package/dist/cli-bundle/chunks/register-list-query-FB3FNDLZ.js +0 -409
- package/dist/cli-bundle/chunks/register-mutation-UJO23C7R.js +0 -1256
- package/dist/cli-bundle/chunks/register-mutation-Z2ETYHKS.js +0 -1273
- package/dist/cli-bundle/chunks/register-operations-A3XAM5J7.js +0 -513
- package/dist/cli-bundle/chunks/register-operations-A3XAM5J7.js.map +0 -1
- package/dist/cli-bundle/chunks/register-operations-SG7HBSUP.js +0 -516
- package/dist/cli-bundle/chunks/register-operations-SG7HBSUP.js.map +0 -7
- package/dist/cli-bundle/chunks/register-setup-I45OGJUV.js +0 -323
- package/dist/cli-bundle/chunks/register-setup-I45OGJUV.js.map +0 -1
- package/dist/cli-bundle/chunks/register-setup-K6U3NVY5.js +0 -326
- package/dist/cli-bundle/chunks/register-setup-K6U3NVY5.js.map +0 -7
- package/dist/cli-bundle/chunks/restore-PXOFL6AM.js +0 -19
- package/dist/cli-bundle/chunks/restore-YJ2ET6AT.js +0 -23
- package/dist/cli-bundle/chunks/scheduling-shortcuts-SSC4MYWQ.js +0 -91
- package/dist/cli-bundle/chunks/scheduling-shortcuts-SSC4MYWQ.js.map +0 -7
- package/dist/cli-bundle/chunks/scheduling-shortcuts-ULRG7MNP.js +0 -88
- package/dist/cli-bundle/chunks/scheduling-shortcuts-ULRG7MNP.js.map +0 -1
- package/dist/cli-bundle/chunks/schema-2PUXCZ25.js +0 -74
- package/dist/cli-bundle/chunks/schema-Y6DXXK2F.js +0 -78
- package/dist/cli-bundle/chunks/search-3S72CTD6.js +0 -38
- package/dist/cli-bundle/chunks/search-WNUNBQXO.js +0 -34
- package/dist/cli-bundle/chunks/stats-IJYTRQGV.js +0 -250
- package/dist/cli-bundle/chunks/stats-IJYTRQGV.js.map +0 -7
- package/dist/cli-bundle/chunks/stats-L2D5Y2O5.js +0 -240
- package/dist/cli-bundle/chunks/stats-L2D5Y2O5.js.map +0 -1
- package/dist/cli-bundle/chunks/telemetry-L2CVOKVN.js +0 -309
- package/dist/cli-bundle/chunks/telemetry-L2CVOKVN.js.map +0 -7
- package/dist/cli-bundle/chunks/telemetry-QBYWQA76.js +0 -306
- package/dist/cli-bundle/chunks/telemetry-QBYWQA76.js.map +0 -1
- package/dist/cli-bundle/chunks/test-DQ2QFJ7W.js +0 -45
- package/dist/cli-bundle/chunks/test-W7QBLVJS.js +0 -41
- package/dist/cli-bundle/chunks/test-all-636NTRTT.js +0 -434
- package/dist/cli-bundle/chunks/test-all-636NTRTT.js.map +0 -1
- package/dist/cli-bundle/chunks/test-all-DWYK3RG6.js +0 -437
- package/dist/cli-bundle/chunks/test-all-DWYK3RG6.js.map +0 -7
- package/dist/cli-bundle/chunks/test-runs-245OINZR.js +0 -28
- package/dist/cli-bundle/chunks/test-runs-ZRD4GCTT.js +0 -24
- package/dist/cli-bundle/chunks/update-SFLZPJXX.js +0 -30
- package/dist/cli-bundle/chunks/update-SJZ6S77U.js +0 -26
- package/dist/cli-bundle/chunks/update-many-DC7X3EWM.js +0 -671
- package/dist/cli-bundle/chunks/update-many-DC7X3EWM.js.map +0 -7
- package/dist/cli-bundle/chunks/update-many-SLLAMHT7.js +0 -668
- package/dist/cli-bundle/chunks/update-many-SLLAMHT7.js.map +0 -1
- package/dist/cli-bundle/chunks/upgrade-HFFXLZJA.js +0 -290
- package/dist/cli-bundle/chunks/upgrade-HFFXLZJA.js.map +0 -7
- package/dist/cli-bundle/chunks/upgrade-UYQKM7RF.js +0 -287
- package/dist/cli-bundle/chunks/upgrade-UYQKM7RF.js.map +0 -1
- package/dist/cli-bundle/chunks/validate-PA4FDTOV.js +0 -2143
- package/dist/cli-bundle/chunks/validate-PA4FDTOV.js.map +0 -7
- package/dist/cli-bundle/chunks/validate-Z7L75YEJ.js +0 -2105
- package/dist/cli-bundle/chunks/validate-Z7L75YEJ.js.map +0 -1
- /package/dist/cli-bundle/chunks/{activity-4XQIDNM5.js.map → activity-WJCGCYPU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{activity-YKAKZTZ4.js.map → activity-Z6QUAUSG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-3YRR3XY6.js.map → aggregate-BDM6EIAR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-OB2Y4QP5.js.map → aggregate-VQ2DHU3S.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{context-WLA6IAWE.js.map → append-BGML6VLD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{context-4OQGIPSO.js.map → append-RKJYPU74.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YFIE7YK6.js.map → chunk-22KBU3MW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-DLQ4ZTCU.js.map → chunk-24YG75HI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KLG4ZULO.js.map → chunk-2XG4IZON.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FJRKQREY.js.map → chunk-3GCS5SKL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5B3X4Y22.js.map → chunk-3KTN6IBA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YMABYTNG.js.map → chunk-3UJRFJ5R.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YSAH5FY5.js.map → chunk-3VHSI5FL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7EQNAZX2.js.map → chunk-46CUF5L6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-75U6M5ZD.js.map → chunk-4IWYTWGF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-VZIYHZDX.js.map → chunk-5GZ7TDD6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3U3VEWK6.js.map → chunk-5VAA4YHR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3PL6LEKP.js.map → chunk-64YKRTSV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ABRA3BHY.js.map → chunk-6LLVNJXT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EEY54JMF.js.map → chunk-7DT4WSH2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7MDXZAZS.js.map → chunk-7WBAJSS6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-AAEQMOC6.js.map → chunk-AGHMOTGM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-OWTIRHX4.js.map → chunk-ALFPSEWO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-T3ABIMGW.js.map → chunk-AZYGZGGI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3JZNEQBA.js.map → chunk-B6DUFX6H.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-OESSOFJ4.js.map → chunk-C5JBZRPU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YPPVU5GX.js.map → chunk-CFB33L7W.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5J2XPTAD.js.map → chunk-CL36D4PC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-IJ6CO3JV.js.map → chunk-D2XRLB55.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MNZ7DRNC.js.map → chunk-DEWEK6AN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-US3T3W5J.js.map → chunk-E3SZTQ4K.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-C3PMDWGX.js.map → chunk-EGY6JBQ3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-JLA7EVYV.js.map → chunk-EKFNL33R.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-57C2RLW5.js.map → chunk-ENGQOEUY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7QH7DHUB.js.map → chunk-EOKXK3R3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZCJAA3JK.js.map → chunk-F3K4JGFD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-DRBV5UC2.js.map → chunk-FLZSGSQR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Y76TWC45.js.map → chunk-FT3QTERD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HK72NWAD.js.map → chunk-G24G7ZAV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-K3AGVXSF.js.map → chunk-G64OCSKU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QHZO65XW.js.map → chunk-GANUTS7W.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WISPVC2E.js.map → chunk-GBAX2ZAQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-RCT3YJOK.js.map → chunk-GJ7QC5DJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-BVEUCSH2.js.map → chunk-GPLPTGOV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YZIR4R3U.js.map → chunk-GZRDYONU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7WYXBPYQ.js.map → chunk-IWVU4C2F.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-T3F4DF23.js.map → chunk-IX5BXEMX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-RX3HQSYG.js.map → chunk-JDDLOQAE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YOF5VPKM.js.map → chunk-JJP45OEI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TT42JUMF.js.map → chunk-K46RF36U.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-R3ZBLGTC.js.map → chunk-KGFUY7WN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NER3KUUS.js.map → chunk-KUOOJR35.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3Y4OESPP.js.map → chunk-L5PSPMZ4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-PJ3A56YF.js.map → chunk-LPSSSDJR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FDBARR33.js.map → chunk-MA4SM3QZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-PPAJG4GB.js.map → chunk-MFAZSEM5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5JZ7APJU.js.map → chunk-MFSCBT5Q.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4OFLJHX6.js.map → chunk-MLIYFOE7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZMD35NYG.js.map → chunk-MUH7A3FD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5JE6SMYS.js.map → chunk-MVYWGY2A.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-P5TFTLWW.js.map → chunk-MWMVPCIE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-T35XLYZF.js.map → chunk-NGXQ3PFT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EZFKWSC7.js.map → chunk-NMP5I3I5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HJE4JTKQ.js.map → chunk-O6AWCQRQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-BFVHCAOO.js.map → chunk-OGWQ2IEP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-S4APD35C.js.map → chunk-QLMX7SRD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MZ7VNEVY.js.map → chunk-RFNYTESG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MTTXDAK4.js.map → chunk-SCUR7K7N.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-P5YORJRH.js.map → chunk-SHQY2IDC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-S5AYOUT5.js.map → chunk-SMB7RV23.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-N7X4WP6L.js.map → chunk-SPZ6DOGY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-P3VRG72Q.js.map → chunk-SQYJ4HF2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4LRVSBO6.js.map → chunk-T42JWV3F.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NBFCNJ7Q.js.map → chunk-TULGS6X6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZJB3UV5U.js.map → chunk-TZXRBVAM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZD34OFFQ.js.map → chunk-VPIM42PC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FGQKEDE4.js.map → chunk-W3DSJQIO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4QQ6PM7M.js.map → chunk-W572BIEB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Z2CRRZYF.js.map → chunk-WRTENIX3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZAHXPXVY.js.map → chunk-XB7KFVFI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-PDXT6Q55.js.map → chunk-XG625QP4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-D3UCE7RW.js.map → chunk-XUC7PI2H.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-N6DNM2FA.js.map → chunk-Y46GD4IX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FUM6UMY4.js.map → chunk-Y4M7CPQP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HBYZDSK5.js.map → chunk-YN7Y6DQZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YQMMMONE.js.map → chunk-ZGK4L4JM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-LEKT4K7I.js.map → chunk-ZSUS2OD3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TSPKZRRW.js.map → chunk-ZZD4J5XY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{contracts-HXJLKCRI.js.map → claim-RFS7BROJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{contracts-OJEXMKVW.js.map → claim-XP5AWZ5H.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-XWWQFQ6S.js.map → close-2SSSHHUZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-WKOZKPQR.js.map → close-GEANHQ2J.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-ZF6ZZPOU.js.map → close-many-CMZW7ITN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-NBAH62ML.js.map → close-many-ZFDIG6M7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-SGPYRAFT.js.map → comments-MFSYVNNU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-RYKLC72X.js.map → comments-XUBPXDYX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-4H3FCKF3.js.map → config-D7XQMONX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-54ICFKXM.js.map → config-T4FHBSYN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-RPIPQUNV.js.map → context-DIU275XI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-SKQAESQS.js.map → context-JCOYB4LZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-64LHZ3HM.js.map → contracts-BVO7CSLK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-7LXBTEKI.js.map → contracts-NYPEW2G4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-YJ2ET6AT.js.map → copy-32ROBIDL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-PXOFL6AM.js.map → copy-NAGLGMHZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-2PUXCZ25.js.map → create-4V7SWNBB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-Y6DXXK2F.js.map → create-E77SDCUP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-WNUNBQXO.js.map → delete-NQI5OSKN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-3S72CTD6.js.map → delete-RA5KTCLB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-DQ2QFJ7W.js.map → deps-32SU7HO5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-W7QBLVJS.js.map → deps-T7SCWXEX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-runs-245OINZR.js.map → docs-RRUPT7O2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-runs-ZRD4GCTT.js.map → docs-WL2IWGWV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-SJZ6S77U.js.map → eval-NF2J5SHR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-SFLZPJXX.js.map → eval-SKDT3MZU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-list-query-FB3FNDLZ.js.map → register-list-query-B42JCCOI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-list-query-5H66WFYF.js.map → register-list-query-OEYQHFXO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-mutation-Z2ETYHKS.js.map → register-mutation-3QXIHCQG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-mutation-UJO23C7R.js.map → register-mutation-IAEST26S.js.map} +0 -0
|
@@ -0,0 +1,1601 @@
|
|
|
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]="f3d2b3b5-0c76-5b07-af27-5951e49d4128")}catch(e){}}();
|
|
3
|
+
import {
|
|
4
|
+
buildRemediationMap
|
|
5
|
+
} from "./chunk-R2EMWY7Q.js";
|
|
6
|
+
import {
|
|
7
|
+
scanLockHealth
|
|
8
|
+
} from "./chunk-37E72CNS.js";
|
|
9
|
+
import {
|
|
10
|
+
scanHistoryDrift
|
|
11
|
+
} from "./chunk-K46RF36U.js";
|
|
12
|
+
import {
|
|
13
|
+
collectStaleVectorizationIds
|
|
14
|
+
} from "./chunk-ROGZTCCB.js";
|
|
15
|
+
import {
|
|
16
|
+
PM_TELEMETRY_SOURCE_CONTEXT_VALUES,
|
|
17
|
+
TELEMETRY_MAX_QUEUE_ENTRY_ATTEMPTS,
|
|
18
|
+
TELEMETRY_SCHEMA_VERSION
|
|
19
|
+
} from "./chunk-SQYJ4HF2.js";
|
|
20
|
+
import {
|
|
21
|
+
buildVectorizationEmbeddingIdentity,
|
|
22
|
+
hasVectorizationEmbeddingIdentityChanged,
|
|
23
|
+
readVectorizationStatusLedger,
|
|
24
|
+
refreshSemanticEmbeddingsForMutatedItems,
|
|
25
|
+
resolveEmbeddingProviders,
|
|
26
|
+
resolveProviderConfigSource,
|
|
27
|
+
resolveSettingsWithSemanticRuntimeDefaults,
|
|
28
|
+
resolveVectorStores
|
|
29
|
+
} from "./chunk-EOKXK3R3.js";
|
|
30
|
+
import {
|
|
31
|
+
buildCapabilityContractMetadata,
|
|
32
|
+
buildRegistrationCollisionRemediation,
|
|
33
|
+
collectUnknownCapabilityGuidance,
|
|
34
|
+
readManagedExtensionState
|
|
35
|
+
} from "./chunk-WG34ZNQQ.js";
|
|
36
|
+
import {
|
|
37
|
+
collectRegisteredItemFieldNames,
|
|
38
|
+
enforceHistoryStreamPolicyForItems,
|
|
39
|
+
listAllFrontMatter,
|
|
40
|
+
listAllFrontMatterWithBody
|
|
41
|
+
} from "./chunk-ENGQOEUY.js";
|
|
42
|
+
import {
|
|
43
|
+
effectiveItemFormatVersion,
|
|
44
|
+
findFirstMergeConflictMarker,
|
|
45
|
+
parseItemDocument,
|
|
46
|
+
scanItemFormatVersions
|
|
47
|
+
} from "./chunk-G24G7ZAV.js";
|
|
48
|
+
import {
|
|
49
|
+
nowIso
|
|
50
|
+
} from "./chunk-3GCS5SKL.js";
|
|
51
|
+
import {
|
|
52
|
+
PmCliError,
|
|
53
|
+
getActiveExtensionRegistrations,
|
|
54
|
+
readSettingsWithMetadata,
|
|
55
|
+
runActiveOnReadHooks
|
|
56
|
+
} from "./chunk-E3SZTQ4K.js";
|
|
57
|
+
import {
|
|
58
|
+
EXIT_CODE,
|
|
59
|
+
ITEM_FILE_EXTENSIONS,
|
|
60
|
+
KNOWN_EXTENSION_CAPABILITIES,
|
|
61
|
+
PM_CORE_REQUIRED_SUBDIRS,
|
|
62
|
+
PM_OPTIONAL_TYPE_SUBDIRS,
|
|
63
|
+
activateExtensions,
|
|
64
|
+
getItemFormatFromPath,
|
|
65
|
+
getSettingsPath,
|
|
66
|
+
loadExtensions,
|
|
67
|
+
pathExists,
|
|
68
|
+
readFileIfExists,
|
|
69
|
+
resolveGlobalPmRoot,
|
|
70
|
+
resolveItemTypeRegistry,
|
|
71
|
+
resolvePmRoot,
|
|
72
|
+
toNonEmptyStringOrUndefined
|
|
73
|
+
} from "./chunk-57NWPFF2.js";
|
|
74
|
+
|
|
75
|
+
// dist/cli/commands/health.js
|
|
76
|
+
import fs from "node:fs/promises";
|
|
77
|
+
import path from "node:path";
|
|
78
|
+
var PM_TELEMETRY_SOURCE_CONTEXT_SET = new Set(PM_TELEMETRY_SOURCE_CONTEXT_VALUES);
|
|
79
|
+
var STALE_VECTORIZATION_SUMMARY_LIMIT = 25;
|
|
80
|
+
var BRIEF_HEALTH_DETAIL_LIMIT = 8;
|
|
81
|
+
var TELEMETRY_QUEUE_RELATIVE_PATH = path.join("runtime", "telemetry", "events.jsonl");
|
|
82
|
+
var TELEMETRY_STATE_RELATIVE_PATH = path.join("runtime", "telemetry", "state.json");
|
|
83
|
+
var TELEMETRY_ENDPOINT_PROBE_TIMEOUT_MS = 2500;
|
|
84
|
+
var TELEMETRY_QUEUE_HIGH_WATER_MARK = 500;
|
|
85
|
+
var TELEMETRY_QUEUE_HIGH_RETRY_THRESHOLD = TELEMETRY_MAX_QUEUE_ENTRY_ATTEMPTS - 3;
|
|
86
|
+
var TELEMETRY_SERVER_MAX_SCHEMA_VERSION_HEADERS = [
|
|
87
|
+
"x-pm-telemetry-max-schema-version",
|
|
88
|
+
"x-pm-telemetry-max-version"
|
|
89
|
+
];
|
|
90
|
+
function isAdvisoryHealthWarning(warning) {
|
|
91
|
+
return warning.startsWith("telemetry_") || warning.startsWith("history_stream_over_compact_threshold:");
|
|
92
|
+
}
|
|
93
|
+
function warningCode(value) {
|
|
94
|
+
const normalized = value.trim();
|
|
95
|
+
const separator = normalized.indexOf(":");
|
|
96
|
+
if (separator === -1) {
|
|
97
|
+
return normalized;
|
|
98
|
+
}
|
|
99
|
+
return normalized.slice(0, separator);
|
|
100
|
+
}
|
|
101
|
+
function normalizeExtensionNameForMatch(value) {
|
|
102
|
+
return value.trim().toLowerCase();
|
|
103
|
+
}
|
|
104
|
+
function isExpectedUnmanagedExtension(name, directory) {
|
|
105
|
+
const normalizedName = normalizeExtensionNameForMatch(name);
|
|
106
|
+
const normalizedDirectory = normalizeExtensionNameForMatch(directory);
|
|
107
|
+
if (normalizedName.startsWith("builtin-")) {
|
|
108
|
+
return true;
|
|
109
|
+
}
|
|
110
|
+
return normalizedDirectory === "beads" || normalizedDirectory === "todos";
|
|
111
|
+
}
|
|
112
|
+
async function isDirectory(targetPath) {
|
|
113
|
+
try {
|
|
114
|
+
const stats = await fs.stat(targetPath);
|
|
115
|
+
return stats.isDirectory();
|
|
116
|
+
} catch {
|
|
117
|
+
return false;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
async function countHistoryStreams(pmRoot, compactPolicy) {
|
|
121
|
+
const historyDir = path.join(pmRoot, "history");
|
|
122
|
+
if (!await isDirectory(historyDir)) {
|
|
123
|
+
return { count: 0, warnings: [], over_threshold: [], max_entries: null };
|
|
124
|
+
}
|
|
125
|
+
const historyFiles = (await fs.readdir(historyDir)).filter((entry) => entry.endsWith(".jsonl")).sort((left, right) => left.localeCompare(right));
|
|
126
|
+
const policyActive = compactPolicy.enabled;
|
|
127
|
+
const maxEntries = policyActive ? compactPolicy.max_entries : null;
|
|
128
|
+
const warnings = [];
|
|
129
|
+
const overThreshold = [];
|
|
130
|
+
for (const fileName of historyFiles) {
|
|
131
|
+
const streamPath = path.join(historyDir, fileName);
|
|
132
|
+
warnings.push(...await runActiveOnReadHooks({ path: streamPath, scope: "project" }));
|
|
133
|
+
if (!policyActive) {
|
|
134
|
+
continue;
|
|
135
|
+
}
|
|
136
|
+
const raw = await fs.readFile(streamPath, "utf8");
|
|
137
|
+
let entries = 0;
|
|
138
|
+
for (const line of raw.split(/\r?\n/)) {
|
|
139
|
+
if (line.trim().length > 0) {
|
|
140
|
+
entries += 1;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
if (entries > compactPolicy.max_entries) {
|
|
144
|
+
overThreshold.push(fileName.slice(0, -".jsonl".length));
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
return {
|
|
148
|
+
count: historyFiles.length,
|
|
149
|
+
warnings: [...warnings, ...overThreshold.map((id) => `history_stream_over_compact_threshold:${id}`)],
|
|
150
|
+
over_threshold: overThreshold,
|
|
151
|
+
max_entries: maxEntries
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
function normalizeRelativePath(pmRoot, targetPath) {
|
|
155
|
+
return path.relative(pmRoot, targetPath).replaceAll("\\", "/");
|
|
156
|
+
}
|
|
157
|
+
async function listItemDocumentPaths(pmRoot, typeToFolder) {
|
|
158
|
+
const folders = [...new Set(Object.values(typeToFolder))].sort((left, right) => left.localeCompare(right));
|
|
159
|
+
const itemPaths = [];
|
|
160
|
+
for (const folder of folders) {
|
|
161
|
+
const directoryPath = path.join(pmRoot, folder);
|
|
162
|
+
let entries = [];
|
|
163
|
+
try {
|
|
164
|
+
entries = await fs.readdir(directoryPath);
|
|
165
|
+
} catch (error) {
|
|
166
|
+
if (typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT") {
|
|
167
|
+
continue;
|
|
168
|
+
}
|
|
169
|
+
continue;
|
|
170
|
+
}
|
|
171
|
+
for (const entry of entries) {
|
|
172
|
+
if (!ITEM_FILE_EXTENSIONS.some((extension) => entry.toLowerCase().endsWith(extension))) {
|
|
173
|
+
continue;
|
|
174
|
+
}
|
|
175
|
+
itemPaths.push(path.join(directoryPath, entry));
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
itemPaths.sort((left, right) => normalizeRelativePath(pmRoot, left).localeCompare(normalizeRelativePath(pmRoot, right)));
|
|
179
|
+
return itemPaths;
|
|
180
|
+
}
|
|
181
|
+
function shouldReportHistoryDirectoryUnreadable(error) {
|
|
182
|
+
return !(typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT");
|
|
183
|
+
}
|
|
184
|
+
async function buildIntegrityCheck(pmRoot, typeToFolder, schema) {
|
|
185
|
+
const itemPaths = await listItemDocumentPaths(pmRoot, typeToFolder);
|
|
186
|
+
const itemUnreadable = [];
|
|
187
|
+
const itemConflictMarkers = [];
|
|
188
|
+
const itemParseFailures = [];
|
|
189
|
+
const formatVersionEntries = [];
|
|
190
|
+
const extensionFieldNames = collectRegisteredItemFieldNames(getActiveExtensionRegistrations());
|
|
191
|
+
for (const itemPath of itemPaths) {
|
|
192
|
+
const relativePath = normalizeRelativePath(pmRoot, itemPath);
|
|
193
|
+
let raw = "";
|
|
194
|
+
try {
|
|
195
|
+
raw = await fs.readFile(itemPath, "utf8");
|
|
196
|
+
} catch {
|
|
197
|
+
itemUnreadable.push(relativePath);
|
|
198
|
+
continue;
|
|
199
|
+
}
|
|
200
|
+
const conflictMarker = findFirstMergeConflictMarker(raw);
|
|
201
|
+
if (conflictMarker) {
|
|
202
|
+
itemConflictMarkers.push({
|
|
203
|
+
path: relativePath,
|
|
204
|
+
line: conflictMarker.line,
|
|
205
|
+
marker: conflictMarker.marker
|
|
206
|
+
});
|
|
207
|
+
continue;
|
|
208
|
+
}
|
|
209
|
+
try {
|
|
210
|
+
const parsed = parseItemDocument(raw, { format: getItemFormatFromPath(itemPath), schema, extensionFieldNames });
|
|
211
|
+
formatVersionEntries.push({ ref: relativePath, version: effectiveItemFormatVersion(parsed.metadata) });
|
|
212
|
+
} catch {
|
|
213
|
+
itemParseFailures.push(relativePath);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
const formatVersionScan = scanItemFormatVersions(formatVersionEntries);
|
|
217
|
+
const historyDir = path.join(pmRoot, "history");
|
|
218
|
+
const historyUnreadable = [];
|
|
219
|
+
const historyConflictMarkers = [];
|
|
220
|
+
const historyInvalidJson = [];
|
|
221
|
+
let historyFiles = [];
|
|
222
|
+
try {
|
|
223
|
+
historyFiles = (await fs.readdir(historyDir)).filter((entry) => entry.endsWith(".jsonl")).sort((left, right) => left.localeCompare(right));
|
|
224
|
+
} catch (error) {
|
|
225
|
+
if (shouldReportHistoryDirectoryUnreadable(error)) {
|
|
226
|
+
historyUnreadable.push("history");
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
for (const fileName of historyFiles) {
|
|
230
|
+
const itemId = fileName.slice(0, -".jsonl".length);
|
|
231
|
+
const historyPath = path.join(historyDir, fileName);
|
|
232
|
+
let raw = "";
|
|
233
|
+
try {
|
|
234
|
+
raw = await fs.readFile(historyPath, "utf8");
|
|
235
|
+
} catch {
|
|
236
|
+
historyUnreadable.push(itemId);
|
|
237
|
+
continue;
|
|
238
|
+
}
|
|
239
|
+
const conflictMarker = findFirstMergeConflictMarker(raw);
|
|
240
|
+
if (conflictMarker) {
|
|
241
|
+
historyConflictMarkers.push({
|
|
242
|
+
id: itemId,
|
|
243
|
+
line: conflictMarker.line,
|
|
244
|
+
marker: conflictMarker.marker
|
|
245
|
+
});
|
|
246
|
+
continue;
|
|
247
|
+
}
|
|
248
|
+
const lines = raw.split(/\r?\n/);
|
|
249
|
+
for (let index = 0; index < lines.length; index += 1) {
|
|
250
|
+
const line = lines[index]?.trim();
|
|
251
|
+
if (!line) {
|
|
252
|
+
continue;
|
|
253
|
+
}
|
|
254
|
+
try {
|
|
255
|
+
JSON.parse(line);
|
|
256
|
+
} catch {
|
|
257
|
+
historyInvalidJson.push({
|
|
258
|
+
id: itemId,
|
|
259
|
+
line: index + 1
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
const warnings = [
|
|
265
|
+
...itemUnreadable.map((entry) => `integrity_item_unreadable:${entry}`),
|
|
266
|
+
...itemConflictMarkers.map((entry) => `integrity_item_conflict_marker:${entry.path}:L${entry.line}`),
|
|
267
|
+
...itemParseFailures.map((entry) => `integrity_item_parse_failed:${entry}`),
|
|
268
|
+
...historyUnreadable.map((entry) => `integrity_history_unreadable:${entry}`),
|
|
269
|
+
...historyConflictMarkers.map((entry) => `integrity_history_conflict_marker:${entry.id}:L${entry.line}`),
|
|
270
|
+
...historyInvalidJson.map((entry) => `integrity_history_invalid_json:${entry.id}:L${entry.line}`),
|
|
271
|
+
/* c8 ignore start -- outdated-version items are unreachable until CURRENT_ITEM_FORMAT_VERSION advances past the baseline (an effective version below 1 cannot occur); the per-item mapping is covered in item-format-version.spec, and the ahead path below is covered by health-command.spec */
|
|
272
|
+
...formatVersionScan.outdated.map((entry) => `integrity_item_outdated_format_version:${entry}`),
|
|
273
|
+
/* c8 ignore stop */
|
|
274
|
+
...formatVersionScan.ahead.map((entry) => `integrity_item_ahead_format_version:${entry}`)
|
|
275
|
+
];
|
|
276
|
+
const normalizedWarnings = [...new Set(warnings)].sort((left, right) => left.localeCompare(right));
|
|
277
|
+
return {
|
|
278
|
+
check: {
|
|
279
|
+
name: "integrity",
|
|
280
|
+
status: normalizedWarnings.length === 0 ? "ok" : "warn",
|
|
281
|
+
details: {
|
|
282
|
+
checked_item_files: itemPaths.length,
|
|
283
|
+
checked_history_streams: historyFiles.length,
|
|
284
|
+
counts: {
|
|
285
|
+
item_unreadable: itemUnreadable.length,
|
|
286
|
+
item_conflict_markers: itemConflictMarkers.length,
|
|
287
|
+
item_parse_failures: itemParseFailures.length,
|
|
288
|
+
history_unreadable: historyUnreadable.length,
|
|
289
|
+
history_conflict_markers: historyConflictMarkers.length,
|
|
290
|
+
history_invalid_json: historyInvalidJson.length,
|
|
291
|
+
item_outdated_format_version: formatVersionScan.outdated.length,
|
|
292
|
+
item_ahead_format_version: formatVersionScan.ahead.length
|
|
293
|
+
},
|
|
294
|
+
item_unreadable: itemUnreadable,
|
|
295
|
+
item_conflict_markers: itemConflictMarkers,
|
|
296
|
+
item_parse_failures: itemParseFailures,
|
|
297
|
+
item_outdated_format_version: formatVersionScan.outdated,
|
|
298
|
+
item_ahead_format_version: formatVersionScan.ahead,
|
|
299
|
+
history_unreadable: historyUnreadable,
|
|
300
|
+
history_conflict_markers: historyConflictMarkers,
|
|
301
|
+
history_invalid_json: historyInvalidJson
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
warnings: normalizedWarnings
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
function hasActivateExport(moduleRecord) {
|
|
308
|
+
if (typeof moduleRecord.activate === "function") {
|
|
309
|
+
return true;
|
|
310
|
+
}
|
|
311
|
+
const defaultExport = moduleRecord.default;
|
|
312
|
+
if (typeof defaultExport !== "object" || defaultExport === null) {
|
|
313
|
+
return false;
|
|
314
|
+
}
|
|
315
|
+
return typeof defaultExport.activate === "function";
|
|
316
|
+
}
|
|
317
|
+
function summarizeLoadedExtension(extension) {
|
|
318
|
+
const summary = {
|
|
319
|
+
layer: extension.layer,
|
|
320
|
+
directory: extension.directory,
|
|
321
|
+
manifest_path: extension.manifest_path,
|
|
322
|
+
name: extension.name,
|
|
323
|
+
version: extension.version,
|
|
324
|
+
entry: extension.entry,
|
|
325
|
+
priority: extension.priority,
|
|
326
|
+
entry_path: extension.entry_path,
|
|
327
|
+
has_activate: hasActivateExport(extension.module)
|
|
328
|
+
};
|
|
329
|
+
if (Array.isArray(extension.capabilities)) {
|
|
330
|
+
summary.capabilities = [...extension.capabilities];
|
|
331
|
+
}
|
|
332
|
+
return summary;
|
|
333
|
+
}
|
|
334
|
+
function resolveMigrationId(definition, fallbackIndex) {
|
|
335
|
+
const explicitId = toNonEmptyStringOrUndefined(definition.id);
|
|
336
|
+
if (explicitId) {
|
|
337
|
+
return explicitId;
|
|
338
|
+
}
|
|
339
|
+
return `migration-${String(fallbackIndex + 1).padStart(3, "0")}`;
|
|
340
|
+
}
|
|
341
|
+
function resolveMigrationStatus(definition) {
|
|
342
|
+
const rawStatus = toNonEmptyStringOrUndefined(definition.status);
|
|
343
|
+
const normalized = rawStatus?.toLowerCase();
|
|
344
|
+
if (normalized === "failed") {
|
|
345
|
+
return "failed";
|
|
346
|
+
}
|
|
347
|
+
if (normalized === "applied") {
|
|
348
|
+
return "applied";
|
|
349
|
+
}
|
|
350
|
+
return "pending";
|
|
351
|
+
}
|
|
352
|
+
function resolveMigrationFailureReason(definition) {
|
|
353
|
+
return toNonEmptyStringOrUndefined(definition.reason) ?? toNonEmptyStringOrUndefined(definition.error) ?? toNonEmptyStringOrUndefined(definition.message);
|
|
354
|
+
}
|
|
355
|
+
function compareMigrationEntries(left, right) {
|
|
356
|
+
const byLayer = (left.layer ?? "").localeCompare(right.layer ?? "");
|
|
357
|
+
if (byLayer !== 0) {
|
|
358
|
+
return byLayer;
|
|
359
|
+
}
|
|
360
|
+
const byName = (left.name ?? "").localeCompare(right.name ?? "");
|
|
361
|
+
if (byName !== 0) {
|
|
362
|
+
return byName;
|
|
363
|
+
}
|
|
364
|
+
return (left.id ?? "").localeCompare(right.id ?? "");
|
|
365
|
+
}
|
|
366
|
+
function summarizeMigrationStatuses(migrations) {
|
|
367
|
+
const applied = [];
|
|
368
|
+
const pending = [];
|
|
369
|
+
const failed = [];
|
|
370
|
+
migrations.forEach((migration, index) => {
|
|
371
|
+
const id = resolveMigrationId(migration.definition, index);
|
|
372
|
+
const status = resolveMigrationStatus(migration.definition);
|
|
373
|
+
if (status === "applied") {
|
|
374
|
+
applied.push({
|
|
375
|
+
layer: migration.layer,
|
|
376
|
+
name: migration.name,
|
|
377
|
+
id,
|
|
378
|
+
status
|
|
379
|
+
});
|
|
380
|
+
return;
|
|
381
|
+
}
|
|
382
|
+
if (status === "failed") {
|
|
383
|
+
failed.push({
|
|
384
|
+
layer: migration.layer,
|
|
385
|
+
name: migration.name,
|
|
386
|
+
id,
|
|
387
|
+
status,
|
|
388
|
+
reason: resolveMigrationFailureReason(migration.definition)
|
|
389
|
+
});
|
|
390
|
+
return;
|
|
391
|
+
}
|
|
392
|
+
pending.push({
|
|
393
|
+
layer: migration.layer,
|
|
394
|
+
name: migration.name,
|
|
395
|
+
id,
|
|
396
|
+
status
|
|
397
|
+
});
|
|
398
|
+
});
|
|
399
|
+
applied.sort(compareMigrationEntries);
|
|
400
|
+
pending.sort(compareMigrationEntries);
|
|
401
|
+
failed.sort(compareMigrationEntries);
|
|
402
|
+
const warnings = [
|
|
403
|
+
...failed.map((entry) => `extension_migration_failed:${entry.layer}:${entry.name}:${entry.id}`),
|
|
404
|
+
...pending.map((entry) => `extension_migration_pending:${entry.layer}:${entry.name}:${entry.id}`)
|
|
405
|
+
];
|
|
406
|
+
return {
|
|
407
|
+
summary: {
|
|
408
|
+
applied,
|
|
409
|
+
pending,
|
|
410
|
+
failed,
|
|
411
|
+
applied_count: applied.length,
|
|
412
|
+
pending_count: pending.length,
|
|
413
|
+
failed_count: failed.length
|
|
414
|
+
},
|
|
415
|
+
warnings
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
function buildExtensionHealthTriageSummary(warnings, loadFailureCount, activationFailureCount, migrationStatus, managedStateWarningCount, managedExtensionEntriesCount, unmanagedLoadedExtensions, unmanagedExpectedExtensions, unmanagedActionRequiredExtensions) {
|
|
419
|
+
const normalizedWarnings = [...new Set(warnings)].sort((left, right) => left.localeCompare(right));
|
|
420
|
+
const warningCodes = [...new Set(normalizedWarnings.map((value) => warningCode(value)))].sort((left, right) => left.localeCompare(right));
|
|
421
|
+
const unknownCapabilityCount = normalizedWarnings.filter((warning) => warning.startsWith("extension_capability_unknown:")).length;
|
|
422
|
+
const updateHealthPartial = unmanagedActionRequiredExtensions.length > 0;
|
|
423
|
+
const updateHealthCoverage = updateHealthPartial ? "partial" : "full";
|
|
424
|
+
const remediation = [];
|
|
425
|
+
const registrationCollisionRemediation = buildRegistrationCollisionRemediation(normalizedWarnings, {
|
|
426
|
+
deactivate: "pm extension --deactivate <name> --project/--global",
|
|
427
|
+
doctor: "pm extension --doctor --project/--global --detail deep --trace"
|
|
428
|
+
});
|
|
429
|
+
if (registrationCollisionRemediation) {
|
|
430
|
+
remediation.push(registrationCollisionRemediation);
|
|
431
|
+
}
|
|
432
|
+
if (loadFailureCount > 0) {
|
|
433
|
+
remediation.push("Run pm extension --explore --project and pm extension --explore --global to inspect load failures.");
|
|
434
|
+
}
|
|
435
|
+
if (activationFailureCount > 0) {
|
|
436
|
+
remediation.push("Review checks[name=extensions].details.activation.failed in pm health --json for activation error details.");
|
|
437
|
+
}
|
|
438
|
+
if (migrationStatus.failed_count > 0 || migrationStatus.pending_count > 0) {
|
|
439
|
+
remediation.push("Resolve pending/failed extension migrations before write commands; use --force only when policy allows.");
|
|
440
|
+
}
|
|
441
|
+
if (managedStateWarningCount > 0) {
|
|
442
|
+
remediation.push("Run pm extension --manage --project and pm extension --manage --global to refresh managed-state diagnostics.");
|
|
443
|
+
}
|
|
444
|
+
if (unknownCapabilityCount > 0) {
|
|
445
|
+
remediation.push(`Unknown extension capabilities detected. Allowed capabilities: ${KNOWN_EXTENSION_CAPABILITIES.join(", ")}. Review extension_capability_unknown warning details for suggested replacements.`);
|
|
446
|
+
}
|
|
447
|
+
if (normalizedWarnings.some((warning) => warning.startsWith("extension_capability_legacy_alias:"))) {
|
|
448
|
+
remediation.push("Legacy extension capability aliases were auto-remapped to canonical capabilities. Update manifests to canonical names (migration/validation -> schema).");
|
|
449
|
+
}
|
|
450
|
+
if (normalizedWarnings.some((warning) => warning.startsWith("extension_command_definition_legacy_handler_alias:"))) {
|
|
451
|
+
remediation.push("Extension command definitions using legacy handler were auto-remapped. Update command definitions to use run: (context) => ... for forward compatibility.");
|
|
452
|
+
}
|
|
453
|
+
if (updateHealthPartial) {
|
|
454
|
+
remediation.push("Update-check coverage is partial because unmanaged extensions need adoption. Adopt existing installs via pm extension --manage --project/--global --fix-managed-state, pm extension --adopt-all --project/--global, or pm extension --adopt <name>.");
|
|
455
|
+
} else if (unmanagedLoadedExtensions.length > 0) {
|
|
456
|
+
remediation.push("Loaded unmanaged extensions are currently treated as informational. Use pm extension --manage --project/--global --fix-managed-state to adopt them for update checks.");
|
|
457
|
+
}
|
|
458
|
+
if (remediation.length === 0) {
|
|
459
|
+
remediation.push("No immediate action required. Re-run pm health after extension configuration changes.");
|
|
460
|
+
}
|
|
461
|
+
return {
|
|
462
|
+
status: normalizedWarnings.length === 0 ? "ok" : "warn",
|
|
463
|
+
warning_count: normalizedWarnings.length,
|
|
464
|
+
warning_codes: warningCodes,
|
|
465
|
+
load_failure_count: loadFailureCount,
|
|
466
|
+
activation_failure_count: activationFailureCount,
|
|
467
|
+
migration_failed_count: migrationStatus.failed_count,
|
|
468
|
+
migration_pending_count: migrationStatus.pending_count,
|
|
469
|
+
managed_state_warning_count: managedStateWarningCount,
|
|
470
|
+
managed_extension_entries_count: managedExtensionEntriesCount,
|
|
471
|
+
unmanaged_loaded_extension_count: unmanagedLoadedExtensions.length,
|
|
472
|
+
unmanaged_loaded_extensions: unmanagedLoadedExtensions,
|
|
473
|
+
unmanaged_expected_extension_count: unmanagedExpectedExtensions.length,
|
|
474
|
+
unmanaged_expected_extensions: unmanagedExpectedExtensions,
|
|
475
|
+
unmanaged_action_required_extension_count: unmanagedActionRequiredExtensions.length,
|
|
476
|
+
unmanaged_action_required_extensions: unmanagedActionRequiredExtensions,
|
|
477
|
+
update_health_coverage: updateHealthCoverage,
|
|
478
|
+
update_health_partial: updateHealthPartial,
|
|
479
|
+
unknown_capability_count: unknownCapabilityCount,
|
|
480
|
+
top_warnings: normalizedWarnings.slice(0, 8),
|
|
481
|
+
remediation
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
async function buildExtensionCheck(pmRoot, settings, noExtensionsFlag) {
|
|
485
|
+
const loadResult = await loadExtensions({
|
|
486
|
+
pmRoot,
|
|
487
|
+
settings,
|
|
488
|
+
cwd: process.cwd(),
|
|
489
|
+
noExtensions: noExtensionsFlag
|
|
490
|
+
});
|
|
491
|
+
const loadedSummaries = loadResult.loaded.map((extension) => summarizeLoadedExtension(extension));
|
|
492
|
+
const activationResult = await activateExtensions({
|
|
493
|
+
...loadResult,
|
|
494
|
+
loaded: loadResult.loaded
|
|
495
|
+
});
|
|
496
|
+
const [projectManagedState, globalManagedState] = await Promise.all([
|
|
497
|
+
readManagedExtensionState(loadResult.roots.project),
|
|
498
|
+
readManagedExtensionState(loadResult.roots.global)
|
|
499
|
+
]);
|
|
500
|
+
const migrationStatus = summarizeMigrationStatuses(activationResult.registrations.migrations);
|
|
501
|
+
const activationDetails = {
|
|
502
|
+
failed: activationResult.failed,
|
|
503
|
+
warnings: activationResult.warnings,
|
|
504
|
+
hook_counts: activationResult.hook_counts,
|
|
505
|
+
command_override_count: activationResult.command_override_count,
|
|
506
|
+
command_handler_count: activationResult.command_handler_count,
|
|
507
|
+
parser_override_count: activationResult.parser_override_count,
|
|
508
|
+
preflight_override_count: activationResult.preflight_override_count,
|
|
509
|
+
service_override_count: activationResult.service_override_count,
|
|
510
|
+
renderer_override_count: activationResult.renderer_override_count,
|
|
511
|
+
registration_counts: activationResult.registration_counts,
|
|
512
|
+
registrations: activationResult.registrations,
|
|
513
|
+
migration_status: migrationStatus.summary,
|
|
514
|
+
managed_extensions: {
|
|
515
|
+
project: {
|
|
516
|
+
path: projectManagedState.path,
|
|
517
|
+
count: projectManagedState.state.entries.length,
|
|
518
|
+
entries: projectManagedState.state.entries
|
|
519
|
+
},
|
|
520
|
+
global: {
|
|
521
|
+
path: globalManagedState.path,
|
|
522
|
+
count: globalManagedState.state.entries.length,
|
|
523
|
+
entries: globalManagedState.state.entries
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
};
|
|
527
|
+
const managedProjectNames = new Set(projectManagedState.state.entries.map((entry) => normalizeExtensionNameForMatch(entry.name)));
|
|
528
|
+
const managedGlobalNames = new Set(globalManagedState.state.entries.map((entry) => normalizeExtensionNameForMatch(entry.name)));
|
|
529
|
+
const unmanagedLoadedEntries = [
|
|
530
|
+
...new Map(loadResult.loaded.filter((entry) => {
|
|
531
|
+
const managedNames = entry.layer === "project" ? managedProjectNames : managedGlobalNames;
|
|
532
|
+
return !managedNames.has(normalizeExtensionNameForMatch(entry.name));
|
|
533
|
+
}).map((entry) => [
|
|
534
|
+
`${entry.layer}:${entry.name}`,
|
|
535
|
+
{
|
|
536
|
+
layer: entry.layer,
|
|
537
|
+
name: entry.name,
|
|
538
|
+
directory: entry.directory
|
|
539
|
+
}
|
|
540
|
+
])).values()
|
|
541
|
+
].sort((left, right) => {
|
|
542
|
+
const leftKey = `${left.layer}:${left.name}`;
|
|
543
|
+
const rightKey = `${right.layer}:${right.name}`;
|
|
544
|
+
return leftKey.localeCompare(rightKey);
|
|
545
|
+
});
|
|
546
|
+
const unmanagedLoadedExtensions = unmanagedLoadedEntries.map((entry) => `${entry.layer}:${entry.name}`).sort((left, right) => left.localeCompare(right));
|
|
547
|
+
const unmanagedExpectedExtensions = unmanagedLoadedEntries.filter((entry) => isExpectedUnmanagedExtension(entry.name, entry.directory)).map((entry) => `${entry.layer}:${entry.name}`).sort((left, right) => left.localeCompare(right));
|
|
548
|
+
const unmanagedActionRequiredExtensions = unmanagedLoadedEntries.filter((entry) => !isExpectedUnmanagedExtension(entry.name, entry.directory)).map((entry) => `${entry.layer}:${entry.name}`).sort((left, right) => left.localeCompare(right));
|
|
549
|
+
const updateCoverageWarnings = unmanagedActionRequiredExtensions.length > 0 ? [`extension_update_health_partial_coverage:skipped_unmanaged:${unmanagedActionRequiredExtensions.length}`] : [];
|
|
550
|
+
const extensionWarnings = [
|
|
551
|
+
...loadResult.warnings,
|
|
552
|
+
...activationDetails.warnings,
|
|
553
|
+
...migrationStatus.warnings,
|
|
554
|
+
...projectManagedState.warnings,
|
|
555
|
+
...globalManagedState.warnings,
|
|
556
|
+
...updateCoverageWarnings
|
|
557
|
+
];
|
|
558
|
+
const capabilityGuidance = collectUnknownCapabilityGuidance(extensionWarnings);
|
|
559
|
+
const capabilityContract = buildCapabilityContractMetadata();
|
|
560
|
+
const extensionTriage = buildExtensionHealthTriageSummary(extensionWarnings, loadResult.failed.length, activationResult.failed.length, migrationStatus.summary, projectManagedState.warnings.length + globalManagedState.warnings.length, projectManagedState.state.entries.length + globalManagedState.state.entries.length, unmanagedLoadedExtensions, unmanagedExpectedExtensions, unmanagedActionRequiredExtensions);
|
|
561
|
+
return {
|
|
562
|
+
check: {
|
|
563
|
+
name: "extensions",
|
|
564
|
+
status: extensionWarnings.length === 0 ? "ok" : "warn",
|
|
565
|
+
details: {
|
|
566
|
+
...loadResult,
|
|
567
|
+
loaded: loadedSummaries,
|
|
568
|
+
warnings: extensionWarnings,
|
|
569
|
+
activation: activationDetails,
|
|
570
|
+
triage: extensionTriage,
|
|
571
|
+
capability_contract: capabilityContract,
|
|
572
|
+
capability_guidance: capabilityGuidance
|
|
573
|
+
}
|
|
574
|
+
},
|
|
575
|
+
warnings: extensionWarnings
|
|
576
|
+
};
|
|
577
|
+
}
|
|
578
|
+
function summarizeList(values, limit) {
|
|
579
|
+
if (values.length <= limit) {
|
|
580
|
+
return { values, truncated: false };
|
|
581
|
+
}
|
|
582
|
+
return {
|
|
583
|
+
values: values.slice(0, limit),
|
|
584
|
+
truncated: true
|
|
585
|
+
};
|
|
586
|
+
}
|
|
587
|
+
function summarizeRecordList(value, limit) {
|
|
588
|
+
if (!Array.isArray(value)) {
|
|
589
|
+
return {
|
|
590
|
+
count: 0,
|
|
591
|
+
sample: [],
|
|
592
|
+
truncated: false
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
return {
|
|
596
|
+
count: value.length,
|
|
597
|
+
sample: value.slice(0, limit),
|
|
598
|
+
truncated: value.length > limit
|
|
599
|
+
};
|
|
600
|
+
}
|
|
601
|
+
function summarizeExtensionRecord(value) {
|
|
602
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
603
|
+
return {};
|
|
604
|
+
}
|
|
605
|
+
const record = value;
|
|
606
|
+
return {
|
|
607
|
+
layer: record.layer,
|
|
608
|
+
directory: record.directory,
|
|
609
|
+
name: record.name,
|
|
610
|
+
version: record.version,
|
|
611
|
+
enabled: record.enabled,
|
|
612
|
+
status: record.status,
|
|
613
|
+
has_activate: record.has_activate,
|
|
614
|
+
capabilities: record.capabilities
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
function summarizeExtensionList(value, limit) {
|
|
618
|
+
const summary = summarizeRecordList(value, limit);
|
|
619
|
+
return {
|
|
620
|
+
...summary,
|
|
621
|
+
sample: summary.sample.map((entry) => summarizeExtensionRecord(entry))
|
|
622
|
+
};
|
|
623
|
+
}
|
|
624
|
+
function summarizeStringList(value, limit) {
|
|
625
|
+
if (!Array.isArray(value)) {
|
|
626
|
+
return {
|
|
627
|
+
count: 0,
|
|
628
|
+
sample: [],
|
|
629
|
+
truncated: false
|
|
630
|
+
};
|
|
631
|
+
}
|
|
632
|
+
const strings = value.filter((entry) => typeof entry === "string");
|
|
633
|
+
return {
|
|
634
|
+
count: strings.length,
|
|
635
|
+
sample: strings.slice(0, limit),
|
|
636
|
+
truncated: strings.length > limit
|
|
637
|
+
};
|
|
638
|
+
}
|
|
639
|
+
function summarizeActivationMigrationStatus(value) {
|
|
640
|
+
if (typeof value !== "object" || value === null) {
|
|
641
|
+
return null;
|
|
642
|
+
}
|
|
643
|
+
const status = value;
|
|
644
|
+
return {
|
|
645
|
+
applied_count: status.applied_count,
|
|
646
|
+
pending_count: status.pending_count,
|
|
647
|
+
failed_count: status.failed_count
|
|
648
|
+
};
|
|
649
|
+
}
|
|
650
|
+
var HEALTH_DETAIL_SUMMARIZERS = {
|
|
651
|
+
settings: (details, limit) => ({
|
|
652
|
+
version: details.version,
|
|
653
|
+
id_prefix: details.id_prefix,
|
|
654
|
+
locks_ttl_seconds: details.locks_ttl_seconds,
|
|
655
|
+
warnings: summarizeStringList(details.warnings, limit)
|
|
656
|
+
}),
|
|
657
|
+
directories: (details, limit) => ({
|
|
658
|
+
required_count: Array.isArray(details.required) ? details.required.length : 0,
|
|
659
|
+
optional_count: Array.isArray(details.optional) ? details.optional.length : 0,
|
|
660
|
+
missing_required: summarizeStringList(details.missing_required, limit),
|
|
661
|
+
missing_optional: summarizeStringList(details.missing_optional, limit),
|
|
662
|
+
missing: summarizeStringList(details.missing, limit),
|
|
663
|
+
strict_directories: details.strict_directories
|
|
664
|
+
}),
|
|
665
|
+
settings_values: (details, limit) => ({
|
|
666
|
+
warnings: summarizeStringList(details.warnings, limit)
|
|
667
|
+
}),
|
|
668
|
+
telemetry: (details) => ({
|
|
669
|
+
enabled: details.enabled,
|
|
670
|
+
capture_level: details.capture_level,
|
|
671
|
+
endpoint: details.endpoint,
|
|
672
|
+
queue_exists: details.queue_exists,
|
|
673
|
+
queue_entries: details.queue_entries,
|
|
674
|
+
queue_draining: details.queue_draining,
|
|
675
|
+
queue_invalid_rows: details.queue_invalid_rows,
|
|
676
|
+
queue_rows_total: details.queue_rows_total,
|
|
677
|
+
last_successful_flush_at: details.last_successful_flush_at,
|
|
678
|
+
last_failed_flush_at: details.last_failed_flush_at,
|
|
679
|
+
endpoint_probe: details.endpoint_probe,
|
|
680
|
+
env_overrides: details.env_overrides
|
|
681
|
+
}),
|
|
682
|
+
extensions: (details, limit) => {
|
|
683
|
+
const activation = typeof details.activation === "object" && details.activation !== null ? details.activation : {};
|
|
684
|
+
return {
|
|
685
|
+
disabled_by_flag: details.disabled_by_flag,
|
|
686
|
+
discovered: summarizeExtensionList(details.discovered, limit),
|
|
687
|
+
effective: summarizeExtensionList(details.effective, limit),
|
|
688
|
+
loaded: summarizeExtensionList(details.loaded, limit),
|
|
689
|
+
failed: summarizeRecordList(details.failed, limit),
|
|
690
|
+
warnings: summarizeStringList(details.warnings, limit),
|
|
691
|
+
activation: {
|
|
692
|
+
failed: summarizeRecordList(activation.failed, limit),
|
|
693
|
+
warnings: summarizeStringList(activation.warnings, limit),
|
|
694
|
+
hook_counts: activation.hook_counts,
|
|
695
|
+
command_handler_count: activation.command_handler_count,
|
|
696
|
+
service_override_count: activation.service_override_count,
|
|
697
|
+
renderer_override_count: activation.renderer_override_count,
|
|
698
|
+
registration_counts: activation.registration_counts,
|
|
699
|
+
migration_status: summarizeActivationMigrationStatus(activation.migration_status)
|
|
700
|
+
},
|
|
701
|
+
triage: details.triage,
|
|
702
|
+
capability_contract: details.capability_contract,
|
|
703
|
+
capability_guidance: summarizeRecordList(details.capability_guidance, limit)
|
|
704
|
+
};
|
|
705
|
+
},
|
|
706
|
+
// Storage details are already compact counters; keep the pre-refactor pass-through shape.
|
|
707
|
+
storage: (details) => details,
|
|
708
|
+
locks: (details) => ({
|
|
709
|
+
active_lock_count: details.active_lock_count,
|
|
710
|
+
stale_lock_count: details.stale_lock_count,
|
|
711
|
+
unreadable_lock_count: details.unreadable_lock_count,
|
|
712
|
+
unparseable_lock_count: details.unparseable_lock_count
|
|
713
|
+
}),
|
|
714
|
+
integrity: (details, limit) => ({
|
|
715
|
+
checked_item_files: details.checked_item_files,
|
|
716
|
+
checked_history_streams: details.checked_history_streams,
|
|
717
|
+
counts: details.counts,
|
|
718
|
+
item_unreadable: summarizeStringList(details.item_unreadable, limit),
|
|
719
|
+
item_conflict_markers: summarizeRecordList(details.item_conflict_markers, limit),
|
|
720
|
+
item_parse_failures: summarizeStringList(details.item_parse_failures, limit),
|
|
721
|
+
history_unreadable: summarizeStringList(details.history_unreadable, limit),
|
|
722
|
+
history_conflict_markers: summarizeRecordList(details.history_conflict_markers, limit),
|
|
723
|
+
history_invalid_json: summarizeRecordList(details.history_invalid_json, limit),
|
|
724
|
+
skipped: details.skipped
|
|
725
|
+
}),
|
|
726
|
+
history_drift: (details, limit) => ({
|
|
727
|
+
checked_items: details.checked_items,
|
|
728
|
+
counts: details.counts,
|
|
729
|
+
drifted_items: summarizeStringList(details.drifted_items, limit),
|
|
730
|
+
missing_streams: summarizeStringList(details.missing_streams, limit),
|
|
731
|
+
unreadable_streams: summarizeStringList(details.unreadable_streams, limit),
|
|
732
|
+
hash_mismatches: summarizeStringList(details.hash_mismatches, limit),
|
|
733
|
+
chain_mismatches: summarizeStringList(details.chain_mismatches, limit),
|
|
734
|
+
skipped: details.skipped
|
|
735
|
+
}),
|
|
736
|
+
vectorization: (details, limit) => ({
|
|
737
|
+
semantic_runtime_available: details.semantic_runtime_available,
|
|
738
|
+
compatibility_mode_auto_defaults: details.compatibility_mode_auto_defaults,
|
|
739
|
+
auto_ollama_defaults_applied: details.auto_ollama_defaults_applied,
|
|
740
|
+
refresh_policy: details.refresh_policy,
|
|
741
|
+
provider_active: details.provider_active,
|
|
742
|
+
vector_store_active: details.vector_store_active,
|
|
743
|
+
items: details.items,
|
|
744
|
+
ledger_entries_before: details.ledger_entries_before,
|
|
745
|
+
stale_items_before_total: details.stale_items_before_total,
|
|
746
|
+
stale_items_before: summarizeStringList(details.stale_items_before, limit),
|
|
747
|
+
refresh_attempted: details.refresh_attempted,
|
|
748
|
+
refresh_skipped_reason: details.refresh_skipped_reason,
|
|
749
|
+
refresh_result: details.refresh_result,
|
|
750
|
+
ledger_entries_after: details.ledger_entries_after,
|
|
751
|
+
stale_items_after_total: details.stale_items_after_total,
|
|
752
|
+
stale_items_after: summarizeStringList(details.stale_items_after, limit),
|
|
753
|
+
skipped: details.skipped
|
|
754
|
+
})
|
|
755
|
+
};
|
|
756
|
+
function summarizeHealthCheckDetails(check, limit) {
|
|
757
|
+
const summarize = HEALTH_DETAIL_SUMMARIZERS[check.name];
|
|
758
|
+
return summarize ? summarize(check.details, limit) : check.details;
|
|
759
|
+
}
|
|
760
|
+
function applyBriefHealthProjection(result) {
|
|
761
|
+
const warningsSummary = summarizeStringList(result.warnings, BRIEF_HEALTH_DETAIL_LIMIT);
|
|
762
|
+
return {
|
|
763
|
+
ok: result.ok,
|
|
764
|
+
checks: result.checks.map((check) => ({
|
|
765
|
+
name: check.name,
|
|
766
|
+
status: check.status,
|
|
767
|
+
details: summarizeHealthCheckDetails(check, BRIEF_HEALTH_DETAIL_LIMIT)
|
|
768
|
+
})),
|
|
769
|
+
warnings: warningsSummary.sample,
|
|
770
|
+
projection: {
|
|
771
|
+
mode: "brief",
|
|
772
|
+
warning_count: warningsSummary.count,
|
|
773
|
+
warnings_truncated: warningsSummary.truncated,
|
|
774
|
+
detail_limit: BRIEF_HEALTH_DETAIL_LIMIT
|
|
775
|
+
},
|
|
776
|
+
generated_at: result.generated_at
|
|
777
|
+
};
|
|
778
|
+
}
|
|
779
|
+
function isSkippedHealthCheck(check) {
|
|
780
|
+
return check.details.skipped === true;
|
|
781
|
+
}
|
|
782
|
+
function applySummaryHealthProjection(result) {
|
|
783
|
+
const warningsSummary = summarizeStringList(result.warnings, BRIEF_HEALTH_DETAIL_LIMIT);
|
|
784
|
+
const omittedChecks = result.checks.filter(isSkippedHealthCheck).map((check) => check.name);
|
|
785
|
+
return {
|
|
786
|
+
ok: result.ok,
|
|
787
|
+
checks: result.checks.filter((check) => !isSkippedHealthCheck(check)).map((check) => ({
|
|
788
|
+
name: check.name,
|
|
789
|
+
status: check.status,
|
|
790
|
+
details: {}
|
|
791
|
+
})),
|
|
792
|
+
warning_count: warningsSummary.count,
|
|
793
|
+
warnings: warningsSummary.sample,
|
|
794
|
+
projection: {
|
|
795
|
+
mode: "summary",
|
|
796
|
+
warning_count: warningsSummary.count,
|
|
797
|
+
warnings_truncated: warningsSummary.truncated,
|
|
798
|
+
detail_limit: BRIEF_HEALTH_DETAIL_LIMIT,
|
|
799
|
+
omitted_checks: omittedChecks
|
|
800
|
+
},
|
|
801
|
+
generated_at: result.generated_at
|
|
802
|
+
};
|
|
803
|
+
}
|
|
804
|
+
function selectStaleItemDetail(values, verboseStaleItems) {
|
|
805
|
+
if (verboseStaleItems) {
|
|
806
|
+
return {
|
|
807
|
+
values,
|
|
808
|
+
truncated: false,
|
|
809
|
+
total: values.length
|
|
810
|
+
};
|
|
811
|
+
}
|
|
812
|
+
const summary = summarizeList(values, STALE_VECTORIZATION_SUMMARY_LIMIT);
|
|
813
|
+
return {
|
|
814
|
+
values: summary.values,
|
|
815
|
+
truncated: summary.truncated,
|
|
816
|
+
total: values.length
|
|
817
|
+
};
|
|
818
|
+
}
|
|
819
|
+
function telemetryEnvFlagEnabled(envKey) {
|
|
820
|
+
const value = (process.env[envKey] ?? "").trim().toLowerCase();
|
|
821
|
+
return value === "1" || value === "true" || value === "yes" || value === "on";
|
|
822
|
+
}
|
|
823
|
+
function telemetrySourceContextOverride() {
|
|
824
|
+
const value = (process.env.PM_TELEMETRY_SOURCE_CONTEXT ?? "").trim().toLowerCase();
|
|
825
|
+
return PM_TELEMETRY_SOURCE_CONTEXT_SET.has(value) ? value : null;
|
|
826
|
+
}
|
|
827
|
+
function normalizeEndpointForDisplay(rawEndpoint) {
|
|
828
|
+
const trimmed = rawEndpoint.trim();
|
|
829
|
+
if (trimmed.length === 0) {
|
|
830
|
+
return "";
|
|
831
|
+
}
|
|
832
|
+
try {
|
|
833
|
+
const parsed = new URL(trimmed);
|
|
834
|
+
parsed.username = "";
|
|
835
|
+
parsed.password = "";
|
|
836
|
+
parsed.search = "";
|
|
837
|
+
parsed.hash = "";
|
|
838
|
+
return parsed.toString();
|
|
839
|
+
} catch {
|
|
840
|
+
return trimmed;
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
function parseTelemetryQueue(raw) {
|
|
844
|
+
let validEntries = 0;
|
|
845
|
+
let invalidRows = 0;
|
|
846
|
+
let totalRows = 0;
|
|
847
|
+
let highRetryEntries = 0;
|
|
848
|
+
let maxAttempts = 0;
|
|
849
|
+
for (const line of raw.split("\n")) {
|
|
850
|
+
const trimmed = line.trim();
|
|
851
|
+
if (trimmed.length === 0) {
|
|
852
|
+
continue;
|
|
853
|
+
}
|
|
854
|
+
totalRows += 1;
|
|
855
|
+
try {
|
|
856
|
+
const parsed = JSON.parse(trimmed);
|
|
857
|
+
if (typeof parsed === "object" && parsed !== null && typeof parsed.attempts === "number" && Number.isFinite(parsed.attempts)) {
|
|
858
|
+
const attempts = Math.max(0, Math.trunc(parsed.attempts));
|
|
859
|
+
validEntries += 1;
|
|
860
|
+
maxAttempts = Math.max(maxAttempts, attempts);
|
|
861
|
+
if (attempts >= TELEMETRY_QUEUE_HIGH_RETRY_THRESHOLD) {
|
|
862
|
+
highRetryEntries += 1;
|
|
863
|
+
}
|
|
864
|
+
} else {
|
|
865
|
+
invalidRows += 1;
|
|
866
|
+
}
|
|
867
|
+
} catch {
|
|
868
|
+
invalidRows += 1;
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
return {
|
|
872
|
+
validEntries,
|
|
873
|
+
invalidRows,
|
|
874
|
+
totalRows,
|
|
875
|
+
highRetryEntries,
|
|
876
|
+
maxAttempts
|
|
877
|
+
};
|
|
878
|
+
}
|
|
879
|
+
function emptyTelemetryQueueSummary() {
|
|
880
|
+
return { validEntries: 0, invalidRows: 0, totalRows: 0, highRetryEntries: 0, maxAttempts: 0 };
|
|
881
|
+
}
|
|
882
|
+
function parseTelemetryRuntimeState(stateRaw) {
|
|
883
|
+
if (!stateRaw || stateRaw.trim().length === 0) {
|
|
884
|
+
return { runtimeState: {}, stateParseFailed: false };
|
|
885
|
+
}
|
|
886
|
+
try {
|
|
887
|
+
const parsed = JSON.parse(stateRaw);
|
|
888
|
+
if (typeof parsed === "object" && parsed !== null && !Array.isArray(parsed)) {
|
|
889
|
+
return { runtimeState: parsed, stateParseFailed: false };
|
|
890
|
+
}
|
|
891
|
+
return { runtimeState: {}, stateParseFailed: true };
|
|
892
|
+
} catch {
|
|
893
|
+
return { runtimeState: {}, stateParseFailed: true };
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
async function maybeProbeTelemetryEndpoint(settings, checkTelemetry) {
|
|
897
|
+
const endpoint = settings.telemetry.endpoint.trim();
|
|
898
|
+
if (!checkTelemetry || !settings.telemetry.enabled || endpoint.length === 0) {
|
|
899
|
+
return void 0;
|
|
900
|
+
}
|
|
901
|
+
const probe = await probeTelemetryEndpointHealth(endpoint);
|
|
902
|
+
return {
|
|
903
|
+
attempted: true,
|
|
904
|
+
...probe
|
|
905
|
+
};
|
|
906
|
+
}
|
|
907
|
+
function collectTelemetryQueueWarnings(settings, queueSummary, runtimeState) {
|
|
908
|
+
const warnings = [];
|
|
909
|
+
if (queueSummary.invalidRows > 0) {
|
|
910
|
+
warnings.push(`telemetry_queue_invalid_rows:${queueSummary.invalidRows}`);
|
|
911
|
+
}
|
|
912
|
+
if (!settings.telemetry.enabled || queueSummary.validEntries === 0) {
|
|
913
|
+
return warnings;
|
|
914
|
+
}
|
|
915
|
+
const lastSuccess = runtimeState.last_successful_flush_at;
|
|
916
|
+
const lastFailure = runtimeState.last_failed_flush_at;
|
|
917
|
+
const activeFailure = lastFailure && (!lastSuccess || lastFailure > lastSuccess);
|
|
918
|
+
const neverFlushed = !lastSuccess;
|
|
919
|
+
const highWater = queueSummary.validEntries >= TELEMETRY_QUEUE_HIGH_WATER_MARK;
|
|
920
|
+
if (activeFailure || neverFlushed || highWater) {
|
|
921
|
+
warnings.push(`telemetry_queue_pending:${queueSummary.validEntries}`);
|
|
922
|
+
}
|
|
923
|
+
if (queueSummary.highRetryEntries > 0) {
|
|
924
|
+
warnings.push(`telemetry_queue_high_retries:${queueSummary.highRetryEntries}`);
|
|
925
|
+
}
|
|
926
|
+
return warnings;
|
|
927
|
+
}
|
|
928
|
+
function collectTelemetryEndpointWarnings(endpointProbe) {
|
|
929
|
+
if (!endpointProbe || endpointProbe.ok !== false) {
|
|
930
|
+
return [];
|
|
931
|
+
}
|
|
932
|
+
return typeof endpointProbe.status === "number" ? [`telemetry_endpoint_probe_http_status:${endpointProbe.status}`] : ["telemetry_endpoint_probe_failed"];
|
|
933
|
+
}
|
|
934
|
+
function collectTelemetrySchemaWarnings(endpointProbe) {
|
|
935
|
+
const parsedMaxSchemaVersion = Number.parseInt(endpointProbe?.max_schema_version ?? "", 10);
|
|
936
|
+
if (endpointProbe?.ok === true && Number.isInteger(parsedMaxSchemaVersion) && parsedMaxSchemaVersion > TELEMETRY_SCHEMA_VERSION) {
|
|
937
|
+
return [`telemetry_schema_version_behind:${parsedMaxSchemaVersion}`];
|
|
938
|
+
}
|
|
939
|
+
return [];
|
|
940
|
+
}
|
|
941
|
+
function collectTelemetryOtelWarnings(settings, runtimeState) {
|
|
942
|
+
const pendingOtelSpans = typeof runtimeState.pending_otel_spans === "number" ? runtimeState.pending_otel_spans : 0;
|
|
943
|
+
const lastOtelSuccess = runtimeState.last_otel_success_at;
|
|
944
|
+
const lastOtelFailure = runtimeState.last_otel_failure_at;
|
|
945
|
+
const otelExportFailing = settings.telemetry.enabled && pendingOtelSpans > 0 && Boolean(lastOtelFailure) && // >= so a mixed-outcome batch (success + failure share the same attempt
|
|
946
|
+
// timestamp) still surfaces the warning rather than being masked by the tie.
|
|
947
|
+
(!lastOtelSuccess || lastOtelFailure >= lastOtelSuccess);
|
|
948
|
+
return otelExportFailing ? [`telemetry_otel_export_failing:${pendingOtelSpans}`] : [];
|
|
949
|
+
}
|
|
950
|
+
function buildTelemetryEnvOverrideDetails() {
|
|
951
|
+
return {
|
|
952
|
+
telemetry_disabled: telemetryEnvFlagEnabled("PM_TELEMETRY_DISABLED") || telemetryEnvFlagEnabled("PM_NO_TELEMETRY"),
|
|
953
|
+
pm_no_telemetry: telemetryEnvFlagEnabled("PM_NO_TELEMETRY"),
|
|
954
|
+
telemetry_otel_disabled: telemetryEnvFlagEnabled("PM_TELEMETRY_OTEL_DISABLED"),
|
|
955
|
+
telemetry_inline_flush: telemetryEnvFlagEnabled("PM_TELEMETRY_INLINE_FLUSH"),
|
|
956
|
+
telemetry_source_context: telemetrySourceContextOverride()
|
|
957
|
+
};
|
|
958
|
+
}
|
|
959
|
+
function telemetryQueueHasEntries(settings, queueSummary) {
|
|
960
|
+
return settings.telemetry.enabled && queueSummary.validEntries > 0;
|
|
961
|
+
}
|
|
962
|
+
function isTelemetryQueueDraining(queueHasEntries, warnings) {
|
|
963
|
+
return queueHasEntries && warnings.every((warning) => !warning.startsWith("telemetry_queue_pending:") && !warning.startsWith("telemetry_queue_high_retries:"));
|
|
964
|
+
}
|
|
965
|
+
async function probeTelemetryEndpointHealth(endpoint) {
|
|
966
|
+
let probeUrl = endpoint;
|
|
967
|
+
try {
|
|
968
|
+
const parsed = new URL(endpoint);
|
|
969
|
+
parsed.pathname = "/healthz";
|
|
970
|
+
parsed.search = "";
|
|
971
|
+
parsed.hash = "";
|
|
972
|
+
probeUrl = parsed.toString();
|
|
973
|
+
} catch {
|
|
974
|
+
}
|
|
975
|
+
try {
|
|
976
|
+
const response = await fetch(probeUrl, {
|
|
977
|
+
method: "GET",
|
|
978
|
+
signal: AbortSignal.timeout(TELEMETRY_ENDPOINT_PROBE_TIMEOUT_MS)
|
|
979
|
+
});
|
|
980
|
+
return {
|
|
981
|
+
probe_url: normalizeEndpointForDisplay(probeUrl),
|
|
982
|
+
ok: response.ok,
|
|
983
|
+
status: response.status,
|
|
984
|
+
max_schema_version: (() => {
|
|
985
|
+
for (const headerName of TELEMETRY_SERVER_MAX_SCHEMA_VERSION_HEADERS) {
|
|
986
|
+
const value = response.headers.get(headerName)?.trim();
|
|
987
|
+
if (value && value.length > 0) {
|
|
988
|
+
return value;
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
return void 0;
|
|
992
|
+
})()
|
|
993
|
+
};
|
|
994
|
+
} catch (error) {
|
|
995
|
+
return {
|
|
996
|
+
probe_url: normalizeEndpointForDisplay(probeUrl),
|
|
997
|
+
ok: false,
|
|
998
|
+
/* c8 ignore next -- non-Error throwables require transport-layer fault injection */
|
|
999
|
+
error: error instanceof Error ? error.message : "probe_failed"
|
|
1000
|
+
};
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
async function buildTelemetryCheck(settings, options) {
|
|
1004
|
+
const globalPmRoot = resolveGlobalPmRoot(process.cwd());
|
|
1005
|
+
const queuePath = path.join(globalPmRoot, TELEMETRY_QUEUE_RELATIVE_PATH);
|
|
1006
|
+
const statePath = path.join(globalPmRoot, TELEMETRY_STATE_RELATIVE_PATH);
|
|
1007
|
+
const queueRaw = await readFileIfExists(queuePath);
|
|
1008
|
+
const queueExists = queueRaw !== null;
|
|
1009
|
+
const queueSizeBytes = queueRaw ? Buffer.byteLength(queueRaw, "utf8") : 0;
|
|
1010
|
+
const queueSummary = queueRaw ? parseTelemetryQueue(queueRaw) : emptyTelemetryQueueSummary();
|
|
1011
|
+
const stateRaw = await readFileIfExists(statePath);
|
|
1012
|
+
const { runtimeState, stateParseFailed } = parseTelemetryRuntimeState(stateRaw);
|
|
1013
|
+
const endpoint = settings.telemetry.endpoint.trim();
|
|
1014
|
+
const endpointDisplay = normalizeEndpointForDisplay(endpoint);
|
|
1015
|
+
const endpointProbe = await maybeProbeTelemetryEndpoint(settings, options.checkTelemetry);
|
|
1016
|
+
const warnings = [];
|
|
1017
|
+
if (stateParseFailed) {
|
|
1018
|
+
warnings.push("telemetry_state_invalid_json");
|
|
1019
|
+
}
|
|
1020
|
+
warnings.push(...collectTelemetryQueueWarnings(settings, queueSummary, runtimeState), ...collectTelemetryEndpointWarnings(endpointProbe), ...collectTelemetrySchemaWarnings(endpointProbe), ...collectTelemetryOtelWarnings(settings, runtimeState));
|
|
1021
|
+
const queueHasEntries = telemetryQueueHasEntries(settings, queueSummary);
|
|
1022
|
+
const pendingOtelSpans = typeof runtimeState.pending_otel_spans === "number" ? runtimeState.pending_otel_spans : 0;
|
|
1023
|
+
return {
|
|
1024
|
+
check: {
|
|
1025
|
+
name: "telemetry",
|
|
1026
|
+
status: warnings.length === 0 ? "ok" : "warn",
|
|
1027
|
+
details: {
|
|
1028
|
+
enabled: settings.telemetry.enabled,
|
|
1029
|
+
capture_level: settings.telemetry.capture_level,
|
|
1030
|
+
endpoint: endpointDisplay,
|
|
1031
|
+
global_pm_root: globalPmRoot,
|
|
1032
|
+
queue_path: queuePath,
|
|
1033
|
+
queue_exists: queueExists,
|
|
1034
|
+
queue_entries: queueSummary.validEntries,
|
|
1035
|
+
queue_draining: isTelemetryQueueDraining(queueHasEntries, warnings),
|
|
1036
|
+
queue_invalid_rows: queueSummary.invalidRows,
|
|
1037
|
+
queue_rows_total: queueSummary.totalRows,
|
|
1038
|
+
queue_size_bytes: queueSizeBytes,
|
|
1039
|
+
queue_high_retry_entries: queueSummary.highRetryEntries,
|
|
1040
|
+
queue_high_retry_threshold: TELEMETRY_QUEUE_HIGH_RETRY_THRESHOLD,
|
|
1041
|
+
queue_max_attempts: queueSummary.maxAttempts,
|
|
1042
|
+
runtime_state_path: statePath,
|
|
1043
|
+
last_attempted_flush_at: runtimeState.last_attempted_flush_at ?? null,
|
|
1044
|
+
last_successful_flush_at: runtimeState.last_successful_flush_at ?? null,
|
|
1045
|
+
last_failed_flush_at: runtimeState.last_failed_flush_at ?? null,
|
|
1046
|
+
last_failed_flush_error: runtimeState.last_failed_flush_error ?? null,
|
|
1047
|
+
pending_otel_spans: pendingOtelSpans,
|
|
1048
|
+
last_otel_attempt_at: runtimeState.last_otel_attempt_at ?? null,
|
|
1049
|
+
last_otel_success_at: runtimeState.last_otel_success_at ?? null,
|
|
1050
|
+
last_otel_failure_at: runtimeState.last_otel_failure_at ?? null,
|
|
1051
|
+
last_otel_failure_error: runtimeState.last_otel_failure_error ?? null,
|
|
1052
|
+
endpoint_probe: endpointProbe ?? { attempted: false },
|
|
1053
|
+
env_overrides: buildTelemetryEnvOverrideDetails()
|
|
1054
|
+
}
|
|
1055
|
+
},
|
|
1056
|
+
warnings
|
|
1057
|
+
};
|
|
1058
|
+
}
|
|
1059
|
+
async function buildLocksCheck(pmRoot) {
|
|
1060
|
+
let scan;
|
|
1061
|
+
try {
|
|
1062
|
+
scan = await scanLockHealth(pmRoot);
|
|
1063
|
+
} catch (error) {
|
|
1064
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
1065
|
+
return {
|
|
1066
|
+
check: {
|
|
1067
|
+
name: "locks",
|
|
1068
|
+
status: "warn",
|
|
1069
|
+
details: {
|
|
1070
|
+
active_lock_count: 0,
|
|
1071
|
+
stale_lock_count: 0,
|
|
1072
|
+
unreadable_lock_count: 0,
|
|
1073
|
+
unparseable_lock_count: 0,
|
|
1074
|
+
scan_failed: true,
|
|
1075
|
+
error: message,
|
|
1076
|
+
pm_root: pmRoot
|
|
1077
|
+
}
|
|
1078
|
+
},
|
|
1079
|
+
warnings: [`locks_scan_failed:${message}`]
|
|
1080
|
+
};
|
|
1081
|
+
}
|
|
1082
|
+
const warnings = [];
|
|
1083
|
+
if (scan.stale_lock_count > 0) {
|
|
1084
|
+
warnings.push(`locks_stale_count:${scan.stale_lock_count}`);
|
|
1085
|
+
}
|
|
1086
|
+
if (scan.unreadable_lock_count > 0) {
|
|
1087
|
+
warnings.push(`locks_unreadable:${scan.unreadable_lock_count}`);
|
|
1088
|
+
}
|
|
1089
|
+
return {
|
|
1090
|
+
check: {
|
|
1091
|
+
name: "locks",
|
|
1092
|
+
status: warnings.length === 0 ? "ok" : "warn",
|
|
1093
|
+
details: {
|
|
1094
|
+
active_lock_count: scan.active_lock_count,
|
|
1095
|
+
stale_lock_count: scan.stale_lock_count,
|
|
1096
|
+
unreadable_lock_count: scan.unreadable_lock_count,
|
|
1097
|
+
unparseable_lock_count: scan.unparseable_lock_count
|
|
1098
|
+
}
|
|
1099
|
+
},
|
|
1100
|
+
warnings
|
|
1101
|
+
};
|
|
1102
|
+
}
|
|
1103
|
+
async function buildHistoryDriftCheck(pmRoot, items) {
|
|
1104
|
+
const cacheHitVerification = "metadata";
|
|
1105
|
+
const { missingStreams, unreadableStreams, hashMismatches, chainMismatches, driftedItems } = await scanHistoryDrift(pmRoot, items, { cacheHitVerification });
|
|
1106
|
+
const warnings = [
|
|
1107
|
+
...missingStreams.map((id) => `history_drift_missing_stream:${id}`),
|
|
1108
|
+
...unreadableStreams.map((id) => `history_drift_unreadable_stream:${id}`),
|
|
1109
|
+
...hashMismatches.map((id) => `history_drift_hash_mismatch:${id}`),
|
|
1110
|
+
...chainMismatches.map((id) => `history_drift_chain_mismatch:${id}`)
|
|
1111
|
+
];
|
|
1112
|
+
return {
|
|
1113
|
+
check: {
|
|
1114
|
+
name: "history_drift",
|
|
1115
|
+
status: warnings.length === 0 ? "ok" : "warn",
|
|
1116
|
+
details: {
|
|
1117
|
+
checked_items: items.length,
|
|
1118
|
+
cache_hit_verification: cacheHitVerification,
|
|
1119
|
+
drifted_items: driftedItems,
|
|
1120
|
+
counts: {
|
|
1121
|
+
drifted: driftedItems.length,
|
|
1122
|
+
missing_streams: missingStreams.length,
|
|
1123
|
+
unreadable_streams: unreadableStreams.length,
|
|
1124
|
+
hash_mismatches: hashMismatches.length,
|
|
1125
|
+
chain_mismatches: chainMismatches.length
|
|
1126
|
+
},
|
|
1127
|
+
missing_streams: missingStreams,
|
|
1128
|
+
unreadable_streams: unreadableStreams,
|
|
1129
|
+
hash_mismatches: hashMismatches,
|
|
1130
|
+
chain_mismatches: chainMismatches
|
|
1131
|
+
}
|
|
1132
|
+
},
|
|
1133
|
+
warnings
|
|
1134
|
+
};
|
|
1135
|
+
}
|
|
1136
|
+
function buildVectorizationRuntimeSnapshot(settings) {
|
|
1137
|
+
const runtimeDefaults = resolveSettingsWithSemanticRuntimeDefaults(settings);
|
|
1138
|
+
const providerResolution = resolveEmbeddingProviders(runtimeDefaults.settings);
|
|
1139
|
+
const vectorStoreResolution = resolveVectorStores(runtimeDefaults.settings);
|
|
1140
|
+
const runtimeEmbeddingIdentity = providerResolution.active ? buildVectorizationEmbeddingIdentity(providerResolution.active.name, providerResolution.active.model) : null;
|
|
1141
|
+
return {
|
|
1142
|
+
runtimeDefaults,
|
|
1143
|
+
providerResolution,
|
|
1144
|
+
vectorStoreResolution,
|
|
1145
|
+
runtimeEmbeddingIdentity,
|
|
1146
|
+
semanticRuntimeAvailable: Boolean(providerResolution.active && vectorStoreResolution.active)
|
|
1147
|
+
};
|
|
1148
|
+
}
|
|
1149
|
+
function emptyVectorizationRefreshResult() {
|
|
1150
|
+
return {
|
|
1151
|
+
refreshed: [],
|
|
1152
|
+
skipped: [],
|
|
1153
|
+
warnings: []
|
|
1154
|
+
};
|
|
1155
|
+
}
|
|
1156
|
+
async function refreshStaleVectorizationItems(params) {
|
|
1157
|
+
if (!params.refreshPolicy.enabled || !params.snapshot.semanticRuntimeAvailable || params.staleBefore.length === 0) {
|
|
1158
|
+
return emptyVectorizationRefreshResult();
|
|
1159
|
+
}
|
|
1160
|
+
return refreshSemanticEmbeddingsForMutatedItems(params.pmRoot, params.staleBefore, {
|
|
1161
|
+
settings: params.snapshot.runtimeDefaults.settings,
|
|
1162
|
+
apply_runtime_defaults: false
|
|
1163
|
+
});
|
|
1164
|
+
}
|
|
1165
|
+
function vectorizationEmbeddingIdentityChanged(params) {
|
|
1166
|
+
return params.strictVectorizationWarnings && params.semanticRuntimeAvailable && Boolean(params.ledgerBefore.embedding && params.runtimeEmbeddingIdentity && hasVectorizationEmbeddingIdentityChanged(params.ledgerBefore.embedding, params.runtimeEmbeddingIdentity));
|
|
1167
|
+
}
|
|
1168
|
+
function collectVectorizationWarnings(params) {
|
|
1169
|
+
const warningSet = /* @__PURE__ */ new Set([...params.ledgerBefore.warnings, ...params.ledgerAfter.warnings]);
|
|
1170
|
+
if (params.strictVectorizationWarnings) {
|
|
1171
|
+
for (const warning of params.refreshResult.warnings) {
|
|
1172
|
+
warningSet.add(warning);
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
if (params.embeddingIdentityChanged) {
|
|
1176
|
+
warningSet.add("vectorization_embedding_identity_changed");
|
|
1177
|
+
}
|
|
1178
|
+
if (params.strictVectorizationWarnings && params.semanticRuntimeAvailable && params.staleAfter.length > 0) {
|
|
1179
|
+
warningSet.add(`vectorization_stale_items_remaining:${params.staleAfter.length}`);
|
|
1180
|
+
}
|
|
1181
|
+
return [...warningSet].sort((left, right) => left.localeCompare(right));
|
|
1182
|
+
}
|
|
1183
|
+
function resolveVectorizationRefreshSkippedReason(refreshPolicy, semanticRuntimeAvailable, staleBefore) {
|
|
1184
|
+
if (refreshPolicy.enabled && semanticRuntimeAvailable && staleBefore.length > 0) {
|
|
1185
|
+
return null;
|
|
1186
|
+
}
|
|
1187
|
+
if (!refreshPolicy.enabled) {
|
|
1188
|
+
return "refresh_disabled";
|
|
1189
|
+
}
|
|
1190
|
+
return semanticRuntimeAvailable ? "no_stale_items" : "semantic_runtime_unavailable";
|
|
1191
|
+
}
|
|
1192
|
+
function buildVectorizationProviderDetails(settings, snapshot) {
|
|
1193
|
+
const activeProvider = snapshot.providerResolution.active?.name ?? null;
|
|
1194
|
+
const activeVectorStore = snapshot.vectorStoreResolution.active?.name ?? null;
|
|
1195
|
+
return {
|
|
1196
|
+
provider_active: activeProvider,
|
|
1197
|
+
// GH-244: surface the persisted (possibly empty) configured value and
|
|
1198
|
+
// how the active resolution was sourced, so a config audit can tell
|
|
1199
|
+
// "auto-detected" apart from a genuine misconfiguration when
|
|
1200
|
+
// settings.search.provider / vector_store.adapter are empty strings.
|
|
1201
|
+
provider_configured: typeof settings.search?.provider === "string" ? settings.search.provider : null,
|
|
1202
|
+
provider_source: resolveProviderConfigSource(activeProvider, settings.search?.provider ?? null),
|
|
1203
|
+
vector_store_active: activeVectorStore,
|
|
1204
|
+
vector_store_configured: typeof settings.vector_store?.adapter === "string" ? settings.vector_store.adapter : null,
|
|
1205
|
+
vector_store_source: resolveProviderConfigSource(activeVectorStore, settings.vector_store?.adapter ?? null)
|
|
1206
|
+
};
|
|
1207
|
+
}
|
|
1208
|
+
function buildVectorizationRefreshPolicyDetails(refreshPolicy) {
|
|
1209
|
+
return {
|
|
1210
|
+
enabled: refreshPolicy.enabled,
|
|
1211
|
+
check_only: refreshPolicy.checkOnly,
|
|
1212
|
+
no_refresh: refreshPolicy.noRefresh,
|
|
1213
|
+
refresh_vectors: refreshPolicy.refreshVectors
|
|
1214
|
+
};
|
|
1215
|
+
}
|
|
1216
|
+
function vectorizationRefreshAttempted(refreshPolicy, semanticRuntimeAvailable, staleBefore) {
|
|
1217
|
+
return refreshPolicy.enabled && staleBefore.length > 0 && semanticRuntimeAvailable;
|
|
1218
|
+
}
|
|
1219
|
+
async function buildVectorizationCheck(pmRoot, settings, items, refreshPolicy, verboseStaleItems) {
|
|
1220
|
+
const snapshot = buildVectorizationRuntimeSnapshot(settings);
|
|
1221
|
+
const ledgerBefore = await readVectorizationStatusLedger(pmRoot);
|
|
1222
|
+
const staleBefore = snapshot.semanticRuntimeAvailable ? collectStaleVectorizationIds(items, ledgerBefore.entries) : [];
|
|
1223
|
+
const refreshResult = await refreshStaleVectorizationItems({ pmRoot, snapshot, refreshPolicy, staleBefore });
|
|
1224
|
+
const ledgerAfter = await readVectorizationStatusLedger(pmRoot);
|
|
1225
|
+
const staleAfter = snapshot.semanticRuntimeAvailable ? collectStaleVectorizationIds(items, ledgerAfter.entries) : [];
|
|
1226
|
+
const strictVectorizationWarnings = !snapshot.runtimeDefaults.auto_ollama_defaults_applied;
|
|
1227
|
+
const embeddingIdentityChanged = vectorizationEmbeddingIdentityChanged({
|
|
1228
|
+
strictVectorizationWarnings,
|
|
1229
|
+
semanticRuntimeAvailable: snapshot.semanticRuntimeAvailable,
|
|
1230
|
+
ledgerBefore,
|
|
1231
|
+
runtimeEmbeddingIdentity: snapshot.runtimeEmbeddingIdentity
|
|
1232
|
+
});
|
|
1233
|
+
const warnings = collectVectorizationWarnings({
|
|
1234
|
+
ledgerBefore,
|
|
1235
|
+
ledgerAfter,
|
|
1236
|
+
refreshResult,
|
|
1237
|
+
strictVectorizationWarnings,
|
|
1238
|
+
semanticRuntimeAvailable: snapshot.semanticRuntimeAvailable,
|
|
1239
|
+
embeddingIdentityChanged,
|
|
1240
|
+
staleAfter
|
|
1241
|
+
});
|
|
1242
|
+
const staleBeforeDetail = selectStaleItemDetail(staleBefore, verboseStaleItems);
|
|
1243
|
+
const staleAfterDetail = selectStaleItemDetail(staleAfter, verboseStaleItems);
|
|
1244
|
+
const refreshAttempted = vectorizationRefreshAttempted(refreshPolicy, snapshot.semanticRuntimeAvailable, staleBefore);
|
|
1245
|
+
return {
|
|
1246
|
+
check: {
|
|
1247
|
+
name: "vectorization",
|
|
1248
|
+
status: warnings.length === 0 ? "ok" : "warn",
|
|
1249
|
+
details: {
|
|
1250
|
+
semantic_runtime_available: snapshot.semanticRuntimeAvailable,
|
|
1251
|
+
compatibility_mode_auto_defaults: snapshot.runtimeDefaults.auto_ollama_defaults_applied,
|
|
1252
|
+
auto_ollama_defaults_applied: snapshot.runtimeDefaults.auto_ollama_defaults_applied,
|
|
1253
|
+
refresh_policy: buildVectorizationRefreshPolicyDetails(refreshPolicy),
|
|
1254
|
+
...buildVectorizationProviderDetails(settings, snapshot),
|
|
1255
|
+
embedding_identity_changed: embeddingIdentityChanged,
|
|
1256
|
+
embedding_identity_before: ledgerBefore.embedding ?? null,
|
|
1257
|
+
embedding_identity_runtime: snapshot.runtimeEmbeddingIdentity ?? null,
|
|
1258
|
+
items: items.length,
|
|
1259
|
+
ledger_entries_before: Object.keys(ledgerBefore.entries).length,
|
|
1260
|
+
stale_items_detail_mode: verboseStaleItems ? "full" : "summary",
|
|
1261
|
+
stale_items_summary_limit: STALE_VECTORIZATION_SUMMARY_LIMIT,
|
|
1262
|
+
stale_items_before_total: staleBeforeDetail.total,
|
|
1263
|
+
stale_items_before: staleBeforeDetail.values,
|
|
1264
|
+
stale_items_before_truncated: staleBeforeDetail.truncated,
|
|
1265
|
+
refresh_attempted: refreshAttempted,
|
|
1266
|
+
refresh_skipped_reason: resolveVectorizationRefreshSkippedReason(refreshPolicy, snapshot.semanticRuntimeAvailable, staleBefore),
|
|
1267
|
+
refresh_result: refreshResult,
|
|
1268
|
+
ledger_entries_after: Object.keys(ledgerAfter.entries).length,
|
|
1269
|
+
stale_items_after_total: staleAfterDetail.total,
|
|
1270
|
+
stale_items_after: staleAfterDetail.values,
|
|
1271
|
+
stale_items_after_truncated: staleAfterDetail.truncated
|
|
1272
|
+
}
|
|
1273
|
+
},
|
|
1274
|
+
warnings
|
|
1275
|
+
};
|
|
1276
|
+
}
|
|
1277
|
+
function validateSettingsValues(settings) {
|
|
1278
|
+
const warnings = [];
|
|
1279
|
+
if (settings.id_prefix.trim().length === 0) {
|
|
1280
|
+
warnings.push("settings:id_prefix_empty");
|
|
1281
|
+
}
|
|
1282
|
+
if (settings.locks.ttl_seconds <= 0) {
|
|
1283
|
+
warnings.push("settings:locks_ttl_non_positive");
|
|
1284
|
+
}
|
|
1285
|
+
return warnings;
|
|
1286
|
+
}
|
|
1287
|
+
function resolveVectorRefreshPolicy(options) {
|
|
1288
|
+
const checkOnly = options.checkOnly === true;
|
|
1289
|
+
const noRefresh = options.noRefresh === true || checkOnly;
|
|
1290
|
+
const refreshVectors = options.refreshVectors === true;
|
|
1291
|
+
if (refreshVectors && checkOnly) {
|
|
1292
|
+
throw new PmCliError("--check-only cannot be combined with --refresh-vectors", EXIT_CODE.USAGE);
|
|
1293
|
+
}
|
|
1294
|
+
if (refreshVectors && options.noRefresh === true) {
|
|
1295
|
+
throw new PmCliError("--no-refresh cannot be combined with --refresh-vectors", EXIT_CODE.USAGE);
|
|
1296
|
+
}
|
|
1297
|
+
return {
|
|
1298
|
+
enabled: refreshVectors || !noRefresh,
|
|
1299
|
+
checkOnly,
|
|
1300
|
+
noRefresh,
|
|
1301
|
+
refreshVectors
|
|
1302
|
+
};
|
|
1303
|
+
}
|
|
1304
|
+
function resolveHealthDirectoryLists(typeRegistry) {
|
|
1305
|
+
const optionalBuiltinDirs = new Set(PM_OPTIONAL_TYPE_SUBDIRS.filter((entry) => entry.length > 0));
|
|
1306
|
+
const requiredDirSet = new Set(PM_CORE_REQUIRED_SUBDIRS.filter((entry) => entry.length > 0));
|
|
1307
|
+
const optionalDirSet = /* @__PURE__ */ new Set();
|
|
1308
|
+
for (const folder of typeRegistry.folders) {
|
|
1309
|
+
if (optionalBuiltinDirs.has(folder)) {
|
|
1310
|
+
optionalDirSet.add(folder);
|
|
1311
|
+
continue;
|
|
1312
|
+
}
|
|
1313
|
+
requiredDirSet.add(folder);
|
|
1314
|
+
}
|
|
1315
|
+
return {
|
|
1316
|
+
requiredDirs: [...requiredDirSet].sort((left, right) => left.localeCompare(right)),
|
|
1317
|
+
optionalDirs: [...optionalDirSet].sort((left, right) => left.localeCompare(right)),
|
|
1318
|
+
optionalDirSet
|
|
1319
|
+
};
|
|
1320
|
+
}
|
|
1321
|
+
async function scanHealthDirectories(pmRoot, typeRegistry, strictDirectories) {
|
|
1322
|
+
const { requiredDirs, optionalDirs, optionalDirSet } = resolveHealthDirectoryLists(typeRegistry);
|
|
1323
|
+
const missingRequiredDirs = [];
|
|
1324
|
+
const missingOptionalDirs = [];
|
|
1325
|
+
const hookWarnings = [];
|
|
1326
|
+
for (const relativeDir of [...requiredDirs, ...optionalDirs]) {
|
|
1327
|
+
const directoryPath = path.join(pmRoot, relativeDir);
|
|
1328
|
+
hookWarnings.push(...await runActiveOnReadHooks({ path: directoryPath, scope: "project" }));
|
|
1329
|
+
if (await isDirectory(directoryPath)) {
|
|
1330
|
+
continue;
|
|
1331
|
+
}
|
|
1332
|
+
if (optionalDirSet.has(relativeDir)) {
|
|
1333
|
+
missingOptionalDirs.push(relativeDir);
|
|
1334
|
+
} else {
|
|
1335
|
+
missingRequiredDirs.push(relativeDir);
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
return {
|
|
1339
|
+
requiredDirs,
|
|
1340
|
+
optionalDirs,
|
|
1341
|
+
missingRequiredDirs,
|
|
1342
|
+
missingOptionalDirs,
|
|
1343
|
+
missingDirs: strictDirectories ? [...missingRequiredDirs, ...missingOptionalDirs] : [...missingRequiredDirs],
|
|
1344
|
+
hookWarnings
|
|
1345
|
+
};
|
|
1346
|
+
}
|
|
1347
|
+
function resolveHealthSkipPolicy(options) {
|
|
1348
|
+
const summaryMode = options.summary === true && options.full !== true;
|
|
1349
|
+
const fastProjectionCheckOnly = options.checkOnly === true && (options.brief === true || options.summary === true) && options.full !== true;
|
|
1350
|
+
return {
|
|
1351
|
+
summaryMode,
|
|
1352
|
+
skipIntegrity: (options.skipIntegrity === true || fastProjectionCheckOnly) && options.full !== true,
|
|
1353
|
+
skipDrift: (options.skipDrift === true || fastProjectionCheckOnly) && options.full !== true,
|
|
1354
|
+
skipVectors: (options.skipVectors === true || fastProjectionCheckOnly) && options.full !== true
|
|
1355
|
+
};
|
|
1356
|
+
}
|
|
1357
|
+
async function readHealthItems(params) {
|
|
1358
|
+
if (params.skipPolicy.skipDrift && params.skipPolicy.skipVectors) {
|
|
1359
|
+
return listAllFrontMatter(params.pmRoot, params.settings.item_format, params.typeRegistry.type_to_folder, params.itemReadWarnings, params.settings.schema);
|
|
1360
|
+
}
|
|
1361
|
+
return listAllFrontMatterWithBody(params.pmRoot, params.settings.item_format, params.typeRegistry.type_to_folder, params.itemReadWarnings, params.settings.schema);
|
|
1362
|
+
}
|
|
1363
|
+
function buildSkippedHealthCheck(name) {
|
|
1364
|
+
return { check: { name, status: "ok", details: { skipped: true } }, warnings: [] };
|
|
1365
|
+
}
|
|
1366
|
+
function buildSettingsHealthCheck(settingsPath, settings, normalizedSettingsReadWarnings) {
|
|
1367
|
+
return {
|
|
1368
|
+
name: "settings",
|
|
1369
|
+
/* c8 ignore next -- settings read-warning status split is covered in broader read-settings integration tests */
|
|
1370
|
+
status: normalizedSettingsReadWarnings.length === 0 ? "ok" : "warn",
|
|
1371
|
+
details: {
|
|
1372
|
+
path: settingsPath,
|
|
1373
|
+
version: settings.version,
|
|
1374
|
+
id_prefix: settings.id_prefix,
|
|
1375
|
+
locks_ttl_seconds: settings.locks.ttl_seconds,
|
|
1376
|
+
warnings: normalizedSettingsReadWarnings
|
|
1377
|
+
}
|
|
1378
|
+
};
|
|
1379
|
+
}
|
|
1380
|
+
function buildDirectoriesHealthCheck(directoryState, strictDirectories) {
|
|
1381
|
+
return {
|
|
1382
|
+
name: "directories",
|
|
1383
|
+
status: directoryState.missingDirs.length === 0 ? "ok" : "warn",
|
|
1384
|
+
details: {
|
|
1385
|
+
required: directoryState.requiredDirs,
|
|
1386
|
+
optional: directoryState.optionalDirs,
|
|
1387
|
+
missing_required: directoryState.missingRequiredDirs,
|
|
1388
|
+
missing_optional: directoryState.missingOptionalDirs,
|
|
1389
|
+
missing: directoryState.missingDirs,
|
|
1390
|
+
strict_directories: strictDirectories
|
|
1391
|
+
}
|
|
1392
|
+
};
|
|
1393
|
+
}
|
|
1394
|
+
function buildSettingsValuesHealthCheck(settingWarnings) {
|
|
1395
|
+
return {
|
|
1396
|
+
name: "settings_values",
|
|
1397
|
+
status: settingWarnings.length === 0 ? "ok" : "warn",
|
|
1398
|
+
details: { warnings: settingWarnings }
|
|
1399
|
+
};
|
|
1400
|
+
}
|
|
1401
|
+
function buildStorageHealthCheck(items, settings, historySummary) {
|
|
1402
|
+
return {
|
|
1403
|
+
name: "storage",
|
|
1404
|
+
status: historySummary.over_threshold.length === 0 ? "ok" : "warn",
|
|
1405
|
+
details: {
|
|
1406
|
+
items: items.length,
|
|
1407
|
+
history_streams: historySummary.count,
|
|
1408
|
+
...historySummary.max_entries !== null ? {
|
|
1409
|
+
compact_policy: {
|
|
1410
|
+
enabled: settings.history.compact_policy.enabled,
|
|
1411
|
+
max_entries: historySummary.max_entries,
|
|
1412
|
+
trigger: settings.history.compact_policy.trigger,
|
|
1413
|
+
over_threshold_count: historySummary.over_threshold.length,
|
|
1414
|
+
over_threshold: historySummary.over_threshold
|
|
1415
|
+
}
|
|
1416
|
+
} : {}
|
|
1417
|
+
}
|
|
1418
|
+
};
|
|
1419
|
+
}
|
|
1420
|
+
function collectHealthWarnings(params) {
|
|
1421
|
+
const warnings = [
|
|
1422
|
+
...params.directoryState.missingDirs.map((dir) => `missing_directory:${dir}`),
|
|
1423
|
+
...params.normalizedSettingsReadWarnings,
|
|
1424
|
+
...params.settingWarnings,
|
|
1425
|
+
...params.normalizedItemReadWarnings,
|
|
1426
|
+
...params.telemetryCheck.warnings,
|
|
1427
|
+
...params.extensionCheck.warnings,
|
|
1428
|
+
...params.historyPolicyWarnings,
|
|
1429
|
+
...params.historySummary.warnings,
|
|
1430
|
+
...params.locksCheck.warnings,
|
|
1431
|
+
...params.integrityCheck.warnings,
|
|
1432
|
+
...params.historyDriftCheck.warnings,
|
|
1433
|
+
...params.vectorizationCheck.warnings,
|
|
1434
|
+
...params.directoryState.hookWarnings
|
|
1435
|
+
];
|
|
1436
|
+
return [...new Set(warnings)];
|
|
1437
|
+
}
|
|
1438
|
+
function extractHistoryDriftedCount(historyDriftCheck) {
|
|
1439
|
+
const counts = historyDriftCheck.check.details.counts;
|
|
1440
|
+
return typeof counts?.drifted === "number" ? counts.drifted : 0;
|
|
1441
|
+
}
|
|
1442
|
+
function buildHealthRemediationSources(params) {
|
|
1443
|
+
return {
|
|
1444
|
+
settings: params.normalizedSettingsReadWarnings,
|
|
1445
|
+
directories: params.directoryState.missingDirs.map((dir) => `missing_directory:${dir}`),
|
|
1446
|
+
settings_values: params.settingWarnings,
|
|
1447
|
+
telemetry: params.telemetryCheck.warnings,
|
|
1448
|
+
extensions: params.extensionCheck.warnings,
|
|
1449
|
+
storage: params.historySummary.over_threshold.map((id) => `history_stream_over_compact_threshold:${id}`),
|
|
1450
|
+
locks: params.locksCheck.warnings,
|
|
1451
|
+
integrity: params.integrityCheck.warnings,
|
|
1452
|
+
history_drift: params.historyDriftCheck.warnings,
|
|
1453
|
+
vectorization: params.vectorizationCheck.warnings
|
|
1454
|
+
};
|
|
1455
|
+
}
|
|
1456
|
+
function rewriteBulkHealthRemediation(params) {
|
|
1457
|
+
if (params.check.name === "history_drift" && params.historyDriftedCount > 1) {
|
|
1458
|
+
for (const code of Object.keys(params.remediationMap)) {
|
|
1459
|
+
params.remediationMap[code] = "pm history-repair --all";
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
if (params.check.name === "storage" && params.overThresholdCount > 1) {
|
|
1463
|
+
for (const code of Object.keys(params.remediationMap)) {
|
|
1464
|
+
params.remediationMap[code] = "pm history-compact --all-streams";
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
function attachHealthRemediationMaps(params) {
|
|
1469
|
+
for (const check of params.checks) {
|
|
1470
|
+
const remediationMap = buildRemediationMap(params.remediationSources[check.name]);
|
|
1471
|
+
rewriteBulkHealthRemediation({
|
|
1472
|
+
check,
|
|
1473
|
+
remediationMap,
|
|
1474
|
+
historyDriftedCount: params.historyDriftedCount,
|
|
1475
|
+
overThresholdCount: params.overThresholdCount
|
|
1476
|
+
});
|
|
1477
|
+
if (Object.keys(remediationMap).length > 0) {
|
|
1478
|
+
check.details = { ...check.details, remediation_map: remediationMap };
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
function projectHealthResult(result, options, summaryMode) {
|
|
1483
|
+
if (summaryMode) {
|
|
1484
|
+
return applySummaryHealthProjection(result);
|
|
1485
|
+
}
|
|
1486
|
+
return options.brief === true ? applyBriefHealthProjection(result) : result;
|
|
1487
|
+
}
|
|
1488
|
+
async function runHealth(global, options = {}) {
|
|
1489
|
+
const pmRoot = resolvePmRoot(process.cwd(), global.path);
|
|
1490
|
+
const settingsPath = getSettingsPath(pmRoot);
|
|
1491
|
+
if (!await pathExists(settingsPath)) {
|
|
1492
|
+
throw new PmCliError(`Tracker is not initialized at ${pmRoot}. Run pm init first.`, EXIT_CODE.NOT_FOUND);
|
|
1493
|
+
}
|
|
1494
|
+
const { settings, warnings: settingsReadWarnings } = await readSettingsWithMetadata(pmRoot);
|
|
1495
|
+
const normalizedSettingsReadWarnings = [...new Set(settingsReadWarnings)];
|
|
1496
|
+
const typeRegistry = resolveItemTypeRegistry(settings, getActiveExtensionRegistrations());
|
|
1497
|
+
const strictDirectories = options.strictDirectories === true;
|
|
1498
|
+
const refreshPolicy = resolveVectorRefreshPolicy(options);
|
|
1499
|
+
const directoryState = await scanHealthDirectories(pmRoot, typeRegistry, strictDirectories);
|
|
1500
|
+
const settingWarnings = validateSettingsValues(settings);
|
|
1501
|
+
const telemetryCheck = await buildTelemetryCheck(settings, {
|
|
1502
|
+
checkTelemetry: options.checkTelemetry === true
|
|
1503
|
+
});
|
|
1504
|
+
const extensionCheck = await buildExtensionCheck(pmRoot, settings, Boolean(global.noExtensions));
|
|
1505
|
+
const skipPolicy = resolveHealthSkipPolicy(options);
|
|
1506
|
+
const itemReadWarnings = [];
|
|
1507
|
+
const items = await readHealthItems({ pmRoot, settings, typeRegistry, skipPolicy, itemReadWarnings });
|
|
1508
|
+
const itemsWithBody = items;
|
|
1509
|
+
const normalizedItemReadWarnings = [...new Set(itemReadWarnings)];
|
|
1510
|
+
const historyPolicy = skipPolicy.skipDrift ? { warnings: [] } : await enforceHistoryStreamPolicyForItems({
|
|
1511
|
+
pmRoot,
|
|
1512
|
+
settings,
|
|
1513
|
+
itemIds: items.map((item) => item.id),
|
|
1514
|
+
commandLabel: "health"
|
|
1515
|
+
});
|
|
1516
|
+
const historySummary = await countHistoryStreams(pmRoot, settings.history.compact_policy);
|
|
1517
|
+
const locksCheck = await buildLocksCheck(pmRoot);
|
|
1518
|
+
const integrityCheck = skipPolicy.skipIntegrity ? buildSkippedHealthCheck("integrity") : await buildIntegrityCheck(pmRoot, typeRegistry.type_to_folder, settings.schema);
|
|
1519
|
+
const historyDriftCheck = skipPolicy.skipDrift ? buildSkippedHealthCheck("history_drift") : await buildHistoryDriftCheck(pmRoot, itemsWithBody);
|
|
1520
|
+
const vectorizationCheck = skipPolicy.skipVectors ? buildSkippedHealthCheck("vectorization") : await buildVectorizationCheck(pmRoot, settings, itemsWithBody, refreshPolicy, options.verboseStaleItems === true);
|
|
1521
|
+
const checks = [
|
|
1522
|
+
buildSettingsHealthCheck(settingsPath, settings, normalizedSettingsReadWarnings),
|
|
1523
|
+
buildDirectoriesHealthCheck(directoryState, strictDirectories),
|
|
1524
|
+
buildSettingsValuesHealthCheck(settingWarnings),
|
|
1525
|
+
telemetryCheck.check,
|
|
1526
|
+
extensionCheck.check,
|
|
1527
|
+
buildStorageHealthCheck(items, settings, historySummary),
|
|
1528
|
+
locksCheck.check,
|
|
1529
|
+
integrityCheck.check,
|
|
1530
|
+
historyDriftCheck.check,
|
|
1531
|
+
vectorizationCheck.check
|
|
1532
|
+
];
|
|
1533
|
+
const normalizedWarnings = collectHealthWarnings({
|
|
1534
|
+
directoryState,
|
|
1535
|
+
normalizedSettingsReadWarnings,
|
|
1536
|
+
settingWarnings,
|
|
1537
|
+
normalizedItemReadWarnings,
|
|
1538
|
+
telemetryCheck,
|
|
1539
|
+
extensionCheck,
|
|
1540
|
+
historyPolicyWarnings: historyPolicy.warnings,
|
|
1541
|
+
historySummary,
|
|
1542
|
+
locksCheck,
|
|
1543
|
+
integrityCheck,
|
|
1544
|
+
historyDriftCheck,
|
|
1545
|
+
vectorizationCheck
|
|
1546
|
+
});
|
|
1547
|
+
attachHealthRemediationMaps({
|
|
1548
|
+
checks,
|
|
1549
|
+
remediationSources: buildHealthRemediationSources({
|
|
1550
|
+
directoryState,
|
|
1551
|
+
normalizedSettingsReadWarnings,
|
|
1552
|
+
settingWarnings,
|
|
1553
|
+
telemetryCheck,
|
|
1554
|
+
extensionCheck,
|
|
1555
|
+
historySummary,
|
|
1556
|
+
locksCheck,
|
|
1557
|
+
integrityCheck,
|
|
1558
|
+
historyDriftCheck,
|
|
1559
|
+
vectorizationCheck
|
|
1560
|
+
}),
|
|
1561
|
+
historyDriftedCount: extractHistoryDriftedCount(historyDriftCheck),
|
|
1562
|
+
overThresholdCount: historySummary.over_threshold.length
|
|
1563
|
+
});
|
|
1564
|
+
const blockingWarnings = normalizedWarnings.filter((warning) => !isAdvisoryHealthWarning(warning));
|
|
1565
|
+
const result = {
|
|
1566
|
+
ok: blockingWarnings.length === 0,
|
|
1567
|
+
checks,
|
|
1568
|
+
warnings: normalizedWarnings,
|
|
1569
|
+
generated_at: nowIso()
|
|
1570
|
+
};
|
|
1571
|
+
return projectHealthResult(result, options, skipPolicy.summaryMode);
|
|
1572
|
+
}
|
|
1573
|
+
var _testOnlyHealthCommand = {
|
|
1574
|
+
buildExtensionHealthTriageSummary,
|
|
1575
|
+
buildCapabilityContractMetadata,
|
|
1576
|
+
buildVectorizationProviderDetails,
|
|
1577
|
+
collectUnknownCapabilityGuidance,
|
|
1578
|
+
isAdvisoryHealthWarning,
|
|
1579
|
+
isDirectory,
|
|
1580
|
+
isExpectedUnmanagedExtension,
|
|
1581
|
+
listItemDocumentPaths,
|
|
1582
|
+
normalizeEndpointForDisplay,
|
|
1583
|
+
normalizeExtensionNameForMatch,
|
|
1584
|
+
parseTelemetryQueue,
|
|
1585
|
+
probeTelemetryEndpointHealth,
|
|
1586
|
+
selectStaleItemDetail,
|
|
1587
|
+
summarizeHealthCheckDetails,
|
|
1588
|
+
summarizeExtensionList,
|
|
1589
|
+
summarizeRecordList,
|
|
1590
|
+
summarizeStringList,
|
|
1591
|
+
telemetryEnvFlagEnabled,
|
|
1592
|
+
warningCode
|
|
1593
|
+
};
|
|
1594
|
+
|
|
1595
|
+
export {
|
|
1596
|
+
runHealth,
|
|
1597
|
+
_testOnlyHealthCommand
|
|
1598
|
+
};
|
|
1599
|
+
//# sourceMappingURL=chunk-MAWDPCJW.js.map
|
|
1600
|
+
|
|
1601
|
+
//# debugId=f3d2b3b5-0c76-5b07-af27-5951e49d4128
|