@hawkeyexl/manni 4.28.0 → 4.30.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.
Files changed (242) hide show
  1. package/README.md +33 -15
  2. package/dist/{batch-PR6HELQ3.js → batch-23GVYKFP.js} +12 -12
  3. package/dist/{build-IJIWQIKR.js → build-CRK3HT5F.js} +13 -13
  4. package/dist/{calibrate-OO6JL6BK.js → calibrate-2RFP3QX2.js} +13 -13
  5. package/dist/{capture-M73GEEBJ.js → capture-267IEE6B.js} +12 -12
  6. package/dist/{check-MAB3XYX5.js → check-2HIBGMXD.js} +12 -12
  7. package/dist/{check-FXAHW6N5.js → check-5QX33J6O.js} +13 -13
  8. package/dist/{check-V3MJF3LV.js → check-6FCVYM62.js} +10 -10
  9. package/dist/check-MYUFZGKO.js +58 -0
  10. package/dist/{check-5PZYQV3S.js → check-VKQ6GM5D.js} +22 -22
  11. package/dist/{chunk-H5HWF2RF.js → chunk-2FGWZH7A.js} +3 -3
  12. package/dist/{chunk-XHBRV4QK.js → chunk-3VBEUMKQ.js} +2 -2
  13. package/dist/{chunk-SWGLTZR3.js → chunk-3YA6TGWH.js} +5 -5
  14. package/dist/{chunk-7L6GS7LH.js → chunk-4L62A7YB.js} +4 -4
  15. package/dist/{chunk-4QJJG2DG.js → chunk-4MD2JG2F.js} +2 -2
  16. package/dist/{chunk-S34LFS5R.js → chunk-4YCPB67J.js} +3 -3
  17. package/dist/{chunk-CY3NIZZF.js → chunk-5DER6O26.js} +2 -2
  18. package/dist/{chunk-DJT5F4MT.js → chunk-5MKSZSXH.js} +3 -3
  19. package/dist/{chunk-HM2EZX66.js → chunk-5RCCJ446.js} +17 -12
  20. package/dist/chunk-5RCCJ446.js.map +1 -0
  21. package/dist/{chunk-5NFGWFLC.js → chunk-5S5DYW7W.js} +8 -8
  22. package/dist/{chunk-YGVCKNKQ.js → chunk-67GJRC62.js} +2 -2
  23. package/dist/{chunk-XXW572PF.js → chunk-6KNIQ2SK.js} +6 -6
  24. package/dist/{chunk-RHNEQRPJ.js → chunk-6U3XF5VY.js} +2 -2
  25. package/dist/{chunk-GZVHZCUI.js → chunk-77U6NQKQ.js} +3 -3
  26. package/dist/{chunk-P5KEPKW4.js → chunk-7INXFEI7.js} +38 -15
  27. package/dist/chunk-7INXFEI7.js.map +1 -0
  28. package/dist/{chunk-WZDL4XDO.js → chunk-7PF47O3H.js} +6 -6
  29. package/dist/{chunk-X42S4Y3E.js → chunk-7YDGDI26.js} +21 -5
  30. package/dist/{chunk-X42S4Y3E.js.map → chunk-7YDGDI26.js.map} +1 -1
  31. package/dist/{chunk-TKU525DB.js → chunk-7ZRX2OPC.js} +10 -10
  32. package/dist/{chunk-KIYDAB7Q.js → chunk-AP3PCNKS.js} +3 -3
  33. package/dist/{chunk-DEDH7IH3.js → chunk-C5NE3ZIC.js} +2 -2
  34. package/dist/{chunk-ZL2KZRNC.js → chunk-CMJEB5V5.js} +6 -6
  35. package/dist/{chunk-2EW7JGHQ.js → chunk-CZFP6Q5O.js} +7 -7
  36. package/dist/{chunk-JNYYKYOX.js → chunk-DKV6BVW5.js} +3 -3
  37. package/dist/{chunk-VDJGTAVP.js → chunk-E6S3VGN6.js} +4 -4
  38. package/dist/{chunk-HV7R7EP7.js → chunk-ERXM4UF7.js} +4 -4
  39. package/dist/{chunk-FCLA7EH4.js → chunk-F76DU7FH.js} +3 -3
  40. package/dist/{chunk-KGC6FPEP.js → chunk-GBZVXEVE.js} +3 -3
  41. package/dist/{chunk-BOVAHVNE.js → chunk-GK3F3FIP.js} +5 -5
  42. package/dist/{chunk-E2ZPFHHR.js → chunk-HXILODV5.js} +2 -2
  43. package/dist/{chunk-FWJGGP2J.js → chunk-JG2QWMDX.js} +10 -10
  44. package/dist/{chunk-A7JU42HX.js → chunk-K5VWSQ4K.js} +2 -2
  45. package/dist/{chunk-QBTDPI57.js → chunk-KAIJHQR2.js} +3 -2
  46. package/dist/chunk-KAIJHQR2.js.map +1 -0
  47. package/dist/{chunk-JMDZFDCS.js → chunk-KNMDIR7D.js} +2 -2
  48. package/dist/{chunk-IFMEIUTY.js → chunk-LGHJFEEH.js} +2 -2
  49. package/dist/{chunk-OLFYMD26.js → chunk-MBJINPKU.js} +13 -13
  50. package/dist/{chunk-PDIBXVWI.js → chunk-MWWPADYI.js} +5 -5
  51. package/dist/{chunk-IWZH3YPO.js → chunk-MYYTLNO5.js} +6 -6
  52. package/dist/{chunk-732PX32V.js → chunk-N3J22ZRL.js} +366 -234
  53. package/dist/chunk-N3J22ZRL.js.map +1 -0
  54. package/dist/{chunk-E6TI5H2P.js → chunk-NIXJOL7G.js} +2 -2
  55. package/dist/{chunk-BEKZC55J.js → chunk-O2STKCTP.js} +8 -8
  56. package/dist/{chunk-RCLF35PJ.js → chunk-O632I7AB.js} +8 -8
  57. package/dist/{chunk-NWS5NNHX.js → chunk-OJZOKTTX.js} +2 -2
  58. package/dist/{chunk-FK65KN2H.js → chunk-OXFNU2IO.js} +4 -4
  59. package/dist/{chunk-ZWVYT2G6.js → chunk-QEFVMOWF.js} +1 -1
  60. package/dist/chunk-QEFVMOWF.js.map +1 -0
  61. package/dist/{chunk-6YUNB4VT.js → chunk-RKZ2NPO4.js} +4 -4
  62. package/dist/{chunk-NENXKSOX.js → chunk-RRAJMTHV.js} +4 -4
  63. package/dist/{chunk-WFHPNJNT.js → chunk-SWCFJC7W.js} +3 -3
  64. package/dist/{chunk-WXDNQMUI.js → chunk-SXMTWMZZ.js} +5 -5
  65. package/dist/{chunk-HZUYNBWK.js → chunk-SXNK6FPC.js} +7 -6
  66. package/dist/chunk-SXNK6FPC.js.map +1 -0
  67. package/dist/{chunk-ENK42KDR.js → chunk-TAGYZJQA.js} +341 -43
  68. package/dist/chunk-TAGYZJQA.js.map +1 -0
  69. package/dist/{chunk-N2RRDNVX.js → chunk-TU7T6YRR.js} +6 -6
  70. package/dist/{chunk-MSX65NSU.js → chunk-U4CWWG2Y.js} +2 -2
  71. package/dist/{chunk-NKE3SJ7O.js → chunk-UUZJP47H.js} +8 -8
  72. package/dist/{chunk-ZV3NEWTY.js → chunk-UYKRP3M3.js} +3 -3
  73. package/dist/{chunk-DXGRODYQ.js → chunk-V52AGLNN.js} +14 -7
  74. package/dist/chunk-V52AGLNN.js.map +1 -0
  75. package/dist/{chunk-232TBIFA.js → chunk-VCIC7XJB.js} +4 -4
  76. package/dist/{chunk-AXLWNX4Y.js → chunk-VGGIJMDA.js} +2 -2
  77. package/dist/{chunk-WHG5WJBY.js → chunk-WMI2RDSG.js} +4 -4
  78. package/dist/{chunk-XWWYVVKL.js → chunk-YGUAY67B.js} +2 -2
  79. package/dist/{chunk-7DZ6DJOF.js → chunk-YLWI7FR2.js} +3 -3
  80. package/dist/{chunk-FOUZK5XB.js → chunk-ZE3BXQED.js} +3 -3
  81. package/dist/{chunk-4WKXAVEW.js → chunk-ZI7RMN3H.js} +3 -3
  82. package/dist/{cli-G7DMKZFI.js → cli-2MHUVZH2.js} +27 -27
  83. package/dist/{cli-ZC2XIC3A.js → cli-A5TGO26R.js} +33 -33
  84. package/dist/{cli-QZTJ5LB3.js → cli-B7QCMRWR.js} +30 -23
  85. package/dist/{cli-QZTJ5LB3.js.map → cli-B7QCMRWR.js.map} +1 -1
  86. package/dist/{cli-L5NG7KFW.js → cli-CCUZFOPQ.js} +16 -16
  87. package/dist/{cli-5ASE6JCZ.js → cli-GKRMSA26.js} +26 -26
  88. package/dist/{cli-7OWZWDEE.js → cli-KUMDTVHH.js} +52 -52
  89. package/dist/{cli-73QJRBGD.js → cli-MT4EPC63.js} +13 -13
  90. package/dist/{cli-3FJLVOVV.js → cli-NIHSHMIV.js} +7 -7
  91. package/dist/{cli-BBKPB2HF.js → cli-NKRJ5C4G.js} +13 -13
  92. package/dist/{cli-CWLFP4LA.js → cli-S5CSPYEZ.js} +19 -19
  93. package/dist/{cli-FZ3TF4OX.js → cli-Y4ARUWKJ.js} +40 -9
  94. package/dist/cli-Y4ARUWKJ.js.map +1 -0
  95. package/dist/cli.js +15 -15
  96. package/dist/docmeta.js +6 -6
  97. package/dist/{github-CMA4NVGZ.js → github-2PYSX7EK.js} +10 -10
  98. package/dist/github-M4QRPNXT.js +49 -0
  99. package/dist/{github-YO4WC4Q4.js → github-POT6K5GH.js} +12 -12
  100. package/dist/index.d.ts +2638 -2543
  101. package/dist/index.js +71 -193
  102. package/dist/index.js.map +1 -1
  103. package/dist/{json-W4ATTXER.js → json-3HPHYGQC.js} +13 -13
  104. package/dist/{json-SFFOWLUQ.js → json-ZWSUMRI5.js} +10 -10
  105. package/dist/{labels-ILSCGLR2.js → labels-5P4CKGPW.js} +9 -9
  106. package/dist/{lint-YLEK6OWJ.js → lint-K7R4WNMG.js} +11 -11
  107. package/dist/{list-BPZQKN4W.js → list-3C7Q6VMU.js} +12 -12
  108. package/dist/{list-F3XQLKBG.js → list-HOTRWPC7.js} +10 -10
  109. package/dist/list-O7IREFT2.js +56 -0
  110. package/dist/{page-GL2IKGR7.js → page-6U3CEGTB.js} +9 -9
  111. package/dist/{prepare-IWGF6RYG.js → prepare-PZVX2VVT.js} +11 -11
  112. package/dist/{pretty-MSZCPJCI.js → pretty-53N5ZMM3.js} +12 -12
  113. package/dist/{pretty-T6F4E24U.js → pretty-ENVCHUYG.js} +22 -22
  114. package/dist/{pretty-IWCYUTFE.js → pretty-ODBO2IIJ.js} +10 -10
  115. package/dist/{reporters-FR4AXDLX.js → reporters-3GE5FK5L.js} +10 -10
  116. package/dist/{reporters-4X4NKOXM.js → reporters-FWSJ3O4V.js} +4 -4
  117. package/dist/run-GUHRZ3OX.js +59 -0
  118. package/dist/sarif-2BGXPVSR.js +50 -0
  119. package/dist/{sarif-K22E6B5M.js → sarif-2L4MLVF5.js} +8 -8
  120. package/dist/{sarif-EASXSUVZ.js → sarif-IFFO37SO.js} +8 -8
  121. package/dist/{strategy-N2D5HM4C.js → strategy-BCRB4A55.js} +19 -19
  122. package/dist/{term-43EIVTZC.js → term-HPRQBB2A.js} +15 -15
  123. package/dist/{validate-TQPUQUT2.js → validate-TEYFOGI5.js} +4 -4
  124. package/package.json +2 -1
  125. package/plugin/manni/.claude-plugin/plugin.json +1 -1
  126. package/schemas/lint/template.json +6 -0
  127. package/templates/lint/tgdp/concept.yaml +46 -0
  128. package/templates/lint/tgdp/how-to.yaml +48 -0
  129. package/templates/lint/tgdp/readme.yaml +35 -0
  130. package/templates/lint/tgdp/reference.yaml +49 -0
  131. package/templates/lint/tgdp/release-notes.yaml +47 -0
  132. package/templates/lint/tgdp/troubleshooting.yaml +35 -0
  133. package/templates/lint/tgdp/tutorial.yaml +38 -0
  134. package/dist/check-WYJYCP4C.js +0 -58
  135. package/dist/chunk-732PX32V.js.map +0 -1
  136. package/dist/chunk-DXGRODYQ.js.map +0 -1
  137. package/dist/chunk-ENK42KDR.js.map +0 -1
  138. package/dist/chunk-HM2EZX66.js.map +0 -1
  139. package/dist/chunk-HZUYNBWK.js.map +0 -1
  140. package/dist/chunk-P5KEPKW4.js.map +0 -1
  141. package/dist/chunk-QBTDPI57.js.map +0 -1
  142. package/dist/chunk-ZWVYT2G6.js.map +0 -1
  143. package/dist/cli-FZ3TF4OX.js.map +0 -1
  144. package/dist/github-KD6OPT6N.js +0 -49
  145. package/dist/list-ZDVWETJA.js +0 -49
  146. package/dist/run-4SBRYTKW.js +0 -52
  147. package/dist/sarif-L7IEQ7TT.js +0 -50
  148. /package/dist/{batch-PR6HELQ3.js.map → batch-23GVYKFP.js.map} +0 -0
  149. /package/dist/{build-IJIWQIKR.js.map → build-CRK3HT5F.js.map} +0 -0
  150. /package/dist/{calibrate-OO6JL6BK.js.map → calibrate-2RFP3QX2.js.map} +0 -0
  151. /package/dist/{capture-M73GEEBJ.js.map → capture-267IEE6B.js.map} +0 -0
  152. /package/dist/{check-5PZYQV3S.js.map → check-2HIBGMXD.js.map} +0 -0
  153. /package/dist/{check-FXAHW6N5.js.map → check-5QX33J6O.js.map} +0 -0
  154. /package/dist/{check-MAB3XYX5.js.map → check-6FCVYM62.js.map} +0 -0
  155. /package/dist/{check-V3MJF3LV.js.map → check-MYUFZGKO.js.map} +0 -0
  156. /package/dist/{check-WYJYCP4C.js.map → check-VKQ6GM5D.js.map} +0 -0
  157. /package/dist/{chunk-H5HWF2RF.js.map → chunk-2FGWZH7A.js.map} +0 -0
  158. /package/dist/{chunk-XHBRV4QK.js.map → chunk-3VBEUMKQ.js.map} +0 -0
  159. /package/dist/{chunk-SWGLTZR3.js.map → chunk-3YA6TGWH.js.map} +0 -0
  160. /package/dist/{chunk-7L6GS7LH.js.map → chunk-4L62A7YB.js.map} +0 -0
  161. /package/dist/{chunk-4QJJG2DG.js.map → chunk-4MD2JG2F.js.map} +0 -0
  162. /package/dist/{chunk-S34LFS5R.js.map → chunk-4YCPB67J.js.map} +0 -0
  163. /package/dist/{chunk-CY3NIZZF.js.map → chunk-5DER6O26.js.map} +0 -0
  164. /package/dist/{chunk-DJT5F4MT.js.map → chunk-5MKSZSXH.js.map} +0 -0
  165. /package/dist/{chunk-5NFGWFLC.js.map → chunk-5S5DYW7W.js.map} +0 -0
  166. /package/dist/{chunk-YGVCKNKQ.js.map → chunk-67GJRC62.js.map} +0 -0
  167. /package/dist/{chunk-XXW572PF.js.map → chunk-6KNIQ2SK.js.map} +0 -0
  168. /package/dist/{chunk-RHNEQRPJ.js.map → chunk-6U3XF5VY.js.map} +0 -0
  169. /package/dist/{chunk-GZVHZCUI.js.map → chunk-77U6NQKQ.js.map} +0 -0
  170. /package/dist/{chunk-WZDL4XDO.js.map → chunk-7PF47O3H.js.map} +0 -0
  171. /package/dist/{chunk-TKU525DB.js.map → chunk-7ZRX2OPC.js.map} +0 -0
  172. /package/dist/{chunk-KIYDAB7Q.js.map → chunk-AP3PCNKS.js.map} +0 -0
  173. /package/dist/{chunk-DEDH7IH3.js.map → chunk-C5NE3ZIC.js.map} +0 -0
  174. /package/dist/{chunk-ZL2KZRNC.js.map → chunk-CMJEB5V5.js.map} +0 -0
  175. /package/dist/{chunk-2EW7JGHQ.js.map → chunk-CZFP6Q5O.js.map} +0 -0
  176. /package/dist/{chunk-JNYYKYOX.js.map → chunk-DKV6BVW5.js.map} +0 -0
  177. /package/dist/{chunk-VDJGTAVP.js.map → chunk-E6S3VGN6.js.map} +0 -0
  178. /package/dist/{chunk-HV7R7EP7.js.map → chunk-ERXM4UF7.js.map} +0 -0
  179. /package/dist/{chunk-FCLA7EH4.js.map → chunk-F76DU7FH.js.map} +0 -0
  180. /package/dist/{chunk-KGC6FPEP.js.map → chunk-GBZVXEVE.js.map} +0 -0
  181. /package/dist/{chunk-BOVAHVNE.js.map → chunk-GK3F3FIP.js.map} +0 -0
  182. /package/dist/{chunk-E2ZPFHHR.js.map → chunk-HXILODV5.js.map} +0 -0
  183. /package/dist/{chunk-FWJGGP2J.js.map → chunk-JG2QWMDX.js.map} +0 -0
  184. /package/dist/{chunk-A7JU42HX.js.map → chunk-K5VWSQ4K.js.map} +0 -0
  185. /package/dist/{chunk-JMDZFDCS.js.map → chunk-KNMDIR7D.js.map} +0 -0
  186. /package/dist/{chunk-IFMEIUTY.js.map → chunk-LGHJFEEH.js.map} +0 -0
  187. /package/dist/{chunk-OLFYMD26.js.map → chunk-MBJINPKU.js.map} +0 -0
  188. /package/dist/{chunk-PDIBXVWI.js.map → chunk-MWWPADYI.js.map} +0 -0
  189. /package/dist/{chunk-IWZH3YPO.js.map → chunk-MYYTLNO5.js.map} +0 -0
  190. /package/dist/{chunk-E6TI5H2P.js.map → chunk-NIXJOL7G.js.map} +0 -0
  191. /package/dist/{chunk-BEKZC55J.js.map → chunk-O2STKCTP.js.map} +0 -0
  192. /package/dist/{chunk-RCLF35PJ.js.map → chunk-O632I7AB.js.map} +0 -0
  193. /package/dist/{chunk-NWS5NNHX.js.map → chunk-OJZOKTTX.js.map} +0 -0
  194. /package/dist/{chunk-FK65KN2H.js.map → chunk-OXFNU2IO.js.map} +0 -0
  195. /package/dist/{chunk-6YUNB4VT.js.map → chunk-RKZ2NPO4.js.map} +0 -0
  196. /package/dist/{chunk-NENXKSOX.js.map → chunk-RRAJMTHV.js.map} +0 -0
  197. /package/dist/{chunk-WFHPNJNT.js.map → chunk-SWCFJC7W.js.map} +0 -0
  198. /package/dist/{chunk-WXDNQMUI.js.map → chunk-SXMTWMZZ.js.map} +0 -0
  199. /package/dist/{chunk-N2RRDNVX.js.map → chunk-TU7T6YRR.js.map} +0 -0
  200. /package/dist/{chunk-MSX65NSU.js.map → chunk-U4CWWG2Y.js.map} +0 -0
  201. /package/dist/{chunk-NKE3SJ7O.js.map → chunk-UUZJP47H.js.map} +0 -0
  202. /package/dist/{chunk-ZV3NEWTY.js.map → chunk-UYKRP3M3.js.map} +0 -0
  203. /package/dist/{chunk-232TBIFA.js.map → chunk-VCIC7XJB.js.map} +0 -0
  204. /package/dist/{chunk-AXLWNX4Y.js.map → chunk-VGGIJMDA.js.map} +0 -0
  205. /package/dist/{chunk-WHG5WJBY.js.map → chunk-WMI2RDSG.js.map} +0 -0
  206. /package/dist/{chunk-XWWYVVKL.js.map → chunk-YGUAY67B.js.map} +0 -0
  207. /package/dist/{chunk-7DZ6DJOF.js.map → chunk-YLWI7FR2.js.map} +0 -0
  208. /package/dist/{chunk-FOUZK5XB.js.map → chunk-ZE3BXQED.js.map} +0 -0
  209. /package/dist/{chunk-4WKXAVEW.js.map → chunk-ZI7RMN3H.js.map} +0 -0
  210. /package/dist/{cli-G7DMKZFI.js.map → cli-2MHUVZH2.js.map} +0 -0
  211. /package/dist/{cli-ZC2XIC3A.js.map → cli-A5TGO26R.js.map} +0 -0
  212. /package/dist/{cli-L5NG7KFW.js.map → cli-CCUZFOPQ.js.map} +0 -0
  213. /package/dist/{cli-5ASE6JCZ.js.map → cli-GKRMSA26.js.map} +0 -0
  214. /package/dist/{cli-7OWZWDEE.js.map → cli-KUMDTVHH.js.map} +0 -0
  215. /package/dist/{cli-73QJRBGD.js.map → cli-MT4EPC63.js.map} +0 -0
  216. /package/dist/{cli-3FJLVOVV.js.map → cli-NIHSHMIV.js.map} +0 -0
  217. /package/dist/{cli-BBKPB2HF.js.map → cli-NKRJ5C4G.js.map} +0 -0
  218. /package/dist/{cli-CWLFP4LA.js.map → cli-S5CSPYEZ.js.map} +0 -0
  219. /package/dist/{github-CMA4NVGZ.js.map → github-2PYSX7EK.js.map} +0 -0
  220. /package/dist/{github-KD6OPT6N.js.map → github-M4QRPNXT.js.map} +0 -0
  221. /package/dist/{github-YO4WC4Q4.js.map → github-POT6K5GH.js.map} +0 -0
  222. /package/dist/{json-SFFOWLUQ.js.map → json-3HPHYGQC.js.map} +0 -0
  223. /package/dist/{json-W4ATTXER.js.map → json-ZWSUMRI5.js.map} +0 -0
  224. /package/dist/{labels-ILSCGLR2.js.map → labels-5P4CKGPW.js.map} +0 -0
  225. /package/dist/{lint-YLEK6OWJ.js.map → lint-K7R4WNMG.js.map} +0 -0
  226. /package/dist/{list-BPZQKN4W.js.map → list-3C7Q6VMU.js.map} +0 -0
  227. /package/dist/{list-F3XQLKBG.js.map → list-HOTRWPC7.js.map} +0 -0
  228. /package/dist/{list-ZDVWETJA.js.map → list-O7IREFT2.js.map} +0 -0
  229. /package/dist/{page-GL2IKGR7.js.map → page-6U3CEGTB.js.map} +0 -0
  230. /package/dist/{prepare-IWGF6RYG.js.map → prepare-PZVX2VVT.js.map} +0 -0
  231. /package/dist/{pretty-IWCYUTFE.js.map → pretty-53N5ZMM3.js.map} +0 -0
  232. /package/dist/{pretty-MSZCPJCI.js.map → pretty-ENVCHUYG.js.map} +0 -0
  233. /package/dist/{pretty-T6F4E24U.js.map → pretty-ODBO2IIJ.js.map} +0 -0
  234. /package/dist/{reporters-4X4NKOXM.js.map → reporters-3GE5FK5L.js.map} +0 -0
  235. /package/dist/{reporters-FR4AXDLX.js.map → reporters-FWSJ3O4V.js.map} +0 -0
  236. /package/dist/{run-4SBRYTKW.js.map → run-GUHRZ3OX.js.map} +0 -0
  237. /package/dist/{sarif-EASXSUVZ.js.map → sarif-2BGXPVSR.js.map} +0 -0
  238. /package/dist/{sarif-K22E6B5M.js.map → sarif-2L4MLVF5.js.map} +0 -0
  239. /package/dist/{sarif-L7IEQ7TT.js.map → sarif-IFFO37SO.js.map} +0 -0
  240. /package/dist/{strategy-N2D5HM4C.js.map → strategy-BCRB4A55.js.map} +0 -0
  241. /package/dist/{term-43EIVTZC.js.map → term-HPRQBB2A.js.map} +0 -0
  242. /package/dist/{validate-TQPUQUT2.js.map → validate-TEYFOGI5.js.map} +0 -0
@@ -12,37 +12,108 @@ import {
12
12
  isExecutionGrant,
13
13
  unknownGrantsMessage
14
14
  } from "./chunk-YNHZHSSM.js";
15
+ import {
16
+ BUILTIN_SOURCE,
17
+ BUILT_IN_DEFAULTS,
18
+ SHOW_FORMATS,
19
+ isShowFormat,
20
+ occurrenceWords,
21
+ renderTemplateShow,
22
+ runTemplateShow,
23
+ runTemplates,
24
+ runTools
25
+ } from "./chunk-7YDGDI26.js";
15
26
  import {
16
27
  DocevalsError,
17
28
  FIX_GUIDE
18
29
  } from "./chunk-OZH46DBT.js";
30
+ import {
31
+ LINT_JOBS,
32
+ LINT_TOOLS,
33
+ STDIN_LABEL,
34
+ TOOLS_BY_JOB,
35
+ buildTemplateRouting,
36
+ classifyRef as classifyRef2,
37
+ clearMatcherCache,
38
+ clearTemplateCaches,
39
+ isLintTool,
40
+ listBuiltins,
41
+ loadConfig,
42
+ loadTemplate,
43
+ loadTemplateFile,
44
+ parseConfig,
45
+ rebaseConfig,
46
+ resolveExtends,
47
+ resolveLintRun,
48
+ routePage,
49
+ runLint,
50
+ templateSources,
51
+ validateDocument,
52
+ validateSections
53
+ } from "./chunk-N3J22ZRL.js";
54
+ import {
55
+ RULE_ID_PREFIX,
56
+ TOOL_NAME,
57
+ render,
58
+ renderGithub,
59
+ renderJson,
60
+ renderJunit,
61
+ renderPretty,
62
+ renderSarif,
63
+ renderTemplates,
64
+ renderTools,
65
+ ruleId,
66
+ ruleName
67
+ } from "./chunk-SXMTWMZZ.js";
68
+ import {
69
+ BLOCK_KINDS,
70
+ clearPatternCache,
71
+ headingMatches,
72
+ isWildcard,
73
+ matchSections,
74
+ occurrenceRange
75
+ } from "./chunk-QEFVMOWF.js";
19
76
  import {
20
77
  loadStrategySet,
21
78
  resolveStrategyRun
22
- } from "./chunk-N2RRDNVX.js";
79
+ } from "./chunk-TU7T6YRR.js";
80
+ import {
81
+ listFormats,
82
+ parserByName,
83
+ parserForExtension,
84
+ supportedExtensions as supportedExtensions2
85
+ } from "./chunk-5DER6O26.js";
86
+ import {
87
+ LintError
88
+ } from "./chunk-OPF3NOKF.js";
23
89
  import {
24
90
  bodyOffset,
25
91
  declaredAt
26
- } from "./chunk-7DZ6DJOF.js";
92
+ } from "./chunk-YLWI7FR2.js";
27
93
  import {
28
94
  RECORD_TYPES,
29
95
  metaProvenanceEntries
30
- } from "./chunk-HV7R7EP7.js";
96
+ } from "./chunk-ERXM4UF7.js";
31
97
  import {
32
98
  familyMarks,
33
99
  loadExternalMetadata,
34
100
  memberOf,
35
101
  mergeWithMarks,
36
102
  provenanceEntries
37
- } from "./chunk-DEDH7IH3.js";
103
+ } from "./chunk-C5NE3ZIC.js";
38
104
  import {
105
+ STDIN_TOKEN,
39
106
  __default,
40
107
  classifyRef,
41
108
  extractFrontmatter,
42
109
  extractorForExtension,
43
110
  integrityOf,
44
111
  supportedExtensions
45
- } from "./chunk-A7JU42HX.js";
112
+ } from "./chunk-K5VWSQ4K.js";
113
+ import {
114
+ palette,
115
+ shouldColor
116
+ } from "./chunk-RNVYGWIC.js";
46
117
  import {
47
118
  findConfigFileSync,
48
119
  ownsKey,
@@ -61,8 +132,12 @@ import {
61
132
  parseProviders
62
133
  } from "./chunk-NVYDWVXN.js";
63
134
  import {
135
+ ToolError,
64
136
  errorMessage
65
137
  } from "./chunk-G3T47CFV.js";
138
+ import {
139
+ __export
140
+ } from "./chunk-2H7UOFLK.js";
66
141
 
67
142
  // src/docevals/core/config.ts
68
143
  import { resolve, dirname } from "node:path";
@@ -704,7 +779,7 @@ function camelCaseHint(key, parentSchema) {
704
779
  function movedProviderHint(instancePath, keyword) {
705
780
  return instancePath === `/${NAMESPACE}/provider` && keyword === "type" ? `; "provider" is now a provider name; per-provider settings moved to the top-level providers: map` : "";
706
781
  }
707
- function parseConfig(text, configPath) {
782
+ function parseConfig2(text, configPath) {
708
783
  let raw;
709
784
  try {
710
785
  raw = parseYaml(text);
@@ -903,7 +978,7 @@ ${details}`);
903
978
  }
904
979
  return config;
905
980
  }
906
- function loadConfig(path, cwd = process.cwd()) {
981
+ function loadConfig2(path, cwd = process.cwd()) {
907
982
  const file = path ? readConfigFileSync(path, cwd, CONFIG_FILE) : findConfigFileSync(cwd, CONFIG_FILE);
908
983
  if (file === null) return defaultConfig(cwd);
909
984
  return parseConfigSection(file.value, file.path, file.wrapped, {
@@ -921,7 +996,7 @@ function defaultConfig(cwd = process.cwd()) {
921
996
  }
922
997
  function loadRunConfig(opts, cwd = process.cwd()) {
923
998
  assertCollectionWithoutPaths(opts.collection, opts.paths);
924
- return opts.noConfig ? defaultConfig(cwd) : loadConfig(opts.configPath, cwd);
999
+ return opts.noConfig ? defaultConfig(cwd) : loadConfig2(opts.configPath, cwd);
925
1000
  }
926
1001
  function assertCollectionWithoutPaths(collection, paths) {
927
1002
  if ((collection ?? []).length > 0 && (paths ?? []).length > 0) {
@@ -1200,6 +1275,175 @@ async function withExternalMetadata(pages, config, base) {
1200
1275
  return Promise.all(pages.map((p) => merge.forPage(p)));
1201
1276
  }
1202
1277
 
1278
+ // src/lint/index.ts
1279
+ var lint_exports = {};
1280
+ __export(lint_exports, {
1281
+ BLOCK_KINDS: () => BLOCK_KINDS,
1282
+ BUILTIN_SOURCE: () => BUILTIN_SOURCE,
1283
+ BUILT_IN_DEFAULTS: () => BUILT_IN_DEFAULTS,
1284
+ LINT_JOBS: () => LINT_JOBS,
1285
+ LINT_TOOLS: () => LINT_TOOLS,
1286
+ LintError: () => LintError,
1287
+ RULE_ID_PREFIX: () => RULE_ID_PREFIX,
1288
+ SHOW_FORMATS: () => SHOW_FORMATS,
1289
+ STDIN_LABEL: () => STDIN_LABEL,
1290
+ STDIN_TOKEN: () => STDIN_TOKEN,
1291
+ TOOLS_BY_JOB: () => TOOLS_BY_JOB,
1292
+ TOOL_NAME: () => TOOL_NAME,
1293
+ buildTemplateRouting: () => buildTemplateRouting,
1294
+ classifyRef: () => classifyRef2,
1295
+ clearCaches: () => clearCaches,
1296
+ headingMatches: () => headingMatches,
1297
+ isLintTool: () => isLintTool,
1298
+ isShowFormat: () => isShowFormat,
1299
+ isWildcard: () => isWildcard,
1300
+ listBuiltins: () => listBuiltins,
1301
+ listFormats: () => listFormats,
1302
+ loadConfig: () => loadConfig,
1303
+ loadTemplate: () => loadTemplate,
1304
+ loadTemplateFile: () => loadTemplateFile,
1305
+ matchSections: () => matchSections,
1306
+ occurrenceRange: () => occurrenceRange,
1307
+ occurrenceWords: () => occurrenceWords,
1308
+ palette: () => palette,
1309
+ parseConfig: () => parseConfig,
1310
+ parserByName: () => parserByName,
1311
+ parserForExtension: () => parserForExtension,
1312
+ rebaseConfig: () => rebaseConfig,
1313
+ render: () => render,
1314
+ renderGithub: () => renderGithub,
1315
+ renderJson: () => renderJson,
1316
+ renderJunit: () => renderJunit,
1317
+ renderPretty: () => renderPretty,
1318
+ renderSarif: () => renderSarif,
1319
+ renderTemplateShow: () => renderTemplateShow,
1320
+ renderTemplates: () => renderTemplates,
1321
+ renderTools: () => renderTools,
1322
+ resolveExtends: () => resolveExtends,
1323
+ resolveLintRun: () => resolveLintRun,
1324
+ routePage: () => routePage,
1325
+ ruleId: () => ruleId,
1326
+ ruleName: () => ruleName,
1327
+ runLint: () => runLint,
1328
+ runTemplateShow: () => runTemplateShow,
1329
+ runTemplates: () => runTemplates,
1330
+ runTools: () => runTools,
1331
+ shouldColor: () => shouldColor,
1332
+ supportedExtensions: () => supportedExtensions2,
1333
+ templateSources: () => templateSources,
1334
+ validateDocument: () => validateDocument,
1335
+ validateSections: () => validateSections
1336
+ });
1337
+ function clearCaches() {
1338
+ clearTemplateCaches();
1339
+ clearMatcherCache();
1340
+ clearPatternCache();
1341
+ }
1342
+
1343
+ // src/docevals/core/templates.ts
1344
+ import { existsSync, readFileSync as readFileSync2 } from "node:fs";
1345
+ import { isAbsolute, relative as relative2 } from "node:path";
1346
+ async function asDocevalsError(run) {
1347
+ try {
1348
+ return await run();
1349
+ } catch (e) {
1350
+ if (e instanceof ToolError && !(e instanceof DocevalsError)) {
1351
+ throw new DocevalsError(e.message);
1352
+ }
1353
+ throw e;
1354
+ }
1355
+ }
1356
+ var lintRouter = async (config) => {
1357
+ const routing = await asDocevalsError(() => {
1358
+ const source = config.configSource;
1359
+ const lint = source === null || !existsSync(config.configPath) ? {} : rebaseConfig({
1360
+ config: parseConfig(readFileSync2(config.configPath, "utf8"), source),
1361
+ path: config.configPath
1362
+ });
1363
+ return buildTemplateRouting({ config: lint });
1364
+ });
1365
+ return {
1366
+ route: (page) => routePage(routing, page),
1367
+ load: (ref) => asDocevalsError(async () => ({
1368
+ evals: (await routing.getTemplate(ref)).evals ?? [],
1369
+ sources: await templateSources(ref)
1370
+ }))
1371
+ };
1372
+ };
1373
+ function displayRef(ref, base) {
1374
+ const hash = ref.lastIndexOf("#");
1375
+ const file = hash === -1 ? ref : ref.slice(0, hash);
1376
+ if (!isAbsolute(file)) return ref;
1377
+ const rel = relative2(base, file);
1378
+ const shown = rel.startsWith("..") || isAbsolute(rel) ? file : rel;
1379
+ return shown.replace(/\\/g, "/") + (hash === -1 ? "" : ref.slice(hash));
1380
+ }
1381
+ var ROUTING_KEYS = ["type", "$template"];
1382
+ function ownFrontmatter(page) {
1383
+ const data = page.frontmatter.data;
1384
+ const locate = page.external?.locate;
1385
+ if (locate === void 0) return data;
1386
+ const own = { ...data };
1387
+ for (const key of ROUTING_KEYS) {
1388
+ if (locate(`/${key}`) !== void 0) Reflect.deleteProperty(own, key);
1389
+ }
1390
+ return own;
1391
+ }
1392
+ async function withTemplateEvals(pages, config, base, load = lintRouter) {
1393
+ const router = await load(config);
1394
+ const loaded = /* @__PURE__ */ new Map();
1395
+ const out = [];
1396
+ for (const page of pages) {
1397
+ if (page.extractError !== void 0) {
1398
+ out.push(page);
1399
+ continue;
1400
+ }
1401
+ const routed = router.route({
1402
+ filePath: page.file,
1403
+ absolutePath: page.absPath,
1404
+ frontmatter: ownFrontmatter(page)
1405
+ });
1406
+ const stage = routed.resolution.stage;
1407
+ if (routed.refusal !== void 0) {
1408
+ out.push({
1409
+ ...page,
1410
+ template: { ref: null, stage, entries: [], sources: [], refusal: routed.refusal }
1411
+ });
1412
+ continue;
1413
+ }
1414
+ if (routed.ref === null) {
1415
+ out.push(page);
1416
+ continue;
1417
+ }
1418
+ const ref = displayRef(routed.ref, base);
1419
+ let template = loaded.get(routed.ref);
1420
+ if (template === void 0) {
1421
+ template = await router.load(routed.ref);
1422
+ assertUsesDefined(ref, template.evals, config);
1423
+ loaded.set(routed.ref, template);
1424
+ }
1425
+ out.push({
1426
+ ...page,
1427
+ template: {
1428
+ ref,
1429
+ stage,
1430
+ entries: template.evals,
1431
+ sources: template.sources
1432
+ }
1433
+ });
1434
+ }
1435
+ return out;
1436
+ }
1437
+ function assertUsesDefined(ref, entries, config) {
1438
+ for (const entry of entries) {
1439
+ if (typeof entry === "string" || typeof entry.use !== "string") continue;
1440
+ if (Object.hasOwn(config.evals, entry.use)) continue;
1441
+ throw new DocevalsError(
1442
+ `${ref}: evals use "${entry.use}", which no template it extends and no docevals.evals entry in ${config.configSource ?? config.configPath} defines`
1443
+ );
1444
+ }
1445
+ }
1446
+
1203
1447
  // src/docevals/core/resolve.ts
1204
1448
  import { Ajv2020 as Ajv20202 } from "ajv/dist/2020.js";
1205
1449
 
@@ -1317,8 +1561,8 @@ function optionalEnum(options, key, allowed) {
1317
1561
  }
1318
1562
 
1319
1563
  // src/docevals/core/target.ts
1320
- import { readFileSync as readFileSync2 } from "node:fs";
1321
- import { dirname as dirname3, isAbsolute, relative as relative2, resolve as resolve4, sep } from "node:path";
1564
+ import { readFileSync as readFileSync3 } from "node:fs";
1565
+ import { dirname as dirname3, isAbsolute as isAbsolute2, relative as relative3, resolve as resolve4, sep } from "node:path";
1322
1566
  import { stringify as stringifyYaml } from "yaml";
1323
1567
  var DEFAULT_TARGET = "body";
1324
1568
  function readTarget(target, plan) {
@@ -1334,22 +1578,22 @@ function readTarget(target, plan) {
1334
1578
  };
1335
1579
  }
1336
1580
  const pageDir = dirname3(plan.page.absPath);
1337
- if (isAbsolute(t.path)) {
1581
+ if (isAbsolute2(t.path)) {
1338
1582
  return {
1339
1583
  ok: false,
1340
1584
  reason: `target file "${t.path}" is an absolute path; name it relative to the page`
1341
1585
  };
1342
1586
  }
1343
1587
  const abs = resolve4(pageDir, t.path);
1344
- const rel = relative2(pageDir, abs);
1345
- if (rel === ".." || rel.startsWith(`..${sep}`) || isAbsolute(rel)) {
1588
+ const rel = relative3(pageDir, abs);
1589
+ if (rel === ".." || rel.startsWith(`..${sep}`) || isAbsolute2(rel)) {
1346
1590
  return {
1347
1591
  ok: false,
1348
1592
  reason: `target file "${t.path}" resolves outside the page's directory`
1349
1593
  };
1350
1594
  }
1351
1595
  try {
1352
- return { ok: true, text: readFileSync2(abs, "utf8"), label: `file ${t.path}` };
1596
+ return { ok: true, text: readFileSync3(abs, "utf8"), label: `file ${t.path}` };
1353
1597
  } catch (err) {
1354
1598
  const code = err instanceof Error ? err.code : void 0;
1355
1599
  return {
@@ -1514,8 +1758,8 @@ function fromDef(name, suite, def, source, location) {
1514
1758
  skip: false
1515
1759
  };
1516
1760
  }
1517
- function shorthandName(index, taken) {
1518
- const base = `assertion-${index + 1}`;
1761
+ function shorthandName(index, taken, prefix = "assertion") {
1762
+ const base = `${prefix}-${index + 1}`;
1519
1763
  if (!taken.has(base)) return base;
1520
1764
  for (let n = 2; ; n++) {
1521
1765
  const candidate = `${base}-${n}`;
@@ -1544,12 +1788,35 @@ function declaredLocation(page, pointer, key) {
1544
1788
  if (!(key in page.frontmatter.data)) return { file: page.file };
1545
1789
  return declaredAt(page.file, pointer, metadataOf(page));
1546
1790
  }
1791
+ function templateLocation(page, template) {
1792
+ if (template.stage === "type") return declaredLocation(page, "/type", "type");
1793
+ if (template.stage === "frontmatter-template") {
1794
+ return declaredLocation(page, "/$template", "$template");
1795
+ }
1796
+ return { file: page.file };
1797
+ }
1798
+ function narrow(base, ref, location) {
1799
+ return {
1800
+ ...base,
1801
+ location,
1802
+ type: ref.type ?? base.type,
1803
+ severity: ref.severity ?? base.severity,
1804
+ weight: ref.weight ?? base.weight,
1805
+ options: { ...base.options, ...ref.options ?? {} },
1806
+ skip: ref.skip ?? base.skip
1807
+ };
1808
+ }
1809
+ function entryKey(entry) {
1810
+ if (typeof entry === "string") return void 0;
1811
+ return "use" in entry ? entry.use : entry.id;
1812
+ }
1547
1813
  function resolvePage(page, config) {
1548
1814
  const problems = [];
1549
1815
  const empty = {
1550
1816
  page,
1551
1817
  skip: false,
1552
1818
  suite: null,
1819
+ template: page.template?.ref ?? null,
1553
1820
  evals: [],
1554
1821
  problems
1555
1822
  };
@@ -1597,10 +1864,41 @@ function resolvePage(page, config) {
1597
1864
  }
1598
1865
  }
1599
1866
  const reportSuite = suiteName ?? "default";
1867
+ const templateEntries = page.template?.entries ?? [];
1600
1868
  const claimed = new Set(resolved.keys());
1601
- for (const entry of evalEntries(fm.evals)) {
1602
- if (typeof entry === "string") continue;
1603
- claimed.add("use" in entry ? entry.use : entry.id);
1869
+ for (const entry of [...templateEntries, ...evalEntries(fm.evals)]) {
1870
+ const key = entryKey(entry);
1871
+ if (key !== void 0) claimed.add(key);
1872
+ }
1873
+ if (page.template?.refusal !== void 0) {
1874
+ problems.push({
1875
+ message: page.template.refusal,
1876
+ level: "error",
1877
+ ...locationOf(page, "/$template")
1878
+ });
1879
+ }
1880
+ if (page.template !== void 0) {
1881
+ const templateAt = templateLocation(page, page.template);
1882
+ for (const [i, entry] of templateEntries.entries()) {
1883
+ if (typeof entry === "string") {
1884
+ const name = shorthandName(i, claimed, "template-assertion");
1885
+ claimed.add(name);
1886
+ resolved.set(
1887
+ name,
1888
+ fromDef(name, reportSuite, { assertion: entry }, "template", templateAt)
1889
+ );
1890
+ continue;
1891
+ }
1892
+ if ("use" in entry) {
1893
+ const def = config.evals[entry.use];
1894
+ const base = resolved.get(entry.use) ?? (def === void 0 ? void 0 : fromDef(entry.use, reportSuite, def, "config", templateAt));
1895
+ if (base !== void 0) resolved.set(entry.use, narrow(base, entry, templateAt));
1896
+ continue;
1897
+ }
1898
+ const ev = fromDef(entry.id, reportSuite, normalizeEvalDef(entry), "template", templateAt);
1899
+ ev.skip = entry.skip ?? false;
1900
+ resolved.set(entry.id, ev);
1901
+ }
1604
1902
  }
1605
1903
  for (const [i, entry] of evalEntries(fm.evals).entries()) {
1606
1904
  const linePtr = `/evals/${String(i)}`;
@@ -1624,7 +1922,8 @@ function resolvePage(page, config) {
1624
1922
  if ("use" in entry) {
1625
1923
  const ref = entry;
1626
1924
  const def = config.evals[ref.use];
1627
- if (!def) {
1925
+ const base = resolved.get(ref.use) ?? (def === void 0 ? void 0 : fromDef(ref.use, reportSuite, def, "config", entryAt));
1926
+ if (base === void 0) {
1628
1927
  problems.push({
1629
1928
  message: `Unknown eval "${ref.use}" (not defined in ${config.configPath})`,
1630
1929
  level: "error",
@@ -1632,16 +1931,7 @@ function resolvePage(page, config) {
1632
1931
  });
1633
1932
  continue;
1634
1933
  }
1635
- const base = resolved.get(ref.use) ?? fromDef(ref.use, reportSuite, def, "config", entryAt);
1636
- resolved.set(ref.use, {
1637
- ...base,
1638
- location: entryAt,
1639
- type: ref.type ?? base.type,
1640
- severity: ref.severity ?? base.severity,
1641
- weight: ref.weight ?? base.weight,
1642
- options: { ...base.options, ...ref.options ?? {} },
1643
- skip: ref.skip ?? base.skip
1644
- });
1934
+ resolved.set(ref.use, narrow(base, ref, entryAt));
1645
1935
  continue;
1646
1936
  }
1647
1937
  const inline = entry;
@@ -1673,6 +1963,7 @@ function resolvePage(page, config) {
1673
1963
  page,
1674
1964
  skip: pageSkip,
1675
1965
  suite: suiteName,
1966
+ template: page.template?.ref ?? null,
1676
1967
  evals: [...resolved.values()],
1677
1968
  problems
1678
1969
  };
@@ -1695,7 +1986,7 @@ function assertRegisteredGraders(plans, config) {
1695
1986
  }
1696
1987
  for (const plan of plans) {
1697
1988
  for (const ev of plan.evals) {
1698
- if (ev.source === "page" && !isRegisteredGrader(ev.grader)) {
1989
+ if (ev.source !== "config" && !isRegisteredGrader(ev.grader)) {
1699
1990
  throw unregistered(plan.page.file, ev.name, ev.grader);
1700
1991
  }
1701
1992
  }
@@ -1946,15 +2237,15 @@ async function resolveReaders(plans, config, cwd, load = loadPersonaRecords) {
1946
2237
 
1947
2238
  // src/docevals/core/baseline.ts
1948
2239
  import { createHash } from "node:crypto";
1949
- import { mkdirSync, readFileSync as readFileSync3, renameSync, writeFileSync } from "node:fs";
1950
- import { dirname as dirname4, relative as relative3, resolve as resolve6 } from "node:path";
2240
+ import { mkdirSync, readFileSync as readFileSync4, renameSync, writeFileSync } from "node:fs";
2241
+ import { dirname as dirname4, relative as relative4, resolve as resolve6 } from "node:path";
1951
2242
  var DEFAULT_BASELINE_PATH = ".manni-docevals-baseline.json";
1952
2243
  var BASELINE_VERSION = 1;
1953
2244
  var FINGERPRINT_RE = /^[0-9a-f]{16}$/;
1954
2245
  function canonicalFilePath(file, ctx) {
1955
2246
  if (!ctx) return file;
1956
2247
  const from = ctx.runBase ?? ctx.base;
1957
- return relative3(ctx.base, resolve6(from, file)).replace(/\\/g, "/");
2248
+ return relative4(ctx.base, resolve6(from, file)).replace(/\\/g, "/");
1958
2249
  }
1959
2250
  function fingerprint(f) {
1960
2251
  const parts = [f.evalName, f.ruleId ?? ""];
@@ -2019,7 +2310,7 @@ function parseBaseline(text, source) {
2019
2310
  function readBaseline(absPath, source) {
2020
2311
  let text;
2021
2312
  try {
2022
- text = readFileSync3(absPath, "utf8");
2313
+ text = readFileSync4(absPath, "utf8");
2023
2314
  } catch (err) {
2024
2315
  if (err.code === "ENOENT") return null;
2025
2316
  throw new DocevalsError(
@@ -2185,7 +2476,7 @@ async function changedFilesSince(ref, root, exec) {
2185
2476
 
2186
2477
  // src/docevals/core/newer-than.ts
2187
2478
  import { statSync as statSync2 } from "node:fs";
2188
- import { relative as relative4, resolve as resolve8 } from "node:path";
2479
+ import { relative as relative5, resolve as resolve8 } from "node:path";
2189
2480
  var GIT_TIMEOUT_MS2 = 3e4;
2190
2481
  async function git2(exec, args, cwd) {
2191
2482
  const result = await exec(args, { cwd, timeoutMs: GIT_TIMEOUT_MS2 });
@@ -2233,7 +2524,7 @@ function newestMtime(files) {
2233
2524
  return newest;
2234
2525
  }
2235
2526
  async function lastCommit(files, repo, exec) {
2236
- const paths = files.map((f) => relative4(repo.topLevel, f).replace(/\\/g, "/"));
2527
+ const paths = files.map((f) => relative5(repo.topLevel, f).replace(/\\/g, "/"));
2237
2528
  const log = await git2(
2238
2529
  exec,
2239
2530
  ["git", "--no-pager", "log", "-1", "--format=%ct", "--", ...paths],
@@ -2548,7 +2839,10 @@ function applySelection(plans, config, options, requireRunnable = true) {
2548
2839
  return true;
2549
2840
  }
2550
2841
  function scopeManifests(plan) {
2551
- const manifests = plan.page.external?.evalManifests ?? [];
2842
+ const manifests = [
2843
+ ...plan.page.external?.evalManifests ?? [],
2844
+ ...plan.page.template?.sources ?? []
2845
+ ];
2552
2846
  const records = [...new Set(plan.evals.flatMap((ev) => ev.readers?.files ?? []))];
2553
2847
  return records.length === 0 ? manifests : [...manifests, ...records];
2554
2848
  }
@@ -2680,7 +2974,7 @@ async function runEvals(options = {}) {
2680
2974
  cwd
2681
2975
  );
2682
2976
  const exec = options.exec ?? realExec;
2683
- const pages = await withExternalMetadata(
2977
+ const external = await withExternalMetadata(
2684
2978
  discoverPages(
2685
2979
  config,
2686
2980
  {
@@ -2694,6 +2988,7 @@ async function runEvals(options = {}) {
2694
2988
  config,
2695
2989
  cwd
2696
2990
  );
2991
+ const pages = await withTemplateEvals(external, config, cwd);
2697
2992
  if (options.writeBaseline !== void 0 && options.writeBaseline !== false && ((options.evalNames?.some((n) => n.trim() !== "") ?? false) || options.suite !== void 0 || options.since !== void 0 || options.newerThan !== void 0)) {
2698
2993
  throw new DocevalsError(
2699
2994
  "--write-baseline records the whole corpus, so it cannot be combined with --eval, --suite, --since or --newer-than: the re-record would drop every finding the narrowing excluded. Re-run without it to record."
@@ -2794,7 +3089,7 @@ Point \`defaults.suite\` at a suite in ${config.configPath}, or give the pages a
2794
3089
  results.push(skippedResult(plan, ev, "deterministic evals skipped (--ai-only)"));
2795
3090
  continue;
2796
3091
  }
2797
- const pageAuthoredArgv = ev.source === "page" && (ev.grader === "command" || Array.isArray(ev.options.command));
3092
+ const pageAuthoredArgv = ev.source !== "config" && (ev.grader === "command" || Array.isArray(ev.options.command));
2798
3093
  if (pageAuthoredArgv && !allowFrontmatterCommands) {
2799
3094
  results.push(
2800
3095
  skippedResult(
@@ -3060,8 +3355,8 @@ export {
3060
3355
  looksLikeOverflow,
3061
3356
  partLabel,
3062
3357
  DEFAULT_CONFIG_FILENAME,
3063
- parseConfig,
3064
- loadConfig,
3358
+ parseConfig2 as parseConfig,
3359
+ loadConfig2 as loadConfig,
3065
3360
  loadRunConfig,
3066
3361
  leadingFrontmatterFormat,
3067
3362
  stripFrontmatterBlock,
@@ -3075,6 +3370,9 @@ export {
3075
3370
  urlManifestRefusal,
3076
3371
  loadExternalReader,
3077
3372
  withExternalMetadata,
3373
+ lint_exports,
3374
+ lintRouter,
3375
+ withTemplateEvals,
3078
3376
  frontmatterSchema,
3079
3377
  FRONTMATTER_SCHEMA_ID,
3080
3378
  readTarget,
@@ -3099,4 +3397,4 @@ export {
3099
3397
  applySelection,
3100
3398
  runEvals
3101
3399
  };
3102
- //# sourceMappingURL=chunk-ENK42KDR.js.map
3400
+ //# sourceMappingURL=chunk-TAGYZJQA.js.map