@hawkeyexl/manni 4.12.4 → 4.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{batch-UHLVBMYM.js → batch-OB2FXT47.js} +12 -12
- package/dist/{build-4RPXBSAO.js → build-4BL24BG3.js} +13 -13
- package/dist/{calibrate-POL5DCJ6.js → calibrate-AEDJ7N7G.js} +13 -13
- package/dist/{capture-I7ZYG7NZ.js → capture-TP3P4YNL.js} +12 -12
- package/dist/{check-6TEG5TM6.js → check-5IYH42KS.js} +14 -14
- package/dist/{check-3O2PZ7TZ.js → check-LU5YC3L4.js} +12 -12
- package/dist/{check-V7JUDAPS.js → check-NBN2YK2J.js} +13 -13
- package/dist/{check-DGOUTC3V.js → check-S55MH66H.js} +11 -11
- package/dist/{chunk-6KONPVHQ.js → chunk-3BVDFQ6Y.js} +2 -2
- package/dist/{chunk-JAPSZ44X.js → chunk-3HUCB4Z3.js} +4 -4
- package/dist/{chunk-LWMB7JRE.js → chunk-3O6U4ICM.js} +2 -2
- package/dist/{chunk-3QUCVYNX.js → chunk-3XGTNN3M.js} +3 -3
- package/dist/{chunk-AATCO43N.js → chunk-52WO7ESI.js} +3 -3
- package/dist/{chunk-TBAMBLF3.js → chunk-6ZFJWUUH.js} +132 -15
- package/dist/chunk-6ZFJWUUH.js.map +1 -0
- package/dist/{chunk-7TVIFCGT.js → chunk-7JPL3CUC.js} +2 -2
- package/dist/{chunk-RLPWXF5R.js → chunk-7RNONVHI.js} +6 -6
- package/dist/{chunk-WWKXPPN5.js → chunk-BMBAAPGN.js} +3 -3
- package/dist/{chunk-BGRP44SX.js → chunk-BQXY76JB.js} +4 -4
- package/dist/{chunk-N5JSOJY6.js → chunk-CODWRUAD.js} +2 -2
- package/dist/{chunk-5OKSFNUV.js → chunk-DQOM3DEU.js} +5 -5
- package/dist/{chunk-QUG53QGZ.js → chunk-E6BVUDGY.js} +3 -3
- package/dist/{chunk-PSPNIAOP.js → chunk-EQ7E6HMG.js} +8 -8
- package/dist/{chunk-7JUIJ7Q5.js → chunk-GWI6JPTT.js} +3 -3
- package/dist/{chunk-VXU75N5R.js → chunk-HIEGOW7X.js} +3 -3
- package/dist/{chunk-GNUZ37L2.js → chunk-HKTGHLBA.js} +2 -2
- package/dist/{chunk-GNUZ37L2.js.map → chunk-HKTGHLBA.js.map} +1 -1
- package/dist/{chunk-Y4TDIUG6.js → chunk-HY6ROJTH.js} +2 -2
- package/dist/{chunk-PP22XDW2.js → chunk-IGQMBHFY.js} +6 -6
- package/dist/{chunk-J4ZOTZII.js → chunk-J5NOWIJ3.js} +6 -6
- package/dist/{chunk-XEYS3KAZ.js → chunk-JUL2PRQN.js} +4 -4
- package/dist/{chunk-NLELGEKL.js → chunk-KE2F7QES.js} +5 -5
- package/dist/{chunk-EBZ4QKKX.js → chunk-LNGSE7V2.js} +2 -2
- package/dist/{chunk-EU4HDGG4.js → chunk-LSFXNAHU.js} +7 -7
- package/dist/{chunk-SSDSV52B.js → chunk-N6A6DJUO.js} +4 -4
- package/dist/{chunk-Z42MO7SO.js → chunk-NSAW7U42.js} +2 -2
- package/dist/{chunk-KRKNZ3IV.js → chunk-NTEYYYKL.js} +34 -10
- package/dist/chunk-NTEYYYKL.js.map +1 -0
- package/dist/{chunk-7QH2ZI4F.js → chunk-NWUXRV6N.js} +52 -27
- package/dist/chunk-NWUXRV6N.js.map +1 -0
- package/dist/{chunk-QWE3WLV4.js → chunk-OBXCJZ6R.js} +5 -5
- package/dist/{chunk-VFL3ERMI.js → chunk-OREHJQNN.js} +2 -2
- package/dist/{chunk-DTXLFSAB.js → chunk-OUAH7XF2.js} +2 -2
- package/dist/{chunk-ZCJUSQM7.js → chunk-OYIWF3B2.js} +10 -10
- package/dist/{chunk-HP43LH7E.js → chunk-PA7CMQGD.js} +2 -2
- package/dist/{chunk-5NNPEPVM.js → chunk-PCGBXHSE.js} +3 -3
- package/dist/{chunk-TR2XFZPR.js → chunk-QKT67PFE.js} +3 -3
- package/dist/{chunk-YGFIQ6Y5.js → chunk-SCLXVTFZ.js} +1 -1
- package/dist/{chunk-YGFIQ6Y5.js.map → chunk-SCLXVTFZ.js.map} +1 -1
- package/dist/{chunk-PNUM6RHR.js → chunk-TDCOKKMI.js} +3 -3
- package/dist/{chunk-X4GQ4HPY.js → chunk-TQ3W6RKG.js} +2 -2
- package/dist/{chunk-EX6E2P6Z.js → chunk-ULDV2LUI.js} +2 -2
- package/dist/{chunk-XP4RNQZL.js → chunk-UQMLCIRX.js} +242 -15
- package/dist/chunk-UQMLCIRX.js.map +1 -0
- package/dist/{chunk-KQRYW4DN.js → chunk-VNYXK7TM.js} +3 -3
- package/dist/{chunk-3FXPIZXL.js → chunk-VOXOBUTX.js} +2 -2
- package/dist/{chunk-4IW6FAUN.js → chunk-VYBYUQIP.js} +7 -7
- package/dist/{chunk-4TGIGVFO.js → chunk-WVXCN5DS.js} +4 -4
- package/dist/{chunk-J67EOBN3.js → chunk-X4MPUD4B.js} +3 -3
- package/dist/{chunk-W7EZJPRX.js → chunk-Y6M4JFKG.js} +3 -3
- package/dist/{chunk-U4SY2TJS.js → chunk-YZ4TJLZQ.js} +7 -7
- package/dist/{cli-USPQURPP.js → cli-4JHQCPHU.js} +2 -2
- package/dist/{cli-UL2IFH3R.js → cli-7DETHSNW.js} +15 -15
- package/dist/{cli-4ANSKDPD.js → cli-AZKWTCFV.js} +9 -9
- package/dist/{cli-2OQKCKRD.js → cli-BW5VOFOZ.js} +8 -8
- package/dist/{cli-5QGP6R63.js → cli-DGFLJ2DD.js} +2 -2
- package/dist/{cli-SDTXHLCA.js → cli-ECVT4YXR.js} +16 -16
- package/dist/{cli-IE3CYYHA.js → cli-G66X7YMP.js} +54 -15
- package/dist/cli-G66X7YMP.js.map +1 -0
- package/dist/{cli-2Q5FODAX.js → cli-H5LVGOVT.js} +31 -31
- package/dist/{cli-RQRMZKKM.js → cli-KYTCJYXK.js} +16 -16
- package/dist/{cli-SGSS6FXE.js → cli-L5B2RVV2.js} +19 -19
- package/dist/{cli-RQSCBJJY.js → cli-RP5E7XHC.js} +13 -13
- package/dist/cli.js +14 -14
- package/dist/docmeta.js +8 -8
- package/dist/{github-PBIYRH5S.js → github-DJQ4MWNZ.js} +13 -13
- package/dist/{github-RJG2MAWB.js → github-UWTDM2J2.js} +11 -11
- package/dist/index.d.ts +76 -4
- package/dist/index.js +47 -37
- package/dist/index.js.map +1 -1
- package/dist/{json-PQURAHQ5.js → json-LCVPMEAM.js} +11 -11
- package/dist/{labels-FMLO2URZ.js → labels-OQXBVM4A.js} +10 -10
- package/dist/{lint-N2CY66JX.js → lint-O7XRHKFP.js} +13 -13
- package/dist/{list-VBFNFEXV.js → list-OOOCLOAL.js} +11 -11
- package/dist/{list-OMHTVFDY.js → list-OYQ5XPN2.js} +11 -11
- package/dist/{page-X3HYSH6D.js → page-XPX5XJZE.js} +10 -10
- package/dist/{prepare-IQMB262G.js → prepare-VMBIQYAM.js} +11 -11
- package/dist/{pretty-22PXIEOV.js → pretty-KG6TMOEI.js} +12 -12
- package/dist/{pretty-K5BOCKBB.js → pretty-KSTZMBUF.js} +11 -11
- package/dist/{reporters-324OWH36.js → reporters-AQU4W3KY.js} +4 -4
- package/dist/{reporters-5LIYYE6M.js → reporters-FBYLPKD4.js} +12 -12
- package/dist/{run-4EKG6EMI.js → run-KUGTU3TT.js} +11 -11
- package/dist/{term-2ADSKGZW.js → term-SI3VM6EM.js} +15 -15
- package/dist/{validate-LRYUEZLJ.js → validate-NQO7TFSN.js} +5 -5
- package/package.json +1 -1
- package/plugin/manni/.claude-plugin/plugin.json +1 -1
- package/plugin/manni/skills/fix/SKILL.md +4 -2
- package/schemas/lint/template.json +6 -1
- package/templates/lint/tgdp/concept.yaml +27 -13
- package/templates/lint/tgdp/how-to.yaml +35 -21
- package/templates/lint/tgdp/readme.yaml +69 -25
- package/templates/lint/tgdp/reference.yaml +44 -31
- package/templates/lint/tgdp/release-notes.yaml +48 -19
- package/templates/lint/tgdp/troubleshooting.yaml +45 -31
- package/templates/lint/tgdp/tutorial.yaml +35 -19
- package/dist/chunk-7QH2ZI4F.js.map +0 -1
- package/dist/chunk-KRKNZ3IV.js.map +0 -1
- package/dist/chunk-TBAMBLF3.js.map +0 -1
- package/dist/chunk-XP4RNQZL.js.map +0 -1
- package/dist/cli-IE3CYYHA.js.map +0 -1
- /package/dist/{batch-UHLVBMYM.js.map → batch-OB2FXT47.js.map} +0 -0
- /package/dist/{build-4RPXBSAO.js.map → build-4BL24BG3.js.map} +0 -0
- /package/dist/{calibrate-POL5DCJ6.js.map → calibrate-AEDJ7N7G.js.map} +0 -0
- /package/dist/{capture-I7ZYG7NZ.js.map → capture-TP3P4YNL.js.map} +0 -0
- /package/dist/{check-3O2PZ7TZ.js.map → check-5IYH42KS.js.map} +0 -0
- /package/dist/{check-6TEG5TM6.js.map → check-LU5YC3L4.js.map} +0 -0
- /package/dist/{check-V7JUDAPS.js.map → check-NBN2YK2J.js.map} +0 -0
- /package/dist/{check-DGOUTC3V.js.map → check-S55MH66H.js.map} +0 -0
- /package/dist/{chunk-6KONPVHQ.js.map → chunk-3BVDFQ6Y.js.map} +0 -0
- /package/dist/{chunk-JAPSZ44X.js.map → chunk-3HUCB4Z3.js.map} +0 -0
- /package/dist/{chunk-LWMB7JRE.js.map → chunk-3O6U4ICM.js.map} +0 -0
- /package/dist/{chunk-3QUCVYNX.js.map → chunk-3XGTNN3M.js.map} +0 -0
- /package/dist/{chunk-AATCO43N.js.map → chunk-52WO7ESI.js.map} +0 -0
- /package/dist/{chunk-7TVIFCGT.js.map → chunk-7JPL3CUC.js.map} +0 -0
- /package/dist/{chunk-RLPWXF5R.js.map → chunk-7RNONVHI.js.map} +0 -0
- /package/dist/{chunk-WWKXPPN5.js.map → chunk-BMBAAPGN.js.map} +0 -0
- /package/dist/{chunk-BGRP44SX.js.map → chunk-BQXY76JB.js.map} +0 -0
- /package/dist/{chunk-N5JSOJY6.js.map → chunk-CODWRUAD.js.map} +0 -0
- /package/dist/{chunk-5OKSFNUV.js.map → chunk-DQOM3DEU.js.map} +0 -0
- /package/dist/{chunk-QUG53QGZ.js.map → chunk-E6BVUDGY.js.map} +0 -0
- /package/dist/{chunk-PSPNIAOP.js.map → chunk-EQ7E6HMG.js.map} +0 -0
- /package/dist/{chunk-7JUIJ7Q5.js.map → chunk-GWI6JPTT.js.map} +0 -0
- /package/dist/{chunk-VXU75N5R.js.map → chunk-HIEGOW7X.js.map} +0 -0
- /package/dist/{chunk-Y4TDIUG6.js.map → chunk-HY6ROJTH.js.map} +0 -0
- /package/dist/{chunk-PP22XDW2.js.map → chunk-IGQMBHFY.js.map} +0 -0
- /package/dist/{chunk-J4ZOTZII.js.map → chunk-J5NOWIJ3.js.map} +0 -0
- /package/dist/{chunk-XEYS3KAZ.js.map → chunk-JUL2PRQN.js.map} +0 -0
- /package/dist/{chunk-NLELGEKL.js.map → chunk-KE2F7QES.js.map} +0 -0
- /package/dist/{chunk-EBZ4QKKX.js.map → chunk-LNGSE7V2.js.map} +0 -0
- /package/dist/{chunk-EU4HDGG4.js.map → chunk-LSFXNAHU.js.map} +0 -0
- /package/dist/{chunk-SSDSV52B.js.map → chunk-N6A6DJUO.js.map} +0 -0
- /package/dist/{chunk-Z42MO7SO.js.map → chunk-NSAW7U42.js.map} +0 -0
- /package/dist/{chunk-QWE3WLV4.js.map → chunk-OBXCJZ6R.js.map} +0 -0
- /package/dist/{chunk-VFL3ERMI.js.map → chunk-OREHJQNN.js.map} +0 -0
- /package/dist/{chunk-DTXLFSAB.js.map → chunk-OUAH7XF2.js.map} +0 -0
- /package/dist/{chunk-ZCJUSQM7.js.map → chunk-OYIWF3B2.js.map} +0 -0
- /package/dist/{chunk-HP43LH7E.js.map → chunk-PA7CMQGD.js.map} +0 -0
- /package/dist/{chunk-5NNPEPVM.js.map → chunk-PCGBXHSE.js.map} +0 -0
- /package/dist/{chunk-TR2XFZPR.js.map → chunk-QKT67PFE.js.map} +0 -0
- /package/dist/{chunk-PNUM6RHR.js.map → chunk-TDCOKKMI.js.map} +0 -0
- /package/dist/{chunk-X4GQ4HPY.js.map → chunk-TQ3W6RKG.js.map} +0 -0
- /package/dist/{chunk-EX6E2P6Z.js.map → chunk-ULDV2LUI.js.map} +0 -0
- /package/dist/{chunk-KQRYW4DN.js.map → chunk-VNYXK7TM.js.map} +0 -0
- /package/dist/{chunk-3FXPIZXL.js.map → chunk-VOXOBUTX.js.map} +0 -0
- /package/dist/{chunk-4IW6FAUN.js.map → chunk-VYBYUQIP.js.map} +0 -0
- /package/dist/{chunk-4TGIGVFO.js.map → chunk-WVXCN5DS.js.map} +0 -0
- /package/dist/{chunk-J67EOBN3.js.map → chunk-X4MPUD4B.js.map} +0 -0
- /package/dist/{chunk-W7EZJPRX.js.map → chunk-Y6M4JFKG.js.map} +0 -0
- /package/dist/{chunk-U4SY2TJS.js.map → chunk-YZ4TJLZQ.js.map} +0 -0
- /package/dist/{cli-USPQURPP.js.map → cli-4JHQCPHU.js.map} +0 -0
- /package/dist/{cli-UL2IFH3R.js.map → cli-7DETHSNW.js.map} +0 -0
- /package/dist/{cli-4ANSKDPD.js.map → cli-AZKWTCFV.js.map} +0 -0
- /package/dist/{cli-2OQKCKRD.js.map → cli-BW5VOFOZ.js.map} +0 -0
- /package/dist/{cli-5QGP6R63.js.map → cli-DGFLJ2DD.js.map} +0 -0
- /package/dist/{cli-SDTXHLCA.js.map → cli-ECVT4YXR.js.map} +0 -0
- /package/dist/{cli-2Q5FODAX.js.map → cli-H5LVGOVT.js.map} +0 -0
- /package/dist/{cli-RQRMZKKM.js.map → cli-KYTCJYXK.js.map} +0 -0
- /package/dist/{cli-SGSS6FXE.js.map → cli-L5B2RVV2.js.map} +0 -0
- /package/dist/{cli-RQSCBJJY.js.map → cli-RP5E7XHC.js.map} +0 -0
- /package/dist/{github-PBIYRH5S.js.map → github-DJQ4MWNZ.js.map} +0 -0
- /package/dist/{github-RJG2MAWB.js.map → github-UWTDM2J2.js.map} +0 -0
- /package/dist/{json-PQURAHQ5.js.map → json-LCVPMEAM.js.map} +0 -0
- /package/dist/{labels-FMLO2URZ.js.map → labels-OQXBVM4A.js.map} +0 -0
- /package/dist/{lint-N2CY66JX.js.map → lint-O7XRHKFP.js.map} +0 -0
- /package/dist/{list-OMHTVFDY.js.map → list-OOOCLOAL.js.map} +0 -0
- /package/dist/{list-VBFNFEXV.js.map → list-OYQ5XPN2.js.map} +0 -0
- /package/dist/{page-X3HYSH6D.js.map → page-XPX5XJZE.js.map} +0 -0
- /package/dist/{prepare-IQMB262G.js.map → prepare-VMBIQYAM.js.map} +0 -0
- /package/dist/{pretty-22PXIEOV.js.map → pretty-KG6TMOEI.js.map} +0 -0
- /package/dist/{pretty-K5BOCKBB.js.map → pretty-KSTZMBUF.js.map} +0 -0
- /package/dist/{reporters-324OWH36.js.map → reporters-AQU4W3KY.js.map} +0 -0
- /package/dist/{reporters-5LIYYE6M.js.map → reporters-FBYLPKD4.js.map} +0 -0
- /package/dist/{run-4EKG6EMI.js.map → run-KUGTU3TT.js.map} +0 -0
- /package/dist/{term-2ADSKGZW.js.map → term-SI3VM6EM.js.map} +0 -0
- /package/dist/{validate-LRYUEZLJ.js.map → validate-NQO7TFSN.js.map} +0 -0
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
INFER_FORMATS,
|
|
4
|
+
SHOW_FORMATS,
|
|
4
5
|
isInferFormat,
|
|
6
|
+
isShowFormat,
|
|
7
|
+
renderTemplateShow,
|
|
8
|
+
runTemplateShow,
|
|
5
9
|
runTemplates,
|
|
6
10
|
runTemplatesInfer,
|
|
7
11
|
runTools
|
|
8
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UQMLCIRX.js";
|
|
9
13
|
import {
|
|
10
14
|
LINT_JOBS,
|
|
11
15
|
TOOLS_BY_JOB,
|
|
@@ -13,31 +17,31 @@ import {
|
|
|
13
17
|
rebaseConfig,
|
|
14
18
|
resolveStructureTool,
|
|
15
19
|
runLint
|
|
16
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-NWUXRV6N.js";
|
|
17
21
|
import "./chunk-ZMECS2IJ.js";
|
|
18
22
|
import "./chunk-TIUTIOFB.js";
|
|
19
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-TDCOKKMI.js";
|
|
20
24
|
import {
|
|
21
25
|
render,
|
|
22
26
|
renderTemplates,
|
|
23
27
|
renderTools
|
|
24
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-NTEYYYKL.js";
|
|
25
29
|
import "./chunk-GLP5PSXB.js";
|
|
26
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-6ZFJWUUH.js";
|
|
27
31
|
import {
|
|
28
32
|
LintError
|
|
29
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-SCLXVTFZ.js";
|
|
30
34
|
import "./chunk-YUTVAMWW.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-HIEGOW7X.js";
|
|
36
|
+
import "./chunk-IGQMBHFY.js";
|
|
37
|
+
import "./chunk-OUAH7XF2.js";
|
|
34
38
|
import {
|
|
35
39
|
OMITTED_WHEN_CLEAN,
|
|
36
40
|
REPORT_FORMATS,
|
|
37
41
|
REPORT_FORMAT_LIST,
|
|
38
42
|
isReportFormat
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-BMBAAPGN.js";
|
|
44
|
+
import "./chunk-52WO7ESI.js";
|
|
41
45
|
import {
|
|
42
46
|
collect,
|
|
43
47
|
configOption,
|
|
@@ -45,11 +49,11 @@ import {
|
|
|
45
49
|
readStdin,
|
|
46
50
|
reportConfig,
|
|
47
51
|
splitList
|
|
48
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-LNGSE7V2.js";
|
|
49
53
|
import "./chunk-DSWKBZWW.js";
|
|
50
54
|
import {
|
|
51
55
|
STDIN_TOKEN
|
|
52
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-HY6ROJTH.js";
|
|
53
57
|
import "./chunk-MNH7QO4Z.js";
|
|
54
58
|
import {
|
|
55
59
|
shouldColor
|
|
@@ -64,7 +68,7 @@ import {
|
|
|
64
68
|
import "./chunk-VM7VAFJW.js";
|
|
65
69
|
import {
|
|
66
70
|
package_default
|
|
67
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-HKTGHLBA.js";
|
|
68
72
|
import "./chunk-OWBRDNRZ.js";
|
|
69
73
|
import "./chunk-G3T47CFV.js";
|
|
70
74
|
import "./chunk-2H7UOFLK.js";
|
|
@@ -105,6 +109,15 @@ function inferFormat(value) {
|
|
|
105
109
|
}
|
|
106
110
|
return format;
|
|
107
111
|
}
|
|
112
|
+
function showFormat(value) {
|
|
113
|
+
const format = String(value);
|
|
114
|
+
if (!isShowFormat(format)) {
|
|
115
|
+
throw new LintError(
|
|
116
|
+
`Unknown --format "${format}". Use pretty, json or markdown.`
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
return format;
|
|
120
|
+
}
|
|
108
121
|
function assertStructureTool(value) {
|
|
109
122
|
if (value === void 0) return;
|
|
110
123
|
resolveStructureTool(value);
|
|
@@ -329,6 +342,32 @@ function buildProgram() {
|
|
|
329
342
|
}
|
|
330
343
|
}
|
|
331
344
|
);
|
|
345
|
+
templates.command("show").description(
|
|
346
|
+
"Print what a template asks for: each section, how often it may occur, what it must contain, and what it is for"
|
|
347
|
+
).argument(
|
|
348
|
+
"<ref>",
|
|
349
|
+
"template to show: a built-in id, a path, a path#name, or a URL"
|
|
350
|
+
).option("-f, --format <format>", `output: ${SHOW_FORMATS.join(" | ")}`, "pretty").addHelpText(
|
|
351
|
+
"after",
|
|
352
|
+
[
|
|
353
|
+
"",
|
|
354
|
+
"Examples:",
|
|
355
|
+
" manni lint templates show tgdp:how-to:1.6",
|
|
356
|
+
" manni lint templates show ./templates.yaml#how-to",
|
|
357
|
+
" manni lint templates show tgdp:reference:1.6 -f json",
|
|
358
|
+
" manni lint templates show tgdp:how-to:1.6 -f markdown > docs/rotate-key.md"
|
|
359
|
+
].join("\n")
|
|
360
|
+
).action(async (ref, _options, command) => {
|
|
361
|
+
try {
|
|
362
|
+
const format = showFormat(optionValue(command, "format"));
|
|
363
|
+
const show = await runTemplateShow({ ref });
|
|
364
|
+
const color = resolveColor(program);
|
|
365
|
+
process.stdout.write(`${renderTemplateShow(show, format, { color })}
|
|
366
|
+
`);
|
|
367
|
+
} catch (err) {
|
|
368
|
+
fail(err);
|
|
369
|
+
}
|
|
370
|
+
});
|
|
332
371
|
withConfigOptions(
|
|
333
372
|
program.command("tools").description(
|
|
334
373
|
"List the lint jobs, the tool that performs each, and what it reads"
|
|
@@ -349,4 +388,4 @@ function buildProgram() {
|
|
|
349
388
|
export {
|
|
350
389
|
buildProgram
|
|
351
390
|
};
|
|
352
|
-
//# sourceMappingURL=cli-
|
|
391
|
+
//# sourceMappingURL=cli-G66X7YMP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/lint/cli.ts"],"sourcesContent":["/**\n * The lint program. Named `lint` because that is where it is mounted\n * (`manni lint …`); `src/cli.ts` adds it to the umbrella and runs it. Thin\n * commander wrapper over the command cores. Follows clig.dev: primary output to\n * stdout, diagnostics to stderr, color only on a TTY (and never under\n * NO_COLOR/--no-color), meaningful exit codes.\n *\n * Grammar per proposal 0034: the verbs are `check`, `structure`, `templates`\n * and `tools`, and there is no default subcommand, so a bare `manni lint` is a\n * usage error that lists them. `check` runs every configured job; `structure`\n * runs one of them, and carries the options that belong to the tool performing\n * it.\n *\n * Exit codes are the contract CI reads:\n * 0 every file linted clean\n * 1 the run produced findings\n * 2 the tool could not do its job - bad usage, missing template, unreadable\n * input. A LintError is always this, never a lint failure.\n *\n * The 1/2 split is what lets a workflow tell \"the docs are wrong\" apart from\n * \"the linter is misconfigured\", which a single non-zero exit cannot.\n */\nimport { Command } from \"commander\";\nimport pkg from \"../../package.json\" with { type: \"json\" };\nimport {\n collect,\n configOption,\n explicitFalse,\n readStdin,\n reportConfig,\n splitList,\n} from \"../shared/cli-options.js\";\nimport { shouldColor } from \"../shared/color.js\";\nimport { fail } from \"../shared/run.js\";\nimport { notice } from \"../shared/warn.js\";\nimport {\n OMITTED_WHEN_CLEAN,\n REPORT_FORMAT_LIST,\n STDIN_TOKEN,\n} from \"../meta/internal.js\";\nimport {\n REPORT_FORMATS,\n isReportFormat,\n type ReportFormat as FamilyFormat,\n} from \"../meta/index.js\";\nimport { LintError } from \"./types.js\";\nimport { runLint } from \"./commands/lint.js\";\nimport {\n runTemplateShow,\n runTemplates,\n runTemplatesInfer,\n} from \"./commands/templates.js\";\nimport { runTools } from \"./commands/tools.js\";\nimport { INFER_FORMATS, isInferFormat, type InferFormat } from \"./core/infer.js\";\nimport {\n LINT_JOBS,\n TOOLS_BY_JOB,\n loadConfig,\n rebaseConfig,\n} from \"./core/config.js\";\nimport { resolveStructureTool } from \"./tools/index.js\";\nimport {\n render,\n renderTemplates,\n renderTools,\n type ListFormat,\n type ReportFormat,\n} from \"./reporters/index.js\";\nimport {\n SHOW_FORMATS,\n isShowFormat,\n renderTemplateShow,\n type ShowFormat,\n} from \"./reporters/template-show.js\";\n\n/** The options `check` and `structure` share, in the family's spelling. */\ninterface InputCliOptions {\n /** `--collection <name>`, repeatable; commander's default value is `[]`. */\n collection: string[];\n /** `--ext <list>`; the command splits it. */\n ext?: string;\n /** `--exclude <glob>`, repeatable; commander's default value is `[]`. */\n exclude: string[];\n /** `--as <format>`: force a parser. */\n as?: string;\n /**\n * `-c, --config <path>` and `--no-config` share one commander attribute:\n * `undefined` with neither flag, the path with `-c`, `false` with\n * `--no-config`. Split by `configOption`.\n */\n config?: string | boolean;\n allowEmpty?: boolean;\n /** `--no-gitignore`. */\n gitignore: boolean;\n /** `-f, --format <format>`. Always a string: the declaration has a default. */\n format: string;\n}\n\n/** `structure` adds the options of the tool that performs the job. */\ninterface StructureCliOptions extends InputCliOptions {\n tool?: string;\n template?: string;\n /** `--templates <path>`, repeatable; commander's default value is `[]`. */\n templates: string[];\n explain?: boolean;\n}\n\n/** What commander parses for `templates`. */\ninterface TemplatesCommandOptions {\n templates: string[];\n config?: string | boolean;\n format: string;\n}\n\n/** What commander parses for `templates infer`. */\ninterface TemplatesInferCliOptions {\n as?: string;\n name?: string;\n config?: string | boolean;\n format: string;\n out?: string;\n force?: boolean;\n}\n\n/** What commander parses for `tools`. */\ninterface ToolsCommandOptions {\n config?: string | boolean;\n format: string;\n}\n\n// `explain` is reachable through `--explain`, not `-f`: it reports on\n// configuration rather than on documents, and offering it as a format would\n// invite `-f explain` alongside a lint that then never happens. The `-f` set\n// itself is the family's, from meta, rather than a fourth hand-kept copy of\n// the same five words.\nconst LIST_FORMATS = new Set<string>([\"pretty\", \"json\"]);\n\n/** The heading the tool's own options print under, after the shared ones. */\nconst TOOL_OPTIONS_GROUP = \"Tool options:\";\n\nfunction resolveColor(program: Command): boolean {\n // commander maps --no-color to opts.color === false.\n const noColor = program.opts().color === false;\n return shouldColor({ noColor, isTTY: process.stdout.isTTY });\n}\n\nfunction reportFormat(value: unknown): FamilyFormat {\n const format = String(value);\n if (!isReportFormat(format)) {\n throw new LintError(\n `Unknown --format \"${format}\". Use ${REPORT_FORMAT_LIST}.`,\n );\n }\n return format;\n}\n\n/**\n * Whether a clean run may print nothing at all in this format.\n *\n * Only `github` may: an empty annotation stream is a clean check. Every other\n * format owes its envelope - an empty JSON array, a SARIF log with no results,\n * a JUnit suite of passing testcases - because a consumer parsing stdout must\n * not have to treat \"no output\" as a third outcome. `explain` is never clean\n * or dirty; it always has something to say.\n */\nfunction omittedWhenClean(format: ReportFormat): boolean {\n return format !== \"explain\" && OMITTED_WHEN_CLEAN.has(format);\n}\n\nfunction listFormat(value: unknown): ListFormat {\n const format = String(value);\n if (!LIST_FORMATS.has(format)) {\n throw new LintError(\n `Unknown --format \"${format}\". Use pretty or json.`,\n );\n }\n return format as ListFormat;\n}\n\n/**\n * `templates infer -f`: the format a *template file* is written in, which is\n * not the set a report is rendered in. A template is YAML or JSON because those\n * are the two the loader reads back, and `pretty` would name a third thing the\n * tool cannot then load.\n */\nfunction inferFormat(value: unknown): InferFormat {\n const format = String(value);\n if (!isInferFormat(format)) {\n throw new LintError(`Unknown --format \"${format}\". Use yaml or json.`);\n }\n return format;\n}\n\n/** `templates show -f`: a report, a template's data, or a page skeleton. */\nfunction showFormat(value: unknown): ShowFormat {\n const format = String(value);\n if (!isShowFormat(format)) {\n throw new LintError(\n `Unknown --format \"${format}\". Use pretty, json or markdown.`,\n );\n }\n return format;\n}\n\n/**\n * `--tool <name>`: which tool performs the structure job. Refused by name\n * rather than ignored, because falling through to manni's engine would lint\n * with something other than what was asked for and say nothing.\n *\n * The refusal is the registry's, not a second copy of it here. `runLint`\n * refuses the same name with the same sentence for a caller that never touches\n * commander; this one fires first, so a bad `--tool` is reported before the\n * run asks what it was pointed at.\n */\nfunction assertStructureTool(value: string | undefined): void {\n if (value === undefined) return;\n resolveStructureTool(value);\n}\n\n/**\n * `-c/--config` and `--no-config`, in one place.\n *\n * Every verb here takes them, and they had been written out three times. A flag\n * two commands both have carries the same name *and* the same description, so\n * the declaration is shared rather than copied - which is what kept the fourth\n * copy, on `templates infer`, from spelling either of them slightly differently.\n */\nfunction withConfigOptions(command: Command): Command {\n return command\n .option(\"-c, --config <path>\", \"path to a manni config file\")\n .option(\"--no-config\", \"ignore any discovered config file\");\n}\n\n/**\n * The value of a flag a command and its parent both declare.\n *\n * Commander keeps parsing a parent's options past a subcommand name unless\n * `enablePositionalOptions()` is on, so `templates infer page.md -f json` sets\n * `format` on `templates` and leaves `infer` holding its own default. Both\n * commands declare `-f`, `-c` and `--no-config`, because \"commands must have\n * parallel behaviors\" and `infer` must list them in its own `--help`.\n *\n * Turning positional options on would fix it and move every other flag in this\n * program with it: `manni lint structure docs/ --no-color` is a root option\n * written after its command, and there are three more like it. So the lookup\n * changes instead. The nearest command actually *given* the flag wins, and the\n * subcommand's own default is the fallback - which is the reading a person\n * typing the line already has.\n */\nfunction optionValue(command: Command, key: string): unknown {\n for (\n let cmd: Command | null = command;\n cmd !== null;\n cmd = cmd.parent ?? null\n ) {\n if (cmd.getOptionValueSource(key) === \"cli\") return cmd.getOptionValue(key);\n }\n return command.getOptionValue(key);\n}\n\n/** The options every job verb takes, in one place so the two cannot drift. */\nfunction withInputOptions(command: Command): Command {\n command\n .argument(\n \"[paths...]\",\n \"files, directories, or globs to lint (use - for stdin)\",\n )\n .option(\n \"--collection <name>\",\n \"configured collection to run over; repeatable\",\n collect,\n [],\n )\n .option(\"--ext <list>\", \"comma-separated extensions for directory walks\")\n .option(\"--exclude <glob>\", \"glob to exclude; repeatable\", collect, [])\n .option(\"--as <format>\", \"force an input format (e.g. markdown, mdx)\")\n .option(\n \"-f, --format <format>\",\n `output: ${REPORT_FORMATS.join(\" | \")}`,\n \"pretty\",\n );\n return withConfigOptions(command)\n .option(\"--allow-empty\", \"treat zero matched files as success\")\n .option(\"--no-gitignore\", \"lint files .gitignore covers\");\n}\n\n/** The lint options every job verb turns its shared flags into. */\nfunction inputOptions(\n paths: string[],\n options: InputCliOptions,\n): {\n inputs: string[];\n collection: string[];\n exts?: string[];\n exclude: string[];\n as?: string;\n configPath?: string;\n noConfig?: boolean;\n allowEmpty?: boolean;\n respectGitignore?: boolean;\n onNotice: (message: string) => void;\n} {\n return {\n inputs: paths,\n collection: options.collection,\n ...(options.ext ? { exts: splitList(options.ext) } : {}),\n exclude: options.exclude,\n ...(options.as === undefined ? {} : { as: options.as }),\n ...configOption(options.config),\n // `undefined` rather than `false` when absent, so config still wins.\n ...(options.allowEmpty ? { allowEmpty: true } : {}),\n respectGitignore: explicitFalse(options.gitignore),\n onNotice: notice,\n };\n}\n\nexport function buildProgram(): Command {\n const program = new Command();\n program\n .name(\"lint\")\n .description(\n \"Validate document structure against doctype templates. Deterministic, CI-friendly.\",\n )\n .version(pkg.version, \"-V, --version\")\n .option(\"--no-color\", \"disable colored output\")\n .showHelpAfterError()\n // Exit code 1 is reserved for \"the docs are wrong\". Commander exits 1 on a\n // usage error by default, which would make a typo'd flag look exactly like\n // a failing lint to a workflow. With no callback, commander throws the\n // CommanderError instead, and the umbrella's runner maps it: help and\n // --version stay 0, every other usage error becomes 2. Commander has\n // already written its own message. This has to precede .command(), which\n // copies the callback into each subcommand.\n .exitOverride();\n\n /** Run one lint, render it, and settle the exit code. Both job verbs share it. */\n const lint = async (\n paths: string[],\n options: StructureCliOptions | InputCliOptions,\n command: Command,\n job: { tool?: StructureCliOptions } = {},\n ): Promise<void> => {\n const tool = job.tool;\n const format = reportFormat(options.format);\n const explain = tool?.explain === true;\n const stdinContent = paths.includes(STDIN_TOKEN) ? await readStdin() : undefined;\n const cwd = process.cwd();\n\n const run = await runLint({\n ...inputOptions(paths, options),\n ...(tool?.tool === undefined ? {} : { tool: tool.tool }),\n ...(tool?.template === undefined ? {} : { template: tool.template }),\n ...(tool && tool.templates.length > 0 ? { templates: tool.templates } : {}),\n ...(explain ? { explain: true } : {}),\n ...(stdinContent === undefined ? {} : { stdinContent }),\n // Which config governed the run, said where a report cannot be parsed\n // around: discovery walks up to the project boundary, so an unexpected\n // ancestor config is the difference between a five-minute diagnosis and\n // an hour of confusion.\n onConfigLoaded: reportConfig(format === \"pretty\", cwd),\n });\n\n const color = resolveColor(command.parent ?? command);\n const chosen: ReportFormat = explain ? \"explain\" : format;\n const text = render(run, chosen, { color });\n if (text.length > 0 || !omittedWhenClean(chosen)) {\n process.stdout.write(`${text}\\n`);\n }\n // `--explain` answers a question about configuration, so its exit code\n // reports whether it could answer it - not whether the docs are clean.\n //\n // That covers routing failures too: a page whose `type` matches no\n // template is a answered question, not an unanswered one, so it exits 0\n // like everything else here. Automation must not read this code as\n // \"everything routed\" - the ordinary run is what reports that, with exit\n // 1. Said in `--help` and the README, because the distinction is invisible\n // from the exit code alone.\n process.exitCode = explain ? 0 : run.summary.failed > 0 ? 1 : 0;\n };\n\n withInputOptions(\n program\n .command(\"check\")\n .description(\"Run every configured lint job over the given files/dirs/globs\"),\n )\n .addHelpText(\n \"after\",\n [\n \"\",\n \"Jobs: structure.\",\n \"\",\n \"Examples:\",\n \" manni lint check docs/ # every configured job\",\n \" manni lint check # targets from collections:\",\n \" manni lint check --collection guides\",\n ' manni lint check \"**/*.md\" -f github # CI annotations',\n \" cat page.md | manni lint check - --as markdown\",\n ].join(\"\\n\"),\n )\n .action(async (paths: string[], options: InputCliOptions, command: Command) => {\n try {\n // Which jobs this run covered, said once, beside the config line. The\n // full form also names the jobs that exist and are not configured;\n // `structure` is the only job there is, so today it is one word.\n if (options.format === \"pretty\") {\n process.stderr.write(`Checked: ${LINT_JOBS.join(\", \")}.\\n`);\n }\n await lint(paths, options, command);\n } catch (err) {\n fail(err);\n }\n });\n\n const structure = withInputOptions(\n program\n .command(\"structure\")\n .description(\n \"Lint document structure against doctype templates, routing each page by its `type`\",\n ),\n );\n structure\n .optionsGroup(TOOL_OPTIONS_GROUP)\n .option(\n \"--tool <name>\",\n `tool that performs the job: ${TOOLS_BY_JOB.structure.join(\", \")}`,\n )\n .option(\n \"-t, --template <ref>\",\n \"apply this template to every file, overriding type routing\",\n )\n .option(\n \"--templates <path>\",\n \"template file to route by: its `types:` win over built-ins; repeatable\",\n collect,\n [],\n )\n .option(\n \"--explain\",\n \"print how each file's template was chosen, and lint nothing (always exits 0, unrouted pages included)\",\n )\n .addHelpText(\n \"after\",\n [\n \"\",\n \"Examples:\",\n \" manni lint structure docs/ # route each page by its `type`\",\n \" manni lint structure docs/ --templates ./templates.yaml # add your own templates\",\n \" manni lint structure # targets from collections:\",\n \" manni lint structure docs/ --explain # show why each page routed where\",\n \" manni lint structure page.md -t tgdp:how-to:1.6 # force one template\",\n ' manni lint structure \"**/*.md\" -f github # CI annotations',\n \" manni lint structure docs/ --exclude '**/drafts/**'\",\n \" cat page.md | manni lint structure - -t tgdp:how-to:1.6 --as markdown\",\n ].join(\"\\n\"),\n )\n .action(\n async (paths: string[], options: StructureCliOptions, command: Command) => {\n try {\n assertStructureTool(options.tool);\n await lint(paths, options, command, { tool: options });\n } catch (err) {\n fail(err);\n }\n },\n );\n\n const templates = program\n .command(\"templates\")\n .description(\"List the templates that can be applied, and the types they serve\")\n .option(\n \"--templates <path>\",\n \"also list the templates in this file; repeatable\",\n collect,\n [],\n );\n withConfigOptions(templates)\n .option(\"-f, --format <format>\", \"output: pretty | json\", \"pretty\")\n .action(async (options: TemplatesCommandOptions, command: Command) => {\n try {\n const format = listFormat(options.format);\n // The listing answers \"what could route a page?\", so it has to see the\n // same template files a lint would - rebased the same way, or it would\n // answer for a different set of files depending on where it was run.\n const { configPath, noConfig } = configOption(options.config);\n const found = noConfig ? null : await loadConfig(configPath);\n const info = await runTemplates({\n templates:\n options.templates.length > 0\n ? options.templates\n : rebaseConfig(found).templates,\n });\n const color = resolveColor(command.parent ?? command);\n process.stdout.write(`${renderTemplates(info, format, { color })}\\n`);\n } catch (err) {\n fail(err);\n }\n });\n\n const inferCommand = templates\n .command(\"infer\")\n .description(\"Write a first template from a page that already has the shape you want\")\n .argument(\"<page>\", \"one file to infer from (use - for stdin)\")\n .option(\"--as <format>\", \"force an input format (e.g. markdown, mdx)\")\n .option(\n \"--name <name>\",\n \"name for the template; defaults to the page's `type`, else its filename\",\n )\n .option(\"-f, --format <format>\", `output: ${INFER_FORMATS.join(\" | \")}`, \"yaml\")\n .option(\"-o, --out <path>\", \"write the template here instead of to stdout\")\n .option(\"--force\", \"overwrite the --out path\");\n withConfigOptions(inferCommand)\n .addHelpText(\n \"after\",\n [\n \"\",\n \"Examples:\",\n \" manni lint templates infer docs/guides/install.md\",\n \" manni lint templates infer docs/guides/install.md --name how-to\",\n \" manni lint templates infer page.mdx -f json\",\n \" manni lint templates infer page.md -o ./templates.yaml\",\n \" manni lint templates infer page.md -o ./templates.yaml --force\",\n \" cat page.md | manni lint templates infer - --as markdown\",\n \"\",\n \"One page, and every rule it writes is exactly one occurrence: a single\",\n \"page cannot show what varies. Loosening a heading into a list or a\",\n \"pattern, setting `min: 0`, and adding a trailing rule with no heading\",\n \"for the sections that may follow are your edits to make.\",\n ].join(\"\\n\"),\n )\n .action(\n async (\n page: string,\n options: TemplatesInferCliOptions,\n command: Command,\n ) => {\n try {\n // `-f`, `-c` and `--no-config` are read through `optionValue`: the\n // parent `templates` declares all three, and commander hands it any\n // of them typed after `infer`.\n const format = inferFormat(optionValue(command, \"format\"));\n const { configPath, noConfig } = configOption(\n optionValue(command, \"config\"),\n );\n const stdinContent =\n page === STDIN_TOKEN ? await readStdin() : undefined;\n const result = await runTemplatesInfer({\n page,\n format,\n ...(options.as === undefined ? {} : { as: options.as }),\n ...(options.name === undefined ? {} : { name: options.name }),\n ...(options.out === undefined ? {} : { out: options.out }),\n ...(options.force === undefined ? {} : { force: options.force }),\n ...(configPath === undefined ? {} : { configPath }),\n ...(noConfig === undefined ? {} : { noConfig }),\n ...(stdinContent === undefined ? {} : { stdinContent }),\n // The template is the primary output, so with no --out it owns\n // stdout and the config line goes to stderr beside it. With --out\n // stdout is free, and the line still belongs on stderr: a reader\n // piping nothing is not a reason to move a diagnostic.\n onConfigLoaded: reportConfig(false, process.cwd()),\n });\n\n if (result.written === undefined) {\n process.stdout.write(result.text);\n return;\n }\n // Said on stderr, so `-o` leaves stdout empty for a shell that is\n // watching it, and the template file is the whole output.\n process.stderr.write(\n `Wrote template \"${result.name}\" to ${result.written}\\n`,\n );\n } catch (err) {\n fail(err);\n }\n },\n );\n\n templates\n .command(\"show\")\n .description(\n \"Print what a template asks for: each section, how often it may occur, what it must contain, and what it is for\",\n )\n .argument(\n \"<ref>\",\n \"template to show: a built-in id, a path, a path#name, or a URL\",\n )\n .option(\"-f, --format <format>\", `output: ${SHOW_FORMATS.join(\" | \")}`, \"pretty\")\n .addHelpText(\n \"after\",\n [\n \"\",\n \"Examples:\",\n \" manni lint templates show tgdp:how-to:1.6\",\n \" manni lint templates show ./templates.yaml#how-to\",\n \" manni lint templates show tgdp:reference:1.6 -f json\",\n \" manni lint templates show tgdp:how-to:1.6 -f markdown > docs/rotate-key.md\",\n ].join(\"\\n\"),\n )\n .action(async (ref: string, _options: unknown, command: Command) => {\n try {\n // `-f` is read through `optionValue`: the parent `templates` declares\n // it too, and commander hands it any `-f` typed after `show`.\n const format = showFormat(optionValue(command, \"format\"));\n const show = await runTemplateShow({ ref });\n const color = resolveColor(program);\n process.stdout.write(`${renderTemplateShow(show, format, { color })}\\n`);\n } catch (err) {\n fail(err);\n }\n });\n\n withConfigOptions(\n program\n .command(\"tools\")\n .description(\n \"List the lint jobs, the tool that performs each, and what it reads\",\n ),\n )\n .option(\"-f, --format <format>\", \"output: pretty | json\", \"pretty\")\n .action(async (options: ToolsCommandOptions, command: Command) => {\n try {\n const format = listFormat(options.format);\n const tools = await runTools(configOption(options.config));\n const color = resolveColor(command.parent ?? command);\n process.stdout.write(`${renderTools(tools, format, { color })}\\n`);\n } catch (err) {\n fail(err);\n }\n });\n\n return program;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBA,SAAS,eAAe;AAiHxB,IAAM,eAAe,oBAAI,IAAY,CAAC,UAAU,MAAM,CAAC;AAGvD,IAAM,qBAAqB;AAE3B,SAAS,aAAa,SAA2B;AAE/C,QAAM,UAAU,QAAQ,KAAK,EAAE,UAAU;AACzC,SAAO,YAAY,EAAE,SAAS,OAAO,QAAQ,OAAO,MAAM,CAAC;AAC7D;AAEA,SAAS,aAAa,OAA8B;AAClD,QAAM,SAAS,OAAO,KAAK;AAC3B,MAAI,CAAC,eAAe,MAAM,GAAG;AAC3B,UAAM,IAAI;AAAA,MACR,qBAAqB,MAAM,UAAU,kBAAkB;AAAA,IACzD;AAAA,EACF;AACA,SAAO;AACT;AAWA,SAAS,iBAAiB,QAA+B;AACvD,SAAO,WAAW,aAAa,mBAAmB,IAAI,M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,aAAa,QAAQ,MAAM,CAAC;AACzD,YAAM,QAAQ,aAAa,QAAQ,UAAU,OAAO;AACpD,cAAQ,OAAO,MAAM,GAAG,YAAY,OAAO,QAAQ,EAAE,MAAM,CAAC,CAAC;AAAA,CAAI;AAAA,IACnE,SAAS,KAAK;AACZ,WAAK,GAAG;AAAA,IACV;AAAA,EACF,CAAC;AAEH,SAAO;AACT;","names":[]}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
idHash
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-TQ3W6RKG.js";
|
|
5
|
+
import "./chunk-PCGBXHSE.js";
|
|
6
6
|
import "./chunk-CWXZ2MRT.js";
|
|
7
7
|
import {
|
|
8
8
|
readStdin
|
|
9
9
|
} from "./chunk-TZOYZK2E.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-E6BVUDGY.js";
|
|
11
11
|
import {
|
|
12
12
|
DEFAULT_CAPTURE_DIR
|
|
13
13
|
} from "./chunk-CU57HT2E.js";
|
|
14
14
|
import "./chunk-4TSWU2SU.js";
|
|
15
15
|
import "./chunk-UKZNLVJW.js";
|
|
16
16
|
import "./chunk-YUTVAMWW.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-HIEGOW7X.js";
|
|
18
|
+
import "./chunk-IGQMBHFY.js";
|
|
19
|
+
import "./chunk-OUAH7XF2.js";
|
|
20
|
+
import "./chunk-BMBAAPGN.js";
|
|
21
|
+
import "./chunk-52WO7ESI.js";
|
|
22
22
|
import {
|
|
23
23
|
memberOf,
|
|
24
24
|
retainMembers
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-LNGSE7V2.js";
|
|
26
26
|
import "./chunk-DSWKBZWW.js";
|
|
27
27
|
import {
|
|
28
28
|
extractorForExtension,
|
|
29
29
|
resolveTargetSet,
|
|
30
30
|
supportedExtensions,
|
|
31
31
|
withSharedWalks
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-HY6ROJTH.js";
|
|
33
33
|
import "./chunk-MNH7QO4Z.js";
|
|
34
34
|
import {
|
|
35
35
|
shouldColor
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
import "./chunk-VM7VAFJW.js";
|
|
49
49
|
import {
|
|
50
50
|
package_default
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-HKTGHLBA.js";
|
|
52
52
|
import {
|
|
53
53
|
programName
|
|
54
54
|
} from "./chunk-OWBRDNRZ.js";
|
|
@@ -267,8 +267,8 @@ async function runDomain(domain, ctx) {
|
|
|
267
267
|
switch (domain) {
|
|
268
268
|
case "meta": {
|
|
269
269
|
const [{ runValidate }, { render: renderMeta }] = await Promise.all([
|
|
270
|
-
import("./validate-
|
|
271
|
-
import("./reporters-
|
|
270
|
+
import("./validate-NQO7TFSN.js"),
|
|
271
|
+
import("./reporters-AQU4W3KY.js")
|
|
272
272
|
]);
|
|
273
273
|
const run2 = await runValidate({ inputs, configPath, cwd, skipDefaultOnly: true, onNotice });
|
|
274
274
|
if (run2.results.length === 0) {
|
|
@@ -281,10 +281,10 @@ async function runDomain(domain, ctx) {
|
|
|
281
281
|
}
|
|
282
282
|
case "cite": {
|
|
283
283
|
const [{ runCheck: runCite }, { renderCheckPretty: citePretty }, { renderCheckJson: citeJson }, { renderCheckGithub: citeGithub }] = await Promise.all([
|
|
284
|
-
import("./check-
|
|
285
|
-
import("./pretty-
|
|
284
|
+
import("./check-LU5YC3L4.js"),
|
|
285
|
+
import("./pretty-KG6TMOEI.js"),
|
|
286
286
|
import("./json-7WV7KL6H.js"),
|
|
287
|
-
import("./github-
|
|
287
|
+
import("./github-DJQ4MWNZ.js")
|
|
288
288
|
]);
|
|
289
289
|
const run2 = await runCite({ inputs, configPath, cwd, onNotice });
|
|
290
290
|
if (!run2.pages.some((p) => p.citations.length > 0 || p.findings.length > 0)) {
|
|
@@ -298,8 +298,8 @@ async function runDomain(domain, ctx) {
|
|
|
298
298
|
case "lint": {
|
|
299
299
|
if (!family.sections.has("lint")) return { skipped: NOT_SET_UP.lint };
|
|
300
300
|
const [{ runLint }, { render: renderLint }] = await Promise.all([
|
|
301
|
-
import("./lint-
|
|
302
|
-
import("./reporters-
|
|
301
|
+
import("./lint-O7XRHKFP.js"),
|
|
302
|
+
import("./reporters-FBYLPKD4.js")
|
|
303
303
|
]);
|
|
304
304
|
const run2 = await runLint({ inputs, configPath, cwd, onNotice });
|
|
305
305
|
return {
|
|
@@ -309,7 +309,7 @@ async function runDomain(domain, ctx) {
|
|
|
309
309
|
}
|
|
310
310
|
case "docevals": {
|
|
311
311
|
const [{ runRun: runDocevals }, { render: renderDocevals }, { DocevalsError }] = await Promise.all([
|
|
312
|
-
import("./run-
|
|
312
|
+
import("./run-KUGTU3TT.js"),
|
|
313
313
|
import("./reporters-26H3N2KW.js"),
|
|
314
314
|
import("./types-Y6TXHM7M.js")
|
|
315
315
|
]);
|
|
@@ -336,10 +336,10 @@ async function runDomain(domain, ctx) {
|
|
|
336
336
|
}
|
|
337
337
|
case "term": {
|
|
338
338
|
const [{ runCheck: runTerm }, { renderFindingsPretty: termPretty }, { renderFindingsJson: termJson }, { renderFindingsGithub: termGithub }] = await Promise.all([
|
|
339
|
-
import("./check-
|
|
340
|
-
import("./pretty-
|
|
341
|
-
import("./json-
|
|
342
|
-
import("./github-
|
|
339
|
+
import("./check-S55MH66H.js"),
|
|
340
|
+
import("./pretty-KSTZMBUF.js"),
|
|
341
|
+
import("./json-LCVPMEAM.js"),
|
|
342
|
+
import("./github-UWTDM2J2.js")
|
|
343
343
|
]);
|
|
344
344
|
const report = await runTerm({ inputs, configPath, cwd, allowEmpty: true, onNotice });
|
|
345
345
|
if (report.terms === 0) return { skipped: NOT_SET_UP.term };
|
|
@@ -351,8 +351,8 @@ async function runDomain(domain, ctx) {
|
|
|
351
351
|
case "graph": {
|
|
352
352
|
if (!family.sections.has("graph")) return { skipped: NOT_SET_UP.graph };
|
|
353
353
|
const [{ buildGraph }, { runCheck: runGraph, renderCheck: renderGraph }] = await Promise.all([
|
|
354
|
-
import("./build-
|
|
355
|
-
import("./check-
|
|
354
|
+
import("./build-4BL24BG3.js"),
|
|
355
|
+
import("./check-5IYH42KS.js")
|
|
356
356
|
]);
|
|
357
357
|
const built = await buildGraph({ config: configPath, cwd });
|
|
358
358
|
for (const warning of built.warnings) onNotice(warning);
|
|
@@ -565,7 +565,7 @@ async function runTurnCheck(envelope, cwd, seams = {}) {
|
|
|
565
565
|
let renderTurn;
|
|
566
566
|
try {
|
|
567
567
|
const [{ checkTurn }, reporters] = await Promise.all([
|
|
568
|
-
import("./check-
|
|
568
|
+
import("./check-NBN2YK2J.js"),
|
|
569
569
|
import("./runtime-7QE3DW6S.js")
|
|
570
570
|
]);
|
|
571
571
|
renderTurn = reporters.renderCheck;
|
|
@@ -660,8 +660,8 @@ function ownSchemaCount(cwd, members) {
|
|
|
660
660
|
return n;
|
|
661
661
|
}
|
|
662
662
|
async function citedPages(cwd, configPath) {
|
|
663
|
-
const { prepareRun, readTarget } = await import("./check-
|
|
664
|
-
const { readPage } = await import("./page-
|
|
663
|
+
const { prepareRun, readTarget } = await import("./check-LU5YC3L4.js");
|
|
664
|
+
const { readPage } = await import("./page-XPX5XJZE.js");
|
|
665
665
|
const prepared = await prepareRun({ inputs: [], configPath, cwd, checkSources: false }, "checked", "check");
|
|
666
666
|
let n = 0;
|
|
667
667
|
for (const file of prepared.files) {
|
|
@@ -688,14 +688,14 @@ async function row(domain, family, cwd, members) {
|
|
|
688
688
|
return n > 0 ? inPlay(pages(n, "carries citations", "carry citations")) : notSetUp;
|
|
689
689
|
}
|
|
690
690
|
case "docevals": {
|
|
691
|
-
const { runList: listEvals } = await import("./list-
|
|
691
|
+
const { runList: listEvals } = await import("./list-OOOCLOAL.js");
|
|
692
692
|
const { plans } = await listEvals([], { config: configPath, cwd });
|
|
693
693
|
const n = plans.filter((p) => !p.skip && p.evals.length > 0).length;
|
|
694
694
|
if (n === 0) return notSetUp;
|
|
695
695
|
return inPlay(section ? "docevals: section" : pages(n, "declares evals", "declare evals"));
|
|
696
696
|
}
|
|
697
697
|
case "term": {
|
|
698
|
-
const { runList: listTerms } = await import("./list-
|
|
698
|
+
const { runList: listTerms } = await import("./list-OYQ5XPN2.js");
|
|
699
699
|
const { terms } = await listTerms({ inputs: [], configPath, cwd, allowEmpty: true });
|
|
700
700
|
return terms.length > 0 ? inPlay(plural(terms.length, "term")) : notSetUp;
|
|
701
701
|
}
|
|
@@ -910,4 +910,4 @@ export {
|
|
|
910
910
|
buildStatus,
|
|
911
911
|
hookScope
|
|
912
912
|
};
|
|
913
|
-
//# sourceMappingURL=cli-
|
|
913
|
+
//# sourceMappingURL=cli-H5LVGOVT.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
renderCheck,
|
|
4
4
|
runCheck
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Y6M4JFKG.js";
|
|
6
6
|
import {
|
|
7
7
|
EXPORT_TARGETS,
|
|
8
8
|
renderEmbed,
|
|
@@ -16,15 +16,15 @@ import {
|
|
|
16
16
|
runQuery,
|
|
17
17
|
runStats,
|
|
18
18
|
runTraverse
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-EQ7E6HMG.js";
|
|
20
20
|
import {
|
|
21
21
|
runBuild
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-N6A6DJUO.js";
|
|
23
23
|
import {
|
|
24
24
|
SEARCH_MODES,
|
|
25
25
|
renderSearch,
|
|
26
26
|
runSearch
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-JUL2PRQN.js";
|
|
28
28
|
import {
|
|
29
29
|
ALL_FILL_FIELDS,
|
|
30
30
|
CONFIG_SECTION,
|
|
@@ -33,25 +33,25 @@ import {
|
|
|
33
33
|
GraphError,
|
|
34
34
|
STDIN,
|
|
35
35
|
assertInputFormat
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-J5NOWIJ3.js";
|
|
37
37
|
import "./chunk-TIUTIOFB.js";
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-TDCOKKMI.js";
|
|
39
|
+
import "./chunk-SCLXVTFZ.js";
|
|
40
40
|
import "./chunk-YUTVAMWW.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-HIEGOW7X.js";
|
|
42
|
+
import "./chunk-IGQMBHFY.js";
|
|
43
|
+
import "./chunk-OUAH7XF2.js";
|
|
44
|
+
import "./chunk-BMBAAPGN.js";
|
|
45
|
+
import "./chunk-52WO7ESI.js";
|
|
46
46
|
import {
|
|
47
47
|
collect,
|
|
48
48
|
configOption,
|
|
49
49
|
readStdin,
|
|
50
50
|
splitList,
|
|
51
51
|
writeTextAtomic
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-LNGSE7V2.js";
|
|
53
53
|
import "./chunk-DSWKBZWW.js";
|
|
54
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-HY6ROJTH.js";
|
|
55
55
|
import "./chunk-MNH7QO4Z.js";
|
|
56
56
|
import {
|
|
57
57
|
shouldColor
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
} from "./chunk-VM7VAFJW.js";
|
|
69
69
|
import {
|
|
70
70
|
package_default
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-HKTGHLBA.js";
|
|
72
72
|
import "./chunk-OWBRDNRZ.js";
|
|
73
73
|
import {
|
|
74
74
|
errorMessage
|
|
@@ -651,4 +651,4 @@ export {
|
|
|
651
651
|
buildProgram,
|
|
652
652
|
colorFor
|
|
653
653
|
};
|
|
654
|
-
//# sourceMappingURL=cli-
|
|
654
|
+
//# sourceMappingURL=cli-KYTCJYXK.js.map
|
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
renderList,
|
|
4
4
|
runFill,
|
|
5
5
|
runList
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7RNONVHI.js";
|
|
7
7
|
import {
|
|
8
8
|
CALIBRATE_FORMATS,
|
|
9
9
|
REPORT_FORMATS,
|
|
10
10
|
SUMMARY_FORMATS,
|
|
11
11
|
parseFormat,
|
|
12
12
|
runRun
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-LSFXNAHU.js";
|
|
14
|
+
import "./chunk-VOXOBUTX.js";
|
|
15
15
|
import "./chunk-FQGLRJGX.js";
|
|
16
16
|
import "./chunk-CWXZ2MRT.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-3O6U4ICM.js";
|
|
18
|
+
import "./chunk-E6BVUDGY.js";
|
|
19
19
|
import "./chunk-OKMTUAWO.js";
|
|
20
20
|
import "./chunk-CU57HT2E.js";
|
|
21
21
|
import "./chunk-U6IHLEWT.js";
|
|
@@ -31,19 +31,19 @@ import {
|
|
|
31
31
|
import "./chunk-ZPLVANY2.js";
|
|
32
32
|
import "./chunk-GLP5PSXB.js";
|
|
33
33
|
import "./chunk-YUTVAMWW.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-HIEGOW7X.js";
|
|
35
35
|
import {
|
|
36
36
|
terminalConfirm
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-IGQMBHFY.js";
|
|
38
|
+
import "./chunk-OUAH7XF2.js";
|
|
39
|
+
import "./chunk-BMBAAPGN.js";
|
|
40
|
+
import "./chunk-52WO7ESI.js";
|
|
41
41
|
import {
|
|
42
42
|
collect,
|
|
43
43
|
configOption
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-LNGSE7V2.js";
|
|
45
45
|
import "./chunk-DSWKBZWW.js";
|
|
46
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-HY6ROJTH.js";
|
|
47
47
|
import "./chunk-77AINBYM.js";
|
|
48
48
|
import "./chunk-MNH7QO4Z.js";
|
|
49
49
|
import {
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
} from "./chunk-VM7VAFJW.js";
|
|
62
62
|
import {
|
|
63
63
|
package_default
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-HKTGHLBA.js";
|
|
65
65
|
import "./chunk-OWBRDNRZ.js";
|
|
66
66
|
import "./chunk-G3T47CFV.js";
|
|
67
67
|
import "./chunk-2H7UOFLK.js";
|
|
@@ -162,7 +162,7 @@ function buildProgram() {
|
|
|
162
162
|
"--manifest names one session's manifest, so it cannot be used with a corpus; drop it and each trace will find its own"
|
|
163
163
|
);
|
|
164
164
|
}
|
|
165
|
-
const { runBatch } = await import("./batch-
|
|
165
|
+
const { runBatch } = await import("./batch-OB2FXT47.js");
|
|
166
166
|
const { report: report2, rendered: rendered2 } = await runBatch({
|
|
167
167
|
...shared,
|
|
168
168
|
...traces.length > 0 ? { traces } : {}
|
|
@@ -281,7 +281,7 @@ function buildProgram() {
|
|
|
281
281
|
whole("--max-false-pass", opts.maxFalsePass, 0);
|
|
282
282
|
whole("--max-false-fail", opts.maxFalseFail, 0);
|
|
283
283
|
whole("--max-review", opts.maxReview, 0);
|
|
284
|
-
const { runCalibrate } = await import("./calibrate-
|
|
284
|
+
const { runCalibrate } = await import("./calibrate-AEDJ7N7G.js");
|
|
285
285
|
const { report, rendered } = await runCalibrate({
|
|
286
286
|
...shared,
|
|
287
287
|
...traces.length > 0 ? { traces } : {},
|
|
@@ -383,7 +383,7 @@ function buildProgram() {
|
|
|
383
383
|
"pretty"
|
|
384
384
|
).action(async (opts) => {
|
|
385
385
|
try {
|
|
386
|
-
const { runCapture } = await import("./capture-
|
|
386
|
+
const { runCapture } = await import("./capture-TP3P4YNL.js");
|
|
387
387
|
const result = await runCapture({
|
|
388
388
|
version,
|
|
389
389
|
...configOptions(opts),
|
|
@@ -410,7 +410,7 @@ function buildProgram() {
|
|
|
410
410
|
"pretty"
|
|
411
411
|
).action(async (opts) => {
|
|
412
412
|
try {
|
|
413
|
-
const { runPrepare } = await import("./prepare-
|
|
413
|
+
const { runPrepare } = await import("./prepare-VMBIQYAM.js");
|
|
414
414
|
const result = await runPrepare({
|
|
415
415
|
...configOptions(opts),
|
|
416
416
|
...opts.project !== void 0 ? { project: opts.project } : {},
|
|
@@ -447,7 +447,7 @@ function buildProgram() {
|
|
|
447
447
|
throw new TracevalsError(`tracevals check takes one trace, got ${String(traces.length)}`);
|
|
448
448
|
}
|
|
449
449
|
whole("--runs", opts.runs, 1);
|
|
450
|
-
const { runCheck } = await import("./check-
|
|
450
|
+
const { runCheck } = await import("./check-NBN2YK2J.js");
|
|
451
451
|
const { report, rendered } = await runCheck({
|
|
452
452
|
...configOptions(opts),
|
|
453
453
|
tracePath: trace,
|
|
@@ -518,4 +518,4 @@ function buildProgram() {
|
|
|
518
518
|
export {
|
|
519
519
|
buildProgram
|
|
520
520
|
};
|
|
521
|
-
//# sourceMappingURL=cli-
|
|
521
|
+
//# sourceMappingURL=cli-L5B2RVV2.js.map
|
|
@@ -11,15 +11,15 @@ import {
|
|
|
11
11
|
runPromote,
|
|
12
12
|
runReview,
|
|
13
13
|
seedGoldenCases
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3HUCB4Z3.js";
|
|
15
15
|
import {
|
|
16
16
|
renderList,
|
|
17
17
|
runList
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-OREHJQNN.js";
|
|
19
19
|
import {
|
|
20
20
|
runRun
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-KE2F7QES.js";
|
|
22
|
+
import "./chunk-OBXCJZ6R.js";
|
|
23
23
|
import "./chunk-SSQZB5SQ.js";
|
|
24
24
|
import {
|
|
25
25
|
allowExecutionMessage,
|
|
@@ -38,19 +38,19 @@ import {
|
|
|
38
38
|
DocevalsError
|
|
39
39
|
} from "./chunk-SE4JN5XN.js";
|
|
40
40
|
import "./chunk-YUTVAMWW.js";
|
|
41
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-HIEGOW7X.js";
|
|
42
42
|
import {
|
|
43
43
|
terminalConfirm
|
|
44
|
-
} from "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
44
|
+
} from "./chunk-IGQMBHFY.js";
|
|
45
|
+
import "./chunk-OUAH7XF2.js";
|
|
46
|
+
import "./chunk-BMBAAPGN.js";
|
|
47
|
+
import "./chunk-52WO7ESI.js";
|
|
48
48
|
import {
|
|
49
49
|
collect,
|
|
50
50
|
configOption
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-LNGSE7V2.js";
|
|
52
52
|
import "./chunk-DSWKBZWW.js";
|
|
53
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-HY6ROJTH.js";
|
|
54
54
|
import "./chunk-77AINBYM.js";
|
|
55
55
|
import "./chunk-MNH7QO4Z.js";
|
|
56
56
|
import {
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
} from "./chunk-VM7VAFJW.js";
|
|
70
70
|
import {
|
|
71
71
|
package_default
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-HKTGHLBA.js";
|
|
73
73
|
import "./chunk-OWBRDNRZ.js";
|
|
74
74
|
import "./chunk-G3T47CFV.js";
|
|
75
75
|
import "./chunk-2H7UOFLK.js";
|
|
@@ -475,4 +475,4 @@ export {
|
|
|
475
475
|
buildProgram,
|
|
476
476
|
colorFor
|
|
477
477
|
};
|
|
478
|
-
//# sourceMappingURL=cli-
|
|
478
|
+
//# sourceMappingURL=cli-RP5E7XHC.js.map
|