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