@hawkeyexl/manni 4.21.0 → 4.22.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-C534YIAU.js → batch-C3NN2YXB.js} +20 -21
- package/dist/build-CEVEAHN7.js +36 -0
- package/dist/calibrate-CSKPY5AK.js +42 -0
- package/dist/capture-3HDBIHH6.js +37 -0
- package/dist/check-555TCJGF.js +45 -0
- package/dist/check-KGJBV42O.js +30 -0
- package/dist/{check-JZINDP3F.js → check-KXWHSCCR.js} +13 -16
- package/dist/check-MZSXCS2M.js +33 -0
- package/dist/{check-LKPQPQWJ.js → check-QNHLTYPN.js} +23 -23
- package/dist/{chunk-AE6KBAAU.js → chunk-2VLZDU4E.js} +5 -5
- package/dist/{chunk-ARNI3SJT.js → chunk-37Q7WEJJ.js} +9 -9
- package/dist/{chunk-PTGXEZQD.js → chunk-3ZVRGBK6.js} +4 -4
- package/dist/{chunk-DMVBIIP3.js → chunk-46MMIJWR.js} +3 -3
- package/dist/{chunk-CREFJCWZ.js → chunk-4LYVTR2T.js} +4 -4
- package/dist/{chunk-BXE4L52Q.js → chunk-562QZKAB.js} +6599 -3508
- package/dist/chunk-562QZKAB.js.map +1 -0
- package/dist/{chunk-BLXRIAV2.js → chunk-57LZPG4V.js} +29 -4
- package/dist/chunk-57LZPG4V.js.map +1 -0
- package/dist/{chunk-SHXPE4D4.js → chunk-5LQX57BW.js} +2 -2
- package/dist/{chunk-SHXPE4D4.js.map → chunk-5LQX57BW.js.map} +1 -1
- package/dist/{chunk-BKY6GAFA.js → chunk-63EQKVNT.js} +45 -910
- package/dist/chunk-63EQKVNT.js.map +1 -0
- package/dist/{chunk-TFVNEPMF.js → chunk-64DULZIG.js} +4 -4
- package/dist/{chunk-2HOWRAWK.js → chunk-6SVHI2U6.js} +2 -2
- package/dist/{chunk-D4QHRVDJ.js → chunk-6UHEMPEY.js} +3 -157
- package/dist/chunk-6UHEMPEY.js.map +1 -0
- package/dist/{chunk-DENZLZ3Z.js → chunk-A5YUK3SG.js} +26 -17
- package/dist/chunk-A5YUK3SG.js.map +1 -0
- package/dist/{chunk-XI3BNZG4.js → chunk-A67EJ3J6.js} +6 -6
- package/dist/{chunk-HHJ2HFPP.js → chunk-BLDL23RY.js} +8 -8
- package/dist/{chunk-RQPEKHZH.js → chunk-BY3635RR.js} +80 -16
- package/dist/chunk-BY3635RR.js.map +1 -0
- package/dist/{chunk-CFMI74TP.js → chunk-BZ74YUYE.js} +2 -2
- package/dist/{chunk-5UJKXOAD.js → chunk-CHTSA3YR.js} +6 -6
- package/dist/{chunk-FHJIH6XP.js → chunk-CPYQ4BJK.js} +16 -7
- package/dist/chunk-CPYQ4BJK.js.map +1 -0
- package/dist/{chunk-IN5T22FP.js → chunk-CQTESLC5.js} +2 -2
- package/dist/{chunk-245W2Q7C.js → chunk-D4BGNAN5.js} +2 -2
- package/dist/{chunk-762MM6NA.js → chunk-E3HYSNS6.js} +4 -4
- package/dist/{chunk-DPDG3FHL.js → chunk-EL2KNRC3.js} +3 -3
- package/dist/{chunk-LWBNHK72.js → chunk-FTSNG6DZ.js} +42 -24
- package/dist/chunk-FTSNG6DZ.js.map +1 -0
- package/dist/{chunk-KCWNJMSS.js → chunk-FXE5K56B.js} +3 -3
- package/dist/{chunk-CLPC3LKX.js → chunk-HYEKQ22B.js} +4 -4
- package/dist/{chunk-VLRIP4BQ.js → chunk-IC3FJWIF.js} +2 -2
- package/dist/{chunk-CZIO37J5.js → chunk-IDDRHB7E.js} +3 -3
- package/dist/chunk-INOVEO32.js +28 -0
- package/dist/chunk-INOVEO32.js.map +1 -0
- package/dist/chunk-IXFFVI5S.js +409 -0
- package/dist/chunk-IXFFVI5S.js.map +1 -0
- package/dist/{chunk-BHGFLRXM.js → chunk-JA7DWOVV.js} +5 -5
- package/dist/{chunk-B2242FYO.js → chunk-JF4BC7ZD.js} +38 -3
- package/dist/chunk-JF4BC7ZD.js.map +1 -0
- package/dist/{chunk-RKACUTY5.js → chunk-JL5FHNQK.js} +9 -11
- package/dist/{chunk-RKACUTY5.js.map → chunk-JL5FHNQK.js.map} +1 -1
- package/dist/{chunk-MTCOBRCX.js → chunk-JVE5YQN4.js} +4 -4
- package/dist/{chunk-6XK3NTL5.js → chunk-K5LBIAOM.js} +32 -38
- package/dist/chunk-K5LBIAOM.js.map +1 -0
- package/dist/{chunk-E7OG5F6S.js → chunk-KIUFBUUZ.js} +13 -11
- package/dist/{chunk-E7OG5F6S.js.map → chunk-KIUFBUUZ.js.map} +1 -1
- package/dist/{chunk-Q76T6Y6X.js → chunk-LCMBG4LY.js} +3635 -3409
- package/dist/chunk-LCMBG4LY.js.map +1 -0
- package/dist/{chunk-BXCVOHEX.js → chunk-LMS2RWDS.js} +15 -13
- package/dist/{chunk-BXCVOHEX.js.map → chunk-LMS2RWDS.js.map} +1 -1
- package/dist/{chunk-IOJD2RFG.js → chunk-MR5JWMC2.js} +2 -2
- package/dist/{chunk-JCTHXG33.js → chunk-NHOGTAPK.js} +2 -2
- package/dist/{chunk-VM7VAFJW.js → chunk-NVYDWVXN.js} +2 -1
- package/dist/{chunk-NLJ3XIKT.js → chunk-O6IDYZVW.js} +3 -3
- package/dist/{chunk-E23KWEPL.js → chunk-OHMLEITS.js} +2 -2
- package/dist/{chunk-NUQF5F5J.js → chunk-PNDEKFF3.js} +2 -2
- package/dist/{chunk-3SFAB75L.js → chunk-PX7OTUNU.js} +6 -6
- package/dist/{chunk-PACZEDOH.js → chunk-Q7FFJMFO.js} +19 -15
- package/dist/chunk-Q7FFJMFO.js.map +1 -0
- package/dist/{chunk-P7HAXMFN.js → chunk-QJJPTS6L.js} +5 -3
- package/dist/{chunk-P7HAXMFN.js.map → chunk-QJJPTS6L.js.map} +1 -1
- package/dist/chunk-RAN3CF33.js +1875 -0
- package/dist/chunk-RAN3CF33.js.map +1 -0
- package/dist/{chunk-H5YWCCBO.js → chunk-S7V4F7HC.js} +3 -3
- package/dist/{chunk-R2CR62JV.js → chunk-SCKVDD4E.js} +4 -4
- package/dist/{chunk-JUUCCML3.js → chunk-TJYJ4BNK.js} +4 -4
- package/dist/{chunk-JQA6RF4R.js → chunk-TR5TNPWT.js} +2 -2
- package/dist/{chunk-JQA6RF4R.js.map → chunk-TR5TNPWT.js.map} +1 -1
- package/dist/chunk-TT5UDTDM.js +888 -0
- package/dist/chunk-TT5UDTDM.js.map +1 -0
- package/dist/{chunk-22WGKOQ7.js → chunk-TWYJ2TVS.js} +7 -7
- package/dist/{chunk-U4OJ7U45.js → chunk-UQI463L3.js} +9 -9
- package/dist/{chunk-A4QNKEX4.js → chunk-V27DOGAO.js} +2 -2
- package/dist/{chunk-GMLOAKOA.js → chunk-VSDXZAQU.js} +4 -22
- package/dist/chunk-VSDXZAQU.js.map +1 -0
- package/dist/{chunk-YSZNJ2ID.js → chunk-VSHMXMBZ.js} +2 -2
- package/dist/{chunk-2NGFDLIM.js → chunk-VZSATUI7.js} +4 -4
- package/dist/{chunk-KQDRO6N6.js → chunk-W5OZMYMX.js} +2 -2
- package/dist/{chunk-XBJKYXOR.js → chunk-WW4JATBJ.js} +6 -6
- package/dist/{chunk-SSQZB5SQ.js → chunk-XG6PVB5S.js} +11 -1
- package/dist/chunk-XG6PVB5S.js.map +1 -0
- package/dist/{chunk-KBSTXL6L.js → chunk-XQKRD5A3.js} +4 -4
- package/dist/{chunk-2YKUSTHS.js → chunk-XSP3TUFN.js} +5 -5
- package/dist/{chunk-APAF4VWW.js → chunk-XTMONCQE.js} +6 -405
- package/dist/chunk-XTMONCQE.js.map +1 -0
- package/dist/{chunk-BJUEOC4G.js → chunk-YB3KD5RI.js} +3 -3
- package/dist/chunk-ZAOJYN2D.js +159 -0
- package/dist/chunk-ZAOJYN2D.js.map +1 -0
- package/dist/{chunk-OWJLB2AF.js → chunk-ZKIXGFID.js} +2 -2
- package/dist/{chunk-WHVFHBL3.js → chunk-ZT3ERG4B.js} +3 -3
- package/dist/chunk-ZTRC37NH.js +38 -0
- package/dist/chunk-ZTRC37NH.js.map +1 -0
- package/dist/{chunk-V2XJJEEF.js → chunk-ZW4YASUB.js} +4 -4
- package/dist/{chunk-5LE4NH3Z.js → chunk-ZX4TOTZS.js} +6 -4
- package/dist/{chunk-5LE4NH3Z.js.map → chunk-ZX4TOTZS.js.map} +1 -1
- package/dist/{cli-MOKRUHZT.js → cli-4QAH3DBX.js} +9 -11
- package/dist/{cli-3PBRPPMQ.js → cli-6476FRBK.js} +16 -19
- package/dist/{cli-3PBRPPMQ.js.map → cli-6476FRBK.js.map} +1 -1
- package/dist/{cli-FDXU7CGZ.js → cli-7XT7O5YM.js} +16 -19
- package/dist/{cli-FDXU7CGZ.js.map → cli-7XT7O5YM.js.map} +1 -1
- package/dist/{cli-AVHLY2AI.js → cli-FGCHGJYZ.js} +51 -50
- package/dist/cli-FGCHGJYZ.js.map +1 -0
- package/dist/{cli-FSDJY5OC.js → cli-JE4LG35H.js} +4 -4
- package/dist/{cli-JNYL6LB7.js → cli-U3622DIB.js} +14 -17
- package/dist/{cli-JNYL6LB7.js.map → cli-U3622DIB.js.map} +1 -1
- package/dist/{cli-MQXOK64K.js → cli-ULHJTJHH.js} +74 -42
- package/dist/cli-ULHJTJHH.js.map +1 -0
- package/dist/{cli-6NKE6RMT.js → cli-W7B2PNZO.js} +18 -21
- package/dist/{cli-6NKE6RMT.js.map → cli-W7B2PNZO.js.map} +1 -1
- package/dist/{cli-77A46SB2.js → cli-YGMXZ46V.js} +17 -20
- package/dist/{cli-77A46SB2.js.map → cli-YGMXZ46V.js.map} +1 -1
- package/dist/{cli-K47XWDLJ.js → cli-YINQL2NI.js} +28 -29
- package/dist/{cli-K47XWDLJ.js.map → cli-YINQL2NI.js.map} +1 -1
- package/dist/cli-Z3ART5DN.js +152 -0
- package/dist/cli-Z3ART5DN.js.map +1 -0
- package/dist/cli.js +15 -15
- package/dist/cli.js.map +1 -1
- package/dist/{config-BMWDC66C.js → config-2YJPJ36T.js} +5 -5
- package/dist/docmeta.js +8 -10
- package/dist/docmeta.js.map +1 -1
- package/dist/github-64ZVAUIT.js +28 -0
- package/dist/github-ARGPMQD2.js +32 -0
- package/dist/github-YHJABBUI.js +33 -0
- package/dist/graph/runtime.js.map +1 -1
- package/dist/{host-YSTYO5DX.js → host-JT27OWTC.js} +3 -3
- package/dist/index.d.ts +332 -23
- package/dist/index.js +218 -205
- package/dist/index.js.map +1 -1
- package/dist/{json-YIK72XAL.js → json-CVOVXB7O.js} +12 -15
- package/dist/json-QNGJFUY2.js +40 -0
- package/dist/{labels-X633ZPK7.js → labels-5WOKC3VR.js} +11 -14
- package/dist/{labels-X633ZPK7.js.map → labels-5WOKC3VR.js.map} +1 -1
- package/dist/lint-OQGB4DWJ.js +32 -0
- package/dist/list-EDAB7X5Y.js +30 -0
- package/dist/list-OQ3IYV2W.js +37 -0
- package/dist/list-PN6JKYNX.js +33 -0
- package/dist/{page-OMPEACUN.js → page-TPNMHL27.js} +11 -14
- package/dist/{prepare-B4JVDVOV.js → prepare-3V2QYBKL.js} +20 -22
- package/dist/{prepare-B4JVDVOV.js.map → prepare-3V2QYBKL.js.map} +1 -1
- package/dist/{pretty-PPNHHOEN.js → pretty-EZ2NFU3C.js} +13 -16
- package/dist/pretty-HO2LYG5N.js +41 -0
- package/dist/{pretty-U7ATCFBN.js → pretty-K3M4AW2D.js} +12 -15
- package/dist/{provider-JY2I3VLF.js → provider-YWNTTQPA.js} +3 -3
- package/dist/{release-VHHASAG7.js → release-EFLQT3FW.js} +3 -3
- package/dist/{reporters-KE7AZR6C.js → reporters-4R2E7PRJ.js} +6 -6
- package/dist/{reporters-FAIEOTC4.js → reporters-YVLLFBO5.js} +11 -14
- package/dist/run-H4BOR2FR.js +36 -0
- package/dist/{sarif-DOGRSGTB.js → sarif-GWHWJJFP.js} +10 -13
- package/dist/sarif-SJFVSOBV.js +33 -0
- package/dist/sarif-YBFD5OUL.js +28 -0
- package/dist/{strategy-EK5VY5DG.js → strategy-T56PH2VK.js} +29 -47
- package/dist/strategy-T56PH2VK.js.map +1 -0
- package/dist/{term-MDN3NJDW.js → term-33YSMISR.js} +18 -22
- package/dist/{term-MDN3NJDW.js.map → term-33YSMISR.js.map} +1 -1
- package/dist/{validate-QDYQ642J.js → validate-6R5UBDGU.js} +6 -7
- package/package.json +1 -1
- package/plugin/manni/.claude-plugin/plugin.json +1 -1
- package/plugin/manni/hooks/graph-server.mjs +3 -3
- package/plugin/manni/hooks/page-metadata.mjs +81 -7
- package/plugin/manni/skills/fix/SKILL.md +3 -3
- package/shapes/graph/shapes-1.3.0.ttl +1250 -0
- package/dist/build-SVKT7QFU.js +0 -39
- package/dist/calibrate-AL3MH7TY.js +0 -43
- package/dist/capture-2F7B4DAD.js +0 -39
- package/dist/check-BI7OGIVE.js +0 -48
- package/dist/check-OPUMZEVK.js +0 -35
- package/dist/check-OW7UD73D.js +0 -33
- package/dist/chunk-6XK3NTL5.js.map +0 -1
- package/dist/chunk-APAF4VWW.js.map +0 -1
- package/dist/chunk-B2242FYO.js.map +0 -1
- package/dist/chunk-BKY6GAFA.js.map +0 -1
- package/dist/chunk-BLXRIAV2.js.map +0 -1
- package/dist/chunk-BXE4L52Q.js.map +0 -1
- package/dist/chunk-D4QHRVDJ.js.map +0 -1
- package/dist/chunk-D5GBYKDU.js +0 -164
- package/dist/chunk-D5GBYKDU.js.map +0 -1
- package/dist/chunk-DENZLZ3Z.js.map +0 -1
- package/dist/chunk-FHJIH6XP.js.map +0 -1
- package/dist/chunk-GMLOAKOA.js.map +0 -1
- package/dist/chunk-LWBNHK72.js.map +0 -1
- package/dist/chunk-PACZEDOH.js.map +0 -1
- package/dist/chunk-Q76T6Y6X.js.map +0 -1
- package/dist/chunk-RQPEKHZH.js.map +0 -1
- package/dist/chunk-RWXR3GJI.js +0 -441
- package/dist/chunk-RWXR3GJI.js.map +0 -1
- package/dist/chunk-S5G6T4VC.js +0 -3200
- package/dist/chunk-S5G6T4VC.js.map +0 -1
- package/dist/chunk-SSQZB5SQ.js.map +0 -1
- package/dist/chunk-UP6NBQ62.js +0 -2
- package/dist/chunk-ZPLVANY2.js +0 -15
- package/dist/chunk-ZPLVANY2.js.map +0 -1
- package/dist/cli-AVHLY2AI.js.map +0 -1
- package/dist/cli-LP5OE3BL.js +0 -84
- package/dist/cli-LP5OE3BL.js.map +0 -1
- package/dist/cli-MQXOK64K.js.map +0 -1
- package/dist/github-6GYTPSGV.js +0 -35
- package/dist/github-DJOLVNDD.js +0 -31
- package/dist/github-ZF2TQ3RP.js +0 -35
- package/dist/json-Y7625EFE.js +0 -42
- package/dist/lint-RF3B55W7.js +0 -35
- package/dist/list-5DW4QZ7P.js +0 -36
- package/dist/list-7CHWJ633.js +0 -39
- package/dist/list-UNWG6NPD.js +0 -33
- package/dist/pretty-XGYQ25PH.js +0 -43
- package/dist/run-MHJ3AYKG.js +0 -39
- package/dist/sarif-MIEMQOIK.js +0 -30
- package/dist/sarif-RGRG7VFX.js +0 -36
- package/dist/strategy-EK5VY5DG.js.map +0 -1
- package/dist/validate-QDYQ642J.js.map +0 -1
- /package/dist/{batch-C534YIAU.js.map → batch-C3NN2YXB.js.map} +0 -0
- /package/dist/{build-SVKT7QFU.js.map → build-CEVEAHN7.js.map} +0 -0
- /package/dist/{calibrate-AL3MH7TY.js.map → calibrate-CSKPY5AK.js.map} +0 -0
- /package/dist/{capture-2F7B4DAD.js.map → capture-3HDBIHH6.js.map} +0 -0
- /package/dist/{check-BI7OGIVE.js.map → check-555TCJGF.js.map} +0 -0
- /package/dist/{check-JZINDP3F.js.map → check-KGJBV42O.js.map} +0 -0
- /package/dist/{check-OPUMZEVK.js.map → check-KXWHSCCR.js.map} +0 -0
- /package/dist/{check-OW7UD73D.js.map → check-MZSXCS2M.js.map} +0 -0
- /package/dist/{check-LKPQPQWJ.js.map → check-QNHLTYPN.js.map} +0 -0
- /package/dist/{chunk-AE6KBAAU.js.map → chunk-2VLZDU4E.js.map} +0 -0
- /package/dist/{chunk-ARNI3SJT.js.map → chunk-37Q7WEJJ.js.map} +0 -0
- /package/dist/{chunk-PTGXEZQD.js.map → chunk-3ZVRGBK6.js.map} +0 -0
- /package/dist/{chunk-DMVBIIP3.js.map → chunk-46MMIJWR.js.map} +0 -0
- /package/dist/{chunk-CREFJCWZ.js.map → chunk-4LYVTR2T.js.map} +0 -0
- /package/dist/{chunk-TFVNEPMF.js.map → chunk-64DULZIG.js.map} +0 -0
- /package/dist/{chunk-2HOWRAWK.js.map → chunk-6SVHI2U6.js.map} +0 -0
- /package/dist/{chunk-XI3BNZG4.js.map → chunk-A67EJ3J6.js.map} +0 -0
- /package/dist/{chunk-HHJ2HFPP.js.map → chunk-BLDL23RY.js.map} +0 -0
- /package/dist/{chunk-CFMI74TP.js.map → chunk-BZ74YUYE.js.map} +0 -0
- /package/dist/{chunk-5UJKXOAD.js.map → chunk-CHTSA3YR.js.map} +0 -0
- /package/dist/{chunk-IN5T22FP.js.map → chunk-CQTESLC5.js.map} +0 -0
- /package/dist/{chunk-245W2Q7C.js.map → chunk-D4BGNAN5.js.map} +0 -0
- /package/dist/{chunk-762MM6NA.js.map → chunk-E3HYSNS6.js.map} +0 -0
- /package/dist/{chunk-DPDG3FHL.js.map → chunk-EL2KNRC3.js.map} +0 -0
- /package/dist/{chunk-KCWNJMSS.js.map → chunk-FXE5K56B.js.map} +0 -0
- /package/dist/{chunk-CLPC3LKX.js.map → chunk-HYEKQ22B.js.map} +0 -0
- /package/dist/{chunk-VLRIP4BQ.js.map → chunk-IC3FJWIF.js.map} +0 -0
- /package/dist/{chunk-CZIO37J5.js.map → chunk-IDDRHB7E.js.map} +0 -0
- /package/dist/{chunk-BHGFLRXM.js.map → chunk-JA7DWOVV.js.map} +0 -0
- /package/dist/{chunk-MTCOBRCX.js.map → chunk-JVE5YQN4.js.map} +0 -0
- /package/dist/{chunk-IOJD2RFG.js.map → chunk-MR5JWMC2.js.map} +0 -0
- /package/dist/{chunk-JCTHXG33.js.map → chunk-NHOGTAPK.js.map} +0 -0
- /package/dist/{chunk-VM7VAFJW.js.map → chunk-NVYDWVXN.js.map} +0 -0
- /package/dist/{chunk-NLJ3XIKT.js.map → chunk-O6IDYZVW.js.map} +0 -0
- /package/dist/{chunk-E23KWEPL.js.map → chunk-OHMLEITS.js.map} +0 -0
- /package/dist/{chunk-NUQF5F5J.js.map → chunk-PNDEKFF3.js.map} +0 -0
- /package/dist/{chunk-3SFAB75L.js.map → chunk-PX7OTUNU.js.map} +0 -0
- /package/dist/{chunk-H5YWCCBO.js.map → chunk-S7V4F7HC.js.map} +0 -0
- /package/dist/{chunk-R2CR62JV.js.map → chunk-SCKVDD4E.js.map} +0 -0
- /package/dist/{chunk-JUUCCML3.js.map → chunk-TJYJ4BNK.js.map} +0 -0
- /package/dist/{chunk-22WGKOQ7.js.map → chunk-TWYJ2TVS.js.map} +0 -0
- /package/dist/{chunk-U4OJ7U45.js.map → chunk-UQI463L3.js.map} +0 -0
- /package/dist/{chunk-A4QNKEX4.js.map → chunk-V27DOGAO.js.map} +0 -0
- /package/dist/{chunk-YSZNJ2ID.js.map → chunk-VSHMXMBZ.js.map} +0 -0
- /package/dist/{chunk-2NGFDLIM.js.map → chunk-VZSATUI7.js.map} +0 -0
- /package/dist/{chunk-KQDRO6N6.js.map → chunk-W5OZMYMX.js.map} +0 -0
- /package/dist/{chunk-XBJKYXOR.js.map → chunk-WW4JATBJ.js.map} +0 -0
- /package/dist/{chunk-KBSTXL6L.js.map → chunk-XQKRD5A3.js.map} +0 -0
- /package/dist/{chunk-2YKUSTHS.js.map → chunk-XSP3TUFN.js.map} +0 -0
- /package/dist/{chunk-BJUEOC4G.js.map → chunk-YB3KD5RI.js.map} +0 -0
- /package/dist/{chunk-OWJLB2AF.js.map → chunk-ZKIXGFID.js.map} +0 -0
- /package/dist/{chunk-WHVFHBL3.js.map → chunk-ZT3ERG4B.js.map} +0 -0
- /package/dist/{chunk-V2XJJEEF.js.map → chunk-ZW4YASUB.js.map} +0 -0
- /package/dist/{chunk-UP6NBQ62.js.map → cli-4QAH3DBX.js.map} +0 -0
- /package/dist/{cli-FSDJY5OC.js.map → cli-JE4LG35H.js.map} +0 -0
- /package/dist/{cli-MOKRUHZT.js.map → config-2YJPJ36T.js.map} +0 -0
- /package/dist/{config-BMWDC66C.js.map → github-64ZVAUIT.js.map} +0 -0
- /package/dist/{github-6GYTPSGV.js.map → github-ARGPMQD2.js.map} +0 -0
- /package/dist/{github-DJOLVNDD.js.map → github-YHJABBUI.js.map} +0 -0
- /package/dist/{github-ZF2TQ3RP.js.map → host-JT27OWTC.js.map} +0 -0
- /package/dist/{host-YSTYO5DX.js.map → json-CVOVXB7O.js.map} +0 -0
- /package/dist/{json-Y7625EFE.js.map → json-QNGJFUY2.js.map} +0 -0
- /package/dist/{json-YIK72XAL.js.map → lint-OQGB4DWJ.js.map} +0 -0
- /package/dist/{lint-RF3B55W7.js.map → list-EDAB7X5Y.js.map} +0 -0
- /package/dist/{list-5DW4QZ7P.js.map → list-OQ3IYV2W.js.map} +0 -0
- /package/dist/{list-7CHWJ633.js.map → list-PN6JKYNX.js.map} +0 -0
- /package/dist/{list-UNWG6NPD.js.map → page-TPNMHL27.js.map} +0 -0
- /package/dist/{page-OMPEACUN.js.map → pretty-EZ2NFU3C.js.map} +0 -0
- /package/dist/{pretty-PPNHHOEN.js.map → pretty-HO2LYG5N.js.map} +0 -0
- /package/dist/{pretty-U7ATCFBN.js.map → pretty-K3M4AW2D.js.map} +0 -0
- /package/dist/{pretty-XGYQ25PH.js.map → provider-YWNTTQPA.js.map} +0 -0
- /package/dist/{release-VHHASAG7.js.map → release-EFLQT3FW.js.map} +0 -0
- /package/dist/{provider-JY2I3VLF.js.map → reporters-4R2E7PRJ.js.map} +0 -0
- /package/dist/{reporters-FAIEOTC4.js.map → reporters-YVLLFBO5.js.map} +0 -0
- /package/dist/{reporters-KE7AZR6C.js.map → run-H4BOR2FR.js.map} +0 -0
- /package/dist/{run-MHJ3AYKG.js.map → sarif-GWHWJJFP.js.map} +0 -0
- /package/dist/{sarif-DOGRSGTB.js.map → sarif-SJFVSOBV.js.map} +0 -0
- /package/dist/{sarif-MIEMQOIK.js.map → sarif-YBFD5OUL.js.map} +0 -0
- /package/dist/{sarif-RGRG7VFX.js.map → validate-6R5UBDGU.js.map} +0 -0
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
import {
|
|
3
3
|
SiteError,
|
|
4
4
|
resolveAnnotateSite
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-D4BGNAN5.js";
|
|
6
6
|
import {
|
|
7
7
|
parseChunkRows,
|
|
8
8
|
parseChunksManifest,
|
|
9
9
|
range
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-O6IDYZVW.js";
|
|
11
11
|
import {
|
|
12
12
|
documentBase,
|
|
13
13
|
formatOf,
|
|
14
14
|
loadRunConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CPYQ4BJK.js";
|
|
16
16
|
import {
|
|
17
17
|
bodyLineOf
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-562QZKAB.js";
|
|
19
19
|
import {
|
|
20
20
|
integrityOf,
|
|
21
21
|
locateFrontmatter
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-YB3KD5RI.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-CHTSA3YR.js.map
|
|
@@ -4,24 +4,24 @@ import {
|
|
|
4
4
|
parserForExtension,
|
|
5
5
|
supportedExtensions,
|
|
6
6
|
unsupportedFormatMessage
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IC3FJWIF.js";
|
|
8
8
|
import {
|
|
9
9
|
DEFAULT_CHUNK_CHARS
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LCMBG4LY.js";
|
|
11
11
|
import {
|
|
12
12
|
STDIN_REQUIRES_AS,
|
|
13
13
|
readStatements
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-562QZKAB.js";
|
|
15
15
|
import {
|
|
16
16
|
extractFrontmatter,
|
|
17
17
|
extractorForExtension
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-YB3KD5RI.js";
|
|
19
19
|
import {
|
|
20
20
|
findConfigFileSync,
|
|
21
21
|
parseCollections,
|
|
22
22
|
readConfigFileSync,
|
|
23
23
|
selectCollections
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-JF4BC7ZD.js";
|
|
25
25
|
import {
|
|
26
26
|
warn
|
|
27
27
|
} from "./chunk-HX44GB4Z.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
PROVIDERS_KEY,
|
|
30
30
|
assertKnownProvider,
|
|
31
31
|
parseProviders
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-NVYDWVXN.js";
|
|
33
33
|
import {
|
|
34
34
|
ToolError,
|
|
35
35
|
errorMessage
|
|
@@ -91,6 +91,9 @@ function mintSchemeIri(base) {
|
|
|
91
91
|
function mintAgentIri(base, kind, name) {
|
|
92
92
|
return `${base}agent/${kind}/${encodeSegment(conceptSlug(name))}`;
|
|
93
93
|
}
|
|
94
|
+
function mintStrategyIri(base, type, id) {
|
|
95
|
+
return `${base}strategy/${encodeSegment(type)}/${encodeSegment(id)}`;
|
|
96
|
+
}
|
|
94
97
|
function mintGraphIri(base) {
|
|
95
98
|
return `${base}graph`;
|
|
96
99
|
}
|
|
@@ -150,6 +153,10 @@ var config_schema_default = {
|
|
|
150
153
|
type: "string",
|
|
151
154
|
minLength: 1
|
|
152
155
|
},
|
|
156
|
+
authoring: {
|
|
157
|
+
type: "boolean",
|
|
158
|
+
description: "Whether a build carries author-facing content: the strategy records, typed, and every value a page's schemas mark x-manni-location: external. Default true. false leaves both out of every build, and --no-authoring does so for one run."
|
|
159
|
+
},
|
|
153
160
|
questionFiles: {
|
|
154
161
|
type: "array",
|
|
155
162
|
items: {
|
|
@@ -799,6 +806,7 @@ ${details}`);
|
|
|
799
806
|
providers: file.providers ?? {},
|
|
800
807
|
baseIri: resolveBaseIri(r.baseIri),
|
|
801
808
|
out: r.out ?? "graph/graph.ttl",
|
|
809
|
+
authoring: r.authoring ?? true,
|
|
802
810
|
routes: (r.routes ?? []).map((m) => ({
|
|
803
811
|
basePath: normalizeBasePath(m.basePath ?? "/"),
|
|
804
812
|
root: m.root.replace(/\\/g, "/").replace(/^\.\//, "").replace(/\/+$/, ""),
|
|
@@ -1564,6 +1572,7 @@ export {
|
|
|
1564
1572
|
mintProductIri,
|
|
1565
1573
|
mintSchemeIri,
|
|
1566
1574
|
mintAgentIri,
|
|
1575
|
+
mintStrategyIri,
|
|
1567
1576
|
mintGraphIri,
|
|
1568
1577
|
mintBuildActivityIri,
|
|
1569
1578
|
NS,
|
|
@@ -1637,4 +1646,4 @@ export {
|
|
|
1637
1646
|
documentSetPatterns,
|
|
1638
1647
|
noInputMessage
|
|
1639
1648
|
};
|
|
1640
|
-
//# sourceMappingURL=chunk-
|
|
1649
|
+
//# sourceMappingURL=chunk-CPYQ4BJK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/graph/types.ts","../src/graph/core/iri.ts","../src/graph/core/vocab.ts","../src/graph/core/config.ts","../src/graph/core/config-schema.json","../src/graph/core/iirds.ts","../src/graph/core/coverage.ts","../src/graph/embed/types.ts","../src/graph/core/analyze.ts","../src/graph/core/discover.ts","../src/graph/core/sort.ts"],"sourcesContent":["/** Shared types for manni graph. */\nimport { ToolError } from \"../shared/errors.js\";\nimport type { DocFormat } from \"./core/analyze.js\";\nimport type { RefusalReason } from \"./runtime/assemble.js\";\n\n/**\n * Operational error: expected failure reported to the user, exit code 2.\n *\n * `refusal` marks a usage error that a served host answers instead of failing\n * on: `graph serve` returns it as a refusal with the CLI's text (proposal 0090).\n */\nexport class GraphError extends ToolError {\n constructor(\n message: string,\n readonly refusal?: RefusalReason,\n ) {\n super(message);\n this.name = \"GraphError\";\n }\n}\n\n/** A heading-derived section within a document. */\nexport interface Section {\n /** GitHub-style slug, disambiguated (`install`, `install-1`, ...). */\n slug: string;\n /** Heading text. */\n title: string;\n /** Heading level, 1-6. */\n level: number;\n /** 1-based position among siblings under the same parent. */\n order: number;\n /** Slug of the enclosing section, or null when the parent is the document. */\n parentSlug: string | null;\n /** File line of the heading's title, or null when the parser gives none. */\n line: number | null;\n}\n\n/**\n * An inline `meta` statement (proposal 0099), as `manni meta validate` reads\n * it. Only a statement that anchors something and carries one JSON object is\n * kept: an orphan or a bad payload is meta's finding, and derives nothing.\n */\nexport interface DocStatement {\n /** The anchored file lines: the block, or a section's heading. */\n anchor: { start: number; end: number };\n scope: \"block\" | \"section\";\n pin?: string;\n status: \"current\" | \"changed\" | \"unpinned\";\n data: Record<string, unknown>;\n}\n\n/** A link found in a document body. */\nexport interface DocLink {\n /** The raw target as written in the source. */\n raw: string;\n /**\n * internal: resolves to a discovered doc (repo-relative path in `resolvedPath`,\n * optional `anchor`);\n * external: absolute URL;\n * broken: relative target that does not match a discovered doc.\n */\n kind: \"internal\" | \"external\" | \"broken\";\n /** Repo-relative path of the target doc (internal links only). */\n resolvedPath?: string;\n /** Fragment identifier without `#`, when present. */\n anchor?: string;\n /** Normalized absolute URL (external links only). */\n url?: string;\n}\n\n/** An image reference found in a document body. */\nexport interface DocImage {\n raw: string;\n /** Absolute URL or repo-relative path resolved from the doc's location. */\n target: string;\n external: boolean;\n}\n\n/** Everything dockg derives from one source file. */\nexport interface DocModel {\n /** Repo-relative path with forward slashes, e.g. `docs/guide.md`. */\n path: string;\n /** Parsed frontmatter data ({} when absent). */\n frontmatter: Record<string, unknown>;\n /** Whether a frontmatter block was present. */\n frontmatterPresent: boolean;\n /** The format the page was parsed as: `--as`, else its extension. */\n format: DocFormat;\n /** First H1 text, if any (used as title fallback). */\n firstH1?: string;\n sections: Section[];\n /** The page's inline `meta` statements, in document order. */\n statements?: DocStatement[];\n links: DocLink[];\n images: DocImage[];\n /** Distinct fenced code block languages, sorted. */\n codeLanguages: string[];\n /**\n * BCP-47 tag from the nearest enclosing route mapping that declares one\n * (ADR 01037), or undefined when no route covers this path or none in the\n * chain declares a language. The page's own `lang`/`language` frontmatter\n * outranks it.\n */\n routeLanguage?: string;\n /**\n * Lowercase sha256 hex digest of the document's UTF-8 content, as read —\n * line endings included, so it matches `sha256sum <file>` (ADR 01036).\n */\n contentHash: string;\n}\n","/**\n * Deterministic IRI minting. Every node in the graph gets a stable IRI derived\n * from the base IRI plus repo-relative paths, heading slugs, or concept labels —\n * never blank nodes. Identical inputs mint identical IRIs on every OS.\n */\nimport { slug as githubSlug } from \"github-slugger\";\n\n/** Default base when the config sets none: valid, deterministic, obviously placeholder. */\nexport const DEFAULT_BASE_IRI = \"urn:manni:graph:\";\n\n/** Normalize a config base IRI; http(s) bases get a trailing slash. */\nexport function resolveBaseIri(base: string | undefined): string {\n if (!base) return DEFAULT_BASE_IRI;\n if (base.endsWith(\"/\") || base.endsWith(\":\")) return base;\n return `${base}/`;\n}\n\n/** Repo-relative path with forward slashes and no leading `./`. */\nexport function normalizeDocPath(p: string): string {\n let out = p.replace(/\\\\/g, \"/\");\n while (out.startsWith(\"./\")) out = out.slice(2);\n return out;\n}\n\n/** RFC 3986 strict percent-encoding of one path segment (UTF-8 for non-ASCII). */\nexport function encodeSegment(segment: string): string {\n return encodeURIComponent(segment).replace(\n /[!'()*]/g,\n (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`,\n );\n}\n\n/**\n * The display path of a document read from stdin (`-`). It has no file name,\n * so its node is `{base}stdin` rather than a `doc/` path, and its links\n * resolve from the working directory.\n */\nexport const STDIN_PATH = \"<stdin>\";\n\n/**\n * `{base}doc/{repo-relative-path}`, segment-wise percent-encoded. A document\n * read from stdin is `{base}stdin`.\n */\nexport function mintDocIri(base: string, relPath: string): string {\n if (relPath === STDIN_PATH) return `${base}stdin`;\n const path = normalizeDocPath(relPath)\n .split(\"/\")\n .map(encodeSegment)\n .join(\"/\");\n return `${base}doc/${path}`;\n}\n\n/**\n * `{docIri}#{slug}` — the slug comes pre-disambiguated from analysis.\n * Mints any `#fragment` node of a document, sections and blocks alike.\n */\nexport function mintSectionIri(docIri: string, slugValue: string): string {\n return `${docIri}#${slugValue}`;\n}\n\n/** Stateless GitHub-style slug; identical labels always converge. */\nexport function conceptSlug(label: string): string {\n return githubSlug(label);\n}\n\n/** `{base}concept/{slug(label)}` — one shared namespace for all concepts. */\nexport function mintConceptIri(base: string, label: string): string {\n return `${base}concept/${encodeSegment(conceptSlug(label))}`;\n}\n\n/**\n * `{base}concept/{id}` — a concept the termbase defines (proposal 0086 §1).\n * The id is the term's own, encoded as one segment. A term's id defaults to\n * its label's slug, so most term concepts keep the IRI a label would mint.\n */\nexport function mintTermConceptIri(base: string, id: string): string {\n return `${base}concept/${encodeSegment(id)}`;\n}\n\n/**\n * `{base}product/{slug(label)}` — iiRDS ProductVariant nodes (graph.applies-to).\n * Separate `product/` segment so a product and a concept sharing a label\n * cannot converge on one IRI.\n */\nexport function mintProductIri(base: string, label: string): string {\n return `${base}product/${encodeSegment(conceptSlug(label))}`;\n}\n\n/** The single skos:ConceptScheme node for the graph. */\nexport function mintSchemeIri(base: string): string {\n return `${base}scheme`;\n}\n\n/**\n * The kind of actor an agent IRI names, mirroring PROV-O's three\n * `prov:Agent` subclasses. Segmenting by kind keeps a person and a model\n * whose names slug alike (\"GPT 4\" / \"gpt-4\") from merging into one node.\n */\nexport type AgentKind = \"person\" | \"org\" | \"software\";\n\n/** `{base}agent/{kind}/{slug(name)}`. */\nexport function mintAgentIri(\n base: string,\n kind: AgentKind,\n name: string,\n): string {\n return `${base}agent/${kind}/${encodeSegment(conceptSlug(name))}`;\n}\n\n/**\n * `{base}strategy/{type}/{id}`: an audience, persona or journey record\n * (proposal 0110). The id is the record's own, as it declares it or as its\n * file name gives it, encoded as one segment. Ids are per repository, so\n * the IRI is too.\n */\nexport function mintStrategyIri(base: string, type: string, id: string): string {\n return `${base}strategy/${encodeSegment(type)}/${encodeSegment(id)}`;\n}\n\n/** The graph itself as a prov:Entity. */\nexport function mintGraphIri(base: string): string {\n return `${base}graph`;\n}\n\n/** The build run as a prov:Activity. */\nexport function mintBuildActivityIri(base: string): string {\n return `${base}activity/build`;\n}\n","/**\n * Namespace table. Standard vocabularies wherever a term exists; the custom\n * `graph:` namespace stays minimal, and the newest vocabulary document under\n * `ns/` defines every term it holds — a bidirectional drift guard in\n * test/graph/unit/vocabulary.test.ts enforces both directions. Neither the term\n * count nor the version is written here: both went stale the first time a term\n * was added, and the guard resolves the file rather than naming it. The prefix\n * set is fixed — every emitted graph carries the same header.\n *\n * The custom prefix is `graph:` and its namespace is the manni site's, which is\n * where it dereferences (proposal 0051 §7). Both were `dockg` until the tool\n * joined the family, and graph ADR 01030's rule — the namespace IRI must resolve\n * — is why they moved rather than staying: `hawkeyexl.github.io/dockg` never\n * served anything and never will.\n *\n * The block an author writes on a page is `graph:`, and the prefix is `graph:`\n * too. The spelling is shared but the things differ: the key names frontmatter,\n * the prefix abbreviates an IRI in emitted RDF, and the prefix carries the\n * tool's name because `…/manni/graph/ns#` is the tool's namespace. Nothing\n * collides: no other prefix in this table is `graph`, and a `graph:` CURIE typed\n * at `--predicates` or `--subject` expanded to nothing before.\n */\nexport const NS = {\n dcterms: \"http://purl.org/dc/terms/\",\n foaf: \"http://xmlns.com/foaf/0.1/\",\n graph: \"https://hawkeyexl.github.io/manni/graph/ns#\",\n iirds: \"http://iirds.tekom.de/iirds#\",\n iirdsSft: \"http://iirds.tekom.de/iirds/domain/software#\",\n prov: \"http://www.w3.org/ns/prov#\",\n rdf: \"http://www.w3.org/1999/02/22-rdf-syntax-ns#\",\n schema: \"https://schema.org/\",\n skos: \"http://www.w3.org/2004/02/skos/core#\",\n xsd: \"http://www.w3.org/2001/XMLSchema#\",\n} as const;\n\nexport type Prefix = keyof typeof NS;\n\n/** Prefixes in emission order (sorted by prefix name). */\nexport const PREFIXES: ReadonlyArray<[Prefix, string]> = (\n Object.entries(NS) as Array<[Prefix, string]>\n).sort(([a], [b]) => (a < b ? -1 : 1));\n\nexport const RDF_TYPE = `${NS.rdf}type`;\n\n/**\n * Role individuals for qualified provenance (prov:hadRole objects). Part of\n * the deliberately small graph vocabulary.\n */\nexport const ROLE = {\n author: `${NS.graph}authorRole`,\n generator: `${NS.graph}generatorRole`,\n tool: `${NS.graph}toolRole`,\n} as const;\n","/**\n * Loads and validates the `graph:` section of `manni.config.yaml`. Discovery is\n * the family's (`src/shared/config-file.ts`); validation is JSON Schema\n * (2020-12) via Ajv; defaults are applied in code afterward so the resolved\n * shape is fully typed. Mirrors the docevals config pattern.\n */\nimport { dirname, resolve } from \"node:path\";\nimport { parse as parseYaml } from \"yaml\";\nimport { Ajv2020 } from \"ajv/dist/2020.js\";\nimport configSchema from \"./config-schema.json\" with { type: \"json\" };\nimport {\n findConfigFileSync,\n readConfigFileSync,\n type ConfigFileOptions,\n} from \"../../shared/config-file.js\";\nimport type { CollectionConfig } from \"../../shared/collections.js\";\nimport { parseCollections } from \"../../shared/collections.js\";\nimport {\n PROVIDERS_KEY,\n assertKnownProvider,\n parseProviders,\n type ProvidersConfig,\n} from \"../../shared/providers.js\";\nimport { errorMessage } from \"../../shared/errors.js\";\n// meta's budget, shared rather than copied, as `term fill` shares it.\nimport { DEFAULT_CHUNK_CHARS } from \"../../meta/commands/fill-prompt.js\";\nimport type { Severity } from \"../../shared/severity.js\";\nimport { GraphError } from \"../types.js\";\nimport { resolveBaseIri } from \"./iri.js\";\nimport { UNIFORM_COVERAGE_FIELD_NAMES } from \"./coverage.js\";\n// Pure data module (no transformers import), so config stays Node-light.\nimport { DEFAULT_MODEL as DEFAULT_EMBED_MODEL } from \"../embed/types.js\";\n\nexport type DeriveSource =\n | \"frontmatter\"\n | \"sections\"\n | \"links\"\n | \"tags\"\n | \"images\"\n | \"code\"\n | \"provenance\"\n | \"terms\";\n\nexport type FillField =\n // SKOS concept fields\n | \"label\"\n | \"alt-labels\"\n | \"broader\"\n | \"narrower\"\n | \"related-concepts\"\n | \"concepts\"\n // iiRDS typing + negative scope (ADR 01015)\n | \"type\"\n | \"applies-to\"\n | \"about-product-lifecycle\"\n | \"about-product-aspect\"\n | \"not-applicable-to\"\n | \"not-about-product-aspect\"\n // A page's own questions, beside the graph block (proposal 0087)\n | \"sample-questions\";\n\n/** The fields `fill` writes into the `graph:` block: every fill field but questions. */\nexport type GraphFillField = Exclude<FillField, \"sample-questions\">;\n\n/** Every fillable field, in a stable order — the default `fill.fields`. */\nexport const ALL_FILL_FIELDS: FillField[] = [\n \"label\",\n \"alt-labels\",\n \"broader\",\n \"narrower\",\n \"related-concepts\",\n \"concepts\",\n \"type\",\n \"applies-to\",\n \"about-product-lifecycle\",\n \"about-product-aspect\",\n \"not-applicable-to\",\n \"not-about-product-aspect\",\n \"sample-questions\",\n];\n\n/** Maps published-site routes back to source files. */\nexport interface RouteMapping {\n /** Site prefix, normalized: leading `/`, no trailing `/`; `\"\"` = site root. */\n basePath: string;\n /** Repo-relative directory routes resolve into (no trailing slash). */\n root: string;\n /** Extensions to try when the route names a page without one. */\n extensions: string[];\n /** Basenames to try for directory routes (`/docs/actions/`). */\n indexFiles: string[];\n /**\n * BCP-47 tag labelling every document under `root` (ADR 01037). A page's own\n * `lang`/`language` frontmatter wins; absent that, the nearest enclosing\n * route that declares one applies. Omitted, the route says nothing about\n * language.\n */\n language?: string;\n}\n\nexport interface GraphConfig {\n /**\n * The family's document sets, from the file's top-level `collections:`\n * (proposal 0041). `[]` when the key is absent or no file governs the run.\n */\n collections: CollectionConfig[];\n /**\n * The config file as the user would name it, for messages; `null` when no\n * file governs the run and every value is a built-in default.\n */\n configSource: string | null;\n /**\n * `graph.provider`, or `null` when unset: the family's `providers.provider`\n * decides then, and `auto` (detect) after it. `--provider` wins over it and\n * `--local` overrides both (proposal 0051 §3).\n */\n provider: string | null;\n /**\n * The model within the provider, or `null` for the provider's own default.\n * manni pins no model: the inference library chooses, and the model it\n * resolves to is what every cache key names. Not `embed.model`, which is a\n * local embedding model id and has nothing to do with a provider.\n */\n model: string | null;\n /**\n * The family's top-level `providers:`: the provider and model every tool\n * falls back to, and the connection settings for each provider. `{}` when\n * the file declares none, or no file governs the run.\n */\n providers: ProvidersConfig;\n /** Normalized base IRI (trailing slash for http(s); `urn:manni:graph:` default). */\n baseIri: string;\n /** Output path of the built Turtle file, relative to configDir. */\n out: string;\n /**\n * `graph.authoring` (proposal 0110): whether a build carries author-facing\n * content, the strategy records and every value a page's schemas mark\n * `x-manni-location: external`. Default `true`. `--no-authoring` sets it\n * `false` for one run.\n */\n authoring: boolean;\n routes: RouteMapping[];\n /**\n * Golden-set files, as the config names them, relative to `configDir`\n * (proposal 0087). `check` asks their questions beside each page's.\n */\n questionFiles: string[];\n build: { derive: DeriveSource[] };\n /** Graph-level SHACL validation (`manni graph check`). */\n check: {\n /** Shapes .ttl paths; empty = the shapes bundled with manni. */\n shapes: string[];\n /**\n * Each page's `sample-questions`, asked through the retrieval `search`\n * uses (proposal 0086 §7). A page outside the `top` results for its own\n * question is a finding at `severity`; `off` reports none of them.\n * `foundThreshold` fails the run when the share of reviewed questions\n * found falls below it, a percentage; `null` sets no rate gate\n * (proposal 0087).\n */\n questions: {\n top: number;\n severity: Severity | \"off\";\n foundThreshold: number | null;\n /**\n * Fails the run when the share of reviewed questions that\n * `graph retrieve` cites falls below it, a percentage; `null` sets no\n * gate (proposal 0090). It applies only when a chunk artifact sits\n * beside the graph.\n */\n citedThreshold: number | null;\n };\n };\n provenance: {\n /**\n * Emit qualified attribution/association nodes with roles.\n *\n * The one provenance setting left. `git` was tri-state until proposal\n * 0051 §6: git history is *detected* now, used wherever git can run over a\n * repository and degraded to a warning where it cannot (graph ADR 01010's\n * `\"auto\"`, minus the switch). `qualified` stays because it switches what\n * is written, not what is discovered.\n */\n qualified: boolean;\n };\n fill: {\n temperature: number;\n /**\n * Stop after this many inference calls; `null` (the default) is\n * unbounded. One page is one turn, and a cached proposal spends none.\n * Replaces the dollar cap graph ADR 01027 found unenforceable, as docevals\n * ADR 01019 replaced its own (proposal 0051 §3).\n */\n maxTurns: number | null;\n cacheDir: string;\n fields: FillField[];\n /**\n * Minimum model self-confidence (0..1) to write a proposed field; below\n * this it is reported but not written (ADR 01015). Default 0.7. Named as\n * meta, docevals and tracevals name it (proposal 0051 §3).\n */\n confidenceThreshold: number;\n /** Record the page-level meta-provenance on filled docs (proposal 0046). */\n writeProvenance: boolean;\n /** Reject proposals that would violate the SHACL shapes contract. */\n validateGraph: boolean;\n /** Also propose per-section metadata (ADR 01032). Opt-in: more output. */\n sections: boolean;\n /** The largest body piece one question request sends (proposal 0087). */\n chunkChars: number;\n /** Send nothing off this machine: a downloaded local model, or none. */\n offline: boolean;\n questions: {\n /** Draft until a page has this many questions, reviewed or drafted. */\n perPage: number;\n };\n };\n stats: {\n /**\n * Per-field minimum coverage percentages (0–100) enforced under\n * `stats --check`. Resolved shape is always a map; a uniform number in the\n * config expands across every measured field. Default `{}` gates nothing.\n * See ADR 01011.\n */\n coverageThreshold: Record<string, number>;\n };\n embed: {\n /**\n * Embedding model id (ADR 01020). An open string, not an enum: the\n * documented table is the *tested* set, not the permitted set, so a newer\n * model works without a manni release.\n */\n model: string;\n /** Weight quantization. `q8` keeps int32 accumulation, which is associative. */\n dtype: string;\n /**\n * Directory the sidecars are written into (ADR 01038). One file per\n * language, named by `vectorIndexFilename`, so this is a directory rather\n * than the single path it was before the fan-out. Resolved from the\n * working directory, as `out` is. Undefined means the index directory,\n * which is why it has no default here.\n */\n out: string | undefined;\n /**\n * Per-language model overrides, keyed by BCP-47 tag (ADR 01038). A German\n * corpus embedded with an English-only model returns confident, meaningless\n * vectors and fails nothing, so this is the knob that makes the fan-out\n * worth having. Unset languages use `model`/`dtype`.\n */\n byLanguage: Record<string, { model?: string; dtype?: string }>;\n /** Per-text vector cache, keyed on text+model+dtype. */\n cacheDir: string;\n };\n export: {\n /** iiRDS package export metadata (ADR 01017); all fields optional. */\n iirds: {\n /** Package title; when absent the exporter uses a default. */\n title?: string;\n /** Creator organization name → a Creator iirds:Party + vcard:Organization. */\n creator?: string;\n /** iiRDS version literal written to the package. Default \"1.3\". */\n version: \"1.2\" | \"1.3\";\n };\n /** The chunk artifact (proposal 0090). */\n chunks: {\n /**\n * A docevals JSON report, as the config names it, relative to\n * `configDir`. It fills each provenance record's `evals`; `null` leaves\n * every one `null`. `--evals` overrides it.\n */\n evals: string | null;\n };\n /**\n * `llms.txt` (proposal 0090), or `null` when the section is absent.\n * `graph export llms` needs `title` and `origin`, and `graph publish`\n * writes the file only when the section exists.\n */\n llms: { title?: string; summary?: string; origin?: string } | null;\n };\n /**\n * The optional sections `graph publish` runs a step for only when the\n * config declares them: `embed` and `export.iirds`. Their keys all have\n * defaults, so the resolved values cannot say whether a section was written.\n */\n declared: { embed: boolean; iirds: boolean };\n /**\n * The retrieval defaults the chunk manifest hands every host (proposal\n * 0090). `withhold` is applied at export too: a passage it names is left\n * out of the rows and listed in the manifest.\n */\n retrieve: {\n seeds: number;\n depth: number;\n maxChars: number;\n withhold: WithholdReason[];\n };\n /**\n * What `graph serve` sends over MCP. `maxChars` caps one answer, its JSON\n * as characters: past it, passages go out as references, then edges go.\n */\n serve: { maxChars: number };\n /** Absolute path of the loaded config file. */\n configPath: string;\n /** Directory containing the config file; relative paths resolve against it. */\n configDir: string;\n}\n\n/**\n * Why a passage is left out of what retrieval serves (proposal 0090):\n * `drifted`, a pin at error severity, and `failing`, a current eval verdict\n * that failed or errored.\n */\nexport type WithholdReason = \"drifted\" | \"failing\";\n\n/** The family config file; this tool reads its `graph:` key. */\nexport const DEFAULT_CONFIG_FILENAME = \"manni.config.yaml\";\n/** The tool's key in the family file. */\nexport const CONFIG_SECTION = \"graph\";\n/** The family's top-level key for document sets (proposal 0041). */\nconst COLLECTIONS_KEY = \"collections\";\n\n/**\n * Where the metadata tool's configuration reference documents `collections:`.\n * The literal docevals', cite's and meta's config modules carry, repeated\n * because those modules are theirs.\n */\nconst CONFIG_REF =\n \"https://hawkeyexl.github.io/manni/meta/reference/configuration/\";\n\n/**\n * The keys proposal 0041 moved out of `graph:` and up to the family level.\n * Refused rather than aliased, as meta, cite and docevals refuse theirs: an\n * alias would be a second place to declare a document set that is meant to be\n * declared once. Checked before Ajv, which would call them unknown keys.\n */\nconst MOVED_KEYS = [\"inputs\", \"exclude\"] as const;\n\nexport const ALL_DERIVE_SOURCES: DeriveSource[] = [\n \"frontmatter\",\n \"sections\",\n \"links\",\n \"tags\",\n \"images\",\n \"code\",\n \"provenance\",\n \"terms\",\n];\n\n/**\n * Default candidates for extensionless link targets (routes AND relative\n * links), and the extensions that name a document rather than an asset.\n * Markdown first, so a tree holding `install.md` and a built `install.html`\n * resolves a pretty URL to the source. No `.xml`: a link to `pom.xml` is an\n * asset, as a walk never collects one (proposal 0077 §3).\n */\nexport const DEFAULT_LINK_EXTENSIONS = [\n \".md\",\n \".mdx\",\n \".markdown\",\n \".html\",\n \".htm\",\n \".adoc\",\n \".asciidoc\",\n \".rst\",\n \".dita\",\n \".ditamap\",\n];\nexport const DEFAULT_INDEX_FILES = [\"index\", \"README\"];\n\n/** `/docs/` -> `/docs`; `/` or `` -> `` (site root). */\nfunction normalizeBasePath(basePath: string): string {\n let out = basePath.trim();\n if (!out.startsWith(\"/\")) out = `/${out}`;\n out = out.replace(/\\/+$/, \"\");\n return out;\n}\n\nconst ajv = new Ajv2020({ allErrors: true, allowUnionTypes: true });\nconst validateConfig = ajv.compile(configSchema);\n\n/** One `routes:` entry as the file spells it; only `root` is required. */\ninterface RawRouteMapping {\n basePath?: string;\n root: string;\n extensions?: string[];\n indexFiles?: string[];\n language?: string;\n}\n\n/**\n * The config file's own shape, in its own spelling.\n *\n * Ajv has already validated `raw` against `config-schema.json` by the time this\n * is used, so the optionality here is the schema's, not a guess. Declaring it is\n * what lets `parseConfigSection` read the file without an `any` — and an `any`\n * here would be the worst place for one, since every default in the tool flows\n * through this function. `RawDocevalsConfig` is the same declaration in the\n * evals tool.\n */\ninterface RawGraphConfig {\n provider?: string;\n model?: string;\n baseIri?: string;\n out?: string;\n authoring?: boolean;\n routes?: RawRouteMapping[];\n questionFiles?: string[];\n build?: { derive?: DeriveSource[] };\n check?: {\n shapes?: string[];\n questions?: {\n top?: number;\n severity?: Severity | \"off\";\n foundThreshold?: number | null;\n citedThreshold?: number | null;\n };\n };\n provenance?: { qualified?: boolean };\n stats?: { coverageThreshold?: number | Record<string, number> };\n fill?: {\n temperature?: number;\n maxTurns?: number | null;\n cacheDir?: string;\n confidenceThreshold?: number;\n writeProvenance?: boolean;\n validateGraph?: boolean;\n fields?: FillField[];\n sections?: boolean;\n chunkChars?: number;\n offline?: boolean;\n questions?: { perPage?: number };\n };\n embed?: {\n model?: string;\n dtype?: string;\n out?: string;\n cacheDir?: string;\n byLanguage?: Record<string, { model?: string; dtype?: string }>;\n };\n export?: {\n iirds?: { title?: string; creator?: string; version?: \"1.2\" | \"1.3\" };\n chunks?: { evals?: string | null };\n llms?: { title?: string; summary?: string; origin?: string };\n };\n retrieve?: { seeds?: number; depth?: number; maxChars?: number; withhold?: WithholdReason[] };\n serve?: { maxChars?: number };\n}\n\n/**\n * One Ajv error, as a line a reader can act on.\n *\n * Ajv reports an unknown key against the *parent* object, so the bare message\n * (\"must NOT have additional properties\") leaves the reader to diff their file\n * against the schema to find which key it meant. Name it, as docevals does\n * (PR #10): the common case here is a key that was removed — `version:`,\n * `provenance.git:` and `fill.provider:` after proposal 0051 — and a message\n * that makes you guess is one people work around.\n *\n * The path is the one the user writes. Ajv validates the `graph:` section on its\n * own, so its `instancePath` starts inside it; `/graph` goes back on the front,\n * so a reader can find `/graph/fill` in `manni.config.yaml` without translating.\n */\nfunction configErrorLine(e: {\n instancePath: string;\n keyword: string;\n params: unknown;\n message?: string | undefined;\n}): string {\n const extra =\n e.keyword === \"additionalProperties\"\n ? (e.params as { additionalProperty?: string }).additionalProperty\n : undefined;\n const where = `/${CONFIG_SECTION}${e.instancePath}`;\n return extra === undefined\n ? ` ${where}: ${e.message ?? \"is invalid\"}`\n : ` ${where}: unknown key \"${extra}\"`;\n}\n\n/**\n * Normalize `stats.coverageThreshold` to a per-field map. Ajv has already\n * validated the input as a number, an object of known fields, or absent; a\n * uniform number expands across every field it gates, which is every measured\n * field but `sample-questions`, so the resolved shape is always a map\n * (default `{}`).\n */\nfunction resolveCoverageThreshold(\n raw: number | Record<string, number> | undefined,\n): Record<string, number> {\n if (raw == null) return {};\n if (typeof raw === \"number\")\n return Object.fromEntries(UNIFORM_COVERAGE_FIELD_NAMES.map((f) => [f, raw]));\n return { ...raw };\n}\n\n/** What the file the section came from carries beside it. */\nexport interface ConfigFileContext {\n /** The file as the user would name it, for messages. */\n source: string;\n /** The file's top-level `collections:`. */\n collections: CollectionConfig[];\n /** The file's top-level `providers:`; `{}` when it declares none. */\n providers?: ProvidersConfig;\n}\n\n/**\n * Parse and validate config YAML text. A document with a `graph:` key is a family\n * file, so its top-level `collections:` is read too; anything else is the\n * tool's section on its own.\n */\nexport function parseConfig(text: string, configPath: string): GraphConfig {\n let raw: unknown;\n try {\n raw = parseYaml(text);\n } catch (e) {\n throw new GraphError(\n `Invalid YAML in ${configPath}: ${errorMessage(e)}`,\n );\n }\n if (raw == null) return parseConfigSection(null, configPath);\n if (typeof raw !== \"object\" || Array.isArray(raw)) {\n throw new GraphError(`Invalid config in ${configPath}: root must be an object`);\n }\n const doc = raw as Record<string, unknown>;\n const wrapped = Object.hasOwn(doc, CONFIG_SECTION);\n const toError = (message: string): Error => new GraphError(message);\n // The family keys, parsed as the shared loader parses them, so a config\n // built from text selects from the same collections, and the same\n // providers, a discovered file would.\n const collections = Object.hasOwn(doc, COLLECTIONS_KEY)\n ? parseCollections(doc[COLLECTIONS_KEY], configPath, toError)\n : [];\n const providers = Object.hasOwn(doc, PROVIDERS_KEY)\n ? parseProviders(\n doc[PROVIDERS_KEY],\n configPath,\n dirname(resolve(configPath)),\n toError,\n )\n : {};\n return parseConfigSection(wrapped ? doc[CONFIG_SECTION] : doc, configPath, {\n source: configPath,\n collections,\n providers,\n });\n}\n\n/**\n * Validate the tool's section. `raw` is what sat under `graph:` in a family\n * file, or the whole document of an explicit path with no wrapper key.\n * Messages name `configPath`; relative paths in the config resolve against its\n * directory. `file` carries the family keys; absent, the section is its own\n * source and declares no collections.\n *\n * `null` is an empty section, which is every default: a `graph:` key somebody\n * added while migrating and has not filled in yet is a config, not an error.\n */\nexport function parseConfigSection(\n raw: unknown,\n configPath: string,\n file: ConfigFileContext = { source: configPath, collections: [] },\n): GraphConfig {\n if (raw == null) raw = {};\n if (typeof raw !== \"object\" || Array.isArray(raw)) {\n throw new GraphError(\n `Invalid config in ${configPath}: root must be an object`,\n );\n }\n for (const key of MOVED_KEYS) {\n if (Object.hasOwn(raw as Record<string, unknown>, key)) {\n throw new GraphError(\n `${file.source}: \"${key}\" is no longer a graph key. Document sets are declared once for every tool, under a top-level collections: list. See ${CONFIG_REF}#${COLLECTIONS_KEY}`,\n );\n }\n }\n if (!validateConfig(raw)) {\n const details = (validateConfig.errors ?? [])\n .map((e) => configErrorLine(e))\n .join(\"\\n\");\n throw new GraphError(`Invalid config in ${configPath}:\\n${details}`);\n }\n\n // Past this point Ajv has validated `raw` against config-schema.json, so the\n // shape is known-good and reading fields off it is safe. The cast is to that\n // shape, spelled out once in `RawGraphConfig`, rather than to `any`: the file's\n // optionality is then the schema's and every default below is checked.\n const r = raw as RawGraphConfig;\n const abs = resolve(configPath);\n const dir = dirname(abs);\n\n // The name is checked here, with the message `manni meta fill` gives, so a\n // typo is caught by every verb and not only the one that reaches a model.\n // Whether a model has a provider to own it waits for the flags: a\n // `--provider`, or the family's `providers.provider`, can supply the\n // provider a configured model needs.\n const provider: string | null = r.provider ?? null;\n if (provider !== null) {\n assertKnownProvider(provider, (message) => new GraphError(message));\n }\n\n return {\n collections: file.collections,\n configSource: file.source,\n provider,\n model: r.model ?? null,\n providers: file.providers ?? {},\n baseIri: resolveBaseIri(r.baseIri),\n out: r.out ?? \"graph/graph.ttl\",\n authoring: r.authoring ?? true,\n routes: (r.routes ?? []).map((m) => ({\n basePath: normalizeBasePath(m.basePath ?? \"/\"),\n root: m.root\n .replace(/\\\\/g, \"/\")\n .replace(/^\\.\\//, \"\")\n .replace(/\\/+$/, \"\"),\n extensions: m.extensions ?? [...DEFAULT_LINK_EXTENSIONS],\n indexFiles: m.indexFiles ?? [...DEFAULT_INDEX_FILES],\n ...(m.language === undefined ? {} : { language: m.language }),\n })),\n questionFiles: r.questionFiles ?? [],\n build: {\n derive: r.build?.derive ?? [...ALL_DERIVE_SOURCES],\n },\n check: {\n // Empty means: use the shapes bundled with manni (see bundledShapesPath).\n shapes: r.check?.shapes ?? [],\n questions: {\n top: r.check?.questions?.top ?? 5,\n severity: r.check?.questions?.severity ?? \"warning\",\n foundThreshold: r.check?.questions?.foundThreshold ?? null,\n citedThreshold: r.check?.questions?.citedThreshold ?? null,\n },\n },\n provenance: {\n qualified: r.provenance?.qualified ?? true,\n },\n stats: {\n coverageThreshold: resolveCoverageThreshold(r.stats?.coverageThreshold),\n },\n fill: {\n temperature: r.fill?.temperature ?? 0,\n maxTurns: r.fill?.maxTurns ?? null,\n cacheDir: r.fill?.cacheDir ?? \".manni/graph/cache\",\n fields: r.fill?.fields ?? [...ALL_FILL_FIELDS],\n confidenceThreshold: r.fill?.confidenceThreshold ?? 0.7,\n writeProvenance: r.fill?.writeProvenance ?? true,\n validateGraph: r.fill?.validateGraph ?? true,\n sections: r.fill?.sections ?? false,\n chunkChars: r.fill?.chunkChars ?? DEFAULT_CHUNK_CHARS,\n offline: r.fill?.offline ?? false,\n questions: { perPage: r.fill?.questions?.perPage ?? 3 },\n },\n embed: {\n model: r.embed?.model ?? DEFAULT_EMBED_MODEL,\n dtype: r.embed?.dtype ?? \"q8\",\n out: r.embed?.out,\n cacheDir: r.embed?.cacheDir ?? \".manni/graph/embed-cache\",\n byLanguage: r.embed?.byLanguage ?? {},\n },\n export: {\n iirds: {\n title: r.export?.iirds?.title,\n creator: r.export?.iirds?.creator,\n version: r.export?.iirds?.version ?? \"1.3\",\n },\n chunks: { evals: r.export?.chunks?.evals ?? null },\n llms: r.export?.llms ?? null,\n },\n declared: { embed: r.embed !== undefined, iirds: r.export?.iirds !== undefined },\n retrieve: {\n seeds: r.retrieve?.seeds ?? 3,\n depth: r.retrieve?.depth ?? 1,\n maxChars: r.retrieve?.maxChars ?? 12000,\n withhold: r.retrieve?.withhold ?? [],\n },\n serve: { maxChars: r.serve?.maxChars ?? 40000 },\n configPath: abs,\n configDir: dir,\n };\n}\n\nconst CONFIG_FILE: ConfigFileOptions = {\n section: CONFIG_SECTION,\n // The tool was `dockg` before it joined the family (proposal 0051 §7), but\n // it published no config file under that old name, so — like cite, a11y and\n // docevals — there is no pre-family filename to read (proposal 0051 §2).\n legacyNames: [],\n toError: (message) => new GraphError(message),\n};\n\n/**\n * Load config from an explicit path, or discover the family file from the\n * working directory upward (`src/shared/config-file.ts`: `manni.config.yaml`\n * read at its `graph:` key). With no config file present, built-in defaults\n * apply.\n */\nexport function loadConfig(path?: string, cwd = process.cwd()): GraphConfig {\n const file = path\n ? readConfigFileSync(path, cwd, CONFIG_FILE)\n : findConfigFileSync(cwd, CONFIG_FILE);\n if (file === null) return defaultConfig(cwd);\n return parseConfigSection(file.value, file.path, {\n source: file.source,\n collections: file.collections,\n ...(file.providers === undefined ? {} : { providers: file.providers }),\n });\n}\n\n/**\n * Every built-in default, with no file behind it: what a run gets when\n * discovery finds nothing, or under `--no-config`. It declares no collections,\n * so such a run reads only the paths it was given.\n */\nexport function defaultConfig(cwd = process.cwd()): GraphConfig {\n return {\n ...parseConfigSection(null, resolve(cwd, DEFAULT_CONFIG_FILENAME)),\n configSource: null,\n };\n}\n\nexport interface RunConfigOptions {\n /** `-c/--config`. */\n configPath?: string;\n /** `--no-config`: skip discovery and run on the built-in defaults. */\n noConfig?: boolean;\n /** Positional paths; checked here only for how they combine with `collection`. */\n paths?: string[];\n /** `--collection <name>`, repeatable. */\n collection?: string[];\n}\n\n/**\n * The config a command runs under. `--collection` names something only a\n * config can define and selects a set the operator did not type, so pairing it\n * with paths is refused before discovery, and the message is about the flags\n * rather than about whatever the walk found.\n */\nexport function loadRunConfig(\n opts: RunConfigOptions,\n cwd = process.cwd(),\n): GraphConfig {\n assertCollectionWithoutPaths(opts.collection, opts.paths);\n return opts.noConfig ? defaultConfig(cwd) : loadConfig(opts.configPath, cwd);\n}\n\n/** The message meta, cite and docevals give, in graph's error class. */\nexport function assertCollectionWithoutPaths(\n collection: readonly string[] | undefined,\n paths: readonly string[] | undefined,\n): void {\n if ((collection ?? []).length > 0 && (paths ?? []).length > 0) {\n throw new GraphError(\n \"--collection selects a configured collection; it cannot be combined with paths.\",\n );\n }\n}\n","{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"manni:graph:config\",\n \"title\": \"manni graph configuration\",\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"provider\": {\n \"type\": \"string\",\n \"minLength\": 1,\n \"description\": \"Which provider `manni graph fill` sends pages to: auto | anthropic | openai | claude-cli | llama-cpp. Unset, the family's top-level providers.provider decides, then auto, detected exactly as manni meta fill detects: an Anthropic key, then an OpenAI key, then the Claude CLI, then a local model. --provider wins over it, and --local overrides both. Connection settings live in the family's top-level providers: map.\"\n },\n \"model\": {\n \"type\": \"string\",\n \"minLength\": 1,\n \"description\": \"The model, within the provider named beside it. A model is carried only to the provider its own level names: a differing --provider or providers.provider takes its own default instead. With no provider here, it goes to whichever provider is in force, which must not be auto, because a model name does not say which provider owns it. Unset (the default) takes the provider's default model from the inference library; manni pins none. --model wins over it. This is not `embed.model`, which is a local embedding model id.\"\n },\n \"baseIri\": {\n \"type\": \"string\",\n \"minLength\": 1\n },\n \"out\": {\n \"type\": \"string\",\n \"minLength\": 1\n },\n \"authoring\": {\n \"type\": \"boolean\",\n \"description\": \"Whether a build carries author-facing content: the strategy records, typed, and every value a page's schemas mark x-manni-location: external. Default true. false leaves both out of every build, and --no-authoring does so for one run.\"\n },\n \"questionFiles\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"minLength\": 1\n },\n \"description\": \"Golden-set files, relative to the config file. They hold questions that span pages or that the docs don't answer, and `check` asks them beside each page's sample-questions. Default none.\"\n },\n \"routes\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"required\": [\"root\"],\n \"properties\": {\n \"basePath\": {\n \"type\": \"string\"\n },\n \"root\": {\n \"type\": \"string\"\n },\n \"extensions\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^\\\\.\"\n }\n },\n \"language\": {\n \"type\": \"string\",\n \"pattern\": \"^[A-Za-z]{2,3}(-[A-Za-z]{4})?(-([A-Za-z]{2}|[0-9]{3}))?(-([A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*$\"\n },\n \"indexFiles\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"minLength\": 1\n }\n }\n }\n }\n },\n \"build\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"derive\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"enum\": [\n \"frontmatter\",\n \"sections\",\n \"links\",\n \"tags\",\n \"images\",\n \"code\",\n \"provenance\",\n \"terms\"\n ]\n }\n }\n }\n },\n \"check\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"shapes\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"minLength\": 1\n }\n },\n \"questions\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"top\": {\n \"type\": \"integer\",\n \"minimum\": 1\n },\n \"severity\": {\n \"enum\": [\"notice\", \"warning\", \"error\", \"off\"]\n },\n \"foundThreshold\": {\n \"anyOf\": [\n { \"type\": \"number\", \"minimum\": 0, \"maximum\": 100 },\n { \"type\": \"null\" }\n ],\n \"description\": \"`check` exits 1 when the percentage of reviewed questions found in the top `top` falls below this, 0-100. The same scale as stats.coverageThreshold. Null (the default) sets no rate gate. questions.severity does not touch it.\"\n },\n \"citedThreshold\": {\n \"anyOf\": [\n { \"type\": \"number\", \"minimum\": 0, \"maximum\": 100 },\n { \"type\": \"null\" }\n ],\n \"description\": \"`check` exits 1 when the percentage of reviewed questions cited by graph retrieve falls below this, 0-100. Null (the default) sets no gate. It applies only when a chunk artifact sits beside the graph.\"\n }\n }\n }\n }\n },\n \"provenance\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"qualified\": {\n \"type\": \"boolean\"\n }\n }\n },\n \"stats\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"coverageThreshold\": {\n \"anyOf\": [\n {\n \"type\": \"number\",\n \"minimum\": 0,\n \"maximum\": 100\n },\n {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"title\": {\n \"type\": \"number\",\n \"minimum\": 0,\n \"maximum\": 100\n },\n \"description\": {\n \"type\": \"number\",\n \"minimum\": 0,\n \"maximum\": 100\n },\n \"creator\": {\n \"type\": \"number\",\n \"minimum\": 0,\n \"maximum\": 100\n },\n \"created\": {\n \"type\": \"number\",\n \"minimum\": 0,\n \"maximum\": 100\n },\n \"modified\": {\n \"type\": \"number\",\n \"minimum\": 0,\n \"maximum\": 100\n },\n \"subject\": {\n \"type\": \"number\",\n \"minimum\": 0,\n \"maximum\": 100\n },\n \"label\": {\n \"type\": \"number\",\n \"minimum\": 0,\n \"maximum\": 100\n },\n \"language\": {\n \"type\": \"number\",\n \"minimum\": 0,\n \"maximum\": 100\n },\n \"type\": {\n \"type\": \"number\",\n \"minimum\": 0,\n \"maximum\": 100\n },\n \"applies-to\": {\n \"type\": \"number\",\n \"minimum\": 0,\n \"maximum\": 100\n },\n \"about-product-lifecycle\": {\n \"type\": \"number\",\n \"minimum\": 0,\n \"maximum\": 100\n },\n \"about-product-aspect\": {\n \"type\": \"number\",\n \"minimum\": 0,\n \"maximum\": 100\n },\n \"sample-questions\": {\n \"type\": \"number\",\n \"minimum\": 0,\n \"maximum\": 100\n }\n }\n }\n ]\n }\n }\n },\n \"fill\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"temperature\": {\n \"type\": \"number\",\n \"minimum\": 0,\n \"maximum\": 2\n },\n \"maxTurns\": {\n \"type\": [\"integer\", \"null\"],\n \"minimum\": 1,\n \"description\": \"Stop after this many inference calls. One page is one turn, and a cached proposal spends none. Null (the default) is unbounded. Replaces the maxCostUsd ceiling, which read as zero for every model outside the library's price table — see graph ADR 01027 and docevals ADR 01019.\"\n },\n \"cacheDir\": {\n \"type\": \"string\",\n \"minLength\": 1\n },\n \"confidenceThreshold\": {\n \"type\": \"number\",\n \"minimum\": 0,\n \"maximum\": 1,\n \"description\": \"Minimum model self-confidence (0..1) to write a proposed field; below it the field is reported and not written. Default 0.7. `--confidence` wins over it.\"\n },\n \"writeProvenance\": {\n \"type\": \"boolean\"\n },\n \"validateGraph\": {\n \"type\": \"boolean\"\n },\n \"fields\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"enum\": [\n \"label\",\n \"alt-labels\",\n \"broader\",\n \"narrower\",\n \"related-concepts\",\n \"concepts\",\n \"type\",\n \"applies-to\",\n \"about-product-lifecycle\",\n \"about-product-aspect\",\n \"not-applicable-to\",\n \"not-about-product-aspect\",\n \"sample-questions\"\n ]\n }\n },\n \"sections\": {\n \"type\": \"boolean\"\n },\n \"chunkChars\": {\n \"type\": \"integer\",\n \"minimum\": 1,\n \"description\": \"The largest body piece one question request sends. Default 12000, as meta fill's. `--chunk-chars` wins over it.\"\n },\n \"offline\": {\n \"type\": \"boolean\",\n \"description\": \"Send nothing off this machine: use only a local model that is already downloaded. Default false. `--offline` wins over it.\"\n },\n \"questions\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"perPage\": {\n \"type\": \"integer\",\n \"minimum\": 1,\n \"description\": \"Draft until a page has this many sample questions, reviewed or drafted. Default 3.\"\n }\n }\n }\n }\n },\n \"embed\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"model\": {\n \"type\": \"string\",\n \"minLength\": 1\n },\n \"dtype\": {\n \"type\": \"string\",\n \"minLength\": 1\n },\n \"out\": {\n \"type\": \"string\",\n \"minLength\": 1\n },\n \"cacheDir\": {\n \"type\": \"string\",\n \"minLength\": 1\n },\n \"byLanguage\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"patternProperties\": {\n \"^[A-Za-z]{2,3}(-[A-Za-z]{4})?(-([A-Za-z]{2}|[0-9]{3}))?(-([A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*$\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"model\": {\n \"type\": \"string\",\n \"minLength\": 1\n },\n \"dtype\": {\n \"type\": \"string\",\n \"minLength\": 1\n }\n }\n }\n }\n }\n }\n },\n \"export\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"iirds\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 1\n },\n \"creator\": {\n \"type\": \"string\",\n \"minLength\": 1\n },\n \"version\": {\n \"enum\": [\"1.2\", \"1.3\"]\n }\n }\n },\n \"chunks\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"evals\": {\n \"type\": [\"string\", \"null\"],\n \"minLength\": 1\n }\n }\n },\n \"llms\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"title\": { \"type\": \"string\", \"minLength\": 1 },\n \"summary\": { \"type\": \"string\", \"minLength\": 1 },\n \"origin\": { \"type\": \"string\", \"pattern\": \"^https?://[^/\\\\s]+$\" }\n }\n }\n }\n },\n \"retrieve\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"seeds\": { \"type\": \"integer\", \"minimum\": 1 },\n \"depth\": { \"type\": \"integer\", \"minimum\": 0 },\n \"maxChars\": { \"type\": \"integer\", \"minimum\": 1 },\n \"withhold\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": { \"enum\": [\"drifted\", \"failing\"] }\n }\n }\n },\n \"serve\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"maxChars\": {\n \"type\": \"integer\",\n \"minimum\": 1,\n \"description\": \"The most characters one answer graph serve sends over MCP may take. Default 40000.\"\n }\n }\n }\n }\n}\n","/**\n * iiRDS Core + Software-domain term IRIs and the frontmatter-value → IRI maps\n * (ADR 01012). Every IRI here is byte-verified against the published\n * `iirds-core.rdf` / `iirds-software.rdf` in iirds-consortium/models. dockg\n * references these IRIs; it never redefines or re-types them (iiRDS is\n * CC BY-ND). This is the single source of truth shared by the schema\n * (via the schema-sync drift guard), derive, and shapes.\n */\nimport { NS } from \"./vocab.js\";\n\n/** Predicates (Core). */\nexport const IIRDS_HAS_TOPIC_TYPE = `${NS.iirds}has-topic-type`;\nexport const IIRDS_RELATES_TO_PRODUCT_VARIANT = `${NS.iirds}relates-to-product-variant`;\nexport const IIRDS_RELATES_TO_LIFECYCLE_PHASE = `${NS.iirds}relates-to-product-lifecycle-phase`;\nexport const IIRDS_HAS_SUBJECT = `${NS.iirds}has-subject`;\n\n/** Class minted for `graph.applies-to` nodes. */\nexport const IIRDS_PRODUCT_VARIANT = `${NS.iirds}ProductVariant`;\n\n/**\n * Package-serialization terms (iiRDS package export, ADR 01017). Local names\n * byte-verified against the canonical RDF/XML example in the published spec\n * (`sections/structure/serialization.md`). Used only by the package projection —\n * never emitted into the built graph. IUs are typed `iirds:Topic` (the subclass\n * that carries `has-topic-type`/`has-subject`), one of the valid IU subclasses.\n */\nexport const IIRDS_PACKAGE = `${NS.iirds}Package`;\nexport const IIRDS_IIRDS_VERSION = `${NS.iirds}iiRDSVersion`;\nexport const IIRDS_TOPIC = `${NS.iirds}Topic`;\nexport const IIRDS_IS_PART_OF_PACKAGE = `${NS.iirds}is-part-of-package`;\nexport const IIRDS_HAS_RENDITION = `${NS.iirds}has-rendition`;\nexport const IIRDS_RENDITION = `${NS.iirds}Rendition`;\nexport const IIRDS_SOURCE = `${NS.iirds}source`;\nexport const IIRDS_FORMAT = `${NS.iirds}format`;\nexport const IIRDS_TITLE = `${NS.iirds}title`;\nexport const IIRDS_LANGUAGE = `${NS.iirds}language`;\nexport const IIRDS_PARTY = `${NS.iirds}Party`;\nexport const IIRDS_HAS_PARTY_ROLE = `${NS.iirds}has-party-role`;\nexport const IIRDS_CREATOR = `${NS.iirds}Creator`;\nexport const IIRDS_RELATES_TO_PARTY = `${NS.iirds}relates-to-party`;\nexport const IIRDS_RELATES_TO_VCARD = `${NS.iirds}relates-to-vcard`;\n\n/** vcard namespace — package-local (not in the global NS/PREFIXES table). */\nexport const VCARD_NS = \"http://www.w3.org/2006/vcard/ns#\";\nexport const VCARD_ORGANIZATION = `${VCARD_NS}Organization`;\nexport const VCARD_ORGANIZATION_NAME = `${VCARD_NS}organization-name`;\n\n/**\n * Negative-scope predicates (ADR 01014). Minted into `graph:` — no standard\n * term exists, and OWL negative property assertions require blank nodes. Each\n * mirrors, and is SHACL-disjoint from, its positive counterpart above.\n */\nexport const GRAPH_NOT_APPLICABLE_TO_VARIANT = `${NS.graph}notApplicableToVariant`;\nexport const GRAPH_NOT_SOFTWARE_SUBJECT = `${NS.graph}notSoftwareSubject`;\n\n/**\n * Page-level `type` → `graph.type` (ADR 01024). The page's `type` is an open\n * vocabulary (docmeta:core); `graph.type` is the closed iiRDS enum. When the block\n * is silent, the page's value derives one through this map — an unmapped page\n * type derives nothing rather than inventing a topic type. An explicit\n * `graph.type` always wins: deeper wins, the page level is the fallback.\n */\nexport const PAGE_TYPE_TO_TOPIC_TYPE: Readonly<Record<string, string>> = {\n \"how-to\": \"task\",\n tutorial: \"learning\",\n explanation: \"concept\",\n reference: \"reference\",\n troubleshooting: \"troubleshooting\",\n};\n\n/** `graph.type` value → `iirds:has-topic-type` object IRI. */\nexport const TOPIC_TYPE_IRIS: Readonly<Record<string, string>> = {\n task: `${NS.iirds}GenericTask`,\n concept: `${NS.iirds}GenericConcept`,\n reference: `${NS.iirds}GenericReference`,\n learning: `${NS.iirds}GenericLearning`,\n troubleshooting: `${NS.iirds}GenericTroubleshooting`,\n form: `${NS.iirds}GenericForm`,\n};\n\n/**\n * `graph.about-product-lifecycle` value → `iirds:relates-to-product-lifecycle-phase`\n * object IRI (Software domain: iirds:Use/PuttingToUse/AfterUse instances).\n */\nexport const SOFTWARE_LIFECYCLE_IRIS: Readonly<Record<string, string>> = {\n administration: `${NS.iirdsSft}Administration`,\n customization: `${NS.iirdsSft}Customization`,\n update: `${NS.iirdsSft}Update`,\n deployment: `${NS.iirdsSft}Deployment`,\n integration: `${NS.iirdsSft}Integration`,\n deinstallation: `${NS.iirdsSft}Deinstallation`,\n};\n\n/**\n * `graph.about-product-aspect` value → `iirds:has-subject` object IRI (Software domain:\n * iirds:TechnicalOverview/TechnicalData instances).\n */\nexport const SOFTWARE_SUBJECT_IRIS: Readonly<Record<string, string>> = {\n architecture: `${NS.iirdsSft}Architecture`,\n interface: `${NS.iirdsSft}Interface`,\n \"system-requirement\": `${NS.iirdsSft}SystemRequirement`,\n};\n","/**\n * Metadata coverage fields (ADR 01011). Coverage answers the ADR 01008\n * question — what can a graph-side consumer see — by counting `graph:Document`\n * nodes that carry each predicate. The list is fixed and deliberate: a\n * predicate absent from every document still shows as 0%, which a dynamic\n * census could not surface. It is shared between the config parser (which\n * expands a uniform threshold across every field) and `manni graph stats` (which\n * reports and gates), and pinned by test/unit/schema-sync.ts against the\n * config schema so it cannot silently drift.\n */\nimport { NS } from \"./vocab.js\";\nimport {\n IIRDS_HAS_SUBJECT,\n IIRDS_HAS_TOPIC_TYPE,\n IIRDS_RELATES_TO_LIFECYCLE_PHASE,\n IIRDS_RELATES_TO_PRODUCT_VARIANT,\n} from \"./iirds.js\";\n\nexport interface CoverageField {\n /** Config/report key. */\n field: string;\n /** Full predicate IRI counted against `graph:Document` subjects. */\n iri: string;\n /**\n * Gated only when the per-field `coverageThreshold` map names it. A uniform\n * threshold, from config or `--coverage-threshold`, leaves it ungated, so a\n * gate that passed before the row existed keeps passing (proposal 0087).\n */\n namedOnly?: true;\n}\n\n/**\n * Report order is this array's order. Only the IRI is stored; the compact form\n * shown in the report is derived from it with `compactIri`, so there is one\n * source of truth for the namespace.\n */\nexport const COVERAGE_FIELDS: readonly CoverageField[] = [\n { field: \"title\", iri: `${NS.dcterms}title` },\n { field: \"description\", iri: `${NS.dcterms}description` },\n { field: \"creator\", iri: `${NS.dcterms}creator` },\n { field: \"created\", iri: `${NS.dcterms}created` },\n { field: \"modified\", iri: `${NS.dcterms}modified` },\n { field: \"subject\", iri: `${NS.dcterms}subject` },\n { field: \"label\", iri: `${NS.foaf}primaryTopic` },\n // Dropped by ADR 01011 as \"near-universally 0% noise\", which was true on the\n // monolingual corpora it was measured against and false the moment language\n // means something. Restored by ADR 01037, which made it a scope dimension:\n // an unlabelled document in a translated corpus cannot be filtered, indexed\n // per locale, or counted against the right audience.\n { field: \"language\", iri: `${NS.dcterms}language` },\n // The iiRDS typing added in Phases 2–4. Coverage predates all of it, so the\n // measure of \"what a graph-side consumer can see\" was silent about the\n // vocabulary the project spent four phases adding (ADR 01029).\n { field: \"type\", iri: IIRDS_HAS_TOPIC_TYPE },\n { field: \"applies-to\", iri: IIRDS_RELATES_TO_PRODUCT_VARIANT },\n {\n field: \"about-product-lifecycle\",\n iri: IIRDS_RELATES_TO_LIFECYCLE_PHASE,\n },\n { field: \"about-product-aspect\", iri: IIRDS_HAS_SUBJECT },\n // Pages with a reader question (proposal 0087). Gated only by name.\n { field: \"sample-questions\", iri: `${NS.graph}sampleQuestion`, namedOnly: true },\n];\n\n/**\n * Section-level coverage: the fields a `graph.sections` block can attach\n * (ADR 01013), measured over `graph:Section` nodes.\n *\n * Sections are explicit-only — a section gets exactly what its own block\n * declares and nothing from its document — so these numbers are low by\n * construction on most corpora. That is the point: the granularity golden rule\n * says content granularity must match node granularity, and this is the number\n * that says whether it does.\n *\n * `label` is absent deliberately: ADR 01013 rejected `prefLabel` at section\n * level as meaningless, so it cannot be missing.\n */\n/** Section-attachable field NAMES; the IRIs come from COVERAGE_FIELDS, so a\n * namespace revision cannot move one table and not the other. */\nconst SECTION_FIELD_NAMES: readonly string[] = [\n \"type\",\n \"applies-to\",\n \"about-product-lifecycle\",\n \"about-product-aspect\",\n \"subject\",\n];\n\nexport const SECTION_COVERAGE_FIELDS: readonly CoverageField[] =\n SECTION_FIELD_NAMES.map((name) => {\n const field = COVERAGE_FIELDS.find((f) => f.field === name);\n /* c8 ignore next 3 -- unreachable while the two lists agree, which the\n drift guard in test/unit/schema-sync.test.ts keeps true. */\n if (field === undefined) {\n throw new Error(\n `SECTION_FIELD_NAMES names ${name}, which COVERAGE_FIELDS does not define`,\n );\n }\n return field;\n });\n\n/** The measured field names, in report order. */\nexport const COVERAGE_FIELD_NAMES: readonly string[] = COVERAGE_FIELDS.map(\n (f) => f.field,\n);\n\n/** The fields a uniform coverage threshold gates: all but the `namedOnly` ones. */\nexport const UNIFORM_COVERAGE_FIELD_NAMES: readonly string[] = COVERAGE_FIELDS.flatMap(\n (f) => (f.namedOnly ? [] : [f.field]),\n);\n\n/**\n * The two negative predicates (ADR 01014) are deliberately not measured.\n *\n * Coverage answers \"what can a consumer see that the author lifted\". A document\n * with no `not-applicable-to` is not under-annotated — under open-world\n * semantics its absence means *unknown*, which is the normal and correct state\n * for almost every document. Counting it as a gap would put every healthy\n * corpus permanently near zero on two rows and teach readers to ignore the\n * table.\n */\nexport const UNMEASURED_BY_DESIGN: readonly string[] = [\n \"not-applicable-to\",\n \"not-about-product-aspect\",\n];\n","/**\n * The embedder seam (ADR 01020). Platform-neutral and dependency-free, so the\n * runtime and the CLI can both speak it without either pulling in a model.\n *\n * Everything that computes embeddings — the local transformers.js embedder, the\n * deterministic mock, or a host's own — implements `Embedder`.\n */\n\nexport interface Embedder {\n /** Stable identity of the model; recorded in the sidecar header. */\n readonly model: string;\n /** Weight quantization the vectors were produced under. */\n readonly dtype: string;\n /** Output dimensions. Never assumed by callers — always read from here. */\n readonly dims: number;\n /**\n * Embed one text. Single-text rather than batched **on purpose**: float\n * addition is not associative, so a batched vector depends on what it was\n * batched with, and adding one document would perturb its neighbours' vectors\n * (ADR 01020). Determinism is worth more here than throughput.\n */\n embed(text: string): Promise<Float32Array>;\n}\n\n/**\n * A model's quirks, applied on both the build and query sides so a user cannot\n * get them wrong. Some models require a prefix on queries and/or passages and\n * degrade *silently* without it.\n */\nexport interface ModelProfile {\n /** Hugging Face repo id. */\n id: string;\n /** Prepended when embedding a search query. */\n queryPrefix?: string;\n /** Prepended when embedding indexed content. */\n passagePrefix?: string;\n /** Human note surfaced in docs and `--help`. */\n note?: string;\n}\n\n/** What a text is being embedded *for* — decides which prefix applies. */\nexport type EmbedRole = \"query\" | \"passage\";\n\n/**\n * Models dockg has been tested against. This is the *tested* set, not the\n * permitted set: `embed.model` accepts any id, and an unknown one is used\n * as-is with no prefixes.\n */\n/**\n * The default, named rather than found at index 0: `DEFAULT_MODEL` below then\n * reads it directly instead of asserting that the list has a first element.\n */\nconst DEFAULT_PROFILE: ModelProfile = {\n id: \"onnx-community/granite-embedding-small-english-r2-ONNX\",\n note: \"Default. 384-d, 8192-token context so sections are never truncated; no prefixes.\",\n};\n\nexport const MODEL_PROFILES: readonly ModelProfile[] = [\n DEFAULT_PROFILE,\n {\n id: \"Xenova/gte-small\",\n note: \"Lighter (~34 MB). 384-d, 512-token context; no prefixes.\",\n },\n {\n id: \"Xenova/bge-small-en-v1.5\",\n queryPrefix: \"Represent this sentence for searching relevant passages: \",\n note: \"384-d. Needs a query prefix — applied automatically here, since omitting it degrades retrieval silently.\",\n },\n {\n id: \"Xenova/all-MiniLM-L6-v2\",\n note: \"Smallest (~23 MB) but truncates at 256 wordpieces (~190 words), so long sections lose their tail.\",\n },\n];\n\nexport const DEFAULT_MODEL = DEFAULT_PROFILE.id;\n\n/** The profile for a model id, or a bare profile when it is not a tested one. */\nexport function profileFor(id: string): ModelProfile {\n return MODEL_PROFILES.find((p) => p.id === id) ?? { id };\n}\n\n/** Apply the model's prefix convention for the role, if it has one. */\nexport function withPrefix(\n profile: ModelProfile,\n role: EmbedRole,\n text: string,\n): string {\n const prefix = role === \"query\" ? profile.queryPrefix : profile.passagePrefix;\n return prefix ? `${prefix}${text}` : text;\n}\n","/**\n * Document analysis: one source file → a `DocModel`. Metadata comes from the\n * metadata tool's extractor (the same one `manni meta validate` reads a page\n * with). Markdown and MDX body structure (headings, links, images, code\n * fences) comes from a remark/mdast walk in document order; every other format\n * comes from lint's section tree (proposal 0077 §2).\n */\nimport { createHash } from \"node:crypto\";\nimport { extname } from \"node:path\";\nimport { unified } from \"unified\";\nimport remarkParse from \"remark-parse\";\nimport remarkGfm from \"remark-gfm\";\nimport remarkFrontmatter from \"remark-frontmatter\";\nimport remarkMdx from \"remark-mdx\";\nimport { toString as mdastToString } from \"mdast-util-to-string\";\nimport GithubSlugger from \"github-slugger\";\nimport {\n extractFrontmatter,\n extractorForExtension,\n type MetadataExtractor,\n} from \"../../meta/index.js\";\nimport { readStatements } from \"../../meta/internal.js\";\nimport { parserByName, parserForExtension } from \"../../lint/parsers/index.js\";\nimport type {\n ContentNode,\n DocumentTree,\n SectionNode,\n} from \"../../lint/types.js\";\nimport type { Root, RootContent, Definition } from \"mdast\";\nimport { errorMessage } from \"../../shared/errors.js\";\nimport { GraphError } from \"../types.js\";\nimport type { DocImage, DocLink, DocModel, DocStatement, Section } from \"../types.js\";\nimport {\n DEFAULT_INDEX_FILES,\n DEFAULT_LINK_EXTENSIONS,\n type RouteMapping,\n} from \"./config.js\";\nimport { normalizeDocPath } from \"./iri.js\";\n\n/** The formats graph parses, as `--as` names them: lint's parser names. */\nexport const DOC_FORMATS = [\n \"asciidoc\",\n \"html\",\n \"markdown\",\n \"mdx\",\n \"rst\",\n \"xml\",\n] as const;\nexport type DocFormat = (typeof DOC_FORMATS)[number];\n/** The formats read through lint's tree rather than graph's mdast walk. */\nexport type TreeFormat = Exclude<DocFormat, \"markdown\" | \"mdx\">;\n\nexport function isTreeFormat(format: DocFormat): format is TreeFormat {\n return format !== \"markdown\" && format !== \"mdx\";\n}\n\nexport function isDocFormat(name: string): name is DocFormat {\n return (DOC_FORMATS as readonly string[]).includes(name);\n}\n\n/**\n * The format a page parses as: `format` (`--as`) when given, else the lint\n * parser claiming its extension. An extension nobody claims reaches here only\n * through `--ext`, and reads as markdown, as every page did before 0077.\n */\nexport function formatOf(path: string, format?: DocFormat): DocFormat {\n if (format !== undefined) return format;\n const name = parserForExtension(extname(path))?.name;\n return name !== undefined && isDocFormat(name) ? name : \"markdown\";\n}\n\nexport interface AnalyzeOptions {\n /** Site-route mappings for resolving root-absolute links. */\n routes?: RouteMapping[];\n /** `--as`: parse as this format whatever the path says. Absent, see `formatOf`. */\n format?: DocFormat;\n /**\n * How the body is parsed. Absent, `parseBody`. `graph build` passes a cache's\n * `parse` here, which returns what `parseBody` would (`analyze-cache.ts`).\n */\n parse?: (content: string, path: string, format: DocFormat) => Promise<DocBody>;\n}\n\n/**\n * What a page's body yields before anything else in the corpus is consulted:\n * headings, and link and image targets as written, in document order.\n *\n * A pure function of the bytes and the format, so it can be cached across\n * runs. Resolving a target needs the rest of the corpus and the routes, so\n * that happens after, in `analyzeDoc`.\n */\nexport interface DocBody {\n firstH1?: string;\n sections: Section[];\n /** Raw link targets: links, resolved link references, and JSX `href`s. */\n linkTargets: string[];\n /** Raw image targets: images, resolved image references, and JSX `src`s. */\n imageTargets: string[];\n /** Code fence languages, sorted and distinct. */\n codeLanguages: string[];\n}\n\nconst processor = unified()\n .use(remarkParse)\n .use(remarkGfm)\n .use(remarkFrontmatter, [\"yaml\", \"toml\"]);\n\n/**\n * MDX gets its own processor, selected by extension (ADR 01022). It cannot be\n * the default: MDX reads `{` as an expression delimiter, so ordinary Markdown\n * prose containing braces would become a syntax error.\n */\nconst mdxProcessor = unified()\n .use(remarkParse)\n .use(remarkGfm)\n .use(remarkFrontmatter, [\"yaml\", \"toml\"])\n .use(remarkMdx);\n\n/** MDX JSX attribute, narrowed to the literal-string case we can act on. */\ninterface JsxAttribute {\n type: string;\n name?: string;\n value?: unknown;\n}\n\n/**\n * Elements whose `src` is an image.\n *\n * `href` is HTML's hyperlink attribute wherever it appears, so reading it from\n * any element only ever yields an extra edge. `src` is not analogous: it is the\n * generic external-resource attribute, shared by `iframe`, `video`, `script`,\n * `audio`, `source`, and `embed`. Emitting `schema:image` for a video embed or\n * an analytics script would be a wrong *type* assertion rather than a merely\n * extra one, so `src` is read only where it means an image (ADR 01022).\n */\nconst IMAGE_ELEMENTS = new Set([\"img\", \"image\"]);\n\n/**\n * The value of a JSX attribute, when it is a plain string literal.\n *\n * An expression attribute (`href={route}`) yields undefined rather than a\n * guess: its value is not knowable without evaluating the module, and a wrong\n * edge asserted confidently is worse than an absent one.\n */\nfunction jsxAttributeValue(\n node: unknown,\n attributeName: string,\n): string | undefined {\n const attributes = (node as { attributes?: JsxAttribute[] }).attributes;\n if (!Array.isArray(attributes)) return undefined;\n for (const attribute of attributes) {\n if (attribute.type !== \"mdxJsxAttribute\") continue;\n if (attribute.name !== attributeName) continue;\n return typeof attribute.value === \"string\" ? attribute.value : undefined;\n }\n return undefined;\n}\n\n/** True when the target has a URI scheme (http:, https:, mailto:, ...). */\nexport function hasScheme(target: string): boolean {\n return /^[a-z][a-z0-9+.-]*:/i.test(target);\n}\n\n/**\n * Resolve a relative link target against the linking doc's directory using\n * pure string math (posix, OS-independent). Returns null when the target\n * escapes the corpus root. A page labelled above the root (`../docs/a.md`)\n * already climbs, so its leading `..` segments are kept, never popped as if\n * they were directories, and its links may climb further.\n */\nexport function resolveRelative(\n docPath: string,\n target: string,\n): string | null {\n const baseSegments = normalizeDocPath(docPath).split(\"/\").slice(0, -1);\n const segments = [...baseSegments];\n for (const part of target.split(\"/\")) {\n if (part === \"\" || part === \".\") continue;\n if (part === \"..\") {\n if (segments.length === 0) return null;\n if (segments[segments.length - 1] === \"..\") segments.push(\"..\");\n else segments.pop();\n } else {\n segments.push(part);\n }\n }\n return segments.join(\"/\");\n}\n\nconst HAS_EXTENSION = /\\.[a-z0-9]+$/i;\n\n/**\n * Whether a link target addresses a *document* at all (ADR 01033).\n *\n * An extension list declares what documents look like in a corpus. A target\n * carrying some other explicit extension — `/manni/graph/ns.ttl`, `./dist.zip`, a\n * linked PDF — is a static asset the site serves, not a document dockg failed\n * to find, and reporting it as a broken link produces a finding the author\n * cannot act on: there is no `.md` they could add to fix it.\n *\n * Extensionless and directory targets stay in scope, so a genuine typo in a\n * pretty URL is still caught.\n */\nfunction addressesDocument(target: string, extensions: string[]): boolean {\n if (target === \"\" || !HAS_EXTENSION.test(target)) return true;\n // No configured extensions means the mapping has declared nothing about what\n // its documents look like — so there is no list to judge the target against,\n // and the narrowing does not apply. Gating on an empty list would answer \"no\"\n // to every extension-bearing target and skip genuinely broken `.md` links,\n // turning a narrowing into a way to switch the check off. `extensions: []` is\n // schema-valid (no minItems), so this is reachable config, not a theoretical.\n if (extensions.length === 0) return true;\n const ext = target.slice(target.lastIndexOf(\".\")).toLowerCase();\n return extensions.some((e) => e.toLowerCase() === ext);\n}\n\n/** Slug normalization for route matching: lowercase, dashes/underscores stripped. */\nfunction slugNorm(path: string): string {\n return path.toLowerCase().replace(/[-_]/g, \"\");\n}\n\n/**\n * Tiered lookup over the corpus: exact path, then case-insensitive, then\n * slug-normalized (published slugs are often kebab-cased versions of\n * camelCase filenames, e.g. Fern's /stop-record for stopRecord.mdx).\n * Ambiguous fallback matches (two files normalizing identically) stay\n * unresolved rather than guessing.\n */\nexport class PathIndex {\n private readonly lower = new Map<string, string | null>();\n private readonly slugged = new Map<string, string | null>();\n\n constructor(private readonly exact: ReadonlySet<string>) {\n for (const path of exact) {\n const lower = path.toLowerCase();\n this.lower.set(lower, this.lower.has(lower) ? null : path);\n const slug = slugNorm(path);\n this.slugged.set(slug, this.slugged.has(slug) ? null : path);\n }\n }\n\n resolve(candidate: string): string | undefined {\n if (this.exact.has(candidate)) return candidate;\n return (\n this.lower.get(candidate.toLowerCase()) ??\n this.slugged.get(slugNorm(candidate)) ??\n undefined\n );\n }\n}\n\n/** decodeURIComponent that falls back to the raw string on malformed input. */\nfunction safeDecode(value: string): string {\n try {\n return decodeURIComponent(value);\n } catch {\n return value;\n }\n}\n\n/**\n * Candidate repo paths for an extensionless (or extension-bearing) link\n * target. Shared by route and relative resolution so both link forms resolve\n * identically: an explicit extension is taken verbatim; a trailing slash\n * prefers the directory's index files but falls back to extension candidates\n * (pretty URLs — Hugo/Docusaurus serve foo.md at /foo/); otherwise extensions\n * are tried before index files.\n */\nfunction targetCandidates(\n target: string,\n isDirectory: boolean,\n extensions: string[],\n indexFiles: string[],\n): string[] {\n if (target !== \"\" && HAS_EXTENSION.test(target)) return [target];\n const extensionCandidates =\n target === \"\" ? [] : extensions.map((ext) => `${target}${ext}`);\n const dir = target === \"\" ? \"\" : `${target}/`;\n const indexCandidates: string[] = [];\n for (const indexFile of indexFiles) {\n for (const ext of extensions)\n indexCandidates.push(`${dir}${indexFile}${ext}`);\n }\n return isDirectory\n ? [...indexCandidates, ...extensionCandidates]\n : [...extensionCandidates, ...indexCandidates];\n}\n\n/**\n * The language labelling a source path, from the nearest enclosing route\n * mapping that declares one (ADR 01037).\n *\n * \"Nearest\" is the longest matching `root`, so a `docs/de` mapping beats a\n * `docs` one for a file under both. A mapping that declares no language is\n * transparent rather than blocking: `{root: docs, language: en}` plus\n * `{root: docs/api}` still labels `docs/api/x.md` as English, the way a nested\n * directory inherits the setting of its parent.\n */\nexport function routeLanguageFor(\n path: string,\n routes: readonly RouteMapping[],\n): string | undefined {\n let best: { root: string; language: string } | undefined;\n for (const mapping of routes) {\n if (mapping.language === undefined) continue;\n const root = mapping.root;\n const covers = root === \"\" || path === root || path.startsWith(`${root}/`);\n if (!covers) continue;\n if (best === undefined || root.length > best.root.length) {\n best = { root, language: mapping.language };\n }\n }\n return best?.language;\n}\n\n/**\n * Resolve a root-absolute route (`/docs/actions/find`) to a source file via\n * the configured mappings. Returns the repo path, \"broken\" when a mapping's\n * basePath matched but no candidate file exists, or null when no mapping\n * covers the route. `manni strategy` resolves a journey step's `doc` with it,\n * so a step and a link name a page the same way.\n */\nexport function resolveRoute(\n pathPart: string,\n routes: RouteMapping[],\n index: PathIndex,\n): string | null {\n const isDirectory = /\\/+$/.test(pathPart);\n const clean = safeDecode(pathPart).replace(/\\/+$/, \"\");\n let anyMatched = false;\n for (const mapping of routes) {\n if (\n clean !== mapping.basePath &&\n !clean.startsWith(`${mapping.basePath}/`)\n ) {\n continue;\n }\n // Matched the basePath, but this mapping's documents do not carry that\n // extension — so the mapping says nothing about this target. Leave\n // `anyMatched` alone: another mapping may still claim it, and if none\n // does the caller skips the link rather than calling it broken.\n const rest = clean.slice(mapping.basePath.length).replace(/^\\/+/, \"\");\n if (!addressesDocument(rest, mapping.extensions)) continue;\n anyMatched = true;\n const prefix = mapping.root ? `${mapping.root}/` : \"\";\n // Bare basePath targets the root directory itself (index files only).\n const stem = rest === \"\" ? mapping.root : `${prefix}${rest}`;\n const candidates = targetCandidates(\n stem,\n isDirectory || rest === \"\",\n mapping.extensions,\n mapping.indexFiles,\n );\n for (const candidate of candidates) {\n const resolved = index.resolve(candidate);\n if (resolved) return resolved;\n }\n }\n return anyMatched ? \"broken\" : null;\n}\n\n/** One PathIndex per corpus set — analyzeDoc is called once per doc over the same set. */\nconst indexCache = new WeakMap<ReadonlySet<string>, PathIndex>();\n\nfunction pathIndexFor(allPaths: ReadonlySet<string>): PathIndex {\n let index = indexCache.get(allPaths);\n if (!index) {\n index = new PathIndex(allPaths);\n indexCache.set(allPaths, index);\n }\n return index;\n}\n\nfunction classifyLink(\n docPath: string,\n rawTarget: string,\n allPaths: ReadonlySet<string>,\n routes: RouteMapping[],\n): DocLink | null {\n const raw = rawTarget;\n if (hasScheme(raw)) {\n try {\n return { raw, kind: \"external\", url: new URL(raw).href };\n } catch {\n // Scheme-bearing but unparseable — example junk, not a link. Skip.\n return null;\n }\n }\n const hashAt = raw.indexOf(\"#\");\n const pathPart = hashAt === -1 ? raw : raw.slice(0, hashAt);\n const anchor = hashAt === -1 ? undefined : raw.slice(hashAt + 1);\n if (pathPart === \"\") return null; // same-document anchor\n // Site-root-absolute URLs (/docs/x/) are published-site routes. With route\n // mappings configured they resolve to source files (or count as broken when\n // a mapped basePath has no matching file); unmapped routes are skipped.\n if (pathPart.startsWith(\"/\")) {\n const resolved = resolveRoute(pathPart, routes, pathIndexFor(allPaths));\n if (resolved === null) return null;\n if (resolved === \"broken\") return { raw, kind: \"broken\" };\n const link: DocLink = { raw, kind: \"internal\", resolvedPath: resolved };\n if (anchor) link.anchor = anchor;\n return link;\n }\n const resolved = resolveRelative(docPath, safeDecode(pathPart));\n if (resolved !== null) {\n const index = pathIndexFor(allPaths);\n let candidates: string[];\n if (allPaths.has(resolved)) {\n candidates = [resolved];\n } else if (HAS_EXTENSION.test(resolved)) {\n // Exact-or-broken — unless the extension is not a document extension at\n // all, in which case it is an asset and no document was ever addressed\n // (ADR 01033). Checked after `allPaths`, so an asset that IS in the\n // corpus still links.\n if (!addressesDocument(resolved, DEFAULT_LINK_EXTENSIONS)) return null;\n candidates = [];\n } else {\n candidates = targetCandidates(\n resolved,\n pathPart.endsWith(\"/\"),\n DEFAULT_LINK_EXTENSIONS,\n DEFAULT_INDEX_FILES,\n );\n }\n for (const candidate of candidates) {\n const hit = index.resolve(candidate);\n if (hit) {\n const link: DocLink = { raw, kind: \"internal\", resolvedPath: hit };\n if (anchor) link.anchor = anchor;\n return link;\n }\n }\n }\n return { raw, kind: \"broken\" };\n}\n\nfunction classifyImage(docPath: string, rawTarget: string): DocImage {\n if (hasScheme(rawTarget)) {\n return { raw: rawTarget, target: rawTarget, external: true };\n }\n const resolved = resolveRelative(docPath, rawTarget);\n return { raw: rawTarget, target: resolved ?? rawTarget, external: false };\n}\n\n/**\n * meta's extractor for a non-Markdown format. Lint's parser names are meta's\n * extractor names, so the parser's own extension finds the extractor under\n * `--as` too, where the path's would not.\n */\nexport function extractorFor(format: TreeFormat): MetadataExtractor | undefined {\n return extractorForExtension(parserByName(format)?.extensions[0] ?? \"\");\n}\n\n/**\n * A page's own metadata, as `manni meta validate` reads it. `build` reads a\n * page with it and `fill` reads what a page already holds with it, so the two\n * cannot disagree about a format.\n */\nexport function metadataOf(\n content: string,\n path: string,\n format: DocFormat,\n): { data: Record<string, unknown>; present: boolean } {\n try {\n const meta =\n format === \"markdown\" || format === \"mdx\"\n ? extractFrontmatter(content, \"markdown\")\n : extractorFor(format)?.extract(content, path);\n return meta === undefined\n ? { data: {}, present: false }\n : { data: meta.data, present: meta.present };\n } catch (error) {\n // The extractor knows the bytes, not the file. Left as it is, build and\n // fill would report a YAML error with no hint of which page carries it.\n throw new GraphError(`${path}: ${errorMessage(error)}`);\n }\n}\n\n/** Analyze one document. `allPaths` is the discovered corpus for link resolution. */\nexport async function analyzeDoc(\n content: string,\n relPath: string,\n allPaths: ReadonlySet<string>,\n options: AnalyzeOptions = {},\n): Promise<DocModel> {\n const routes = options.routes ?? [];\n const path = normalizeDocPath(relPath);\n const format = formatOf(path, options.format);\n const parse = options.parse ?? parseBody;\n // A tree format is parsed first, so a malformed page is reported as a parse\n // failure rather than as whatever the metadata reader tripped on. Markdown\n // keeps its order: its parse cannot fail where its frontmatter can.\n let body = isTreeFormat(format) ? await parse(content, path, format) : undefined;\n const meta = metadataOf(content, path, format);\n body ??= await parse(content, path, format);\n\n const links: DocLink[] = [];\n for (const target of body.linkTargets) {\n const link = classifyLink(path, target, allPaths, routes);\n if (link) links.push(link);\n }\n const routeLanguage = routeLanguageFor(path, routes);\n const statements = statementsOf(content, format);\n\n return {\n path,\n frontmatter: meta.data,\n frontmatterPresent: meta.present,\n format,\n firstH1: body.firstH1,\n sections: body.sections,\n ...(statements.length === 0 ? {} : { statements }),\n links,\n images: body.imageTargets.map((target) => classifyImage(path, target)),\n codeLanguages: body.codeLanguages,\n // Omitted rather than set to undefined, so a doc under no localized route\n // carries no key at all — `routeLanguage` in JSON output means something.\n ...(routeLanguage === undefined ? {} : { routeLanguage }),\n // Over the content as read — line endings included, so the digest is\n // byte-faithful and equals `sha256sum <file>` for any valid-UTF-8 file\n // (ADR 01036). The CRLF corpus fixture depends on this not normalizing.\n contentHash: createHash(\"sha256\").update(content, \"utf8\").digest(\"hex\"),\n };\n}\n\n/**\n * A page's inline `meta` statements (proposal 0099), read by meta's own\n * scanner so graph and `manni meta validate` anchor and pin-check them alike.\n * meta reports an orphan or a payload that is not one JSON object, so graph\n * keeps only the statements that anchor something and carry an object.\n */\nfunction statementsOf(content: string, format: DocFormat): DocStatement[] {\n if (!content.includes(\"meta\")) return [];\n return readStatements(content, format).statements.flatMap((s) =>\n s.anchor === undefined || s.data === undefined\n ? []\n : [\n {\n anchor: s.anchor,\n scope: s.scope,\n ...(s.pin === undefined ? {} : { pin: s.pin }),\n status: s.status,\n data: s.data,\n },\n ],\n );\n}\n\n/** Parse a page's body into its `DocBody`. `path` only names the page in an error. */\nexport async function parseBody(\n content: string,\n path: string,\n format: DocFormat,\n): Promise<DocBody> {\n if (isTreeFormat(format)) return parseTreeBody(content, path, format);\n const isMdx = format === \"mdx\";\n let tree: Root;\n try {\n tree = (isMdx ? mdxProcessor : processor).parse(content);\n } catch (error) {\n // Parsing MDX makes parse *failures* possible where Markdown had none:\n // remark-parse accepts anything, the MDX extension does not. Left raw, the\n // micromark throw escapes cli.ts's `fail()` — which only converts\n // GraphError — so the CLI dumps a stack trace, exits 1 (the code the\n // contract reserves for findings), and never names the file. Convert it.\n if (!isMdx) throw error;\n const reason = errorMessage(error);\n throw new GraphError(`Could not parse MDX in ${path}: ${reason}`);\n }\n\n const sections: Section[] = [];\n const linkTargets: string[] = [];\n const imageTargets: string[] = [];\n const codeLanguages = new Set<string>();\n const definitions = new Map<string, Definition>();\n let firstH1: string | undefined;\n\n // First pass: collect reference-link definitions.\n visit(tree, (node) => {\n if (node.type === \"definition\") {\n const def = node;\n definitions.set(def.identifier, def);\n }\n });\n\n const slugger = new GithubSlugger();\n /** Stack of open sections: [level, slug]. */\n const stack: Array<{ level: number; slug: string }> = [];\n /** Child counters keyed by parent slug (\"\" = document). */\n const childCount = new Map<string, number>();\n\n visit(tree, (node) => {\n switch (node.type) {\n case \"heading\": {\n const level = (node as { depth: number }).depth;\n const title = mdastToString(node);\n const slug = slugger.slug(title);\n if (level === 1 && firstH1 === undefined) firstH1 = title;\n // Reading the top frame *is* the emptiness test, so what the loop pops\n // is what the loop looked at.\n for (\n let top = stack.at(-1);\n top !== undefined && top.level >= level;\n top = stack.at(-1)\n ) {\n stack.pop();\n }\n const parentSlug = stack.at(-1)?.slug ?? null;\n const parentKey = parentSlug ?? \"\";\n const order = (childCount.get(parentKey) ?? 0) + 1;\n childCount.set(parentKey, order);\n const line = node.position?.start.line ?? null;\n sections.push({ slug, title, level, order, parentSlug, line });\n stack.push({ level, slug });\n break;\n }\n case \"link\": {\n linkTargets.push((node as { url: string }).url);\n break;\n }\n case \"linkReference\": {\n const def = definitions.get(\n (node as { identifier: string }).identifier,\n );\n if (def) linkTargets.push(def.url);\n break;\n }\n case \"image\": {\n imageTargets.push((node as { url: string }).url);\n break;\n }\n case \"imageReference\": {\n const def = definitions.get(\n (node as { identifier: string }).identifier,\n );\n if (def) imageTargets.push(def.url);\n break;\n }\n case \"code\": {\n const lang = (node as { lang?: string | null }).lang;\n if (lang) codeLanguages.add(lang);\n break;\n }\n // A JSX element's `href` is a link and its `src` is an image, on any\n // element (ADR 01022). Those are HTML's own names for the relationships,\n // so this stays structural — dockg never learns what `<LinkCard>` means.\n case \"mdxJsxFlowElement\":\n case \"mdxJsxTextElement\": {\n const href = jsxAttributeValue(node, \"href\");\n if (href !== undefined) linkTargets.push(href);\n const name = (node as { name?: string | null }).name ?? \"\";\n if (IMAGE_ELEMENTS.has(name.toLowerCase())) {\n const src = jsxAttributeValue(node, \"src\");\n if (src !== undefined) imageTargets.push(src);\n }\n break;\n }\n }\n });\n\n return {\n firstH1,\n sections,\n linkTargets,\n imageTargets,\n codeLanguages: [...codeLanguages].sort(),\n };\n}\n\n/**\n * Lint's tree for `content`, parsed as `format`. A parser's throw names the\n * format and the file, and exits 2, as an MDX parse failure does.\n */\nexport async function parseTree(\n content: string,\n path: string,\n format: TreeFormat,\n): Promise<DocumentTree> {\n const parser = parserByName(format);\n if (parser === undefined) {\n throw new GraphError(`No parser reads ${format}.`);\n }\n try {\n return await parser.parse(content, path);\n } catch (error) {\n throw new GraphError(\n `Could not parse ${format} in ${path}: ${errorMessage(error)}`,\n );\n }\n}\n\n/**\n * Characters an IRI fragment accepts unchanged: the XML NCName set plus `:`,\n * which covers HTML ids, DITA `@id`, `xml:id`, Asciidoctor's `_install` and\n * Sphinx labels. Anything else is slugged, because a section IRI is never\n * percent-encoded.\n */\nconst IRI_SAFE_ID = /^[A-Za-z_][A-Za-z0-9_.:-]*$/;\n\n/** The sections minted from a lint tree, and the content each one owns. */\nexport interface TreeSections {\n sections: Section[];\n /** The content each section owns, parallel to `sections`. */\n owned: ContentNode[][];\n /** The lint node each section was minted from, parallel to `sections`. */\n nodes: SectionNode[];\n /** Content no minted section owns: the lead's, and a skipped heading's. */\n unowned: ContentNode[];\n firstH1: string | undefined;\n}\n\n/**\n * Mint graph sections from lint's tree, in document order. `analyzeDoc` and\n * the search index both call it, so their anchors agree.\n *\n * The anchor is the source's own id verbatim when it is IRI-safe, so a link\n * written to `#GUID-A1B2-C3D4` reaches the section; else the slugged title.\n * Ids and slugs share one namespace per document, so a duplicate of either\n * kind gains a `-N` suffix rather than merging two sections into one node.\n *\n * The level-0 lead, a heading lint made from a metadata title, and an\n * untitled heading (a DITA map's `topicref` without a navtitle) are not\n * sections. Each is transparent: its content belongs to the document, and its\n * subsections nest under its own parent, as Markdown's do under no heading.\n */\nexport function mintTreeSections(roots: SectionNode[]): TreeSections {\n const out: TreeSections = {\n sections: [],\n owned: [],\n nodes: [],\n unowned: [],\n firstH1: undefined,\n };\n const slugger = new GithubSlugger();\n const taken = new Set<string>();\n const childCount = new Map<string, number>();\n\n const anchorFor = (node: SectionNode): string => {\n const id = node.id;\n // `prov.` fragments are the provenance nodes' (derive.ts), minted with a\n // dot precisely because a slug never holds one. A verbatim id may.\n if (id !== undefined && IRI_SAFE_ID.test(id) && !id.startsWith(\"prov.\")) {\n let anchor = id;\n for (let n = 1; taken.has(anchor); n++) anchor = `${id}-${String(n)}`;\n taken.add(anchor);\n return anchor;\n }\n // The slugger dedupes against its own output only, so a slug an earlier\n // verbatim id took is asked for again until it is free. Each call advances\n // the slugger's suffix (-1, -2, ...), which is what ends the loop.\n let anchor = slugger.slug(node.title);\n while (taken.has(anchor)) anchor = slugger.slug(node.title);\n taken.add(anchor);\n return anchor;\n };\n\n const walk = (nodes: SectionNode[], parentSlug: string | null): void => {\n for (const node of nodes) {\n if (node.level === 0 || node.synthetic || node.title.trim() === \"\") {\n out.unowned.push(...node.children);\n walk(node.sections, parentSlug);\n continue;\n }\n const slug = anchorFor(node);\n if (node.level === 1 && out.firstH1 === undefined) {\n out.firstH1 = node.title;\n }\n const parentKey = parentSlug ?? \"\";\n const order = (childCount.get(parentKey) ?? 0) + 1;\n childCount.set(parentKey, order);\n out.sections.push({\n slug,\n title: node.title,\n level: node.level,\n order,\n parentSlug,\n line: node.titlePosition?.start.line ?? null,\n });\n out.owned.push(node.children);\n out.nodes.push(node);\n walk(node.sections, slug);\n }\n };\n walk(roots, null);\n return out;\n}\n\n/** Every content node, nested ones included, in document order. */\nfunction eachContent(\n nodes: readonly ContentNode[],\n fn: (node: ContentNode) => void,\n): void {\n for (const node of nodes) {\n fn(node);\n switch (node.kind) {\n case \"list\":\n for (const item of node.items) eachContent(item.children, fn);\n break;\n case \"table\":\n for (const row of node.children) {\n for (const cell of row.children) eachContent(cell.children, fn);\n }\n break;\n case \"definitionList\":\n for (const item of node.children) eachContent(item.definition, fn);\n break;\n case \"admonition\":\n case \"blockquote\":\n case \"element\":\n eachContent(node.children, fn);\n break;\n default:\n break;\n }\n }\n}\n\n/** Every content node a tree's sections own directly, whichever section. */\nfunction treeContent(sections: readonly SectionNode[]): ContentNode[] {\n return sections.flatMap((s) => [...s.children, ...treeContent(s.sections)]);\n}\n\n/** A non-Markdown page's body, from lint's tree. */\nasync function parseTreeBody(\n content: string,\n path: string,\n format: TreeFormat,\n): Promise<DocBody> {\n const tree = await parseTree(content, path, format);\n const minted = mintTreeSections(tree.sections);\n const imageTargets: string[] = [];\n const codeLanguages = new Set<string>();\n eachContent(treeContent(tree.sections), (node) => {\n if (node.kind === \"image\") imageTargets.push(node.url);\n else if (node.kind === \"codeBlock\" && node.language) {\n codeLanguages.add(node.language);\n }\n });\n return {\n ...(minted.firstH1 === undefined ? {} : { firstH1: minted.firstH1 }),\n sections: minted.sections,\n linkTargets: tree.links.map((l) => l.target),\n imageTargets,\n codeLanguages: [...codeLanguages].sort(),\n };\n}\n\n/** Minimal depth-first mdast walk in document order. */\nfunction visit(\n node: Root | RootContent,\n fn: (node: RootContent) => void,\n): void {\n const children = (node as { children?: RootContent[] }).children;\n if (!children) return;\n for (const child of children) {\n fn(child);\n visit(child, fn);\n }\n}\n","/**\n * Input discovery: expand the run's document set to a stable, sorted,\n * deduplicated list of cwd-relative forward-slash paths. Determinism starts\n * here — the file list order is independent of glob order and filesystem\n * enumeration order.\n *\n * The set itself is the family's (proposal 0041, and 0051 §1 copying 0048 §1):\n * positional paths, or the collections declared once at the top level of\n * `manni.config.yaml`. `graph.inputs` and `graph.exclude` are gone, and a run that\n * names neither is an operational error rather than a silent walk of every\n * markdown file beneath the working directory (proposal 0014).\n */\nimport { statSync } from \"node:fs\";\nimport { extname, relative, resolve } from \"node:path\";\nimport fg from \"fast-glob\";\nimport {\n parserForExtension,\n supportedExtensions,\n unsupportedFormatMessage,\n} from \"../../lint/parsers/index.js\";\nimport { STDIN_REQUIRES_AS } from \"../../shared/cli-options.js\";\nimport { selectCollections } from \"../../shared/collections.js\";\nimport { warn } from \"../../shared/warn.js\";\nimport { GraphError } from \"../types.js\";\nimport { DOC_FORMATS, isDocFormat, type DocFormat } from \"./analyze.js\";\nimport {\n assertCollectionWithoutPaths,\n DEFAULT_CONFIG_FILENAME,\n type GraphConfig,\n type RouteMapping,\n} from \"./config.js\";\nimport { byCodeUnit } from \"./sort.js\";\n\nexport function discoverFiles(\n inputs: string[],\n exclude: string[],\n cwd: string,\n): string[] {\n const matches = fg.sync(inputs, {\n cwd,\n ignore: exclude,\n onlyFiles: true,\n dot: false,\n unique: true,\n });\n return [...new Set(matches.map((m) => m.replace(/\\\\/g, \"/\")))].sort(\n byCodeUnit,\n );\n}\n\n/**\n * What every tool in the family never reads, whatever it was asked for. The\n * same pair meta's file walk, cite's source index and docevals' discovery\n * ignore; it replaced graph's own `exclude` default (proposal 0041).\n */\nconst FAMILY_EXCLUDE = [\"**/node_modules/**\", \"**/.git/**\"];\n\n/**\n * What a directory walk or a glob keeps when `--ext` is not given: lint's walk\n * set, read from its registry so the two domains cannot drift (proposal 0077\n * §3). The filter matters because a positional path may be a *directory*,\n * which expands to everything beneath it. Without it, `manni graph build docs`\n * would mint a graph node for every image and data file in the tree, and a\n * node's IRI is the part of the output a consumer stores. `.xml` is not in\n * it, so a `pom.xml` is never swept in; a named one is still read.\n */\nexport const DEFAULT_EXTENSIONS = supportedExtensions();\n\n/** The positional that reads stdin. One more input, never instead of the rest. */\nexport const STDIN = \"-\";\n\n/**\n * Hold `--as` to the formats graph parses, and require it with `-`: stdin has\n * no file name to choose a parser by. Returns the format, or undefined when\n * none was forced.\n */\nexport function assertInputFormat(\n paths: readonly string[],\n as: string | undefined,\n): DocFormat | undefined {\n if (as === undefined) {\n if (paths.includes(STDIN)) throw new GraphError(STDIN_REQUIRES_AS);\n return undefined;\n }\n if (!isDocFormat(as)) {\n throw new GraphError(\n `Unknown format \"${as}\". Known formats: ${DOC_FORMATS.join(\", \")}.`,\n );\n }\n return as;\n}\n\n/** The word the empty-input message uses for what the command would do. */\nexport type DocumentVerb = \"build\" | \"fill\";\n\nexport interface DocumentSetOptions {\n /**\n * Positional paths: files, directories and globs, relative to the working\n * directory. Empty or absent means the selected collections' `paths:`.\n */\n paths?: string[];\n /**\n * `--collection <name>`, repeatable. Empty or absent means every declared\n * collection, because commander's collector hands `[]` over when the flag\n * was never typed (see `selectCollections`).\n */\n collection?: string[];\n /** `--exclude <glob>`, repeatable. Applies to paths and collections alike. */\n exclude?: string[];\n /**\n * `--ext <list>`: what a directory walk or a glob keeps. Absent means\n * `DEFAULT_EXTENSIONS`. A file named outright is never filtered by it.\n */\n ext?: string[];\n /** `--as <format>`: parse every input as this format. Required with `-`. */\n as?: string;\n}\n\n/**\n * The document-set options every command that reads documents takes beside its\n * positional paths: `-c`, `--no-config`, `--collection` and `--exclude`.\n */\nexport interface DocumentInputOptions extends DocumentSetOptions {\n /** `-c/--config`. */\n config?: string;\n /** `--no-config`: skip discovery and run on the built-in defaults. */\n noConfig?: boolean;\n}\n\n/**\n * Every file `inputs` match beneath `base`, as absolute paths, split by how\n * they were reached. A file named outright is `named`. A directory expands to\n * everything beneath it, and a glob is left for fast-glob to interpret; both\n * land in `walked`, the half `--ext` filters. A literal path with `(` or `[`\n * in its name still means itself, because only the glob is a pattern.\n */\nfunction expandInputs(\n inputs: string[],\n base: string,\n ignore: string[],\n): { named: string[]; walked: string[] } {\n const named: string[] = [];\n const patterns: string[] = [];\n for (const input of inputs) {\n if (fg.isDynamicPattern(input)) {\n patterns.push(input.replace(/\\\\/g, \"/\"));\n continue;\n }\n let isDirectory: boolean;\n try {\n isDirectory = statSync(resolve(base, input)).isDirectory();\n } catch {\n // Missing: kept as written, so it matches nothing and the caller's\n // empty-match error names it.\n patterns.push(input.replace(/\\\\/g, \"/\"));\n continue;\n }\n const literal = fg.convertPathToPattern(input);\n if (isDirectory) patterns.push(`${literal.replace(/\\/$/, \"\")}/**/*`);\n else named.push(...glob([literal], base, ignore));\n }\n return { named, walked: glob(patterns, base, ignore) };\n}\n\nfunction glob(patterns: string[], base: string, ignore: string[]): string[] {\n if (patterns.length === 0) return [];\n return fg.sync(patterns, {\n cwd: base,\n ignore,\n absolute: true,\n dot: false,\n onlyFiles: true,\n });\n}\n\n/** `--ext` values as lower-case extensions with their dot. */\nfunction normalizeExtensions(exts: readonly string[]): Set<string> {\n return new Set(\n exts.map((e) => {\n const lower = e.toLowerCase();\n return lower.startsWith(\".\") ? lower : `.${lower}`;\n }),\n );\n}\n\n/**\n * The documents a run covers. Positional `paths` are what the operator typed,\n * resolved from `cwd`. Without them the run reads the selected collections,\n * each collection's `paths:` resolved from the config file's directory and\n * narrowed by its own `exclude:`. The family-wide exclusions and `--exclude`\n * apply to both. Labels are relative to `base`, which `documentBase` picks\n * the way `manni meta validate` does, so a collection page's IRI does not\n * depend on where the run started.\n *\n * `-` is not a file, so it is left out of what this returns: the caller reads\n * stdin itself. It still counts as a positional path, so a run given only `-`\n * reads stdin alone and never falls back to the collections.\n */\nexport function resolveDocumentSet(\n config: GraphConfig,\n options: DocumentSetOptions = {},\n verb: DocumentVerb = \"build\",\n cwd = process.cwd(),\n base = documentBase(config, options, cwd),\n): string[] {\n const paths = options.paths ?? [];\n const wanted = options.collection ?? [];\n assertCollectionWithoutPaths(wanted, paths);\n const format = assertInputFormat(paths, options.as);\n if (wanted.length > 0 && config.configSource === null) {\n throw new GraphError(\"--collection needs a config file to select from.\");\n }\n const collections = selectCollections(\n config.collections,\n wanted,\n config.configSource ?? DEFAULT_CONFIG_FILENAME,\n (message) => new GraphError(message),\n );\n\n const exclude = [...FAMILY_EXCLUDE, ...(options.exclude ?? [])];\n let named: string[] = [];\n let walked: string[];\n if (paths.length > 0) {\n ({ named, walked } = expandInputs(\n paths.filter((p) => p !== STDIN),\n cwd,\n exclude,\n ));\n } else {\n // A collection's `exclude:` shapes that collection only, so each is walked\n // with its own and the results are joined.\n const patterns = collections.flatMap((c) => c.paths);\n if (patterns.length === 0) {\n throw new GraphError(\n `No files to ${verb}. Pass paths/globs, or declare a collection under \\`collections:\\` in manni.config.yaml.`,\n );\n }\n walked = collections.flatMap((c) => {\n const found = expandInputs(c.paths, config.configDir, [\n ...exclude,\n ...c.exclude,\n ]);\n return [...found.named, ...found.walked];\n });\n }\n\n const exts = normalizeExtensions(options.ext ?? DEFAULT_EXTENSIONS);\n // A named file is read when a parser claims it, or when `--as` picks one.\n // Anything else is skipped by name, with lint's sentence for it, so the\n // run's \"No input files matched\" never hides a file the user did name.\n const keepNamed = (p: string): boolean => {\n const ext = extname(p);\n if (format !== undefined || parserForExtension(ext) !== undefined) {\n return true;\n }\n const label = relative(base, p).replace(/\\\\/g, \"/\");\n warn(`skipped ${label}: ${unsupportedFormatMessage(ext || label)}`);\n return false;\n };\n const keepWalked = (p: string): boolean => exts.has(extname(p).toLowerCase());\n return [\n ...new Set(\n [...named.filter(keepNamed), ...walked.filter(keepWalked)].map((p) =>\n relative(base, p).replace(/\\\\/g, \"/\"),\n ),\n ),\n ].sort(byCodeUnit);\n}\n\n/**\n * The directory a run's document labels are relative to, decided as\n * `manni meta validate` decides it. Positional paths are what the operator\n * typed, so they are labelled from the working directory. Collection pages are\n * labelled from the config file's directory, so one collection builds one graph\n * from anywhere beneath it. A config that declares no collection has no pages\n * of its own, so the base is then `cwd`.\n */\nexport function documentBase(\n config: GraphConfig,\n options: Pick<DocumentSetOptions, \"paths\"> = {},\n cwd = process.cwd(),\n): string {\n const typed = (options.paths ?? []).length > 0;\n return typed || config.collections.length === 0 ? cwd : config.configDir;\n}\n\n/**\n * The configured route mappings, each `root` rebased from the config file's\n * directory onto `base`. A route then resolves to the label its page carries,\n * whichever directory the labels are relative to.\n */\nexport function routesFrom(config: GraphConfig, base: string): RouteMapping[] {\n return config.routes.map((m) => ({\n ...m,\n root: relative(base, resolve(config.configDir, m.root)).replace(/\\\\/g, \"/\"),\n }));\n}\n\n/** The patterns a run asked about, for the empty-match message. */\nexport function documentSetPatterns(\n config: GraphConfig,\n options: DocumentSetOptions = {},\n): string[] {\n const paths = options.paths ?? [];\n if (paths.length > 0) return paths;\n return selectCollections(\n config.collections,\n options.collection ?? [],\n config.configSource ?? DEFAULT_CONFIG_FILENAME,\n (message) => new GraphError(message),\n ).flatMap((c) => c.paths);\n}\n\n/** The refusal when a run's patterns match no file, with the next step. */\nexport function noInputMessage(patterns: readonly string[], cwd: string): string {\n return (\n `No input files matched: ${patterns.join(\", \")} (cwd: ${cwd}). ` +\n \"Fix the globs, or pass --allow-empty if matching nothing is expected.\"\n );\n}\n","/**\n * The ordering primitive behind the determinism contract. Every sort that\n * reaches output — the file list, emitted subjects/predicates/objects, query\n * results — must go through this comparator so ordering never depends on\n * locale, ICU version, or platform, the way `String.prototype.localeCompare`\n * and `Array.prototype.sort`'s default string coercion do.\n */\n\n/** Locale-independent code-unit comparison for stable sorting. */\nexport function byCodeUnit(a: string, b: string): number {\n return a < b ? -1 : a > b ? 1 : 0;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWO,IAAM,aAAN,cAAyB,UAAU;AAAA,EACxC,YACE,SACS,SACT;AACA,UAAM,OAAO;AAFJ;AAGT,SAAK,OAAO;AAAA,EACd;AAAA,EAJW;AAKb;;;ACdA,SAAS,QAAQ,kBAAkB;AAG5B,IAAM,mBAAmB;AAGzB,SAAS,eAAe,MAAkC;AAC/D,MAAI,CAAC,KAAM,QAAO;AAClB,MAAI,KAAK,SAAS,GAAG,KAAK,KAAK,SAAS,GAAG,EAAG,QAAO;AACrD,SAAO,GAAG,IAAI;AAChB;AAGO,SAAS,iBAAiB,GAAmB;AAClD,MAAI,MAAM,EAAE,QAAQ,OAAO,GAAG;AAC9B,SAAO,IAAI,WAAW,IAAI,EAAG,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vB,OAAO,gBAAgB;AAAA,IACvB,CAAC,YAAY,IAAI,WAAW,OAAO;AAAA,EACrC,EAAE,QAAQ,CAAC,MAAM,EAAE,KAAK;AAC1B;AAGO,SAAS,eAAe,UAA6B,KAAqB;AAC/E,SACE,2BAA2B,SAAS,KAAK,IAAI,CAAC,UAAU,GAAG;AAG/D;","names":["resolved","anchor","extname","resolve","resolve","extname"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
displayPath
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XSP3TUFN.js";
|
|
5
5
|
import {
|
|
6
6
|
TERM_FIELDS
|
|
7
7
|
} from "./chunk-MC7U5IH4.js";
|
|
@@ -55,4 +55,4 @@ export {
|
|
|
55
55
|
renderFindingsJson,
|
|
56
56
|
renderFormatsJson
|
|
57
57
|
};
|
|
58
|
-
//# sourceMappingURL=chunk-
|
|
58
|
+
//# sourceMappingURL=chunk-CQTESLC5.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
findConfigFileSync,
|
|
5
5
|
readConfigFileSync,
|
|
6
6
|
searchPath
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JF4BC7ZD.js";
|
|
8
8
|
import {
|
|
9
9
|
warn
|
|
10
10
|
} from "./chunk-HX44GB4Z.js";
|
|
@@ -604,4 +604,4 @@ export {
|
|
|
604
604
|
resolveAnnotateSite,
|
|
605
605
|
resolvePlan
|
|
606
606
|
};
|
|
607
|
-
//# sourceMappingURL=chunk-
|
|
607
|
+
//# sourceMappingURL=chunk-D4BGNAN5.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
canonicalSchemaRef,
|
|
7
7
|
fingerprint,
|
|
8
8
|
isErrorSeverity
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YB3KD5RI.js";
|
|
10
10
|
import {
|
|
11
11
|
escapeWorkflowCommandMessage,
|
|
12
12
|
escapeWorkflowCommandProperty,
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
} from "./chunk-RNVYGWIC.js";
|
|
18
18
|
import {
|
|
19
19
|
findGitRoot
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-JF4BC7ZD.js";
|
|
21
21
|
import {
|
|
22
22
|
package_default
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-TR5TNPWT.js";
|
|
24
24
|
|
|
25
25
|
// src/meta/reporters/rule-id.ts
|
|
26
26
|
var SYNTHETIC_SCHEMA = "(parse)";
|
|
@@ -407,4 +407,4 @@ export {
|
|
|
407
407
|
renderGithub,
|
|
408
408
|
render
|
|
409
409
|
};
|
|
410
|
-
//# sourceMappingURL=chunk-
|
|
410
|
+
//# sourceMappingURL=chunk-E3HYSNS6.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
titleOf
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZX4TOTZS.js";
|
|
5
5
|
import {
|
|
6
6
|
displayPath
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-K5LBIAOM.js";
|
|
8
8
|
|
|
9
9
|
// src/strategy/reporters/json.ts
|
|
10
10
|
function recordJson(entry) {
|
|
@@ -75,4 +75,4 @@ export {
|
|
|
75
75
|
renderGetJson,
|
|
76
76
|
renderFindingsJson
|
|
77
77
|
};
|
|
78
|
-
//# sourceMappingURL=chunk-
|
|
78
|
+
//# sourceMappingURL=chunk-EL2KNRC3.js.map
|