@hawkeyexl/manni 4.22.0 → 4.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{batch-C3NN2YXB.js → batch-DPYBMRVD.js} +13 -13
- package/dist/{build-CEVEAHN7.js → build-LEKUMGEC.js} +13 -13
- package/dist/{calibrate-CSKPY5AK.js → calibrate-TYONPNG4.js} +14 -14
- package/dist/{capture-3HDBIHH6.js → capture-2EPHIAZT.js} +12 -12
- package/dist/check-ADCSXGBK.js +57 -0
- package/dist/{check-KGJBV42O.js → check-HWEDHABD.js} +10 -10
- package/dist/{check-MZSXCS2M.js → check-J2KQI7IW.js} +14 -14
- package/dist/check-L5AUSTE6.js +57 -0
- package/dist/{check-QNHLTYPN.js → check-SQVQE4E4.js} +13 -13
- package/dist/{chunk-6UHEMPEY.js → chunk-2GPF4OEF.js} +2 -2
- package/dist/{chunk-MR5JWMC2.js → chunk-2MOXVM6H.js} +2 -2
- package/dist/{chunk-E3HYSNS6.js → chunk-2QK25SLZ.js} +3 -3
- package/dist/{chunk-BLDL23RY.js → chunk-2UJOQ6CB.js} +9 -9
- package/dist/{chunk-S7V4F7HC.js → chunk-3CBGLUJX.js} +3 -3
- package/dist/{chunk-OHMLEITS.js → chunk-3USSSKLA.js} +2 -2
- package/dist/{chunk-A67EJ3J6.js → chunk-5JXA75XB.js} +45 -6
- package/dist/chunk-5JXA75XB.js.map +1 -0
- package/dist/{chunk-CQTESLC5.js → chunk-6QNA7UX2.js} +2 -2
- package/dist/{chunk-IDDRHB7E.js → chunk-6RENCXLC.js} +10 -5
- package/dist/chunk-6RENCXLC.js.map +1 -0
- package/dist/{chunk-ZT3ERG4B.js → chunk-72UN462G.js} +11 -3
- package/dist/chunk-72UN462G.js.map +1 -0
- package/dist/{chunk-ZKIXGFID.js → chunk-76Y3JATE.js} +2 -2
- package/dist/{chunk-ZTRC37NH.js → chunk-7M3MBFG7.js} +3 -3
- package/dist/{chunk-JA7DWOVV.js → chunk-7NSFGAAQ.js} +8 -7
- package/dist/chunk-7NSFGAAQ.js.map +1 -0
- package/dist/{chunk-PX7OTUNU.js → chunk-AJCUKL43.js} +5 -5
- package/dist/{chunk-4LYVTR2T.js → chunk-AOLCEULZ.js} +8 -8
- package/dist/{chunk-LCMBG4LY.js → chunk-AZKNB2T3.js} +4 -4
- package/dist/{chunk-VZSATUI7.js → chunk-B4ECIBLF.js} +3 -3
- package/dist/{chunk-CHTSA3YR.js → chunk-B4POKRCS.js} +5 -5
- package/dist/chunk-BA7BQBWV.js +311 -0
- package/dist/chunk-BA7BQBWV.js.map +1 -0
- package/dist/{chunk-XQKRD5A3.js → chunk-BOCJTOKA.js} +2 -2
- package/dist/{chunk-O6IDYZVW.js → chunk-C2QE4FSZ.js} +3 -3
- package/dist/{chunk-A5YUK3SG.js → chunk-CLUUSZDY.js} +10 -10
- package/dist/{chunk-Q7FFJMFO.js → chunk-CWPRB7SA.js} +5 -5
- package/dist/{chunk-WW4JATBJ.js → chunk-DWUK6YNX.js} +11 -11
- package/dist/{chunk-JVE5YQN4.js → chunk-E75CMOR3.js} +3 -3
- package/dist/{chunk-64DULZIG.js → chunk-EAF4K7IK.js} +3 -3
- package/dist/{chunk-64DULZIG.js.map → chunk-EAF4K7IK.js.map} +1 -1
- package/dist/{chunk-FXE5K56B.js → chunk-EBBJFXMX.js} +3 -3
- package/dist/{chunk-FTSNG6DZ.js → chunk-EPN67ZNX.js} +14 -14
- package/dist/{chunk-K5LBIAOM.js → chunk-FBIBR4CH.js} +10 -9
- package/dist/{chunk-ZX4TOTZS.js → chunk-FJYIPHWK.js} +3 -3
- package/dist/{chunk-V27DOGAO.js → chunk-GCHEVTCJ.js} +2 -2
- package/dist/{chunk-GMOAW2EG.js → chunk-GIHIONJH.js} +3 -2
- package/dist/chunk-GIHIONJH.js.map +1 -0
- package/dist/{chunk-QJJPTS6L.js → chunk-I4KDAO6P.js} +3 -3
- package/dist/{chunk-JL5FHNQK.js → chunk-JZWQQOUN.js} +6 -6
- package/dist/{chunk-LMS2RWDS.js → chunk-K4YR4PY2.js} +6 -6
- package/dist/{chunk-562QZKAB.js → chunk-KX6HRTLH.js} +2 -2
- package/dist/{chunk-ZW4YASUB.js → chunk-L3DOX3UL.js} +4 -4
- package/dist/{chunk-CPYQ4BJK.js → chunk-LHP56Q45.js} +5 -5
- package/dist/{chunk-57LZPG4V.js → chunk-LT3STF5K.js} +4 -4
- package/dist/{chunk-5LQX57BW.js → chunk-MGQNGW6I.js} +2 -2
- package/dist/{chunk-TJYJ4BNK.js → chunk-MPRVAMO3.js} +4 -4
- package/dist/{chunk-TR5TNPWT.js → chunk-N2T6RLSE.js} +2 -2
- package/dist/{chunk-TR5TNPWT.js.map → chunk-N2T6RLSE.js.map} +1 -1
- package/dist/{chunk-37Q7WEJJ.js → chunk-OL3Z7KPQ.js} +7 -7
- package/dist/{chunk-RAN3CF33.js → chunk-P6LRDWMJ.js} +12 -12
- package/dist/{chunk-IXFFVI5S.js → chunk-QJGPOFNB.js} +3 -3
- package/dist/{chunk-46MMIJWR.js → chunk-QJL57GPX.js} +2 -2
- package/dist/{chunk-2VLZDU4E.js → chunk-QR55QXJ7.js} +10 -10
- package/dist/{chunk-YB3KD5RI.js → chunk-QWVIGKBM.js} +2 -2
- package/dist/{chunk-KIUFBUUZ.js → chunk-RZ6OONZU.js} +4 -4
- package/dist/{chunk-UQI463L3.js → chunk-SZMJ24FR.js} +8 -8
- package/dist/{chunk-W5OZMYMX.js → chunk-TLY44PCL.js} +2 -2
- package/dist/{chunk-IC3FJWIF.js → chunk-TOVSR2YO.js} +2 -2
- package/dist/{chunk-XSP3TUFN.js → chunk-TVLIJ6ZM.js} +4 -4
- package/dist/{chunk-BY3635RR.js → chunk-UQYDLEBS.js} +7 -7
- package/dist/{chunk-TWYJ2TVS.js → chunk-VTJAY3WN.js} +5 -5
- package/dist/{chunk-EL2KNRC3.js → chunk-WHECOVH2.js} +3 -3
- package/dist/{chunk-63EQKVNT.js → chunk-WPHPLVS3.js} +16 -16
- package/dist/{chunk-SCKVDD4E.js → chunk-XVL7DYWM.js} +4 -4
- package/dist/{chunk-HYEKQ22B.js → chunk-Y4O737F7.js} +3 -3
- package/dist/{chunk-VSHMXMBZ.js → chunk-YBPXVBSY.js} +2 -2
- package/dist/{chunk-6SVHI2U6.js → chunk-YJHH2DHV.js} +2 -2
- package/dist/{chunk-XTMONCQE.js → chunk-YUCH6WJY.js} +2 -2
- package/dist/{cli-YGMXZ46V.js → cli-4R5HIGG4.js} +31 -16
- package/dist/{cli-YGMXZ46V.js.map → cli-4R5HIGG4.js.map} +1 -1
- package/dist/{cli-W7B2PNZO.js → cli-BF6KB3EJ.js} +32 -17
- package/dist/{cli-W7B2PNZO.js.map → cli-BF6KB3EJ.js.map} +1 -1
- package/dist/{cli-6476FRBK.js → cli-DXOHHWZK.js} +13 -13
- package/dist/{cli-FGCHGJYZ.js → cli-MPMECIQH.js} +143 -55
- package/dist/cli-MPMECIQH.js.map +1 -0
- package/dist/{cli-Z3ART5DN.js → cli-NDYBQ755.js} +18 -18
- package/dist/{cli-YINQL2NI.js → cli-SJA66MIP.js} +20 -20
- package/dist/{cli-7XT7O5YM.js → cli-TBAOKTMV.js} +13 -13
- package/dist/{cli-ULHJTJHH.js → cli-TWGGMUXX.js} +39 -27
- package/dist/{cli-ULHJTJHH.js.map → cli-TWGGMUXX.js.map} +1 -1
- package/dist/{cli-JE4LG35H.js → cli-V2BJYNMF.js} +2 -2
- package/dist/{cli-U3622DIB.js → cli-XGCK2LUV.js} +17 -17
- package/dist/{cli-4QAH3DBX.js → cli-XXN75A42.js} +7 -7
- package/dist/cli.js +15 -15
- package/dist/docmeta.js +6 -6
- package/dist/{github-YHJABBUI.js → github-NQQTH5JK.js} +14 -14
- package/dist/github-NWL2XGE7.js +48 -0
- package/dist/{github-64ZVAUIT.js → github-WBIEYSM7.js} +10 -10
- package/dist/index.d.ts +31 -2
- package/dist/index.js +117 -111
- package/dist/index.js.map +1 -1
- package/dist/{json-QNGJFUY2.js → json-IVHRVOGQ.js} +15 -15
- package/dist/{json-YTKUFNO3.js → json-J4TONMKY.js} +2 -2
- package/dist/{json-CVOVXB7O.js → json-QQAK73QQ.js} +10 -10
- package/dist/{labels-5WOKC3VR.js → labels-VI2I5YFD.js} +9 -9
- package/dist/{lint-OQGB4DWJ.js → lint-VB5A3ENL.js} +10 -10
- package/dist/{list-PN6JKYNX.js → list-3XRFX2Y3.js} +11 -11
- package/dist/{list-OQ3IYV2W.js → list-LMYCD5G5.js} +14 -14
- package/dist/{list-EDAB7X5Y.js → list-LOS7FTFD.js} +10 -10
- package/dist/{page-TPNMHL27.js → page-3Y4EGYUO.js} +9 -9
- package/dist/{prepare-3V2QYBKL.js → prepare-JK6XKBZB.js} +11 -11
- package/dist/{pretty-K3M4AW2D.js → pretty-DR4GHOJG.js} +10 -10
- package/dist/{pretty-HO2LYG5N.js → pretty-G2J5UEXC.js} +14 -14
- package/dist/pretty-GCEIQ3FP.js +65 -0
- package/dist/{reporters-YVLLFBO5.js → reporters-43LBUWEE.js} +9 -9
- package/dist/{reporters-4R2E7PRJ.js → reporters-OWYFZD4S.js} +4 -4
- package/dist/{run-H4BOR2FR.js → run-G6G55SWJ.js} +11 -11
- package/dist/{sarif-GWHWJJFP.js → sarif-CN7RSIKH.js} +8 -8
- package/dist/sarif-FR26WNVT.js +49 -0
- package/dist/{sarif-YBFD5OUL.js → sarif-GWTNYCZJ.js} +8 -8
- package/dist/strategy-3EZUOE2T.js +59 -0
- package/dist/{term-33YSMISR.js → term-5WITRS3M.js} +18 -18
- package/dist/{validate-6R5UBDGU.js → validate-TDIEFXRQ.js} +4 -4
- package/dist/validate-TDIEFXRQ.js.map +1 -0
- package/package.json +1 -1
- package/plugin/manni/.claude-plugin/plugin.json +1 -1
- package/dist/check-555TCJGF.js +0 -45
- package/dist/check-KXWHSCCR.js +0 -42
- package/dist/chunk-A67EJ3J6.js.map +0 -1
- package/dist/chunk-GMOAW2EG.js.map +0 -1
- package/dist/chunk-IDDRHB7E.js.map +0 -1
- package/dist/chunk-JA7DWOVV.js.map +0 -1
- package/dist/chunk-ZT3ERG4B.js.map +0 -1
- package/dist/cli-FGCHGJYZ.js.map +0 -1
- package/dist/github-ARGPMQD2.js +0 -32
- package/dist/pretty-EZ2NFU3C.js +0 -49
- package/dist/sarif-SJFVSOBV.js +0 -33
- package/dist/strategy-T56PH2VK.js +0 -205
- package/dist/strategy-T56PH2VK.js.map +0 -1
- /package/dist/{batch-C3NN2YXB.js.map → batch-DPYBMRVD.js.map} +0 -0
- /package/dist/{build-CEVEAHN7.js.map → build-LEKUMGEC.js.map} +0 -0
- /package/dist/{calibrate-CSKPY5AK.js.map → calibrate-TYONPNG4.js.map} +0 -0
- /package/dist/{capture-3HDBIHH6.js.map → capture-2EPHIAZT.js.map} +0 -0
- /package/dist/{check-555TCJGF.js.map → check-ADCSXGBK.js.map} +0 -0
- /package/dist/{check-KGJBV42O.js.map → check-HWEDHABD.js.map} +0 -0
- /package/dist/{check-KXWHSCCR.js.map → check-J2KQI7IW.js.map} +0 -0
- /package/dist/{check-MZSXCS2M.js.map → check-L5AUSTE6.js.map} +0 -0
- /package/dist/{check-QNHLTYPN.js.map → check-SQVQE4E4.js.map} +0 -0
- /package/dist/{chunk-6UHEMPEY.js.map → chunk-2GPF4OEF.js.map} +0 -0
- /package/dist/{chunk-MR5JWMC2.js.map → chunk-2MOXVM6H.js.map} +0 -0
- /package/dist/{chunk-E3HYSNS6.js.map → chunk-2QK25SLZ.js.map} +0 -0
- /package/dist/{chunk-BLDL23RY.js.map → chunk-2UJOQ6CB.js.map} +0 -0
- /package/dist/{chunk-S7V4F7HC.js.map → chunk-3CBGLUJX.js.map} +0 -0
- /package/dist/{chunk-OHMLEITS.js.map → chunk-3USSSKLA.js.map} +0 -0
- /package/dist/{chunk-CQTESLC5.js.map → chunk-6QNA7UX2.js.map} +0 -0
- /package/dist/{chunk-ZKIXGFID.js.map → chunk-76Y3JATE.js.map} +0 -0
- /package/dist/{chunk-ZTRC37NH.js.map → chunk-7M3MBFG7.js.map} +0 -0
- /package/dist/{chunk-PX7OTUNU.js.map → chunk-AJCUKL43.js.map} +0 -0
- /package/dist/{chunk-4LYVTR2T.js.map → chunk-AOLCEULZ.js.map} +0 -0
- /package/dist/{chunk-LCMBG4LY.js.map → chunk-AZKNB2T3.js.map} +0 -0
- /package/dist/{chunk-VZSATUI7.js.map → chunk-B4ECIBLF.js.map} +0 -0
- /package/dist/{chunk-CHTSA3YR.js.map → chunk-B4POKRCS.js.map} +0 -0
- /package/dist/{chunk-XQKRD5A3.js.map → chunk-BOCJTOKA.js.map} +0 -0
- /package/dist/{chunk-O6IDYZVW.js.map → chunk-C2QE4FSZ.js.map} +0 -0
- /package/dist/{chunk-A5YUK3SG.js.map → chunk-CLUUSZDY.js.map} +0 -0
- /package/dist/{chunk-Q7FFJMFO.js.map → chunk-CWPRB7SA.js.map} +0 -0
- /package/dist/{chunk-WW4JATBJ.js.map → chunk-DWUK6YNX.js.map} +0 -0
- /package/dist/{chunk-JVE5YQN4.js.map → chunk-E75CMOR3.js.map} +0 -0
- /package/dist/{chunk-FXE5K56B.js.map → chunk-EBBJFXMX.js.map} +0 -0
- /package/dist/{chunk-FTSNG6DZ.js.map → chunk-EPN67ZNX.js.map} +0 -0
- /package/dist/{chunk-K5LBIAOM.js.map → chunk-FBIBR4CH.js.map} +0 -0
- /package/dist/{chunk-ZX4TOTZS.js.map → chunk-FJYIPHWK.js.map} +0 -0
- /package/dist/{chunk-V27DOGAO.js.map → chunk-GCHEVTCJ.js.map} +0 -0
- /package/dist/{chunk-QJJPTS6L.js.map → chunk-I4KDAO6P.js.map} +0 -0
- /package/dist/{chunk-JL5FHNQK.js.map → chunk-JZWQQOUN.js.map} +0 -0
- /package/dist/{chunk-LMS2RWDS.js.map → chunk-K4YR4PY2.js.map} +0 -0
- /package/dist/{chunk-562QZKAB.js.map → chunk-KX6HRTLH.js.map} +0 -0
- /package/dist/{chunk-ZW4YASUB.js.map → chunk-L3DOX3UL.js.map} +0 -0
- /package/dist/{chunk-CPYQ4BJK.js.map → chunk-LHP56Q45.js.map} +0 -0
- /package/dist/{chunk-57LZPG4V.js.map → chunk-LT3STF5K.js.map} +0 -0
- /package/dist/{chunk-5LQX57BW.js.map → chunk-MGQNGW6I.js.map} +0 -0
- /package/dist/{chunk-TJYJ4BNK.js.map → chunk-MPRVAMO3.js.map} +0 -0
- /package/dist/{chunk-37Q7WEJJ.js.map → chunk-OL3Z7KPQ.js.map} +0 -0
- /package/dist/{chunk-RAN3CF33.js.map → chunk-P6LRDWMJ.js.map} +0 -0
- /package/dist/{chunk-IXFFVI5S.js.map → chunk-QJGPOFNB.js.map} +0 -0
- /package/dist/{chunk-46MMIJWR.js.map → chunk-QJL57GPX.js.map} +0 -0
- /package/dist/{chunk-2VLZDU4E.js.map → chunk-QR55QXJ7.js.map} +0 -0
- /package/dist/{chunk-YB3KD5RI.js.map → chunk-QWVIGKBM.js.map} +0 -0
- /package/dist/{chunk-KIUFBUUZ.js.map → chunk-RZ6OONZU.js.map} +0 -0
- /package/dist/{chunk-UQI463L3.js.map → chunk-SZMJ24FR.js.map} +0 -0
- /package/dist/{chunk-W5OZMYMX.js.map → chunk-TLY44PCL.js.map} +0 -0
- /package/dist/{chunk-IC3FJWIF.js.map → chunk-TOVSR2YO.js.map} +0 -0
- /package/dist/{chunk-XSP3TUFN.js.map → chunk-TVLIJ6ZM.js.map} +0 -0
- /package/dist/{chunk-BY3635RR.js.map → chunk-UQYDLEBS.js.map} +0 -0
- /package/dist/{chunk-TWYJ2TVS.js.map → chunk-VTJAY3WN.js.map} +0 -0
- /package/dist/{chunk-EL2KNRC3.js.map → chunk-WHECOVH2.js.map} +0 -0
- /package/dist/{chunk-63EQKVNT.js.map → chunk-WPHPLVS3.js.map} +0 -0
- /package/dist/{chunk-SCKVDD4E.js.map → chunk-XVL7DYWM.js.map} +0 -0
- /package/dist/{chunk-HYEKQ22B.js.map → chunk-Y4O737F7.js.map} +0 -0
- /package/dist/{chunk-VSHMXMBZ.js.map → chunk-YBPXVBSY.js.map} +0 -0
- /package/dist/{chunk-6SVHI2U6.js.map → chunk-YJHH2DHV.js.map} +0 -0
- /package/dist/{chunk-XTMONCQE.js.map → chunk-YUCH6WJY.js.map} +0 -0
- /package/dist/{cli-6476FRBK.js.map → cli-DXOHHWZK.js.map} +0 -0
- /package/dist/{cli-Z3ART5DN.js.map → cli-NDYBQ755.js.map} +0 -0
- /package/dist/{cli-YINQL2NI.js.map → cli-SJA66MIP.js.map} +0 -0
- /package/dist/{cli-7XT7O5YM.js.map → cli-TBAOKTMV.js.map} +0 -0
- /package/dist/{cli-JE4LG35H.js.map → cli-V2BJYNMF.js.map} +0 -0
- /package/dist/{cli-U3622DIB.js.map → cli-XGCK2LUV.js.map} +0 -0
- /package/dist/{cli-4QAH3DBX.js.map → cli-XXN75A42.js.map} +0 -0
- /package/dist/{github-64ZVAUIT.js.map → github-NQQTH5JK.js.map} +0 -0
- /package/dist/{github-ARGPMQD2.js.map → github-NWL2XGE7.js.map} +0 -0
- /package/dist/{github-YHJABBUI.js.map → github-WBIEYSM7.js.map} +0 -0
- /package/dist/{json-CVOVXB7O.js.map → json-IVHRVOGQ.js.map} +0 -0
- /package/dist/{json-QNGJFUY2.js.map → json-J4TONMKY.js.map} +0 -0
- /package/dist/{json-YTKUFNO3.js.map → json-QQAK73QQ.js.map} +0 -0
- /package/dist/{labels-5WOKC3VR.js.map → labels-VI2I5YFD.js.map} +0 -0
- /package/dist/{lint-OQGB4DWJ.js.map → lint-VB5A3ENL.js.map} +0 -0
- /package/dist/{list-EDAB7X5Y.js.map → list-3XRFX2Y3.js.map} +0 -0
- /package/dist/{list-OQ3IYV2W.js.map → list-LMYCD5G5.js.map} +0 -0
- /package/dist/{list-PN6JKYNX.js.map → list-LOS7FTFD.js.map} +0 -0
- /package/dist/{page-TPNMHL27.js.map → page-3Y4EGYUO.js.map} +0 -0
- /package/dist/{prepare-3V2QYBKL.js.map → prepare-JK6XKBZB.js.map} +0 -0
- /package/dist/{pretty-EZ2NFU3C.js.map → pretty-DR4GHOJG.js.map} +0 -0
- /package/dist/{pretty-HO2LYG5N.js.map → pretty-G2J5UEXC.js.map} +0 -0
- /package/dist/{pretty-K3M4AW2D.js.map → pretty-GCEIQ3FP.js.map} +0 -0
- /package/dist/{reporters-4R2E7PRJ.js.map → reporters-43LBUWEE.js.map} +0 -0
- /package/dist/{reporters-YVLLFBO5.js.map → reporters-OWYFZD4S.js.map} +0 -0
- /package/dist/{run-H4BOR2FR.js.map → run-G6G55SWJ.js.map} +0 -0
- /package/dist/{sarif-GWHWJJFP.js.map → sarif-CN7RSIKH.js.map} +0 -0
- /package/dist/{sarif-SJFVSOBV.js.map → sarif-FR26WNVT.js.map} +0 -0
- /package/dist/{sarif-YBFD5OUL.js.map → sarif-GWTNYCZJ.js.map} +0 -0
- /package/dist/{validate-6R5UBDGU.js.map → strategy-3EZUOE2T.js.map} +0 -0
- /package/dist/{term-33YSMISR.js.map → term-5WITRS3M.js.map} +0 -0
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
GET_FORMATS,
|
|
4
|
+
runGet
|
|
5
|
+
} from "./chunk-7M3MBFG7.js";
|
|
6
|
+
import {
|
|
7
|
+
FINDING_FORMATS,
|
|
8
|
+
JUNIT_CLASSNAME,
|
|
9
|
+
runCheck
|
|
10
|
+
} from "./chunk-Y4O737F7.js";
|
|
11
|
+
import {
|
|
12
|
+
LIST_FORMATS,
|
|
13
|
+
runList
|
|
14
|
+
} from "./chunk-3CBGLUJX.js";
|
|
15
|
+
import {
|
|
16
|
+
renderFindingsGithub
|
|
17
|
+
} from "./chunk-76Y3JATE.js";
|
|
18
|
+
import {
|
|
19
|
+
renderFindingsJson,
|
|
20
|
+
renderGetJson,
|
|
21
|
+
renderListJson
|
|
22
|
+
} from "./chunk-WHECOVH2.js";
|
|
23
|
+
import {
|
|
24
|
+
renderFindingsPretty,
|
|
25
|
+
renderGetPretty,
|
|
26
|
+
renderListPretty
|
|
27
|
+
} from "./chunk-FJYIPHWK.js";
|
|
28
|
+
import {
|
|
29
|
+
formatChoice,
|
|
30
|
+
indexSet,
|
|
31
|
+
loadStrategy,
|
|
32
|
+
resolveStrategyRun
|
|
33
|
+
} from "./chunk-FBIBR4CH.js";
|
|
34
|
+
import {
|
|
35
|
+
FIELD_LABEL,
|
|
36
|
+
renderFindingsSarif
|
|
37
|
+
} from "./chunk-QJL57GPX.js";
|
|
38
|
+
import {
|
|
39
|
+
OMITTED_WHEN_CLEAN,
|
|
40
|
+
renderJunit
|
|
41
|
+
} from "./chunk-2QK25SLZ.js";
|
|
42
|
+
import {
|
|
43
|
+
readStdin,
|
|
44
|
+
splitList,
|
|
45
|
+
withInputs
|
|
46
|
+
} from "./chunk-KX6HRTLH.js";
|
|
47
|
+
import {
|
|
48
|
+
STDIN_TOKEN
|
|
49
|
+
} from "./chunk-QWVIGKBM.js";
|
|
50
|
+
import {
|
|
51
|
+
shouldColor
|
|
52
|
+
} from "./chunk-RNVYGWIC.js";
|
|
53
|
+
import {
|
|
54
|
+
fail
|
|
55
|
+
} from "./chunk-YEUYKR62.js";
|
|
56
|
+
import {
|
|
57
|
+
hasPagePlaceholder,
|
|
58
|
+
pageManifestPath
|
|
59
|
+
} from "./chunk-JF4BC7ZD.js";
|
|
60
|
+
import {
|
|
61
|
+
notice
|
|
62
|
+
} from "./chunk-HX44GB4Z.js";
|
|
63
|
+
import {
|
|
64
|
+
package_default
|
|
65
|
+
} from "./chunk-N2T6RLSE.js";
|
|
66
|
+
|
|
67
|
+
// src/strategy/cli.ts
|
|
68
|
+
import { Command } from "commander";
|
|
69
|
+
|
|
70
|
+
// src/strategy/reporters/junit.ts
|
|
71
|
+
var MESSAGE_LABEL = new RegExp(`message="${FIELD_LABEL.source.slice(1)}`, "g");
|
|
72
|
+
function renderFindingsJunit(report) {
|
|
73
|
+
return renderJunit(report.results, { frame: report.frame, classname: JUNIT_CLASSNAME }).replace(MESSAGE_LABEL, 'message="');
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// src/strategy/cli.ts
|
|
77
|
+
var PATHS = "files, directories, or globs to read (use - for stdin)";
|
|
78
|
+
function colorFor(options) {
|
|
79
|
+
return shouldColor({ noColor: !options.color, isTTY: process.stdout.isTTY });
|
|
80
|
+
}
|
|
81
|
+
async function coreOptions(paths, options) {
|
|
82
|
+
return {
|
|
83
|
+
inputs: paths,
|
|
84
|
+
...paths.includes(STDIN_TOKEN) ? { stdin: await readStdin() } : {},
|
|
85
|
+
...options.as === void 0 ? {} : { as: options.as },
|
|
86
|
+
...options.ext === void 0 ? {} : { exts: splitList(options.ext) },
|
|
87
|
+
exclude: options.exclude,
|
|
88
|
+
collection: options.collection,
|
|
89
|
+
...options.allowEmpty === true ? { allowEmpty: true } : {},
|
|
90
|
+
...options.gitignore ? {} : { noGitignore: true },
|
|
91
|
+
...options.config === void 0 ? {} : { configPath: options.config },
|
|
92
|
+
onNotice: notice
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function print(text) {
|
|
96
|
+
process.stdout.write(`${text}
|
|
97
|
+
`);
|
|
98
|
+
}
|
|
99
|
+
function renderFindings(report, format, options) {
|
|
100
|
+
let text;
|
|
101
|
+
switch (format) {
|
|
102
|
+
case "pretty":
|
|
103
|
+
text = renderFindingsPretty(report, { color: colorFor(options) });
|
|
104
|
+
break;
|
|
105
|
+
case "json":
|
|
106
|
+
text = renderFindingsJson(report);
|
|
107
|
+
break;
|
|
108
|
+
case "github":
|
|
109
|
+
text = renderFindingsGithub(report);
|
|
110
|
+
break;
|
|
111
|
+
case "sarif":
|
|
112
|
+
text = renderFindingsSarif(report, { onNotice: notice });
|
|
113
|
+
break;
|
|
114
|
+
case "junit":
|
|
115
|
+
text = renderFindingsJunit(report);
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
if (text.length > 0 || !OMITTED_WHEN_CLEAN.has(format)) print(text);
|
|
119
|
+
process.exitCode = report.summary.failed > 0 ? 1 : 0;
|
|
120
|
+
}
|
|
121
|
+
function buildProgram() {
|
|
122
|
+
const program = new Command();
|
|
123
|
+
program.name("strategy").description("Check a docset's pages against its audiences, personas and journeys.").version(package_default.version, "-V, --version").showHelpAfterError("(add --help for usage)").exitOverride();
|
|
124
|
+
withInputs(
|
|
125
|
+
program.command("list").description("List the records as a tree").argument("[paths...]", PATHS),
|
|
126
|
+
"no records"
|
|
127
|
+
).option("-f, --format <format>", `output: ${LIST_FORMATS.join(" | ")}`, "pretty").addHelpText(
|
|
128
|
+
"after",
|
|
129
|
+
[
|
|
130
|
+
"",
|
|
131
|
+
"Examples:",
|
|
132
|
+
" manni strategy list # every collection",
|
|
133
|
+
" manni strategy list -f json # for a script"
|
|
134
|
+
].join("\n")
|
|
135
|
+
).action(async (paths, options) => {
|
|
136
|
+
try {
|
|
137
|
+
const format = formatChoice(options.format, LIST_FORMATS);
|
|
138
|
+
const { entries } = await runList(await coreOptions(paths, options));
|
|
139
|
+
print(format === "json" ? renderListJson(entries) : renderListPretty(entries));
|
|
140
|
+
process.exitCode = 0;
|
|
141
|
+
} catch (err) {
|
|
142
|
+
fail(err);
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
withInputs(
|
|
146
|
+
program.command("get").description("Show one record, its parent, and what names it").argument("<id>", "the record's id, in any case").argument("[paths...]", PATHS),
|
|
147
|
+
"no records"
|
|
148
|
+
).option("-f, --format <format>", `output: ${GET_FORMATS.join(" | ")}`, "pretty").addHelpText("after", ["", "Examples:", " manni strategy get m5", " manni strategy get maya -f json"].join("\n")).action(async (id, paths, options) => {
|
|
149
|
+
try {
|
|
150
|
+
const format = formatChoice(options.format, GET_FORMATS);
|
|
151
|
+
const entry = await runGet({ ...await coreOptions(paths, options), id });
|
|
152
|
+
print(format === "json" ? renderGetJson(entry) : renderGetPretty(entry, { color: colorFor(options) }));
|
|
153
|
+
process.exitCode = 0;
|
|
154
|
+
} catch (err) {
|
|
155
|
+
fail(err);
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
withInputs(
|
|
159
|
+
program.command("check").description("Check the pages against the records").argument("[paths...]", PATHS),
|
|
160
|
+
"no records"
|
|
161
|
+
).option("-f, --format <format>", `output: ${FINDING_FORMATS.join(" | ")}`, "pretty").option("--baseline", "record the findings on the first run; after that, fail only on new ones").addHelpText(
|
|
162
|
+
"after",
|
|
163
|
+
[
|
|
164
|
+
"",
|
|
165
|
+
"Examples:",
|
|
166
|
+
" manni strategy check # every collection",
|
|
167
|
+
" manni strategy check -f github # CI annotations",
|
|
168
|
+
" manni strategy check --baseline # ramp in on an existing docset"
|
|
169
|
+
].join("\n")
|
|
170
|
+
).action(async (paths, options) => {
|
|
171
|
+
try {
|
|
172
|
+
const format = formatChoice(options.format, FINDING_FORMATS);
|
|
173
|
+
const report = await runCheck({
|
|
174
|
+
...await coreOptions(paths, options),
|
|
175
|
+
...options.baseline === true ? { baseline: true } : {}
|
|
176
|
+
});
|
|
177
|
+
renderFindings(report, format, options);
|
|
178
|
+
} catch (err) {
|
|
179
|
+
fail(err);
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
return program;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// src/strategy/core/serving.ts
|
|
186
|
+
import { resolve } from "node:path";
|
|
187
|
+
var SERVING_TYPES = ["persona", "journey"];
|
|
188
|
+
var FIELD_OF = { persona: "personas", journey: "journeys" };
|
|
189
|
+
async function loadServing(opts) {
|
|
190
|
+
const configPath = opts.configPath === void 0 ? {} : { configPath: opts.configPath };
|
|
191
|
+
const run = await resolveStrategyRun({ cwd: opts.cwd, inputs: [], ...configPath });
|
|
192
|
+
if (run.inputs.length === 0) return void 0;
|
|
193
|
+
const { set } = await loadStrategy({ cwd: opts.cwd, inputs: [], allowEmpty: true, ...configPath });
|
|
194
|
+
const records = set.records.filter(
|
|
195
|
+
(r) => SERVING_TYPES.includes(r.type)
|
|
196
|
+
);
|
|
197
|
+
if (records.length === 0) return void 0;
|
|
198
|
+
const index = indexSet(set);
|
|
199
|
+
const pages = /* @__PURE__ */ new Map();
|
|
200
|
+
for (const type of SERVING_TYPES) {
|
|
201
|
+
for (const reference of set.references) {
|
|
202
|
+
if (reference.record || reference.field !== FIELD_OF[type]) continue;
|
|
203
|
+
const named = index.resolve(type, reference.value);
|
|
204
|
+
if (named === void 0) continue;
|
|
205
|
+
const page = resolve(run.base, reference.page);
|
|
206
|
+
const list = pages.get(page) ?? [];
|
|
207
|
+
if (!list.includes(named)) list.push(named);
|
|
208
|
+
pages.set(page, list);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
const manifests = /* @__PURE__ */ new Map();
|
|
212
|
+
const configDir = run.configDir;
|
|
213
|
+
if (configDir !== void 0) {
|
|
214
|
+
for (const page of pages.keys()) {
|
|
215
|
+
for (const m of run.collections.flatMap((c) => c.externalMetadata)) {
|
|
216
|
+
if (!hasPagePlaceholder(m.file)) continue;
|
|
217
|
+
const at = pageManifestPath(m.file, configDir, page);
|
|
218
|
+
if (!("outside" in at) && !manifests.has(at.abs)) manifests.set(at.abs, page);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
return { records, pages, manifests };
|
|
223
|
+
}
|
|
224
|
+
var RETIRED = /* @__PURE__ */ new Set(["draft", "archived"]);
|
|
225
|
+
function retired(entry) {
|
|
226
|
+
return entry.lifecycle !== void 0 && RETIRED.has(entry.lifecycle) ? 1 : 0;
|
|
227
|
+
}
|
|
228
|
+
function worstFirst(a, b) {
|
|
229
|
+
return SERVING_TYPES.indexOf(a.type) - SERVING_TYPES.indexOf(b.type) || retired(a) - retired(b) || b.errors - a.errors || b.warnings - a.warnings || b.notices - a.notices || a.id.localeCompare(b.id, "en", { numeric: true, sensitivity: "base" });
|
|
230
|
+
}
|
|
231
|
+
function impactOf(serving, findings) {
|
|
232
|
+
const entries = /* @__PURE__ */ new Map();
|
|
233
|
+
for (const finding of findings) {
|
|
234
|
+
for (const named of serving.pages.get(finding.page) ?? []) {
|
|
235
|
+
let entry = entries.get(named);
|
|
236
|
+
if (entry === void 0) {
|
|
237
|
+
entry = {
|
|
238
|
+
type: named.type === "persona" ? "persona" : "journey",
|
|
239
|
+
id: named.id,
|
|
240
|
+
...named.title === void 0 ? {} : { title: named.title },
|
|
241
|
+
...named.type === "journey" && named.lifecycle !== void 0 ? { lifecycle: named.lifecycle } : {},
|
|
242
|
+
findings: 0,
|
|
243
|
+
errors: 0,
|
|
244
|
+
warnings: 0,
|
|
245
|
+
notices: 0,
|
|
246
|
+
pages: []
|
|
247
|
+
};
|
|
248
|
+
entries.set(named, entry);
|
|
249
|
+
}
|
|
250
|
+
entry.findings += 1;
|
|
251
|
+
if (finding.severity === "error") entry.errors += 1;
|
|
252
|
+
else if (finding.severity === "warning") entry.warnings += 1;
|
|
253
|
+
else entry.notices += 1;
|
|
254
|
+
if (!entry.pages.includes(finding.file)) entry.pages.push(finding.file);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
return [...entries.values()].sort(worstFirst);
|
|
258
|
+
}
|
|
259
|
+
function listOf(values) {
|
|
260
|
+
if (values.length <= 1) return values.join("");
|
|
261
|
+
return `${values.slice(0, -1).join(", ")} and ${values[values.length - 1] ?? ""}`;
|
|
262
|
+
}
|
|
263
|
+
function plural(n, one) {
|
|
264
|
+
return `${String(n)} ${one}${n === 1 ? "" : "s"}`;
|
|
265
|
+
}
|
|
266
|
+
function servesSentence(records) {
|
|
267
|
+
if (records.length === 0) return void 0;
|
|
268
|
+
return `Serves ${listOf(records.map((r) => r.title === void 0 ? r.id : `${r.id} (${r.title})`))}.`;
|
|
269
|
+
}
|
|
270
|
+
function headingOf(entries) {
|
|
271
|
+
const counts = SERVING_TYPES.flatMap((type) => {
|
|
272
|
+
const n = entries.filter((e) => e.type === type).length;
|
|
273
|
+
return n === 0 ? [] : [plural(n, type)];
|
|
274
|
+
});
|
|
275
|
+
return `The pages with findings serve ${counts.join(" and ")}.`;
|
|
276
|
+
}
|
|
277
|
+
function titleOf(e) {
|
|
278
|
+
return [e.title, e.lifecycle !== void 0 && RETIRED.has(e.lifecycle) ? `(${e.lifecycle})` : void 0].filter((part) => part !== void 0).join(" ");
|
|
279
|
+
}
|
|
280
|
+
function countsOf(e) {
|
|
281
|
+
const levels = [
|
|
282
|
+
e.errors > 0 ? plural(e.errors, "error") : void 0,
|
|
283
|
+
e.warnings > 0 ? plural(e.warnings, "warning") : void 0,
|
|
284
|
+
e.notices > 0 ? plural(e.notices, "notice") : void 0
|
|
285
|
+
].filter((level) => level !== void 0);
|
|
286
|
+
return `${listOf(levels)} on ${plural(e.pages.length, "page")}`;
|
|
287
|
+
}
|
|
288
|
+
function impactLines(entries) {
|
|
289
|
+
if (entries.length === 0) return [];
|
|
290
|
+
const idWidth = Math.max(...entries.map((e) => e.id.length));
|
|
291
|
+
const titleWidth = Math.max(...entries.map((e) => titleOf(e).length));
|
|
292
|
+
const rows = entries.map((e) => ` ${e.id.padEnd(idWidth)} ${titleOf(e).padEnd(titleWidth)} ${countsOf(e)}`);
|
|
293
|
+
return [headingOf(entries), ...rows];
|
|
294
|
+
}
|
|
295
|
+
function impactNotice(entries) {
|
|
296
|
+
if (entries.length === 0) return void 0;
|
|
297
|
+
return {
|
|
298
|
+
title: headingOf(entries),
|
|
299
|
+
lines: entries.map((e) => `${[e.id, titleOf(e)].filter((part) => part !== "").join(" ")}: ${countsOf(e)}`)
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
export {
|
|
304
|
+
buildProgram,
|
|
305
|
+
loadServing,
|
|
306
|
+
impactOf,
|
|
307
|
+
servesSentence,
|
|
308
|
+
impactLines,
|
|
309
|
+
impactNotice
|
|
310
|
+
};
|
|
311
|
+
//# sourceMappingURL=chunk-BA7BQBWV.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/strategy/cli.ts","../src/strategy/reporters/junit.ts","../src/strategy/core/serving.ts"],"sourcesContent":["/**\n * The `strategy` domain's commander program. Mounted by `src/cli.ts` under\n * `manni strategy`; no entry point of its own. The verbs are `list`, `get` and\n * `check` (proposal 0102), and there is no default subcommand.\n *\n * Follows clig.dev as the family does: primary output to stdout, diagnostics\n * to stderr, colour only on a TTY and never under `NO_COLOR`/`--no-color`,\n * exit `0` clean, `1` an error-severity finding, `2` operational/usage.\n */\nimport { Command } from \"commander\";\nimport pkg from \"../../package.json\" with { type: \"json\" };\nimport { readStdin, splitList, withInputs } from \"../shared/cli-options.js\";\nimport { shouldColor } from \"../shared/color.js\";\nimport { fail } from \"../shared/run.js\";\nimport { notice } from \"../shared/warn.js\";\nimport { OMITTED_WHEN_CLEAN, STDIN_TOKEN } from \"../meta/internal.js\";\nimport { runCheck } from \"./commands/check.js\";\nimport { FINDING_FORMATS, type FindingFormat, type StrategyReport } from \"./commands/findings.js\";\nimport { GET_FORMATS, runGet } from \"./commands/get.js\";\nimport { LIST_FORMATS, runList } from \"./commands/list.js\";\nimport { formatChoice, type StrategyCommandOptions } from \"./commands/run.js\";\nimport { renderFindingsGithub } from \"./reporters/github.js\";\nimport { renderFindingsJson, renderGetJson, renderListJson } from \"./reporters/json.js\";\nimport { renderFindingsJunit } from \"./reporters/junit.js\";\nimport { renderFindingsPretty, renderGetPretty, renderListPretty } from \"./reporters/pretty.js\";\nimport { renderFindingsSarif } from \"./reporters/sarif.js\";\n\n/** What commander hands every verb. */\ninterface InputCliOptions {\n as?: string;\n /** `--ext <list>`, comma-separated and given once. */\n ext?: string;\n /** `--exclude <glob>`, repeatable; commander's default value is `[]`. */\n exclude: string[];\n allowEmpty?: boolean;\n /** `--no-gitignore`: `false` when given. */\n gitignore: boolean;\n /** `--collection <name>`, repeatable; commander's default value is `[]`. */\n collection: string[];\n config?: string;\n /** `--no-color`: `false` when given. */\n color: boolean;\n format: string;\n}\n\ninterface CheckCliOptions extends InputCliOptions {\n baseline?: boolean;\n}\n\nconst PATHS = \"files, directories, or globs to read (use - for stdin)\";\n\nfunction colorFor(options: InputCliOptions): boolean {\n return shouldColor({ noColor: !options.color, isTTY: process.stdout.isTTY });\n}\n\n/** The core's shared options from commander's, with stdin read once when `-` is among the paths. */\nasync function coreOptions(paths: string[], options: InputCliOptions): Promise<StrategyCommandOptions> {\n return {\n inputs: paths,\n ...(paths.includes(STDIN_TOKEN) ? { stdin: await readStdin() } : {}),\n ...(options.as === undefined ? {} : { as: options.as }),\n ...(options.ext === undefined ? {} : { exts: splitList(options.ext) }),\n exclude: options.exclude,\n collection: options.collection,\n ...(options.allowEmpty === true ? { allowEmpty: true } : {}),\n ...(options.gitignore ? {} : { noGitignore: true }),\n ...(options.config === undefined ? {} : { configPath: options.config }),\n onNotice: notice,\n };\n}\n\nfunction print(text: string): void {\n process.stdout.write(`${text}\\n`);\n}\n\nfunction renderFindings(report: StrategyReport, format: FindingFormat, options: InputCliOptions): void {\n let text: string;\n switch (format) {\n case \"pretty\":\n text = renderFindingsPretty(report, { color: colorFor(options) });\n break;\n case \"json\":\n text = renderFindingsJson(report);\n break;\n case \"github\":\n text = renderFindingsGithub(report);\n break;\n case \"sarif\":\n text = renderFindingsSarif(report, { onNotice: notice });\n break;\n case \"junit\":\n text = renderFindingsJunit(report);\n break;\n }\n if (text.length > 0 || !OMITTED_WHEN_CLEAN.has(format)) print(text);\n process.exitCode = report.summary.failed > 0 ? 1 : 0;\n}\n\nexport function buildProgram(): Command {\n const program = new Command();\n program\n .name(\"strategy\")\n .description(\"Check a docset's pages against its audiences, personas and journeys.\")\n .version(pkg.version, \"-V, --version\")\n .showHelpAfterError(\"(add --help for usage)\")\n // MUST come before the `.command()` calls below: commander copies the exit\n // callback into each subcommand by value when the subcommand is created.\n .exitOverride();\n\n withInputs(\n program.command(\"list\").description(\"List the records as a tree\").argument(\"[paths...]\", PATHS),\n \"no records\",\n )\n .option(\"-f, --format <format>\", `output: ${LIST_FORMATS.join(\" | \")}`, \"pretty\")\n .addHelpText(\n \"after\",\n [\n \"\",\n \"Examples:\",\n \" manni strategy list # every collection\",\n \" manni strategy list -f json # for a script\",\n ].join(\"\\n\"),\n )\n .action(async (paths: string[], options: InputCliOptions) => {\n try {\n const format = formatChoice(options.format, LIST_FORMATS);\n const { entries } = await runList(await coreOptions(paths, options));\n print(format === \"json\" ? renderListJson(entries) : renderListPretty(entries));\n process.exitCode = 0;\n } catch (err) {\n fail(err);\n }\n });\n\n withInputs(\n program\n .command(\"get\")\n .description(\"Show one record, its parent, and what names it\")\n .argument(\"<id>\", \"the record's id, in any case\")\n .argument(\"[paths...]\", PATHS),\n \"no records\",\n )\n .option(\"-f, --format <format>\", `output: ${GET_FORMATS.join(\" | \")}`, \"pretty\")\n .addHelpText(\"after\", [\"\", \"Examples:\", \" manni strategy get m5\", \" manni strategy get maya -f json\"].join(\"\\n\"))\n .action(async (id: string, paths: string[], options: InputCliOptions) => {\n try {\n const format = formatChoice(options.format, GET_FORMATS);\n const entry = await runGet({ ...(await coreOptions(paths, options)), id });\n print(format === \"json\" ? renderGetJson(entry) : renderGetPretty(entry, { color: colorFor(options) }));\n process.exitCode = 0;\n } catch (err) {\n fail(err);\n }\n });\n\n withInputs(\n program.command(\"check\").description(\"Check the pages against the records\").argument(\"[paths...]\", PATHS),\n \"no records\",\n )\n .option(\"-f, --format <format>\", `output: ${FINDING_FORMATS.join(\" | \")}`, \"pretty\")\n .option(\"--baseline\", \"record the findings on the first run; after that, fail only on new ones\")\n .addHelpText(\n \"after\",\n [\n \"\",\n \"Examples:\",\n \" manni strategy check # every collection\",\n \" manni strategy check -f github # CI annotations\",\n \" manni strategy check --baseline # ramp in on an existing docset\",\n ].join(\"\\n\"),\n )\n .action(async (paths: string[], options: CheckCliOptions) => {\n try {\n const format = formatChoice(options.format, FINDING_FORMATS);\n const report = await runCheck({\n ...(await coreOptions(paths, options)),\n ...(options.baseline === true ? { baseline: true } : {}),\n });\n renderFindings(report, format, options);\n } catch (err) {\n fail(err);\n }\n });\n\n return program;\n}\n","/**\n * JUnit for `check`: meta's renderer over the adapted results, under the\n * `manni.strategy` classname, with each failure's message the finding's own\n * rather than opened by the field's JSON Pointer.\n */\nimport { renderJunit } from \"../../meta/index.js\";\nimport { JUNIT_CLASSNAME, type StrategyReport } from \"../commands/findings.js\";\nimport { FIELD_LABEL } from \"./sarif.js\";\n\n/** A `message=\"` attribute's opening label. The value is escaped, so `message=\"` opens nothing else. */\nconst MESSAGE_LABEL = new RegExp(`message=\"${FIELD_LABEL.source.slice(1)}`, \"g\");\n\nexport function renderFindingsJunit(report: StrategyReport): string {\n return renderJunit(report.results, { frame: report.frame, classname: JUNIT_CLASSNAME }).replace(MESSAGE_LABEL, 'message=\"');\n}\n","/**\n * Whom each page serves, and the impact roll-up over findings on those pages\n * (proposal 0105). Another domain hands in its findings, each with its page's\n * absolute path, and gets back one entry per persona and journey those pages\n * name, worst first. Cite's check is the first caller.\n *\n * Per field, 0102's gate holds: `journeys:` counts only when a journey record\n * exists, and `personas:` only when a persona record does. A value that names\n * no record is left out, since `strategy check` already reports it.\n */\nimport { resolve } from \"node:path\";\nimport { hasPagePlaceholder, pageManifestPath } from \"../../shared/page-manifest.js\";\nimport type { Severity } from \"../../shared/severity.js\";\nimport { loadStrategy } from \"../commands/run.js\";\nimport type { StrategyRecord } from \"../types.js\";\nimport { resolveStrategyRun } from \"./config.js\";\nimport { indexSet } from \"./check.js\";\n\n/** The two record types a page's readers are named by, in the order they print. */\nconst SERVING_TYPES = [\"persona\", \"journey\"] as const;\ntype ServingType = (typeof SERVING_TYPES)[number];\n\nconst FIELD_OF: Readonly<Record<ServingType, \"personas\" | \"journeys\">> = { persona: \"personas\", journey: \"journeys\" };\n\nexport interface ServingSet {\n /** The persona and journey records, in set order. */\n records: StrategyRecord[];\n /** Each page's named records, keyed by absolute path: personas first, then journeys, each once. */\n pages: Map<string, StrategyRecord[]>;\n /**\n * Each named page's `{page}` manifests (0058), absolute, to the page's\n * absolute path: a finding in one counts on its page (proposal 0109).\n */\n manifests: Map<string, string>;\n}\n\nexport interface ServingOptions {\n cwd: string;\n /** The config whose collections hold the records. */\n configPath?: string;\n}\n\n/**\n * Every collection's set, whatever the caller's own inputs. `undefined` when\n * no collection is declared or none holds a persona or journey record. A\n * broken `strategy:` section or an unreadable file throws strategy's error.\n */\nexport async function loadServing(opts: ServingOptions): Promise<ServingSet | undefined> {\n const configPath = opts.configPath === undefined ? {} : { configPath: opts.configPath };\n const run = await resolveStrategyRun({ cwd: opts.cwd, inputs: [], ...configPath });\n if (run.inputs.length === 0) return undefined;\n // ponytail: one walk and one merged view of every collection, on a red run only. Narrow the read to the finding pages if it costs.\n const { set } = await loadStrategy({ cwd: opts.cwd, inputs: [], allowEmpty: true, ...configPath });\n const records = set.records.filter((r): r is StrategyRecord & { type: ServingType } =>\n (SERVING_TYPES as readonly string[]).includes(r.type),\n );\n if (records.length === 0) return undefined;\n\n const index = indexSet(set);\n const pages = new Map<string, StrategyRecord[]>();\n for (const type of SERVING_TYPES) {\n for (const reference of set.references) {\n if (reference.record || reference.field !== FIELD_OF[type]) continue;\n const named = index.resolve(type, reference.value);\n if (named === undefined) continue;\n const page = resolve(run.base, reference.page);\n const list = pages.get(page) ?? [];\n if (!list.includes(named)) list.push(named);\n pages.set(page, list);\n }\n }\n // ponytail: every collection's patterns for every page; a pattern a page's own collection lacks maps a file nobody reports.\n const manifests = new Map<string, string>();\n const configDir = run.configDir;\n if (configDir !== undefined) {\n for (const page of pages.keys()) {\n for (const m of run.collections.flatMap((c) => c.externalMetadata)) {\n if (!hasPagePlaceholder(m.file)) continue;\n const at = pageManifestPath(m.file, configDir, page);\n if (!(\"outside\" in at) && !manifests.has(at.abs)) manifests.set(at.abs, page);\n }\n }\n }\n return { records, pages, manifests };\n}\n\n/** One reported finding, on the page it counts on. */\nexport interface ImpactFinding {\n /** The page's absolute path, the key into `ServingSet.pages`. */\n page: string;\n /** The page as the caller's report spells it. */\n file: string;\n severity: Severity;\n}\n\n/** One persona or journey, and the findings on the pages that name it. */\nexport interface ImpactEntry {\n type: ServingType;\n id: string;\n title?: string;\n /** A journey record's `lifecycle:`, when it has one. */\n lifecycle?: string;\n findings: number;\n errors: number;\n warnings: number;\n notices: number;\n /** Those pages, as the caller spells them, in the order its findings came. */\n pages: string[];\n}\n\n/** A journey that is not live: it sorts after every live one. */\nconst RETIRED = new Set([\"draft\", \"archived\"]);\n\nfunction retired(entry: ImpactEntry): number {\n return entry.lifecycle !== undefined && RETIRED.has(entry.lifecycle) ? 1 : 0;\n}\n\n/** Personas, then journeys. Within each: live first, then errors, warnings and notices, descending, then id. */\nfunction worstFirst(a: ImpactEntry, b: ImpactEntry): number {\n return (\n SERVING_TYPES.indexOf(a.type) - SERVING_TYPES.indexOf(b.type) ||\n retired(a) - retired(b) ||\n b.errors - a.errors ||\n b.warnings - a.warnings ||\n b.notices - a.notices ||\n a.id.localeCompare(b.id, \"en\", { numeric: true, sensitivity: \"base\" })\n );\n}\n\n/** The roll-up: one entry per record a finding's page names, worst first. Empty when none does. */\nexport function impactOf(serving: ServingSet, findings: readonly ImpactFinding[]): ImpactEntry[] {\n const entries = new Map<StrategyRecord, ImpactEntry>();\n for (const finding of findings) {\n for (const named of serving.pages.get(finding.page) ?? []) {\n let entry = entries.get(named);\n if (entry === undefined) {\n entry = {\n type: named.type === \"persona\" ? \"persona\" : \"journey\",\n id: named.id,\n ...(named.title === undefined ? {} : { title: named.title }),\n ...(named.type === \"journey\" && named.lifecycle !== undefined ? { lifecycle: named.lifecycle } : {}),\n findings: 0,\n errors: 0,\n warnings: 0,\n notices: 0,\n pages: [],\n };\n entries.set(named, entry);\n }\n entry.findings += 1;\n if (finding.severity === \"error\") entry.errors += 1;\n else if (finding.severity === \"warning\") entry.warnings += 1;\n else entry.notices += 1;\n if (!entry.pages.includes(finding.file)) entry.pages.push(finding.file);\n }\n }\n return [...entries.values()].sort(worstFirst);\n}\n\n/** `a`, `a and b`, `a, b and c`. */\nfunction listOf(values: readonly string[]): string {\n if (values.length <= 1) return values.join(\"\");\n return `${values.slice(0, -1).join(\", \")} and ${values[values.length - 1] ?? \"\"}`;\n}\n\nfunction plural(n: number, one: string): string {\n return `${String(n)} ${one}${n === 1 ? \"\" : \"s\"}`;\n}\n\n/** `Serves maya (Maya, Documentation Engineer) and m5.`, or `undefined` for no records. */\nexport function servesSentence(records: readonly StrategyRecord[]): string | undefined {\n if (records.length === 0) return undefined;\n return `Serves ${listOf(records.map((r) => (r.title === undefined ? r.id : `${r.id} (${r.title})`)))}.`;\n}\n\n/** `The pages with findings serve 4 personas and 10 journeys.`, naming only the types present. */\nfunction headingOf(entries: readonly ImpactEntry[]): string {\n const counts = SERVING_TYPES.flatMap((type) => {\n const n = entries.filter((e) => e.type === type).length;\n return n === 0 ? [] : [plural(n, type)];\n });\n return `The pages with findings serve ${counts.join(\" and \")}.`;\n}\n\n/** The title, then `(draft)` or `(archived)` for a journey that is not live. */\nfunction titleOf(e: ImpactEntry): string {\n return [e.title, e.lifecycle !== undefined && RETIRED.has(e.lifecycle) ? `(${e.lifecycle})` : undefined]\n .filter((part) => part !== undefined)\n .join(\" \");\n}\n\n/** `3 errors and 1 warning on 2 pages`, zero parts left out. */\nfunction countsOf(e: ImpactEntry): string {\n const levels = [\n e.errors > 0 ? plural(e.errors, \"error\") : undefined,\n e.warnings > 0 ? plural(e.warnings, \"warning\") : undefined,\n e.notices > 0 ? plural(e.notices, \"notice\") : undefined,\n ].filter((level) => level !== undefined);\n return `${listOf(levels)} on ${plural(e.pages.length, \"page\")}`;\n}\n\n/** The pretty block: a heading, then one row per entry, padded to the widest id and title. Empty for no entries. */\nexport function impactLines(entries: readonly ImpactEntry[]): string[] {\n if (entries.length === 0) return [];\n const idWidth = Math.max(...entries.map((e) => e.id.length));\n const titleWidth = Math.max(...entries.map((e) => titleOf(e).length));\n const rows = entries.map((e) => ` ${e.id.padEnd(idWidth)} ${titleOf(e).padEnd(titleWidth)} ${countsOf(e)}`);\n return [headingOf(entries), ...rows];\n}\n\n/**\n * The same roll-up as one annotation (proposal 0109): the heading as its\n * title, then `<id> <title>: <counts>` per entry, unpadded. `undefined` for no\n * entries.\n */\nexport function impactNotice(entries: readonly ImpactEntry[]): { title: string; lines: string[] } | undefined {\n if (entries.length === 0) return undefined;\n return {\n title: headingOf(entries),\n lines: entries.map((e) => `${[e.id, titleOf(e)].filter((part) => part !== \"\").join(\" \")}: ${countsOf(e)}`),\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,SAAS,eAAe;;;ACCxB,IAAM,gBAAgB,IAAI,OAAO,YAAY,YAAY,OAAO,MAAM,CAAC,CAAC,IAAI,GAAG;AAExE,SAAS,oBAAoB,QAAgC;AAClE,SAAO,YAAY,OAAO,SAAS,EAAE,OAAO,OAAO,OAAO,WAAW,gBAAgB,CAAC,EAAE,QAAQ,eAAe,WAAW;AAC5H;;;ADmCA,IAAM,QAAQ;AAEd,SAAS,SAAS,SAAmC;AACnD,SAAO,YAAY,EAAE,SAAS,CAAC,QAAQ,OAAO,OAAO,QAAQ,OAAO,MAAM,CAAC;AAC7E;AAGA,eAAe,YAAY,OAAiB,SAA2D;AACrG,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,GAAI,MAAM,SAAS,WAAW,IAAI,EAAE,OAAO,MAAM,UAAU,EAAE,IAAI,CAAC;AAAA,IAClE,GAAI,QAAQ,OAAO,SAAY,CAAC,IAAI,EAAE,IAAI,QAAQ,GAAG;AAAA,IACrD,GAAI,QAAQ,QAAQ,SAAY,CAAC,IAAI,EAAE,MAAM,UAAU,QAAQ,GAAG,EAAE;AAAA,IACpE,SAAS,QAAQ;AAAA,IACjB,YAAY,QAAQ;AAAA,IACpB,GAAI,QAAQ,eAAe,OAAO,EAAE,YAAY,KAAK,IAAI,CAAC;AAAA,IAC1D,GAAI,QAAQ,YAAY,CAAC,IAAI,EAAE,aAAa,KAAK;AAAA,IACjD,GAAI,QAAQ,WAAW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,EAAE;AAC/G,SAAO,CAAC,UAAU,OAAO,GAAG,GAAG,IAAI;AACrC;AAOO,SAAS,aAAa,SAAiF;AAC5G,MAAI,QAAQ,WAAW,EAAG,QAAO;AACjC,SAAO;AAAA,IACL,OAAO,UAAU,OAAO;AAAA,IACxB,OAAO,QAAQ,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,IAAI,QAAQ,CAAC,CAAC,EAAE,OAAO,CAAC,SAAS,SAAS,EAAE,EAAE,KAAK,GAAG,CAAC,KAAK,SAAS,CAAC,CAAC,EAAE;AAAA,EAC3G;AACF;","names":[]}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
renderCalibration,
|
|
4
4
|
resolveBatchTraces,
|
|
5
5
|
runBatch
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WPHPLVS3.js";
|
|
7
7
|
import {
|
|
8
8
|
discoverConfig,
|
|
9
9
|
labelKey,
|
|
@@ -378,4 +378,4 @@ export {
|
|
|
378
378
|
score,
|
|
379
379
|
runCalibrate
|
|
380
380
|
};
|
|
381
|
-
//# sourceMappingURL=chunk-
|
|
381
|
+
//# sourceMappingURL=chunk-BOCJTOKA.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
canonicalLanguageTag,
|
|
4
4
|
parseLocalizations
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MGQNGW6I.js";
|
|
6
6
|
import {
|
|
7
7
|
GRAPH_NOT_APPLICABLE_TO_VARIANT,
|
|
8
8
|
GRAPH_NOT_SOFTWARE_SUBJECT,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
RDF_TYPE,
|
|
13
13
|
SOFTWARE_SUBJECT_IRIS,
|
|
14
14
|
byCodeUnit
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LHP56Q45.js";
|
|
16
16
|
|
|
17
17
|
// src/graph/core/vector-index.ts
|
|
18
18
|
var MAGIC = new Uint8Array([77, 71, 82, 86]);
|
|
@@ -1337,4 +1337,4 @@ export {
|
|
|
1337
1337
|
artifactContext,
|
|
1338
1338
|
createRetriever
|
|
1339
1339
|
};
|
|
1340
|
-
//# sourceMappingURL=chunk-
|
|
1340
|
+
//# sourceMappingURL=chunk-C2QE4FSZ.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
canonicalLanguage,
|
|
8
8
|
deriveGraph,
|
|
9
9
|
termIndex
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UQYDLEBS.js";
|
|
11
11
|
import {
|
|
12
12
|
EmbedderUnavailableError,
|
|
13
13
|
bodyOf,
|
|
@@ -28,11 +28,11 @@ import {
|
|
|
28
28
|
partitionByLanguage,
|
|
29
29
|
storeToQuads,
|
|
30
30
|
validateGraph
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-EPN67ZNX.js";
|
|
32
32
|
import {
|
|
33
33
|
GraphIndex,
|
|
34
34
|
encodeVectorIndex
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-C2QE4FSZ.js";
|
|
36
36
|
import {
|
|
37
37
|
COPIED_SHARE,
|
|
38
38
|
EVALS_ARE_AUTHOR_FACING,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
questionKey,
|
|
45
45
|
readQuestionFile,
|
|
46
46
|
withExternalMetadata
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-LT3STF5K.js";
|
|
48
48
|
import {
|
|
49
49
|
LOCALIZATIONS_FILENAME,
|
|
50
50
|
UNDETERMINED,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
parseLocalizations,
|
|
56
56
|
searchIndexFilename,
|
|
57
57
|
vectorIndexFilename
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-MGQNGW6I.js";
|
|
59
59
|
import {
|
|
60
60
|
COVERAGE_FIELDS,
|
|
61
61
|
GRAPH_NOT_APPLICABLE_TO_VARIANT,
|
|
@@ -103,12 +103,12 @@ import {
|
|
|
103
103
|
noInputMessage,
|
|
104
104
|
resolveDocumentSet,
|
|
105
105
|
routesFrom
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-LHP56Q45.js";
|
|
107
107
|
import {
|
|
108
108
|
mergeMetaProvenance,
|
|
109
109
|
readRecord,
|
|
110
110
|
splitBody
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-AZKNB2T3.js";
|
|
112
112
|
import {
|
|
113
113
|
findWindows,
|
|
114
114
|
isMissing,
|
|
@@ -117,7 +117,7 @@ import {
|
|
|
117
117
|
pinOfLines,
|
|
118
118
|
spellLines,
|
|
119
119
|
spliceManifestValue
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-KX6HRTLH.js";
|
|
121
121
|
import {
|
|
122
122
|
termLabelSource
|
|
123
123
|
} from "./chunk-DSWKBZWW.js";
|
|
@@ -125,7 +125,7 @@ import {
|
|
|
125
125
|
DocmetaError,
|
|
126
126
|
urlManifestMessage,
|
|
127
127
|
writeFileAtomic
|
|
128
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-QWVIGKBM.js";
|
|
129
129
|
import {
|
|
130
130
|
noticeOnce,
|
|
131
131
|
warn
|
|
@@ -3309,4 +3309,4 @@ export {
|
|
|
3309
3309
|
runStats,
|
|
3310
3310
|
renderStats
|
|
3311
3311
|
};
|
|
3312
|
-
//# sourceMappingURL=chunk-
|
|
3312
|
+
//# sourceMappingURL=chunk-CLUUSZDY.js.map
|
|
@@ -18,24 +18,24 @@ import {
|
|
|
18
18
|
} from "./chunk-MDZXRHIJ.js";
|
|
19
19
|
import {
|
|
20
20
|
declaredAt
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-EBBJFXMX.js";
|
|
22
22
|
import {
|
|
23
23
|
RECORD_TYPES,
|
|
24
24
|
metaProvenanceEntries
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-AZKNB2T3.js";
|
|
26
26
|
import {
|
|
27
27
|
familyMarks,
|
|
28
28
|
loadExternalMetadata,
|
|
29
29
|
memberOf,
|
|
30
30
|
mergeWithMarks,
|
|
31
31
|
provenanceEntries
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-KX6HRTLH.js";
|
|
33
33
|
import {
|
|
34
34
|
__default,
|
|
35
35
|
classifyRef,
|
|
36
36
|
extractFrontmatter,
|
|
37
37
|
integrityOf
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-QWVIGKBM.js";
|
|
39
39
|
import {
|
|
40
40
|
findConfigFileSync,
|
|
41
41
|
ownsKey,
|
|
@@ -2980,4 +2980,4 @@ export {
|
|
|
2980
2980
|
applySelection,
|
|
2981
2981
|
runEvals
|
|
2982
2982
|
};
|
|
2983
|
-
//# sourceMappingURL=chunk-
|
|
2983
|
+
//# sourceMappingURL=chunk-CWPRB7SA.js.map
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
renderQuestionSummary,
|
|
19
19
|
storeToQuads,
|
|
20
20
|
validateGraph
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-EPN67ZNX.js";
|
|
22
22
|
import {
|
|
23
23
|
GraphIndex,
|
|
24
24
|
IMPACT_DEPTH,
|
|
@@ -29,22 +29,22 @@ import {
|
|
|
29
29
|
parseChunksManifest,
|
|
30
30
|
retrieve,
|
|
31
31
|
walkPassages
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import {
|
|
34
|
-
GraphError,
|
|
35
|
-
PREFIXES,
|
|
36
|
-
documentBase,
|
|
37
|
-
loadRunConfig
|
|
38
|
-
} from "./chunk-CPYQ4BJK.js";
|
|
32
|
+
} from "./chunk-C2QE4FSZ.js";
|
|
39
33
|
import {
|
|
40
34
|
URI_BASE_ID,
|
|
41
35
|
artifactLocation,
|
|
42
36
|
fileUri,
|
|
43
37
|
normalizeRoot
|
|
44
38
|
} from "./chunk-GLP5PSXB.js";
|
|
39
|
+
import {
|
|
40
|
+
GraphError,
|
|
41
|
+
PREFIXES,
|
|
42
|
+
documentBase,
|
|
43
|
+
loadRunConfig
|
|
44
|
+
} from "./chunk-LHP56Q45.js";
|
|
45
45
|
import {
|
|
46
46
|
integrityOf
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-QWVIGKBM.js";
|
|
48
48
|
import {
|
|
49
49
|
escapeWorkflowCommandMessage,
|
|
50
50
|
escapeWorkflowCommandProperty,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
} from "./chunk-RNVYGWIC.js";
|
|
56
56
|
import {
|
|
57
57
|
package_default
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-N2T6RLSE.js";
|
|
59
59
|
import {
|
|
60
60
|
errorMessage
|
|
61
61
|
} from "./chunk-G3T47CFV.js";
|
|
@@ -542,4 +542,4 @@ export {
|
|
|
542
542
|
runCheck,
|
|
543
543
|
renderCheck
|
|
544
544
|
};
|
|
545
|
-
//# sourceMappingURL=chunk-
|
|
545
|
+
//# sourceMappingURL=chunk-DWUK6YNX.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
discoverArtifacts
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-I4KDAO6P.js";
|
|
5
5
|
import {
|
|
6
6
|
parseHookPayload,
|
|
7
7
|
readStdin
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
relPosix,
|
|
13
13
|
sha256Hex,
|
|
14
14
|
writeManifest
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YUCH6WJY.js";
|
|
16
16
|
import {
|
|
17
17
|
loadConfig
|
|
18
18
|
} from "./chunk-3ZVRGBK6.js";
|
|
@@ -212,4 +212,4 @@ export {
|
|
|
212
212
|
runCapture,
|
|
213
213
|
renderCapture
|
|
214
214
|
};
|
|
215
|
-
//# sourceMappingURL=chunk-
|
|
215
|
+
//# sourceMappingURL=chunk-E75CMOR3.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
parseStatements,
|
|
11
11
|
sliceLines,
|
|
12
12
|
statementForms
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KX6HRTLH.js";
|
|
14
14
|
import {
|
|
15
15
|
__default4 as __default,
|
|
16
16
|
extractorByName,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
hasFrontmatterFence,
|
|
19
19
|
locateFrontmatter,
|
|
20
20
|
supportedExtensions
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-QWVIGKBM.js";
|
|
22
22
|
import {
|
|
23
23
|
isEncryptedValue
|
|
24
24
|
} from "./chunk-JF4BC7ZD.js";
|
|
@@ -575,4 +575,4 @@ export {
|
|
|
575
575
|
citationInputs,
|
|
576
576
|
readPage
|
|
577
577
|
};
|
|
578
|
-
//# sourceMappingURL=chunk-
|
|
578
|
+
//# sourceMappingURL=chunk-EAF4K7IK.js.map
|