@hawkeyexl/manni 4.26.2 → 4.27.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-4I5S6DXG.js → batch-TFGOULLM.js} +14 -14
- package/dist/build-TOTJTK5K.js +37 -0
- package/dist/{calibrate-U4TQAXXD.js → calibrate-7O4RKGZS.js} +15 -15
- package/dist/{capture-ODSHL2XI.js → capture-K6ZKOSIK.js} +14 -14
- package/dist/check-4LK34QVH.js +34 -0
- package/dist/check-6XN46NLH.js +31 -0
- package/dist/check-JBSRU724.js +58 -0
- package/dist/check-LZQ3PW6G.js +58 -0
- package/dist/{check-YFLWJUZC.js → check-WFJMMSD7.js} +15 -15
- package/dist/{chunk-KHBOMLPS.js → chunk-2E5OBVLC.js} +4 -4
- package/dist/{chunk-Z2JBWLRF.js → chunk-2LLCV66Q.js} +9 -9
- package/dist/{chunk-KLTGAGB6.js → chunk-43KMLS4Y.js} +3 -3
- package/dist/{chunk-BREAC43H.js → chunk-43VLZO4W.js} +2 -2
- package/dist/{chunk-UUGTQUKK.js → chunk-46EEHYA4.js} +64 -11
- package/dist/chunk-46EEHYA4.js.map +1 -0
- package/dist/{chunk-H4JXCWLM.js → chunk-4KK6TVFD.js} +7 -7
- package/dist/{chunk-MMVT3ZP3.js → chunk-4NCNVKZS.js} +5 -5
- package/dist/{chunk-UOZZTK7T.js → chunk-4QOXP5K4.js} +6 -6
- package/dist/{chunk-THFV3YVO.js → chunk-5QPLKYLM.js} +4 -4
- package/dist/{chunk-5KWMVAZZ.js → chunk-5XEZ7FQT.js} +2 -2
- package/dist/{chunk-SHYEKYV4.js → chunk-7BPOYION.js} +2 -2
- package/dist/{chunk-NTQ73IQL.js → chunk-7MKAJCU2.js} +2 -2
- package/dist/{chunk-NTQ73IQL.js.map → chunk-7MKAJCU2.js.map} +1 -1
- package/dist/{chunk-YG4GZXSA.js → chunk-A4DPDPKJ.js} +2 -2
- package/dist/{chunk-VNR7BQBZ.js → chunk-ACTUV3CQ.js} +52 -4
- package/dist/chunk-ACTUV3CQ.js.map +1 -0
- package/dist/{chunk-RZ65VMRW.js → chunk-AONT5QCO.js} +10 -10
- package/dist/{chunk-4DFLLMIM.js → chunk-AXMVISW7.js} +3 -3
- package/dist/{chunk-MC7U5IH4.js → chunk-BCRMMIY5.js} +1 -1
- package/dist/chunk-BCRMMIY5.js.map +1 -0
- package/dist/{chunk-ZR33AQFW.js → chunk-BMPQLKQS.js} +10 -8
- package/dist/chunk-BMPQLKQS.js.map +1 -0
- package/dist/{chunk-SJI7C7FY.js → chunk-BN3SQUXK.js} +14 -14
- package/dist/{chunk-3ZVRGBK6.js → chunk-BTFXOKCP.js} +2 -2
- package/dist/{chunk-JF4BC7ZD.js → chunk-CDX4QK6O.js} +29 -2
- package/dist/chunk-CDX4QK6O.js.map +1 -0
- package/dist/{chunk-JDQFU2U6.js → chunk-CJWFDJEX.js} +9 -9
- package/dist/{chunk-NZ7RO6ZD.js → chunk-D3FJVKE2.js} +3 -3
- package/dist/{chunk-K7UVWJJW.js → chunk-DRMCY64Q.js} +15 -7
- package/dist/chunk-DRMCY64Q.js.map +1 -0
- package/dist/{chunk-HAZQCHO5.js → chunk-DSTEX7SK.js} +3 -3
- package/dist/{chunk-HJHDYROD.js → chunk-DZC2OALR.js} +4 -4
- package/dist/{chunk-GCJPYCOV.js → chunk-FK2FAE3J.js} +4 -4
- package/dist/{chunk-GM5LWEDF.js → chunk-FRAEUYJE.js} +56 -27
- package/dist/chunk-FRAEUYJE.js.map +1 -0
- package/dist/{chunk-QNXNA2BR.js → chunk-H7SFSZ3I.js} +300 -58
- package/dist/chunk-H7SFSZ3I.js.map +1 -0
- package/dist/chunk-HMJZHUCJ.js +337 -0
- package/dist/chunk-HMJZHUCJ.js.map +1 -0
- package/dist/{chunk-GXC7SDLO.js → chunk-HQRXE6QY.js} +354 -51
- package/dist/chunk-HQRXE6QY.js.map +1 -0
- package/dist/{chunk-J7E4XAFG.js → chunk-IFAOEGSU.js} +32 -22
- package/dist/chunk-IFAOEGSU.js.map +1 -0
- package/dist/{chunk-B6YZINES.js → chunk-IQJ4WBJZ.js} +173 -83
- package/dist/chunk-IQJ4WBJZ.js.map +1 -0
- package/dist/{chunk-RVATMGUL.js → chunk-JWS4OKOZ.js} +4 -4
- package/dist/{chunk-4IM6A2WK.js → chunk-K5DKRGUV.js} +6 -6
- package/dist/{chunk-7ODOTGU4.js → chunk-LESYV3TT.js} +3 -3
- package/dist/{chunk-DGN4VVFG.js → chunk-LWWO4C6P.js} +3 -3
- package/dist/{chunk-BAJ23I2H.js → chunk-MABRQ46L.js} +14 -7
- package/dist/chunk-MABRQ46L.js.map +1 -0
- package/dist/{chunk-PWLUQLFH.js → chunk-MMS3I5ZH.js} +7 -7
- package/dist/{chunk-OKLRZM2N.js → chunk-NXJMRIKW.js} +5 -5
- package/dist/{chunk-P7MGBTY3.js → chunk-OBFIWPEB.js} +3 -3
- package/dist/{chunk-TI4DA6DF.js → chunk-OPF3NOKF.js} +1 -1
- package/dist/chunk-OPF3NOKF.js.map +1 -0
- package/dist/{chunk-LHFO4HF7.js → chunk-PBR4TVEL.js} +7 -7
- package/dist/{chunk-PEZP4ZFP.js → chunk-PHZ7VWSL.js} +31 -13
- package/dist/chunk-PHZ7VWSL.js.map +1 -0
- package/dist/{chunk-M6RB342K.js → chunk-Q34NWLGY.js} +2 -2
- package/dist/{chunk-PJ5YJS6L.js → chunk-QFVBBRHW.js} +2 -2
- package/dist/{chunk-QWGAM3T6.js → chunk-QLK6LXSS.js} +3 -3
- package/dist/{chunk-LSH6HPKB.js → chunk-QSABWNXP.js} +4 -4
- package/dist/{chunk-BPVO3OED.js → chunk-R3FCSRTX.js} +6 -6
- package/dist/{chunk-SIDHDT4X.js → chunk-RA3QM7X6.js} +8 -8
- package/dist/{chunk-EXCYL3S7.js → chunk-RCGR4NKY.js} +2 -2
- package/dist/{chunk-VDEE7AUI.js → chunk-S2ZOXAFY.js} +2 -2
- package/dist/{chunk-4X3EH5VC.js → chunk-SYZ75Q5F.js} +65 -47
- package/dist/chunk-SYZ75Q5F.js.map +1 -0
- package/dist/{chunk-KSDAAJJX.js → chunk-TF4VEEDJ.js} +2 -2
- package/dist/{chunk-PX4QZLA2.js → chunk-TNOML4XE.js} +3 -3
- package/dist/{chunk-UT3CPOGN.js → chunk-UVI6JXRM.js} +8 -8
- package/dist/{chunk-P6QJPKZ2.js → chunk-VHAQJ6KU.js} +31 -26
- package/dist/chunk-VHAQJ6KU.js.map +1 -0
- package/dist/{chunk-LURF4MTH.js → chunk-VLPUC4MH.js} +3 -3
- package/dist/{chunk-A6LHTTNO.js → chunk-WJ7IGOBI.js} +21 -12
- package/dist/chunk-WJ7IGOBI.js.map +1 -0
- package/dist/{chunk-QFEEUI2Z.js → chunk-WLN4A2OJ.js} +4 -4
- package/dist/{chunk-NXP3DG4L.js → chunk-WNL2T7LK.js} +4 -4
- package/dist/{chunk-K4X6GJKG.js → chunk-WOPKA4ZB.js} +3 -3
- package/dist/{chunk-KLRTOQN4.js → chunk-X3FSKK53.js} +13 -7
- package/dist/chunk-X3FSKK53.js.map +1 -0
- package/dist/{chunk-A43A335C.js → chunk-Y72JZVMX.js} +3 -3
- package/dist/{chunk-RV2BYDJK.js → chunk-YQ4XWJTB.js} +24 -14
- package/dist/chunk-YQ4XWJTB.js.map +1 -0
- package/dist/{chunk-XD4Z26HJ.js → chunk-YUTRYEDG.js} +3 -3
- package/dist/{chunk-DPQAF2VR.js → chunk-Z66LHZRV.js} +2 -2
- package/dist/{chunk-G5I2JTDK.js → chunk-ZWVYT2G6.js} +2 -2
- package/dist/{chunk-D4BGNAN5.js → chunk-ZZGHTXZ2.js} +159 -23
- package/dist/chunk-ZZGHTXZ2.js.map +1 -0
- package/dist/{cli-RO4TNFXJ.js → cli-4Q22IFXX.js} +16 -15
- package/dist/{cli-RO4TNFXJ.js.map → cli-4Q22IFXX.js.map} +1 -1
- package/dist/{cli-6DOYYCTT.js → cli-6Y2V6OI6.js} +29 -28
- package/dist/{cli-6DOYYCTT.js.map → cli-6Y2V6OI6.js.map} +1 -1
- package/dist/{cli-DKRISKSR.js → cli-A3E4KJ5U.js} +21 -21
- package/dist/{cli-7IPP6ZTQ.js → cli-H4SH5A6M.js} +37 -36
- package/dist/{cli-7IPP6ZTQ.js.map → cli-H4SH5A6M.js.map} +1 -1
- package/dist/{cli-SDW7JOTO.js → cli-ODMYZEFY.js} +56 -55
- package/dist/{cli-SDW7JOTO.js.map → cli-ODMYZEFY.js.map} +1 -1
- package/dist/{cli-C2OATF3N.js → cli-PKCV3N4H.js} +8 -8
- package/dist/{cli-AR6TOW7M.js → cli-QQIIFRKE.js} +20 -19
- package/dist/{cli-AR6TOW7M.js.map → cli-QQIIFRKE.js.map} +1 -1
- package/dist/{cli-XM4F6ZC7.js → cli-SN7N4WCV.js} +26 -25
- package/dist/{cli-XM4F6ZC7.js.map → cli-SN7N4WCV.js.map} +1 -1
- package/dist/{cli-WWNQFDMK.js → cli-WFC3CJOJ.js} +3 -3
- package/dist/{cli-CFDGH5HD.js → cli-YP5KKGZP.js} +30 -29
- package/dist/{cli-CFDGH5HD.js.map → cli-YP5KKGZP.js.map} +1 -1
- package/dist/{cli-3VAVQYQT.js → cli-Z6IVPISQ.js} +24 -42
- package/dist/cli-Z6IVPISQ.js.map +1 -0
- package/dist/cli.js +15 -15
- package/dist/{config-2YJPJ36T.js → config-Z3FYLJ6X.js} +3 -3
- package/dist/docmeta.js +7 -7
- package/dist/github-7MZOPO6F.js +49 -0
- package/dist/github-MERFCTC7.js +29 -0
- package/dist/{github-GU23WNCU.js → github-MQPACOAB.js} +15 -14
- package/dist/index.d.ts +165 -6
- package/dist/index.js +55 -54
- package/dist/index.js.map +1 -1
- package/dist/{json-P4EDSVIC.js → json-7RZPISH3.js} +13 -12
- package/dist/{json-YIZON5LE.js → json-GOM7GQ6C.js} +16 -15
- package/dist/{labels-6RROJOYQ.js → labels-3ZOCWOT6.js} +12 -11
- package/dist/{labels-6RROJOYQ.js.map → labels-3ZOCWOT6.js.map} +1 -1
- package/dist/lint-XQMOP6UX.js +33 -0
- package/dist/{list-UARFGS7C.js → list-5PR56LNP.js} +15 -14
- package/dist/list-AV4DCGP3.js +31 -0
- package/dist/list-PLVWVFAV.js +49 -0
- package/dist/{page-JADAILE3.js → page-7EML6WFG.js} +10 -10
- package/dist/{prepare-B24HTUCX.js → prepare-A7NZ5BPZ.js} +13 -13
- package/dist/{pretty-XAMSAKAR.js → pretty-5QHFDOSO.js} +15 -14
- package/dist/{pretty-NHNYY7CP.js → pretty-E4FJRLZZ.js} +25 -24
- package/dist/{pretty-5V3PWJ6L.js → pretty-Y4UZL35B.js} +13 -12
- package/dist/{reporters-ULSSBAAG.js → reporters-A63SJIY7.js} +12 -12
- package/dist/{reporters-HTJKW7NG.js → reporters-BFST46C2.js} +5 -5
- package/dist/run-2MWSIAGL.js +52 -0
- package/dist/{sarif-LBODGUNE.js → sarif-BBNFOFUZ.js} +9 -9
- package/dist/sarif-MDBTPWQN.js +50 -0
- package/dist/{sarif-SOA76ESJ.js → sarif-MTFYXIRJ.js} +11 -11
- package/dist/{strategy-XI7QTY7T.js → strategy-3EJODC6O.js} +22 -21
- package/dist/{term-UIBQBGMR.js → term-UYCZLVVA.js} +19 -18
- package/dist/{term-UIBQBGMR.js.map → term-UYCZLVVA.js.map} +1 -1
- package/dist/{validate-X257AMWS.js → validate-3C3RWYMR.js} +5 -5
- package/package.json +1 -1
- package/plugin/manni/.claude-plugin/plugin.json +1 -1
- package/plugin/manni/hooks/page-metadata.mjs +1 -1
- package/dist/build-OPWHXPXE.js +0 -36
- package/dist/check-4VOOUC5E.js +0 -33
- package/dist/check-M3ORYGTW.js +0 -57
- package/dist/check-QJ35SM3K.js +0 -57
- package/dist/check-UXS5LVFJ.js +0 -30
- package/dist/chunk-4X3EH5VC.js.map +0 -1
- package/dist/chunk-A6LHTTNO.js.map +0 -1
- package/dist/chunk-B6YZINES.js.map +0 -1
- package/dist/chunk-BAJ23I2H.js.map +0 -1
- package/dist/chunk-D4BGNAN5.js.map +0 -1
- package/dist/chunk-GM5LWEDF.js.map +0 -1
- package/dist/chunk-GXC7SDLO.js.map +0 -1
- package/dist/chunk-J7E4XAFG.js.map +0 -1
- package/dist/chunk-JF4BC7ZD.js.map +0 -1
- package/dist/chunk-K7UVWJJW.js.map +0 -1
- package/dist/chunk-KLRTOQN4.js.map +0 -1
- package/dist/chunk-MC7U5IH4.js.map +0 -1
- package/dist/chunk-P6QJPKZ2.js.map +0 -1
- package/dist/chunk-PEZP4ZFP.js.map +0 -1
- package/dist/chunk-QNXNA2BR.js.map +0 -1
- package/dist/chunk-RV2BYDJK.js.map +0 -1
- package/dist/chunk-TI4DA6DF.js.map +0 -1
- package/dist/chunk-UUGTQUKK.js.map +0 -1
- package/dist/chunk-VNR7BQBZ.js.map +0 -1
- package/dist/chunk-ZR33AQFW.js.map +0 -1
- package/dist/cli-3VAVQYQT.js.map +0 -1
- package/dist/github-RPHQGICU.js +0 -48
- package/dist/github-VKUOQE77.js +0 -28
- package/dist/lint-VXM7UKPY.js +0 -32
- package/dist/list-2Y7AM5BW.js +0 -30
- package/dist/list-ILJJM7EL.js +0 -48
- package/dist/run-EVPJ7SDL.js +0 -51
- package/dist/sarif-3PHFVX7D.js +0 -49
- /package/dist/{batch-4I5S6DXG.js.map → batch-TFGOULLM.js.map} +0 -0
- /package/dist/{build-OPWHXPXE.js.map → build-TOTJTK5K.js.map} +0 -0
- /package/dist/{calibrate-U4TQAXXD.js.map → calibrate-7O4RKGZS.js.map} +0 -0
- /package/dist/{capture-ODSHL2XI.js.map → capture-K6ZKOSIK.js.map} +0 -0
- /package/dist/{check-4VOOUC5E.js.map → check-4LK34QVH.js.map} +0 -0
- /package/dist/{check-M3ORYGTW.js.map → check-6XN46NLH.js.map} +0 -0
- /package/dist/{check-QJ35SM3K.js.map → check-JBSRU724.js.map} +0 -0
- /package/dist/{check-UXS5LVFJ.js.map → check-LZQ3PW6G.js.map} +0 -0
- /package/dist/{check-YFLWJUZC.js.map → check-WFJMMSD7.js.map} +0 -0
- /package/dist/{chunk-KHBOMLPS.js.map → chunk-2E5OBVLC.js.map} +0 -0
- /package/dist/{chunk-Z2JBWLRF.js.map → chunk-2LLCV66Q.js.map} +0 -0
- /package/dist/{chunk-KLTGAGB6.js.map → chunk-43KMLS4Y.js.map} +0 -0
- /package/dist/{chunk-BREAC43H.js.map → chunk-43VLZO4W.js.map} +0 -0
- /package/dist/{chunk-H4JXCWLM.js.map → chunk-4KK6TVFD.js.map} +0 -0
- /package/dist/{chunk-MMVT3ZP3.js.map → chunk-4NCNVKZS.js.map} +0 -0
- /package/dist/{chunk-UOZZTK7T.js.map → chunk-4QOXP5K4.js.map} +0 -0
- /package/dist/{chunk-THFV3YVO.js.map → chunk-5QPLKYLM.js.map} +0 -0
- /package/dist/{chunk-5KWMVAZZ.js.map → chunk-5XEZ7FQT.js.map} +0 -0
- /package/dist/{chunk-SHYEKYV4.js.map → chunk-7BPOYION.js.map} +0 -0
- /package/dist/{chunk-YG4GZXSA.js.map → chunk-A4DPDPKJ.js.map} +0 -0
- /package/dist/{chunk-RZ65VMRW.js.map → chunk-AONT5QCO.js.map} +0 -0
- /package/dist/{chunk-4DFLLMIM.js.map → chunk-AXMVISW7.js.map} +0 -0
- /package/dist/{chunk-SJI7C7FY.js.map → chunk-BN3SQUXK.js.map} +0 -0
- /package/dist/{chunk-3ZVRGBK6.js.map → chunk-BTFXOKCP.js.map} +0 -0
- /package/dist/{chunk-JDQFU2U6.js.map → chunk-CJWFDJEX.js.map} +0 -0
- /package/dist/{chunk-NZ7RO6ZD.js.map → chunk-D3FJVKE2.js.map} +0 -0
- /package/dist/{chunk-HAZQCHO5.js.map → chunk-DSTEX7SK.js.map} +0 -0
- /package/dist/{chunk-HJHDYROD.js.map → chunk-DZC2OALR.js.map} +0 -0
- /package/dist/{chunk-GCJPYCOV.js.map → chunk-FK2FAE3J.js.map} +0 -0
- /package/dist/{chunk-RVATMGUL.js.map → chunk-JWS4OKOZ.js.map} +0 -0
- /package/dist/{chunk-4IM6A2WK.js.map → chunk-K5DKRGUV.js.map} +0 -0
- /package/dist/{chunk-7ODOTGU4.js.map → chunk-LESYV3TT.js.map} +0 -0
- /package/dist/{chunk-DGN4VVFG.js.map → chunk-LWWO4C6P.js.map} +0 -0
- /package/dist/{chunk-PWLUQLFH.js.map → chunk-MMS3I5ZH.js.map} +0 -0
- /package/dist/{chunk-OKLRZM2N.js.map → chunk-NXJMRIKW.js.map} +0 -0
- /package/dist/{chunk-P7MGBTY3.js.map → chunk-OBFIWPEB.js.map} +0 -0
- /package/dist/{chunk-LHFO4HF7.js.map → chunk-PBR4TVEL.js.map} +0 -0
- /package/dist/{chunk-M6RB342K.js.map → chunk-Q34NWLGY.js.map} +0 -0
- /package/dist/{chunk-PJ5YJS6L.js.map → chunk-QFVBBRHW.js.map} +0 -0
- /package/dist/{chunk-QWGAM3T6.js.map → chunk-QLK6LXSS.js.map} +0 -0
- /package/dist/{chunk-LSH6HPKB.js.map → chunk-QSABWNXP.js.map} +0 -0
- /package/dist/{chunk-BPVO3OED.js.map → chunk-R3FCSRTX.js.map} +0 -0
- /package/dist/{chunk-SIDHDT4X.js.map → chunk-RA3QM7X6.js.map} +0 -0
- /package/dist/{chunk-EXCYL3S7.js.map → chunk-RCGR4NKY.js.map} +0 -0
- /package/dist/{chunk-VDEE7AUI.js.map → chunk-S2ZOXAFY.js.map} +0 -0
- /package/dist/{chunk-KSDAAJJX.js.map → chunk-TF4VEEDJ.js.map} +0 -0
- /package/dist/{chunk-PX4QZLA2.js.map → chunk-TNOML4XE.js.map} +0 -0
- /package/dist/{chunk-UT3CPOGN.js.map → chunk-UVI6JXRM.js.map} +0 -0
- /package/dist/{chunk-LURF4MTH.js.map → chunk-VLPUC4MH.js.map} +0 -0
- /package/dist/{chunk-QFEEUI2Z.js.map → chunk-WLN4A2OJ.js.map} +0 -0
- /package/dist/{chunk-NXP3DG4L.js.map → chunk-WNL2T7LK.js.map} +0 -0
- /package/dist/{chunk-K4X6GJKG.js.map → chunk-WOPKA4ZB.js.map} +0 -0
- /package/dist/{chunk-A43A335C.js.map → chunk-Y72JZVMX.js.map} +0 -0
- /package/dist/{chunk-XD4Z26HJ.js.map → chunk-YUTRYEDG.js.map} +0 -0
- /package/dist/{chunk-DPQAF2VR.js.map → chunk-Z66LHZRV.js.map} +0 -0
- /package/dist/{chunk-G5I2JTDK.js.map → chunk-ZWVYT2G6.js.map} +0 -0
- /package/dist/{cli-DKRISKSR.js.map → cli-A3E4KJ5U.js.map} +0 -0
- /package/dist/{cli-C2OATF3N.js.map → cli-PKCV3N4H.js.map} +0 -0
- /package/dist/{cli-WWNQFDMK.js.map → cli-WFC3CJOJ.js.map} +0 -0
- /package/dist/{config-2YJPJ36T.js.map → config-Z3FYLJ6X.js.map} +0 -0
- /package/dist/{github-GU23WNCU.js.map → github-7MZOPO6F.js.map} +0 -0
- /package/dist/{github-RPHQGICU.js.map → github-MERFCTC7.js.map} +0 -0
- /package/dist/{github-VKUOQE77.js.map → github-MQPACOAB.js.map} +0 -0
- /package/dist/{json-P4EDSVIC.js.map → json-7RZPISH3.js.map} +0 -0
- /package/dist/{json-YIZON5LE.js.map → json-GOM7GQ6C.js.map} +0 -0
- /package/dist/{lint-VXM7UKPY.js.map → lint-XQMOP6UX.js.map} +0 -0
- /package/dist/{list-2Y7AM5BW.js.map → list-5PR56LNP.js.map} +0 -0
- /package/dist/{list-ILJJM7EL.js.map → list-AV4DCGP3.js.map} +0 -0
- /package/dist/{list-UARFGS7C.js.map → list-PLVWVFAV.js.map} +0 -0
- /package/dist/{page-JADAILE3.js.map → page-7EML6WFG.js.map} +0 -0
- /package/dist/{prepare-B24HTUCX.js.map → prepare-A7NZ5BPZ.js.map} +0 -0
- /package/dist/{pretty-5V3PWJ6L.js.map → pretty-5QHFDOSO.js.map} +0 -0
- /package/dist/{pretty-NHNYY7CP.js.map → pretty-E4FJRLZZ.js.map} +0 -0
- /package/dist/{pretty-XAMSAKAR.js.map → pretty-Y4UZL35B.js.map} +0 -0
- /package/dist/{reporters-HTJKW7NG.js.map → reporters-A63SJIY7.js.map} +0 -0
- /package/dist/{reporters-ULSSBAAG.js.map → reporters-BFST46C2.js.map} +0 -0
- /package/dist/{run-EVPJ7SDL.js.map → run-2MWSIAGL.js.map} +0 -0
- /package/dist/{sarif-3PHFVX7D.js.map → sarif-BBNFOFUZ.js.map} +0 -0
- /package/dist/{sarif-LBODGUNE.js.map → sarif-MDBTPWQN.js.map} +0 -0
- /package/dist/{sarif-SOA76ESJ.js.map → sarif-MTFYXIRJ.js.map} +0 -0
- /package/dist/{strategy-XI7QTY7T.js.map → strategy-3EJODC6O.js.map} +0 -0
- /package/dist/{validate-X257AMWS.js.map → validate-3C3RWYMR.js.map} +0 -0
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
LintError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OPF3NOKF.js";
|
|
5
|
+
import {
|
|
6
|
+
VARIABLE_REFERENCE,
|
|
7
|
+
includes,
|
|
8
|
+
lookupVariable,
|
|
9
|
+
parseConditionExpression,
|
|
10
|
+
parseConditionTags,
|
|
11
|
+
resolveText,
|
|
12
|
+
resolveVariable
|
|
13
|
+
} from "./chunk-HMJZHUCJ.js";
|
|
5
14
|
import {
|
|
6
15
|
extractFrontmatter,
|
|
7
16
|
extractorForExtension,
|
|
8
|
-
|
|
9
|
-
|
|
17
|
+
isFlare,
|
|
18
|
+
isXhtml,
|
|
19
|
+
locateFrontmatter,
|
|
20
|
+
parseXhtml
|
|
21
|
+
} from "./chunk-HQRXE6QY.js";
|
|
10
22
|
import {
|
|
11
23
|
errorMessage
|
|
12
24
|
} from "./chunk-G3T47CFV.js";
|
|
@@ -292,6 +304,9 @@ function sectionize(fragments, docEnd) {
|
|
|
292
304
|
closeTo(0, docEnd);
|
|
293
305
|
return roots;
|
|
294
306
|
}
|
|
307
|
+
function plainText(nodes) {
|
|
308
|
+
return nodes.map((n) => n.text.replace(/\r\n/g, "\n").trim()).filter((t) => t !== "");
|
|
309
|
+
}
|
|
295
310
|
|
|
296
311
|
// src/lint/parsers/metadata.ts
|
|
297
312
|
function fencedPosition(content) {
|
|
@@ -387,7 +402,165 @@ var mdxParser = {
|
|
|
387
402
|
};
|
|
388
403
|
|
|
389
404
|
// src/lint/parsers/html.ts
|
|
390
|
-
import { defaultTreeAdapter, parse } from "parse5";
|
|
405
|
+
import { defaultTreeAdapter as defaultTreeAdapter2, parse } from "parse5";
|
|
406
|
+
|
|
407
|
+
// src/lint/parsers/flare.ts
|
|
408
|
+
import { readFileSync } from "node:fs";
|
|
409
|
+
import { basename, dirname, relative, resolve } from "node:path";
|
|
410
|
+
import { defaultTreeAdapter } from "parse5";
|
|
411
|
+
var SNIPPETS = /* @__PURE__ */ new Set(["madcap:snippetblock", "madcap:snippettext"]);
|
|
412
|
+
var MARKERS = /* @__PURE__ */ new Set(["madcap:keyword", "madcap:concept"]);
|
|
413
|
+
var BLOCKS = /* @__PURE__ */ new Set(["p", "div", "h1", "h2", "h3", "h4", "h5", "h6"]);
|
|
414
|
+
function attrOf(el, name) {
|
|
415
|
+
return el.attrs.find((a) => a.name === name)?.value;
|
|
416
|
+
}
|
|
417
|
+
function childElement(parent, tag) {
|
|
418
|
+
for (const child of parent.childNodes) {
|
|
419
|
+
if (defaultTreeAdapter.isElementNode(child) && child.tagName === tag) return child;
|
|
420
|
+
}
|
|
421
|
+
return void 0;
|
|
422
|
+
}
|
|
423
|
+
function expressionOf(text) {
|
|
424
|
+
return text === void 0 || text.trim() === "" ? void 0 : parseConditionExpression(text);
|
|
425
|
+
}
|
|
426
|
+
function snippetVariables(attr) {
|
|
427
|
+
if (attr === void 0) return [];
|
|
428
|
+
return attr.split(",").flatMap((pair) => {
|
|
429
|
+
const colon = pair.indexOf(":");
|
|
430
|
+
const name = pair.slice(0, colon).trim();
|
|
431
|
+
return colon < 0 || name === "" ? [] : [[name, pair.slice(colon + 1)]];
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
function resolveFlare(content, label, absPath, run, title) {
|
|
435
|
+
const doc = parseXhtml(content);
|
|
436
|
+
const project = run.projectFor(absPath);
|
|
437
|
+
if (project === void 0) run.noProjectNotice(label);
|
|
438
|
+
const target = project?.target;
|
|
439
|
+
const flare = project === void 0 ? void 0 : {
|
|
440
|
+
project: project.flprj,
|
|
441
|
+
...target === void 0 ? {} : { target: { name: target.name, from: project.targetFrom ?? "the only target" } }
|
|
442
|
+
};
|
|
443
|
+
const root = childElement(doc, "html");
|
|
444
|
+
const rootAttr = (name) => root === void 0 ? void 0 : attrOf(root, name);
|
|
445
|
+
if (flare !== void 0 && !includes(target?.expression, parseConditionTags(rootAttr("madcap:conditions")))) {
|
|
446
|
+
return { doc, flare: { ...flare, excluded: true } };
|
|
447
|
+
}
|
|
448
|
+
const snippetDefault = project === void 0 ? void 0 : expressionOf(rootAttr("madcap:conditiontagexpression"));
|
|
449
|
+
resolveIn(
|
|
450
|
+
doc,
|
|
451
|
+
{
|
|
452
|
+
file: absPath,
|
|
453
|
+
chain: [],
|
|
454
|
+
filters: [],
|
|
455
|
+
...snippetDefault === void 0 ? {} : { snippetDefault },
|
|
456
|
+
overrides: new Map(target?.variables ?? [])
|
|
457
|
+
},
|
|
458
|
+
{ label, absPath, run, project, title }
|
|
459
|
+
);
|
|
460
|
+
return { doc, ...flare === void 0 ? {} : { flare } };
|
|
461
|
+
}
|
|
462
|
+
function flareLinkTarget(href, project) {
|
|
463
|
+
if (!href.includes("[%=")) return href;
|
|
464
|
+
const resolved = project === void 0 ? href : resolveText(project.variables, href, project.target?.variables);
|
|
465
|
+
return resolved.includes("[%=") ? void 0 : resolved;
|
|
466
|
+
}
|
|
467
|
+
function kept(el, scope, project) {
|
|
468
|
+
const tags = parseConditionTags(attrOf(el, "madcap:conditions"));
|
|
469
|
+
if (tags.length === 0) return true;
|
|
470
|
+
return includes(project.target?.expression, tags) && scope.filters.every((f) => includes(f, tags));
|
|
471
|
+
}
|
|
472
|
+
function valueOf(name, scope, topic, project) {
|
|
473
|
+
if (name === "System.Title") return topic.title;
|
|
474
|
+
if (name === "System.SourceFile") return basename(topic.absPath);
|
|
475
|
+
const value = resolveVariable(project.variables, name, scope.overrides);
|
|
476
|
+
if (value !== void 0) return value;
|
|
477
|
+
if (!name.startsWith("System.") && lookupVariable(project.variables, name) === void 0) {
|
|
478
|
+
topic.run.warnUndefinedVariable(topic.label, name, project);
|
|
479
|
+
}
|
|
480
|
+
return void 0;
|
|
481
|
+
}
|
|
482
|
+
function resolveIn(parent, scope, topic) {
|
|
483
|
+
const { project } = topic;
|
|
484
|
+
for (const child of [...parent.childNodes]) {
|
|
485
|
+
if (defaultTreeAdapter.isTextNode(child)) {
|
|
486
|
+
if (project !== void 0 && child.value.includes("[%=")) {
|
|
487
|
+
child.value = child.value.replace(
|
|
488
|
+
VARIABLE_REFERENCE,
|
|
489
|
+
(reference, raw) => valueOf(raw.trim(), scope, topic, project) ?? reference
|
|
490
|
+
);
|
|
491
|
+
}
|
|
492
|
+
continue;
|
|
493
|
+
}
|
|
494
|
+
if (!defaultTreeAdapter.isElementNode(child)) continue;
|
|
495
|
+
const tag = child.tagName;
|
|
496
|
+
if (project !== void 0 && !kept(child, scope, project) || MARKERS.has(tag)) {
|
|
497
|
+
defaultTreeAdapter.detachNode(child);
|
|
498
|
+
continue;
|
|
499
|
+
}
|
|
500
|
+
if (tag === "madcap:variable" && project !== void 0) {
|
|
501
|
+
const name = (attrOf(child, "name") ?? "").trim();
|
|
502
|
+
const value = valueOf(name, scope, topic, project) ?? `[%=${name}%]`;
|
|
503
|
+
defaultTreeAdapter.insertTextBefore(parent, value, child);
|
|
504
|
+
defaultTreeAdapter.detachNode(child);
|
|
505
|
+
continue;
|
|
506
|
+
}
|
|
507
|
+
const src = SNIPPETS.has(tag) ? attrOf(child, "src") : void 0;
|
|
508
|
+
if (src !== void 0) {
|
|
509
|
+
expand(parent, child, src, scope, topic);
|
|
510
|
+
continue;
|
|
511
|
+
}
|
|
512
|
+
resolveIn(child, scope, topic);
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
function stamp(parent, location) {
|
|
516
|
+
for (const child of parent.childNodes) {
|
|
517
|
+
child.sourceCodeLocation = location;
|
|
518
|
+
if ("childNodes" in child) stamp(child, location);
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
function expand(parent, ref, src, scope, topic) {
|
|
522
|
+
const abs = resolve(dirname(scope.file), src);
|
|
523
|
+
if (scope.chain.includes(abs)) {
|
|
524
|
+
const base = topic.project?.root ?? dirname(topic.absPath);
|
|
525
|
+
const show = (file) => relative(base, file).replace(/\\/g, "/");
|
|
526
|
+
topic.run.warnSnippetCycle(topic.label, show(abs), [...scope.chain, abs].map(show));
|
|
527
|
+
return;
|
|
528
|
+
}
|
|
529
|
+
let text;
|
|
530
|
+
try {
|
|
531
|
+
text = readFileSync(abs, "utf8");
|
|
532
|
+
} catch {
|
|
533
|
+
return;
|
|
534
|
+
}
|
|
535
|
+
const html = childElement(parseXhtml(text), "html");
|
|
536
|
+
const body = html === void 0 ? void 0 : childElement(html, "body");
|
|
537
|
+
if (body === void 0) return;
|
|
538
|
+
stamp(body, ref.sourceCodeLocation);
|
|
539
|
+
const expression = topic.project === void 0 ? void 0 : expressionOf(attrOf(ref, "madcap:conditiontagexpression")) ?? scope.snippetDefault;
|
|
540
|
+
resolveIn(
|
|
541
|
+
body,
|
|
542
|
+
{
|
|
543
|
+
file: abs,
|
|
544
|
+
chain: [...scope.chain, abs],
|
|
545
|
+
filters: expression === void 0 ? scope.filters : [...scope.filters, expression],
|
|
546
|
+
overrides: new Map([...scope.overrides, ...snippetVariables(attrOf(ref, "madcap:snippetvariables"))]),
|
|
547
|
+
// The topic root's expression is every reference's fallback, nested
|
|
548
|
+
// ones included, so it travels with the scope.
|
|
549
|
+
...scope.snippetDefault === void 0 ? {} : { snippetDefault: scope.snippetDefault }
|
|
550
|
+
},
|
|
551
|
+
topic
|
|
552
|
+
);
|
|
553
|
+
const nodes = ref.tagName === "madcap:snippettext" ? body.childNodes.flatMap(
|
|
554
|
+
(n) => defaultTreeAdapter.isElementNode(n) && BLOCKS.has(n.tagName) ? [...n.childNodes] : defaultTreeAdapter.isTextNode(n) && n.value.trim() === "" ? [] : [n]
|
|
555
|
+
) : [...body.childNodes];
|
|
556
|
+
for (const node of nodes) {
|
|
557
|
+
defaultTreeAdapter.detachNode(node);
|
|
558
|
+
defaultTreeAdapter.insertBefore(parent, node, ref);
|
|
559
|
+
}
|
|
560
|
+
defaultTreeAdapter.detachNode(ref);
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
// src/lint/parsers/html.ts
|
|
391
564
|
var HEADING_LEVELS = /* @__PURE__ */ new Map([
|
|
392
565
|
["h1", 1],
|
|
393
566
|
["h2", 2],
|
|
@@ -423,11 +596,11 @@ var ZERO2 = {
|
|
|
423
596
|
function tagOf(el) {
|
|
424
597
|
return el.tagName.toLowerCase();
|
|
425
598
|
}
|
|
426
|
-
function
|
|
599
|
+
function attrOf2(el, name) {
|
|
427
600
|
return el.attrs.find((a) => a.name === name)?.value;
|
|
428
601
|
}
|
|
429
602
|
function isAdmonitionSource(el, tag) {
|
|
430
|
-
return tag === "aside" ||
|
|
603
|
+
return tag === "aside" || attrOf2(el, "role") === "note";
|
|
431
604
|
}
|
|
432
605
|
function roleOf(el, tag) {
|
|
433
606
|
if (HEADING_LEVELS.has(tag)) return "heading";
|
|
@@ -445,11 +618,11 @@ function positionOf2(node) {
|
|
|
445
618
|
};
|
|
446
619
|
}
|
|
447
620
|
function rawText(node, skipHref) {
|
|
448
|
-
if (
|
|
449
|
-
if (!
|
|
621
|
+
if (defaultTreeAdapter2.isTextNode(node)) return node.value;
|
|
622
|
+
if (!defaultTreeAdapter2.isElementNode(node)) return "";
|
|
450
623
|
const tag = tagOf(node);
|
|
451
624
|
if (NON_TEXT_TAGS.has(tag)) return "";
|
|
452
|
-
if (skipHref !== void 0 && tag === "a" &&
|
|
625
|
+
if (skipHref !== void 0 && tag === "a" && attrOf2(node, "href") === skipHref) return "";
|
|
453
626
|
let out = "";
|
|
454
627
|
for (const child of node.childNodes) out += rawText(child, skipHref);
|
|
455
628
|
return out;
|
|
@@ -458,7 +631,7 @@ function flatText(node, skipHref) {
|
|
|
458
631
|
return rawText(node, skipHref).replace(/\s+/g, " ").trim();
|
|
459
632
|
}
|
|
460
633
|
function langOf(el) {
|
|
461
|
-
const className =
|
|
634
|
+
const className = attrOf2(el, "class");
|
|
462
635
|
if (!className) return void 0;
|
|
463
636
|
for (const token of className.split(/\s+/)) {
|
|
464
637
|
if (token.startsWith("language-") && token.length > "language-".length) {
|
|
@@ -468,31 +641,31 @@ function langOf(el) {
|
|
|
468
641
|
return void 0;
|
|
469
642
|
}
|
|
470
643
|
function variantOf(el) {
|
|
471
|
-
const className =
|
|
644
|
+
const className = attrOf2(el, "class");
|
|
472
645
|
if (className) {
|
|
473
646
|
for (const token of className.split(/\s+/)) {
|
|
474
647
|
if (ADMONITION_VARIANTS.has(token)) return token;
|
|
475
648
|
}
|
|
476
649
|
}
|
|
477
|
-
if (
|
|
650
|
+
if (attrOf2(el, "role") === "note") return "note";
|
|
478
651
|
return void 0;
|
|
479
652
|
}
|
|
480
653
|
function firstElementChild(el, tag) {
|
|
481
654
|
for (const child of el.childNodes) {
|
|
482
|
-
if (
|
|
655
|
+
if (defaultTreeAdapter2.isElementNode(child) && tagOf(child) === tag) return child;
|
|
483
656
|
}
|
|
484
657
|
return void 0;
|
|
485
658
|
}
|
|
486
659
|
function elementChildren(el) {
|
|
487
660
|
const out = [];
|
|
488
661
|
for (const child of el.childNodes) {
|
|
489
|
-
if (
|
|
662
|
+
if (defaultTreeAdapter2.isElementNode(child)) out.push(child);
|
|
490
663
|
}
|
|
491
664
|
return out;
|
|
492
665
|
}
|
|
493
666
|
function findImage(el) {
|
|
494
667
|
for (const child of el.childNodes) {
|
|
495
|
-
if (!
|
|
668
|
+
if (!defaultTreeAdapter2.isElementNode(child)) continue;
|
|
496
669
|
if (tagOf(child) === "img") return child;
|
|
497
670
|
const nested = findImage(child);
|
|
498
671
|
if (nested) return nested;
|
|
@@ -511,13 +684,13 @@ function codeNode(pre) {
|
|
|
511
684
|
};
|
|
512
685
|
}
|
|
513
686
|
function imageNode(img, position, caption) {
|
|
514
|
-
const title =
|
|
687
|
+
const title = attrOf2(img, "title");
|
|
515
688
|
return {
|
|
516
689
|
kind: "image",
|
|
517
690
|
position,
|
|
518
691
|
text: caption ?? "",
|
|
519
|
-
url:
|
|
520
|
-
alt:
|
|
692
|
+
url: attrOf2(img, "src") ?? "",
|
|
693
|
+
alt: attrOf2(img, "alt") ?? "",
|
|
521
694
|
...title ? { title } : {}
|
|
522
695
|
};
|
|
523
696
|
}
|
|
@@ -631,7 +804,7 @@ function definitionListNode(dl) {
|
|
|
631
804
|
function listItems(list) {
|
|
632
805
|
const items = [];
|
|
633
806
|
for (const child of list.childNodes) {
|
|
634
|
-
if (!
|
|
807
|
+
if (!defaultTreeAdapter2.isElementNode(child)) continue;
|
|
635
808
|
if (tagOf(child) !== "li") continue;
|
|
636
809
|
items.push({
|
|
637
810
|
kind: "listItem",
|
|
@@ -659,12 +832,12 @@ function childContent2(parent) {
|
|
|
659
832
|
out.push({ kind: "paragraph", position: at ?? positionOf2(parent), text: value });
|
|
660
833
|
};
|
|
661
834
|
for (const child of parent.childNodes) {
|
|
662
|
-
if (
|
|
835
|
+
if (defaultTreeAdapter2.isTextNode(child)) {
|
|
663
836
|
text += child.value;
|
|
664
837
|
if (child.value.trim().length > 0) extend(child);
|
|
665
838
|
continue;
|
|
666
839
|
}
|
|
667
|
-
if (!
|
|
840
|
+
if (!defaultTreeAdapter2.isElementNode(child)) continue;
|
|
668
841
|
const tag = tagOf(child);
|
|
669
842
|
const role = roleOf(child, tag);
|
|
670
843
|
if (role === "heading" || role === "opaque") continue;
|
|
@@ -720,7 +893,7 @@ function toContentNode2(el, tag) {
|
|
|
720
893
|
function contentIn(parent) {
|
|
721
894
|
const out = [];
|
|
722
895
|
for (const child of parent.childNodes) {
|
|
723
|
-
if (!
|
|
896
|
+
if (!defaultTreeAdapter2.isElementNode(child)) continue;
|
|
724
897
|
const tag = tagOf(child);
|
|
725
898
|
const role = roleOf(child, tag);
|
|
726
899
|
if (role === "heading" || role === "opaque") continue;
|
|
@@ -735,7 +908,7 @@ function contentIn(parent) {
|
|
|
735
908
|
}
|
|
736
909
|
function walk(parent, out, ids) {
|
|
737
910
|
for (const child of parent.childNodes) {
|
|
738
|
-
if (!
|
|
911
|
+
if (!defaultTreeAdapter2.isElementNode(child)) continue;
|
|
739
912
|
const tag = tagOf(child);
|
|
740
913
|
const role = roleOf(child, tag);
|
|
741
914
|
if (role === "heading") {
|
|
@@ -771,7 +944,7 @@ var HeadingIds = class {
|
|
|
771
944
|
open = [];
|
|
772
945
|
byHeading = /* @__PURE__ */ new Map();
|
|
773
946
|
enter(el) {
|
|
774
|
-
this.open.push({ id:
|
|
947
|
+
this.open.push({ id: attrOf2(el, "id"), spent: false });
|
|
775
948
|
}
|
|
776
949
|
leave() {
|
|
777
950
|
this.open.pop();
|
|
@@ -780,21 +953,30 @@ var HeadingIds = class {
|
|
|
780
953
|
const nearest = this.open.at(-1);
|
|
781
954
|
const inherited = nearest && !nearest.spent ? nearest.id : void 0;
|
|
782
955
|
for (const carrier of this.open) carrier.spent = true;
|
|
783
|
-
const id =
|
|
956
|
+
const id = attrOf2(heading, "id") ?? inherited;
|
|
784
957
|
if (id !== void 0) this.byHeading.set(heading, id);
|
|
785
958
|
return id;
|
|
786
959
|
}
|
|
787
960
|
};
|
|
788
|
-
|
|
961
|
+
var LINK_ATTRS = /* @__PURE__ */ new Map([
|
|
962
|
+
["a", "href"],
|
|
963
|
+
["area", "href"],
|
|
964
|
+
["madcap:xref", "href"],
|
|
965
|
+
["madcap:snippetblock", "src"],
|
|
966
|
+
["madcap:snippettext", "src"]
|
|
967
|
+
]);
|
|
968
|
+
function collectLinks(parent, ids, heading, out, targetOf) {
|
|
789
969
|
for (const child of parent.childNodes) {
|
|
790
|
-
if (!
|
|
970
|
+
if (!defaultTreeAdapter2.isElementNode(child)) continue;
|
|
791
971
|
const tag = tagOf(child);
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
const
|
|
795
|
-
|
|
972
|
+
const attr = LINK_ATTRS.get(tag);
|
|
973
|
+
if (attr !== void 0) {
|
|
974
|
+
const href = attrOf2(child, attr);
|
|
975
|
+
const permalink = (tag === "a" || tag === "area") && heading !== void 0 && href === `#${heading}`;
|
|
976
|
+
const target = href === void 0 || permalink ? void 0 : targetOf(href);
|
|
977
|
+
if (target !== void 0) out.push({ target, position: positionOf2(child) });
|
|
796
978
|
}
|
|
797
|
-
collectLinks(child, ids, HEADING_LEVELS.has(tag) ? ids.get(child) : heading, out);
|
|
979
|
+
collectLinks(child, ids, HEADING_LEVELS.has(tag) ? ids.get(child) : heading, out, targetOf);
|
|
798
980
|
}
|
|
799
981
|
}
|
|
800
982
|
function documentEnd2(content) {
|
|
@@ -823,29 +1005,54 @@ function origin() {
|
|
|
823
1005
|
}
|
|
824
1006
|
function findHead(doc) {
|
|
825
1007
|
for (const child of doc.childNodes) {
|
|
826
|
-
if (!
|
|
1008
|
+
if (!defaultTreeAdapter2.isElementNode(child)) continue;
|
|
827
1009
|
if (tagOf(child) === "html") return firstElementChild(child, "head");
|
|
828
1010
|
}
|
|
829
1011
|
return void 0;
|
|
830
1012
|
}
|
|
831
|
-
function
|
|
832
|
-
const
|
|
833
|
-
const
|
|
1013
|
+
function derivedFlareTitle(doc) {
|
|
1014
|
+
const head = findHead(doc);
|
|
1015
|
+
const title = head ? firstElementChild(head, "title") : void 0;
|
|
1016
|
+
return title === void 0 || flatText(title) === "";
|
|
1017
|
+
}
|
|
1018
|
+
function parseHtml(content, filePath, context) {
|
|
1019
|
+
const doc = isXhtml(content) ? parseXhtml(content) : parse(content, { sourceCodeLocationInfo: true });
|
|
1020
|
+
let fragments = [];
|
|
834
1021
|
const ids = new HeadingIds();
|
|
835
1022
|
walk(doc, fragments, ids);
|
|
836
1023
|
const links = [];
|
|
837
|
-
|
|
1024
|
+
const flare = isFlare(content);
|
|
1025
|
+
const project = flare ? context?.flare?.projectFor(context.absPath) : void 0;
|
|
1026
|
+
collectLinks(
|
|
1027
|
+
doc,
|
|
1028
|
+
ids.byHeading,
|
|
1029
|
+
void 0,
|
|
1030
|
+
links,
|
|
1031
|
+
(href) => flare ? flareLinkTarget(href, project) : href
|
|
1032
|
+
);
|
|
838
1033
|
const { frontmatter, position } = metadataOf(content, filePath, doc);
|
|
1034
|
+
const view = context?.flare !== void 0 && flare ? resolveFlare(
|
|
1035
|
+
content,
|
|
1036
|
+
filePath,
|
|
1037
|
+
context.absPath,
|
|
1038
|
+
context.flare,
|
|
1039
|
+
typeof frontmatter?.title === "string" ? frontmatter.title : void 0
|
|
1040
|
+
) : void 0;
|
|
1041
|
+
if (view !== void 0) {
|
|
1042
|
+
fragments = [];
|
|
1043
|
+
walk(view.doc, fragments, new HeadingIds());
|
|
1044
|
+
}
|
|
839
1045
|
return {
|
|
840
1046
|
format: "html",
|
|
841
1047
|
filePath,
|
|
842
1048
|
frontmatter,
|
|
843
1049
|
frontmatterPosition: position,
|
|
844
|
-
sections: sectionize(
|
|
845
|
-
withMetadataTitle(fragments, frontmatter, position),
|
|
1050
|
+
sections: view?.flare?.excluded ? [] : sectionize(
|
|
1051
|
+
withMetadataTitle(fragments, flare && derivedFlareTitle(doc) ? null : frontmatter, position),
|
|
846
1052
|
documentEnd2(content)
|
|
847
1053
|
),
|
|
848
|
-
links
|
|
1054
|
+
links,
|
|
1055
|
+
...view?.flare === void 0 ? {} : { flare: view.flare }
|
|
849
1056
|
};
|
|
850
1057
|
}
|
|
851
1058
|
var htmlParser = {
|
|
@@ -865,7 +1072,7 @@ var htmlParser = {
|
|
|
865
1072
|
"definitionList",
|
|
866
1073
|
"definitionItem"
|
|
867
1074
|
],
|
|
868
|
-
extensions: [".html", ".htm"],
|
|
1075
|
+
extensions: [".html", ".htm", ".flsnp"],
|
|
869
1076
|
parse: parseHtml
|
|
870
1077
|
};
|
|
871
1078
|
|
|
@@ -1644,7 +1851,7 @@ function collectLinks2(src, from, code) {
|
|
|
1644
1851
|
}
|
|
1645
1852
|
}
|
|
1646
1853
|
}
|
|
1647
|
-
const
|
|
1854
|
+
const resolve2 = (name) => {
|
|
1648
1855
|
let uri = targets.get(refName(name));
|
|
1649
1856
|
for (let hops = 0; uri?.endsWith("_") && hops < targets.size; hops++) {
|
|
1650
1857
|
uri = targets.get(refName(uri.slice(0, -1)));
|
|
@@ -1671,10 +1878,10 @@ function collectLinks2(src, from, code) {
|
|
|
1671
1878
|
take(ROLE, () => void 0);
|
|
1672
1879
|
take(EMBEDDED, (m) => {
|
|
1673
1880
|
const uri = (m[2] ?? "").replace(/\s+/g, "");
|
|
1674
|
-
return uri.endsWith("_") ?
|
|
1881
|
+
return uri.endsWith("_") ? resolve2(uri.slice(0, -1)) : uri;
|
|
1675
1882
|
});
|
|
1676
|
-
take(PHRASE_REF, (m) =>
|
|
1677
|
-
take(SIMPLE_REF, (m) =>
|
|
1883
|
+
take(PHRASE_REF, (m) => resolve2(m[1] ?? ""));
|
|
1884
|
+
take(SIMPLE_REF, (m) => resolve2(m[1] ?? ""));
|
|
1678
1885
|
hits.sort((a, b) => a.column - b.column);
|
|
1679
1886
|
for (const hit of hits) {
|
|
1680
1887
|
links.push({
|
|
@@ -1977,10 +2184,36 @@ var DITAMAP = {
|
|
|
1977
2184
|
links: [{ elements: MAP_ENTRIES, attribute: "href" }],
|
|
1978
2185
|
ditaHrefs: true
|
|
1979
2186
|
};
|
|
2187
|
+
var FLARE_TOC = {
|
|
2188
|
+
name: "flare-toc",
|
|
2189
|
+
label: "Flare TOC",
|
|
2190
|
+
namespaces: [],
|
|
2191
|
+
roots: ["CatapultToc"],
|
|
2192
|
+
sections: ["TocEntry"],
|
|
2193
|
+
titles: [],
|
|
2194
|
+
// Read through `getAttribute`, so the case is Flare's own.
|
|
2195
|
+
titleAttributes: ["Title"],
|
|
2196
|
+
untitledTitles: /^\s*\[%=\s*System\.LinkedTitle\s*%\]\s*$/i,
|
|
2197
|
+
allowNoSections: true,
|
|
2198
|
+
keep: (el, context) => {
|
|
2199
|
+
const target = context?.flare?.projectFor(context.absPath)?.target;
|
|
2200
|
+
return includes(target?.expression, parseConditionTags(el.getAttribute("conditions")));
|
|
2201
|
+
},
|
|
2202
|
+
titleWrappers: [],
|
|
2203
|
+
transparent: ["CatapultToc"],
|
|
2204
|
+
paragraphs: [],
|
|
2205
|
+
code: [],
|
|
2206
|
+
codeLangAttributes: [],
|
|
2207
|
+
unorderedLists: [],
|
|
2208
|
+
orderedLists: [],
|
|
2209
|
+
listItems: [],
|
|
2210
|
+
links: [{ elements: ["TocEntry"], attribute: "Link" }]
|
|
2211
|
+
};
|
|
1980
2212
|
var XML_VOCABULARIES = [
|
|
1981
2213
|
DITA,
|
|
1982
2214
|
DOCBOOK,
|
|
1983
|
-
DITAMAP
|
|
2215
|
+
DITAMAP,
|
|
2216
|
+
FLARE_TOC
|
|
1984
2217
|
];
|
|
1985
2218
|
var lower = (names = []) => new Set(names.map((n) => n.toLowerCase()));
|
|
1986
2219
|
function compile(vocab) {
|
|
@@ -2201,12 +2434,14 @@ function nextInDocumentOrder(el) {
|
|
|
2201
2434
|
}
|
|
2202
2435
|
}
|
|
2203
2436
|
var Flattener = class {
|
|
2204
|
-
constructor(c, map) {
|
|
2437
|
+
constructor(c, map, context) {
|
|
2205
2438
|
this.c = c;
|
|
2206
2439
|
this.map = map;
|
|
2440
|
+
this.context = context;
|
|
2207
2441
|
}
|
|
2208
2442
|
c;
|
|
2209
2443
|
map;
|
|
2444
|
+
context;
|
|
2210
2445
|
fragments = [];
|
|
2211
2446
|
span(el) {
|
|
2212
2447
|
const start = this.map.point(el) ?? { ...this.map.docEnd };
|
|
@@ -2249,7 +2484,9 @@ var Flattener = class {
|
|
|
2249
2484
|
}
|
|
2250
2485
|
for (const attr of this.c.vocab.titleAttributes ?? []) {
|
|
2251
2486
|
const value = el.getAttribute(attr);
|
|
2252
|
-
if (value
|
|
2487
|
+
if (value && !this.c.vocab.untitledTitles?.test(value)) {
|
|
2488
|
+
return { title: flatten(value), end: this.startTagEnd(el) };
|
|
2489
|
+
}
|
|
2253
2490
|
}
|
|
2254
2491
|
if (this.c.vocab.untitledSections) {
|
|
2255
2492
|
return { title: "", end: this.startTagEnd(el) };
|
|
@@ -2258,6 +2495,7 @@ var Flattener = class {
|
|
|
2258
2495
|
}
|
|
2259
2496
|
/** Walk one element: section, wrapper, content, or skipped subtree. */
|
|
2260
2497
|
visit(el, level) {
|
|
2498
|
+
if (this.c.vocab.keep && !this.c.vocab.keep(el, this.context)) return;
|
|
2261
2499
|
const name = localName(el);
|
|
2262
2500
|
if (this.c.sections.has(name)) {
|
|
2263
2501
|
const heading = this.headingOf(el);
|
|
@@ -2601,7 +2839,7 @@ function readMetadata2(content, filePath) {
|
|
|
2601
2839
|
);
|
|
2602
2840
|
}
|
|
2603
2841
|
}
|
|
2604
|
-
function parseXml(content, filePath, vocabularies = XML_VOCABULARIES) {
|
|
2842
|
+
function parseXml(content, filePath, vocabularies = XML_VOCABULARIES, context) {
|
|
2605
2843
|
const map = new SourceMap(content);
|
|
2606
2844
|
const root = parseDocument(map.text, filePath);
|
|
2607
2845
|
const compiled = vocabularies.map(compile);
|
|
@@ -2612,13 +2850,13 @@ function parseXml(content, filePath, vocabularies = XML_VOCABULARIES) {
|
|
|
2612
2850
|
const names = compiled.map((c) => c.vocab.label).join(", ");
|
|
2613
2851
|
if (score <= 0) {
|
|
2614
2852
|
throw new LintError(
|
|
2615
|
-
`${filePath}: no known XML vocabulary matched <${localName(root)}>. manni lint understands ${names}
|
|
2853
|
+
`${filePath}: no known XML vocabulary matched <${localName(root)}>. manni lint understands ${names}.`
|
|
2616
2854
|
);
|
|
2617
2855
|
}
|
|
2618
|
-
const flattener = new Flattener(best, map);
|
|
2856
|
+
const flattener = new Flattener(best, map, context);
|
|
2619
2857
|
flattener.visit(root, 0);
|
|
2620
2858
|
const fragments = flattener.fragments;
|
|
2621
|
-
if (!fragments.some((b) => b.type === "heading")) {
|
|
2859
|
+
if (!best.vocab.allowNoSections && !fragments.some((b) => b.type === "heading")) {
|
|
2622
2860
|
throw new LintError(
|
|
2623
2861
|
`${filePath}: read as ${best.vocab.label}, but no titled section was found. A ${best.vocab.label} section is one of <${best.vocab.sections.join(">, <")}> carrying a <${best.vocab.titles.join(">/<")}>; without one the document has no structure to check.`
|
|
2624
2862
|
);
|
|
@@ -2665,17 +2903,20 @@ var xmlParser = {
|
|
|
2665
2903
|
* the same thing a section tree is: `<topicref>` nesting is section nesting.
|
|
2666
2904
|
* A docset of maps with no map template matches nothing and is skipped as
|
|
2667
2905
|
* `no-template`, exactly as an untyped Markdown page is.
|
|
2906
|
+
*
|
|
2907
|
+
* `.fltoc` and `.flbrs` are a MadCap Flare TOC and browse sequence, the same
|
|
2908
|
+
* tree of navigation entries under another name (proposal 0125).
|
|
2668
2909
|
*/
|
|
2669
|
-
extensions: [".xml", ".dita", ".ditamap"],
|
|
2910
|
+
extensions: [".xml", ".dita", ".ditamap", ".fltoc", ".flbrs"],
|
|
2670
2911
|
/**
|
|
2671
|
-
* A directory walk collects `.dita` and `.
|
|
2672
|
-
*
|
|
2912
|
+
* A directory walk collects `.dita`, `.ditamap`, `.fltoc` and `.flbrs` but
|
|
2913
|
+
* not `.xml`. All four are documentation by definition; `.xml` is a container a repository
|
|
2673
2914
|
* uses for build files, sitemaps, and project metadata, none of which match a
|
|
2674
2915
|
* documentation vocabulary. Sweeping those in made one `pom.xml` fail an
|
|
2675
2916
|
* otherwise clean tree. Naming an `.xml` file explicitly still parses it.
|
|
2676
2917
|
*/
|
|
2677
|
-
walkExtensions: [".dita", ".ditamap"],
|
|
2678
|
-
parse: (content, filePath) => parseXml(content, filePath)
|
|
2918
|
+
walkExtensions: [".dita", ".ditamap", ".fltoc", ".flbrs"],
|
|
2919
|
+
parse: (content, filePath, context) => parseXml(content, filePath, XML_VOCABULARIES, context)
|
|
2679
2920
|
};
|
|
2680
2921
|
|
|
2681
2922
|
// src/lint/parsers/asciidoc.ts
|
|
@@ -3238,10 +3479,11 @@ function listFormats() {
|
|
|
3238
3479
|
}
|
|
3239
3480
|
|
|
3240
3481
|
export {
|
|
3482
|
+
plainText,
|
|
3241
3483
|
parserForExtension,
|
|
3242
3484
|
parserByName,
|
|
3243
3485
|
supportedExtensions,
|
|
3244
3486
|
unsupportedFormatMessage,
|
|
3245
3487
|
listFormats
|
|
3246
3488
|
};
|
|
3247
|
-
//# sourceMappingURL=chunk-
|
|
3489
|
+
//# sourceMappingURL=chunk-H7SFSZ3I.js.map
|