@hawkeyexl/manni 4.21.0 → 4.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{batch-C534YIAU.js → batch-DPYBMRVD.js} +21 -22
- package/dist/build-LEKUMGEC.js +36 -0
- package/dist/calibrate-TYONPNG4.js +42 -0
- package/dist/capture-2EPHIAZT.js +37 -0
- package/dist/check-ADCSXGBK.js +57 -0
- package/dist/check-HWEDHABD.js +30 -0
- package/dist/check-J2KQI7IW.js +33 -0
- package/dist/check-L5AUSTE6.js +57 -0
- package/dist/{check-LKPQPQWJ.js → check-SQVQE4E4.js} +23 -23
- package/dist/{chunk-D4QHRVDJ.js → chunk-2GPF4OEF.js} +3 -157
- package/dist/chunk-2GPF4OEF.js.map +1 -0
- package/dist/{chunk-IOJD2RFG.js → chunk-2MOXVM6H.js} +2 -2
- package/dist/{chunk-762MM6NA.js → chunk-2QK25SLZ.js} +4 -4
- package/dist/{chunk-HHJ2HFPP.js → chunk-2UJOQ6CB.js} +9 -9
- package/dist/{chunk-H5YWCCBO.js → chunk-3CBGLUJX.js} +3 -3
- package/dist/{chunk-E23KWEPL.js → chunk-3USSSKLA.js} +2 -2
- package/dist/{chunk-PTGXEZQD.js → chunk-3ZVRGBK6.js} +4 -4
- package/dist/{chunk-XI3BNZG4.js → chunk-5JXA75XB.js} +46 -7
- package/dist/chunk-5JXA75XB.js.map +1 -0
- package/dist/{chunk-IN5T22FP.js → chunk-6QNA7UX2.js} +2 -2
- package/dist/{chunk-CZIO37J5.js → chunk-6RENCXLC.js} +10 -5
- package/dist/chunk-6RENCXLC.js.map +1 -0
- package/dist/{chunk-WHVFHBL3.js → chunk-72UN462G.js} +11 -3
- package/dist/chunk-72UN462G.js.map +1 -0
- package/dist/{chunk-OWJLB2AF.js → chunk-76Y3JATE.js} +2 -2
- package/dist/chunk-7M3MBFG7.js +38 -0
- package/dist/chunk-7M3MBFG7.js.map +1 -0
- package/dist/{chunk-BHGFLRXM.js → chunk-7NSFGAAQ.js} +8 -7
- package/dist/chunk-7NSFGAAQ.js.map +1 -0
- package/dist/{chunk-3SFAB75L.js → chunk-AJCUKL43.js} +6 -6
- package/dist/{chunk-CREFJCWZ.js → chunk-AOLCEULZ.js} +8 -8
- package/dist/{chunk-Q76T6Y6X.js → chunk-AZKNB2T3.js} +3635 -3409
- package/dist/chunk-AZKNB2T3.js.map +1 -0
- package/dist/{chunk-2NGFDLIM.js → chunk-B4ECIBLF.js} +4 -4
- package/dist/{chunk-5UJKXOAD.js → chunk-B4POKRCS.js} +6 -6
- package/dist/chunk-BA7BQBWV.js +311 -0
- package/dist/chunk-BA7BQBWV.js.map +1 -0
- package/dist/{chunk-KBSTXL6L.js → chunk-BOCJTOKA.js} +4 -4
- package/dist/{chunk-CFMI74TP.js → chunk-BZ74YUYE.js} +2 -2
- package/dist/{chunk-NLJ3XIKT.js → chunk-C2QE4FSZ.js} +3 -3
- package/dist/{chunk-DENZLZ3Z.js → chunk-CLUUSZDY.js} +26 -17
- package/dist/chunk-CLUUSZDY.js.map +1 -0
- package/dist/{chunk-PACZEDOH.js → chunk-CWPRB7SA.js} +19 -15
- package/dist/chunk-CWPRB7SA.js.map +1 -0
- package/dist/{chunk-245W2Q7C.js → chunk-D4BGNAN5.js} +2 -2
- package/dist/{chunk-XBJKYXOR.js → chunk-DWUK6YNX.js} +11 -11
- package/dist/{chunk-MTCOBRCX.js → chunk-E75CMOR3.js} +4 -4
- package/dist/{chunk-TFVNEPMF.js → chunk-EAF4K7IK.js} +4 -4
- package/dist/{chunk-TFVNEPMF.js.map → chunk-EAF4K7IK.js.map} +1 -1
- package/dist/{chunk-KCWNJMSS.js → chunk-EBBJFXMX.js} +3 -3
- package/dist/{chunk-LWBNHK72.js → chunk-EPN67ZNX.js} +47 -29
- package/dist/chunk-EPN67ZNX.js.map +1 -0
- package/dist/{chunk-6XK3NTL5.js → chunk-FBIBR4CH.js} +35 -40
- package/dist/chunk-FBIBR4CH.js.map +1 -0
- package/dist/{chunk-5LE4NH3Z.js → chunk-FJYIPHWK.js} +6 -4
- package/dist/{chunk-5LE4NH3Z.js.map → chunk-FJYIPHWK.js.map} +1 -1
- package/dist/{chunk-A4QNKEX4.js → chunk-GCHEVTCJ.js} +2 -2
- package/dist/{chunk-GMOAW2EG.js → chunk-GIHIONJH.js} +3 -2
- package/dist/chunk-GIHIONJH.js.map +1 -0
- package/dist/{chunk-P7HAXMFN.js → chunk-I4KDAO6P.js} +5 -3
- package/dist/{chunk-P7HAXMFN.js.map → chunk-I4KDAO6P.js.map} +1 -1
- package/dist/chunk-INOVEO32.js +28 -0
- package/dist/chunk-INOVEO32.js.map +1 -0
- package/dist/{chunk-B2242FYO.js → chunk-JF4BC7ZD.js} +38 -3
- package/dist/chunk-JF4BC7ZD.js.map +1 -0
- package/dist/{chunk-RKACUTY5.js → chunk-JZWQQOUN.js} +9 -11
- package/dist/{chunk-RKACUTY5.js.map → chunk-JZWQQOUN.js.map} +1 -1
- package/dist/{chunk-BXCVOHEX.js → chunk-K4YR4PY2.js} +15 -13
- package/dist/{chunk-BXCVOHEX.js.map → chunk-K4YR4PY2.js.map} +1 -1
- package/dist/{chunk-BXE4L52Q.js → chunk-KX6HRTLH.js} +6599 -3508
- package/dist/chunk-KX6HRTLH.js.map +1 -0
- package/dist/{chunk-V2XJJEEF.js → chunk-L3DOX3UL.js} +4 -4
- package/dist/{chunk-FHJIH6XP.js → chunk-LHP56Q45.js} +16 -7
- package/dist/chunk-LHP56Q45.js.map +1 -0
- package/dist/{chunk-BLXRIAV2.js → chunk-LT3STF5K.js} +29 -4
- package/dist/chunk-LT3STF5K.js.map +1 -0
- package/dist/{chunk-SHXPE4D4.js → chunk-MGQNGW6I.js} +2 -2
- package/dist/{chunk-SHXPE4D4.js.map → chunk-MGQNGW6I.js.map} +1 -1
- package/dist/{chunk-JUUCCML3.js → chunk-MPRVAMO3.js} +4 -4
- package/dist/{chunk-JQA6RF4R.js → chunk-N2T6RLSE.js} +2 -2
- package/dist/{chunk-JQA6RF4R.js.map → chunk-N2T6RLSE.js.map} +1 -1
- package/dist/{chunk-JCTHXG33.js → chunk-NHOGTAPK.js} +2 -2
- package/dist/{chunk-VM7VAFJW.js → chunk-NVYDWVXN.js} +2 -1
- package/dist/{chunk-ARNI3SJT.js → chunk-OL3Z7KPQ.js} +9 -9
- package/dist/chunk-P6LRDWMJ.js +1875 -0
- package/dist/chunk-P6LRDWMJ.js.map +1 -0
- package/dist/{chunk-NUQF5F5J.js → chunk-PNDEKFF3.js} +2 -2
- package/dist/chunk-QJGPOFNB.js +409 -0
- package/dist/chunk-QJGPOFNB.js.map +1 -0
- package/dist/{chunk-DMVBIIP3.js → chunk-QJL57GPX.js} +3 -3
- package/dist/{chunk-AE6KBAAU.js → chunk-QR55QXJ7.js} +11 -11
- package/dist/{chunk-BJUEOC4G.js → chunk-QWVIGKBM.js} +3 -3
- package/dist/{chunk-E7OG5F6S.js → chunk-RZ6OONZU.js} +13 -11
- package/dist/{chunk-E7OG5F6S.js.map → chunk-RZ6OONZU.js.map} +1 -1
- package/dist/{chunk-U4OJ7U45.js → chunk-SZMJ24FR.js} +9 -9
- package/dist/{chunk-KQDRO6N6.js → chunk-TLY44PCL.js} +2 -2
- package/dist/{chunk-VLRIP4BQ.js → chunk-TOVSR2YO.js} +2 -2
- package/dist/chunk-TT5UDTDM.js +888 -0
- package/dist/chunk-TT5UDTDM.js.map +1 -0
- package/dist/{chunk-2YKUSTHS.js → chunk-TVLIJ6ZM.js} +5 -5
- package/dist/{chunk-RQPEKHZH.js → chunk-UQYDLEBS.js} +80 -16
- package/dist/chunk-UQYDLEBS.js.map +1 -0
- package/dist/{chunk-GMLOAKOA.js → chunk-VSDXZAQU.js} +4 -22
- package/dist/chunk-VSDXZAQU.js.map +1 -0
- package/dist/{chunk-22WGKOQ7.js → chunk-VTJAY3WN.js} +7 -7
- package/dist/{chunk-DPDG3FHL.js → chunk-WHECOVH2.js} +3 -3
- package/dist/{chunk-BKY6GAFA.js → chunk-WPHPLVS3.js} +53 -918
- package/dist/chunk-WPHPLVS3.js.map +1 -0
- package/dist/{chunk-SSQZB5SQ.js → chunk-XG6PVB5S.js} +11 -1
- package/dist/chunk-XG6PVB5S.js.map +1 -0
- package/dist/{chunk-R2CR62JV.js → chunk-XVL7DYWM.js} +4 -4
- package/dist/{chunk-CLPC3LKX.js → chunk-Y4O737F7.js} +4 -4
- package/dist/{chunk-YSZNJ2ID.js → chunk-YBPXVBSY.js} +2 -2
- package/dist/{chunk-2HOWRAWK.js → chunk-YJHH2DHV.js} +2 -2
- package/dist/{chunk-APAF4VWW.js → chunk-YUCH6WJY.js} +6 -405
- package/dist/chunk-YUCH6WJY.js.map +1 -0
- package/dist/chunk-ZAOJYN2D.js +159 -0
- package/dist/chunk-ZAOJYN2D.js.map +1 -0
- package/dist/{cli-77A46SB2.js → cli-4R5HIGG4.js} +33 -21
- package/dist/{cli-77A46SB2.js.map → cli-4R5HIGG4.js.map} +1 -1
- package/dist/{cli-6NKE6RMT.js → cli-BF6KB3EJ.js} +34 -22
- package/dist/{cli-6NKE6RMT.js.map → cli-BF6KB3EJ.js.map} +1 -1
- package/dist/{cli-3PBRPPMQ.js → cli-DXOHHWZK.js} +16 -19
- package/dist/{cli-3PBRPPMQ.js.map → cli-DXOHHWZK.js.map} +1 -1
- package/dist/{cli-AVHLY2AI.js → cli-MPMECIQH.js} +154 -65
- package/dist/cli-MPMECIQH.js.map +1 -0
- package/dist/cli-NDYBQ755.js +152 -0
- package/dist/cli-NDYBQ755.js.map +1 -0
- package/dist/{cli-K47XWDLJ.js → cli-SJA66MIP.js} +29 -30
- package/dist/{cli-K47XWDLJ.js.map → cli-SJA66MIP.js.map} +1 -1
- package/dist/{cli-FDXU7CGZ.js → cli-TBAOKTMV.js} +16 -19
- package/dist/{cli-FDXU7CGZ.js.map → cli-TBAOKTMV.js.map} +1 -1
- package/dist/{cli-MQXOK64K.js → cli-TWGGMUXX.js} +89 -45
- package/dist/cli-TWGGMUXX.js.map +1 -0
- package/dist/{cli-FSDJY5OC.js → cli-V2BJYNMF.js} +4 -4
- package/dist/{cli-JNYL6LB7.js → cli-XGCK2LUV.js} +19 -22
- package/dist/{cli-JNYL6LB7.js.map → cli-XGCK2LUV.js.map} +1 -1
- package/dist/{cli-MOKRUHZT.js → cli-XXN75A42.js} +9 -11
- 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-NQQTH5JK.js +33 -0
- package/dist/github-NWL2XGE7.js +48 -0
- package/dist/github-WBIEYSM7.js +28 -0
- package/dist/graph/runtime.js.map +1 -1
- package/dist/{host-YSTYO5DX.js → host-JT27OWTC.js} +3 -3
- package/dist/index.d.ts +363 -25
- package/dist/index.js +289 -270
- package/dist/index.js.map +1 -1
- package/dist/json-IVHRVOGQ.js +40 -0
- package/dist/{json-YTKUFNO3.js → json-J4TONMKY.js} +2 -2
- package/dist/{json-YIK72XAL.js → json-QQAK73QQ.js} +12 -15
- package/dist/{labels-X633ZPK7.js → labels-VI2I5YFD.js} +11 -14
- package/dist/{labels-X633ZPK7.js.map → labels-VI2I5YFD.js.map} +1 -1
- package/dist/lint-VB5A3ENL.js +32 -0
- package/dist/list-3XRFX2Y3.js +33 -0
- package/dist/list-LMYCD5G5.js +37 -0
- package/dist/list-LOS7FTFD.js +30 -0
- package/dist/{page-OMPEACUN.js → page-3Y4EGYUO.js} +11 -14
- package/dist/{prepare-B4JVDVOV.js → prepare-JK6XKBZB.js} +20 -22
- package/dist/{prepare-B4JVDVOV.js.map → prepare-JK6XKBZB.js.map} +1 -1
- package/dist/{pretty-U7ATCFBN.js → pretty-DR4GHOJG.js} +12 -15
- package/dist/pretty-G2J5UEXC.js +41 -0
- package/dist/pretty-GCEIQ3FP.js +65 -0
- package/dist/{provider-JY2I3VLF.js → provider-YWNTTQPA.js} +3 -3
- package/dist/{release-VHHASAG7.js → release-EFLQT3FW.js} +3 -3
- package/dist/{reporters-FAIEOTC4.js → reporters-43LBUWEE.js} +11 -14
- package/dist/{reporters-KE7AZR6C.js → reporters-OWYFZD4S.js} +6 -6
- package/dist/run-G6G55SWJ.js +36 -0
- package/dist/{sarif-DOGRSGTB.js → sarif-CN7RSIKH.js} +10 -13
- package/dist/sarif-FR26WNVT.js +49 -0
- package/dist/sarif-GWTNYCZJ.js +28 -0
- package/dist/strategy-3EZUOE2T.js +59 -0
- package/dist/{term-MDN3NJDW.js → term-5WITRS3M.js} +21 -25
- package/dist/{term-MDN3NJDW.js.map → term-5WITRS3M.js.map} +1 -1
- package/dist/{validate-QDYQ642J.js → validate-TDIEFXRQ.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-JZINDP3F.js +0 -45
- 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-BHGFLRXM.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-CZIO37J5.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-GMOAW2EG.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-WHVFHBL3.js.map +0 -1
- package/dist/chunk-XI3BNZG4.js.map +0 -1
- 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-PPNHHOEN.js +0 -52
- 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 +0 -223
- package/dist/strategy-EK5VY5DG.js.map +0 -1
- /package/dist/{batch-C534YIAU.js.map → batch-DPYBMRVD.js.map} +0 -0
- /package/dist/{build-SVKT7QFU.js.map → build-LEKUMGEC.js.map} +0 -0
- /package/dist/{calibrate-AL3MH7TY.js.map → calibrate-TYONPNG4.js.map} +0 -0
- /package/dist/{capture-2F7B4DAD.js.map → capture-2EPHIAZT.js.map} +0 -0
- /package/dist/{check-BI7OGIVE.js.map → check-ADCSXGBK.js.map} +0 -0
- /package/dist/{check-JZINDP3F.js.map → check-HWEDHABD.js.map} +0 -0
- /package/dist/{check-OPUMZEVK.js.map → check-J2KQI7IW.js.map} +0 -0
- /package/dist/{check-OW7UD73D.js.map → check-L5AUSTE6.js.map} +0 -0
- /package/dist/{check-LKPQPQWJ.js.map → check-SQVQE4E4.js.map} +0 -0
- /package/dist/{chunk-IOJD2RFG.js.map → chunk-2MOXVM6H.js.map} +0 -0
- /package/dist/{chunk-762MM6NA.js.map → chunk-2QK25SLZ.js.map} +0 -0
- /package/dist/{chunk-HHJ2HFPP.js.map → chunk-2UJOQ6CB.js.map} +0 -0
- /package/dist/{chunk-H5YWCCBO.js.map → chunk-3CBGLUJX.js.map} +0 -0
- /package/dist/{chunk-E23KWEPL.js.map → chunk-3USSSKLA.js.map} +0 -0
- /package/dist/{chunk-PTGXEZQD.js.map → chunk-3ZVRGBK6.js.map} +0 -0
- /package/dist/{chunk-IN5T22FP.js.map → chunk-6QNA7UX2.js.map} +0 -0
- /package/dist/{chunk-OWJLB2AF.js.map → chunk-76Y3JATE.js.map} +0 -0
- /package/dist/{chunk-3SFAB75L.js.map → chunk-AJCUKL43.js.map} +0 -0
- /package/dist/{chunk-CREFJCWZ.js.map → chunk-AOLCEULZ.js.map} +0 -0
- /package/dist/{chunk-2NGFDLIM.js.map → chunk-B4ECIBLF.js.map} +0 -0
- /package/dist/{chunk-5UJKXOAD.js.map → chunk-B4POKRCS.js.map} +0 -0
- /package/dist/{chunk-KBSTXL6L.js.map → chunk-BOCJTOKA.js.map} +0 -0
- /package/dist/{chunk-CFMI74TP.js.map → chunk-BZ74YUYE.js.map} +0 -0
- /package/dist/{chunk-NLJ3XIKT.js.map → chunk-C2QE4FSZ.js.map} +0 -0
- /package/dist/{chunk-245W2Q7C.js.map → chunk-D4BGNAN5.js.map} +0 -0
- /package/dist/{chunk-XBJKYXOR.js.map → chunk-DWUK6YNX.js.map} +0 -0
- /package/dist/{chunk-MTCOBRCX.js.map → chunk-E75CMOR3.js.map} +0 -0
- /package/dist/{chunk-KCWNJMSS.js.map → chunk-EBBJFXMX.js.map} +0 -0
- /package/dist/{chunk-A4QNKEX4.js.map → chunk-GCHEVTCJ.js.map} +0 -0
- /package/dist/{chunk-V2XJJEEF.js.map → chunk-L3DOX3UL.js.map} +0 -0
- /package/dist/{chunk-JUUCCML3.js.map → chunk-MPRVAMO3.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-ARNI3SJT.js.map → chunk-OL3Z7KPQ.js.map} +0 -0
- /package/dist/{chunk-NUQF5F5J.js.map → chunk-PNDEKFF3.js.map} +0 -0
- /package/dist/{chunk-DMVBIIP3.js.map → chunk-QJL57GPX.js.map} +0 -0
- /package/dist/{chunk-AE6KBAAU.js.map → chunk-QR55QXJ7.js.map} +0 -0
- /package/dist/{chunk-BJUEOC4G.js.map → chunk-QWVIGKBM.js.map} +0 -0
- /package/dist/{chunk-U4OJ7U45.js.map → chunk-SZMJ24FR.js.map} +0 -0
- /package/dist/{chunk-KQDRO6N6.js.map → chunk-TLY44PCL.js.map} +0 -0
- /package/dist/{chunk-VLRIP4BQ.js.map → chunk-TOVSR2YO.js.map} +0 -0
- /package/dist/{chunk-2YKUSTHS.js.map → chunk-TVLIJ6ZM.js.map} +0 -0
- /package/dist/{chunk-22WGKOQ7.js.map → chunk-VTJAY3WN.js.map} +0 -0
- /package/dist/{chunk-DPDG3FHL.js.map → chunk-WHECOVH2.js.map} +0 -0
- /package/dist/{chunk-R2CR62JV.js.map → chunk-XVL7DYWM.js.map} +0 -0
- /package/dist/{chunk-CLPC3LKX.js.map → chunk-Y4O737F7.js.map} +0 -0
- /package/dist/{chunk-YSZNJ2ID.js.map → chunk-YBPXVBSY.js.map} +0 -0
- /package/dist/{chunk-2HOWRAWK.js.map → chunk-YJHH2DHV.js.map} +0 -0
- /package/dist/{cli-FSDJY5OC.js.map → cli-V2BJYNMF.js.map} +0 -0
- /package/dist/{chunk-UP6NBQ62.js.map → cli-XXN75A42.js.map} +0 -0
- /package/dist/{cli-MOKRUHZT.js.map → config-2YJPJ36T.js.map} +0 -0
- /package/dist/{config-BMWDC66C.js.map → github-NQQTH5JK.js.map} +0 -0
- /package/dist/{github-6GYTPSGV.js.map → github-NWL2XGE7.js.map} +0 -0
- /package/dist/{github-DJOLVNDD.js.map → github-WBIEYSM7.js.map} +0 -0
- /package/dist/{github-ZF2TQ3RP.js.map → host-JT27OWTC.js.map} +0 -0
- /package/dist/{host-YSTYO5DX.js.map → json-IVHRVOGQ.js.map} +0 -0
- /package/dist/{json-Y7625EFE.js.map → json-J4TONMKY.js.map} +0 -0
- /package/dist/{json-YIK72XAL.js.map → json-QQAK73QQ.js.map} +0 -0
- /package/dist/{json-YTKUFNO3.js.map → lint-VB5A3ENL.js.map} +0 -0
- /package/dist/{lint-RF3B55W7.js.map → list-3XRFX2Y3.js.map} +0 -0
- /package/dist/{list-5DW4QZ7P.js.map → list-LMYCD5G5.js.map} +0 -0
- /package/dist/{list-7CHWJ633.js.map → list-LOS7FTFD.js.map} +0 -0
- /package/dist/{list-UNWG6NPD.js.map → page-3Y4EGYUO.js.map} +0 -0
- /package/dist/{page-OMPEACUN.js.map → pretty-DR4GHOJG.js.map} +0 -0
- /package/dist/{pretty-PPNHHOEN.js.map → pretty-G2J5UEXC.js.map} +0 -0
- /package/dist/{pretty-U7ATCFBN.js.map → pretty-GCEIQ3FP.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-43LBUWEE.js.map} +0 -0
- /package/dist/{reporters-FAIEOTC4.js.map → reporters-OWYFZD4S.js.map} +0 -0
- /package/dist/{reporters-KE7AZR6C.js.map → run-G6G55SWJ.js.map} +0 -0
- /package/dist/{run-MHJ3AYKG.js.map → sarif-CN7RSIKH.js.map} +0 -0
- /package/dist/{sarif-DOGRSGTB.js.map → sarif-FR26WNVT.js.map} +0 -0
- /package/dist/{sarif-MIEMQOIK.js.map → sarif-GWTNYCZJ.js.map} +0 -0
- /package/dist/{sarif-RGRG7VFX.js.map → strategy-3EZUOE2T.js.map} +0 -0
- /package/dist/{validate-QDYQ642J.js.map → validate-TDIEFXRQ.js.map} +0 -0
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
import {
|
|
3
3
|
META_CONTEXT,
|
|
4
4
|
withValueAt
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KX6HRTLH.js";
|
|
6
6
|
import {
|
|
7
7
|
DocmetaError,
|
|
8
8
|
escapePointerSegment,
|
|
9
9
|
extractorByName,
|
|
10
10
|
extractorForExtension,
|
|
11
11
|
supportedExtensions
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QWVIGKBM.js";
|
|
13
13
|
import {
|
|
14
14
|
decryptValue,
|
|
15
15
|
encryptValue,
|
|
16
16
|
isEncryptedValue
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JF4BC7ZD.js";
|
|
18
18
|
import {
|
|
19
19
|
errorMessage
|
|
20
20
|
} from "./chunk-G3T47CFV.js";
|
|
@@ -121,4 +121,4 @@ export {
|
|
|
121
121
|
reencryptMetadata,
|
|
122
122
|
reencryptData
|
|
123
123
|
};
|
|
124
|
-
//# sourceMappingURL=chunk-
|
|
124
|
+
//# sourceMappingURL=chunk-B4ECIBLF.js.map
|
|
@@ -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-C2QE4FSZ.js";
|
|
11
11
|
import {
|
|
12
12
|
documentBase,
|
|
13
13
|
formatOf,
|
|
14
14
|
loadRunConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LHP56Q45.js";
|
|
16
16
|
import {
|
|
17
17
|
bodyLineOf
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KX6HRTLH.js";
|
|
19
19
|
import {
|
|
20
20
|
integrityOf,
|
|
21
21
|
locateFrontmatter
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-QWVIGKBM.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-B4POKRCS.js.map
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
GET_FORMATS,
|
|
4
|
+
runGet
|
|
5
|
+
} from "./chunk-7M3MBFG7.js";
|
|
6
|
+
import {
|
|
7
|
+
FINDING_FORMATS,
|
|
8
|
+
JUNIT_CLASSNAME,
|
|
9
|
+
runCheck
|
|
10
|
+
} from "./chunk-Y4O737F7.js";
|
|
11
|
+
import {
|
|
12
|
+
LIST_FORMATS,
|
|
13
|
+
runList
|
|
14
|
+
} from "./chunk-3CBGLUJX.js";
|
|
15
|
+
import {
|
|
16
|
+
renderFindingsGithub
|
|
17
|
+
} from "./chunk-76Y3JATE.js";
|
|
18
|
+
import {
|
|
19
|
+
renderFindingsJson,
|
|
20
|
+
renderGetJson,
|
|
21
|
+
renderListJson
|
|
22
|
+
} from "./chunk-WHECOVH2.js";
|
|
23
|
+
import {
|
|
24
|
+
renderFindingsPretty,
|
|
25
|
+
renderGetPretty,
|
|
26
|
+
renderListPretty
|
|
27
|
+
} from "./chunk-FJYIPHWK.js";
|
|
28
|
+
import {
|
|
29
|
+
formatChoice,
|
|
30
|
+
indexSet,
|
|
31
|
+
loadStrategy,
|
|
32
|
+
resolveStrategyRun
|
|
33
|
+
} from "./chunk-FBIBR4CH.js";
|
|
34
|
+
import {
|
|
35
|
+
FIELD_LABEL,
|
|
36
|
+
renderFindingsSarif
|
|
37
|
+
} from "./chunk-QJL57GPX.js";
|
|
38
|
+
import {
|
|
39
|
+
OMITTED_WHEN_CLEAN,
|
|
40
|
+
renderJunit
|
|
41
|
+
} from "./chunk-2QK25SLZ.js";
|
|
42
|
+
import {
|
|
43
|
+
readStdin,
|
|
44
|
+
splitList,
|
|
45
|
+
withInputs
|
|
46
|
+
} from "./chunk-KX6HRTLH.js";
|
|
47
|
+
import {
|
|
48
|
+
STDIN_TOKEN
|
|
49
|
+
} from "./chunk-QWVIGKBM.js";
|
|
50
|
+
import {
|
|
51
|
+
shouldColor
|
|
52
|
+
} from "./chunk-RNVYGWIC.js";
|
|
53
|
+
import {
|
|
54
|
+
fail
|
|
55
|
+
} from "./chunk-YEUYKR62.js";
|
|
56
|
+
import {
|
|
57
|
+
hasPagePlaceholder,
|
|
58
|
+
pageManifestPath
|
|
59
|
+
} from "./chunk-JF4BC7ZD.js";
|
|
60
|
+
import {
|
|
61
|
+
notice
|
|
62
|
+
} from "./chunk-HX44GB4Z.js";
|
|
63
|
+
import {
|
|
64
|
+
package_default
|
|
65
|
+
} from "./chunk-N2T6RLSE.js";
|
|
66
|
+
|
|
67
|
+
// src/strategy/cli.ts
|
|
68
|
+
import { Command } from "commander";
|
|
69
|
+
|
|
70
|
+
// src/strategy/reporters/junit.ts
|
|
71
|
+
var MESSAGE_LABEL = new RegExp(`message="${FIELD_LABEL.source.slice(1)}`, "g");
|
|
72
|
+
function renderFindingsJunit(report) {
|
|
73
|
+
return renderJunit(report.results, { frame: report.frame, classname: JUNIT_CLASSNAME }).replace(MESSAGE_LABEL, 'message="');
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// src/strategy/cli.ts
|
|
77
|
+
var PATHS = "files, directories, or globs to read (use - for stdin)";
|
|
78
|
+
function colorFor(options) {
|
|
79
|
+
return shouldColor({ noColor: !options.color, isTTY: process.stdout.isTTY });
|
|
80
|
+
}
|
|
81
|
+
async function coreOptions(paths, options) {
|
|
82
|
+
return {
|
|
83
|
+
inputs: paths,
|
|
84
|
+
...paths.includes(STDIN_TOKEN) ? { stdin: await readStdin() } : {},
|
|
85
|
+
...options.as === void 0 ? {} : { as: options.as },
|
|
86
|
+
...options.ext === void 0 ? {} : { exts: splitList(options.ext) },
|
|
87
|
+
exclude: options.exclude,
|
|
88
|
+
collection: options.collection,
|
|
89
|
+
...options.allowEmpty === true ? { allowEmpty: true } : {},
|
|
90
|
+
...options.gitignore ? {} : { noGitignore: true },
|
|
91
|
+
...options.config === void 0 ? {} : { configPath: options.config },
|
|
92
|
+
onNotice: notice
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function print(text) {
|
|
96
|
+
process.stdout.write(`${text}
|
|
97
|
+
`);
|
|
98
|
+
}
|
|
99
|
+
function renderFindings(report, format, options) {
|
|
100
|
+
let text;
|
|
101
|
+
switch (format) {
|
|
102
|
+
case "pretty":
|
|
103
|
+
text = renderFindingsPretty(report, { color: colorFor(options) });
|
|
104
|
+
break;
|
|
105
|
+
case "json":
|
|
106
|
+
text = renderFindingsJson(report);
|
|
107
|
+
break;
|
|
108
|
+
case "github":
|
|
109
|
+
text = renderFindingsGithub(report);
|
|
110
|
+
break;
|
|
111
|
+
case "sarif":
|
|
112
|
+
text = renderFindingsSarif(report, { onNotice: notice });
|
|
113
|
+
break;
|
|
114
|
+
case "junit":
|
|
115
|
+
text = renderFindingsJunit(report);
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
if (text.length > 0 || !OMITTED_WHEN_CLEAN.has(format)) print(text);
|
|
119
|
+
process.exitCode = report.summary.failed > 0 ? 1 : 0;
|
|
120
|
+
}
|
|
121
|
+
function buildProgram() {
|
|
122
|
+
const program = new Command();
|
|
123
|
+
program.name("strategy").description("Check a docset's pages against its audiences, personas and journeys.").version(package_default.version, "-V, --version").showHelpAfterError("(add --help for usage)").exitOverride();
|
|
124
|
+
withInputs(
|
|
125
|
+
program.command("list").description("List the records as a tree").argument("[paths...]", PATHS),
|
|
126
|
+
"no records"
|
|
127
|
+
).option("-f, --format <format>", `output: ${LIST_FORMATS.join(" | ")}`, "pretty").addHelpText(
|
|
128
|
+
"after",
|
|
129
|
+
[
|
|
130
|
+
"",
|
|
131
|
+
"Examples:",
|
|
132
|
+
" manni strategy list # every collection",
|
|
133
|
+
" manni strategy list -f json # for a script"
|
|
134
|
+
].join("\n")
|
|
135
|
+
).action(async (paths, options) => {
|
|
136
|
+
try {
|
|
137
|
+
const format = formatChoice(options.format, LIST_FORMATS);
|
|
138
|
+
const { entries } = await runList(await coreOptions(paths, options));
|
|
139
|
+
print(format === "json" ? renderListJson(entries) : renderListPretty(entries));
|
|
140
|
+
process.exitCode = 0;
|
|
141
|
+
} catch (err) {
|
|
142
|
+
fail(err);
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
withInputs(
|
|
146
|
+
program.command("get").description("Show one record, its parent, and what names it").argument("<id>", "the record's id, in any case").argument("[paths...]", PATHS),
|
|
147
|
+
"no records"
|
|
148
|
+
).option("-f, --format <format>", `output: ${GET_FORMATS.join(" | ")}`, "pretty").addHelpText("after", ["", "Examples:", " manni strategy get m5", " manni strategy get maya -f json"].join("\n")).action(async (id, paths, options) => {
|
|
149
|
+
try {
|
|
150
|
+
const format = formatChoice(options.format, GET_FORMATS);
|
|
151
|
+
const entry = await runGet({ ...await coreOptions(paths, options), id });
|
|
152
|
+
print(format === "json" ? renderGetJson(entry) : renderGetPretty(entry, { color: colorFor(options) }));
|
|
153
|
+
process.exitCode = 0;
|
|
154
|
+
} catch (err) {
|
|
155
|
+
fail(err);
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
withInputs(
|
|
159
|
+
program.command("check").description("Check the pages against the records").argument("[paths...]", PATHS),
|
|
160
|
+
"no records"
|
|
161
|
+
).option("-f, --format <format>", `output: ${FINDING_FORMATS.join(" | ")}`, "pretty").option("--baseline", "record the findings on the first run; after that, fail only on new ones").addHelpText(
|
|
162
|
+
"after",
|
|
163
|
+
[
|
|
164
|
+
"",
|
|
165
|
+
"Examples:",
|
|
166
|
+
" manni strategy check # every collection",
|
|
167
|
+
" manni strategy check -f github # CI annotations",
|
|
168
|
+
" manni strategy check --baseline # ramp in on an existing docset"
|
|
169
|
+
].join("\n")
|
|
170
|
+
).action(async (paths, options) => {
|
|
171
|
+
try {
|
|
172
|
+
const format = formatChoice(options.format, FINDING_FORMATS);
|
|
173
|
+
const report = await runCheck({
|
|
174
|
+
...await coreOptions(paths, options),
|
|
175
|
+
...options.baseline === true ? { baseline: true } : {}
|
|
176
|
+
});
|
|
177
|
+
renderFindings(report, format, options);
|
|
178
|
+
} catch (err) {
|
|
179
|
+
fail(err);
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
return program;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// src/strategy/core/serving.ts
|
|
186
|
+
import { resolve } from "node:path";
|
|
187
|
+
var SERVING_TYPES = ["persona", "journey"];
|
|
188
|
+
var FIELD_OF = { persona: "personas", journey: "journeys" };
|
|
189
|
+
async function loadServing(opts) {
|
|
190
|
+
const configPath = opts.configPath === void 0 ? {} : { configPath: opts.configPath };
|
|
191
|
+
const run = await resolveStrategyRun({ cwd: opts.cwd, inputs: [], ...configPath });
|
|
192
|
+
if (run.inputs.length === 0) return void 0;
|
|
193
|
+
const { set } = await loadStrategy({ cwd: opts.cwd, inputs: [], allowEmpty: true, ...configPath });
|
|
194
|
+
const records = set.records.filter(
|
|
195
|
+
(r) => SERVING_TYPES.includes(r.type)
|
|
196
|
+
);
|
|
197
|
+
if (records.length === 0) return void 0;
|
|
198
|
+
const index = indexSet(set);
|
|
199
|
+
const pages = /* @__PURE__ */ new Map();
|
|
200
|
+
for (const type of SERVING_TYPES) {
|
|
201
|
+
for (const reference of set.references) {
|
|
202
|
+
if (reference.record || reference.field !== FIELD_OF[type]) continue;
|
|
203
|
+
const named = index.resolve(type, reference.value);
|
|
204
|
+
if (named === void 0) continue;
|
|
205
|
+
const page = resolve(run.base, reference.page);
|
|
206
|
+
const list = pages.get(page) ?? [];
|
|
207
|
+
if (!list.includes(named)) list.push(named);
|
|
208
|
+
pages.set(page, list);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
const manifests = /* @__PURE__ */ new Map();
|
|
212
|
+
const configDir = run.configDir;
|
|
213
|
+
if (configDir !== void 0) {
|
|
214
|
+
for (const page of pages.keys()) {
|
|
215
|
+
for (const m of run.collections.flatMap((c) => c.externalMetadata)) {
|
|
216
|
+
if (!hasPagePlaceholder(m.file)) continue;
|
|
217
|
+
const at = pageManifestPath(m.file, configDir, page);
|
|
218
|
+
if (!("outside" in at) && !manifests.has(at.abs)) manifests.set(at.abs, page);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
return { records, pages, manifests };
|
|
223
|
+
}
|
|
224
|
+
var RETIRED = /* @__PURE__ */ new Set(["draft", "archived"]);
|
|
225
|
+
function retired(entry) {
|
|
226
|
+
return entry.lifecycle !== void 0 && RETIRED.has(entry.lifecycle) ? 1 : 0;
|
|
227
|
+
}
|
|
228
|
+
function worstFirst(a, b) {
|
|
229
|
+
return SERVING_TYPES.indexOf(a.type) - SERVING_TYPES.indexOf(b.type) || retired(a) - retired(b) || b.errors - a.errors || b.warnings - a.warnings || b.notices - a.notices || a.id.localeCompare(b.id, "en", { numeric: true, sensitivity: "base" });
|
|
230
|
+
}
|
|
231
|
+
function impactOf(serving, findings) {
|
|
232
|
+
const entries = /* @__PURE__ */ new Map();
|
|
233
|
+
for (const finding of findings) {
|
|
234
|
+
for (const named of serving.pages.get(finding.page) ?? []) {
|
|
235
|
+
let entry = entries.get(named);
|
|
236
|
+
if (entry === void 0) {
|
|
237
|
+
entry = {
|
|
238
|
+
type: named.type === "persona" ? "persona" : "journey",
|
|
239
|
+
id: named.id,
|
|
240
|
+
...named.title === void 0 ? {} : { title: named.title },
|
|
241
|
+
...named.type === "journey" && named.lifecycle !== void 0 ? { lifecycle: named.lifecycle } : {},
|
|
242
|
+
findings: 0,
|
|
243
|
+
errors: 0,
|
|
244
|
+
warnings: 0,
|
|
245
|
+
notices: 0,
|
|
246
|
+
pages: []
|
|
247
|
+
};
|
|
248
|
+
entries.set(named, entry);
|
|
249
|
+
}
|
|
250
|
+
entry.findings += 1;
|
|
251
|
+
if (finding.severity === "error") entry.errors += 1;
|
|
252
|
+
else if (finding.severity === "warning") entry.warnings += 1;
|
|
253
|
+
else entry.notices += 1;
|
|
254
|
+
if (!entry.pages.includes(finding.file)) entry.pages.push(finding.file);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
return [...entries.values()].sort(worstFirst);
|
|
258
|
+
}
|
|
259
|
+
function listOf(values) {
|
|
260
|
+
if (values.length <= 1) return values.join("");
|
|
261
|
+
return `${values.slice(0, -1).join(", ")} and ${values[values.length - 1] ?? ""}`;
|
|
262
|
+
}
|
|
263
|
+
function plural(n, one) {
|
|
264
|
+
return `${String(n)} ${one}${n === 1 ? "" : "s"}`;
|
|
265
|
+
}
|
|
266
|
+
function servesSentence(records) {
|
|
267
|
+
if (records.length === 0) return void 0;
|
|
268
|
+
return `Serves ${listOf(records.map((r) => r.title === void 0 ? r.id : `${r.id} (${r.title})`))}.`;
|
|
269
|
+
}
|
|
270
|
+
function headingOf(entries) {
|
|
271
|
+
const counts = SERVING_TYPES.flatMap((type) => {
|
|
272
|
+
const n = entries.filter((e) => e.type === type).length;
|
|
273
|
+
return n === 0 ? [] : [plural(n, type)];
|
|
274
|
+
});
|
|
275
|
+
return `The pages with findings serve ${counts.join(" and ")}.`;
|
|
276
|
+
}
|
|
277
|
+
function titleOf(e) {
|
|
278
|
+
return [e.title, e.lifecycle !== void 0 && RETIRED.has(e.lifecycle) ? `(${e.lifecycle})` : void 0].filter((part) => part !== void 0).join(" ");
|
|
279
|
+
}
|
|
280
|
+
function countsOf(e) {
|
|
281
|
+
const levels = [
|
|
282
|
+
e.errors > 0 ? plural(e.errors, "error") : void 0,
|
|
283
|
+
e.warnings > 0 ? plural(e.warnings, "warning") : void 0,
|
|
284
|
+
e.notices > 0 ? plural(e.notices, "notice") : void 0
|
|
285
|
+
].filter((level) => level !== void 0);
|
|
286
|
+
return `${listOf(levels)} on ${plural(e.pages.length, "page")}`;
|
|
287
|
+
}
|
|
288
|
+
function impactLines(entries) {
|
|
289
|
+
if (entries.length === 0) return [];
|
|
290
|
+
const idWidth = Math.max(...entries.map((e) => e.id.length));
|
|
291
|
+
const titleWidth = Math.max(...entries.map((e) => titleOf(e).length));
|
|
292
|
+
const rows = entries.map((e) => ` ${e.id.padEnd(idWidth)} ${titleOf(e).padEnd(titleWidth)} ${countsOf(e)}`);
|
|
293
|
+
return [headingOf(entries), ...rows];
|
|
294
|
+
}
|
|
295
|
+
function impactNotice(entries) {
|
|
296
|
+
if (entries.length === 0) return void 0;
|
|
297
|
+
return {
|
|
298
|
+
title: headingOf(entries),
|
|
299
|
+
lines: entries.map((e) => `${[e.id, titleOf(e)].filter((part) => part !== "").join(" ")}: ${countsOf(e)}`)
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
export {
|
|
304
|
+
buildProgram,
|
|
305
|
+
loadServing,
|
|
306
|
+
impactOf,
|
|
307
|
+
servesSentence,
|
|
308
|
+
impactLines,
|
|
309
|
+
impactNotice
|
|
310
|
+
};
|
|
311
|
+
//# sourceMappingURL=chunk-BA7BQBWV.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/strategy/cli.ts","../src/strategy/reporters/junit.ts","../src/strategy/core/serving.ts"],"sourcesContent":["/**\n * The `strategy` domain's commander program. Mounted by `src/cli.ts` under\n * `manni strategy`; no entry point of its own. The verbs are `list`, `get` and\n * `check` (proposal 0102), and there is no default subcommand.\n *\n * Follows clig.dev as the family does: primary output to stdout, diagnostics\n * to stderr, colour only on a TTY and never under `NO_COLOR`/`--no-color`,\n * exit `0` clean, `1` an error-severity finding, `2` operational/usage.\n */\nimport { Command } from \"commander\";\nimport pkg from \"../../package.json\" with { type: \"json\" };\nimport { readStdin, splitList, withInputs } from \"../shared/cli-options.js\";\nimport { shouldColor } from \"../shared/color.js\";\nimport { fail } from \"../shared/run.js\";\nimport { notice } from \"../shared/warn.js\";\nimport { OMITTED_WHEN_CLEAN, STDIN_TOKEN } from \"../meta/internal.js\";\nimport { runCheck } from \"./commands/check.js\";\nimport { FINDING_FORMATS, type FindingFormat, type StrategyReport } from \"./commands/findings.js\";\nimport { GET_FORMATS, runGet } from \"./commands/get.js\";\nimport { LIST_FORMATS, runList } from \"./commands/list.js\";\nimport { formatChoice, type StrategyCommandOptions } from \"./commands/run.js\";\nimport { renderFindingsGithub } from \"./reporters/github.js\";\nimport { renderFindingsJson, renderGetJson, renderListJson } from \"./reporters/json.js\";\nimport { renderFindingsJunit } from \"./reporters/junit.js\";\nimport { renderFindingsPretty, renderGetPretty, renderListPretty } from \"./reporters/pretty.js\";\nimport { renderFindingsSarif } from \"./reporters/sarif.js\";\n\n/** What commander hands every verb. */\ninterface InputCliOptions {\n as?: string;\n /** `--ext <list>`, comma-separated and given once. */\n ext?: string;\n /** `--exclude <glob>`, repeatable; commander's default value is `[]`. */\n exclude: string[];\n allowEmpty?: boolean;\n /** `--no-gitignore`: `false` when given. */\n gitignore: boolean;\n /** `--collection <name>`, repeatable; commander's default value is `[]`. */\n collection: string[];\n config?: string;\n /** `--no-color`: `false` when given. */\n color: boolean;\n format: string;\n}\n\ninterface CheckCliOptions extends InputCliOptions {\n baseline?: boolean;\n}\n\nconst PATHS = \"files, directories, or globs to read (use - for stdin)\";\n\nfunction colorFor(options: InputCliOptions): boolean {\n return shouldColor({ noColor: !options.color, isTTY: process.stdout.isTTY });\n}\n\n/** The core's shared options from commander's, with stdin read once when `-` is among the paths. */\nasync function coreOptions(paths: string[], options: InputCliOptions): Promise<StrategyCommandOptions> {\n return {\n inputs: paths,\n ...(paths.includes(STDIN_TOKEN) ? { stdin: await readStdin() } : {}),\n ...(options.as === undefined ? {} : { as: options.as }),\n ...(options.ext === undefined ? {} : { exts: splitList(options.ext) }),\n exclude: options.exclude,\n collection: options.collection,\n ...(options.allowEmpty === true ? { allowEmpty: true } : {}),\n ...(options.gitignore ? {} : { noGitignore: true }),\n ...(options.config === undefined ? {} : { configPath: options.config }),\n onNotice: notice,\n };\n}\n\nfunction print(text: string): void {\n process.stdout.write(`${text}\\n`);\n}\n\nfunction renderFindings(report: StrategyReport, format: FindingFormat, options: InputCliOptions): void {\n let text: string;\n switch (format) {\n case \"pretty\":\n text = renderFindingsPretty(report, { color: colorFor(options) });\n break;\n case \"json\":\n text = renderFindingsJson(report);\n break;\n case \"github\":\n text = renderFindingsGithub(report);\n break;\n case \"sarif\":\n text = renderFindingsSarif(report, { onNotice: notice });\n break;\n case \"junit\":\n text = renderFindingsJunit(report);\n break;\n }\n if (text.length > 0 || !OMITTED_WHEN_CLEAN.has(format)) print(text);\n process.exitCode = report.summary.failed > 0 ? 1 : 0;\n}\n\nexport function buildProgram(): Command {\n const program = new Command();\n program\n .name(\"strategy\")\n .description(\"Check a docset's pages against its audiences, personas and journeys.\")\n .version(pkg.version, \"-V, --version\")\n .showHelpAfterError(\"(add --help for usage)\")\n // MUST come before the `.command()` calls below: commander copies the exit\n // callback into each subcommand by value when the subcommand is created.\n .exitOverride();\n\n withInputs(\n program.command(\"list\").description(\"List the records as a tree\").argument(\"[paths...]\", PATHS),\n \"no records\",\n )\n .option(\"-f, --format <format>\", `output: ${LIST_FORMATS.join(\" | \")}`, \"pretty\")\n .addHelpText(\n \"after\",\n [\n \"\",\n \"Examples:\",\n \" manni strategy list # every collection\",\n \" manni strategy list -f json # for a script\",\n ].join(\"\\n\"),\n )\n .action(async (paths: string[], options: InputCliOptions) => {\n try {\n const format = formatChoice(options.format, LIST_FORMATS);\n const { entries } = await runList(await coreOptions(paths, options));\n print(format === \"json\" ? renderListJson(entries) : renderListPretty(entries));\n process.exitCode = 0;\n } catch (err) {\n fail(err);\n }\n });\n\n withInputs(\n program\n .command(\"get\")\n .description(\"Show one record, its parent, and what names it\")\n .argument(\"<id>\", \"the record's id, in any case\")\n .argument(\"[paths...]\", PATHS),\n \"no records\",\n )\n .option(\"-f, --format <format>\", `output: ${GET_FORMATS.join(\" | \")}`, \"pretty\")\n .addHelpText(\"after\", [\"\", \"Examples:\", \" manni strategy get m5\", \" manni strategy get maya -f json\"].join(\"\\n\"))\n .action(async (id: string, paths: string[], options: InputCliOptions) => {\n try {\n const format = formatChoice(options.format, GET_FORMATS);\n const entry = await runGet({ ...(await coreOptions(paths, options)), id });\n print(format === \"json\" ? renderGetJson(entry) : renderGetPretty(entry, { color: colorFor(options) }));\n process.exitCode = 0;\n } catch (err) {\n fail(err);\n }\n });\n\n withInputs(\n program.command(\"check\").description(\"Check the pages against the records\").argument(\"[paths...]\", PATHS),\n \"no records\",\n )\n .option(\"-f, --format <format>\", `output: ${FINDING_FORMATS.join(\" | \")}`, \"pretty\")\n .option(\"--baseline\", \"record the findings on the first run; after that, fail only on new ones\")\n .addHelpText(\n \"after\",\n [\n \"\",\n \"Examples:\",\n \" manni strategy check # every collection\",\n \" manni strategy check -f github # CI annotations\",\n \" manni strategy check --baseline # ramp in on an existing docset\",\n ].join(\"\\n\"),\n )\n .action(async (paths: string[], options: CheckCliOptions) => {\n try {\n const format = formatChoice(options.format, FINDING_FORMATS);\n const report = await runCheck({\n ...(await coreOptions(paths, options)),\n ...(options.baseline === true ? { baseline: true } : {}),\n });\n renderFindings(report, format, options);\n } catch (err) {\n fail(err);\n }\n });\n\n return program;\n}\n","/**\n * JUnit for `check`: meta's renderer over the adapted results, under the\n * `manni.strategy` classname, with each failure's message the finding's own\n * rather than opened by the field's JSON Pointer.\n */\nimport { renderJunit } from \"../../meta/index.js\";\nimport { JUNIT_CLASSNAME, type StrategyReport } from \"../commands/findings.js\";\nimport { FIELD_LABEL } from \"./sarif.js\";\n\n/** A `message=\"` attribute's opening label. The value is escaped, so `message=\"` opens nothing else. */\nconst MESSAGE_LABEL = new RegExp(`message=\"${FIELD_LABEL.source.slice(1)}`, \"g\");\n\nexport function renderFindingsJunit(report: StrategyReport): string {\n return renderJunit(report.results, { frame: report.frame, classname: JUNIT_CLASSNAME }).replace(MESSAGE_LABEL, 'message=\"');\n}\n","/**\n * Whom each page serves, and the impact roll-up over findings on those pages\n * (proposal 0105). Another domain hands in its findings, each with its page's\n * absolute path, and gets back one entry per persona and journey those pages\n * name, worst first. Cite's check is the first caller.\n *\n * Per field, 0102's gate holds: `journeys:` counts only when a journey record\n * exists, and `personas:` only when a persona record does. A value that names\n * no record is left out, since `strategy check` already reports it.\n */\nimport { resolve } from \"node:path\";\nimport { hasPagePlaceholder, pageManifestPath } from \"../../shared/page-manifest.js\";\nimport type { Severity } from \"../../shared/severity.js\";\nimport { loadStrategy } from \"../commands/run.js\";\nimport type { StrategyRecord } from \"../types.js\";\nimport { resolveStrategyRun } from \"./config.js\";\nimport { indexSet } from \"./check.js\";\n\n/** The two record types a page's readers are named by, in the order they print. */\nconst SERVING_TYPES = [\"persona\", \"journey\"] as const;\ntype ServingType = (typeof SERVING_TYPES)[number];\n\nconst FIELD_OF: Readonly<Record<ServingType, \"personas\" | \"journeys\">> = { persona: \"personas\", journey: \"journeys\" };\n\nexport interface ServingSet {\n /** The persona and journey records, in set order. */\n records: StrategyRecord[];\n /** Each page's named records, keyed by absolute path: personas first, then journeys, each once. */\n pages: Map<string, StrategyRecord[]>;\n /**\n * Each named page's `{page}` manifests (0058), absolute, to the page's\n * absolute path: a finding in one counts on its page (proposal 0109).\n */\n manifests: Map<string, string>;\n}\n\nexport interface ServingOptions {\n cwd: string;\n /** The config whose collections hold the records. */\n configPath?: string;\n}\n\n/**\n * Every collection's set, whatever the caller's own inputs. `undefined` when\n * no collection is declared or none holds a persona or journey record. A\n * broken `strategy:` section or an unreadable file throws strategy's error.\n */\nexport async function loadServing(opts: ServingOptions): Promise<ServingSet | undefined> {\n const configPath = opts.configPath === undefined ? {} : { configPath: opts.configPath };\n const run = await resolveStrategyRun({ cwd: opts.cwd, inputs: [], ...configPath });\n if (run.inputs.length === 0) return undefined;\n // ponytail: one walk and one merged view of every collection, on a red run only. Narrow the read to the finding pages if it costs.\n const { set } = await loadStrategy({ cwd: opts.cwd, inputs: [], allowEmpty: true, ...configPath });\n const records = set.records.filter((r): r is StrategyRecord & { type: ServingType } =>\n (SERVING_TYPES as readonly string[]).includes(r.type),\n );\n if (records.length === 0) return undefined;\n\n const index = indexSet(set);\n const pages = new Map<string, StrategyRecord[]>();\n for (const type of SERVING_TYPES) {\n for (const reference of set.references) {\n if (reference.record || reference.field !== FIELD_OF[type]) continue;\n const named = index.resolve(type, reference.value);\n if (named === undefined) continue;\n const page = resolve(run.base, reference.page);\n const list = pages.get(page) ?? [];\n if (!list.includes(named)) list.push(named);\n pages.set(page, list);\n }\n }\n // ponytail: every collection's patterns for every page; a pattern a page's own collection lacks maps a file nobody reports.\n const manifests = new Map<string, string>();\n const configDir = run.configDir;\n if (configDir !== undefined) {\n for (const page of pages.keys()) {\n for (const m of run.collections.flatMap((c) => c.externalMetadata)) {\n if (!hasPagePlaceholder(m.file)) continue;\n const at = pageManifestPath(m.file, configDir, page);\n if (!(\"outside\" in at) && !manifests.has(at.abs)) manifests.set(at.abs, page);\n }\n }\n }\n return { records, pages, manifests };\n}\n\n/** One reported finding, on the page it counts on. */\nexport interface ImpactFinding {\n /** The page's absolute path, the key into `ServingSet.pages`. */\n page: string;\n /** The page as the caller's report spells it. */\n file: string;\n severity: Severity;\n}\n\n/** One persona or journey, and the findings on the pages that name it. */\nexport interface ImpactEntry {\n type: ServingType;\n id: string;\n title?: string;\n /** A journey record's `lifecycle:`, when it has one. */\n lifecycle?: string;\n findings: number;\n errors: number;\n warnings: number;\n notices: number;\n /** Those pages, as the caller spells them, in the order its findings came. */\n pages: string[];\n}\n\n/** A journey that is not live: it sorts after every live one. */\nconst RETIRED = new Set([\"draft\", \"archived\"]);\n\nfunction retired(entry: ImpactEntry): number {\n return entry.lifecycle !== undefined && RETIRED.has(entry.lifecycle) ? 1 : 0;\n}\n\n/** Personas, then journeys. Within each: live first, then errors, warnings and notices, descending, then id. */\nfunction worstFirst(a: ImpactEntry, b: ImpactEntry): number {\n return (\n SERVING_TYPES.indexOf(a.type) - SERVING_TYPES.indexOf(b.type) ||\n retired(a) - retired(b) ||\n b.errors - a.errors ||\n b.warnings - a.warnings ||\n b.notices - a.notices ||\n a.id.localeCompare(b.id, \"en\", { numeric: true, sensitivity: \"base\" })\n );\n}\n\n/** The roll-up: one entry per record a finding's page names, worst first. Empty when none does. */\nexport function impactOf(serving: ServingSet, findings: readonly ImpactFinding[]): ImpactEntry[] {\n const entries = new Map<StrategyRecord, ImpactEntry>();\n for (const finding of findings) {\n for (const named of serving.pages.get(finding.page) ?? []) {\n let entry = entries.get(named);\n if (entry === undefined) {\n entry = {\n type: named.type === \"persona\" ? \"persona\" : \"journey\",\n id: named.id,\n ...(named.title === undefined ? {} : { title: named.title }),\n ...(named.type === \"journey\" && named.lifecycle !== undefined ? { lifecycle: named.lifecycle } : {}),\n findings: 0,\n errors: 0,\n warnings: 0,\n notices: 0,\n pages: [],\n };\n entries.set(named, entry);\n }\n entry.findings += 1;\n if (finding.severity === \"error\") entry.errors += 1;\n else if (finding.severity === \"warning\") entry.warnings += 1;\n else entry.notices += 1;\n if (!entry.pages.includes(finding.file)) entry.pages.push(finding.file);\n }\n }\n return [...entries.values()].sort(worstFirst);\n}\n\n/** `a`, `a and b`, `a, b and c`. */\nfunction listOf(values: readonly string[]): string {\n if (values.length <= 1) return values.join(\"\");\n return `${values.slice(0, -1).join(\", \")} and ${values[values.length - 1] ?? \"\"}`;\n}\n\nfunction plural(n: number, one: string): string {\n return `${String(n)} ${one}${n === 1 ? \"\" : \"s\"}`;\n}\n\n/** `Serves maya (Maya, Documentation Engineer) and m5.`, or `undefined` for no records. */\nexport function servesSentence(records: readonly StrategyRecord[]): string | undefined {\n if (records.length === 0) return undefined;\n return `Serves ${listOf(records.map((r) => (r.title === undefined ? r.id : `${r.id} (${r.title})`)))}.`;\n}\n\n/** `The pages with findings serve 4 personas and 10 journeys.`, naming only the types present. */\nfunction headingOf(entries: readonly ImpactEntry[]): string {\n const counts = SERVING_TYPES.flatMap((type) => {\n const n = entries.filter((e) => e.type === type).length;\n return n === 0 ? [] : [plural(n, type)];\n });\n return `The pages with findings serve ${counts.join(\" and \")}.`;\n}\n\n/** The title, then `(draft)` or `(archived)` for a journey that is not live. */\nfunction titleOf(e: ImpactEntry): string {\n return [e.title, e.lifecycle !== undefined && RETIRED.has(e.lifecycle) ? `(${e.lifecycle})` : undefined]\n .filter((part) => part !== undefined)\n .join(\" \");\n}\n\n/** `3 errors and 1 warning on 2 pages`, zero parts left out. */\nfunction countsOf(e: ImpactEntry): string {\n const levels = [\n e.errors > 0 ? plural(e.errors, \"error\") : undefined,\n e.warnings > 0 ? plural(e.warnings, \"warning\") : undefined,\n e.notices > 0 ? plural(e.notices, \"notice\") : undefined,\n ].filter((level) => level !== undefined);\n return `${listOf(levels)} on ${plural(e.pages.length, \"page\")}`;\n}\n\n/** The pretty block: a heading, then one row per entry, padded to the widest id and title. Empty for no entries. */\nexport function impactLines(entries: readonly ImpactEntry[]): string[] {\n if (entries.length === 0) return [];\n const idWidth = Math.max(...entries.map((e) => e.id.length));\n const titleWidth = Math.max(...entries.map((e) => titleOf(e).length));\n const rows = entries.map((e) => ` ${e.id.padEnd(idWidth)} ${titleOf(e).padEnd(titleWidth)} ${countsOf(e)}`);\n return [headingOf(entries), ...rows];\n}\n\n/**\n * The same roll-up as one annotation (proposal 0109): the heading as its\n * title, then `<id> <title>: <counts>` per entry, unpadded. `undefined` for no\n * entries.\n */\nexport function impactNotice(entries: readonly ImpactEntry[]): { title: string; lines: string[] } | undefined {\n if (entries.length === 0) return undefined;\n return {\n title: headingOf(entries),\n lines: entries.map((e) => `${[e.id, titleOf(e)].filter((part) => part !== \"\").join(\" \")}: ${countsOf(e)}`),\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,SAAS,eAAe;;;ACCxB,IAAM,gBAAgB,IAAI,OAAO,YAAY,YAAY,OAAO,MAAM,CAAC,CAAC,IAAI,GAAG;AAExE,SAAS,oBAAoB,QAAgC;AAClE,SAAO,YAAY,OAAO,SAAS,EAAE,OAAO,OAAO,OAAO,WAAW,gBAAgB,CAAC,EAAE,QAAQ,eAAe,WAAW;AAC5H;;;ADmCA,IAAM,QAAQ;AAEd,SAAS,SAAS,SAAmC;AACnD,SAAO,YAAY,EAAE,SAAS,CAAC,QAAQ,OAAO,OAAO,QAAQ,OAAO,MAAM,CAAC;AAC7E;AAGA,eAAe,YAAY,OAAiB,SAA2D;AACrG,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,GAAI,MAAM,SAAS,WAAW,IAAI,EAAE,OAAO,MAAM,UAAU,EAAE,IAAI,CAAC;AAAA,IAClE,GAAI,QAAQ,OAAO,SAAY,CAAC,IAAI,EAAE,IAAI,QAAQ,GAAG;AAAA,IACrD,GAAI,QAAQ,QAAQ,SAAY,CAAC,IAAI,EAAE,MAAM,UAAU,QAAQ,GAAG,EAAE;AAAA,IACpE,SAAS,QAAQ;AAAA,IACjB,YAAY,QAAQ;A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,MAAM,CAAC;AACpE,QAAM,OAAO,QAAQ,IAAI,CAAC,MAAM,KAAK,EAAE,GAAG,OAAO,OAAO,CAAC,MAAM,QAAQ,CAAC,EAAE,OAAO,UAAU,CAAC,MAAM,SAAS,CAAC,CAAC,EAAE;AAC/G,SAAO,CAAC,UAAU,OAAO,GAAG,GAAG,IAAI;AACrC;AAOO,SAAS,aAAa,SAAiF;AAC5G,MAAI,QAAQ,WAAW,EAAG,QAAO;AACjC,SAAO;AAAA,IACL,OAAO,UAAU,OAAO;AAAA,IACxB,OAAO,QAAQ,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,IAAI,QAAQ,CAAC,CAAC,EAAE,OAAO,CAAC,SAAS,SAAS,EAAE,EAAE,KAAK,GAAG,CAAC,KAAK,SAAS,CAAC,CAAC,EAAE;AAAA,EAC3G;AACF;","names":[]}
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
renderCalibration,
|
|
4
4
|
resolveBatchTraces,
|
|
5
5
|
runBatch
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WPHPLVS3.js";
|
|
7
7
|
import {
|
|
8
8
|
discoverConfig,
|
|
9
9
|
labelKey,
|
|
10
10
|
loadLabels
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3ZVRGBK6.js";
|
|
12
12
|
import {
|
|
13
13
|
assertProviderSelection,
|
|
14
14
|
selectProvider
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NHOGTAPK.js";
|
|
16
16
|
import {
|
|
17
17
|
TracevalsError
|
|
18
18
|
} from "./chunk-ZINZTHWO.js";
|
|
@@ -378,4 +378,4 @@ export {
|
|
|
378
378
|
score,
|
|
379
379
|
runCalibrate
|
|
380
380
|
};
|
|
381
|
-
//# sourceMappingURL=chunk-
|
|
381
|
+
//# sourceMappingURL=chunk-BOCJTOKA.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
constructProvider,
|
|
11
11
|
resolveSelectionIdentity,
|
|
12
12
|
selectProvider
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NHOGTAPK.js";
|
|
14
14
|
import {
|
|
15
15
|
TracevalsError
|
|
16
16
|
} from "./chunk-ZINZTHWO.js";
|
|
@@ -499,4 +499,4 @@ export {
|
|
|
499
499
|
localGate,
|
|
500
500
|
assertDownloaded
|
|
501
501
|
};
|
|
502
|
-
//# sourceMappingURL=chunk-
|
|
502
|
+
//# sourceMappingURL=chunk-BZ74YUYE.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
canonicalLanguageTag,
|
|
4
4
|
parseLocalizations
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MGQNGW6I.js";
|
|
6
6
|
import {
|
|
7
7
|
GRAPH_NOT_APPLICABLE_TO_VARIANT,
|
|
8
8
|
GRAPH_NOT_SOFTWARE_SUBJECT,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
RDF_TYPE,
|
|
13
13
|
SOFTWARE_SUBJECT_IRIS,
|
|
14
14
|
byCodeUnit
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LHP56Q45.js";
|
|
16
16
|
|
|
17
17
|
// src/graph/core/vector-index.ts
|
|
18
18
|
var MAGIC = new Uint8Array([77, 71, 82, 86]);
|
|
@@ -1337,4 +1337,4 @@ export {
|
|
|
1337
1337
|
artifactContext,
|
|
1338
1338
|
createRetriever
|
|
1339
1339
|
};
|
|
1340
|
-
//# sourceMappingURL=chunk-
|
|
1340
|
+
//# sourceMappingURL=chunk-C2QE4FSZ.js.map
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
detectFramework,
|
|
4
4
|
loadSiteConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-D4BGNAN5.js";
|
|
6
6
|
import {
|
|
7
7
|
canonicalLanguage,
|
|
8
8
|
deriveGraph,
|
|
9
9
|
termIndex
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UQYDLEBS.js";
|
|
11
11
|
import {
|
|
12
12
|
EmbedderUnavailableError,
|
|
13
13
|
bodyOf,
|
|
@@ -28,13 +28,15 @@ import {
|
|
|
28
28
|
partitionByLanguage,
|
|
29
29
|
storeToQuads,
|
|
30
30
|
validateGraph
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-EPN67ZNX.js";
|
|
32
32
|
import {
|
|
33
33
|
GraphIndex,
|
|
34
34
|
encodeVectorIndex
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-C2QE4FSZ.js";
|
|
36
36
|
import {
|
|
37
37
|
COPIED_SHARE,
|
|
38
|
+
EVALS_ARE_AUTHOR_FACING,
|
|
39
|
+
NO_AUTHORING_EXPORT,
|
|
38
40
|
copiedPairs,
|
|
39
41
|
deliveredFields,
|
|
40
42
|
mergePage,
|
|
@@ -42,7 +44,7 @@ import {
|
|
|
42
44
|
questionKey,
|
|
43
45
|
readQuestionFile,
|
|
44
46
|
withExternalMetadata
|
|
45
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-LT3STF5K.js";
|
|
46
48
|
import {
|
|
47
49
|
LOCALIZATIONS_FILENAME,
|
|
48
50
|
UNDETERMINED,
|
|
@@ -53,7 +55,7 @@ import {
|
|
|
53
55
|
parseLocalizations,
|
|
54
56
|
searchIndexFilename,
|
|
55
57
|
vectorIndexFilename
|
|
56
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-MGQNGW6I.js";
|
|
57
59
|
import {
|
|
58
60
|
COVERAGE_FIELDS,
|
|
59
61
|
GRAPH_NOT_APPLICABLE_TO_VARIANT,
|
|
@@ -101,13 +103,12 @@ import {
|
|
|
101
103
|
noInputMessage,
|
|
102
104
|
resolveDocumentSet,
|
|
103
105
|
routesFrom
|
|
104
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-LHP56Q45.js";
|
|
105
107
|
import {
|
|
108
|
+
mergeMetaProvenance,
|
|
109
|
+
readRecord,
|
|
106
110
|
splitBody
|
|
107
|
-
} from "./chunk-
|
|
108
|
-
import {
|
|
109
|
-
mergeMetaProvenance
|
|
110
|
-
} from "./chunk-D5GBYKDU.js";
|
|
111
|
+
} from "./chunk-AZKNB2T3.js";
|
|
111
112
|
import {
|
|
112
113
|
findWindows,
|
|
113
114
|
isMissing,
|
|
@@ -116,7 +117,7 @@ import {
|
|
|
116
117
|
pinOfLines,
|
|
117
118
|
spellLines,
|
|
118
119
|
spliceManifestValue
|
|
119
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-KX6HRTLH.js";
|
|
120
121
|
import {
|
|
121
122
|
termLabelSource
|
|
122
123
|
} from "./chunk-DSWKBZWW.js";
|
|
@@ -124,7 +125,7 @@ import {
|
|
|
124
125
|
DocmetaError,
|
|
125
126
|
urlManifestMessage,
|
|
126
127
|
writeFileAtomic
|
|
127
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-QWVIGKBM.js";
|
|
128
129
|
import {
|
|
129
130
|
noticeOnce,
|
|
130
131
|
warn
|
|
@@ -139,7 +140,7 @@ import {
|
|
|
139
140
|
providerSpecFor,
|
|
140
141
|
resolveIdentity,
|
|
141
142
|
selectProvider
|
|
142
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-NVYDWVXN.js";
|
|
143
144
|
import {
|
|
144
145
|
errorMessage
|
|
145
146
|
} from "./chunk-G3T47CFV.js";
|
|
@@ -508,6 +509,7 @@ async function exportLlms(opts) {
|
|
|
508
509
|
for (const [n, page] of pages.entries()) {
|
|
509
510
|
const route = routeOf(page.path, routes, style);
|
|
510
511
|
const model = models[n];
|
|
512
|
+
if (model !== void 0 && opts.authoring === false && readRecord(model.frontmatter, page.path) !== void 0) continue;
|
|
511
513
|
if (route === void 0 || model === void 0) {
|
|
512
514
|
unrouted += 1;
|
|
513
515
|
continue;
|
|
@@ -665,6 +667,9 @@ async function runExport(opts) {
|
|
|
665
667
|
if (opts.evals !== void 0 && opts.format !== "chunks") {
|
|
666
668
|
throw new GraphError("--evals applies only to graph export chunks.");
|
|
667
669
|
}
|
|
670
|
+
if (opts.authoring === false && opts.format !== "chunks" && opts.format !== "llms") {
|
|
671
|
+
throw new GraphError(NO_AUTHORING_EXPORT);
|
|
672
|
+
}
|
|
668
673
|
const config = loadRunConfig(
|
|
669
674
|
{
|
|
670
675
|
...opts.config === void 0 ? {} : { configPath: opts.config },
|
|
@@ -672,6 +677,8 @@ async function runExport(opts) {
|
|
|
672
677
|
},
|
|
673
678
|
cwd
|
|
674
679
|
);
|
|
680
|
+
const authoring = opts.authoring ?? config.authoring;
|
|
681
|
+
if (!authoring && opts.evals !== void 0) throw new GraphError(EVALS_ARE_AUTHOR_FACING);
|
|
675
682
|
const graphPath = resolve3(cwd, opts.graph ?? config.out);
|
|
676
683
|
const sources = documentBase(config, {}, cwd);
|
|
677
684
|
if (opts.format === "jsonld") return runJsonLd(cwd, graphPath, opts.out);
|
|
@@ -688,7 +695,8 @@ async function runExport(opts) {
|
|
|
688
695
|
graphPath,
|
|
689
696
|
// `--out` names the directory, as for `search`: there is more than one file.
|
|
690
697
|
outDir: opts.out ? resolve3(cwd, opts.out) : dirname2(graphPath),
|
|
691
|
-
...evals === void 0 ? {} : { evals }
|
|
698
|
+
...evals === void 0 ? {} : { evals },
|
|
699
|
+
authoring
|
|
692
700
|
});
|
|
693
701
|
return {
|
|
694
702
|
outPath: result.manifestPath,
|
|
@@ -710,7 +718,8 @@ async function runExport(opts) {
|
|
|
710
718
|
...opts.noConfig === void 0 ? {} : { noConfig: opts.noConfig }
|
|
711
719
|
},
|
|
712
720
|
graphPath,
|
|
713
|
-
outPath
|
|
721
|
+
outPath,
|
|
722
|
+
authoring
|
|
714
723
|
});
|
|
715
724
|
return { outPath, format: "llms", nodes: pages, warnings, files: [outPath] };
|
|
716
725
|
}
|
|
@@ -3300,4 +3309,4 @@ export {
|
|
|
3300
3309
|
runStats,
|
|
3301
3310
|
renderStats
|
|
3302
3311
|
};
|
|
3303
|
-
//# sourceMappingURL=chunk-
|
|
3312
|
+
//# sourceMappingURL=chunk-CLUUSZDY.js.map
|