@hawkeyexl/manni 4.20.0 → 4.21.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-TBQBH6XQ.js → batch-C534YIAU.js} +14 -14
- package/dist/{build-S3JQMDFX.js → build-SVKT7QFU.js} +16 -15
- package/dist/{calibrate-KLN22IGS.js → calibrate-AL3MH7TY.js} +15 -15
- package/dist/{capture-JS3ICXE7.js → capture-2F7B4DAD.js} +14 -14
- package/dist/check-BI7OGIVE.js +48 -0
- package/dist/{check-WS2USSUD.js → check-JZINDP3F.js} +13 -13
- package/dist/{check-2EAR4ZW3.js → check-LKPQPQWJ.js} +15 -15
- package/dist/check-OPUMZEVK.js +35 -0
- package/dist/{check-PDXYA6XH.js → check-OW7UD73D.js} +12 -12
- package/dist/{chunk-JKH2LV5D.js → chunk-22WGKOQ7.js} +5 -5
- package/dist/{chunk-IGAZWY2W.js → chunk-2HOWRAWK.js} +2 -2
- package/dist/{chunk-KZ7534CD.js → chunk-2NGFDLIM.js} +3 -3
- package/dist/{chunk-SOW6SVAM.js → chunk-2YKUSTHS.js} +4 -4
- package/dist/{chunk-DQO44Y5G.js → chunk-3SFAB75L.js} +5 -5
- package/dist/{chunk-BEQZI3V5.js → chunk-5LE4NH3Z.js} +24 -7
- package/dist/chunk-5LE4NH3Z.js.map +1 -0
- package/dist/{chunk-U2CE55YV.js → chunk-5UJKXOAD.js} +5 -5
- package/dist/chunk-6XK3NTL5.js +706 -0
- package/dist/chunk-6XK3NTL5.js.map +1 -0
- package/dist/{chunk-6D7FCU4E.js → chunk-762MM6NA.js} +3 -3
- package/dist/{chunk-ZEKQRBXO.js → chunk-A4QNKEX4.js} +2 -2
- package/dist/{chunk-2G4XYGTN.js → chunk-AE6KBAAU.js} +7 -7
- package/dist/chunk-AE6KBAAU.js.map +1 -0
- package/dist/{chunk-SX626JUF.js → chunk-APAF4VWW.js} +3 -3
- package/dist/{chunk-BV7FJ4V2.js → chunk-ARNI3SJT.js} +8 -8
- package/dist/chunk-ARNI3SJT.js.map +1 -0
- package/dist/{chunk-DTSWP5FC.js → chunk-BHGFLRXM.js} +5 -5
- package/dist/{chunk-PGDUVYTF.js → chunk-BJUEOC4G.js} +2 -2
- package/dist/{chunk-5MJE5KMY.js → chunk-BKY6GAFA.js} +8 -8
- package/dist/{chunk-ITA7V5Y2.js → chunk-BLXRIAV2.js} +4 -4
- package/dist/{chunk-SFSALDIR.js → chunk-BXCVOHEX.js} +7 -7
- package/dist/{chunk-PHOWMWFJ.js → chunk-BXE4L52Q.js} +2 -11
- package/dist/chunk-BXE4L52Q.js.map +1 -0
- package/dist/{chunk-VCU7OMXV.js → chunk-CLPC3LKX.js} +13 -9
- package/dist/chunk-CLPC3LKX.js.map +1 -0
- package/dist/{chunk-PTXHJLAS.js → chunk-CREFJCWZ.js} +7 -7
- package/dist/chunk-CREFJCWZ.js.map +1 -0
- package/dist/{chunk-FRM62BEN.js → chunk-CZIO37J5.js} +3 -3
- package/dist/{chunk-SFTWEGUD.js → chunk-D4QHRVDJ.js} +2 -2
- package/dist/{chunk-6VGWLCYT.js → chunk-D5GBYKDU.js} +2 -2
- package/dist/{chunk-RXCDT55X.js → chunk-DENZLZ3Z.js} +34 -32
- package/dist/chunk-DENZLZ3Z.js.map +1 -0
- package/dist/{chunk-GVOI7SCF.js → chunk-DMVBIIP3.js} +3 -3
- package/dist/{chunk-5HB4YKZW.js → chunk-DPDG3FHL.js} +17 -3
- package/dist/chunk-DPDG3FHL.js.map +1 -0
- package/dist/{chunk-O26NQ7KT.js → chunk-E23KWEPL.js} +2 -2
- package/dist/{chunk-NDQA4VYK.js → chunk-E7OG5F6S.js} +3 -3
- package/dist/{chunk-HIZNNOVW.js → chunk-FHJIH6XP.js} +16 -106
- package/dist/chunk-FHJIH6XP.js.map +1 -0
- package/dist/{chunk-JNMY7KZG.js → chunk-G5I2JTDK.js} +2 -2
- package/dist/{chunk-O4O6JOGD.js → chunk-GMLOAKOA.js} +16 -4
- package/dist/chunk-GMLOAKOA.js.map +1 -0
- package/dist/{chunk-4KM23E53.js → chunk-H5YWCCBO.js} +16 -11
- package/dist/chunk-H5YWCCBO.js.map +1 -0
- package/dist/{chunk-HSC5G3FW.js → chunk-HHJ2HFPP.js} +8 -8
- package/dist/{chunk-HZWLHSZG.js → chunk-IN5T22FP.js} +2 -2
- package/dist/{chunk-FERFWKZM.js → chunk-IOJD2RFG.js} +2 -2
- package/dist/{chunk-ZODSGFAP.js → chunk-JQA6RF4R.js} +22 -22
- package/dist/{chunk-ZODSGFAP.js.map → chunk-JQA6RF4R.js.map} +1 -1
- package/dist/{chunk-GCF7STEA.js → chunk-JUUCCML3.js} +4 -4
- package/dist/{chunk-3OXBZSDN.js → chunk-KBSTXL6L.js} +3 -3
- package/dist/{chunk-SRTBHEUM.js → chunk-KCWNJMSS.js} +3 -3
- package/dist/{chunk-2XRSQXGZ.js → chunk-KQDRO6N6.js} +2 -2
- package/dist/{chunk-ZVEDBFTM.js → chunk-LWBNHK72.js} +45 -41
- package/dist/chunk-LWBNHK72.js.map +1 -0
- package/dist/{chunk-QSY5YPM4.js → chunk-MTCOBRCX.js} +4 -4
- package/dist/{chunk-Q5EKERQS.js → chunk-NLJ3XIKT.js} +7 -5
- package/dist/{chunk-Q5EKERQS.js.map → chunk-NLJ3XIKT.js.map} +1 -1
- package/dist/{chunk-RGZBROMW.js → chunk-OWJLB2AF.js} +2 -2
- package/dist/{chunk-QA7AXRGH.js → chunk-P7HAXMFN.js} +2 -2
- package/dist/{chunk-GXDVERLV.js → chunk-PACZEDOH.js} +5 -5
- package/dist/{chunk-QSPH4F56.js → chunk-PTGXEZQD.js} +2 -2
- package/dist/chunk-PTGXEZQD.js.map +1 -0
- package/dist/{chunk-UKSXQHSE.js → chunk-Q76T6Y6X.js} +6 -6
- package/dist/{chunk-SGI3WPYK.js → chunk-R2CR62JV.js} +4 -4
- package/dist/{chunk-MLY65CQE.js → chunk-RKACUTY5.js} +7 -7
- package/dist/{chunk-MNK732BZ.js → chunk-RQPEKHZH.js} +14 -11
- package/dist/chunk-RQPEKHZH.js.map +1 -0
- package/dist/{chunk-EBYLQE7P.js → chunk-RWXR3GJI.js} +2 -2
- package/dist/{chunk-JOZVVIVD.js → chunk-S5G6T4VC.js} +3 -3
- package/dist/chunk-SHXPE4D4.js +100 -0
- package/dist/chunk-SHXPE4D4.js.map +1 -0
- package/dist/{chunk-GL2HXZVX.js → chunk-TFVNEPMF.js} +3 -3
- package/dist/{chunk-TKINOTVS.js → chunk-TI4DA6DF.js} +1 -1
- package/dist/{chunk-TKINOTVS.js.map → chunk-TI4DA6DF.js.map} +1 -1
- package/dist/{chunk-I62V2ZAJ.js → chunk-U4OJ7U45.js} +8 -8
- package/dist/{chunk-QWCP7UMG.js → chunk-V2XJJEEF.js} +6 -6
- package/dist/{chunk-5UJQLZXY.js → chunk-VLRIP4BQ.js} +60 -63
- package/dist/chunk-VLRIP4BQ.js.map +1 -0
- package/dist/{chunk-ZRMA5U53.js → chunk-WHVFHBL3.js} +3 -3
- package/dist/{chunk-IYRGV2BC.js → chunk-XBJKYXOR.js} +6 -6
- package/dist/{chunk-ZBE735BH.js → chunk-XI3BNZG4.js} +5 -5
- package/dist/{chunk-Z6FATXBE.js → chunk-YSZNJ2ID.js} +2 -2
- package/dist/{cli-4HH6IY2L.js → cli-3PBRPPMQ.js} +14 -14
- package/dist/{cli-GVHXRQAD.js → cli-6NKE6RMT.js} +18 -18
- package/dist/{cli-T4NY2EGM.js → cli-77A46SB2.js} +17 -17
- package/dist/{cli-EQG4KETY.js → cli-AVHLY2AI.js} +61 -45
- package/dist/cli-AVHLY2AI.js.map +1 -0
- package/dist/{cli-UIY57JPM.js → cli-FDXU7CGZ.js} +16 -15
- package/dist/{cli-UIY57JPM.js.map → cli-FDXU7CGZ.js.map} +1 -1
- package/dist/{cli-5BFVL3DH.js → cli-FSDJY5OC.js} +2 -2
- package/dist/{cli-L7H4C442.js → cli-JNYL6LB7.js} +16 -16
- package/dist/{cli-HTAR3PWY.js → cli-K47XWDLJ.js} +21 -21
- package/dist/{cli-ZPW5VIRA.js → cli-LP5OE3BL.js} +9 -9
- package/dist/{cli-AR43H5BW.js → cli-MOKRUHZT.js} +9 -9
- package/dist/{cli-4IE6CRAT.js → cli-MQXOK64K.js} +27 -26
- package/dist/{cli-4IE6CRAT.js.map → cli-MQXOK64K.js.map} +1 -1
- package/dist/cli.js +15 -15
- package/dist/{config-7I5CHHRZ.js → config-BMWDC66C.js} +2 -2
- package/dist/docmeta.d.ts +1 -1
- package/dist/docmeta.js +8 -8
- package/dist/github-6GYTPSGV.js +35 -0
- package/dist/{github-RIU47U73.js → github-DJOLVNDD.js} +12 -12
- package/dist/{github-CMWG4QMI.js → github-ZF2TQ3RP.js} +14 -14
- package/dist/graph/embed.d.ts +2 -1
- package/dist/graph/runtime.d.ts +2 -1
- package/dist/index.d.ts +29 -15
- package/dist/index.js +51 -49
- package/dist/index.js.map +1 -1
- package/dist/json-Y7625EFE.js +42 -0
- package/dist/{json-KSBVGZUX.js → json-YIK72XAL.js} +12 -12
- package/dist/{labels-VNKACCAG.js → labels-X633ZPK7.js} +11 -11
- package/dist/{lint-75BD6L5T.js → lint-RF3B55W7.js} +14 -14
- package/dist/{list-MH54XU7E.js → list-5DW4QZ7P.js} +12 -12
- package/dist/list-7CHWJ633.js +39 -0
- package/dist/{list-PHNZAYIM.js → list-UNWG6NPD.js} +12 -12
- package/dist/{page-5AJS7AEM.js → page-OMPEACUN.js} +11 -11
- package/dist/{prepare-R63RJI6O.js → prepare-B4JVDVOV.js} +13 -13
- package/dist/{pretty-DE4WXJFA.js → pretty-PPNHHOEN.js} +13 -13
- package/dist/{pretty-E3DS32NZ.js → pretty-U7ATCFBN.js} +12 -12
- package/dist/pretty-XGYQ25PH.js +43 -0
- package/dist/{reporters-V2PSDBVW.js → reporters-FAIEOTC4.js} +13 -13
- package/dist/{reporters-DLMLFLKS.js → reporters-KE7AZR6C.js} +4 -4
- package/dist/{run-QT2LVHRU.js → run-MHJ3AYKG.js} +12 -12
- package/dist/{sarif-GKMUHCZB.js → sarif-DOGRSGTB.js} +10 -10
- package/dist/{sarif-HUIRTPSL.js → sarif-MIEMQOIK.js} +11 -11
- package/dist/{sarif-2ZKPRT42.js → sarif-RGRG7VFX.js} +15 -15
- package/dist/{strategy-TBFM7NZU.js → strategy-EK5VY5DG.js} +24 -23
- package/dist/{strategy-TBFM7NZU.js.map → strategy-EK5VY5DG.js.map} +1 -1
- package/dist/{term-ZZWAVUW5.js → term-MDN3NJDW.js} +17 -17
- package/dist/{validate-ZEUFF3BG.js → validate-QDYQ642J.js} +5 -5
- package/package.json +21 -21
- package/plugin/manni/.claude-plugin/plugin.json +11 -3
- package/plugin/manni/hooks/hooks.json +4 -4
- package/plugin/manni/hooks/manni.mjs +47 -7
- package/plugin/manni/hooks/tracevals.mjs +7 -0
- package/plugin/manni/skills/fix/SKILL.md +5 -1
- package/dist/check-6D2JCIMD.js +0 -47
- package/dist/check-RNAB7X74.js +0 -33
- package/dist/chunk-2G4XYGTN.js.map +0 -1
- package/dist/chunk-4KM23E53.js.map +0 -1
- package/dist/chunk-5HB4YKZW.js.map +0 -1
- package/dist/chunk-5UJQLZXY.js.map +0 -1
- package/dist/chunk-BEQZI3V5.js.map +0 -1
- package/dist/chunk-BV7FJ4V2.js.map +0 -1
- package/dist/chunk-HIZNNOVW.js.map +0 -1
- package/dist/chunk-MNK732BZ.js.map +0 -1
- package/dist/chunk-NEO2HN2N.js +0 -326
- package/dist/chunk-NEO2HN2N.js.map +0 -1
- package/dist/chunk-O4O6JOGD.js.map +0 -1
- package/dist/chunk-PHOWMWFJ.js.map +0 -1
- package/dist/chunk-PTXHJLAS.js.map +0 -1
- package/dist/chunk-QSPH4F56.js.map +0 -1
- package/dist/chunk-RXCDT55X.js.map +0 -1
- package/dist/chunk-SIREOHLW.js +0 -233
- package/dist/chunk-SIREOHLW.js.map +0 -1
- package/dist/chunk-VCU7OMXV.js.map +0 -1
- package/dist/chunk-ZVEDBFTM.js.map +0 -1
- package/dist/cli-EQG4KETY.js.map +0 -1
- package/dist/github-NIRLMJ65.js +0 -27
- package/dist/json-EJTB7XYG.js +0 -34
- package/dist/list-6XVIW3RW.js +0 -33
- package/dist/pretty-SUKMF6AB.js +0 -35
- /package/dist/{batch-TBQBH6XQ.js.map → batch-C534YIAU.js.map} +0 -0
- /package/dist/{build-S3JQMDFX.js.map → build-SVKT7QFU.js.map} +0 -0
- /package/dist/{calibrate-KLN22IGS.js.map → calibrate-AL3MH7TY.js.map} +0 -0
- /package/dist/{capture-JS3ICXE7.js.map → capture-2F7B4DAD.js.map} +0 -0
- /package/dist/{check-6D2JCIMD.js.map → check-BI7OGIVE.js.map} +0 -0
- /package/dist/{check-PDXYA6XH.js.map → check-JZINDP3F.js.map} +0 -0
- /package/dist/{check-2EAR4ZW3.js.map → check-LKPQPQWJ.js.map} +0 -0
- /package/dist/{check-RNAB7X74.js.map → check-OPUMZEVK.js.map} +0 -0
- /package/dist/{check-WS2USSUD.js.map → check-OW7UD73D.js.map} +0 -0
- /package/dist/{chunk-JKH2LV5D.js.map → chunk-22WGKOQ7.js.map} +0 -0
- /package/dist/{chunk-IGAZWY2W.js.map → chunk-2HOWRAWK.js.map} +0 -0
- /package/dist/{chunk-KZ7534CD.js.map → chunk-2NGFDLIM.js.map} +0 -0
- /package/dist/{chunk-SOW6SVAM.js.map → chunk-2YKUSTHS.js.map} +0 -0
- /package/dist/{chunk-DQO44Y5G.js.map → chunk-3SFAB75L.js.map} +0 -0
- /package/dist/{chunk-U2CE55YV.js.map → chunk-5UJKXOAD.js.map} +0 -0
- /package/dist/{chunk-6D7FCU4E.js.map → chunk-762MM6NA.js.map} +0 -0
- /package/dist/{chunk-ZEKQRBXO.js.map → chunk-A4QNKEX4.js.map} +0 -0
- /package/dist/{chunk-SX626JUF.js.map → chunk-APAF4VWW.js.map} +0 -0
- /package/dist/{chunk-DTSWP5FC.js.map → chunk-BHGFLRXM.js.map} +0 -0
- /package/dist/{chunk-PGDUVYTF.js.map → chunk-BJUEOC4G.js.map} +0 -0
- /package/dist/{chunk-5MJE5KMY.js.map → chunk-BKY6GAFA.js.map} +0 -0
- /package/dist/{chunk-ITA7V5Y2.js.map → chunk-BLXRIAV2.js.map} +0 -0
- /package/dist/{chunk-SFSALDIR.js.map → chunk-BXCVOHEX.js.map} +0 -0
- /package/dist/{chunk-FRM62BEN.js.map → chunk-CZIO37J5.js.map} +0 -0
- /package/dist/{chunk-SFTWEGUD.js.map → chunk-D4QHRVDJ.js.map} +0 -0
- /package/dist/{chunk-6VGWLCYT.js.map → chunk-D5GBYKDU.js.map} +0 -0
- /package/dist/{chunk-GVOI7SCF.js.map → chunk-DMVBIIP3.js.map} +0 -0
- /package/dist/{chunk-O26NQ7KT.js.map → chunk-E23KWEPL.js.map} +0 -0
- /package/dist/{chunk-NDQA4VYK.js.map → chunk-E7OG5F6S.js.map} +0 -0
- /package/dist/{chunk-JNMY7KZG.js.map → chunk-G5I2JTDK.js.map} +0 -0
- /package/dist/{chunk-HSC5G3FW.js.map → chunk-HHJ2HFPP.js.map} +0 -0
- /package/dist/{chunk-HZWLHSZG.js.map → chunk-IN5T22FP.js.map} +0 -0
- /package/dist/{chunk-FERFWKZM.js.map → chunk-IOJD2RFG.js.map} +0 -0
- /package/dist/{chunk-GCF7STEA.js.map → chunk-JUUCCML3.js.map} +0 -0
- /package/dist/{chunk-3OXBZSDN.js.map → chunk-KBSTXL6L.js.map} +0 -0
- /package/dist/{chunk-SRTBHEUM.js.map → chunk-KCWNJMSS.js.map} +0 -0
- /package/dist/{chunk-2XRSQXGZ.js.map → chunk-KQDRO6N6.js.map} +0 -0
- /package/dist/{chunk-QSY5YPM4.js.map → chunk-MTCOBRCX.js.map} +0 -0
- /package/dist/{chunk-RGZBROMW.js.map → chunk-OWJLB2AF.js.map} +0 -0
- /package/dist/{chunk-QA7AXRGH.js.map → chunk-P7HAXMFN.js.map} +0 -0
- /package/dist/{chunk-GXDVERLV.js.map → chunk-PACZEDOH.js.map} +0 -0
- /package/dist/{chunk-UKSXQHSE.js.map → chunk-Q76T6Y6X.js.map} +0 -0
- /package/dist/{chunk-SGI3WPYK.js.map → chunk-R2CR62JV.js.map} +0 -0
- /package/dist/{chunk-MLY65CQE.js.map → chunk-RKACUTY5.js.map} +0 -0
- /package/dist/{chunk-EBYLQE7P.js.map → chunk-RWXR3GJI.js.map} +0 -0
- /package/dist/{chunk-JOZVVIVD.js.map → chunk-S5G6T4VC.js.map} +0 -0
- /package/dist/{chunk-GL2HXZVX.js.map → chunk-TFVNEPMF.js.map} +0 -0
- /package/dist/{chunk-I62V2ZAJ.js.map → chunk-U4OJ7U45.js.map} +0 -0
- /package/dist/{chunk-QWCP7UMG.js.map → chunk-V2XJJEEF.js.map} +0 -0
- /package/dist/{chunk-ZRMA5U53.js.map → chunk-WHVFHBL3.js.map} +0 -0
- /package/dist/{chunk-IYRGV2BC.js.map → chunk-XBJKYXOR.js.map} +0 -0
- /package/dist/{chunk-ZBE735BH.js.map → chunk-XI3BNZG4.js.map} +0 -0
- /package/dist/{chunk-Z6FATXBE.js.map → chunk-YSZNJ2ID.js.map} +0 -0
- /package/dist/{cli-4HH6IY2L.js.map → cli-3PBRPPMQ.js.map} +0 -0
- /package/dist/{cli-GVHXRQAD.js.map → cli-6NKE6RMT.js.map} +0 -0
- /package/dist/{cli-T4NY2EGM.js.map → cli-77A46SB2.js.map} +0 -0
- /package/dist/{cli-5BFVL3DH.js.map → cli-FSDJY5OC.js.map} +0 -0
- /package/dist/{cli-L7H4C442.js.map → cli-JNYL6LB7.js.map} +0 -0
- /package/dist/{cli-HTAR3PWY.js.map → cli-K47XWDLJ.js.map} +0 -0
- /package/dist/{cli-ZPW5VIRA.js.map → cli-LP5OE3BL.js.map} +0 -0
- /package/dist/{cli-AR43H5BW.js.map → cli-MOKRUHZT.js.map} +0 -0
- /package/dist/{config-7I5CHHRZ.js.map → config-BMWDC66C.js.map} +0 -0
- /package/dist/{github-CMWG4QMI.js.map → github-6GYTPSGV.js.map} +0 -0
- /package/dist/{github-NIRLMJ65.js.map → github-DJOLVNDD.js.map} +0 -0
- /package/dist/{github-RIU47U73.js.map → github-ZF2TQ3RP.js.map} +0 -0
- /package/dist/{json-EJTB7XYG.js.map → json-Y7625EFE.js.map} +0 -0
- /package/dist/{json-KSBVGZUX.js.map → json-YIK72XAL.js.map} +0 -0
- /package/dist/{labels-VNKACCAG.js.map → labels-X633ZPK7.js.map} +0 -0
- /package/dist/{lint-75BD6L5T.js.map → lint-RF3B55W7.js.map} +0 -0
- /package/dist/{list-6XVIW3RW.js.map → list-5DW4QZ7P.js.map} +0 -0
- /package/dist/{list-MH54XU7E.js.map → list-7CHWJ633.js.map} +0 -0
- /package/dist/{list-PHNZAYIM.js.map → list-UNWG6NPD.js.map} +0 -0
- /package/dist/{page-5AJS7AEM.js.map → page-OMPEACUN.js.map} +0 -0
- /package/dist/{prepare-R63RJI6O.js.map → prepare-B4JVDVOV.js.map} +0 -0
- /package/dist/{pretty-DE4WXJFA.js.map → pretty-PPNHHOEN.js.map} +0 -0
- /package/dist/{pretty-E3DS32NZ.js.map → pretty-U7ATCFBN.js.map} +0 -0
- /package/dist/{pretty-SUKMF6AB.js.map → pretty-XGYQ25PH.js.map} +0 -0
- /package/dist/{reporters-DLMLFLKS.js.map → reporters-FAIEOTC4.js.map} +0 -0
- /package/dist/{reporters-V2PSDBVW.js.map → reporters-KE7AZR6C.js.map} +0 -0
- /package/dist/{run-QT2LVHRU.js.map → run-MHJ3AYKG.js.map} +0 -0
- /package/dist/{sarif-2ZKPRT42.js.map → sarif-DOGRSGTB.js.map} +0 -0
- /package/dist/{sarif-GKMUHCZB.js.map → sarif-MIEMQOIK.js.map} +0 -0
- /package/dist/{sarif-HUIRTPSL.js.map → sarif-RGRG7VFX.js.map} +0 -0
- /package/dist/{term-ZZWAVUW5.js.map → term-MDN3NJDW.js.map} +0 -0
- /package/dist/{validate-ZEUFF3BG.js.map → validate-QDYQ642J.js.map} +0 -0
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
import {
|
|
3
3
|
FIELD_LABEL,
|
|
4
4
|
renderFindingsSarif
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-DMVBIIP3.js";
|
|
6
|
+
import "./chunk-GMLOAKOA.js";
|
|
7
7
|
import "./chunk-UP6NBQ62.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-2NGFDLIM.js";
|
|
9
|
+
import "./chunk-Q76T6Y6X.js";
|
|
10
|
+
import "./chunk-D5GBYKDU.js";
|
|
11
|
+
import "./chunk-762MM6NA.js";
|
|
12
|
+
import "./chunk-S5G6T4VC.js";
|
|
13
|
+
import "./chunk-BXE4L52Q.js";
|
|
14
14
|
import "./chunk-DSWKBZWW.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-BJUEOC4G.js";
|
|
16
16
|
import "./chunk-QK6VYJHV.js";
|
|
17
17
|
import "./chunk-RNVYGWIC.js";
|
|
18
18
|
import "./chunk-YEUYKR62.js";
|
|
19
19
|
import "./chunk-B2242FYO.js";
|
|
20
20
|
import "./chunk-HX44GB4Z.js";
|
|
21
21
|
import "./chunk-VM7VAFJW.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-JQA6RF4R.js";
|
|
23
23
|
import "./chunk-OWBRDNRZ.js";
|
|
24
24
|
import "./chunk-G3T47CFV.js";
|
|
25
25
|
import "./chunk-2H7UOFLK.js";
|
|
@@ -27,4 +27,4 @@ export {
|
|
|
27
27
|
FIELD_LABEL,
|
|
28
28
|
renderFindingsSarif
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=sarif-
|
|
30
|
+
//# sourceMappingURL=sarif-MIEMQOIK.js.map
|
|
@@ -3,28 +3,28 @@ import {
|
|
|
3
3
|
ENTRY_LABEL,
|
|
4
4
|
renderCheckSarif,
|
|
5
5
|
withFindingMessages
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-BHGFLRXM.js";
|
|
7
|
+
import "./chunk-CZIO37J5.js";
|
|
8
|
+
import "./chunk-WHVFHBL3.js";
|
|
9
|
+
import "./chunk-R2CR62JV.js";
|
|
10
|
+
import "./chunk-TFVNEPMF.js";
|
|
11
|
+
import "./chunk-KCWNJMSS.js";
|
|
11
12
|
import "./chunk-UP6NBQ62.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-PHOWMWFJ.js";
|
|
13
|
+
import "./chunk-2NGFDLIM.js";
|
|
14
|
+
import "./chunk-Q76T6Y6X.js";
|
|
15
|
+
import "./chunk-D5GBYKDU.js";
|
|
16
|
+
import "./chunk-762MM6NA.js";
|
|
17
|
+
import "./chunk-S5G6T4VC.js";
|
|
18
|
+
import "./chunk-BXE4L52Q.js";
|
|
19
19
|
import "./chunk-DSWKBZWW.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-BJUEOC4G.js";
|
|
21
21
|
import "./chunk-QK6VYJHV.js";
|
|
22
22
|
import "./chunk-RNVYGWIC.js";
|
|
23
23
|
import "./chunk-YEUYKR62.js";
|
|
24
24
|
import "./chunk-B2242FYO.js";
|
|
25
25
|
import "./chunk-HX44GB4Z.js";
|
|
26
26
|
import "./chunk-VM7VAFJW.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-JQA6RF4R.js";
|
|
28
28
|
import "./chunk-OWBRDNRZ.js";
|
|
29
29
|
import "./chunk-G3T47CFV.js";
|
|
30
30
|
import "./chunk-2H7UOFLK.js";
|
|
@@ -33,4 +33,4 @@ export {
|
|
|
33
33
|
renderCheckSarif,
|
|
34
34
|
withFindingMessages
|
|
35
35
|
};
|
|
36
|
-
//# sourceMappingURL=sarif-
|
|
36
|
+
//# sourceMappingURL=sarif-RGRG7VFX.js.map
|
|
@@ -1,66 +1,67 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
renderFindingsGithub
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OWJLB2AF.js";
|
|
5
5
|
import {
|
|
6
6
|
renderFindingsJson,
|
|
7
7
|
renderGetJson,
|
|
8
8
|
renderListJson
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DPDG3FHL.js";
|
|
10
10
|
import {
|
|
11
11
|
renderFindingsPretty,
|
|
12
12
|
renderGetPretty,
|
|
13
13
|
renderListPretty
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5LE4NH3Z.js";
|
|
15
15
|
import {
|
|
16
16
|
FIELD_LABEL,
|
|
17
17
|
renderFindingsSarif
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-DMVBIIP3.js";
|
|
19
19
|
import {
|
|
20
20
|
FINDING_FORMATS,
|
|
21
21
|
JUNIT_CLASSNAME,
|
|
22
22
|
runCheck
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-CLPC3LKX.js";
|
|
24
24
|
import {
|
|
25
25
|
LIST_FORMATS,
|
|
26
26
|
entriesOf,
|
|
27
27
|
runList
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import {
|
|
30
|
-
indexSet
|
|
31
|
-
} from "./chunk-SIREOHLW.js";
|
|
28
|
+
} from "./chunk-H5YWCCBO.js";
|
|
32
29
|
import {
|
|
33
30
|
StrategyError,
|
|
34
31
|
formatChoice,
|
|
32
|
+
indexSet,
|
|
35
33
|
loadStrategy,
|
|
36
34
|
plural
|
|
37
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-6XK3NTL5.js";
|
|
38
36
|
import {
|
|
39
37
|
RECORD_TYPES,
|
|
40
38
|
STRATEGY_RULES
|
|
41
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-GMLOAKOA.js";
|
|
42
40
|
import {
|
|
43
41
|
closestName
|
|
44
42
|
} from "./chunk-XTKJNRJ6.js";
|
|
43
|
+
import "./chunk-FHJIH6XP.js";
|
|
44
|
+
import "./chunk-VLRIP4BQ.js";
|
|
45
|
+
import "./chunk-TI4DA6DF.js";
|
|
46
|
+
import "./chunk-KCWNJMSS.js";
|
|
45
47
|
import "./chunk-UP6NBQ62.js";
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-6VGWLCYT.js";
|
|
48
|
+
import "./chunk-2NGFDLIM.js";
|
|
49
|
+
import "./chunk-Q76T6Y6X.js";
|
|
50
|
+
import "./chunk-D5GBYKDU.js";
|
|
50
51
|
import {
|
|
51
52
|
OMITTED_WHEN_CLEAN,
|
|
52
53
|
renderJunit
|
|
53
|
-
} from "./chunk-
|
|
54
|
-
import "./chunk-
|
|
54
|
+
} from "./chunk-762MM6NA.js";
|
|
55
|
+
import "./chunk-S5G6T4VC.js";
|
|
55
56
|
import {
|
|
56
57
|
readStdin,
|
|
57
58
|
splitList,
|
|
58
59
|
withInputs
|
|
59
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-BXE4L52Q.js";
|
|
60
61
|
import "./chunk-DSWKBZWW.js";
|
|
61
62
|
import {
|
|
62
63
|
STDIN_TOKEN
|
|
63
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-BJUEOC4G.js";
|
|
64
65
|
import "./chunk-77AINBYM.js";
|
|
65
66
|
import "./chunk-QK6VYJHV.js";
|
|
66
67
|
import {
|
|
@@ -76,7 +77,7 @@ import {
|
|
|
76
77
|
import "./chunk-VM7VAFJW.js";
|
|
77
78
|
import {
|
|
78
79
|
package_default
|
|
79
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-JQA6RF4R.js";
|
|
80
81
|
import "./chunk-OWBRDNRZ.js";
|
|
81
82
|
import "./chunk-G3T47CFV.js";
|
|
82
83
|
import "./chunk-2H7UOFLK.js";
|
|
@@ -87,10 +88,10 @@ import { Command } from "commander";
|
|
|
87
88
|
// src/strategy/commands/get.ts
|
|
88
89
|
var GET_FORMATS = ["pretty", "json"];
|
|
89
90
|
async function runGet(opts) {
|
|
90
|
-
const { cwd, run, set } = await loadStrategy(opts);
|
|
91
|
+
const { cwd, run, set, steps } = await loadStrategy(opts);
|
|
91
92
|
const index = indexSet(set);
|
|
92
93
|
const found = index.anyWithId(opts.id);
|
|
93
|
-
const entry = found === void 0 ? void 0 : entriesOf(set, cwd, run.base, index).find((e) => e.record === found);
|
|
94
|
+
const entry = found === void 0 ? void 0 : entriesOf(set, cwd, run.base, index, steps).find((e) => e.record === found);
|
|
94
95
|
if (entry !== void 0) return entry;
|
|
95
96
|
const ids = set.records.map((r) => r.id);
|
|
96
97
|
const nearest = closestName(opts.id.toLowerCase(), ids.map((id) => id.toLowerCase()));
|
|
@@ -219,4 +220,4 @@ export {
|
|
|
219
220
|
StrategyError,
|
|
220
221
|
buildProgram
|
|
221
222
|
};
|
|
222
|
-
//# sourceMappingURL=strategy-
|
|
223
|
+
//# sourceMappingURL=strategy-EK5VY5DG.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/strategy/cli.ts","../src/strategy/commands/get.ts","../src/strategy/reporters/junit.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 * `manni strategy get <id>`: one record, matched by id without case. A miss\n * is a usage error that says how big the set is and, when an id is a few\n * edits away, which one.\n */\nimport { closestName } from \"../../shared/closest-name.js\";\nimport { indexSet } from \"../core/check.js\";\nimport { StrategyError } from \"../errors.js\";\nimport { entriesOf, type RecordEntry } from \"./list.js\";\nimport { loadStrategy, plural, type StrategyCommandOptions } from \"./run.js\";\n\nexport const GET_FORMATS = [\"pretty\", \"json\"] as const;\nexport type GetFormat = (typeof GET_FORMATS)[number];\n\nexport interface GetOptions extends StrategyCommandOptions {\n /** The `<id>` argument, compared without case. */\n id: string;\n}\n\nexport async function runGet(opts: GetOptions): Promise<RecordEntry> {\n const { cwd, run, set } = await loadStrategy(opts);\n const index = indexSet(set);\n const found = index.anyWithId(opts.id);\n const entry = found === undefined ? undefined : entriesOf(set, cwd, run.base, index).find((e) => e.record === found);\n if (entry !== undefined) return entry;\n const ids = set.records.map((r) => r.id);\n const nearest = closestName(opts.id.toLowerCase(), ids.map((id) => id.toLowerCase()));\n const suggestion = ids.find((id) => id.toLowerCase() === nearest);\n const hint = suggestion === undefined ? \".\" : `; did you mean \"${suggestion}\"?`;\n throw new StrategyError(`no record \"${opts.id}\". ${plural(set.records.length, \"record\")}${hint}`);\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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,SAAS,eAAe;;;ACEjB,IAAM,cAAc,CAAC,UAAU,MAAM;AAQ5C,eAAsB,OAAO,MAAwC;AACnE,QAAM,EAAE,KAAK,KAAK,IAAI,IAAI,MAAM,aAAa,IAAI;AACjD,Q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KAAK,CAAC,IAAI,QAAQ,EAClF,OAAO,cAAc,yEAAyE,EAC9F;AAAA,IACC;AAAA,IACA;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF,EAAE,KAAK,IAAI;AAAA,EACb,EACC,OAAO,OAAO,OAAiB,YAA6B;AAC3D,QAAI;AACF,YAAM,SAAS,aAAa,QAAQ,QAAQ,eAAe;AAC3D,YAAM,SAAS,MAAM,SAAS;AAAA,QAC5B,GAAI,MAAM,YAAY,OAAO,OAAO;AAAA,QACpC,GAAI,QAAQ,aAAa,OAAO,EAAE,UAAU,KAAK,IAAI,CAAC;AAAA,MACxD,CAAC;AACD,qBAAe,QAAQ,QAAQ,OAAO;AAAA,IACxC,SAAS,KAAK;AACZ,WAAK,GAAG;AAAA,IACV;AAAA,EACF,CAAC;AAEH,SAAO;AACT;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/strategy/cli.ts","../src/strategy/commands/get.ts","../src/strategy/reporters/junit.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 * `manni strategy get <id>`: one record, matched by id without case. A miss\n * is a usage error that says how big the set is and, when an id is a few\n * edits away, which one.\n */\nimport { closestName } from \"../../shared/closest-name.js\";\nimport { indexSet } from \"../core/check.js\";\nimport { StrategyError } from \"../errors.js\";\nimport { entriesOf, type RecordEntry } from \"./list.js\";\nimport { loadStrategy, plural, type StrategyCommandOptions } from \"./run.js\";\n\nexport const GET_FORMATS = [\"pretty\", \"json\"] as const;\nexport type GetFormat = (typeof GET_FORMATS)[number];\n\nexport interface GetOptions extends StrategyCommandOptions {\n /** The `<id>` argument, compared without case. */\n id: string;\n}\n\nexport async function runGet(opts: GetOptions): Promise<RecordEntry> {\n const { cwd, run, set, steps } = await loadStrategy(opts);\n const index = indexSet(set);\n const found = index.anyWithId(opts.id);\n const entry = found === undefined ? undefined : entriesOf(set, cwd, run.base, index, steps).find((e) => e.record === found);\n if (entry !== undefined) return entry;\n const ids = set.records.map((r) => r.id);\n const nearest = closestName(opts.id.toLowerCase(), ids.map((id) => id.toLowerCase()));\n const suggestion = ids.find((id) => id.toLowerCase() === nearest);\n const hint = suggestion === undefined ? \".\" : `; did you mean \"${suggestion}\"?`;\n throw new StrategyError(`no record \"${opts.id}\". ${plural(set.records.length, \"record\")}${hint}`);\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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,SAAS,eAAe;;;ACEjB,IAAM,cAAc,CAAC,UAAU,MAAM;AAQ5C,eAAsB,OAAO,MAAwC;AACnE,QAAM,EAAE,KAAK,KAAK,KAAK,MAAM,IAAI,MAAM,aAAa,IAAI;AACxD,QAAM,QAAQ,SAAS,GAAG;AAC1B,QAAM,QAAQ,MAAM,UAAU,KAAK,EAAE;AACrC,QAAM,QAAQ,UAAU,SAAY,SAAY,UAAU,KAAK,KAAK,IAAI,MAAM,OAAO,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE,WAAW,KAAK;AAC1H,MAAI,UAAU,OAAW,QAAO;AAChC,QAAM,MAAM,IAAI,QAAQ,IAAI,CAAC,MAAM,EAAE,EAAE;AACvC,QAAM,UAAU,YAAY,KAAK,GAAG,YAAY,GAAG,IAAI,IAAI,CAAC,OAAO,GAAG,YAAY,CAAC,C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,OAAO,EAAE,UAAU,KAAK,IAAI,CAAC;AAAA,MACxD,CAAC;AACD,qBAAe,QAAQ,QAAQ,OAAO;AAAA,IACxC,SAAS,KAAK;AACZ,WAAK,GAAG;AAAA,IACV;AAAA,EACF,CAAC;AAEH,SAAO;AACT;","names":[]}
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
import {
|
|
3
3
|
LIST_FORMATS,
|
|
4
4
|
runList
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IOJD2RFG.js";
|
|
6
6
|
import {
|
|
7
7
|
renderFindingsGithub
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KQDRO6N6.js";
|
|
9
9
|
import {
|
|
10
10
|
renderFindingsJson,
|
|
11
11
|
renderFormatsJson,
|
|
12
12
|
renderGetJson,
|
|
13
13
|
renderListJson
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-IN5T22FP.js";
|
|
15
15
|
import {
|
|
16
16
|
FIELD_LABEL,
|
|
17
17
|
renderFindingsSarif
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-E23KWEPL.js";
|
|
19
19
|
import {
|
|
20
20
|
renderFindingsPretty,
|
|
21
21
|
renderFormatsPretty,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
renderListPretty,
|
|
24
24
|
renderValeWiring,
|
|
25
25
|
renderWritePretty
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-A4QNKEX4.js";
|
|
27
27
|
import {
|
|
28
28
|
FINDING_FORMATS,
|
|
29
29
|
JUNIT_CLASSNAME,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
runCheck,
|
|
32
32
|
summarize,
|
|
33
33
|
toResults
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-JUUCCML3.js";
|
|
35
35
|
import {
|
|
36
36
|
foldValeSeverity,
|
|
37
37
|
proseRuleId
|
|
@@ -86,39 +86,39 @@ import {
|
|
|
86
86
|
valeConfigFor,
|
|
87
87
|
xmlAttribute,
|
|
88
88
|
xmlText
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-2YKUSTHS.js";
|
|
90
90
|
import {
|
|
91
91
|
TERM_FIELDS,
|
|
92
92
|
TERM_MATCH_FIELDS,
|
|
93
93
|
TERM_RULES,
|
|
94
94
|
TERM_WRITE_FORMATS
|
|
95
95
|
} from "./chunk-MC7U5IH4.js";
|
|
96
|
+
import "./chunk-KCWNJMSS.js";
|
|
96
97
|
import "./chunk-UP6NBQ62.js";
|
|
97
|
-
import "./chunk-
|
|
98
|
-
import "./chunk-KZ7534CD.js";
|
|
98
|
+
import "./chunk-2NGFDLIM.js";
|
|
99
99
|
import {
|
|
100
100
|
DEFAULT_CHUNK_CHARS,
|
|
101
101
|
splitBody
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-Q76T6Y6X.js";
|
|
103
103
|
import {
|
|
104
104
|
mergeMetaProvenance
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-D5GBYKDU.js";
|
|
106
106
|
import {
|
|
107
107
|
OMITTED_WHEN_CLEAN,
|
|
108
108
|
renderJunit
|
|
109
|
-
} from "./chunk-
|
|
110
|
-
import "./chunk-
|
|
109
|
+
} from "./chunk-762MM6NA.js";
|
|
110
|
+
import "./chunk-S5G6T4VC.js";
|
|
111
111
|
import {
|
|
112
112
|
readStdin,
|
|
113
113
|
splitList,
|
|
114
114
|
withInputs
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-BXE4L52Q.js";
|
|
116
116
|
import "./chunk-DSWKBZWW.js";
|
|
117
117
|
import {
|
|
118
118
|
STDIN_TOKEN,
|
|
119
119
|
extractorByName,
|
|
120
120
|
extractorForExtension
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-BJUEOC4G.js";
|
|
122
122
|
import "./chunk-77AINBYM.js";
|
|
123
123
|
import "./chunk-QK6VYJHV.js";
|
|
124
124
|
import {
|
|
@@ -147,7 +147,7 @@ import {
|
|
|
147
147
|
} from "./chunk-VM7VAFJW.js";
|
|
148
148
|
import {
|
|
149
149
|
package_default
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-JQA6RF4R.js";
|
|
151
151
|
import "./chunk-OWBRDNRZ.js";
|
|
152
152
|
import {
|
|
153
153
|
errorMessage
|
|
@@ -2510,4 +2510,4 @@ export {
|
|
|
2510
2510
|
TermError,
|
|
2511
2511
|
buildProgram
|
|
2512
2512
|
};
|
|
2513
|
-
//# sourceMappingURL=term-
|
|
2513
|
+
//# sourceMappingURL=term-MDN3NJDW.js.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
runValidate
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-S5G6T4VC.js";
|
|
5
|
+
import "./chunk-BXE4L52Q.js";
|
|
6
6
|
import "./chunk-DSWKBZWW.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-BJUEOC4G.js";
|
|
8
8
|
import "./chunk-YEUYKR62.js";
|
|
9
9
|
import "./chunk-B2242FYO.js";
|
|
10
10
|
import "./chunk-HX44GB4Z.js";
|
|
11
11
|
import "./chunk-VM7VAFJW.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-JQA6RF4R.js";
|
|
13
13
|
import "./chunk-OWBRDNRZ.js";
|
|
14
14
|
import "./chunk-G3T47CFV.js";
|
|
15
15
|
import "./chunk-2H7UOFLK.js";
|
|
16
16
|
export {
|
|
17
17
|
runValidate
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=validate-
|
|
19
|
+
//# sourceMappingURL=validate-QDYQ642J.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hawkeyexl/manni",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.21.0",
|
|
4
4
|
"description": "One command line for documentation that is meant to be checked. `manni meta` validates the presence and format of document metadata (Markdown frontmatter and more) against JSON Schema, built for CI. Formerly docmeta.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -99,12 +99,12 @@
|
|
|
99
99
|
"esbuild": "^0.28.2"
|
|
100
100
|
},
|
|
101
101
|
"dependencies": {
|
|
102
|
-
"@apidevtools/json-schema-ref-parser": "^
|
|
103
|
-
"@asciidoctor/core": "^
|
|
104
|
-
"@axe-core/playwright": "^4.
|
|
102
|
+
"@apidevtools/json-schema-ref-parser": "^16.0.5",
|
|
103
|
+
"@asciidoctor/core": "^4.1.1",
|
|
104
|
+
"@axe-core/playwright": "^4.14.0",
|
|
105
105
|
"@hawkeyexl/inference": "^0.5.0",
|
|
106
|
-
"@inquirer/prompts": "^7.
|
|
107
|
-
"@types/n3": "^1.26.
|
|
106
|
+
"@inquirer/prompts": "^8.7.4",
|
|
107
|
+
"@types/n3": "^1.26.5",
|
|
108
108
|
"@xmldom/xmldom": "^0.9.12",
|
|
109
109
|
"ajv": "^8.17.1",
|
|
110
110
|
"ajv-draft-04": "^1.0.0",
|
|
@@ -115,49 +115,49 @@
|
|
|
115
115
|
"jsonld": "^9.0.0",
|
|
116
116
|
"mdast-util-to-string": "^4.0.0",
|
|
117
117
|
"minisearch": "^7.2.0",
|
|
118
|
-
"n3": "^
|
|
118
|
+
"n3": "^2.13.12",
|
|
119
119
|
"parse5": "^8.0.1",
|
|
120
120
|
"picocolors": "^1.1.1",
|
|
121
121
|
"picomatch": "^4.0.7",
|
|
122
|
-
"playwright-core": "^1.
|
|
122
|
+
"playwright-core": "^1.64.1",
|
|
123
123
|
"rdf-validate-shacl": "^0.6.5",
|
|
124
124
|
"remark-frontmatter": "^5.0.0",
|
|
125
125
|
"remark-gfm": "^4.0.1",
|
|
126
126
|
"remark-mdx": "^3.1.1",
|
|
127
127
|
"remark-parse": "^11.0.0",
|
|
128
|
-
"smol-toml": "^1.
|
|
128
|
+
"smol-toml": "^1.9.1",
|
|
129
129
|
"unified": "^11.0.5",
|
|
130
130
|
"unist-util-visit": "^5.1.0",
|
|
131
|
-
"yaml": "^2.
|
|
131
|
+
"yaml": "^2.9.1"
|
|
132
132
|
},
|
|
133
133
|
"devDependencies": {
|
|
134
|
-
"@commitlint/cli": "^21.2.
|
|
135
|
-
"@commitlint/config-conventional": "^21.2.
|
|
134
|
+
"@commitlint/cli": "^21.2.4",
|
|
135
|
+
"@commitlint/config-conventional": "^21.2.4",
|
|
136
136
|
"@comunica/query-sparql-rdfjs-lite": "^5.3.0",
|
|
137
137
|
"@eslint/js": "^10.0.1",
|
|
138
138
|
"@rdfjs/types": "^2.0.1",
|
|
139
139
|
"@semantic-release/changelog": "^6.0.3",
|
|
140
140
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
141
141
|
"@semantic-release/git": "^10.0.1",
|
|
142
|
-
"@semantic-release/github": "^12.0.
|
|
143
|
-
"@semantic-release/npm": "^13.
|
|
142
|
+
"@semantic-release/github": "^12.0.10",
|
|
143
|
+
"@semantic-release/npm": "^13.2.0",
|
|
144
144
|
"@semantic-release/release-notes-generator": "^14.1.1",
|
|
145
145
|
"@types/jsonld": "^1.5.15",
|
|
146
146
|
"@types/mdast": "^4.0.4",
|
|
147
|
-
"@types/node": "^26.
|
|
147
|
+
"@types/node": "^26.6.5",
|
|
148
148
|
"@types/picomatch": "^4.0.3",
|
|
149
149
|
"@types/unist": "^3.0.3",
|
|
150
150
|
"@types/yauzl": "^3.4.0",
|
|
151
|
-
"@vitest/coverage-v8": "^
|
|
152
|
-
"eslint": "^10.
|
|
153
|
-
"globals": "^17.
|
|
151
|
+
"@vitest/coverage-v8": "^5.0.5",
|
|
152
|
+
"eslint": "^10.13.0",
|
|
153
|
+
"globals": "^17.13.0",
|
|
154
154
|
"husky": "^9.1.7",
|
|
155
155
|
"rdfxml-streaming-parser": "^3.3.0",
|
|
156
156
|
"semantic-release": "^25.0.9",
|
|
157
|
-
"tsup": "^
|
|
157
|
+
"tsup": "^9.0.0",
|
|
158
158
|
"typescript": "^6.0.3",
|
|
159
|
-
"typescript-eslint": "^8.
|
|
160
|
-
"vitest": "^
|
|
159
|
+
"typescript-eslint": "^8.72.0",
|
|
160
|
+
"vitest": "^5.0.5",
|
|
161
161
|
"yauzl": "^3.4.0"
|
|
162
162
|
},
|
|
163
163
|
"optionalDependencies": {
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "manni",
|
|
3
|
-
"description": "Checks the docs an agent edits against everything the repository set up in manni, blocks on errors, records the session manifest tracevals reads, serves the docs graph to the agent, and hands the agent a page's metadata when it reads one.",
|
|
4
|
-
"version": "4.
|
|
3
|
+
"description": "Checks the docs an agent edits against everything the repository set up in manni, blocks on errors, records the session manifest tracevals reads for a user who turns tracevals on, serves the docs graph to the agent, and hands the agent a page's metadata when it reads one.",
|
|
4
|
+
"version": "4.21.0",
|
|
5
5
|
"author": { "name": "hawkeyexl" },
|
|
6
6
|
"homepage": "https://hawkeyexl.github.io/manni/",
|
|
7
7
|
"repository": "https://github.com/hawkeyexl/manni",
|
|
8
|
-
"license": "MIT"
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"userConfig": {
|
|
10
|
+
"tracevals": {
|
|
11
|
+
"type": "boolean",
|
|
12
|
+
"title": "Judge each turn with tracevals",
|
|
13
|
+
"description": "Run manni's tracevals hooks for you. They record each session's manifest, fetch the judge model and judge each turn where the repository sets tracevals.runtime. Off unless you turn it on.",
|
|
14
|
+
"default": false
|
|
15
|
+
}
|
|
16
|
+
}
|
|
9
17
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"type": "command",
|
|
9
9
|
"command": "node",
|
|
10
10
|
"args": [
|
|
11
|
-
"${CLAUDE_PLUGIN_ROOT}/hooks/
|
|
11
|
+
"${CLAUDE_PLUGIN_ROOT}/hooks/tracevals.mjs",
|
|
12
12
|
"tracevals",
|
|
13
13
|
"capture"
|
|
14
14
|
],
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"type": "command",
|
|
39
39
|
"command": "node",
|
|
40
40
|
"args": [
|
|
41
|
-
"${CLAUDE_PLUGIN_ROOT}/hooks/
|
|
41
|
+
"${CLAUDE_PLUGIN_ROOT}/hooks/tracevals.mjs",
|
|
42
42
|
"tracevals",
|
|
43
43
|
"prepare"
|
|
44
44
|
],
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"type": "command",
|
|
114
114
|
"command": "node",
|
|
115
115
|
"args": [
|
|
116
|
-
"${CLAUDE_PLUGIN_ROOT}/hooks/
|
|
116
|
+
"${CLAUDE_PLUGIN_ROOT}/hooks/tracevals.mjs",
|
|
117
117
|
"check"
|
|
118
118
|
],
|
|
119
119
|
"timeout": 600,
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"type": "command",
|
|
130
130
|
"command": "node",
|
|
131
131
|
"args": [
|
|
132
|
-
"${CLAUDE_PLUGIN_ROOT}/hooks/
|
|
132
|
+
"${CLAUDE_PLUGIN_ROOT}/hooks/tracevals.mjs",
|
|
133
133
|
"tracevals",
|
|
134
134
|
"release"
|
|
135
135
|
],
|
|
@@ -15,18 +15,27 @@
|
|
|
15
15
|
// `npx --no` would ask the registry on every hook in every repository
|
|
16
16
|
// without manni. Running node on a found bin also skips npx's start-up.
|
|
17
17
|
//
|
|
18
|
-
// The plugin's other scripts import `project`, `configFile`, `launch
|
|
19
|
-
// `pluginVersion` from here. Run as a
|
|
20
|
-
// arguments.
|
|
18
|
+
// The plugin's other scripts import `project`, `configFile`, `launch`,
|
|
19
|
+
// `pluginVersion`, `isMain`, `run` and `tracevalsOn` from here. Run as a
|
|
20
|
+
// script, it launches manni with its own arguments.
|
|
21
21
|
//
|
|
22
22
|
// Plain ESM with no dependencies: the plugin ships as files, not a package.
|
|
23
23
|
import { spawn, spawnSync } from "node:child_process";
|
|
24
24
|
import { existsSync, readFileSync, realpathSync } from "node:fs";
|
|
25
|
-
import { dirname, join, resolve } from "node:path";
|
|
25
|
+
import { dirname, join, resolve, sep } from "node:path";
|
|
26
26
|
import { fileURLToPath } from "node:url";
|
|
27
27
|
|
|
28
|
+
// The plugin's `tracevals` option reaches hooks under Claude Code's name,
|
|
29
|
+
// and manni reads its own, which a user without the plugin can set
|
|
30
|
+
// themselves. Set here, every manni this process starts inherits it.
|
|
31
|
+
if (process.env.CLAUDE_PLUGIN_OPTION_TRACEVALS === "true") process.env.MANNI_TRACEVALS_HOOKS = "1";
|
|
32
|
+
|
|
33
|
+
/** Whether this user turned the tracevals hooks on. */
|
|
34
|
+
export function tracevalsOn() {
|
|
35
|
+
return process.env.MANNI_TRACEVALS_HOOKS === "1";
|
|
36
|
+
}
|
|
37
|
+
|
|
28
38
|
const PACKAGE = "@hawkeyexl/manni";
|
|
29
|
-
export const project = resolve(process.env.CLAUDE_PROJECT_DIR ?? process.cwd());
|
|
30
39
|
const windows = process.platform === "win32";
|
|
31
40
|
|
|
32
41
|
function readJson(file) {
|
|
@@ -37,6 +46,34 @@ function readJson(file) {
|
|
|
37
46
|
}
|
|
38
47
|
}
|
|
39
48
|
|
|
49
|
+
/**
|
|
50
|
+
* CLAUDE_PROJECT_DIR, unless the working directory is in a git worktree of
|
|
51
|
+
* that project's repository: a worktree session names the main checkout
|
|
52
|
+
* there, and the worktree is the checkout being worked on. Git writes a
|
|
53
|
+
* worktree's `.git` as a file pointing into the main `.git/worktrees/`.
|
|
54
|
+
*/
|
|
55
|
+
function projectDir() {
|
|
56
|
+
const cwd = resolve(process.cwd());
|
|
57
|
+
if (!process.env.CLAUDE_PROJECT_DIR) return cwd;
|
|
58
|
+
const declared = resolve(process.env.CLAUDE_PROJECT_DIR);
|
|
59
|
+
for (const d of upward(cwd)) {
|
|
60
|
+
if (!existsSync(join(d, ".git"))) continue;
|
|
61
|
+
let gitdir;
|
|
62
|
+
try {
|
|
63
|
+
gitdir = /^gitdir:\s*(.+?)\s*$/m.exec(readFileSync(join(d, ".git"), "utf8"))?.[1];
|
|
64
|
+
} catch {
|
|
65
|
+
// A `.git` directory: a repository of its own, not a worktree.
|
|
66
|
+
}
|
|
67
|
+
if (gitdir === undefined) return declared;
|
|
68
|
+
const fold = (p) => (windows ? p.toLowerCase() : p);
|
|
69
|
+
const inWorktrees = fold(resolve(d, gitdir)).startsWith(fold(join(declared, ".git", "worktrees") + sep));
|
|
70
|
+
return inWorktrees ? d : declared;
|
|
71
|
+
}
|
|
72
|
+
return declared;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export const project = projectDir();
|
|
76
|
+
|
|
40
77
|
/** The `manni` bin a package.json names, when that file exists. */
|
|
41
78
|
function binOf(manifest) {
|
|
42
79
|
const bin = readJson(manifest)?.bin;
|
|
@@ -171,8 +208,9 @@ export function isMain(url) {
|
|
|
171
208
|
}
|
|
172
209
|
}
|
|
173
210
|
|
|
174
|
-
|
|
175
|
-
|
|
211
|
+
/** Runs manni with `args` for a hook, its exit code becoming this process's. */
|
|
212
|
+
export function run(args) {
|
|
213
|
+
const child = launch(args);
|
|
176
214
|
if (child === undefined) process.exit(0);
|
|
177
215
|
child.on("error", () => {
|
|
178
216
|
process.exitCode = 1;
|
|
@@ -181,3 +219,5 @@ if (isMain(import.meta.url)) {
|
|
|
181
219
|
process.exitCode = code ?? 1;
|
|
182
220
|
});
|
|
183
221
|
}
|
|
222
|
+
|
|
223
|
+
if (isMain(import.meta.url)) run(process.argv.slice(2));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Runs manni for a hook that exists only for tracevals, and only for a user
|
|
2
|
+
// who turned tracevals on: the plugin's `tracevals` option, or
|
|
3
|
+
// MANNI_TRACEVALS_HOOKS=1. Otherwise it exits at once, before any manni
|
|
4
|
+
// starts. Its arguments are manni's, as manni.mjs takes them.
|
|
5
|
+
import { isMain, run, tracevalsOn } from "./manni.mjs";
|
|
6
|
+
|
|
7
|
+
if (isMain(import.meta.url) && tracevalsOn()) run(process.argv.slice(2));
|