@hawkeyexl/manni 4.14.0 → 4.15.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-TKNIUBLK.js → batch-OMDKRGUE.js} +13 -13
- package/dist/{build-6G7PEAG4.js → build-YCY5MUHA.js} +13 -13
- package/dist/{calibrate-BDCXDZV5.js → calibrate-RN2NJ4FS.js} +14 -14
- package/dist/{capture-NQJLZD66.js → capture-2WYROZKA.js} +13 -13
- package/dist/{check-BSB4FF4L.js → check-KRVWHF7E.js} +12 -12
- package/dist/{check-QIZCTAIR.js → check-LVUTWAGR.js} +14 -14
- package/dist/{check-552X5I2J.js → check-MR7IG7IP.js} +14 -14
- package/dist/{check-5HMDJOFP.js → check-OIRJ6OBW.js} +13 -13
- package/dist/{chunk-7PENJOI6.js → chunk-3CSEHHKB.js} +6 -6
- package/dist/{chunk-Y36PNW6J.js → chunk-3EJVJDMX.js} +6 -6
- package/dist/{chunk-V6OCE4ND.js → chunk-3WQMMLIO.js} +7 -7
- package/dist/{chunk-742G2QCV.js → chunk-46OWIAAX.js} +3 -3
- package/dist/{chunk-742G2QCV.js.map → chunk-46OWIAAX.js.map} +1 -1
- package/dist/{chunk-36FJWJSK.js → chunk-476DMDJ5.js} +2 -2
- package/dist/{chunk-7KOWE4F4.js → chunk-4MYW2D2U.js} +8 -8
- package/dist/{chunk-6XFSZCLT.js → chunk-525KMBZS.js} +4 -4
- package/dist/{chunk-ZRQUQS7P.js → chunk-57DHX65T.js} +3 -3
- package/dist/{chunk-PCE7QHXJ.js → chunk-5D24C6WM.js} +6 -1
- package/dist/chunk-5D24C6WM.js.map +1 -0
- package/dist/{chunk-QF7EIRMU.js → chunk-6DYFWAZA.js} +541 -343
- package/dist/chunk-6DYFWAZA.js.map +1 -0
- package/dist/{chunk-7WVWGULD.js → chunk-7EKXSSEO.js} +5 -5
- package/dist/{chunk-LCRBR7KW.js → chunk-7SVFBJBE.js} +2 -2
- package/dist/{chunk-Y37VJFX2.js → chunk-7XHW5DZA.js} +3 -3
- package/dist/{chunk-3MTZZJKH.js → chunk-AL4HRKSZ.js} +2 -2
- package/dist/{chunk-T3BBNLAT.js → chunk-C37OVJ35.js} +2 -2
- package/dist/{chunk-T3BBNLAT.js.map → chunk-C37OVJ35.js.map} +1 -1
- package/dist/{chunk-3BMTCS4H.js → chunk-CWGBRWP7.js} +3 -3
- package/dist/{chunk-7AXJY4FX.js → chunk-DN4LCWSA.js} +3 -3
- package/dist/{chunk-W5DO426O.js → chunk-DW22KCLN.js} +5 -6
- package/dist/chunk-DW22KCLN.js.map +1 -0
- package/dist/{chunk-BA4TCCOO.js → chunk-FEEO7ET6.js} +3 -3
- package/dist/{chunk-ZPLIXZZ6.js → chunk-FYWQS35G.js} +2 -2
- package/dist/{chunk-W6B24IMO.js → chunk-GLQCSDFS.js} +2 -2
- package/dist/{chunk-GHZAOPGK.js → chunk-GUTAKJIF.js} +4 -4
- package/dist/{chunk-AJYUJ37M.js → chunk-GZHBMMDC.js} +17 -10
- package/dist/chunk-GZHBMMDC.js.map +1 -0
- package/dist/{chunk-D2TIZOMN.js → chunk-IE5PXI6M.js} +3 -3
- package/dist/{chunk-2A6XYSXO.js → chunk-JHE3CYWS.js} +2 -2
- package/dist/{chunk-M534DYAJ.js → chunk-JQPZKWIP.js} +2 -2
- package/dist/{chunk-JTEWU4C6.js → chunk-JTATFPWB.js} +7 -6
- package/dist/chunk-JTATFPWB.js.map +1 -0
- package/dist/{chunk-M43NTWVH.js → chunk-JULE3EU3.js} +5 -5
- package/dist/{chunk-BAWKNF6U.js → chunk-KCXQXKOL.js} +2 -2
- package/dist/{chunk-A7MNH4YI.js → chunk-KN37BXVY.js} +7 -7
- package/dist/{chunk-CZJNYHK7.js → chunk-MAOX3524.js} +2 -2
- package/dist/{chunk-56URKBXQ.js → chunk-NIQ2JSZO.js} +23 -14
- package/dist/chunk-NIQ2JSZO.js.map +1 -0
- package/dist/{chunk-BIRGZEWO.js → chunk-OFOIBV5J.js} +2 -2
- package/dist/{chunk-VBBJGFME.js → chunk-Q2VOXKAQ.js} +4 -4
- package/dist/{chunk-6VT3Z352.js → chunk-Q62Q7CDI.js} +67 -4
- package/dist/chunk-Q62Q7CDI.js.map +1 -0
- package/dist/{chunk-2HQSMZ4N.js → chunk-QDO5JFFV.js} +2 -2
- package/dist/{chunk-JWBS7YDI.js → chunk-QEJ4GH25.js} +3 -3
- package/dist/{chunk-3CCY7M3R.js → chunk-QS3K57OJ.js} +4 -4
- package/dist/{chunk-YJ3EG2D5.js → chunk-RGRNAQG5.js} +3 -3
- package/dist/{chunk-USKTLEPZ.js → chunk-SLGCRXHM.js} +3 -3
- package/dist/{chunk-WIPTWZVH.js → chunk-SVF3WCC7.js} +5 -5
- package/dist/{chunk-66MKBRTA.js → chunk-T62SFCQY.js} +6 -6
- package/dist/{chunk-EXAZ7K25.js → chunk-TXZJESES.js} +2 -2
- package/dist/{chunk-4U3X7LYV.js → chunk-UPUJJOKB.js} +4 -4
- package/dist/{chunk-MIGFQP5N.js → chunk-URGALOZY.js} +2 -2
- package/dist/{chunk-QEZQ7MGH.js → chunk-UVLQRP6O.js} +4 -4
- package/dist/chunk-UVLQRP6O.js.map +1 -0
- package/dist/{chunk-IOYEPB27.js → chunk-Y3GWQBJP.js} +2 -2
- package/dist/{chunk-B6GUSA53.js → chunk-YT5HKJWV.js} +489 -15
- package/dist/chunk-YT5HKJWV.js.map +1 -0
- package/dist/{chunk-HGU4FDRY.js → chunk-Z6PZKXSP.js} +4 -4
- package/dist/{chunk-STM3G7WJ.js → chunk-ZC2MZZR5.js} +4 -4
- package/dist/{cli-XAT673VB.js → cli-33E3B2FK.js} +2 -2
- package/dist/{cli-SOA2E26G.js → cli-7JV4RM66.js} +14 -14
- package/dist/{cli-X6IWTDFK.js → cli-B4DTJ2KC.js} +20 -20
- package/dist/{cli-VQYB3663.js → cli-D4WXCDTS.js} +18 -18
- package/dist/{cli-BUV3DRUH.js → cli-DDLLZHZW.js} +79 -19
- package/dist/cli-DDLLZHZW.js.map +1 -0
- package/dist/{cli-5XKHMRZ5.js → cli-EVACAD7K.js} +16 -16
- package/dist/{cli-LOND37OA.js → cli-LIKI7WPR.js} +36 -36
- package/dist/{cli-O6Y2KVWD.js → cli-MWUFAS2X.js} +9 -9
- package/dist/{cli-7QHJW5GH.js → cli-OKPRTVG6.js} +2 -2
- package/dist/{cli-IKDX2I5X.js → cli-QEPVGLQ3.js} +15 -15
- package/dist/{cli-QTLOAVOY.js → cli-VP6JTPFS.js} +9 -9
- package/dist/cli.js +14 -14
- package/dist/docmeta.js +8 -8
- package/dist/{github-XM36D7ZH.js → github-DV57TW5L.js} +12 -12
- package/dist/{github-IPBOTQBN.js → github-SGX2EARO.js} +14 -14
- package/dist/index.d.ts +130 -25
- package/dist/index.js +38 -38
- package/dist/{json-7WV7KL6H.js → json-5EQCGVCV.js} +4 -2
- package/dist/{json-225TND7K.js → json-SHPUCD64.js} +12 -12
- package/dist/{labels-CTLHIRC4.js → labels-3GCGYYV3.js} +11 -11
- package/dist/{lint-NP3PC3SO.js → lint-RE4DMI6E.js} +12 -12
- package/dist/{list-JJGNKO6S.js → list-F56MEJXR.js} +12 -12
- package/dist/{list-Q457TIMA.js → list-ZR3KY556.js} +12 -12
- package/dist/{page-FJW7J2EU.js → page-G7XSO4FD.js} +11 -11
- package/dist/{prepare-RKJEKHAG.js → prepare-WHMWP7BG.js} +12 -12
- package/dist/{pretty-QFEN2SIA.js → pretty-VTJVXWRK.js} +12 -12
- package/dist/{pretty-ECBO3EVT.js → pretty-YVRRWBWN.js} +21 -15
- package/dist/{reporters-TDQDQHKE.js → reporters-FSXJ42EB.js} +2 -2
- package/dist/{reporters-WGLQKW2Y.js → reporters-G5R4SURQ.js} +4 -4
- package/dist/{reporters-IKKL5RHS.js → reporters-MHPY4HRA.js} +11 -11
- package/dist/{run-BTETGGLW.js → run-FSYOYEPR.js} +13 -13
- package/dist/{sarif-K4SMB563.js → sarif-HBQIDY7T.js} +10 -10
- package/dist/{sarif-ZHFK6PZY.js → sarif-RRUFJZUL.js} +15 -15
- package/dist/{term-2M7APX2A.js → term-ABHGACYE.js} +17 -17
- package/dist/{validate-GBM5STKS.js → validate-DXYUUGUD.js} +5 -5
- package/package.json +1 -1
- package/plugin/manni/.claude-plugin/plugin.json +1 -1
- package/dist/chunk-56URKBXQ.js.map +0 -1
- package/dist/chunk-6VT3Z352.js.map +0 -1
- package/dist/chunk-AJYUJ37M.js.map +0 -1
- package/dist/chunk-B6GUSA53.js.map +0 -1
- package/dist/chunk-JTEWU4C6.js.map +0 -1
- package/dist/chunk-PCE7QHXJ.js.map +0 -1
- package/dist/chunk-QEZQ7MGH.js.map +0 -1
- package/dist/chunk-QF7EIRMU.js.map +0 -1
- package/dist/chunk-W5DO426O.js.map +0 -1
- package/dist/cli-BUV3DRUH.js.map +0 -1
- /package/dist/{batch-TKNIUBLK.js.map → batch-OMDKRGUE.js.map} +0 -0
- /package/dist/{build-6G7PEAG4.js.map → build-YCY5MUHA.js.map} +0 -0
- /package/dist/{calibrate-BDCXDZV5.js.map → calibrate-RN2NJ4FS.js.map} +0 -0
- /package/dist/{capture-NQJLZD66.js.map → capture-2WYROZKA.js.map} +0 -0
- /package/dist/{check-552X5I2J.js.map → check-KRVWHF7E.js.map} +0 -0
- /package/dist/{check-QIZCTAIR.js.map → check-LVUTWAGR.js.map} +0 -0
- /package/dist/{check-5HMDJOFP.js.map → check-MR7IG7IP.js.map} +0 -0
- /package/dist/{check-BSB4FF4L.js.map → check-OIRJ6OBW.js.map} +0 -0
- /package/dist/{chunk-7PENJOI6.js.map → chunk-3CSEHHKB.js.map} +0 -0
- /package/dist/{chunk-Y36PNW6J.js.map → chunk-3EJVJDMX.js.map} +0 -0
- /package/dist/{chunk-V6OCE4ND.js.map → chunk-3WQMMLIO.js.map} +0 -0
- /package/dist/{chunk-36FJWJSK.js.map → chunk-476DMDJ5.js.map} +0 -0
- /package/dist/{chunk-7KOWE4F4.js.map → chunk-4MYW2D2U.js.map} +0 -0
- /package/dist/{chunk-6XFSZCLT.js.map → chunk-525KMBZS.js.map} +0 -0
- /package/dist/{chunk-ZRQUQS7P.js.map → chunk-57DHX65T.js.map} +0 -0
- /package/dist/{chunk-7WVWGULD.js.map → chunk-7EKXSSEO.js.map} +0 -0
- /package/dist/{chunk-LCRBR7KW.js.map → chunk-7SVFBJBE.js.map} +0 -0
- /package/dist/{chunk-Y37VJFX2.js.map → chunk-7XHW5DZA.js.map} +0 -0
- /package/dist/{chunk-3MTZZJKH.js.map → chunk-AL4HRKSZ.js.map} +0 -0
- /package/dist/{chunk-3BMTCS4H.js.map → chunk-CWGBRWP7.js.map} +0 -0
- /package/dist/{chunk-7AXJY4FX.js.map → chunk-DN4LCWSA.js.map} +0 -0
- /package/dist/{chunk-BA4TCCOO.js.map → chunk-FEEO7ET6.js.map} +0 -0
- /package/dist/{chunk-ZPLIXZZ6.js.map → chunk-FYWQS35G.js.map} +0 -0
- /package/dist/{chunk-W6B24IMO.js.map → chunk-GLQCSDFS.js.map} +0 -0
- /package/dist/{chunk-GHZAOPGK.js.map → chunk-GUTAKJIF.js.map} +0 -0
- /package/dist/{chunk-D2TIZOMN.js.map → chunk-IE5PXI6M.js.map} +0 -0
- /package/dist/{chunk-2A6XYSXO.js.map → chunk-JHE3CYWS.js.map} +0 -0
- /package/dist/{chunk-M534DYAJ.js.map → chunk-JQPZKWIP.js.map} +0 -0
- /package/dist/{chunk-M43NTWVH.js.map → chunk-JULE3EU3.js.map} +0 -0
- /package/dist/{chunk-BAWKNF6U.js.map → chunk-KCXQXKOL.js.map} +0 -0
- /package/dist/{chunk-A7MNH4YI.js.map → chunk-KN37BXVY.js.map} +0 -0
- /package/dist/{chunk-CZJNYHK7.js.map → chunk-MAOX3524.js.map} +0 -0
- /package/dist/{chunk-BIRGZEWO.js.map → chunk-OFOIBV5J.js.map} +0 -0
- /package/dist/{chunk-VBBJGFME.js.map → chunk-Q2VOXKAQ.js.map} +0 -0
- /package/dist/{chunk-2HQSMZ4N.js.map → chunk-QDO5JFFV.js.map} +0 -0
- /package/dist/{chunk-JWBS7YDI.js.map → chunk-QEJ4GH25.js.map} +0 -0
- /package/dist/{chunk-3CCY7M3R.js.map → chunk-QS3K57OJ.js.map} +0 -0
- /package/dist/{chunk-YJ3EG2D5.js.map → chunk-RGRNAQG5.js.map} +0 -0
- /package/dist/{chunk-USKTLEPZ.js.map → chunk-SLGCRXHM.js.map} +0 -0
- /package/dist/{chunk-WIPTWZVH.js.map → chunk-SVF3WCC7.js.map} +0 -0
- /package/dist/{chunk-66MKBRTA.js.map → chunk-T62SFCQY.js.map} +0 -0
- /package/dist/{chunk-EXAZ7K25.js.map → chunk-TXZJESES.js.map} +0 -0
- /package/dist/{chunk-4U3X7LYV.js.map → chunk-UPUJJOKB.js.map} +0 -0
- /package/dist/{chunk-MIGFQP5N.js.map → chunk-URGALOZY.js.map} +0 -0
- /package/dist/{chunk-IOYEPB27.js.map → chunk-Y3GWQBJP.js.map} +0 -0
- /package/dist/{chunk-HGU4FDRY.js.map → chunk-Z6PZKXSP.js.map} +0 -0
- /package/dist/{chunk-STM3G7WJ.js.map → chunk-ZC2MZZR5.js.map} +0 -0
- /package/dist/{cli-XAT673VB.js.map → cli-33E3B2FK.js.map} +0 -0
- /package/dist/{cli-SOA2E26G.js.map → cli-7JV4RM66.js.map} +0 -0
- /package/dist/{cli-X6IWTDFK.js.map → cli-B4DTJ2KC.js.map} +0 -0
- /package/dist/{cli-VQYB3663.js.map → cli-D4WXCDTS.js.map} +0 -0
- /package/dist/{cli-5XKHMRZ5.js.map → cli-EVACAD7K.js.map} +0 -0
- /package/dist/{cli-LOND37OA.js.map → cli-LIKI7WPR.js.map} +0 -0
- /package/dist/{cli-O6Y2KVWD.js.map → cli-MWUFAS2X.js.map} +0 -0
- /package/dist/{cli-7QHJW5GH.js.map → cli-OKPRTVG6.js.map} +0 -0
- /package/dist/{cli-IKDX2I5X.js.map → cli-QEPVGLQ3.js.map} +0 -0
- /package/dist/{cli-QTLOAVOY.js.map → cli-VP6JTPFS.js.map} +0 -0
- /package/dist/{github-IPBOTQBN.js.map → github-DV57TW5L.js.map} +0 -0
- /package/dist/{github-XM36D7ZH.js.map → github-SGX2EARO.js.map} +0 -0
- /package/dist/{json-225TND7K.js.map → json-5EQCGVCV.js.map} +0 -0
- /package/dist/{json-7WV7KL6H.js.map → json-SHPUCD64.js.map} +0 -0
- /package/dist/{labels-CTLHIRC4.js.map → labels-3GCGYYV3.js.map} +0 -0
- /package/dist/{lint-NP3PC3SO.js.map → lint-RE4DMI6E.js.map} +0 -0
- /package/dist/{list-JJGNKO6S.js.map → list-F56MEJXR.js.map} +0 -0
- /package/dist/{list-Q457TIMA.js.map → list-ZR3KY556.js.map} +0 -0
- /package/dist/{page-FJW7J2EU.js.map → page-G7XSO4FD.js.map} +0 -0
- /package/dist/{prepare-RKJEKHAG.js.map → prepare-WHMWP7BG.js.map} +0 -0
- /package/dist/{pretty-ECBO3EVT.js.map → pretty-VTJVXWRK.js.map} +0 -0
- /package/dist/{pretty-QFEN2SIA.js.map → pretty-YVRRWBWN.js.map} +0 -0
- /package/dist/{reporters-IKKL5RHS.js.map → reporters-FSXJ42EB.js.map} +0 -0
- /package/dist/{reporters-TDQDQHKE.js.map → reporters-G5R4SURQ.js.map} +0 -0
- /package/dist/{reporters-WGLQKW2Y.js.map → reporters-MHPY4HRA.js.map} +0 -0
- /package/dist/{run-BTETGGLW.js.map → run-FSYOYEPR.js.map} +0 -0
- /package/dist/{sarif-K4SMB563.js.map → sarif-HBQIDY7T.js.map} +0 -0
- /package/dist/{sarif-ZHFK6PZY.js.map → sarif-RRUFJZUL.js.map} +0 -0
- /package/dist/{term-2M7APX2A.js.map → term-ABHGACYE.js.map} +0 -0
- /package/dist/{validate-GBM5STKS.js.map → validate-DXYUUGUD.js.map} +0 -0
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
loadTemplateFile,
|
|
9
9
|
resolveLintRun,
|
|
10
10
|
resolveStructureTool
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-QS3K57OJ.js";
|
|
12
12
|
import {
|
|
13
13
|
parserByName,
|
|
14
14
|
parserForExtension,
|
|
15
15
|
unsupportedFormatMessage
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AL4HRKSZ.js";
|
|
17
17
|
import {
|
|
18
18
|
BLOCK_KINDS,
|
|
19
19
|
BLOCK_KIND_NODE,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./chunk-TKINOTVS.js";
|
|
26
26
|
import {
|
|
27
27
|
writeTextAtomic
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-476DMDJ5.js";
|
|
29
29
|
import {
|
|
30
30
|
palette
|
|
31
31
|
} from "./chunk-RNVYGWIC.js";
|
|
@@ -525,4 +525,4 @@ export {
|
|
|
525
525
|
occurrenceWords,
|
|
526
526
|
renderTemplateShow
|
|
527
527
|
};
|
|
528
|
-
//# sourceMappingURL=chunk-
|
|
528
|
+
//# sourceMappingURL=chunk-Z6PZKXSP.js.map
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
readQuestionFile,
|
|
27
27
|
readSampleQuestions,
|
|
28
28
|
withPrefix
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-3CSEHHKB.js";
|
|
30
30
|
import {
|
|
31
31
|
packageRoot
|
|
32
32
|
} from "./chunk-TIUTIOFB.js";
|
|
@@ -37,10 +37,10 @@ import {
|
|
|
37
37
|
spellLines,
|
|
38
38
|
splitLines,
|
|
39
39
|
toFileLines
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-476DMDJ5.js";
|
|
41
41
|
import {
|
|
42
42
|
locateFrontmatter
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-OFOIBV5J.js";
|
|
44
44
|
import {
|
|
45
45
|
warn
|
|
46
46
|
} from "./chunk-HX44GB4Z.js";
|
|
@@ -2397,4 +2397,4 @@ export {
|
|
|
2397
2397
|
askSampleQuestions,
|
|
2398
2398
|
exportSampleQuestions
|
|
2399
2399
|
};
|
|
2400
|
-
//# sourceMappingURL=chunk-
|
|
2400
|
+
//# sourceMappingURL=chunk-ZC2MZZR5.js.map
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
import "./chunk-VM7VAFJW.js";
|
|
19
19
|
import {
|
|
20
20
|
package_default
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-C37OVJ35.js";
|
|
22
22
|
import "./chunk-OWBRDNRZ.js";
|
|
23
23
|
import {
|
|
24
24
|
ToolError,
|
|
@@ -836,4 +836,4 @@ function buildProgram() {
|
|
|
836
836
|
export {
|
|
837
837
|
buildProgram
|
|
838
838
|
};
|
|
839
|
-
//# sourceMappingURL=cli-
|
|
839
|
+
//# sourceMappingURL=cli-33E3B2FK.js.map
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
runTemplates,
|
|
10
10
|
runTemplatesInfer,
|
|
11
11
|
runTools
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Z6PZKXSP.js";
|
|
13
13
|
import {
|
|
14
14
|
render,
|
|
15
15
|
renderTemplates,
|
|
16
16
|
renderTools
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-525KMBZS.js";
|
|
18
18
|
import "./chunk-GLP5PSXB.js";
|
|
19
19
|
import {
|
|
20
20
|
LINT_JOBS,
|
|
@@ -23,26 +23,26 @@ import {
|
|
|
23
23
|
rebaseConfig,
|
|
24
24
|
resolveStructureTool,
|
|
25
25
|
runLint
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-QS3K57OJ.js";
|
|
27
27
|
import "./chunk-ZMECS2IJ.js";
|
|
28
28
|
import "./chunk-TIUTIOFB.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-AL4HRKSZ.js";
|
|
30
30
|
import "./chunk-JNMY7KZG.js";
|
|
31
31
|
import {
|
|
32
32
|
LintError
|
|
33
33
|
} from "./chunk-TKINOTVS.js";
|
|
34
34
|
import "./chunk-YUTVAMWW.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-DN4LCWSA.js";
|
|
36
|
+
import "./chunk-57DHX65T.js";
|
|
37
|
+
import "./chunk-T62SFCQY.js";
|
|
38
|
+
import "./chunk-MAOX3524.js";
|
|
39
39
|
import {
|
|
40
40
|
OMITTED_WHEN_CLEAN,
|
|
41
41
|
REPORT_FORMATS,
|
|
42
42
|
REPORT_FORMAT_LIST,
|
|
43
43
|
isReportFormat
|
|
44
|
-
} from "./chunk-
|
|
45
|
-
import "./chunk-
|
|
44
|
+
} from "./chunk-CWGBRWP7.js";
|
|
45
|
+
import "./chunk-IE5PXI6M.js";
|
|
46
46
|
import {
|
|
47
47
|
collect,
|
|
48
48
|
configOption,
|
|
@@ -50,11 +50,11 @@ import {
|
|
|
50
50
|
readStdin,
|
|
51
51
|
reportConfig,
|
|
52
52
|
splitList
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-476DMDJ5.js";
|
|
54
54
|
import "./chunk-DSWKBZWW.js";
|
|
55
55
|
import {
|
|
56
56
|
STDIN_TOKEN
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-OFOIBV5J.js";
|
|
58
58
|
import "./chunk-QK6VYJHV.js";
|
|
59
59
|
import {
|
|
60
60
|
shouldColor
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
import "./chunk-VM7VAFJW.js";
|
|
70
70
|
import {
|
|
71
71
|
package_default
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-C37OVJ35.js";
|
|
73
73
|
import "./chunk-OWBRDNRZ.js";
|
|
74
74
|
import "./chunk-G3T47CFV.js";
|
|
75
75
|
import "./chunk-2H7UOFLK.js";
|
|
@@ -389,4 +389,4 @@ function buildProgram() {
|
|
|
389
389
|
export {
|
|
390
390
|
buildProgram
|
|
391
391
|
};
|
|
392
|
-
//# sourceMappingURL=cli-
|
|
392
|
+
//# sourceMappingURL=cli-7JV4RM66.js.map
|
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
renderList,
|
|
4
4
|
runFill,
|
|
5
5
|
runList
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3EJVJDMX.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-3WQMMLIO.js";
|
|
14
|
+
import "./chunk-TXZJESES.js";
|
|
15
15
|
import "./chunk-FQGLRJGX.js";
|
|
16
16
|
import "./chunk-VHJ72YCD.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-GLQCSDFS.js";
|
|
18
|
+
import "./chunk-SLGCRXHM.js";
|
|
19
19
|
import "./chunk-QSPH4F56.js";
|
|
20
20
|
import "./chunk-6WJUZQQX.js";
|
|
21
21
|
import "./chunk-JCTHXG33.js";
|
|
@@ -32,20 +32,20 @@ import {
|
|
|
32
32
|
import "./chunk-ZPLVANY2.js";
|
|
33
33
|
import "./chunk-QS2Z3SWL.js";
|
|
34
34
|
import "./chunk-YUTVAMWW.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-DN4LCWSA.js";
|
|
36
|
+
import "./chunk-57DHX65T.js";
|
|
37
37
|
import {
|
|
38
38
|
terminalConfirm
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-T62SFCQY.js";
|
|
40
|
+
import "./chunk-MAOX3524.js";
|
|
41
|
+
import "./chunk-CWGBRWP7.js";
|
|
42
|
+
import "./chunk-IE5PXI6M.js";
|
|
43
43
|
import {
|
|
44
44
|
collect,
|
|
45
45
|
configOption
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-476DMDJ5.js";
|
|
47
47
|
import "./chunk-DSWKBZWW.js";
|
|
48
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-OFOIBV5J.js";
|
|
49
49
|
import "./chunk-77AINBYM.js";
|
|
50
50
|
import "./chunk-QK6VYJHV.js";
|
|
51
51
|
import {
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
} from "./chunk-VM7VAFJW.js";
|
|
64
64
|
import {
|
|
65
65
|
package_default
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-C37OVJ35.js";
|
|
67
67
|
import "./chunk-OWBRDNRZ.js";
|
|
68
68
|
import "./chunk-G3T47CFV.js";
|
|
69
69
|
import "./chunk-2H7UOFLK.js";
|
|
@@ -164,7 +164,7 @@ function buildProgram() {
|
|
|
164
164
|
"--manifest names one session's manifest, so it cannot be used with a corpus; drop it and each trace will find its own"
|
|
165
165
|
);
|
|
166
166
|
}
|
|
167
|
-
const { runBatch } = await import("./batch-
|
|
167
|
+
const { runBatch } = await import("./batch-OMDKRGUE.js");
|
|
168
168
|
const { report: report2, rendered: rendered2 } = await runBatch({
|
|
169
169
|
...shared,
|
|
170
170
|
...traces.length > 0 ? { traces } : {}
|
|
@@ -283,7 +283,7 @@ function buildProgram() {
|
|
|
283
283
|
whole("--max-false-pass", opts.maxFalsePass, 0);
|
|
284
284
|
whole("--max-false-fail", opts.maxFalseFail, 0);
|
|
285
285
|
whole("--max-review", opts.maxReview, 0);
|
|
286
|
-
const { runCalibrate } = await import("./calibrate-
|
|
286
|
+
const { runCalibrate } = await import("./calibrate-RN2NJ4FS.js");
|
|
287
287
|
const { report, rendered } = await runCalibrate({
|
|
288
288
|
...shared,
|
|
289
289
|
...traces.length > 0 ? { traces } : {},
|
|
@@ -385,7 +385,7 @@ function buildProgram() {
|
|
|
385
385
|
"pretty"
|
|
386
386
|
).action(async (opts) => {
|
|
387
387
|
try {
|
|
388
|
-
const { runCapture } = await import("./capture-
|
|
388
|
+
const { runCapture } = await import("./capture-2WYROZKA.js");
|
|
389
389
|
const result = await runCapture({
|
|
390
390
|
version,
|
|
391
391
|
...configOptions(opts),
|
|
@@ -412,7 +412,7 @@ function buildProgram() {
|
|
|
412
412
|
"pretty"
|
|
413
413
|
).action(async (opts) => {
|
|
414
414
|
try {
|
|
415
|
-
const { runPrepare } = await import("./prepare-
|
|
415
|
+
const { runPrepare } = await import("./prepare-WHMWP7BG.js");
|
|
416
416
|
const result = await runPrepare({
|
|
417
417
|
...configOptions(opts),
|
|
418
418
|
...opts.project !== void 0 ? { project: opts.project } : {},
|
|
@@ -449,7 +449,7 @@ function buildProgram() {
|
|
|
449
449
|
throw new TracevalsError(`tracevals check takes one trace, got ${String(traces.length)}`);
|
|
450
450
|
}
|
|
451
451
|
whole("--runs", opts.runs, 1);
|
|
452
|
-
const { runCheck } = await import("./check-
|
|
452
|
+
const { runCheck } = await import("./check-LVUTWAGR.js");
|
|
453
453
|
const { report, rendered } = await runCheck({
|
|
454
454
|
...configOptions(opts),
|
|
455
455
|
tracePath: trace,
|
|
@@ -520,4 +520,4 @@ function buildProgram() {
|
|
|
520
520
|
export {
|
|
521
521
|
buildProgram
|
|
522
522
|
};
|
|
523
|
-
//# sourceMappingURL=cli-
|
|
523
|
+
//# sourceMappingURL=cli-B4DTJ2KC.js.map
|
|
@@ -3,31 +3,31 @@ import {
|
|
|
3
3
|
KeyError,
|
|
4
4
|
runKeyRotate,
|
|
5
5
|
runKeySet
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-NIQ2JSZO.js";
|
|
7
|
+
import "./chunk-YT5HKJWV.js";
|
|
8
|
+
import "./chunk-6DYFWAZA.js";
|
|
9
|
+
import "./chunk-5D24C6WM.js";
|
|
10
|
+
import "./chunk-QEJ4GH25.js";
|
|
11
|
+
import "./chunk-Q62Q7CDI.js";
|
|
12
|
+
import "./chunk-GZHBMMDC.js";
|
|
13
|
+
import "./chunk-UVLQRP6O.js";
|
|
14
14
|
import "./chunk-IKEWBMCN.js";
|
|
15
15
|
import "./chunk-YUTVAMWW.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-DN4LCWSA.js";
|
|
17
|
+
import "./chunk-57DHX65T.js";
|
|
18
|
+
import "./chunk-T62SFCQY.js";
|
|
19
|
+
import "./chunk-MAOX3524.js";
|
|
20
20
|
import {
|
|
21
21
|
COMMON_FORMAT_LIST
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-CWGBRWP7.js";
|
|
23
|
+
import "./chunk-IE5PXI6M.js";
|
|
24
24
|
import {
|
|
25
25
|
collect,
|
|
26
26
|
explicitFalse,
|
|
27
27
|
splitList
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-476DMDJ5.js";
|
|
29
29
|
import "./chunk-DSWKBZWW.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-OFOIBV5J.js";
|
|
31
31
|
import "./chunk-77AINBYM.js";
|
|
32
32
|
import "./chunk-QK6VYJHV.js";
|
|
33
33
|
import {
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
import "./chunk-VM7VAFJW.js";
|
|
45
45
|
import {
|
|
46
46
|
package_default
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-C37OVJ35.js";
|
|
48
48
|
import "./chunk-OWBRDNRZ.js";
|
|
49
49
|
import "./chunk-G3T47CFV.js";
|
|
50
50
|
import "./chunk-2H7UOFLK.js";
|
|
@@ -233,4 +233,4 @@ function buildProgram() {
|
|
|
233
233
|
export {
|
|
234
234
|
buildProgram
|
|
235
235
|
};
|
|
236
|
-
//# sourceMappingURL=cli-
|
|
236
|
+
//# sourceMappingURL=cli-D4WXCDTS.js.map
|
|
@@ -3,47 +3,50 @@ import {
|
|
|
3
3
|
ENTRY_LABEL,
|
|
4
4
|
renderCheckSarif,
|
|
5
5
|
withFindingMessages
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7EKXSSEO.js";
|
|
7
7
|
import {
|
|
8
8
|
runAdd,
|
|
9
|
+
runHistory,
|
|
9
10
|
runRemove,
|
|
10
11
|
runUpdate
|
|
11
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YT5HKJWV.js";
|
|
12
13
|
import {
|
|
13
14
|
runCheck
|
|
14
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6DYFWAZA.js";
|
|
15
16
|
import {
|
|
16
17
|
renderCheckJson,
|
|
18
|
+
renderHistoryJson,
|
|
17
19
|
renderRemoveJson,
|
|
18
20
|
renderUpdateJson
|
|
19
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-5D24C6WM.js";
|
|
20
22
|
import {
|
|
21
23
|
renderCheckGithub
|
|
22
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QEJ4GH25.js";
|
|
23
25
|
import {
|
|
24
26
|
renderCheckPretty,
|
|
27
|
+
renderHistoryPretty,
|
|
25
28
|
renderRemovePretty,
|
|
26
29
|
renderUpdatePretty
|
|
27
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-Q62Q7CDI.js";
|
|
28
31
|
import {
|
|
29
32
|
shortCommit,
|
|
30
33
|
shortLine,
|
|
31
34
|
shortPin,
|
|
32
35
|
shortSrc
|
|
33
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-GZHBMMDC.js";
|
|
34
37
|
import {
|
|
35
38
|
CiteError,
|
|
36
39
|
asCiteError,
|
|
37
40
|
spellSource
|
|
38
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-UVLQRP6O.js";
|
|
39
42
|
import "./chunk-IKEWBMCN.js";
|
|
40
43
|
import "./chunk-YUTVAMWW.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-DN4LCWSA.js";
|
|
45
|
+
import "./chunk-57DHX65T.js";
|
|
43
46
|
import {
|
|
44
47
|
terminalConfirm
|
|
45
|
-
} from "./chunk-
|
|
46
|
-
import "./chunk-
|
|
48
|
+
} from "./chunk-T62SFCQY.js";
|
|
49
|
+
import "./chunk-MAOX3524.js";
|
|
47
50
|
import {
|
|
48
51
|
COMMON_FORMAT_LIST,
|
|
49
52
|
OMITTED_WHEN_CLEAN,
|
|
@@ -52,8 +55,8 @@ import {
|
|
|
52
55
|
isMachineFormat,
|
|
53
56
|
isReportFormat,
|
|
54
57
|
renderJunit
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import "./chunk-
|
|
58
|
+
} from "./chunk-CWGBRWP7.js";
|
|
59
|
+
import "./chunk-IE5PXI6M.js";
|
|
57
60
|
import {
|
|
58
61
|
collect,
|
|
59
62
|
configOption,
|
|
@@ -62,11 +65,11 @@ import {
|
|
|
62
65
|
reportConfig,
|
|
63
66
|
splitList,
|
|
64
67
|
splitPageArgument
|
|
65
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-476DMDJ5.js";
|
|
66
69
|
import "./chunk-DSWKBZWW.js";
|
|
67
70
|
import {
|
|
68
71
|
STDIN_TOKEN
|
|
69
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-OFOIBV5J.js";
|
|
70
73
|
import "./chunk-77AINBYM.js";
|
|
71
74
|
import "./chunk-QK6VYJHV.js";
|
|
72
75
|
import {
|
|
@@ -82,7 +85,7 @@ import {
|
|
|
82
85
|
import "./chunk-VM7VAFJW.js";
|
|
83
86
|
import {
|
|
84
87
|
package_default
|
|
85
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-C37OVJ35.js";
|
|
86
89
|
import "./chunk-OWBRDNRZ.js";
|
|
87
90
|
import "./chunk-G3T47CFV.js";
|
|
88
91
|
import "./chunk-2H7UOFLK.js";
|
|
@@ -103,6 +106,10 @@ function renderCheckJunit(run) {
|
|
|
103
106
|
// src/cite/cli.ts
|
|
104
107
|
var UPDATE_FORMATS = ["pretty", "json"];
|
|
105
108
|
var REMOVE_FORMATS = UPDATE_FORMATS;
|
|
109
|
+
var HISTORY_FORMATS = UPDATE_FORMATS;
|
|
110
|
+
function isHistoryFormat(value) {
|
|
111
|
+
return HISTORY_FORMATS.includes(value);
|
|
112
|
+
}
|
|
106
113
|
function colorFor(command, isTTY, env) {
|
|
107
114
|
const noColor = colorOwner(command).opts().color === false;
|
|
108
115
|
return shouldColor({ noColor, isTTY, env });
|
|
@@ -341,7 +348,7 @@ function buildProgram() {
|
|
|
341
348
|
[]
|
|
342
349
|
).option("--ext <list>", "comma-separated extensions for directory walks").option("--exclude <glob>", "glob to exclude; repeatable", collect, []).option("--as <format>", "force an input format for every input").option("-c, --config <path>", "path to a manni config file").option("--no-config", "ignore any discovered config file").option("--allow-empty", "treat zero matched files as success").option("--no-gitignore", "update files .gitignore covers").option("--no-check-sources", "refused: update needs the sources").option("--root <dir>", "directory src: paths resolve from (as check)").option("--accept", "re-mint changed and never-true entries at HEAD; prints old and new pins").option(
|
|
343
350
|
"--recommit",
|
|
344
|
-
"re-record commit-sha where the recorded commit does not contain
|
|
351
|
+
"re-record commit-sha to the commit where the pinned lines arrived on HEAD's history, where the recorded commit does not contain them or is outside that history"
|
|
345
352
|
).option("--only <id>", "limit to entries with this id; repeatable", collect, []).option("--dry-run", "print the diffs; write nothing").option(
|
|
346
353
|
"-f, --format <format>",
|
|
347
354
|
`output: ${UPDATE_FORMATS.join(" | ")}`,
|
|
@@ -489,6 +496,59 @@ function buildProgram() {
|
|
|
489
496
|
fail(err);
|
|
490
497
|
}
|
|
491
498
|
});
|
|
499
|
+
program.command("history").description("Walk the git history and report how long each pin stood stale, and which releases shipped it").argument("[paths...]", "files, directories, or globs whose citations are walked").option(
|
|
500
|
+
"--collection <name>",
|
|
501
|
+
"configured collection to walk; repeatable",
|
|
502
|
+
collect,
|
|
503
|
+
[]
|
|
504
|
+
).option("--ext <list>", "comma-separated extensions for directory walks").option("--exclude <glob>", "glob to exclude; repeatable", collect, []).option("--as <format>", "force the page format for every input").option("-c, --config <path>", "path to a manni config file").option("--no-config", "ignore any discovered config file").option("--allow-empty", "treat zero matched files as success").option("--no-gitignore", "walk pages .gitignore covers").option("--root <dir>", "directory src: paths resolve from (as check)").option(
|
|
505
|
+
"--newer-than <duration>",
|
|
506
|
+
"walk only the commits within this span of HEAD's committer time, e.g. 90d or 12w"
|
|
507
|
+
).option(
|
|
508
|
+
"-f, --format <format>",
|
|
509
|
+
`output: ${HISTORY_FORMATS.join(" | ")}`,
|
|
510
|
+
"pretty"
|
|
511
|
+
).addHelpText(
|
|
512
|
+
"after",
|
|
513
|
+
[
|
|
514
|
+
"",
|
|
515
|
+
"Examples:",
|
|
516
|
+
" manni cite history docs/limits.md # one page's stale windows",
|
|
517
|
+
" manni cite history # every collection",
|
|
518
|
+
" manni cite history -f json | jq .summary.staleSeconds",
|
|
519
|
+
" manni cite history --newer-than 90d # the last quarter only"
|
|
520
|
+
].join("\n")
|
|
521
|
+
).action(async (paths, options, command) => {
|
|
522
|
+
try {
|
|
523
|
+
const format = options.format;
|
|
524
|
+
if (!isHistoryFormat(format)) {
|
|
525
|
+
throw new CiteError(
|
|
526
|
+
`Unknown --format "${format}". Use ${COMMON_FORMAT_LIST}.`
|
|
527
|
+
);
|
|
528
|
+
}
|
|
529
|
+
const cwd = process.cwd();
|
|
530
|
+
const run = await runHistory({
|
|
531
|
+
inputs: paths,
|
|
532
|
+
collection: options.collection,
|
|
533
|
+
exts: options.ext ? splitList(options.ext) : void 0,
|
|
534
|
+
exclude: options.exclude,
|
|
535
|
+
as: options.as,
|
|
536
|
+
...configOption(options.config),
|
|
537
|
+
onConfigLoaded: reportConfig(format === "pretty", cwd),
|
|
538
|
+
allowEmpty: options.allowEmpty ? true : void 0,
|
|
539
|
+
respectGitignore: explicitFalse(options.gitignore),
|
|
540
|
+
onNotice: notice,
|
|
541
|
+
root: options.root,
|
|
542
|
+
newerThan: options.newerThan
|
|
543
|
+
});
|
|
544
|
+
const text = format === "json" ? renderHistoryJson(run) : renderHistoryPretty(run, { color: colorFor(command, process.stdout.isTTY) });
|
|
545
|
+
process.stdout.write(`${text}
|
|
546
|
+
`);
|
|
547
|
+
process.exitCode = 0;
|
|
548
|
+
} catch (err) {
|
|
549
|
+
fail(err);
|
|
550
|
+
}
|
|
551
|
+
});
|
|
492
552
|
return program;
|
|
493
553
|
}
|
|
494
554
|
export {
|
|
@@ -497,4 +557,4 @@ export {
|
|
|
497
557
|
colorFor,
|
|
498
558
|
splitPageArgument2 as splitPageArgument
|
|
499
559
|
};
|
|
500
|
-
//# sourceMappingURL=cli-
|
|
560
|
+
//# sourceMappingURL=cli-DDLLZHZW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/cite/cli.ts","../src/cite/reporters/junit.ts"],"sourcesContent":["/**\n * The `cite` domain's commander program. Mounted by `src/cli.ts` under\n * `manni cite`; no entry point of its own. Grammar per proposal 0034: verbs are\n * `check`, `add`, `update`, `remove`, `history`; there is no default subcommand.\n *\n * Follows clig.dev as meta's does: primary output to stdout, diagnostics to\n * stderr, colour only on a TTY and never under `NO_COLOR`/`--no-color`, exit\n * `0` clean, `1` an error-severity finding, `2` operational/usage.\n */\nimport { Command, Option } 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 { splitPageArgument as splitSharedPageArgument } from \"../shared/pin.js\";\nimport { terminalConfirm } from \"../shared/prompt.js\";\nimport { fail } from \"../shared/run.js\";\nimport { notice } from \"../shared/warn.js\";\nimport {\n COMMON_FORMAT_LIST,\n OMITTED_WHEN_CLEAN,\n REPORT_FORMAT_LIST,\n STDIN_TOKEN,\n isMachineFormat,\n} from \"../meta/internal.js\";\nimport { REPORT_FORMATS, isReportFormat } from \"../meta/index.js\";\nimport { runAdd } from \"./commands/add.js\";\nimport { runCheck } from \"./commands/check.js\";\nimport { runHistory } from \"./commands/history.js\";\nimport { runRemove } from \"./commands/remove.js\";\nimport { runUpdate } from \"./commands/update.js\";\nimport { CiteError, asCiteError } from \"./errors.js\";\nimport { spellSource } from \"./core/range.js\";\nimport { shortCommit, shortLine, shortPin, shortSrc } from \"./core/spell.js\";\nimport { renderCheckGithub } from \"./reporters/github.js\";\nimport { renderCheckJson, renderHistoryJson, renderRemoveJson, renderUpdateJson } from \"./reporters/json.js\";\nimport { renderCheckJunit } from \"./reporters/junit.js\";\nimport {\n renderCheckPretty,\n renderHistoryPretty,\n renderRemovePretty,\n renderUpdatePretty,\n} from \"./reporters/pretty.js\";\nimport { renderCheckSarif } from \"./reporters/sarif.js\";\nimport type { AddResult, PageLines } from \"./types.js\";\n\nconst UPDATE_FORMATS = [\"pretty\", \"json\"] as const;\ntype UpdateFormat = (typeof UPDATE_FORMATS)[number];\n/** The same two `update` has: a removal is a write, and writes report alike. */\nconst REMOVE_FORMATS = UPDATE_FORMATS;\ntype RemoveFormat = UpdateFormat;\n/** The same two again: a window is not a finding, so the finding sinks are left out. */\nconst HISTORY_FORMATS = UPDATE_FORMATS;\n\nfunction isHistoryFormat(value: string): value is UpdateFormat {\n return (HISTORY_FORMATS as readonly string[]).includes(value);\n}\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 */\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 `cite` program, wherever it is mounted. Not the root: under the\n * umbrella 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\nfunction isUpdateFormat(value: string): value is UpdateFormat {\n return (UPDATE_FORMATS as readonly string[]).includes(value);\n}\n\nfunction isRemoveFormat(value: string): value is RemoveFormat {\n return (REMOVE_FORMATS as readonly string[]).includes(value);\n}\n\n/**\n * Commander hands an `.action()` callback an untyped bag of option values, so\n * each subcommand declares the shape it actually reads. The `--no-<thing>`\n * flags are `boolean` and never `undefined`: commander supplies `true` when\n * the flag is absent, which is its default and not a choice, so only the\n * explicit `false` travels to the core (`explicitFalse`).\n */\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 an extractor. */\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 /** `--root <dir>`: where `src:` paths resolve from. */\n root?: string;\n}\n\ninterface CheckCliOptions extends InputCliOptions {\n /** `-f, --format <format>`. Always a string: the declaration has a default. */\n format: string;\n quiet?: boolean;\n /**\n * `--baseline [path]` / `--no-baseline`, the same three-state split as\n * `config`: absent leaves the config in charge, a string names a file, `true`\n * is a bare `--baseline` (the default path), `false` is `--no-baseline`.\n */\n baseline?: string | boolean;\n /** `--write-baseline [path]`; `true` for the bare flag. */\n writeBaseline?: string | boolean;\n /** `--no-check-sources`. */\n checkSources: boolean;\n showDiff?: boolean;\n reveal?: boolean;\n}\n\ninterface AddCliOptions {\n id?: string;\n marker?: boolean;\n quote?: boolean;\n /** `--encrypt`. */\n encrypt?: boolean;\n /** `--no-commit-sha`. */\n commitSha: boolean;\n dryRun?: boolean;\n as?: string;\n root?: string;\n config?: string | boolean;\n}\n\ninterface RemoveCliOptions extends Omit<InputCliOptions, \"root\"> {\n /** `--only <id>`, repeatable; commander's default value is `[]`. */\n only: string[];\n dryRun?: boolean;\n format: string;\n}\n\ninterface HistoryCliOptions extends InputCliOptions {\n /** `--newer-than <duration>`; the core parses it. */\n newerThan?: string;\n format: string;\n}\n\ninterface UpdateCliOptions extends InputCliOptions {\n /** `--no-check-sources`: declared so the refusal names the flag rather than commander rejecting it. */\n checkSources: boolean;\n accept?: boolean;\n recommit?: boolean;\n /** `--only <id>`, repeatable; commander's default value is `[]`. */\n only: string[];\n dryRun?: boolean;\n format: string;\n}\n\n/**\n * Split `docs/limits.md:9` or `docs/limits.md:14-18` into the page and the\n * claim's lines, under cite's error contract. The parsing is the shared pin\n * engine's (`splitPageArgument` in `src/shared/pin.ts`).\n */\nexport function splitPageArgument(arg: string): { page: string; lines?: PageLines } {\n return asCiteError(() => splitSharedPageArgument(arg));\n}\n\n/** `line 9`, or `lines 14-18` for a range. */\nfunction spellAt(lines: PageLines, noun = \"line\"): string {\n return lines.start === lines.end\n ? `${noun} ${String(lines.start)}`\n : `${noun}s ${String(lines.start)}-${String(lines.end)}`;\n}\n\n/**\n * What `add` says on success. One sentence composed from the result: what was\n * added, where it went, and what each end is pinned to. Lines are the page's\n * own, after the write. The source is spelled as it was written to the page,\n * abbreviated when it is a ciphertext, and quoted with its first pinned line\n * where the result carries one.\n */\nexport function addMessage(result: AddResult): string {\n const { citation, claimLines } = result;\n const claim = citation.claim;\n const name = citation.id ?? (claim === undefined ? \"a bare pin\" : \"an entry\");\n const src = shortSrc(spellSource(citation.source));\n const commit = citation.source[\"commit-sha\"];\n const quoted = result.sourceLine === undefined ? \"\" : shortLine(result.sourceLine);\n const line = quoted === \"\" ? \"\" : ` \"${quoted}\"`;\n const pin = `${src}${line}, ${shortPin(citation.source.integrity)}, ${commit === undefined ? \"no commit\" : shortCommit(commit)}`;\n // Where it went: the page's own frontmatter, or the manifest that owns the\n // page's citations, at the line the entry now sits on.\n const where =\n result.manifest === undefined\n ? \"frontmatter\"\n : `${result.manifest.file}:${String(result.manifest.line)}`;\n const head = `${result.file}: added ${name} to ${where}`;\n\n if (result.markerLine !== undefined) {\n const at =\n claimLines === undefined ? \"\" : `, claim pinned at ${spellAt(claimLines)}`;\n const wrote = result.markerJoined === true ? \"joined the marker at line\" : \"marker at line\";\n const marked = `${head}; ${wrote} ${String(result.markerLine)}${at}`;\n if (claim === undefined) return marked;\n if (citation.quote === true) return `${marked} (a block that reproduces ${src})`;\n return `${marked} (${shortPin(claim.integrity)}; source ${pin})`;\n }\n if (claim === undefined || claimLines === undefined) {\n return `${head} (source ${pin})`;\n }\n if (citation.quote === true) {\n return `${head} (claim ${spellAt(claimLines, \"line\")}, a block that reproduces ${src})`;\n }\n return `${head} (claim at ${spellAt(claimLines)}, ${shortPin(claim.integrity)}; source ${pin})`;\n}\n\nexport function buildProgram(): Command {\n const program = new Command();\n program\n .name(\"cite\")\n .description(\n \"Track citations from doc claims to source lines and check them for drift.\",\n )\n .version(pkg.version, \"-V, --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)`.\n .exitOverride();\n\n program\n .command(\"check\")\n .description(\"Check every citation in the given pages against its source\")\n .argument(\n \"[paths...]\",\n \"files, directories, or globs to check (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 for every input\")\n .option(\n \"-f, --format <format>\",\n `output: ${REPORT_FORMATS.join(\" | \")}`,\n \"pretty\",\n )\n .option(\"-c, --config <path>\", \"path to a manni config file\")\n .option(\"--no-config\", \"ignore any discovered config file\")\n .option(\"-q, --quiet\", \"in pretty output, hide current citations and clean files\")\n .option(\"--allow-empty\", \"treat zero matched files as success\")\n .option(\"--no-gitignore\", \"check files .gitignore covers\")\n // No `defaultValue` and no `.preset()`, for the reasons meta's validate\n // gives: a bare flag must stay distinguishable from a typed path.\n .addOption(\n new Option(\n \"--baseline [path]\",\n \"compare against a baseline; fail only on findings not in it\",\n ),\n )\n .addOption(\n new Option(\n \"--write-baseline [path]\",\n \"record current findings as the baseline, then exit 0\",\n ),\n )\n .option(\"--no-baseline\", \"ignore a baseline configured by `baseline:`\")\n .option(\"--no-check-sources\", \"page-side rules only; every source status is skipped\")\n .option(\n \"--root <dir>\",\n \"directory src: paths resolve from (default: cite.root from config, else the git root, else the current directory)\",\n )\n .option(\"--show-diff\", \"in pretty output, print the diff and commit subjects for changed\")\n .option(\"--reveal\", \"in pretty output, print the decrypted path beside an encrypted source\")\n .addHelpText(\n \"after\",\n [\n \"\",\n \"Examples:\",\n \" manni cite check docs/ # walk a directory\",\n \" manni cite check --collection guides # one configured collection\",\n ' manni cite check \"docs/**/*.md\" -f github # CI annotations',\n \" manni cite check --show-diff docs/limits.md # see what changed\",\n \" manni cite check --baseline # fail only on new findings\",\n \" cat page.md | manni cite check - --as markdown\",\n ].join(\"\\n\"),\n )\n .action(async (paths: string[], options: CheckCliOptions, command: Command) => {\n try {\n const format = options.format;\n if (!isReportFormat(format)) {\n throw new CiteError(\n `Unknown --format \"${format}\". Use ${REPORT_FORMAT_LIST}.`,\n );\n }\n const exts = options.ext ? splitList(options.ext) : undefined;\n const stdinContent = paths.includes(STDIN_TOKEN) ? await readStdin() : undefined;\n const cwd = process.cwd();\n\n const run = await runCheck({\n inputs: paths,\n collection: options.collection,\n exts,\n exclude: options.exclude,\n as: options.as,\n ...configOption(options.config),\n onConfigLoaded: reportConfig(!isMachineFormat(format), cwd),\n stdinContent,\n // `undefined` rather than `false` when absent, so config still wins.\n allowEmpty: options.allowEmpty ? true : undefined,\n respectGitignore: explicitFalse(options.gitignore),\n onNotice: notice,\n baseline: options.baseline,\n writeBaseline: options.writeBaseline,\n checkSources: explicitFalse(options.checkSources),\n // Only so the run can say git is not there to give diffs; the diffs\n // themselves are the pretty reporter's.\n showDiff: options.showDiff ? true : undefined,\n root: options.root,\n });\n\n let text: string;\n switch (format) {\n case \"pretty\":\n text = renderCheckPretty(run, {\n color: colorFor(command, process.stdout.isTTY),\n quiet: Boolean(options.quiet),\n showDiff: Boolean(options.showDiff),\n reveal: Boolean(options.reveal),\n });\n break;\n case \"json\":\n text = renderCheckJson(run);\n break;\n case \"github\":\n text = renderCheckGithub(run);\n break;\n case \"sarif\":\n text = renderCheckSarif(run, { onNotice: notice });\n break;\n case \"junit\":\n text = renderCheckJunit(run);\n break;\n }\n // Only `github` may say nothing on a clean run; every other format\n // owes its envelope even when empty.\n if (text.length > 0 || !OMITTED_WHEN_CLEAN.has(format)) {\n process.stdout.write(`${text}\\n`);\n }\n // `failed` counts files with an unbaselined error-severity finding;\n // warnings never move it.\n process.exitCode = run.summary.failed > 0 ? 1 : 0;\n } catch (err) {\n fail(err);\n }\n });\n\n program\n .command(\"add\")\n .description(\"Mint a citation for a source range and write it to a page\")\n .argument(\n \"<page>\",\n \"the page to cite from, with the claim's lines: page:L or page:L1-L2 (use - for stdin, with --as)\",\n )\n .argument(\n \"<src>\",\n \"path, path:L or path:L1-L2 relative to --root, or an encrypted ~source with the same line forms\",\n )\n .option(\"--id <id>\", \"kebab-case id, unique on the page; required with --marker\")\n .option(\"--marker\", \"write a cite <id> marker above the paragraph holding the page lines and pin the text it anchors\")\n .option(\"--quote\", \"the page lines are a fenced block that reproduces the source\")\n .option(\n \"--encrypt\",\n \"write source.file encrypted, with an hmac-sha256- pin; with no key, offer to create one (an available key encrypts without the flag)\",\n )\n .option(\"--no-commit-sha\", \"do not record HEAD\")\n .option(\"--dry-run\", \"print the diff; write nothing\")\n .option(\"--as <format>\", \"force the page format\")\n .option(\"--root <dir>\", \"directory source paths resolve from (as check)\")\n .option(\"-c, --config <path>\", \"path to a manni config file\")\n .option(\"--no-config\", \"ignore any discovered config file\")\n .addHelpText(\n \"after\",\n [\n \"\",\n \"Examples:\",\n \" manni cite add docs/limits.md:9 lib/limits.ts:2 --id fetch-timeout\",\n \" manni cite add docs/limits.md:30 lib/limits.ts:8-12 --id timeouts --marker\",\n \" manni cite add docs/limits.md:14-18 lib/limits.ts:1-3 --quote\",\n \" manni cite add docs/limits.md lib/limits.ts --dry-run\",\n \" cat page.md | manni cite add -:9 lib/limits.ts:2 --as markdown > out.md\",\n ].join(\"\\n\"),\n )\n .action(async (pageArgument: string, src: string, options: AddCliOptions) => {\n try {\n const { page, lines } = splitPageArgument(pageArgument);\n const usingStdin = page === STDIN_TOKEN;\n const stdinContent = usingStdin ? await readStdin() : undefined;\n const dryRun = Boolean(options.dryRun);\n const cwd = process.cwd();\n\n const result = await runAdd({\n page,\n pageLines: lines,\n src,\n id: options.id,\n marker: options.marker ? true : undefined,\n quote: options.quote ? true : undefined,\n // `undefined` when absent, so the key decides: an available one\n // encrypts without the flag.\n encrypt: options.encrypt ? true : undefined,\n commitSha: explicitFalse(options.commitSha),\n dryRun,\n as: options.as,\n ...configOption(options.config),\n // With `-` the page owns stdout; so does the diff under --dry-run.\n onConfigLoaded: reportConfig(!usingStdin && !dryRun, cwd),\n stdinContent,\n root: options.root,\n onNotice: notice,\n // Only on a terminal: off one, a missing key is a refusal, not a\n // question nobody can answer. With `-` stdin is the page, so no\n // question is put either.\n confirm: terminalConfirm(),\n });\n\n const message = addMessage(result);\n // A dry run prints every diff the write would make: the page's, and\n // the manifest's when the entry goes there.\n const diffs = [result.diff, result.manifest?.diff ?? \"\"].filter((d) => d.length > 0);\n if (usingStdin) {\n // The rewritten page owns stdout; everything else is a diagnostic.\n process.stdout.write(result.content);\n if (dryRun) for (const diff of diffs) process.stderr.write(`${diff}\\n`);\n process.stderr.write(`${message}\\n`);\n } else if (dryRun) {\n for (const diff of diffs) process.stdout.write(`${diff}\\n`);\n process.stderr.write(`${message}\\n`);\n } else {\n process.stdout.write(`${message}\\n`);\n }\n process.exitCode = 0;\n } catch (err) {\n fail(err);\n }\n });\n\n program\n .command(\"update\")\n .description(\"Rewrite moved citations in place; with --accept, re-mint changed ones\")\n .argument(\n \"[paths...]\",\n \"files, directories, or globs to update (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 for every input\")\n .option(\"-c, --config <path>\", \"path to a manni config file\")\n .option(\"--no-config\", \"ignore any discovered config file\")\n .option(\"--allow-empty\", \"treat zero matched files as success\")\n .option(\"--no-gitignore\", \"update files .gitignore covers\")\n .option(\"--no-check-sources\", \"refused: update needs the sources\")\n .option(\"--root <dir>\", \"directory src: paths resolve from (as check)\")\n .option(\"--accept\", \"re-mint changed and never-true entries at HEAD; prints old and new pins\")\n .option(\n \"--recommit\",\n \"re-record commit-sha to the commit where the pinned lines arrived on HEAD's history, where the recorded commit does not contain them or is outside that history\",\n )\n .option(\"--only <id>\", \"limit to entries with this id; repeatable\", collect, [])\n .option(\"--dry-run\", \"print the diffs; write nothing\")\n .option(\n \"-f, --format <format>\",\n `output: ${UPDATE_FORMATS.join(\" | \")}`,\n \"pretty\",\n )\n .addHelpText(\n \"after\",\n [\n \"\",\n \"Examples:\",\n \" manni cite update docs/ # rewrite moved entries\",\n \" manni cite update --accept --only fetch-timeout docs/limits.md\",\n \" manni cite update --dry-run docs/ # see the diffs first\",\n \" manni cite update --recommit docs/ # repair unsupported commit-sha\",\n ].join(\"\\n\"),\n )\n .action(async (paths: string[], options: UpdateCliOptions, command: Command) => {\n try {\n const format = options.format;\n if (!isUpdateFormat(format)) {\n throw new CiteError(\n `Unknown --format \"${format}\". Use ${COMMON_FORMAT_LIST}.`,\n );\n }\n if (!options.checkSources) {\n throw new CiteError(\n \"update needs the sources: drop --no-check-sources (or `checkSources: false`).\",\n );\n }\n const exts = options.ext ? splitList(options.ext) : undefined;\n const usingStdin = paths.includes(STDIN_TOKEN);\n const stdinContent = usingStdin ? await readStdin() : undefined;\n const dryRun = Boolean(options.dryRun);\n // With `-` the rewritten page owns stdout, as it does for `add -`; a\n // dry run prints the diffs instead, so the report keeps stdout.\n const pageToStdout = usingStdin && !dryRun;\n const cwd = process.cwd();\n\n const run = await runUpdate({\n inputs: paths,\n collection: options.collection,\n exts,\n exclude: options.exclude,\n as: options.as,\n ...configOption(options.config),\n onConfigLoaded: reportConfig(format === \"pretty\" && !pageToStdout, cwd),\n stdinContent,\n allowEmpty: options.allowEmpty ? true : undefined,\n respectGitignore: explicitFalse(options.gitignore),\n onNotice: notice,\n root: options.root,\n accept: options.accept ? true : undefined,\n recommit: options.recommit ? true : undefined,\n only: options.only.length > 0 ? options.only : undefined,\n dryRun,\n });\n\n const text =\n format === \"json\"\n ? renderUpdateJson(run)\n : renderUpdatePretty(run, {\n color: colorFor(command, process.stdout.isTTY),\n // The diffs are the point of a dry run; a real run prints\n // what it rewrote and leaves the file to say the rest.\n showDiff: dryRun,\n });\n const stdinPage = pageToStdout ? run.pages.find((page) => page.content !== undefined) : undefined;\n if (stdinPage?.content !== undefined) {\n process.stdout.write(stdinPage.content);\n process.stderr.write(`${text}\\n`);\n } else {\n process.stdout.write(`${text}\\n`);\n }\n // Exit 1 when something was skipped with an error-severity finding:\n // work left undone, `fill`'s precedent.\n process.exitCode = run.exitCode;\n } catch (err) {\n fail(err);\n }\n });\n\n program\n .command(\"remove\")\n .description(\"Remove the named citations from the given pages, markers and all\")\n .argument(\n \"[paths...]\",\n \"files, directories, or globs to remove from (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 for every input\")\n .option(\"-c, --config <path>\", \"path to a manni config file\")\n .option(\"--no-config\", \"ignore any discovered config file\")\n .option(\"--allow-empty\", \"treat zero matched files as success\")\n .option(\"--no-gitignore\", \"remove from files .gitignore covers\")\n .option(\n \"--only <id>\",\n \"the entry to remove, by id or by pointer (/citations/N); required, and repeatable\",\n collect,\n [],\n )\n .option(\"--dry-run\", \"print the diffs and the report; write nothing\")\n .option(\n \"-f, --format <format>\",\n `output: ${REMOVE_FORMATS.join(\" | \")}`,\n \"pretty\",\n )\n .addHelpText(\n \"after\",\n [\n \"\",\n \"Examples:\",\n \" manni cite remove docs/limits.md --only fetch-timeout\",\n \" manni cite remove docs/ --only fetch-timeout --only retries --dry-run\",\n \" manni cite remove --collection site --only /citations/3 -f json\",\n ].join(\"\\n\"),\n )\n .action(async (paths: string[], options: RemoveCliOptions, command: Command) => {\n try {\n const format = options.format;\n if (!isRemoveFormat(format)) {\n throw new CiteError(\n `Unknown --format \"${format}\". Use ${COMMON_FORMAT_LIST}.`,\n );\n }\n const exts = options.ext ? splitList(options.ext) : undefined;\n const usingStdin = paths.includes(STDIN_TOKEN);\n const stdinContent = usingStdin ? await readStdin() : undefined;\n const dryRun = Boolean(options.dryRun);\n // With `-` the rewritten page owns stdout, exactly as on `update -`.\n const pageToStdout = usingStdin && !dryRun;\n const cwd = process.cwd();\n\n const run = await runRemove({\n inputs: paths,\n collection: options.collection,\n exts,\n exclude: options.exclude,\n as: options.as,\n ...configOption(options.config),\n onConfigLoaded: reportConfig(format === \"pretty\" && !pageToStdout, cwd),\n stdinContent,\n allowEmpty: options.allowEmpty ? true : undefined,\n respectGitignore: explicitFalse(options.gitignore),\n onNotice: notice,\n only: options.only,\n dryRun,\n });\n\n const text =\n format === \"json\"\n ? renderRemoveJson(run)\n : renderRemovePretty(run, {\n color: colorFor(command, process.stdout.isTTY),\n // The diffs are the point of a dry run; a real run prints\n // what it removed and leaves the file to say the rest.\n showDiff: dryRun,\n dryRun,\n });\n const stdinPage = pageToStdout ? run.pages.find((page) => page.content !== undefined) : undefined;\n if (stdinPage?.content !== undefined) {\n process.stdout.write(stdinPage.content);\n process.stderr.write(`${text}\\n`);\n } else {\n process.stdout.write(`${text}\\n`);\n }\n // Everything named was removed, or previewed: there is no exit 1.\n process.exitCode = 0;\n } catch (err) {\n fail(err);\n }\n });\n\n program\n .command(\"history\")\n .description(\"Walk the git history and report how long each pin stood stale, and which releases shipped it\")\n .argument(\"[paths...]\", \"files, directories, or globs whose citations are walked\")\n .option(\n \"--collection <name>\",\n \"configured collection to walk; 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 the page format for every input\")\n .option(\"-c, --config <path>\", \"path to a manni config file\")\n .option(\"--no-config\", \"ignore any discovered config file\")\n .option(\"--allow-empty\", \"treat zero matched files as success\")\n .option(\"--no-gitignore\", \"walk pages .gitignore covers\")\n .option(\"--root <dir>\", \"directory src: paths resolve from (as check)\")\n .option(\n \"--newer-than <duration>\",\n \"walk only the commits within this span of HEAD's committer time, e.g. 90d or 12w\",\n )\n .option(\n \"-f, --format <format>\",\n `output: ${HISTORY_FORMATS.join(\" | \")}`,\n \"pretty\",\n )\n .addHelpText(\n \"after\",\n [\n \"\",\n \"Examples:\",\n \" manni cite history docs/limits.md # one page's stale windows\",\n \" manni cite history # every collection\",\n \" manni cite history -f json | jq .summary.staleSeconds\",\n \" manni cite history --newer-than 90d # the last quarter only\",\n ].join(\"\\n\"),\n )\n .action(async (paths: string[], options: HistoryCliOptions, command: Command) => {\n try {\n const format = options.format;\n if (!isHistoryFormat(format)) {\n throw new CiteError(\n `Unknown --format \"${format}\". Use ${COMMON_FORMAT_LIST}.`,\n );\n }\n const cwd = process.cwd();\n const run = await runHistory({\n inputs: paths,\n collection: options.collection,\n exts: options.ext ? splitList(options.ext) : undefined,\n exclude: options.exclude,\n as: options.as,\n ...configOption(options.config),\n onConfigLoaded: reportConfig(format === \"pretty\", cwd),\n allowEmpty: options.allowEmpty ? true : undefined,\n respectGitignore: explicitFalse(options.gitignore),\n onNotice: notice,\n root: options.root,\n newerThan: options.newerThan,\n });\n const text =\n format === \"json\"\n ? renderHistoryJson(run)\n : renderHistoryPretty(run, { color: colorFor(command, process.stdout.isTTY) });\n process.stdout.write(`${text}\\n`);\n // A report, not a gate: whatever the walk found, it exits 0.\n process.exitCode = 0;\n } catch (err) {\n fail(err);\n }\n });\n\n return program;\n}\n","/**\n * JUnit for `check`: meta's renderer over the adapted results, under the\n * `manni.cite` classname, with each failure's message the one the github\n * annotation carries.\n * Meta's renderer opens every message with the entry's JSON Pointer, `(root)`\n * for a finding about no entry, which says nothing about a citation. The\n * failure's `type` is already the rule id.\n */\nimport { renderJunit } from \"../../meta/index.js\";\nimport type { CheckRun } from \"../types.js\";\nimport { ENTRY_LABEL, withFindingMessages } from \"./sarif.js\";\n\n/** JUnit `classname` for the citation tool's findings. */\nexport const JUNIT_CLASSNAME = \"manni.cite\";\n\n/** A `message=\"` attribute's opening label. The value is escaped, so `message=\"` opens nothing else. */\nconst MESSAGE_LABEL = new RegExp(`message=\"${ENTRY_LABEL.source.replace(/^\\^/, \"\")}`, \"g\");\n\nexport function renderCheckJunit(run: CheckRun): string {\n return renderJunit(withFindingMessages(run), { frame: run.frame, classname: JUNIT_CLASSNAME }).replace(\n MESSAGE_LABEL,\n 'message=\"',\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,SAAS,SAAS,cAAc;;;ACIzB,IAAM,kBAAkB;AAG/B,IAAM,gBAAgB,IAAI,OAAO,YAAY,YAAY,OAAO,QAAQ,OAAO,EAAE,CAAC,IAAI,GAAG;AAElF,SAAS,iBAAiB,KAAuB;AACtD,SAAO,YAAY,oBAAoB,GAAG,GAAG,EAAE,OAAO,IAAI,OAAO,WAAW,gBAAgB,CAAC,EAAE;AAAA,IAC7F;AAAA,IACA;AAAA,EACF;AACF;;;AD6BA,IAAM,iBAAiB,CAAC,UAAU,MAAM;AAGxC,IAAM,iBAAiB;AAGvB,IAAM,kBAAkB;AAExB,SAAS,gBAAgB,OAAsC;AAC7D,SAAQ,gBAAsC,SAAS,KAAK;AAC9D;AASO,SAAS,SACd,SACA,OACA,KACS;AAGT,QAAM,UAAU,WAAW,OAAO,EAAE,KAAK,EAAE,UAAU;AACrD,SAAO,YAAY,EAAE,SAAS,OAAO,IAAI,CAAC;AAC5C;AAOA,SAAS,WAAW,SAA2B;AAC7C,WAAS,IAAoB,SAAS,MAAM,MAAM,IAAI,EAAE,QAAQ;AAC9D,QAAI,EAAE,QAAQ,KAAK,CAAC,MAAM,EAAE,SAAS,YAAY,EAAG,QAAO;AAAA,EAC7D;AACA,SAAO;AACT;AAEA,SAAS,eAAe,OAAsC;AAC5D,SAAQ,eAAqC,SAAS,KAAK;AAC7D;AAEA,SAAS,eAAe,OAAsC;AAC5D,SAAQ,eAAqC,SAAS,KAAK;AAC7D;AA4FO,SAASA,mBAAkB,KAAkD;AAClF,SAAO,YAAY,MAAM,kBAAwB,GAAG,CAAC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