@hawkeyexl/manni 4.16.0 → 4.17.1
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-L5W4JS7A.js → batch-SAW4E46C.js} +14 -14
- package/dist/{build-GNZUVDZX.js → build-F6S3W77I.js} +15 -14
- package/dist/{calibrate-2LYIDN6U.js → calibrate-3DW2VV7F.js} +15 -15
- package/dist/{capture-OEDMFU5Z.js → capture-PKEYY2VO.js} +14 -14
- package/dist/{check-JR2TYL2Y.js → check-7PUIHLFM.js} +15 -15
- package/dist/{check-NLLFHNWG.js → check-EZN7YNVF.js} +14 -15
- package/dist/{check-Z5VGDSDT.js → check-LRX2YFDF.js} +13 -14
- package/dist/check-NW7GHSX6.js +47 -0
- package/dist/{cli-THEU2QG2.js → chunk-245W2Q7C.js} +133 -365
- package/dist/chunk-245W2Q7C.js.map +1 -0
- package/dist/{chunk-LEOQO3S6.js → chunk-2A5OIZHT.js} +7 -7
- package/dist/{chunk-FU3OCYYH.js → chunk-2LCJNH73.js} +2 -2
- package/dist/{chunk-7UC55CAU.js → chunk-2TLNAGVJ.js} +187 -159
- package/dist/chunk-2TLNAGVJ.js.map +1 -0
- package/dist/{chunk-6ANTGYNT.js → chunk-3446DW4W.js} +2 -2
- package/dist/{chunk-7GB3KEEM.js → chunk-3UYSONT4.js} +7 -453
- package/dist/chunk-3UYSONT4.js.map +1 -0
- package/dist/{chunk-NFJGIBES.js → chunk-4GGADKTU.js} +82 -238
- package/dist/chunk-4GGADKTU.js.map +1 -0
- package/dist/{chunk-YF6IZXAC.js → chunk-5QOTR53S.js} +7 -7
- package/dist/{chunk-2XRET3ZG.js → chunk-5VNFO2RT.js} +12 -38
- package/dist/chunk-5VNFO2RT.js.map +1 -0
- package/dist/{chunk-6YFEV7CM.js → chunk-64EDFJ5S.js} +5 -5
- package/dist/chunk-6J2ED4ED.js +545 -0
- package/dist/chunk-6J2ED4ED.js.map +1 -0
- package/dist/{chunk-2AUULNIJ.js → chunk-ABAFKOQF.js} +3 -3
- package/dist/{chunk-3GLDB7MZ.js → chunk-AIZBZYQM.js} +1311 -18
- package/dist/chunk-AIZBZYQM.js.map +1 -0
- package/dist/{chunk-GQQ2AX63.js → chunk-B5R5BWMY.js} +14 -429
- package/dist/chunk-B5R5BWMY.js.map +1 -0
- package/dist/{chunk-ZT5NUSZA.js → chunk-D3AO2PMV.js} +9 -9
- package/dist/{chunk-EZCJPF72.js → chunk-DSJTYRI5.js} +3 -3
- package/dist/{chunk-OJ7FEM2G.js → chunk-DU6CXY5R.js} +47 -10
- package/dist/chunk-DU6CXY5R.js.map +1 -0
- package/dist/{chunk-WD33LE5A.js → chunk-FAS3SRQB.js} +927 -99
- package/dist/chunk-FAS3SRQB.js.map +1 -0
- package/dist/{chunk-DTG6S2UG.js → chunk-FEURGKJC.js} +2 -2
- package/dist/{chunk-EA5KKIFG.js → chunk-FPPHEHPZ.js} +3 -3
- package/dist/chunk-HEVYEI6O.js +1338 -0
- package/dist/chunk-HEVYEI6O.js.map +1 -0
- package/dist/{chunk-5OOQ3HQ3.js → chunk-IGE6CIKZ.js} +11 -2
- package/dist/chunk-IGE6CIKZ.js.map +1 -0
- package/dist/{chunk-WT3AATHC.js → chunk-JK56UPNQ.js} +252 -425
- package/dist/chunk-JK56UPNQ.js.map +1 -0
- package/dist/{chunk-B3XXCDYW.js → chunk-KAWS7H4C.js} +2385 -2061
- package/dist/chunk-KAWS7H4C.js.map +1 -0
- package/dist/{chunk-O6YTTBSN.js → chunk-KB4MNUKC.js} +2 -2
- package/dist/{chunk-GR6QQ7GM.js → chunk-KCNBM42T.js} +4 -4
- package/dist/chunk-KUXAHHDE.js +314 -0
- package/dist/chunk-KUXAHHDE.js.map +1 -0
- package/dist/{chunk-EOSQENQF.js → chunk-LDIUA4ZG.js} +2 -2
- package/dist/{chunk-L3YGGYBG.js → chunk-M6DNOHJO.js} +3 -3
- package/dist/{chunk-4L3JBAW4.js → chunk-MBLVLQWI.js} +2 -2
- package/dist/{chunk-4HEEXPVX.js → chunk-MDXDTO7E.js} +6 -6
- package/dist/{chunk-WDENIUC7.js → chunk-MDZXRHIJ.js} +1 -1
- package/dist/chunk-MDZXRHIJ.js.map +1 -0
- package/dist/{chunk-IGRXQC3H.js → chunk-N25KDXOV.js} +2 -2
- package/dist/{chunk-DW22KCLN.js → chunk-NPZWOPOH.js} +3 -3
- package/dist/chunk-OZL5M764.js +443 -0
- package/dist/chunk-OZL5M764.js.map +1 -0
- package/dist/{chunk-NDBISART.js → chunk-PS4Y7EPP.js} +3 -3
- package/dist/{chunk-F4GXZMEO.js → chunk-Q7E43SXN.js} +12 -7
- package/dist/{chunk-F4GXZMEO.js.map → chunk-Q7E43SXN.js.map} +1 -1
- package/dist/{chunk-63GILHR5.js → chunk-QIKCIREY.js} +4 -4
- package/dist/{chunk-ZJZQPOJO.js → chunk-QIWSEKA6.js} +2 -2
- package/dist/{chunk-F6B2TNXU.js → chunk-TNYIXIYV.js} +6 -6
- package/dist/{chunk-CSLJMML4.js → chunk-TUMR35B3.js} +4 -4
- package/dist/{chunk-DSTRT6YD.js → chunk-U5NSIZRS.js} +3 -3
- package/dist/chunk-UP6NBQ62.js +2 -0
- package/dist/{chunk-BMYCLTFK.js → chunk-VRMQSP7O.js} +3 -3
- package/dist/{chunk-IM67NRUW.js → chunk-W7IEP7IG.js} +2 -2
- package/dist/{chunk-5PO2BWZF.js → chunk-W7XOMNYC.js} +2 -2
- package/dist/{chunk-6NTNLKNQ.js → chunk-WBXVQW57.js} +6 -5
- package/dist/{chunk-6NTNLKNQ.js.map → chunk-WBXVQW57.js.map} +1 -1
- package/dist/{chunk-PBZZUNDV.js → chunk-WP5EKWTU.js} +7 -7
- package/dist/chunk-WRSWZEVU.js +580 -0
- package/dist/chunk-WRSWZEVU.js.map +1 -0
- package/dist/{chunk-LPBVWUKS.js → chunk-WZSL7KF2.js} +2 -2
- package/dist/{chunk-GC47NBGO.js → chunk-XCEEJEVA.js} +4 -4
- package/dist/{chunk-4LLYPDNG.js → chunk-XPGK4ECA.js} +7 -7
- package/dist/{chunk-AWAXAJ6R.js → chunk-XRWQQHBR.js} +2 -2
- package/dist/{chunk-D4ANAOY7.js → chunk-XWUIFSWK.js} +20 -6
- package/dist/chunk-XWUIFSWK.js.map +1 -0
- package/dist/{chunk-IL62WATF.js → chunk-YJHHXM5B.js} +2 -2
- package/dist/{chunk-NH6B6DDI.js → chunk-ZEYNLKOH.js} +4 -4
- package/dist/{chunk-PHNAQ4QX.js → chunk-ZIXU7A4C.js} +21 -21
- package/dist/{cli-LZW6Z33F.js → cli-5ZQXVWWC.js} +18 -19
- package/dist/{cli-LZW6Z33F.js.map → cli-5ZQXVWWC.js.map} +1 -1
- package/dist/{cli-5QTSTGTX.js → cli-D5WYQVUF.js} +18 -18
- package/dist/{cli-4Y2XY52B.js → cli-FCGGNZ5C.js} +2 -2
- package/dist/{cli-DBMPGGOV.js → cli-FNX4LXMI.js} +37 -37
- package/dist/{cli-KAUXC7EZ.js → cli-LQRHK23G.js} +9 -9
- package/dist/{cli-RWRYV5FB.js → cli-LRKBCQRS.js} +9 -9
- package/dist/{cli-2EKRURBU.js → cli-NJC3H3CW.js} +15 -15
- package/dist/{cli-2SDBEUER.js → cli-OHKWCJIJ.js} +21 -21
- package/dist/{cli-BXUZ3KEQ.js → cli-RKYIZ6KU.js} +634 -36
- package/dist/cli-RKYIZ6KU.js.map +1 -0
- package/dist/cli-TJDQ5GUW.js +379 -0
- package/dist/cli-TJDQ5GUW.js.map +1 -0
- package/dist/{cli-TZ2OHF3H.js → cli-VC3BXCVR.js} +19 -19
- package/dist/cli.js +14 -14
- package/dist/docmeta.js +8 -8
- package/dist/{github-UR6LMUMW.js → github-6PV2JTZ7.js} +13 -14
- package/dist/github-7ZT4KYQU.js +35 -0
- package/dist/graph/runtime.d.ts +633 -217
- package/dist/graph/runtime.js +1001 -370
- package/dist/graph/runtime.js.map +1 -1
- package/dist/index.d.ts +2617 -1945
- package/dist/index.js +108 -64
- package/dist/index.js.map +1 -1
- package/dist/{json-QTYN2JQB.js → json-VWXLDTXR.js} +13 -14
- package/dist/{labels-UM2AFR5S.js → labels-ZJK27RL3.js} +12 -13
- package/dist/{labels-UM2AFR5S.js.map → labels-ZJK27RL3.js.map} +1 -1
- package/dist/{lint-LOFNZZPR.js → lint-5OERIERT.js} +13 -13
- package/dist/{list-GU7S6KEX.js → list-MANBRF7Z.js} +13 -14
- package/dist/{list-EPMHOU7T.js → list-SEEANTU6.js} +15 -15
- package/dist/{page-25CN3AFY.js → page-O4M65KMJ.js} +13 -14
- package/dist/{prepare-5GYMBF4P.js → prepare-3WULLZER.js} +13 -13
- package/dist/{pretty-QW6OSYRS.js → pretty-5FRBLTXU.js} +13 -14
- package/dist/{pretty-52Z74O6F.js → pretty-D3M366JD.js} +14 -15
- package/dist/{reporters-WT53GD4P.js → reporters-4WWZRHKI.js} +4 -4
- package/dist/{reporters-FSXJ42EB.js → reporters-6TEJDXXO.js} +4 -4
- package/dist/{reporters-3FXX2W4X.js → reporters-GDCZ5P7C.js} +12 -12
- package/dist/{run-H7XJMUWK.js → run-TZDLG6EN.js} +16 -16
- package/dist/sarif-PUZAMEFQ.js +36 -0
- package/dist/{sarif-C427U3NA.js → sarif-SSSPOUCK.js} +11 -11
- package/dist/site/rehype.d.ts +33 -0
- package/dist/site/rehype.js +49 -0
- package/dist/site/rehype.js.map +1 -0
- package/dist/{term-VG65JRNR.js → term-DHWMUL5N.js} +18 -19
- package/dist/{term-VG65JRNR.js.map → term-DHWMUL5N.js.map} +1 -1
- package/dist/{types-VMOT7RAL.js → types-7N7ETP3W.js} +2 -2
- package/dist/{validate-K36F54UB.js → validate-4AW7KIIY.js} +5 -5
- package/package.json +10 -1
- package/plugin/manni/.claude-plugin/plugin.json +1 -1
- package/shapes/graph/shapes-1.2.0.ttl +1161 -0
- package/dist/check-LVO4HZ3F.js +0 -36
- package/dist/chunk-2XRET3ZG.js.map +0 -1
- package/dist/chunk-3GLDB7MZ.js.map +0 -1
- package/dist/chunk-3WZQ2FR3.js +0 -236
- package/dist/chunk-3WZQ2FR3.js.map +0 -1
- package/dist/chunk-5OOQ3HQ3.js.map +0 -1
- package/dist/chunk-7GB3KEEM.js.map +0 -1
- package/dist/chunk-7UC55CAU.js.map +0 -1
- package/dist/chunk-B3XXCDYW.js.map +0 -1
- package/dist/chunk-D4ANAOY7.js.map +0 -1
- package/dist/chunk-GQQ2AX63.js.map +0 -1
- package/dist/chunk-IKEWBMCN.js +0 -98
- package/dist/chunk-IKEWBMCN.js.map +0 -1
- package/dist/chunk-NFJGIBES.js.map +0 -1
- package/dist/chunk-OJ7FEM2G.js.map +0 -1
- package/dist/chunk-WD33LE5A.js.map +0 -1
- package/dist/chunk-WDENIUC7.js.map +0 -1
- package/dist/chunk-WT3AATHC.js.map +0 -1
- package/dist/chunk-YUTVAMWW.js +0 -2
- package/dist/cli-BXUZ3KEQ.js.map +0 -1
- package/dist/cli-THEU2QG2.js.map +0 -1
- package/dist/github-ICZ5UDGX.js +0 -36
- package/dist/sarif-UVAFWZKS.js +0 -37
- /package/dist/{batch-L5W4JS7A.js.map → batch-SAW4E46C.js.map} +0 -0
- /package/dist/{build-GNZUVDZX.js.map → build-F6S3W77I.js.map} +0 -0
- /package/dist/{calibrate-2LYIDN6U.js.map → calibrate-3DW2VV7F.js.map} +0 -0
- /package/dist/{capture-OEDMFU5Z.js.map → capture-PKEYY2VO.js.map} +0 -0
- /package/dist/{check-JR2TYL2Y.js.map → check-7PUIHLFM.js.map} +0 -0
- /package/dist/{check-LVO4HZ3F.js.map → check-EZN7YNVF.js.map} +0 -0
- /package/dist/{check-NLLFHNWG.js.map → check-LRX2YFDF.js.map} +0 -0
- /package/dist/{check-Z5VGDSDT.js.map → check-NW7GHSX6.js.map} +0 -0
- /package/dist/{chunk-LEOQO3S6.js.map → chunk-2A5OIZHT.js.map} +0 -0
- /package/dist/{chunk-FU3OCYYH.js.map → chunk-2LCJNH73.js.map} +0 -0
- /package/dist/{chunk-6ANTGYNT.js.map → chunk-3446DW4W.js.map} +0 -0
- /package/dist/{chunk-YF6IZXAC.js.map → chunk-5QOTR53S.js.map} +0 -0
- /package/dist/{chunk-6YFEV7CM.js.map → chunk-64EDFJ5S.js.map} +0 -0
- /package/dist/{chunk-2AUULNIJ.js.map → chunk-ABAFKOQF.js.map} +0 -0
- /package/dist/{chunk-ZT5NUSZA.js.map → chunk-D3AO2PMV.js.map} +0 -0
- /package/dist/{chunk-EZCJPF72.js.map → chunk-DSJTYRI5.js.map} +0 -0
- /package/dist/{chunk-DTG6S2UG.js.map → chunk-FEURGKJC.js.map} +0 -0
- /package/dist/{chunk-EA5KKIFG.js.map → chunk-FPPHEHPZ.js.map} +0 -0
- /package/dist/{chunk-O6YTTBSN.js.map → chunk-KB4MNUKC.js.map} +0 -0
- /package/dist/{chunk-GR6QQ7GM.js.map → chunk-KCNBM42T.js.map} +0 -0
- /package/dist/{chunk-EOSQENQF.js.map → chunk-LDIUA4ZG.js.map} +0 -0
- /package/dist/{chunk-L3YGGYBG.js.map → chunk-M6DNOHJO.js.map} +0 -0
- /package/dist/{chunk-4L3JBAW4.js.map → chunk-MBLVLQWI.js.map} +0 -0
- /package/dist/{chunk-4HEEXPVX.js.map → chunk-MDXDTO7E.js.map} +0 -0
- /package/dist/{chunk-IGRXQC3H.js.map → chunk-N25KDXOV.js.map} +0 -0
- /package/dist/{chunk-DW22KCLN.js.map → chunk-NPZWOPOH.js.map} +0 -0
- /package/dist/{chunk-NDBISART.js.map → chunk-PS4Y7EPP.js.map} +0 -0
- /package/dist/{chunk-63GILHR5.js.map → chunk-QIKCIREY.js.map} +0 -0
- /package/dist/{chunk-ZJZQPOJO.js.map → chunk-QIWSEKA6.js.map} +0 -0
- /package/dist/{chunk-F6B2TNXU.js.map → chunk-TNYIXIYV.js.map} +0 -0
- /package/dist/{chunk-CSLJMML4.js.map → chunk-TUMR35B3.js.map} +0 -0
- /package/dist/{chunk-DSTRT6YD.js.map → chunk-U5NSIZRS.js.map} +0 -0
- /package/dist/{chunk-YUTVAMWW.js.map → chunk-UP6NBQ62.js.map} +0 -0
- /package/dist/{chunk-BMYCLTFK.js.map → chunk-VRMQSP7O.js.map} +0 -0
- /package/dist/{chunk-IM67NRUW.js.map → chunk-W7IEP7IG.js.map} +0 -0
- /package/dist/{chunk-5PO2BWZF.js.map → chunk-W7XOMNYC.js.map} +0 -0
- /package/dist/{chunk-PBZZUNDV.js.map → chunk-WP5EKWTU.js.map} +0 -0
- /package/dist/{chunk-LPBVWUKS.js.map → chunk-WZSL7KF2.js.map} +0 -0
- /package/dist/{chunk-GC47NBGO.js.map → chunk-XCEEJEVA.js.map} +0 -0
- /package/dist/{chunk-4LLYPDNG.js.map → chunk-XPGK4ECA.js.map} +0 -0
- /package/dist/{chunk-AWAXAJ6R.js.map → chunk-XRWQQHBR.js.map} +0 -0
- /package/dist/{chunk-IL62WATF.js.map → chunk-YJHHXM5B.js.map} +0 -0
- /package/dist/{chunk-NH6B6DDI.js.map → chunk-ZEYNLKOH.js.map} +0 -0
- /package/dist/{chunk-PHNAQ4QX.js.map → chunk-ZIXU7A4C.js.map} +0 -0
- /package/dist/{cli-5QTSTGTX.js.map → cli-D5WYQVUF.js.map} +0 -0
- /package/dist/{cli-4Y2XY52B.js.map → cli-FCGGNZ5C.js.map} +0 -0
- /package/dist/{cli-DBMPGGOV.js.map → cli-FNX4LXMI.js.map} +0 -0
- /package/dist/{cli-KAUXC7EZ.js.map → cli-LQRHK23G.js.map} +0 -0
- /package/dist/{cli-RWRYV5FB.js.map → cli-LRKBCQRS.js.map} +0 -0
- /package/dist/{cli-2EKRURBU.js.map → cli-NJC3H3CW.js.map} +0 -0
- /package/dist/{cli-2SDBEUER.js.map → cli-OHKWCJIJ.js.map} +0 -0
- /package/dist/{cli-TZ2OHF3H.js.map → cli-VC3BXCVR.js.map} +0 -0
- /package/dist/{github-ICZ5UDGX.js.map → github-6PV2JTZ7.js.map} +0 -0
- /package/dist/{github-UR6LMUMW.js.map → github-7ZT4KYQU.js.map} +0 -0
- /package/dist/{json-QTYN2JQB.js.map → json-VWXLDTXR.js.map} +0 -0
- /package/dist/{lint-LOFNZZPR.js.map → lint-5OERIERT.js.map} +0 -0
- /package/dist/{list-EPMHOU7T.js.map → list-MANBRF7Z.js.map} +0 -0
- /package/dist/{list-GU7S6KEX.js.map → list-SEEANTU6.js.map} +0 -0
- /package/dist/{page-25CN3AFY.js.map → page-O4M65KMJ.js.map} +0 -0
- /package/dist/{prepare-5GYMBF4P.js.map → prepare-3WULLZER.js.map} +0 -0
- /package/dist/{pretty-52Z74O6F.js.map → pretty-5FRBLTXU.js.map} +0 -0
- /package/dist/{pretty-QW6OSYRS.js.map → pretty-D3M366JD.js.map} +0 -0
- /package/dist/{reporters-3FXX2W4X.js.map → reporters-4WWZRHKI.js.map} +0 -0
- /package/dist/{reporters-FSXJ42EB.js.map → reporters-6TEJDXXO.js.map} +0 -0
- /package/dist/{reporters-WT53GD4P.js.map → reporters-GDCZ5P7C.js.map} +0 -0
- /package/dist/{run-H7XJMUWK.js.map → run-TZDLG6EN.js.map} +0 -0
- /package/dist/{sarif-C427U3NA.js.map → sarif-PUZAMEFQ.js.map} +0 -0
- /package/dist/{sarif-UVAFWZKS.js.map → sarif-SSSPOUCK.js.map} +0 -0
- /package/dist/{types-VMOT7RAL.js.map → types-7N7ETP3W.js.map} +0 -0
- /package/dist/{validate-K36F54UB.js.map → validate-4AW7KIIY.js.map} +0 -0
package/dist/chunk-YUTVAMWW.js
DELETED
package/dist/cli-BXUZ3KEQ.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/graph/cli.ts","../src/graph/reporters/index.ts","../src/graph/commands/shapes.ts","../src/graph/commands/init.ts"],"sourcesContent":["/**\n * The graph program. Named `graph` because that is where it is mounted\n * (`manni graph …`); `src/cli.ts` adds it to the umbrella and runs it.\n *\n * Grammar per proposals 0034 and 0051 §2: the domain owns verbs and has no\n * default subcommand, `-f` means the output format everywhere and is checked\n * against the verb's list, and a list reaches a flag by exactly one\n * separator. The plumbing is the family's: `fail()` from `src/shared/run.ts`,\n * `warn()` from `src/shared/warn.ts`, and `--no-color` from\n * `src/shared/color.ts`.\n */\nimport { Command } from \"commander\";\nimport pkg from \"../../package.json\" with { type: \"json\" };\nimport {\n collect,\n configOption,\n readStdin,\n splitList,\n} from \"../shared/cli-options.js\";\nimport { shouldColor } from \"../shared/color.js\";\nimport { fail } from \"../shared/run.js\";\nimport { warn } from \"../shared/warn.js\";\nimport { GraphError } from \"./types.js\";\nimport { LOCAL_FLAG_HELP } from \"../shared/providers.js\";\nimport { ALL_FILL_FIELDS, type FillField } from \"./core/config.js\";\nimport {\n assertInputFormat,\n DEFAULT_EXTENSIONS,\n STDIN,\n} from \"./core/discover.js\";\nimport {\n CHECK_FORMATS,\n CHECK_FORMAT_LIST,\n GRAPH_FORMATS,\n GRAPH_FORMAT_LIST,\n SHAPES_SHOW_FORMATS,\n SHAPES_SHOW_FORMAT_LIST,\n type CheckFormat,\n type GraphFormat,\n} from \"./reporters/index.js\";\nimport { runBuild } from \"./commands/build.js\";\nimport { renderCheck, runCheck } from \"./commands/check.js\";\nimport {\n renderShapes,\n renderShapesShow,\n runShapes,\n runShapesShow,\n type ShapesOptions,\n} from \"./commands/shapes.js\";\nimport {\n EXPORT_TARGETS,\n runExport,\n type ExportFormat,\n} from \"./commands/export.js\";\nimport { renderQuery, runQuery } from \"./commands/query.js\";\nimport { renderFill, runFill } from \"./commands/fill.js\";\nimport { runInit } from \"./commands/init.js\";\nimport { renderEmbed, runEmbed } from \"./commands/embed.js\";\nimport {\n renderSearch,\n runSearch,\n SEARCH_MODES,\n type SearchMode,\n} from \"./commands/search.js\";\nimport { renderStats, runStats } from \"./commands/stats.js\";\nimport { renderTraverse, runTraverse } from \"./commands/traverse.js\";\n\n/**\n * Whether `command`'s output gets colour: this domain's `--no-color` and\n * `NO_COLOR` turn it off, and otherwise only a TTY turns it on\n * (`shouldColor`). `isTTY` is passed uncoerced: Node leaves it undefined off\n * a terminal, never false, and `shouldColor` reads a missing one as \"not a\n * terminal\".\n *\n * Exported because this is where the decision is testable — a spawned bin is\n * never a TTY. `check`'s pretty output dims the lines under each finding, and\n * takes the boolean from here rather than consulting the environment itself.\n */\nexport function colorFor(\n command: Command,\n isTTY: boolean | undefined,\n env?: NodeJS.ProcessEnv,\n): boolean {\n // commander maps --no-color to opts.color === false, on the command that\n // declares it.\n const noColor = colorOwner(command).opts().color === false;\n return shouldColor({ noColor, isTTY, env });\n}\n\n/**\n * The nearest command, this one or an ancestor, that declares `--no-color`:\n * the `graph` program, wherever it is mounted. Not the root: under the umbrella\n * that is `manni`, which has no `--no-color` of its own.\n */\nfunction colorOwner(command: Command): Command {\n for (let c: Command | null = command; c !== null; c = c.parent) {\n if (c.options.some((o) => o.long === \"--no-color\")) return c;\n }\n return command;\n}\n\nexport function buildProgram(): Command {\nconst program = new Command();\n\nprogram\n .name(\"graph\")\n .description(\n \"Deterministic knowledge graphs derived from documentation frontmatter and formatting.\",\n )\n .version(pkg.version)\n .option(\"--no-color\", \"disable colored output\")\n // A pointer, not the whole help screen: the message that precedes it\n // already names the offending flag.\n .showHelpAfterError(\"(add --help for usage)\")\n // MUST come before the `.command()` calls below. `copyInheritedSettings`\n // copies `_exitCallback` by value at subcommand-creation time, so an\n // `exitOverride()` installed afterwards leaves every subcommand still\n // calling `process.exit(1)` — which reports a usage error as a finding.\n .exitOverride();\n\n/**\n * Parse a numeric CLI option, refusing what the config schema refuses.\n *\n * `Number.parseFloat`/`parseInt` return NaN for `abc` and silently accept\n * out-of-range values, and NaN then disables whatever gate it feeds — a cost\n * cap that never fires, a confidence gate that writes everything, a `--top`\n * that asks for a negative number of rows. The documented precedence is\n * config → Ajv → CLI override, so the override has to be held to the same range.\n */\nfunction numericOption(\n flag: string,\n { min, max, integer }: { min: number; max?: number; integer?: boolean },\n) {\n return (raw: string): number => {\n const value = Number.parseFloat(raw);\n if (!Number.isFinite(value)) {\n throw new GraphError(`${flag} expects a number, got \"${raw}\".`);\n }\n if (integer && !Number.isInteger(value)) {\n throw new GraphError(`${flag} expects a whole number, got ${value}.`);\n }\n if (value < min || (max !== undefined && value > max)) {\n const range = max === undefined ? `>= ${min}` : `${min}..${max}`;\n throw new GraphError(`${flag} must be ${range}, got ${value}.`);\n }\n return value;\n };\n}\n\n/** A count: a whole number, at least `min` (1 unless the flag allows zero). */\nfunction countOption(flag: string, min = 1) {\n return numericOption(flag, { min, integer: true });\n}\n\n/**\n * Hold a CLI override to the same list its config key is held to.\n *\n * `fill.provider` is Ajv-validated against the schema enum; the `--provider`\n * override was an arbitrary string cast straight to `ProviderName`, so the\n * documented config → Ajv → CLI precedence had a hole at the last step.\n */\nfunction enumOption<T extends string>(flag: string, allowed: readonly T[]) {\n return (raw: string): T => {\n if (!(allowed as readonly string[]).includes(raw)) {\n throw new GraphError(\n `${flag} must be one of ${allowed.join(\" | \")}, got \"${raw}\".`,\n );\n }\n return raw as T;\n };\n}\n\n/**\n * A flag whose value is one of a named set, refused in the family's words:\n * `Unknown --format \"xml\". Use pretty | json.` The check runs while the\n * options are parsed, so a typo costs a message rather than a graph load.\n */\nfunction choiceOption<T extends string>(flag: string, allowed: readonly T[]) {\n return (raw: string): T => {\n if (!(allowed as readonly string[]).includes(raw)) {\n throw new GraphError(`Unknown ${flag} \"${raw}\". Use ${allowed.join(\" | \")}.`);\n }\n return raw as T;\n };\n}\n\n/** `-f, --format`: every verb's list is `pretty | json` (0051 §2). */\nconst formatOption = choiceOption(\"--format\", GRAPH_FORMATS);\n\n/** `check`'s own, which adds the two CI formats, `github` and `sarif`. */\nconst checkFormatOption = choiceOption(\"--format\", CHECK_FORMATS);\n\n/** `shapes show`'s own, which adds the frontmatter skeleton. */\nconst showFormatOption = choiceOption(\"--format\", SHAPES_SHOW_FORMATS);\n\n/**\n * `--fields <list>`: comma-separated and given once, never repeatable — one\n * separator per list (proposal 0034), and the spelling `meta fill --fields`\n * already uses. Each value is held to the same list `fill.fields` is.\n */\nconst fieldsOption = (raw: string): FillField[] =>\n splitList(raw).map((value) => enumOption(\"--fields\", ALL_FILL_FIELDS)(value));\n\n/**\n * The document-set surface the verbs that read documents share (proposals\n * 0041 and 0051 §1): positional `[paths...]` with `-` for stdin,\n * `--collection` and `--exclude` (each one value per occurrence), `--as`,\n * `--ext` (comma-separated, given once), `--allow-empty`, and\n * `-c`/`--no-config`. Declared once so the verbs cannot drift apart on a name\n * or a description, and worded as `meta` and `lint` word them.\n */\nfunction documentInputs(command: Command, verb: string): Command {\n return command\n .argument(\n \"[paths...]\",\n `files, directories, or globs to ${verb} (use - for stdin)`,\n )\n .option(\n \"--collection <name>\",\n \"Configured collection to read (repeatable)\",\n collect,\n [],\n )\n .option(\"--exclude <glob>\", \"Glob to exclude (repeatable)\", collect, [])\n .option(\n \"--as <format>\",\n \"Parse every input as asciidoc, html, markdown, mdx, rst or xml, whatever its extension. Required with -.\",\n )\n .option(\n \"--ext <list>\",\n \"comma-separated extensions for directory walks\",\n DEFAULT_EXTENSIONS.join(\",\"),\n )\n .option(\"--allow-empty\", \"treat zero matched files as success\")\n .option(\"-c, --config <path>\", \"Path to manni.config.yaml\")\n .option(\"--no-config\", \"Ignore any discovered config file\");\n}\n\n/** The input flags as commander hands them over. */\ninterface InputFlags {\n as?: string;\n ext: string;\n allowEmpty?: boolean;\n}\n\n/**\n * The input flags for a core, and stdin when `paths` holds `-`. `--as` is\n * checked first, so `-` without it is refused before anything waits on stdin.\n */\nasync function inputOptions(\n paths: string[],\n opts: InputFlags,\n): Promise<{\n as?: string;\n ext: string[];\n allowEmpty?: boolean;\n stdinContent?: string;\n}> {\n assertInputFormat(paths, opts.as);\n return {\n ...(opts.as === undefined ? {} : { as: opts.as }),\n ext: splitList(opts.ext),\n ...(opts.allowEmpty === true ? { allowEmpty: true } : {}),\n ...(paths.includes(STDIN) ? { stdinContent: await readStdin() } : {}),\n };\n}\n\n/**\n * `-c`/`--no-config` for a verb that reads a built graph rather than a\n * document set. They share one commander attribute, which `configOption`\n * splits.\n */\nfunction configInputs(command: Command): Command {\n return command\n .option(\"-c, --config <path>\", \"Path to manni.config.yaml\")\n .option(\"--no-config\", \"Ignore any discovered config file\");\n}\n\n/**\n * `opts` minus the one attribute `-c` and `--no-config` share. `documentOptions`\n * restates it as the two fields a core reads, and spreading the raw value over\n * them would put commander's `false` back where a path belongs.\n */\nfunction rest<T extends { config?: string | boolean }>(\n opts: T,\n): Omit<T, \"config\"> {\n const { config, ...others } = opts;\n return others;\n}\n\n/** The shared options as the command cores take them. */\nfunction documentOptions(opts: {\n collection?: string[];\n exclude?: string[];\n config?: string | boolean;\n}): {\n config?: string;\n noConfig?: boolean;\n collection?: string[];\n exclude?: string[];\n} {\n const { configPath, noConfig } = configOption(opts.config);\n return {\n ...(configPath === undefined ? {} : { config: configPath }),\n ...(noConfig === true ? { noConfig } : {}),\n ...(opts.collection === undefined ? {} : { collection: opts.collection }),\n ...(opts.exclude === undefined ? {} : { exclude: opts.exclude }),\n };\n}\n\nprogram\n .command(\"init\")\n .description(\"Add a starter `graph:` section to manni.config.yaml in the current directory\")\n .action(async () => {\n try {\n console.log(`Created ${await runInit()}`);\n } catch (e) {\n fail(e);\n }\n });\n\ndocumentInputs(\n program\n .command(\"build\")\n .description(\"Derive the knowledge graph and write deterministic Turtle\"),\n \"build\",\n)\n .option(\"-o, --out <path>\", \"Output .ttl path (default: config out)\")\n .action(async (paths: string[], opts: InputFlags & {\n config?: string | boolean;\n collection?: string[];\n exclude?: string[];\n out?: string;\n }) => {\n try {\n const result = await runBuild({\n paths,\n ...documentOptions(opts),\n ...(await inputOptions(paths, opts)),\n out: opts.out,\n });\n // Warnings go to stderr so stdout stays the machine-readable summary;\n // a degraded build is still a successful one, so the exit code is 0.\n for (const warning of result.warnings) warn(warning);\n const { total, fromTermbase } = result.concepts;\n const termbase = fromTermbase > 0 ? ` (${fromTermbase} from the termbase)` : \"\";\n console.log(\n `Wrote ${result.outPath} (${result.docs} docs, ${result.quads} triples, ${total} concepts${termbase})`,\n );\n } catch (e) {\n fail(e);\n }\n });\n\nconfigInputs(\n program\n .command(\"check\")\n .description(\n \"Validate the built graph against the bundled SHACL shapes (errors exit 1)\",\n ),\n)\n .option(\"-g, --graph <path>\", \"Graph .ttl path (default: config out)\")\n // One path per occurrence, never split on commas: a path may hold one.\n .option(\n \"--shapes <path>\",\n \"Shapes .ttl file; repeatable (default: config check.shapes, then bundled)\",\n collect,\n [],\n )\n .option(\n \"-f, --format <format>\",\n `Output: ${CHECK_FORMAT_LIST}`,\n checkFormatOption,\n \"pretty\",\n )\n .action(\n async (\n opts: {\n config?: string | boolean;\n graph?: string;\n shapes: string[];\n format: CheckFormat;\n },\n command: Command,\n ) => {\n try {\n const report = await runCheck({ ...rest(opts), ...documentOptions(opts) });\n console.log(\n renderCheck(report, opts.format, {\n color: colorFor(command, process.stdout.isTTY),\n }),\n );\n process.exitCode = report.exitCode;\n } catch (e) {\n fail(e);\n }\n },\n );\n\n/**\n * The value of a flag `shapes` and `shapes show` both declare. Commander keeps\n * parsing a parent's options past a subcommand name, so `shapes show X -f\n * markdown` sets `format` on `shapes`. The nearest command given the flag\n * wins, and the subcommand's own default is the fallback, as lint reads its\n * `templates` flags. So neither declaration checks its value as it parses,\n * and the action checks the one that applies.\n */\nfunction optionValue(command: Command, key: string): unknown {\n for (let cmd: Command | null = command; cmd !== null; cmd = cmd.parent) {\n if (cmd.getOptionValueSource(key) === \"cli\") return cmd.getOptionValue(key);\n }\n return command.getOptionValue(key);\n}\n\n/** The options `shapes` and `shapes show` share, as the cores take them. */\nfunction shapesOptions(command: Command): ShapesOptions {\n const { configPath, noConfig } = configOption(optionValue(command, \"config\"));\n const shapes = optionValue(command, \"shapes\");\n return {\n ...(configPath === undefined ? {} : { config: configPath }),\n ...(noConfig === true ? { noConfig } : {}),\n ...(Array.isArray(shapes) ? { shapes: shapes.map(String) } : {}),\n };\n}\n\n/** `--shapes`, worded as `check` words it. */\nfunction shapesInput(command: Command): Command {\n return command.option(\n \"--shapes <path>\",\n \"Shapes .ttl file; repeatable (default: config check.shapes, then bundled)\",\n collect,\n [],\n );\n}\n\nconst shapesCommand = shapesInput(\n configInputs(\n program\n .command(\"shapes\")\n .description(\"List the SHACL node shapes `graph check` runs, and what each one targets\"),\n ),\n)\n .option(\"-f, --format <format>\", `Output: ${GRAPH_FORMAT_LIST}`, \"pretty\")\n .action((_opts: unknown, command: Command) => {\n try {\n const format = formatOption(String(optionValue(command, \"format\")));\n console.log(renderShapes(runShapes(shapesOptions(command)), format));\n } catch (e) {\n fail(e);\n }\n });\n\nshapesInput(\n configInputs(\n shapesCommand\n .command(\"show\")\n .description(\n \"Print every property a shape checks and the frontmatter key that feeds it\",\n )\n .argument(\"<shape>\", \"Node shape to show, by local name, such as DocumentShape\"),\n ),\n)\n .option(\"-f, --format <format>\", `Output: ${SHAPES_SHOW_FORMAT_LIST}`, \"pretty\")\n .action((shape: string, _opts: unknown, command: Command) => {\n try {\n const format = showFormatOption(String(optionValue(command, \"format\")));\n console.log(renderShapesShow(runShapesShow(shape, shapesOptions(command)), format));\n } catch (e) {\n fail(e);\n }\n });\n\ndocumentInputs(\n program\n .command(\"fill\")\n .description(\n \"Propose `graph:` fields and sample questions with an LLM, gated by confidence, and write them back\",\n ),\n \"fill\",\n)\n .option(\n \"-f, --format <format>\",\n `Output: ${GRAPH_FORMAT_LIST}`,\n formatOption,\n \"pretty\",\n )\n .option(\"--dry-run\", \"Report proposals without writing files\")\n .option(\"--force\", \"Overwrite human-set graph fields\")\n .option(\"--no-cache\", \"Bypass the proposal cache\")\n .option(\"--no-validate-graph\", \"Skip the SHACL graph guardrail on proposals\")\n .option(\"--sections\", \"Also propose per-section metadata\")\n .option(\n \"--max-turns <n>\",\n \"Stop after this many inference calls (a cached page costs none)\",\n countOption(\"--max-turns\"),\n )\n .option(\n \"--confidence <n>\",\n \"Minimum model confidence (0..1) to write a field (default: config, 0.7)\",\n numericOption(\"--confidence\", { min: 0, max: 1 }),\n )\n .option(\n // Comma-separated and given once: one separator per list (proposal 0034).\n \"--fields <list>\",\n `Fields to propose (comma-separated; default: config, then every field)`,\n fieldsOption,\n )\n // The nameable providers, and `auto`. `mock` is the library's test double:\n // accepted when asked for by name, never offered.\n .option(\n \"--provider <name>\",\n \"Provider: auto (default) | anthropic | openai | claude-cli | llama-cpp\",\n )\n .option(\"--model <model>\", \"Model override; needs a named provider, from here or config\")\n .option(\"--local\", LOCAL_FLAG_HELP)\n .option(\n \"--offline\",\n \"no network egress: only a model already downloaded, never a remote provider\",\n )\n .option(\n \"--chunk-chars <n>\",\n \"characters of page per question request (default: config, then 12000)\",\n countOption(\"--chunk-chars\"),\n )\n // Typed inline, as every other action in this file is. The option parsers\n // above (`numericOption`, `choiceOption`, `fieldsOption`) have already thrown\n // on anything malformed by the time this runs, so a cast per field would be\n // safe — but it would also be the one command with the most options and the\n // least help from the compiler.\n .action(async (paths: string[], opts: InputFlags & {\n config?: string | boolean;\n collection?: string[];\n exclude?: string[];\n dryRun?: boolean;\n force?: boolean;\n cache?: boolean;\n validateGraph?: boolean;\n sections?: boolean;\n maxTurns?: number;\n confidence?: number;\n fields?: FillField[];\n provider?: string;\n model?: string;\n local?: boolean;\n offline?: boolean;\n chunkChars?: number;\n format: GraphFormat;\n }) => {\n try {\n const report = await runFill({\n paths,\n ...documentOptions(opts),\n ...(await inputOptions(paths, opts)),\n dryRun: opts.dryRun,\n force: opts.force,\n noCache: opts.cache === false,\n noValidateGraph: opts.validateGraph === false,\n sections: opts.sections,\n maxTurns: opts.maxTurns,\n confidence: opts.confidence,\n fields: opts.fields,\n provider: opts.provider,\n model: opts.model,\n local: opts.local,\n offline: opts.offline,\n chunkChars: opts.chunkChars,\n });\n // Same channel discipline as build: warnings on stderr, so stdout stays\n // the report, and a warning never changes the exit code.\n for (const warning of report.warnings) warn(warning);\n const rendered = renderFill(report, opts.format);\n if (paths.includes(STDIN)) {\n // With `-` the filled document owns stdout, as under `meta fill -`,\n // and the report in either format is a diagnostic on stderr.\n if (report.stdinDocument !== undefined) {\n process.stdout.write(report.stdinDocument);\n }\n if (rendered.length > 0) process.stderr.write(`${rendered}\\n`);\n } else {\n console.log(rendered);\n }\n process.exitCode = report.exitCode;\n } catch (e) {\n fail(e);\n }\n });\n\nprogram\n .command(\"query\")\n .description(\n \"Match triple patterns against the built graph (omit a term for wildcard)\",\n )\n // Long-only, and named for the triple position each one fills. `-o` is\n // `--out` on every other graph verb and `-s` is meta's schema flag; a\n // one-letter spelling that means two things in one family costs more than\n // the letters it saves.\n .option(\"--subject <term>\", \"Subject IRI or prefixed name\")\n .option(\"--predicate <term>\", \"Predicate IRI or prefixed name\")\n .option(\"--object <term>\", \"Object IRI, prefixed name, or literal value\")\n .option(\"-c, --config <path>\", \"Path to manni.config.yaml\")\n .option(\"--no-config\", \"Ignore any discovered config file\")\n .option(\"-g, --graph <path>\", \"Graph .ttl path (default: config out)\")\n .option(\n \"-f, --format <format>\",\n `Output: ${GRAPH_FORMAT_LIST}`,\n formatOption,\n \"pretty\",\n )\n .action(\n (opts: {\n subject?: string;\n predicate?: string;\n object?: string;\n config?: string | boolean;\n graph?: string;\n format: GraphFormat;\n }) => {\n try {\n const { subject, predicate, object, ...others } = rest(opts);\n const result = runQuery({\n ...others,\n ...documentOptions(opts),\n ...(subject === undefined ? {} : { s: subject }),\n ...(predicate === undefined ? {} : { p: predicate }),\n ...(object === undefined ? {} : { o: object }),\n });\n console.log(renderQuery(result, opts.format));\n } catch (e) {\n fail(e);\n }\n },\n );\n\nprogram\n .command(\"stats\")\n .description(\n \"Summarize the built graph: counts, orphans, broken links, hubs, metadata coverage\",\n )\n .option(\"-c, --config <path>\", \"Path to manni.config.yaml\")\n .option(\"--no-config\", \"Ignore any discovered config file\")\n .option(\"-g, --graph <path>\", \"Graph .ttl path (default: config out)\")\n .option(\n \"-f, --format <format>\",\n `Output: ${GRAPH_FORMAT_LIST}`,\n formatOption,\n \"pretty\",\n )\n .option(\n \"--check\",\n \"Exit 1 when broken internal links exist or coverage is below threshold\",\n )\n .option(\n \"--top <n>\",\n \"How many most-connected docs to list\",\n countOption(\"--top\"),\n )\n .option(\n \"--coverage-threshold <pct>\",\n \"Minimum metadata coverage % (all fields); overrides config for this run\",\n // A percentage, so 0..100 rather than the 0..1 of a confidence. NaN here is\n // worse than a wrong number: `pct < NaN` is false for every field, so the\n // gate this flag exists to tighten would silently pass instead.\n numericOption(\"--coverage-threshold\", { min: 0, max: 100 }),\n )\n .action(\n (opts: {\n config?: string | boolean;\n graph?: string;\n format: GraphFormat;\n check?: boolean;\n top?: number;\n coverageThreshold?: number;\n }) => {\n try {\n const report = runStats({ ...rest(opts), ...documentOptions(opts) });\n console.log(renderStats(report, opts.format));\n process.exitCode = report.exitCode;\n } catch (e) {\n fail(e);\n }\n },\n );\n\nprogram\n .command(\"search\")\n .description(\"Rank graph nodes for a text query (needs `export search`)\")\n .argument(\"<query>\", \"Text query\")\n .option(\"-c, --config <path>\", \"Path to manni.config.yaml\")\n .option(\"--no-config\", \"Ignore any discovered config file\")\n .option(\"-g, --graph <path>\", \"Graph .ttl path (default: config out)\")\n .option(\n \"-i, --index <dir>\",\n \"Directory holding the indexes and manifest (default: beside the graph)\",\n )\n .option(\n \"--lang <tag>\",\n \"Which localization to search (required when the corpus has more than one)\",\n )\n .option(\"--limit <n>\", \"Maximum results (default 10)\", countOption(\"--limit\"))\n .option(\n \"--vectors <path>\",\n \"Vector sidecar path (default: from the manifest)\",\n )\n .option(\n \"--mode <mode>\",\n `Which legs to run: ${SEARCH_MODES.join(\" | \")} (default: hybrid when vectors exist)`,\n choiceOption(\"--mode\", SEARCH_MODES),\n )\n .option(\n \"-f, --format <format>\",\n `Output: ${GRAPH_FORMAT_LIST}`,\n formatOption,\n \"pretty\",\n )\n .action(\n async (\n query: string,\n opts: {\n config?: string | boolean;\n graph?: string;\n index?: string;\n lang?: string;\n limit?: number;\n vectors?: string;\n mode?: SearchMode;\n format: GraphFormat;\n },\n ) => {\n try {\n const report = await runSearch({\n ...rest(opts),\n ...documentOptions(opts),\n query,\n });\n console.log(renderSearch(report, opts.format));\n } catch (e) {\n fail(e);\n }\n },\n );\n\nprogram\n .command(\"traverse\")\n .description(\n \"Walk the graph from a node, honoring scope rules, with the full trace\",\n )\n .argument(\"<node>\", \"Starting node: a full IRI or a prefix:local CURIE\")\n .option(\"-c, --config <path>\", \"Path to manni.config.yaml\")\n .option(\"--no-config\", \"Ignore any discovered config file\")\n .option(\"-g, --graph <path>\", \"Graph .ttl path (default: config out)\")\n .option(\n \"-d, --depth <n>\",\n \"Maximum hops from the node (default 1; 3 under --impact)\",\n // Zero is allowed: it means the node itself, which is a real answer.\n countOption(\"--depth\", 0),\n )\n // Comma-separated and given once: a CURIE holds no comma, so one separator\n // is enough, and a second spelling would be a second thing to document.\n .option(\n \"--predicates <list>\",\n \"Only follow these predicates (comma-separated)\",\n )\n .option(\"--reverse\", \"Follow inbound edges (who points at this node)\")\n .option(\"--impact\", \"Transitive inbound reach: what a change here affects\")\n .option(\n \"--variant <variant>\",\n \"Scope filter: product variant IRI, title, or slug\",\n )\n // Not `--subject`: on `query` that is a triple's subject, and one flag name\n // means one thing across the domain.\n .option(\"--software-subject <subject>\", \"Scope filter: software subject\")\n .option(\"--lang <tag>\", \"Scope filter: BCP-47 language tag, matched in any case\")\n .option(\"--limit <n>\", \"Stop after this many nodes\", countOption(\"--limit\"))\n .option(\n \"-f, --format <format>\",\n `Output: ${GRAPH_FORMAT_LIST}`,\n formatOption,\n \"pretty\",\n )\n .action(\n (\n node: string,\n opts: {\n config?: string | boolean;\n graph?: string;\n depth?: number;\n predicates?: string;\n reverse?: boolean;\n impact?: boolean;\n variant?: string;\n softwareSubject?: string;\n lang?: string;\n limit?: number;\n format: GraphFormat;\n },\n ) => {\n try {\n const { softwareSubject, ...others } = rest(opts);\n const report = runTraverse({\n ...others,\n ...documentOptions(opts),\n ...(softwareSubject === undefined ? {} : { subject: softwareSubject }),\n node,\n predicates:\n opts.predicates === undefined\n ? undefined\n : splitList(opts.predicates),\n });\n console.log(renderTraverse(report, opts.format));\n } catch (e) {\n fail(e);\n }\n },\n );\n\nprogram\n .command(\"embed\")\n .description(\n \"Compute local embeddings for the search index (needs @huggingface/transformers)\",\n )\n .option(\"-c, --config <path>\", \"Path to manni.config.yaml\")\n .option(\"--no-config\", \"Ignore any discovered config file\")\n .option(\"-g, --graph <path>\", \"Graph .ttl path (default: config out)\")\n .option(\n \"-i, --index <dir>\",\n \"Directory holding the indexes and manifest (default: beside the graph)\",\n )\n .option(\n \"-o, --out <dir>\",\n \"Directory for the sidecars (default: the index directory)\",\n )\n // Not `--model`: on `fill` that is the inference model, a different thing.\n .option(\n \"--embedding-model <id>\",\n \"Embedding model id (any id; `mock` for offline runs)\",\n )\n .option(\"--dtype <dtype>\", \"Weight quantization (default q8)\")\n .option(\"--no-cache\", \"Ignore the vector cache\")\n .option(\n \"-f, --format <format>\",\n `Output: ${GRAPH_FORMAT_LIST}`,\n formatOption,\n \"pretty\",\n )\n .action(\n async (opts: {\n config?: string | boolean;\n graph?: string;\n index?: string;\n out?: string;\n embeddingModel?: string;\n dtype?: string;\n cache?: boolean;\n format: GraphFormat;\n }) => {\n try {\n const { embeddingModel, ...others } = rest(opts);\n const report = await runEmbed({\n ...others,\n ...documentOptions(opts),\n ...(embeddingModel === undefined ? {} : { model: embeddingModel }),\n noCache: opts.cache === false,\n });\n console.log(renderEmbed(report, opts.format));\n } catch (e) {\n fail(e);\n }\n },\n );\n\nprogram\n .command(\"export\")\n .description(\n \"Reserialize the built graph into a consumer format (jsonld file, iirds package, search index, or question set)\",\n )\n // The target is a positional, not `-f`: `-f` is the output format in every\n // other verb of the family (0051 §2), and one flag cannot mean two things.\n .argument(\"<target>\", `What to write: ${EXPORT_TARGETS.join(\" | \")}`)\n .option(\"-c, --config <path>\", \"Path to manni.config.yaml\")\n .option(\"--no-config\", \"Ignore any discovered config file\")\n .option(\"-g, --graph <path>\", \"Graph .ttl path (default: config out)\")\n .option(\n \"-o, --out <path>\",\n \"Output path (default: the graph path with the target's extension)\",\n )\n .action(\n async (\n target: string,\n opts: { config?: string | boolean; graph?: string; out?: string },\n ) => {\n try {\n if (!(EXPORT_TARGETS as readonly string[]).includes(target)) {\n throw new GraphError(\n `Unknown export target \"${target}\". Use ${EXPORT_TARGETS.join(\" | \")}.`,\n );\n }\n const result = await runExport({\n ...documentOptions(opts),\n graph: opts.graph,\n format: target as ExportFormat,\n out: opts.out,\n });\n for (const warning of result.warnings) warn(warning);\n const noun = result.format === \"questions\" ? \"question\" : \"node\";\n console.log(\n `Wrote ${result.nodes} ${noun}${result.nodes === 1 ? \"\" : \"s\"} to ${result.outPath}`,\n );\n } catch (e) {\n fail(e);\n }\n },\n );\n\nreturn program;\n}\n","/**\n * What `-f` accepts, per verb.\n *\n * Each verb's renderer lives beside its command core (`renderCheck`,\n * `renderStats`, …); what belongs here is the *list*, stated once so the\n * union, the guard, the help text and the refusal sentence cannot drift\n * apart. It is the same shape a11y and cite keep (`A11Y_FORMATS`,\n * `REPORT_FORMATS`), which is why the sentence a user reads is the family's.\n *\n * Every verb takes `pretty | json`. `check` also takes `github` and `sarif`,\n * because it is the CI gate: it is the one graph verb whose output changes what\n * a reviewer sees on a pull request (proposal 0051 §2), and code scanning reads\n * SARIF (proposal 0089). It names its own list here rather than widening the\n * shared one, so no other verb advertises a format it cannot render.\n */\n\n/** The list every graph verb's `-f` accepts, in the order messages list them. */\nexport const GRAPH_FORMATS = [\"pretty\", \"json\"] as const;\nexport type GraphFormat = (typeof GRAPH_FORMATS)[number];\n\n/** `\"pretty | json\"`, for help text and the refusal sentence. */\nexport const GRAPH_FORMAT_LIST: string = GRAPH_FORMATS.join(\" | \");\n\n/** `check`'s list: the shared two plus the two CI formats. */\nexport const CHECK_FORMATS = [...GRAPH_FORMATS, \"github\", \"sarif\"] as const;\nexport type CheckFormat = (typeof CHECK_FORMATS)[number];\n\n/** `shapes show`'s list: the shared two plus a frontmatter skeleton. */\nexport const SHAPES_SHOW_FORMATS = [...GRAPH_FORMATS, \"markdown\"] as const;\n\n/** `\"pretty | json | markdown\"`, for help text and the refusal sentence. */\nexport const SHAPES_SHOW_FORMAT_LIST: string = SHAPES_SHOW_FORMATS.join(\" | \");\n\n/** `\"pretty | json | github | sarif\"`, for help text and the refusal sentence. */\nexport const CHECK_FORMAT_LIST: string = CHECK_FORMATS.join(\" | \");\n","/**\n * `manni graph shapes` and `manni graph shapes show <shape>`: what the shapes\n * in effect ask for, before a page is written (proposal 0089). The listing\n * names each node shape and what it targets. `show` prints every property a\n * shape checks and the frontmatter key that feeds it, from `sh:name`, and\n * `-f markdown` turns those keys into a frontmatter skeleton.\n *\n * The shapes are the ones `check` would run: `--shapes`, else\n * `graph.check.shapes`, else the bundled file.\n */\nimport { resolve } from \"node:path\";\nimport { DataFactory, type Store } from \"n3\";\nimport type { Severity } from \"../../shared/severity.js\";\nimport { GraphError } from \"../types.js\";\nimport { loadRunConfig } from \"../core/config.js\";\nimport { compactIri } from \"../core/load.js\";\nimport { bundledShapesPath } from \"../core/pkg.js\";\nimport {\n loadShapes,\n localName,\n shapeText,\n type LoadedShapes,\n type ShapesFile,\n} from \"../core/shacl.js\";\nimport { byCodeUnit } from \"../core/sort.js\";\nimport { NS } from \"../core/vocab.js\";\n\nconst SH = \"http://www.w3.org/ns/shacl#\";\n\nexport interface ShapesOptions {\n config?: string;\n /** `--no-config`: skip discovery and use the bundled shapes. */\n noConfig?: boolean;\n /** Shapes .ttl paths (default: config `check.shapes`, then bundled). */\n shapes?: string[];\n cwd?: string;\n}\n\n/** One node shape, as `graph shapes` lists it. */\nexport interface NodeShapeRow {\n /** The shape's local name, such as `DocumentShape`. */\n name: string;\n /** The shapes file's id. */\n id: string;\n /** `\"bundled\"`, or the path as given. */\n source: string;\n /** What the shape targets: a class IRI, or `objects of <predicate>`. */\n target: string | null;\n closed: boolean;\n description: string | null;\n guide: string | null;\n}\n\n/** One property a node shape checks. */\nexport interface PropertyRow {\n /** The property shape's local name, or `null` for a blank node. */\n rule: string | null;\n /** The predicate IRI. */\n path: string;\n /** The frontmatter key that feeds it (`sh:name`), or `null` when manni writes it. */\n key: string | null;\n min: number;\n max: number | null;\n severity: Severity;\n description: string | null;\n}\n\nexport interface ShapeDetail extends NodeShapeRow {\n properties: PropertyRow[];\n}\n\n/** The listing `graph shapes` prints. */\nexport interface ShapesList {\n shapes: NodeShapeRow[];\n}\n\n/** What `graph shapes show` prints: one block per file that defines the shape. */\nexport interface ShapesShow {\n shapes: ShapeDetail[];\n}\n\ninterface Resolved {\n loaded: LoadedShapes;\n sourceOf: Map<ShapesFile, string>;\n}\n\n/** The shapes `check` would run, each with the name the listing gives it. */\nfunction resolveShapes(opts: ShapesOptions): Resolved {\n const cwd = opts.cwd ?? process.cwd();\n const config = loadRunConfig(\n {\n ...(opts.config === undefined ? {} : { configPath: opts.config }),\n ...(opts.noConfig === undefined ? {} : { noConfig: opts.noConfig }),\n },\n cwd,\n );\n const given = opts.shapes && opts.shapes.length > 0 ? opts.shapes : config.check.shapes;\n const sources =\n given.length > 0\n ? given.map((p) => ({ path: resolve(cwd, p), label: p }))\n : [bundledShapesPath(import.meta.url)];\n const loaded = loadShapes(sources);\n const sourceOf = new Map<ShapesFile, string>(\n loaded.files.map((file) => [file, given.length > 0 ? file.label : \"bundled\"]),\n );\n return { loaded, sourceOf };\n}\n\n/** Where a shape's file sits in the order the files were given. */\nfunction fileIndex(resolved: Resolved, iri: string): number {\n const file = resolved.loaded.fileOf.get(iri);\n return file === undefined ? 0 : resolved.loaded.files.indexOf(file);\n}\n\nconst named = (iri: string) => DataFactory.namedNode(iri);\n\nfunction firstObject(store: Store, subject: string, predicate: string): string | undefined {\n return store\n .getObjects(named(subject), named(predicate), null)\n .map((o) => o.value)\n .sort(byCodeUnit)[0];\n}\n\nfunction nodeShapeRow(resolved: Resolved, iri: string): NodeShapeRow {\n const { loaded, sourceOf } = resolved;\n // Every node shape listed here is the subject of its own `a sh:NodeShape`\n // triple, and every triple came from a file, so the lookup always finds one.\n // No fallback to another file, which would misattribute the row.\n const file = loaded.fileOf.get(iri);\n const store = loaded.store;\n const targetClass = firstObject(store, iri, `${SH}targetClass`);\n const objectsOf = firstObject(store, iri, `${SH}targetObjectsOf`);\n return {\n name: localName(iri),\n id: file?.id ?? \"\",\n source: file === undefined ? \"\" : (sourceOf.get(file) ?? file.label),\n target:\n targetClass ?? (objectsOf === undefined ? null : `objects of ${objectsOf}`),\n closed: firstObject(store, iri, `${SH}closed`) === \"true\",\n description: shapeText(store, named(iri), `${SH}description`),\n guide: file?.guide ?? null,\n };\n}\n\n/** Every named node shape in the store, sorted by name. */\nfunction nodeShapes(store: Store): string[] {\n return store\n .getSubjects(named(`${NS.rdf}type`), named(`${SH}NodeShape`), null)\n .filter((s) => s.termType === \"NamedNode\")\n .map((s) => s.value)\n .sort((a, b) => byCodeUnit(localName(a), localName(b)) || byCodeUnit(a, b));\n}\n\nconst SEVERITIES: Record<string, Severity> = {\n [`${SH}Violation`]: \"error\",\n [`${SH}Warning`]: \"warning\",\n [`${SH}Info`]: \"notice\",\n};\n\nfunction propertyRows(store: Store, shape: string): PropertyRow[] {\n const rows: PropertyRow[] = [];\n for (const property of store.getObjects(named(shape), named(`${SH}property`), null)) {\n const term =\n property.termType === \"BlankNode\"\n ? DataFactory.blankNode(property.value)\n : named(property.value);\n const read = (predicate: string): string | undefined =>\n store\n .getObjects(term, named(predicate), null)\n .map((o) => o.value)\n .sort(byCodeUnit)[0];\n const path = read(`${SH}path`);\n if (path === undefined) continue;\n const min = read(`${SH}minCount`);\n const max = read(`${SH}maxCount`);\n rows.push({\n rule: property.termType === \"NamedNode\" ? localName(property.value) : null,\n path,\n key: shapeText(store, term, `${SH}name`),\n min: min === undefined ? 0 : Number(min),\n max: max === undefined ? null : Number(max),\n severity: SEVERITIES[read(`${SH}severity`) ?? \"\"] ?? \"error\",\n description: shapeText(store, term, `${SH}description`),\n });\n }\n return rows.sort(\n (a, b) => byCodeUnit(a.rule ?? \"\", b.rule ?? \"\") || byCodeUnit(a.path, b.path),\n );\n}\n\nexport function runShapes(opts: ShapesOptions = {}): ShapesList {\n const resolved = resolveShapes(opts);\n // Grouped by file, in the order the files were given, then by name.\n const shapes = nodeShapes(resolved.loaded.store).sort(\n (a, b) => fileIndex(resolved, a) - fileIndex(resolved, b),\n );\n return { shapes: shapes.map((iri) => nodeShapeRow(resolved, iri)) };\n}\n\nexport function runShapesShow(name: string, opts: ShapesOptions = {}): ShapesShow {\n const resolved = resolveShapes(opts);\n const all = nodeShapes(resolved.loaded.store);\n const matching = all.filter((iri) => localName(iri) === name);\n if (matching.length === 0) {\n if (all.length === 0) {\n throw new GraphError(`Unknown shape \"${name}\". The shapes in effect define no node shapes.`);\n }\n const available = [...new Set(all.map(localName))].join(\", \");\n throw new GraphError(`Unknown shape \"${name}\". Available: ${available}.`);\n }\n return {\n shapes: matching.map((iri) => ({\n ...nodeShapeRow(resolved, iri),\n properties: propertyRows(resolved.loaded.store, iri),\n })),\n };\n}\n\n/** How often a property may occur, in lint's words. */\nfunction occurrence(min: number, max: number | null): string {\n if (max === 0) return \"forbidden\";\n if (max === null) {\n if (min === 0) return \"optional, repeats\";\n if (min === 1) return \"required, repeats\";\n return `at least ${String(min)}`;\n }\n if (min === 1 && max === 1) return \"required\";\n if (min === 0 && max === 1) return \"optional\";\n return `${String(min)} to ${String(max)}`;\n}\n\n/** Rows of cells, each column padded to its widest cell. */\nfunction columns(rows: string[][]): string[] {\n const widths: number[] = [];\n for (const row of rows) {\n row.forEach((cell, i) => (widths[i] = Math.max(widths[i] ?? 0, cell.length)));\n }\n return rows.map((row) =>\n row\n .map((cell, i) => (i === row.length - 1 ? cell : cell.padEnd(widths[i] ?? 0)))\n .join(\" \")\n .trimEnd(),\n );\n}\n\nconst compactTarget = (target: string | null): string =>\n target === null\n ? \"(no target)\"\n : target.startsWith(\"objects of \")\n ? `objects of ${compactIri(target.slice(\"objects of \".length))}`\n : compactIri(target);\n\nexport function renderShapes(list: ShapesList, format: \"pretty\" | \"json\"): string {\n if (format === \"json\") return JSON.stringify(list, null, 2);\n // One block per file: `runShapes` lists them grouped, in the order given.\n const groups: NodeShapeRow[][] = [];\n for (const shape of list.shapes) {\n const last = groups.at(-1);\n const head = last?.[0];\n if (last !== undefined && head?.id === shape.id && head.source === shape.source) {\n last.push(shape);\n } else {\n groups.push([shape]);\n }\n }\n const blocks: string[] = [];\n for (const rows of groups) {\n const first = rows[0];\n if (first === undefined) continue;\n const lines = [first.source === first.id ? first.id : `${first.id} (${first.source})`];\n if (first.guide !== null) lines.push(` Guide: ${first.guide}`);\n lines.push(\n ...columns(\n rows.map((s) => [s.name, compactTarget(s.target), s.description ?? \"\"]),\n ).map((l) => ` ${l}`),\n );\n blocks.push(lines.join(\"\\n\"));\n }\n return blocks.join(\"\\n\\n\");\n}\n\nexport function renderShapesShow(\n show: ShapesShow,\n format: \"pretty\" | \"json\" | \"markdown\",\n): string {\n if (format === \"json\") return JSON.stringify(show, null, 2);\n if (format === \"markdown\") return skeleton(show);\n return show.shapes\n .map((shape) => {\n const head = [compactTarget(shape.target), ...(shape.closed ? [\"closed\"] : [])].join(\", \");\n const lines = [`${shape.name} ${shape.id} ${head}`];\n if (shape.description !== null) lines.push(` ${shape.description}`);\n if (shape.guide !== null) lines.push(` Guide: ${shape.guide}`);\n lines.push(\"\");\n const rows = columns(\n shape.properties.map((p) => {\n const words = [\n occurrence(p.min, p.max),\n ...(p.severity === \"error\" ? [] : [p.severity]),\n ].join(\", \");\n return [p.rule ?? \"(unnamed)\", compactIri(p.path), p.key === null ? words : `${p.key} · ${words}`];\n }),\n );\n shape.properties.forEach((p, i) => {\n lines.push(` ${rows[i] ?? \"\"}`);\n if (p.description !== null) lines.push(` ${p.description}`);\n });\n return lines.join(\"\\n\");\n })\n .join(\"\\n\\n\");\n}\n\n/** A nested key of the skeleton: its comment, its value, or its children. */\ninterface SkeletonNode {\n comment: string | null;\n required: boolean;\n repeats: boolean;\n children: Map<string, SkeletonNode>;\n}\n\n/**\n * A frontmatter skeleton from every `sh:name` the shape carries. A required\n * key is written out and an optional one is commented, each under its\n * description. A dotted key nests, and a parent is commented when every key\n * under it is.\n */\nfunction skeleton(show: ShapesShow): string {\n const root = new Map<string, SkeletonNode>();\n for (const shape of show.shapes) {\n for (const p of shape.properties) {\n if (p.key === null) continue;\n let level = root;\n let node: SkeletonNode | undefined;\n for (const part of p.key.split(\".\")) {\n node = level.get(part);\n if (node === undefined) {\n node = { comment: null, required: false, repeats: false, children: new Map() };\n level.set(part, node);\n }\n level = node.children;\n }\n if (node === undefined) continue;\n node.comment ??= p.description;\n node.required ||= p.min > 0;\n node.repeats ||= p.max !== 1;\n }\n }\n const first = show.shapes[0];\n if (first === undefined || root.size === 0) {\n throw new GraphError(\n `${first?.name ?? \"This shape\"} has no frontmatter keys. manni writes every value it checks.`,\n );\n }\n const required = (node: SkeletonNode): boolean =>\n node.children.size === 0 ? node.required : [...node.children.values()].some(required);\n const lines = [\"---\", `# ${first.name}, ${first.id}`];\n for (const g of [...new Set(show.shapes.map((s) => s.guide))]) {\n if (g !== null) lines.push(`# Guide: ${g}`);\n }\n const write = (level: Map<string, SkeletonNode>, indent: string): void => {\n for (const [key, node] of [...level].sort(([a], [b]) => byCodeUnit(a, b))) {\n const mark = required(node) ? \"\" : \"# \";\n if (node.children.size > 0) {\n lines.push(`${indent}${mark}${key}:`);\n write(node.children, `${indent} `);\n continue;\n }\n if (node.comment !== null) lines.push(`${indent}# ${node.comment}`);\n lines.push(`${indent}${mark}${key}:${node.repeats ? \" []\" : \"\"}`);\n }\n };\n write(root, \"\");\n lines.push(\"---\");\n return lines.join(\"\\n\");\n}\n","/**\n * `manni graph init` — scaffold a starter `graph:` section in manni.config.yaml.\n *\n * The family file is shared with the other tools, so a file that already\n * exists is not overwritten: the section is appended to it, leaving the\n * siblings' keys and comments exactly as they were. A file that already has a\n * `graph:` key is refused.\n */\nimport { existsSync, readFileSync } from \"node:fs\";\nimport { resolve } from \"node:path\";\nimport { parse as parseYaml } from \"yaml\";\nimport { errorMessage } from \"../../shared/errors.js\";\nimport { writeTextAtomic } from \"../../shared/write-file.js\";\nimport { GraphError } from \"../types.js\";\nimport { CONFIG_SECTION, DEFAULT_CONFIG_FILENAME } from \"../core/config.js\";\n\nconst HEADER = `# manni.config.yaml — shared configuration for the manni family of tools.\n# Each tool reads its own top-level key; manni graph reads \"graph:\".\n`;\n\nconst STARTER = `# Base IRI for every minted node. Set this to a namespace you control;\n# without it, IRIs fall back to the urn:manni:graph: placeholder.\n# baseIri: https://example.com/graph/\n\n# There is no document set here. \\`manni graph build\\` and \\`manni graph fill\\` read the\n# paths you name, or the collections declared once for every tool at the TOP\n# level of this file, beside \\`graph:\\` rather than inside it:\n#\n# collections:\n# - name: site\n# paths: [\"docs/**/*.md\"]\n#\n# Output of \\`manni graph build\\`.\nout: graph/graph.ttl\n\n# Map published-site routes back to source files so route-style links\n# (/docs/actions/find) become graph edges. A route may also carry the BCP-47\n# \\`language\\` labelling every document under its root; a page's own \\`lang\\`\n# frontmatter wins. Uncomment and adjust:\n# routes:\n# - basePath: /docs\n# root: docs\n# extensions: [.md, .mdx, .markdown]\n# indexFiles: [index, README]\n# - basePath: /docs/de\n# root: docs/de\n# language: de\n\n# What to derive triples from. Remove entries to opt out.\nbuild:\n derive: [frontmatter, sections, links, tags, images, code, provenance, terms]\n\n# PROV-O settings. Git history is detected, not switched: per-file dates and\n# author agents, rename -> prov:wasRevisionOf, and the build activity's HEAD\n# committer date are derived wherever git can run over a repository, and a run\n# that cannot says so once and builds the rest. Deterministic per commit;\n# wall-clock time never enters the graph.\n# qualified: emit prov:qualifiedAttribution/qualifiedAssociation nodes\n# with roles alongside the direct properties.\nprovenance:\n qualified: true\n\n# Which fields a published graph may carry is read from x-manni-graph-output in\n# the schema set \\`manni meta validate\\` resolves for each page. Set that under\n# meta: (schemas, strict, register), not here. The default set keeps the\n# stewardship people fields (owner, stakeholders, reviewed-by) out.\n\n# SHACL shapes \\`manni graph check\\` validates the built graph against. Default:\n# the shapes contract bundled with manni (shapes/graph/shapes-1.1.1.ttl).\n# check:\n# shapes: [\"./my-shapes.ttl\"]\n\n# Metadata coverage gate for \\`manni graph stats --check\\`. A number applies to\n# every measured field; a map gates named fields only. Unset gates nothing.\n# stats:\n# coverageThreshold:\n# title: 100\n# description: 50\n\n# Which provider \\`manni graph fill\\` sends pages to. Unset, the family's\n# top-level providers: map decides, and then \\`auto\\`, which detects one: an\n# Anthropic key, then an OpenAI key, then the Claude CLI, then a local model.\n# Connection settings (apiKeyEnv, baseUrl, command) live in that map, declared\n# once for every manni tool. \\`--provider\\` wins over this, \\`--local\\` over both.\n# provider: anthropic # auto | anthropic | openai | claude-cli | llama-cpp\n# model: claude-sonnet-4-5 # the provider's default when omitted\n\n# LLM settings for \\`manni graph fill\\` (SKOS frontmatter proposals and sample questions).\nfill:\n temperature: 0\n # Stop after this many inference calls. One page is one turn, and a cached\n # page spends none. Unset is unbounded.\n # maxTurns: 50\n cacheDir: .manni/graph/cache\n # fill proposes every field; confidence (0..1 per field) gates what is\n # written. Fields scored below the threshold are reported, not written.\n confidenceThreshold: 0.7\n # fields: defaults to every fillable field — uncomment to restrict.\n # Record meta-provenance (model + /graph/ pointers + confidence) on filled docs.\n writeProvenance: true\n # Reject proposals that would violate the SHACL shapes contract\n # (broader/narrower cycles, conflicting labels).\n validateGraph: true\n # Also propose per-section metadata. Off by default: it costs more output per\n # call, and section metadata is explicit-only, so review it as carefully.\n sections: false\n # Sample questions: draft until a page has perPage, each pinned to the lines\n # that answer it. A question request sends at most chunkChars of a page.\n questions:\n perPage: 3\n chunkChars: 12000\n # Send nothing off this machine: only a local model already downloaded.\n offline: false\n\n# Local embeddings for semantic search (\\`manni graph embed\\`). Needs the optional\n# peer: npm install @huggingface/transformers\n# embed:\n# model: onnx-community/granite-embedding-small-english-r2-ONNX\n# dtype: q8 # q8 keeps embedding reproducible across platforms\n# out: graph # directory for the per-language vector sidecars\n# cacheDir: .manni/graph/embed-cache\n\n# Optional enrichment for \\`manni graph export iirds\\` (the iiRDS package).\n# Absent, a minimal valid package is still produced.\n# export:\n# iirds:\n# title: My Docs # package title (default: \"manni graph export\")\n# creator: Acme Corp # Creator iirds:Party + vcard:Organization\n# version: \"1.3\" # iiRDS version literal: \"1.2\" | \"1.3\"\n`;\n\n/** The starter as a `graph:` section: every line nested one level. */\nfunction starterSection(): string {\n const body = STARTER.split(\"\\n\")\n .map((line) => (line === \"\" ? \"\" : ` ${line}`))\n .join(\"\\n\");\n return `${CONFIG_SECTION}:\\n${body}`;\n}\n\nexport async function runInit(cwd = process.cwd()): Promise<string> {\n const path = resolve(cwd, DEFAULT_CONFIG_FILENAME);\n if (!existsSync(path)) {\n await writeTextAtomic(path, `${HEADER}${starterSection()}`);\n return path;\n }\n\n // A family file is already here. Parse it to make sure a `graph:` key can be\n // appended: the document must be a mapping (or empty) without one.\n const text = readFileSync(path, \"utf8\");\n let doc: unknown;\n try {\n doc = parseYaml(text);\n } catch (e) {\n throw new GraphError(\n `Invalid YAML in ${DEFAULT_CONFIG_FILENAME}: ${errorMessage(e)}`,\n );\n }\n if (doc != null && (typeof doc !== \"object\" || Array.isArray(doc))) {\n throw new GraphError(\n `${DEFAULT_CONFIG_FILENAME}: top level must be a mapping — not adding a \\`${CONFIG_SECTION}:\\` section to it.`,\n );\n }\n if (doc != null && Object.hasOwn(doc, CONFIG_SECTION)) {\n throw new GraphError(\n `${DEFAULT_CONFIG_FILENAME} already has a \\`${CONFIG_SECTION}:\\` section — not overwriting.`,\n );\n }\n // Append as text rather than re-serialising the document, so the siblings'\n // keys and comments come out byte-for-byte as they went in.\n const separator = text === \"\" || text.endsWith(\"\\n\") ? \"\" : \"\\n\";\n const blank = text === \"\" ? \"\" : \"\\n\";\n await writeTextAtomic(\n path,\n `${text}${separator}${blank}${starterSection()}`,\n );\n return path;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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YAAI,CAAE,eAAqC,SAAS,MAAM,GAAG;AAC3D,gBAAM,IAAI;AAAA,YACR,0BAA0B,MAAM,UAAU,eAAe,KAAK,KAAK,CAAC;AAAA,UACtE;AAAA,QACF;AACA,cAAM,SAAS,MAAM,UAAU;AAAA,UAC7B,GAAG,gBAAgB,IAAI;AAAA,UACvB,OAAO,KAAK;AAAA,UACZ,QAAQ;AAAA,UACR,KAAK,KAAK;AAAA,QACZ,CAAC;AACD,mBAAW,WAAW,OAAO,SAAU,MAAK,OAAO;AACnD,cAAM,OAAO,OAAO,WAAW,cAAc,aAAa;AAC1D,gBAAQ;AAAA,UACN,SAAS,OAAO,KAAK,IAAI,IAAI,GAAG,OAAO,UAAU,IAAI,KAAK,GAAG,OAAO,OAAO,OAAO;AAAA,QACpF;AAAA,MACF,SAAS,GAAG;AACV,aAAK,CAAC;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAEF,SAAO;AACP;","names":["resolve","resolve"]}
|
package/dist/cli-THEU2QG2.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/site/cli.ts","../src/site/core/detect.ts","../src/site/errors.ts","../src/site/core/config.ts","../src/site/core/run.ts","../src/site/core/static-server.ts","../src/site/commands/run.ts"],"sourcesContent":["/**\n * The `site` domain's commander program. Mounted by `src/cli.ts` under\n * `manni site`; no entry point of its own. Like `key` (proposal 0045), `site`\n * is a family resource with verbs: the site every other domain checks\n * (proposal 0082). Three verbs, no default subcommand.\n *\n * These verbs print no report: the framework's output is the output, on the\n * inherited stdio. manni's own lines are diagnostics on stderr. Exit `0` done,\n * `2` operational/usage, and never `1`, because nothing here is a finding.\n */\nimport { Command } from \"commander\";\nimport pkg from \"../../package.json\" with { type: \"json\" };\nimport { fail } from \"../shared/run.js\";\nimport { runSite } from \"./commands/run.js\";\nimport type { Verb } from \"./types.js\";\n\n/** What commander hands each verb's action. */\ninterface SiteCliOptions {\n /** `-c, --config <file>`. */\n config?: string;\n /** `--port <n>` as typed; `resolvePlan` validates it. start and preview only. */\n port?: string;\n /** `--host <host>`. start and preview only. */\n host?: string;\n}\n\n/**\n * Split a verb's operands into `[dir]` and what came after `--`.\n *\n * Commander drops the `--` itself, at whichever program met it first (here,\n * the umbrella), and hands everything after it on as operands. So `[dir]`\n * alone cannot tell `start -- --open` (no dir) from `start website`. The\n * process argv still has the `--`, and what follows it is the tail of the\n * operands; a tail that does not match (a program parsed from elsewhere) is\n * no passthrough at all.\n * ponytail: an option given `--` as its value (`--host --`) is misread as the\n * separator; nobody binds a host named `--`.\n */\nfunction splitOperands(args: readonly string[]): { dir: string | undefined; passthrough: string[]; extra: number } {\n const at = process.argv.indexOf(\"--\");\n const tail = at === -1 ? [] : process.argv.slice(at + 1);\n const start = args.length - tail.length;\n const passthrough = start >= 0 && tail.every((arg, i) => args[start + i] === arg) ? tail : [];\n const before = args.slice(0, args.length - passthrough.length);\n return { dir: before[0], passthrough, extra: before.length };\n}\n\nexport function buildProgram(): Command {\n const program = new Command();\n program\n .name(\"site\")\n .description(\"Start, build and preview the docs site\")\n .version(pkg.version, \"-V, --version\")\n // A pointer, not the whole help screen: the message that precedes it\n // already names the offending flag.\n .showHelpAfterError(\"(add --help for usage)\")\n // MUST come before the `.command()` calls below. `copyInheritedSettings`\n // copies `_exitCallback` by value at subcommand-creation time, so an\n // `exitOverride()` installed afterwards leaves every subcommand still\n // calling `process.exit(1)`.\n .exitOverride();\n\n const verb = (name: Verb, description: string, serves: boolean): void => {\n const cmd = program\n .command(name)\n .description(description)\n .argument(\"[dir]\", \"the site's directory (default: site.dir, else found by search)\")\n // Everything after `--` arrives as operands; splitOperands sorts them.\n .allowExcessArguments();\n if (serves) {\n cmd\n .option(\"--port <n>\", \"port, an integer from 1 to 65535 (default: a local collection url, else the framework's)\")\n .option(\"--host <host>\", \"host to bind (default: a local collection url, else the framework's)\");\n }\n cmd\n .option(\"-c, --config <file>\", \"path to a manni config file\")\n .action(async (_dir: string | undefined, options: SiteCliOptions, self: Command) => {\n const { dir, passthrough, extra } = splitOperands(self.args);\n if (extra > 1) {\n self.error(\n `error: too many arguments for '${name}'. Expected 1 argument but got ${String(extra)}.`,\n { code: \"commander.excessArguments\" },\n );\n }\n try {\n process.exitCode = await runSite(name, {\n cwd: process.cwd(),\n dir,\n configPath: options.config,\n port: options.port,\n host: options.host,\n passthrough,\n });\n } catch (err) {\n fail(err);\n }\n });\n };\n\n verb(\"start\", \"Run the docs framework's dev server\", true);\n verb(\"build\", \"Build the docs site\", false);\n verb(\"preview\", \"Build the docs site, then serve the output\", true);\n\n program.addHelpText(\n \"after\",\n [\n \"\",\n \"Examples:\",\n \" manni site start # detect the framework, run its dev server\",\n \" manni site build\",\n \" manni site preview --port 4000 # build, then serve the output\",\n \" manni site start website -- --open # arguments after -- go to the framework\",\n ].join(\"\\n\"),\n );\n\n return program;\n}\n","/**\n * From a directory to the commands `manni site` runs (proposal 0082). The\n * site is found, its framework read from marker files (detect, don't switch),\n * and each verb resolved to argv, a `site.commands` override, or the built-in\n * static server. Everything that can fail before a process starts fails here.\n */\nimport { existsSync, readdirSync, readFileSync, statSync } from \"node:fs\";\nimport { dirname, join, posix, relative, resolve } from \"node:path\";\nimport type { CollectionConfig } from \"../../shared/collections.js\";\nimport { FAMILY_CONFIG_NAMES } from \"../../shared/config-file.js\";\nimport { searchPath } from \"../../shared/git-root.js\";\nimport { warn } from \"../../shared/warn.js\";\nimport { SiteError } from \"../errors.js\";\nimport type { Plan, PlannedStep, Verb } from \"../types.js\";\nimport { loadSiteConfig } from \"./config.js\";\n\nexport interface ResolveOptions {\n cwd: string;\n /** The positional `[dir]`, relative to `cwd`. */\n dir?: string;\n configPath?: string;\n /** `--port` as typed; validated here. */\n port?: string;\n host?: string;\n /** Everything after `--`. */\n passthrough: string[];\n}\n\n/** A command: Node frameworks name the script they prefer over the binary. */\ninterface Cmd {\n script?: string;\n argv: string[];\n}\n\ninterface Site {\n dir: string;\n scripts: Record<string, unknown>;\n deps: Set<string>;\n}\n\ninterface Framework {\n name: string;\n /** The marker that matched, for messages, or `null`. */\n marker: (site: Site) => string | null;\n /** How the binary is reached: a package manager, uv/poetry, bundler, or PATH. */\n runner: \"node\" | \"python\" | \"ruby\" | \"path\";\n /** Node only: the package that provides the binary. */\n pkg?: (site: Site) => string;\n commands: (site: Site) => { start: Cmd; build?: Cmd; preview?: Cmd; out?: string };\n /** `-a` means one `-a host:port`; `null` means the server takes no host. */\n hostFlag: \"--host\" | \"--hostname\" | \"--bind\" | \"-a\" | null;\n defaultPort: number;\n}\n\nconst has = (dir: string, ...parts: string[]): boolean => existsSync(join(dir, ...parts));\nconst read = (path: string): string => {\n try {\n return readFileSync(path, \"utf8\");\n } catch {\n return \"\";\n }\n};\nconst dep = (name: string) => (s: Site) => (s.deps.has(name) ? name : null);\nconst node = (bin: string, start: string, build: string, preview: string, args: string[] = []) => ({\n start: { script: start, argv: [bin, \"dev\", ...args] },\n build: { script: build, argv: [bin, \"build\", ...args] },\n preview: { script: preview, argv: [bin, \"preview\", ...args] },\n});\nconst next = () => ({\n start: { script: \"dev\", argv: [\"next\", \"dev\"] },\n build: { script: \"build\", argv: [\"next\", \"build\"] },\n preview: { script: \"start\", argv: [\"next\", \"start\"] },\n});\n\nfunction mintlify(s: Site): string | null {\n if (has(s.dir, \"mint.json\")) return \"mint.json\";\n try {\n const doc = JSON.parse(read(join(s.dir, \"docs.json\"))) as Record<string, unknown>;\n const schema = doc.$schema;\n // Without Mintlify's $schema, it takes the pair its docs.json requires: a theme and a navigation.\n const shaped = typeof doc.theme === \"string\" && typeof doc.navigation === \"object\" && doc.navigation !== null;\n if ((typeof schema === \"string\" && schema.includes(\"mintlify\")) || shaped) {\n return \"docs.json\";\n }\n } catch {\n // No docs.json, or not JSON: not Mintlify.\n }\n return null;\n}\n\n// Both the MkDocs and Zensical markers ask, so each site is answered once.\nconst zensicalSeen = new WeakMap<Site, string | null>();\n\nfunction zensical(s: Site): string | null {\n const seen = zensicalSeen.get(s);\n if (seen !== undefined) return seen;\n const found = zensicalMarker(s);\n zensicalSeen.set(s, found);\n return found;\n}\n\nfunction zensicalMarker(s: Site): string | null {\n if (has(s.dir, \"zensical.toml\")) return \"zensical.toml\";\n if (!has(s.dir, \"mkdocs.yml\")) return null;\n let files: string[];\n try {\n files = readdirSync(s.dir).filter((f) => /^requirements.*\\.txt$/.test(f) || f === \"pyproject.toml\");\n } catch {\n // An unlistable directory names no Python deps; it reads as plain MkDocs.\n return null;\n }\n return files.some((f) => /\\bzensical\\b/.test(read(join(s.dir, f)))) ? \"mkdocs.yml\" : null;\n}\n\nconst sphinxSource = (s: Site): string => (has(s.dir, \"conf.py\") ? \".\" : \"source\");\n\n/** Detected frameworks, in the order an ambiguity lists them. */\nconst FRAMEWORKS: Framework[] = [\n {\n name: \"Mintlify\",\n marker: mintlify,\n runner: \"path\",\n commands: () => ({ start: { argv: [\"mint\", \"dev\"] } }),\n hostFlag: null,\n defaultPort: 3000,\n },\n {\n name: \"Fern\",\n marker: (s) => (has(s.dir, \"fern\", \"fern.config.json\") ? \"fern/fern.config.json\" : null),\n runner: \"path\",\n commands: () => ({ start: { argv: [\"fern\", \"docs\", \"dev\"] } }),\n hostFlag: null,\n defaultPort: 3000,\n },\n {\n name: \"Starlight\",\n marker: dep(\"@astrojs/starlight\"),\n runner: \"node\",\n pkg: () => \"astro\",\n commands: () => node(\"astro\", \"dev\", \"build\", \"preview\"),\n hostFlag: \"--host\",\n defaultPort: 4321,\n },\n {\n name: \"Docusaurus\",\n marker: dep(\"@docusaurus/core\"),\n runner: \"node\",\n pkg: () => \"@docusaurus/core\",\n commands: () => ({\n start: { script: \"start\", argv: [\"docusaurus\", \"start\"] },\n build: { script: \"build\", argv: [\"docusaurus\", \"build\"] },\n preview: { script: \"serve\", argv: [\"docusaurus\", \"serve\"] },\n }),\n hostFlag: \"--host\",\n defaultPort: 3000,\n },\n {\n name: \"VitePress\",\n marker: dep(\"vitepress\"),\n runner: \"node\",\n pkg: () => \"vitepress\",\n commands: (s) =>\n node(\"vitepress\", \"docs:dev\", \"docs:build\", \"docs:preview\", (has(s.dir, \".vitepress\") || !has(s.dir, \"docs\", \".vitepress\")) ? [] : [\"docs\"]),\n hostFlag: \"--host\",\n defaultPort: 5173,\n },\n {\n name: \"Nextra\",\n marker: dep(\"nextra\"),\n runner: \"node\",\n pkg: () => \"next\",\n commands: next,\n hostFlag: \"--hostname\",\n defaultPort: 3000,\n },\n {\n name: \"Fumadocs\",\n marker: dep(\"fumadocs-core\"),\n runner: \"node\",\n pkg: () => \"next\",\n commands: next,\n hostFlag: \"--hostname\",\n defaultPort: 3000,\n },\n {\n name: \"Rspress\",\n marker: (s) => dep(\"rspress\")(s) ?? dep(\"@rspress/core\")(s),\n runner: \"node\",\n pkg: (s) => (s.deps.has(\"rspress\") ? \"rspress\" : \"@rspress/core\"),\n commands: () => node(\"rspress\", \"dev\", \"build\", \"preview\"),\n hostFlag: \"--host\",\n defaultPort: 3000,\n },\n {\n name: \"MkDocs\",\n marker: (s) => (has(s.dir, \"mkdocs.yml\") && zensical(s) === null ? \"mkdocs.yml\" : null),\n runner: \"python\",\n commands: () => ({ start: { argv: [\"mkdocs\", \"serve\"] }, build: { argv: [\"mkdocs\", \"build\"] }, out: \"site\" }),\n hostFlag: \"-a\",\n defaultPort: 8000,\n },\n {\n name: \"Zensical\",\n marker: zensical,\n runner: \"python\",\n commands: () => ({ start: { argv: [\"zensical\", \"serve\"] }, build: { argv: [\"zensical\", \"build\"] }, out: \"site\" }),\n hostFlag: \"-a\",\n defaultPort: 8000,\n },\n {\n name: \"Sphinx\",\n marker: (s) => (has(s.dir, \"conf.py\") ? \"conf.py\" : has(s.dir, \"source\", \"conf.py\") ? \"source/conf.py\" : null),\n runner: \"python\",\n commands: (s) => {\n const src = sphinxSource(s);\n return {\n start: { argv: [\"sphinx-autobuild\", src, posix.join(src, \"_build\", \"html\")] },\n build: { argv: [\"sphinx-build\", \"-M\", \"html\", src, posix.join(src, \"_build\")] },\n out: posix.join(src, \"_build\", \"html\"),\n };\n },\n hostFlag: \"--host\",\n defaultPort: 8000,\n },\n {\n name: \"Hugo\",\n marker: (s) => [\"hugo.toml\", \"hugo.yaml\", \"hugo.json\"].find((f) => has(s.dir, f)) ?? null,\n runner: \"path\",\n commands: () => ({ start: { argv: [\"hugo\", \"server\"] }, build: { argv: [\"hugo\"] }, out: \"public\" }),\n hostFlag: \"--bind\",\n defaultPort: 1313,\n },\n {\n name: \"Jekyll\",\n marker: (s) =>\n has(s.dir, \"_config.yml\") && /\\b(jekyll|github-pages)\\b/.test(read(join(s.dir, \"Gemfile\")))\n ? \"_config.yml\"\n : null,\n runner: \"ruby\",\n commands: () => ({ start: { argv: [\"jekyll\", \"serve\"] }, build: { argv: [\"jekyll\", \"build\"] }, out: \"_site\" }),\n hostFlag: \"--host\",\n defaultPort: 4000,\n },\n];\n\nconst LOCAL_HOSTS = new Set([\"localhost\", \"127.0.0.1\", \"[::1]\"]);\nconst STATIC_HOST = \"127.0.0.1\";\n// Only the name error messages show; discovery reads FAMILY_CONFIG_NAMES itself.\nconst CONFIG_NAME = FAMILY_CONFIG_NAMES[0] ?? \"manni.config.yaml\";\n\ntype PackageManager = \"npm\" | \"pnpm\" | \"yarn\" | \"bun\";\nconst LOCKFILES: [string, PackageManager][] = [\n [\"package-lock.json\", \"npm\"],\n [\"npm-shrinkwrap.json\", \"npm\"],\n [\"pnpm-lock.yaml\", \"pnpm\"],\n [\"yarn.lock\", \"yarn\"],\n [\"bun.lock\", \"bun\"],\n [\"bun.lockb\", \"bun\"],\n];\nconst EXEC: Record<PackageManager, string[]> = {\n npm: [\"npx\"],\n pnpm: [\"pnpm\", \"exec\"],\n yarn: [\"yarn\"],\n bun: [\"bun\", \"x\"],\n};\n\nfunction readPackageJson(dir: string): Record<string, unknown> | null {\n const text = read(join(dir, \"package.json\"));\n if (text === \"\") return null;\n try {\n const value: unknown = JSON.parse(text);\n return typeof value === \"object\" && value !== null ? (value as Record<string, unknown>) : null;\n } catch {\n return null;\n }\n}\n\nconst record = (value: unknown): Record<string, unknown> =>\n typeof value === \"object\" && value !== null ? (value as Record<string, unknown>) : {};\n\nfunction siteAt(dir: string): Site {\n const pkg = readPackageJson(dir);\n return {\n dir,\n scripts: record(pkg?.scripts),\n deps: new Set([...Object.keys(record(pkg?.dependencies)), ...Object.keys(record(pkg?.devDependencies))]),\n };\n}\n\n/** `packageManager:` from the nearest package.json carrying it, then the nearest lockfile, then npm. */\nfunction packageManager(dir: string): PackageManager {\n const chain = searchPath(dir);\n for (const d of chain) {\n const field = readPackageJson(d)?.packageManager;\n const name = typeof field === \"string\" ? field.split(\"@\")[0] : undefined;\n if (name !== undefined && Object.hasOwn(EXEC, name)) return name as PackageManager;\n }\n for (const d of chain) {\n const hit = LOCKFILES.find(([file]) => has(d, file));\n if (hit) return hit[1];\n }\n return \"npm\";\n}\n\nfunction pythonPrefix(dir: string): string[] {\n for (const d of searchPath(dir)) {\n if (has(d, \"uv.lock\")) return [\"uv\", \"run\"];\n if (has(d, \"poetry.lock\")) return [\"poetry\", \"run\"];\n }\n return [];\n}\n\nfunction isDirectory(path: string): boolean {\n try {\n return statSync(path).isDirectory();\n } catch {\n return false;\n }\n}\n\nfunction parsePort(raw: string): number {\n const port = /^\\d+$/.test(raw) ? Number(raw) : NaN;\n if (!(port >= 1 && port <= 65535)) {\n throw new SiteError(`--port must be an integer from 1 to 65535, got \"${raw}\".`);\n }\n return port;\n}\n\n/**\n * One argument for the shell an override runs in, so `-- --title \"My Docs\"`\n * stays one argument. Plain tokens pass unchanged.\n */\nfunction shellQuote(arg: string): string {\n if (/^[\\w@%+=:,./-]+$/.test(arg)) return arg;\n // cmd.exe doubles a quote inside quotes; POSIX closes, escapes and reopens.\n return process.platform === \"win32\" ? `\"${arg.replace(/\"/g, '\"\"')}\"` : `'${arg.replace(/'/g, \"'\\\\''\")}'`;\n}\n\nconst andList = (items: string[]): string =>\n items.length <= 1 ? items.join(\"\") : `${items.slice(0, -1).join(\", \")} and ${items.at(-1) ?? \"\"}`;\n\ninterface Address {\n host?: string;\n port?: number;\n base: string;\n}\n\n/** The host, port and path a local collection `url:` names, when they agree. */\nfunction collectionAddress(collections: CollectionConfig[], framework: string, portFlag: boolean): Address {\n const local = collections.flatMap((c) => {\n if (c.url === undefined) return [];\n const url = new URL(c.url);\n if (!LOCAL_HOSTS.has(url.hostname)) return [];\n const port = url.port === \"\" ? (url.protocol === \"https:\" ? 443 : 80) : Number(url.port);\n return [{ name: c.name, host: url.hostname.replace(/^\\[|\\]$/g, \"\"), port, base: url.pathname }];\n });\n const [first] = local;\n if (first === undefined) return { base: \"/\" };\n if (local.some((l) => l.host !== first.host || l.port !== first.port)) {\n if (!portFlag) {\n warn(\n `collections ${andList(local.map((l) => l.name))} name different local URLs. Using ${framework}'s default port; pass --port to pick one.`,\n );\n }\n return { base: \"/\" };\n }\n // Collections on one server are sections of one site: it mounts where they all live.\n return { ...first, base: sharedPath(local.map((l) => l.base)) };\n}\n\n/** The longest leading run of whole path segments every path shares, as `/a/b/`. */\nfunction sharedPath(paths: string[]): string {\n const split = paths.map((p) => p.split(\"/\").filter((s) => s !== \"\"));\n const [head = [], ...rest] = split;\n const shared: string[] = [];\n for (const [i, segment] of head.entries()) {\n if (!rest.every((p) => p[i] === segment)) break;\n shared.push(segment);\n }\n return shared.length === 0 ? \"/\" : `/${shared.join(\"/\")}/`;\n}\n\nfunction addressArgs(fw: Framework, host: string | undefined, port: number | undefined): string[] {\n if (fw.hostFlag === \"-a\") {\n if (host === undefined && port === undefined) return [];\n const h = host ?? STATIC_HOST;\n return [\"-a\", `${h.includes(\":\") ? `[${h}]` : h}:${String(port ?? fw.defaultPort)}`];\n }\n return [\n ...(host !== undefined && fw.hostFlag !== null ? [fw.hostFlag, host] : []),\n ...(port !== undefined ? [\"--port\", String(port)] : []),\n ];\n}\n\nexport function resolvePlan(verb: Verb, opts: ResolveOptions): Plan {\n const config = loadSiteConfig(opts.cwd, opts.configPath);\n const shown = (dir: string): string => {\n const rel = relative(opts.cwd, dir).replace(/\\\\/g, \"/\");\n return rel === \"\" ? \"./\" : `${rel}/`;\n };\n\n // The verb whose step takes --port and --host; `build` takes neither.\n const serving = verb === \"build\" ? null : verb;\n const flagPort = serving !== null && opts.port !== undefined ? parsePort(opts.port) : undefined;\n const flagHost = serving !== null ? opts.host : undefined;\n if (serving !== null && config.commands[serving] !== undefined) {\n if (flagPort !== undefined) {\n throw new SiteError(`--port does not apply to site.commands.${serving}. Put the port in that command.`);\n }\n if (flagHost !== undefined) {\n throw new SiteError(`--host does not apply to site.commands.${serving}. Put the host in that command.`);\n }\n }\n\n const needed: Verb[] = verb === \"preview\" ? [\"build\", \"preview\"] : [verb];\n const missing = needed.find((v) => config.commands[v] === undefined);\n const key = `site.commands.${missing ?? verb} in ${CONFIG_NAME}`;\n const setIt = `Set ${key}.`;\n\n // Find the site.\n let site: Site | undefined;\n const explicit = opts.dir !== undefined ? resolve(opts.cwd, opts.dir) : config.dir;\n if (explicit !== undefined) {\n if (!isDirectory(explicit)) throw new SiteError(`${shown(explicit)} does not exist.`);\n // Fern's site is the folder above `fern/`, wherever the user points.\n const dir = has(explicit, \"fern.config.json\") && !has(explicit, \"fern\", \"fern.config.json\") ? dirname(explicit) : explicit;\n site = siteAt(dir);\n } else {\n const base = config.configDir ?? resolve(opts.cwd);\n const candidates = [base, join(base, \"docs\"), join(base, \"website\"), join(base, \"site\")];\n for (const dir of candidates) {\n if (!isDirectory(dir)) continue;\n const candidate = siteAt(dir);\n if (FRAMEWORKS.some((fw) => fw.marker(candidate) !== null)) {\n site = candidate;\n break;\n }\n }\n if (site === undefined) {\n if (missing !== undefined) {\n const names = candidates.map(shown);\n throw new SiteError(\n `no docs site found in ${names.slice(0, -1).join(\", \")} or ${names.at(-1) ?? \"\"}. Pass the site's directory, or set ${key}.`,\n );\n }\n site = siteAt(base);\n }\n }\n const where = shown(site.dir);\n const found = site;\n\n // Which framework, only when some step needs one.\n const matches = FRAMEWORKS.flatMap((fw) => {\n const marker = fw.marker(found);\n return marker === null ? [] : [{ fw, marker }];\n });\n let fw: Framework | undefined;\n if (missing !== undefined) {\n if (matches.length === 0) throw new SiteError(`no docs framework detected in ${where}. ${setIt}`);\n if (matches.length > 1) {\n const list = matches.map((m) => `${m.fw.name} (${m.marker})`).join(\", \");\n throw new SiteError(`${where} holds more than one docs site: ${list}. ${setIt}`);\n }\n fw = matches[0]?.fw;\n }\n\n const steps = needed.map((v): PlannedStep => {\n const override = config.commands[v];\n const isServe = v === serving;\n // Passthrough goes to the verb's own step: the serve step, for preview.\n const extra = v === verb ? opts.passthrough : [];\n if (override !== undefined) {\n const command = [override, ...extra.map(shellQuote)].join(\" \");\n return {\n announce: `Running site.commands.${v} in ${where}: ${command}`,\n display: command,\n notFound: \"\",\n step: { kind: \"shell\", command, cwd: found.dir },\n };\n }\n if (fw === undefined) throw new SiteError(`no docs framework detected in ${where}. ${setIt}`);\n const cmds = fw.commands(found);\n const cmd = cmds[v];\n if (v === \"build\" && cmd === undefined) {\n throw new SiteError(`${fw.name} has no local build. Run manni site start, or set site.commands.build.`);\n }\n\n let address: Address = { base: \"/\" };\n if (isServe) {\n if (flagHost !== undefined && fw.hostFlag === null) {\n throw new SiteError(`${fw.name}'s dev server takes no host option. Drop --host.`);\n }\n // Always read the url: its path is the mount point even when both flags set host and port.\n const url = collectionAddress(config.collections, fw.name, flagPort !== undefined);\n address = { host: flagHost ?? url.host, port: flagPort ?? url.port, base: url.base };\n }\n\n if (cmd === undefined) {\n if (cmds.out === undefined) {\n throw new SiteError(`${fw.name} has no local preview. Run manni site start, or set site.commands.preview.`);\n }\n if (extra.length > 0) {\n throw new SiteError(`${fw.name} previews through manni's built-in server, which takes no extra arguments. Drop the arguments after --.`);\n }\n return {\n announce: \"\",\n display: \"\",\n notFound: \"\",\n step: {\n kind: \"static\",\n root: join(found.dir, cmds.out),\n host: address.host ?? STATIC_HOST,\n port: address.port ?? fw.defaultPort,\n base: address.base,\n },\n };\n }\n\n const flags = [...(isServe ? addressArgs(fw, address.host, address.port) : []), ...extra];\n let argv: string[];\n if (fw.runner === \"node\") {\n const pm = packageManager(found.dir);\n requireInstalled(fw, found, pm, where);\n argv =\n cmd.script !== undefined && cmd.script in found.scripts\n ? [pm, \"run\", cmd.script, ...(pm === \"npm\" && flags.length > 0 ? [\"--\"] : []), ...flags]\n : [...EXEC[pm], ...cmd.argv, ...flags];\n } else {\n const prefix = fw.runner === \"python\" ? pythonPrefix(found.dir) : fw.runner === \"ruby\" ? [\"bundle\", \"exec\"] : [];\n argv = [...prefix, ...cmd.argv, ...flags];\n }\n const display = argv.join(\" \");\n const bin = argv[0] ?? \"\";\n // A prefix manni added (npm, uv, bundle...) is its own install, not the framework's.\n const install = bin === cmd.argv[0] ? `${fw.name}'s CLI` : bin;\n return {\n announce: `${fw.name} in ${where}. Running ${display}`,\n display,\n notFound: `${bin} not found on PATH. Install ${install}, or set site.commands.${v}.`,\n step: { kind: \"exec\", argv, cwd: found.dir },\n };\n });\n return { steps };\n}\n\n/**\n * The framework's package must resolve from the site, as Node would find it.\n * ponytail: the walk stops at the git root, not the filesystem root, so a\n * package installed above the repository is reported missing. Widen it if\n * anyone keeps node_modules outside their checkout.\n */\nfunction requireInstalled(fw: Framework, site: Site, pm: PackageManager, where: string): void {\n const pkg = fw.pkg?.(site);\n if (pkg === undefined) return;\n const chain = searchPath(site.dir);\n if (chain.some((d) => has(d, \"node_modules\", pkg, \"package.json\"))) return;\n // Yarn Plug'n'Play keeps no node_modules; its loader resolves the package.\n if (chain.some((d) => has(d, \".pnp.cjs\") || has(d, \".pnp.js\"))) return;\n const npmLock = chain.some((d) => has(d, \"package-lock.json\") || has(d, \"npm-shrinkwrap.json\"));\n const install = pm === \"npm\" ? (npmLock ? \"npm ci\" : \"npm install\") : `${pm} install`;\n throw new SiteError(`${pkg} is not installed for ${where}. Run ${install} in ${where} first.`);\n}\n","import { ToolError } from \"../shared/errors.js\";\n\n/** An operational or usage error in the site domain: exit 2. */\nexport class SiteError extends ToolError {\n constructor(message: string) {\n super(message);\n this.name = \"SiteError\";\n }\n}\n","/**\n * The `site:` key of the family config file (`manni.config.yaml`). Finding\n * the file is the shared layer's job; what the section may hold is decided\n * here, with a11y's posture: an unknown key or a wrong type names the file and\n * the key, because a misspelled `comands:` silently ignored would run the\n * detected command instead of the one the user wrote.\n */\nimport { resolve } from \"node:path\";\nimport type { CollectionConfig } from \"../../shared/collections.js\";\nimport {\n findConfigFileSync,\n readConfigFileSync,\n type ConfigFileOptions,\n} from \"../../shared/config-file.js\";\nimport { SiteError } from \"../errors.js\";\nimport type { Verb } from \"../types.js\";\n\nexport interface SiteConfig {\n /** Absolute; `site.dir` resolved against the config file's directory. */\n dir?: string;\n commands: Partial<Record<Verb, string>>;\n /** The family file's `collections:`, for the local `url:` port and path. */\n collections: CollectionConfig[];\n /** Directory of the config file; `null` when none was found. */\n configDir: string | null;\n}\n\nconst SECTION = \"site\";\nconst CONFIG_KEYS = [\"dir\", \"commands\"] as const;\nconst COMMAND_KEYS = [\"start\", \"build\", \"preview\"] as const;\n\nconst CONFIG_FILE: ConfigFileOptions = {\n section: SECTION,\n legacyNames: [],\n toError: (message) => new SiteError(message),\n};\n\n/** Discover the config from `cwd`, or read `configPath` when given. */\nexport function loadSiteConfig(cwd: string, configPath?: string): SiteConfig {\n const file =\n configPath === undefined\n ? findConfigFileSync(cwd, CONFIG_FILE)\n : readConfigFileSync(configPath, cwd, CONFIG_FILE);\n if (file === null) return { commands: {}, collections: [], configDir: null };\n return {\n ...parseSiteConfig(file.value, file.source, file.dir),\n collections: file.collections,\n configDir: file.dir,\n };\n}\n\n/** Pure parser, exported for tests. */\nexport function parseSiteConfig(\n value: unknown,\n source: string,\n configDir: string,\n): Pick<SiteConfig, \"dir\" | \"commands\"> {\n const obj = asMapping(value, SECTION, CONFIG_KEYS, source);\n const config: Pick<SiteConfig, \"dir\" | \"commands\"> = { commands: {} };\n if (obj.dir !== undefined) {\n config.dir = resolve(configDir, asString(obj.dir, \"dir\", source));\n }\n const commands = asMapping(obj.commands, `${SECTION}.commands`, COMMAND_KEYS, source);\n for (const verb of COMMAND_KEYS) {\n const command = commands[verb];\n if (command !== undefined) {\n const line = asString(command, `commands.${verb}`, source);\n // A blank line runs as a shell no-op that exits 0: a build that never built.\n if (line.trim() === \"\") {\n throw new SiteError(`${source}: ${SECTION}.commands.${verb} must not be empty.`);\n }\n config.commands[verb] = line;\n }\n }\n return config;\n}\n\nfunction asMapping(\n value: unknown,\n name: string,\n keys: readonly string[],\n source: string,\n): Record<string, unknown> {\n if (value == null) return {};\n if (typeof value !== \"object\" || Array.isArray(value)) {\n throw new SiteError(`${source}: \\`${name}:\\` must be a mapping.`);\n }\n const obj = value as Record<string, unknown>;\n for (const key of Object.keys(obj)) {\n if (!keys.includes(key)) {\n throw new SiteError(\n `${source}: \\`${name}:\\` has unknown key \"${key}\". Supported keys: ${keys.join(\", \")}.`,\n );\n }\n }\n return obj;\n}\n\nfunction asString(value: unknown, key: string, source: string): string {\n if (typeof value !== \"string\") {\n throw new SiteError(`${source}: ${SECTION}.${key} must be a string.`);\n }\n return value;\n}\n","/**\n * The runner: carries out a `Plan` step by step, with the child's stdio\n * inherited so the framework's own output is the output. No timeout, because\n * the last step of `start` and `preview` is a server that runs until Ctrl-C.\n */\nimport { spawn, type ChildProcess } from \"node:child_process\";\nimport { accessSync, constants, statSync } from \"node:fs\";\nimport { delimiter, resolve } from \"node:path\";\nimport { launcherCommandLine } from \"../../shared/batch-launcher.js\";\nimport { notice } from \"../../shared/warn.js\";\nimport { SiteError } from \"../errors.js\";\nimport type { Plan, PlannedStep, Step } from \"../types.js\";\nimport { serveStatic } from \"./static-server.js\";\n\nfunction isExecutable(path: string): boolean {\n try {\n if (!statSync(path).isFile()) return false;\n if (process.platform !== \"win32\") accessSync(path, constants.X_OK);\n return true;\n } catch {\n return false;\n }\n}\n\n/**\n * Where `name` resolves, the way the OS would find it: a name with a separator\n * against `cwd`, a bare one along PATH. On Windows a name without one of\n * PATHEXT's extensions is tried with each in turn, so `npm` finds `npm.cmd`.\n */\nfunction findOnPath(name: string, cwd: string): string | undefined {\n const win = process.platform === \"win32\";\n const exts = win\n ? (process.env[\"PATHEXT\"] ?? \".COM;.EXE;.BAT;.CMD\").split(\";\").filter((e) => e !== \"\")\n : [];\n const lower = name.toLowerCase();\n const names =\n win && !exts.some((e) => lower.endsWith(e.toLowerCase())) ? exts.map((e) => name + e) : [name];\n const dirs = /[\\\\/]/.test(name)\n ? [cwd]\n : (process.env[\"PATH\"] ?? \"\").split(delimiter).filter((d) => d !== \"\");\n for (const dir of dirs) {\n for (const candidate of names) {\n const path = resolve(dir, candidate);\n if (isExecutable(path)) return path;\n }\n }\n return undefined;\n}\n\nfunction startExec(planned: PlannedStep, step: Extract<Step, { kind: \"exec\" }>): ChildProcess {\n const [name, ...args] = step.argv;\n const binary = name === undefined ? undefined : findOnPath(name, step.cwd);\n if (binary === undefined) throw new SiteError(planned.notFound);\n const line = launcherCommandLine(\n binary,\n args,\n (value) => new SiteError(`${planned.display} cannot be given an argument containing a quote: ${value}`),\n );\n return spawn(line.command, line.argv, {\n cwd: step.cwd,\n stdio: \"inherit\",\n windowsVerbatimArguments: line.verbatim,\n });\n}\n\nfunction exitOf(\n planned: PlannedStep,\n child: ChildProcess,\n): Promise<{ code: number | null; signal: NodeJS.Signals | null }> {\n return new Promise((settle, reject) => {\n child.once(\"error\", (err: NodeJS.ErrnoException) => {\n reject(\n err.code === \"ENOENT\"\n ? new SiteError(planned.notFound)\n : new SiteError(`${planned.display} could not start: ${err.message}`),\n );\n });\n child.once(\"exit\", (code, signal) => {\n settle({ code, signal });\n });\n });\n}\n\n/**\n * One step; resolves true when the user stopped it. While any step runs this\n * process ignores SIGINT itself (the terminal delivers Ctrl-C to the whole\n * process group, child included) and forwards SIGTERM, which reaches this\n * process alone, so a cancelled build is not left running. An exit after\n * either is a stop the user asked for, so it is not a failure whatever code\n * the child chose. Otherwise the step must exit 0.\n */\nasync function runStep(planned: PlannedStep): Promise<boolean> {\n const { step } = planned;\n if (step.kind === \"static\") {\n await serveStatic(step);\n return true;\n }\n const child =\n step.kind === \"exec\"\n ? startExec(planned, step)\n : spawn(step.command, { cwd: step.cwd, stdio: \"inherit\", shell: true });\n // An object, not a `let`: TypeScript cannot see the handlers assign it.\n const signal = { received: false };\n const onInt = (): void => {\n signal.received = true;\n };\n const onTerm = (): void => {\n signal.received = true;\n child.kill(\"SIGTERM\");\n };\n process.on(\"SIGINT\", onInt);\n process.on(\"SIGTERM\", onTerm);\n try {\n const exit = await exitOf(planned, child);\n if (signal.received) return true;\n if (exit.code === 0) return false;\n throw new SiteError(\n exit.code === null\n ? `${planned.display} was stopped by ${String(exit.signal)}.`\n : `${planned.display} exited with code ${String(exit.code)}.`,\n );\n } finally {\n process.off(\"SIGINT\", onInt);\n process.off(\"SIGTERM\", onTerm);\n }\n}\n\n/** Run every step in order. Resolves the exit code, 0; a failure throws `SiteError`. */\nexport async function runPlan(plan: Plan): Promise<number> {\n for (const planned of plan.steps) {\n if (planned.announce !== \"\") notice(planned.announce);\n // A stop during the build ends the run there: nothing is served.\n if (await runStep(planned)) break;\n }\n return 0;\n}\n","/**\n * The built-in static server `manni site preview` uses for frameworks whose\n * own CLI has no preview (MkDocs, Zensical, Sphinx, Hugo, Jekyll). It serves a\n * build output directory, mounted at the collection `url:` path, until the\n * process is stopped. `node:http` and `node:fs` only.\n */\nimport { createReadStream } from \"node:fs\";\nimport { stat } from \"node:fs/promises\";\nimport { createServer, type IncomingMessage, type Server, type ServerResponse } from \"node:http\";\nimport type { AddressInfo } from \"node:net\";\nimport { extname, join, relative, resolve, sep } from \"node:path\";\nimport { errorMessage } from \"../../shared/errors.js\";\nimport { SiteError } from \"../errors.js\";\n\nexport interface StaticOptions {\n root: string;\n host: string;\n port: number;\n /** The URL path the root is mounted at, e.g. `/manni/`. */\n base: string;\n}\n\n// ponytail: the types a static docs build ships. Anything else goes out as\n// application/octet-stream; add a row when a site needs one.\nconst MIME: Record<string, string> = {\n \".html\": \"text/html; charset=utf-8\",\n \".css\": \"text/css; charset=utf-8\",\n \".js\": \"text/javascript; charset=utf-8\",\n \".mjs\": \"text/javascript; charset=utf-8\",\n \".json\": \"application/json; charset=utf-8\",\n \".map\": \"application/json; charset=utf-8\",\n \".txt\": \"text/plain; charset=utf-8\",\n \".xml\": \"application/xml; charset=utf-8\",\n \".svg\": \"image/svg+xml\",\n \".png\": \"image/png\",\n \".jpg\": \"image/jpeg\",\n \".jpeg\": \"image/jpeg\",\n \".gif\": \"image/gif\",\n \".webp\": \"image/webp\",\n \".avif\": \"image/avif\",\n \".ico\": \"image/x-icon\",\n \".woff\": \"font/woff\",\n \".woff2\": \"font/woff2\",\n \".ttf\": \"font/ttf\",\n \".wasm\": \"application/wasm\",\n \".pdf\": \"application/pdf\",\n \".webmanifest\": \"application/manifest+json\",\n};\n\n/** `/manni/` from `manni`, `/manni` or `/manni/`; `/` from `/` or empty. */\nfunction normalizeBase(base: string): string {\n const trimmed = base.replace(/^\\/+|\\/+$/g, \"\");\n return trimmed === \"\" ? \"/\" : `/${trimmed}/`;\n}\n\nasync function kindOf(path: string): Promise<\"file\" | \"dir\" | undefined> {\n try {\n const s = await stat(path);\n if (s.isDirectory()) return \"dir\";\n return s.isFile() ? \"file\" : undefined;\n } catch {\n return undefined;\n }\n}\n\nfunction sendFile(req: IncomingMessage, res: ServerResponse, path: string, status = 200): void {\n res.writeHead(status, {\n \"content-type\": MIME[extname(path).toLowerCase()] ?? \"application/octet-stream\",\n });\n if (req.method === \"HEAD\") {\n res.end();\n return;\n }\n createReadStream(path)\n .on(\"error\", () => res.destroy())\n .pipe(res);\n}\n\nfunction redirect(res: ServerResponse, status: 301 | 302, location: string): void {\n res.writeHead(status, { location });\n res.end();\n}\n\n/**\n * The file inside `root` a URL path below the base names, or undefined when it\n * names nothing inside it. The URL parser has already collapsed `..` and\n * `%2e%2e` segments; what it leaves are encoded separators (`..%2f`, `..%5c`),\n * so the decoded path is checked for `..` segments and then for containment.\n * Both layers are needed: the parser normalises before it decodes, so a `..`\n * hidden behind an encoded separator only appears after this decode.\n */\nfunction inside(root: string, rest: string): string | undefined {\n let decoded: string;\n try {\n decoded = decodeURIComponent(rest);\n } catch {\n return undefined;\n }\n if (decoded.includes(\"\\0\") || decoded.split(/[\\\\/]/).includes(\"..\")) return undefined;\n const path = resolve(root, `.${sep}${decoded}`);\n return path === root || path.startsWith(root + sep) ? path : undefined;\n}\n\nfunction handler(root: string, base: string) {\n const notFound = join(root, \"404.html\");\n return async (req: IncomingMessage, res: ServerResponse): Promise<void> => {\n if (req.method !== \"GET\" && req.method !== \"HEAD\") {\n res.writeHead(405, { allow: \"GET, HEAD\" });\n res.end();\n return;\n }\n const url = new URL(req.url ?? \"/\", \"http://localhost\");\n const { pathname } = url;\n if (base !== \"/\" && (pathname === \"/\" || pathname === base.slice(0, -1))) {\n redirect(res, pathname === \"/\" ? 302 : 301, `${base}${url.search}`);\n return;\n }\n const path = pathname.startsWith(base) ? inside(root, pathname.slice(base.length)) : undefined;\n const kind = path === undefined ? undefined : await kindOf(path);\n if (path !== undefined && kind === \"dir\" && !pathname.endsWith(\"/\")) {\n redirect(res, 301, `${pathname}/${url.search}`);\n return;\n }\n const file = path !== undefined && kind === \"dir\" ? join(path, \"index.html\") : path;\n if (file !== undefined && (await kindOf(file)) === \"file\") {\n sendFile(req, res, file);\n } else if ((await kindOf(notFound)) === \"file\") {\n sendFile(req, res, notFound, 404);\n } else {\n res.writeHead(404, { \"content-type\": \"text/plain; charset=utf-8\" });\n res.end(\"Not found\\n\");\n }\n };\n}\n\nfunction urlOf(host: string, port: number, base: string): string {\n const shown = host.includes(\":\") ? `[${host}]` : host;\n return `http://${shown}:${String(port)}${base}`;\n}\n\n/**\n * Serve `root` at `base` on `host:port` and print the URL to stdout once\n * listening. Resolves with the listening server; the caller closes it.\n */\nexport async function startStaticServer(opts: StaticOptions): Promise<Server> {\n const root = resolve(opts.root);\n if ((await kindOf(root)) !== \"dir\") {\n const shown = relative(process.cwd(), root).split(sep).join(\"/\") || \".\";\n throw new SiteError(`${shown}/ does not exist.`);\n }\n const base = normalizeBase(opts.base);\n const handle = handler(root, base);\n const server = createServer((req, res) => {\n handle(req, res).catch(() => res.destroy());\n });\n await new Promise<void>((settle, reject) => {\n server.once(\"error\", (err: NodeJS.ErrnoException) => {\n reject(\n new SiteError(\n err.code === \"EADDRINUSE\"\n ? `port ${String(opts.port)} is in use. Pass --port, or stop the process holding it.`\n : `cannot listen on ${urlOf(opts.host, opts.port, \"\")}: ${errorMessage(err)}`,\n ),\n );\n });\n server.listen(opts.port, opts.host, settle);\n });\n const { port } = server.address() as AddressInfo;\n process.stdout.write(`${urlOf(opts.host, port, base)}\\n`);\n return server;\n}\n\n/** Serve until SIGINT or SIGTERM, then close the server and resolve. */\nexport async function serveStatic(opts: StaticOptions): Promise<void> {\n const server = await startStaticServer(opts);\n await new Promise<void>((settle) => {\n const stop = (): void => {\n process.off(\"SIGINT\", stop);\n process.off(\"SIGTERM\", stop);\n server.close(() => {\n settle();\n });\n server.closeAllConnections();\n };\n process.on(\"SIGINT\", stop);\n process.on(\"SIGTERM\", stop);\n });\n}\n","/**\n * The one command core behind `start`, `build` and `preview`: resolve the\n * verb to a plan, then run it. The three verbs differ only in the plan, which\n * `resolvePlan` owns, so they share this core rather than three copies of it.\n */\nimport { resolvePlan, type ResolveOptions } from \"../core/detect.js\";\nimport { runPlan } from \"../core/run.js\";\nimport type { Verb } from \"../types.js\";\n\n/** Resolves the exit code, 0; anything operational throws `SiteError`. */\nexport async function runSite(verb: Verb, opts: ResolveOptions): Promise<number> {\n return runPlan(resolvePlan(verb, opts));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,SAAS,eAAe;;;ACJxB,SAAS,YAAY,aAAa,cAAc,gBAAgB;AAChE,SAAS,SAAS,MAAM,OAAO,UAAU,WAAAA,gBAAe;;;ACJjD,IAAM,YAAN,cAAwB,UAAU;AAAA,EACvC,YAAY,SAAiB;AAC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aAAK,GAAG;AAAA,MACV;AAAA,IACF,CAAC;AAAA,EACL;AAEA,OAAK,SAAS,uCAAuC,IAAI;AACzD,OAAK,SAAS,uBAAuB,KAAK;AAC1C,OAAK,WAAW,8CAA8C,IAAI;AAElE,UAAQ;AAAA,IACN;AAAA,IACA;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF,EAAE,KAAK,IAAI;AAAA,EACb;AAEA,SAAO;AACT;","names":["resolve","resolve","fw","statSync","resolve","join","relative","resolve","resolve","join","relative","statSync","resolve"]}
|
package/dist/github-ICZ5UDGX.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
NAMES_ITS_SUBJECT,
|
|
4
|
-
findingMessage,
|
|
5
|
-
renderCheckGithub
|
|
6
|
-
} from "./chunk-BMYCLTFK.js";
|
|
7
|
-
import "./chunk-NDBISART.js";
|
|
8
|
-
import "./chunk-2XRET3ZG.js";
|
|
9
|
-
import "./chunk-7GB3KEEM.js";
|
|
10
|
-
import "./chunk-IKEWBMCN.js";
|
|
11
|
-
import "./chunk-YUTVAMWW.js";
|
|
12
|
-
import "./chunk-L3YGGYBG.js";
|
|
13
|
-
import "./chunk-EZCJPF72.js";
|
|
14
|
-
import "./chunk-OJ7FEM2G.js";
|
|
15
|
-
import "./chunk-O6YTTBSN.js";
|
|
16
|
-
import "./chunk-6NTNLKNQ.js";
|
|
17
|
-
import "./chunk-D4ANAOY7.js";
|
|
18
|
-
import "./chunk-3GLDB7MZ.js";
|
|
19
|
-
import "./chunk-DSWKBZWW.js";
|
|
20
|
-
import "./chunk-WD33LE5A.js";
|
|
21
|
-
import "./chunk-QK6VYJHV.js";
|
|
22
|
-
import "./chunk-RNVYGWIC.js";
|
|
23
|
-
import "./chunk-YEUYKR62.js";
|
|
24
|
-
import "./chunk-B2242FYO.js";
|
|
25
|
-
import "./chunk-HX44GB4Z.js";
|
|
26
|
-
import "./chunk-VM7VAFJW.js";
|
|
27
|
-
import "./chunk-5OOQ3HQ3.js";
|
|
28
|
-
import "./chunk-OWBRDNRZ.js";
|
|
29
|
-
import "./chunk-G3T47CFV.js";
|
|
30
|
-
import "./chunk-2H7UOFLK.js";
|
|
31
|
-
export {
|
|
32
|
-
NAMES_ITS_SUBJECT,
|
|
33
|
-
findingMessage,
|
|
34
|
-
renderCheckGithub
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=github-ICZ5UDGX.js.map
|
package/dist/sarif-UVAFWZKS.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
ENTRY_LABEL,
|
|
4
|
-
renderCheckSarif,
|
|
5
|
-
withFindingMessages
|
|
6
|
-
} from "./chunk-6YFEV7CM.js";
|
|
7
|
-
import "./chunk-BMYCLTFK.js";
|
|
8
|
-
import "./chunk-NDBISART.js";
|
|
9
|
-
import "./chunk-2XRET3ZG.js";
|
|
10
|
-
import "./chunk-7GB3KEEM.js";
|
|
11
|
-
import "./chunk-IKEWBMCN.js";
|
|
12
|
-
import "./chunk-YUTVAMWW.js";
|
|
13
|
-
import "./chunk-L3YGGYBG.js";
|
|
14
|
-
import "./chunk-EZCJPF72.js";
|
|
15
|
-
import "./chunk-OJ7FEM2G.js";
|
|
16
|
-
import "./chunk-O6YTTBSN.js";
|
|
17
|
-
import "./chunk-6NTNLKNQ.js";
|
|
18
|
-
import "./chunk-D4ANAOY7.js";
|
|
19
|
-
import "./chunk-3GLDB7MZ.js";
|
|
20
|
-
import "./chunk-DSWKBZWW.js";
|
|
21
|
-
import "./chunk-WD33LE5A.js";
|
|
22
|
-
import "./chunk-QK6VYJHV.js";
|
|
23
|
-
import "./chunk-RNVYGWIC.js";
|
|
24
|
-
import "./chunk-YEUYKR62.js";
|
|
25
|
-
import "./chunk-B2242FYO.js";
|
|
26
|
-
import "./chunk-HX44GB4Z.js";
|
|
27
|
-
import "./chunk-VM7VAFJW.js";
|
|
28
|
-
import "./chunk-5OOQ3HQ3.js";
|
|
29
|
-
import "./chunk-OWBRDNRZ.js";
|
|
30
|
-
import "./chunk-G3T47CFV.js";
|
|
31
|
-
import "./chunk-2H7UOFLK.js";
|
|
32
|
-
export {
|
|
33
|
-
ENTRY_LABEL,
|
|
34
|
-
renderCheckSarif,
|
|
35
|
-
withFindingMessages
|
|
36
|
-
};
|
|
37
|
-
//# sourceMappingURL=sarif-UVAFWZKS.js.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|