@hawkeyexl/manni 4.19.0 → 4.20.1
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-R7A22ANE.js → batch-J626LZ22.js} +13 -13
- package/dist/{build-EUPWPNJJ.js → build-AYLD6V6Y.js} +15 -15
- package/dist/{calibrate-3JTVKYSQ.js → calibrate-2HZFACIX.js} +14 -14
- package/dist/{capture-WT4O77PA.js → capture-NMDIPC6S.js} +13 -13
- package/dist/{check-5HPK2S57.js → check-KNQV7GLU.js} +13 -12
- package/dist/check-OH4KKXP3.js +33 -0
- package/dist/{check-POQHLDLN.js → check-PQ7S5I3I.js} +31 -31
- package/dist/check-PRAMKQCI.js +47 -0
- package/dist/{check-KQ3KUXQT.js → check-RCSQARQE.js} +13 -13
- package/dist/{chunk-XGL4TSEA.js → chunk-2GTR24SA.js} +8 -8
- package/dist/{chunk-2BY4C2WU.js → chunk-4DFBBU4A.js} +2 -2
- package/dist/{chunk-CEIJV5QG.js → chunk-4F5WGZRP.js} +5 -5
- package/dist/{chunk-XH3NRZFD.js → chunk-4H3IOF52.js} +3 -3
- package/dist/{chunk-OABOOM6D.js → chunk-5CJ3P5O3.js} +13 -13
- package/dist/chunk-5CJ3P5O3.js.map +1 -0
- package/dist/{chunk-X4ZANRWU.js → chunk-5E3ABFOQ.js} +3 -3
- package/dist/{chunk-BJ4T6QRD.js → chunk-6FY573GB.js} +3 -3
- package/dist/{chunk-PF6BTJ4N.js → chunk-A633WB3N.js} +26 -26
- package/dist/chunk-A633WB3N.js.map +1 -0
- package/dist/{chunk-EWNWPYMQ.js → chunk-ACJUZFRT.js} +4 -4
- package/dist/{chunk-YKOB2LDR.js → chunk-BM43RJIS.js} +8 -8
- package/dist/{chunk-P3DDYDJW.js → chunk-BY4THWAQ.js} +3 -3
- package/dist/{chunk-IM2K47B7.js → chunk-C5BXSQDO.js} +5 -5
- package/dist/{chunk-5YOZIXTG.js → chunk-CT5WSUUZ.js} +2 -2
- package/dist/{chunk-5SL2QOCH.js → chunk-CXL6ES7O.js} +4 -4
- package/dist/{chunk-S2PXTHDM.js → chunk-D4XQX4W7.js} +2 -2
- package/dist/{chunk-7FDYCTXS.js → chunk-D54BQM5P.js} +8 -8
- package/dist/chunk-D54BQM5P.js.map +1 -0
- package/dist/chunk-DNF42MK7.js +326 -0
- package/dist/chunk-DNF42MK7.js.map +1 -0
- package/dist/chunk-E6JYRVR5.js +137 -0
- package/dist/chunk-E6JYRVR5.js.map +1 -0
- package/dist/{chunk-TC76MTNC.js → chunk-EOJEPEYY.js} +2 -2
- package/dist/{chunk-KMZF77L6.js → chunk-FIR2MAGS.js} +2 -2
- package/dist/chunk-FKELQCGN.js +25 -0
- package/dist/chunk-FKELQCGN.js.map +1 -0
- package/dist/{chunk-JNMY7KZG.js → chunk-G5I2JTDK.js} +2 -2
- package/dist/{chunk-TMPCYEGS.js → chunk-GGTCSMNX.js} +4 -4
- package/dist/{chunk-HCUHASZN.js → chunk-H3C3UXTA.js} +6 -6
- package/dist/{chunk-BMFT6SBM.js → chunk-HGUCJ3K3.js} +5 -5
- package/dist/{chunk-BAH6O5PN.js → chunk-ISDFYXLA.js} +38 -36
- package/dist/chunk-ISDFYXLA.js.map +1 -0
- package/dist/{chunk-6Q7JZZVG.js → chunk-JPXC62SD.js} +11 -10
- package/dist/chunk-JPXC62SD.js.map +1 -0
- package/dist/{chunk-S3WWQTJC.js → chunk-KERICP5Y.js} +6 -6
- package/dist/chunk-LPJ3IB26.js +64 -0
- package/dist/chunk-LPJ3IB26.js.map +1 -0
- package/dist/{chunk-K2FE4B6R.js → chunk-LXJ4FZ7Y.js} +6 -6
- package/dist/{chunk-SGUSZTUB.js → chunk-MJZ5HYYL.js} +22 -22
- package/dist/{chunk-SGUSZTUB.js.map → chunk-MJZ5HYYL.js.map} +1 -1
- package/dist/{chunk-6MVYXXRG.js → chunk-MJZK7G4B.js} +3 -3
- package/dist/{chunk-VBEFPLAN.js → chunk-MPXMQGJI.js} +7 -7
- package/dist/{chunk-X7RPFR6B.js → chunk-MTMR65NM.js} +2 -2
- package/dist/{chunk-23C7Q3Z5.js → chunk-N2VB6UUE.js} +2 -2
- package/dist/{chunk-5R4BXMGC.js → chunk-N3DYE6LJ.js} +5 -5
- package/dist/{chunk-T63LOFB2.js → chunk-NDPQ2GQ4.js} +5 -5
- package/dist/chunk-O4O6JOGD.js +59 -0
- package/dist/chunk-O4O6JOGD.js.map +1 -0
- package/dist/{chunk-JA25DZIV.js → chunk-ODSIHEIW.js} +6 -11
- package/dist/chunk-ODSIHEIW.js.map +1 -0
- package/dist/{chunk-IBNI5CRF.js → chunk-OQR3VVAX.js} +3 -3
- package/dist/{chunk-NZYXMTNI.js → chunk-OVUQNM7Y.js} +2 -2
- package/dist/{chunk-YL7EATZ7.js → chunk-OXCWCEVV.js} +5 -5
- package/dist/chunk-P5DWBG6T.js +50 -0
- package/dist/chunk-P5DWBG6T.js.map +1 -0
- package/dist/{chunk-PGMHGOLD.js → chunk-P6XZ44C2.js} +7 -7
- package/dist/chunk-P6XZ44C2.js.map +1 -0
- package/dist/{chunk-3EQR6QAZ.js → chunk-QGBNWEWS.js} +60 -63
- package/dist/chunk-QGBNWEWS.js.map +1 -0
- package/dist/{chunk-S243N72D.js → chunk-RA2BER5P.js} +2 -2
- package/dist/{chunk-YM2DGL3T.js → chunk-RN7IA742.js} +7 -7
- package/dist/{chunk-G4RTYFFR.js → chunk-ROZDHPKA.js} +3 -3
- package/dist/{chunk-U2PJNL3R.js → chunk-S2HW3CBF.js} +5 -5
- package/dist/chunk-SIREOHLW.js +233 -0
- package/dist/chunk-SIREOHLW.js.map +1 -0
- package/dist/{chunk-QYFPJY7F.js → chunk-SUTY4VCZ.js} +6 -6
- package/dist/{chunk-IX5YIY5O.js → chunk-TAJYMXMM.js} +2 -2
- package/dist/{chunk-2MRYDECM.js → chunk-TDG2S5UE.js} +2 -2
- package/dist/{chunk-TKINOTVS.js → chunk-TI4DA6DF.js} +1 -1
- package/dist/{chunk-TKINOTVS.js.map → chunk-TI4DA6DF.js.map} +1 -1
- package/dist/{chunk-K5Q766TX.js → chunk-UVC3BUKU.js} +3 -3
- package/dist/{chunk-BKWXY474.js → chunk-WI3PPQQX.js} +2 -2
- package/dist/{chunk-T3DDFC2B.js → chunk-WRWW6SGG.js} +2 -2
- package/dist/{chunk-JBJGBEBU.js → chunk-XPO655IX.js} +3 -3
- package/dist/chunk-XTKJNRJ6.js +33 -0
- package/dist/chunk-XTKJNRJ6.js.map +1 -0
- package/dist/{chunk-WQVXJMJM.js → chunk-YIHIRMXN.js} +7 -7
- package/dist/chunk-YIHIRMXN.js.map +1 -0
- package/dist/chunk-YM2W43DI.js +126 -0
- package/dist/chunk-YM2W43DI.js.map +1 -0
- package/dist/chunk-YYWZ2MSL.js +50 -0
- package/dist/chunk-YYWZ2MSL.js.map +1 -0
- package/dist/{chunk-NNAE7NF2.js → chunk-Z2T5U7HN.js} +2 -2
- package/dist/{chunk-DJM67CFP.js → chunk-ZB3OFSRB.js} +7 -32
- package/dist/chunk-ZB3OFSRB.js.map +1 -0
- package/dist/{cli-5CUZEROV.js → cli-4RTNEVVX.js} +9 -9
- package/dist/{cli-4QKOQEWV.js → cli-6J4P5MLU.js} +2 -2
- package/dist/{cli-WAXGGWNW.js → cli-DQRFSU7U.js} +15 -15
- package/dist/{cli-WRNKMNEM.js → cli-FTSJQSB4.js} +17 -17
- package/dist/{cli-2Q2OFLOI.js → cli-IIFCE6GY.js} +14 -14
- package/dist/{cli-TMMOVK3R.js → cli-ISKXSN3P.js} +18 -18
- package/dist/{cli-4OHXIGOF.js → cli-K5635N25.js} +16 -16
- package/dist/{cli-II4EPPDK.js → cli-K5QWXB7H.js} +31 -31
- package/dist/cli-K5QWXB7H.js.map +1 -0
- package/dist/{cli-ZEOR6LL5.js → cli-PCZ7XNCO.js} +89 -38
- package/dist/cli-PCZ7XNCO.js.map +1 -0
- package/dist/{cli-534K765K.js → cli-TCHSYJLB.js} +21 -21
- package/dist/{cli-R3CS7V3H.js → cli-TM2JCTQT.js} +9 -9
- package/dist/cli.js +20 -14
- package/dist/cli.js.map +1 -1
- package/dist/docmeta.d.ts +1 -1
- package/dist/docmeta.js +8 -8
- package/dist/github-BUK5CVQW.js +27 -0
- package/dist/{github-PXXYARFQ.js → github-CMAZWS76.js} +12 -12
- package/dist/{github-K2A4TNDE.js → github-NXR4QMMM.js} +14 -14
- package/dist/graph/embed.d.ts +2 -1
- package/dist/graph/runtime.d.ts +2 -1
- package/dist/index.d.ts +27 -14
- package/dist/index.js +101 -101
- package/dist/{json-ELJ5D3VR.js → json-7Z2IFGB3.js} +12 -12
- package/dist/json-NZSGRYOE.js +34 -0
- package/dist/{labels-CHN33A4X.js → labels-SE2WL7WD.js} +11 -11
- package/dist/{lint-PYDL7IT7.js → lint-VUYM5PPM.js} +14 -14
- package/dist/list-4JGOXLOZ.js +33 -0
- package/dist/{list-EIFNJKE5.js → list-LTF25DQE.js} +12 -12
- package/dist/{list-T2NPRQCA.js → list-WD3TZS5R.js} +12 -12
- package/dist/{page-C4P4KFUL.js → page-A2Y4ZMV4.js} +11 -11
- package/dist/{prepare-Q6Y4NCXU.js → prepare-M2COBP5O.js} +16 -16
- package/dist/{pretty-XXMCA3SX.js → pretty-D3DZFC5U.js} +12 -12
- package/dist/pretty-R67YU6TU.js +35 -0
- package/dist/{pretty-B52EGTKL.js → pretty-SFFOMSG5.js} +13 -13
- package/dist/{release-Z3ASYZ3S.js → release-VHHASAG7.js} +4 -4
- package/dist/{reporters-3MDFUPKQ.js → reporters-TO7Q6JYF.js} +4 -4
- package/dist/{reporters-6VOPV7L6.js → reporters-UTLJVSWX.js} +13 -13
- package/dist/reporters-UTLJVSWX.js.map +1 -0
- package/dist/{run-YFH7RPUR.js → run-BDGYRUXJ.js} +12 -12
- package/dist/run-BDGYRUXJ.js.map +1 -0
- package/dist/{sarif-RBLPUGPH.js → sarif-EHAMGCVR.js} +15 -15
- package/dist/sarif-EHAMGCVR.js.map +1 -0
- package/dist/sarif-GJYLRXLS.js +30 -0
- package/dist/sarif-GJYLRXLS.js.map +1 -0
- package/dist/{sarif-NXSMEW2M.js → sarif-IAGMXA6C.js} +10 -10
- package/dist/sarif-IAGMXA6C.js.map +1 -0
- package/dist/strategy-UKRA6WO4.js +222 -0
- package/dist/strategy-UKRA6WO4.js.map +1 -0
- package/dist/{term-QIG4USZM.js → term-AMORBEO7.js} +30 -28
- package/dist/term-AMORBEO7.js.map +1 -0
- package/dist/{validate-W2XQYBSW.js → validate-CDTKFZUV.js} +5 -5
- package/dist/validate-CDTKFZUV.js.map +1 -0
- package/package.json +21 -21
- package/plugin/manni/.claude-plugin/plugin.json +1 -1
- package/plugin/manni/hooks/manni.mjs +29 -2
- package/plugin/manni/skills/fix/SKILL.md +18 -1
- package/plugin/manni/skills/setup/SKILL.md +1 -1
- package/dist/check-URJURAED.js +0 -47
- package/dist/chunk-3EQR6QAZ.js.map +0 -1
- package/dist/chunk-6Q7JZZVG.js.map +0 -1
- package/dist/chunk-7FDYCTXS.js.map +0 -1
- package/dist/chunk-BAH6O5PN.js.map +0 -1
- package/dist/chunk-DJM67CFP.js.map +0 -1
- package/dist/chunk-JA25DZIV.js.map +0 -1
- package/dist/chunk-OABOOM6D.js.map +0 -1
- package/dist/chunk-PF6BTJ4N.js.map +0 -1
- package/dist/chunk-PGMHGOLD.js.map +0 -1
- package/dist/chunk-WQVXJMJM.js.map +0 -1
- package/dist/cli-II4EPPDK.js.map +0 -1
- package/dist/cli-ZEOR6LL5.js.map +0 -1
- package/dist/term-QIG4USZM.js.map +0 -1
- /package/dist/{batch-R7A22ANE.js.map → batch-J626LZ22.js.map} +0 -0
- /package/dist/{build-EUPWPNJJ.js.map → build-AYLD6V6Y.js.map} +0 -0
- /package/dist/{calibrate-3JTVKYSQ.js.map → calibrate-2HZFACIX.js.map} +0 -0
- /package/dist/{capture-WT4O77PA.js.map → capture-NMDIPC6S.js.map} +0 -0
- /package/dist/{check-5HPK2S57.js.map → check-KNQV7GLU.js.map} +0 -0
- /package/dist/{check-KQ3KUXQT.js.map → check-OH4KKXP3.js.map} +0 -0
- /package/dist/{check-POQHLDLN.js.map → check-PQ7S5I3I.js.map} +0 -0
- /package/dist/{check-URJURAED.js.map → check-PRAMKQCI.js.map} +0 -0
- /package/dist/{cli-5CUZEROV.js.map → check-RCSQARQE.js.map} +0 -0
- /package/dist/{chunk-XGL4TSEA.js.map → chunk-2GTR24SA.js.map} +0 -0
- /package/dist/{chunk-2BY4C2WU.js.map → chunk-4DFBBU4A.js.map} +0 -0
- /package/dist/{chunk-CEIJV5QG.js.map → chunk-4F5WGZRP.js.map} +0 -0
- /package/dist/{chunk-XH3NRZFD.js.map → chunk-4H3IOF52.js.map} +0 -0
- /package/dist/{chunk-X4ZANRWU.js.map → chunk-5E3ABFOQ.js.map} +0 -0
- /package/dist/{chunk-BJ4T6QRD.js.map → chunk-6FY573GB.js.map} +0 -0
- /package/dist/{chunk-EWNWPYMQ.js.map → chunk-ACJUZFRT.js.map} +0 -0
- /package/dist/{chunk-YKOB2LDR.js.map → chunk-BM43RJIS.js.map} +0 -0
- /package/dist/{chunk-P3DDYDJW.js.map → chunk-BY4THWAQ.js.map} +0 -0
- /package/dist/{chunk-IM2K47B7.js.map → chunk-C5BXSQDO.js.map} +0 -0
- /package/dist/{chunk-5YOZIXTG.js.map → chunk-CT5WSUUZ.js.map} +0 -0
- /package/dist/{chunk-5SL2QOCH.js.map → chunk-CXL6ES7O.js.map} +0 -0
- /package/dist/{chunk-S2PXTHDM.js.map → chunk-D4XQX4W7.js.map} +0 -0
- /package/dist/{chunk-TC76MTNC.js.map → chunk-EOJEPEYY.js.map} +0 -0
- /package/dist/{chunk-KMZF77L6.js.map → chunk-FIR2MAGS.js.map} +0 -0
- /package/dist/{chunk-JNMY7KZG.js.map → chunk-G5I2JTDK.js.map} +0 -0
- /package/dist/{chunk-TMPCYEGS.js.map → chunk-GGTCSMNX.js.map} +0 -0
- /package/dist/{chunk-HCUHASZN.js.map → chunk-H3C3UXTA.js.map} +0 -0
- /package/dist/{chunk-BMFT6SBM.js.map → chunk-HGUCJ3K3.js.map} +0 -0
- /package/dist/{chunk-S3WWQTJC.js.map → chunk-KERICP5Y.js.map} +0 -0
- /package/dist/{chunk-K2FE4B6R.js.map → chunk-LXJ4FZ7Y.js.map} +0 -0
- /package/dist/{chunk-6MVYXXRG.js.map → chunk-MJZK7G4B.js.map} +0 -0
- /package/dist/{chunk-VBEFPLAN.js.map → chunk-MPXMQGJI.js.map} +0 -0
- /package/dist/{chunk-X7RPFR6B.js.map → chunk-MTMR65NM.js.map} +0 -0
- /package/dist/{chunk-23C7Q3Z5.js.map → chunk-N2VB6UUE.js.map} +0 -0
- /package/dist/{chunk-5R4BXMGC.js.map → chunk-N3DYE6LJ.js.map} +0 -0
- /package/dist/{chunk-T63LOFB2.js.map → chunk-NDPQ2GQ4.js.map} +0 -0
- /package/dist/{chunk-IBNI5CRF.js.map → chunk-OQR3VVAX.js.map} +0 -0
- /package/dist/{chunk-NZYXMTNI.js.map → chunk-OVUQNM7Y.js.map} +0 -0
- /package/dist/{chunk-YL7EATZ7.js.map → chunk-OXCWCEVV.js.map} +0 -0
- /package/dist/{chunk-S243N72D.js.map → chunk-RA2BER5P.js.map} +0 -0
- /package/dist/{chunk-YM2DGL3T.js.map → chunk-RN7IA742.js.map} +0 -0
- /package/dist/{chunk-G4RTYFFR.js.map → chunk-ROZDHPKA.js.map} +0 -0
- /package/dist/{chunk-U2PJNL3R.js.map → chunk-S2HW3CBF.js.map} +0 -0
- /package/dist/{chunk-QYFPJY7F.js.map → chunk-SUTY4VCZ.js.map} +0 -0
- /package/dist/{chunk-IX5YIY5O.js.map → chunk-TAJYMXMM.js.map} +0 -0
- /package/dist/{chunk-2MRYDECM.js.map → chunk-TDG2S5UE.js.map} +0 -0
- /package/dist/{chunk-K5Q766TX.js.map → chunk-UVC3BUKU.js.map} +0 -0
- /package/dist/{chunk-BKWXY474.js.map → chunk-WI3PPQQX.js.map} +0 -0
- /package/dist/{chunk-T3DDFC2B.js.map → chunk-WRWW6SGG.js.map} +0 -0
- /package/dist/{chunk-JBJGBEBU.js.map → chunk-XPO655IX.js.map} +0 -0
- /package/dist/{chunk-NNAE7NF2.js.map → chunk-Z2T5U7HN.js.map} +0 -0
- /package/dist/{github-K2A4TNDE.js.map → cli-4RTNEVVX.js.map} +0 -0
- /package/dist/{cli-4QKOQEWV.js.map → cli-6J4P5MLU.js.map} +0 -0
- /package/dist/{cli-WAXGGWNW.js.map → cli-DQRFSU7U.js.map} +0 -0
- /package/dist/{cli-WRNKMNEM.js.map → cli-FTSJQSB4.js.map} +0 -0
- /package/dist/{cli-2Q2OFLOI.js.map → cli-IIFCE6GY.js.map} +0 -0
- /package/dist/{cli-TMMOVK3R.js.map → cli-ISKXSN3P.js.map} +0 -0
- /package/dist/{cli-4OHXIGOF.js.map → cli-K5635N25.js.map} +0 -0
- /package/dist/{cli-534K765K.js.map → cli-TCHSYJLB.js.map} +0 -0
- /package/dist/{cli-R3CS7V3H.js.map → cli-TM2JCTQT.js.map} +0 -0
- /package/dist/{github-PXXYARFQ.js.map → github-BUK5CVQW.js.map} +0 -0
- /package/dist/{json-ELJ5D3VR.js.map → github-CMAZWS76.js.map} +0 -0
- /package/dist/{lint-PYDL7IT7.js.map → github-NXR4QMMM.js.map} +0 -0
- /package/dist/{list-EIFNJKE5.js.map → json-7Z2IFGB3.js.map} +0 -0
- /package/dist/{list-T2NPRQCA.js.map → json-NZSGRYOE.js.map} +0 -0
- /package/dist/{labels-CHN33A4X.js.map → labels-SE2WL7WD.js.map} +0 -0
- /package/dist/{page-C4P4KFUL.js.map → lint-VUYM5PPM.js.map} +0 -0
- /package/dist/{pretty-B52EGTKL.js.map → list-4JGOXLOZ.js.map} +0 -0
- /package/dist/{pretty-XXMCA3SX.js.map → list-LTF25DQE.js.map} +0 -0
- /package/dist/{reporters-3MDFUPKQ.js.map → list-WD3TZS5R.js.map} +0 -0
- /package/dist/{reporters-6VOPV7L6.js.map → page-A2Y4ZMV4.js.map} +0 -0
- /package/dist/{prepare-Q6Y4NCXU.js.map → prepare-M2COBP5O.js.map} +0 -0
- /package/dist/{run-YFH7RPUR.js.map → pretty-D3DZFC5U.js.map} +0 -0
- /package/dist/{sarif-NXSMEW2M.js.map → pretty-R67YU6TU.js.map} +0 -0
- /package/dist/{sarif-RBLPUGPH.js.map → pretty-SFFOMSG5.js.map} +0 -0
- /package/dist/{release-Z3ASYZ3S.js.map → release-VHHASAG7.js.map} +0 -0
- /package/dist/{validate-W2XQYBSW.js.map → reporters-TO7Q6JYF.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../package.json"],"sourcesContent":["{\n \"name\": \"@hawkeyexl/manni\",\n \"version\": \"4.
|
|
1
|
+
{"version":3,"sources":["../package.json"],"sourcesContent":["{\n \"name\": \"@hawkeyexl/manni\",\n \"version\": \"4.20.1\",\n \"description\": \"One command line for documentation that is meant to be checked. `manni meta` validates the presence and format of document metadata (Markdown frontmatter and more) against JSON Schema, built for CI. Formerly docmeta.\",\n \"type\": \"module\",\n \"bin\": {\n \"manni\": \"dist/cli.js\",\n \"docmeta\": \"dist/docmeta.js\"\n },\n \"main\": \"dist/index.js\",\n \"module\": \"dist/index.js\",\n \"types\": \"dist/index.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./dist/index.d.ts\",\n \"import\": \"./dist/index.js\"\n },\n \"./graph/runtime\": {\n \"types\": \"./dist/graph/runtime.d.ts\",\n \"import\": \"./dist/graph/runtime.js\"\n },\n \"./graph/embed\": {\n \"types\": \"./dist/graph/embed.d.ts\",\n \"import\": \"./dist/graph/embed.js\"\n },\n \"./site/rehype\": {\n \"types\": \"./dist/site/rehype.d.ts\",\n \"import\": \"./dist/site/rehype.js\"\n },\n \"./package.json\": \"./package.json\"\n },\n \"files\": [\n \"dist\",\n \"schemas\",\n \"plugin\",\n \"shapes\",\n \"templates\"\n ],\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/hawkeyexl/manni.git\"\n },\n \"homepage\": \"https://hawkeyexl.github.io/manni/\",\n \"bugs\": {\n \"url\": \"https://github.com/hawkeyexl/manni/issues\"\n },\n \"publishConfig\": {\n \"access\": \"public\"\n },\n \"engines\": {\n \"node\": \">=24\"\n },\n \"scripts\": {\n \"prebuild\": \"npm run check:deps\",\n \"build\": \"node scripts/clean-dist.mjs && tsup\",\n \"dev\": \"node scripts/clean-dist.mjs && tsup --watch\",\n \"pretest\": \"npm run check:deps\",\n \"test\": \"vitest run\",\n \"test:watch\": \"vitest\",\n \"test:graph:real\": \"vitest run --config vitest.graph-real.config.ts\",\n \"test:term:real\": \"vitest run --config vitest.term-real.config.ts\",\n \"test:coverage\": \"vitest run --coverage\",\n \"pretypecheck\": \"npm run check:deps\",\n \"typecheck\": \"tsc --noEmit\",\n \"lint\": \"eslint .\",\n \"check:deps\": \"node scripts/check-deps.mjs\",\n \"query:ui\": \"npm run build && node dist/cli.js meta query --db .manni/meta/query.db && node scripts/query-ui.mjs .manni/meta/query.db\",\n \"check:tgdp-pin\": \"node scripts/lint-check-tgdp-pin.mjs\",\n \"smoke:lint\": \"npm run build && node scripts/lint-smoke.mjs\",\n \"docs:check-cli\": \"node scripts/check-cli-reference.mjs\",\n \"docs:check-action\": \"node scripts/check-action-reference.mjs\",\n \"docs:check-api\": \"node scripts/check-api-reference.mjs\",\n \"docs:check-links\": \"node scripts/check-doc-links.mjs\",\n \"docs:check-docevals\": \"node dist/cli.js docevals run --deterministic-only --no-generate\",\n \"docs:check-graph\": \"node scripts/check-docs-graph.mjs\",\n \"docs:check-tables\": \"node scripts/check-table-rows.mjs\",\n \"docs:check-versions\": \"node scripts/check-versions.mjs\",\n \"docs:sync-versions\": \"node scripts/sync-versions.mjs\",\n \"schemas:sync\": \"node scripts/sync-builtin-schemas.mjs\",\n \"schemas:check\": \"node scripts/check-builtin-schemas.mjs\",\n \"schemas:check-published\": \"node scripts/check-published-schemas.mjs\",\n \"commitlint\": \"commitlint --edit\",\n \"semantic-release\": \"semantic-release\",\n \"prepare\": \"node scripts/prepare.mjs\",\n \"prepublishOnly\": \"npm run build\"\n },\n \"keywords\": [\n \"frontmatter\",\n \"metadata\",\n \"json-schema\",\n \"markdown\",\n \"validation\",\n \"cli\",\n \"ci\",\n \"okf\"\n ],\n \"license\": \"MIT\",\n \"overrides\": {\n \"esbuild\": \"^0.28.2\"\n },\n \"dependencies\": {\n \"@apidevtools/json-schema-ref-parser\": \"^16.0.5\",\n \"@asciidoctor/core\": \"^4.1.1\",\n \"@axe-core/playwright\": \"^4.14.0\",\n \"@hawkeyexl/inference\": \"^0.5.0\",\n \"@inquirer/prompts\": \"^8.7.4\",\n \"@types/n3\": \"^1.26.5\",\n \"@xmldom/xmldom\": \"^0.9.12\",\n \"ajv\": \"^8.17.1\",\n \"ajv-draft-04\": \"^1.0.0\",\n \"ajv-formats\": \"^3.0.1\",\n \"commander\": \"^15.0.0\",\n \"fast-glob\": \"^3.3.2\",\n \"github-slugger\": \"^2.0.0\",\n \"jsonld\": \"^9.0.0\",\n \"mdast-util-to-string\": \"^4.0.0\",\n \"minisearch\": \"^7.2.0\",\n \"n3\": \"^2.13.12\",\n \"parse5\": \"^8.0.1\",\n \"picocolors\": \"^1.1.1\",\n \"picomatch\": \"^4.0.7\",\n \"playwright-core\": \"^1.64.1\",\n \"rdf-validate-shacl\": \"^0.6.5\",\n \"remark-frontmatter\": \"^5.0.0\",\n \"remark-gfm\": \"^4.0.1\",\n \"remark-mdx\": \"^3.1.1\",\n \"remark-parse\": \"^11.0.0\",\n \"smol-toml\": \"^1.9.1\",\n \"unified\": \"^11.0.5\",\n \"unist-util-visit\": \"^5.1.0\",\n \"yaml\": \"^2.9.1\"\n },\n \"devDependencies\": {\n \"@commitlint/cli\": \"^21.2.4\",\n \"@commitlint/config-conventional\": \"^21.2.4\",\n \"@comunica/query-sparql-rdfjs-lite\": \"^5.3.0\",\n \"@eslint/js\": \"^10.0.1\",\n \"@rdfjs/types\": \"^2.0.1\",\n \"@semantic-release/changelog\": \"^6.0.3\",\n \"@semantic-release/commit-analyzer\": \"^13.0.1\",\n \"@semantic-release/git\": \"^10.0.1\",\n \"@semantic-release/github\": \"^12.0.10\",\n \"@semantic-release/npm\": \"^13.2.0\",\n \"@semantic-release/release-notes-generator\": \"^14.1.1\",\n \"@types/jsonld\": \"^1.5.15\",\n \"@types/mdast\": \"^4.0.4\",\n \"@types/node\": \"^26.6.5\",\n \"@types/picomatch\": \"^4.0.3\",\n \"@types/unist\": \"^3.0.3\",\n \"@types/yauzl\": \"^3.4.0\",\n \"@vitest/coverage-v8\": \"^5.0.5\",\n \"eslint\": \"^10.13.0\",\n \"globals\": \"^17.13.0\",\n \"husky\": \"^9.1.7\",\n \"rdfxml-streaming-parser\": \"^3.3.0\",\n \"semantic-release\": \"^25.0.9\",\n \"tsup\": \"^9.0.0\",\n \"typescript\": \"^6.0.3\",\n \"typescript-eslint\": \"^8.72.0\",\n \"vitest\": \"^5.0.5\",\n \"yauzl\": \"^3.4.0\"\n },\n \"optionalDependencies\": {\n \"@modelcontextprotocol/sdk\": \"^1.32.1\"\n },\n \"peerDependencies\": {\n \"@huggingface/transformers\": \">=4\",\n \"node-llama-cpp\": \"^3.19.0\"\n },\n \"peerDependenciesMeta\": {\n \"@huggingface/transformers\": {\n \"optional\": true\n },\n \"node-llama-cpp\": {\n \"optional\": true\n }\n }\n}\n"],"mappings":"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","names":[]}
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
mergeWithMarks,
|
|
9
9
|
pageMarks,
|
|
10
10
|
pageSchemaSet
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ODSIHEIW.js";
|
|
12
12
|
import {
|
|
13
13
|
loadMetaSection,
|
|
14
14
|
rebaseConfigSchemaRefs,
|
|
15
15
|
schemaTrustRoot
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WRWW6SGG.js";
|
|
17
17
|
|
|
18
18
|
// src/meta/core/page-view.ts
|
|
19
19
|
async function metaPageView(opts) {
|
|
@@ -80,4 +80,4 @@ export {
|
|
|
80
80
|
metaPageView,
|
|
81
81
|
declaredAt
|
|
82
82
|
};
|
|
83
|
-
//# sourceMappingURL=chunk-
|
|
83
|
+
//# sourceMappingURL=chunk-MJZK7G4B.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
parseTraceFile,
|
|
4
4
|
renderTrace
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OVUQNM7Y.js";
|
|
6
6
|
import {
|
|
7
7
|
evaluateWhen,
|
|
8
8
|
matchesGlob,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
extractEvals,
|
|
31
31
|
findManifest,
|
|
32
32
|
resolveArtifacts
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-UVC3BUKU.js";
|
|
34
34
|
import {
|
|
35
35
|
discoverConfig
|
|
36
36
|
} from "./chunk-QSPH4F56.js";
|
|
@@ -74,10 +74,10 @@ import {
|
|
|
74
74
|
} from "./chunk-QS2Z3SWL.js";
|
|
75
75
|
import {
|
|
76
76
|
declaredAt
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-MJZK7G4B.js";
|
|
78
78
|
import {
|
|
79
79
|
xmlEscape
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-XPO655IX.js";
|
|
81
81
|
import {
|
|
82
82
|
PATH_JOIN,
|
|
83
83
|
externalMetadataJoin,
|
|
@@ -85,12 +85,12 @@ import {
|
|
|
85
85
|
loadExternalMetadata,
|
|
86
86
|
memberOf,
|
|
87
87
|
mergeWithMarks
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-ODSIHEIW.js";
|
|
89
89
|
import {
|
|
90
90
|
DocmetaError,
|
|
91
91
|
classifyRef,
|
|
92
92
|
extractFrontmatter
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-WRWW6SGG.js";
|
|
94
94
|
import {
|
|
95
95
|
escapeWorkflowCommandMessage,
|
|
96
96
|
escapeWorkflowCommandProperty,
|
|
@@ -3204,4 +3204,4 @@ export {
|
|
|
3204
3204
|
resolveBatchTraces,
|
|
3205
3205
|
runBatch
|
|
3206
3206
|
};
|
|
3207
|
-
//# sourceMappingURL=chunk-
|
|
3207
|
+
//# sourceMappingURL=chunk-MPXMQGJI.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-MC7U5IH4.js";
|
|
10
10
|
import {
|
|
11
11
|
renderSarif
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XPO655IX.js";
|
|
13
13
|
import {
|
|
14
14
|
guidanceLines
|
|
15
15
|
} from "./chunk-QK6VYJHV.js";
|
|
@@ -73,4 +73,4 @@ export {
|
|
|
73
73
|
FIELD_LABEL,
|
|
74
74
|
renderFindingsSarif
|
|
75
75
|
};
|
|
76
|
-
//# sourceMappingURL=chunk-
|
|
76
|
+
//# sourceMappingURL=chunk-MTMR65NM.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
byCodeUnit,
|
|
11
11
|
canonicalLanguageTag,
|
|
12
12
|
parseLocalizations
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5CJ3P5O3.js";
|
|
14
14
|
|
|
15
15
|
// src/graph/core/vector-index.ts
|
|
16
16
|
var MAGIC = new Uint8Array([77, 71, 82, 86]);
|
|
@@ -1335,4 +1335,4 @@ export {
|
|
|
1335
1335
|
artifactContext,
|
|
1336
1336
|
createRetriever
|
|
1337
1337
|
};
|
|
1338
|
-
//# sourceMappingURL=chunk-
|
|
1338
|
+
//# sourceMappingURL=chunk-N2VB6UUE.js.map
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
sha256,
|
|
20
20
|
splitBody,
|
|
21
21
|
urlManifestRefusal
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-4F5WGZRP.js";
|
|
23
23
|
import {
|
|
24
24
|
turnBudgetSkipReason
|
|
25
25
|
} from "./chunk-SSQZB5SQ.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
import {
|
|
34
34
|
externalWriteWarnings,
|
|
35
35
|
offerExternalHomes
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-WI3PPQQX.js";
|
|
37
37
|
import {
|
|
38
38
|
LOCATION_KEYWORD,
|
|
39
39
|
Validator,
|
|
@@ -41,10 +41,10 @@ import {
|
|
|
41
41
|
readManifestOrEmpty,
|
|
42
42
|
readManifestValue,
|
|
43
43
|
spliceManifestValue
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-ODSIHEIW.js";
|
|
45
45
|
import {
|
|
46
46
|
writeFileAtomic
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-WRWW6SGG.js";
|
|
48
48
|
import {
|
|
49
49
|
noticeOnce,
|
|
50
50
|
warn
|
|
@@ -1041,4 +1041,4 @@ export {
|
|
|
1041
1041
|
makeGenerateScripts,
|
|
1042
1042
|
runRun
|
|
1043
1043
|
};
|
|
1044
|
-
//# sourceMappingURL=chunk-
|
|
1044
|
+
//# sourceMappingURL=chunk-N3DYE6LJ.js.map
|
|
@@ -7,19 +7,19 @@ import {
|
|
|
7
7
|
parseChunkRows,
|
|
8
8
|
parseChunksManifest,
|
|
9
9
|
range
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-N2VB6UUE.js";
|
|
11
11
|
import {
|
|
12
12
|
documentBase,
|
|
13
13
|
formatOf,
|
|
14
14
|
loadRunConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5CJ3P5O3.js";
|
|
16
16
|
import {
|
|
17
17
|
bodyLineOf
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ODSIHEIW.js";
|
|
19
19
|
import {
|
|
20
20
|
integrityOf,
|
|
21
21
|
locateFrontmatter
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-WRWW6SGG.js";
|
|
23
23
|
import {
|
|
24
24
|
notice,
|
|
25
25
|
warn
|
|
@@ -577,4 +577,4 @@ export {
|
|
|
577
577
|
runAnnotate,
|
|
578
578
|
renderAnnotate
|
|
579
579
|
};
|
|
580
|
-
//# sourceMappingURL=chunk-
|
|
580
|
+
//# sourceMappingURL=chunk-NDPQ2GQ4.js.map
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/strategy/types.ts
|
|
4
|
+
var RECORD_TYPES = ["audience", "persona", "journey"];
|
|
5
|
+
var PAGE_FIELDS = { audience: "audiences", persona: "personas", journey: "journeys" };
|
|
6
|
+
var PARENTS = { persona: "audience", journey: "personas" };
|
|
7
|
+
var STRATEGY_RULES = [
|
|
8
|
+
"undefined-reference",
|
|
9
|
+
"duplicate-id",
|
|
10
|
+
"missing-parent",
|
|
11
|
+
"orphan-record",
|
|
12
|
+
"unserved-journey",
|
|
13
|
+
"unused-record"
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
// src/strategy/core/severity.ts
|
|
17
|
+
var RULE_ID_PREFIX = "manni:strategy";
|
|
18
|
+
var DEFAULT_SEVERITY = {
|
|
19
|
+
"undefined-reference": "error",
|
|
20
|
+
"duplicate-id": "error",
|
|
21
|
+
"missing-parent": "warning",
|
|
22
|
+
"orphan-record": "warning",
|
|
23
|
+
"unserved-journey": "warning",
|
|
24
|
+
"unused-record": "notice"
|
|
25
|
+
};
|
|
26
|
+
var RULES_URI = "https://hawkeyexl.github.io/manni/strategy/reference/rules/";
|
|
27
|
+
var RULE_DESCRIPTIONS = {
|
|
28
|
+
"undefined-reference": "A page's audiences:, personas: or journeys:, or a record's audience: or personas:, names no record of that type.",
|
|
29
|
+
"duplicate-id": "Two records share an id, ignoring case.",
|
|
30
|
+
"missing-parent": "A page names a journey but none of its personas in personas:, or a persona but not its audience in audiences:.",
|
|
31
|
+
"orphan-record": "A persona names no audience, or a journey names no persona, while the set holds records of the parent type.",
|
|
32
|
+
"unserved-journey": "No page names the journey in journeys:. Records do not count, and a draft or archived journey is exempt.",
|
|
33
|
+
"unused-record": "No page and no record names an audience or a persona."
|
|
34
|
+
};
|
|
35
|
+
function guidanceFor(rule) {
|
|
36
|
+
return { id: RULE_ID_PREFIX, rule, description: RULE_DESCRIPTIONS[rule], guide: `${RULES_URI}#${rule}` };
|
|
37
|
+
}
|
|
38
|
+
function ruleId(rule) {
|
|
39
|
+
return `${RULE_ID_PREFIX}/${rule}`;
|
|
40
|
+
}
|
|
41
|
+
function isStrategyRule(value) {
|
|
42
|
+
return STRATEGY_RULES.includes(value);
|
|
43
|
+
}
|
|
44
|
+
function resolveSeverity(overrides) {
|
|
45
|
+
return { ...DEFAULT_SEVERITY, ...overrides };
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export {
|
|
49
|
+
RECORD_TYPES,
|
|
50
|
+
PAGE_FIELDS,
|
|
51
|
+
PARENTS,
|
|
52
|
+
STRATEGY_RULES,
|
|
53
|
+
RULE_ID_PREFIX,
|
|
54
|
+
guidanceFor,
|
|
55
|
+
ruleId,
|
|
56
|
+
isStrategyRule,
|
|
57
|
+
resolveSeverity
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=chunk-O4O6JOGD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/strategy/types.ts","../src/strategy/core/severity.ts"],"sourcesContent":["/**\n * The strategy domain's records, references, findings and config (proposal\n * 0102). A record is a page declaring `type: audience`, `type: persona` or\n * `type: journey`. A reference is a value of a page's `audiences:`,\n * `personas:` or `journeys:`, read through meta's merged view so a value in a\n * `{page}.meta.yaml` counts. A journey's own `personas:` is its parent field,\n * not a reference.\n */\nimport type { Guidance } from \"../shared/guidance.js\";\nimport type { ConfigFile } from \"../shared/config-file.js\";\nimport type { CollectionConfig } from \"../shared/collections.js\";\nimport type { Severity } from \"../shared/severity.js\";\n\n/** The three record types, parent first. */\nexport const RECORD_TYPES = [\"audience\", \"persona\", \"journey\"] as const;\nexport type RecordType = (typeof RECORD_TYPES)[number];\n\n/** The page field that names records of each type. */\nexport const PAGE_FIELDS = { audience: \"audiences\", persona: \"personas\", journey: \"journeys\" } as const;\nexport type PageField = (typeof PAGE_FIELDS)[RecordType];\n\n/**\n * The field a record names its parents in: a persona's `audience:`, a\n * journey's `personas:`. Either holds one string or a list.\n */\nexport const PARENTS = { persona: \"audience\", journey: \"personas\" } as const;\nexport type ChildType = keyof typeof PARENTS;\nexport type ParentField = (typeof PARENTS)[ChildType];\n\n/** Every field whose value names a record. */\nexport type ReferenceField = PageField | ParentField;\n\n/** Every rule `strategy check` reports, in the order the rules page lists them. */\nexport const STRATEGY_RULES = [\n \"undefined-reference\",\n \"duplicate-id\",\n \"missing-parent\",\n \"orphan-record\",\n \"unserved-journey\",\n \"unused-record\",\n] as const;\nexport type StrategyRule = (typeof STRATEGY_RULES)[number];\n\n/** A rule's level: the family scale plus `off`, which drops the rule's findings. */\nexport type StrategySeverity = Severity | \"off\";\n\n/** A file, and the 1-based line in it when one is known. */\nexport interface At {\n file: string;\n line?: number;\n}\n\nexport interface StrategyRecord {\n /** `id:`, else the file stem. Compared case-folded. */\n id: string;\n type: RecordType;\n title?: string;\n description?: string;\n /** `lifecycle:`, from meta's `manni:lifecycle:1.0.0`. A `draft` or `archived` journey is exempt from `unserved-journey`. */\n lifecycle?: string;\n /** The page the record was read from, as the run labels it. */\n file: string;\n line: number;\n /** Where `id:` is declared, when the record declares one. */\n idAt?: At;\n /** The values of `audience:` on a persona or `personas:` on a journey, each where it is declared. Empty on an audience. */\n parents: (At & { value: string })[];\n}\n\nexport interface StrategyReference {\n field: PageField;\n value: string;\n /** Where the value is declared: the page, or the manifest that supplied it. */\n file: string;\n line?: number;\n /** The page the value belongs to. */\n page: string;\n /** Whether that page is itself a record. A record's values are checked, never counted as a page naming. */\n record: boolean;\n}\n\nexport interface StrategySet {\n records: StrategyRecord[];\n references: StrategyReference[];\n}\n\nexport interface StrategyFinding {\n rule: StrategyRule;\n /** `manni:strategy/<rule>`. */\n ruleId: string;\n severity: Severity;\n /** What happened, then what to do about it. */\n message: string;\n /** The message before its advice: the baseline's identity. Never printed. */\n key?: string;\n guidance: Guidance;\n file: string;\n line?: number;\n /** The record the finding is about, when it is about one. */\n id?: string;\n /** The field that breaks the rule, when one does. */\n field?: ReferenceField;\n}\n\n/** The `strategy:` section. Every key is optional. */\nexport interface StrategyConfig {\n severity?: Partial<Record<StrategyRule, StrategySeverity>>;\n baseline?: string;\n allowEmpty?: boolean;\n respectGitignore?: boolean;\n}\n\n/** What every command core resolves before touching a file. */\nexport interface StrategyRun {\n config: StrategyConfig | null;\n /** The positional inputs, or the selected collections' `paths:`. */\n inputs: string[];\n /** Directory `inputs` resolve from: cwd for positional inputs, the config directory for collections. */\n base: string;\n collections: CollectionConfig[];\n fromCollections: boolean;\n configDir?: string;\n configPath?: string;\n configSource?: string;\n configFile?: ConfigFile;\n}\n","/** Rule ids, default levels and guidance for `strategy check` (proposal 0102). */\nimport type { Guidance } from \"../../shared/guidance.js\";\nimport { STRATEGY_RULES, type StrategyRule, type StrategySeverity } from \"../types.js\";\n\nexport const RULE_ID_PREFIX = \"manni:strategy\";\n\nexport const DEFAULT_SEVERITY: Readonly<Record<StrategyRule, StrategySeverity>> = {\n \"undefined-reference\": \"error\",\n \"duplicate-id\": \"error\",\n \"missing-parent\": \"warning\",\n \"orphan-record\": \"warning\",\n \"unserved-journey\": \"warning\",\n \"unused-record\": \"notice\",\n};\n\n/** The rules reference, whose sections are anchored by rule name. */\nexport const RULES_URI = \"https://hawkeyexl.github.io/manni/strategy/reference/rules/\";\n\n/**\n * When each rule fires, for the person who fixes it. The rules page's \"Fires\n * when\" column says the same, and a test holds the two equal.\n */\nexport const RULE_DESCRIPTIONS: Readonly<Record<StrategyRule, string>> = {\n \"undefined-reference\":\n \"A page's audiences:, personas: or journeys:, or a record's audience: or personas:, names no record of that type.\",\n \"duplicate-id\": \"Two records share an id, ignoring case.\",\n \"missing-parent\":\n \"A page names a journey but none of its personas in personas:, or a persona but not its audience in audiences:.\",\n \"orphan-record\":\n \"A persona names no audience, or a journey names no persona, while the set holds records of the parent type.\",\n \"unserved-journey\":\n \"No page names the journey in journeys:. Records do not count, and a draft or archived journey is exempt.\",\n \"unused-record\": \"No page and no record names an audience or a persona.\",\n};\n\nexport function guidanceFor(rule: StrategyRule): Guidance {\n return { id: RULE_ID_PREFIX, rule, description: RULE_DESCRIPTIONS[rule], guide: `${RULES_URI}#${rule}` };\n}\n\nexport function ruleId(rule: StrategyRule): string {\n return `${RULE_ID_PREFIX}/${rule}`;\n}\n\nexport function isStrategyRule(value: string): value is StrategyRule {\n return (STRATEGY_RULES as readonly string[]).includes(value);\n}\n\n/** The defaults with config's overrides laid over them. */\nexport function resolveSeverity(\n overrides?: Partial<Record<StrategyRule, StrategySeverity>>,\n): Record<StrategyRule, StrategySeverity> {\n return { ...DEFAULT_SEVERITY, ...overrides };\n}\n"],"mappings":";;;AAcO,IAAM,eAAe,CAAC,YAAY,WAAW,SAAS;AAItD,IAAM,cAAc,EAAE,UAAU,aAAa,SAAS,YAAY,SAAS,WAAW;AAOtF,IAAM,UAAU,EAAE,SAAS,YAAY,SAAS,WAAW;AAQ3D,IAAM,iBAAiB;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;;;ACpCO,IAAM,iBAAiB;AAEvB,IAAM,mBAAqE;AAAA,EAChF,uBAAuB;AAAA,EACvB,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,iBAAiB;AAAA,EACjB,oBAAoB;AAAA,EACpB,iBAAiB;AACnB;AAGO,IAAM,YAAY;AAMlB,IAAM,oBAA4D;AAAA,EACvE,uBACE;AAAA,EACF,gBAAgB;AAAA,EAChB,kBACE;AAAA,EACF,iBACE;AAAA,EACF,oBACE;AAAA,EACF,iBAAiB;AACnB;AAEO,SAAS,YAAY,MAA8B;AACxD,SAAO,EAAE,IAAI,gBAAgB,MAAM,aAAa,kBAAkB,IAAI,GAAG,OAAO,GAAG,SAAS,IAAI,IAAI,GAAG;AACzG;AAEO,SAAS,OAAO,MAA4B;AACjD,SAAO,GAAG,cAAc,IAAI,IAAI;AAClC;AAEO,SAAS,eAAe,OAAsC;AACnE,SAAQ,eAAqC,SAAS,KAAK;AAC7D;AAGO,SAAS,gBACd,WACwC;AACxC,SAAO,EAAE,GAAG,kBAAkB,GAAG,UAAU;AAC7C;","names":[]}
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
schemaTrustRoot,
|
|
46
46
|
startTagEnd,
|
|
47
47
|
writeFileAtomic
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-WRWW6SGG.js";
|
|
49
49
|
import {
|
|
50
50
|
STDIN_LINES_MARKER
|
|
51
51
|
} from "./chunk-YEUYKR62.js";
|
|
@@ -486,9 +486,6 @@ function settleFindings(errors, view, pos, locate) {
|
|
|
486
486
|
continue;
|
|
487
487
|
}
|
|
488
488
|
const { subject, file: _file, line: _line, col: _col, guidance, ...rest } = e;
|
|
489
|
-
void _file;
|
|
490
|
-
void _line;
|
|
491
|
-
void _col;
|
|
492
489
|
out.push({
|
|
493
490
|
...rest,
|
|
494
491
|
instancePath: inside,
|
|
@@ -1976,7 +1973,6 @@ var Validator = class {
|
|
|
1976
1973
|
*/
|
|
1977
1974
|
async markedPointers(data, refs) {
|
|
1978
1975
|
const { [FILE_SCHEMA_KEY]: _omit, ...subject } = data;
|
|
1979
|
-
void _omit;
|
|
1980
1976
|
const marks = /* @__PURE__ */ new Set();
|
|
1981
1977
|
for (const ref of refs) {
|
|
1982
1978
|
const fn = await this.compile(ref);
|
|
@@ -2007,7 +2003,6 @@ var Validator = class {
|
|
|
2007
2003
|
*/
|
|
2008
2004
|
async locationPreferences(data, refs) {
|
|
2009
2005
|
const { [FILE_SCHEMA_KEY]: _omit, ...subject } = data;
|
|
2010
|
-
void _omit;
|
|
2011
2006
|
const preferences = /* @__PURE__ */ new Map();
|
|
2012
2007
|
for (const ref of refs) {
|
|
2013
2008
|
const fn = await this.compile(ref);
|
|
@@ -2066,7 +2061,6 @@ var Validator = class {
|
|
|
2066
2061
|
*/
|
|
2067
2062
|
async graphOutputPreferences(data, refs) {
|
|
2068
2063
|
const { [FILE_SCHEMA_KEY]: _omit, ...subject } = data;
|
|
2069
|
-
void _omit;
|
|
2070
2064
|
const preferences = /* @__PURE__ */ new Map();
|
|
2071
2065
|
for (const ref of refs) {
|
|
2072
2066
|
const fn = await this.compile(ref);
|
|
@@ -2096,7 +2090,6 @@ var Validator = class {
|
|
|
2096
2090
|
*/
|
|
2097
2091
|
async deliveryExclusions(data, refs) {
|
|
2098
2092
|
const { [FILE_SCHEMA_KEY]: _omit, ...subject } = data;
|
|
2099
|
-
void _omit;
|
|
2100
2093
|
const output = /* @__PURE__ */ new Map();
|
|
2101
2094
|
const location = /* @__PURE__ */ new Map();
|
|
2102
2095
|
for (const ref of refs) {
|
|
@@ -2136,7 +2129,6 @@ var Validator = class {
|
|
|
2136
2129
|
*/
|
|
2137
2130
|
async termMarks(data, refs) {
|
|
2138
2131
|
const { [FILE_SCHEMA_KEY]: _omit, ...subject } = data;
|
|
2139
|
-
void _omit;
|
|
2140
2132
|
const hits = [];
|
|
2141
2133
|
const once = /* @__PURE__ */ new Set();
|
|
2142
2134
|
for (const ref of refs) {
|
|
@@ -2169,7 +2161,6 @@ var Validator = class {
|
|
|
2169
2161
|
*/
|
|
2170
2162
|
async validate(data, refs, lineFor, colFor, locate) {
|
|
2171
2163
|
const { [FILE_SCHEMA_KEY]: _omit, ...subject } = data;
|
|
2172
|
-
void _omit;
|
|
2173
2164
|
const errors = [];
|
|
2174
2165
|
for (const ref of refs) {
|
|
2175
2166
|
const fn = await this.compile(ref);
|
|
@@ -5783,6 +5774,9 @@ import { basename as basename4, relative as relative5 } from "node:path";
|
|
|
5783
5774
|
function collect(value, prev) {
|
|
5784
5775
|
return prev.concat([value]);
|
|
5785
5776
|
}
|
|
5777
|
+
function withInputs(command, nothing) {
|
|
5778
|
+
return command.option("--as <format>", "input format for stdin (-)").option("--ext <list>", "comma-separated extensions for directory walks").option("--exclude <glob>", "glob to exclude; repeatable", collect, []).option("--collection <name>", "configured collection to read; repeatable", collect, []).option("--allow-empty", `treat a missing path, no matched files or ${nothing} as success`).option("--no-gitignore", "read files .gitignore covers").option("-c, --config <path>", "path to a manni config file").option("--no-color", "disable colored output");
|
|
5779
|
+
}
|
|
5786
5780
|
function splitList(value) {
|
|
5787
5781
|
return value.split(",").map((s) => s.trim()).filter(Boolean);
|
|
5788
5782
|
}
|
|
@@ -5978,6 +5972,7 @@ export {
|
|
|
5978
5972
|
statementFieldFindings,
|
|
5979
5973
|
statementView,
|
|
5980
5974
|
collect,
|
|
5975
|
+
withInputs,
|
|
5981
5976
|
splitList,
|
|
5982
5977
|
STDIN_REQUIRES_AS,
|
|
5983
5978
|
readStdin,
|
|
@@ -5985,4 +5980,4 @@ export {
|
|
|
5985
5980
|
explicitFalse,
|
|
5986
5981
|
reportConfig
|
|
5987
5982
|
};
|
|
5988
|
-
//# sourceMappingURL=chunk-
|
|
5983
|
+
//# sourceMappingURL=chunk-ODSIHEIW.js.map
|