@hawkeyexl/manni 4.18.1 → 4.20.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-XVUPHNWT.js → batch-TBQBH6XQ.js} +13 -13
- package/dist/{build-GU7M5EC6.js → build-S3JQMDFX.js} +14 -14
- package/dist/{calibrate-YODCJAEA.js → calibrate-KLN22IGS.js} +14 -14
- package/dist/{capture-TZ42LHNK.js → capture-JS3ICXE7.js} +13 -13
- package/dist/{check-KBDIV35E.js → check-2EAR4ZW3.js} +31 -31
- package/dist/check-6D2JCIMD.js +47 -0
- package/dist/{check-I72HPJNA.js → check-PDXYA6XH.js} +13 -12
- package/dist/check-RNAB7X74.js +33 -0
- package/dist/{check-AOGJBQR4.js → check-WS2USSUD.js} +13 -13
- package/dist/{chunk-HUCZKEDF.js → chunk-2G4XYGTN.js} +4 -4
- package/dist/{chunk-O7OJWMP5.js → chunk-2XRSQXGZ.js} +2 -2
- package/dist/{chunk-W5STNXKP.js → chunk-3OXBZSDN.js} +2 -2
- package/dist/chunk-4KM23E53.js +50 -0
- package/dist/chunk-4KM23E53.js.map +1 -0
- package/dist/chunk-5HB4YKZW.js +64 -0
- package/dist/chunk-5HB4YKZW.js.map +1 -0
- package/dist/{chunk-N4KY3WLM.js → chunk-5MJE5KMY.js} +7 -7
- package/dist/{chunk-C4MNHJXP.js → chunk-5UJQLZXY.js} +2 -2
- package/dist/{chunk-34PGSNS5.js → chunk-6D7FCU4E.js} +3 -3
- package/dist/{chunk-ES7PJMHM.js → chunk-6VGWLCYT.js} +2 -2
- package/dist/chunk-BEQZI3V5.js +137 -0
- package/dist/chunk-BEQZI3V5.js.map +1 -0
- package/dist/{chunk-7MU47MZM.js → chunk-BV7FJ4V2.js} +7 -7
- package/dist/{chunk-2G42VA4H.js → chunk-DQO44Y5G.js} +5 -5
- package/dist/{chunk-7JDWLMOT.js → chunk-DTSWP5FC.js} +5 -5
- package/dist/{chunk-MHLCZBW2.js → chunk-EBYLQE7P.js} +2 -2
- package/dist/{chunk-LFKYNDG4.js → chunk-FERFWKZM.js} +2 -2
- package/dist/{chunk-PZAHBJ56.js → chunk-FRM62BEN.js} +3 -3
- package/dist/{chunk-RBNZI6YG.js → chunk-GCF7STEA.js} +7 -32
- package/dist/chunk-GCF7STEA.js.map +1 -0
- package/dist/{chunk-YMDASDGR.js → chunk-GL2HXZVX.js} +3 -3
- package/dist/chunk-GVOI7SCF.js +50 -0
- package/dist/chunk-GVOI7SCF.js.map +1 -0
- package/dist/{chunk-O3PRYQCW.js → chunk-GXDVERLV.js} +5 -5
- package/dist/{chunk-UXEICZKX.js → chunk-HIZNNOVW.js} +17 -5
- package/dist/chunk-HIZNNOVW.js.map +1 -0
- package/dist/{chunk-4VR2UFEO.js → chunk-HSC5G3FW.js} +8 -8
- package/dist/{chunk-72OTCIYQ.js → chunk-HZWLHSZG.js} +2 -2
- package/dist/{chunk-SJLEHQKY.js → chunk-I62V2ZAJ.js} +8 -8
- package/dist/{chunk-EEJFXYFO.js → chunk-IGAZWY2W.js} +2 -2
- package/dist/{chunk-GSLXJSGT.js → chunk-ITA7V5Y2.js} +4 -4
- package/dist/{chunk-AL46P5H6.js → chunk-IYRGV2BC.js} +6 -6
- package/dist/{chunk-HH327OEQ.js → chunk-JKH2LV5D.js} +5 -5
- package/dist/{chunk-2EAUZVO2.js → chunk-JOZVVIVD.js} +3 -3
- package/dist/{chunk-GRRSOAAS.js → chunk-KZ7534CD.js} +3 -3
- package/dist/{chunk-UVUMFFZ6.js → chunk-MLY65CQE.js} +24 -12
- package/dist/chunk-MLY65CQE.js.map +1 -0
- package/dist/{chunk-T363DMEJ.js → chunk-MNK732BZ.js} +37 -14
- package/dist/chunk-MNK732BZ.js.map +1 -0
- package/dist/{chunk-N74QH6XJ.js → chunk-NDQA4VYK.js} +3 -3
- package/dist/chunk-NEO2HN2N.js +326 -0
- package/dist/chunk-NEO2HN2N.js.map +1 -0
- package/dist/{chunk-MQG4ONTU.js → chunk-O26NQ7KT.js} +2 -2
- package/dist/chunk-O4O6JOGD.js +59 -0
- package/dist/chunk-O4O6JOGD.js.map +1 -0
- package/dist/{chunk-QRQVOEAH.js → chunk-PGDUVYTF.js} +2 -2
- package/dist/{chunk-CYMA4O2F.js → chunk-PHOWMWFJ.js} +6 -2
- package/dist/{chunk-CYMA4O2F.js.map → chunk-PHOWMWFJ.js.map} +1 -1
- package/dist/{chunk-WIHQJSO3.js → chunk-PTXHJLAS.js} +4 -4
- package/dist/{chunk-J33NBVBX.js → chunk-Q5EKERQS.js} +2 -2
- package/dist/{chunk-GWCITMHN.js → chunk-QA7AXRGH.js} +2 -2
- package/dist/{chunk-J7MZRF3J.js → chunk-QSY5YPM4.js} +5 -5
- package/dist/{chunk-S5JFWUNK.js → chunk-QWCP7UMG.js} +4 -4
- package/dist/chunk-RGZBROMW.js +25 -0
- package/dist/chunk-RGZBROMW.js.map +1 -0
- package/dist/{chunk-WMOQXWHB.js → chunk-RXCDT55X.js} +14 -14
- package/dist/{chunk-JBB22HPK.js → chunk-SFSALDIR.js} +6 -6
- package/dist/{chunk-ZI5JHYPT.js → chunk-SFTWEGUD.js} +2 -2
- package/dist/{chunk-SGV5U4NE.js → chunk-SGI3WPYK.js} +4 -4
- package/dist/chunk-SIREOHLW.js +233 -0
- package/dist/chunk-SIREOHLW.js.map +1 -0
- package/dist/{chunk-PRF44AAC.js → chunk-SOW6SVAM.js} +4 -4
- package/dist/{chunk-3H7M5MXE.js → chunk-SRTBHEUM.js} +3 -3
- package/dist/{chunk-YBWU4JGX.js → chunk-SX626JUF.js} +3 -3
- package/dist/{chunk-UT6SVXUQ.js → chunk-U2CE55YV.js} +5 -5
- package/dist/{chunk-4VQVJOIK.js → chunk-UKSXQHSE.js} +44 -23
- package/dist/chunk-UKSXQHSE.js.map +1 -0
- package/dist/chunk-VCU7OMXV.js +126 -0
- package/dist/chunk-VCU7OMXV.js.map +1 -0
- package/dist/chunk-XTKJNRJ6.js +33 -0
- package/dist/chunk-XTKJNRJ6.js.map +1 -0
- package/dist/{chunk-UE6IYEKA.js → chunk-Z6FATXBE.js} +2 -2
- package/dist/{chunk-PJILKN4Z.js → chunk-ZBE735BH.js} +5 -5
- package/dist/{chunk-FGGDLZUU.js → chunk-ZEKQRBXO.js} +2 -2
- package/dist/{chunk-Z2LHEYK5.js → chunk-ZODSGFAP.js} +5 -7
- package/dist/{chunk-Z2LHEYK5.js.map → chunk-ZODSGFAP.js.map} +1 -1
- package/dist/{chunk-WRWPOXVG.js → chunk-ZRMA5U53.js} +3 -3
- package/dist/{chunk-4CMNCP5O.js → chunk-ZVEDBFTM.js} +8 -8
- package/dist/{cli-OD7SXNLX.js → cli-4HH6IY2L.js} +14 -14
- package/dist/{cli-4P4FWT6C.js → cli-4IE6CRAT.js} +355 -123
- package/dist/cli-4IE6CRAT.js.map +1 -0
- package/dist/{cli-NCJZTOWR.js → cli-5BFVL3DH.js} +2 -2
- package/dist/{cli-HGZ7XTDU.js → cli-AR43H5BW.js} +9 -9
- package/dist/{cli-WQNWAMDL.js → cli-EQG4KETY.js} +89 -38
- package/dist/cli-EQG4KETY.js.map +1 -0
- package/dist/{cli-2JZEYVTI.js → cli-GVHXRQAD.js} +18 -18
- package/dist/{cli-NUP7KAW3.js → cli-HTAR3PWY.js} +21 -21
- package/dist/{cli-4YURODFH.js → cli-L7H4C442.js} +14 -14
- package/dist/{cli-DK55ACQR.js → cli-T4NY2EGM.js} +17 -17
- package/dist/{cli-TDCMZ7HV.js → cli-UIY57JPM.js} +14 -14
- package/dist/{cli-MRH5QXW5.js → cli-ZPW5VIRA.js} +9 -9
- package/dist/cli.js +20 -14
- package/dist/cli.js.map +1 -1
- package/dist/docmeta.js +8 -8
- package/dist/{github-FX4WWY7N.js → github-CMWG4QMI.js} +14 -14
- package/dist/github-NIRLMJ65.js +27 -0
- package/dist/{github-TOQ4AJIU.js → github-RIU47U73.js} +12 -12
- package/dist/index.d.ts +25 -1
- package/dist/index.js +99 -99
- package/dist/json-EJTB7XYG.js +34 -0
- package/dist/{json-SIPVIBNW.js → json-KSBVGZUX.js} +12 -12
- package/dist/{labels-UXKTDM5A.js → labels-VNKACCAG.js} +11 -11
- package/dist/{lint-UUVMFRPB.js → lint-75BD6L5T.js} +12 -12
- package/dist/list-6XVIW3RW.js +33 -0
- package/dist/{list-FLNHGIML.js → list-MH54XU7E.js} +12 -12
- package/dist/{list-6Q7VGKIG.js → list-PHNZAYIM.js} +12 -12
- package/dist/{page-FPLKY53Q.js → page-5AJS7AEM.js} +11 -11
- package/dist/{prepare-VUHZQTJ4.js → prepare-R63RJI6O.js} +16 -16
- package/dist/{pretty-JDZSGZCR.js → pretty-DE4WXJFA.js} +13 -13
- package/dist/{pretty-WKPQD3UU.js → pretty-E3DS32NZ.js} +12 -12
- package/dist/pretty-SUKMF6AB.js +35 -0
- package/dist/{release-Z3ASYZ3S.js → release-VHHASAG7.js} +4 -4
- package/dist/{reporters-E53V7UXY.js → reporters-DLMLFLKS.js} +4 -4
- package/dist/{reporters-RAWZONQ3.js → reporters-V2PSDBVW.js} +11 -11
- package/dist/reporters-V2PSDBVW.js.map +1 -0
- package/dist/{run-2BDAM2LA.js → run-QT2LVHRU.js} +12 -12
- package/dist/run-QT2LVHRU.js.map +1 -0
- package/dist/{sarif-7F6EJA3K.js → sarif-2ZKPRT42.js} +15 -15
- package/dist/sarif-2ZKPRT42.js.map +1 -0
- package/dist/{sarif-Q3FX4ODM.js → sarif-GKMUHCZB.js} +10 -10
- package/dist/sarif-GKMUHCZB.js.map +1 -0
- package/dist/sarif-HUIRTPSL.js +30 -0
- package/dist/sarif-HUIRTPSL.js.map +1 -0
- package/dist/strategy-TBFM7NZU.js +222 -0
- package/dist/strategy-TBFM7NZU.js.map +1 -0
- package/dist/{term-5CCU7VDU.js → term-ZZWAVUW5.js} +30 -28
- package/dist/term-ZZWAVUW5.js.map +1 -0
- package/dist/{validate-A2R6KXAH.js → validate-ZEUFF3BG.js} +5 -5
- package/dist/validate-ZEUFF3BG.js.map +1 -0
- package/package.json +4 -6
- package/plugin/manni/.claude-plugin/plugin.json +2 -2
- package/plugin/manni/.mcp.json +12 -0
- package/plugin/manni/hooks/graph-server.mjs +95 -0
- package/plugin/manni/hooks/hooks.json +26 -0
- package/plugin/manni/hooks/manni.mjs +51 -25
- package/plugin/manni/hooks/page-metadata.mjs +144 -0
- package/plugin/manni/skills/fix/SKILL.md +18 -1
- package/plugin/manni/skills/setup/SKILL.md +1 -1
- package/dist/check-OIL3CZ4N.js +0 -47
- package/dist/chunk-4VQVJOIK.js.map +0 -1
- package/dist/chunk-RBNZI6YG.js.map +0 -1
- package/dist/chunk-T363DMEJ.js.map +0 -1
- package/dist/chunk-UVUMFFZ6.js.map +0 -1
- package/dist/chunk-UXEICZKX.js.map +0 -1
- package/dist/cli-4P4FWT6C.js.map +0 -1
- package/dist/cli-WQNWAMDL.js.map +0 -1
- package/dist/term-5CCU7VDU.js.map +0 -1
- /package/dist/{batch-XVUPHNWT.js.map → batch-TBQBH6XQ.js.map} +0 -0
- /package/dist/{build-GU7M5EC6.js.map → build-S3JQMDFX.js.map} +0 -0
- /package/dist/{calibrate-YODCJAEA.js.map → calibrate-KLN22IGS.js.map} +0 -0
- /package/dist/{capture-TZ42LHNK.js.map → capture-JS3ICXE7.js.map} +0 -0
- /package/dist/{check-KBDIV35E.js.map → check-2EAR4ZW3.js.map} +0 -0
- /package/dist/{check-AOGJBQR4.js.map → check-6D2JCIMD.js.map} +0 -0
- /package/dist/{check-I72HPJNA.js.map → check-PDXYA6XH.js.map} +0 -0
- /package/dist/{check-OIL3CZ4N.js.map → check-RNAB7X74.js.map} +0 -0
- /package/dist/{cli-HGZ7XTDU.js.map → check-WS2USSUD.js.map} +0 -0
- /package/dist/{chunk-HUCZKEDF.js.map → chunk-2G4XYGTN.js.map} +0 -0
- /package/dist/{chunk-O7OJWMP5.js.map → chunk-2XRSQXGZ.js.map} +0 -0
- /package/dist/{chunk-W5STNXKP.js.map → chunk-3OXBZSDN.js.map} +0 -0
- /package/dist/{chunk-N4KY3WLM.js.map → chunk-5MJE5KMY.js.map} +0 -0
- /package/dist/{chunk-C4MNHJXP.js.map → chunk-5UJQLZXY.js.map} +0 -0
- /package/dist/{chunk-34PGSNS5.js.map → chunk-6D7FCU4E.js.map} +0 -0
- /package/dist/{chunk-ES7PJMHM.js.map → chunk-6VGWLCYT.js.map} +0 -0
- /package/dist/{chunk-7MU47MZM.js.map → chunk-BV7FJ4V2.js.map} +0 -0
- /package/dist/{chunk-2G42VA4H.js.map → chunk-DQO44Y5G.js.map} +0 -0
- /package/dist/{chunk-7JDWLMOT.js.map → chunk-DTSWP5FC.js.map} +0 -0
- /package/dist/{chunk-MHLCZBW2.js.map → chunk-EBYLQE7P.js.map} +0 -0
- /package/dist/{chunk-LFKYNDG4.js.map → chunk-FERFWKZM.js.map} +0 -0
- /package/dist/{chunk-PZAHBJ56.js.map → chunk-FRM62BEN.js.map} +0 -0
- /package/dist/{chunk-YMDASDGR.js.map → chunk-GL2HXZVX.js.map} +0 -0
- /package/dist/{chunk-O3PRYQCW.js.map → chunk-GXDVERLV.js.map} +0 -0
- /package/dist/{chunk-4VR2UFEO.js.map → chunk-HSC5G3FW.js.map} +0 -0
- /package/dist/{chunk-72OTCIYQ.js.map → chunk-HZWLHSZG.js.map} +0 -0
- /package/dist/{chunk-SJLEHQKY.js.map → chunk-I62V2ZAJ.js.map} +0 -0
- /package/dist/{chunk-EEJFXYFO.js.map → chunk-IGAZWY2W.js.map} +0 -0
- /package/dist/{chunk-GSLXJSGT.js.map → chunk-ITA7V5Y2.js.map} +0 -0
- /package/dist/{chunk-AL46P5H6.js.map → chunk-IYRGV2BC.js.map} +0 -0
- /package/dist/{chunk-HH327OEQ.js.map → chunk-JKH2LV5D.js.map} +0 -0
- /package/dist/{chunk-2EAUZVO2.js.map → chunk-JOZVVIVD.js.map} +0 -0
- /package/dist/{chunk-GRRSOAAS.js.map → chunk-KZ7534CD.js.map} +0 -0
- /package/dist/{chunk-N74QH6XJ.js.map → chunk-NDQA4VYK.js.map} +0 -0
- /package/dist/{chunk-MQG4ONTU.js.map → chunk-O26NQ7KT.js.map} +0 -0
- /package/dist/{chunk-QRQVOEAH.js.map → chunk-PGDUVYTF.js.map} +0 -0
- /package/dist/{chunk-WIHQJSO3.js.map → chunk-PTXHJLAS.js.map} +0 -0
- /package/dist/{chunk-J33NBVBX.js.map → chunk-Q5EKERQS.js.map} +0 -0
- /package/dist/{chunk-GWCITMHN.js.map → chunk-QA7AXRGH.js.map} +0 -0
- /package/dist/{chunk-J7MZRF3J.js.map → chunk-QSY5YPM4.js.map} +0 -0
- /package/dist/{chunk-S5JFWUNK.js.map → chunk-QWCP7UMG.js.map} +0 -0
- /package/dist/{chunk-WMOQXWHB.js.map → chunk-RXCDT55X.js.map} +0 -0
- /package/dist/{chunk-JBB22HPK.js.map → chunk-SFSALDIR.js.map} +0 -0
- /package/dist/{chunk-ZI5JHYPT.js.map → chunk-SFTWEGUD.js.map} +0 -0
- /package/dist/{chunk-SGV5U4NE.js.map → chunk-SGI3WPYK.js.map} +0 -0
- /package/dist/{chunk-PRF44AAC.js.map → chunk-SOW6SVAM.js.map} +0 -0
- /package/dist/{chunk-3H7M5MXE.js.map → chunk-SRTBHEUM.js.map} +0 -0
- /package/dist/{chunk-YBWU4JGX.js.map → chunk-SX626JUF.js.map} +0 -0
- /package/dist/{chunk-UT6SVXUQ.js.map → chunk-U2CE55YV.js.map} +0 -0
- /package/dist/{chunk-UE6IYEKA.js.map → chunk-Z6FATXBE.js.map} +0 -0
- /package/dist/{chunk-PJILKN4Z.js.map → chunk-ZBE735BH.js.map} +0 -0
- /package/dist/{chunk-FGGDLZUU.js.map → chunk-ZEKQRBXO.js.map} +0 -0
- /package/dist/{chunk-WRWPOXVG.js.map → chunk-ZRMA5U53.js.map} +0 -0
- /package/dist/{chunk-4CMNCP5O.js.map → chunk-ZVEDBFTM.js.map} +0 -0
- /package/dist/{cli-OD7SXNLX.js.map → cli-4HH6IY2L.js.map} +0 -0
- /package/dist/{cli-NCJZTOWR.js.map → cli-5BFVL3DH.js.map} +0 -0
- /package/dist/{github-FX4WWY7N.js.map → cli-AR43H5BW.js.map} +0 -0
- /package/dist/{cli-2JZEYVTI.js.map → cli-GVHXRQAD.js.map} +0 -0
- /package/dist/{cli-NUP7KAW3.js.map → cli-HTAR3PWY.js.map} +0 -0
- /package/dist/{cli-4YURODFH.js.map → cli-L7H4C442.js.map} +0 -0
- /package/dist/{cli-DK55ACQR.js.map → cli-T4NY2EGM.js.map} +0 -0
- /package/dist/{cli-TDCMZ7HV.js.map → cli-UIY57JPM.js.map} +0 -0
- /package/dist/{cli-MRH5QXW5.js.map → cli-ZPW5VIRA.js.map} +0 -0
- /package/dist/{github-TOQ4AJIU.js.map → github-CMWG4QMI.js.map} +0 -0
- /package/dist/{json-SIPVIBNW.js.map → github-NIRLMJ65.js.map} +0 -0
- /package/dist/{lint-UUVMFRPB.js.map → github-RIU47U73.js.map} +0 -0
- /package/dist/{list-6Q7VGKIG.js.map → json-EJTB7XYG.js.map} +0 -0
- /package/dist/{list-FLNHGIML.js.map → json-KSBVGZUX.js.map} +0 -0
- /package/dist/{labels-UXKTDM5A.js.map → labels-VNKACCAG.js.map} +0 -0
- /package/dist/{page-FPLKY53Q.js.map → lint-75BD6L5T.js.map} +0 -0
- /package/dist/{pretty-JDZSGZCR.js.map → list-6XVIW3RW.js.map} +0 -0
- /package/dist/{pretty-WKPQD3UU.js.map → list-MH54XU7E.js.map} +0 -0
- /package/dist/{reporters-E53V7UXY.js.map → list-PHNZAYIM.js.map} +0 -0
- /package/dist/{reporters-RAWZONQ3.js.map → page-5AJS7AEM.js.map} +0 -0
- /package/dist/{prepare-VUHZQTJ4.js.map → prepare-R63RJI6O.js.map} +0 -0
- /package/dist/{run-2BDAM2LA.js.map → pretty-DE4WXJFA.js.map} +0 -0
- /package/dist/{sarif-7F6EJA3K.js.map → pretty-E3DS32NZ.js.map} +0 -0
- /package/dist/{sarif-Q3FX4ODM.js.map → pretty-SUKMF6AB.js.map} +0 -0
- /package/dist/{release-Z3ASYZ3S.js.map → release-VHHASAG7.js.map} +0 -0
- /package/dist/{validate-A2R6KXAH.js.map → reporters-DLMLFLKS.js.map} +0 -0
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
loadTemplateFile,
|
|
9
9
|
resolveLintRun,
|
|
10
10
|
resolveStructureTool
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2G4XYGTN.js";
|
|
12
12
|
import {
|
|
13
13
|
parserByName,
|
|
14
14
|
parserForExtension,
|
|
15
15
|
unsupportedFormatMessage
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-5UJQLZXY.js";
|
|
17
17
|
import {
|
|
18
18
|
BLOCK_KINDS,
|
|
19
19
|
BLOCK_KIND_NODE,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./chunk-TKINOTVS.js";
|
|
26
26
|
import {
|
|
27
27
|
writeTextAtomic
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-PHOWMWFJ.js";
|
|
29
29
|
import {
|
|
30
30
|
palette
|
|
31
31
|
} from "./chunk-RNVYGWIC.js";
|
|
@@ -525,4 +525,4 @@ export {
|
|
|
525
525
|
occurrenceWords,
|
|
526
526
|
renderTemplateShow
|
|
527
527
|
};
|
|
528
|
-
//# sourceMappingURL=chunk-
|
|
528
|
+
//# sourceMappingURL=chunk-PTXHJLAS.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
byCodeUnit,
|
|
11
11
|
canonicalLanguageTag,
|
|
12
12
|
parseLocalizations
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-HIZNNOVW.js";
|
|
14
14
|
|
|
15
15
|
// src/graph/core/vector-index.ts
|
|
16
16
|
var MAGIC = new Uint8Array([77, 71, 82, 86]);
|
|
@@ -1335,4 +1335,4 @@ export {
|
|
|
1335
1335
|
artifactContext,
|
|
1336
1336
|
createRetriever
|
|
1337
1337
|
};
|
|
1338
|
-
//# sourceMappingURL=chunk-
|
|
1338
|
+
//# sourceMappingURL=chunk-Q5EKERQS.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
listInTree,
|
|
6
6
|
safeRead,
|
|
7
7
|
segments
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SX626JUF.js";
|
|
9
9
|
import {
|
|
10
10
|
TracevalsError
|
|
11
11
|
} from "./chunk-ZINZTHWO.js";
|
|
@@ -171,4 +171,4 @@ async function discoverArtifacts(options) {
|
|
|
171
171
|
export {
|
|
172
172
|
discoverArtifacts
|
|
173
173
|
};
|
|
174
|
-
//# sourceMappingURL=chunk-
|
|
174
|
+
//# sourceMappingURL=chunk-QA7AXRGH.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
discoverArtifacts
|
|
4
|
+
} from "./chunk-QA7AXRGH.js";
|
|
2
5
|
import {
|
|
3
6
|
parseHookPayload,
|
|
4
7
|
readStdin
|
|
5
8
|
} from "./chunk-OZUPJB4J.js";
|
|
6
|
-
import {
|
|
7
|
-
discoverArtifacts
|
|
8
|
-
} from "./chunk-GWCITMHN.js";
|
|
9
9
|
import {
|
|
10
10
|
hashFile,
|
|
11
11
|
manifestPathFor,
|
|
12
12
|
relPosix,
|
|
13
13
|
sha256Hex,
|
|
14
14
|
writeManifest
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SX626JUF.js";
|
|
16
16
|
import {
|
|
17
17
|
loadConfig
|
|
18
18
|
} from "./chunk-QSPH4F56.js";
|
|
@@ -212,4 +212,4 @@ export {
|
|
|
212
212
|
runCapture,
|
|
213
213
|
renderCapture
|
|
214
214
|
};
|
|
215
|
-
//# sourceMappingURL=chunk-
|
|
215
|
+
//# sourceMappingURL=chunk-QSY5YPM4.js.map
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
REPORT_FORMAT_LIST,
|
|
17
17
|
renderJunit
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6D7FCU4E.js";
|
|
19
19
|
import {
|
|
20
20
|
isErrorSeverity
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-PGDUVYTF.js";
|
|
22
22
|
import {
|
|
23
23
|
escapeWorkflowCommandMessage,
|
|
24
24
|
escapeWorkflowCommandProperty,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-RNVYGWIC.js";
|
|
30
30
|
import {
|
|
31
31
|
package_default
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-ZODSGFAP.js";
|
|
33
33
|
|
|
34
34
|
// src/lint/core/rule-id.ts
|
|
35
35
|
var RULE_ID_PREFIX = "manni:lint";
|
|
@@ -651,4 +651,4 @@ export {
|
|
|
651
651
|
renderTemplates,
|
|
652
652
|
renderTools
|
|
653
653
|
};
|
|
654
|
-
//# sourceMappingURL=chunk-
|
|
654
|
+
//# sourceMappingURL=chunk-QWCP7UMG.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
displayPath
|
|
4
|
+
} from "./chunk-NEO2HN2N.js";
|
|
5
|
+
import {
|
|
6
|
+
escapeWorkflowCommandMessage,
|
|
7
|
+
escapeWorkflowCommandProperty,
|
|
8
|
+
guidanceLines
|
|
9
|
+
} from "./chunk-QK6VYJHV.js";
|
|
10
|
+
|
|
11
|
+
// src/strategy/reporters/github.ts
|
|
12
|
+
function renderFindingsGithub(report) {
|
|
13
|
+
return report.findings.map((finding) => {
|
|
14
|
+
const params = [`file=${escapeWorkflowCommandProperty(displayPath(finding.file, report.cwd, report.base))}`];
|
|
15
|
+
if (finding.line !== void 0) params.push(`line=${String(finding.line)}`);
|
|
16
|
+
params.push(`title=${escapeWorkflowCommandProperty(finding.ruleId)}`);
|
|
17
|
+
const message = [finding.message, ...guidanceLines(finding.guidance)].join("\n");
|
|
18
|
+
return `::${finding.severity} ${params.join(",")}::${escapeWorkflowCommandMessage(message)}`;
|
|
19
|
+
}).join("\n");
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
renderFindingsGithub
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=chunk-RGZBROMW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/strategy/reporters/github.ts"],"sourcesContent":["/**\n * GitHub workflow commands, one per reported finding:\n * `::warning file=<file>,line=<n>,title=<ruleId>::<message>`, the rule's\n * guidance after `%0A`. A clean run is the empty string, which the CLI prints\n * nothing for.\n */\nimport { escapeWorkflowCommandMessage, escapeWorkflowCommandProperty } from \"../../meta/internal.js\";\nimport { guidanceLines } from \"../../shared/guidance.js\";\nimport type { StrategyReport } from \"../commands/findings.js\";\nimport { displayPath } from \"../commands/run.js\";\n\nexport function renderFindingsGithub(report: StrategyReport): string {\n return report.findings\n .map((finding) => {\n const params = [`file=${escapeWorkflowCommandProperty(displayPath(finding.file, report.cwd, report.base))}`];\n if (finding.line !== undefined) params.push(`line=${String(finding.line)}`);\n params.push(`title=${escapeWorkflowCommandProperty(finding.ruleId)}`);\n const message = [finding.message, ...guidanceLines(finding.guidance)].join(\"\\n\");\n return `::${finding.severity} ${params.join(\",\")}::${escapeWorkflowCommandMessage(message)}`;\n })\n .join(\"\\n\");\n}\n"],"mappings":";;;;;;;;;;;AAWO,SAAS,qBAAqB,QAAgC;AACnE,SAAO,OAAO,SACX,IAAI,CAAC,YAAY;AAChB,UAAM,SAAS,CAAC,QAAQ,8BAA8B,YAAY,QAAQ,MAAM,OAAO,KAAK,OAAO,IAAI,CAAC,CAAC,EAAE;AAC3G,QAAI,QAAQ,SAAS,OAAW,QAAO,KAAK,QAAQ,OAAO,QAAQ,IAAI,CAAC,EAAE;AAC1E,WAAO,KAAK,SAAS,8BAA8B,QAAQ,MAAM,CAAC,EAAE;AACpE,UAAM,UAAU,CAAC,QAAQ,SAAS,GAAG,cAAc,QAAQ,QAAQ,CAAC,EAAE,KAAK,IAAI;AAC/E,WAAO,KAAK,QAAQ,QAAQ,IAAI,OAAO,KAAK,GAAG,CAAC,KAAK,6BAA6B,OAAO,CAAC;AAAA,EAC5F,CAAC,EACA,KAAK,IAAI;AACd;","names":[]}
|
|
@@ -3,6 +3,11 @@ import {
|
|
|
3
3
|
detectFramework,
|
|
4
4
|
loadSiteConfig
|
|
5
5
|
} from "./chunk-245W2Q7C.js";
|
|
6
|
+
import {
|
|
7
|
+
canonicalLanguage,
|
|
8
|
+
deriveGraph,
|
|
9
|
+
termIndex
|
|
10
|
+
} from "./chunk-MNK732BZ.js";
|
|
6
11
|
import {
|
|
7
12
|
EmbedderUnavailableError,
|
|
8
13
|
bodyOf,
|
|
@@ -23,16 +28,11 @@ import {
|
|
|
23
28
|
partitionByLanguage,
|
|
24
29
|
storeToQuads,
|
|
25
30
|
validateGraph
|
|
26
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-ZVEDBFTM.js";
|
|
27
32
|
import {
|
|
28
33
|
GraphIndex,
|
|
29
34
|
encodeVectorIndex
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import {
|
|
32
|
-
canonicalLanguage,
|
|
33
|
-
deriveGraph,
|
|
34
|
-
termIndex
|
|
35
|
-
} from "./chunk-T363DMEJ.js";
|
|
35
|
+
} from "./chunk-Q5EKERQS.js";
|
|
36
36
|
import {
|
|
37
37
|
COPIED_SHARE,
|
|
38
38
|
copiedPairs,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
questionKey,
|
|
43
43
|
readQuestionFile,
|
|
44
44
|
withExternalMetadata
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-ITA7V5Y2.js";
|
|
46
46
|
import {
|
|
47
47
|
COVERAGE_FIELDS,
|
|
48
48
|
GRAPH_NOT_APPLICABLE_TO_VARIANT,
|
|
@@ -99,13 +99,13 @@ import {
|
|
|
99
99
|
routesFrom,
|
|
100
100
|
searchIndexFilename,
|
|
101
101
|
vectorIndexFilename
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-HIZNNOVW.js";
|
|
103
103
|
import {
|
|
104
104
|
splitBody
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-UKSXQHSE.js";
|
|
106
106
|
import {
|
|
107
107
|
mergeMetaProvenance
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-6VGWLCYT.js";
|
|
109
109
|
import {
|
|
110
110
|
findWindows,
|
|
111
111
|
isMissing,
|
|
@@ -114,7 +114,7 @@ import {
|
|
|
114
114
|
pinOfLines,
|
|
115
115
|
spellLines,
|
|
116
116
|
spliceManifestValue
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-PHOWMWFJ.js";
|
|
118
118
|
import {
|
|
119
119
|
termLabelSource
|
|
120
120
|
} from "./chunk-DSWKBZWW.js";
|
|
@@ -122,7 +122,7 @@ import {
|
|
|
122
122
|
DocmetaError,
|
|
123
123
|
urlManifestMessage,
|
|
124
124
|
writeFileAtomic
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-PGDUVYTF.js";
|
|
126
126
|
import {
|
|
127
127
|
noticeOnce,
|
|
128
128
|
warn
|
|
@@ -3298,4 +3298,4 @@ export {
|
|
|
3298
3298
|
runStats,
|
|
3299
3299
|
renderStats
|
|
3300
3300
|
};
|
|
3301
|
-
//# sourceMappingURL=chunk-
|
|
3301
|
+
//# sourceMappingURL=chunk-RXCDT55X.js.map
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
loadGraderPlugins,
|
|
8
8
|
parseNewerThan,
|
|
9
9
|
urlManifestRefusal
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5MJE5KMY.js";
|
|
11
11
|
import {
|
|
12
12
|
discoverArtifacts
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-QA7AXRGH.js";
|
|
14
14
|
import {
|
|
15
15
|
discoverConfig
|
|
16
16
|
} from "./chunk-QSPH4F56.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
externalWriteWarnings,
|
|
34
34
|
mergeMetaProvenance,
|
|
35
35
|
offerExternalHomes
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-6VGWLCYT.js";
|
|
37
37
|
import {
|
|
38
38
|
keyHome,
|
|
39
39
|
marksValidator,
|
|
@@ -41,12 +41,12 @@ import {
|
|
|
41
41
|
readManifestOrEmpty,
|
|
42
42
|
readManifestValue,
|
|
43
43
|
spliceManifestValue
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-PHOWMWFJ.js";
|
|
45
45
|
import {
|
|
46
46
|
DocmetaError,
|
|
47
47
|
extractFrontmatter,
|
|
48
48
|
writeFileAtomic
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-PGDUVYTF.js";
|
|
50
50
|
import {
|
|
51
51
|
SEVERITIES
|
|
52
52
|
} from "./chunk-77AINBYM.js";
|
|
@@ -1191,4 +1191,4 @@ export {
|
|
|
1191
1191
|
runFill,
|
|
1192
1192
|
renderFill
|
|
1193
1193
|
};
|
|
1194
|
-
//# sourceMappingURL=chunk-
|
|
1194
|
+
//# sourceMappingURL=chunk-SFSALDIR.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
newAvailability,
|
|
9
9
|
newReplay,
|
|
10
10
|
remapAvailability
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SX626JUF.js";
|
|
12
12
|
import {
|
|
13
13
|
makeRedactor
|
|
14
14
|
} from "./chunk-6WJUZQQX.js";
|
|
@@ -864,4 +864,4 @@ export {
|
|
|
864
864
|
parseTraceContent,
|
|
865
865
|
renderTrace
|
|
866
866
|
};
|
|
867
|
-
//# sourceMappingURL=chunk-
|
|
867
|
+
//# sourceMappingURL=chunk-SFTWEGUD.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
RULE_ID_PREFIX,
|
|
5
5
|
parseSrc,
|
|
6
6
|
ruleId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GL2HXZVX.js";
|
|
8
8
|
import {
|
|
9
9
|
ANY_FENCE,
|
|
10
10
|
anchoredLines,
|
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
splitUnit,
|
|
26
26
|
toBodyLines,
|
|
27
27
|
toFileLines
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-PHOWMWFJ.js";
|
|
29
29
|
import {
|
|
30
30
|
isErrorSeverity
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-PGDUVYTF.js";
|
|
32
32
|
|
|
33
33
|
// src/cite/core/spell.ts
|
|
34
34
|
function shortPin(integrity) {
|
|
@@ -667,4 +667,4 @@ export {
|
|
|
667
667
|
withRemedy,
|
|
668
668
|
remedyFor
|
|
669
669
|
};
|
|
670
|
-
//# sourceMappingURL=chunk-
|
|
670
|
+
//# sourceMappingURL=chunk-SGI3WPYK.js.map
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
PAGE_FIELDS,
|
|
4
|
+
PARENTS,
|
|
5
|
+
guidanceFor,
|
|
6
|
+
resolveSeverity,
|
|
7
|
+
ruleId
|
|
8
|
+
} from "./chunk-O4O6JOGD.js";
|
|
9
|
+
import {
|
|
10
|
+
closestName
|
|
11
|
+
} from "./chunk-XTKJNRJ6.js";
|
|
12
|
+
|
|
13
|
+
// src/strategy/core/check.ts
|
|
14
|
+
var fold = (value) => value.toLowerCase();
|
|
15
|
+
var FIELD_TYPES = {
|
|
16
|
+
audiences: "audience",
|
|
17
|
+
personas: "persona",
|
|
18
|
+
journeys: "journey",
|
|
19
|
+
audience: "audience"
|
|
20
|
+
};
|
|
21
|
+
var parentTypeOf = (type) => FIELD_TYPES[PARENTS[type]];
|
|
22
|
+
function indexSet(set) {
|
|
23
|
+
const byType = /* @__PURE__ */ new Map();
|
|
24
|
+
const byId = /* @__PURE__ */ new Map();
|
|
25
|
+
for (const record of set.records) {
|
|
26
|
+
const ids = byType.get(record.type) ?? /* @__PURE__ */ new Map();
|
|
27
|
+
if (!ids.has(fold(record.id))) ids.set(fold(record.id), record);
|
|
28
|
+
byType.set(record.type, ids);
|
|
29
|
+
if (!byId.has(fold(record.id))) byId.set(fold(record.id), record);
|
|
30
|
+
}
|
|
31
|
+
const resolveIn = (type, value) => byType.get(type)?.get(fold(value));
|
|
32
|
+
const parentsOf = (record) => {
|
|
33
|
+
if (record.type === "audience") return [];
|
|
34
|
+
const type = parentTypeOf(record.type);
|
|
35
|
+
const found = record.parents.map((p) => resolveIn(type, p.value)).filter((r) => r !== void 0);
|
|
36
|
+
return [...new Set(found)];
|
|
37
|
+
};
|
|
38
|
+
const children = /* @__PURE__ */ new Map();
|
|
39
|
+
for (const record of set.records) {
|
|
40
|
+
for (const parent of parentsOf(record)) children.set(parent, [...children.get(parent) ?? [], record]);
|
|
41
|
+
}
|
|
42
|
+
const pages = /* @__PURE__ */ new Map();
|
|
43
|
+
for (const reference of set.references) {
|
|
44
|
+
if (reference.record) continue;
|
|
45
|
+
const target = resolveIn(FIELD_TYPES[reference.field], reference.value);
|
|
46
|
+
if (target === void 0) continue;
|
|
47
|
+
const named = pages.get(target) ?? /* @__PURE__ */ new Set();
|
|
48
|
+
named.add(reference.page);
|
|
49
|
+
pages.set(target, named);
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
has: (type) => (byType.get(type)?.size ?? 0) > 0,
|
|
53
|
+
resolve: resolveIn,
|
|
54
|
+
anyWithId: (value) => byId.get(fold(value)),
|
|
55
|
+
parentsOf,
|
|
56
|
+
childrenOf: (record) => children.get(record) ?? [],
|
|
57
|
+
pagesNaming: (record) => [...pages.get(record) ?? []].sort()
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function article(type) {
|
|
61
|
+
return `${type === "audience" ? "an" : "a"} ${type}`;
|
|
62
|
+
}
|
|
63
|
+
function onRecord(record) {
|
|
64
|
+
return record.idAt ?? { file: record.file, line: record.line };
|
|
65
|
+
}
|
|
66
|
+
function located(at) {
|
|
67
|
+
return { file: at.file, ...at.line === void 0 ? {} : { line: at.line } };
|
|
68
|
+
}
|
|
69
|
+
function ancestorOf(index, record, type) {
|
|
70
|
+
let current = index.parentsOf(record)[0];
|
|
71
|
+
while (current !== void 0 && current.type !== type) current = index.parentsOf(current)[0];
|
|
72
|
+
return current;
|
|
73
|
+
}
|
|
74
|
+
function checkStrategySet(set, opts = {}) {
|
|
75
|
+
const levels = resolveSeverity(opts.severity);
|
|
76
|
+
const index = indexSet(set);
|
|
77
|
+
const drafts = [];
|
|
78
|
+
const unresolved = (field, value, onRecordField) => {
|
|
79
|
+
const type = FIELD_TYPES[field];
|
|
80
|
+
const other = index.anyWithId(value);
|
|
81
|
+
if (other !== void 0) {
|
|
82
|
+
const ancestor = ancestorOf(index, other, type);
|
|
83
|
+
const fix2 = ancestor !== void 0 ? `Did you mean its ${type}, "${ancestor.id}"?` : onRecordField ? "Correct the value." : `Move it to ${PAGE_FIELDS[other.type]}:.`;
|
|
84
|
+
return { message: `${field}: "${value}" is ${article(other.type)}, not ${article(type)}.`, fix: fix2 };
|
|
85
|
+
}
|
|
86
|
+
const ids = set.records.filter((r) => r.type === type).map((r) => r.id);
|
|
87
|
+
const nearest = closestName(fold(value), ids.map(fold));
|
|
88
|
+
const suggestion = nearest === void 0 ? void 0 : ids.find((id) => fold(id) === nearest);
|
|
89
|
+
const add = `Correct the value, or add a record with type: ${type} and id: ${value}.`;
|
|
90
|
+
const fix = suggestion === void 0 ? add : onRecordField ? `Did you mean "${suggestion}"?` : `Did you mean "${suggestion}"? ${add}`;
|
|
91
|
+
return { message: `${field}: "${value}" names no ${type}.`, fix };
|
|
92
|
+
};
|
|
93
|
+
for (const reference of set.references) {
|
|
94
|
+
const type = FIELD_TYPES[reference.field];
|
|
95
|
+
if (!index.has(type) || index.resolve(type, reference.value) !== void 0) continue;
|
|
96
|
+
drafts.push({
|
|
97
|
+
rule: "undefined-reference",
|
|
98
|
+
...unresolved(reference.field, reference.value, false),
|
|
99
|
+
...located(reference),
|
|
100
|
+
field: reference.field
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
for (const record of set.records) {
|
|
104
|
+
if (record.type === "audience") continue;
|
|
105
|
+
const field = PARENTS[record.type];
|
|
106
|
+
const type = parentTypeOf(record.type);
|
|
107
|
+
if (!index.has(type)) continue;
|
|
108
|
+
for (const parent of record.parents) {
|
|
109
|
+
if (index.resolve(type, parent.value) !== void 0) continue;
|
|
110
|
+
drafts.push({
|
|
111
|
+
rule: "undefined-reference",
|
|
112
|
+
...unresolved(field, parent.value, true),
|
|
113
|
+
...located(parent),
|
|
114
|
+
id: record.id,
|
|
115
|
+
field
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
const sharing = /* @__PURE__ */ new Map();
|
|
120
|
+
for (const record of set.records) sharing.set(fold(record.id), [...sharing.get(fold(record.id)) ?? [], record]);
|
|
121
|
+
for (const group of sharing.values()) {
|
|
122
|
+
if (group.length < 2) continue;
|
|
123
|
+
for (const record of group) {
|
|
124
|
+
const others = group.filter((other) => other !== record).map((other) => {
|
|
125
|
+
const at = onRecord(other);
|
|
126
|
+
return at.line === void 0 ? at.file : `${at.file}:${String(at.line)}`;
|
|
127
|
+
});
|
|
128
|
+
drafts.push({
|
|
129
|
+
rule: "duplicate-id",
|
|
130
|
+
message: `id: "${record.id}" is also the id of ${others.join(", ")}.`,
|
|
131
|
+
fix: "Give each record its own id.",
|
|
132
|
+
...located(onRecord(record)),
|
|
133
|
+
id: record.id
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
const byPage = /* @__PURE__ */ new Map();
|
|
138
|
+
for (const reference of set.references) {
|
|
139
|
+
if (reference.record) continue;
|
|
140
|
+
byPage.set(reference.page, [...byPage.get(reference.page) ?? [], reference]);
|
|
141
|
+
}
|
|
142
|
+
for (const references of byPage.values()) {
|
|
143
|
+
const named = (field) => new Set(references.filter((r) => r.field === field).map((r) => fold(r.value)));
|
|
144
|
+
const reported = /* @__PURE__ */ new Set();
|
|
145
|
+
for (const childType of ["journey", "persona"]) {
|
|
146
|
+
const parentType = parentTypeOf(childType);
|
|
147
|
+
const parentField = PAGE_FIELDS[parentType];
|
|
148
|
+
const has = named(parentField);
|
|
149
|
+
for (const reference of references) {
|
|
150
|
+
if (reference.field !== PAGE_FIELDS[childType]) continue;
|
|
151
|
+
const child = index.resolve(childType, reference.value);
|
|
152
|
+
if (child === void 0) continue;
|
|
153
|
+
const parents = index.parentsOf(child);
|
|
154
|
+
const ids = parents.map((p) => `"${p.id}"`).join(", ");
|
|
155
|
+
const key = `${parentType} ${ids}`;
|
|
156
|
+
if (parents.length === 0 || parents.some((p) => has.has(fold(p.id))) || reported.has(key)) continue;
|
|
157
|
+
reported.add(key);
|
|
158
|
+
const one = parents.length === 1;
|
|
159
|
+
drafts.push({
|
|
160
|
+
rule: "missing-parent",
|
|
161
|
+
message: one ? `${parentField}: does not name ${ids}, the ${parentType} of ${childType} "${child.id}".` : `${parentField}: names none of ${ids}, the ${parentField} of ${childType} "${child.id}".`,
|
|
162
|
+
fix: `Add ${one ? "it" : "one"}, or drop "${child.id}" from ${PAGE_FIELDS[childType]}:.`,
|
|
163
|
+
...located(reference),
|
|
164
|
+
field: parentField
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
for (const record of set.records) {
|
|
170
|
+
const at = located(onRecord(record));
|
|
171
|
+
if (record.type !== "audience" && record.parents.length === 0 && index.has(parentTypeOf(record.type))) {
|
|
172
|
+
const field = PARENTS[record.type];
|
|
173
|
+
drafts.push({
|
|
174
|
+
rule: "orphan-record",
|
|
175
|
+
message: `${field}: missing, so this ${record.type} belongs to no ${parentTypeOf(record.type)}.`,
|
|
176
|
+
fix: `Name one with ${field}:.`,
|
|
177
|
+
...at,
|
|
178
|
+
id: record.id,
|
|
179
|
+
field
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
if (index.resolve(record.type, record.id) !== record) continue;
|
|
183
|
+
const pages = index.pagesNaming(record);
|
|
184
|
+
const live = record.lifecycle !== "draft" && record.lifecycle !== "archived";
|
|
185
|
+
if (record.type === "journey" && live && pages.length === 0) {
|
|
186
|
+
drafts.push({
|
|
187
|
+
rule: "unserved-journey",
|
|
188
|
+
message: "no page names this journey in journeys:.",
|
|
189
|
+
fix: "Name it on the pages that serve it.",
|
|
190
|
+
...at,
|
|
191
|
+
id: record.id
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
if (record.type !== "journey" && pages.length === 0 && index.childrenOf(record).length === 0) {
|
|
195
|
+
drafts.push({
|
|
196
|
+
rule: "unused-record",
|
|
197
|
+
message: `no page and no record names this ${record.type}.`,
|
|
198
|
+
...at,
|
|
199
|
+
id: record.id
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
const findings = [];
|
|
204
|
+
for (const draft of drafts) {
|
|
205
|
+
const level = levels[draft.rule];
|
|
206
|
+
if (level === "off") continue;
|
|
207
|
+
findings.push({
|
|
208
|
+
rule: draft.rule,
|
|
209
|
+
ruleId: ruleId(draft.rule),
|
|
210
|
+
severity: level,
|
|
211
|
+
message: draft.fix === void 0 ? draft.message : `${draft.message} ${draft.fix}`,
|
|
212
|
+
...draft.fix === void 0 ? {} : { key: draft.message },
|
|
213
|
+
guidance: guidanceFor(draft.rule),
|
|
214
|
+
file: draft.file,
|
|
215
|
+
...draft.line === void 0 ? {} : { line: draft.line },
|
|
216
|
+
...draft.id === void 0 ? {} : { id: draft.id },
|
|
217
|
+
...draft.field === void 0 ? {} : { field: draft.field }
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
return findings.sort(compareFindings);
|
|
221
|
+
}
|
|
222
|
+
function compareText(a, b) {
|
|
223
|
+
return a < b ? -1 : a > b ? 1 : 0;
|
|
224
|
+
}
|
|
225
|
+
function compareFindings(a, b) {
|
|
226
|
+
return compareText(a.file, b.file) || (a.line ?? 0) - (b.line ?? 0) || compareText(a.ruleId, b.ruleId) || compareText(a.message, b.message);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export {
|
|
230
|
+
indexSet,
|
|
231
|
+
checkStrategySet
|
|
232
|
+
};
|
|
233
|
+
//# sourceMappingURL=chunk-SIREOHLW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/strategy/core/check.ts"],"sourcesContent":["/**\n * `strategy check`'s rules (proposal 0102). Pure: it reads records and\n * references and returns findings, so the command core owns every file and\n * the rules are tested on sets built inline.\n *\n * Ids compare case-folded. A reference field is checked only when the set\n * holds a record of that field's type, so a repo that keeps no audience\n * records keeps free-form `audiences:`. `missing-parent` and the use counts\n * read pages that are not records: a record's own `journeys:` serves nobody.\n */\nimport { closestName } from \"../../shared/closest-name.js\";\nimport {\n PAGE_FIELDS,\n PARENTS,\n type At,\n type ChildType,\n type RecordType,\n type ReferenceField,\n type StrategyFinding,\n type StrategyRecord,\n type StrategyRule,\n type StrategySet,\n type StrategySeverity,\n} from \"../types.js\";\nimport { guidanceFor, resolveSeverity, ruleId } from \"./severity.js\";\n\nconst fold = (value: string): string => value.toLowerCase();\n\n/** The type each page field names. */\nconst FIELD_TYPES: Readonly<Record<ReferenceField, RecordType>> = {\n audiences: \"audience\",\n personas: \"persona\",\n journeys: \"journey\",\n audience: \"audience\",\n};\n\n/** The type of a child's parents: an audience for a persona, a persona for a journey. */\nconst parentTypeOf = (type: ChildType): RecordType => FIELD_TYPES[PARENTS[type]];\n\n/** What a set's records and pages say about each other, resolved once for `check`, `list` and `get`. */\nexport interface StrategyIndex {\n /** Whether the set holds a record of this type. */\n has(type: RecordType): boolean;\n /** The record of `type` a value names, case-folded. The first one read wins. */\n resolve(type: RecordType, value: string): StrategyRecord | undefined;\n /** The first record of any type with this id, case-folded. */\n anyWithId(value: string): StrategyRecord | undefined;\n /** The records of the parent type the record's parent field names, each once, in the field's order. */\n parentsOf(record: StrategyRecord): StrategyRecord[];\n /** The records whose parent field names this record, in set order. */\n childrenOf(record: StrategyRecord): StrategyRecord[];\n /** The pages that name this record directly, sorted. Records do not count. */\n pagesNaming(record: StrategyRecord): string[];\n}\n\nexport function indexSet(set: StrategySet): StrategyIndex {\n const byType = new Map<RecordType, Map<string, StrategyRecord>>();\n const byId = new Map<string, StrategyRecord>();\n for (const record of set.records) {\n const ids = byType.get(record.type) ?? new Map<string, StrategyRecord>();\n if (!ids.has(fold(record.id))) ids.set(fold(record.id), record);\n byType.set(record.type, ids);\n if (!byId.has(fold(record.id))) byId.set(fold(record.id), record);\n }\n const resolveIn = (type: RecordType, value: string): StrategyRecord | undefined => byType.get(type)?.get(fold(value));\n const parentsOf = (record: StrategyRecord): StrategyRecord[] => {\n if (record.type === \"audience\") return [];\n const type = parentTypeOf(record.type);\n const found = record.parents.map((p) => resolveIn(type, p.value)).filter((r) => r !== undefined);\n return [...new Set(found)];\n };\n\n const children = new Map<StrategyRecord, StrategyRecord[]>();\n for (const record of set.records) {\n for (const parent of parentsOf(record)) children.set(parent, [...(children.get(parent) ?? []), record]);\n }\n const pages = new Map<StrategyRecord, Set<string>>();\n for (const reference of set.references) {\n if (reference.record) continue;\n const target = resolveIn(FIELD_TYPES[reference.field], reference.value);\n if (target === undefined) continue;\n const named = pages.get(target) ?? new Set<string>();\n named.add(reference.page);\n pages.set(target, named);\n }\n\n return {\n has: (type) => (byType.get(type)?.size ?? 0) > 0,\n resolve: resolveIn,\n anyWithId: (value) => byId.get(fold(value)),\n parentsOf,\n childrenOf: (record) => children.get(record) ?? [],\n pagesNaming: (record) => [...(pages.get(record) ?? [])].sort(),\n };\n}\n\n/** A finding before its level is known: `message` is its identity, `fix` the advice after it. */\ninterface Draft {\n rule: StrategyRule;\n message: string;\n fix?: string;\n file: string;\n line?: number;\n id?: string;\n field?: ReferenceField;\n}\n\n/** `a journey`, `an audience`. */\nfunction article(type: RecordType): string {\n return `${type === \"audience\" ? \"an\" : \"a\"} ${type}`;\n}\n\n/** Where a finding about a whole record sits: its `id:` line, else its first line. */\nfunction onRecord(record: StrategyRecord): At {\n return record.idAt ?? { file: record.file, line: record.line };\n}\n\nfunction located(at: At): At {\n return { file: at.file, ...(at.line === undefined ? {} : { line: at.line }) };\n}\n\n/** The ancestor of `record` of type `type`, walking up each record's first parent. */\nfunction ancestorOf(index: StrategyIndex, record: StrategyRecord, type: RecordType): StrategyRecord | undefined {\n let current = index.parentsOf(record)[0];\n while (current !== undefined && current.type !== type) current = index.parentsOf(current)[0];\n return current;\n}\n\nexport interface CheckStrategySetOptions {\n severity?: Partial<Record<StrategyRule, StrategySeverity>>;\n}\n\nexport function checkStrategySet(set: StrategySet, opts: CheckStrategySetOptions = {}): StrategyFinding[] {\n const levels = resolveSeverity(opts.severity);\n const index = indexSet(set);\n const drafts: Draft[] = [];\n\n /** The finding for a value that names no record of `type`, or the wrong type of record. */\n const unresolved = (field: ReferenceField, value: string, onRecordField: boolean): Pick<Draft, \"message\" | \"fix\"> => {\n const type = FIELD_TYPES[field];\n const other = index.anyWithId(value);\n if (other !== undefined) {\n const ancestor = ancestorOf(index, other, type);\n const fix =\n ancestor !== undefined\n ? `Did you mean its ${type}, \"${ancestor.id}\"?`\n : onRecordField\n ? \"Correct the value.\"\n : `Move it to ${PAGE_FIELDS[other.type]}:.`;\n return { message: `${field}: \"${value}\" is ${article(other.type)}, not ${article(type)}.`, fix };\n }\n const ids = set.records.filter((r) => r.type === type).map((r) => r.id);\n const nearest = closestName(fold(value), ids.map(fold));\n const suggestion = nearest === undefined ? undefined : ids.find((id) => fold(id) === nearest);\n const add = `Correct the value, or add a record with type: ${type} and id: ${value}.`;\n const fix =\n suggestion === undefined ? add : onRecordField ? `Did you mean \"${suggestion}\"?` : `Did you mean \"${suggestion}\"? ${add}`;\n return { message: `${field}: \"${value}\" names no ${type}.`, fix };\n };\n\n // undefined-reference, on every page's fields, records included.\n for (const reference of set.references) {\n const type = FIELD_TYPES[reference.field];\n if (!index.has(type) || index.resolve(type, reference.value) !== undefined) continue;\n drafts.push({\n rule: \"undefined-reference\",\n ...unresolved(reference.field, reference.value, false),\n ...located(reference),\n field: reference.field,\n });\n }\n // ...and on each value of a record's parent field.\n for (const record of set.records) {\n if (record.type === \"audience\") continue;\n const field = PARENTS[record.type];\n const type = parentTypeOf(record.type);\n if (!index.has(type)) continue;\n for (const parent of record.parents) {\n if (index.resolve(type, parent.value) !== undefined) continue;\n drafts.push({\n rule: \"undefined-reference\",\n ...unresolved(field, parent.value, true),\n ...located(parent),\n id: record.id,\n field,\n });\n }\n }\n\n // duplicate-id: on every record sharing the id, each naming the others.\n const sharing = new Map<string, StrategyRecord[]>();\n for (const record of set.records) sharing.set(fold(record.id), [...(sharing.get(fold(record.id)) ?? []), record]);\n for (const group of sharing.values()) {\n if (group.length < 2) continue;\n for (const record of group) {\n const others = group\n .filter((other) => other !== record)\n .map((other) => {\n const at = onRecord(other);\n return at.line === undefined ? at.file : `${at.file}:${String(at.line)}`;\n });\n drafts.push({\n rule: \"duplicate-id\",\n message: `id: \"${record.id}\" is also the id of ${others.join(\", \")}.`,\n fix: \"Give each record its own id.\",\n ...located(onRecord(record)),\n id: record.id,\n });\n }\n }\n\n // missing-parent: per page, one finding per set of parents the page names none of.\n const byPage = new Map<string, typeof set.references>();\n for (const reference of set.references) {\n if (reference.record) continue;\n byPage.set(reference.page, [...(byPage.get(reference.page) ?? []), reference]);\n }\n for (const references of byPage.values()) {\n const named = (field: ReferenceField): Set<string> =>\n new Set(references.filter((r) => r.field === field).map((r) => fold(r.value)));\n const reported = new Set<string>();\n for (const childType of [\"journey\", \"persona\"] as const satisfies readonly ChildType[]) {\n const parentType = parentTypeOf(childType);\n const parentField = PAGE_FIELDS[parentType];\n const has = named(parentField);\n for (const reference of references) {\n if (reference.field !== PAGE_FIELDS[childType]) continue;\n const child = index.resolve(childType, reference.value);\n if (child === undefined) continue;\n const parents = index.parentsOf(child);\n const ids = parents.map((p) => `\"${p.id}\"`).join(\", \");\n const key = `${parentType} ${ids}`;\n if (parents.length === 0 || parents.some((p) => has.has(fold(p.id))) || reported.has(key)) continue;\n reported.add(key);\n const one = parents.length === 1;\n drafts.push({\n rule: \"missing-parent\",\n message: one\n ? `${parentField}: does not name ${ids}, the ${parentType} of ${childType} \"${child.id}\".`\n : `${parentField}: names none of ${ids}, the ${parentField} of ${childType} \"${child.id}\".`,\n fix: `Add ${one ? \"it\" : \"one\"}, or drop \"${child.id}\" from ${PAGE_FIELDS[childType]}:.`,\n ...located(reference),\n field: parentField,\n });\n }\n }\n }\n\n // orphan-record, unserved-journey and unused-record: about whole records.\n for (const record of set.records) {\n const at = located(onRecord(record));\n if (record.type !== \"audience\" && record.parents.length === 0 && index.has(parentTypeOf(record.type))) {\n const field = PARENTS[record.type];\n drafts.push({\n rule: \"orphan-record\",\n message: `${field}: missing, so this ${record.type} belongs to no ${parentTypeOf(record.type)}.`,\n fix: `Name one with ${field}:.`,\n ...at,\n id: record.id,\n field,\n });\n }\n // Only the first record with an id is the one references resolve to.\n if (index.resolve(record.type, record.id) !== record) continue;\n const pages = index.pagesNaming(record);\n // A draft journey is not live yet, and an archived one no longer is, so neither owes a page.\n const live = record.lifecycle !== \"draft\" && record.lifecycle !== \"archived\";\n if (record.type === \"journey\" && live && pages.length === 0) {\n drafts.push({\n rule: \"unserved-journey\",\n message: \"no page names this journey in journeys:.\",\n fix: \"Name it on the pages that serve it.\",\n ...at,\n id: record.id,\n });\n }\n if (record.type !== \"journey\" && pages.length === 0 && index.childrenOf(record).length === 0) {\n drafts.push({\n rule: \"unused-record\",\n message: `no page and no record names this ${record.type}.`,\n ...at,\n id: record.id,\n });\n }\n }\n\n const findings: StrategyFinding[] = [];\n for (const draft of drafts) {\n const level = levels[draft.rule];\n if (level === \"off\") continue;\n findings.push({\n rule: draft.rule,\n ruleId: ruleId(draft.rule),\n severity: level,\n message: draft.fix === undefined ? draft.message : `${draft.message} ${draft.fix}`,\n ...(draft.fix === undefined ? {} : { key: draft.message }),\n guidance: guidanceFor(draft.rule),\n file: draft.file,\n ...(draft.line === undefined ? {} : { line: draft.line }),\n ...(draft.id === undefined ? {} : { id: draft.id }),\n ...(draft.field === undefined ? {} : { field: draft.field }),\n });\n }\n return findings.sort(compareFindings);\n}\n\nfunction compareText(a: string, b: string): number {\n return a < b ? -1 : a > b ? 1 : 0;\n}\n\nexport function compareFindings(a: StrategyFinding, b: StrategyFinding): number {\n return (\n compareText(a.file, b.file) ||\n (a.line ?? 0) - (b.line ?? 0) ||\n compareText(a.ruleId, b.ruleId) ||\n compareText(a.message, b.message)\n );\n}\n"],"mappings":";;;;;;;;;;;;;AA0BA,IAAM,OAAO,CAAC,UAA0B,MAAM,YAAY;AAG1D,IAAM,cAA4D;AAAA,EAChE,WAAW;AAAA,EACX,UAAU;AAAA,EACV,UAAU;AAAA,EACV,UAAU;AACZ;AAGA,IAAM,eAAe,CAAC,SAAgC,YAAY,QAAQ,IAAI,CAAC;AAkBxE,SAAS,SAAS,KAAiC;AACxD,QAAM,SAAS,oBAAI,IAA6C;AAChE,QAAM,OAAO,oBAAI,IAA4B;AAC7C,aAAW,UAAU,IAAI,SAAS;AAChC,UAAM,MAAM,OAAO,IAAI,OAAO,IAAI,KAAK,oBAAI,IAA4B;AACvE,QAAI,CAAC,IAAI,IAAI,KAAK,OAAO,EAAE,CAAC,EAAG,KAAI,IAAI,KAAK,OAAO,EAAE,GAAG,MAAM;AAC9D,WAAO,IAAI,OAAO,MAAM,GAAG;AAC3B,QAAI,CAAC,KAAK,IAAI,KAAK,OAAO,EAAE,CAAC,EAAG,MAAK,IAAI,KAAK,OAAO,EAAE,GAAG,MAAM;AAAA,EAClE;AACA,QAAM,YAAY,CAAC,MAAkB,U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W,GAAmB;AACjD,SAAO,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI;AAClC;AAEO,SAAS,gBAAgB,GAAoB,GAA4B;AAC9E,SACE,YAAY,EAAE,MAAM,EAAE,IAAI,MACzB,EAAE,QAAQ,MAAM,EAAE,QAAQ,MAC3B,YAAY,EAAE,QAAQ,EAAE,MAAM,KAC9B,YAAY,EAAE,SAAS,EAAE,OAAO;AAEpC;","names":["fix"]}
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
CONCEPT_FIELDS,
|
|
12
12
|
fieldPointer,
|
|
13
13
|
valueAt
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UKSXQHSE.js";
|
|
15
15
|
import {
|
|
16
16
|
codeEndAt,
|
|
17
17
|
codeRegions
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-PHOWMWFJ.js";
|
|
19
19
|
import {
|
|
20
20
|
STDIN_LABEL,
|
|
21
21
|
STDIN_TOKEN,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
locateFrontmatter,
|
|
27
27
|
resolveTargetSet,
|
|
28
28
|
supportedExtensions
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-PGDUVYTF.js";
|
|
30
30
|
import {
|
|
31
31
|
SEVERITIES
|
|
32
32
|
} from "./chunk-77AINBYM.js";
|
|
@@ -3410,4 +3410,4 @@ export {
|
|
|
3410
3410
|
valeConfigFor,
|
|
3411
3411
|
plural
|
|
3412
3412
|
};
|
|
3413
|
-
//# sourceMappingURL=chunk-
|
|
3413
|
+
//# sourceMappingURL=chunk-SOW6SVAM.js.map
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
mergeWithMarks,
|
|
9
9
|
pageMarks,
|
|
10
10
|
pageSchemaSet
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PHOWMWFJ.js";
|
|
12
12
|
import {
|
|
13
13
|
loadMetaSection,
|
|
14
14
|
rebaseConfigSchemaRefs,
|
|
15
15
|
schemaTrustRoot
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PGDUVYTF.js";
|
|
17
17
|
|
|
18
18
|
// src/meta/core/page-view.ts
|
|
19
19
|
async function metaPageView(opts) {
|
|
@@ -80,4 +80,4 @@ export {
|
|
|
80
80
|
metaPageView,
|
|
81
81
|
declaredAt
|
|
82
82
|
};
|
|
83
|
-
//# sourceMappingURL=chunk-
|
|
83
|
+
//# sourceMappingURL=chunk-SRTBHEUM.js.map
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
} from "./chunk-4TSWU2SU.js";
|
|
8
8
|
import {
|
|
9
9
|
metaProvenanceEntries
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6VGWLCYT.js";
|
|
11
11
|
import {
|
|
12
12
|
__default3 as __default,
|
|
13
13
|
extractFrontmatter
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PGDUVYTF.js";
|
|
15
15
|
|
|
16
16
|
// src/tracevals/capture/manifest.ts
|
|
17
17
|
import { createHash } from "node:crypto";
|
|
@@ -1168,4 +1168,4 @@ export {
|
|
|
1168
1168
|
ARTIFACT_EVALS_SCHEMA_ID,
|
|
1169
1169
|
extractEvals
|
|
1170
1170
|
};
|
|
1171
|
-
//# sourceMappingURL=chunk-
|
|
1171
|
+
//# sourceMappingURL=chunk-SX626JUF.js.map
|