@hawkeyexl/manni 4.23.0 → 4.25.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-DPYBMRVD.js → batch-VP7VAFFA.js} +12 -12
- package/dist/{build-LEKUMGEC.js → build-44OHCP5P.js} +13 -13
- package/dist/{calibrate-TYONPNG4.js → calibrate-5X3V3IFG.js} +13 -13
- package/dist/{capture-2EPHIAZT.js → capture-QUDOYQOS.js} +12 -12
- package/dist/{check-J2KQI7IW.js → check-IF6WXUEI.js} +14 -14
- package/dist/check-LNCNERTV.js +57 -0
- package/dist/check-MZWAI5CR.js +57 -0
- package/dist/{check-SQVQE4E4.js → check-QSW4PTDL.js} +13 -13
- package/dist/{check-HWEDHABD.js → check-ZNGJ3QPU.js} +10 -10
- package/dist/{chunk-KX6HRTLH.js → chunk-2LF3NIWH.js} +17 -2
- package/dist/chunk-2LF3NIWH.js.map +1 -0
- package/dist/{chunk-EPN67ZNX.js → chunk-3J6O3ID5.js} +9 -9
- package/dist/{chunk-VTJAY3WN.js → chunk-3ZKW6ILQ.js} +12 -8
- package/dist/chunk-3ZKW6ILQ.js.map +1 -0
- package/dist/{chunk-XVL7DYWM.js → chunk-3ZWKN3JF.js} +130 -8
- package/dist/chunk-3ZWKN3JF.js.map +1 -0
- package/dist/{chunk-7NSFGAAQ.js → chunk-44ETYRW3.js} +5 -5
- package/dist/{chunk-RZ6OONZU.js → chunk-4UHRMUV3.js} +4 -4
- package/dist/{chunk-Y4O737F7.js → chunk-5XVS7OLH.js} +13 -10
- package/dist/chunk-5XVS7OLH.js.map +1 -0
- package/dist/{chunk-CLUUSZDY.js → chunk-6NN7VGDU.js} +10 -10
- package/dist/{chunk-LHP56Q45.js → chunk-6RFNXPVZ.js} +5 -5
- package/dist/{chunk-I4KDAO6P.js → chunk-6T4AJ2L6.js} +3 -3
- package/dist/{chunk-SZMJ24FR.js → chunk-6Z3XOK52.js} +8 -8
- package/dist/{chunk-WHECOVH2.js → chunk-7QIUCIOS.js} +7 -5
- package/dist/chunk-7QIUCIOS.js.map +1 -0
- package/dist/{chunk-BA7BQBWV.js → chunk-A7Z74ZVA.js} +13 -13
- package/dist/{chunk-LT3STF5K.js → chunk-ADZH6SFC.js} +4 -4
- package/dist/{chunk-AJCUKL43.js → chunk-AFTHVJYK.js} +13 -7
- package/dist/{chunk-AJCUKL43.js.map → chunk-AFTHVJYK.js.map} +1 -1
- package/dist/{chunk-EAF4K7IK.js → chunk-BNCI4B5B.js} +65 -17
- package/dist/chunk-BNCI4B5B.js.map +1 -0
- package/dist/{chunk-VSDXZAQU.js → chunk-BXQLKOOR.js} +2 -2
- package/dist/{chunk-K4YR4PY2.js → chunk-CI655H5P.js} +6 -6
- package/dist/{chunk-MDZXRHIJ.js → chunk-CLH4ZYNG.js} +1 -1
- package/dist/chunk-CLH4ZYNG.js.map +1 -0
- package/dist/{chunk-2QK25SLZ.js → chunk-CSZIHCPC.js} +3 -3
- package/dist/{chunk-OL3Z7KPQ.js → chunk-CU2RHHDC.js} +131 -23
- package/dist/chunk-CU2RHHDC.js.map +1 -0
- package/dist/{chunk-WPHPLVS3.js → chunk-DM37LCWS.js} +8 -8
- package/dist/{chunk-TVLIJ6ZM.js → chunk-DP2YVP7S.js} +4 -4
- package/dist/{chunk-P6LRDWMJ.js → chunk-E4A2OW24.js} +7 -7
- package/dist/{chunk-2UJOQ6CB.js → chunk-FKM3GGP4.js} +9 -9
- package/dist/{chunk-BOCJTOKA.js → chunk-G7DHWDSI.js} +2 -2
- package/dist/{chunk-2GPF4OEF.js → chunk-GQQGKKXK.js} +2 -2
- package/dist/{chunk-AOLCEULZ.js → chunk-GVG6LI5Q.js} +4 -4
- package/dist/{chunk-N25KDXOV.js → chunk-H7UPMVBK.js} +2 -2
- package/dist/{chunk-GIHIONJH.js → chunk-IM7C3H4W.js} +10 -2
- package/dist/chunk-IM7C3H4W.js.map +1 -0
- package/dist/{chunk-QWVIGKBM.js → chunk-IQ4YRTPO.js} +404 -136
- package/dist/chunk-IQ4YRTPO.js.map +1 -0
- package/dist/{chunk-B4POKRCS.js → chunk-ITEGS3X3.js} +5 -5
- package/dist/{chunk-MPRVAMO3.js → chunk-J3LMV74L.js} +4 -4
- package/dist/{chunk-INOVEO32.js → chunk-JBOXCSTN.js} +1 -1
- package/dist/chunk-JBOXCSTN.js.map +1 -0
- package/dist/{chunk-JZWQQOUN.js → chunk-JNG6N5YH.js} +6 -6
- package/dist/{chunk-6QNA7UX2.js → chunk-JPIWDKSR.js} +2 -2
- package/dist/{chunk-EBBJFXMX.js → chunk-KG7ZP7Z6.js} +3 -3
- package/dist/{chunk-2MOXVM6H.js → chunk-LTCAXNJS.js} +2 -2
- package/dist/{chunk-76Y3JATE.js → chunk-M4OGE7AL.js} +2 -2
- package/dist/{chunk-3CBGLUJX.js → chunk-MUPA2MUK.js} +7 -7
- package/dist/chunk-MUPA2MUK.js.map +1 -0
- package/dist/{chunk-GCHEVTCJ.js → chunk-MXRFHC7I.js} +2 -2
- package/dist/{chunk-CWPRB7SA.js → chunk-NQFSXLYK.js} +258 -145
- package/dist/chunk-NQFSXLYK.js.map +1 -0
- package/dist/{chunk-QJL57GPX.js → chunk-OG6OJC64.js} +3 -3
- package/dist/{chunk-72UN462G.js → chunk-OIGFV4BG.js} +26 -7
- package/dist/chunk-OIGFV4BG.js.map +1 -0
- package/dist/{chunk-N2T6RLSE.js → chunk-PMRBTUCZ.js} +2 -2
- package/dist/{chunk-N2T6RLSE.js.map → chunk-PMRBTUCZ.js.map} +1 -1
- package/dist/{chunk-UQYDLEBS.js → chunk-PYCKKLN2.js} +7 -7
- package/dist/{chunk-6RENCXLC.js → chunk-PZLJQE2S.js} +3 -3
- package/dist/{chunk-E75CMOR3.js → chunk-Q44S7QYO.js} +3 -3
- package/dist/{chunk-QJGPOFNB.js → chunk-R3EJQKGM.js} +3 -3
- package/dist/{chunk-C2QE4FSZ.js → chunk-RIKCEIS7.js} +3 -3
- package/dist/{chunk-5JXA75XB.js → chunk-S6TCOSAY.js} +24 -11
- package/dist/chunk-S6TCOSAY.js.map +1 -0
- package/dist/{chunk-YJHH2DHV.js → chunk-SBPIX4DE.js} +2 -2
- package/dist/{chunk-B4ECIBLF.js → chunk-SHDMHEY6.js} +3 -3
- package/dist/{chunk-TLY44PCL.js → chunk-SNNT4A3J.js} +2 -2
- package/dist/{chunk-DWUK6YNX.js → chunk-SPGRVFWW.js} +6 -6
- package/dist/{chunk-3USSSKLA.js → chunk-TX6WDFGT.js} +2 -2
- package/dist/{chunk-FJYIPHWK.js → chunk-V3CE2MQV.js} +9 -7
- package/dist/chunk-V3CE2MQV.js.map +1 -0
- package/dist/{chunk-QR55QXJ7.js → chunk-W4W3NHK4.js} +4 -4
- package/dist/{chunk-YBPXVBSY.js → chunk-WCMO7DTA.js} +3 -3
- package/dist/{chunk-TOVSR2YO.js → chunk-WFSZVCTZ.js} +2 -2
- package/dist/{chunk-AZKNB2T3.js → chunk-WMJ2FXYV.js} +11 -28
- package/dist/chunk-WMJ2FXYV.js.map +1 -0
- package/dist/{chunk-MGQNGW6I.js → chunk-X64BY7TV.js} +2 -2
- package/dist/{chunk-YUCH6WJY.js → chunk-XWPKJD45.js} +2 -2
- package/dist/{chunk-NPZWOPOH.js → chunk-XX7GNK4F.js} +5 -4
- package/dist/chunk-XX7GNK4F.js.map +1 -0
- package/dist/{chunk-L3DOX3UL.js → chunk-Y2GYB3SB.js} +4 -4
- package/dist/{chunk-7M3MBFG7.js → chunk-YBWDATJO.js} +5 -5
- package/dist/chunk-YBWDATJO.js.map +1 -0
- package/dist/{chunk-FBIBR4CH.js → chunk-ZPKPL52R.js} +33 -16
- package/dist/chunk-ZPKPL52R.js.map +1 -0
- package/dist/{cli-TBAOKTMV.js → cli-4WOYZQQF.js} +13 -13
- package/dist/{cli-NDYBQ755.js → cli-5HRQSZJG.js} +18 -18
- package/dist/{cli-BF6KB3EJ.js → cli-AISVPF4O.js} +30 -30
- package/dist/{cli-DXOHHWZK.js → cli-DFUPK6NY.js} +32 -18
- package/dist/{cli-DXOHHWZK.js.map → cli-DFUPK6NY.js.map} +1 -1
- package/dist/{cli-SJA66MIP.js → cli-H2RUHLCF.js} +19 -19
- package/dist/{cli-4R5HIGG4.js → cli-HXFFCF5U.js} +34 -30
- package/dist/cli-HXFFCF5U.js.map +1 -0
- package/dist/{cli-XXN75A42.js → cli-JH67BLTC.js} +7 -7
- package/dist/{cli-V2BJYNMF.js → cli-KLOTJTBA.js} +2 -2
- package/dist/{cli-MPMECIQH.js → cli-MCFDABF3.js} +57 -57
- package/dist/{cli-XGCK2LUV.js → cli-MVWF3ZJL.js} +12 -12
- package/dist/{cli-TWGGMUXX.js → cli-UUJQ2MA5.js} +36 -36
- package/dist/cli.js +15 -15
- package/dist/docmeta.js +6 -6
- package/dist/github-JHXSVOLR.js +48 -0
- package/dist/{github-WBIEYSM7.js → github-X3JHTWYZ.js} +10 -10
- package/dist/{github-NQQTH5JK.js → github-ZARIFMCP.js} +14 -14
- package/dist/index.d.ts +69 -13
- package/dist/index.js +55 -55
- package/dist/{json-J4TONMKY.js → json-CG2WAD5V.js} +2 -2
- package/dist/{json-QQAK73QQ.js → json-MOKARROA.js} +10 -10
- package/dist/{json-IVHRVOGQ.js → json-O6KJT3C3.js} +15 -15
- package/dist/{labels-VI2I5YFD.js → labels-6IEBGB7P.js} +9 -9
- package/dist/{lint-VB5A3ENL.js → lint-W6KQ7QGB.js} +10 -10
- package/dist/{list-LMYCD5G5.js → list-EOWL6REV.js} +14 -14
- package/dist/list-LIP6QOWF.js +48 -0
- package/dist/{list-LOS7FTFD.js → list-UXJ2NK7K.js} +10 -10
- package/dist/{page-3Y4EGYUO.js → page-U4D4RT4T.js} +12 -9
- package/dist/{prepare-JK6XKBZB.js → prepare-EP7RFG3W.js} +11 -11
- package/dist/{pretty-G2J5UEXC.js → pretty-U5HUKTPN.js} +14 -14
- package/dist/{pretty-DR4GHOJG.js → pretty-YFAKTBDO.js} +10 -10
- package/dist/{pretty-GCEIQ3FP.js → pretty-YXK7QWYR.js} +24 -24
- package/dist/{reporters-6TEJDXXO.js → reporters-6CNOPRDA.js} +4 -4
- package/dist/{reporters-OWYFZD4S.js → reporters-GGPH44QS.js} +4 -4
- package/dist/{reporters-43LBUWEE.js → reporters-SJW725TW.js} +9 -9
- package/dist/run-WAIHWCOH.js +51 -0
- package/dist/{sarif-CN7RSIKH.js → sarif-IY6OTG4M.js} +8 -8
- package/dist/{sarif-GWTNYCZJ.js → sarif-QYID4Z4M.js} +10 -10
- package/dist/sarif-SJ27UD3T.js +49 -0
- package/dist/strategy-3B6KJNFA.js +63 -0
- package/dist/{term-5WITRS3M.js → term-M63KLMUK.js} +15 -15
- package/dist/{types-7N7ETP3W.js → types-VWL35P4F.js} +2 -2
- package/dist/{validate-TDIEFXRQ.js → validate-XW5WSXKU.js} +4 -4
- package/package.json +1 -1
- package/plugin/manni/.claude-plugin/plugin.json +1 -1
- package/dist/check-ADCSXGBK.js +0 -57
- package/dist/check-L5AUSTE6.js +0 -57
- package/dist/chunk-3CBGLUJX.js.map +0 -1
- package/dist/chunk-5JXA75XB.js.map +0 -1
- package/dist/chunk-72UN462G.js.map +0 -1
- package/dist/chunk-7M3MBFG7.js.map +0 -1
- package/dist/chunk-AZKNB2T3.js.map +0 -1
- package/dist/chunk-CWPRB7SA.js.map +0 -1
- package/dist/chunk-EAF4K7IK.js.map +0 -1
- package/dist/chunk-FBIBR4CH.js.map +0 -1
- package/dist/chunk-FJYIPHWK.js.map +0 -1
- package/dist/chunk-GIHIONJH.js.map +0 -1
- package/dist/chunk-INOVEO32.js.map +0 -1
- package/dist/chunk-KX6HRTLH.js.map +0 -1
- package/dist/chunk-MDZXRHIJ.js.map +0 -1
- package/dist/chunk-NPZWOPOH.js.map +0 -1
- package/dist/chunk-OL3Z7KPQ.js.map +0 -1
- package/dist/chunk-QWVIGKBM.js.map +0 -1
- package/dist/chunk-VTJAY3WN.js.map +0 -1
- package/dist/chunk-WHECOVH2.js.map +0 -1
- package/dist/chunk-XVL7DYWM.js.map +0 -1
- package/dist/chunk-Y4O737F7.js.map +0 -1
- package/dist/cli-4R5HIGG4.js.map +0 -1
- package/dist/github-NWL2XGE7.js +0 -48
- package/dist/list-3XRFX2Y3.js +0 -33
- package/dist/run-G6G55SWJ.js +0 -36
- package/dist/sarif-FR26WNVT.js +0 -49
- package/dist/strategy-3EZUOE2T.js +0 -59
- /package/dist/{batch-DPYBMRVD.js.map → batch-VP7VAFFA.js.map} +0 -0
- /package/dist/{build-LEKUMGEC.js.map → build-44OHCP5P.js.map} +0 -0
- /package/dist/{calibrate-TYONPNG4.js.map → calibrate-5X3V3IFG.js.map} +0 -0
- /package/dist/{capture-2EPHIAZT.js.map → capture-QUDOYQOS.js.map} +0 -0
- /package/dist/{check-ADCSXGBK.js.map → check-IF6WXUEI.js.map} +0 -0
- /package/dist/{check-HWEDHABD.js.map → check-LNCNERTV.js.map} +0 -0
- /package/dist/{check-J2KQI7IW.js.map → check-MZWAI5CR.js.map} +0 -0
- /package/dist/{check-SQVQE4E4.js.map → check-QSW4PTDL.js.map} +0 -0
- /package/dist/{check-L5AUSTE6.js.map → check-ZNGJ3QPU.js.map} +0 -0
- /package/dist/{chunk-EPN67ZNX.js.map → chunk-3J6O3ID5.js.map} +0 -0
- /package/dist/{chunk-7NSFGAAQ.js.map → chunk-44ETYRW3.js.map} +0 -0
- /package/dist/{chunk-RZ6OONZU.js.map → chunk-4UHRMUV3.js.map} +0 -0
- /package/dist/{chunk-CLUUSZDY.js.map → chunk-6NN7VGDU.js.map} +0 -0
- /package/dist/{chunk-LHP56Q45.js.map → chunk-6RFNXPVZ.js.map} +0 -0
- /package/dist/{chunk-I4KDAO6P.js.map → chunk-6T4AJ2L6.js.map} +0 -0
- /package/dist/{chunk-SZMJ24FR.js.map → chunk-6Z3XOK52.js.map} +0 -0
- /package/dist/{chunk-BA7BQBWV.js.map → chunk-A7Z74ZVA.js.map} +0 -0
- /package/dist/{chunk-LT3STF5K.js.map → chunk-ADZH6SFC.js.map} +0 -0
- /package/dist/{chunk-VSDXZAQU.js.map → chunk-BXQLKOOR.js.map} +0 -0
- /package/dist/{chunk-K4YR4PY2.js.map → chunk-CI655H5P.js.map} +0 -0
- /package/dist/{chunk-2QK25SLZ.js.map → chunk-CSZIHCPC.js.map} +0 -0
- /package/dist/{chunk-WPHPLVS3.js.map → chunk-DM37LCWS.js.map} +0 -0
- /package/dist/{chunk-TVLIJ6ZM.js.map → chunk-DP2YVP7S.js.map} +0 -0
- /package/dist/{chunk-P6LRDWMJ.js.map → chunk-E4A2OW24.js.map} +0 -0
- /package/dist/{chunk-2UJOQ6CB.js.map → chunk-FKM3GGP4.js.map} +0 -0
- /package/dist/{chunk-BOCJTOKA.js.map → chunk-G7DHWDSI.js.map} +0 -0
- /package/dist/{chunk-2GPF4OEF.js.map → chunk-GQQGKKXK.js.map} +0 -0
- /package/dist/{chunk-AOLCEULZ.js.map → chunk-GVG6LI5Q.js.map} +0 -0
- /package/dist/{chunk-N25KDXOV.js.map → chunk-H7UPMVBK.js.map} +0 -0
- /package/dist/{chunk-B4POKRCS.js.map → chunk-ITEGS3X3.js.map} +0 -0
- /package/dist/{chunk-MPRVAMO3.js.map → chunk-J3LMV74L.js.map} +0 -0
- /package/dist/{chunk-JZWQQOUN.js.map → chunk-JNG6N5YH.js.map} +0 -0
- /package/dist/{chunk-6QNA7UX2.js.map → chunk-JPIWDKSR.js.map} +0 -0
- /package/dist/{chunk-EBBJFXMX.js.map → chunk-KG7ZP7Z6.js.map} +0 -0
- /package/dist/{chunk-2MOXVM6H.js.map → chunk-LTCAXNJS.js.map} +0 -0
- /package/dist/{chunk-76Y3JATE.js.map → chunk-M4OGE7AL.js.map} +0 -0
- /package/dist/{chunk-GCHEVTCJ.js.map → chunk-MXRFHC7I.js.map} +0 -0
- /package/dist/{chunk-QJL57GPX.js.map → chunk-OG6OJC64.js.map} +0 -0
- /package/dist/{chunk-UQYDLEBS.js.map → chunk-PYCKKLN2.js.map} +0 -0
- /package/dist/{chunk-6RENCXLC.js.map → chunk-PZLJQE2S.js.map} +0 -0
- /package/dist/{chunk-E75CMOR3.js.map → chunk-Q44S7QYO.js.map} +0 -0
- /package/dist/{chunk-QJGPOFNB.js.map → chunk-R3EJQKGM.js.map} +0 -0
- /package/dist/{chunk-C2QE4FSZ.js.map → chunk-RIKCEIS7.js.map} +0 -0
- /package/dist/{chunk-YJHH2DHV.js.map → chunk-SBPIX4DE.js.map} +0 -0
- /package/dist/{chunk-B4ECIBLF.js.map → chunk-SHDMHEY6.js.map} +0 -0
- /package/dist/{chunk-TLY44PCL.js.map → chunk-SNNT4A3J.js.map} +0 -0
- /package/dist/{chunk-DWUK6YNX.js.map → chunk-SPGRVFWW.js.map} +0 -0
- /package/dist/{chunk-3USSSKLA.js.map → chunk-TX6WDFGT.js.map} +0 -0
- /package/dist/{chunk-QR55QXJ7.js.map → chunk-W4W3NHK4.js.map} +0 -0
- /package/dist/{chunk-YBPXVBSY.js.map → chunk-WCMO7DTA.js.map} +0 -0
- /package/dist/{chunk-TOVSR2YO.js.map → chunk-WFSZVCTZ.js.map} +0 -0
- /package/dist/{chunk-MGQNGW6I.js.map → chunk-X64BY7TV.js.map} +0 -0
- /package/dist/{chunk-YUCH6WJY.js.map → chunk-XWPKJD45.js.map} +0 -0
- /package/dist/{chunk-L3DOX3UL.js.map → chunk-Y2GYB3SB.js.map} +0 -0
- /package/dist/{cli-TBAOKTMV.js.map → cli-4WOYZQQF.js.map} +0 -0
- /package/dist/{cli-NDYBQ755.js.map → cli-5HRQSZJG.js.map} +0 -0
- /package/dist/{cli-BF6KB3EJ.js.map → cli-AISVPF4O.js.map} +0 -0
- /package/dist/{cli-SJA66MIP.js.map → cli-H2RUHLCF.js.map} +0 -0
- /package/dist/{cli-XXN75A42.js.map → cli-JH67BLTC.js.map} +0 -0
- /package/dist/{cli-V2BJYNMF.js.map → cli-KLOTJTBA.js.map} +0 -0
- /package/dist/{cli-MPMECIQH.js.map → cli-MCFDABF3.js.map} +0 -0
- /package/dist/{cli-XGCK2LUV.js.map → cli-MVWF3ZJL.js.map} +0 -0
- /package/dist/{cli-TWGGMUXX.js.map → cli-UUJQ2MA5.js.map} +0 -0
- /package/dist/{github-NQQTH5JK.js.map → github-JHXSVOLR.js.map} +0 -0
- /package/dist/{github-NWL2XGE7.js.map → github-X3JHTWYZ.js.map} +0 -0
- /package/dist/{github-WBIEYSM7.js.map → github-ZARIFMCP.js.map} +0 -0
- /package/dist/{json-IVHRVOGQ.js.map → json-CG2WAD5V.js.map} +0 -0
- /package/dist/{json-J4TONMKY.js.map → json-MOKARROA.js.map} +0 -0
- /package/dist/{json-QQAK73QQ.js.map → json-O6KJT3C3.js.map} +0 -0
- /package/dist/{labels-VI2I5YFD.js.map → labels-6IEBGB7P.js.map} +0 -0
- /package/dist/{lint-VB5A3ENL.js.map → lint-W6KQ7QGB.js.map} +0 -0
- /package/dist/{list-3XRFX2Y3.js.map → list-EOWL6REV.js.map} +0 -0
- /package/dist/{list-LMYCD5G5.js.map → list-LIP6QOWF.js.map} +0 -0
- /package/dist/{list-LOS7FTFD.js.map → list-UXJ2NK7K.js.map} +0 -0
- /package/dist/{page-3Y4EGYUO.js.map → page-U4D4RT4T.js.map} +0 -0
- /package/dist/{prepare-JK6XKBZB.js.map → prepare-EP7RFG3W.js.map} +0 -0
- /package/dist/{pretty-DR4GHOJG.js.map → pretty-U5HUKTPN.js.map} +0 -0
- /package/dist/{pretty-G2J5UEXC.js.map → pretty-YFAKTBDO.js.map} +0 -0
- /package/dist/{pretty-GCEIQ3FP.js.map → pretty-YXK7QWYR.js.map} +0 -0
- /package/dist/{reporters-43LBUWEE.js.map → reporters-6CNOPRDA.js.map} +0 -0
- /package/dist/{reporters-6TEJDXXO.js.map → reporters-GGPH44QS.js.map} +0 -0
- /package/dist/{reporters-OWYFZD4S.js.map → reporters-SJW725TW.js.map} +0 -0
- /package/dist/{run-G6G55SWJ.js.map → run-WAIHWCOH.js.map} +0 -0
- /package/dist/{sarif-CN7RSIKH.js.map → sarif-IY6OTG4M.js.map} +0 -0
- /package/dist/{sarif-FR26WNVT.js.map → sarif-QYID4Z4M.js.map} +0 -0
- /package/dist/{sarif-GWTNYCZJ.js.map → sarif-SJ27UD3T.js.map} +0 -0
- /package/dist/{strategy-3EZUOE2T.js.map → strategy-3B6KJNFA.js.map} +0 -0
- /package/dist/{term-5WITRS3M.js.map → term-M63KLMUK.js.map} +0 -0
- /package/dist/{types-7N7ETP3W.js.map → types-VWL35P4F.js.map} +0 -0
- /package/dist/{validate-TDIEFXRQ.js.map → validate-XW5WSXKU.js.map} +0 -0
|
@@ -15,27 +15,31 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
DocevalsError,
|
|
17
17
|
FIX_GUIDE
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CLH4ZYNG.js";
|
|
19
|
+
import {
|
|
20
|
+
loadStrategySet,
|
|
21
|
+
resolveStrategyRun
|
|
22
|
+
} from "./chunk-ZPKPL52R.js";
|
|
19
23
|
import {
|
|
20
24
|
declaredAt
|
|
21
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-KG7ZP7Z6.js";
|
|
22
26
|
import {
|
|
23
27
|
RECORD_TYPES,
|
|
24
28
|
metaProvenanceEntries
|
|
25
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-WMJ2FXYV.js";
|
|
26
30
|
import {
|
|
27
31
|
familyMarks,
|
|
28
32
|
loadExternalMetadata,
|
|
29
33
|
memberOf,
|
|
30
34
|
mergeWithMarks,
|
|
31
35
|
provenanceEntries
|
|
32
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-2LF3NIWH.js";
|
|
33
37
|
import {
|
|
34
38
|
__default,
|
|
35
39
|
classifyRef,
|
|
36
40
|
extractFrontmatter,
|
|
37
41
|
integrityOf
|
|
38
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-IQ4YRTPO.js";
|
|
39
43
|
import {
|
|
40
44
|
findConfigFileSync,
|
|
41
45
|
ownsKey,
|
|
@@ -945,9 +949,9 @@ function stripFrontmatterBlock(content) {
|
|
|
945
949
|
if (!fence) return body;
|
|
946
950
|
const [openLine = "", ...rest] = body.split(/(?<=\n)/);
|
|
947
951
|
let offset = openLine.length;
|
|
948
|
-
for (const
|
|
949
|
-
offset +=
|
|
950
|
-
if (fence.isClose(
|
|
952
|
+
for (const line2 of rest) {
|
|
953
|
+
offset += line2.length;
|
|
954
|
+
if (fence.isClose(line2.replace(/\r?\n$/, ""))) return body.slice(offset);
|
|
951
955
|
}
|
|
952
956
|
return body;
|
|
953
957
|
}
|
|
@@ -1081,7 +1085,8 @@ var EVAL_KEYS = ["evals", "eval-suite", "eval-skip"];
|
|
|
1081
1085
|
var EXTERNAL_KEYS = [
|
|
1082
1086
|
...EVAL_KEYS,
|
|
1083
1087
|
"provenance",
|
|
1084
|
-
"meta-provenance"
|
|
1088
|
+
"meta-provenance",
|
|
1089
|
+
"personas"
|
|
1085
1090
|
];
|
|
1086
1091
|
function urlManifestRefusal(source, collection, key) {
|
|
1087
1092
|
return `${source}: collection ${collection}: ${key} cannot come from a URL manifest, because docevals writes them.`;
|
|
@@ -1298,6 +1303,14 @@ function optionalString(options, key) {
|
|
|
1298
1303
|
}
|
|
1299
1304
|
return void 0;
|
|
1300
1305
|
}
|
|
1306
|
+
function optionalEnum(options, key, allowed) {
|
|
1307
|
+
const value = options[key];
|
|
1308
|
+
if (value === void 0) return void 0;
|
|
1309
|
+
if (typeof value !== "string" || !allowed.includes(value)) {
|
|
1310
|
+
return `options.${key} must be one of: ${allowed.join(", ")}`;
|
|
1311
|
+
}
|
|
1312
|
+
return void 0;
|
|
1313
|
+
}
|
|
1301
1314
|
|
|
1302
1315
|
// src/docevals/core/target.ts
|
|
1303
1316
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
@@ -1346,11 +1359,11 @@ function readTarget(target, plan) {
|
|
|
1346
1359
|
var MATCH_RE = /^(contains|not-contains|count:\d+)$/;
|
|
1347
1360
|
var FLAGS_RE = /^[dgimsuvy]*$/;
|
|
1348
1361
|
function lineAt(text, index) {
|
|
1349
|
-
let
|
|
1362
|
+
let line2 = 1;
|
|
1350
1363
|
for (let i = 0; i < index && i < text.length; i++) {
|
|
1351
|
-
if (text[i] === "\n")
|
|
1364
|
+
if (text[i] === "\n") line2++;
|
|
1352
1365
|
}
|
|
1353
|
-
return
|
|
1366
|
+
return line2;
|
|
1354
1367
|
}
|
|
1355
1368
|
function linesAbove(target, page) {
|
|
1356
1369
|
if (target !== void 0 && target !== "body") return 0;
|
|
@@ -1715,17 +1728,228 @@ function checkFeasibility(plans, options) {
|
|
|
1715
1728
|
return problems;
|
|
1716
1729
|
}
|
|
1717
1730
|
|
|
1731
|
+
// src/docevals/core/readers.ts
|
|
1732
|
+
import { resolve as resolve5 } from "node:path";
|
|
1733
|
+
|
|
1734
|
+
// src/docevals/judge/prompt.ts
|
|
1735
|
+
var PROMPT_VERSION = 4;
|
|
1736
|
+
var JUDGE_SYSTEM_PROMPT = [
|
|
1737
|
+
"You are a meticulous technical documentation judge. You evaluate whether a",
|
|
1738
|
+
"documentation page satisfies a specific assertion.",
|
|
1739
|
+
"",
|
|
1740
|
+
"Rules:",
|
|
1741
|
+
"- Judge ONLY the stated assertion against the supplied page content. Do not",
|
|
1742
|
+
" invent requirements the assertion does not state.",
|
|
1743
|
+
'- "match" is "pass" only when the assertion is fully satisfied by the page.',
|
|
1744
|
+
'- Use "partial" when the page partially satisfies the assertion.',
|
|
1745
|
+
'- Use "fail" when the page does not satisfy the assertion.',
|
|
1746
|
+
'- Quote the specific page text you relied on in "observed". If the page',
|
|
1747
|
+
" lacks relevant content, say so explicitly.",
|
|
1748
|
+
"- Be conservative with confidence: reserve values above 0.9 for verdicts a",
|
|
1749
|
+
" careful human reviewer would certainly agree with.",
|
|
1750
|
+
"Respond with a JSON object matching the provided schema."
|
|
1751
|
+
].join("\n");
|
|
1752
|
+
function cleanBody(body) {
|
|
1753
|
+
const out = [];
|
|
1754
|
+
let fence = null;
|
|
1755
|
+
for (const line2 of body.split("\n")) {
|
|
1756
|
+
const marker = /^(\s*)(```+|~~~+)/.exec(line2)?.[2];
|
|
1757
|
+
if (fence) {
|
|
1758
|
+
out.push(line2);
|
|
1759
|
+
if (marker?.startsWith(fence)) fence = null;
|
|
1760
|
+
continue;
|
|
1761
|
+
}
|
|
1762
|
+
if (marker !== void 0) {
|
|
1763
|
+
fence = marker;
|
|
1764
|
+
out.push(line2);
|
|
1765
|
+
continue;
|
|
1766
|
+
}
|
|
1767
|
+
out.push(
|
|
1768
|
+
line2.replace(/\{\/\*[\s\S]*?\*\/\}/g, "").replace(/<!--[\s\S]*?-->/g, "").replace(/^(import|export)\s.*$/, "")
|
|
1769
|
+
);
|
|
1770
|
+
}
|
|
1771
|
+
return out.join("\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
1772
|
+
}
|
|
1773
|
+
var READER_FIELDS = [
|
|
1774
|
+
["name", "Name"],
|
|
1775
|
+
["role", "Role"],
|
|
1776
|
+
["team-context", "Team context"],
|
|
1777
|
+
["proficiency", "Proficiency"],
|
|
1778
|
+
["prerequisites", "Prerequisites"],
|
|
1779
|
+
["goals", "Goals"],
|
|
1780
|
+
["pains", "Pains"],
|
|
1781
|
+
["content-types", "Content types"]
|
|
1782
|
+
];
|
|
1783
|
+
var READERS_FRAMING = "This page is written for the readers below. Where the assertion speaks of a reader, it means each of them. It holds only when it holds for every one. The readers add no requirement the assertion does not state.";
|
|
1784
|
+
function line(value) {
|
|
1785
|
+
return typeof value === "string" && value.trim() !== "" ? value : void 0;
|
|
1786
|
+
}
|
|
1787
|
+
function field(label, value) {
|
|
1788
|
+
const one = line(value);
|
|
1789
|
+
if (one !== void 0) return [`${label}: ${one}`];
|
|
1790
|
+
if (!Array.isArray(value)) return [];
|
|
1791
|
+
const items = value.filter((v) => line(v) !== void 0);
|
|
1792
|
+
return items.length > 0 ? [`${label}:`, ...items.map((item) => `- ${item}`)] : [];
|
|
1793
|
+
}
|
|
1794
|
+
function renderReaders(records) {
|
|
1795
|
+
const parts = ["# Readers", "", READERS_FRAMING];
|
|
1796
|
+
for (const { id, data } of records) {
|
|
1797
|
+
parts.push("", `## ${line(data["title"]) ?? id}`);
|
|
1798
|
+
const description = line(data["description"]);
|
|
1799
|
+
if (description !== void 0) parts.push("", description);
|
|
1800
|
+
const block = READER_FIELDS.flatMap(([key, label]) => field(label, data[key]));
|
|
1801
|
+
if (block.length > 0) parts.push("", ...block);
|
|
1802
|
+
}
|
|
1803
|
+
return parts.join("\n");
|
|
1804
|
+
}
|
|
1805
|
+
function buildUserContent(ev, body, targetLabel = "body", readers) {
|
|
1806
|
+
const parts = [
|
|
1807
|
+
`# Assertion`,
|
|
1808
|
+
ev.assertion ?? ""
|
|
1809
|
+
];
|
|
1810
|
+
if (ev.evidence) {
|
|
1811
|
+
parts.push("", `# Where to look`, ev.evidence);
|
|
1812
|
+
}
|
|
1813
|
+
if (ev.examples?.pass || ev.examples?.fail) {
|
|
1814
|
+
parts.push("", "# Anchors");
|
|
1815
|
+
for (const anchor of ev.examples.pass ?? []) {
|
|
1816
|
+
parts.push(`A passing page: ${anchor}`);
|
|
1817
|
+
}
|
|
1818
|
+
for (const anchor of ev.examples.fail ?? []) {
|
|
1819
|
+
parts.push(`A failing page: ${anchor}`);
|
|
1820
|
+
}
|
|
1821
|
+
}
|
|
1822
|
+
if (readers !== void 0) parts.push("", readers);
|
|
1823
|
+
const isBody = targetLabel === "body";
|
|
1824
|
+
parts.push(
|
|
1825
|
+
"",
|
|
1826
|
+
isBody ? "# Page content" : `# Page content (${targetLabel})`,
|
|
1827
|
+
"",
|
|
1828
|
+
isBody ? cleanBody(body) : body
|
|
1829
|
+
);
|
|
1830
|
+
return parts.join("\n");
|
|
1831
|
+
}
|
|
1832
|
+
var EVIDENCE_SYSTEM_PROMPT = [
|
|
1833
|
+
"You are gathering evidence from one part of a documentation page so that a",
|
|
1834
|
+
"judge can later evaluate an assertion about the whole page.",
|
|
1835
|
+
"",
|
|
1836
|
+
"Rules:",
|
|
1837
|
+
"- Do NOT decide whether the assertion holds. You are seeing one part; the",
|
|
1838
|
+
" part that settles it may be elsewhere.",
|
|
1839
|
+
"- Quote page text verbatim. Quote anything that supports the assertion and",
|
|
1840
|
+
" anything that contradicts it.",
|
|
1841
|
+
"- Quote only what bears on this assertion. An empty list is the right",
|
|
1842
|
+
" answer for a part that says nothing about it.",
|
|
1843
|
+
"Respond with a JSON object matching the provided schema."
|
|
1844
|
+
].join("\n");
|
|
1845
|
+
var EVIDENCE_SCHEMA = {
|
|
1846
|
+
type: "object",
|
|
1847
|
+
required: ["supports", "contradicts"],
|
|
1848
|
+
properties: {
|
|
1849
|
+
supports: { type: "array", items: { type: "string" } },
|
|
1850
|
+
contradicts: { type: "array", items: { type: "string" } }
|
|
1851
|
+
},
|
|
1852
|
+
additionalProperties: false
|
|
1853
|
+
};
|
|
1854
|
+
function buildEvidenceUser(ev, chunk, part) {
|
|
1855
|
+
return [
|
|
1856
|
+
"# Assertion (do not judge it \u2014 only gather evidence)",
|
|
1857
|
+
ev.assertion ?? "",
|
|
1858
|
+
...ev.evidence ? ["", "# Where to look", ev.evidence] : [],
|
|
1859
|
+
"",
|
|
1860
|
+
`# Page content (${partLabel(part.index, part.total)})`,
|
|
1861
|
+
"",
|
|
1862
|
+
chunk
|
|
1863
|
+
].join("\n");
|
|
1864
|
+
}
|
|
1865
|
+
function renderEvidence(parts, total) {
|
|
1866
|
+
const supports = parts.flatMap((p) => p.supports);
|
|
1867
|
+
const contradicts = parts.flatMap((p) => p.contradicts);
|
|
1868
|
+
const lines = [
|
|
1869
|
+
`The page was too long to read in one pass, so it was read in ${String(total)} parts`,
|
|
1870
|
+
"and the passages bearing on this assertion were collected below. Judge the",
|
|
1871
|
+
"assertion against this evidence. Absence of a quotation is weak evidence of",
|
|
1872
|
+
"absence in the page: parts that bore on nothing contributed nothing.",
|
|
1873
|
+
"",
|
|
1874
|
+
"## Passages supporting the assertion",
|
|
1875
|
+
...supports.length > 0 ? supports.map((q) => `- ${q}`) : ["(none)"],
|
|
1876
|
+
"",
|
|
1877
|
+
"## Passages contradicting the assertion",
|
|
1878
|
+
...contradicts.length > 0 ? contradicts.map((q) => `- ${q}`) : ["(none)"]
|
|
1879
|
+
];
|
|
1880
|
+
return lines.join("\n");
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1883
|
+
// src/docevals/core/readers.ts
|
|
1884
|
+
var READERS_VALUES = ["personas"];
|
|
1885
|
+
var loadPersonaRecords = async (config, cwd) => {
|
|
1886
|
+
if (config.configSource === null || config.collections.length === 0) return [];
|
|
1887
|
+
const run = await resolveStrategyRun({ cwd, inputs: [], configPath: config.configSource });
|
|
1888
|
+
if (run.inputs.length === 0) return [];
|
|
1889
|
+
const set = await loadStrategySet({
|
|
1890
|
+
run,
|
|
1891
|
+
exclude: [...new Set(run.collections.flatMap((c) => c.exclude))],
|
|
1892
|
+
allowEmpty: true
|
|
1893
|
+
});
|
|
1894
|
+
return set.records.filter((r) => r.type === "persona").map((r) => ({ id: r.id, data: r.data, path: resolve5(run.base, r.file) }));
|
|
1895
|
+
};
|
|
1896
|
+
function isJudgedOptIn(plan, ev) {
|
|
1897
|
+
return !plan.skip && !ev.skip && ev.grader === "ai" && Object.hasOwn(ev.options, "readers");
|
|
1898
|
+
}
|
|
1899
|
+
function personaIds(value) {
|
|
1900
|
+
if (typeof value === "string") return value.trim() === "" ? [] : [value];
|
|
1901
|
+
if (!Array.isArray(value)) return [];
|
|
1902
|
+
return value.filter((v) => typeof v === "string" && v.trim() !== "");
|
|
1903
|
+
}
|
|
1904
|
+
async function resolveReaders(plans, config, cwd, load = loadPersonaRecords) {
|
|
1905
|
+
if (!plans.some((plan) => plan.evals.some((ev) => isJudgedOptIn(plan, ev)))) return [];
|
|
1906
|
+
const records = await load(config, cwd);
|
|
1907
|
+
if (records.length === 0) return [];
|
|
1908
|
+
const byId = /* @__PURE__ */ new Map();
|
|
1909
|
+
for (const record of records) {
|
|
1910
|
+
const key = record.id.toLowerCase();
|
|
1911
|
+
if (!byId.has(key)) byId.set(key, record);
|
|
1912
|
+
}
|
|
1913
|
+
const problems = [];
|
|
1914
|
+
for (const plan of plans) {
|
|
1915
|
+
const opted = plan.evals.filter((ev) => isJudgedOptIn(plan, ev));
|
|
1916
|
+
if (opted.length === 0) continue;
|
|
1917
|
+
for (const ev of opted) {
|
|
1918
|
+
const invalid = optionalEnum(ev.options, "readers", READERS_VALUES);
|
|
1919
|
+
if (invalid !== void 0) {
|
|
1920
|
+
problems.push({ file: plan.page.file, level: "error", message: `Eval "${ev.name}": ai ${invalid}` });
|
|
1921
|
+
}
|
|
1922
|
+
}
|
|
1923
|
+
const data = plan.page.frontmatter.data;
|
|
1924
|
+
const readers = [
|
|
1925
|
+
...new Set(
|
|
1926
|
+
personaIds(data["personas"]).flatMap((id) => {
|
|
1927
|
+
const record = byId.get(id.toLowerCase());
|
|
1928
|
+
return record === void 0 ? [] : [record];
|
|
1929
|
+
})
|
|
1930
|
+
)
|
|
1931
|
+
];
|
|
1932
|
+
if (readers.length === 0) continue;
|
|
1933
|
+
const section = renderReaders(readers);
|
|
1934
|
+
for (const ev of opted) {
|
|
1935
|
+
if (ev.options["readers"] !== "personas") continue;
|
|
1936
|
+
ev.readers = { personas: readers.map((r) => r.id), section, files: readers.map((r) => r.path) };
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
return problems;
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1718
1942
|
// src/docevals/core/baseline.ts
|
|
1719
1943
|
import { createHash } from "node:crypto";
|
|
1720
1944
|
import { mkdirSync, readFileSync as readFileSync3, renameSync, writeFileSync } from "node:fs";
|
|
1721
|
-
import { dirname as dirname4, relative as relative3, resolve as
|
|
1945
|
+
import { dirname as dirname4, relative as relative3, resolve as resolve6 } from "node:path";
|
|
1722
1946
|
var DEFAULT_BASELINE_PATH = ".manni-docevals-baseline.json";
|
|
1723
1947
|
var BASELINE_VERSION = 1;
|
|
1724
1948
|
var FINGERPRINT_RE = /^[0-9a-f]{16}$/;
|
|
1725
1949
|
function canonicalFilePath(file, ctx) {
|
|
1726
1950
|
if (!ctx) return file;
|
|
1727
1951
|
const from = ctx.runBase ?? ctx.base;
|
|
1728
|
-
return relative3(ctx.base,
|
|
1952
|
+
return relative3(ctx.base, resolve6(from, file)).replace(/\\/g, "/");
|
|
1729
1953
|
}
|
|
1730
1954
|
function fingerprint(f) {
|
|
1731
1955
|
const parts = [f.evalName, f.ruleId ?? ""];
|
|
@@ -1895,10 +2119,10 @@ function countFingerprints(baseline) {
|
|
|
1895
2119
|
}
|
|
1896
2120
|
|
|
1897
2121
|
// src/docevals/core/since.ts
|
|
1898
|
-
import { resolve as
|
|
2122
|
+
import { resolve as resolve7 } from "node:path";
|
|
1899
2123
|
var GIT_TIMEOUT_MS = 3e4;
|
|
1900
2124
|
function changedKey(absPath) {
|
|
1901
|
-
const abs =
|
|
2125
|
+
const abs = resolve7(absPath);
|
|
1902
2126
|
return process.platform === "win32" ? abs.toLowerCase() : abs;
|
|
1903
2127
|
}
|
|
1904
2128
|
function stderrOf(result) {
|
|
@@ -1949,14 +2173,14 @@ async function changedFilesSince(ref, root, exec) {
|
|
|
1949
2173
|
const changed = /* @__PURE__ */ new Set();
|
|
1950
2174
|
for (const rel of diff.stdout.split("\0")) {
|
|
1951
2175
|
if (rel === "") continue;
|
|
1952
|
-
changed.add(changedKey(
|
|
2176
|
+
changed.add(changedKey(resolve7(topLevel, rel)));
|
|
1953
2177
|
}
|
|
1954
2178
|
return changed;
|
|
1955
2179
|
}
|
|
1956
2180
|
|
|
1957
2181
|
// src/docevals/core/newer-than.ts
|
|
1958
2182
|
import { statSync as statSync2 } from "node:fs";
|
|
1959
|
-
import { relative as relative4, resolve as
|
|
2183
|
+
import { relative as relative4, resolve as resolve8 } from "node:path";
|
|
1960
2184
|
var GIT_TIMEOUT_MS2 = 3e4;
|
|
1961
2185
|
async function git2(exec, args, cwd) {
|
|
1962
2186
|
const result = await exec(args, { cwd, timeoutMs: GIT_TIMEOUT_MS2 });
|
|
@@ -1970,7 +2194,7 @@ async function git2(exec, args, cwd) {
|
|
|
1970
2194
|
function keysOf(stdout, topLevel) {
|
|
1971
2195
|
const keys = /* @__PURE__ */ new Set();
|
|
1972
2196
|
for (const rel of stdout.split("\0")) {
|
|
1973
|
-
if (rel !== "") keys.add(changedKey(
|
|
2197
|
+
if (rel !== "") keys.add(changedKey(resolve8(topLevel, rel)));
|
|
1974
2198
|
}
|
|
1975
2199
|
return keys;
|
|
1976
2200
|
}
|
|
@@ -2064,124 +2288,6 @@ function groupTargetsByEval(targets) {
|
|
|
2064
2288
|
|
|
2065
2289
|
// src/docevals/judge/cache.ts
|
|
2066
2290
|
import { buildCacheKey, JsonCache, sha256 } from "@hawkeyexl/inference";
|
|
2067
|
-
|
|
2068
|
-
// src/docevals/judge/prompt.ts
|
|
2069
|
-
var PROMPT_VERSION = 4;
|
|
2070
|
-
var JUDGE_SYSTEM_PROMPT = [
|
|
2071
|
-
"You are a meticulous technical documentation judge. You evaluate whether a",
|
|
2072
|
-
"documentation page satisfies a specific assertion.",
|
|
2073
|
-
"",
|
|
2074
|
-
"Rules:",
|
|
2075
|
-
"- Judge ONLY the stated assertion against the supplied page content. Do not",
|
|
2076
|
-
" invent requirements the assertion does not state.",
|
|
2077
|
-
'- "match" is "pass" only when the assertion is fully satisfied by the page.',
|
|
2078
|
-
'- Use "partial" when the page partially satisfies the assertion.',
|
|
2079
|
-
'- Use "fail" when the page does not satisfy the assertion.',
|
|
2080
|
-
'- Quote the specific page text you relied on in "observed". If the page',
|
|
2081
|
-
" lacks relevant content, say so explicitly.",
|
|
2082
|
-
"- Be conservative with confidence: reserve values above 0.9 for verdicts a",
|
|
2083
|
-
" careful human reviewer would certainly agree with.",
|
|
2084
|
-
"Respond with a JSON object matching the provided schema."
|
|
2085
|
-
].join("\n");
|
|
2086
|
-
function cleanBody(body) {
|
|
2087
|
-
const out = [];
|
|
2088
|
-
let fence = null;
|
|
2089
|
-
for (const line of body.split("\n")) {
|
|
2090
|
-
const marker = /^(\s*)(```+|~~~+)/.exec(line)?.[2];
|
|
2091
|
-
if (fence) {
|
|
2092
|
-
out.push(line);
|
|
2093
|
-
if (marker?.startsWith(fence)) fence = null;
|
|
2094
|
-
continue;
|
|
2095
|
-
}
|
|
2096
|
-
if (marker !== void 0) {
|
|
2097
|
-
fence = marker;
|
|
2098
|
-
out.push(line);
|
|
2099
|
-
continue;
|
|
2100
|
-
}
|
|
2101
|
-
out.push(
|
|
2102
|
-
line.replace(/\{\/\*[\s\S]*?\*\/\}/g, "").replace(/<!--[\s\S]*?-->/g, "").replace(/^(import|export)\s.*$/, "")
|
|
2103
|
-
);
|
|
2104
|
-
}
|
|
2105
|
-
return out.join("\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
2106
|
-
}
|
|
2107
|
-
function buildUserContent(ev, body, targetLabel = "body") {
|
|
2108
|
-
const parts = [
|
|
2109
|
-
`# Assertion`,
|
|
2110
|
-
ev.assertion ?? ""
|
|
2111
|
-
];
|
|
2112
|
-
if (ev.evidence) {
|
|
2113
|
-
parts.push("", `# Where to look`, ev.evidence);
|
|
2114
|
-
}
|
|
2115
|
-
if (ev.examples?.pass || ev.examples?.fail) {
|
|
2116
|
-
parts.push("", "# Anchors");
|
|
2117
|
-
for (const anchor of ev.examples.pass ?? []) {
|
|
2118
|
-
parts.push(`A passing page: ${anchor}`);
|
|
2119
|
-
}
|
|
2120
|
-
for (const anchor of ev.examples.fail ?? []) {
|
|
2121
|
-
parts.push(`A failing page: ${anchor}`);
|
|
2122
|
-
}
|
|
2123
|
-
}
|
|
2124
|
-
const isBody = targetLabel === "body";
|
|
2125
|
-
parts.push(
|
|
2126
|
-
"",
|
|
2127
|
-
isBody ? "# Page content" : `# Page content (${targetLabel})`,
|
|
2128
|
-
"",
|
|
2129
|
-
isBody ? cleanBody(body) : body
|
|
2130
|
-
);
|
|
2131
|
-
return parts.join("\n");
|
|
2132
|
-
}
|
|
2133
|
-
var EVIDENCE_SYSTEM_PROMPT = [
|
|
2134
|
-
"You are gathering evidence from one part of a documentation page so that a",
|
|
2135
|
-
"judge can later evaluate an assertion about the whole page.",
|
|
2136
|
-
"",
|
|
2137
|
-
"Rules:",
|
|
2138
|
-
"- Do NOT decide whether the assertion holds. You are seeing one part; the",
|
|
2139
|
-
" part that settles it may be elsewhere.",
|
|
2140
|
-
"- Quote page text verbatim. Quote anything that supports the assertion and",
|
|
2141
|
-
" anything that contradicts it.",
|
|
2142
|
-
"- Quote only what bears on this assertion. An empty list is the right",
|
|
2143
|
-
" answer for a part that says nothing about it.",
|
|
2144
|
-
"Respond with a JSON object matching the provided schema."
|
|
2145
|
-
].join("\n");
|
|
2146
|
-
var EVIDENCE_SCHEMA = {
|
|
2147
|
-
type: "object",
|
|
2148
|
-
required: ["supports", "contradicts"],
|
|
2149
|
-
properties: {
|
|
2150
|
-
supports: { type: "array", items: { type: "string" } },
|
|
2151
|
-
contradicts: { type: "array", items: { type: "string" } }
|
|
2152
|
-
},
|
|
2153
|
-
additionalProperties: false
|
|
2154
|
-
};
|
|
2155
|
-
function buildEvidenceUser(ev, chunk, part) {
|
|
2156
|
-
return [
|
|
2157
|
-
"# Assertion (do not judge it \u2014 only gather evidence)",
|
|
2158
|
-
ev.assertion ?? "",
|
|
2159
|
-
...ev.evidence ? ["", "# Where to look", ev.evidence] : [],
|
|
2160
|
-
"",
|
|
2161
|
-
`# Page content (${partLabel(part.index, part.total)})`,
|
|
2162
|
-
"",
|
|
2163
|
-
chunk
|
|
2164
|
-
].join("\n");
|
|
2165
|
-
}
|
|
2166
|
-
function renderEvidence(parts, total) {
|
|
2167
|
-
const supports = parts.flatMap((p) => p.supports);
|
|
2168
|
-
const contradicts = parts.flatMap((p) => p.contradicts);
|
|
2169
|
-
const lines = [
|
|
2170
|
-
`The page was too long to read in one pass, so it was read in ${String(total)} parts`,
|
|
2171
|
-
"and the passages bearing on this assertion were collected below. Judge the",
|
|
2172
|
-
"assertion against this evidence. Absence of a quotation is weak evidence of",
|
|
2173
|
-
"absence in the page: parts that bore on nothing contributed nothing.",
|
|
2174
|
-
"",
|
|
2175
|
-
"## Passages supporting the assertion",
|
|
2176
|
-
...supports.length > 0 ? supports.map((q) => `- ${q}`) : ["(none)"],
|
|
2177
|
-
"",
|
|
2178
|
-
"## Passages contradicting the assertion",
|
|
2179
|
-
...contradicts.length > 0 ? contradicts.map((q) => `- ${q}`) : ["(none)"]
|
|
2180
|
-
];
|
|
2181
|
-
return lines.join("\n");
|
|
2182
|
-
}
|
|
2183
|
-
|
|
2184
|
-
// src/docevals/judge/cache.ts
|
|
2185
2291
|
var VerdictCache = class _VerdictCache extends JsonCache {
|
|
2186
2292
|
/** An ensemble is cacheable only if every run produced a verdict. */
|
|
2187
2293
|
static usable(runs) {
|
|
@@ -2219,7 +2325,7 @@ function judgeCacheBody(chunkChars, text) {
|
|
|
2219
2325
|
return `chunk${String(chunkChars)}
|
|
2220
2326
|
${text}`;
|
|
2221
2327
|
}
|
|
2222
|
-
function cacheKey(provider, model, runs, temperature, body, ev) {
|
|
2328
|
+
function cacheKey(provider, model, runs, temperature, body, ev, readers) {
|
|
2223
2329
|
const evalFingerprint = JSON.stringify({
|
|
2224
2330
|
assertion: ev.assertion,
|
|
2225
2331
|
evidence: ev.evidence,
|
|
@@ -2234,7 +2340,8 @@ function cacheKey(provider, model, runs, temperature, body, ev) {
|
|
|
2234
2340
|
`t${temperature}`,
|
|
2235
2341
|
// Pre-hashed: page bodies are large and key parts should stay short.
|
|
2236
2342
|
sha256(body),
|
|
2237
|
-
sha256(evalFingerprint)
|
|
2343
|
+
sha256(evalFingerprint),
|
|
2344
|
+
...readers === void 0 ? [] : [sha256(readers)]
|
|
2238
2345
|
]);
|
|
2239
2346
|
}
|
|
2240
2347
|
|
|
@@ -2273,7 +2380,7 @@ function selfPreferenceOf(plan, ev, model) {
|
|
|
2273
2380
|
}
|
|
2274
2381
|
|
|
2275
2382
|
// src/docevals/core/engine.ts
|
|
2276
|
-
import { resolve as
|
|
2383
|
+
import { resolve as resolve9 } from "node:path";
|
|
2277
2384
|
var GENERATION_UNAVAILABLE = "no command and script generation unavailable (configure a provider or run `manni docevals generate`)";
|
|
2278
2385
|
function unsupportedTarget(ev) {
|
|
2279
2386
|
const target = ev.target;
|
|
@@ -2351,7 +2458,7 @@ function resolveBaseline(results, config, options, cwd, problems) {
|
|
|
2351
2458
|
const ctx = { base: config.configDir, runBase: cwd };
|
|
2352
2459
|
const read = (from) => {
|
|
2353
2460
|
try {
|
|
2354
|
-
return readBaseline(
|
|
2461
|
+
return readBaseline(resolve9(config.configDir, from), from);
|
|
2355
2462
|
} catch (e) {
|
|
2356
2463
|
if (!wants) throw e;
|
|
2357
2464
|
problems.push({
|
|
@@ -2382,7 +2489,7 @@ function resolveBaseline(results, config, options, cwd, problems) {
|
|
|
2382
2489
|
};
|
|
2383
2490
|
}
|
|
2384
2491
|
const next = buildBaseline(results, options.toolVersion ?? "unknown", ctx);
|
|
2385
|
-
writeBaselineFile(
|
|
2492
|
+
writeBaselineFile(resolve9(config.configDir, writeTo), next, writeTo);
|
|
2386
2493
|
const { added, removed } = diffBaselines(overwriting, next);
|
|
2387
2494
|
const accepted = applyBaseline(results, next, ctx);
|
|
2388
2495
|
if (config.baseline !== writeTo) {
|
|
@@ -2436,7 +2543,9 @@ function applySelection(plans, config, options, requireRunnable = true) {
|
|
|
2436
2543
|
return true;
|
|
2437
2544
|
}
|
|
2438
2545
|
function scopeManifests(plan) {
|
|
2439
|
-
|
|
2546
|
+
const manifests = plan.page.external?.evalManifests ?? [];
|
|
2547
|
+
const records = [...new Set(plan.evals.flatMap((ev) => ev.readers?.files ?? []))];
|
|
2548
|
+
return records.length === 0 ? manifests : [...manifests, ...records];
|
|
2440
2549
|
}
|
|
2441
2550
|
function sinceSelects(plan, changed) {
|
|
2442
2551
|
return [plan.page.absPath, ...scopeManifests(plan)].some(
|
|
@@ -2631,6 +2740,9 @@ Point \`defaults.suite\` at a suite in ${config.configPath}, or give the pages a
|
|
|
2631
2740
|
...options.aiOnly === true ? { aiOnly: true } : {}
|
|
2632
2741
|
})
|
|
2633
2742
|
);
|
|
2743
|
+
if (options.deterministicOnly !== true && options.judge !== void 0) {
|
|
2744
|
+
problems.push(...await resolveReaders(plans, config, cwd));
|
|
2745
|
+
}
|
|
2634
2746
|
if (changed !== null || windowMs !== void 0) {
|
|
2635
2747
|
const recent = windowMs === void 0 ? null : await recentPages(plans, windowMs, cwd, exec);
|
|
2636
2748
|
scope = {
|
|
@@ -2965,13 +3077,14 @@ export {
|
|
|
2965
3077
|
registerGrader,
|
|
2966
3078
|
resolvePage,
|
|
2967
3079
|
resolvePages,
|
|
2968
|
-
assertRegisteredGraders,
|
|
2969
3080
|
JUDGE_SYSTEM_PROMPT,
|
|
2970
3081
|
buildUserContent,
|
|
2971
3082
|
EVIDENCE_SYSTEM_PROMPT,
|
|
2972
3083
|
EVIDENCE_SCHEMA,
|
|
2973
3084
|
buildEvidenceUser,
|
|
2974
3085
|
renderEvidence,
|
|
3086
|
+
resolveReaders,
|
|
3087
|
+
assertRegisteredGraders,
|
|
2975
3088
|
sha256,
|
|
2976
3089
|
VerdictCache,
|
|
2977
3090
|
judgeCacheBody,
|
|
@@ -2980,4 +3093,4 @@ export {
|
|
|
2980
3093
|
applySelection,
|
|
2981
3094
|
runEvals
|
|
2982
3095
|
};
|
|
2983
|
-
//# sourceMappingURL=chunk-
|
|
3096
|
+
//# sourceMappingURL=chunk-NQFSXLYK.js.map
|