@hawkeyexl/manni 4.22.0 → 4.24.0
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/README.md +1 -1
- package/dist/{batch-C3NN2YXB.js → batch-KWVJWSOE.js} +13 -13
- package/dist/{build-CEVEAHN7.js → build-VPEIOEHC.js} +13 -13
- package/dist/{calibrate-CSKPY5AK.js → calibrate-DRQLK53T.js} +14 -14
- package/dist/{capture-3HDBIHH6.js → capture-GNPDAZHH.js} +12 -12
- package/dist/{check-KGJBV42O.js → check-ACHNMW6J.js} +10 -10
- package/dist/{check-QNHLTYPN.js → check-BVH7A764.js} +13 -13
- package/dist/check-M27BITCI.js +57 -0
- package/dist/check-TCDNMHDB.js +57 -0
- package/dist/{check-MZSXCS2M.js → check-ZTCCQ2TA.js} +14 -14
- package/dist/{chunk-V27DOGAO.js → chunk-2AWYKLQR.js} +2 -2
- package/dist/{chunk-37Q7WEJJ.js → chunk-2RFVMOPC.js} +131 -23
- package/dist/chunk-2RFVMOPC.js.map +1 -0
- package/dist/{chunk-VZSATUI7.js → chunk-2UT6FSV5.js} +3 -3
- package/dist/{chunk-XTMONCQE.js → chunk-3NPPEVIA.js} +2 -2
- package/dist/{chunk-SCKVDD4E.js → chunk-3OHMRGHD.js} +130 -8
- package/dist/chunk-3OHMRGHD.js.map +1 -0
- package/dist/{chunk-CHTSA3YR.js → chunk-3TGXVNYA.js} +5 -5
- package/dist/{chunk-XQKRD5A3.js → chunk-45E6J2WY.js} +2 -2
- package/dist/{chunk-UQI463L3.js → chunk-4BWD6PHR.js} +8 -8
- package/dist/{chunk-CPYQ4BJK.js → chunk-5C5UNRZF.js} +5 -5
- package/dist/{chunk-6SVHI2U6.js → chunk-5JAWIM54.js} +2 -2
- package/dist/{chunk-O6IDYZVW.js → chunk-5RRP5CQR.js} +3 -3
- package/dist/{chunk-BLDL23RY.js → chunk-632W5O3C.js} +9 -9
- package/dist/{chunk-YB3KD5RI.js → chunk-67OVXUT3.js} +404 -136
- package/dist/chunk-67OVXUT3.js.map +1 -0
- package/dist/{chunk-ZT3ERG4B.js → chunk-7O6TTSOO.js} +33 -6
- package/dist/chunk-7O6TTSOO.js.map +1 -0
- package/dist/{chunk-LCMBG4LY.js → chunk-A322P5GM.js} +6 -24
- package/dist/chunk-A322P5GM.js.map +1 -0
- package/dist/{chunk-ZX4TOTZS.js → chunk-BJH5VPAO.js} +4 -4
- package/dist/{chunk-5LQX57BW.js → chunk-BKJ6JPQF.js} +2 -2
- package/dist/{chunk-VSDXZAQU.js → chunk-BXQLKOOR.js} +2 -2
- package/dist/{chunk-CQTESLC5.js → chunk-CKXZ3U4S.js} +2 -2
- package/dist/{chunk-MDZXRHIJ.js → chunk-CLH4ZYNG.js} +1 -1
- package/dist/chunk-CLH4ZYNG.js.map +1 -0
- package/dist/{chunk-IDDRHB7E.js → chunk-CRCMXSQR.js} +10 -5
- package/dist/chunk-CRCMXSQR.js.map +1 -0
- package/dist/{chunk-4LYVTR2T.js → chunk-D4HY64LX.js} +8 -8
- package/dist/{chunk-LMS2RWDS.js → chunk-DCHYTN2R.js} +6 -6
- package/dist/{chunk-K5LBIAOM.js → chunk-DILBGKLL.js} +15 -14
- package/dist/chunk-DILBGKLL.js.map +1 -0
- package/dist/{chunk-OHMLEITS.js → chunk-EN4RGJDD.js} +2 -2
- package/dist/{chunk-BY3635RR.js → chunk-EWBVN4XX.js} +7 -7
- package/dist/{chunk-EL2KNRC3.js → chunk-EZBMIWUP.js} +3 -3
- package/dist/{chunk-WW4JATBJ.js → chunk-FDMEBSDY.js} +11 -11
- package/dist/{chunk-N25KDXOV.js → chunk-H7UPMVBK.js} +2 -2
- package/dist/{chunk-46MMIJWR.js → chunk-I3QMDFDG.js} +3 -3
- package/dist/{chunk-63EQKVNT.js → chunk-ICTXBS5U.js} +16 -16
- package/dist/{chunk-ZTRC37NH.js → chunk-IDZXRFBA.js} +3 -3
- package/dist/{chunk-GMOAW2EG.js → chunk-IM7C3H4W.js} +12 -3
- package/dist/chunk-IM7C3H4W.js.map +1 -0
- package/dist/{chunk-VSHMXMBZ.js → chunk-J5KMZDL6.js} +3 -3
- package/dist/{chunk-INOVEO32.js → chunk-JBOXCSTN.js} +1 -1
- package/dist/chunk-JBOXCSTN.js.map +1 -0
- package/dist/{chunk-W5OZMYMX.js → chunk-JBY3ZYV4.js} +2 -2
- package/dist/{chunk-ZKIXGFID.js → chunk-KKASKZUG.js} +2 -2
- package/dist/{chunk-TR5TNPWT.js → chunk-KVLOTBQR.js} +2 -2
- package/dist/{chunk-TR5TNPWT.js.map → chunk-KVLOTBQR.js.map} +1 -1
- package/dist/{chunk-JL5FHNQK.js → chunk-LK5TELK3.js} +6 -6
- package/dist/{chunk-PX7OTUNU.js → chunk-MVZYZOYN.js} +13 -7
- package/dist/{chunk-PX7OTUNU.js.map → chunk-MVZYZOYN.js.map} +1 -1
- package/dist/{chunk-HYEKQ22B.js → chunk-NZRNW2XM.js} +4 -4
- package/dist/{chunk-JA7DWOVV.js → chunk-OF3YEKYT.js} +8 -7
- package/dist/chunk-OF3YEKYT.js.map +1 -0
- package/dist/{chunk-ZW4YASUB.js → chunk-OQSY6VHV.js} +4 -4
- package/dist/{chunk-KIUFBUUZ.js → chunk-OWDVSQAU.js} +4 -4
- package/dist/{chunk-562QZKAB.js → chunk-PDL6IO4Z.js} +17 -2
- package/dist/chunk-PDL6IO4Z.js.map +1 -0
- package/dist/{chunk-2VLZDU4E.js → chunk-QUO7DWIG.js} +10 -10
- package/dist/{chunk-FTSNG6DZ.js → chunk-RCYH36B6.js} +14 -14
- package/dist/{chunk-A67EJ3J6.js → chunk-RHMOEPNT.js} +63 -11
- package/dist/chunk-RHMOEPNT.js.map +1 -0
- package/dist/{chunk-Q7FFJMFO.js → chunk-RHSQ3RRA.js} +258 -145
- package/dist/chunk-RHSQ3RRA.js.map +1 -0
- package/dist/{chunk-JVE5YQN4.js → chunk-RPHOBLOQ.js} +3 -3
- package/dist/{chunk-57LZPG4V.js → chunk-S6RCOR2J.js} +4 -4
- package/dist/{chunk-IXFFVI5S.js → chunk-SOY53WQN.js} +3 -3
- package/dist/{chunk-TWYJ2TVS.js → chunk-SRAFH7QS.js} +12 -8
- package/dist/chunk-SRAFH7QS.js.map +1 -0
- package/dist/{chunk-TJYJ4BNK.js → chunk-TIJG2XL6.js} +4 -4
- package/dist/{chunk-FXE5K56B.js → chunk-UMY3IKYT.js} +3 -3
- package/dist/{chunk-S7V4F7HC.js → chunk-UU7W7VJ7.js} +3 -3
- package/dist/{chunk-XSP3TUFN.js → chunk-VF46PE3Z.js} +4 -4
- package/dist/{chunk-64DULZIG.js → chunk-W4KJPTAN.js} +65 -17
- package/dist/chunk-W4KJPTAN.js.map +1 -0
- package/dist/{chunk-IC3FJWIF.js → chunk-W5TFTVPG.js} +2 -2
- package/dist/{chunk-6UHEMPEY.js → chunk-WCHP6QET.js} +2 -2
- package/dist/chunk-WCRZHFCI.js +311 -0
- package/dist/chunk-WCRZHFCI.js.map +1 -0
- package/dist/{chunk-QJJPTS6L.js → chunk-X7EDAIOH.js} +3 -3
- package/dist/{chunk-NPZWOPOH.js → chunk-XX7GNK4F.js} +5 -4
- package/dist/chunk-XX7GNK4F.js.map +1 -0
- package/dist/{chunk-E3HYSNS6.js → chunk-XYNYBH3M.js} +3 -3
- package/dist/{chunk-A5YUK3SG.js → chunk-YLCP5KPU.js} +10 -10
- package/dist/{chunk-RAN3CF33.js → chunk-Z236YJ2V.js} +12 -12
- package/dist/{chunk-MR5JWMC2.js → chunk-ZOVUANFB.js} +2 -2
- package/dist/{cli-W7B2PNZO.js → cli-3XDWEQRN.js} +32 -17
- package/dist/{cli-W7B2PNZO.js.map → cli-3XDWEQRN.js.map} +1 -1
- package/dist/{cli-YINQL2NI.js → cli-5HOVEAYH.js} +20 -20
- package/dist/{cli-4QAH3DBX.js → cli-5ZJ2J4DD.js} +7 -7
- package/dist/{cli-Z3ART5DN.js → cli-66SXH7LQ.js} +18 -18
- package/dist/{cli-YGMXZ46V.js → cli-7BSAEX34.js} +36 -17
- package/dist/cli-7BSAEX34.js.map +1 -0
- package/dist/{cli-JE4LG35H.js → cli-ABUOJTMK.js} +2 -2
- package/dist/{cli-6476FRBK.js → cli-IZVNUGGL.js} +32 -18
- package/dist/{cli-6476FRBK.js.map → cli-IZVNUGGL.js.map} +1 -1
- package/dist/{cli-FGCHGJYZ.js → cli-KUEEANY6.js} +145 -57
- package/dist/cli-KUEEANY6.js.map +1 -0
- package/dist/{cli-U3622DIB.js → cli-N6GSDCIT.js} +17 -17
- package/dist/{cli-7XT7O5YM.js → cli-SZCB4QXF.js} +13 -13
- package/dist/{cli-ULHJTJHH.js → cli-YYJCE53Q.js} +39 -27
- package/dist/{cli-ULHJTJHH.js.map → cli-YYJCE53Q.js.map} +1 -1
- package/dist/cli.js +15 -15
- package/dist/docmeta.js +6 -6
- package/dist/{github-64ZVAUIT.js → github-6ONVXQ3Y.js} +10 -10
- package/dist/{github-YHJABBUI.js → github-6TXHICNH.js} +14 -14
- package/dist/github-ZBPHVATQ.js +48 -0
- package/dist/index.d.ts +100 -15
- package/dist/index.js +120 -114
- package/dist/index.js.map +1 -1
- package/dist/{json-QNGJFUY2.js → json-765JLUSV.js} +15 -15
- package/dist/{json-YTKUFNO3.js → json-CG2WAD5V.js} +2 -2
- package/dist/{json-CVOVXB7O.js → json-E5MUPFJ5.js} +10 -10
- package/dist/{labels-5WOKC3VR.js → labels-HF7ZZCNK.js} +9 -9
- package/dist/{lint-OQGB4DWJ.js → lint-5IYTCQ4J.js} +10 -10
- package/dist/list-HVSOCIFI.js +48 -0
- package/dist/{list-EDAB7X5Y.js → list-NJIHE4AI.js} +10 -10
- package/dist/{list-OQ3IYV2W.js → list-XVLMKWVP.js} +14 -14
- package/dist/{page-TPNMHL27.js → page-7RQSNZTA.js} +12 -9
- package/dist/{prepare-3V2QYBKL.js → prepare-3QURVQY5.js} +11 -11
- package/dist/{pretty-HO2LYG5N.js → pretty-EYZFYS4B.js} +14 -14
- package/dist/pretty-JU56KUCB.js +65 -0
- package/dist/{pretty-K3M4AW2D.js → pretty-LUKCTVAG.js} +10 -10
- package/dist/{reporters-6TEJDXXO.js → reporters-6CNOPRDA.js} +4 -4
- package/dist/{reporters-4R2E7PRJ.js → reporters-L445ICCY.js} +4 -4
- package/dist/{reporters-YVLLFBO5.js → reporters-QHT2M3PA.js} +9 -9
- package/dist/run-WEGK4L3H.js +51 -0
- package/dist/{sarif-YBFD5OUL.js → sarif-NPIGVW6V.js} +10 -10
- package/dist/sarif-STTUROHD.js +49 -0
- package/dist/{sarif-GWHWJJFP.js → sarif-VRF3SEOJ.js} +8 -8
- package/dist/strategy-IKURQ4YU.js +63 -0
- package/dist/{term-33YSMISR.js → term-ZIXHKJJD.js} +18 -18
- package/dist/{types-7N7ETP3W.js → types-VWL35P4F.js} +2 -2
- package/dist/{validate-6R5UBDGU.js → validate-HBTYACVP.js} +4 -4
- package/dist/validate-HBTYACVP.js.map +1 -0
- package/package.json +1 -1
- package/plugin/manni/.claude-plugin/plugin.json +1 -1
- package/dist/check-555TCJGF.js +0 -45
- package/dist/check-KXWHSCCR.js +0 -42
- package/dist/chunk-37Q7WEJJ.js.map +0 -1
- package/dist/chunk-562QZKAB.js.map +0 -1
- package/dist/chunk-64DULZIG.js.map +0 -1
- package/dist/chunk-A67EJ3J6.js.map +0 -1
- package/dist/chunk-GMOAW2EG.js.map +0 -1
- package/dist/chunk-IDDRHB7E.js.map +0 -1
- package/dist/chunk-INOVEO32.js.map +0 -1
- package/dist/chunk-JA7DWOVV.js.map +0 -1
- package/dist/chunk-K5LBIAOM.js.map +0 -1
- package/dist/chunk-LCMBG4LY.js.map +0 -1
- package/dist/chunk-MDZXRHIJ.js.map +0 -1
- package/dist/chunk-NPZWOPOH.js.map +0 -1
- package/dist/chunk-Q7FFJMFO.js.map +0 -1
- package/dist/chunk-SCKVDD4E.js.map +0 -1
- package/dist/chunk-TWYJ2TVS.js.map +0 -1
- package/dist/chunk-YB3KD5RI.js.map +0 -1
- package/dist/chunk-ZT3ERG4B.js.map +0 -1
- package/dist/cli-FGCHGJYZ.js.map +0 -1
- package/dist/cli-YGMXZ46V.js.map +0 -1
- package/dist/github-ARGPMQD2.js +0 -32
- package/dist/list-PN6JKYNX.js +0 -33
- package/dist/pretty-EZ2NFU3C.js +0 -49
- package/dist/run-H4BOR2FR.js +0 -36
- package/dist/sarif-SJFVSOBV.js +0 -33
- package/dist/strategy-T56PH2VK.js +0 -205
- package/dist/strategy-T56PH2VK.js.map +0 -1
- /package/dist/{batch-C3NN2YXB.js.map → batch-KWVJWSOE.js.map} +0 -0
- /package/dist/{build-CEVEAHN7.js.map → build-VPEIOEHC.js.map} +0 -0
- /package/dist/{calibrate-CSKPY5AK.js.map → calibrate-DRQLK53T.js.map} +0 -0
- /package/dist/{capture-3HDBIHH6.js.map → capture-GNPDAZHH.js.map} +0 -0
- /package/dist/{check-555TCJGF.js.map → check-ACHNMW6J.js.map} +0 -0
- /package/dist/{check-QNHLTYPN.js.map → check-BVH7A764.js.map} +0 -0
- /package/dist/{check-KGJBV42O.js.map → check-M27BITCI.js.map} +0 -0
- /package/dist/{check-KXWHSCCR.js.map → check-TCDNMHDB.js.map} +0 -0
- /package/dist/{check-MZSXCS2M.js.map → check-ZTCCQ2TA.js.map} +0 -0
- /package/dist/{chunk-V27DOGAO.js.map → chunk-2AWYKLQR.js.map} +0 -0
- /package/dist/{chunk-VZSATUI7.js.map → chunk-2UT6FSV5.js.map} +0 -0
- /package/dist/{chunk-XTMONCQE.js.map → chunk-3NPPEVIA.js.map} +0 -0
- /package/dist/{chunk-CHTSA3YR.js.map → chunk-3TGXVNYA.js.map} +0 -0
- /package/dist/{chunk-XQKRD5A3.js.map → chunk-45E6J2WY.js.map} +0 -0
- /package/dist/{chunk-UQI463L3.js.map → chunk-4BWD6PHR.js.map} +0 -0
- /package/dist/{chunk-CPYQ4BJK.js.map → chunk-5C5UNRZF.js.map} +0 -0
- /package/dist/{chunk-6SVHI2U6.js.map → chunk-5JAWIM54.js.map} +0 -0
- /package/dist/{chunk-O6IDYZVW.js.map → chunk-5RRP5CQR.js.map} +0 -0
- /package/dist/{chunk-BLDL23RY.js.map → chunk-632W5O3C.js.map} +0 -0
- /package/dist/{chunk-ZX4TOTZS.js.map → chunk-BJH5VPAO.js.map} +0 -0
- /package/dist/{chunk-5LQX57BW.js.map → chunk-BKJ6JPQF.js.map} +0 -0
- /package/dist/{chunk-VSDXZAQU.js.map → chunk-BXQLKOOR.js.map} +0 -0
- /package/dist/{chunk-CQTESLC5.js.map → chunk-CKXZ3U4S.js.map} +0 -0
- /package/dist/{chunk-4LYVTR2T.js.map → chunk-D4HY64LX.js.map} +0 -0
- /package/dist/{chunk-LMS2RWDS.js.map → chunk-DCHYTN2R.js.map} +0 -0
- /package/dist/{chunk-OHMLEITS.js.map → chunk-EN4RGJDD.js.map} +0 -0
- /package/dist/{chunk-BY3635RR.js.map → chunk-EWBVN4XX.js.map} +0 -0
- /package/dist/{chunk-EL2KNRC3.js.map → chunk-EZBMIWUP.js.map} +0 -0
- /package/dist/{chunk-WW4JATBJ.js.map → chunk-FDMEBSDY.js.map} +0 -0
- /package/dist/{chunk-N25KDXOV.js.map → chunk-H7UPMVBK.js.map} +0 -0
- /package/dist/{chunk-46MMIJWR.js.map → chunk-I3QMDFDG.js.map} +0 -0
- /package/dist/{chunk-63EQKVNT.js.map → chunk-ICTXBS5U.js.map} +0 -0
- /package/dist/{chunk-ZTRC37NH.js.map → chunk-IDZXRFBA.js.map} +0 -0
- /package/dist/{chunk-VSHMXMBZ.js.map → chunk-J5KMZDL6.js.map} +0 -0
- /package/dist/{chunk-W5OZMYMX.js.map → chunk-JBY3ZYV4.js.map} +0 -0
- /package/dist/{chunk-ZKIXGFID.js.map → chunk-KKASKZUG.js.map} +0 -0
- /package/dist/{chunk-JL5FHNQK.js.map → chunk-LK5TELK3.js.map} +0 -0
- /package/dist/{chunk-HYEKQ22B.js.map → chunk-NZRNW2XM.js.map} +0 -0
- /package/dist/{chunk-ZW4YASUB.js.map → chunk-OQSY6VHV.js.map} +0 -0
- /package/dist/{chunk-KIUFBUUZ.js.map → chunk-OWDVSQAU.js.map} +0 -0
- /package/dist/{chunk-2VLZDU4E.js.map → chunk-QUO7DWIG.js.map} +0 -0
- /package/dist/{chunk-FTSNG6DZ.js.map → chunk-RCYH36B6.js.map} +0 -0
- /package/dist/{chunk-JVE5YQN4.js.map → chunk-RPHOBLOQ.js.map} +0 -0
- /package/dist/{chunk-57LZPG4V.js.map → chunk-S6RCOR2J.js.map} +0 -0
- /package/dist/{chunk-IXFFVI5S.js.map → chunk-SOY53WQN.js.map} +0 -0
- /package/dist/{chunk-TJYJ4BNK.js.map → chunk-TIJG2XL6.js.map} +0 -0
- /package/dist/{chunk-FXE5K56B.js.map → chunk-UMY3IKYT.js.map} +0 -0
- /package/dist/{chunk-S7V4F7HC.js.map → chunk-UU7W7VJ7.js.map} +0 -0
- /package/dist/{chunk-XSP3TUFN.js.map → chunk-VF46PE3Z.js.map} +0 -0
- /package/dist/{chunk-IC3FJWIF.js.map → chunk-W5TFTVPG.js.map} +0 -0
- /package/dist/{chunk-6UHEMPEY.js.map → chunk-WCHP6QET.js.map} +0 -0
- /package/dist/{chunk-QJJPTS6L.js.map → chunk-X7EDAIOH.js.map} +0 -0
- /package/dist/{chunk-E3HYSNS6.js.map → chunk-XYNYBH3M.js.map} +0 -0
- /package/dist/{chunk-A5YUK3SG.js.map → chunk-YLCP5KPU.js.map} +0 -0
- /package/dist/{chunk-RAN3CF33.js.map → chunk-Z236YJ2V.js.map} +0 -0
- /package/dist/{chunk-MR5JWMC2.js.map → chunk-ZOVUANFB.js.map} +0 -0
- /package/dist/{cli-YINQL2NI.js.map → cli-5HOVEAYH.js.map} +0 -0
- /package/dist/{cli-4QAH3DBX.js.map → cli-5ZJ2J4DD.js.map} +0 -0
- /package/dist/{cli-Z3ART5DN.js.map → cli-66SXH7LQ.js.map} +0 -0
- /package/dist/{cli-JE4LG35H.js.map → cli-ABUOJTMK.js.map} +0 -0
- /package/dist/{cli-U3622DIB.js.map → cli-N6GSDCIT.js.map} +0 -0
- /package/dist/{cli-7XT7O5YM.js.map → cli-SZCB4QXF.js.map} +0 -0
- /package/dist/{github-64ZVAUIT.js.map → github-6ONVXQ3Y.js.map} +0 -0
- /package/dist/{github-ARGPMQD2.js.map → github-6TXHICNH.js.map} +0 -0
- /package/dist/{github-YHJABBUI.js.map → github-ZBPHVATQ.js.map} +0 -0
- /package/dist/{json-CVOVXB7O.js.map → json-765JLUSV.js.map} +0 -0
- /package/dist/{json-QNGJFUY2.js.map → json-CG2WAD5V.js.map} +0 -0
- /package/dist/{json-YTKUFNO3.js.map → json-E5MUPFJ5.js.map} +0 -0
- /package/dist/{labels-5WOKC3VR.js.map → labels-HF7ZZCNK.js.map} +0 -0
- /package/dist/{lint-OQGB4DWJ.js.map → lint-5IYTCQ4J.js.map} +0 -0
- /package/dist/{list-EDAB7X5Y.js.map → list-HVSOCIFI.js.map} +0 -0
- /package/dist/{list-OQ3IYV2W.js.map → list-NJIHE4AI.js.map} +0 -0
- /package/dist/{list-PN6JKYNX.js.map → list-XVLMKWVP.js.map} +0 -0
- /package/dist/{page-TPNMHL27.js.map → page-7RQSNZTA.js.map} +0 -0
- /package/dist/{prepare-3V2QYBKL.js.map → prepare-3QURVQY5.js.map} +0 -0
- /package/dist/{pretty-EZ2NFU3C.js.map → pretty-EYZFYS4B.js.map} +0 -0
- /package/dist/{pretty-HO2LYG5N.js.map → pretty-JU56KUCB.js.map} +0 -0
- /package/dist/{pretty-K3M4AW2D.js.map → pretty-LUKCTVAG.js.map} +0 -0
- /package/dist/{reporters-4R2E7PRJ.js.map → reporters-6CNOPRDA.js.map} +0 -0
- /package/dist/{reporters-6TEJDXXO.js.map → reporters-L445ICCY.js.map} +0 -0
- /package/dist/{reporters-YVLLFBO5.js.map → reporters-QHT2M3PA.js.map} +0 -0
- /package/dist/{run-H4BOR2FR.js.map → run-WEGK4L3H.js.map} +0 -0
- /package/dist/{sarif-GWHWJJFP.js.map → sarif-NPIGVW6V.js.map} +0 -0
- /package/dist/{sarif-SJFVSOBV.js.map → sarif-STTUROHD.js.map} +0 -0
- /package/dist/{sarif-YBFD5OUL.js.map → sarif-VRF3SEOJ.js.map} +0 -0
- /package/dist/{types-7N7ETP3W.js.map → strategy-IKURQ4YU.js.map} +0 -0
- /package/dist/{term-33YSMISR.js.map → term-ZIXHKJJD.js.map} +0 -0
- /package/dist/{validate-6R5UBDGU.js.map → types-VWL35P4F.js.map} +0 -0
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
listInTree,
|
|
5
5
|
safeRead,
|
|
6
6
|
segments
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3NPPEVIA.js";
|
|
8
8
|
import {
|
|
9
9
|
extractEvals
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SOY53WQN.js";
|
|
11
11
|
import {
|
|
12
12
|
TracevalsError
|
|
13
13
|
} from "./chunk-ZINZTHWO.js";
|
|
@@ -173,4 +173,4 @@ async function discoverArtifacts(options) {
|
|
|
173
173
|
export {
|
|
174
174
|
discoverArtifacts
|
|
175
175
|
};
|
|
176
|
-
//# sourceMappingURL=chunk-
|
|
176
|
+
//# sourceMappingURL=chunk-X7EDAIOH.js.map
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
REPORT_FORMATS,
|
|
8
8
|
parseFormat
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-H7UPMVBK.js";
|
|
10
10
|
import {
|
|
11
11
|
FIX_GUIDE
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-CLH4ZYNG.js";
|
|
13
13
|
import {
|
|
14
14
|
escapeWorkflowCommandMessage,
|
|
15
15
|
escapeWorkflowCommandProperty,
|
|
@@ -94,10 +94,11 @@ function renderPretty(report, opts = {}) {
|
|
|
94
94
|
lines.push(pc.bold(file));
|
|
95
95
|
for (const r of results) {
|
|
96
96
|
const zone = r.consensus ? pc.dim(` [${r.consensus.zone}]`) : "";
|
|
97
|
+
const readAs = r.personas ? pc.dim(` (read as ${r.personas.join(", ")})`) : "";
|
|
97
98
|
const via = r.via ? pc.dim(" (human-reviewed)") : "";
|
|
98
99
|
const gen = r.generated ? pc.cyan(" (generated)") : "";
|
|
99
100
|
const entry = pc.dim(locationLabel(declaringEntry(r)));
|
|
100
|
-
lines.push(` ${outcomeTag(r, pc)} ${r.evalName}${zone}${via}${gen} ${entry}`);
|
|
101
|
+
lines.push(` ${outcomeTag(r, pc)} ${r.evalName}${zone}${readAs}${via}${gen} ${entry}`);
|
|
101
102
|
if (r.skipReason && r.outcome !== "pass") {
|
|
102
103
|
lines.push(pc.dim(` ${r.skipReason}`));
|
|
103
104
|
}
|
|
@@ -723,4 +724,4 @@ function render(report, format, opts = {}) {
|
|
|
723
724
|
export {
|
|
724
725
|
render
|
|
725
726
|
};
|
|
726
|
-
//# sourceMappingURL=chunk-
|
|
727
|
+
//# sourceMappingURL=chunk-XX7GNK4F.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/docevals/reporters/scope.ts","../src/docevals/reporters/location.ts","../src/docevals/reporters/judged.ts","../src/docevals/reporters/pretty.ts","../src/docevals/reporters/json.ts","../src/docevals/reporters/markdown.ts","../src/docevals/reporters/github.ts","../src/docevals/reporters/sarif.ts","../src/docevals/reporters/junit.ts","../src/docevals/reporters/html.ts","../src/docevals/reporters/index.ts"],"sourcesContent":["/**\n * The one sentence every reporter prints about a scoped run: what `--since`\n * and `--newer-than` narrowed it to (ADR 01040). Built here once so the\n * formats cannot word the same scope three ways.\n */\nimport type { EngineReport } from \"../core/engine.js\";\n\nexport interface ScopeLine {\n /** Nothing was selected, so nothing was evaluated. */\n empty: boolean;\n /** The sentence, with `code` applied to the ref (backticks in Markdown). */\n text: (code?: (s: string) => string) => string;\n}\n\n/** The scope sentence for `report`, or `undefined` when the run was not scoped. */\nexport function scopeLine(report: EngineReport): ScopeLine | undefined {\n const sc = report.since ?? report.newerThan;\n if (sc === undefined) return undefined;\n const { pagesSelected, pagesTotal } = sc;\n const ref = report.since?.ref;\n const window = report.newerThan?.duration;\n return {\n empty: pagesSelected === 0,\n text: (code = (s) => s) => {\n const what = [\n ref === undefined ? undefined : `since ${code(ref)}`,\n window === undefined ? undefined : `in the last ${window}`,\n ]\n .filter((s) => s !== undefined)\n .join(\" and \");\n return pagesSelected === 0\n ? `No pages changed ${what} — nothing was evaluated.`\n : `Scoped to ${String(pagesSelected)} of ${String(pagesTotal)} page(s) changed ${what}.`;\n },\n };\n}\n","/**\n * Where a result points when nothing in the page does: the entry that\n * declares its eval (`EvalResult.location`). A finding with a content line\n * keeps its own file and line; everything else about an eval lands here.\n */\nimport type { EvalResult } from \"../types.js\";\n\n/** A file, and the 1-based line in it when one is known. */\nexport type Location = NonNullable<EvalResult[\"location\"]>;\n\n/**\n * The declaring entry of a result. The engine stamps one on every result; a\n * result built elsewhere without one names its page.\n */\nexport function declaringEntry(r: EvalResult): Location {\n return r.location ?? { file: r.file };\n}\n\n/** `<file>:<line>`, or the file alone when no line declares the eval. */\nexport function locationLabel(location: Location): string {\n return location.line === undefined\n ? location.file\n : `${location.file}:${String(location.line)}`;\n}\n","/**\n * What every reporter prints under a result that did not pass (proposal\n * 0089): the judged block for a judged or reviewed eval, and the guidance\n * lines that say what the eval asks for.\n */\nimport { guidanceLines } from \"../../shared/guidance.js\";\nimport { verdictLines } from \"../../shared/verdict-lines.js\";\nimport type { EvalResult } from \"../types.js\";\n\n/**\n * `AI judge: …`, `Observed: …`, `Reasoning: …` for a judged failure or an\n * eval awaiting review, and the human-review line for an eval no judge saw.\n * Empty for every other result.\n */\nexport function judgedLines(r: EvalResult): string[] {\n if (r.outcome === \"fail\" && r.consensus) {\n return verdictLines(r.consensus, \"fail\", \"Edit the page so the assertion holds.\");\n }\n if (r.outcome !== \"needs-review\") return [];\n if (!r.consensus) {\n return [\"Awaiting human review. Record a verdict with manni docevals review.\"];\n }\n return verdictLines(\n r.consensus,\n \"no confident verdict\",\n \"Record a verdict with manni docevals review, or sharpen the assertion and run manni docevals calibrate.\",\n );\n}\n\n/**\n * The guidance lines, under a result that failed, errored or awaits review,\n * and under any finding, which a passing eval at warning severity still has.\n */\nexport function resultGuidance(r: EvalResult): string[] {\n const speaks =\n r.outcome === \"fail\" ||\n r.outcome === \"error\" ||\n r.outcome === \"needs-review\" ||\n (r.findings ?? []).length > 0;\n return speaks ? guidanceLines(r.guidance) : [];\n}\n","/** Pretty (terminal) reporter: `--format pretty`, the default. */\nimport { scopeLine } from \"./scope.js\";\nimport { palette, type Colors } from \"../../shared/color.js\";\nimport type { EvalResult } from \"../types.js\";\nimport type { EngineReport } from \"../core/engine.js\";\nimport { declaringEntry, locationLabel } from \"./location.js\";\nimport { judgedLines, resultGuidance } from \"./judged.js\";\n\nfunction outcomeTag(r: EvalResult, pc: Colors): string {\n switch (r.outcome) {\n case \"pass\":\n return pc.green(\"pass\");\n case \"fail\":\n return pc.red(\"FAIL\");\n case \"needs-review\":\n return pc.yellow(\"review\");\n case \"skipped\":\n return pc.dim(\"skip\");\n case \"error\":\n return pc.red(\"ERROR\");\n }\n}\n\n/** What the caller decided about colour. Off unless the caller turns it on. */\nexport interface ColorOptions {\n color?: boolean;\n}\n\nexport function renderPretty(\n report: EngineReport,\n opts: ColorOptions = {},\n): string {\n const pc = palette(opts.color === true);\n const lines: string[] = [];\n\n const byFile = new Map<string, EvalResult[]>();\n for (const r of report.evalResults) {\n const list = byFile.get(r.file) ?? [];\n list.push(r);\n byFile.set(r.file, list);\n }\n\n for (const [file, results] of [...byFile.entries()].sort()) {\n lines.push(pc.bold(file));\n for (const r of results) {\n const zone = r.consensus ? pc.dim(` [${r.consensus.zone}]`) : \"\";\n // Who the judge read the page as (proposal 0111). No tag means it read none.\n const readAs = r.personas ? pc.dim(` (read as ${r.personas.join(\", \")})`) : \"\";\n const via = r.via ? pc.dim(\" (human-reviewed)\") : \"\";\n const gen = r.generated ? pc.cyan(\" (generated)\") : \"\";\n const entry = pc.dim(locationLabel(declaringEntry(r)));\n lines.push(` ${outcomeTag(r, pc)} ${r.evalName}${zone}${readAs}${via}${gen} ${entry}`);\n if (r.skipReason && r.outcome !== \"pass\") {\n lines.push(pc.dim(` ${r.skipReason}`));\n }\n for (const f of r.findings ?? []) {\n const loc = f.line != null ? `:${f.line}` : \"\";\n const rule = f.ruleId ? pc.dim(` [${f.ruleId}]`) : \"\";\n const sev =\n f.severity === \"error\"\n ? pc.red(f.severity)\n : f.severity === \"warning\"\n ? pc.yellow(f.severity)\n : pc.dim(f.severity);\n lines.push(` ${sev}${loc}${rule} ${f.message}`);\n }\n for (const line of judgedLines(r)) lines.push(` ${line}`);\n if (r.consensus && r.outcome !== \"pass\") {\n const v = r.consensus;\n lines.push(\n pc.dim(\n ` votes pass:${v.votes.pass} fail:${v.votes.fail} partial:${v.votes.partial}` +\n (v.votes.error ? ` error:${v.votes.error}` : \"\"),\n ),\n );\n }\n for (const line of resultGuidance(r)) lines.push(pc.dim(` ${line}`));\n }\n }\n\n for (const p of report.problems) {\n const tag =\n p.level === \"error\" ? pc.red(\"error\") : p.level === \"warning\" ? pc.yellow(\"warn\") : pc.dim(\"notice\");\n const loc = p.line != null ? `:${p.line}` : \"\";\n lines.push(`${tag} ${p.file}${loc} ${p.message}`);\n }\n\n if (report.generated.length > 0) {\n lines.push(\"\");\n lines.push(pc.cyan(`Generated ${report.generated.length} check script(s):`));\n for (const g of report.generated) lines.push(` ${g}`);\n }\n\n lines.push(\"\");\n lines.push(pc.bold(\"Suites\"));\n for (const s of report.suites) {\n // A filtered run measured part of the suite, so it has numbers but no\n // verdict. Rendering that as \"below target\" would read as a failure the\n // run never established (ADR 01018).\n const status = s.partial\n ? pc.yellow(\"partial — filtered run, target not evaluated\")\n : s.meetsTarget\n ? pc.green(\"ok\")\n : pc.red(\"below target\");\n const extras: string[] = [];\n if (s.needsReview > 0) extras.push(`${s.needsReview} to review`);\n if (s.skipped > 0) extras.push(`${s.skipped} skipped`);\n const extra = extras.length > 0 ? pc.dim(` (${extras.join(\", \")})`) : \"\";\n lines.push(\n ` ${s.suite}: ${s.passed}/${s.passed + s.failed + s.errored} passed — ` +\n `${(s.passRate * 100).toFixed(0)}% vs target ${(s.targetPassRate * 100).toFixed(0)}% ${status}${extra}`,\n );\n }\n\n // What `--since` scoped the run to. The zero case gets its own line, in\n // yellow, because a clean-tree run is otherwise an indistinguishable green:\n // same exit code, same empty body, nothing saying that nothing ran.\n const sc = scopeLine(report);\n if (sc) {\n lines.push(\"\");\n lines.push(sc.empty ? pc.yellow(sc.text()) : pc.dim(sc.text()));\n }\n\n // The baseline's line in the summary. `removed` is the load-bearing number\n // on a re-record: an accidental --write-baseline over a narrowed glob\n // forgives everything it did not see, and nothing else in a CI log says so.\n const bl = report.baseline;\n if (bl) {\n lines.push(\"\");\n if (bl.written) {\n lines.push(\n pc.dim(\n `Baseline ${bl.path}: recorded ${bl.written.total} finding(s) ` +\n `(+${bl.written.added}, -${bl.written.removed}).`,\n ),\n );\n if (bl.written.removed > 0) {\n lines.push(\n pc.yellow(\n ` ${bl.written.removed} previously recorded finding(s) are no longer in the baseline. ` +\n `If this run covered less of the corpus than the last one, they have just been forgiven.`,\n ),\n );\n }\n } else {\n lines.push(\n pc.dim(\n `Baseline ${bl.path}: ${bl.suppressed} finding(s) suppressed of ${bl.recorded} recorded` +\n (bl.stale > 0 ? `, ${bl.stale} no longer occur` : \"\") +\n \".\",\n ),\n );\n }\n }\n\n if (report.usage.judgedEvals > 0) {\n lines.push(\"\");\n lines.push(\n pc.dim(\n `Judged ${report.usage.judgedEvals} evals (${report.usage.cachedEvals} cached), ` +\n `${report.usage.totalTokens.toLocaleString()} tokens`,\n ),\n );\n }\n\n const reviews = report.evalResults.filter(\n (r) => r.outcome === \"needs-review\",\n );\n if (reviews.length > 0) {\n lines.push(\"\");\n lines.push(\n pc.yellow(\n `${reviews.length} eval(s) need human review. Run \\`manni docevals review\\` to record verdicts.`,\n ),\n );\n }\n\n return lines.join(\"\\n\");\n}\n","/** JSON reporter: the full engine report, machine-readable. */\nimport type { EngineReport } from \"../core/engine.js\";\n\nexport function renderJson(report: EngineReport): string {\n return JSON.stringify(report, null, 2);\n}\n","/** Markdown reporter: PR-comment-friendly summary. */\nimport { scopeLine } from \"./scope.js\";\nimport type { EngineReport } from \"../core/engine.js\";\nimport { declaringEntry, locationLabel } from \"./location.js\";\nimport { judgedLines, resultGuidance } from \"./judged.js\";\n\nconst OUTCOME_ICON: Record<string, string> = {\n pass: \"✅\",\n fail: \"❌\",\n \"needs-review\": \"🟡\",\n skipped: \"⏭️\",\n error: \"🛑\",\n};\n\nexport function renderMarkdown(report: EngineReport): string {\n const lines: string[] = [\"## manni docevals results\", \"\"];\n\n lines.push(\"| Suite | Passed | Failed | Review | Pass rate | Target | |\");\n lines.push(\"|---|---|---|---|---|---|---|\");\n for (const s of report.suites) {\n lines.push(\n `| ${s.suite} | ${s.passed} | ${s.failed + s.errored} | ${s.needsReview} | ` +\n `${(s.passRate * 100).toFixed(0)}% | ${(s.targetPassRate * 100).toFixed(0)}% | ` +\n // A filtered run measured part of the suite: no verdict, so\n // neither mark. Rendering ❌ made every filtered run look failed\n // (ADR 01018).\n `${s.partial ? \"➖ partial\" : s.meetsTarget ? \"✅\" : \"❌\"} |`,\n );\n }\n\n // What `--since` scoped the run to. This matters most in the CI formats: a\n // clean-tree run is otherwise an empty table nobody can tell apart from a\n // corpus that passed (ADR 01040).\n const sc = scopeLine(report);\n if (sc) {\n const text = sc.text((s) => `\\`${s}\\``);\n lines.push(\"\");\n lines.push(sc.empty ? `> **${text}**` : `_${text}_`);\n }\n\n // The baseline line belongs in the CI formats above all: `removed` is the\n // only signal that an over-narrow re-record just forgave findings, and\n // `renderGithub` delegates its summary here, so omitting it meant the\n // warning existed only in the format CI does not read.\n const bl = report.baseline;\n if (bl) {\n lines.push(\"\");\n if (bl.written) {\n lines.push(\n `_Baseline \\`${bl.path}\\`: recorded ${bl.written.total} finding(s) ` +\n `(+${bl.written.added}, -${bl.written.removed})._`,\n );\n if (bl.written.removed > 0) {\n lines.push(\n \"\",\n `> **${bl.written.removed} previously recorded finding(s) are no longer in the baseline.** ` +\n \"If this run covered less of the corpus than the last one, they have just been forgiven.\",\n );\n }\n } else {\n lines.push(\n `_Baseline \\`${bl.path}\\`: ${bl.suppressed} finding(s) suppressed of ${bl.recorded} recorded` +\n (bl.stale > 0 ? `, ${bl.stale} no longer occur` : \"\") +\n \"._\",\n );\n }\n }\n\n const notable = report.evalResults.filter(\n (r) => r.outcome === \"fail\" || r.outcome === \"error\" || r.outcome === \"needs-review\",\n );\n if (notable.length > 0) {\n lines.push(\"\", \"### Findings\", \"\");\n for (const r of notable) {\n const icon = OUTCOME_ICON[r.outcome] ?? \"\";\n // The page, then the entry that declares the eval. When the page\n // declares it, the one label says both.\n const entry = declaringEntry(r);\n const where =\n entry.file === r.file\n ? `\\`${locationLabel(entry)}\\``\n : `\\`${r.file}\\` · \\`${locationLabel(entry)}\\``;\n lines.push(`- ${icon} **${r.evalName}** · ${where}`);\n for (const f of r.findings ?? []) {\n const loc = f.line != null ? `:${f.line}` : \"\";\n lines.push(` - ${f.severity}${loc}: ${f.message}`);\n }\n for (const line of judgedLines(r)) lines.push(` - ${line}`);\n if (r.consensus) {\n const v = r.consensus;\n lines.push(\n ` - votes pass:${v.votes.pass} fail:${v.votes.fail} partial:${v.votes.partial}, confidence ${v.meanConfidence.toFixed(2)} (${v.zone})`,\n );\n }\n if (r.skipReason && r.outcome === \"error\") lines.push(` - ${r.skipReason}`);\n for (const line of resultGuidance(r)) lines.push(` - ${line}`);\n }\n }\n\n for (const p of report.problems) {\n lines.push(`- ${p.level === \"notice\" ? \"ℹ️\" : \"⚠️\"} \\`${p.file}\\`${p.line != null ? `:${p.line}` : \"\"} ${p.message}`);\n }\n\n if (report.generated.length > 0) {\n lines.push(\"\", \"### Generated scripts\", \"\");\n for (const g of report.generated) lines.push(`- \\`${g}\\``);\n }\n\n if (report.usage.judgedEvals > 0) {\n lines.push(\n \"\",\n `_Judged ${report.usage.judgedEvals} evals (${report.usage.cachedEvals} cached), ` +\n `${report.usage.totalTokens.toLocaleString()} tokens._`,\n );\n }\n return lines.join(\"\\n\");\n}\n","/**\n * GitHub Actions reporter: workflow commands for inline PR annotations,\n * followed by the markdown summary (suitable for $GITHUB_STEP_SUMMARY).\n */\nimport { scopeLine } from \"./scope.js\";\nimport type { EngineReport } from \"../core/engine.js\";\nimport {\n escapeWorkflowCommandMessage as escapeData,\n escapeWorkflowCommandProperty as escapeProperty,\n} from \"../../shared/github.js\";\nimport { renderMarkdown } from \"./markdown.js\";\nimport { declaringEntry } from \"./location.js\";\nimport { judgedLines, resultGuidance } from \"./judged.js\";\n\nexport function renderGithub(report: EngineReport): string {\n const lines: string[] = [];\n for (const r of report.evalResults) {\n const entry = declaringEntry(r);\n const entryProps = [\n `file=${escapeProperty(entry.file)}`,\n entry.line !== undefined ? `line=${String(entry.line)}` : undefined,\n ];\n const guidance = resultGuidance(r);\n for (const f of r.findings ?? []) {\n // The family scale is GitHub's annotation levels, word for word.\n const level = f.severity;\n // A finding with a content line keeps it; one without lands on the\n // entry that declares the eval, which is what someone edits instead.\n const props = [\n ...(f.line != null\n ? [`file=${escapeProperty(f.file)}`, `line=${String(f.line)}`]\n : entryProps),\n f.line != null && f.col != null ? `col=${String(f.col)}` : undefined,\n `title=${escapeProperty(`manni docevals: ${f.evalName}`)}`,\n ]\n .filter(Boolean)\n .join(\",\");\n lines.push(`::${level} ${props}::${escapeData([f.message, ...guidance].join(\"\\n\"))}`);\n }\n const entryAnnotation = (level: string, text: string[]): void => {\n const props = [...entryProps, `title=${escapeProperty(`manni docevals: ${r.evalName}`)}`]\n .filter(Boolean)\n .join(\",\");\n lines.push(`::${level} ${props}::${escapeData([...text, ...guidance].join(\"\\n\"))}`);\n };\n // A judged failure, or an eval awaiting review. A review is a warning:\n // it fails the run only under --fail-on-review, and without this line\n // nothing in the log says why it did.\n const judged = judgedLines(r);\n if (judged.length > 0) {\n entryAnnotation(r.outcome === \"fail\" ? \"error\" : \"warning\", judged);\n }\n // An errored eval with no findings has nothing above to say it ran.\n // Left out, it shows only in the summary table, which a collapsed step\n // hides. SARIF reports it the same way; one with findings already did.\n if (r.outcome === \"error\" && (r.findings ?? []).length === 0) {\n entryAnnotation(\"error\", [r.skipReason ?? \"eval errored\"]);\n }\n }\n for (const p of report.problems) {\n const props = [\n `file=${escapeProperty(p.file)}`,\n p.line != null ? `line=${p.line}` : undefined,\n `title=manni docevals`,\n ]\n .filter(Boolean)\n .join(\",\");\n lines.push(`::${p.level} ${props}::${escapeData(p.message)}`);\n }\n // The scope, as an annotation rather than only in the step summary: a\n // collapsed log still shows notices, and \"nothing was evaluated\" is the one\n // sentence that distinguishes a scoped clean run from a corpus that passed\n // (ADR 01040).\n const sc = scopeLine(report);\n if (sc) {\n lines.push(`::notice title=manni docevals::${escapeData(sc.text())}`);\n }\n lines.push(\"\", renderMarkdown(report));\n return lines.join(\"\\n\");\n}\n","/**\n * SARIF 2.1.0 reporter.\n *\n * `github` annotates a pull request and nothing else: the annotations live on\n * one check run and scroll away with it. SARIF is what a code-scanning\n * dashboard ingests, so findings become a queryable history — which finding,\n * on which line, first seen when, still open or not.\n *\n * Two details are load-bearing and easy to get wrong:\n *\n * - **URIs are repo-relative and forward-slashed.** An absolute path, or a\n * Windows path with backslashes, uploads successfully and then matches no\n * file, so every finding lands on nothing.\n * - **Every reported rule is declared** in `tool.driver.rules`. A dashboard\n * showing a bare `regex/found` with no name or description is the\n * difference between a finding someone acts on and one they dismiss.\n */\nimport type { EngineReport } from \"../core/engine.js\";\nimport { FIX_GUIDE, type EvalResult, type Finding, type Severity } from \"../types.js\";\nimport { declaringEntry } from \"./location.js\";\nimport { judgedLines, resultGuidance } from \"./judged.js\";\n\nconst SARIF_SCHEMA =\n \"https://raw.githubusercontent.com/oasis-tcs/sarif-spec/main/sarif-2.1/schema/sarif-schema-2.1.0.json\";\n\n/** SARIF has three levels; `notice` is `note`, not a dropped finding. */\nfunction levelFor(severity: Severity): \"error\" | \"warning\" | \"note\" {\n switch (severity) {\n case \"error\":\n return \"error\";\n case \"warning\":\n return \"warning\";\n case \"notice\":\n return \"note\";\n }\n}\n\n/** Repo-relative, forward-slashed — what a code-scanning host can resolve. */\nfunction uriFor(file: string): string {\n return file.replace(/\\\\/g, \"/\").replace(/^\\.\\//, \"\");\n}\n\n/**\n * A finding's rule id.\n *\n * `tool:regex` supplies its own (`regex/found`); `command` and\n * the judge do not, so the eval name stands in. Either way a result must carry\n * *some* stable id, or the dashboard groups every finding under one heading.\n */\nfunction ruleIdFor(finding: Finding): string {\n return finding.ruleId ?? finding.evalName;\n}\n\n/**\n * The entry that declares an eval, as a SARIF physical location. SARIF regions\n * are 1-based and `startLine` is required once a region is present, so an\n * entry with no line has no region rather than an invented line 1.\n */\nfunction entryLocation(result: EvalResult): unknown {\n const entry = declaringEntry(result);\n return {\n artifactLocation: { uri: uriFor(entry.file) },\n ...(entry.line !== undefined ? { region: { startLine: entry.line } } : {}),\n };\n}\n\ninterface SarifRule {\n id: string;\n name: string;\n shortDescription: { text: string };\n fullDescription?: { text: string };\n helpUri: string;\n defaultConfiguration: { level: \"error\" | \"warning\" | \"note\" };\n}\n\n/**\n * The `tool:regex` rules, which mean the same thing whichever eval reports\n * them. Each is named for itself, so its name does not depend on which eval\n * happened to report it first.\n */\nconst STATIC_RULES: Record<string, { short: string; full: string }> = {\n \"regex/found\": {\n short: \"Text the eval forbids is present\",\n full: \"The page contains text an eval forbids. The line is the first match.\",\n },\n \"regex/not-found\": {\n short: \"Text the eval asks for is missing\",\n full: \"The page lacks text an eval asks for.\",\n },\n \"regex/count\": {\n short: \"Text matches a different number of times\",\n full: \"The page matches an eval's pattern a different number of times than the eval asks. The line is the first match.\",\n },\n \"regex/unreadable-target\": {\n short: \"The eval's target cannot be read\",\n full: \"The file an eval reads cannot be read. The eval is at fault, not the page.\",\n },\n};\n\nexport function renderSarif(report: EngineReport): string {\n const rules = new Map<string, SarifRule>();\n const results: unknown[] = [];\n\n /** Declares a rule the first time it is reported. */\n const declare = (\n id: string,\n evalName: string,\n grader: string,\n level: SarifRule[\"defaultConfiguration\"][\"level\"],\n ): void => {\n if (rules.has(id)) return;\n const fixed = STATIC_RULES[id];\n rules.set(id, {\n id,\n name: fixed === undefined ? evalName : id,\n shortDescription: {\n text: fixed?.short ?? `manni docevals eval \"${evalName}\" (${grader})`,\n },\n ...(fixed === undefined ? {} : { fullDescription: { text: fixed.full } }),\n helpUri: FIX_GUIDE,\n defaultConfiguration: { level },\n });\n };\n\n for (const evalResult of report.evalResults) {\n const guidance = resultGuidance(evalResult);\n // The lines a reader sees, and the object a machine reads, on every\n // result this eval reports.\n const message = (lines: string[]) => ({ text: [...lines, ...guidance].join(\"\\n\") });\n const properties =\n evalResult.guidance == null ? {} : { properties: { guidance: evalResult.guidance } };\n\n for (const finding of evalResult.findings ?? []) {\n const id = ruleIdFor(finding);\n const level = levelFor(finding.severity);\n declare(id, finding.evalName, evalResult.grader, level);\n results.push({\n ruleId: id,\n level,\n message: message([finding.message]),\n locations: [\n {\n // A finding with a content line keeps it. One without lands on\n // the entry that declares the eval.\n physicalLocation:\n finding.line != null\n ? {\n artifactLocation: { uri: uriFor(finding.file) },\n region: {\n startLine: finding.line,\n ...(finding.col != null ? { startColumn: finding.col } : {}),\n },\n }\n : entryLocation(evalResult),\n },\n ],\n ...properties,\n });\n }\n\n // An errored eval has neither findings nor consensus. Leaving it out\n // shows it on the dashboard as never having run, which reads as \"all\n // clear\" at the moment something actually went wrong.\n if (evalResult.outcome === \"error\") {\n const id = evalResult.evalName;\n declare(id, evalResult.evalName, evalResult.grader, \"error\");\n results.push({\n ruleId: id,\n level: \"error\",\n message: message([evalResult.skipReason ?? \"eval errored\"]),\n locations: [{ physicalLocation: entryLocation(evalResult) }],\n ...properties,\n });\n }\n\n // A judged eval produces no `Finding`; without this its failure is absent\n // from the dashboard entirely, which reads as \"the AI evals all passed\".\n // An eval awaiting review is a warning, so the run that fails on it under\n // --fail-on-review says why.\n const judged = judgedLines(evalResult);\n if (judged.length > 0) {\n const id = evalResult.evalName;\n const level = evalResult.outcome === \"fail\" ? \"error\" : \"warning\";\n declare(\n id,\n evalResult.evalName,\n evalResult.grader === \"ai\" ? \"AI judge\" : evalResult.grader,\n level,\n );\n results.push({\n ruleId: id,\n level,\n message: message(judged),\n locations: [{ physicalLocation: entryLocation(evalResult) }],\n ...properties,\n });\n }\n }\n\n const log = {\n $schema: SARIF_SCHEMA,\n version: \"2.1.0\",\n runs: [\n {\n tool: {\n driver: {\n name: \"manni-docevals\",\n informationUri: \"https://hawkeyexl.github.io/manni/docevals/\",\n rules: [...rules.values()],\n },\n },\n results,\n },\n ],\n };\n return `${JSON.stringify(log, null, 2)}\\n`;\n}\n","/**\n * JUnit XML reporter.\n *\n * Every CI system already knows how to render a JUnit report: which checks\n * ran, which failed, how long they took, and — the part that matters for a\n * docs gate — a stable history across builds. Emitting it costs one mapping\n * and buys that for free on Jenkins, GitLab, CircleCI, Buildkite and the rest.\n *\n * The mapping is one testsuite per eval suite, one testcase per (page, eval)\n * pair. `classname` is the page and `name` is the eval, because that is the\n * grouping every JUnit viewer offers: expand a file, see its checks.\n */\nimport type { EngineReport } from \"../core/engine.js\";\nimport type { EvalResult } from \"../types.js\";\nimport { declaringEntry } from \"./location.js\";\nimport { judgedLines, resultGuidance } from \"./judged.js\";\n\n/**\n * Control characters XML 1.0 forbids outright: everything below U+0020 except\n * tab, newline and carriage return, plus DEL and the C1 block.\n *\n * Escaping them is not an option — they are illegal in an XML document at all,\n * even as character references — so they are dropped.\n */\nconst FORBIDDEN = /[\u0000-\b\u000b\f\u000e-\u001f-]/g;\n\n/**\n * Escape text for XML.\n *\n * All five metacharacters, not the usual three: an unescaped `<` in a finding\n * message makes the whole document invalid, and a CI system handed invalid XML\n * reports \"no tests found\" rather than the failure it was given — the report\n * disappears at exactly the moment it had something to say.\n *\n * Control characters are stripped for the same reason, and they are the likelier\n * route in: a command grader's message is `outputTail(result)`, i.e. raw tool\n * stderr, and most CLI tools colour their stderr. One `\u001b` is enough to\n * make the document unparseable.\n */\nfunction esc(s: string): string {\n return s\n .replace(FORBIDDEN, \"\")\n .replace(/&/g, \"&\")\n .replace(/</g, \"<\")\n .replace(/>/g, \">\")\n .replace(/\"/g, \""\")\n .replace(/'/g, \"'\");\n}\n\nfunction attr(name: string, value: string | number): string {\n return `${name}=\"${esc(String(value))}\"`;\n}\n\n/**\n * The message body for a failing eval: findings, or the judged block, then\n * what the eval asks for.\n */\nfunction failureText(result: EvalResult): string {\n return [...failureLines(result), ...resultGuidance(result)].join(\"\\n\");\n}\n\nfunction failureLines(result: EvalResult): string[] {\n const findings = (result.findings ?? []).map(\n (f) => `${f.file}${f.line != null ? `:${f.line}` : \"\"} ${f.message}`,\n );\n if (findings.length > 0) return findings;\n const judged = judgedLines(result);\n if (judged.length > 0) return judged;\n // An errored eval carries its reason here and nowhere else. Falling back to\n // \"<name> failed\" would put an empty <error> body in front of whoever is\n // trying to find out what went wrong.\n if (result.skipReason) return [result.skipReason];\n return [`${result.evalName} failed`];\n}\n\nfunction testcase(result: EvalResult): string {\n // `file` and `line` are the entry that declares the eval, the attributes a\n // JUnit viewer that links to source reads.\n const entry = declaringEntry(result);\n const open = ` <testcase ${attr(\"classname\", result.file)} ${attr(\n \"name\",\n result.evalName,\n )} ${attr(\"file\", entry.file)}${\n entry.line === undefined ? \"\" : ` ${attr(\"line\", entry.line)}`\n } ${attr(\"time\", (result.durationMs / 1000).toFixed(3))}`;\n switch (result.outcome) {\n case \"pass\":\n return `${open} />`;\n case \"skipped\":\n return `${open}>\\n <skipped ${attr(\n \"message\",\n result.skipReason ?? \"skipped\",\n )} />\\n </testcase>`;\n case \"error\":\n return `${open}>\\n <error ${attr(\n \"message\",\n `${result.evalName} errored`,\n )}>${esc(failureText(result))}</error>\\n </testcase>`;\n case \"needs-review\":\n // Not a failure and not a pass. JUnit has no third state, and calling it\n // a failure would make a human-review queue look like a broken build.\n return `${open}>\\n <skipped ${attr(\n \"message\",\n \"needs human review\",\n )} />\\n </testcase>`;\n default:\n return `${open}>\\n <failure ${attr(\n \"message\",\n `${result.evalName} failed`,\n )}>${esc(failureText(result))}</failure>\\n </testcase>`;\n }\n}\n\nexport function renderJunit(report: EngineReport): string {\n // The engine stamps each result with its suite, so grouping is a read\n // rather than a reconstruction.\n const bySuite = new Map<string, EvalResult[]>();\n for (const r of report.evalResults) {\n const suite = r.suite ?? \"default\";\n const list = bySuite.get(suite) ?? [];\n list.push(r);\n bySuite.set(suite, list);\n }\n\n const suites = [...bySuite.entries()].map(([name, results]) => {\n const failures = results.filter((r) => r.outcome === \"fail\").length;\n const errors = results.filter((r) => r.outcome === \"error\").length;\n const skipped = results.filter(\n (r) => r.outcome === \"skipped\" || r.outcome === \"needs-review\",\n ).length;\n const time = results.reduce((sum, r) => sum + r.durationMs, 0) / 1000;\n return [\n ` <testsuite ${attr(\"name\", name)} ${attr(\"tests\", results.length)} ${attr(\n \"failures\",\n failures,\n )} ${attr(\"errors\", errors)} ${attr(\"skipped\", skipped)} ${attr(\n \"time\",\n time.toFixed(3),\n )}>`,\n ...results.map(testcase),\n \" </testsuite>\",\n ].join(\"\\n\");\n });\n\n const total = report.evalResults.length;\n const failures = report.evalResults.filter((r) => r.outcome === \"fail\").length;\n const errors = report.evalResults.filter((r) => r.outcome === \"error\").length;\n return [\n '<?xml version=\"1.0\" encoding=\"UTF-8\"?>',\n `<testsuites ${attr(\"name\", \"manni-docevals\")} ${attr(\"tests\", total)} ${attr(\n \"failures\",\n failures,\n )} ${attr(\"errors\", errors)}>`,\n ...suites,\n \"</testsuites>\",\n \"\",\n ].join(\"\\n\");\n}\n","/**\n * HTML reporter: one self-contained file a documentation owner can open.\n *\n * Every other format here is machine-facing (JSON, SARIF, JUnit) or\n * terminal-facing (human, markdown, github). The people the content strategy\n * names as corpus and standard owners are neither: they want to see which\n * pages failed, what the judge actually quoted, and whether the suite met its\n * target — and none of them are reading SARIF.\n *\n * Self-contained on purpose: no CDN, no external stylesheet, no fonts. The\n * file is meant to survive being attached to a PR, mailed, or opened from a CI\n * artifact directory, all of which strip or block external requests. It is\n * also why everything is inline rather than clever.\n */\nimport type { EngineReport } from \"../core/engine.js\";\nimport { declaringEntry, locationLabel } from \"./location.js\";\nimport { resultGuidance } from \"./judged.js\";\nimport { evidenceVerdict } from \"../../shared/verdict-lines.js\";\nimport type { EvalResult } from \"../types.js\";\n\nconst OUTCOME_LABEL: Record<string, string> = {\n pass: \"Pass\",\n fail: \"Fail\",\n \"needs-review\": \"Needs review\",\n skipped: \"Skipped\",\n error: \"Error\",\n};\n\n/** Escape for HTML text and quoted attribute values alike. */\nfunction esc(value: string): string {\n return value\n .replaceAll(\"&\", \"&\")\n .replaceAll(\"<\", \"<\")\n .replaceAll(\">\", \">\")\n .replaceAll('\"', \""\");\n}\n\nconst pct = (n: number): string => `${(n * 100).toFixed(0)}%`;\n\nfunction suiteRows(report: EngineReport): string {\n return report.suites\n .map((s) => {\n // A filtered run measured part of the suite, so it has numbers and no\n // verdict — rendering it as a failure is what ADR 01018 forbids.\n const verdict = s.partial\n ? '<span class=\"v partial\">partial</span>'\n : s.meetsTarget\n ? '<span class=\"v ok\">met</span>'\n : '<span class=\"v bad\">missed</span>';\n const criteria = s.criteria\n ? `${String(s.criteria.passed)}/${String(s.criteria.total)}` +\n (s.criteria.suspended > 0\n ? ` <span class=\"muted\">(${String(s.criteria.suspended)} suspended)</span>`\n : \"\")\n : '<span class=\"muted\">—</span>';\n return `<tr><th>${esc(s.suite)}</th><td>${String(s.passed)}</td><td>${String(\n s.failed + s.errored,\n )}</td><td>${String(s.needsReview)}</td><td>${String(s.skipped)}</td><td>${criteria}</td><td>${pct(\n s.passRate,\n )}</td><td>${pct(s.targetPassRate)}</td><td>${verdict}</td></tr>`;\n })\n .join(\"\\n\");\n}\n\nfunction evalBlock(r: EvalResult): string {\n const bits: string[] = [];\n bits.push(\n `<div class=\"eval ${esc(r.outcome)}\">` +\n `<div class=\"eh\"><span class=\"badge ${esc(r.outcome)}\">${esc(\n OUTCOME_LABEL[r.outcome] ?? r.outcome,\n )}</span> <code>${esc(r.evalName)}</code>` +\n `<span class=\"muted\"> · ${esc(locationLabel(declaringEntry(r)))} · ${esc(r.grader)}${\n r.weight !== undefined && r.weight !== 1\n ? ` · weight ${String(r.weight)}`\n : \"\"\n }</span></div>`,\n );\n\n if (r.skipReason) bits.push(`<p class=\"reason\">${esc(r.skipReason)}</p>`);\n\n // The judge's own words. This is the reason a docs owner opens the report at\n // all — a verdict without the quotation it rests on is not reviewable.\n const verdict = r.consensus ? evidenceVerdict(r.consensus) : undefined;\n if (verdict) {\n bits.push(\n `<p class=\"reason\">${esc(verdict.reasoning)}</p>`,\n verdict.observed\n ? `<blockquote>${esc(verdict.observed)}</blockquote>`\n : \"\",\n `<p class=\"muted\">consensus ${esc(r.consensus?.verdict ?? \"\")} · agreement ${pct(\n r.consensus?.agreement ?? 0,\n )} · confidence ${pct(r.consensus?.meanConfidence ?? 0)} · zone ${esc(\n r.consensus?.zone ?? \"\",\n )}</p>`,\n );\n }\n\n if (r.via === \"human-review\") {\n bits.push('<p class=\"note\">Resolved by a recorded human review.</p>');\n }\n if (r.selfPreference) {\n bits.push(\n `<p class=\"warn\">Judged by <code>${esc(r.selfPreference.model)}</code>, which also ` +\n (r.selfPreference.axis === \"content\"\n ? \"wrote what this eval grades, by the page's provenance or meta-provenance.\"\n : \"proposed this eval, by the page's meta-provenance.\") +\n \" Self-judging favors the author; give the eval a model: of its own.\" +\n \"</p>\",\n );\n }\n for (const f of r.findings ?? []) {\n bits.push(\n `<p class=\"finding\"><span class=\"sev ${esc(f.severity)}\">${esc(f.severity)}</span> ` +\n `${esc(f.message)}${f.line ? ` <span class=\"muted\">(line ${String(f.line)})</span>` : \"\"}</p>`,\n );\n }\n for (const line of resultGuidance(r)) bits.push(`<p class=\"muted\">${esc(line)}</p>`);\n bits.push(\"</div>\");\n return bits.filter(Boolean).join(\"\\n\");\n}\n\nexport function renderHtml(report: EngineReport): string {\n const byFile = new Map<string, EvalResult[]>();\n for (const r of report.evalResults) {\n const list = byFile.get(r.file) ?? [];\n list.push(r);\n byFile.set(r.file, list);\n }\n\n const pages = [...byFile.entries()]\n .sort(([a], [b]) => a.localeCompare(b))\n .map(([file, results]) => {\n const failed = results.filter(\n (r) => r.outcome === \"fail\" || r.outcome === \"error\",\n ).length;\n return (\n `<section><h3>${esc(file)}` +\n (failed > 0 ? ` <span class=\"badge fail\">${String(failed)}</span>` : \"\") +\n `</h3>${results.map(evalBlock).join(\"\\n\")}</section>`\n );\n })\n .join(\"\\n\");\n\n const problems = report.problems.length\n ? `<h2>Problems</h2><ul class=\"problems\">${report.problems\n .map(\n (p) =>\n `<li class=\"${esc(p.level)}\"><code>${esc(p.file)}</code>${\n p.line ? `:${String(p.line)}` : \"\"\n } — ${esc(p.message)}</li>`,\n )\n .join(\"\")}</ul>`\n : \"\";\n\n const bl = report.baseline;\n const baseline = bl\n ? `<p class=\"note\">Baseline <code>${esc(bl.path)}</code>: ${String(\n bl.recorded,\n )} recorded, ${String(bl.suppressed)} suppressed${\n bl.stale > 0 ? `, ${String(bl.stale)} stale` : \"\"\n }.</p>`\n : \"\";\n\n // A dark-mode block rather than a fixed palette: the file gets opened in\n // whatever the reader already uses, and a white sheet in a dark editor is\n // the kind of small rudeness that stops people opening it twice.\n return `<!doctype html>\n<html lang=\"en\"><head><meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">\n<title>manni docevals results</title>\n<style>\n:root{--bg:#fff;--fg:#1a1a1a;--muted:#666;--line:#e2e2e2;--ok:#137333;--bad:#b3261e;--warn:#8a6100;--card:#fafafa}\n@media (prefers-color-scheme:dark){:root{--bg:#16181c;--fg:#e6e6e6;--muted:#9aa0a6;--line:#2c2f36;--ok:#7ee2a8;--bad:#ff8a80;--warn:#ffca7a;--card:#1d2026}}\n*{box-sizing:border-box}\nbody{margin:0;padding:2rem 1.25rem;background:var(--bg);color:var(--fg);\nfont:15px/1.55 ui-sans-serif,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif}\nmain{max-width:60rem;margin:0 auto}\nh1{font-size:1.5rem;margin:0 0 .25rem}\nh2{font-size:1.1rem;margin:2rem 0 .5rem;padding-bottom:.25rem;border-bottom:1px solid var(--line)}\nh3{font-size:.95rem;margin:1.5rem 0 .5rem;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}\ntable{border-collapse:collapse;width:100%;font-size:.9rem}\nth,td{text-align:left;padding:.4rem .6rem;border-bottom:1px solid var(--line)}\nthead th{color:var(--muted);font-weight:600}\ncode{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.9em}\n.muted{color:var(--muted)}\n.eval{border:1px solid var(--line);border-left-width:3px;border-radius:6px;background:var(--card);padding:.6rem .8rem;margin:.4rem 0}\n.eval.fail,.eval.error{border-left-color:var(--bad)}\n.eval.pass{border-left-color:var(--ok)}\n.eval.needs-review{border-left-color:var(--warn)}\n.badge{display:inline-block;padding:.05rem .4rem;border-radius:4px;font-size:.75rem;font-weight:600;border:1px solid var(--line)}\n.badge.pass{color:var(--ok)}.badge.fail,.badge.error{color:var(--bad)}\nblockquote{margin:.4rem 0;padding:.3rem .7rem;border-left:2px solid var(--line);color:var(--muted)}\n.reason{margin:.3rem 0}\n.warn{color:var(--warn);margin:.3rem 0}\n.note{color:var(--muted);margin:.3rem 0}\n.finding{margin:.2rem 0}\n.sev{font-size:.75rem;text-transform:uppercase;font-weight:600;margin-right:.35rem}\n.sev.error{color:var(--bad)}.sev.warning{color:var(--warn)}.sev.notice{color:var(--muted)}\n.v.ok{color:var(--ok)}.v.bad{color:var(--bad)}.v.partial{color:var(--muted)}\n.problems li.error{color:var(--bad)}.problems li.warning{color:var(--warn)}.problems li.notice{color:var(--muted)}\n</style></head><body><main>\n<h1>manni docevals results</h1>\n<p class=\"muted\">${String(report.pages)} page(s) · ${String(\n report.evalResults.length,\n )} eval(s) · exit ${String(report.exitCode)}</p>\n${baseline}\n<h2>Suites</h2>\n<table><thead><tr><th>Suite</th><th>Pass</th><th>Fail</th><th>Review</th><th>Skip</th><th>Criteria</th><th>Rate</th><th>Target</th><th></th></tr></thead>\n<tbody>\n${suiteRows(report)}\n</tbody></table>\n${problems}\n<h2>Pages</h2>\n${pages}\n</main></body></html>\n`;\n}\n","/** Reporter dispatch. */\nimport type { EngineReport } from \"../core/engine.js\";\nimport { renderPretty, type ColorOptions } from \"./pretty.js\";\nimport { renderJson } from \"./json.js\";\nimport { renderMarkdown } from \"./markdown.js\";\nimport { renderGithub } from \"./github.js\";\nimport { parseFormat, REPORT_FORMATS, type ReportFormat } from \"./format.js\";\nimport { renderSarif } from \"./sarif.js\";\nimport { renderJunit } from \"./junit.js\";\nimport { renderHtml } from \"./html.js\";\n\nexport type { ColorOptions } from \"./pretty.js\";\nexport {\n REPORT_FORMATS,\n SUMMARY_FORMATS,\n parseFormat,\n type ReportFormat,\n type SummaryFormat,\n} from \"./format.js\";\n\n/**\n * `opts.color` reaches the pretty reporter alone. Every other format is read\n * by a machine or a browser, so it never carries terminal escapes.\n */\nexport function render(\n report: EngineReport,\n format: ReportFormat,\n opts: ColorOptions = {},\n): string {\n // Same entry guard as renderList/renderFill, and for the same reason: this is\n // exported from src/index.ts, so library callers arrive with no CLI parser in\n // front. Before this, an unknown format fell off the switch and returned\n // `undefined` — which the CLI then printed.\n //\n // Routed through parseFormat rather than a `default:` branch so all three\n // render entry points emit one message built in one place. A hand-written\n // message here drifts from parseFormat's the first time either is reworded.\n parseFormat(format, REPORT_FORMATS, \"format\");\n switch (format) {\n case \"pretty\":\n return renderPretty(report, opts);\n case \"json\":\n return renderJson(report);\n case \"markdown\":\n return renderMarkdown(report);\n case \"sarif\":\n return renderSarif(report);\n case \"junit\":\n return renderJunit(report);\n case \"github\":\n return renderGithub(report);\n case \"html\":\n return renderHt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alSchemaRef,
|
|
7
7
|
fingerprint,
|
|
8
8
|
isErrorSeverity
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-67OVXUT3.js";
|
|
10
10
|
import {
|
|
11
11
|
escapeWorkflowCommandMessage,
|
|
12
12
|
escapeWorkflowCommandProperty,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
} from "./chunk-JF4BC7ZD.js";
|
|
21
21
|
import {
|
|
22
22
|
package_default
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-KVLOTBQR.js";
|
|
24
24
|
|
|
25
25
|
// src/meta/reporters/rule-id.ts
|
|
26
26
|
var SYNTHETIC_SCHEMA = "(parse)";
|
|
@@ -407,4 +407,4 @@ export {
|
|
|
407
407
|
renderGithub,
|
|
408
408
|
render
|
|
409
409
|
};
|
|
410
|
-
//# sourceMappingURL=chunk-
|
|
410
|
+
//# sourceMappingURL=chunk-XYNYBH3M.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
canonicalLanguage,
|
|
8
8
|
deriveGraph,
|
|
9
9
|
termIndex
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EWBVN4XX.js";
|
|
11
11
|
import {
|
|
12
12
|
EmbedderUnavailableError,
|
|
13
13
|
bodyOf,
|
|
@@ -28,11 +28,11 @@ import {
|
|
|
28
28
|
partitionByLanguage,
|
|
29
29
|
storeToQuads,
|
|
30
30
|
validateGraph
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-RCYH36B6.js";
|
|
32
32
|
import {
|
|
33
33
|
GraphIndex,
|
|
34
34
|
encodeVectorIndex
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-5RRP5CQR.js";
|
|
36
36
|
import {
|
|
37
37
|
COPIED_SHARE,
|
|
38
38
|
EVALS_ARE_AUTHOR_FACING,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
questionKey,
|
|
45
45
|
readQuestionFile,
|
|
46
46
|
withExternalMetadata
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-S6RCOR2J.js";
|
|
48
48
|
import {
|
|
49
49
|
LOCALIZATIONS_FILENAME,
|
|
50
50
|
UNDETERMINED,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
parseLocalizations,
|
|
56
56
|
searchIndexFilename,
|
|
57
57
|
vectorIndexFilename
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-BKJ6JPQF.js";
|
|
59
59
|
import {
|
|
60
60
|
COVERAGE_FIELDS,
|
|
61
61
|
GRAPH_NOT_APPLICABLE_TO_VARIANT,
|
|
@@ -103,12 +103,12 @@ import {
|
|
|
103
103
|
noInputMessage,
|
|
104
104
|
resolveDocumentSet,
|
|
105
105
|
routesFrom
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-5C5UNRZF.js";
|
|
107
107
|
import {
|
|
108
108
|
mergeMetaProvenance,
|
|
109
109
|
readRecord,
|
|
110
110
|
splitBody
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-A322P5GM.js";
|
|
112
112
|
import {
|
|
113
113
|
findWindows,
|
|
114
114
|
isMissing,
|
|
@@ -117,7 +117,7 @@ import {
|
|
|
117
117
|
pinOfLines,
|
|
118
118
|
spellLines,
|
|
119
119
|
spliceManifestValue
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-PDL6IO4Z.js";
|
|
121
121
|
import {
|
|
122
122
|
termLabelSource
|
|
123
123
|
} from "./chunk-DSWKBZWW.js";
|
|
@@ -125,7 +125,7 @@ import {
|
|
|
125
125
|
DocmetaError,
|
|
126
126
|
urlManifestMessage,
|
|
127
127
|
writeFileAtomic
|
|
128
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-67OVXUT3.js";
|
|
129
129
|
import {
|
|
130
130
|
noticeOnce,
|
|
131
131
|
warn
|
|
@@ -3309,4 +3309,4 @@ export {
|
|
|
3309
3309
|
runStats,
|
|
3310
3310
|
renderStats
|
|
3311
3311
|
};
|
|
3312
|
-
//# sourceMappingURL=chunk-
|
|
3312
|
+
//# sourceMappingURL=chunk-YLCP5KPU.js.map
|
|
@@ -5,17 +5,14 @@ import {
|
|
|
5
5
|
} from "./chunk-TT5UDTDM.js";
|
|
6
6
|
import {
|
|
7
7
|
parseTraceFile
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WCHP6QET.js";
|
|
9
9
|
import {
|
|
10
10
|
REDO_OR_FIX
|
|
11
11
|
} from "./chunk-VHJ72YCD.js";
|
|
12
12
|
import {
|
|
13
13
|
artifactEvalsErrors,
|
|
14
14
|
normalizeEntry
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import {
|
|
17
|
-
unknownRecordMessage
|
|
18
|
-
} from "./chunk-ZTRC37NH.js";
|
|
15
|
+
} from "./chunk-SOY53WQN.js";
|
|
19
16
|
import {
|
|
20
17
|
parseConfig
|
|
21
18
|
} from "./chunk-3ZVRGBK6.js";
|
|
@@ -30,10 +27,6 @@ import {
|
|
|
30
27
|
import {
|
|
31
28
|
TracevalsError
|
|
32
29
|
} from "./chunk-ZINZTHWO.js";
|
|
33
|
-
import {
|
|
34
|
-
indexSet,
|
|
35
|
-
loadStrategy
|
|
36
|
-
} from "./chunk-K5LBIAOM.js";
|
|
37
30
|
import {
|
|
38
31
|
outputTail,
|
|
39
32
|
realExec
|
|
@@ -41,16 +34,23 @@ import {
|
|
|
41
34
|
import {
|
|
42
35
|
evidenceVerdict
|
|
43
36
|
} from "./chunk-QS2Z3SWL.js";
|
|
37
|
+
import {
|
|
38
|
+
unknownRecordMessage
|
|
39
|
+
} from "./chunk-IDZXRFBA.js";
|
|
40
|
+
import {
|
|
41
|
+
indexSet,
|
|
42
|
+
loadStrategy
|
|
43
|
+
} from "./chunk-DILBGKLL.js";
|
|
44
44
|
import {
|
|
45
45
|
mapConcurrent
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-PDL6IO4Z.js";
|
|
47
47
|
import {
|
|
48
48
|
DEFAULT_IGNORE,
|
|
49
49
|
STDIN_TOKEN,
|
|
50
50
|
extractorForExtension,
|
|
51
51
|
notFoundMessage,
|
|
52
52
|
resolveTargetSet
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-67OVXUT3.js";
|
|
54
54
|
import {
|
|
55
55
|
escapeWorkflowCommandMessage,
|
|
56
56
|
escapeWorkflowCommandProperty,
|
|
@@ -1872,4 +1872,4 @@ export {
|
|
|
1872
1872
|
renderPretty,
|
|
1873
1873
|
renderTasks
|
|
1874
1874
|
};
|
|
1875
|
-
//# sourceMappingURL=chunk-
|
|
1875
|
+
//# sourceMappingURL=chunk-Z236YJ2V.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
loadTerms
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VF46PE3Z.js";
|
|
5
5
|
|
|
6
6
|
// src/term/commands/list.ts
|
|
7
7
|
var LIST_FORMATS = ["pretty", "json", "csv"];
|
|
@@ -14,4 +14,4 @@ export {
|
|
|
14
14
|
LIST_FORMATS,
|
|
15
15
|
runList
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=chunk-
|
|
17
|
+
//# sourceMappingURL=chunk-ZOVUANFB.js.map
|
|
@@ -3,30 +3,45 @@ import {
|
|
|
3
3
|
KeyError,
|
|
4
4
|
runKeyRotate,
|
|
5
5
|
runKeySet
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-4BWD6PHR.js";
|
|
7
|
+
import "./chunk-632W5O3C.js";
|
|
8
|
+
import "./chunk-2RFVMOPC.js";
|
|
9
9
|
import {
|
|
10
10
|
parseRepoFlags
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-RHMOEPNT.js";
|
|
12
|
+
import "./chunk-IM7C3H4W.js";
|
|
13
|
+
import "./chunk-CRCMXSQR.js";
|
|
14
|
+
import "./chunk-7O6TTSOO.js";
|
|
15
|
+
import "./chunk-3OHMRGHD.js";
|
|
16
|
+
import "./chunk-W4KJPTAN.js";
|
|
17
|
+
import "./chunk-WCRZHFCI.js";
|
|
18
|
+
import "./chunk-IDZXRFBA.js";
|
|
19
|
+
import "./chunk-NZRNW2XM.js";
|
|
20
|
+
import "./chunk-UU7W7VJ7.js";
|
|
21
|
+
import "./chunk-KKASKZUG.js";
|
|
22
|
+
import "./chunk-EZBMIWUP.js";
|
|
23
|
+
import "./chunk-BJH5VPAO.js";
|
|
24
|
+
import "./chunk-DILBGKLL.js";
|
|
25
|
+
import "./chunk-5C5UNRZF.js";
|
|
26
|
+
import "./chunk-XTKJNRJ6.js";
|
|
27
|
+
import "./chunk-W5TFTVPG.js";
|
|
28
|
+
import "./chunk-TI4DA6DF.js";
|
|
29
|
+
import "./chunk-I3QMDFDG.js";
|
|
30
|
+
import "./chunk-BXQLKOOR.js";
|
|
31
|
+
import "./chunk-JBOXCSTN.js";
|
|
32
|
+
import "./chunk-UMY3IKYT.js";
|
|
33
|
+
import "./chunk-2UT6FSV5.js";
|
|
34
|
+
import "./chunk-A322P5GM.js";
|
|
20
35
|
import {
|
|
21
36
|
COMMON_FORMAT_LIST
|
|
22
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-XYNYBH3M.js";
|
|
23
38
|
import {
|
|
24
39
|
collect,
|
|
25
40
|
explicitFalse,
|
|
26
41
|
splitList
|
|
27
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-PDL6IO4Z.js";
|
|
28
43
|
import "./chunk-DSWKBZWW.js";
|
|
29
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-67OVXUT3.js";
|
|
30
45
|
import "./chunk-77AINBYM.js";
|
|
31
46
|
import "./chunk-QK6VYJHV.js";
|
|
32
47
|
import {
|
|
@@ -43,7 +58,7 @@ import {
|
|
|
43
58
|
import "./chunk-NVYDWVXN.js";
|
|
44
59
|
import {
|
|
45
60
|
package_default
|
|
46
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-KVLOTBQR.js";
|
|
47
62
|
import "./chunk-OWBRDNRZ.js";
|
|
48
63
|
import "./chunk-G3T47CFV.js";
|
|
49
64
|
import "./chunk-2H7UOFLK.js";
|
|
@@ -238,4 +253,4 @@ function buildProgram() {
|
|
|
238
253
|
export {
|
|
239
254
|
buildProgram
|
|
240
255
|
};
|
|
241
|
-
//# sourceMappingURL=cli-
|
|
256
|
+
//# sourceMappingURL=cli-3XDWEQRN.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/key/cli.ts","../src/key/reporters/json.ts","../src/key/reporters/pretty.ts"],"sourcesContent":["/**\n * The `key` domain's commander program. Mounted by `src/cli.ts` under\n * `manni key`; no entry point of its own. Proposal 0045 extends 0034's\n * grammar: a domain is a tool, or a family resource with verbs. `key` is the\n * second kind, with two verbs, `set` and `rotate`, and no default subcommand.\n *\n * clig.dev as every tool has it: the report to stdout, diagnostics to stderr,\n * colour only on a TTY and never under `NO_COLOR`/`--no-color`, exit `0` done,\n * `1` a value that could not be re-encrypted, `2` operational/usage. Nothing\n * this program prints is ever a key.\n */\nimport { Command } from \"commander\";\nimport pkg from \"../../package.json\" with { type: \"json\" };\nimport { collect, explicitFalse, splitList } from \"../shared/cli-options.js\";\nimport { shouldColor } from \"../shared/color.js\";\nimport { fail } from \"../shared/run.js\";\nimport { notice } from \"../shared/warn.js\";\nimport { COMMON_FORMAT_LIST } from \"../meta/internal.js\";\nimport { parseRepoFlags } from \"../cite/index.js\";\nimport { runKeyRotate } from \"./commands/rotate.js\";\nimport { runKeySet } from \"./commands/set.js\";\nimport { KeyError } from \"./errors.js\";\nimport { renderRotateJson } from \"./reporters/json.js\";\nimport { BASELINE_NOTICE, renderRotatePretty, setMessage } from \"./reporters/pretty.js\";\n\nconst ROTATE_FORMATS = [\"pretty\", \"json\"] as const;\ntype RotateFormat = (typeof ROTATE_FORMATS)[number];\n\nfunction isRotateFormat(value: string): value is RotateFormat {\n return (ROTATE_FORMATS as readonly string[]).includes(value);\n}\n\n/** What commander hands `set`'s action. */\ninterface SetCliOptions {\n /** `-c, --config <path>`. */\n config?: string;\n dryRun?: boolean;\n}\n\n/**\n * What commander hands `rotate`'s action. The `--no-<thing>` flags are\n * `boolean` and never `undefined`: commander supplies `true` when the flag is\n * absent, so only the explicit `false` travels to the core (`explicitFalse`).\n */\ninterface RotateCliOptions {\n to?: string;\n /** `--collection <name>`, repeatable; commander's default value is `[]`. */\n collection: string[];\n /** `--ext <list>`; the command splits it. */\n ext?: string;\n /** `--exclude <glob>`, repeatable; commander's default value is `[]`. */\n exclude: string[];\n as?: string;\n config?: string;\n allowEmpty?: boolean;\n /** `--no-gitignore`. */\n gitignore: boolean;\n root?: string;\n /** `--repo <name=dir>`, repeatable; commander's default value is `[]`. */\n repo: string[];\n dryRun?: boolean;\n /** `-f, --format <format>`. Always a string: the declaration has a default. */\n format: string;\n}\n\nexport function buildProgram(): Command {\n const program = new Command();\n program\n .name(\"key\")\n .description(\"Set and rotate the family key that encrypted values are encrypted with.\")\n .version(pkg.version, \"-V, --version\")\n .option(\"--no-color\", \"disable colored output\")\n // A pointer, not the whole help screen: the message that precedes it\n // already names the offending flag.\n .showHelpAfterError(\"(add --help for usage)\")\n // MUST come before the `.command()` calls below. `copyInheritedSettings`\n // copies `_exitCallback` by value at subcommand-creation time, so an\n // `exitOverride()` installed afterwards leaves every subcommand still\n // calling `process.exit(1)`.\n .exitOverride();\n\n /** This domain's `--no-color`, wherever the domain is mounted. */\n const color = (): boolean =>\n shouldColor({ noColor: program.opts().color === false, isTTY: process.stdout.isTTY });\n\n program\n .command(\"set\")\n .description(\"Write the family encryption key to manni.config.yaml; generate one when no value is given\")\n .argument(\"[value]\", \"the key, at least 32 hex or base64url characters (default: 64 random hex)\")\n .option(\n \"-c, --config <path>\",\n \"the config file to write (default: the nearest manni.config.yaml, else a new one at the git root)\",\n )\n .option(\"--dry-run\", \"say what would be written; write nothing\")\n .addHelpText(\n \"after\",\n [\n \"\",\n \"Examples:\",\n \" manni key set # generate 256 bits into manni.config.yaml\",\n \" manni key set --dry-run # name the file, write nothing\",\n \" manni key set -c ops/manni.config.yaml 0123456789abcdef0123456789abcdef\",\n ].join(\"\\n\"),\n )\n .action(async (value: string | undefined, options: SetCliOptions) => {\n try {\n const result = await runKeySet({\n value,\n configPath: options.config,\n dryRun: Boolean(options.dryRun),\n onNotice: notice,\n });\n process.stdout.write(`${setMessage(result)}\\n`);\n process.exitCode = 0;\n } catch (err) {\n fail(err);\n }\n });\n\n program\n .command(\"rotate\")\n .description(\"Re-encrypt every encrypted value under a new key, then write the key\")\n .argument(\"[paths...]\", \"files, directories, or globs (default: every collection)\")\n .option(\n \"--to <value>\",\n \"the new key (default: 64 random hex); required for a narrowed run and a key from MANNI_ENCRYPTION_KEY\",\n )\n .option(\"--collection <name>\", \"configured collection to run over; repeatable\", collect, [])\n .option(\"--ext <list>\", \"comma-separated extensions for directory walks\")\n .option(\"--exclude <glob>\", \"glob to exclude; repeatable\", collect, [])\n .option(\"--as <format>\", \"force an input format for every input\")\n .option(\"-c, --config <path>\", \"path to a manni config file\")\n .option(\"--allow-empty\", \"treat zero matched files as success\")\n .option(\"--no-gitignore\", \"include files .gitignore covers\")\n .option(\n \"--root <dir>\",\n \"directory cited sources resolve from (default: cite.root from config, else the git root)\",\n )\n .option(\n \"--repo <name=dir>\",\n \"a checkout an entry's source.repo may name, as name=dir relative to the current directory; repeatable; overrides cite.repos for that name\",\n collect,\n [],\n )\n .option(\"--dry-run\", \"print what would change; write nothing\")\n .option(\"-f, --format <format>\", `output: ${ROTATE_FORMATS.join(\" | \")}`, \"pretty\")\n .addHelpText(\n \"after\",\n [\n \"\",\n \"Examples:\",\n \" manni key rotate # every collection, then the key\",\n \" manni key rotate --dry-run # see every change first\",\n ' manni key rotate --collection site --to \"$NEW_KEY\" # part of the family',\n ' MANNI_ENCRYPTION_KEY=… manni key rotate --to \"$NEW_KEY\"',\n ].join(\"\\n\"),\n )\n .action(async (paths: string[], options: RotateCliOptions) => {\n try {\n const format = options.format;\n if (!isRotateFormat(format)) {\n throw new KeyError(`Unknown --format \"${format}\". Use ${COMMON_FORMAT_LIST}.`);\n }\n const result = await runKeyRotate({\n inputs: paths,\n collection: options.collection,\n to: options.to,\n exts: options.ext ? splitList(options.ext) : undefined,\n exclude: options.exclude,\n as: options.as,\n configPath: options.config,\n // `undefined` rather than `false` when absent.\n allowEmpty: options.allowEmpty ? true : undefined,\n respectGitignore: explicitFalse(options.gitignore),\n root: options.root,\n repos: parseRepoFlags(options.repo, (m) => new KeyError(m)),\n dryRun: Boolean(options.dryRun),\n onNotice: notice,\n });\n if (format === \"json\") {\n process.stdout.write(`${renderRotateJson(result)}\\n`);\n // stdout is the JSON's; the notice is a diagnostic.\n if (result.baselineStale) notice(BASELINE_NOTICE);\n } else {\n process.stdout.write(`${renderRotatePretty(result, { color: color() })}\\n`);\n }\n process.exitCode = result.exitCode;\n } catch (err) {\n fail(err);\n }\n });\n\n return program;\n}\n","/**\n * JSON output for `key rotate`: every page and every local external-metadata\n * manifest with something encrypted in it, each value's full ciphertext\n * before and after, and the counts. The key is never in it.\n */\nimport type { KeyRotateResult } from \"../types.js\";\n\nexport function renderRotateJson(result: KeyRotateResult): string {\n return JSON.stringify(\n {\n pages: result.pages,\n manifests: result.manifests,\n reencrypted: result.reencrypted,\n skipped: result.skipped,\n keyWritten: result.keyWritten,\n },\n null,\n 2,\n );\n}\n","/**\n * Pretty output for `key set` and `key rotate`. A ciphertext is shown as `~`\n * and its first four characters, then `…`, with a citation's line suffix\n * after it: `~AQx7…`, `~AQm4…:2`. The full values are in `-f json`; the key\n * is in neither. Colour via `shouldColor`; never under `--no-color`/`NO_COLOR`.\n */\nimport { palette } from \"../../shared/color.js\";\nimport type { KeyRotateResult, KeySetResult, RotatedValue, SkippedValue } from \"../types.js\";\n\nexport interface PrettyOptions {\n color: boolean;\n}\n\n/** Said at the end of a writing rotation when a citation baseline exists. */\nexport const BASELINE_NOTICE =\n \"The citation baseline fingerprints id-less encrypted citations by their pin; re-record it with `manni cite check --write-baseline`.\";\n\nconst NARROWED =\n \"Key not written: this run covered part of the family. Finish with a whole run under the same key: `manni key rotate --to <the same value>`.\";\nconst FROM_ENV =\n \"Key not written: it comes from MANNI_ENCRYPTION_KEY. Update the secret to the value you passed.\";\n\nconst plural = (n: number, one: string, many = `${one}s`): string =>\n `${String(n)} ${n === 1 ? one : many}`;\n\n/** What `set` says: the file, never the key. */\nexport function setMessage(result: KeySetResult): string {\n return result.dryRun\n ? `Would write encryptionKey to ${result.source}.`\n : `Encryption key written to ${result.source}.`;\n}\n\n/** `~AQx7…`, and a citation's line suffix after it: `~AQm4…:2`. */\nexport function shortCiphertext(value: string): string {\n // base64url has no `:`, so the first one starts the line suffix.\n const colon = value.indexOf(\":\");\n const token = colon === -1 ? value : value.slice(0, colon);\n const suffix = colon === -1 ? \"\" : value.slice(colon);\n return `${token.slice(0, 5)}…${suffix}`;\n}\n\n/** A metadata value by its pointer; a citation by its id, else where it sits. */\nfunction nameOf(row: RotatedValue | SkippedValue): string {\n if (row.kind === \"metadata\") return row.pointer;\n if (row.id !== undefined) return row.id;\n if (row.index !== undefined) return `/citations/${String(row.index)}`;\n return `line ${String(row.line ?? 0)}`;\n}\n\nfunction closing(result: KeyRotateResult): string | undefined {\n switch (result.outcome) {\n case \"written\":\n return result.configSource === undefined\n ? undefined\n : `Encryption key written to ${result.configSource}.`;\n case \"finished\":\n // Said before the counts: the key was written by the run that stopped.\n return undefined;\n case \"narrowed\":\n return NARROWED;\n case \"env\":\n return FROM_ENV;\n case \"skipped\":\n return result.skipped === 1\n ? \"Key not written: 1 value could not be re-encrypted. Fix it and rotate again.\"\n : `Key not written: ${String(result.skipped)} values could not be re-encrypted. Fix them and rotate again.`;\n case \"dry-run\":\n return \"Dry run: nothing written.\";\n }\n}\n\nexport function renderRotatePretty(result: KeyRotateResult, opts: PrettyOptions): string {\n const c = palette(opts.color);\n const lines: string[] = [];\n for (const page of result.pages) {\n for (const row of page.rewritten) {\n // A metadata value has no line suffix; two spaces keep its arrow in the\n // column a `:L` suffix would take.\n const gap = row.kind === \"metadata\" ? \" \" : \" \";\n lines.push(\n `${page.file}: ${nameOf(row)} ${c.dim(shortCiphertext(row.from))}${gap}-> ${shortCiphertext(row.to)}`,\n );\n }\n for (const row of page.skipped) {\n lines.push(`${page.file}: ${nameOf(row)} ${c.red(\"skipped:\")} ${row.message}`);\n }\n }\n // A manifest value is named by the entry it belongs to and the pointer\n // inside it, so one line says which document's private half moved.\n for (const manifest of result.manifests) {\n for (const row of manifest.rewritten) {\n lines.push(\n `${manifest.file}: ${row.entry}${row.pointer} ${c.dim(shortCiphertext(row.from))} -> ${shortCiphertext(row.to)}`,\n );\n }\n for (const row of manifest.skipped) {\n lines.push(\n `${manifest.file}: ${row.entry}${row.pointer} ${c.red(\"skipped:\")} ${row.message}`,\n );\n }\n }\n if (result.outcome === \"finished\" && result.configSource !== undefined) {\n lines.push(`Finished the interrupted rotation in ${result.configSource}.`);\n }\n const files =\n result.pages.filter((page) => page.rewritten.length > 0).length +\n result.manifests.filter((manifest) => manifest.rewritten.length > 0).length;\n lines.push(\n `${plural(result.reencrypted, \"value\")} re-encrypted in ${plural(files, \"file\")}, ${String(result.skipped)} skipped`,\n );\n const last = closing(result);\n if (last !== undefined) lines.push(result.outcome === \"skipped\" ? c.red(last) : last);\n if (result.baselineStale) lines.push(BASELINE_NOTICE);\n return lines.join(\"\\n\");\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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GAAG,IAAI;AAAA,QAC7C,SAAS,QAAQ;AAAA,QACjB,IAAI,QAAQ;AAAA,QACZ,YAAY,QAAQ;AAAA;AAAA,QAEpB,YAAY,QAAQ,aAAa,OAAO;AAAA,QACxC,kBAAkB,cAAc,QAAQ,SAAS;AAAA,QACjD,MAAM,QAAQ;AAAA,QACd,OAAO,eAAe,QAAQ,MAAM,CAAC,MAAM,IAAI,SAAS,CAAC,CAAC;AAAA,QAC1D,QAAQ,QAAQ,QAAQ,MAAM;AAAA,QAC9B,UAAU;AAAA,MACZ,CAAC;AACD,UAAI,WAAW,QAAQ;AACrB,gBAAQ,OAAO,MAAM,GAAG,iBAAiB,MAAM,CAAC;AAAA,CAAI;AAEpD,YAAI,OAAO,cAAe,QAAO,eAAe;AAAA,MAClD,OAAO;AACL,gBAAQ,OAAO,MAAM,GAAG,mBAAmB,QAAQ,EAAE,OAAO,MAAM,EAAE,CAAC,CAAC;AAAA,CAAI;AAAA,MAC5E;AACA,cAAQ,WAAW,OAAO;AAAA,IAC5B,SAAS,KAAK;AACZ,WAAK,GAAG;AAAA,IACV;AAAA,EACF,CAAC;AAEH,SAAO;AACT;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/key/cli.ts","../src/key/reporters/json.ts","../src/key/reporters/pretty.ts"],"sourcesContent":["/**\n * The `key` domain's commander program. Mounted by `src/cli.ts` under\n * `manni key`; no entry point of its own. Proposal 0045 extends 0034's\n * grammar: a domain is a tool, or a family resource with verbs. `key` is the\n * second kind, with two verbs, `set` and `rotate`, and no default subcommand.\n *\n * clig.dev as every tool has it: the report to stdout, diagnostics to stderr,\n * colour only on a TTY and never under `NO_COLOR`/`--no-color`, exit `0` done,\n * `1` a value that could not be re-encrypted, `2` operational/usage. Nothing\n * this program prints is ever a key.\n */\nimport { Command } from \"commander\";\nimport pkg from \"../../package.json\" with { type: \"json\" };\nimport { collect, explicitFalse, splitList } from \"../shared/cli-options.js\";\nimport { shouldColor } from \"../shared/color.js\";\nimport { fail } from \"../shared/run.js\";\nimport { notice } from \"../shared/warn.js\";\nimport { COMMON_FORMAT_LIST } from \"../meta/internal.js\";\nimport { parseRepoFlags } from \"../cite/index.js\";\nimport { runKeyRotate } from \"./commands/rotate.js\";\nimport { runKeySet } from \"./commands/set.js\";\nimport { KeyError } from \"./errors.js\";\nimport { renderRotateJson } from \"./reporters/json.js\";\nimport { BASELINE_NOTICE, renderRotatePretty, setMessage } from \"./reporters/pretty.js\";\n\nconst ROTATE_FORMATS = [\"pretty\", \"json\"] as const;\ntype RotateFormat = (typeof ROTATE_FORMATS)[number];\n\nfunction isRotateFormat(value: string): value is RotateFormat {\n return (ROTATE_FORMATS as readonly string[]).includes(value);\n}\n\n/** What commander hands `set`'s action. */\ninterface SetCliOptions {\n /** `-c, --config <path>`. */\n config?: string;\n dryRun?: boolean;\n}\n\n/**\n * What commander hands `rotate`'s action. The `--no-<thing>` flags are\n * `boolean` and never `undefined`: commander supplies `true` when the flag is\n * absent, so only the explicit `false` travels to the core (`explicitFalse`).\n */\ninterface RotateCliOptions {\n to?: string;\n /** `--collection <name>`, repeatable; commander's default value is `[]`. */\n collection: string[];\n /** `--ext <list>`; the command splits it. */\n ext?: string;\n /** `--exclude <glob>`, repeatable; commander's default value is `[]`. */\n exclude: string[];\n as?: string;\n config?: string;\n allowEmpty?: boolean;\n /** `--no-gitignore`. */\n gitignore: boolean;\n root?: string;\n /** `--repo <name=dir>`, repeatable; commander's default value is `[]`. */\n repo: string[];\n dryRun?: boolean;\n /** `-f, --format <format>`. Always a string: the declaration has a default. */\n format: string;\n}\n\nexport function buildProgram(): Command {\n const program = new Command();\n program\n .name(\"key\")\n .description(\"Set and rotate the family key that encrypted values are encrypted with.\")\n .version(pkg.version, \"-V, --version\")\n .option(\"--no-color\", \"disable colored output\")\n // A pointer, not the whole help screen: the message that precedes it\n // already names the offending flag.\n .showHelpAfterError(\"(add --help for usage)\")\n // MUST come before the `.command()` calls below. `copyInheritedSettings`\n // copies `_exitCallback` by value at subcommand-creation time, so an\n // `exitOverride()` installed afterwards leaves every subcommand still\n // calling `process.exit(1)`.\n .exitOverride();\n\n /** This domain's `--no-color`, wherever the domain is mounted. */\n const color = (): boolean =>\n shouldColor({ noColor: program.opts().color === false, isTTY: process.stdout.isTTY });\n\n program\n .command(\"set\")\n .description(\"Write the family encryption key to manni.config.yaml; generate one when no value is given\")\n .argument(\"[value]\", \"the key, at least 32 hex or base64url characters (default: 64 random hex)\")\n .option(\n \"-c, --config <path>\",\n \"the config file to write (default: the nearest manni.config.yaml, else a new one at the git root)\",\n )\n .option(\"--dry-run\", \"say what would be written; write nothing\")\n .addHelpText(\n \"after\",\n [\n \"\",\n \"Examples:\",\n \" manni key set # generate 256 bits into manni.config.yaml\",\n \" manni key set --dry-run # name the file, write nothing\",\n \" manni key set -c ops/manni.config.yaml 0123456789abcdef0123456789abcdef\",\n ].join(\"\\n\"),\n )\n .action(async (value: string | undefined, options: SetCliOptions) => {\n try {\n const result = await runKeySet({\n value,\n configPath: options.config,\n dryRun: Boolean(options.dryRun),\n onNotice: notice,\n });\n process.stdout.write(`${setMessage(result)}\\n`);\n process.exitCode = 0;\n } catch (err) {\n fail(err);\n }\n });\n\n program\n .command(\"rotate\")\n .description(\"Re-encrypt every encrypted value under a new key, then write the key\")\n .argument(\"[paths...]\", \"files, directories, or globs (default: every collection)\")\n .option(\n \"--to <value>\",\n \"the new key (default: 64 random hex); required for a narrowed run and a key from MANNI_ENCRYPTION_KEY\",\n )\n .option(\"--collection <name>\", \"configured collection to run over; repeatable\", collect, [])\n .option(\"--ext <list>\", \"comma-separated extensions for directory walks\")\n .option(\"--exclude <glob>\", \"glob to exclude; repeatable\", collect, [])\n .option(\"--as <format>\", \"force an input format for every input\")\n .option(\"-c, --config <path>\", \"path to a manni config file\")\n .option(\"--allow-empty\", \"treat zero matched files as success\")\n .option(\"--no-gitignore\", \"include files .gitignore covers\")\n .option(\n \"--root <dir>\",\n \"directory cited sources resolve from (default: cite.root from config, else the git root)\",\n )\n .option(\n \"--repo <name=dir>\",\n \"a checkout an entry's source.repo may name, as name=dir relative to the current directory; repeatable; overrides cite.repos for that name\",\n collect,\n [],\n )\n .option(\"--dry-run\", \"print what would change; write nothing\")\n .option(\"-f, --format <format>\", `output: ${ROTATE_FORMATS.join(\" | \")}`, \"pretty\")\n .addHelpText(\n \"after\",\n [\n \"\",\n \"Examples:\",\n \" manni key rotate # every collection, then the key\",\n \" manni key rotate --dry-run # see every change first\",\n ' manni key rotate --collection site --to \"$NEW_KEY\" # part of the family',\n ' MANNI_ENCRYPTION_KEY=… manni key rotate --to \"$NEW_KEY\"',\n ].join(\"\\n\"),\n )\n .action(async (paths: string[], options: RotateCliOptions) => {\n try {\n const format = options.format;\n if (!isRotateFormat(format)) {\n throw new KeyError(`Unknown --format \"${format}\". Use ${COMMON_FORMAT_LIST}.`);\n }\n const result = await runKeyRotate({\n inputs: paths,\n collection: options.collection,\n to: options.to,\n exts: options.ext ? splitList(options.ext) : undefined,\n exclude: options.exclude,\n as: options.as,\n configPath: options.config,\n // `undefined` rather than `false` when absent.\n allowEmpty: options.allowEmpty ? true : undefined,\n respectGitignore: explicitFalse(options.gitignore),\n root: options.root,\n repos: parseRepoFlags(options.repo, (m) => new KeyError(m)),\n dryRun: Boolean(options.dryRun),\n onNotice: notice,\n });\n if (format === \"json\") {\n process.stdout.write(`${renderRotateJson(result)}\\n`);\n // stdout is the JSON's; the notice is a diagnostic.\n if (result.baselineStale) notice(BASELINE_NOTICE);\n } else {\n process.stdout.write(`${renderRotatePretty(result, { color: color() })}\\n`);\n }\n process.exitCode = result.exitCode;\n } catch (err) {\n fail(err);\n }\n });\n\n return program;\n}\n","/**\n * JSON output for `key rotate`: every page and every local external-metadata\n * manifest with something encrypted in it, each value's full ciphertext\n * before and after, and the counts. The key is never in it.\n */\nimport type { KeyRotateResult } from \"../types.js\";\n\nexport function renderRotateJson(result: KeyRotateResult): string {\n return JSON.stringify(\n {\n pages: result.pages,\n manifests: result.manifests,\n reencrypted: result.reencrypted,\n skipped: result.skipped,\n keyWritten: result.keyWritten,\n },\n null,\n 2,\n );\n}\n","/**\n * Pretty output for `key set` and `key rotate`. A ciphertext is shown as `~`\n * and its first four characters, then `…`, with a citation's line suffix\n * after it: `~AQx7…`, `~AQm4…:2`. The full values are in `-f json`; the key\n * is in neither. Colour via `shouldColor`; never under `--no-color`/`NO_COLOR`.\n */\nimport { palette } from \"../../shared/color.js\";\nimport type { KeyRotateResult, KeySetResult, RotatedValue, SkippedValue } from \"../types.js\";\n\nexport interface PrettyOptions {\n color: boolean;\n}\n\n/** Said at the end of a writing rotation when a citation baseline exists. */\nexport const BASELINE_NOTICE =\n \"The citation baseline fingerprints id-less encrypted citations by their pin; re-record it with `manni cite check --write-baseline`.\";\n\nconst NARROWED =\n \"Key not written: this run covered part of the family. Finish with a whole run under the same key: `manni key rotate --to <the same value>`.\";\nconst FROM_ENV =\n \"Key not written: it comes from MANNI_ENCRYPTION_KEY. Update the secret to the value you passed.\";\n\nconst plural = (n: number, one: string, many = `${one}s`): string =>\n `${String(n)} ${n === 1 ? one : many}`;\n\n/** What `set` says: the file, never the key. */\nexport function setMessage(result: KeySetResult): string {\n return result.dryRun\n ? `Would write encryptionKey to ${result.source}.`\n : `Encryption key written to ${result.source}.`;\n}\n\n/** `~AQx7…`, and a citation's line suffix after it: `~AQm4…:2`. */\nexport function shortCiphertext(value: string): string {\n // base64url has no `:`, so the first one starts the line suffix.\n const colon = value.indexOf(\":\");\n const token = colon === -1 ? value : value.slice(0, colon);\n const suffix = colon === -1 ? \"\" : value.slice(colon);\n return `${token.slice(0, 5)}…${suffix}`;\n}\n\n/** A metadata value by its pointer; a citation by its id, else where it sits. */\nfunction nameOf(row: RotatedValue | SkippedValue): string {\n if (row.kind === \"metadata\") return row.pointer;\n if (row.id !== undefined) return row.id;\n if (row.index !== undefined) return `/citations/${String(row.index)}`;\n return `line ${String(row.line ?? 0)}`;\n}\n\nfunction closing(result: KeyRotateResult): string | undefined {\n switch (result.outcome) {\n case \"written\":\n return result.configSource === undefined\n ? undefined\n : `Encryption key written to ${result.configSource}.`;\n case \"finished\":\n // Said before the counts: the key was written by the run that stopped.\n return undefined;\n case \"narrowed\":\n return NARROWED;\n case \"env\":\n return FROM_ENV;\n case \"skipped\":\n return result.skipped === 1\n ? \"Key not written: 1 value could not be re-encrypted. Fix it and rotate again.\"\n : `Key not written: ${String(result.skipped)} values could not be re-encrypted. Fix them and rotate again.`;\n case \"dry-run\":\n return \"Dry run: nothing written.\";\n }\n}\n\nexport function renderRotatePretty(result: KeyRotateResult, opts: PrettyOptions): string {\n const c = palette(opts.color);\n const lines: string[] = [];\n for (const page of result.pages) {\n for (const row of page.rewritten) {\n // A metadata value has no line suffix; two spaces keep its arrow in the\n // column a `:L` suffix would take.\n const gap = row.kind === \"metadata\" ? \" \" : \" \";\n lines.push(\n `${page.file}: ${nameOf(row)} ${c.dim(shortCiphertext(row.from))}${gap}-> ${shortCiphertext(row.to)}`,\n );\n }\n for (const row of page.skipped) {\n lines.push(`${page.file}: ${nameOf(row)} ${c.red(\"skipped:\")} ${row.message}`);\n }\n }\n // A manifest value is named by the entry it belongs to and the pointer\n // inside it, so one line says which document's private half moved.\n for (const manifest of result.manifests) {\n for (const row of manifest.rewritten) {\n lines.push(\n `${manifest.file}: ${row.entry}${row.pointer} ${c.dim(shortCiphertext(row.from))} -> ${shortCiphertext(row.to)}`,\n );\n }\n for (const row of manifest.skipped) {\n lines.push(\n `${manifest.file}: ${row.entry}${row.pointer} ${c.red(\"skipped:\")} ${row.message}`,\n );\n }\n }\n if (result.outcome === \"finished\" && result.configSource !== undefined) {\n lines.push(`Finished the interrupted rotation in ${result.configSource}.`);\n }\n const files =\n result.pages.filter((page) => page.rewritten.length > 0).length +\n result.manifests.filter((manifest) => manifest.rewritten.length > 0).length;\n lines.push(\n `${plural(result.reencrypted, \"value\")} re-encrypted in ${plural(files, \"file\")}, ${String(result.skipped)} skipped`,\n );\n const last = closing(result);\n if (last !== undefined) lines.push(result.out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