@hawkeyexl/manni 4.13.0 → 4.14.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 (288) hide show
  1. package/README.md +1 -1
  2. package/dist/batch-TKNIUBLK.js +48 -0
  3. package/dist/build-6G7PEAG4.js +37 -0
  4. package/dist/calibrate-BDCXDZV5.js +43 -0
  5. package/dist/capture-NQJLZD66.js +39 -0
  6. package/dist/check-552X5I2J.js +36 -0
  7. package/dist/{check-LU5YC3L4.js → check-5HMDJOFP.js} +15 -14
  8. package/dist/check-BSB4FF4L.js +33 -0
  9. package/dist/{check-NBN2YK2J.js → check-QIZCTAIR.js} +33 -32
  10. package/dist/{check-NBN2YK2J.js.map → check-QIZCTAIR.js.map} +1 -1
  11. package/dist/{chunk-NSAW7U42.js → chunk-2A6XYSXO.js} +58 -10
  12. package/dist/chunk-2A6XYSXO.js.map +1 -0
  13. package/dist/{chunk-PA7CMQGD.js → chunk-2HQSMZ4N.js} +11 -5
  14. package/dist/chunk-2HQSMZ4N.js.map +1 -0
  15. package/dist/{chunk-LNGSE7V2.js → chunk-36FJWJSK.js} +132 -27
  16. package/dist/chunk-36FJWJSK.js.map +1 -0
  17. package/dist/{chunk-BMBAAPGN.js → chunk-3BMTCS4H.js} +33 -18
  18. package/dist/chunk-3BMTCS4H.js.map +1 -0
  19. package/dist/{chunk-NWUXRV6N.js → chunk-3CCY7M3R.js} +10 -8
  20. package/dist/chunk-3CCY7M3R.js.map +1 -0
  21. package/dist/{chunk-TDCOKKMI.js → chunk-3MTZZJKH.js} +3 -3
  22. package/dist/chunk-4U3X7LYV.js +236 -0
  23. package/dist/chunk-4U3X7LYV.js.map +1 -0
  24. package/dist/{chunk-OYIWF3B2.js → chunk-56URKBXQ.js} +17 -17
  25. package/dist/chunk-56URKBXQ.js.map +1 -0
  26. package/dist/{chunk-IGQMBHFY.js → chunk-66MKBRTA.js} +88 -12
  27. package/dist/chunk-66MKBRTA.js.map +1 -0
  28. package/dist/{chunk-GWI6JPTT.js → chunk-6VT3Z352.js} +24 -7
  29. package/dist/chunk-6VT3Z352.js.map +1 -0
  30. package/dist/{chunk-CU57HT2E.js → chunk-6WJUZQQX.js} +2 -2
  31. package/dist/{chunk-NTEYYYKL.js → chunk-6XFSZCLT.js} +16 -22
  32. package/dist/chunk-6XFSZCLT.js.map +1 -0
  33. package/dist/{chunk-OREHJQNN.js → chunk-742G2QCV.js} +4 -3
  34. package/dist/{chunk-OREHJQNN.js.map → chunk-742G2QCV.js.map} +1 -1
  35. package/dist/chunk-7AXJY4FX.js +83 -0
  36. package/dist/chunk-7AXJY4FX.js.map +1 -0
  37. package/dist/{chunk-EQ7E6HMG.js → chunk-7KOWE4F4.js} +14 -16
  38. package/dist/chunk-7KOWE4F4.js.map +1 -0
  39. package/dist/{chunk-J5NOWIJ3.js → chunk-7PENJOI6.js} +14 -8
  40. package/dist/{chunk-J5NOWIJ3.js.map → chunk-7PENJOI6.js.map} +1 -1
  41. package/dist/chunk-7WVWGULD.js +81 -0
  42. package/dist/chunk-7WVWGULD.js.map +1 -0
  43. package/dist/{chunk-VYBYUQIP.js → chunk-A7MNH4YI.js} +88 -7
  44. package/dist/chunk-A7MNH4YI.js.map +1 -0
  45. package/dist/{chunk-WVXCN5DS.js → chunk-AJYUJ37M.js} +65 -8
  46. package/dist/chunk-AJYUJ37M.js.map +1 -0
  47. package/dist/{chunk-OTJOBZJ5.js → chunk-B2242FYO.js} +2 -1
  48. package/dist/chunk-B2242FYO.js.map +1 -0
  49. package/dist/{chunk-YZ4TJLZQ.js → chunk-B6GUSA53.js} +15 -10
  50. package/dist/chunk-B6GUSA53.js.map +1 -0
  51. package/dist/{chunk-PCGBXHSE.js → chunk-BA4TCCOO.js} +5 -5
  52. package/dist/{chunk-TQ3W6RKG.js → chunk-BAWKNF6U.js} +3 -3
  53. package/dist/{chunk-HY6ROJTH.js → chunk-BIRGZEWO.js} +86 -10
  54. package/dist/chunk-BIRGZEWO.js.map +1 -0
  55. package/dist/chunk-BREAC43H.js +85 -0
  56. package/dist/chunk-BREAC43H.js.map +1 -0
  57. package/dist/{chunk-YQV75FIL.js → chunk-CFMI74TP.js} +3 -3
  58. package/dist/{chunk-OUAH7XF2.js → chunk-CZJNYHK7.js} +2 -2
  59. package/dist/{chunk-52WO7ESI.js → chunk-D2TIZOMN.js} +6 -5
  60. package/dist/chunk-D2TIZOMN.js.map +1 -0
  61. package/dist/{chunk-VOXOBUTX.js → chunk-EXAZ7K25.js} +5 -5
  62. package/dist/{chunk-BQXY76JB.js → chunk-GHZAOPGK.js} +148 -92
  63. package/dist/chunk-GHZAOPGK.js.map +1 -0
  64. package/dist/{chunk-UQMLCIRX.js → chunk-HGU4FDRY.js} +6 -6
  65. package/dist/{chunk-ZXRAE55H.js → chunk-IGRXQC3H.js} +2 -2
  66. package/dist/{chunk-3BVDFQ6Y.js → chunk-IOYEPB27.js} +5 -5
  67. package/dist/{chunk-U6IHLEWT.js → chunk-JCTHXG33.js} +2 -2
  68. package/dist/{chunk-6ZFJWUUH.js → chunk-JNMY7KZG.js} +2 -2
  69. package/dist/{chunk-OBXCJZ6R.js → chunk-JTEWU4C6.js} +26 -16
  70. package/dist/chunk-JTEWU4C6.js.map +1 -0
  71. package/dist/{chunk-VNYXK7TM.js → chunk-JWBS7YDI.js} +8 -8
  72. package/dist/chunk-JWBS7YDI.js.map +1 -0
  73. package/dist/{chunk-ULDV2LUI.js → chunk-LCRBR7KW.js} +10 -4
  74. package/dist/chunk-LCRBR7KW.js.map +1 -0
  75. package/dist/{chunk-3HUCB4Z3.js → chunk-M43NTWVH.js} +10 -7
  76. package/dist/chunk-M43NTWVH.js.map +1 -0
  77. package/dist/chunk-M534DYAJ.js +76 -0
  78. package/dist/chunk-M534DYAJ.js.map +1 -0
  79. package/dist/chunk-MC7U5IH4.js +126 -0
  80. package/dist/chunk-MC7U5IH4.js.map +1 -0
  81. package/dist/{chunk-7JPL3CUC.js → chunk-MIGFQP5N.js} +2 -2
  82. package/dist/{chunk-TZOYZK2E.js → chunk-OZUPJB4J.js} +2 -2
  83. package/dist/{chunk-X4MPUD4B.js → chunk-QEZQ7MGH.js} +53 -13
  84. package/dist/chunk-QEZQ7MGH.js.map +1 -0
  85. package/dist/{chunk-DQOM3DEU.js → chunk-QF7EIRMU.js} +29 -23
  86. package/dist/chunk-QF7EIRMU.js.map +1 -0
  87. package/dist/chunk-QK6VYJHV.js +26 -0
  88. package/dist/chunk-QK6VYJHV.js.map +1 -0
  89. package/dist/chunk-QS2Z3SWL.js +21 -0
  90. package/dist/chunk-QS2Z3SWL.js.map +1 -0
  91. package/dist/{chunk-OKMTUAWO.js → chunk-QSPH4F56.js} +5 -5
  92. package/dist/{chunk-JUL2PRQN.js → chunk-STM3G7WJ.js} +207 -79
  93. package/dist/chunk-STM3G7WJ.js.map +1 -0
  94. package/dist/{chunk-HKTGHLBA.js → chunk-T3BBNLAT.js} +2 -2
  95. package/dist/{chunk-HKTGHLBA.js.map → chunk-T3BBNLAT.js.map} +1 -1
  96. package/dist/{chunk-SCLXVTFZ.js → chunk-TKINOTVS.js} +1 -1
  97. package/dist/chunk-TKINOTVS.js.map +1 -0
  98. package/dist/{chunk-E6BVUDGY.js → chunk-USKTLEPZ.js} +4 -4
  99. package/dist/{chunk-LSFXNAHU.js → chunk-V6OCE4ND.js} +129 -59
  100. package/dist/chunk-V6OCE4ND.js.map +1 -0
  101. package/dist/{chunk-N6A6DJUO.js → chunk-VBBJGFME.js} +6 -7
  102. package/dist/chunk-VBBJGFME.js.map +1 -0
  103. package/dist/{chunk-CWXZ2MRT.js → chunk-VHJ72YCD.js} +4 -3
  104. package/dist/chunk-VHJ72YCD.js.map +1 -0
  105. package/dist/{chunk-PAU352SV.js → chunk-W4GTMOJW.js} +2 -2
  106. package/dist/{chunk-JEUFYSFQ.js → chunk-W5DO426O.js} +114 -70
  107. package/dist/chunk-W5DO426O.js.map +1 -0
  108. package/dist/{chunk-3O6U4ICM.js → chunk-W6B24IMO.js} +3 -3
  109. package/dist/{chunk-SE4JN5XN.js → chunk-WDENIUC7.js} +3 -1
  110. package/dist/chunk-WDENIUC7.js.map +1 -0
  111. package/dist/{chunk-KE2F7QES.js → chunk-WIPTWZVH.js} +6 -6
  112. package/dist/{chunk-7RNONVHI.js → chunk-Y36PNW6J.js} +9 -9
  113. package/dist/{chunk-QKT67PFE.js → chunk-Y37VJFX2.js} +9 -9
  114. package/dist/{chunk-3XGTNN3M.js → chunk-YJ3EG2D5.js} +12 -124
  115. package/dist/chunk-YJ3EG2D5.js.map +1 -0
  116. package/dist/{chunk-UKZNLVJW.js → chunk-ZINZTHWO.js} +4 -2
  117. package/dist/chunk-ZINZTHWO.js.map +1 -0
  118. package/dist/{chunk-CODWRUAD.js → chunk-ZPLIXZZ6.js} +7 -5
  119. package/dist/chunk-ZPLIXZZ6.js.map +1 -0
  120. package/dist/{chunk-HIEGOW7X.js → chunk-ZRQUQS7P.js} +5 -79
  121. package/dist/chunk-ZRQUQS7P.js.map +1 -0
  122. package/dist/{cli-KYTCJYXK.js → cli-5XKHMRZ5.js} +317 -28
  123. package/dist/cli-5XKHMRZ5.js.map +1 -0
  124. package/dist/{cli-DGFLJ2DD.js → cli-7QHJW5GH.js} +69 -26
  125. package/dist/cli-7QHJW5GH.js.map +1 -0
  126. package/dist/{cli-7DETHSNW.js → cli-BUV3DRUH.js} +29 -83
  127. package/dist/cli-BUV3DRUH.js.map +1 -0
  128. package/dist/{cli-RP5E7XHC.js → cli-IKDX2I5X.js} +20 -18
  129. package/dist/{cli-RP5E7XHC.js.map → cli-IKDX2I5X.js.map} +1 -1
  130. package/dist/{cli-H5LVGOVT.js → cli-LOND37OA.js} +383 -247
  131. package/dist/cli-LOND37OA.js.map +1 -0
  132. package/dist/{cli-AZKWTCFV.js → cli-O6Y2KVWD.js} +11 -11
  133. package/dist/{cli-BW5VOFOZ.js → cli-QTLOAVOY.js} +11 -10
  134. package/dist/{cli-BW5VOFOZ.js.map → cli-QTLOAVOY.js.map} +1 -1
  135. package/dist/{cli-G66X7YMP.js → cli-SOA2E26G.js} +23 -22
  136. package/dist/{cli-G66X7YMP.js.map → cli-SOA2E26G.js.map} +1 -1
  137. package/dist/{cli-ECVT4YXR.js → cli-VQYB3663.js} +19 -18
  138. package/dist/{cli-ECVT4YXR.js.map → cli-VQYB3663.js.map} +1 -1
  139. package/dist/{cli-L5B2RVV2.js → cli-X6IWTDFK.js} +31 -29
  140. package/dist/{cli-L5B2RVV2.js.map → cli-X6IWTDFK.js.map} +1 -1
  141. package/dist/{cli-4JHQCPHU.js → cli-XAT673VB.js} +3 -3
  142. package/dist/cli.js +14 -14
  143. package/dist/{config-JJW75SBX.js → config-7I5CHHRZ.js} +6 -6
  144. package/dist/docmeta.js +10 -10
  145. package/dist/github-IPBOTQBN.js +36 -0
  146. package/dist/github-XM36D7ZH.js +32 -0
  147. package/dist/graph/runtime.js.map +1 -1
  148. package/dist/index.d.ts +92 -20
  149. package/dist/index.js +137 -131
  150. package/dist/index.js.map +1 -1
  151. package/dist/{json-LCVPMEAM.js → json-225TND7K.js} +15 -13
  152. package/dist/{labels-OQXBVM4A.js → labels-CTLHIRC4.js} +14 -12
  153. package/dist/{labels-OQXBVM4A.js.map → labels-CTLHIRC4.js.map} +1 -1
  154. package/dist/lint-NP3PC3SO.js +35 -0
  155. package/dist/list-JJGNKO6S.js +36 -0
  156. package/dist/list-Q457TIMA.js +34 -0
  157. package/dist/{page-XPX5XJZE.js → page-FJW7J2EU.js} +13 -12
  158. package/dist/{picker-3XF36MJF.js → picker-FPUC5UGM.js} +3 -3
  159. package/dist/{prepare-VMBIQYAM.js → prepare-RKJEKHAG.js} +21 -20
  160. package/dist/{prepare-VMBIQYAM.js.map → prepare-RKJEKHAG.js.map} +1 -1
  161. package/dist/{pretty-KG6TMOEI.js → pretty-ECBO3EVT.js} +15 -14
  162. package/dist/{pretty-KSTZMBUF.js → pretty-QFEN2SIA.js} +15 -13
  163. package/dist/{provider-LBX4IXGX.js → provider-JY2I3VLF.js} +3 -3
  164. package/dist/{release-VV3UTKE5.js → release-Z3ASYZ3S.js} +3 -3
  165. package/dist/{reporters-FBYLPKD4.js → reporters-IKKL5RHS.js} +15 -14
  166. package/dist/{reporters-26H3N2KW.js → reporters-TDQDQHKE.js} +6 -5
  167. package/dist/{reporters-AQU4W3KY.js → reporters-WGLQKW2Y.js} +6 -6
  168. package/dist/run-BTETGGLW.js +39 -0
  169. package/dist/sarif-K4SMB563.js +31 -0
  170. package/dist/sarif-ZHFK6PZY.js +37 -0
  171. package/dist/{term-SI3VM6EM.js → term-2M7APX2A.js} +58 -109
  172. package/dist/term-2M7APX2A.js.map +1 -0
  173. package/dist/types-VMOT7RAL.js +12 -0
  174. package/dist/types-VMOT7RAL.js.map +1 -0
  175. package/dist/{validate-NQO7TFSN.js → validate-GBM5STKS.js} +6 -6
  176. package/dist/validate-GBM5STKS.js.map +1 -0
  177. package/package.json +1 -1
  178. package/plugin/manni/.claude-plugin/plugin.json +1 -1
  179. package/plugin/manni/skills/check/SKILL.md +2 -2
  180. package/plugin/manni/skills/evals/SKILL.md +1 -1
  181. package/plugin/manni/skills/fix/SKILL.md +95 -16
  182. package/plugin/manni/skills/setup/SKILL.md +1 -1
  183. package/shapes/graph/shapes-1.1.1.ttl +953 -0
  184. package/dist/batch-OB2FXT47.js +0 -46
  185. package/dist/build-4BL24BG3.js +0 -36
  186. package/dist/calibrate-AEDJ7N7G.js +0 -41
  187. package/dist/capture-TP3P4YNL.js +0 -38
  188. package/dist/check-5IYH42KS.js +0 -34
  189. package/dist/check-S55MH66H.js +0 -30
  190. package/dist/chunk-3HUCB4Z3.js.map +0 -1
  191. package/dist/chunk-3XGTNN3M.js.map +0 -1
  192. package/dist/chunk-52WO7ESI.js.map +0 -1
  193. package/dist/chunk-BMBAAPGN.js.map +0 -1
  194. package/dist/chunk-BQXY76JB.js.map +0 -1
  195. package/dist/chunk-CODWRUAD.js.map +0 -1
  196. package/dist/chunk-CWXZ2MRT.js.map +0 -1
  197. package/dist/chunk-DQOM3DEU.js.map +0 -1
  198. package/dist/chunk-EQ7E6HMG.js.map +0 -1
  199. package/dist/chunk-GWI6JPTT.js.map +0 -1
  200. package/dist/chunk-HIEGOW7X.js.map +0 -1
  201. package/dist/chunk-HY6ROJTH.js.map +0 -1
  202. package/dist/chunk-IGQMBHFY.js.map +0 -1
  203. package/dist/chunk-JEUFYSFQ.js.map +0 -1
  204. package/dist/chunk-JUL2PRQN.js.map +0 -1
  205. package/dist/chunk-LNGSE7V2.js.map +0 -1
  206. package/dist/chunk-LSFXNAHU.js.map +0 -1
  207. package/dist/chunk-MNH7QO4Z.js +0 -15
  208. package/dist/chunk-MNH7QO4Z.js.map +0 -1
  209. package/dist/chunk-N6A6DJUO.js.map +0 -1
  210. package/dist/chunk-NSAW7U42.js.map +0 -1
  211. package/dist/chunk-NTEYYYKL.js.map +0 -1
  212. package/dist/chunk-NWUXRV6N.js.map +0 -1
  213. package/dist/chunk-OBXCJZ6R.js.map +0 -1
  214. package/dist/chunk-OTJOBZJ5.js.map +0 -1
  215. package/dist/chunk-OYIWF3B2.js.map +0 -1
  216. package/dist/chunk-PA7CMQGD.js.map +0 -1
  217. package/dist/chunk-SCLXVTFZ.js.map +0 -1
  218. package/dist/chunk-SE4JN5XN.js.map +0 -1
  219. package/dist/chunk-UKZNLVJW.js.map +0 -1
  220. package/dist/chunk-ULDV2LUI.js.map +0 -1
  221. package/dist/chunk-VNYXK7TM.js.map +0 -1
  222. package/dist/chunk-VYBYUQIP.js.map +0 -1
  223. package/dist/chunk-WVXCN5DS.js.map +0 -1
  224. package/dist/chunk-X4MPUD4B.js.map +0 -1
  225. package/dist/chunk-Y6M4JFKG.js +0 -117
  226. package/dist/chunk-Y6M4JFKG.js.map +0 -1
  227. package/dist/chunk-YZ4TJLZQ.js.map +0 -1
  228. package/dist/cli-7DETHSNW.js.map +0 -1
  229. package/dist/cli-DGFLJ2DD.js.map +0 -1
  230. package/dist/cli-H5LVGOVT.js.map +0 -1
  231. package/dist/cli-KYTCJYXK.js.map +0 -1
  232. package/dist/github-DJQ4MWNZ.js +0 -35
  233. package/dist/github-UWTDM2J2.js +0 -30
  234. package/dist/lint-O7XRHKFP.js +0 -34
  235. package/dist/list-OOOCLOAL.js +0 -35
  236. package/dist/list-OYQ5XPN2.js +0 -32
  237. package/dist/run-KUGTU3TT.js +0 -37
  238. package/dist/term-SI3VM6EM.js.map +0 -1
  239. package/dist/types-Y6TXHM7M.js +0 -10
  240. /package/dist/{batch-OB2FXT47.js.map → batch-TKNIUBLK.js.map} +0 -0
  241. /package/dist/{build-4BL24BG3.js.map → build-6G7PEAG4.js.map} +0 -0
  242. /package/dist/{calibrate-AEDJ7N7G.js.map → calibrate-BDCXDZV5.js.map} +0 -0
  243. /package/dist/{capture-TP3P4YNL.js.map → capture-NQJLZD66.js.map} +0 -0
  244. /package/dist/{check-5IYH42KS.js.map → check-552X5I2J.js.map} +0 -0
  245. /package/dist/{check-LU5YC3L4.js.map → check-5HMDJOFP.js.map} +0 -0
  246. /package/dist/{check-S55MH66H.js.map → check-BSB4FF4L.js.map} +0 -0
  247. /package/dist/{chunk-TDCOKKMI.js.map → chunk-3MTZZJKH.js.map} +0 -0
  248. /package/dist/{chunk-CU57HT2E.js.map → chunk-6WJUZQQX.js.map} +0 -0
  249. /package/dist/{chunk-PCGBXHSE.js.map → chunk-BA4TCCOO.js.map} +0 -0
  250. /package/dist/{chunk-TQ3W6RKG.js.map → chunk-BAWKNF6U.js.map} +0 -0
  251. /package/dist/{chunk-YQV75FIL.js.map → chunk-CFMI74TP.js.map} +0 -0
  252. /package/dist/{chunk-OUAH7XF2.js.map → chunk-CZJNYHK7.js.map} +0 -0
  253. /package/dist/{chunk-VOXOBUTX.js.map → chunk-EXAZ7K25.js.map} +0 -0
  254. /package/dist/{chunk-UQMLCIRX.js.map → chunk-HGU4FDRY.js.map} +0 -0
  255. /package/dist/{chunk-ZXRAE55H.js.map → chunk-IGRXQC3H.js.map} +0 -0
  256. /package/dist/{chunk-3BVDFQ6Y.js.map → chunk-IOYEPB27.js.map} +0 -0
  257. /package/dist/{chunk-U6IHLEWT.js.map → chunk-JCTHXG33.js.map} +0 -0
  258. /package/dist/{chunk-6ZFJWUUH.js.map → chunk-JNMY7KZG.js.map} +0 -0
  259. /package/dist/{chunk-7JPL3CUC.js.map → chunk-MIGFQP5N.js.map} +0 -0
  260. /package/dist/{chunk-TZOYZK2E.js.map → chunk-OZUPJB4J.js.map} +0 -0
  261. /package/dist/{chunk-OKMTUAWO.js.map → chunk-QSPH4F56.js.map} +0 -0
  262. /package/dist/{chunk-E6BVUDGY.js.map → chunk-USKTLEPZ.js.map} +0 -0
  263. /package/dist/{chunk-PAU352SV.js.map → chunk-W4GTMOJW.js.map} +0 -0
  264. /package/dist/{chunk-3O6U4ICM.js.map → chunk-W6B24IMO.js.map} +0 -0
  265. /package/dist/{chunk-KE2F7QES.js.map → chunk-WIPTWZVH.js.map} +0 -0
  266. /package/dist/{chunk-7RNONVHI.js.map → chunk-Y36PNW6J.js.map} +0 -0
  267. /package/dist/{chunk-QKT67PFE.js.map → chunk-Y37VJFX2.js.map} +0 -0
  268. /package/dist/{cli-AZKWTCFV.js.map → cli-O6Y2KVWD.js.map} +0 -0
  269. /package/dist/{cli-4JHQCPHU.js.map → cli-XAT673VB.js.map} +0 -0
  270. /package/dist/{config-JJW75SBX.js.map → config-7I5CHHRZ.js.map} +0 -0
  271. /package/dist/{github-DJQ4MWNZ.js.map → github-IPBOTQBN.js.map} +0 -0
  272. /package/dist/{github-UWTDM2J2.js.map → github-XM36D7ZH.js.map} +0 -0
  273. /package/dist/{json-LCVPMEAM.js.map → json-225TND7K.js.map} +0 -0
  274. /package/dist/{lint-O7XRHKFP.js.map → lint-NP3PC3SO.js.map} +0 -0
  275. /package/dist/{list-OOOCLOAL.js.map → list-JJGNKO6S.js.map} +0 -0
  276. /package/dist/{list-OYQ5XPN2.js.map → list-Q457TIMA.js.map} +0 -0
  277. /package/dist/{page-XPX5XJZE.js.map → page-FJW7J2EU.js.map} +0 -0
  278. /package/dist/{picker-3XF36MJF.js.map → picker-FPUC5UGM.js.map} +0 -0
  279. /package/dist/{pretty-KG6TMOEI.js.map → pretty-ECBO3EVT.js.map} +0 -0
  280. /package/dist/{pretty-KSTZMBUF.js.map → pretty-QFEN2SIA.js.map} +0 -0
  281. /package/dist/{provider-LBX4IXGX.js.map → provider-JY2I3VLF.js.map} +0 -0
  282. /package/dist/{release-VV3UTKE5.js.map → release-Z3ASYZ3S.js.map} +0 -0
  283. /package/dist/{reporters-26H3N2KW.js.map → reporters-IKKL5RHS.js.map} +0 -0
  284. /package/dist/{reporters-AQU4W3KY.js.map → reporters-TDQDQHKE.js.map} +0 -0
  285. /package/dist/{reporters-FBYLPKD4.js.map → reporters-WGLQKW2Y.js.map} +0 -0
  286. /package/dist/{run-KUGTU3TT.js.map → run-BTETGGLW.js.map} +0 -0
  287. /package/dist/{types-Y6TXHM7M.js.map → sarif-K4SMB563.js.map} +0 -0
  288. /package/dist/{validate-NQO7TFSN.js.map → sarif-ZHFK6PZY.js.map} +0 -0
@@ -1,12 +1,20 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ evidenceVerdict,
4
+ verdictLines
5
+ } from "./chunk-QS2Z3SWL.js";
2
6
  import {
3
7
  REPORT_FORMATS,
4
8
  parseFormat
5
- } from "./chunk-ZXRAE55H.js";
9
+ } from "./chunk-IGRXQC3H.js";
10
+ import {
11
+ FIX_GUIDE
12
+ } from "./chunk-WDENIUC7.js";
6
13
  import {
7
14
  escapeWorkflowCommandMessage,
8
- escapeWorkflowCommandProperty
9
- } from "./chunk-MNH7QO4Z.js";
15
+ escapeWorkflowCommandProperty,
16
+ guidanceLines
17
+ } from "./chunk-QK6VYJHV.js";
10
18
  import {
11
19
  palette
12
20
  } from "./chunk-RNVYGWIC.js";
@@ -38,6 +46,26 @@ function locationLabel(location) {
38
46
  return location.line === void 0 ? location.file : `${location.file}:${String(location.line)}`;
39
47
  }
40
48
 
49
+ // src/docevals/reporters/judged.ts
50
+ function judgedLines(r) {
51
+ if (r.outcome === "fail" && r.consensus) {
52
+ return verdictLines(r.consensus, "fail", "Edit the page so the assertion holds.");
53
+ }
54
+ if (r.outcome !== "needs-review") return [];
55
+ if (!r.consensus) {
56
+ return ["Awaiting human review. Record a verdict with manni docevals review."];
57
+ }
58
+ return verdictLines(
59
+ r.consensus,
60
+ "no confident verdict",
61
+ "Record a verdict with manni docevals review, or sharpen the assertion and run manni docevals calibrate."
62
+ );
63
+ }
64
+ function resultGuidance(r) {
65
+ const speaks = r.outcome === "fail" || r.outcome === "error" || r.outcome === "needs-review" || (r.findings ?? []).length > 0;
66
+ return speaks ? guidanceLines(r.guidance) : [];
67
+ }
68
+
41
69
  // src/docevals/reporters/pretty.ts
42
70
  function outcomeTag(r, pc) {
43
71
  switch (r.outcome) {
@@ -79,16 +107,16 @@ function renderPretty(report, opts = {}) {
79
107
  const sev = f.severity === "error" ? pc.red(f.severity) : f.severity === "warning" ? pc.yellow(f.severity) : pc.dim(f.severity);
80
108
  lines.push(` ${sev}${loc}${rule} ${f.message}`);
81
109
  }
110
+ for (const line of judgedLines(r)) lines.push(` ${line}`);
82
111
  if (r.consensus && r.outcome !== "pass") {
83
112
  const v = r.consensus;
84
113
  lines.push(
85
114
  pc.dim(
86
- ` votes pass:${v.votes.pass} fail:${v.votes.fail} partial:${v.votes.partial}` + (v.votes.error ? ` error:${v.votes.error}` : "") + ` \u2014 confidence ${v.meanConfidence.toFixed(2)}`
115
+ ` votes pass:${v.votes.pass} fail:${v.votes.fail} partial:${v.votes.partial}` + (v.votes.error ? ` error:${v.votes.error}` : "")
87
116
  )
88
117
  );
89
- const reasoning = v.runs.find((run) => run.verdict)?.verdict?.reasoning;
90
- if (reasoning) lines.push(pc.dim(` ${reasoning}`));
91
118
  }
119
+ for (const line of resultGuidance(r)) lines.push(pc.dim(` ${line}`));
92
120
  }
93
121
  }
94
122
  for (const p of report.problems) {
@@ -157,7 +185,7 @@ function renderPretty(report, opts = {}) {
157
185
  lines.push("");
158
186
  lines.push(
159
187
  pc.yellow(
160
- `${reviews.length} eval(s) need human review \u2014 run \`manni docevals review\` to record verdicts.`
188
+ `${reviews.length} eval(s) need human review. Run \`manni docevals review\` to record verdicts.`
161
189
  )
162
190
  );
163
191
  }
@@ -220,20 +248,20 @@ function renderMarkdown(report) {
220
248
  const icon = OUTCOME_ICON[r.outcome] ?? "";
221
249
  const entry = declaringEntry(r);
222
250
  const where = entry.file === r.file ? `\`${locationLabel(entry)}\`` : `\`${r.file}\` \xB7 \`${locationLabel(entry)}\``;
223
- lines.push(`- ${icon} **${r.evalName}** \u2014 ${where}`);
251
+ lines.push(`- ${icon} **${r.evalName}** \xB7 ${where}`);
224
252
  for (const f of r.findings ?? []) {
225
253
  const loc = f.line != null ? `:${f.line}` : "";
226
254
  lines.push(` - ${f.severity}${loc}: ${f.message}`);
227
255
  }
256
+ for (const line of judgedLines(r)) lines.push(` - ${line}`);
228
257
  if (r.consensus) {
229
258
  const v = r.consensus;
230
- const reasoning = v.runs.find((run) => run.verdict)?.verdict?.reasoning;
231
259
  lines.push(
232
260
  ` - votes pass:${v.votes.pass} fail:${v.votes.fail} partial:${v.votes.partial}, confidence ${v.meanConfidence.toFixed(2)} (${v.zone})`
233
261
  );
234
- if (reasoning) lines.push(` - ${reasoning}`);
235
262
  }
236
263
  if (r.skipReason && r.outcome === "error") lines.push(` - ${r.skipReason}`);
264
+ for (const line of resultGuidance(r)) lines.push(` - ${line}`);
237
265
  }
238
266
  }
239
267
  for (const p of report.problems) {
@@ -261,6 +289,7 @@ function renderGithub(report) {
261
289
  `file=${escapeWorkflowCommandProperty(entry.file)}`,
262
290
  entry.line !== void 0 ? `line=${String(entry.line)}` : void 0
263
291
  ];
292
+ const guidance = resultGuidance(r);
264
293
  for (const f of r.findings ?? []) {
265
294
  const level = f.severity;
266
295
  const props = [
@@ -268,20 +297,18 @@ function renderGithub(report) {
268
297
  f.line != null && f.col != null ? `col=${String(f.col)}` : void 0,
269
298
  `title=${escapeWorkflowCommandProperty(`manni docevals: ${f.evalName}`)}`
270
299
  ].filter(Boolean).join(",");
271
- lines.push(`::${level} ${props}::${escapeWorkflowCommandMessage(f.message)}`);
300
+ lines.push(`::${level} ${props}::${escapeWorkflowCommandMessage([f.message, ...guidance].join("\n"))}`);
272
301
  }
273
- if (r.outcome === "fail" && r.consensus) {
274
- const reasoning = r.consensus.runs.find((run) => run.verdict)?.verdict?.reasoning ?? "";
302
+ const entryAnnotation = (level, text) => {
275
303
  const props = [...entryProps, `title=${escapeWorkflowCommandProperty(`manni docevals: ${r.evalName}`)}`].filter(Boolean).join(",");
276
- lines.push(
277
- `::error ${props}::${escapeWorkflowCommandMessage(
278
- `AI judge: fail (confidence ${r.consensus.meanConfidence.toFixed(2)}). ${reasoning}`
279
- )}`
280
- );
304
+ lines.push(`::${level} ${props}::${escapeWorkflowCommandMessage([...text, ...guidance].join("\n"))}`);
305
+ };
306
+ const judged = judgedLines(r);
307
+ if (judged.length > 0) {
308
+ entryAnnotation(r.outcome === "fail" ? "error" : "warning", judged);
281
309
  }
282
310
  if (r.outcome === "error" && (r.findings ?? []).length === 0) {
283
- const props = [...entryProps, `title=${escapeWorkflowCommandProperty(`manni docevals: ${r.evalName}`)}`].filter(Boolean).join(",");
284
- lines.push(`::error ${props}::${escapeWorkflowCommandMessage(r.skipReason ?? "eval errored")}`);
311
+ entryAnnotation("error", [r.skipReason ?? "eval errored"]);
285
312
  }
286
313
  }
287
314
  for (const p of report.problems) {
@@ -326,27 +353,53 @@ function entryLocation(result) {
326
353
  ...entry.line !== void 0 ? { region: { startLine: entry.line } } : {}
327
354
  };
328
355
  }
356
+ var STATIC_RULES = {
357
+ "regex/found": {
358
+ short: "Text the eval forbids is present",
359
+ full: "The page contains text an eval forbids. The line is the first match."
360
+ },
361
+ "regex/not-found": {
362
+ short: "Text the eval asks for is missing",
363
+ full: "The page lacks text an eval asks for."
364
+ },
365
+ "regex/count": {
366
+ short: "Text matches a different number of times",
367
+ full: "The page matches an eval's pattern a different number of times than the eval asks. The line is the first match."
368
+ },
369
+ "regex/unreadable-target": {
370
+ short: "The eval's target cannot be read",
371
+ full: "The file an eval reads cannot be read. The eval is at fault, not the page."
372
+ }
373
+ };
329
374
  function renderSarif(report) {
330
375
  const rules = /* @__PURE__ */ new Map();
331
376
  const results = [];
377
+ const declare = (id, evalName, grader, level) => {
378
+ if (rules.has(id)) return;
379
+ const fixed = STATIC_RULES[id];
380
+ rules.set(id, {
381
+ id,
382
+ name: fixed === void 0 ? evalName : id,
383
+ shortDescription: {
384
+ text: fixed?.short ?? `manni docevals eval "${evalName}" (${grader})`
385
+ },
386
+ ...fixed === void 0 ? {} : { fullDescription: { text: fixed.full } },
387
+ helpUri: FIX_GUIDE,
388
+ defaultConfiguration: { level }
389
+ });
390
+ };
332
391
  for (const evalResult of report.evalResults) {
392
+ const guidance = resultGuidance(evalResult);
393
+ const message = (lines) => ({ text: [...lines, ...guidance].join("\n") });
394
+ const properties = evalResult.guidance == null ? {} : { properties: { guidance: evalResult.guidance } };
333
395
  for (const finding of evalResult.findings ?? []) {
334
396
  const id = ruleIdFor(finding);
335
397
  const level = levelFor(finding.severity);
336
- if (!rules.has(id)) {
337
- rules.set(id, {
338
- id,
339
- name: finding.evalName,
340
- shortDescription: {
341
- text: `manni docevals eval "${finding.evalName}" (${evalResult.grader})`
342
- },
343
- defaultConfiguration: { level }
344
- });
345
- }
398
+ declare(id, finding.evalName, evalResult.grader, level);
346
399
  results.push({
347
400
  ruleId: id,
348
401
  level,
349
- message: { text: finding.message },
402
+ message: message([finding.message]),
350
403
  locations: [
351
404
  {
352
405
  // A finding with a content line keeps it. One without lands on
@@ -359,48 +412,37 @@ function renderSarif(report) {
359
412
  }
360
413
  } : entryLocation(evalResult)
361
414
  }
362
- ]
415
+ ],
416
+ ...properties
363
417
  });
364
418
  }
365
419
  if (evalResult.outcome === "error") {
366
420
  const id = evalResult.evalName;
367
- if (!rules.has(id)) {
368
- rules.set(id, {
369
- id,
370
- name: evalResult.evalName,
371
- shortDescription: {
372
- text: `manni docevals eval "${evalResult.evalName}" (${evalResult.grader})`
373
- },
374
- defaultConfiguration: { level: "error" }
375
- });
376
- }
421
+ declare(id, evalResult.evalName, evalResult.grader, "error");
377
422
  results.push({
378
423
  ruleId: id,
379
424
  level: "error",
380
- message: { text: evalResult.skipReason ?? "eval errored" },
381
- locations: [{ physicalLocation: entryLocation(evalResult) }]
425
+ message: message([evalResult.skipReason ?? "eval errored"]),
426
+ locations: [{ physicalLocation: entryLocation(evalResult) }],
427
+ ...properties
382
428
  });
383
429
  }
384
- if (evalResult.outcome === "fail" && evalResult.consensus) {
430
+ const judged = judgedLines(evalResult);
431
+ if (judged.length > 0) {
385
432
  const id = evalResult.evalName;
386
- if (!rules.has(id)) {
387
- rules.set(id, {
388
- id,
389
- name: evalResult.evalName,
390
- shortDescription: {
391
- text: `manni docevals eval "${evalResult.evalName}" (AI judge)`
392
- },
393
- defaultConfiguration: { level: "error" }
394
- });
395
- }
396
- const reasoning = evalResult.consensus.runs.find((r) => r.verdict)?.verdict?.reasoning ?? "";
433
+ const level = evalResult.outcome === "fail" ? "error" : "warning";
434
+ declare(
435
+ id,
436
+ evalResult.evalName,
437
+ evalResult.grader === "ai" ? "AI judge" : evalResult.grader,
438
+ level
439
+ );
397
440
  results.push({
398
441
  ruleId: id,
399
- level: "error",
400
- message: {
401
- text: `AI judge: fail (confidence ${evalResult.consensus.meanConfidence.toFixed(2)}). ${reasoning}`.trim()
402
- },
403
- locations: [{ physicalLocation: entryLocation(evalResult) }]
442
+ level,
443
+ message: message(judged),
444
+ locations: [{ physicalLocation: entryLocation(evalResult) }],
445
+ ...properties
404
446
  });
405
447
  }
406
448
  }
@@ -433,16 +475,17 @@ function attr(name, value) {
433
475
  return `${name}="${esc(String(value))}"`;
434
476
  }
435
477
  function failureText(result) {
478
+ return [...failureLines(result), ...resultGuidance(result)].join("\n");
479
+ }
480
+ function failureLines(result) {
436
481
  const findings = (result.findings ?? []).map(
437
482
  (f) => `${f.file}${f.line != null ? `:${f.line}` : ""} ${f.message}`
438
483
  );
439
- if (findings.length > 0) return findings.join("\n");
440
- if (result.consensus) {
441
- const reasoning = result.consensus.runs.find((r) => r.verdict)?.verdict?.reasoning ?? "";
442
- return `AI judge: fail (confidence ${result.consensus.meanConfidence.toFixed(2)}). ${reasoning}`.trim();
443
- }
444
- if (result.skipReason) return result.skipReason;
445
- return `${result.evalName} failed`;
484
+ if (findings.length > 0) return findings;
485
+ const judged = judgedLines(result);
486
+ if (judged.length > 0) return judged;
487
+ if (result.skipReason) return [result.skipReason];
488
+ return [`${result.evalName} failed`];
446
489
  }
447
490
  function testcase(result) {
448
491
  const entry = declaringEntry(result);
@@ -556,7 +599,7 @@ function evalBlock(r) {
556
599
  )}</span> <code>${esc2(r.evalName)}</code><span class="muted"> \xB7 ${esc2(locationLabel(declaringEntry(r)))} \xB7 ${esc2(r.grader)}${r.weight !== void 0 && r.weight !== 1 ? ` \xB7 weight ${String(r.weight)}` : ""}</span></div>`
557
600
  );
558
601
  if (r.skipReason) bits.push(`<p class="reason">${esc2(r.skipReason)}</p>`);
559
- const verdict = r.consensus?.runs.find((run) => run.verdict)?.verdict;
602
+ const verdict = r.consensus ? evidenceVerdict(r.consensus) : void 0;
560
603
  if (verdict) {
561
604
  bits.push(
562
605
  `<p class="reason">${esc2(verdict.reasoning)}</p>`,
@@ -581,6 +624,7 @@ function evalBlock(r) {
581
624
  `<p class="finding"><span class="sev ${esc2(f.severity)}">${esc2(f.severity)}</span> ${esc2(f.message)}${f.line ? ` <span class="muted">(line ${String(f.line)})</span>` : ""}</p>`
582
625
  );
583
626
  }
627
+ for (const line of resultGuidance(r)) bits.push(`<p class="muted">${esc2(line)}</p>`);
584
628
  bits.push("</div>");
585
629
  return bits.filter(Boolean).join("\n");
586
630
  }
@@ -680,4 +724,4 @@ function render(report, format, opts = {}) {
680
724
  export {
681
725
  render
682
726
  };
683
- //# sourceMappingURL=chunk-JEUFYSFQ.js.map
727
+ //# sourceMappingURL=chunk-W5DO426O.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/docevals/reporters/scope.ts","../src/docevals/reporters/location.ts","../src/docevals/reporters/judged.ts","../src/docevals/reporters/pretty.ts","../src/docevals/reporters/json.ts","../src/docevals/reporters/markdown.ts","../src/docevals/reporters/github.ts","../src/docevals/reporters/sarif.ts","../src/docevals/reporters/junit.ts","../src/docevals/reporters/html.ts","../src/docevals/reporters/index.ts"],"sourcesContent":["/**\n * The one sentence every reporter prints about a scoped run: what `--since`\n * and `--newer-than` narrowed it to (ADR 01040). Built here once so the\n * formats cannot word the same scope three ways.\n */\nimport type { EngineReport } from \"../core/engine.js\";\n\nexport interface ScopeLine {\n /** Nothing was selected, so nothing was evaluated. */\n empty: boolean;\n /** The sentence, with `code` applied to the ref (backticks in Markdown). */\n text: (code?: (s: string) => string) => string;\n}\n\n/** The scope sentence for `report`, or `undefined` when the run was not scoped. */\nexport function scopeLine(report: EngineReport): ScopeLine | undefined {\n const sc = report.since ?? report.newerThan;\n if (sc === undefined) return undefined;\n const { pagesSelected, pagesTotal } = sc;\n const ref = report.since?.ref;\n const window = report.newerThan?.duration;\n return {\n empty: pagesSelected === 0,\n text: (code = (s) => s) => {\n const what = [\n ref === undefined ? undefined : `since ${code(ref)}`,\n window === undefined ? undefined : `in the last ${window}`,\n ]\n .filter((s) => s !== undefined)\n .join(\" and \");\n return pagesSelected === 0\n ? `No pages changed ${what} — nothing was evaluated.`\n : `Scoped to ${String(pagesSelected)} of ${String(pagesTotal)} page(s) changed ${what}.`;\n },\n };\n}\n","/**\n * Where a result points when nothing in the page does: the entry that\n * declares its eval (`EvalResult.location`). A finding with a content line\n * keeps its own file and line; everything else about an eval lands here.\n */\nimport type { EvalResult } from \"../types.js\";\n\n/** A file, and the 1-based line in it when one is known. */\nexport type Location = NonNullable<EvalResult[\"location\"]>;\n\n/**\n * The declaring entry of a result. The engine stamps one on every result; a\n * result built elsewhere without one names its page.\n */\nexport function declaringEntry(r: EvalResult): Location {\n return r.location ?? { file: r.file };\n}\n\n/** `<file>:<line>`, or the file alone when no line declares the eval. */\nexport function locationLabel(location: Location): string {\n return location.line === undefined\n ? location.file\n : `${location.file}:${String(location.line)}`;\n}\n","/**\n * What every reporter prints under a result that did not pass (proposal\n * 0089): the judged block for a judged or reviewed eval, and the guidance\n * lines that say what the eval asks for.\n */\nimport { guidanceLines } from \"../../shared/guidance.js\";\nimport { verdictLines } from \"../../shared/verdict-lines.js\";\nimport type { EvalResult } from \"../types.js\";\n\n/**\n * `AI judge: …`, `Observed: …`, `Reasoning: …` for a judged failure or an\n * eval awaiting review, and the human-review line for an eval no judge saw.\n * Empty for every other result.\n */\nexport function judgedLines(r: EvalResult): string[] {\n if (r.outcome === \"fail\" && r.consensus) {\n return verdictLines(r.consensus, \"fail\", \"Edit the page so the assertion holds.\");\n }\n if (r.outcome !== \"needs-review\") return [];\n if (!r.consensus) {\n return [\"Awaiting human review. Record a verdict with manni docevals review.\"];\n }\n return verdictLines(\n r.consensus,\n \"no confident verdict\",\n \"Record a verdict with manni docevals review, or sharpen the assertion and run manni docevals calibrate.\",\n );\n}\n\n/**\n * The guidance lines, under a result that failed, errored or awaits review,\n * and under any finding, which a passing eval at warning severity still has.\n */\nexport function resultGuidance(r: EvalResult): string[] {\n const speaks =\n r.outcome === \"fail\" ||\n r.outcome === \"error\" ||\n r.outcome === \"needs-review\" ||\n (r.findings ?? []).length > 0;\n return speaks ? guidanceLines(r.guidance) : [];\n}\n","/** Pretty (terminal) reporter: `--format pretty`, the default. */\nimport { scopeLine } from \"./scope.js\";\nimport { palette, type Colors } from \"../../shared/color.js\";\nimport type { EvalResult } from \"../types.js\";\nimport type { EngineReport } from \"../core/engine.js\";\nimport { declaringEntry, locationLabel } from \"./location.js\";\nimport { judgedLines, resultGuidance } from \"./judged.js\";\n\nfunction outcomeTag(r: EvalResult, pc: Colors): string {\n switch (r.outcome) {\n case \"pass\":\n return pc.green(\"pass\");\n case \"fail\":\n return pc.red(\"FAIL\");\n case \"needs-review\":\n return pc.yellow(\"review\");\n case \"skipped\":\n return pc.dim(\"skip\");\n case \"error\":\n return pc.red(\"ERROR\");\n }\n}\n\n/** What the caller decided about colour. Off unless the caller turns it on. */\nexport interface ColorOptions {\n color?: boolean;\n}\n\nexport function renderPretty(\n report: EngineReport,\n opts: ColorOptions = {},\n): string {\n const pc = palette(opts.color === true);\n const lines: string[] = [];\n\n const byFile = new Map<string, EvalResult[]>();\n for (const r of report.evalResults) {\n const list = byFile.get(r.file) ?? [];\n list.push(r);\n byFile.set(r.file, list);\n }\n\n for (const [file, results] of [...byFile.entries()].sort()) {\n lines.push(pc.bold(file));\n for (const r of results) {\n const zone = r.consensus ? pc.dim(` [${r.consensus.zone}]`) : \"\";\n const via = r.via ? pc.dim(\" (human-reviewed)\") : \"\";\n const gen = r.generated ? pc.cyan(\" (generated)\") : \"\";\n const entry = pc.dim(locationLabel(declaringEntry(r)));\n lines.push(` ${outcomeTag(r, pc)} ${r.evalName}${zone}${via}${gen} ${entry}`);\n if (r.skipReason && r.outcome !== \"pass\") {\n lines.push(pc.dim(` ${r.skipReason}`));\n }\n for (const f of r.findings ?? []) {\n const loc = f.line != null ? `:${f.line}` : \"\";\n const rule = f.ruleId ? pc.dim(` [${f.ruleId}]`) : \"\";\n const sev =\n f.severity === \"error\"\n ? pc.red(f.severity)\n : f.severity === \"warning\"\n ? pc.yellow(f.severity)\n : pc.dim(f.severity);\n lines.push(` ${sev}${loc}${rule} ${f.message}`);\n }\n for (const line of judgedLines(r)) lines.push(` ${line}`);\n if (r.consensus && r.outcome !== \"pass\") {\n const v = r.consensus;\n lines.push(\n pc.dim(\n ` votes pass:${v.votes.pass} fail:${v.votes.fail} partial:${v.votes.partial}` +\n (v.votes.error ? ` error:${v.votes.error}` : \"\"),\n ),\n );\n }\n for (const line of resultGuidance(r)) lines.push(pc.dim(` ${line}`));\n }\n }\n\n for (const p of report.problems) {\n const tag = p.level === \"error\" ? pc.red(\"error\") : pc.yellow(\"warn\");\n const loc = p.line != null ? `:${p.line}` : \"\";\n lines.push(`${tag} ${p.file}${loc} ${p.message}`);\n }\n\n if (report.generated.length > 0) {\n lines.push(\"\");\n lines.push(pc.cyan(`Generated ${report.generated.length} check script(s):`));\n for (const g of report.generated) lines.push(` ${g}`);\n }\n\n lines.push(\"\");\n lines.push(pc.bold(\"Suites\"));\n for (const s of report.suites) {\n // A filtered run measured part of the suite, so it has numbers but no\n // verdict. Rendering that as \"below target\" would read as a failure the\n // run never established (ADR 01018).\n const status = s.partial\n ? pc.yellow(\"partial — filtered run, target not evaluated\")\n : s.meetsTarget\n ? pc.green(\"ok\")\n : pc.red(\"below target\");\n const extras: string[] = [];\n if (s.needsReview > 0) extras.push(`${s.needsReview} to review`);\n if (s.skipped > 0) extras.push(`${s.skipped} skipped`);\n const extra = extras.length > 0 ? pc.dim(` (${extras.join(\", \")})`) : \"\";\n lines.push(\n ` ${s.suite}: ${s.passed}/${s.passed + s.failed + s.errored} passed — ` +\n `${(s.passRate * 100).toFixed(0)}% vs target ${(s.targetPassRate * 100).toFixed(0)}% ${status}${extra}`,\n );\n }\n\n // What `--since` scoped the run to. The zero case gets its own line, in\n // yellow, because a clean-tree run is otherwise an indistinguishable green:\n // same exit code, same empty body, nothing saying that nothing ran.\n const sc = scopeLine(report);\n if (sc) {\n lines.push(\"\");\n lines.push(sc.empty ? pc.yellow(sc.text()) : pc.dim(sc.text()));\n }\n\n // The baseline's line in the summary. `removed` is the load-bearing number\n // on a re-record: an accidental --write-baseline over a narrowed glob\n // forgives everything it did not see, and nothing else in a CI log says so.\n const bl = report.baseline;\n if (bl) {\n lines.push(\"\");\n if (bl.written) {\n lines.push(\n pc.dim(\n `Baseline ${bl.path}: recorded ${bl.written.total} finding(s) ` +\n `(+${bl.written.added}, -${bl.written.removed}).`,\n ),\n );\n if (bl.written.removed > 0) {\n lines.push(\n pc.yellow(\n ` ${bl.written.removed} previously recorded finding(s) are no longer in the baseline. ` +\n `If this run covered less of the corpus than the last one, they have just been forgiven.`,\n ),\n );\n }\n } else {\n lines.push(\n pc.dim(\n `Baseline ${bl.path}: ${bl.suppressed} finding(s) suppressed of ${bl.recorded} recorded` +\n (bl.stale > 0 ? `, ${bl.stale} no longer occur` : \"\") +\n \".\",\n ),\n );\n }\n }\n\n if (report.usage.judgedEvals > 0) {\n lines.push(\"\");\n lines.push(\n pc.dim(\n `Judged ${report.usage.judgedEvals} evals (${report.usage.cachedEvals} cached), ` +\n `${report.usage.totalTokens.toLocaleString()} tokens`,\n ),\n );\n }\n\n const reviews = report.evalResults.filter(\n (r) => r.outcome === \"needs-review\",\n );\n if (reviews.length > 0) {\n lines.push(\"\");\n lines.push(\n pc.yellow(\n `${reviews.length} eval(s) need human review. Run \\`manni docevals review\\` to record verdicts.`,\n ),\n );\n }\n\n return lines.join(\"\\n\");\n}\n","/** JSON reporter: the full engine report, machine-readable. */\nimport type { EngineReport } from \"../core/engine.js\";\n\nexport function renderJson(report: EngineReport): string {\n return JSON.stringify(report, null, 2);\n}\n","/** Markdown reporter: PR-comment-friendly summary. */\nimport { scopeLine } from \"./scope.js\";\nimport type { EngineReport } from \"../core/engine.js\";\nimport { declaringEntry, locationLabel } from \"./location.js\";\nimport { judgedLines, resultGuidance } from \"./judged.js\";\n\nconst OUTCOME_ICON: Record<string, string> = {\n pass: \"✅\",\n fail: \"❌\",\n \"needs-review\": \"🟡\",\n skipped: \"⏭️\",\n error: \"🛑\",\n};\n\nexport function renderMarkdown(report: EngineReport): string {\n const lines: string[] = [\"## manni docevals results\", \"\"];\n\n lines.push(\"| Suite | Passed | Failed | Review | Pass rate | Target | |\");\n lines.push(\"|---|---|---|---|---|---|---|\");\n for (const s of report.suites) {\n lines.push(\n `| ${s.suite} | ${s.passed} | ${s.failed + s.errored} | ${s.needsReview} | ` +\n `${(s.passRate * 100).toFixed(0)}% | ${(s.targetPassRate * 100).toFixed(0)}% | ` +\n // A filtered run measured part of the suite: no verdict, so\n // neither mark. Rendering ❌ made every filtered run look failed\n // (ADR 01018).\n `${s.partial ? \"➖ partial\" : s.meetsTarget ? \"✅\" : \"❌\"} |`,\n );\n }\n\n // What `--since` scoped the run to. This matters most in the CI formats: a\n // clean-tree run is otherwise an empty table nobody can tell apart from a\n // corpus that passed (ADR 01040).\n const sc = scopeLine(report);\n if (sc) {\n const text = sc.text((s) => `\\`${s}\\``);\n lines.push(\"\");\n lines.push(sc.empty ? `> **${text}**` : `_${text}_`);\n }\n\n // The baseline line belongs in the CI formats above all: `removed` is the\n // only signal that an over-narrow re-record just forgave findings, and\n // `renderGithub` delegates its summary here, so omitting it meant the\n // warning existed only in the format CI does not read.\n const bl = report.baseline;\n if (bl) {\n lines.push(\"\");\n if (bl.written) {\n lines.push(\n `_Baseline \\`${bl.path}\\`: recorded ${bl.written.total} finding(s) ` +\n `(+${bl.written.added}, -${bl.written.removed})._`,\n );\n if (bl.written.removed > 0) {\n lines.push(\n \"\",\n `> **${bl.written.removed} previously recorded finding(s) are no longer in the baseline.** ` +\n \"If this run covered less of the corpus than the last one, they have just been forgiven.\",\n );\n }\n } else {\n lines.push(\n `_Baseline \\`${bl.path}\\`: ${bl.suppressed} finding(s) suppressed of ${bl.recorded} recorded` +\n (bl.stale > 0 ? `, ${bl.stale} no longer occur` : \"\") +\n \"._\",\n );\n }\n }\n\n const notable = report.evalResults.filter(\n (r) => r.outcome === \"fail\" || r.outcome === \"error\" || r.outcome === \"needs-review\",\n );\n if (notable.length > 0) {\n lines.push(\"\", \"### Findings\", \"\");\n for (const r of notable) {\n const icon = OUTCOME_ICON[r.outcome] ?? \"\";\n // The page, then the entry that declares the eval. When the page\n // declares it, the one label says both.\n const entry = declaringEntry(r);\n const where =\n entry.file === r.file\n ? `\\`${locationLabel(entry)}\\``\n : `\\`${r.file}\\` · \\`${locationLabel(entry)}\\``;\n lines.push(`- ${icon} **${r.evalName}** · ${where}`);\n for (const f of r.findings ?? []) {\n const loc = f.line != null ? `:${f.line}` : \"\";\n lines.push(` - ${f.severity}${loc}: ${f.message}`);\n }\n for (const line of judgedLines(r)) lines.push(` - ${line}`);\n if (r.consensus) {\n const v = r.consensus;\n lines.push(\n ` - votes pass:${v.votes.pass} fail:${v.votes.fail} partial:${v.votes.partial}, confidence ${v.meanConfidence.toFixed(2)} (${v.zone})`,\n );\n }\n if (r.skipReason && r.outcome === \"error\") lines.push(` - ${r.skipReason}`);\n for (const line of resultGuidance(r)) lines.push(` - ${line}`);\n }\n }\n\n for (const p of report.problems) {\n lines.push(`- ⚠️ \\`${p.file}\\`${p.line != null ? `:${p.line}` : \"\"} ${p.message}`);\n }\n\n if (report.generated.length > 0) {\n lines.push(\"\", \"### Generated scripts\", \"\");\n for (const g of report.generated) lines.push(`- \\`${g}\\``);\n }\n\n if (report.usage.judgedEvals > 0) {\n lines.push(\n \"\",\n `_Judged ${report.usage.judgedEvals} evals (${report.usage.cachedEvals} cached), ` +\n `${report.usage.totalTokens.toLocaleString()} tokens._`,\n );\n }\n return lines.join(\"\\n\");\n}\n","/**\n * GitHub Actions reporter: workflow commands for inline PR annotations,\n * followed by the markdown summary (suitable for $GITHUB_STEP_SUMMARY).\n */\nimport { scopeLine } from \"./scope.js\";\nimport type { EngineReport } from \"../core/engine.js\";\nimport {\n escapeWorkflowCommandMessage as escapeData,\n escapeWorkflowCommandProperty as escapeProperty,\n} from \"../../shared/github.js\";\nimport { renderMarkdown } from \"./markdown.js\";\nimport { declaringEntry } from \"./location.js\";\nimport { judgedLines, resultGuidance } from \"./judged.js\";\n\nexport function renderGithub(report: EngineReport): string {\n const lines: string[] = [];\n for (const r of report.evalResults) {\n const entry = declaringEntry(r);\n const entryProps = [\n `file=${escapeProperty(entry.file)}`,\n entry.line !== undefined ? `line=${String(entry.line)}` : undefined,\n ];\n const guidance = resultGuidance(r);\n for (const f of r.findings ?? []) {\n // The family scale is GitHub's annotation levels, word for word.\n const level = f.severity;\n // A finding with a content line keeps it; one without lands on the\n // entry that declares the eval, which is what someone edits instead.\n const props = [\n ...(f.line != null\n ? [`file=${escapeProperty(f.file)}`, `line=${String(f.line)}`]\n : entryProps),\n f.line != null && f.col != null ? `col=${String(f.col)}` : undefined,\n `title=${escapeProperty(`manni docevals: ${f.evalName}`)}`,\n ]\n .filter(Boolean)\n .join(\",\");\n lines.push(`::${level} ${props}::${escapeData([f.message, ...guidance].join(\"\\n\"))}`);\n }\n const entryAnnotation = (level: string, text: string[]): void => {\n const props = [...entryProps, `title=${escapeProperty(`manni docevals: ${r.evalName}`)}`]\n .filter(Boolean)\n .join(\",\");\n lines.push(`::${level} ${props}::${escapeData([...text, ...guidance].join(\"\\n\"))}`);\n };\n // A judged failure, or an eval awaiting review. A review is a warning:\n // it fails the run only under --fail-on-review, and without this line\n // nothing in the log says why it did.\n const judged = judgedLines(r);\n if (judged.length > 0) {\n entryAnnotation(r.outcome === \"fail\" ? \"error\" : \"warning\", judged);\n }\n // An errored eval with no findings has nothing above to say it ran.\n // Left out, it shows only in the summary table, which a collapsed step\n // hides. SARIF reports it the same way; one with findings already did.\n if (r.outcome === \"error\" && (r.findings ?? []).length === 0) {\n entryAnnotation(\"error\", [r.skipReason ?? \"eval errored\"]);\n }\n }\n for (const p of report.problems) {\n const level = p.level === \"error\" ? \"error\" : \"warning\";\n const props = [\n `file=${escapeProperty(p.file)}`,\n p.line != null ? `line=${p.line}` : undefined,\n `title=manni docevals`,\n ]\n .filter(Boolean)\n .join(\",\");\n lines.push(`::${level} ${props}::${escapeData(p.message)}`);\n }\n // The scope, as an annotation rather than only in the step summary: a\n // collapsed log still shows notices, and \"nothing was evaluated\" is the one\n // sentence that distinguishes a scoped clean run from a corpus that passed\n // (ADR 01040).\n const sc = scopeLine(report);\n if (sc) {\n lines.push(`::notice title=manni docevals::${escapeData(sc.text())}`);\n }\n lines.push(\"\", renderMarkdown(report));\n return lines.join(\"\\n\");\n}\n","/**\n * SARIF 2.1.0 reporter.\n *\n * `github` annotates a pull request and nothing else: the annotations live on\n * one check run and scroll away with it. SARIF is what a code-scanning\n * dashboard ingests, so findings become a queryable history — which finding,\n * on which line, first seen when, still open or not.\n *\n * Two details are load-bearing and easy to get wrong:\n *\n * - **URIs are repo-relative and forward-slashed.** An absolute path, or a\n * Windows path with backslashes, uploads successfully and then matches no\n * file, so every finding lands on nothing.\n * - **Every reported rule is declared** in `tool.driver.rules`. A dashboard\n * showing a bare `regex/found` with no name or description is the\n * difference between a finding someone acts on and one they dismiss.\n */\nimport type { EngineReport } from \"../core/engine.js\";\nimport { FIX_GUIDE, type EvalResult, type Finding, type Severity } from \"../types.js\";\nimport { declaringEntry } from \"./location.js\";\nimport { judgedLines, resultGuidance } from \"./judged.js\";\n\nconst SARIF_SCHEMA =\n \"https://raw.githubusercontent.com/oasis-tcs/sarif-spec/main/sarif-2.1/schema/sarif-schema-2.1.0.json\";\n\n/** SARIF has three levels; `notice` is `note`, not a dropped finding. */\nfunction levelFor(severity: Severity): \"error\" | \"warning\" | \"note\" {\n switch (severity) {\n case \"error\":\n return \"error\";\n case \"warning\":\n return \"warning\";\n case \"notice\":\n return \"note\";\n }\n}\n\n/** Repo-relative, forward-slashed — what a code-scanning host can resolve. */\nfunction uriFor(file: string): string {\n return file.replace(/\\\\/g, \"/\").replace(/^\\.\\//, \"\");\n}\n\n/**\n * A finding's rule id.\n *\n * `tool:regex` supplies its own (`regex/found`); `command` and\n * the judge do not, so the eval name stands in. Either way a result must carry\n * *some* stable id, or the dashboard groups every finding under one heading.\n */\nfunction ruleIdFor(finding: Finding): string {\n return finding.ruleId ?? finding.evalName;\n}\n\n/**\n * The entry that declares an eval, as a SARIF physical location. SARIF regions\n * are 1-based and `startLine` is required once a region is present, so an\n * entry with no line has no region rather than an invented line 1.\n */\nfunction entryLocation(result: EvalResult): unknown {\n const entry = declaringEntry(result);\n return {\n artifactLocation: { uri: uriFor(entry.file) },\n ...(entry.line !== undefined ? { region: { startLine: entry.line } } : {}),\n };\n}\n\ninterface SarifRule {\n id: string;\n name: string;\n shortDescription: { text: string };\n fullDescription?: { text: string };\n helpUri: string;\n defaultConfiguration: { level: \"error\" | \"warning\" | \"note\" };\n}\n\n/**\n * The `tool:regex` rules, which mean the same thing whichever eval reports\n * them. Each is named for itself, so its name does not depend on which eval\n * happened to report it first.\n */\nconst STATIC_RULES: Record<string, { short: string; full: string }> = {\n \"regex/found\": {\n short: \"Text the eval forbids is present\",\n full: \"The page contains text an eval forbids. The line is the first match.\",\n },\n \"regex/not-found\": {\n short: \"Text the eval asks for is missing\",\n full: \"The page lacks text an eval asks for.\",\n },\n \"regex/count\": {\n short: \"Text matches a different number of times\",\n full: \"The page matches an eval's pattern a different number of times than the eval asks. The line is the first match.\",\n },\n \"regex/unreadable-target\": {\n short: \"The eval's target cannot be read\",\n full: \"The file an eval reads cannot be read. The eval is at fault, not the page.\",\n },\n};\n\nexport function renderSarif(report: EngineReport): string {\n const rules = new Map<string, SarifRule>();\n const results: unknown[] = [];\n\n /** Declares a rule the first time it is reported. */\n const declare = (\n id: string,\n evalName: string,\n grader: string,\n level: SarifRule[\"defaultConfiguration\"][\"level\"],\n ): void => {\n if (rules.has(id)) return;\n const fixed = STATIC_RULES[id];\n rules.set(id, {\n id,\n name: fixed === undefined ? evalName : id,\n shortDescription: {\n text: fixed?.short ?? `manni docevals eval \"${evalName}\" (${grader})`,\n },\n ...(fixed === undefined ? {} : { fullDescription: { text: fixed.full } }),\n helpUri: FIX_GUIDE,\n defaultConfiguration: { level },\n });\n };\n\n for (const evalResult of report.evalResults) {\n const guidance = resultGuidance(evalResult);\n // The lines a reader sees, and the object a machine reads, on every\n // result this eval reports.\n const message = (lines: string[]) => ({ text: [...lines, ...guidance].join(\"\\n\") });\n const properties =\n evalResult.guidance == null ? {} : { properties: { guidance: evalResult.guidance } };\n\n for (const finding of evalResult.findings ?? []) {\n const id = ruleIdFor(finding);\n const level = levelFor(finding.severity);\n declare(id, finding.evalName, evalResult.grader, level);\n results.push({\n ruleId: id,\n level,\n message: message([finding.message]),\n locations: [\n {\n // A finding with a content line keeps it. One without lands on\n // the entry that declares the eval.\n physicalLocation:\n finding.line != null\n ? {\n artifactLocation: { uri: uriFor(finding.file) },\n region: {\n startLine: finding.line,\n ...(finding.col != null ? { startColumn: finding.col } : {}),\n },\n }\n : entryLocation(evalResult),\n },\n ],\n ...properties,\n });\n }\n\n // An errored eval has neither findings nor consensus. Leaving it out\n // shows it on the dashboard as never having run, which reads as \"all\n // clear\" at the moment something actually went wrong.\n if (evalResult.outcome === \"error\") {\n const id = evalResult.evalName;\n declare(id, evalResult.evalName, evalResult.grader, \"error\");\n results.push({\n ruleId: id,\n level: \"error\",\n message: message([evalResult.skipReason ?? \"eval errored\"]),\n locations: [{ physicalLocation: entryLocation(evalResult) }],\n ...properties,\n });\n }\n\n // A judged eval produces no `Finding`; without this its failure is absent\n // from the dashboard entirely, which reads as \"the AI evals all passed\".\n // An eval awaiting review is a warning, so the run that fails on it under\n // --fail-on-review says why.\n const judged = judgedLines(evalResult);\n if (judged.length > 0) {\n const id = evalResult.evalName;\n const level = evalResult.outcome === \"fail\" ? \"error\" : \"warning\";\n declare(\n id,\n evalResult.evalName,\n evalResult.grader === \"ai\" ? \"AI judge\" : evalResult.grader,\n level,\n );\n results.push({\n ruleId: id,\n level,\n message: message(judged),\n locations: [{ physicalLocation: entryLocation(evalResult) }],\n ...properties,\n });\n }\n }\n\n const log = {\n $schema: SARIF_SCHEMA,\n version: \"2.1.0\",\n runs: [\n {\n tool: {\n driver: {\n name: \"manni-docevals\",\n informationUri: \"https://hawkeyexl.github.io/manni/docevals/\",\n rules: [...rules.values()],\n },\n },\n results,\n },\n ],\n };\n return `${JSON.stringify(log, null, 2)}\\n`;\n}\n","/**\n * JUnit XML reporter.\n *\n * Every CI system already knows how to render a JUnit report: which checks\n * ran, which failed, how long they took, and — the part that matters for a\n * docs gate — a stable history across builds. Emitting it costs one mapping\n * and buys that for free on Jenkins, GitLab, CircleCI, Buildkite and the rest.\n *\n * The mapping is one testsuite per eval suite, one testcase per (page, eval)\n * pair. `classname` is the page and `name` is the eval, because that is the\n * grouping every JUnit viewer offers: expand a file, see its checks.\n */\nimport type { EngineReport } from \"../core/engine.js\";\nimport type { EvalResult } from \"../types.js\";\nimport { declaringEntry } from \"./location.js\";\nimport { judgedLines, resultGuidance } from \"./judged.js\";\n\n/**\n * Control characters XML 1.0 forbids outright: everything below U+0020 except\n * tab, newline and carriage return, plus DEL and the C1 block.\n *\n * Escaping them is not an option — they are illegal in an XML document at all,\n * even as character references — so they are dropped.\n */\nconst FORBIDDEN = /[\u0000-\b\u000b\f\u000e-\u001f-Ÿ]/g;\n\n/**\n * Escape text for XML.\n *\n * All five metacharacters, not the usual three: an unescaped `<` in a finding\n * message makes the whole document invalid, and a CI system handed invalid XML\n * reports \"no tests found\" rather than the failure it was given — the report\n * disappears at exactly the moment it had something to say.\n *\n * Control characters are stripped for the same reason, and they are the likelier\n * route in: a command grader's message is `outputTail(result)`, i.e. raw tool\n * stderr, and most CLI tools colour their stderr. One `\u001b` is enough to\n * make the document unparseable.\n */\nfunction esc(s: string): string {\n return s\n .replace(FORBIDDEN, \"\")\n .replace(/&/g, \"&amp;\")\n .replace(/</g, \"&lt;\")\n .replace(/>/g, \"&gt;\")\n .replace(/\"/g, \"&quot;\")\n .replace(/'/g, \"&apos;\");\n}\n\nfunction attr(name: string, value: string | number): string {\n return `${name}=\"${esc(String(value))}\"`;\n}\n\n/**\n * The message body for a failing eval: findings, or the judged block, then\n * what the eval asks for.\n */\nfunction failureText(result: EvalResult): string {\n return [...failureLines(result), ...resultGuidance(result)].join(\"\\n\");\n}\n\nfunction failureLines(result: EvalResult): string[] {\n const findings = (result.findings ?? []).map(\n (f) => `${f.file}${f.line != null ? `:${f.line}` : \"\"} ${f.message}`,\n );\n if (findings.length > 0) return findings;\n const judged = judgedLines(result);\n if (judged.length > 0) return judged;\n // An errored eval carries its reason here and nowhere else. Falling back to\n // \"<name> failed\" would put an empty <error> body in front of whoever is\n // trying to find out what went wrong.\n if (result.skipReason) return [result.skipReason];\n return [`${result.evalName} failed`];\n}\n\nfunction testcase(result: EvalResult): string {\n // `file` and `line` are the entry that declares the eval, the attributes a\n // JUnit viewer that links to source reads.\n const entry = declaringEntry(result);\n const open = ` <testcase ${attr(\"classname\", result.file)} ${attr(\n \"name\",\n result.evalName,\n )} ${attr(\"file\", entry.file)}${\n entry.line === undefined ? \"\" : ` ${attr(\"line\", entry.line)}`\n } ${attr(\"time\", (result.durationMs / 1000).toFixed(3))}`;\n switch (result.outcome) {\n case \"pass\":\n return `${open} />`;\n case \"skipped\":\n return `${open}>\\n <skipped ${attr(\n \"message\",\n result.skipReason ?? \"skipped\",\n )} />\\n </testcase>`;\n case \"error\":\n return `${open}>\\n <error ${attr(\n \"message\",\n `${result.evalName} errored`,\n )}>${esc(failureText(result))}</error>\\n </testcase>`;\n case \"needs-review\":\n // Not a failure and not a pass. JUnit has no third state, and calling it\n // a failure would make a human-review queue look like a broken build.\n return `${open}>\\n <skipped ${attr(\n \"message\",\n \"needs human review\",\n )} />\\n </testcase>`;\n default:\n return `${open}>\\n <failure ${attr(\n \"message\",\n `${result.evalName} failed`,\n )}>${esc(failureText(result))}</failure>\\n </testcase>`;\n }\n}\n\nexport function renderJunit(report: EngineReport): string {\n // The engine stamps each result with its suite, so grouping is a read\n // rather than a reconstruction.\n const bySuite = new Map<string, EvalResult[]>();\n for (const r of report.evalResults) {\n const suite = r.suite ?? \"default\";\n const list = bySuite.get(suite) ?? [];\n list.push(r);\n bySuite.set(suite, list);\n }\n\n const suites = [...bySuite.entries()].map(([name, results]) => {\n const failures = results.filter((r) => r.outcome === \"fail\").length;\n const errors = results.filter((r) => r.outcome === \"error\").length;\n const skipped = results.filter(\n (r) => r.outcome === \"skipped\" || r.outcome === \"needs-review\",\n ).length;\n const time = results.reduce((sum, r) => sum + r.durationMs, 0) / 1000;\n return [\n ` <testsuite ${attr(\"name\", name)} ${attr(\"tests\", results.length)} ${attr(\n \"failures\",\n failures,\n )} ${attr(\"errors\", errors)} ${attr(\"skipped\", skipped)} ${attr(\n \"time\",\n time.toFixed(3),\n )}>`,\n ...results.map(testcase),\n \" </testsuite>\",\n ].join(\"\\n\");\n });\n\n const total = report.evalResults.length;\n const failures = report.evalResults.filter((r) => r.outcome === \"fail\").length;\n const errors = report.evalResults.filter((r) => r.outcome === \"error\").length;\n return [\n '<?xml version=\"1.0\" encoding=\"UTF-8\"?>',\n `<testsuites ${attr(\"name\", \"manni-docevals\")} ${attr(\"tests\", total)} ${attr(\n \"failures\",\n failures,\n )} ${attr(\"errors\", errors)}>`,\n ...suites,\n \"</testsuites>\",\n \"\",\n ].join(\"\\n\");\n}\n","/**\n * HTML reporter: one self-contained file a documentation owner can open.\n *\n * Every other format here is machine-facing (JSON, SARIF, JUnit) or\n * terminal-facing (human, markdown, github). The people the content strategy\n * names as corpus and standard owners are neither: they want to see which\n * pages failed, what the judge actually quoted, and whether the suite met its\n * target — and none of them are reading SARIF.\n *\n * Self-contained on purpose: no CDN, no external stylesheet, no fonts. The\n * file is meant to survive being attached to a PR, mailed, or opened from a CI\n * artifact directory, all of which strip or block external requests. It is\n * also why everything is inline rather than clever.\n */\nimport type { EngineReport } from \"../core/engine.js\";\nimport { declaringEntry, locationLabel } from \"./location.js\";\nimport { resultGuidance } from \"./judged.js\";\nimport { evidenceVerdict } from \"../../shared/verdict-lines.js\";\nimport type { EvalResult } from \"../types.js\";\n\nconst OUTCOME_LABEL: Record<string, string> = {\n pass: \"Pass\",\n fail: \"Fail\",\n \"needs-review\": \"Needs review\",\n skipped: \"Skipped\",\n error: \"Error\",\n};\n\n/** Escape for HTML text and quoted attribute values alike. */\nfunction esc(value: string): string {\n return value\n .replaceAll(\"&\", \"&amp;\")\n .replaceAll(\"<\", \"&lt;\")\n .replaceAll(\">\", \"&gt;\")\n .replaceAll('\"', \"&quot;\");\n}\n\nconst pct = (n: number): string => `${(n * 100).toFixed(0)}%`;\n\nfunction suiteRows(report: EngineReport): string {\n return report.suites\n .map((s) => {\n // A filtered run measured part of the suite, so it has numbers and no\n // verdict — rendering it as a failure is what ADR 01018 forbids.\n const verdict = s.partial\n ? '<span class=\"v partial\">partial</span>'\n : s.meetsTarget\n ? '<span class=\"v ok\">met</span>'\n : '<span class=\"v bad\">missed</span>';\n const criteria = s.criteria\n ? `${String(s.criteria.passed)}/${String(s.criteria.total)}` +\n (s.criteria.suspended > 0\n ? ` <span class=\"muted\">(${String(s.criteria.suspended)} suspended)</span>`\n : \"\")\n : '<span class=\"muted\">—</span>';\n return `<tr><th>${esc(s.suite)}</th><td>${String(s.passed)}</td><td>${String(\n s.failed + s.errored,\n )}</td><td>${String(s.needsReview)}</td><td>${String(s.skipped)}</td><td>${criteria}</td><td>${pct(\n s.passRate,\n )}</td><td>${pct(s.targetPassRate)}</td><td>${verdict}</td></tr>`;\n })\n .join(\"\\n\");\n}\n\nfunction evalBlock(r: EvalResult): string {\n const bits: string[] = [];\n bits.push(\n `<div class=\"eval ${esc(r.outcome)}\">` +\n `<div class=\"eh\"><span class=\"badge ${esc(r.outcome)}\">${esc(\n OUTCOME_LABEL[r.outcome] ?? r.outcome,\n )}</span> <code>${esc(r.evalName)}</code>` +\n `<span class=\"muted\"> · ${esc(locationLabel(declaringEntry(r)))} · ${esc(r.grader)}${\n r.weight !== undefined && r.weight !== 1\n ? ` · weight ${String(r.weight)}`\n : \"\"\n }</span></div>`,\n );\n\n if (r.skipReason) bits.push(`<p class=\"reason\">${esc(r.skipReason)}</p>`);\n\n // The judge's own words. This is the reason a docs owner opens the report at\n // all — a verdict without the quotation it rests on is not reviewable.\n const verdict = r.consensus ? evidenceVerdict(r.consensus) : undefined;\n if (verdict) {\n bits.push(\n `<p class=\"reason\">${esc(verdict.reasoning)}</p>`,\n verdict.observed\n ? `<blockquote>${esc(verdict.observed)}</blockquote>`\n : \"\",\n `<p class=\"muted\">consensus ${esc(r.consensus?.verdict ?? \"\")} · agreement ${pct(\n r.consensus?.agreement ?? 0,\n )} · confidence ${pct(r.consensus?.meanConfidence ?? 0)} · zone ${esc(\n r.consensus?.zone ?? \"\",\n )}</p>`,\n );\n }\n\n if (r.via === \"human-review\") {\n bits.push('<p class=\"note\">Resolved by a recorded human review.</p>');\n }\n if (r.selfPreference) {\n bits.push(\n `<p class=\"warn\">Judged by <code>${esc(r.selfPreference.model)}</code>, which also ` +\n (r.selfPreference.axis === \"content\"\n ? \"wrote what this eval grades, by the page's provenance or meta-provenance.\"\n : \"proposed this eval, by the page's meta-provenance.\") +\n \" Self-judging favors the author; give the eval a model: of its own.\" +\n \"</p>\",\n );\n }\n for (const f of r.findings ?? []) {\n bits.push(\n `<p class=\"finding\"><span class=\"sev ${esc(f.severity)}\">${esc(f.severity)}</span> ` +\n `${esc(f.message)}${f.line ? ` <span class=\"muted\">(line ${String(f.line)})</span>` : \"\"}</p>`,\n );\n }\n for (const line of resultGuidance(r)) bits.push(`<p class=\"muted\">${esc(line)}</p>`);\n bits.push(\"</div>\");\n return bits.filter(Boolean).join(\"\\n\");\n}\n\nexport function renderHtml(report: EngineReport): string {\n const byFile = new Map<string, EvalResult[]>();\n for (const r of report.evalResults) {\n const list = byFile.get(r.file) ?? [];\n list.push(r);\n byFile.set(r.file, list);\n }\n\n const pages = [...byFile.entries()]\n .sort(([a], [b]) => a.localeCompare(b))\n .map(([file, results]) => {\n const failed = results.filter(\n (r) => r.outcome === \"fail\" || r.outcome === \"error\",\n ).length;\n return (\n `<section><h3>${esc(file)}` +\n (failed > 0 ? ` <span class=\"badge fail\">${String(failed)}</span>` : \"\") +\n `</h3>${results.map(evalBlock).join(\"\\n\")}</section>`\n );\n })\n .join(\"\\n\");\n\n const problems = report.problems.length\n ? `<h2>Problems</h2><ul class=\"problems\">${report.problems\n .map(\n (p) =>\n `<li class=\"${esc(p.level)}\"><code>${esc(p.file)}</code>${\n p.line ? `:${String(p.line)}` : \"\"\n } — ${esc(p.message)}</li>`,\n )\n .join(\"\")}</ul>`\n : \"\";\n\n const bl = report.baseline;\n const baseline = bl\n ? `<p class=\"note\">Baseline <code>${esc(bl.path)}</code>: ${String(\n bl.recorded,\n )} recorded, ${String(bl.suppressed)} suppressed${\n bl.stale > 0 ? `, ${String(bl.stale)} stale` : \"\"\n }.</p>`\n : \"\";\n\n // A dark-mode block rather than a fixed palette: the file gets opened in\n // whatever the reader already uses, and a white sheet in a dark editor is\n // the kind of small rudeness that stops people opening it twice.\n return `<!doctype html>\n<html lang=\"en\"><head><meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">\n<title>manni docevals results</title>\n<style>\n:root{--bg:#fff;--fg:#1a1a1a;--muted:#666;--line:#e2e2e2;--ok:#137333;--bad:#b3261e;--warn:#8a6100;--card:#fafafa}\n@media (prefers-color-scheme:dark){:root{--bg:#16181c;--fg:#e6e6e6;--muted:#9aa0a6;--line:#2c2f36;--ok:#7ee2a8;--bad:#ff8a80;--warn:#ffca7a;--card:#1d2026}}\n*{box-sizing:border-box}\nbody{margin:0;padding:2rem 1.25rem;background:var(--bg);color:var(--fg);\nfont:15px/1.55 ui-sans-serif,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif}\nmain{max-width:60rem;margin:0 auto}\nh1{font-size:1.5rem;margin:0 0 .25rem}\nh2{font-size:1.1rem;margin:2rem 0 .5rem;padding-bottom:.25rem;border-bottom:1px solid var(--line)}\nh3{font-size:.95rem;margin:1.5rem 0 .5rem;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}\ntable{border-collapse:collapse;width:100%;font-size:.9rem}\nth,td{text-align:left;padding:.4rem .6rem;border-bottom:1px solid var(--line)}\nthead th{color:var(--muted);font-weight:600}\ncode{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.9em}\n.muted{color:var(--muted)}\n.eval{border:1px solid var(--line);border-left-width:3px;border-radius:6px;background:var(--card);padding:.6rem .8rem;margin:.4rem 0}\n.eval.fail,.eval.error{border-left-color:var(--bad)}\n.eval.pass{border-left-color:var(--ok)}\n.eval.needs-review{border-left-color:var(--warn)}\n.badge{display:inline-block;padding:.05rem .4rem;border-radius:4px;font-size:.75rem;font-weight:600;border:1px solid var(--line)}\n.badge.pass{color:var(--ok)}.badge.fail,.badge.error{color:var(--bad)}\nblockquote{margin:.4rem 0;padding:.3rem .7rem;border-left:2px solid var(--line);color:var(--muted)}\n.reason{margin:.3rem 0}\n.warn{color:var(--warn);margin:.3rem 0}\n.note{color:var(--muted);margin:.3rem 0}\n.finding{margin:.2rem 0}\n.sev{font-size:.75rem;text-transform:uppercase;font-weight:600;margin-right:.35rem}\n.sev.error{color:var(--bad)}.sev.warning{color:var(--warn)}.sev.notice{color:var(--muted)}\n.v.ok{color:var(--ok)}.v.bad{color:var(--bad)}.v.partial{color:var(--muted)}\n.problems li.error{color:var(--bad)}.problems li.warning{color:var(--warn)}\n</style></head><body><main>\n<h1>manni docevals results</h1>\n<p class=\"muted\">${String(report.pages)} page(s) · ${String(\n report.evalResults.length,\n )} eval(s) · exit ${String(report.exitCode)}</p>\n${baseline}\n<h2>Suites</h2>\n<table><thead><tr><th>Suite</th><th>Pass</th><th>Fail</th><th>Review</th><th>Skip</th><th>Criteria</th><th>Rate</th><th>Target</th><th></th></tr></thead>\n<tbody>\n${suiteRows(report)}\n</tbody></table>\n${problems}\n<h2>Pages</h2>\n${pages}\n</main></body></html>\n`;\n}\n","/** Reporter dispatch. */\nimport type { EngineReport } from \"../core/engine.js\";\nimport { renderPretty, type ColorOptions } from \"./pretty.js\";\nimport { renderJson } from \"./json.js\";\nimport { renderMarkdown } from \"./markdown.js\";\nimport { renderGithub } from \"./github.js\";\nimport { parseFormat, REPORT_FORMATS, type ReportFormat } from \"./format.js\";\nimport { renderSarif } from \"./sarif.js\";\nimport { renderJunit } from \"./junit.js\";\nimport { renderHtml } from \"./html.js\";\n\nexport type { ColorOptions } from \"./pretty.js\";\nexport {\n REPORT_FORMATS,\n SUMMARY_FORMATS,\n parseFormat,\n type ReportFormat,\n type SummaryFormat,\n} from \"./format.js\";\n\n/**\n * `opts.color` reaches the pretty reporter alone. Every other format is read\n * by a machine or a browser, so it never carries terminal escapes.\n */\nexport function render(\n report: EngineReport,\n format: ReportFormat,\n opts: ColorOptions = {},\n): string {\n // Same entry guard as renderList/renderFill, and for the same reason: this is\n // exported from src/index.ts, so library callers arrive with no CLI parser in\n // front. Before this, an unknown format fell off the switch and returned\n // `undefined` — which the CLI then printed.\n //\n // Routed through parseFormat rather than a `default:` branch so all three\n // render entry points emit one message built in one place. A hand-written\n // message here drifts from parseFormat's the first time either is reworded.\n parseFormat(format, REPORT_FORMATS, \"format\");\n switch (format) {\n case \"pretty\":\n return renderPretty(report, opts);\n case \"json\":\n return renderJson(report);\n case \"markdown\":\n return renderMarkdown(report);\n case \"sarif\":\n return renderSarif(report);\n case \"junit\":\n return renderJunit(report);\n case \"github\":\n return renderGithub(report);\n case \"html\":\n return renderHtml(report);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAeO,SAAS,UAAU,QAA6C;AACrE,QAAM,KAAK,OAAO,SAAS,OAAO;AAClC,MAAI,OAAO,OAAW,QAAO;AAC7B,QAAM,EAAE,eAAe,WAAW,IAAI;AACtC,QAAM,MAAM,OAAO,OAAO;AAC1B,QAAM,SAAS,OAAO,WAAW;AACjC,SAAO;AAAA,IACL,OAAO,kBAAkB;AAAA,IACzB,MAAM,CAAC,OAAO,CAAC,MAAM,MAAM;AACzB,YAAM,OAAO;AAAA,QACX,QAAQ,SAAY,SAAY,SAAS,KAAK,GAAG,CAAC;AAAA,QAClD,WAAW,SAAY,SAAY,eAAe,MAAM;AAAA,MAC1D,EACG,OAAO,CAAC,MAAM,MAAM,MAAS,EAC7B,KAAK,OAAO;AACf,aAAO,kBAAkB,IACrB,oBAAoB,IAAI,mCACxB,aAAa,OAAO,aAAa,CAAC,OAAO,OAAO,UAAU,CAAC,oBAAoB,IAAI;AAAA,IACzF;AAAA,EACF;AACF;;;ACrBO,SAAS,eAAe,GAAyB;AACtD,SAAO,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK;AACtC;AAGO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AO,aAAa,QAAQ,IAAI;AAAA,IAClC,KAAK;AACH,aAAO,WAAW,MAAM;AAAA,IAC1B,KAAK;AACH,aAAO,eAAe,MAAM;AAAA,IAC9B,KAAK;AACH,aAAO,YAAY,MAAM;AAAA,IAC3B,KAAK;AACH,aAAO,YAAY,MAAM;AAAA,IAC3B,KAAK;AACH,aAAO,aAAa,MAAM;AAAA,IAC5B,KAAK;AACH,aAAO,WAAW,MAAM;AAAA,EAC5B;AACF;","names":["failures","errors","esc"]}
@@ -5,10 +5,10 @@ import {
5
5
  listInTree,
6
6
  safeRead,
7
7
  segments
8
- } from "./chunk-E6BVUDGY.js";
8
+ } from "./chunk-USKTLEPZ.js";
9
9
  import {
10
10
  TracevalsError
11
- } from "./chunk-UKZNLVJW.js";
11
+ } from "./chunk-ZINZTHWO.js";
12
12
 
13
13
  // src/tracevals/artifacts/discover.ts
14
14
  import {
@@ -171,4 +171,4 @@ async function discoverArtifacts(options) {
171
171
  export {
172
172
  discoverArtifacts
173
173
  };
174
- //# sourceMappingURL=chunk-3O6U4ICM.js.map
174
+ //# sourceMappingURL=chunk-W6B24IMO.js.map
@@ -4,6 +4,7 @@ import {
4
4
  } from "./chunk-G3T47CFV.js";
5
5
 
6
6
  // src/docevals/types.ts
7
+ var FIX_GUIDE = "https://hawkeyexl.github.io/manni/docevals/fix/";
7
8
  var DocevalsError = class extends ToolError {
8
9
  constructor(message, code) {
9
10
  super(message);
@@ -14,6 +15,7 @@ var DocevalsError = class extends ToolError {
14
15
  };
15
16
 
16
17
  export {
18
+ FIX_GUIDE,
17
19
  DocevalsError
18
20
  };
19
- //# sourceMappingURL=chunk-SE4JN5XN.js.map
21
+ //# sourceMappingURL=chunk-WDENIUC7.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/docevals/types.ts"],"sourcesContent":["/**\n * Shared result model for manni docevals.\n *\n * Vocabulary follows the \"Docs as Evals\" methodology (Docs as Tests with AI):\n * every check is an *eval*; what differs is its *grader* (code-based, LLM-as-\n * judge, or human). Verdicts are binary pass/fail — aggregate rates emerge from\n * binary judgments, they are never assigned per item.\n */\nimport { ToolError } from \"../shared/errors.js\";\nimport type { Severity } from \"../shared/severity.js\";\nimport type { Guidance } from \"../shared/guidance.js\";\n\n// The judge vocabulary is shared with the inference layer and is re-exported\n// here so manni docevals code and its consumers keep one import site. A second local\n// definition would be a second thing to keep in sync.\n//\n// Match — a single run's verdict; `partial` counts as fail\n// Zone — confidence-zone routing for AI-judged evals\n// JudgeVerdict — the structured verdict of one run (the book's shape)\n// JudgeRun — one run within an ensemble\n// ConsensusResult — the aggregated outcome for one (page, eval) pair\nimport type { ConsensusResult } from \"@hawkeyexl/inference\";\n\nexport type {\n ConsensusResult,\n JudgeRun,\n JudgeVerdict,\n Match,\n Zone,\n} from \"@hawkeyexl/inference\";\n\n/**\n * Regression evals guard behavior that must keep working (~100% target pass\n * rate). Capability evals probe what the docs/system can do (~70% target).\n */\nexport type EvalType = \"capability\" | \"regression\";\n\n/**\n * Finding severity for deterministically graded evals: the family scale,\n * `notice | warning | error`, from `src/shared/severity.ts`. Only `error`\n * affects exit codes.\n */\nexport type { Severity };\n\n/** The page every docevals finding links to. */\nexport const FIX_GUIDE = \"https://hawkeyexl.github.io/manni/docevals/fix/\";\n\n/** How an eval is graded. `tool:regex` is the built-in `tool:*` kind; `registerGrader` adds others. */\nexport type GraderKind = \"ai\" | \"command\" | \"human\" | `tool:${string}`;\n\n/** A normalized finding from a deterministically graded eval (command or tool). */\nexport interface Finding {\n /** Name of the eval that produced this finding. */\n evalName: string;\n /** Repo-relative path of the page the finding applies to. */\n file: string;\n /** Grader-specific rule id (e.g. \"regex/found\"), when available. */\n ruleId?: string;\n message: string;\n severity: Severity;\n /**\n * This finding is about the *grader*, not the page: the tool could not be\n * run, or its output could not be read. It fails the eval whatever severity\n * the eval is configured at, because an eval configured `severity: warning`\n * would otherwise pass while its check never executed (ADR 01022).\n *\n * A finding about the page carries the eval's severity as usual.\n */\n diagnostic?: boolean;\n line?: number;\n col?: number;\n}\n\n/** Result of one eval applied to one page. */\nexport interface EvalResult {\n evalName: string;\n /**\n * Suite this result reports under. Stamped centrally by the engine, which\n * already computes the mapping for the suite summaries — the alternative is\n * threading it through every one of the ~30 places a result is constructed.\n */\n suite?: string;\n type: EvalType;\n grader: GraderKind;\n file: string;\n /**\n * Where the page declares the eval: the item of its `evals` key that names\n * it, in the page or in the manifest that supplied the key (proposal 0037).\n * A suite eval the page never names points at its `eval-suite` key, or at\n * the page alone when the suite is the config's default. `file` is spelled\n * like `file`, and `line` is 1-based and absent when nothing records one.\n *\n * Stamped centrally by the engine, like `suite`, on every result it\n * reports.\n */\n location?: { file: string; line?: number };\n /**\n * What the eval asks for (proposal 0089): `id` is the file that declares\n * it, `rule` its name, `description` its assertion, and `guide` the fix\n * page. Stamped centrally by the engine on every result, passing ones too.\n */\n guidance?: Guidance | null;\n outcome: \"pass\" | \"fail\" | \"needs-review\" | \"skipped\" | \"error\";\n /** Present for ai-graded evals. */\n consensus?: ConsensusResult;\n /** Present for command/tool-graded evals that produced findings. */\n findings?: Finding[];\n /** True when this run generated the eval's check script. */\n generated?: boolean;\n /** Set when a persisted human review resolved a needs-review outcome. */\n via?: \"human-review\";\n /**\n * Findings the baseline already recorded and this run therefore suppressed\n * (ADR 01017). Present only on a run with a baseline in effect, so its\n * absence means \"no baseline\", not \"nothing was forgiven\".\n */\n baselined?: number;\n skipReason?: string;\n /**\n * The eval's weight in its suite's pass rate. Stamped centrally by the\n * engine alongside `suite`, and for the same reason: threading it through\n * the ~30 sites that construct a result would be thirty chances to forget.\n */\n weight?: number;\n /**\n * Set when the model that judged this eval also produced what it graded.\n *\n * `content` — the machines attributed for what the eval's `target` reads\n * name this model (`provenance` for the body, the `fields` of\n * `meta-provenance` for the frontmatter, both for `raw`): the judge wrote\n * what it grades. `criterion` — a `meta-provenance` entry for this model\n * lists this eval under `evals`: the judge wrote the question. Both bias a\n * verdict without invalidating it, so this rides along with a real outcome\n * rather than replacing it, and reaches every reporter instead of stderr.\n */\n selfPreference?: { axis: \"content\" | \"criterion\"; model: string };\n durationMs: number;\n}\n\n/** Per-suite aggregate. Pass rates emerge from binary outcomes. */\nexport interface SuiteSummary {\n suite: string;\n total: number;\n passed: number;\n failed: number;\n needsReview: number;\n skipped: number;\n errored: number;\n /**\n * Weighted share of the graded set that passed, 1 when nothing ran.\n *\n * The graded set is pass + fail + error, as it has always been —\n * `needs-review` and `skipped` are in neither half, so a page awaiting review\n * neither helps nor hurts. Each eval contributes its `weight` (1 unless it\n * says otherwise), and an eval that belongs to a criterion contributes\n * nothing on its own: the criterion contributes once, for the group.\n */\n passRate: number;\n /** From config: ~1.0 for regression suites, ~0.7 for capability suites. */\n targetPassRate: number;\n meetsTarget: boolean;\n /**\n * Set when a selection filter (`--eval` / `--suite`) was active, meaning the\n * run measured part of this suite. `meetsTarget` is then always false and the\n * suite cannot fail the run either: it has numbers, but no verdict.\n */\n partial?: boolean;\n /**\n * Criteria scored in this suite. Present only when the suite declares any,\n * so its absence means \"none\", never \"none passed\".\n *\n * `suspended` counts criteria whose members were not all graded in this run.\n * They are out of the rate entirely rather than counted as failures — the\n * same reasoning as `partial` one level down (ADR 01018): a group measured\n * in part has numbers but no verdict.\n */\n criteria?: {\n total: number;\n passed: number;\n failed: number;\n suspended: number;\n };\n}\n\n/** Full run output consumed by reporters. */\nexport interface RunReport {\n pages: number;\n evalResults: EvalResult[];\n suites: SuiteSummary[];\n /**\n * Judge telemetry. Counts, not money: the dollar figure this block used to\n * carry was only as good as a price table this repo does not own, and was\n * absent entirely for `claude-cli` and self-hosted endpoints (ADR 01019).\n */\n usage: {\n totalTokens: number;\n cachedEvals: number;\n judgedEvals: number;\n };\n /** Script generations performed during this run (paths written). */\n generated: string[];\n exitCode: 0 | 1;\n}\n\n/** Operational/usage error → exit code 2. */\nexport class DocevalsError extends ToolError {\n constructor(\n message: string,\n /**\n * Set where a caller acts on the kind of error rather than reporting it.\n * `nothing-resolved`: no page this run would check resolves an eval.\n */\n readonly code?: \"nothing-resolved\",\n ) {\n super(message);\n this.name = \"DocevalsError\";\n }\n}\n"],"mappings":";;;;;;AA6CO,IAAM,YAAY;AAgKlB,IAAM,gBAAN,cAA4B,UAAU;AAAA,EAC3C,YACE,SAKS,MACT;AACA,UAAM,OAAO;AAFJ;AAGT,SAAK,OAAO;AAAA,EACd;AAAA,EAJW;AAKb;","names":[]}
@@ -19,7 +19,7 @@ import {
19
19
  sha256,
20
20
  splitBody,
21
21
  urlManifestRefusal
22
- } from "./chunk-OBXCJZ6R.js";
22
+ } from "./chunk-JTEWU4C6.js";
23
23
  import {
24
24
  turnBudgetSkipReason
25
25
  } from "./chunk-SSQZB5SQ.js";
@@ -29,11 +29,11 @@ import {
29
29
  } from "./chunk-YNHZHSSM.js";
30
30
  import {
31
31
  DocevalsError
32
- } from "./chunk-SE4JN5XN.js";
32
+ } from "./chunk-WDENIUC7.js";
33
33
  import {
34
34
  externalWriteWarnings,
35
35
  offerExternalHomes
36
- } from "./chunk-OUAH7XF2.js";
36
+ } from "./chunk-CZJNYHK7.js";
37
37
  import {
38
38
  LOCATION_KEYWORD,
39
39
  Validator,
@@ -41,10 +41,10 @@ import {
41
41
  readManifestOrEmpty,
42
42
  readManifestValue,
43
43
  spliceManifestValue
44
- } from "./chunk-LNGSE7V2.js";
44
+ } from "./chunk-36FJWJSK.js";
45
45
  import {
46
46
  writeFileAtomic
47
- } from "./chunk-HY6ROJTH.js";
47
+ } from "./chunk-BIRGZEWO.js";
48
48
  import {
49
49
  noticeOnce,
50
50
  warn
@@ -1041,4 +1041,4 @@ export {
1041
1041
  makeGenerateScripts,
1042
1042
  runRun
1043
1043
  };
1044
- //# sourceMappingURL=chunk-KE2F7QES.js.map
1044
+ //# sourceMappingURL=chunk-WIPTWZVH.js.map
@@ -7,25 +7,25 @@ import {
7
7
  loadGraderPlugins,
8
8
  parseNewerThan,
9
9
  urlManifestRefusal
10
- } from "./chunk-LSFXNAHU.js";
10
+ } from "./chunk-V6OCE4ND.js";
11
11
  import {
12
12
  discoverArtifacts
13
- } from "./chunk-3O6U4ICM.js";
13
+ } from "./chunk-W6B24IMO.js";
14
14
  import {
15
15
  discoverConfig
16
- } from "./chunk-OKMTUAWO.js";
16
+ } from "./chunk-QSPH4F56.js";
17
17
  import {
18
18
  assertProviderSelection,
19
19
  constructProvider,
20
20
  resolveProviderIdentity,
21
21
  selectProvider
22
- } from "./chunk-U6IHLEWT.js";
22
+ } from "./chunk-JCTHXG33.js";
23
23
  import {
24
24
  discoverTraces
25
25
  } from "./chunk-4TSWU2SU.js";
26
26
  import {
27
27
  TracevalsError
28
- } from "./chunk-UKZNLVJW.js";
28
+ } from "./chunk-ZINZTHWO.js";
29
29
  import {
30
30
  TURN_BUDGET_SKIP
31
31
  } from "./chunk-SSQZB5SQ.js";
@@ -33,7 +33,7 @@ import {
33
33
  externalWriteWarnings,
34
34
  mergeMetaProvenance,
35
35
  offerExternalHomes
36
- } from "./chunk-OUAH7XF2.js";
36
+ } from "./chunk-CZJNYHK7.js";
37
37
  import {
38
38
  keyHome,
39
39
  marksValidator,
@@ -41,12 +41,12 @@ import {
41
41
  readManifestOrEmpty,
42
42
  readManifestValue,
43
43
  spliceManifestValue
44
- } from "./chunk-LNGSE7V2.js";
44
+ } from "./chunk-36FJWJSK.js";
45
45
  import {
46
46
  DocmetaError,
47
47
  extractFrontmatter,
48
48
  writeFileAtomic
49
- } from "./chunk-HY6ROJTH.js";
49
+ } from "./chunk-BIRGZEWO.js";
50
50
  import {
51
51
  SEVERITIES
52
52
  } from "./chunk-77AINBYM.js";
@@ -1191,4 +1191,4 @@ export {
1191
1191
  runFill,
1192
1192
  renderFill
1193
1193
  };
1194
- //# sourceMappingURL=chunk-7RNONVHI.js.map
1194
+ //# sourceMappingURL=chunk-Y36PNW6J.js.map