@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hawkeyexl/manni",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.20.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": {
|
|
@@ -135,7 +135,6 @@
|
|
|
135
135
|
"@commitlint/config-conventional": "^21.2.2",
|
|
136
136
|
"@comunica/query-sparql-rdfjs-lite": "^5.3.0",
|
|
137
137
|
"@eslint/js": "^10.0.1",
|
|
138
|
-
"@modelcontextprotocol/sdk": "^1.32.1",
|
|
139
138
|
"@rdfjs/types": "^2.0.1",
|
|
140
139
|
"@semantic-release/changelog": "^6.0.3",
|
|
141
140
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
@@ -161,18 +160,17 @@
|
|
|
161
160
|
"vitest": "^4.1.11",
|
|
162
161
|
"yauzl": "^3.4.0"
|
|
163
162
|
},
|
|
163
|
+
"optionalDependencies": {
|
|
164
|
+
"@modelcontextprotocol/sdk": "^1.32.1"
|
|
165
|
+
},
|
|
164
166
|
"peerDependencies": {
|
|
165
167
|
"@huggingface/transformers": ">=4",
|
|
166
|
-
"@modelcontextprotocol/sdk": "^1.32.1",
|
|
167
168
|
"node-llama-cpp": "^3.19.0"
|
|
168
169
|
},
|
|
169
170
|
"peerDependenciesMeta": {
|
|
170
171
|
"@huggingface/transformers": {
|
|
171
172
|
"optional": true
|
|
172
173
|
},
|
|
173
|
-
"@modelcontextprotocol/sdk": {
|
|
174
|
-
"optional": true
|
|
175
|
-
},
|
|
176
174
|
"node-llama-cpp": {
|
|
177
175
|
"optional": true
|
|
178
176
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
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,
|
|
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, serves the docs graph to the agent, and hands the agent a page's metadata when it reads one.",
|
|
4
|
+
"version": "4.20.0",
|
|
5
5
|
"author": { "name": "hawkeyexl" },
|
|
6
6
|
"homepage": "https://hawkeyexl.github.io/manni/",
|
|
7
7
|
"repository": "https://github.com/hawkeyexl/manni",
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
// The plugin's MCP server, registered in ../.mcp.json.
|
|
2
|
+
//
|
|
3
|
+
// Where the project sets up `collections:`, it runs `manni graph serve
|
|
4
|
+
// --publish` with stdio passed straight through, so manni speaks MCP to the
|
|
5
|
+
// client. With `graph:` set too, manni publishes into the project's own graph
|
|
6
|
+
// output. Without it, into a directory of the plugin's data kept per project.
|
|
7
|
+
//
|
|
8
|
+
// Elsewhere there is no graph to serve, and it answers MCP itself with no
|
|
9
|
+
// tools, so the client sees a server that is up and empty, not one that
|
|
10
|
+
// failed to start.
|
|
11
|
+
//
|
|
12
|
+
// Plain ESM with no dependencies: the plugin ships as files, not a package.
|
|
13
|
+
import { createHash } from "node:crypto";
|
|
14
|
+
import { mkdirSync, readFileSync } from "node:fs";
|
|
15
|
+
import { tmpdir } from "node:os";
|
|
16
|
+
import { join } from "node:path";
|
|
17
|
+
import { createInterface } from "node:readline";
|
|
18
|
+
import { configFile, isMain, launch, pluginVersion, project } from "./manni.mjs";
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* What to run for a project whose config text is `config` (`undefined` with
|
|
22
|
+
* no config): `{ kind: "serve", args }` for manni's arguments, or
|
|
23
|
+
* `{ kind: "none" }` for the zero-tool server.
|
|
24
|
+
*/
|
|
25
|
+
export function serverPlan(config, projectDir, env) {
|
|
26
|
+
// ponytail: top-level block keys only; a flow-style config (`{collections: [...]}`)
|
|
27
|
+
// reads as unset. Parse the YAML if one ever turns up.
|
|
28
|
+
if (config === undefined || !/^collections\s*:/m.test(config)) return { kind: "none" };
|
|
29
|
+
const args = ["graph", "serve", "--publish"];
|
|
30
|
+
if (/^graph\s*:/m.test(config)) return { kind: "serve", args };
|
|
31
|
+
const hash = createHash("sha256").update(projectDir).digest("hex").slice(0, 16);
|
|
32
|
+
const base = env.CLAUDE_PLUGIN_DATA ? env.CLAUDE_PLUGIN_DATA : join(tmpdir(), "manni");
|
|
33
|
+
return { kind: "serve", args: [...args, "-i", join(base, "graph", hash)] };
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** Answers MCP over newline-delimited JSON-RPC with no tools, until stdin closes. */
|
|
37
|
+
function serveNothing(reason) {
|
|
38
|
+
process.stderr.write(`manni: ${reason}, so the graph server offers no tools.\n`);
|
|
39
|
+
const reply = (message) => process.stdout.write(`${JSON.stringify({ jsonrpc: "2.0", ...message })}\n`);
|
|
40
|
+
const lines = createInterface({ input: process.stdin });
|
|
41
|
+
lines.on("line", (line) => {
|
|
42
|
+
if (line.trim() === "") return;
|
|
43
|
+
let request;
|
|
44
|
+
try {
|
|
45
|
+
request = JSON.parse(line);
|
|
46
|
+
} catch {
|
|
47
|
+
reply({ id: null, error: { code: -32700, message: "Parse error" } });
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
// A notification has no id and gets no answer.
|
|
51
|
+
if (request?.id === undefined || request.id === null) return;
|
|
52
|
+
const { id, method } = request;
|
|
53
|
+
if (method === "initialize") {
|
|
54
|
+
reply({
|
|
55
|
+
id,
|
|
56
|
+
result: {
|
|
57
|
+
// A server answers with the client's version when it supports it. With no
|
|
58
|
+
// tools there is nothing to differ between versions, so this one supports
|
|
59
|
+
// any, and names its own only when the client named none.
|
|
60
|
+
protocolVersion: request.params?.protocolVersion ?? "2025-06-18",
|
|
61
|
+
capabilities: { tools: {} },
|
|
62
|
+
serverInfo: { name: "manni", version: pluginVersion() },
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
} else if (method === "tools/list") reply({ id, result: { tools: [] } });
|
|
66
|
+
else if (method === "ping") reply({ id, result: {} });
|
|
67
|
+
else reply({ id, error: { code: -32601, message: `Method not found: ${method}` } });
|
|
68
|
+
});
|
|
69
|
+
// Nothing else holds the event loop, so the process ends once stdout drains.
|
|
70
|
+
lines.on("close", () => {
|
|
71
|
+
process.exitCode = 0;
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (isMain(import.meta.url)) {
|
|
76
|
+
const file = configFile();
|
|
77
|
+
const plan = serverPlan(file === undefined ? undefined : readFileSync(file, "utf8"), project, process.env);
|
|
78
|
+
if (plan.kind === "none") serveNothing("no collections are set up here");
|
|
79
|
+
else {
|
|
80
|
+
const i = plan.args.indexOf("-i");
|
|
81
|
+
const dir = i === -1 ? undefined : plan.args[i + 1];
|
|
82
|
+
if (dir !== undefined) mkdirSync(dir, { recursive: true });
|
|
83
|
+
const child = launch(plan.args, { stdio: "inherit", cwd: project });
|
|
84
|
+
// Only manni's own checkout, before it is built, has no manni to run.
|
|
85
|
+
if (child === undefined) serveNothing("this checkout of manni is not built; run npm run build");
|
|
86
|
+
else {
|
|
87
|
+
child.on("error", () => {
|
|
88
|
+
process.exitCode = 1;
|
|
89
|
+
});
|
|
90
|
+
child.on("exit", (code) => {
|
|
91
|
+
process.exitCode = code ?? 1;
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -45,6 +45,19 @@
|
|
|
45
45
|
"async": true
|
|
46
46
|
}
|
|
47
47
|
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"matcher": "compact",
|
|
51
|
+
"hooks": [
|
|
52
|
+
{
|
|
53
|
+
"type": "command",
|
|
54
|
+
"command": "node",
|
|
55
|
+
"args": [
|
|
56
|
+
"${CLAUDE_PLUGIN_ROOT}/hooks/page-metadata.mjs"
|
|
57
|
+
],
|
|
58
|
+
"timeout": 30
|
|
59
|
+
}
|
|
60
|
+
]
|
|
48
61
|
}
|
|
49
62
|
],
|
|
50
63
|
"PostToolUse": [
|
|
@@ -62,6 +75,19 @@
|
|
|
62
75
|
"statusMessage": "Checking the edited file…"
|
|
63
76
|
}
|
|
64
77
|
]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"matcher": "Read",
|
|
81
|
+
"hooks": [
|
|
82
|
+
{
|
|
83
|
+
"type": "command",
|
|
84
|
+
"command": "node",
|
|
85
|
+
"args": [
|
|
86
|
+
"${CLAUDE_PLUGIN_ROOT}/hooks/page-metadata.mjs"
|
|
87
|
+
],
|
|
88
|
+
"timeout": 30
|
|
89
|
+
}
|
|
90
|
+
]
|
|
65
91
|
}
|
|
66
92
|
],
|
|
67
93
|
"Stop": [
|
|
@@ -15,14 +15,18 @@
|
|
|
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` and
|
|
19
|
+
// `pluginVersion` from here. Run as a script, it launches manni with its own
|
|
20
|
+
// arguments.
|
|
21
|
+
//
|
|
18
22
|
// Plain ESM with no dependencies: the plugin ships as files, not a package.
|
|
19
23
|
import { spawn, spawnSync } from "node:child_process";
|
|
20
|
-
import { existsSync, readFileSync } from "node:fs";
|
|
24
|
+
import { existsSync, readFileSync, realpathSync } from "node:fs";
|
|
21
25
|
import { dirname, join, resolve } from "node:path";
|
|
22
26
|
import { fileURLToPath } from "node:url";
|
|
23
27
|
|
|
24
28
|
const PACKAGE = "@hawkeyexl/manni";
|
|
25
|
-
const project = resolve(process.env.CLAUDE_PROJECT_DIR ?? process.cwd());
|
|
29
|
+
export const project = resolve(process.env.CLAUDE_PROJECT_DIR ?? process.cwd());
|
|
26
30
|
const windows = process.platform === "win32";
|
|
27
31
|
|
|
28
32
|
function readJson(file) {
|
|
@@ -102,22 +106,24 @@ function npmGlobalRoot() {
|
|
|
102
106
|
* agent's paths, which may hold a space or a cmd metacharacter. On Windows
|
|
103
107
|
* npx is a .cmd shim, so its own script runs under node instead.
|
|
104
108
|
*/
|
|
105
|
-
function npx(words) {
|
|
109
|
+
function npx(words, options) {
|
|
106
110
|
const script = join(dirname(process.execPath), "node_modules", "npm", "bin", "npx-cli.js");
|
|
107
|
-
if (windows && existsSync(script)) return spawn(process.execPath, [script, ...words],
|
|
108
|
-
if (!windows) return spawn("npx", words,
|
|
111
|
+
if (windows && existsSync(script)) return spawn(process.execPath, [script, ...words], options);
|
|
112
|
+
if (!windows) return spawn("npx", words, options);
|
|
109
113
|
// Last resort on an unusual Windows layout: each word quoted for cmd.
|
|
110
114
|
const quoted = words.map((w) => `"${w.replaceAll('"', '""')}"`).join(" ");
|
|
111
|
-
return spawn(`npx ${quoted}`, {
|
|
115
|
+
return spawn(`npx ${quoted}`, { ...options, shell: true });
|
|
112
116
|
}
|
|
113
117
|
|
|
114
|
-
/**
|
|
115
|
-
function
|
|
118
|
+
/** The project's manni config, found as manni finds one: up to the repository root. */
|
|
119
|
+
export function configFile() {
|
|
116
120
|
for (const d of upward(project)) {
|
|
117
|
-
|
|
118
|
-
|
|
121
|
+
for (const name of ["manni.config.yaml", "manni.config.yml"]) {
|
|
122
|
+
if (existsSync(join(d, name))) return join(d, name);
|
|
123
|
+
}
|
|
124
|
+
if (existsSync(join(d, ".git"))) return undefined;
|
|
119
125
|
}
|
|
120
|
-
return
|
|
126
|
+
return undefined;
|
|
121
127
|
}
|
|
122
128
|
|
|
123
129
|
/**
|
|
@@ -125,33 +131,53 @@ function configured() {
|
|
|
125
131
|
* installed plugin carries its plugin.json; were it missing, the caller asks
|
|
126
132
|
* for the bare package, so npx fetches the latest release, not a match.
|
|
127
133
|
*/
|
|
128
|
-
function pluginVersion() {
|
|
134
|
+
export function pluginVersion() {
|
|
129
135
|
const manifest = join(dirname(fileURLToPath(import.meta.url)), "..", ".claude-plugin", "plugin.json");
|
|
130
136
|
const version = readJson(manifest)?.version;
|
|
131
137
|
return typeof version === "string" ? version : undefined;
|
|
132
138
|
}
|
|
133
139
|
|
|
134
|
-
|
|
135
|
-
|
|
140
|
+
/**
|
|
141
|
+
* Starts manni with `args` and returns the child, or `undefined` where no
|
|
142
|
+
* manni runs. `options` go to `spawn`, so a caller can set `stdio` and `cwd`.
|
|
143
|
+
*/
|
|
144
|
+
export function launch(args, options = { stdio: "inherit" }) {
|
|
136
145
|
const own = ownBuild();
|
|
137
146
|
if (own === false) return undefined;
|
|
138
|
-
const run = (cli) => spawn(process.execPath, [cli, ...args],
|
|
147
|
+
const run = (cli) => spawn(process.execPath, [cli, ...args], options);
|
|
139
148
|
const found = own ?? installed() ?? globalIn(defaultGlobalRoot());
|
|
140
149
|
if (found !== undefined) return run(found);
|
|
141
150
|
// Without a config manni has nothing to do here, so neither an npm
|
|
142
151
|
// start-up nor a download is worth paying for.
|
|
143
|
-
if (
|
|
152
|
+
if (configFile() === undefined) return undefined;
|
|
144
153
|
const configuredGlobal = globalIn(npmGlobalRoot());
|
|
145
154
|
if (configuredGlobal !== undefined) return run(configuredGlobal);
|
|
146
155
|
const version = pluginVersion();
|
|
147
|
-
return npx(["--yes", version === undefined ? PACKAGE : `${PACKAGE}@${version}`, ...args]);
|
|
156
|
+
return npx(["--yes", version === undefined ? PACKAGE : `${PACKAGE}@${version}`, ...args], options);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/** Whether `url`, a module's `import.meta.url`, is the script node was asked to run. */
|
|
160
|
+
export function isMain(url) {
|
|
161
|
+
if (process.argv[1] === undefined) return false;
|
|
162
|
+
const real = (path) => {
|
|
163
|
+
const r = realpathSync(path);
|
|
164
|
+
// Windows paths compare case-insensitively, drive letter included.
|
|
165
|
+
return windows ? r.toLowerCase() : r;
|
|
166
|
+
};
|
|
167
|
+
try {
|
|
168
|
+
return real(fileURLToPath(url)) === real(process.argv[1]);
|
|
169
|
+
} catch {
|
|
170
|
+
return false;
|
|
171
|
+
}
|
|
148
172
|
}
|
|
149
173
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
child.
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
174
|
+
if (isMain(import.meta.url)) {
|
|
175
|
+
const child = launch(process.argv.slice(2));
|
|
176
|
+
if (child === undefined) process.exit(0);
|
|
177
|
+
child.on("error", () => {
|
|
178
|
+
process.exitCode = 1;
|
|
179
|
+
});
|
|
180
|
+
child.on("exit", (code) => {
|
|
181
|
+
process.exitCode = code ?? 1;
|
|
182
|
+
});
|
|
183
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
// Hands the agent a page's metadata when it reads the page: the fields kept
|
|
2
|
+
// in the page and in its sidecars, which a Read of the page alone does not
|
|
3
|
+
// show. Each session (and each subagent) is given a page's metadata once, and
|
|
4
|
+
// again only when it changes.
|
|
5
|
+
//
|
|
6
|
+
// PostToolUse on Read: looks the file up with `manni meta get`, and replies
|
|
7
|
+
// with additionalContext when the page belongs to a collection and has
|
|
8
|
+
// fields. SessionStart after a compaction: forgets what this session was
|
|
9
|
+
// given, so the next Read of each page carries its metadata again.
|
|
10
|
+
//
|
|
11
|
+
// Every other case is silent. It never blocks a Read and never writes to
|
|
12
|
+
// stderr, and it exits 0 whatever happens.
|
|
13
|
+
//
|
|
14
|
+
// Plain ESM with no dependencies: the plugin ships as files, not a package.
|
|
15
|
+
import { createHash } from "node:crypto";
|
|
16
|
+
import { mkdirSync, readFileSync, realpathSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
17
|
+
import { tmpdir } from "node:os";
|
|
18
|
+
import { extname, isAbsolute, join, relative, sep } from "node:path";
|
|
19
|
+
import { isMain, launch, project } from "./manni.mjs";
|
|
20
|
+
|
|
21
|
+
/** The extensions `manni meta` reads, lower case. */
|
|
22
|
+
export const EXTENSIONS = [
|
|
23
|
+
".md", ".markdown", ".mdx", ".adoc", ".asciidoc", ".rst",
|
|
24
|
+
".xml", ".dita", ".ditamap", ".html", ".htm",
|
|
25
|
+
];
|
|
26
|
+
|
|
27
|
+
/** Whether meta reads a file with this path's extension. */
|
|
28
|
+
export function isDocument(path) {
|
|
29
|
+
return EXTENSIONS.includes(extname(path).toLowerCase());
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const sha = (text) => createHash("sha256").update(text).digest("hex");
|
|
33
|
+
|
|
34
|
+
/** Where one session's hashes live. */
|
|
35
|
+
const sessionDir = (sessionId) => join(tmpdir(), "manni", "reads", sha(sessionId));
|
|
36
|
+
|
|
37
|
+
/** The path with Windows short names and links resolved, or as given. */
|
|
38
|
+
function real(path) {
|
|
39
|
+
try {
|
|
40
|
+
return realpathSync.native(path);
|
|
41
|
+
} catch {
|
|
42
|
+
return path;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function readStdin() {
|
|
47
|
+
try {
|
|
48
|
+
return JSON.parse(readFileSync(0, "utf8"));
|
|
49
|
+
} catch {
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** The stored hash, or undefined. */
|
|
55
|
+
function readMarker(file) {
|
|
56
|
+
try {
|
|
57
|
+
return readFileSync(file, "utf8");
|
|
58
|
+
} catch {
|
|
59
|
+
return undefined;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function writeMarker(file, hash) {
|
|
64
|
+
mkdirSync(join(file, ".."), { recursive: true });
|
|
65
|
+
const temp = `${file}.${process.pid}.tmp`;
|
|
66
|
+
writeFileSync(temp, hash);
|
|
67
|
+
renameSync(temp, file);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** meta get's JSON for `rel`, or undefined on any failure. */
|
|
71
|
+
function lookUp(rel) {
|
|
72
|
+
return new Promise((done) => {
|
|
73
|
+
const child = launch(["meta", "get", "--all-fields", "--no-derived", "-f", "json", rel], {
|
|
74
|
+
stdio: ["ignore", "pipe", "ignore"],
|
|
75
|
+
cwd: project,
|
|
76
|
+
windowsHide: true,
|
|
77
|
+
});
|
|
78
|
+
if (child === undefined) return done(undefined);
|
|
79
|
+
let out = "";
|
|
80
|
+
child.stdout.setEncoding("utf8");
|
|
81
|
+
child.stdout.on("data", (chunk) => {
|
|
82
|
+
out += chunk;
|
|
83
|
+
});
|
|
84
|
+
child.on("error", () => done(undefined));
|
|
85
|
+
child.on("close", (code) => {
|
|
86
|
+
if (code !== 0) return done(undefined);
|
|
87
|
+
try {
|
|
88
|
+
done(JSON.parse(out));
|
|
89
|
+
} catch {
|
|
90
|
+
done(undefined);
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
async function onRead(envelope) {
|
|
97
|
+
const path = envelope.tool_input?.file_path;
|
|
98
|
+
if (typeof path !== "string" || typeof envelope.session_id !== "string" || !isDocument(path)) return;
|
|
99
|
+
const abs = real(path);
|
|
100
|
+
const rel = relative(real(project), abs);
|
|
101
|
+
if (rel === "" || rel.startsWith("..") || isAbsolute(rel)) return;
|
|
102
|
+
|
|
103
|
+
const entry = (await lookUp(rel.split(sep).join("/")))?.[0];
|
|
104
|
+
const { file, collections, values } = entry ?? {};
|
|
105
|
+
if (typeof file !== "string" || !Array.isArray(collections) || collections.length === 0) return;
|
|
106
|
+
if (typeof values !== "object" || values === null || Object.keys(values).length === 0) return;
|
|
107
|
+
|
|
108
|
+
const json = JSON.stringify(values);
|
|
109
|
+
const hash = sha(json);
|
|
110
|
+
// Claude Code sets `agent_id` on a hook fired inside a subagent, which has a
|
|
111
|
+
// context of its own. The outermost session carries none, so it is "main".
|
|
112
|
+
const marker = join(sessionDir(envelope.session_id), `${sha(envelope.agent_id ?? "main")}-${sha(abs)}`);
|
|
113
|
+
const stored = readMarker(marker);
|
|
114
|
+
if (stored === hash) return;
|
|
115
|
+
writeMarker(marker, hash);
|
|
116
|
+
const lead =
|
|
117
|
+
stored === undefined
|
|
118
|
+
? `Metadata for ${file}, from the page and its sidecars:`
|
|
119
|
+
: `Metadata for ${file} changed since it was last given here. This replaces it:`;
|
|
120
|
+
process.stdout.write(
|
|
121
|
+
JSON.stringify({ hookSpecificOutput: { hookEventName: "PostToolUse", additionalContext: `${lead}\n${json}` } }),
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
async function main() {
|
|
126
|
+
const envelope = readStdin();
|
|
127
|
+
if (typeof envelope !== "object" || envelope === null) return;
|
|
128
|
+
if (envelope.hook_event_name === "SessionStart") {
|
|
129
|
+
if (envelope.source === "compact" && typeof envelope.session_id === "string") {
|
|
130
|
+
rmSync(sessionDir(envelope.session_id), { recursive: true, force: true });
|
|
131
|
+
}
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
if (envelope.hook_event_name === "PostToolUse" && envelope.tool_name === "Read") await onRead(envelope);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
if (isMain(import.meta.url)) {
|
|
138
|
+
// exitCode rather than exit(), so a reply still in a pipe's buffer is not cut off.
|
|
139
|
+
main()
|
|
140
|
+
.catch(() => undefined)
|
|
141
|
+
.finally(() => {
|
|
142
|
+
process.exitCode = 0;
|
|
143
|
+
});
|
|
144
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: fix
|
|
3
|
-
description: Repair manni findings in docs. Use after manni check or a hook reports errors in metadata, citations, terms, structure, evals or the graph, or after manni a11y check or manni test run fails.
|
|
3
|
+
description: Repair manni findings in docs. Use after manni check or a hook reports errors in metadata, citations, terms, the content strategy, structure, evals or the graph, or after manni a11y check or manni test run fails.
|
|
4
4
|
allowed-tools: Bash(npx manni *), Bash(node "${CLAUDE_PLUGIN_ROOT}/hooks/manni.mjs" *)
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -67,6 +67,23 @@ Each finding names the field and the value, then says what to do. Under it, the
|
|
|
67
67
|
|
|
68
68
|
Never delete a term, a label or an alt-label, and never set a rule `off`, to make a finding go away. After you change a term page, run `manni term write`. Add `--check` to see whether the committed output is stale.
|
|
69
69
|
|
|
70
|
+
## strategy check
|
|
71
|
+
|
|
72
|
+
Each finding names the field and the value, or the record, then says what to do. Under it, the report names the rule, says what it means and links the rules page. Read those lines before you edit.
|
|
73
|
+
A finding can sit in a `{page}.meta.yaml` sidecar. Edit the value there, not in the page.
|
|
74
|
+
Run `manni strategy get <id>` to see a record, its parent and the pages that name it.
|
|
75
|
+
|
|
76
|
+
| Rule | Repair |
|
|
77
|
+
|---|---|
|
|
78
|
+
| `undefined-reference` | Use the id the message suggests, or fix the typo. When the message names another field, move the value there. If the value names a new record, ask the user before adding one. |
|
|
79
|
+
| `duplicate-id` | Two records claim one id. Ask the user which keeps it before you rename one. |
|
|
80
|
+
| `missing-parent` | Add the persona or audience the message names. When it names several personas, add the one the page serves. Drop the journey or persona instead only when the page does not serve it. |
|
|
81
|
+
| `orphan-record` | Name the parent with `audience:` on a persona or `personas:` on a journey. Ask the user if you cannot tell which. |
|
|
82
|
+
| `unserved-journey` | Name the journey in `journeys:` on the pages that serve it. If no page serves it yet, tell the user. Mark it `lifecycle: draft` only when the user says its pages are still to be written. |
|
|
83
|
+
| `unused-record` | A notice. Notices never fail. Fix one only when the user asks. |
|
|
84
|
+
|
|
85
|
+
Never delete a record, and never set a rule `off`, to make a finding go away.
|
|
86
|
+
|
|
70
87
|
## lint check
|
|
71
88
|
|
|
72
89
|
Each structure finding names its template and rule, says what that section is for, and links the guide. Read those lines before editing.
|
|
@@ -33,7 +33,7 @@ collections:
|
|
|
33
33
|
| graph | The knowledge graph and its SHACL shapes | Run `manni graph init`. It appends a `graph:` section. |
|
|
34
34
|
|
|
35
35
|
Run `manni docevals init` only when no config file exists. It refuses an existing one. With a config in place, write the `docevals:` section by hand.
|
|
36
|
-
Citations and
|
|
36
|
+
Citations, terms and strategy records need no section. They are in play when the pages carry them.
|
|
37
37
|
|
|
38
38
|
5. Run `node "${CLAUDE_PLUGIN_ROOT}/hooks/manni.mjs" status` and show the user the table. Each domain that is not set up names what would set it up. Offer those, and add only what the user accepts.
|
|
39
39
|
6. Run `node "${CLAUDE_PLUGIN_ROOT}/hooks/manni.mjs" check`. Report the result and use the `fix` skill for any error.
|
package/dist/check-OIL3CZ4N.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
renderCheck,
|
|
4
|
-
runCheck
|
|
5
|
-
} from "./chunk-AL46P5H6.js";
|
|
6
|
-
import "./chunk-4CMNCP5O.js";
|
|
7
|
-
import "./chunk-4VR2UFEO.js";
|
|
8
|
-
import "./chunk-J33NBVBX.js";
|
|
9
|
-
import "./chunk-GSLXJSGT.js";
|
|
10
|
-
import "./chunk-UXEICZKX.js";
|
|
11
|
-
import "./chunk-GLP5PSXB.js";
|
|
12
|
-
import "./chunk-7MU47MZM.js";
|
|
13
|
-
import "./chunk-PJILKN4Z.js";
|
|
14
|
-
import "./chunk-GMOAW2EG.js";
|
|
15
|
-
import "./chunk-PZAHBJ56.js";
|
|
16
|
-
import "./chunk-WRWPOXVG.js";
|
|
17
|
-
import "./chunk-SGV5U4NE.js";
|
|
18
|
-
import "./chunk-YMDASDGR.js";
|
|
19
|
-
import "./chunk-TIUTIOFB.js";
|
|
20
|
-
import "./chunk-C4MNHJXP.js";
|
|
21
|
-
import "./chunk-TKINOTVS.js";
|
|
22
|
-
import "./chunk-UP6NBQ62.js";
|
|
23
|
-
import "./chunk-3H7M5MXE.js";
|
|
24
|
-
import "./chunk-GRRSOAAS.js";
|
|
25
|
-
import "./chunk-4VQVJOIK.js";
|
|
26
|
-
import "./chunk-ES7PJMHM.js";
|
|
27
|
-
import "./chunk-34PGSNS5.js";
|
|
28
|
-
import "./chunk-2EAUZVO2.js";
|
|
29
|
-
import "./chunk-CYMA4O2F.js";
|
|
30
|
-
import "./chunk-DSWKBZWW.js";
|
|
31
|
-
import "./chunk-QRQVOEAH.js";
|
|
32
|
-
import "./chunk-77AINBYM.js";
|
|
33
|
-
import "./chunk-QK6VYJHV.js";
|
|
34
|
-
import "./chunk-RNVYGWIC.js";
|
|
35
|
-
import "./chunk-YEUYKR62.js";
|
|
36
|
-
import "./chunk-B2242FYO.js";
|
|
37
|
-
import "./chunk-HX44GB4Z.js";
|
|
38
|
-
import "./chunk-VM7VAFJW.js";
|
|
39
|
-
import "./chunk-Z2LHEYK5.js";
|
|
40
|
-
import "./chunk-OWBRDNRZ.js";
|
|
41
|
-
import "./chunk-G3T47CFV.js";
|
|
42
|
-
import "./chunk-2H7UOFLK.js";
|
|
43
|
-
export {
|
|
44
|
-
renderCheck,
|
|
45
|
-
runCheck
|
|
46
|
-
};
|
|
47
|
-
//# sourceMappingURL=check-OIL3CZ4N.js.map
|