@hawkeyexl/manni 4.19.0 → 4.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. package/README.md +1 -1
  2. package/dist/{batch-R7A22ANE.js → batch-J626LZ22.js} +13 -13
  3. package/dist/{build-EUPWPNJJ.js → build-AYLD6V6Y.js} +15 -15
  4. package/dist/{calibrate-3JTVKYSQ.js → calibrate-2HZFACIX.js} +14 -14
  5. package/dist/{capture-WT4O77PA.js → capture-NMDIPC6S.js} +13 -13
  6. package/dist/{check-5HPK2S57.js → check-KNQV7GLU.js} +13 -12
  7. package/dist/check-OH4KKXP3.js +33 -0
  8. package/dist/{check-POQHLDLN.js → check-PQ7S5I3I.js} +31 -31
  9. package/dist/check-PRAMKQCI.js +47 -0
  10. package/dist/{check-KQ3KUXQT.js → check-RCSQARQE.js} +13 -13
  11. package/dist/{chunk-XGL4TSEA.js → chunk-2GTR24SA.js} +8 -8
  12. package/dist/{chunk-2BY4C2WU.js → chunk-4DFBBU4A.js} +2 -2
  13. package/dist/{chunk-CEIJV5QG.js → chunk-4F5WGZRP.js} +5 -5
  14. package/dist/{chunk-XH3NRZFD.js → chunk-4H3IOF52.js} +3 -3
  15. package/dist/{chunk-OABOOM6D.js → chunk-5CJ3P5O3.js} +13 -13
  16. package/dist/chunk-5CJ3P5O3.js.map +1 -0
  17. package/dist/{chunk-X4ZANRWU.js → chunk-5E3ABFOQ.js} +3 -3
  18. package/dist/{chunk-BJ4T6QRD.js → chunk-6FY573GB.js} +3 -3
  19. package/dist/{chunk-PF6BTJ4N.js → chunk-A633WB3N.js} +26 -26
  20. package/dist/chunk-A633WB3N.js.map +1 -0
  21. package/dist/{chunk-EWNWPYMQ.js → chunk-ACJUZFRT.js} +4 -4
  22. package/dist/{chunk-YKOB2LDR.js → chunk-BM43RJIS.js} +8 -8
  23. package/dist/{chunk-P3DDYDJW.js → chunk-BY4THWAQ.js} +3 -3
  24. package/dist/{chunk-IM2K47B7.js → chunk-C5BXSQDO.js} +5 -5
  25. package/dist/{chunk-5YOZIXTG.js → chunk-CT5WSUUZ.js} +2 -2
  26. package/dist/{chunk-5SL2QOCH.js → chunk-CXL6ES7O.js} +4 -4
  27. package/dist/{chunk-S2PXTHDM.js → chunk-D4XQX4W7.js} +2 -2
  28. package/dist/{chunk-7FDYCTXS.js → chunk-D54BQM5P.js} +8 -8
  29. package/dist/chunk-D54BQM5P.js.map +1 -0
  30. package/dist/chunk-DNF42MK7.js +326 -0
  31. package/dist/chunk-DNF42MK7.js.map +1 -0
  32. package/dist/chunk-E6JYRVR5.js +137 -0
  33. package/dist/chunk-E6JYRVR5.js.map +1 -0
  34. package/dist/{chunk-TC76MTNC.js → chunk-EOJEPEYY.js} +2 -2
  35. package/dist/{chunk-KMZF77L6.js → chunk-FIR2MAGS.js} +2 -2
  36. package/dist/chunk-FKELQCGN.js +25 -0
  37. package/dist/chunk-FKELQCGN.js.map +1 -0
  38. package/dist/{chunk-JNMY7KZG.js → chunk-G5I2JTDK.js} +2 -2
  39. package/dist/{chunk-TMPCYEGS.js → chunk-GGTCSMNX.js} +4 -4
  40. package/dist/{chunk-HCUHASZN.js → chunk-H3C3UXTA.js} +6 -6
  41. package/dist/{chunk-BMFT6SBM.js → chunk-HGUCJ3K3.js} +5 -5
  42. package/dist/{chunk-BAH6O5PN.js → chunk-ISDFYXLA.js} +38 -36
  43. package/dist/chunk-ISDFYXLA.js.map +1 -0
  44. package/dist/{chunk-6Q7JZZVG.js → chunk-JPXC62SD.js} +11 -10
  45. package/dist/chunk-JPXC62SD.js.map +1 -0
  46. package/dist/{chunk-S3WWQTJC.js → chunk-KERICP5Y.js} +6 -6
  47. package/dist/chunk-LPJ3IB26.js +64 -0
  48. package/dist/chunk-LPJ3IB26.js.map +1 -0
  49. package/dist/{chunk-K2FE4B6R.js → chunk-LXJ4FZ7Y.js} +6 -6
  50. package/dist/{chunk-SGUSZTUB.js → chunk-MJZ5HYYL.js} +22 -22
  51. package/dist/{chunk-SGUSZTUB.js.map → chunk-MJZ5HYYL.js.map} +1 -1
  52. package/dist/{chunk-6MVYXXRG.js → chunk-MJZK7G4B.js} +3 -3
  53. package/dist/{chunk-VBEFPLAN.js → chunk-MPXMQGJI.js} +7 -7
  54. package/dist/{chunk-X7RPFR6B.js → chunk-MTMR65NM.js} +2 -2
  55. package/dist/{chunk-23C7Q3Z5.js → chunk-N2VB6UUE.js} +2 -2
  56. package/dist/{chunk-5R4BXMGC.js → chunk-N3DYE6LJ.js} +5 -5
  57. package/dist/{chunk-T63LOFB2.js → chunk-NDPQ2GQ4.js} +5 -5
  58. package/dist/chunk-O4O6JOGD.js +59 -0
  59. package/dist/chunk-O4O6JOGD.js.map +1 -0
  60. package/dist/{chunk-JA25DZIV.js → chunk-ODSIHEIW.js} +6 -11
  61. package/dist/chunk-ODSIHEIW.js.map +1 -0
  62. package/dist/{chunk-IBNI5CRF.js → chunk-OQR3VVAX.js} +3 -3
  63. package/dist/{chunk-NZYXMTNI.js → chunk-OVUQNM7Y.js} +2 -2
  64. package/dist/{chunk-YL7EATZ7.js → chunk-OXCWCEVV.js} +5 -5
  65. package/dist/chunk-P5DWBG6T.js +50 -0
  66. package/dist/chunk-P5DWBG6T.js.map +1 -0
  67. package/dist/{chunk-PGMHGOLD.js → chunk-P6XZ44C2.js} +7 -7
  68. package/dist/chunk-P6XZ44C2.js.map +1 -0
  69. package/dist/{chunk-3EQR6QAZ.js → chunk-QGBNWEWS.js} +60 -63
  70. package/dist/chunk-QGBNWEWS.js.map +1 -0
  71. package/dist/{chunk-S243N72D.js → chunk-RA2BER5P.js} +2 -2
  72. package/dist/{chunk-YM2DGL3T.js → chunk-RN7IA742.js} +7 -7
  73. package/dist/{chunk-G4RTYFFR.js → chunk-ROZDHPKA.js} +3 -3
  74. package/dist/{chunk-U2PJNL3R.js → chunk-S2HW3CBF.js} +5 -5
  75. package/dist/chunk-SIREOHLW.js +233 -0
  76. package/dist/chunk-SIREOHLW.js.map +1 -0
  77. package/dist/{chunk-QYFPJY7F.js → chunk-SUTY4VCZ.js} +6 -6
  78. package/dist/{chunk-IX5YIY5O.js → chunk-TAJYMXMM.js} +2 -2
  79. package/dist/{chunk-2MRYDECM.js → chunk-TDG2S5UE.js} +2 -2
  80. package/dist/{chunk-TKINOTVS.js → chunk-TI4DA6DF.js} +1 -1
  81. package/dist/{chunk-TKINOTVS.js.map → chunk-TI4DA6DF.js.map} +1 -1
  82. package/dist/{chunk-K5Q766TX.js → chunk-UVC3BUKU.js} +3 -3
  83. package/dist/{chunk-BKWXY474.js → chunk-WI3PPQQX.js} +2 -2
  84. package/dist/{chunk-T3DDFC2B.js → chunk-WRWW6SGG.js} +2 -2
  85. package/dist/{chunk-JBJGBEBU.js → chunk-XPO655IX.js} +3 -3
  86. package/dist/chunk-XTKJNRJ6.js +33 -0
  87. package/dist/chunk-XTKJNRJ6.js.map +1 -0
  88. package/dist/{chunk-WQVXJMJM.js → chunk-YIHIRMXN.js} +7 -7
  89. package/dist/chunk-YIHIRMXN.js.map +1 -0
  90. package/dist/chunk-YM2W43DI.js +126 -0
  91. package/dist/chunk-YM2W43DI.js.map +1 -0
  92. package/dist/chunk-YYWZ2MSL.js +50 -0
  93. package/dist/chunk-YYWZ2MSL.js.map +1 -0
  94. package/dist/{chunk-NNAE7NF2.js → chunk-Z2T5U7HN.js} +2 -2
  95. package/dist/{chunk-DJM67CFP.js → chunk-ZB3OFSRB.js} +7 -32
  96. package/dist/chunk-ZB3OFSRB.js.map +1 -0
  97. package/dist/{cli-5CUZEROV.js → cli-4RTNEVVX.js} +9 -9
  98. package/dist/{cli-4QKOQEWV.js → cli-6J4P5MLU.js} +2 -2
  99. package/dist/{cli-WAXGGWNW.js → cli-DQRFSU7U.js} +15 -15
  100. package/dist/{cli-WRNKMNEM.js → cli-FTSJQSB4.js} +17 -17
  101. package/dist/{cli-2Q2OFLOI.js → cli-IIFCE6GY.js} +14 -14
  102. package/dist/{cli-TMMOVK3R.js → cli-ISKXSN3P.js} +18 -18
  103. package/dist/{cli-4OHXIGOF.js → cli-K5635N25.js} +16 -16
  104. package/dist/{cli-II4EPPDK.js → cli-K5QWXB7H.js} +31 -31
  105. package/dist/cli-K5QWXB7H.js.map +1 -0
  106. package/dist/{cli-ZEOR6LL5.js → cli-PCZ7XNCO.js} +89 -38
  107. package/dist/cli-PCZ7XNCO.js.map +1 -0
  108. package/dist/{cli-534K765K.js → cli-TCHSYJLB.js} +21 -21
  109. package/dist/{cli-R3CS7V3H.js → cli-TM2JCTQT.js} +9 -9
  110. package/dist/cli.js +20 -14
  111. package/dist/cli.js.map +1 -1
  112. package/dist/docmeta.d.ts +1 -1
  113. package/dist/docmeta.js +8 -8
  114. package/dist/github-BUK5CVQW.js +27 -0
  115. package/dist/{github-PXXYARFQ.js → github-CMAZWS76.js} +12 -12
  116. package/dist/{github-K2A4TNDE.js → github-NXR4QMMM.js} +14 -14
  117. package/dist/graph/embed.d.ts +2 -1
  118. package/dist/graph/runtime.d.ts +2 -1
  119. package/dist/index.d.ts +27 -14
  120. package/dist/index.js +101 -101
  121. package/dist/{json-ELJ5D3VR.js → json-7Z2IFGB3.js} +12 -12
  122. package/dist/json-NZSGRYOE.js +34 -0
  123. package/dist/{labels-CHN33A4X.js → labels-SE2WL7WD.js} +11 -11
  124. package/dist/{lint-PYDL7IT7.js → lint-VUYM5PPM.js} +14 -14
  125. package/dist/list-4JGOXLOZ.js +33 -0
  126. package/dist/{list-EIFNJKE5.js → list-LTF25DQE.js} +12 -12
  127. package/dist/{list-T2NPRQCA.js → list-WD3TZS5R.js} +12 -12
  128. package/dist/{page-C4P4KFUL.js → page-A2Y4ZMV4.js} +11 -11
  129. package/dist/{prepare-Q6Y4NCXU.js → prepare-M2COBP5O.js} +16 -16
  130. package/dist/{pretty-XXMCA3SX.js → pretty-D3DZFC5U.js} +12 -12
  131. package/dist/pretty-R67YU6TU.js +35 -0
  132. package/dist/{pretty-B52EGTKL.js → pretty-SFFOMSG5.js} +13 -13
  133. package/dist/{release-Z3ASYZ3S.js → release-VHHASAG7.js} +4 -4
  134. package/dist/{reporters-3MDFUPKQ.js → reporters-TO7Q6JYF.js} +4 -4
  135. package/dist/{reporters-6VOPV7L6.js → reporters-UTLJVSWX.js} +13 -13
  136. package/dist/reporters-UTLJVSWX.js.map +1 -0
  137. package/dist/{run-YFH7RPUR.js → run-BDGYRUXJ.js} +12 -12
  138. package/dist/run-BDGYRUXJ.js.map +1 -0
  139. package/dist/{sarif-RBLPUGPH.js → sarif-EHAMGCVR.js} +15 -15
  140. package/dist/sarif-EHAMGCVR.js.map +1 -0
  141. package/dist/sarif-GJYLRXLS.js +30 -0
  142. package/dist/sarif-GJYLRXLS.js.map +1 -0
  143. package/dist/{sarif-NXSMEW2M.js → sarif-IAGMXA6C.js} +10 -10
  144. package/dist/sarif-IAGMXA6C.js.map +1 -0
  145. package/dist/strategy-UKRA6WO4.js +222 -0
  146. package/dist/strategy-UKRA6WO4.js.map +1 -0
  147. package/dist/{term-QIG4USZM.js → term-AMORBEO7.js} +30 -28
  148. package/dist/term-AMORBEO7.js.map +1 -0
  149. package/dist/{validate-W2XQYBSW.js → validate-CDTKFZUV.js} +5 -5
  150. package/dist/validate-CDTKFZUV.js.map +1 -0
  151. package/package.json +21 -21
  152. package/plugin/manni/.claude-plugin/plugin.json +1 -1
  153. package/plugin/manni/hooks/manni.mjs +29 -2
  154. package/plugin/manni/skills/fix/SKILL.md +18 -1
  155. package/plugin/manni/skills/setup/SKILL.md +1 -1
  156. package/dist/check-URJURAED.js +0 -47
  157. package/dist/chunk-3EQR6QAZ.js.map +0 -1
  158. package/dist/chunk-6Q7JZZVG.js.map +0 -1
  159. package/dist/chunk-7FDYCTXS.js.map +0 -1
  160. package/dist/chunk-BAH6O5PN.js.map +0 -1
  161. package/dist/chunk-DJM67CFP.js.map +0 -1
  162. package/dist/chunk-JA25DZIV.js.map +0 -1
  163. package/dist/chunk-OABOOM6D.js.map +0 -1
  164. package/dist/chunk-PF6BTJ4N.js.map +0 -1
  165. package/dist/chunk-PGMHGOLD.js.map +0 -1
  166. package/dist/chunk-WQVXJMJM.js.map +0 -1
  167. package/dist/cli-II4EPPDK.js.map +0 -1
  168. package/dist/cli-ZEOR6LL5.js.map +0 -1
  169. package/dist/term-QIG4USZM.js.map +0 -1
  170. /package/dist/{batch-R7A22ANE.js.map → batch-J626LZ22.js.map} +0 -0
  171. /package/dist/{build-EUPWPNJJ.js.map → build-AYLD6V6Y.js.map} +0 -0
  172. /package/dist/{calibrate-3JTVKYSQ.js.map → calibrate-2HZFACIX.js.map} +0 -0
  173. /package/dist/{capture-WT4O77PA.js.map → capture-NMDIPC6S.js.map} +0 -0
  174. /package/dist/{check-5HPK2S57.js.map → check-KNQV7GLU.js.map} +0 -0
  175. /package/dist/{check-KQ3KUXQT.js.map → check-OH4KKXP3.js.map} +0 -0
  176. /package/dist/{check-POQHLDLN.js.map → check-PQ7S5I3I.js.map} +0 -0
  177. /package/dist/{check-URJURAED.js.map → check-PRAMKQCI.js.map} +0 -0
  178. /package/dist/{cli-5CUZEROV.js.map → check-RCSQARQE.js.map} +0 -0
  179. /package/dist/{chunk-XGL4TSEA.js.map → chunk-2GTR24SA.js.map} +0 -0
  180. /package/dist/{chunk-2BY4C2WU.js.map → chunk-4DFBBU4A.js.map} +0 -0
  181. /package/dist/{chunk-CEIJV5QG.js.map → chunk-4F5WGZRP.js.map} +0 -0
  182. /package/dist/{chunk-XH3NRZFD.js.map → chunk-4H3IOF52.js.map} +0 -0
  183. /package/dist/{chunk-X4ZANRWU.js.map → chunk-5E3ABFOQ.js.map} +0 -0
  184. /package/dist/{chunk-BJ4T6QRD.js.map → chunk-6FY573GB.js.map} +0 -0
  185. /package/dist/{chunk-EWNWPYMQ.js.map → chunk-ACJUZFRT.js.map} +0 -0
  186. /package/dist/{chunk-YKOB2LDR.js.map → chunk-BM43RJIS.js.map} +0 -0
  187. /package/dist/{chunk-P3DDYDJW.js.map → chunk-BY4THWAQ.js.map} +0 -0
  188. /package/dist/{chunk-IM2K47B7.js.map → chunk-C5BXSQDO.js.map} +0 -0
  189. /package/dist/{chunk-5YOZIXTG.js.map → chunk-CT5WSUUZ.js.map} +0 -0
  190. /package/dist/{chunk-5SL2QOCH.js.map → chunk-CXL6ES7O.js.map} +0 -0
  191. /package/dist/{chunk-S2PXTHDM.js.map → chunk-D4XQX4W7.js.map} +0 -0
  192. /package/dist/{chunk-TC76MTNC.js.map → chunk-EOJEPEYY.js.map} +0 -0
  193. /package/dist/{chunk-KMZF77L6.js.map → chunk-FIR2MAGS.js.map} +0 -0
  194. /package/dist/{chunk-JNMY7KZG.js.map → chunk-G5I2JTDK.js.map} +0 -0
  195. /package/dist/{chunk-TMPCYEGS.js.map → chunk-GGTCSMNX.js.map} +0 -0
  196. /package/dist/{chunk-HCUHASZN.js.map → chunk-H3C3UXTA.js.map} +0 -0
  197. /package/dist/{chunk-BMFT6SBM.js.map → chunk-HGUCJ3K3.js.map} +0 -0
  198. /package/dist/{chunk-S3WWQTJC.js.map → chunk-KERICP5Y.js.map} +0 -0
  199. /package/dist/{chunk-K2FE4B6R.js.map → chunk-LXJ4FZ7Y.js.map} +0 -0
  200. /package/dist/{chunk-6MVYXXRG.js.map → chunk-MJZK7G4B.js.map} +0 -0
  201. /package/dist/{chunk-VBEFPLAN.js.map → chunk-MPXMQGJI.js.map} +0 -0
  202. /package/dist/{chunk-X7RPFR6B.js.map → chunk-MTMR65NM.js.map} +0 -0
  203. /package/dist/{chunk-23C7Q3Z5.js.map → chunk-N2VB6UUE.js.map} +0 -0
  204. /package/dist/{chunk-5R4BXMGC.js.map → chunk-N3DYE6LJ.js.map} +0 -0
  205. /package/dist/{chunk-T63LOFB2.js.map → chunk-NDPQ2GQ4.js.map} +0 -0
  206. /package/dist/{chunk-IBNI5CRF.js.map → chunk-OQR3VVAX.js.map} +0 -0
  207. /package/dist/{chunk-NZYXMTNI.js.map → chunk-OVUQNM7Y.js.map} +0 -0
  208. /package/dist/{chunk-YL7EATZ7.js.map → chunk-OXCWCEVV.js.map} +0 -0
  209. /package/dist/{chunk-S243N72D.js.map → chunk-RA2BER5P.js.map} +0 -0
  210. /package/dist/{chunk-YM2DGL3T.js.map → chunk-RN7IA742.js.map} +0 -0
  211. /package/dist/{chunk-G4RTYFFR.js.map → chunk-ROZDHPKA.js.map} +0 -0
  212. /package/dist/{chunk-U2PJNL3R.js.map → chunk-S2HW3CBF.js.map} +0 -0
  213. /package/dist/{chunk-QYFPJY7F.js.map → chunk-SUTY4VCZ.js.map} +0 -0
  214. /package/dist/{chunk-IX5YIY5O.js.map → chunk-TAJYMXMM.js.map} +0 -0
  215. /package/dist/{chunk-2MRYDECM.js.map → chunk-TDG2S5UE.js.map} +0 -0
  216. /package/dist/{chunk-K5Q766TX.js.map → chunk-UVC3BUKU.js.map} +0 -0
  217. /package/dist/{chunk-BKWXY474.js.map → chunk-WI3PPQQX.js.map} +0 -0
  218. /package/dist/{chunk-T3DDFC2B.js.map → chunk-WRWW6SGG.js.map} +0 -0
  219. /package/dist/{chunk-JBJGBEBU.js.map → chunk-XPO655IX.js.map} +0 -0
  220. /package/dist/{chunk-NNAE7NF2.js.map → chunk-Z2T5U7HN.js.map} +0 -0
  221. /package/dist/{github-K2A4TNDE.js.map → cli-4RTNEVVX.js.map} +0 -0
  222. /package/dist/{cli-4QKOQEWV.js.map → cli-6J4P5MLU.js.map} +0 -0
  223. /package/dist/{cli-WAXGGWNW.js.map → cli-DQRFSU7U.js.map} +0 -0
  224. /package/dist/{cli-WRNKMNEM.js.map → cli-FTSJQSB4.js.map} +0 -0
  225. /package/dist/{cli-2Q2OFLOI.js.map → cli-IIFCE6GY.js.map} +0 -0
  226. /package/dist/{cli-TMMOVK3R.js.map → cli-ISKXSN3P.js.map} +0 -0
  227. /package/dist/{cli-4OHXIGOF.js.map → cli-K5635N25.js.map} +0 -0
  228. /package/dist/{cli-534K765K.js.map → cli-TCHSYJLB.js.map} +0 -0
  229. /package/dist/{cli-R3CS7V3H.js.map → cli-TM2JCTQT.js.map} +0 -0
  230. /package/dist/{github-PXXYARFQ.js.map → github-BUK5CVQW.js.map} +0 -0
  231. /package/dist/{json-ELJ5D3VR.js.map → github-CMAZWS76.js.map} +0 -0
  232. /package/dist/{lint-PYDL7IT7.js.map → github-NXR4QMMM.js.map} +0 -0
  233. /package/dist/{list-EIFNJKE5.js.map → json-7Z2IFGB3.js.map} +0 -0
  234. /package/dist/{list-T2NPRQCA.js.map → json-NZSGRYOE.js.map} +0 -0
  235. /package/dist/{labels-CHN33A4X.js.map → labels-SE2WL7WD.js.map} +0 -0
  236. /package/dist/{page-C4P4KFUL.js.map → lint-VUYM5PPM.js.map} +0 -0
  237. /package/dist/{pretty-B52EGTKL.js.map → list-4JGOXLOZ.js.map} +0 -0
  238. /package/dist/{pretty-XXMCA3SX.js.map → list-LTF25DQE.js.map} +0 -0
  239. /package/dist/{reporters-3MDFUPKQ.js.map → list-WD3TZS5R.js.map} +0 -0
  240. /package/dist/{reporters-6VOPV7L6.js.map → page-A2Y4ZMV4.js.map} +0 -0
  241. /package/dist/{prepare-Q6Y4NCXU.js.map → prepare-M2COBP5O.js.map} +0 -0
  242. /package/dist/{run-YFH7RPUR.js.map → pretty-D3DZFC5U.js.map} +0 -0
  243. /package/dist/{sarif-NXSMEW2M.js.map → pretty-R67YU6TU.js.map} +0 -0
  244. /package/dist/{sarif-RBLPUGPH.js.map → pretty-SFFOMSG5.js.map} +0 -0
  245. /package/dist/{release-Z3ASYZ3S.js.map → release-VHHASAG7.js.map} +0 -0
  246. /package/dist/{validate-W2XQYBSW.js.map → reporters-TO7Q6JYF.js.map} +0 -0
@@ -0,0 +1,222 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ renderFindingsGithub
4
+ } from "./chunk-FKELQCGN.js";
5
+ import {
6
+ renderFindingsJson,
7
+ renderGetJson,
8
+ renderListJson
9
+ } from "./chunk-LPJ3IB26.js";
10
+ import {
11
+ renderFindingsPretty,
12
+ renderGetPretty,
13
+ renderListPretty
14
+ } from "./chunk-E6JYRVR5.js";
15
+ import {
16
+ FIELD_LABEL,
17
+ renderFindingsSarif
18
+ } from "./chunk-P5DWBG6T.js";
19
+ import {
20
+ FINDING_FORMATS,
21
+ JUNIT_CLASSNAME,
22
+ runCheck
23
+ } from "./chunk-YM2W43DI.js";
24
+ import {
25
+ LIST_FORMATS,
26
+ entriesOf,
27
+ runList
28
+ } from "./chunk-YYWZ2MSL.js";
29
+ import {
30
+ indexSet
31
+ } from "./chunk-SIREOHLW.js";
32
+ import {
33
+ StrategyError,
34
+ formatChoice,
35
+ loadStrategy,
36
+ plural
37
+ } from "./chunk-DNF42MK7.js";
38
+ import {
39
+ RECORD_TYPES,
40
+ STRATEGY_RULES
41
+ } from "./chunk-O4O6JOGD.js";
42
+ import {
43
+ closestName
44
+ } from "./chunk-XTKJNRJ6.js";
45
+ import "./chunk-UP6NBQ62.js";
46
+ import "./chunk-MJZK7G4B.js";
47
+ import "./chunk-ROZDHPKA.js";
48
+ import "./chunk-SUTY4VCZ.js";
49
+ import "./chunk-WI3PPQQX.js";
50
+ import {
51
+ OMITTED_WHEN_CLEAN,
52
+ renderJunit
53
+ } from "./chunk-XPO655IX.js";
54
+ import "./chunk-4H3IOF52.js";
55
+ import {
56
+ readStdin,
57
+ splitList,
58
+ withInputs
59
+ } from "./chunk-ODSIHEIW.js";
60
+ import "./chunk-DSWKBZWW.js";
61
+ import {
62
+ STDIN_TOKEN
63
+ } from "./chunk-WRWW6SGG.js";
64
+ import "./chunk-77AINBYM.js";
65
+ import "./chunk-QK6VYJHV.js";
66
+ import {
67
+ shouldColor
68
+ } from "./chunk-RNVYGWIC.js";
69
+ import {
70
+ fail
71
+ } from "./chunk-YEUYKR62.js";
72
+ import "./chunk-B2242FYO.js";
73
+ import {
74
+ notice
75
+ } from "./chunk-HX44GB4Z.js";
76
+ import "./chunk-VM7VAFJW.js";
77
+ import {
78
+ package_default
79
+ } from "./chunk-MJZ5HYYL.js";
80
+ import "./chunk-OWBRDNRZ.js";
81
+ import "./chunk-G3T47CFV.js";
82
+ import "./chunk-2H7UOFLK.js";
83
+
84
+ // src/strategy/cli.ts
85
+ import { Command } from "commander";
86
+
87
+ // src/strategy/commands/get.ts
88
+ var GET_FORMATS = ["pretty", "json"];
89
+ async function runGet(opts) {
90
+ const { cwd, run, set } = await loadStrategy(opts);
91
+ const index = indexSet(set);
92
+ const found = index.anyWithId(opts.id);
93
+ const entry = found === void 0 ? void 0 : entriesOf(set, cwd, run.base, index).find((e) => e.record === found);
94
+ if (entry !== void 0) return entry;
95
+ const ids = set.records.map((r) => r.id);
96
+ const nearest = closestName(opts.id.toLowerCase(), ids.map((id) => id.toLowerCase()));
97
+ const suggestion = ids.find((id) => id.toLowerCase() === nearest);
98
+ const hint = suggestion === void 0 ? "." : `; did you mean "${suggestion}"?`;
99
+ throw new StrategyError(`no record "${opts.id}". ${plural(set.records.length, "record")}${hint}`);
100
+ }
101
+
102
+ // src/strategy/reporters/junit.ts
103
+ var MESSAGE_LABEL = new RegExp(`message="${FIELD_LABEL.source.slice(1)}`, "g");
104
+ function renderFindingsJunit(report) {
105
+ return renderJunit(report.results, { frame: report.frame, classname: JUNIT_CLASSNAME }).replace(MESSAGE_LABEL, 'message="');
106
+ }
107
+
108
+ // src/strategy/cli.ts
109
+ var PATHS = "files, directories, or globs to read (use - for stdin)";
110
+ function colorFor(options) {
111
+ return shouldColor({ noColor: !options.color, isTTY: process.stdout.isTTY });
112
+ }
113
+ async function coreOptions(paths, options) {
114
+ return {
115
+ inputs: paths,
116
+ ...paths.includes(STDIN_TOKEN) ? { stdin: await readStdin() } : {},
117
+ ...options.as === void 0 ? {} : { as: options.as },
118
+ ...options.ext === void 0 ? {} : { exts: splitList(options.ext) },
119
+ exclude: options.exclude,
120
+ collection: options.collection,
121
+ ...options.allowEmpty === true ? { allowEmpty: true } : {},
122
+ ...options.gitignore ? {} : { noGitignore: true },
123
+ ...options.config === void 0 ? {} : { configPath: options.config },
124
+ onNotice: notice
125
+ };
126
+ }
127
+ function print(text) {
128
+ process.stdout.write(`${text}
129
+ `);
130
+ }
131
+ function renderFindings(report, format, options) {
132
+ let text;
133
+ switch (format) {
134
+ case "pretty":
135
+ text = renderFindingsPretty(report, { color: colorFor(options) });
136
+ break;
137
+ case "json":
138
+ text = renderFindingsJson(report);
139
+ break;
140
+ case "github":
141
+ text = renderFindingsGithub(report);
142
+ break;
143
+ case "sarif":
144
+ text = renderFindingsSarif(report, { onNotice: notice });
145
+ break;
146
+ case "junit":
147
+ text = renderFindingsJunit(report);
148
+ break;
149
+ }
150
+ if (text.length > 0 || !OMITTED_WHEN_CLEAN.has(format)) print(text);
151
+ process.exitCode = report.summary.failed > 0 ? 1 : 0;
152
+ }
153
+ function buildProgram() {
154
+ const program = new Command();
155
+ program.name("strategy").description("Check a docset's pages against its audiences, personas and journeys.").version(package_default.version, "-V, --version").showHelpAfterError("(add --help for usage)").exitOverride();
156
+ withInputs(
157
+ program.command("list").description("List the records as a tree").argument("[paths...]", PATHS),
158
+ "no records"
159
+ ).option("-f, --format <format>", `output: ${LIST_FORMATS.join(" | ")}`, "pretty").addHelpText(
160
+ "after",
161
+ [
162
+ "",
163
+ "Examples:",
164
+ " manni strategy list # every collection",
165
+ " manni strategy list -f json # for a script"
166
+ ].join("\n")
167
+ ).action(async (paths, options) => {
168
+ try {
169
+ const format = formatChoice(options.format, LIST_FORMATS);
170
+ const { entries } = await runList(await coreOptions(paths, options));
171
+ print(format === "json" ? renderListJson(entries) : renderListPretty(entries));
172
+ process.exitCode = 0;
173
+ } catch (err) {
174
+ fail(err);
175
+ }
176
+ });
177
+ withInputs(
178
+ program.command("get").description("Show one record, its parent, and what names it").argument("<id>", "the record's id, in any case").argument("[paths...]", PATHS),
179
+ "no records"
180
+ ).option("-f, --format <format>", `output: ${GET_FORMATS.join(" | ")}`, "pretty").addHelpText("after", ["", "Examples:", " manni strategy get m5", " manni strategy get maya -f json"].join("\n")).action(async (id, paths, options) => {
181
+ try {
182
+ const format = formatChoice(options.format, GET_FORMATS);
183
+ const entry = await runGet({ ...await coreOptions(paths, options), id });
184
+ print(format === "json" ? renderGetJson(entry) : renderGetPretty(entry, { color: colorFor(options) }));
185
+ process.exitCode = 0;
186
+ } catch (err) {
187
+ fail(err);
188
+ }
189
+ });
190
+ withInputs(
191
+ program.command("check").description("Check the pages against the records").argument("[paths...]", PATHS),
192
+ "no records"
193
+ ).option("-f, --format <format>", `output: ${FINDING_FORMATS.join(" | ")}`, "pretty").option("--baseline", "record the findings on the first run; after that, fail only on new ones").addHelpText(
194
+ "after",
195
+ [
196
+ "",
197
+ "Examples:",
198
+ " manni strategy check # every collection",
199
+ " manni strategy check -f github # CI annotations",
200
+ " manni strategy check --baseline # ramp in on an existing docset"
201
+ ].join("\n")
202
+ ).action(async (paths, options) => {
203
+ try {
204
+ const format = formatChoice(options.format, FINDING_FORMATS);
205
+ const report = await runCheck({
206
+ ...await coreOptions(paths, options),
207
+ ...options.baseline === true ? { baseline: true } : {}
208
+ });
209
+ renderFindings(report, format, options);
210
+ } catch (err) {
211
+ fail(err);
212
+ }
213
+ });
214
+ return program;
215
+ }
216
+ export {
217
+ RECORD_TYPES,
218
+ STRATEGY_RULES,
219
+ StrategyError,
220
+ buildProgram
221
+ };
222
+ //# sourceMappingURL=strategy-UKRA6WO4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/strategy/cli.ts","../src/strategy/commands/get.ts","../src/strategy/reporters/junit.ts"],"sourcesContent":["/**\n * The `strategy` domain's commander program. Mounted by `src/cli.ts` under\n * `manni strategy`; no entry point of its own. The verbs are `list`, `get` and\n * `check` (proposal 0102), and there is no default subcommand.\n *\n * Follows clig.dev as the family does: primary output to stdout, diagnostics\n * to stderr, colour only on a TTY and never under `NO_COLOR`/`--no-color`,\n * exit `0` clean, `1` an error-severity finding, `2` operational/usage.\n */\nimport { Command } from \"commander\";\nimport pkg from \"../../package.json\" with { type: \"json\" };\nimport { readStdin, splitList, withInputs } from \"../shared/cli-options.js\";\nimport { shouldColor } from \"../shared/color.js\";\nimport { fail } from \"../shared/run.js\";\nimport { notice } from \"../shared/warn.js\";\nimport { OMITTED_WHEN_CLEAN, STDIN_TOKEN } from \"../meta/internal.js\";\nimport { runCheck } from \"./commands/check.js\";\nimport { FINDING_FORMATS, type FindingFormat, type StrategyReport } from \"./commands/findings.js\";\nimport { GET_FORMATS, runGet } from \"./commands/get.js\";\nimport { LIST_FORMATS, runList } from \"./commands/list.js\";\nimport { formatChoice, type StrategyCommandOptions } from \"./commands/run.js\";\nimport { renderFindingsGithub } from \"./reporters/github.js\";\nimport { renderFindingsJson, renderGetJson, renderListJson } from \"./reporters/json.js\";\nimport { renderFindingsJunit } from \"./reporters/junit.js\";\nimport { renderFindingsPretty, renderGetPretty, renderListPretty } from \"./reporters/pretty.js\";\nimport { renderFindingsSarif } from \"./reporters/sarif.js\";\n\n/** What commander hands every verb. */\ninterface InputCliOptions {\n as?: string;\n /** `--ext <list>`, comma-separated and given once. */\n ext?: string;\n /** `--exclude <glob>`, repeatable; commander's default value is `[]`. */\n exclude: string[];\n allowEmpty?: boolean;\n /** `--no-gitignore`: `false` when given. */\n gitignore: boolean;\n /** `--collection <name>`, repeatable; commander's default value is `[]`. */\n collection: string[];\n config?: string;\n /** `--no-color`: `false` when given. */\n color: boolean;\n format: string;\n}\n\ninterface CheckCliOptions extends InputCliOptions {\n baseline?: boolean;\n}\n\nconst PATHS = \"files, directories, or globs to read (use - for stdin)\";\n\nfunction colorFor(options: InputCliOptions): boolean {\n return shouldColor({ noColor: !options.color, isTTY: process.stdout.isTTY });\n}\n\n/** The core's shared options from commander's, with stdin read once when `-` is among the paths. */\nasync function coreOptions(paths: string[], options: InputCliOptions): Promise<StrategyCommandOptions> {\n return {\n inputs: paths,\n ...(paths.includes(STDIN_TOKEN) ? { stdin: await readStdin() } : {}),\n ...(options.as === undefined ? {} : { as: options.as }),\n ...(options.ext === undefined ? {} : { exts: splitList(options.ext) }),\n exclude: options.exclude,\n collection: options.collection,\n ...(options.allowEmpty === true ? { allowEmpty: true } : {}),\n ...(options.gitignore ? {} : { noGitignore: true }),\n ...(options.config === undefined ? {} : { configPath: options.config }),\n onNotice: notice,\n };\n}\n\nfunction print(text: string): void {\n process.stdout.write(`${text}\\n`);\n}\n\nfunction renderFindings(report: StrategyReport, format: FindingFormat, options: InputCliOptions): void {\n let text: string;\n switch (format) {\n case \"pretty\":\n text = renderFindingsPretty(report, { color: colorFor(options) });\n break;\n case \"json\":\n text = renderFindingsJson(report);\n break;\n case \"github\":\n text = renderFindingsGithub(report);\n break;\n case \"sarif\":\n text = renderFindingsSarif(report, { onNotice: notice });\n break;\n case \"junit\":\n text = renderFindingsJunit(report);\n break;\n }\n if (text.length > 0 || !OMITTED_WHEN_CLEAN.has(format)) print(text);\n process.exitCode = report.summary.failed > 0 ? 1 : 0;\n}\n\nexport function buildProgram(): Command {\n const program = new Command();\n program\n .name(\"strategy\")\n .description(\"Check a docset's pages against its audiences, personas and journeys.\")\n .version(pkg.version, \"-V, --version\")\n .showHelpAfterError(\"(add --help for usage)\")\n // MUST come before the `.command()` calls below: commander copies the exit\n // callback into each subcommand by value when the subcommand is created.\n .exitOverride();\n\n withInputs(\n program.command(\"list\").description(\"List the records as a tree\").argument(\"[paths...]\", PATHS),\n \"no records\",\n )\n .option(\"-f, --format <format>\", `output: ${LIST_FORMATS.join(\" | \")}`, \"pretty\")\n .addHelpText(\n \"after\",\n [\n \"\",\n \"Examples:\",\n \" manni strategy list # every collection\",\n \" manni strategy list -f json # for a script\",\n ].join(\"\\n\"),\n )\n .action(async (paths: string[], options: InputCliOptions) => {\n try {\n const format = formatChoice(options.format, LIST_FORMATS);\n const { entries } = await runList(await coreOptions(paths, options));\n print(format === \"json\" ? renderListJson(entries) : renderListPretty(entries));\n process.exitCode = 0;\n } catch (err) {\n fail(err);\n }\n });\n\n withInputs(\n program\n .command(\"get\")\n .description(\"Show one record, its parent, and what names it\")\n .argument(\"<id>\", \"the record's id, in any case\")\n .argument(\"[paths...]\", PATHS),\n \"no records\",\n )\n .option(\"-f, --format <format>\", `output: ${GET_FORMATS.join(\" | \")}`, \"pretty\")\n .addHelpText(\"after\", [\"\", \"Examples:\", \" manni strategy get m5\", \" manni strategy get maya -f json\"].join(\"\\n\"))\n .action(async (id: string, paths: string[], options: InputCliOptions) => {\n try {\n const format = formatChoice(options.format, GET_FORMATS);\n const entry = await runGet({ ...(await coreOptions(paths, options)), id });\n print(format === \"json\" ? renderGetJson(entry) : renderGetPretty(entry, { color: colorFor(options) }));\n process.exitCode = 0;\n } catch (err) {\n fail(err);\n }\n });\n\n withInputs(\n program.command(\"check\").description(\"Check the pages against the records\").argument(\"[paths...]\", PATHS),\n \"no records\",\n )\n .option(\"-f, --format <format>\", `output: ${FINDING_FORMATS.join(\" | \")}`, \"pretty\")\n .option(\"--baseline\", \"record the findings on the first run; after that, fail only on new ones\")\n .addHelpText(\n \"after\",\n [\n \"\",\n \"Examples:\",\n \" manni strategy check # every collection\",\n \" manni strategy check -f github # CI annotations\",\n \" manni strategy check --baseline # ramp in on an existing docset\",\n ].join(\"\\n\"),\n )\n .action(async (paths: string[], options: CheckCliOptions) => {\n try {\n const format = formatChoice(options.format, FINDING_FORMATS);\n const report = await runCheck({\n ...(await coreOptions(paths, options)),\n ...(options.baseline === true ? { baseline: true } : {}),\n });\n renderFindings(report, format, options);\n } catch (err) {\n fail(err);\n }\n });\n\n return program;\n}\n","/**\n * `manni strategy get <id>`: one record, matched by id without case. A miss\n * is a usage error that says how big the set is and, when an id is a few\n * edits away, which one.\n */\nimport { closestName } from \"../../shared/closest-name.js\";\nimport { indexSet } from \"../core/check.js\";\nimport { StrategyError } from \"../errors.js\";\nimport { entriesOf, type RecordEntry } from \"./list.js\";\nimport { loadStrategy, plural, type StrategyCommandOptions } from \"./run.js\";\n\nexport const GET_FORMATS = [\"pretty\", \"json\"] as const;\nexport type GetFormat = (typeof GET_FORMATS)[number];\n\nexport interface GetOptions extends StrategyCommandOptions {\n /** The `<id>` argument, compared without case. */\n id: string;\n}\n\nexport async function runGet(opts: GetOptions): Promise<RecordEntry> {\n const { cwd, run, set } = await loadStrategy(opts);\n const index = indexSet(set);\n const found = index.anyWithId(opts.id);\n const entry = found === undefined ? undefined : entriesOf(set, cwd, run.base, index).find((e) => e.record === found);\n if (entry !== undefined) return entry;\n const ids = set.records.map((r) => r.id);\n const nearest = closestName(opts.id.toLowerCase(), ids.map((id) => id.toLowerCase()));\n const suggestion = ids.find((id) => id.toLowerCase() === nearest);\n const hint = suggestion === undefined ? \".\" : `; did you mean \"${suggestion}\"?`;\n throw new StrategyError(`no record \"${opts.id}\". ${plural(set.records.length, \"record\")}${hint}`);\n}\n","/**\n * JUnit for `check`: meta's renderer over the adapted results, under the\n * `manni.strategy` classname, with each failure's message the finding's own\n * rather than opened by the field's JSON Pointer.\n */\nimport { renderJunit } from \"../../meta/index.js\";\nimport { JUNIT_CLASSNAME, type StrategyReport } from \"../commands/findings.js\";\nimport { FIELD_LABEL } from \"./sarif.js\";\n\n/** A `message=\"` attribute's opening label. The value is escaped, so `message=\"` opens nothing else. */\nconst MESSAGE_LABEL = new RegExp(`message=\"${FIELD_LABEL.source.slice(1)}`, \"g\");\n\nexport function renderFindingsJunit(report: StrategyReport): string {\n return renderJunit(report.results, { frame: report.frame, classname: JUNIT_CLASSNAME }).replace(MESSAGE_LABEL, 'message=\"');\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,SAAS,eAAe;;;ACEjB,IAAM,cAAc,CAAC,UAAU,MAAM;AAQ5C,eAAsB,OAAO,MAAwC;AACnE,QAAM,EAAE,KAAK,KAAK,IAAI,IAAI,MAAM,aAAa,IAAI;AACjD,QAAM,QAAQ,SAAS,GAAG;AAC1B,QAAM,QAAQ,MAAM,UAAU,KAAK,EAAE;AACrC,QAAM,QAAQ,UAAU,SAAY,SAAY,UAAU,KAAK,K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MACA;AAAA,MACA;AAAA,IACF,EAAE,KAAK,IAAI;AAAA,EACb,EACC,OAAO,OAAO,OAAiB,YAA6B;AAC3D,QAAI;AACF,YAAM,SAAS,aAAa,QAAQ,QAAQ,eAAe;AAC3D,YAAM,SAAS,MAAM,SAAS;AAAA,QAC5B,GAAI,MAAM,YAAY,OAAO,OAAO;AAAA,QACpC,GAAI,QAAQ,aAAa,OAAO,EAAE,UAAU,KAAK,IAAI,CAAC;AAAA,MACxD,CAAC;AACD,qBAAe,QAAQ,QAAQ,OAAO;AAAA,IACxC,SAAS,KAAK;AACZ,WAAK,GAAG;AAAA,IACV;AAAA,EACF,CAAC;AAEH,SAAO;AACT;","names":[]}
@@ -2,20 +2,20 @@
2
2
  import {
3
3
  LIST_FORMATS,
4
4
  runList
5
- } from "./chunk-S243N72D.js";
5
+ } from "./chunk-RA2BER5P.js";
6
6
  import {
7
7
  renderFindingsGithub
8
- } from "./chunk-TC76MTNC.js";
8
+ } from "./chunk-EOJEPEYY.js";
9
9
  import {
10
10
  renderFindingsJson,
11
11
  renderFormatsJson,
12
12
  renderGetJson,
13
13
  renderListJson
14
- } from "./chunk-NNAE7NF2.js";
14
+ } from "./chunk-Z2T5U7HN.js";
15
15
  import {
16
16
  FIELD_LABEL,
17
17
  renderFindingsSarif
18
- } from "./chunk-X7RPFR6B.js";
18
+ } from "./chunk-MTMR65NM.js";
19
19
  import {
20
20
  renderFindingsPretty,
21
21
  renderFormatsPretty,
@@ -23,20 +23,22 @@ import {
23
23
  renderListPretty,
24
24
  renderValeWiring,
25
25
  renderWritePretty
26
- } from "./chunk-KMZF77L6.js";
26
+ } from "./chunk-FIR2MAGS.js";
27
27
  import {
28
28
  FINDING_FORMATS,
29
29
  JUNIT_CLASSNAME,
30
- closestName,
31
30
  reportedFindings,
32
31
  runCheck,
33
32
  summarize,
34
33
  toResults
35
- } from "./chunk-DJM67CFP.js";
34
+ } from "./chunk-ZB3OFSRB.js";
36
35
  import {
37
36
  foldValeSeverity,
38
37
  proseRuleId
39
38
  } from "./chunk-BREAC43H.js";
39
+ import {
40
+ closestName
41
+ } from "./chunk-XTKJNRJ6.js";
40
42
  import {
41
43
  DEFAULT_CRAWL_MIN_PAGES,
42
44
  DEFAULT_FILL_CACHE_DIR,
@@ -84,7 +86,7 @@ import {
84
86
  valeConfigFor,
85
87
  xmlAttribute,
86
88
  xmlText
87
- } from "./chunk-TMPCYEGS.js";
89
+ } from "./chunk-GGTCSMNX.js";
88
90
  import {
89
91
  TERM_FIELDS,
90
92
  TERM_MATCH_FIELDS,
@@ -92,31 +94,31 @@ import {
92
94
  TERM_WRITE_FORMATS
93
95
  } from "./chunk-MC7U5IH4.js";
94
96
  import "./chunk-UP6NBQ62.js";
95
- import "./chunk-6MVYXXRG.js";
96
- import "./chunk-G4RTYFFR.js";
97
+ import "./chunk-MJZK7G4B.js";
98
+ import "./chunk-ROZDHPKA.js";
97
99
  import {
98
100
  DEFAULT_CHUNK_CHARS,
99
101
  splitBody
100
- } from "./chunk-QYFPJY7F.js";
102
+ } from "./chunk-SUTY4VCZ.js";
101
103
  import {
102
104
  mergeMetaProvenance
103
- } from "./chunk-BKWXY474.js";
105
+ } from "./chunk-WI3PPQQX.js";
104
106
  import {
105
107
  OMITTED_WHEN_CLEAN,
106
108
  renderJunit
107
- } from "./chunk-JBJGBEBU.js";
108
- import "./chunk-XH3NRZFD.js";
109
+ } from "./chunk-XPO655IX.js";
110
+ import "./chunk-4H3IOF52.js";
109
111
  import {
110
- collect,
111
112
  readStdin,
112
- splitList
113
- } from "./chunk-JA25DZIV.js";
113
+ splitList,
114
+ withInputs
115
+ } from "./chunk-ODSIHEIW.js";
114
116
  import "./chunk-DSWKBZWW.js";
115
117
  import {
116
118
  STDIN_TOKEN,
117
119
  extractorByName,
118
120
  extractorForExtension
119
- } from "./chunk-T3DDFC2B.js";
121
+ } from "./chunk-WRWW6SGG.js";
120
122
  import "./chunk-77AINBYM.js";
121
123
  import "./chunk-QK6VYJHV.js";
122
124
  import {
@@ -145,7 +147,7 @@ import {
145
147
  } from "./chunk-VM7VAFJW.js";
146
148
  import {
147
149
  package_default
148
- } from "./chunk-SGUSZTUB.js";
150
+ } from "./chunk-MJZ5HYYL.js";
149
151
  import "./chunk-OWBRDNRZ.js";
150
152
  import {
151
153
  errorMessage
@@ -2317,8 +2319,8 @@ async function coreOptions(paths, options) {
2317
2319
  onNotice: notice
2318
2320
  };
2319
2321
  }
2320
- function withInputs(command) {
2321
- return command.option("--as <format>", "input format for stdin (-)").option("--ext <list>", "comma-separated extensions for directory walks").option("--exclude <glob>", "glob to exclude; repeatable", collect, []).option("--collection <name>", "configured collection to read; repeatable", collect, []).option("--allow-empty", "treat a missing path, no matched files or no terms as success").option("--no-gitignore", "read files .gitignore covers").option("-c, --config <path>", "path to a manni config file").option("--no-color", "disable colored output");
2322
+ function withInputs2(command) {
2323
+ return withInputs(command, "no terms");
2322
2324
  }
2323
2325
  function print(text) {
2324
2326
  process.stdout.write(`${text}
@@ -2349,7 +2351,7 @@ function renderFindings(report, format, options, references) {
2349
2351
  function buildProgram() {
2350
2352
  const program = new Command();
2351
2353
  program.name("term").description("Check, lint and render a docset's terms and the references into them.").version(package_default.version, "-V, --version").showHelpAfterError("(add --help for usage)").exitOverride();
2352
- withInputs(
2354
+ withInputs2(
2353
2355
  program.command("list").description("List the resolved entries").argument("[paths...]", "files, directories, or globs to read (use - for stdin)")
2354
2356
  ).option("-f, --format <format>", `output: ${LIST_FORMATS.join(" | ")}`, "pretty").addHelpText(
2355
2357
  "after",
@@ -2370,7 +2372,7 @@ function buildProgram() {
2370
2372
  fail(err);
2371
2373
  }
2372
2374
  });
2373
- withInputs(
2375
+ withInputs2(
2374
2376
  program.command("get").description("Show one entry").argument("<term>", "the entry's id, or its label or an alt-label in any case").argument("[paths...]", "files, directories, or globs to read (use - for stdin)")
2375
2377
  ).option("-f, --format <format>", `output: ${GET_FORMATS.join(" | ")}`, "pretty").addHelpText(
2376
2378
  "after",
@@ -2387,7 +2389,7 @@ function buildProgram() {
2387
2389
  fail(err);
2388
2390
  }
2389
2391
  });
2390
- withInputs(
2392
+ withInputs2(
2391
2393
  program.command("check").description("Check the set and every reference into it").argument("[paths...]", "files, directories, or globs to read (use - for stdin)")
2392
2394
  ).option("-f, --format <format>", `output: ${FINDING_FORMATS.join(" | ")}`, "pretty").option("--baseline", "record the findings on the first run; after that, fail only on new ones").addHelpText(
2393
2395
  "after",
@@ -2410,7 +2412,7 @@ function buildProgram() {
2410
2412
  fail(err);
2411
2413
  }
2412
2414
  });
2413
- withInputs(
2415
+ withInputs2(
2414
2416
  program.command("lint").description("Run Vale over the definitions").argument("[paths...]", "files, directories, or globs to read (use - for stdin)")
2415
2417
  ).option("-f, --format <format>", `output: ${FINDING_FORMATS.join(" | ")}`, "pretty").addHelpText(
2416
2418
  "after",
@@ -2424,7 +2426,7 @@ function buildProgram() {
2424
2426
  fail(err);
2425
2427
  }
2426
2428
  });
2427
- withInputs(
2429
+ withInputs2(
2428
2430
  program.command("write").description("Write the set back, or render it elsewhere").argument("[paths...]", "files, directories, or globs to read (use - for stdin)")
2429
2431
  ).option("-f, --format <format>", `render as: ${writeFormats().join(" | ")} (default: each entry's own, in place)`).option("-o, --out <path>", "file or directory to render into; a trailing / means a directory").option("--check", "write nothing; exit 1 when the target differs from the render").option("--dry-run", "write nothing; print what would change").addHelpText(
2430
2432
  "after",
@@ -2453,7 +2455,7 @@ function buildProgram() {
2453
2455
  fail(err);
2454
2456
  }
2455
2457
  });
2456
- withInputs(
2458
+ withInputs2(
2457
2459
  program.command("fill").description("Create term pages for the concepts pages name, and draft missing definitions").argument("[paths...]", "files, directories, or globs to read (use - for stdin)")
2458
2460
  ).option("-o, --out <dir>", "directory for new term pages").option("--crawl", "also ask the model for terms that page bodies and keywords use").option("--offline", "no network egress: only a model already downloaded, never a remote provider").option("--provider <name>", "provider: auto (default), anthropic, openai, claude-cli, llama-cpp").option("--model <model>", "model override; needs a named provider, from here or config").option("--local", LOCAL_FLAG_HELP).option("--confidence <n>", "minimum confidence to write a definition (0-1)", parseFloat).option("--max-turns <n>", "stop after this many inference calls", parseFloat).option("--chunk-chars <n>", "characters of page per call under --crawl (default 12000)", parseFloat).option("--no-cache", "bypass the answer cache").option("--dry-run", "write nothing; print what would change").option("-f, --format <format>", `output: ${FILL_FORMATS.join(" | ")}`, "pretty").addHelpText(
2459
2461
  "after",
@@ -2508,4 +2510,4 @@ export {
2508
2510
  TermError,
2509
2511
  buildProgram
2510
2512
  };
2511
- //# sourceMappingURL=term-QIG4USZM.js.map
2513
+ //# sourceMappingURL=term-AMORBEO7.js.map