@hawkeyexl/manni 4.13.0 → 4.15.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-OMDKRGUE.js +48 -0
- package/dist/build-YCY5MUHA.js +37 -0
- package/dist/calibrate-RN2NJ4FS.js +43 -0
- package/dist/capture-2WYROZKA.js +39 -0
- package/dist/check-KRVWHF7E.js +33 -0
- package/dist/{check-NBN2YK2J.js → check-LVUTWAGR.js} +33 -32
- package/dist/{check-NBN2YK2J.js.map → check-LVUTWAGR.js.map} +1 -1
- package/dist/check-MR7IG7IP.js +36 -0
- package/dist/{check-LU5YC3L4.js → check-OIRJ6OBW.js} +15 -14
- package/dist/{chunk-J5NOWIJ3.js → chunk-3CSEHHKB.js} +14 -8
- package/dist/{chunk-J5NOWIJ3.js.map → chunk-3CSEHHKB.js.map} +1 -1
- package/dist/{chunk-7RNONVHI.js → chunk-3EJVJDMX.js} +9 -9
- package/dist/{chunk-LSFXNAHU.js → chunk-3WQMMLIO.js} +129 -59
- package/dist/chunk-3WQMMLIO.js.map +1 -0
- package/dist/{chunk-OREHJQNN.js → chunk-46OWIAAX.js} +5 -4
- package/dist/{chunk-OREHJQNN.js.map → chunk-46OWIAAX.js.map} +1 -1
- package/dist/{chunk-LNGSE7V2.js → chunk-476DMDJ5.js} +132 -27
- package/dist/chunk-476DMDJ5.js.map +1 -0
- package/dist/{chunk-EQ7E6HMG.js → chunk-4MYW2D2U.js} +14 -16
- package/dist/chunk-4MYW2D2U.js.map +1 -0
- package/dist/{chunk-NTEYYYKL.js → chunk-525KMBZS.js} +16 -22
- package/dist/chunk-525KMBZS.js.map +1 -0
- package/dist/{chunk-HIEGOW7X.js → chunk-57DHX65T.js} +5 -79
- package/dist/chunk-57DHX65T.js.map +1 -0
- package/dist/{chunk-PCE7QHXJ.js → chunk-5D24C6WM.js} +6 -1
- package/dist/chunk-5D24C6WM.js.map +1 -0
- package/dist/{chunk-DQOM3DEU.js → chunk-6DYFWAZA.js} +563 -359
- package/dist/chunk-6DYFWAZA.js.map +1 -0
- package/dist/{chunk-CU57HT2E.js → chunk-6WJUZQQX.js} +2 -2
- package/dist/chunk-7EKXSSEO.js +81 -0
- package/dist/chunk-7EKXSSEO.js.map +1 -0
- package/dist/{chunk-ULDV2LUI.js → chunk-7SVFBJBE.js} +10 -4
- package/dist/chunk-7SVFBJBE.js.map +1 -0
- package/dist/{chunk-QKT67PFE.js → chunk-7XHW5DZA.js} +9 -9
- package/dist/{chunk-TDCOKKMI.js → chunk-AL4HRKSZ.js} +3 -3
- package/dist/{chunk-OTJOBZJ5.js → chunk-B2242FYO.js} +2 -1
- package/dist/chunk-B2242FYO.js.map +1 -0
- package/dist/chunk-BREAC43H.js +85 -0
- package/dist/chunk-BREAC43H.js.map +1 -0
- package/dist/{chunk-HKTGHLBA.js → chunk-C37OVJ35.js} +2 -2
- package/dist/{chunk-HKTGHLBA.js.map → chunk-C37OVJ35.js.map} +1 -1
- package/dist/{chunk-YQV75FIL.js → chunk-CFMI74TP.js} +3 -3
- package/dist/{chunk-BMBAAPGN.js → chunk-CWGBRWP7.js} +33 -18
- package/dist/chunk-CWGBRWP7.js.map +1 -0
- package/dist/chunk-DN4LCWSA.js +83 -0
- package/dist/chunk-DN4LCWSA.js.map +1 -0
- package/dist/{chunk-JEUFYSFQ.js → chunk-DW22KCLN.js} +118 -75
- package/dist/chunk-DW22KCLN.js.map +1 -0
- package/dist/{chunk-PCGBXHSE.js → chunk-FEEO7ET6.js} +5 -5
- package/dist/{chunk-CODWRUAD.js → chunk-FYWQS35G.js} +7 -5
- package/dist/chunk-FYWQS35G.js.map +1 -0
- package/dist/{chunk-3O6U4ICM.js → chunk-GLQCSDFS.js} +3 -3
- package/dist/{chunk-BQXY76JB.js → chunk-GUTAKJIF.js} +148 -92
- package/dist/chunk-GUTAKJIF.js.map +1 -0
- package/dist/{chunk-WVXCN5DS.js → chunk-GZHBMMDC.js} +78 -14
- package/dist/chunk-GZHBMMDC.js.map +1 -0
- package/dist/{chunk-52WO7ESI.js → chunk-IE5PXI6M.js} +6 -5
- package/dist/chunk-IE5PXI6M.js.map +1 -0
- package/dist/{chunk-ZXRAE55H.js → chunk-IGRXQC3H.js} +2 -2
- package/dist/{chunk-U6IHLEWT.js → chunk-JCTHXG33.js} +2 -2
- package/dist/{chunk-NSAW7U42.js → chunk-JHE3CYWS.js} +58 -10
- package/dist/chunk-JHE3CYWS.js.map +1 -0
- package/dist/{chunk-6ZFJWUUH.js → chunk-JNMY7KZG.js} +2 -2
- package/dist/chunk-JQPZKWIP.js +76 -0
- package/dist/chunk-JQPZKWIP.js.map +1 -0
- package/dist/{chunk-OBXCJZ6R.js → chunk-JTATFPWB.js} +28 -17
- package/dist/chunk-JTATFPWB.js.map +1 -0
- package/dist/{chunk-3HUCB4Z3.js → chunk-JULE3EU3.js} +10 -7
- package/dist/chunk-JULE3EU3.js.map +1 -0
- package/dist/{chunk-TQ3W6RKG.js → chunk-KCXQXKOL.js} +3 -3
- package/dist/{chunk-VYBYUQIP.js → chunk-KN37BXVY.js} +88 -7
- package/dist/chunk-KN37BXVY.js.map +1 -0
- package/dist/{chunk-OUAH7XF2.js → chunk-MAOX3524.js} +2 -2
- package/dist/chunk-MC7U5IH4.js +126 -0
- package/dist/chunk-MC7U5IH4.js.map +1 -0
- package/dist/{chunk-OYIWF3B2.js → chunk-NIQ2JSZO.js} +29 -20
- package/dist/chunk-NIQ2JSZO.js.map +1 -0
- package/dist/{chunk-HY6ROJTH.js → chunk-OFOIBV5J.js} +86 -10
- package/dist/chunk-OFOIBV5J.js.map +1 -0
- package/dist/{chunk-TZOYZK2E.js → chunk-OZUPJB4J.js} +2 -2
- package/dist/{chunk-N6A6DJUO.js → chunk-Q2VOXKAQ.js} +6 -7
- package/dist/chunk-Q2VOXKAQ.js.map +1 -0
- package/dist/{chunk-GWI6JPTT.js → chunk-Q62Q7CDI.js} +88 -8
- package/dist/chunk-Q62Q7CDI.js.map +1 -0
- package/dist/{chunk-PA7CMQGD.js → chunk-QDO5JFFV.js} +11 -5
- package/dist/chunk-QDO5JFFV.js.map +1 -0
- package/dist/{chunk-VNYXK7TM.js → chunk-QEJ4GH25.js} +8 -8
- package/dist/chunk-QEJ4GH25.js.map +1 -0
- package/dist/chunk-QK6VYJHV.js +26 -0
- package/dist/chunk-QK6VYJHV.js.map +1 -0
- package/dist/chunk-QS2Z3SWL.js +21 -0
- package/dist/chunk-QS2Z3SWL.js.map +1 -0
- package/dist/{chunk-NWUXRV6N.js → chunk-QS3K57OJ.js} +10 -8
- package/dist/chunk-QS3K57OJ.js.map +1 -0
- package/dist/{chunk-OKMTUAWO.js → chunk-QSPH4F56.js} +5 -5
- package/dist/{chunk-3XGTNN3M.js → chunk-RGRNAQG5.js} +12 -124
- package/dist/chunk-RGRNAQG5.js.map +1 -0
- package/dist/{chunk-E6BVUDGY.js → chunk-SLGCRXHM.js} +4 -4
- package/dist/{chunk-KE2F7QES.js → chunk-SVF3WCC7.js} +6 -6
- package/dist/{chunk-IGQMBHFY.js → chunk-T62SFCQY.js} +88 -12
- package/dist/chunk-T62SFCQY.js.map +1 -0
- package/dist/{chunk-SCLXVTFZ.js → chunk-TKINOTVS.js} +1 -1
- package/dist/chunk-TKINOTVS.js.map +1 -0
- package/dist/{chunk-VOXOBUTX.js → chunk-TXZJESES.js} +5 -5
- package/dist/chunk-UPUJJOKB.js +236 -0
- package/dist/chunk-UPUJJOKB.js.map +1 -0
- package/dist/{chunk-7JPL3CUC.js → chunk-URGALOZY.js} +2 -2
- package/dist/{chunk-X4MPUD4B.js → chunk-UVLQRP6O.js} +53 -13
- package/dist/chunk-UVLQRP6O.js.map +1 -0
- package/dist/{chunk-CWXZ2MRT.js → chunk-VHJ72YCD.js} +4 -3
- package/dist/chunk-VHJ72YCD.js.map +1 -0
- package/dist/{chunk-PAU352SV.js → chunk-W4GTMOJW.js} +2 -2
- package/dist/{chunk-SE4JN5XN.js → chunk-WDENIUC7.js} +3 -1
- package/dist/chunk-WDENIUC7.js.map +1 -0
- package/dist/{chunk-3BVDFQ6Y.js → chunk-Y3GWQBJP.js} +5 -5
- package/dist/{chunk-YZ4TJLZQ.js → chunk-YT5HKJWV.js} +497 -18
- package/dist/chunk-YT5HKJWV.js.map +1 -0
- package/dist/{chunk-UQMLCIRX.js → chunk-Z6PZKXSP.js} +6 -6
- package/dist/{chunk-JUL2PRQN.js → chunk-ZC2MZZR5.js} +207 -79
- package/dist/chunk-ZC2MZZR5.js.map +1 -0
- package/dist/{chunk-UKZNLVJW.js → chunk-ZINZTHWO.js} +4 -2
- package/dist/chunk-ZINZTHWO.js.map +1 -0
- package/dist/{cli-4JHQCPHU.js → cli-33E3B2FK.js} +3 -3
- package/dist/{cli-G66X7YMP.js → cli-7JV4RM66.js} +23 -22
- package/dist/{cli-G66X7YMP.js.map → cli-7JV4RM66.js.map} +1 -1
- package/dist/{cli-L5B2RVV2.js → cli-B4DTJ2KC.js} +31 -29
- package/dist/{cli-L5B2RVV2.js.map → cli-B4DTJ2KC.js.map} +1 -1
- package/dist/{cli-ECVT4YXR.js → cli-D4WXCDTS.js} +20 -19
- package/dist/{cli-ECVT4YXR.js.map → cli-D4WXCDTS.js.map} +1 -1
- package/dist/{cli-7DETHSNW.js → cli-DDLLZHZW.js} +90 -84
- package/dist/cli-DDLLZHZW.js.map +1 -0
- package/dist/{cli-KYTCJYXK.js → cli-EVACAD7K.js} +317 -28
- package/dist/cli-EVACAD7K.js.map +1 -0
- package/dist/{cli-H5LVGOVT.js → cli-LIKI7WPR.js} +384 -248
- package/dist/cli-LIKI7WPR.js.map +1 -0
- package/dist/{cli-AZKWTCFV.js → cli-MWUFAS2X.js} +11 -11
- package/dist/{cli-DGFLJ2DD.js → cli-OKPRTVG6.js} +69 -26
- package/dist/cli-OKPRTVG6.js.map +1 -0
- package/dist/{cli-RP5E7XHC.js → cli-QEPVGLQ3.js} +20 -18
- package/dist/{cli-RP5E7XHC.js.map → cli-QEPVGLQ3.js.map} +1 -1
- package/dist/{cli-BW5VOFOZ.js → cli-VP6JTPFS.js} +11 -10
- package/dist/{cli-BW5VOFOZ.js.map → cli-VP6JTPFS.js.map} +1 -1
- package/dist/cli.js +14 -14
- package/dist/{config-JJW75SBX.js → config-7I5CHHRZ.js} +6 -6
- package/dist/docmeta.js +10 -10
- package/dist/github-DV57TW5L.js +32 -0
- package/dist/github-SGX2EARO.js +36 -0
- package/dist/graph/runtime.js.map +1 -1
- package/dist/index.d.ts +222 -45
- package/dist/index.js +138 -132
- package/dist/index.js.map +1 -1
- package/dist/{json-7WV7KL6H.js → json-5EQCGVCV.js} +4 -2
- package/dist/{json-LCVPMEAM.js → json-SHPUCD64.js} +15 -13
- package/dist/{labels-OQXBVM4A.js → labels-3GCGYYV3.js} +14 -12
- package/dist/{labels-OQXBVM4A.js.map → labels-3GCGYYV3.js.map} +1 -1
- package/dist/lint-RE4DMI6E.js +35 -0
- package/dist/list-F56MEJXR.js +36 -0
- package/dist/list-ZR3KY556.js +34 -0
- package/dist/{page-XPX5XJZE.js → page-G7XSO4FD.js} +13 -12
- package/dist/{picker-3XF36MJF.js → picker-FPUC5UGM.js} +3 -3
- package/dist/{prepare-VMBIQYAM.js → prepare-WHMWP7BG.js} +21 -20
- package/dist/{prepare-VMBIQYAM.js.map → prepare-WHMWP7BG.js.map} +1 -1
- package/dist/{pretty-KSTZMBUF.js → pretty-VTJVXWRK.js} +15 -13
- package/dist/{pretty-KG6TMOEI.js → pretty-YVRRWBWN.js} +23 -16
- package/dist/{provider-LBX4IXGX.js → provider-JY2I3VLF.js} +3 -3
- package/dist/{release-VV3UTKE5.js → release-Z3ASYZ3S.js} +3 -3
- package/dist/{reporters-26H3N2KW.js → reporters-FSXJ42EB.js} +6 -5
- package/dist/{reporters-AQU4W3KY.js → reporters-G5R4SURQ.js} +6 -6
- package/dist/{reporters-FBYLPKD4.js → reporters-MHPY4HRA.js} +15 -14
- package/dist/run-FSYOYEPR.js +39 -0
- package/dist/sarif-HBQIDY7T.js +31 -0
- package/dist/sarif-RRUFJZUL.js +37 -0
- package/dist/{term-SI3VM6EM.js → term-ABHGACYE.js} +58 -109
- package/dist/term-ABHGACYE.js.map +1 -0
- package/dist/types-VMOT7RAL.js +12 -0
- package/dist/types-VMOT7RAL.js.map +1 -0
- package/dist/{validate-NQO7TFSN.js → validate-DXYUUGUD.js} +6 -6
- package/dist/validate-DXYUUGUD.js.map +1 -0
- package/package.json +1 -1
- package/plugin/manni/.claude-plugin/plugin.json +1 -1
- package/plugin/manni/skills/check/SKILL.md +2 -2
- package/plugin/manni/skills/evals/SKILL.md +1 -1
- package/plugin/manni/skills/fix/SKILL.md +95 -16
- package/plugin/manni/skills/setup/SKILL.md +1 -1
- package/shapes/graph/shapes-1.1.1.ttl +953 -0
- package/dist/batch-OB2FXT47.js +0 -46
- package/dist/build-4BL24BG3.js +0 -36
- package/dist/calibrate-AEDJ7N7G.js +0 -41
- package/dist/capture-TP3P4YNL.js +0 -38
- package/dist/check-5IYH42KS.js +0 -34
- package/dist/check-S55MH66H.js +0 -30
- package/dist/chunk-3HUCB4Z3.js.map +0 -1
- package/dist/chunk-3XGTNN3M.js.map +0 -1
- package/dist/chunk-52WO7ESI.js.map +0 -1
- package/dist/chunk-BMBAAPGN.js.map +0 -1
- package/dist/chunk-BQXY76JB.js.map +0 -1
- package/dist/chunk-CODWRUAD.js.map +0 -1
- package/dist/chunk-CWXZ2MRT.js.map +0 -1
- package/dist/chunk-DQOM3DEU.js.map +0 -1
- package/dist/chunk-EQ7E6HMG.js.map +0 -1
- package/dist/chunk-GWI6JPTT.js.map +0 -1
- package/dist/chunk-HIEGOW7X.js.map +0 -1
- package/dist/chunk-HY6ROJTH.js.map +0 -1
- package/dist/chunk-IGQMBHFY.js.map +0 -1
- package/dist/chunk-JEUFYSFQ.js.map +0 -1
- package/dist/chunk-JUL2PRQN.js.map +0 -1
- package/dist/chunk-LNGSE7V2.js.map +0 -1
- package/dist/chunk-LSFXNAHU.js.map +0 -1
- package/dist/chunk-MNH7QO4Z.js +0 -15
- package/dist/chunk-MNH7QO4Z.js.map +0 -1
- package/dist/chunk-N6A6DJUO.js.map +0 -1
- package/dist/chunk-NSAW7U42.js.map +0 -1
- package/dist/chunk-NTEYYYKL.js.map +0 -1
- package/dist/chunk-NWUXRV6N.js.map +0 -1
- package/dist/chunk-OBXCJZ6R.js.map +0 -1
- package/dist/chunk-OTJOBZJ5.js.map +0 -1
- package/dist/chunk-OYIWF3B2.js.map +0 -1
- package/dist/chunk-PA7CMQGD.js.map +0 -1
- package/dist/chunk-PCE7QHXJ.js.map +0 -1
- package/dist/chunk-SCLXVTFZ.js.map +0 -1
- package/dist/chunk-SE4JN5XN.js.map +0 -1
- package/dist/chunk-UKZNLVJW.js.map +0 -1
- package/dist/chunk-ULDV2LUI.js.map +0 -1
- package/dist/chunk-VNYXK7TM.js.map +0 -1
- package/dist/chunk-VYBYUQIP.js.map +0 -1
- package/dist/chunk-WVXCN5DS.js.map +0 -1
- package/dist/chunk-X4MPUD4B.js.map +0 -1
- package/dist/chunk-Y6M4JFKG.js +0 -117
- package/dist/chunk-Y6M4JFKG.js.map +0 -1
- package/dist/chunk-YZ4TJLZQ.js.map +0 -1
- package/dist/cli-7DETHSNW.js.map +0 -1
- package/dist/cli-DGFLJ2DD.js.map +0 -1
- package/dist/cli-H5LVGOVT.js.map +0 -1
- package/dist/cli-KYTCJYXK.js.map +0 -1
- package/dist/github-DJQ4MWNZ.js +0 -35
- package/dist/github-UWTDM2J2.js +0 -30
- package/dist/lint-O7XRHKFP.js +0 -34
- package/dist/list-OOOCLOAL.js +0 -35
- package/dist/list-OYQ5XPN2.js +0 -32
- package/dist/run-KUGTU3TT.js +0 -37
- package/dist/term-SI3VM6EM.js.map +0 -1
- package/dist/types-Y6TXHM7M.js +0 -10
- /package/dist/{batch-OB2FXT47.js.map → batch-OMDKRGUE.js.map} +0 -0
- /package/dist/{build-4BL24BG3.js.map → build-YCY5MUHA.js.map} +0 -0
- /package/dist/{calibrate-AEDJ7N7G.js.map → calibrate-RN2NJ4FS.js.map} +0 -0
- /package/dist/{capture-TP3P4YNL.js.map → capture-2WYROZKA.js.map} +0 -0
- /package/dist/{check-5IYH42KS.js.map → check-KRVWHF7E.js.map} +0 -0
- /package/dist/{check-LU5YC3L4.js.map → check-MR7IG7IP.js.map} +0 -0
- /package/dist/{check-S55MH66H.js.map → check-OIRJ6OBW.js.map} +0 -0
- /package/dist/{chunk-7RNONVHI.js.map → chunk-3EJVJDMX.js.map} +0 -0
- /package/dist/{chunk-CU57HT2E.js.map → chunk-6WJUZQQX.js.map} +0 -0
- /package/dist/{chunk-QKT67PFE.js.map → chunk-7XHW5DZA.js.map} +0 -0
- /package/dist/{chunk-TDCOKKMI.js.map → chunk-AL4HRKSZ.js.map} +0 -0
- /package/dist/{chunk-YQV75FIL.js.map → chunk-CFMI74TP.js.map} +0 -0
- /package/dist/{chunk-PCGBXHSE.js.map → chunk-FEEO7ET6.js.map} +0 -0
- /package/dist/{chunk-3O6U4ICM.js.map → chunk-GLQCSDFS.js.map} +0 -0
- /package/dist/{chunk-ZXRAE55H.js.map → chunk-IGRXQC3H.js.map} +0 -0
- /package/dist/{chunk-U6IHLEWT.js.map → chunk-JCTHXG33.js.map} +0 -0
- /package/dist/{chunk-6ZFJWUUH.js.map → chunk-JNMY7KZG.js.map} +0 -0
- /package/dist/{chunk-TQ3W6RKG.js.map → chunk-KCXQXKOL.js.map} +0 -0
- /package/dist/{chunk-OUAH7XF2.js.map → chunk-MAOX3524.js.map} +0 -0
- /package/dist/{chunk-TZOYZK2E.js.map → chunk-OZUPJB4J.js.map} +0 -0
- /package/dist/{chunk-OKMTUAWO.js.map → chunk-QSPH4F56.js.map} +0 -0
- /package/dist/{chunk-E6BVUDGY.js.map → chunk-SLGCRXHM.js.map} +0 -0
- /package/dist/{chunk-KE2F7QES.js.map → chunk-SVF3WCC7.js.map} +0 -0
- /package/dist/{chunk-VOXOBUTX.js.map → chunk-TXZJESES.js.map} +0 -0
- /package/dist/{chunk-7JPL3CUC.js.map → chunk-URGALOZY.js.map} +0 -0
- /package/dist/{chunk-PAU352SV.js.map → chunk-W4GTMOJW.js.map} +0 -0
- /package/dist/{chunk-3BVDFQ6Y.js.map → chunk-Y3GWQBJP.js.map} +0 -0
- /package/dist/{chunk-UQMLCIRX.js.map → chunk-Z6PZKXSP.js.map} +0 -0
- /package/dist/{cli-4JHQCPHU.js.map → cli-33E3B2FK.js.map} +0 -0
- /package/dist/{cli-AZKWTCFV.js.map → cli-MWUFAS2X.js.map} +0 -0
- /package/dist/{config-JJW75SBX.js.map → config-7I5CHHRZ.js.map} +0 -0
- /package/dist/{github-DJQ4MWNZ.js.map → github-DV57TW5L.js.map} +0 -0
- /package/dist/{github-UWTDM2J2.js.map → github-SGX2EARO.js.map} +0 -0
- /package/dist/{json-7WV7KL6H.js.map → json-5EQCGVCV.js.map} +0 -0
- /package/dist/{json-LCVPMEAM.js.map → json-SHPUCD64.js.map} +0 -0
- /package/dist/{lint-O7XRHKFP.js.map → lint-RE4DMI6E.js.map} +0 -0
- /package/dist/{list-OOOCLOAL.js.map → list-F56MEJXR.js.map} +0 -0
- /package/dist/{list-OYQ5XPN2.js.map → list-ZR3KY556.js.map} +0 -0
- /package/dist/{page-XPX5XJZE.js.map → page-G7XSO4FD.js.map} +0 -0
- /package/dist/{picker-3XF36MJF.js.map → picker-FPUC5UGM.js.map} +0 -0
- /package/dist/{pretty-KG6TMOEI.js.map → pretty-VTJVXWRK.js.map} +0 -0
- /package/dist/{pretty-KSTZMBUF.js.map → pretty-YVRRWBWN.js.map} +0 -0
- /package/dist/{provider-LBX4IXGX.js.map → provider-JY2I3VLF.js.map} +0 -0
- /package/dist/{release-VV3UTKE5.js.map → release-Z3ASYZ3S.js.map} +0 -0
- /package/dist/{reporters-26H3N2KW.js.map → reporters-FSXJ42EB.js.map} +0 -0
- /package/dist/{reporters-AQU4W3KY.js.map → reporters-G5R4SURQ.js.map} +0 -0
- /package/dist/{reporters-FBYLPKD4.js.map → reporters-MHPY4HRA.js.map} +0 -0
- /package/dist/{run-KUGTU3TT.js.map → run-FSYOYEPR.js.map} +0 -0
- /package/dist/{types-Y6TXHM7M.js.map → sarif-HBQIDY7T.js.map} +0 -0
- /package/dist/{validate-NQO7TFSN.js.map → sarif-RRUFJZUL.js.map} +0 -0
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
evidenceVerdict,
|
|
4
|
+
verdictLines
|
|
5
|
+
} from "./chunk-QS2Z3SWL.js";
|
|
2
6
|
import {
|
|
3
7
|
REPORT_FORMATS,
|
|
4
8
|
parseFormat
|
|
5
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IGRXQC3H.js";
|
|
10
|
+
import {
|
|
11
|
+
FIX_GUIDE
|
|
12
|
+
} from "./chunk-WDENIUC7.js";
|
|
6
13
|
import {
|
|
7
14
|
escapeWorkflowCommandMessage,
|
|
8
|
-
escapeWorkflowCommandProperty
|
|
9
|
-
|
|
15
|
+
escapeWorkflowCommandProperty,
|
|
16
|
+
guidanceLines
|
|
17
|
+
} from "./chunk-QK6VYJHV.js";
|
|
10
18
|
import {
|
|
11
19
|
palette
|
|
12
20
|
} from "./chunk-RNVYGWIC.js";
|
|
@@ -38,6 +46,26 @@ function locationLabel(location) {
|
|
|
38
46
|
return location.line === void 0 ? location.file : `${location.file}:${String(location.line)}`;
|
|
39
47
|
}
|
|
40
48
|
|
|
49
|
+
// src/docevals/reporters/judged.ts
|
|
50
|
+
function judgedLines(r) {
|
|
51
|
+
if (r.outcome === "fail" && r.consensus) {
|
|
52
|
+
return verdictLines(r.consensus, "fail", "Edit the page so the assertion holds.");
|
|
53
|
+
}
|
|
54
|
+
if (r.outcome !== "needs-review") return [];
|
|
55
|
+
if (!r.consensus) {
|
|
56
|
+
return ["Awaiting human review. Record a verdict with manni docevals review."];
|
|
57
|
+
}
|
|
58
|
+
return verdictLines(
|
|
59
|
+
r.consensus,
|
|
60
|
+
"no confident verdict",
|
|
61
|
+
"Record a verdict with manni docevals review, or sharpen the assertion and run manni docevals calibrate."
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
function resultGuidance(r) {
|
|
65
|
+
const speaks = r.outcome === "fail" || r.outcome === "error" || r.outcome === "needs-review" || (r.findings ?? []).length > 0;
|
|
66
|
+
return speaks ? guidanceLines(r.guidance) : [];
|
|
67
|
+
}
|
|
68
|
+
|
|
41
69
|
// src/docevals/reporters/pretty.ts
|
|
42
70
|
function outcomeTag(r, pc) {
|
|
43
71
|
switch (r.outcome) {
|
|
@@ -79,20 +107,20 @@ function renderPretty(report, opts = {}) {
|
|
|
79
107
|
const sev = f.severity === "error" ? pc.red(f.severity) : f.severity === "warning" ? pc.yellow(f.severity) : pc.dim(f.severity);
|
|
80
108
|
lines.push(` ${sev}${loc}${rule} ${f.message}`);
|
|
81
109
|
}
|
|
110
|
+
for (const line of judgedLines(r)) lines.push(` ${line}`);
|
|
82
111
|
if (r.consensus && r.outcome !== "pass") {
|
|
83
112
|
const v = r.consensus;
|
|
84
113
|
lines.push(
|
|
85
114
|
pc.dim(
|
|
86
|
-
` votes pass:${v.votes.pass} fail:${v.votes.fail} partial:${v.votes.partial}` + (v.votes.error ? ` error:${v.votes.error}` : "")
|
|
115
|
+
` votes pass:${v.votes.pass} fail:${v.votes.fail} partial:${v.votes.partial}` + (v.votes.error ? ` error:${v.votes.error}` : "")
|
|
87
116
|
)
|
|
88
117
|
);
|
|
89
|
-
const reasoning = v.runs.find((run) => run.verdict)?.verdict?.reasoning;
|
|
90
|
-
if (reasoning) lines.push(pc.dim(` ${reasoning}`));
|
|
91
118
|
}
|
|
119
|
+
for (const line of resultGuidance(r)) lines.push(pc.dim(` ${line}`));
|
|
92
120
|
}
|
|
93
121
|
}
|
|
94
122
|
for (const p of report.problems) {
|
|
95
|
-
const tag = p.level === "error" ? pc.red("error") : pc.yellow("warn");
|
|
123
|
+
const tag = p.level === "error" ? pc.red("error") : p.level === "warning" ? pc.yellow("warn") : pc.dim("notice");
|
|
96
124
|
const loc = p.line != null ? `:${p.line}` : "";
|
|
97
125
|
lines.push(`${tag} ${p.file}${loc} ${p.message}`);
|
|
98
126
|
}
|
|
@@ -157,7 +185,7 @@ function renderPretty(report, opts = {}) {
|
|
|
157
185
|
lines.push("");
|
|
158
186
|
lines.push(
|
|
159
187
|
pc.yellow(
|
|
160
|
-
`${reviews.length} eval(s) need human review
|
|
188
|
+
`${reviews.length} eval(s) need human review. Run \`manni docevals review\` to record verdicts.`
|
|
161
189
|
)
|
|
162
190
|
);
|
|
163
191
|
}
|
|
@@ -220,24 +248,24 @@ function renderMarkdown(report) {
|
|
|
220
248
|
const icon = OUTCOME_ICON[r.outcome] ?? "";
|
|
221
249
|
const entry = declaringEntry(r);
|
|
222
250
|
const where = entry.file === r.file ? `\`${locationLabel(entry)}\`` : `\`${r.file}\` \xB7 \`${locationLabel(entry)}\``;
|
|
223
|
-
lines.push(`- ${icon} **${r.evalName}** \
|
|
251
|
+
lines.push(`- ${icon} **${r.evalName}** \xB7 ${where}`);
|
|
224
252
|
for (const f of r.findings ?? []) {
|
|
225
253
|
const loc = f.line != null ? `:${f.line}` : "";
|
|
226
254
|
lines.push(` - ${f.severity}${loc}: ${f.message}`);
|
|
227
255
|
}
|
|
256
|
+
for (const line of judgedLines(r)) lines.push(` - ${line}`);
|
|
228
257
|
if (r.consensus) {
|
|
229
258
|
const v = r.consensus;
|
|
230
|
-
const reasoning = v.runs.find((run) => run.verdict)?.verdict?.reasoning;
|
|
231
259
|
lines.push(
|
|
232
260
|
` - votes pass:${v.votes.pass} fail:${v.votes.fail} partial:${v.votes.partial}, confidence ${v.meanConfidence.toFixed(2)} (${v.zone})`
|
|
233
261
|
);
|
|
234
|
-
if (reasoning) lines.push(` - ${reasoning}`);
|
|
235
262
|
}
|
|
236
263
|
if (r.skipReason && r.outcome === "error") lines.push(` - ${r.skipReason}`);
|
|
264
|
+
for (const line of resultGuidance(r)) lines.push(` - ${line}`);
|
|
237
265
|
}
|
|
238
266
|
}
|
|
239
267
|
for (const p of report.problems) {
|
|
240
|
-
lines.push(`- \u26A0\uFE0F \`${p.file}\`${p.line != null ? `:${p.line}` : ""} ${p.message}`);
|
|
268
|
+
lines.push(`- ${p.level === "notice" ? "\u2139\uFE0F" : "\u26A0\uFE0F"} \`${p.file}\`${p.line != null ? `:${p.line}` : ""} ${p.message}`);
|
|
241
269
|
}
|
|
242
270
|
if (report.generated.length > 0) {
|
|
243
271
|
lines.push("", "### Generated scripts", "");
|
|
@@ -261,6 +289,7 @@ function renderGithub(report) {
|
|
|
261
289
|
`file=${escapeWorkflowCommandProperty(entry.file)}`,
|
|
262
290
|
entry.line !== void 0 ? `line=${String(entry.line)}` : void 0
|
|
263
291
|
];
|
|
292
|
+
const guidance = resultGuidance(r);
|
|
264
293
|
for (const f of r.findings ?? []) {
|
|
265
294
|
const level = f.severity;
|
|
266
295
|
const props = [
|
|
@@ -268,30 +297,27 @@ function renderGithub(report) {
|
|
|
268
297
|
f.line != null && f.col != null ? `col=${String(f.col)}` : void 0,
|
|
269
298
|
`title=${escapeWorkflowCommandProperty(`manni docevals: ${f.evalName}`)}`
|
|
270
299
|
].filter(Boolean).join(",");
|
|
271
|
-
lines.push(`::${level} ${props}::${escapeWorkflowCommandMessage(f.message)}`);
|
|
300
|
+
lines.push(`::${level} ${props}::${escapeWorkflowCommandMessage([f.message, ...guidance].join("\n"))}`);
|
|
272
301
|
}
|
|
273
|
-
|
|
274
|
-
const reasoning = r.consensus.runs.find((run) => run.verdict)?.verdict?.reasoning ?? "";
|
|
302
|
+
const entryAnnotation = (level, text) => {
|
|
275
303
|
const props = [...entryProps, `title=${escapeWorkflowCommandProperty(`manni docevals: ${r.evalName}`)}`].filter(Boolean).join(",");
|
|
276
|
-
lines.push(
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
);
|
|
304
|
+
lines.push(`::${level} ${props}::${escapeWorkflowCommandMessage([...text, ...guidance].join("\n"))}`);
|
|
305
|
+
};
|
|
306
|
+
const judged = judgedLines(r);
|
|
307
|
+
if (judged.length > 0) {
|
|
308
|
+
entryAnnotation(r.outcome === "fail" ? "error" : "warning", judged);
|
|
281
309
|
}
|
|
282
310
|
if (r.outcome === "error" && (r.findings ?? []).length === 0) {
|
|
283
|
-
|
|
284
|
-
lines.push(`::error ${props}::${escapeWorkflowCommandMessage(r.skipReason ?? "eval errored")}`);
|
|
311
|
+
entryAnnotation("error", [r.skipReason ?? "eval errored"]);
|
|
285
312
|
}
|
|
286
313
|
}
|
|
287
314
|
for (const p of report.problems) {
|
|
288
|
-
const level = p.level === "error" ? "error" : "warning";
|
|
289
315
|
const props = [
|
|
290
316
|
`file=${escapeWorkflowCommandProperty(p.file)}`,
|
|
291
317
|
p.line != null ? `line=${p.line}` : void 0,
|
|
292
318
|
`title=manni docevals`
|
|
293
319
|
].filter(Boolean).join(",");
|
|
294
|
-
lines.push(`::${level} ${props}::${escapeWorkflowCommandMessage(p.message)}`);
|
|
320
|
+
lines.push(`::${p.level} ${props}::${escapeWorkflowCommandMessage(p.message)}`);
|
|
295
321
|
}
|
|
296
322
|
const sc = scopeLine(report);
|
|
297
323
|
if (sc) {
|
|
@@ -326,27 +352,53 @@ function entryLocation(result) {
|
|
|
326
352
|
...entry.line !== void 0 ? { region: { startLine: entry.line } } : {}
|
|
327
353
|
};
|
|
328
354
|
}
|
|
355
|
+
var STATIC_RULES = {
|
|
356
|
+
"regex/found": {
|
|
357
|
+
short: "Text the eval forbids is present",
|
|
358
|
+
full: "The page contains text an eval forbids. The line is the first match."
|
|
359
|
+
},
|
|
360
|
+
"regex/not-found": {
|
|
361
|
+
short: "Text the eval asks for is missing",
|
|
362
|
+
full: "The page lacks text an eval asks for."
|
|
363
|
+
},
|
|
364
|
+
"regex/count": {
|
|
365
|
+
short: "Text matches a different number of times",
|
|
366
|
+
full: "The page matches an eval's pattern a different number of times than the eval asks. The line is the first match."
|
|
367
|
+
},
|
|
368
|
+
"regex/unreadable-target": {
|
|
369
|
+
short: "The eval's target cannot be read",
|
|
370
|
+
full: "The file an eval reads cannot be read. The eval is at fault, not the page."
|
|
371
|
+
}
|
|
372
|
+
};
|
|
329
373
|
function renderSarif(report) {
|
|
330
374
|
const rules = /* @__PURE__ */ new Map();
|
|
331
375
|
const results = [];
|
|
376
|
+
const declare = (id, evalName, grader, level) => {
|
|
377
|
+
if (rules.has(id)) return;
|
|
378
|
+
const fixed = STATIC_RULES[id];
|
|
379
|
+
rules.set(id, {
|
|
380
|
+
id,
|
|
381
|
+
name: fixed === void 0 ? evalName : id,
|
|
382
|
+
shortDescription: {
|
|
383
|
+
text: fixed?.short ?? `manni docevals eval "${evalName}" (${grader})`
|
|
384
|
+
},
|
|
385
|
+
...fixed === void 0 ? {} : { fullDescription: { text: fixed.full } },
|
|
386
|
+
helpUri: FIX_GUIDE,
|
|
387
|
+
defaultConfiguration: { level }
|
|
388
|
+
});
|
|
389
|
+
};
|
|
332
390
|
for (const evalResult of report.evalResults) {
|
|
391
|
+
const guidance = resultGuidance(evalResult);
|
|
392
|
+
const message = (lines) => ({ text: [...lines, ...guidance].join("\n") });
|
|
393
|
+
const properties = evalResult.guidance == null ? {} : { properties: { guidance: evalResult.guidance } };
|
|
333
394
|
for (const finding of evalResult.findings ?? []) {
|
|
334
395
|
const id = ruleIdFor(finding);
|
|
335
396
|
const level = levelFor(finding.severity);
|
|
336
|
-
|
|
337
|
-
rules.set(id, {
|
|
338
|
-
id,
|
|
339
|
-
name: finding.evalName,
|
|
340
|
-
shortDescription: {
|
|
341
|
-
text: `manni docevals eval "${finding.evalName}" (${evalResult.grader})`
|
|
342
|
-
},
|
|
343
|
-
defaultConfiguration: { level }
|
|
344
|
-
});
|
|
345
|
-
}
|
|
397
|
+
declare(id, finding.evalName, evalResult.grader, level);
|
|
346
398
|
results.push({
|
|
347
399
|
ruleId: id,
|
|
348
400
|
level,
|
|
349
|
-
message:
|
|
401
|
+
message: message([finding.message]),
|
|
350
402
|
locations: [
|
|
351
403
|
{
|
|
352
404
|
// A finding with a content line keeps it. One without lands on
|
|
@@ -359,48 +411,37 @@ function renderSarif(report) {
|
|
|
359
411
|
}
|
|
360
412
|
} : entryLocation(evalResult)
|
|
361
413
|
}
|
|
362
|
-
]
|
|
414
|
+
],
|
|
415
|
+
...properties
|
|
363
416
|
});
|
|
364
417
|
}
|
|
365
418
|
if (evalResult.outcome === "error") {
|
|
366
419
|
const id = evalResult.evalName;
|
|
367
|
-
|
|
368
|
-
rules.set(id, {
|
|
369
|
-
id,
|
|
370
|
-
name: evalResult.evalName,
|
|
371
|
-
shortDescription: {
|
|
372
|
-
text: `manni docevals eval "${evalResult.evalName}" (${evalResult.grader})`
|
|
373
|
-
},
|
|
374
|
-
defaultConfiguration: { level: "error" }
|
|
375
|
-
});
|
|
376
|
-
}
|
|
420
|
+
declare(id, evalResult.evalName, evalResult.grader, "error");
|
|
377
421
|
results.push({
|
|
378
422
|
ruleId: id,
|
|
379
423
|
level: "error",
|
|
380
|
-
message:
|
|
381
|
-
locations: [{ physicalLocation: entryLocation(evalResult) }]
|
|
424
|
+
message: message([evalResult.skipReason ?? "eval errored"]),
|
|
425
|
+
locations: [{ physicalLocation: entryLocation(evalResult) }],
|
|
426
|
+
...properties
|
|
382
427
|
});
|
|
383
428
|
}
|
|
384
|
-
|
|
429
|
+
const judged = judgedLines(evalResult);
|
|
430
|
+
if (judged.length > 0) {
|
|
385
431
|
const id = evalResult.evalName;
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
defaultConfiguration: { level: "error" }
|
|
394
|
-
});
|
|
395
|
-
}
|
|
396
|
-
const reasoning = evalResult.consensus.runs.find((r) => r.verdict)?.verdict?.reasoning ?? "";
|
|
432
|
+
const level = evalResult.outcome === "fail" ? "error" : "warning";
|
|
433
|
+
declare(
|
|
434
|
+
id,
|
|
435
|
+
evalResult.evalName,
|
|
436
|
+
evalResult.grader === "ai" ? "AI judge" : evalResult.grader,
|
|
437
|
+
level
|
|
438
|
+
);
|
|
397
439
|
results.push({
|
|
398
440
|
ruleId: id,
|
|
399
|
-
level
|
|
400
|
-
message:
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
locations: [{ physicalLocation: entryLocation(evalResult) }]
|
|
441
|
+
level,
|
|
442
|
+
message: message(judged),
|
|
443
|
+
locations: [{ physicalLocation: entryLocation(evalResult) }],
|
|
444
|
+
...properties
|
|
404
445
|
});
|
|
405
446
|
}
|
|
406
447
|
}
|
|
@@ -433,16 +474,17 @@ function attr(name, value) {
|
|
|
433
474
|
return `${name}="${esc(String(value))}"`;
|
|
434
475
|
}
|
|
435
476
|
function failureText(result) {
|
|
477
|
+
return [...failureLines(result), ...resultGuidance(result)].join("\n");
|
|
478
|
+
}
|
|
479
|
+
function failureLines(result) {
|
|
436
480
|
const findings = (result.findings ?? []).map(
|
|
437
481
|
(f) => `${f.file}${f.line != null ? `:${f.line}` : ""} ${f.message}`
|
|
438
482
|
);
|
|
439
|
-
if (findings.length > 0) return findings
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
}
|
|
444
|
-
if (result.skipReason) return result.skipReason;
|
|
445
|
-
return `${result.evalName} failed`;
|
|
483
|
+
if (findings.length > 0) return findings;
|
|
484
|
+
const judged = judgedLines(result);
|
|
485
|
+
if (judged.length > 0) return judged;
|
|
486
|
+
if (result.skipReason) return [result.skipReason];
|
|
487
|
+
return [`${result.evalName} failed`];
|
|
446
488
|
}
|
|
447
489
|
function testcase(result) {
|
|
448
490
|
const entry = declaringEntry(result);
|
|
@@ -556,7 +598,7 @@ function evalBlock(r) {
|
|
|
556
598
|
)}</span> <code>${esc2(r.evalName)}</code><span class="muted"> \xB7 ${esc2(locationLabel(declaringEntry(r)))} \xB7 ${esc2(r.grader)}${r.weight !== void 0 && r.weight !== 1 ? ` \xB7 weight ${String(r.weight)}` : ""}</span></div>`
|
|
557
599
|
);
|
|
558
600
|
if (r.skipReason) bits.push(`<p class="reason">${esc2(r.skipReason)}</p>`);
|
|
559
|
-
const verdict = r.consensus
|
|
601
|
+
const verdict = r.consensus ? evidenceVerdict(r.consensus) : void 0;
|
|
560
602
|
if (verdict) {
|
|
561
603
|
bits.push(
|
|
562
604
|
`<p class="reason">${esc2(verdict.reasoning)}</p>`,
|
|
@@ -581,6 +623,7 @@ function evalBlock(r) {
|
|
|
581
623
|
`<p class="finding"><span class="sev ${esc2(f.severity)}">${esc2(f.severity)}</span> ${esc2(f.message)}${f.line ? ` <span class="muted">(line ${String(f.line)})</span>` : ""}</p>`
|
|
582
624
|
);
|
|
583
625
|
}
|
|
626
|
+
for (const line of resultGuidance(r)) bits.push(`<p class="muted">${esc2(line)}</p>`);
|
|
584
627
|
bits.push("</div>");
|
|
585
628
|
return bits.filter(Boolean).join("\n");
|
|
586
629
|
}
|
|
@@ -637,7 +680,7 @@ blockquote{margin:.4rem 0;padding:.3rem .7rem;border-left:2px solid var(--line);
|
|
|
637
680
|
.sev{font-size:.75rem;text-transform:uppercase;font-weight:600;margin-right:.35rem}
|
|
638
681
|
.sev.error{color:var(--bad)}.sev.warning{color:var(--warn)}.sev.notice{color:var(--muted)}
|
|
639
682
|
.v.ok{color:var(--ok)}.v.bad{color:var(--bad)}.v.partial{color:var(--muted)}
|
|
640
|
-
.problems li.error{color:var(--bad)}.problems li.warning{color:var(--warn)}
|
|
683
|
+
.problems li.error{color:var(--bad)}.problems li.warning{color:var(--warn)}.problems li.notice{color:var(--muted)}
|
|
641
684
|
</style></head><body><main>
|
|
642
685
|
<h1>manni docevals results</h1>
|
|
643
686
|
<p class="muted">${String(report.pages)} page(s) \xB7 ${String(
|
|
@@ -680,4 +723,4 @@ function render(report, format, opts = {}) {
|
|
|
680
723
|
export {
|
|
681
724
|
render
|
|
682
725
|
};
|
|
683
|
-
//# sourceMappingURL=chunk-
|
|
726
|
+
//# sourceMappingURL=chunk-DW22KCLN.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 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}${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 renderHtml(report);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAeO,SAAS,UAAU,QAA6C;AACrE,QAAM,KAAK,OAAO,SAAS,OAAO;AAClC,MAAI,OAAO,OAAW,QAAO;AAC7B,QAAM,EAAE,eAAe,WAAW,IAAI;AACtC,QAAM,MAAM,OAAO,OAAO;AAC1B,QAAM,SAAS,OAAO,WAAW;AACjC,SAAO;AAAA,IACL,OAAO,kBAAkB;AAAA,IACzB,MAAM,CAAC,OAAO,CAAC,MAAM,MAAM;AACzB,YAAM,OAAO;AAAA,QACX,QAAQ,SAAY,SAAY,SAAS,KAAK,GAAG,CAAC;AAAA,QAClD,WAAW,SAAY,SAAY,eAAe,MAAM;AAAA,MAC1D,EACG,OAAO,CAAC,MAAM,MAAM,MAAS,EAC7B,KAAK,OAAO;AACf,aAAO,kBAAkB,IACrB,oBAAoB,IAAI,mCACxB,aAAa,OAAO,aAAa,CAAC,OAAO,OAAO,UAAU,CAAC,oBAAoB,IAAI;AAAA,IACzF;AAAA,EACF;AACF;;;ACrBO,SAAS,eAAe,GAAyB;AACtD,SAAO,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK;AACtC;AAGO,SAAS,cAAc,UAA4B;AACxD,SAAO,SAAS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,aAAO,aAAa,QAAQ,IAAI;AAAA,IAClC,KAAK;AACH,aAAO,WAAW,MAAM;AAAA,IAC1B,KAAK;AACH,aAAO,eAAe,MAAM;AAAA,IAC9B,KAAK;AACH,aAAO,YAAY,MAAM;AAAA,IAC3B,KAAK;AACH,aAAO,YAAY,MAAM;AAAA,IAC3B,KAAK;AACH,aAAO,aAAa,MAAM;AAAA,IAC5B,KAAK;AACH,aAAO,WAAW,MAAM;AAAA,EAC5B;AACF;","names":["failures","errors","esc"]}
|
|
@@ -3,23 +3,23 @@ import {
|
|
|
3
3
|
emptyWindow,
|
|
4
4
|
materialize,
|
|
5
5
|
windowOf
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VHJ72YCD.js";
|
|
7
7
|
import {
|
|
8
8
|
extractEvals,
|
|
9
9
|
findGitRoot,
|
|
10
10
|
listInTree,
|
|
11
11
|
resolveArtifacts,
|
|
12
12
|
safeRead
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SLGCRXHM.js";
|
|
14
14
|
import {
|
|
15
15
|
makeRedactor
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-6WJUZQQX.js";
|
|
17
17
|
import {
|
|
18
18
|
configDir
|
|
19
19
|
} from "./chunk-4TSWU2SU.js";
|
|
20
20
|
import {
|
|
21
21
|
extractFrontmatter
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-OFOIBV5J.js";
|
|
23
23
|
|
|
24
24
|
// src/tracevals/rules/turn.ts
|
|
25
25
|
var INJECTED = /<(system-reminder|task-notification|ci-monitor-event|local-command-stdout|local-command-stderr|local-command-caveat)>[\s\S]*?<\/\1>/g;
|
|
@@ -671,4 +671,4 @@ export {
|
|
|
671
671
|
resolveTurnSources,
|
|
672
672
|
pathKey
|
|
673
673
|
};
|
|
674
|
-
//# sourceMappingURL=chunk-
|
|
674
|
+
//# sourceMappingURL=chunk-FEEO7ET6.js.map
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
displayPath
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RGRNAQG5.js";
|
|
5
5
|
import {
|
|
6
6
|
escapeWorkflowCommandMessage,
|
|
7
|
-
escapeWorkflowCommandProperty
|
|
8
|
-
|
|
7
|
+
escapeWorkflowCommandProperty,
|
|
8
|
+
guidanceLines
|
|
9
|
+
} from "./chunk-QK6VYJHV.js";
|
|
9
10
|
|
|
10
11
|
// src/term/reporters/github.ts
|
|
11
12
|
function renderFindingsGithub(report) {
|
|
@@ -13,11 +14,12 @@ function renderFindingsGithub(report) {
|
|
|
13
14
|
const params = [`file=${escapeWorkflowCommandProperty(displayPath(finding.file, report.cwd))}`];
|
|
14
15
|
if (finding.line !== void 0) params.push(`line=${String(finding.line)}`);
|
|
15
16
|
params.push(`title=${escapeWorkflowCommandProperty(finding.ruleId)}`);
|
|
16
|
-
|
|
17
|
+
const message = [finding.message, ...guidanceLines(finding.guidance)].join("\n");
|
|
18
|
+
return `::${finding.severity} ${params.join(",")}::${escapeWorkflowCommandMessage(message)}`;
|
|
17
19
|
}).join("\n");
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
export {
|
|
21
23
|
renderFindingsGithub
|
|
22
24
|
};
|
|
23
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-FYWQS35G.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/term/reporters/github.ts"],"sourcesContent":["/**\n * GitHub workflow commands, one per reported finding:\n * `::error file=<file>,line=<n>,title=<ruleId>::<message>`, with `::warning`\n * and `::notice` for the lower levels. The rule's guidance lines follow the\n * message after `%0A`. Uses meta's escapes. A clean run is the empty string,\n * which the CLI prints nothing for.\n */\nimport { escapeWorkflowCommandMessage, escapeWorkflowCommandProperty } from \"../../meta/internal.js\";\nimport { guidanceLines } from \"../../shared/guidance.js\";\nimport type { TermReport } from \"../commands/findings.js\";\nimport { displayPath } from \"../commands/run.js\";\n\nexport function renderFindingsGithub(report: TermReport): string {\n return report.findings\n .map((finding) => {\n const params = [`file=${escapeWorkflowCommandProperty(displayPath(finding.file, report.cwd))}`];\n if (finding.line !== undefined) params.push(`line=${String(finding.line)}`);\n params.push(`title=${escapeWorkflowCommandProperty(finding.ruleId)}`);\n const message = [finding.message, ...guidanceLines(finding.guidance)].join(\"\\n\");\n return `::${finding.severity} ${params.join(\",\")}::${escapeWorkflowCommandMessage(message)}`;\n })\n .join(\"\\n\");\n}\n"],"mappings":";;;;;;;;;;;AAYO,SAAS,qBAAqB,QAA4B;AAC/D,SAAO,OAAO,SACX,IAAI,CAAC,YAAY;AAChB,UAAM,SAAS,CAAC,QAAQ,8BAA8B,YAAY,QAAQ,MAAM,OAAO,GAAG,CAAC,CAAC,EAAE;AAC9F,QAAI,QAAQ,SAAS,OAAW,QAAO,KAAK,QAAQ,OAAO,QAAQ,IAAI,CAAC,EAAE;AAC1E,WAAO,KAAK,SAAS,8BAA8B,QAAQ,MAAM,CAAC,EAAE;AACpE,UAAM,UAAU,CAAC,QAAQ,SAAS,GAAG,cAAc,QAAQ,QAAQ,CAAC,EAAE,KAAK,IAAI;AAC/E,WAAO,KAAK,QAAQ,QAAQ,IAAI,OAAO,KAAK,GAAG,CAAC,KAAK,6BAA6B,OAAO,CAAC;AAAA,EAC5F,CAAC,EACA,KAAK,IAAI;AACd;","names":[]}
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
listInTree,
|
|
6
6
|
safeRead,
|
|
7
7
|
segments
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SLGCRXHM.js";
|
|
9
9
|
import {
|
|
10
10
|
TracevalsError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZINZTHWO.js";
|
|
12
12
|
|
|
13
13
|
// src/tracevals/artifacts/discover.ts
|
|
14
14
|
import {
|
|
@@ -171,4 +171,4 @@ async function discoverArtifacts(options) {
|
|
|
171
171
|
export {
|
|
172
172
|
discoverArtifacts
|
|
173
173
|
};
|
|
174
|
-
//# sourceMappingURL=chunk-
|
|
174
|
+
//# sourceMappingURL=chunk-GLQCSDFS.js.map
|